:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-alt: #eef3f8;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e9f0;
  --line-strong: #d6dde7;
  --primary: #2457d6;
  --primary-dark: #173ea8;
  --primary-soft: #edf3ff;
  --success: #15803d;
  --success-soft: #ecfdf3;
  --danger: #c73737;
  --danger-soft: #fff2f2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 30px rgba(31, 42, 68, .08);
  --shadow-lg: 0 24px 64px rgba(31, 42, 68, .16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --kbd-h: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 87, 214, .2);
  outline-offset: 2px;
}

button[disabled] {
  cursor: default;
  opacity: .45;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.app-body {
  background: var(--bg);
}

.app-shell {
  min-height: 100dvh;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 256px;
  flex-direction: column;
  padding: 26px 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  color: var(--ink);
  text-decoration: none;
}

.side-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.side-brand b {
  font-size: 17px;
  letter-spacing: -.02em;
}

.side-brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 87, 214, .24);
}

.side-menu {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-weight: 650;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover {
  background: #f6f8fb;
  color: var(--ink);
}

.nav-item:active {
  transform: scale(.985);
}

.nav-item.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.side-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.side-foot small {
  color: var(--muted);
  line-height: 1.45;
}

.side-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.side-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a35a;
  box-shadow: 0 0 0 4px rgba(34, 163, 90, .1);
}

.app-main {
  min-height: 100dvh;
  margin-left: 256px;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(228, 233, 240, .86);
  background: rgba(244, 246, 249, .92);
  backdrop-filter: blur(18px);
}

.page-title {
  display: grid;
  gap: 2px;
}

.page-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title strong {
  font-size: 15px;
}

.mobile-brand,
.top-back {
  display: none;
}

.avatar-btn,
.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: #344054;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.avatar-btn {
  margin-left: auto;
}

.view-wrap {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
  animation: viewIn .2s ease-out;
}

@keyframes viewIn {
  from {
    opacity: .35;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.library-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.library-head > div {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.library-head h1,
.help-head h1,
.result-top h1 {
  margin: 6px 0 8px;
  color: #101828;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.library-head p,
.help-head p,
.result-top p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.btn-main,
.btn-ghost,
.btn-soft,
.btn-text {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn-main:active,
.btn-ghost:active,
.btn-soft:active,
.btn-text:active {
  transform: scale(.98);
}

.btn-main {
  padding: 0 20px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 16px rgba(36, 87, 214, .18);
}

.btn-main:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-ghost {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #344054;
}

.btn-ghost:hover,
.btn-soft:hover {
  border-color: #bdc7d5;
  background: #f9fafb;
}

.btn-soft {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: #344054;
}

.btn-text {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.btn-text:hover {
  color: var(--primary);
}

.btn-sm {
  min-height: 42px;
  padding-inline: 16px;
}

.progress-card {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-sm);
}

.progress-copy,
.progress-track {
  display: none;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.step-item {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  text-align: left;
}

.step-item::after {
  position: absolute;
  right: 8px;
  left: 44px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  content: "";
}

.step-item span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.step-item b {
  font-size: 13px;
}

.step-item.is-active,
.step-item.is-done {
  color: var(--primary);
}

.step-item.is-active span,
.step-item.is-done span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-item.is-active::after,
.step-item.is-done::after {
  background: var(--primary);
}

.wizard-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.step-pane {
  display: none;
  min-height: 340px;
  padding: 24px 28px;
}

.step-pane.is-active {
  display: block;
  animation: paneIn .2s ease;
}

@keyframes paneIn {
  from {
    opacity: .25;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pane-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.pane-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.pane-head small {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.pane-head h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

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

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

.select-tile {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.select-tile:hover {
  border-color: #b7c5da;
  box-shadow: 0 6px 16px rgba(31, 42, 68, .06);
}

.select-tile:active {
  transform: scale(.99);
}

.select-tile span {
  display: grid;
  gap: 5px;
}

.select-tile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.select-tile b {
  color: #1d2939;
  font-size: 15px;
}

.select-tile > svg {
  color: var(--muted-2);
}

.select-tile.compact {
  min-height: 70px;
}

.field-block {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.field-title,
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.field-title > span,
.list-head b {
  font-size: 13px;
  font-weight: 750;
}

.field-title small,
.list-head > span {
  color: var(--muted);
  font-size: 12px;
}

.seg-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seg-row button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.seg-row button.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px;
}

.content-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.search-box {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--muted-2);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-box input::placeholder,
.custom-row input::placeholder,
.field-area textarea::placeholder {
  color: #98a2b3;
}

.content-panel .list-head {
  margin-top: 16px;
}

.pick-list,
.selected-list {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.pick-row,
.selected-row,
.bncc-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pick-row {
  cursor: pointer;
  text-align: left;
}

.pick-row:hover {
  border-color: #bac7d8;
}

.pick-row.is-selected {
  border-color: #b5c8fa;
  background: var(--primary-soft);
}

.selected-panel {
  display: flex;
  flex-direction: column;
}

.selected-panel .selected-list {
  max-height: 480px;
  flex: 1;
}

.pick-row > span:first-child,
.selected-row > span:first-child {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.selected-row:hover {
  border-color: #cbd5e1;
}

.pick-row b,
.selected-row b {
  font-size: 13px;
  line-height: 1.35;
}

.pick-row small,
.selected-row small,
.bncc-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.row-check,
.row-remove {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--muted);
}

.pick-row.is-selected .row-check {
  background: var(--primary);
  color: #fff;
}

.row-remove {
  cursor: pointer;
}

.row-remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.row-check svg,
.row-remove svg {
  width: 16px;
  height: 16px;
}

.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.custom-row input {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #fff;
}

.custom-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

.empty-box {
  padding: 26px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}


.custom-topic {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.custom-topic > div:first-child {
  display: grid;
  gap: 3px;
}

.custom-topic b {
  font-size: 13px;
}

.custom-topic small,
.muted-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.subject-bncc {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.subject-bncc span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.bncc-intro {
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid #cbd8fb;
  border-radius: 14px;
  background: #f7f9ff;
}

.bncc-intro div {
  display: grid;
  gap: 5px;
}

.bncc-intro b {
  color: var(--ink);
  font-size: 13px;
}

.bncc-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bncc-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.bncc-related-list {
  max-height: 360px;
}

.bncc-selected-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bncc-row button:disabled {
  cursor: default;
  opacity: .62;
}

.bncc-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.bncc-box summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  cursor: pointer;
  list-style: none;
}

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

.bncc-box summary span {
  display: grid;
  gap: 2px;
}

.bncc-box summary b {
  font-size: 13px;
}

.bncc-box summary small {
  color: var(--muted);
  font-size: 11px;
}

.bncc-box[open] summary svg {
  transform: rotate(90deg);
}

.bncc-body {
  padding: 0 14px 14px;
}

.compact-list {
  margin-top: 10px;
  max-height: 210px;
}

.bncc-row {
  align-items: flex-start;
}

.bncc-row > div {
  display: grid;
  gap: 4px;
  flex: 1;
}

.bncc-row b {
  color: var(--primary);
  font-size: 12px;
}

.bncc-row button {
  min-width: 72px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.bncc-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bncc-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 9px 0 11px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.bncc-chip button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.bncc-chip svg {
  width: 14px;
  height: 14px;
}

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

.mode-card {
  display: flex;
  min-height: 126px;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mode-card:hover {
  border-color: #b7c5da;
}

.mode-card:active {
  transform: scale(.99);
}

.mode-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mode-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  border: 2px solid #c6d0de;
  border-radius: 50%;
  background: #fff;
}

.mode-card.is-active .mode-dot {
  border: 5px solid var(--primary);
}

.mode-card > div {
  display: grid;
  gap: 5px;
}

.mode-card small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.mode-card b {
  font-size: 14px;
}

.mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wide-box {
  margin-top: 16px;
}

.type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.type-chip {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.type-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

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

.field-area {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field-area > span {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.field-area > span small {
  color: var(--muted);
  font-weight: 500;
}

.field-area textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.field-area textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .08);
}

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

.review-card {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.review-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.review-card b {
  font-size: 15px;
  line-height: 1.45;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.quality-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #bfe8ca;
  border-radius: 14px;
  background: var(--success-soft);
  color: #166534;
}

.quality-note > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.quality-note div {
  display: grid;
  gap: 4px;
}

.quality-note b {
  font-size: 13px;
}

.quality-note p {
  margin: 0;
  color: #447053;
  font-size: 12px;
  line-height: 1.45;
}

.wizard-foot {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(16px);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, .06);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.foot-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.result-view {
  width: min(100%, 1680px);
  max-width: calc(100vw - clamp(36px, 4vw, 88px));
  margin: 0 auto;
}

.result-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(12px, 1.4vw, 18px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.result-top small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.result-top h1 {
  margin-top: 4px;
  font-size: clamp(26px, 3vw, 36px);
}

.result-toolbar {
  position: sticky;
  top: 84px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(14px, 1.6vw, 20px);
  padding: clamp(10px, 1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.result-navgroup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}

.result-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-alt);
}

.export-note {
  color: var(--primary);
  font-size: clamp(11px, .76vw, 13px);
  font-weight: 750;
  line-height: 1.35;
}

.export-note span {
  color: #b42318;
}

.result-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.result-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.result-tabs span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-alt);
  font-size: 10px;
}

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

.font-size-stepper {
  display: flex;
  height: 40px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
}

.font-size-stepper button,
.font-size-stepper input {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.font-size-stepper button {
  width: 38px;
  cursor: pointer;
  font-size: 17px;
}

.font-size-stepper button:hover {
  background: var(--surface-soft);
}

.font-size-stepper input {
  width: 48px;
  border-left: 1px solid var(--line);
  outline: 0;
  text-align: center;
  font-size: 13px;
}

.font-size-stepper small {
  display: grid;
  height: 100%;
  min-width: 24px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.font-size-stepper input::-webkit-outer-spin-button,
.font-size-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.font-size-stepper input[type="number"] {
  appearance: textfield;
}

.btn-download-material {
  min-width: 170px;
  justify-content: center;
}

.result-pane {
  display: none;
}

.result-pane.is-active {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
}

.activity-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.activity-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.activity-meta {
  display: grid;
  gap: 4px;
}

.activity-meta small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.activity-meta b {
  font-size: 14px;
}

.activity-tools {
  display: flex;
  gap: 6px;
}

.tool-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #475467;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.tool-btn svg {
  width: 16px;
  height: 16px;
}

.tool-btn:hover {
  border-color: #bdc7d5;
  background: #f9fafb;
}

.tool-btn.is-danger {
  color: #b42318;
}

.tool-btn.is-danger:hover {
  border-color: #f3b4ae;
  background: #fff5f4;
}

.activity-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.question-title {
  margin: 0;
  color: #1d2939;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

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

.alt-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
}

.alt-key {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.support-box,
.answer-box,
.generic-row {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.answer-box {
  border-left: 3px solid #b9c8ea;
}

.generic-grid {
  display: grid;
  gap: 8px;
}

.generic-row small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card {
  display: grid;
  gap: 0;
}

.plan-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.plan-section:last-child {
  border-bottom: 0;
}

.plan-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: capitalize;
}

.plan-section p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.library-search {
  max-width: 520px;
  margin: 18px 0;
}

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

.history-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.history-card:hover {
  border-color: #c5cfdb;
  box-shadow: 0 10px 24px rgba(31, 42, 68, .06);
}

.history-main {
  display: grid;
  gap: 6px;
}

.history-main small {
  color: var(--muted);
  font-size: 11px;
}

.history-main b {
  font-size: 15px;
  line-height: 1.4;
}

.history-main span {
  color: var(--muted);
  font-size: 12px;
}

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

.history-actions button {
  flex: 1;
}

.danger-btn {
  color: var(--danger);
}

.help-head {
  max-width: 720px;
  margin-bottom: 24px;
}

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

.help-grid article {
  display: flex;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.help-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.help-grid article div {
  display: grid;
  gap: 6px;
}

.help-grid b {
  font-size: 14px;
}

.help-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.bottom-nav {
  display: none;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
}

.bottom-sheet {
  position: fixed;
  z-index: 90;
  right: 50%;
  bottom: 24px;
  width: min(520px, calc(100% - 32px));
  max-height: min(720px, calc(100dvh - 48px));
  transform: translateX(50%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: sheetIn .2s ease-out;
}

@keyframes sheetIn {
  from {
    opacity: .3;
    transform: translate(50%, 12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate(50%, 0) scale(1);
  }
}

.sheet-handle {
  display: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 12px;
}

.sheet-head small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.sheet-head h2 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.sheet-search {
  padding: 0 18px 10px;
}

.sheet-options {
  display: grid;
  gap: 6px;
  max-height: 480px;
  padding: 4px 12px 16px;
  overflow: auto;
}

.sheet-option {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sheet-option:hover {
  background: var(--surface-soft);
}

.sheet-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 750;
}

.sheet-option svg {
  width: 18px;
  height: 18px;
}

.edit-body {
  padding: 0 18px 4px;
}

.reason-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reason-sheet .danger-btn {
  border-color: #d92d20;
  background: #d92d20;
  color: #fff;
}

.sheet-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.download-layer {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(5px);
}

.download-dialog {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.download-head,
.download-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.download-head {
  padding: 18px 18px 12px;
}

.download-head small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.download-head h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.download-body {
  display: grid;
  gap: 14px;
  padding: 4px 18px 18px;
}

.download-format-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
}

.download-format-note b {
  display: grid;
  min-width: 54px;
  min-height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.download-format-note span {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.download-field,
.download-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.download-field > span,
.download-switch span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.download-switch {
  cursor: pointer;
}

.download-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.download-field.is-disabled {
  opacity: .55;
}

.download-field.is-disabled .font-size-stepper {
  pointer-events: none;
}

.download-foot {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.download-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.download-primary-actions .btn-soft,
.download-primary-actions .btn-main {
  min-height: 44px;
}

@media (max-width: 460px) {
  .download-layer {
    align-items: end;
    padding: 10px;
  }

  .download-dialog {
    border-radius: 18px;
  }

  .download-field {
    align-items: stretch;
    flex-direction: column;
  }

  .download-field .font-size-stepper,
  .download-foot .btn-main,
  .download-foot .btn-ghost {
    width: 100%;
  }

  .download-field .font-size-stepper input {
    flex: 1;
    min-width: 0;
  }

  .download-foot {
    flex-direction: column-reverse;
  }

  .download-primary-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .download-primary-actions .btn-soft,
  .download-primary-actions .btn-main {
    width: 100%;
  }
}

/* ===== LOADER DISCRETO (OPERAÇÕES GERAIS / NAVEGAÇÃO / ABRIR MATERIAL) ===== */
.mini-loading-layer {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.38);
  backdrop-filter: blur(3px);
  animation: miniFadeIn .15s ease-out;
  pointer-events: all;
}

@keyframes miniFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mini-loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(16px);
  animation: miniPillPop .2s cubic-bezier(.16, 1, .3, 1);
}

@keyframes miniPillPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.mini-load-spinner {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2.5px solid rgba(124, 58, 237, 0.15);
  border-top-color: #7c3aed;
  border-right-color: #a855f7;
  border-radius: 50%;
  animation: miniSpin .7s linear infinite;
}

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

.mini-load-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* ===== POPUP EXCLUSIVO DE CRIAÇÃO DA IA ===== */
.loading-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(244, 246, 249, .86);
  backdrop-filter: blur(12px);
}

.loading-card {
  display: grid;
  width: min(380px, 100%);
  place-items: center;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.load-orbit {
  position: relative;
  width: 50px;
  height: 50px;
  border: 3px solid #e7edfa;
  border-radius: 50%;
}

.load-orbit i {
  position: absolute;
  inset: -3px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.loading-card h2 {
  margin: 18px 0 7px;
  font-size: 19px;
}

.loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.load-line {
  width: 100%;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden;
}

.load-line i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  animation: loadMove 1.25s ease-in-out infinite;
}

@keyframes loadMove {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}


/* ------------------------------------- showAlert Moderno ---------------------------- */
#mmAlertWrap {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100002;
  pointer-events: none;
  max-width: 440px;
  width: calc(100vw - 48px);
}

.mm-alert {
  pointer-events: auto;
  position: relative;
  display: flex;
  min-width: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  animation: mmAlertSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mmAlertSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.mm-alert.mm-hide {
  opacity: 0;
  transform: translateX(40px) scale(0.92);
}

.mm-left {
  flex: 0 0 52px;
  background: var(--mm-brd, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-badge {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.mm-right {
  flex: 1 1 auto;
  background: var(--mm-bg, #ffffff);
  padding: 14px 40px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mm-ttl {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.mm-msg {
  margin: 3px 0 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.mm-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  box-shadow: none;
  color: #64748b;
  transition: all 0.15s ease;
}

.mm-close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
  transform: scale(1.08);
}

.mm-close:active {
  transform: scale(0.92);
}

.mm-close:focus {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
}

.mm-x {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

/* ------------------------------------- Modal Confirm / Prompt Balão Emoji ---------------------------- */
.edu-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.edu-confirm-backdrop[hidden] {
  display: none !important;
  opacity: 0;
}

.edu-confirm-container {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: 520px;
  width: 100%;
  animation: eduConfirmPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes eduConfirmPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.edu-confirm-emoji-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.edu-confirm-emoji-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.28), 0 0 0 3px #ffffff, 0 0 0 5px rgba(99, 102, 241, 0.2);
  animation: eduEmojiBob 2.8s ease-in-out infinite;
  user-select: none;
}

@keyframes eduEmojiBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.edu-confirm-emoji-shadow {
  width: 44px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.16);
  margin-top: 6px;
  filter: blur(2px);
  animation: eduShadowPulse 2.8s ease-in-out infinite;
}

@keyframes eduShadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

.edu-confirm-bubble {
  position: relative;
  flex: 1;
  background: #ffffff;
  border-radius: 20px 20px 20px 6px;
  padding: 22px 24px 20px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.edu-confirm-tail {
  position: absolute;
  bottom: 22px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 13px solid #ffffff;
  filter: drop-shadow(-2px 1px 1px rgba(15, 23, 42, 0.05));
}

.edu-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.edu-confirm-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.edu-confirm-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.edu-confirm-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

.edu-confirm-body {
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 18px;
  word-break: break-word;
}

.edu-confirm-body b,
.edu-confirm-body strong {
  color: #0f172a;
  font-weight: 700;
}

.edu-confirm-input-wrap {
  margin-bottom: 18px;
}

.edu-confirm-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.edu-confirm-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.edu-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.edu-confirm-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.edu-confirm-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.edu-confirm-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.edu-confirm-btn-ok {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.edu-confirm-btn-ok:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.edu-confirm-btn-ok:active,
.edu-confirm-btn-cancel:active {
  transform: scale(0.98);
}

.edu-confirm-btn-ok.is-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.edu-confirm-btn-ok.is-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

@media (max-width: 600px) {
  .edu-confirm-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .edu-confirm-tail {
    bottom: auto;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-top: none;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 13px solid #ffffff;
  }
  .edu-confirm-bubble {
    border-radius: 16px;
    width: 100%;
  }
}

.site-body {
  background: #f8fafc;
}

.site-head {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy b {
  font-size: 16px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.hero-wrap {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr);
  align-items: center;
  gap: 58px;
  min-height: 620px;
  margin: 0 auto;
  padding: 48px 0 74px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  color: #101828;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.btn-lg {
  min-height: 52px;
  padding-inline: 22px;
  text-decoration: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.trust-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.hero-card {
  position: relative;
  padding: 20px;
  border: 1px solid #dce4ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(34, 54, 90, .13);
}

.hero-card::before {
  position: absolute;
  inset: 20% -15% -12% 20%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(36, 87, 214, .11);
  filter: blur(55px);
  content: "";
}

.hero-cardtop,
.preview-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-cardtop {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.status-pill {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
}

.preview-grid {
  margin-top: 16px;
}

.preview-grid > div,
.preview-field {
  display: grid;
  gap: 4px;
  flex: 1;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.preview-grid small,
.preview-field small,
.preview-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.preview-grid b,
.preview-field b {
  font-size: 13px;
}

.preview-field {
  margin-top: 10px;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.preview-tags span {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
}

.preview-card {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.preview-card b {
  display: block;
  margin-top: 7px;
  font-size: 14px;
}

.preview-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.feature-wrap,
.cta-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.feature-wrap {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-copy h2,
.cta-wrap h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.section-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.feature-card {
  min-height: 190px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.feature-card > span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.feature-card h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 74px;
  padding: 34px;
  border-radius: 24px;
  background: #172033;
  color: #fff;
}

.cta-wrap .eyebrow {
  color: #a7bfff;
}

.cta-wrap h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: #fff;
}

.site-foot {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .side-nav {
    width: 218px;
  }

  .app-main {
    margin-left: 218px;
  }

  .view-wrap {
    width: min(100% - 36px, 1080px);
  }

  .hero-wrap {
    grid-template-columns: 1fr 390px;
    gap: 38px;
  }

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

@media (max-width: 820px) {
  html,
  body {
    background: #f7f8fb;
  }

  .app-body {
    padding-top: var(--safe-top);
    padding-bottom: calc(68px + var(--safe-bottom));
  }

  .side-nav {
    display: none;
  }

  .app-main {
    margin-left: 0;
  }

  .app-top {
    position: fixed;
    inset: var(--safe-top) 0 auto;
    min-height: 58px;
    padding: 0 14px;
    background: rgba(247, 248, 251, .94);
  }

  .page-title,
  .top-reset {
    display: none;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: none;
  }

  .mobile-brand b {
    font-size: 15px;
  }

  .top-back {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #344054;
  }

  .avatar-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .view-wrap {
    width: 100%;
    padding: 76px 14px 26px;
  }

  .library-head {
    margin-bottom: 16px;
  }

  .library-head > div {
    max-width: none;
  }

  .library-head h1,
  .help-head h1 {
    margin-top: 4px;
    font-size: 28px;
    line-height: 1.08;
  }

  .library-head p,
  .help-head p {
    font-size: 14px;
    line-height: 1.55;
  }

  .progress-card {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .progress-copy b {
    font-size: 13px;
  }

  .progress-copy span {
    color: var(--muted);
    font-size: 12px;
  }

  .progress-track {
    display: block;
    height: 4px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e8edf4;
    overflow: hidden;
  }

  .progress-track i {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width .22s ease;
  }

  .stepper {
    display: none;
  }

  .wizard-card {
    border-radius: 18px;
    box-shadow: 0 7px 24px rgba(31, 42, 68, .06);
  }

  .step-pane {
    min-height: 0;
    padding: 20px 16px 18px;
  }

  .pane-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .pane-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .pane-icon svg {
    width: 19px;
    height: 19px;
  }

  .pane-head h2 {
    margin-top: 2px;
    font-size: 21px;
  }

  .pane-head p {
    font-size: 13px;
  }

  .select-stack,
  .content-layout,
  .bncc-layout,
  .mode-grid,
  .adjust-grid,
  .review-grid,
  .history-list,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .select-tile {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 13px;
  }

  .select-tile b {
    font-size: 16px;
  }

  .field-block {
    margin-top: 14px;
    padding: 14px;
  }

  .seg-row {
    gap: 6px;
  }

  .seg-row button {
    min-height: 46px;
    font-size: 12px;
  }

  .content-layout {
    gap: 12px;
  }

  .content-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .selected-panel {
    background: #fff;
  }

  .search-box {
    min-height: 48px;
  }

  .search-box input {
    font-size: 16px;
  }

  .pick-list,
  .selected-list {
    max-height: 278px;
  }

  .pick-row,
  .selected-row {
    min-height: 54px;
  }

  .custom-row input {
    min-height: 48px;
    font-size: 16px;
  }

  .custom-row .btn-soft {
    min-height: 48px;
  }


  .custom-topic small,
  .muted-note,
  .subject-bncc span {
    font-size: 12px;
  }

  .bncc-intro {
    padding: 14px;
  }

  .bncc-intro p {
    font-size: 13px;
  }

  .mode-card {
    min-height: 104px;
    padding: 14px;
  }

  .mode-card b {
    font-size: 15px;
  }

  .type-chip {
    min-height: 44px;
  }

  .select-tile.compact {
    min-height: 64px;
  }

  .field-area textarea {
    min-height: 118px;
    font-size: 16px;
  }

  .review-card {
    min-height: 96px;
  }

  .wizard-foot {
    position: sticky;
    z-index: 12;
    bottom: 0;
    grid-template-columns: auto 1fr;
    gap: 8px;
    min-height: 72px;
    padding: 10px 12px;
    border-top-color: rgba(228, 233, 240, .86);
  }

  .wizard-foot .foot-copy {
    display: none;
  }

  .wizard-foot .btn-main {
    min-height: 50px;
  }

  .wizard-foot .btn-ghost {
    min-width: 88px;
    min-height: 50px;
  }

  .result-view {
    max-width: none;
  }

  .result-top {
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
    margin: 0 -2px 12px;
  }

  .result-top .icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .result-top h1 {
    margin-bottom: 4px;
    font-size: 25px;
  }

  .result-top p {
    font-size: 12px;
    line-height: 1.4;
  }

  .result-toolbar {
    top: calc(var(--safe-top) + 58px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 -2px 12px;
    padding: 8px;
    border-radius: 14px;
  }

  .result-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-tabs button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 11px;
  }

  .font-size-stepper {
    height: 44px;
  }

  .font-size-stepper button {
    width: 44px;
  }

  .font-size-stepper input {
    width: 56px;
    font-size: 15px;
  }

  .font-size-stepper small {
    min-width: 28px;
  }

  .result-actions {
    display: flex;
  }

  .btn-download-material {
    width: 100%;
    min-height: 46px;
  }

  .activity-card,
  .plan-card {
    border-radius: 15px;
  }

  .activity-top {
    padding: 13px 14px;
  }

  .activity-tools {
    gap: 4px;
  }

  .tool-btn {
    width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
  }

  .tool-btn span {
    display: none;
  }

  .activity-body {
    padding: 15px;
  }

  .question-title {
    font-size: 15px;
  }

  .library-head {
    display: block;
  }

  .library-head > .btn-main {
    display: none;
  }

  .library-search {
    max-width: none;
    margin: 14px 0 12px;
  }

  .history-card {
    padding: 14px;
    border-radius: 14px;
  }

  .help-grid article {
    min-height: 112px;
    padding: 15px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: calc(62px + var(--safe-bottom));
    padding: 5px 8px var(--safe-bottom);
    border-top: 1px solid rgba(222, 228, 236, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
  }

  .bottom-nav button {
    display: grid;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #7a8699;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
  }

  .bottom-nav button svg {
    width: 21px;
    height: 21px;
  }

  .bottom-nav button.is-active {
    color: var(--primary);
  }

  .sheet-backdrop {
    bottom: 0;
  }

  .bottom-sheet {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(88dvh - var(--safe-top));
    transform: none;
    border: 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: var(--safe-bottom);
    animation: mobileSheetIn .22s ease-out;
  }

  @keyframes mobileSheetIn {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .sheet-handle {
    display: block;
    width: 38px;
    height: 5px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #d9dee7;
  }

  .sheet-head {
    padding: 12px 14px 10px;
  }

  .sheet-head h2 {
    font-size: 19px;
  }

  .sheet-search {
    padding: 0 14px 8px;
  }

  .sheet-options {
    max-height: 60dvh;
    padding: 4px 8px 12px;
  }

  .sheet-option {
    min-height: 54px;
    font-size: 15px;
  }

  .edit-body {
    padding: 0 14px 6px;
  }

  .sheet-foot {
    padding: 12px 14px calc(12px + var(--safe-bottom));
  }

  .sheet-foot > * {
    flex: 1;
    min-height: 50px;
  }

  .loading-card {
    width: min(340px, 100%);
    padding: 30px 22px;
    border-radius: 20px;
  }
body.keyboard-open {
    padding-bottom: 0;
  }

  body.keyboard-open .bottom-nav {
    display: none;
  }

  body.keyboard-open .wizard-foot {
    bottom: 0;
  }

  .site-head {
    width: calc(100% - 28px);
    min-height: calc(64px + var(--safe-top));
    padding-top: var(--safe-top);
  }

  .site-head .brand-copy small {
    display: none;
  }

  .hero-wrap {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding: 46px 0 64px;
  }

  .hero-copy h1 {
    margin-top: 10px;
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn-lg {
    width: 100%;
  }

  .hero-card {
    border-radius: 20px;
  }

  .feature-wrap,
  .cta-wrap,
  .site-foot {
    width: calc(100% - 28px);
  }

  .feature-wrap {
    padding: 62px 0;
  }

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

  .feature-card {
    min-height: 150px;
  }

  .cta-wrap {
    display: grid;
    margin-bottom: 52px;
    padding: 24px;
    border-radius: 20px;
  }

  .cta-wrap .btn-lg {
    width: 100%;
  }

  .site-foot {
    padding-bottom: calc(28px + var(--safe-bottom));
  }
}

@media (max-width: 430px) {
  .view-wrap {
    padding-inline: 10px;
  }

  .library-head,
  .help-head {
    padding-inline: 4px;
  }

  .library-head h1,
  .help-head h1 {
    font-size: 26px;
  }

  .wizard-card {
    border-radius: 16px;
  }

  .step-pane {
    padding-inline: 14px;
  }

  .seg-row button {
    padding-inline: 4px;
  }

  .custom-row {
    grid-template-columns: 1fr;
  }

  .custom-row .btn-soft {
    width: 100%;
  }

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

  .type-chip {
    padding-inline: 8px;
  }

  .activity-top {
    gap: 8px;
  }
}

.document-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.document-intro > div {
  display: grid;
  gap: 3px;
}

.document-intro small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}

.document-intro b {
  font-size: 16px;
}

.document-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.paper-stage {
  overflow: auto;
  padding: clamp(16px, 1.8vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e8edf4;
}

.paper-page {
  width: min(100%, clamp(860px, 68vw, 1180px));
  min-height: clamp(1123px, 94vw, 1660px);
  margin: 0 auto;
  padding: var(--paper-margin-size, 5mm);
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--paper-font-size, clamp(13px, .9vw, 15px));
  line-height: 1.55;
  box-shadow: 0 10px 35px rgba(16, 24, 40, .13);
}

.paper-head {
  margin-bottom: clamp(22px, 2.2vw, 30px);
  padding-bottom: clamp(12px, 1.4vw, 16px);
  border-bottom: 2px solid #111;
}

.paper-brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 24px);
}

.paper-brand strong {
  font-size: clamp(24px, 1.9vw, 30px);
  letter-spacing: .08em;
}

.student-paper .paper-brand strong {
  font-size: clamp(12px, .95vw, 15px);
  letter-spacing: .05em;
}

.paper-brand span {
  font-size: clamp(12px, .82vw, 14px);
  text-align: right;
}

.paper-fields {
  display: grid;
  gap: clamp(12px, 1.2vw, 16px);
  margin-top: clamp(18px, 2.2vw, 26px);
}

.paper-fields > div {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.paper-fields span {
  font-weight: 700;
  white-space: nowrap;
}

.paper-fields i {
  height: 20px;
  flex: 1;
  border-bottom: 1px solid #111;
}

.paper-fields .short-field {
  margin-left: 16px;
}

.paper-fields .short-line {
  max-width: 62px;
}

.paper-fields .date-line {
  max-width: 128px;
}

.student-id-line {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, .7vw, 10px);
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(12px, .82vw, 14px);
}

.student-id-line span {
  font-weight: 700;
  white-space: nowrap;
}

.student-id-line i {
  height: 20px;
  border-bottom: 1px solid #111;
}

.student-id-line .name-line {
  min-width: 160px;
  flex: 1;
}

.student-id-line .series-line {
  width: clamp(54px, 4.5vw, 74px);
}

.student-id-line .year-line {
  width: clamp(48px, 4vw, 66px);
}

.student-id-line .date-part {
  flex: 0 0 auto;
}

.student-id-line .day-part,
.student-id-line .month-part {
  width: clamp(26px, 2.4vw, 34px);
}

.student-id-line .year-part {
  width: clamp(48px, 4vw, 62px);
}

.student-id-line b {
  font-weight: 400;
}

.paper-topic,
.paper-bncc {
  margin-top: clamp(10px, 1vw, 14px);
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.paper-question {
  margin-bottom: clamp(22px, 2vw, 30px);
  break-inside: avoid;
}

.preview-act-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 clamp(10px, 1vw, 14px);
  padding: 0 0 10px;
  border-bottom: 1px dashed #d0d5dd;
}

.preview-act-tools > span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.preview-act-tools > div {
  display: flex;
  gap: 8px;
}

.preview-tool {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.preview-tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.preview-tool:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.preview-tool:disabled {
  opacity: .62;
  cursor: wait;
}

.preview-tool.is-danger {
  color: #b42318;
}

.activity-regeneration-status {
  display: grid;
  gap: 9px;
  margin: 0 0 clamp(12px, 1vw, 16px);
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.activity-regeneration-head {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
}

.activity-regeneration-status strong {
  font-size: 12px;
  font-weight: 850;
}

.activity-regeneration-status em {
  justify-self: end;
  color: #2563eb;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.activity-regeneration-status p {
  grid-column: 2 / 4;
  margin: 0;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.activity-regeneration-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.activity-regeneration-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 99, 235, .13);
}

.activity-regeneration-bar span {
  display: block;
  width: var(--progress, 4%);
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width .22s ease;
}

.activity-regeneration-status.is-done {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}

.activity-regeneration-status.is-done .activity-regeneration-dot,
.activity-regeneration-status.is-done .activity-regeneration-bar span {
  background: #16a34a;
}

.activity-regeneration-status.is-done em {
  color: #166534;
}

.activity-regeneration-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.activity-regeneration-status.is-error .activity-regeneration-dot,
.activity-regeneration-status.is-error .activity-regeneration-bar span {
  background: #dc2626;
}

.activity-regeneration-status.is-error em {
  color: #991b1b;
}

.paper-question-text {
  margin: 0 0 clamp(10px, 1vw, 14px);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.paper-alts {
  display: grid;
  gap: clamp(8px, .9vw, 12px);
  margin-left: clamp(8px, 1.1vw, 14px);
}

.paper-alts > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.paper-alts p {
  margin: 0;
  line-height: 1.45;
}

.response-lines {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.response-lines span {
  height: 1px;
  border-bottom: 1px solid #777;
}

.puzzle-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.puzzle-grid {
  margin: auto;
  border-collapse: collapse;
}

.puzzle-grid td {
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.paper-subtitle {
  margin: 16px 0 8px;
  font-weight: 800;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.5;
}

.clue-list {
  margin: 8px 0 0;
  padding-left: 26px;
}

.clue-list li {
  margin: 7px 0;
  line-height: 1.4;
}

.vf-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.vf-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  line-height: 1.55;
}

.vf-list p {
  margin: 0;
  overflow-wrap: anywhere;
}

.vf-marker {
  display: inline-block;
  white-space: nowrap;
}

.assoc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(12px, 1.2vw, 18px) 0;
}

.assoc-grid > div {
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid #bbb;
}

.assoc-grid p {
  margin: 10px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.paper-hint {
  font-size: clamp(12px, .8vw, 14px);
  font-style: italic;
}

.gap-text {
  margin: 15px 0;
  line-height: 1.9;
}

.gap-line {
  display: inline-block;
  min-width: 110px;
  border-bottom: 1px solid #111;
}

.problem-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #bbb;
  border-radius: 8px;
}

.problem-box p {
  margin: 7px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.problem-box ul {
  margin: 7px 0 0;
  padding-left: 22px;
}

.paper-command {
  line-height: 1.5;
}

.teacher-head {
  border-bottom-width: 3px;
}

.teacher-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: clamp(14px, 1.5vw, 18px);
  font-size: clamp(12px, .82vw, 14px);
  overflow-wrap: anywhere;
}

.teacher-generation-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #f8fafc;
  break-inside: avoid;
}

.teacher-generation-status h2 {
  margin: 0 0 4px;
  font-size: clamp(15px, 1vw, 17px);
}

.teacher-generation-status p {
  margin: 0;
  color: #475467;
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.45;
}

.generation-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.generation-metrics span {
  display: grid;
  min-width: 78px;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.generation-metrics b {
  color: #101828;
  font-size: 13px;
  text-transform: none;
}

.teacher-global-plan,
.teacher-guide {
  margin-top: 24px;
}

.teacher-global-plan > h2,
.teacher-guide > h2 {
  margin: 0 0 clamp(10px, 1.2vw, 16px);
  font-size: clamp(18px, 1.35vw, 22px);
}

.plan-detail {
  display: grid;
  gap: clamp(10px, 1.1vw, 14px);
}

.plan-detail section {
  break-inside: avoid;
}

.plan-detail h3 {
  margin: 0 0 5px;
  color: #344054;
  font-size: clamp(11px, .78vw, 13px);
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan-detail p,
.plan-detail ol {
  margin: 0;
  color: #101828;
  font-size: clamp(13px, .88vw, 15px);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plan-detail ol {
  padding-left: 22px;
}

.teacher-question {
  margin-bottom: clamp(16px, 1.6vw, 22px);
  padding: clamp(14px, 1.4vw, 18px);
  border: 1px solid #cfd6df;
  border-radius: 10px;
  break-inside: avoid;
}

.teacher-qhead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e7ec;
}

.teacher-qhead span {
  font-weight: 850;
}

.teacher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 10px 0;
  color: #475467;
  font-size: clamp(11px, .78vw, 13px);
  overflow-wrap: anywhere;
}

.teacher-answer,
.teacher-support,
.teacher-item-plan {
  margin-top: 13px;
}

.teacher-answer p {
  margin: 5px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.teacher-support h3,
.teacher-item-plan > h3 {
  margin: 0 0 8px;
  color: #344054;
  font-size: clamp(11px, .78vw, 13px);
  text-transform: uppercase;
}

.teacher-support p,
.teacher-support li {
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.teacher-support p {
  margin: 8px 0;
}

.teacher-support ul,
.teacher-support ol {
  padding-left: 22px;
}

.teacher-item-plan .plan-detail {
  padding-top: 10px;
  border-top: 1px solid #e4e7ec;
}

.edit-activities {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.edit-activities summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

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

.edit-activities summary span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.edit-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.edit-activity-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.edit-activity-row small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
}

.edit-activity-row b {
  font-size: 13px;
}

.edit-activity-row p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .result-view {
    max-width: calc(100vw - clamp(44px, 5vw, 96px));
  }

  .paper-stage {
    min-height: calc(100vh - 290px);
  }
}

@media (min-width: 1440px) {
  .result-view {
    width: min(100%, 1760px);
  }

  .paper-page {
    width: min(100%, clamp(980px, 70vw, 1240px));
  }
}

@media (max-width: 1280px) and (min-width: 821px) {
  .result-view {
    max-width: calc(100vw - 42px);
  }

  .paper-page {
    width: min(100%, clamp(760px, 74vw, 980px));
    min-height: clamp(1040px, 96vw, 1360px);
    padding: var(--paper-margin-size, 5mm);
    font-size: var(--paper-font-size, clamp(12px, .92vw, 14px));
  }
}

@media (max-width: 760px) {
  .preview-act-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .preview-act-tools > div {
    width: 100%;
  }

  .preview-tool {
    min-height: 44px;
    flex: 1;
    justify-content: center;
  }

  .result-navgroup {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .export-note {
    padding: 0 4px;
  }

  .document-intro {
    padding: 14px;
  }

  .document-intro b {
    font-size: 15px;
  }

  .paper-stage {
    margin: 0 -14px;
    padding: 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .paper-page {
    width: 100%;
    min-height: 0;
    padding: var(--paper-margin-size, 5mm);
    font-size: var(--paper-font-size, 13px);
    box-shadow: 0 5px 20px rgba(16, 24, 40, .1);
  }

  .paper-brand {
    display: grid;
    gap: 4px;
  }

  .paper-brand strong {
    font-size: 20px;
  }

  .student-paper .paper-brand strong {
    font-size: 10px;
  }

  .paper-brand span {
    font-size: 11px;
    text-align: left;
  }

  .paper-fields {
    gap: 12px;
    margin-top: 20px;
  }

  .paper-fields > div {
    flex-wrap: wrap;
  }


  .student-id-line {
    display: flex;
    gap: 3px;
    font-size: 10px;
  }

  .student-id-line .name-line {
    min-width: 56px;
  }

  .student-id-line .series-line {
    width: 30px;
  }

  .student-id-line .year-line {
    width: 26px;
  }

  .student-id-line .day-part,
  .student-id-line .month-part {
    width: 16px;
  }

  .student-id-line .year-part {
    width: 30px;
  }

  .paper-fields .short-field {
    margin-left: 8px;
  }

  .paper-topic,
  .paper-bncc {
    font-size: 11px;
  }

  .paper-question {
    margin-bottom: 22px;
  }

  .puzzle-grid td {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .assoc-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .teacher-summary {
    display: grid;
    gap: 5px;
  }

  .teacher-generation-status {
    grid-template-columns: 1fr;
  }

  .generation-metrics {
    justify-content: flex-start;
  }

  .teacher-qhead {
    display: grid;
    gap: 3px;
  }

  .edit-activity-row {
    grid-template-columns: 1fr;
  }

  .edit-activity-row .activity-tools {
    justify-content: flex-start;
  }

  .edit-activity-row .tool-btn {
    width: auto;
    padding: 0 12px;
  }

  .edit-activity-row .tool-btn span {
    display: inline;
  }
}

#planCard {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.select-tile.is-static {
  cursor: default;
}

.select-tile.is-static:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.select-tile.is-static:active {
  transform: none;
}

.select-tile.is-static em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.bncc-browser .search-box {
  margin-top: 12px;
}

.bncc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-alt);
}

.bncc-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.bncc-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.bncc-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
}

.bncc-tab-panel {
  display: none;
  margin-top: 10px;
}

.bncc-tab-panel.is-active {
  display: block;
}

.bncc-scroll-list,
.bncc-added-list {
  max-height: 430px;
  min-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.bncc-load-note {
  padding: 9px 4px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.bncc-related-row {
  align-items: center;
}

.bncc-row .bncc-trash {
  display: grid;
  min-width: 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border-color: #f3d1d1;
  background: #fff7f7;
  color: var(--danger);
}

.bncc-row .bncc-trash:hover {
  background: var(--danger-soft);
}

.bncc-trash svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .bncc-scroll-list,
  .bncc-added-list {
    max-height: 52vh;
    min-height: 260px;
  }

}


@media (min-width: 821px) {
  .side-nav {
    width: clamp(205px, 12vw, 230px);
    padding: clamp(16px, 1.4vw, 22px) clamp(12px, 1vw, 16px) 18px;
  }

  .side-brand {
    padding: 0 6px clamp(16px, 1.5vw, 22px);
  }

  .side-status {
    right: clamp(12px, 1vw, 16px);
    bottom: 18px;
    left: clamp(12px, 1vw, 16px);
  }

  .app-main {
    margin-left: clamp(205px, 12vw, 230px);
  }

  .app-top {
    min-height: clamp(60px, 5vw, 72px);
    padding: 0 clamp(18px, 2vw, 34px);
  }

  .page-title {
    gap: 1px;
    min-width: 0;
  }

  .page-title small {
    font-size: clamp(9px, .68vw, 11px);
  }

  .page-title strong {
    overflow: hidden;
    font-size: clamp(15px, 1.15vw, 20px);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-reset {
    min-height: 36px;
    margin-left: auto;
    padding-inline: clamp(8px, 1vw, 14px);
  }

  .avatar-btn {
    margin-left: 0;
  }

  .view-wrap {
    width: min(1760px, calc(100% - clamp(20px, 2.6vw, 52px)));
    padding: clamp(10px, 1.2vw, 18px) 0 0;
  }

  .progress-card {
    margin-bottom: clamp(8px, .8vw, 12px);
    padding: clamp(8px, .7vw, 11px) clamp(12px, 1.2vw, 20px);
    border-radius: 14px;
  }

  .stepper {
    gap: clamp(8px, 1.2vw, 18px);
  }

  .step-item {
    min-height: clamp(34px, 3vw, 40px);
    gap: clamp(6px, .65vw, 10px);
  }

  .step-item::after {
    right: 4px;
    left: clamp(34px, 2.6vw, 42px);
  }

  .step-item span {
    width: clamp(27px, 2vw, 31px);
    height: clamp(27px, 2vw, 31px);
    font-size: clamp(10px, .72vw, 12px);
  }

  .step-item b {
    font-size: clamp(11px, .78vw, 13px);
  }

  .wizard-card {
    display: grid;
    height: calc(100dvh - clamp(166px, 19vh, 186px));
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .step-pane {
    min-height: 0;
    padding: clamp(16px, 1.35vw, 26px) clamp(18px, 1.65vw, 30px);
    overflow-y: auto;
  }

  .pane-head {
    gap: clamp(10px, .9vw, 14px);
    margin-bottom: clamp(14px, 1.15vw, 20px);
  }

  .pane-icon {
    width: clamp(38px, 2.8vw, 44px);
    height: clamp(38px, 2.8vw, 44px);
    flex-basis: clamp(38px, 2.8vw, 44px);
    border-radius: 12px;
  }

  .pane-icon svg {
    width: clamp(18px, 1.35vw, 20px);
    height: clamp(18px, 1.35vw, 20px);
  }

  .pane-head small {
    font-size: clamp(9px, .64vw, 10px);
  }

  .pane-head h2 {
    margin: 2px 0 4px;
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.2;
  }

  .pane-head p {
    max-width: 1050px;
    margin-top: 2px;
    font-size: clamp(11.5px, .8vw, 13px);
    line-height: 1.45;
  }

  .step-pane[data-pane="3"].is-active {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .step-pane[data-pane="3"] .pane-head {
    flex: 0 0 auto;
  }

  .bncc-layout {
    min-height: 0;
    flex: 1;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
    gap: clamp(14px, 1.3vw, 24px);
  }

  .bncc-layout > .content-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: clamp(14px, 1.15vw, 20px);
    border-radius: 14px;
  }

  .bncc-related-head {
    align-items: flex-start;
    margin: 0 0 clamp(10px, .8vw, 14px);
  }

  .bncc-related-head > div {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .bncc-related-head small {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(11px, .74vw, 12px);
    font-weight: 500;
    line-height: 1.45;
  }

  .bncc-related-list {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }

  .bncc-browser .list-head {
    margin: 0;
  }

  .bncc-browser .search-box {
    min-height: clamp(42px, 3vw, 48px);
    margin-top: clamp(10px, .8vw, 14px);
  }

  .bncc-tabs {
    margin-top: clamp(8px, .7vw, 12px);
  }

  .bncc-tabs button {
    min-height: clamp(36px, 2.7vw, 42px);
    font-size: clamp(11px, .76vw, 12px);
  }

  .bncc-tab-panel.is-active {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
  }

  .bncc-scroll-list,
  .bncc-added-list {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }

  .bncc-load-note {
    flex: 0 0 auto;
    padding-top: 8px;
    font-size: clamp(10.5px, .7vw, 11.5px);
  }

  .bncc-row {
    min-height: auto;
    align-items: flex-start;
    gap: clamp(10px, .8vw, 14px);
    padding: clamp(10px, .8vw, 14px) clamp(11px, .9vw, 16px);
    border-radius: 11px;
  }

  .bncc-row > div {
    gap: 4px;
  }

  .bncc-row b {
    font-size: clamp(11.5px, .8vw, 13px);
    line-height: 1.3;
  }

  .bncc-row small {
    display: block;
    font-size: clamp(11.25px, .76vw, 12.5px);
    line-height: 1.5;
    overflow: visible;
  }

  .bncc-row button {
    min-height: clamp(36px, 2.6vw, 40px);
    margin-top: 1px;
    flex: 0 0 auto;
    font-size: clamp(11px, .73vw, 12px);
  }

  .wizard-foot {
    min-height: clamp(60px, 5vw, 68px);
    padding: 8px clamp(14px, 1.3vw, 22px);
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .side-nav {
    width: 205px;
  }

  .app-main {
    margin-left: 205px;
  }

  .bncc-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr);
    gap: 12px;
  }

  .bncc-layout > .content-panel {
    padding: 12px;
  }
}

.bncc-related-head {
  align-items: flex-start;
}

.bncc-related-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.bncc-related-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}


.top-account-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.credit-chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 clamp(10px, 1vw, 14px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow-sm);
}

.credit-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
}

.credit-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.credit-chip b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.account-wrap {
  position: relative;
}

.account-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  width: clamp(220px, 18vw, 260px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .16);
}

.account-menu-head {
  display: grid;
  gap: 3px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}

.account-menu-head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.account-menu-head b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.account-menu button:hover {
  background: var(--surface-alt);
}

.account-menu button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.account-menu .account-logout {
  margin-top: 5px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  color: #c62828;
}

.account-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 26px);
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(8px);
}

.account-dialog {
  width: min(100%, 680px);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.account-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.account-dialog-head small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.account-dialog-head h2 {
  margin: 3px 0 0;
  font-size: clamp(20px, 2vw, 26px);
}

.account-dialog-body {
  overflow: auto;
  padding: clamp(16px, 2vw, 24px);
}

.account-pane {
  display: none;
}

.account-pane.is-active {
  display: grid;
  gap: 16px;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 13px;
  background: #f5f8ff;
}

.account-summary span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.account-summary strong {
  color: var(--primary);
  font-size: 20px;
}

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

.account-data-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.account-data-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-data-item b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

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

.payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.payment-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.payment-row b {
  font-size: 12px;
}

.payment-row span {
  color: var(--muted);
  font-size: 11px;
}

.payment-row strong {
  font-size: 13px;
  white-space: nowrap;
}

.payment-row em {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.payment-row .is-ok {
  background: #e9f8ef;
  color: #187a42;
}

.payment-row .is-pending {
  background: #fff5db;
  color: #8a6200;
}

.password-form {
  display: grid;
  gap: 13px;
}

.password-form label {
  display: grid;
  gap: 6px;
}

.password-form span {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cfd6df;
  border-radius: 11px;
  outline: none;
  font: inherit;
}

.password-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.admin-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: #f5f8ff;
}

.admin-config-head > div {
  display: grid;
  gap: 4px;
}

.admin-config-head small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
}

.admin-config-head b {
  color: var(--ink);
  font-size: 18px;
}

.admin-config-head span,
.admin-config-note {
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.admin-config-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.admin-config-head em.is-ok {
  background: #e9f8ef;
  color: #187a42;
}

.admin-config-head em.is-error {
  background: #fff0f0;
  color: #b42318;
}

.admin-config-form,
.admin-config-group {
  display: grid;
}

/* ABAS DE NAVEGAÇÃO DE CONFIGURAÇÕES */
.admin-config-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin: 4px 0 6px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: all .16s ease;
}

.admin-tab-btn:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.admin-tab-btn.is-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-tab-pane {
  display: grid;
  gap: 16px;
  animation: adminTabFade .15s ease-out;
}

.admin-tab-pane[hidden] {
  display: none !important;
}

@keyframes adminTabFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BOTÃO SALVAR CONFIGURAÇÕES SEMPRE VISÍVEL / STICKY */
.admin-config-foot {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #cfe0ff;
  border-radius: 14px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.admin-config-form {
  gap: 16px;
}

.admin-config-group {
  gap: 10px;
}

.admin-config-group h3 {
  margin: 0;
  color: #101828;
  font-size: 14px;
}

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

.admin-config-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-config-grid label > span {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.admin-config-grid input[type="number"],
.admin-config-grid input[type="text"],
.admin-config-grid input[type="url"],
.admin-config-grid input[type="password"],
.admin-config-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  outline: none;
  font: inherit;
}

.admin-config-grid textarea {
  min-height: 112px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.45;
}

.admin-config-grid input[type="number"]:focus,
.admin-config-grid input[type="text"]:focus,
.admin-config-grid input[type="url"]:focus,
.admin-config-grid input[type="password"]:focus,
.admin-config-grid textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.admin-config-grid small {
  color: #667085;
  font-size: 10px;
  font-weight: 650;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-switch {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 66px;
}

.admin-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.admin-config-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  background: #f8fafc;
}

.account-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 6px;
}

@media (max-width: 760px) {
  .credit-chip {
    min-height: 40px;
    padding: 0 9px;
  }

  .credit-chip span {
    display: none;
  }

  .credit-chip b {
    font-size: 12px;
  }

  .account-menu {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    right: 10px;
    width: min(280px, calc(100vw - 20px));
  }

  .account-layer {
    align-items: end;
    padding: 0;
  }

  .account-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .account-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-config-head {
    display: grid;
  }

  .admin-config-grid {
    grid-template-columns: 1fr;
  }

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

  .payment-row em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .account-dialog-foot > * {
    flex: 1;
  }
}


.site-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-credit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.site-credit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-credit b {
  color: var(--ink);
  font-size: 13px;
}

.site-icon-btn,
.auth-door {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #344054;
  box-shadow: var(--shadow-sm);
}

.site-icon-btn svg,
.auth-door svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-nav-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(36, 87, 214, .24);
}

.auth-body {
  min-height: 100dvh;
  background: #f5f7fb;
}

.auth-top {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.auth-main {
  display: grid;
  min-height: calc(100dvh - 76px);
  place-items: center;
  padding: clamp(24px, 5vw, 60px) 20px clamp(50px, 8vw, 90px);
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2vw, 28px);
  background: #fff;
  box-shadow: 0 28px 70px rgba(16, 24, 40, .1);
}

.auth-register-card {
  width: min(100%, 720px);
}

.auth-copy span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}

.auth-copy h1 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-register-form {
  grid-template-columns: 1fr 1fr;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, .1);
}

.auth-wide {
  grid-column: 1 / -1;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #7a879a;
  font-size: 12px;
}

.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-auth-btn {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: #25344d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.google-auth-btn:hover,
.google-auth-btn:focus-visible {
  border-color: #8da2bf;
  background: #f8fafc;
}

.google-g {
  color: #4285f4;
  font-size: 20px;
  font-weight: 900;
}

.auth-signup-cta {
  display: grid;
  gap: 13px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(36, 87, 214, .18);
  border-radius: 18px;
  background: #eef5ff;
}

.auth-signup-cta div {
  display: grid;
  gap: 4px;
}

.auth-signup-cta strong {
  color: var(--ink);
  font-size: 15px;
}

.auth-signup-cta span {
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.auth-create-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-policy {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 540px) {
  .auth-signup-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .auth-create-btn {
    min-width: 170px;
  }
}

@media (max-width: 760px) {
  .auth-top {
    width: calc(100% - 28px);
    min-height: calc(62px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .auth-main {
    min-height: calc(100dvh - 62px - env(safe-area-inset-top));
    align-items: start;
    padding: 18px 14px calc(32px + env(safe-area-inset-bottom));
  }

  .auth-card,
  .auth-register-card {
    width: 100%;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .auth-register-form {
    grid-template-columns: 1fr;
  }

  .auth-wide {
    grid-column: auto;
  }

  .auth-nav-cta {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 12px;
  }

  .auth-signup-cta {
    margin-top: 18px;
    padding: 14px;
  }

  .site-credit span {
    display: none;
  }
}

.credits-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 28px);
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(9px);
}

.credits-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 34px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.credits-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}

.credits-head small {
  color: var(--primary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

.credits-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(21px, 2vw, 28px);
}

.credits-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, .9vw, 14px);
}

.credits-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(270px, .78fr) minmax(440px, 1.45fr);
  overflow: auto;
}

.credits-values {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--line);
  background: #fbfcfe;
}

.credits-current {
  display: grid;
  gap: 2px;
  padding: 15px 16px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  background: #f4f8ff;
}

.credits-current span,
.credits-current small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.credits-current strong {
  color: var(--primary);
  font-size: clamp(22px, 2vw, 28px);
}

.credits-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credits-section-title b {
  font-size: 13px;
}

.credits-section-title span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.credits-grid button {
  min-height: 52px;
  border: 1px solid #ccd5e2;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.credits-grid button:hover,
.credits-grid button:focus-visible {
  border-color: #8eb0ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.credits-grid button.is-active {
  border-color: var(--primary);
  background: #edf4ff;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.credit-other {
  display: grid;
  gap: 7px;
}

.credit-other > span {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.credit-other > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #cfd6df;
  border-radius: 11px;
  background: #fff;
}

.credit-other > div:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.credit-other b {
  color: var(--muted);
  font-size: 13px;
}

.credit-other input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.credit-summary {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.credit-summary > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.credit-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.credit-summary small {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.credits-payment {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}

.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-alt);
}

.payment-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.payment-tabs button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.credit-pay-pane {
  display: none;
}

.credit-pay-pane.is-active {
  display: block;
}

.pix-head,
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pix-head > div,
.card-head {
  min-width: 0;
}

.pix-head b,
.card-head b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.pix-head span,
.card-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pix-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467 !important;
  font-size: 10px !important;
  font-weight: 800;
}

.pix-status.is-wait {
  background: #fff5db;
  color: #8a6200 !important;
}

.pix-status.is-paid {
  background: #e9f8ef;
  color: #187a42 !important;
}

.pix-status.is-error {
  background: #fff0f0;
  color: #b42318 !important;
}

.pix-content {
  min-height: 330px;
}

.pix-qr-wrap {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: center;
}

.pix-qr-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.pix-copy-box {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.pix-copy-box label {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.pix-copy-box textarea {
  width: 100%;
  min-height: 126px;
  resize: none;
  padding: 12px;
  border: 1px solid #cfd6df;
  border-radius: 11px;
  background: #fafbfc;
  color: #344054;
  outline: none;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.pix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pix-actions a {
  text-decoration: none;
}

.pix-note {
  margin: 18px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pix-loading {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pix-loading.compact {
  min-height: 64px;
}

.pix-loading i {
  width: 28px;
  height: 28px;
  border: 3px solid #dbe4ef;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.card-box {
  min-height: 300px;
}

.card-message {
  margin-top: 12px;
}

.payment-success,
.payment-error,
.payment-wait {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.payment-success {
  border-color: #b7e4c7;
  background: #f2fbf5;
}

.payment-success svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #187a42;
  stroke-width: 2;
}

.payment-error {
  border-color: #f2c1bd;
  background: #fff7f6;
}

.payment-wait {
  border-color: #ead8a5;
  background: #fffaf0;
}

.payment-success b,
.payment-error b,
.payment-wait b {
  font-size: 14px;
}

.payment-success span,
.payment-error span,
.payment-wait span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .credits-dialog {
    width: min(760px, calc(100vw - 24px));
  }

  .credits-body {
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  }

  .pix-qr-wrap {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .credits-layer {
    align-items: end;
    padding: 0;
  }

  .credits-dialog {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .credits-head {
    padding: 16px;
  }

  .credits-body {
    display: block;
    overflow: auto;
  }

  .credits-values {
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credits-current {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .credits-current small {
    grid-column: 1 / -1;
  }

  .credits-grid button {
    min-height: 48px;
  }

  .credit-summary {
    margin-top: 0;
  }

  .credit-summary small {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  .credits-payment {
    padding: 16px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .pix-head {
    display: grid;
    gap: 9px;
  }

  .pix-status {
    justify-self: start;
  }

  .pix-content {
    min-height: 0;
  }

  .pix-qr-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pix-qr-image {
    max-width: 260px;
  }

  .pix-copy-box {
    width: 100%;
  }

  .pix-actions > * {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
}

/* Site institucional */
.institutional-site {
  --site-navy: #071d3a;
  --site-navy-2: #0d2d55;
  --site-blue: #1d4ed8;
  --site-blue-soft: #eaf1ff;
  --site-green: #138a58;
  --site-green-soft: #eaf8f1;
  --site-gold: #c99a3d;
  background:
    radial-gradient(circle at 10% 6%, rgba(29, 78, 216, .08), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(19, 138, 88, .08), transparent 28%),
    #f7f9fc;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--site-navy);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-head-institutional {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1280px, calc(100% - 40px));
  min-height: 72px;
  margin-top: 14px;
  padding: 0 16px 0 18px;
  border: 1px solid rgba(219, 227, 238, .92);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 34px rgba(7, 29, 58, .08);
  backdrop-filter: blur(18px);
}

.site-head-institutional .brand-mark {
  background: linear-gradient(145deg, var(--site-navy), #174b84);
  box-shadow: 0 8px 18px rgba(7, 29, 58, .18);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 10px 11px;
  border-radius: 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eef3f9;
  color: var(--site-navy);
}

.site-head-institutional .site-user-actions {
  margin-left: 10px;
}

.institutional-hero {
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: clamp(42px, 6vw, 86px);
  min-height: 700px;
  padding: 78px 0 86px;
}

.institutional-hero .hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 22px;
  color: var(--site-navy);
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: .99;
  letter-spacing: -.055em;
}

.institutional-hero .hero-copy > p {
  max-width: 760px;
  color: #526277;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.68;
}

.eyebrow-authority {
  color: var(--site-green);
}

.trust-row-authority span {
  border-color: #d8e3ee;
  background: rgba(255, 255, 255, .82);
  color: #31445e;
}

.knowledge-visual {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #d5e0ec;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .96)),
    #fff;
  box-shadow: 0 34px 80px rgba(7, 29, 58, .16);
}

.knowledge-visual::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(19, 138, 88, .11);
  content: "";
  filter: blur(2px);
}

.knowledge-head {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.knowledge-head span,
.knowledge-output small,
.knowledge-engine small {
  color: #6b7c91;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.knowledge-head b {
  color: var(--site-navy);
  font-size: 17px;
}

.knowledge-stack {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.knowledge-source {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fff;
}

.knowledge-source > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.knowledge-source b {
  color: #1b2c44;
  font-size: 13px;
}

.knowledge-source small {
  overflow: hidden;
  color: #7b8796;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-seal,
.source-seal {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--site-navy), #174b84);
  color: #fff;
  font-weight: 900;
  letter-spacing: -.02em;
}

.mini-seal {
  width: 52px;
  height: 44px;
  font-size: 10px;
}

.knowledge-ok {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--site-green-soft);
  color: var(--site-green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.knowledge-engine {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #bcd8c9;
  border-radius: 15px;
  background: linear-gradient(135deg, #edf9f3, #f7fcfa);
}

.engine-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--site-green);
  color: #fff;
  font-size: 18px;
}

.knowledge-engine div {
  display: grid;
  gap: 3px;
}

.knowledge-engine b {
  color: #173a2b;
  font-size: 13px;
}

.knowledge-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-radius: 15px;
  background: var(--site-navy);
  color: #fff;
}

.knowledge-output > div {
  display: grid;
  gap: 3px;
}

.knowledge-output small {
  color: #9fc0e7;
}

.knowledge-output b {
  font-size: 13px;
}

.knowledge-output > span {
  color: #cfe0f4;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.institution-strip {
  display: grid;
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #dce5ef;
  box-shadow: 0 14px 34px rgba(7, 29, 58, .06);
}

.institution-strip > div {
  display: grid;
  gap: 6px;
  padding: 22px;
  background: rgba(255, 255, 255, .96);
}

.institution-strip b {
  color: var(--site-navy);
  font-size: 14px;
}

.institution-strip span {
  color: #69798d;
  font-size: 12px;
  line-height: 1.55;
}

.institutional-site .feature-wrap,
.authority-wrap,
.sources-wrap,
.metrics-wrap,
.commitment-wrap,
.institutional-site .cta-wrap,
.institutional-site .site-foot {
  width: min(1280px, calc(100% - 48px));
}

.institutional-site .feature-wrap {
  padding: 108px 0 96px;
  border-top: 0;
}

.institutional-site .feature-card {
  min-height: 215px;
  padding: 23px;
  border-color: #dbe4ee;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(7, 29, 58, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.institutional-site .feature-card:hover {
  border-color: #bfcfe0;
  box-shadow: 0 18px 38px rgba(7, 29, 58, .08);
  transform: translateY(-3px);
}

.institutional-site .feature-card > span {
  color: var(--site-green);
}

.authority-wrap {
  margin: 0 auto;
  padding: 92px 0 104px;
  border-top: 1px solid #dce4ed;
}

.authority-intro {
  display: grid;
  max-width: 880px;
  gap: 12px;
  margin-bottom: 36px;
}

.authority-intro h2,
.sources-wrap h2,
.metrics-wrap h2,
.commitment-wrap h2 {
  margin: 0;
  color: var(--site-navy);
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.authority-intro p,
.sources-copy p {
  max-width: 800px;
  margin: 0;
  color: #66778c;
  font-size: 16px;
  line-height: 1.7;
}

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

.pillar-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid #d8e2ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 29, 58, .05);
}

.pillar-card::after {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(29, 78, 216, .05);
  content: "";
}

.pillar-card:nth-child(2)::after {
  background: rgba(19, 138, 88, .07);
}

.pillar-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 52px;
  border-radius: 14px;
  background: #eaf1ff;
  color: var(--site-blue);
}

.pillar-card:nth-child(2) .pillar-icon {
  background: var(--site-green-soft);
  color: var(--site-green);
}

.pillar-card:nth-child(3) .pillar-icon {
  background: #f4efff;
  color: #6d4ac7;
}

.pillar-card small {
  color: #75859a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}

.pillar-card h3 {
  margin: 10px 0 14px;
  color: #152a45;
  font-size: 23px;
  line-height: 1.17;
  letter-spacing: -.025em;
}

.pillar-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #65758a;
  font-size: 14px;
  line-height: 1.72;
}

.sources-wrap {
  margin: 0 auto;
  padding: 96px 0;
}

.sources-copy {
  max-width: 850px;
  margin-bottom: 30px;
}

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

.source-card {
  position: relative;
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 18px;
  padding: 21px;
  border: 1px solid #d9e3ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 29, 58, .04);
  cursor: help;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.source-card:hover,
.source-card:focus-visible {
  border-color: #a9bed4;
  box-shadow: 0 20px 44px rgba(7, 29, 58, .11);
  transform: translateY(-3px);
}

.source-seal {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  font-size: 11px;
}

.source-seal-long {
  background: linear-gradient(145deg, #0d6645, #159467);
}

.source-card > div {
  display: grid;
  gap: 6px;
}

.source-card b {
  color: #19304d;
  font-size: 15px;
}

.source-card p {
  margin: 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.55;
}

.source-tip {
  position: absolute;
  left: 16px;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(310px, calc(100vw - 48px));
  padding: 12px 13px;
  border: 1px solid #24496e;
  border-radius: 12px;
  background: #0b2746;
  color: #fff;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}

.source-card:hover .source-tip,
.source-card:focus .source-tip,
.source-card:focus-within .source-tip {
  opacity: 1;
  transform: translateY(0);
}

.source-disclaimer {
  margin: 18px 0 0;
  color: #7c8a9b;
  font-size: 11px;
  line-height: 1.55;
}

.metrics-wrap {
  margin: 16px auto 0;
  padding: 52px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(54, 157, 108, .22), transparent 30%),
    linear-gradient(135deg, #071d3a, #0b2b50);
  color: #fff;
  box-shadow: 0 34px 74px rgba(7, 29, 58, .18);
}

.metrics-head {
  display: grid;
  max-width: 820px;
  gap: 12px;
}

.metrics-wrap .eyebrow {
  color: #72d3a4;
}

.metrics-wrap h2 {
  color: #fff;
}

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

.metrics-grid article {
  display: grid;
  min-height: 185px;
  align-content: space-between;
  gap: 22px;
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  background: rgba(255, 255, 255, .07);
}

.metrics-grid strong {
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.045em;
}

.metrics-grid sup {
  color: #72d3a4;
  font-size: .52em;
}

.metrics-grid span {
  color: #c9d8e8;
  font-size: 12px;
  line-height: 1.55;
}

.metrics-disciplines {
  margin: 20px 0 0;
  color: #93abc4;
  font-size: 11px;
  line-height: 1.7;
}

.commitment-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 34px;
  margin: 96px auto;
  padding: 34px;
  border: 1px solid #b8d7c7;
  border-radius: 24px;
  background: linear-gradient(135deg, #f0faf5, #ffffff 66%);
  box-shadow: 0 18px 44px rgba(14, 88, 57, .07);
}

.commitment-seal {
  display: grid;
  width: 126px;
  height: 126px;
  place-content: center;
  justify-self: center;
  border: 1px solid #6fb18e;
  border-radius: 50%;
  outline: 5px double rgba(19, 138, 88, .15);
  color: var(--site-green);
  text-align: center;
}

.commitment-seal span {
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -.05em;
}

.commitment-seal small {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
}

.commitment-copy {
  display: grid;
  gap: 11px;
}

.commitment-wrap h2 {
  font-size: clamp(30px, 3.7vw, 48px);
}

.commitment-copy > p {
  max-width: 900px;
  margin: 0;
  color: #566c61;
  font-size: 15px;
  line-height: 1.72;
}

.commitment-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.commitment-points span {
  padding: 8px 10px;
  border: 1px solid #c7e2d4;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #276849;
  font-size: 11px;
  font-weight: 750;
}

.institutional-cta {
  margin-bottom: 74px;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(8, 28, 55, .98), rgba(15, 61, 102, .98));
}

.institutional-cta .eyebrow {
  color: #75cfa2;
}

.institutional-foot {
  align-items: flex-start;
  padding: 26px 0 36px;
}

.institutional-foot > div {
  display: grid;
  gap: 4px;
}

.institutional-foot b {
  color: #30445d;
}

.institutional-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.institutional-foot a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.institutional-foot a:hover,
.institutional-foot a:focus-visible {
  color: var(--site-blue);
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .institutional-hero {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
  }

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

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

@media (max-width: 900px) {
  .institutional-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 58px;
  }

  .knowledge-visual {
    width: min(620px, 100%);
  }

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

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

  .pillar-card {
    min-height: 0;
  }

  .pillar-icon {
    margin-bottom: 30px;
  }

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

  .commitment-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-head-institutional {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 62px;
    margin-top: 8px;
    padding: 0 10px 0 12px;
    border-radius: 16px;
  }

  .institutional-hero,
  .institution-strip,
  .institutional-site .feature-wrap,
  .authority-wrap,
  .sources-wrap,
  .metrics-wrap,
  .commitment-wrap,
  .institutional-site .cta-wrap,
  .institutional-site .site-foot {
    width: calc(100% - 28px);
  }

  .institutional-hero {
    padding: 48px 0 58px;
  }

  .institutional-hero .hero-copy h1 {
    font-size: clamp(40px, 12.5vw, 62px);
  }

  .institutional-site .feature-wrap,
  .authority-wrap,
  .sources-wrap {
    padding: 72px 0;
  }

  .metrics-wrap {
    padding: 28px;
    border-radius: 22px;
  }

  .commitment-wrap {
    margin: 72px auto;
    padding: 26px;
  }

  .institutional-cta {
    padding: 28px;
  }
}

@media (max-width: 580px) {
  .site-head-institutional .brand-copy small,
  .site-credit span {
    display: none;
  }

  .site-head-institutional .site-credit {
    padding-inline: 9px;
  }

  .institutional-hero .hero-copy > p {
    font-size: 15px;
  }

  .knowledge-visual {
    padding: 15px;
    border-radius: 20px;
  }

  .knowledge-source {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .mini-seal {
    width: 46px;
  }

  .knowledge-ok {
    display: none;
  }

  .knowledge-output {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-output > span {
    text-align: left;
  }

  .source-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .source-card {
    min-height: 160px;
  }

  .source-tip {
    position: static;
    display: none;
    width: auto;
    margin-top: 2px;
    opacity: 1;
    transform: none;
  }

  .source-card:focus .source-tip,
  .source-card:focus-within .source-tip {
    display: block;
  }

  .metrics-grid article {
    min-height: 150px;
  }

  .commitment-seal {
    width: 108px;
    height: 108px;
  }

  .institutional-foot {
    display: grid;
  }

  .institutional-foot nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .institutional-site *,
  .institutional-site *::before,
  .institutional-site *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}


.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.type-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.type-entry.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
}

.type-entry .type-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.type-check-box {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid #c8d4e2;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.type-entry.is-active .type-check-box {
  border-color: var(--primary);
  background: var(--primary);
}

.type-entry.is-active .type-check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.type-check-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.type-check-copy b {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-check-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.type-entry .type-chip.is-active .type-check-copy small {
  color: var(--primary);
}

.type-qty {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 9px;
  border-left: 1px solid var(--line-strong);
  background: rgba(255,255,255,.76);
}

.type-qty.is-disabled {
  opacity: .52;
}

.type-qty span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.type-stepper {
  display: grid;
  grid-template-columns: 36px minmax(38px, 1fr) 36px;
  gap: 5px;
  align-items: center;
}

.type-stepper button {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.type-stepper button:active {
  transform: translateY(1px);
}

.type-stepper button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.type-stepper input {
  width: 100%;
  min-height: 34px;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.type-stepper input:focus {
  border-color: var(--primary);
  outline: 3px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.type-stepper input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .type-grid {
    grid-template-columns: 1fr;
  }

  .type-entry {
    grid-template-columns: 1fr;
  }

  .type-entry .type-check {
    min-height: 58px;
  }

  .type-qty {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 9px 10px;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .type-qty span {
    text-align: left;
  }

  .type-stepper {
    grid-template-columns: 46px minmax(54px, 1fr) 46px;
    gap: 8px;
  }

  .type-stepper button,
  .type-stepper input {
    min-height: 44px;
    border-radius: 12px;
  }

  .type-stepper button {
    font-size: 22px;
  }
}

.visual-story {
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 90px;
  display: grid;
  grid-template-columns: 1.25fr .875fr .875fr;
  gap: 16px;
}

.visual-story-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 0;
  border: 1px solid rgba(124, 151, 178, .22);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 29, 58, .09);
}

.visual-story-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.visual-story-card:hover img {
  transform: scale(1.025);
}

.visual-story-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(7, 29, 58, .12);
  backdrop-filter: blur(14px);
}

.visual-story-card figcaption small {
  color: #0f6e52;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.visual-story-card figcaption b {
  color: #10213a;
  font-size: 15px;
  line-height: 1.35;
}

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

.existing-btn {
  min-height: 46px;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: var(--primary-soft);
}

.existing-btn svg {
  width: 17px;
  height: 17px;
}

.history-list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  align-items: start;
  gap: 18px;
}

.history-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 33, 58, .09);
  scroll-snap-align: start;
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: #b7c8d8;
  box-shadow: 0 20px 46px rgba(16, 33, 58, .13);
}

.history-cover {
  position: relative;
  flex: 0 0 38%;
  min-height: 0;
  overflow: hidden;
  background: #071d3a;
}

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

.history-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 58, .06) 26%, rgba(7, 29, 58, .84) 100%);
}

.history-cover > span,
.history-cover > strong {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: #fff;
}

.history-cover > span {
  bottom: 38px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-cover > strong {
  bottom: 14px;
  font-size: 18px;
  line-height: 1;
}

.history-ludico-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
}

.history-card.is-ludico {
  border-color: rgba(124, 58, 237, 0.22);
}

.history-card.is-ludico:hover {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 46px rgba(124, 58, 237, 0.12);
}

.history-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px 12px;
}

.history-title {
  display: grid;
  gap: 3px;
}

.history-title small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.history-title b {
  display: -webkit-box;
  overflow: hidden;
  color: #10213a;
  font-size: 14px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-data {
  display: grid;
  gap: 7px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.history-data div {
  min-width: 0;
}

.history-data dt {
  margin: 0 0 2px;
  color: #667085;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-data dd {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #344054;
  font-size: 11px;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.history-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: auto;
}

.history-actions .history-btn {
  flex: 1;
  min-height: 33px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.history-actions .history-btn:last-child {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
}

.history-actions .history-btn svg {
  width: 14px;
  height: 14px;
}

.history-actions .history-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.history-actions .history-btn.danger-btn:hover {
  border-color: #f0b8b3;
  color: var(--danger);
  background: #fff5f4;
}

.library-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-add-class {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--primary);
  background: var(--primary-soft);
}

.library-class-filter {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.library-class-chip {
  min-width: 148px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas:
    "avatar title"
    "avatar meta";
  align-items: center;
  column-gap: 10px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.library-class-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent);
}

.library-class-chip > span {
  grid-area: avatar;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #0b3158;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.library-class-chip b {
  grid-area: title;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-class-chip small {
  grid-area: meta;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.turma-select-tile {
  grid-column: 1 / -1;
}

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

.class-form-card,
.class-list-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.class-form-card {
  display: grid;
  gap: 18px;
}

.class-form-grid,
.quick-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.class-form-grid label,
.quick-class-grid label {
  display: grid;
  gap: 7px;
}

.class-form-grid span,
.quick-class-grid span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.class-form-grid input,
.class-form-grid select,
.quick-class-grid input,
.quick-class-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.class-form-grid input:focus,
.class-form-grid select:focus,
.quick-class-grid input:focus,
.quick-class-grid select:focus {
  border-color: var(--primary);
  outline: 3px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.class-subjects-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

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

.class-subject-option {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.class-subject-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.class-form-actions,
.class-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.class-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.class-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.class-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.class-card div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.class-card b {
  color: var(--text);
  font-size: 14px;
}

.class-card small,
.class-card p,
.class-card em {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.class-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.class-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
}

.class-layer[hidden] {
  display: none;
}

.class-dialog {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.class-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.class-dialog-head small {
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
}

.class-dialog-head h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.quick-class-grid {
  padding: 18px;
}

.class-dialog-foot {
  padding: 0 18px 18px;
}

@media (max-width: 960px) {
  .visual-story {
    grid-template-columns: 1fr 1fr;
  }

  .class-layout {
    grid-template-columns: 1fr;
  }

  .visual-story-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .visual-story {
    width: min(100% - 24px, 620px);
    margin: 18px auto 58px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .visual-story-large {
    grid-column: auto;
  }

  .visual-story-card,
  .visual-story-card img {
    min-height: 300px;
  }

  .visual-story-card figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .wizard-actions {
    min-width: 0;
  }

  .wizard-actions .btn-main,
  .wizard-actions .existing-btn {
    min-width: 0;
    padding-inline: 13px;
    white-space: nowrap;
  }

  .existing-btn svg {
    display: none;
  }

  .history-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(238px, 82vw);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px calc(84px + var(--safe-bottom));
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .history-card {
    width: 100%;
    aspect-ratio: auto;
    padding: 0;
    border-radius: 20px;
  }

  .history-cover {
    flex-basis: 128px;
    height: 128px;
  }

  .history-cover > span {
    bottom: 34px;
  }

  .history-cover > strong {
    bottom: 12px;
    font-size: 17px;
  }

  .history-content {
    gap: 8px;
    padding: 12px;
  }

  .history-title b {
    font-size: 13px;
    line-height: 1.28;
    -webkit-line-clamp: 1;
  }

  .history-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .history-data div:nth-child(3),
  .history-data div:nth-child(4) {
    grid-column: 1 / -1;
  }

  .history-data dt {
    margin-bottom: 1px;
    font-size: 7px;
  }

  .history-data dd {
    font-size: 10px;
    line-height: 1.25;
    -webkit-line-clamp: 1;
  }

  .history-actions {
    gap: 8px;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .history-actions .history-btn {
    min-height: 44px;
    border-radius: 12px;
    font-size: 12px;
  }

  .history-actions .history-btn:last-child {
    flex-basis: 46px;
    width: 46px;
  }

  .library-head-actions {
    margin-top: 14px;
  }

  .library-class-filter {
    margin-right: -14px;
    margin-left: -2px;
    padding-left: 2px;
  }

  .class-form-grid,
  .quick-class-grid,
  .class-subjects {
    grid-template-columns: 1fr;
  }

  .class-form-card,
  .class-list-card {
    padding: 14px;
    border-radius: 16px;
  }

  .class-form-actions,
  .class-dialog-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.hero-photo-layout {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .94fr);
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  margin: 0;
  border: 1px solid rgba(183, 199, 218, .55);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(7, 29, 58, .18);
}

.hero-photo-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(4, 22, 43, .68) 100%);
  content: "";
  pointer-events: none;
}

.hero-photo-card img {
  display: block;
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: 52% center;
}

.hero-photo-card figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  background: rgba(7, 29, 58, .70);
  color: #fff;
  backdrop-filter: blur(14px);
}

.hero-photo-card figcaption span {
  color: #98e0bd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.hero-photo-card figcaption b {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.4;
}

.editorial-visuals {
  width: min(1240px, calc(100% - 40px));
  margin: 34px auto 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, .78fr);
  gap: 18px;
}

.editorial-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  margin: 0;
  border: 1px solid rgba(179, 198, 218, .52);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 62px rgba(7, 29, 58, .11);
}

.editorial-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 24, 47, .72) 100%);
  content: "";
  pointer-events: none;
}

.editorial-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition: transform .38s ease;
}

.editorial-card:hover img {
  transform: scale(1.018);
}

.editorial-card-wide img {
  object-position: center;
}

.editorial-card-library img {
  object-position: 56% center;
}

.editorial-card figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 7px;
  color: #fff;
}

.editorial-card figcaption small {
  color: #9ce1bf;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.editorial-card figcaption b {
  max-width: 720px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}

@media (max-width: 1080px) {
  .hero-photo-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo-card {
    min-height: 520px;
  }

  .hero-photo-card img {
    height: 520px;
  }

  .editorial-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-photo-card {
    min-height: 430px;
    border-radius: 24px;
  }

  .hero-photo-card img {
    height: 430px;
  }

  .hero-photo-card figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 15px 16px;
    border-radius: 17px;
  }

  .hero-photo-card figcaption b {
    font-size: 15px;
  }

  .editorial-visuals {
    width: min(100% - 24px, 680px);
    margin: 20px auto 62px;
    gap: 14px;
  }

  .editorial-card,
  .editorial-card img {
    min-height: 360px;
  }

  .editorial-card {
    border-radius: 24px;
  }

  .editorial-card figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-card img {
    transition: none;
  }

  .editorial-card:hover img {
    transform: none;
  }
}

.site-access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #163f72;
  border-radius: 11px;
  background: linear-gradient(145deg, #0b2446, #174b84);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 29, 58, .14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.site-access-btn:hover,
.site-access-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #123564, #1d5b9f);
  box-shadow: 0 12px 26px rgba(7, 29, 58, .18);
}

.lgpd-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #cce6d8;
  border-radius: 18px;
  background: #f4fbf7;
}

.lgpd-lock {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: #e0f4e9;
  font-size: 18px;
}

.lgpd-line b {
  display: block;
  margin-bottom: 3px;
  color: #0f5e42;
  font-size: 14px;
}

.lgpd-line p {
  margin: 0;
  color: #526b60;
  font-size: 13px;
  line-height: 1.55;
}

.legal-footer {
  width: min(1280px, calc(100% - 40px));
  margin: 20px auto 24px;
  padding: 30px;
  border: 1px solid rgba(198, 213, 229, .9);
  border-radius: 28px;
  background: linear-gradient(145deg, #071d3a, #0e315b);
  color: #fff;
  box-shadow: 0 26px 70px rgba(7, 29, 58, .17);
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-mark {
  flex: 0 0 42px;
}

.footer-brand-block > div {
  display: grid;
  gap: 3px;
}

.footer-brand-block b {
  color: #fff;
  font-size: 17px;
}

.footer-brand-block span {
  color: #b8c9dd;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.1fr 1.35fr;
  gap: 26px;
  padding: 28px 0;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span,
.footer-grid b {
  color: #c6d5e5;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-grid b {
  color: #fff;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #8fe0b8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #98abc1;
  font-size: 11px;
}

.legal-consent[hidden] {
  display: none;
}

.legal-consent {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(3, 18, 35, .38);
  backdrop-filter: blur(4px);
}

.legal-consent-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 22px;
  border: 1px solid #d4e0ec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 22, 43, .26);
}

.legal-consent-copy {
  display: grid;
  gap: 8px;
}

.legal-chip {
  color: #11714f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.legal-consent h2 {
  margin: 0;
  color: #0f223b;
  font-size: 20px;
}

.legal-consent p {
  margin: 0;
  color: #5c6e83;
  font-size: 13px;
  line-height: 1.6;
}

.legal-consent a {
  color: #174b84;
  font-weight: 700;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-consent-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.legal-consent-actions .btn-main,
.legal-consent-actions .btn-ghost {
  min-height: 42px;
  padding: 0 14px;
}

.legal-page {
  min-height: 100vh;
  background: #f6f9fc;
  color: #17283f;
}

.legal-page-head {
  width: min(1100px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(7, 29, 58, .07);
}

.legal-page-head a {
  color: #17345a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.legal-document {
  width: min(960px, calc(100% - 32px));
  margin: 34px auto 60px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #dce6f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(7, 29, 58, .08);
}

.legal-document .eyebrow {
  margin-bottom: 10px;
}

.legal-document h1 {
  margin: 0 0 12px;
  color: #0d2544;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.legal-document > p:first-of-type {
  color: #607187;
  font-size: 15px;
}

.legal-document h2 {
  margin: 34px 0 10px;
  color: #13365f;
  font-size: 20px;
}

.legal-document p,
.legal-document li {
  color: #43566e;
  font-size: 14px;
  line-height: 1.72;
}

.legal-document ul {
  padding-left: 22px;
}

.legal-note {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #cfe4d8;
  border-radius: 16px;
  background: #f4fbf7;
}

.legal-note strong {
  color: #0f6547;
}

.legal-contact-box {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: #eef4fb;
}

.legal-contact-box a {
  color: #174b84;
}

.history-actions .history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

.history-actions .history-btn svg {
  flex: 0 0 14px;
  display: block;
  width: 14px;
  height: 14px;
}

.history-actions .history-btn:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .site-access-btn {
    display: none;
  }

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

  .legal-consent-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .legal-consent-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .legal-footer {
    width: min(100% - 24px, 680px);
    padding: 22px;
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .legal-consent {
    padding: 10px;
  }

  .legal-consent-card {
    padding: 18px;
    border-radius: 18px;
  }

  .legal-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* v35 - landing page visual only */
.site-v35 {
  --v35-navy: #082744;
  --v35-navy-deep: #061f38;
  --v35-navy-soft: #113d66;
  --v35-green: #18a877;
  --v35-green-dark: #10865f;
  --v35-green-soft: #e8f8f2;
  --v35-blue-soft: #eef5fd;
  --v35-line: #d9e4ef;
  --v35-text: #112942;
  --v35-muted: #60738a;
  background: #f7fafe;
}

.site-v35 .skip-link {
  z-index: 2000;
}

.site-trustbar {
  width: 100%;
  background: linear-gradient(90deg, #061f38, #0a3457 58%, #0d436b);
  color: #fff;
}

.site-trustbar-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 12px;
}

.site-trustbar-inner > span {
  font-weight: 760;
}

.site-trustbar-inner > div {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d7e5f3;
}

.site-trustbar-inner > div span {
  position: relative;
  padding-left: 18px;
  white-space: nowrap;
}

.site-trustbar-inner > div span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5bd9a9;
  content: "";
  transform: translateY(-50%);
}

.site-head-v35 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 clamp(20px, 3.5vw, 64px);
  border: 0;
  border-bottom: 1px solid rgba(205, 218, 232, .8);
  border-radius: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 20px rgba(8, 39, 68, .06);
  backdrop-filter: blur(16px);
}

.brand-v35 {
  min-width: 286px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--v35-navy);
  text-decoration: none;
}

.brand-symbol {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand-symbol::before {
  position: absolute;
  inset: 8px 22px 8px 0;
  border-radius: 4px 0 10px 4px;
  background: linear-gradient(160deg, #0b3158, #123f6f);
  content: "";
  transform: skewY(7deg);
}

.brand-symbol::after {
  position: absolute;
  inset: 8px 0 8px 22px;
  border-radius: 0 4px 4px 10px;
  background: linear-gradient(160deg, #18a877, #0d815c);
  content: "";
  transform: skewY(-7deg);
}

.brand-symbol i:first-child,
.brand-symbol i:last-child {
  position: absolute;
  top: 3px;
  z-index: 2;
  width: 19px;
  height: 4px;
  border-radius: 999px;
  background: #18a877;
}

.brand-symbol i:first-child {
  left: 5px;
  transform: rotate(12deg);
}

.brand-symbol i:last-child {
  right: 5px;
  transform: rotate(-12deg);
}

.brand-copy-v35 {
  display: grid;
  gap: 2px;
}

.brand-copy-v35 b {
  color: var(--v35-navy);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.045em;
}

.brand-copy-v35 b span,
.footer-brand-v35 b span {
  color: var(--v35-green);
}

.brand-copy-v35 small {
  color: #7a8ea5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-nav-v35 {
  flex: 1;
  margin: 0 14px;
  gap: 2px;
}

.site-nav-v35 a {
  position: relative;
  padding: 14px 8px;
  color: #16314e;
  font-size: 12px;
  font-weight: 720;
}

.site-nav-v35 a::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--v35-green);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .18s ease, transform .18s ease;
}

.site-nav-v35 a:hover::after,
.site-nav-v35 a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-user-v35 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-login-link {
  color: #173553;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.site-login-link:hover,
.site-login-link:focus-visible {
  color: var(--v35-green-dark);
}

.site-entry-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-entry-login {
  border: 1px solid #cddae8;
  background: #fff;
  color: #173553;
  box-shadow: 0 8px 18px rgba(8, 39, 68, .07);
}

.site-entry-signup {
  border: 0;
  background: linear-gradient(135deg, var(--v35-green), #0bb788);
  color: #fff;
  box-shadow: 0 12px 24px rgba(24, 168, 119, .22);
}

.site-entry-login:hover,
.site-entry-login:focus-visible {
  border-color: #a7bdd4;
  color: var(--v35-green-dark);
}

.site-entry-signup:hover,
.site-entry-signup:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.site-access-v35 {
  min-height: 48px;
  padding: 0 18px;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v35-green), #0bb788);
  box-shadow: 0 12px 24px rgba(24, 168, 119, .22);
  font-size: 13px;
}

.site-access-v35:hover,
.site-access-v35:focus-visible {
  background: linear-gradient(135deg, #149b6d, #0da47b);
  box-shadow: 0 16px 30px rgba(24, 168, 119, .28);
}

.hero-v35 {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #082744;
}

.hero-v35-media,
.hero-v35-overlay {
  position: absolute;
  inset: 0;
}

.hero-v35-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 42%;
}

.hero-v35-overlay {
  background:
    linear-gradient(90deg, rgba(4, 28, 51, .98) 0%, rgba(5, 32, 57, .94) 36%, rgba(5, 32, 57, .63) 58%, rgba(5, 32, 57, .13) 80%, rgba(5, 32, 57, .06) 100%),
    linear-gradient(180deg, rgba(4, 22, 40, .08), rgba(4, 22, 40, .28));
}

.hero-v35-inner {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 64px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(260px, 1fr);
  align-items: center;
  gap: 56px;
  padding: 64px 0 76px;
}

.hero-v35-copy {
  max-width: 760px;
}

.hero-v35-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #61e1b4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-v35 h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-v35 h1 em {
  color: #62ddb2;
  font-style: normal;
}

.hero-v35-copy > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #e4edf6;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-v35-checks {
  max-width: 690px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 30px;
}

.hero-v35-checks span {
  position: relative;
  padding-left: 32px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-v35-checks span::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--v35-green);
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.hero-actions-v35 {
  margin-top: 30px;
  gap: 14px;
}

.hero-actions-v35 .btn-main {
  min-height: 54px;
  padding: 0 24px;
  gap: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #18a877, #0fbf8e);
  box-shadow: 0 16px 34px rgba(11, 190, 139, .22);
  font-weight: 850;
}

.hero-outline-v35 {
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(6, 31, 55, .3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-outline-v35:hover,
.hero-outline-v35:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.hero-v35-quote {
  align-self: end;
  justify-self: end;
  width: min(340px, 100%);
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(2, 22, 40, .18);
  backdrop-filter: blur(12px);
}

.hero-v35-quote span {
  color: #0f6e50;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.hero-v35-quote blockquote {
  margin: 10px 0 0;
  color: #19334f;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.52;
}

.hero-metrics-v35 {
  position: relative;
  z-index: 4;
  width: min(1440px, calc(100% - 48px));
  margin: -54px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d7e2ee;
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 52px rgba(8, 39, 68, .13);
}

.hero-metrics-v35 article {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 26px 24px;
}

.hero-metrics-v35 article + article {
  border-left: 1px solid #dfe8f1;
}

.metric-icon-v35 {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e8f8f2;
  color: var(--v35-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.hero-metrics-v35 strong {
  display: block;
  color: var(--v35-navy);
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-metrics-v35 sup {
  font-size: .55em;
}

.hero-metrics-v35 p {
  margin: 7px 0 0;
  color: #4c6279;
  font-size: 12px;
  line-height: 1.45;
}

.benefit-strip-v35 {
  width: min(1440px, calc(100% - 64px));
  margin: 24px auto 74px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.benefit-strip-v35 article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: center;
  column-gap: 12px;
  padding: 16px;
  border: 1px solid #e0e8f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbfe);
}

.benefit-strip-v35 article > span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e9f7f2;
  color: var(--v35-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.benefit-strip-v35 b {
  grid-area: title;
  color: #17314d;
  font-size: 12px;
  line-height: 1.25;
}

.benefit-strip-v35 p {
  grid-area: text;
  margin: 2px 0 0;
  color: #718398;
  font-size: 10px;
  line-height: 1.35;
}

.curriculum-v36,
.methodology-v36,
.teacher-experience-v36 {
  width: min(1360px, calc(100% - 64px));
  margin: 74px auto 0;
}

.curriculum-copy-v36 {
  max-width: 860px;
}

.curriculum-copy-v36 h2 {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}

.curriculum-layout-v36 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 18px;
  align-items: stretch;
}

.year-map-v36 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 39, 68, .07);
}

.year-map-v36 article {
  position: relative;
  min-height: 258px;
  padding: 28px;
}

.year-map-v36 article + article {
  border-left: 1px solid #dfe8f1;
}

.year-map-v36 article::before {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  height: 5px;
  border-radius: 999px;
  background: #dce9f4;
  content: "";
}

.year-map-v36 article::after {
  position: absolute;
  bottom: 22px;
  left: 28px;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--v35-green);
  box-shadow: 0 0 0 1px #b7dacd;
  content: "";
}

.year-map-v36 span,
.method-grid-v36 span {
  color: var(--v35-green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.year-map-v36 h3,
.learning-card-v36 h3,
.method-grid-v36 h3 {
  margin: 13px 0 10px;
  color: var(--v35-navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.year-map-v36 p,
.method-grid-v36 p {
  margin: 0;
  color: #5e7288;
  font-size: 14px;
  line-height: 1.62;
}

.learning-card-v36 {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid #cfe8df;
  border-radius: 24px;
  background: linear-gradient(180deg, #f0fbf7, #fff);
}

.learning-card-v36 h3 {
  margin-top: 0;
}

.learning-card-v36 > div {
  display: grid;
  gap: 12px;
}

.learning-card-v36 span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #d8eee6;
  border-radius: 16px;
  background: #fff;
}

.learning-card-v36 b {
  color: #123251;
  font-size: 15px;
}

.learning-card-v36 small {
  color: #60758b;
  font-size: 12px;
  line-height: 1.5;
}

.methodology-v36 {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: start;
  padding: 34px;
  border: 1px solid #dbe5ef;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f3f8fc);
}

.methodology-head-v36 h2,
.teacher-experience-copy-v36 h2 {
  margin: 10px 0 14px;
  color: var(--v35-navy);
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.methodology-head-v36 p,
.teacher-experience-copy-v36 p {
  margin: 0;
  color: #5f7389;
  font-size: 15px;
  line-height: 1.7;
}

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

.method-grid-v36 article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid #dce6f0;
  border-radius: 18px;
  background: #fff;
}

.teacher-experience-v36 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 42px;
  align-items: center;
  padding: clamp(30px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(8, 39, 68, .97), rgba(9, 56, 88, .94)),
    #082744;
  color: #fff;
}

.teacher-experience-copy-v36 h2 {
  color: #fff;
}

.teacher-experience-copy-v36 p {
  color: #d6e4f2;
}

.teacher-benefits-v36 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.teacher-benefits-v36 span {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  color: #eef7ff;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.45;
}

.phone-demo-v36 {
  display: grid;
  justify-items: center;
}

.phone-shell-v36 {
  width: min(100%, 344px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px;
  background: #f7fafc;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .22);
}

.phone-top-v36 {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  min-height: 38px;
  color: #14324f;
}

.phone-top-v36 span {
  justify-self: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbe5ef;
}

.phone-top-v36 b {
  justify-self: center;
  font-size: 13px;
}

.phone-top-v36 i {
  justify-self: center;
  width: 20px;
  height: 5px;
  border-radius: 999px;
  background: #dbe5ef;
}

.phone-panel-v36 {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f3f8fc);
  color: #14324f;
}

.phone-panel-v36 small {
  color: #0d835e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.phone-panel-v36 h3 {
  margin: 9px 0 8px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0;
}

.phone-panel-v36 p {
  margin: 0;
  color: #5f7389;
  font-size: 12px;
  line-height: 1.5;
}

.phone-progress-v36 {
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6f0;
}

.phone-progress-v36 span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--v35-green);
}

.phone-actions-v36 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.phone-actions-v36 span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #0b3158;
  color: #fff;
  font-size: 12px;
  font-weight: 820;
}

.phone-actions-v36 span + span {
  background: var(--v35-green);
}

.phone-list-v36 {
  display: grid;
  gap: 8px;
  padding: 12px 3px 4px;
}

.phone-list-v36 span {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
}

.phone-list-v36 b {
  color: #14324f;
  font-size: 13px;
}

.phone-list-v36 small {
  color: #667b91;
  font-size: 11px;
  line-height: 1.35;
}

.knowledge-v40 {
  background: #f7fafe;
}

.knowledge-hero-v40 {
  width: min(1360px, calc(100% - 64px));
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr);
  gap: 30px;
  align-items: stretch;
}

.knowledge-hero-copy-v40 {
  display: grid;
  align-content: center;
  min-height: 560px;
  padding: clamp(34px, 4vw, 58px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(8, 39, 68, .98), rgba(10, 57, 92, .95)),
    #082744;
  color: #fff;
}

.knowledge-hero-copy-v40 h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.knowledge-hero-copy-v40 p {
  max-width: 720px;
  margin: 20px 0 0;
  color: #dce9f6;
  font-size: 18px;
  line-height: 1.65;
}

.knowledge-hero-actions-v40 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.knowledge-hero-media-v40 {
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #dbe5ef;
}

.knowledge-hero-media-v40 img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.audit-metrics-v40,
.audit-section-v40,
.audit-cta-v40 {
  width: min(1360px, calc(100% - 64px));
  margin: 26px auto 0;
}

.audit-metrics-v40 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.audit-metrics-v40 article {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: #fff;
}

.audit-metrics-v40 strong {
  display: block;
  color: var(--v35-navy);
  font-size: 30px;
  line-height: 1;
}

.audit-metrics-v40 span {
  display: block;
  margin-top: 8px;
  color: #62778d;
  font-size: 12px;
  line-height: 1.45;
}

.audit-section-v40 {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid #dbe5ef;
  border-radius: 28px;
  background: #fff;
}

.audit-head-v40 {
  max-width: 940px;
  margin-bottom: 24px;
}

.audit-head-v40 h2,
.audit-live-v40 h2,
.audit-cta-v40 h2 {
  margin: 9px 0 12px;
  color: var(--v35-navy);
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.audit-head-v40 p,
.audit-live-v40 p,
.audit-cta-v40 p {
  margin: 0;
  color: #5f7389;
  font-size: 15px;
  line-height: 1.7;
}

.audit-layer-grid-v40 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audit-layer-grid-v40 article,
.live-grid-v40 article,
.limits-grid-v40 article {
  min-width: 0;
  padding: 22px;
  border: 1px solid #dce6f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
}

.audit-layer-grid-v40 span {
  color: var(--v35-green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.audit-layer-grid-v40 h3,
.live-grid-v40 h3 {
  margin: 12px 0 10px;
  color: var(--v35-navy);
  font-size: 21px;
  line-height: 1.18;
}

.audit-layer-grid-v40 p,
.live-grid-v40 p {
  margin: 0;
  color: #5f7389;
  font-size: 14px;
  line-height: 1.62;
}

.audit-table-wrap-v40 {
  overflow-x: auto;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: #fff;
}

.audit-table-v40 {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.audit-table-v40 caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.audit-table-v40 th,
.audit-table-v40 td {
  padding: 16px;
  border-bottom: 1px solid #e2ebf4;
  text-align: left;
  vertical-align: top;
}

.audit-table-v40 th {
  background: #f1f6fb;
  color: #17314d;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-table-v40 td {
  color: #536a82;
  font-size: 13px;
  line-height: 1.55;
}

.audit-table-v40 tr:last-child td {
  border-bottom: 0;
}

.audit-table-v40 a {
  color: #0f684c;
  font-weight: 850;
  text-decoration: none;
}

.audit-table-v40 a:hover,
.audit-table-v40 a:focus-visible {
  text-decoration: underline;
}

.trace-list-v40 {
  counter-reset: trace;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trace-list-v40 li {
  position: relative;
  min-height: 180px;
  padding: 22px;
  border: 1px solid #dce6f0;
  border-radius: 18px;
  background: #f9fbfd;
  counter-increment: trace;
}

.trace-list-v40 li::before {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--v35-green);
  color: #fff;
  content: counter(trace);
  font-size: 14px;
  font-weight: 900;
}

.trace-list-v40 b,
.limits-grid-v40 b {
  display: block;
  color: var(--v35-navy);
  font-size: 17px;
  line-height: 1.25;
}

.trace-list-v40 span,
.limits-grid-v40 span {
  display: block;
  margin-top: 9px;
  color: #60758b;
  font-size: 13px;
  line-height: 1.6;
}

.audit-live-v40 {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  background:
    linear-gradient(135deg, #ffffff, #f2fbf7);
}

.live-grid-v40 {
  display: grid;
  gap: 12px;
}

.live-grid-v40 article {
  background: #fff;
}

.live-grid-v40 h3 {
  margin-top: 0;
}

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

.audit-cta-v40 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
  background: linear-gradient(135deg, #082744, #0a3c62);
  color: #fff;
}

.audit-cta-v40 h2 {
  max-width: 820px;
  color: #fff;
}

.audit-cta-v40 p {
  max-width: 760px;
  color: #dce9f6;
}

.audit-cta-v40 .btn-main {
  flex: 0 0 auto;
}

.feature-v35,
.authority-v35,
.sources-v35,
.commitment-v35,
.cta-v35,
.footer-v35 {
  width: min(1360px, calc(100% - 64px));
}

.feature-v35 {
  padding-top: 24px;
}

.feature-v35 .section-copy {
  max-width: 820px;
  margin-bottom: 28px;
}

.feature-v35 .section-copy h2,
.knowledge-band-copy h2,
.sources-v35-copy h2,
.commitment-v35 h2 {
  color: var(--v35-navy);
  letter-spacing: -.045em;
}

.feature-grid-v35 {
  gap: 14px;
}

.feature-grid-v35 .feature-card {
  border-radius: 20px;
  border: 1px solid #dce6f0;
  background: linear-gradient(180deg, #fff, #f9fbfd);
  box-shadow: none;
}

.knowledge-band-v35 {
  width: min(1360px, calc(100% - 64px));
  margin: 74px auto 24px;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 39, 68, .08);
}

.knowledge-band-copy {
  display: grid;
  align-content: center;
  padding: clamp(32px, 4vw, 58px);
}

.knowledge-band-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.knowledge-band-copy > p {
  margin: 0;
  color: #5b7087;
  font-size: 16px;
  line-height: 1.65;
}

.knowledge-points-v35 {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.knowledge-points-v35 span {
  position: relative;
  padding-left: 24px;
  color: #243b54;
  font-size: 14px;
  font-weight: 720;
}

.knowledge-points-v35 span::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v35-green);
  content: "";
}

.knowledge-actions-v35 {
  margin-top: 24px;
}

.knowledge-actions-v35 .btn-main {
  min-height: 50px;
  padding: 0 20px;
  gap: 10px;
  border-radius: 12px;
}

.knowledge-photo-v35 {
  min-height: 470px;
  margin: 0;
}

.knowledge-photo-v35 img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.authority-v35 {
  margin-top: 18px;
  padding-top: 0;
}

.pillar-grid-v35 {
  gap: 14px;
}

.pillar-grid-v35 .pillar-card {
  border-radius: 20px;
  box-shadow: none;
}

.sources-v35 {
  margin: 78px auto 0;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid #dbe5ef;
  border-bottom: 1px solid #dbe5ef;
  background: #fff;
}

.sources-v35-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.sources-v35-copy p {
  margin: 0;
  color: #64788e;
  font-size: 13px;
  line-height: 1.6;
}

.source-marks-v35 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.source-marks-v35 > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  background: #f9fbfd;
}

.source-marks-v35 b {
  color: var(--v35-navy);
  font-size: 17px;
  letter-spacing: -.02em;
}

.source-marks-v35 small {
  color: #708298;
  font-size: 10px;
  line-height: 1.35;
}

.commitment-v35 {
  margin-top: 74px;
  border-radius: 26px;
}

.cta-v35 {
  margin-top: 34px;
  border-radius: 24px;
}

.footer-v35 {
  margin-top: 26px;
  border-radius: 0;
  width: 100%;
  padding: 38px max(32px, calc((100% - 1360px) / 2));
}

.footer-brand-v35 {
  width: min(1360px, 100%);
}

.footer-brand-v35 b {
  color: #fff;
  font-size: 28px;
  letter-spacing: -.04em;
}

.footer-brand-v35 small {
  color: #9db1c8;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.footer-symbol::before,
.footer-symbol::after {
  background: #fff;
}

.footer-symbol i:first-child,
.footer-symbol i:last-child {
  background: #6ae0b7;
}

.site-v35 .legal-footer .footer-grid,
.site-v35 .legal-footer .footer-bottom {
  width: min(1360px, 100%);
}

@media (max-width: 1200px) {
  .site-nav-v35 {
    display: none;
  }

  .benefit-strip-v35 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .curriculum-layout-v36,
  .methodology-v36,
  .teacher-experience-v36 {
    grid-template-columns: 1fr;
  }

  .teacher-benefits-v36 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .knowledge-hero-v40,
  .audit-live-v40 {
    grid-template-columns: 1fr;
  }

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

  .audit-layer-grid-v40,
  .trace-list-v40 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-cta-v40 {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-metrics-v35 article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #dfe8f1;
  }

  .hero-metrics-v35 article:nth-child(4) {
    border-top: 1px solid #dfe8f1;
  }
}

@media (max-width: 980px) {
  .site-trustbar-inner > div span:nth-child(2),
  .site-trustbar-inner > div span:nth-child(3) {
    display: none;
  }

  .site-head-v35 {
    min-height: 78px;
  }

  .brand-v35 {
    min-width: 0;
  }

  .brand-copy-v35 small {
    display: none;
  }

  .site-credit {
    display: none;
  }

  .site-access-v35,
  .site-entry-link {
    display: inline-flex;
  }

  .hero-v35-inner {
    grid-template-columns: 1fr;
    min-height: 650px;
  }

  .hero-v35-media img {
    object-position: 68% 45%;
  }

  .hero-v35-overlay {
    background: linear-gradient(90deg, rgba(4, 28, 51, .98) 0%, rgba(4, 28, 51, .90) 55%, rgba(4, 28, 51, .55) 100%);
  }

  .hero-v35-quote {
    display: none;
  }

  .knowledge-band-v35 {
    grid-template-columns: 1fr;
  }

  .year-map-v36 {
    grid-template-columns: 1fr;
  }

  .year-map-v36 article {
    min-height: auto;
    padding-bottom: 58px;
  }

  .year-map-v36 article + article {
    border-left: 0;
    border-top: 1px solid #dfe8f1;
  }

  .method-grid-v36 {
    grid-template-columns: 1fr 1fr;
  }

  .phone-shell-v36 {
    width: min(100%, 390px);
  }

  .knowledge-hero-copy-v40,
  .knowledge-hero-media-v40,
  .knowledge-hero-media-v40 img {
    min-height: 430px;
  }

  .knowledge-hero-copy-v40 h1 {
    font-size: 46px;
  }

  .audit-metrics-v40,
  .limits-grid-v40 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-photo-v35,
  .knowledge-photo-v35 img {
    min-height: 360px;
  }

  .sources-v35 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-head-v35 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 14px !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 2px 14px rgba(8, 39, 68, .07) !important;
  }

  .brand-v35 {
    width: auto !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .brand-symbol {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }

  .brand-copy-v35 b {
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .brand-copy-v35 small {
    display: none !important;
  }

  .site-user-v35 {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
  }

  .site-entry-link {
    width: auto !important;
    min-height: 35px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
  }

  .site-entry-login {
    border: 1px solid #cddae8 !important;
    background: transparent !important;
    color: #173553 !important;
    box-shadow: none !important;
    padding: 0 11px !important;
  }

  .site-entry-signup {
    border: 0 !important;
    background: linear-gradient(135deg, var(--v35-green), #0bb788) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(24, 168, 119, .25) !important;
    padding: 0 15px !important;
  }

  .site-access-v35 {
    width: auto !important;
    min-height: 35px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 760px) {
  .site-trustbar-inner,
  .hero-v35-inner,
  .benefit-strip-v35,
  .curriculum-v36,
  .methodology-v36,
  .teacher-experience-v36,
  .knowledge-hero-v40,
  .audit-metrics-v40,
  .audit-section-v40,
  .audit-cta-v40,
  .feature-v35,
  .knowledge-band-v35,
  .authority-v35,
  .sources-v35,
  .commitment-v35,
  .cta-v35 {
    width: min(100% - 24px, 680px);
  }

  .site-trustbar-inner {
    min-height: 38px;
    justify-content: center;
    font-size: 10px;
  }

  .site-trustbar-inner > div {
    display: none;
  }



  .hero-v35 {
    min-height: 670px;
  }

  .hero-v35-inner {
    min-height: 670px;
    padding: 52px 0 96px;
  }

  .hero-v35-media img {
    object-position: 70% 52%;
  }

  .hero-v35-overlay {
    background:
      linear-gradient(90deg, rgba(4, 28, 51, .98) 0%, rgba(4, 28, 51, .91) 70%, rgba(4, 28, 51, .72) 100%),
      linear-gradient(180deg, rgba(4, 28, 51, .18), rgba(4, 28, 51, .45));
  }

  .hero-v35-kicker {
    font-size: 9px;
  }

  .hero-v35 h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-v35-copy > p {
    font-size: 16px;
  }

  .hero-v35-checks {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-actions-v35 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions-v35 .btn-main,
  .hero-outline-v35 {
    width: 100%;
  }

  .hero-metrics-v35 {
    width: min(100% - 24px, 680px);
    margin-top: -54px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .hero-metrics-v35 article {
    padding: 18px;
  }

  .hero-metrics-v35 article + article,
  .hero-metrics-v35 article:nth-child(3),
  .hero-metrics-v35 article:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #dfe8f1;
  }

  .benefit-strip-v35 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    margin-bottom: 52px;
  }

  .benefit-strip-v35 article {
    grid-template-columns: 36px 1fr;
    padding: 12px;
  }

  .benefit-strip-v35 article > span {
    width: 36px;
    height: 36px;
  }

  .curriculum-v36,
  .methodology-v36,
  .teacher-experience-v36 {
    margin-top: 52px;
  }

  .curriculum-layout-v36 {
    gap: 12px;
  }

  .year-map-v36,
  .learning-card-v36,
  .methodology-v36,
  .teacher-experience-v36 {
    border-radius: 22px;
  }

  .year-map-v36 article,
  .learning-card-v36,
  .method-grid-v36 article {
    padding: 20px;
  }

  .year-map-v36 article {
    padding-bottom: 52px;
  }

  .curriculum-copy-v36 h2,
  .methodology-head-v36 h2,
  .teacher-experience-copy-v36 h2 {
    font-size: 34px;
  }

  .year-map-v36 h3,
  .learning-card-v36 h3,
  .method-grid-v36 h3 {
    font-size: 20px;
  }

  .methodology-v36,
  .teacher-experience-v36 {
    padding: 24px;
  }

  .method-grid-v36,
  .teacher-benefits-v36 {
    grid-template-columns: 1fr;
  }

  .teacher-benefits-v36 span {
    min-height: 0;
  }

  .knowledge-hero-v40 {
    gap: 12px;
    margin-top: 22px;
  }

  .knowledge-hero-copy-v40,
  .knowledge-hero-media-v40,
  .audit-section-v40,
  .audit-cta-v40 {
    border-radius: 22px;
  }

  .knowledge-hero-copy-v40 {
    min-height: 0;
    padding: 24px;
  }

  .knowledge-hero-media-v40,
  .knowledge-hero-media-v40 img {
    min-height: 280px;
  }

  .knowledge-hero-copy-v40 h1,
  .audit-head-v40 h2,
  .audit-live-v40 h2,
  .audit-cta-v40 h2 {
    font-size: 34px;
  }

  .knowledge-hero-copy-v40 p {
    font-size: 16px;
  }

  .audit-metrics-v40,
  .audit-layer-grid-v40,
  .trace-list-v40,
  .limits-grid-v40 {
    grid-template-columns: 1fr;
  }

  .audit-section-v40,
  .audit-layer-grid-v40 article,
  .trace-list-v40 li,
  .live-grid-v40 article,
  .limits-grid-v40 article {
    padding: 20px;
  }

  .trace-list-v40 li {
    min-height: 0;
  }

  .knowledge-actions-v35 .btn-main {
    width: 100%;
  }

  .knowledge-band-v35 {
    margin-top: 52px;
    border-radius: 22px;
  }

  .knowledge-band-copy {
    padding: 24px;
  }

  .knowledge-band-copy h2 {
    font-size: 34px;
  }

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

  .sources-v35 {
    padding: 24px 0;
    border-radius: 0;
  }

  .footer-v35 {
    padding: 28px 20px;
  }
}

@media (max-width: 430px) {
  .brand-copy-v35 b {
    font-size: 22px;
  }

  .site-access-v35 span {
    display: none;
  }

  .site-access-v35 {
    padding: 0 10px;
  }

  .benefit-strip-v35,
  .source-marks-v35,
  .phone-list-v36 span {
    grid-template-columns: 1fr;
  }

  .curriculum-copy-v36 h2,
  .methodology-head-v36 h2,
  .teacher-experience-copy-v36 h2 {
    font-size: 31px;
  }

  .knowledge-hero-actions-v40 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .knowledge-hero-actions-v40 .btn-main,
  .knowledge-hero-actions-v40 .btn-ghost,
  .audit-cta-v40 .btn-main {
    width: 100%;
  }

  .knowledge-hero-copy-v40 h1,
  .audit-head-v40 h2,
  .audit-live-v40 h2,
  .audit-cta-v40 h2 {
    font-size: 31px;
  }

  .phone-shell-v36 {
    border-radius: 28px;
    padding: 10px;
  }

  .phone-panel-v36 {
    border-radius: 20px;
    padding: 18px;
  }

  .phone-panel-v36 h3 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-v35 *,
  .site-v35 *::before,
  .site-v35 *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


.mobile-brand {
  color: inherit;
  text-decoration: none;
}

.mobile-brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

/* v38 - consentimento discreto em formato de balão de chat */
.legal-consent {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 999;
  width: min(430px, calc(100vw - 24px));
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.legal-consent::before {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid #d7e3ef;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 38px rgba(6, 31, 56, .18);
  content: "👋";
  font-size: 25px;
  line-height: 1;
  pointer-events: auto;
}

.legal-consent-card {
  position: relative;
  width: auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 17px 18px 16px;
  border: 1px solid #d7e3ef;
  border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 52px rgba(6, 31, 56, .18);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.legal-consent-card::before {
  position: absolute;
  bottom: 13px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-bottom: 1px solid #d7e3ef;
  border-left: 1px solid #d7e3ef;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.legal-consent-copy {
  gap: 6px;
}

.legal-chip {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9f8f2;
  color: #0f7b58;
  font-size: 8px;
  letter-spacing: .11em;
}

.legal-consent h2 {
  font-size: 16px;
  line-height: 1.25;
}

.legal-consent p {
  font-size: 11.5px;
  line-height: 1.52;
}

.legal-links {
  gap: 10px;
}

.legal-links a {
  font-size: 10.5px;
}

.legal-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.legal-consent-actions .btn-main,
.legal-consent-actions .btn-ghost {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .legal-consent {
    inset: auto 10px 10px 10px;
    width: auto;
    align-items: flex-end;
    gap: 8px;
    padding: 0;
  }

  .legal-consent::before {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 22px;
  }

  .legal-consent-card {
    padding: 14px;
    border-radius: 18px 18px 18px 6px;
  }

  .legal-consent h2 {
    font-size: 14px;
  }

  .legal-consent p {
    font-size: 10.5px;
  }

  .legal-consent-actions {
    display: flex;
    justify-content: flex-end;
  }
}

.source-marks-v35 > span {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 16px 18px;
  text-align: left;
}

.source-logo-v36 {
  flex: 0 0 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
}

.source-logo-v36 img {
  display: block;
  width: 100%;
  max-width: 82px;
  max-height: 48px;
  object-fit: contain;
}

.source-logo-pair-v36 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.source-logo-pair-v36 img {
  width: 100%;
  max-width: none;
  height: 34px;
}

.source-copy-v36 {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.source-copy-v36 b {
  color: var(--v35-navy);
  font-size: 16px;
  line-height: 1.2;
}

.source-copy-v36 small {
  color: #708298;
  font-size: 12px;
  line-height: 1.45;
}

.cta-v36 {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d7e4ef;
  box-shadow: 0 24px 60px rgba(15, 43, 77, .08);
}

.cta-copy-v36 {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(34px, 4vw, 58px);
  background: linear-gradient(135deg, #10345d 0%, #184979 52%, #1d5b93 100%);
  color: #ffffff;
}

.cta-v36 .eyebrow {
  color: #83ddb0;
}

.cta-copy-v36 h2 {
  max-width: 12ch;
  color: #ffffff;
}

.cta-copy-v36 .btn-main {
  margin-top: 24px;
}

.cta-art-v36 {
  min-height: 380px;
  margin: 0;
  background: #e8f2fb;
  border-left: 1px solid #dbe7f3;
}

.cta-art-v36 img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1100px) {
  .source-marks-v35 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .cta-v36 {
    grid-template-columns: 1fr;
  }

  .cta-art-v36,
  .cta-art-v36 img {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .source-marks-v35 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .source-marks-v35 > span {
    gap: 12px;
    min-height: 96px;
    padding: 16px;
  }

  .source-logo-v36 {
    flex-basis: 82px;
    min-width: 82px;
  }

  .source-logo-v36 img {
    max-width: 82px;
    max-height: 48px;
  }

  .source-logo-pair-v36 img {
    height: 30px;
  }

  .cta-copy-v36 {
    padding: 26px 22px;
  }

  .cta-art-v36,
  .cta-art-v36 img {
    min-height: 230px;
  }
}

.site-v35 .footer-v35 {
  width: 100vw;
  margin: clamp(56px, 6vw, 92px) calc(50% - 50vw) 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #061d38;
  color: #fff;
  box-shadow: none;
  overflow: hidden;
}

.site-v35 .footer-v35::before {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #6ae0b7 0%, #3c82ff 48%, #93c5fd 100%);
  content: "";
}

.site-v35 .footer-v35 .footer-brand-block,
.site-v35 .footer-v35 .footer-grid,
.site-v35 .footer-v35 .footer-bottom {
  width: min(1280px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.site-v35 .footer-v35 .footer-brand-block {
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0 30px;
  border-bottom: 1px solid rgba(218, 231, 245, .16);
}

.site-v35 .footer-v35 .footer-brand-block > div {
  display: grid;
  gap: 8px;
}

.site-v35 .footer-v35 .footer-brand-v35 b {
  color: #fff;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: .95;
  letter-spacing: -.055em;
}

.site-v35 .footer-v35 .footer-brand-v35 b span {
  color: #6ae0b7;
}

.site-v35 .footer-v35 .footer-brand-v35 small {
  max-width: 360px;
  color: #b9cbe0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: .08em;
}

.site-v35 .footer-v35 .footer-symbol {
  width: 54px;
  height: 42px;
  flex: 0 0 54px;
}

.site-v35 .footer-v35 .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.05fr 1.2fr 1.15fr;
  gap: clamp(28px, 4vw, 72px);
  padding: 34px 0 38px;
}

.site-v35 .footer-v35 .footer-grid section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.site-v35 .footer-v35 .footer-grid h3 {
  margin: 0 0 4px;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-v35 .footer-v35 .footer-grid a,
.site-v35 .footer-v35 .footer-grid span,
.site-v35 .footer-v35 .footer-grid b {
  color: #bfd0e4;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-v35 .footer-v35 .footer-grid b {
  color: #fff;
  font-weight: 850;
}

.site-v35 .footer-v35 .footer-grid a {
  width: fit-content;
  transition: color .18s ease, transform .18s ease;
}

.site-v35 .footer-v35 .footer-grid a:hover,
.site-v35 .footer-v35 .footer-grid a:focus-visible {
  color: #6ae0b7;
  transform: translateX(3px);
}

.site-v35 .footer-v35 .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(218, 231, 245, .16);
  color: #91a9c2;
  font-size: 12px;
}

@media (max-width: 900px) {
  .site-v35 .footer-v35 .footer-brand-block,
  .site-v35 .footer-v35 .footer-grid,
  .site-v35 .footer-v35 .footer-bottom {
    width: min(100% - 32px, 720px);
  }

  .site-v35 .footer-v35 .footer-brand-block {
    min-height: 0;
    padding: 32px 0 24px;
  }

  .site-v35 .footer-v35 .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
    padding: 28px 0 32px;
  }
}

@media (max-width: 560px) {
  .site-v35 .footer-v35 .footer-brand-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-v35 .footer-v35 .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-v35 .footer-v35 .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

.site-v35 .footer-v35 .footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.site-v35 .footer-v35 .footer-main {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 2.6fr);
  gap: clamp(34px, 5vw, 82px);
  padding: 44px 0 40px;
  border-bottom: 1px solid rgba(218, 231, 245, .16);
}

.site-v35 .footer-v35 .footer-main .footer-brand-block,
.site-v35 .footer-v35 .footer-main .footer-grid,
.site-v35 .footer-v35 .footer-inner .footer-bottom {
  width: auto;
  margin: 0;
}

.site-v35 .footer-v35 .footer-main .footer-brand-block {
  min-height: 0;
  align-content: start;
  align-items: flex-start;
  flex-direction: column;
  justify-content: start;
  padding: 0;
  border-bottom: 0;
}

.site-v35 .footer-v35 .footer-main .footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  padding: 0;
}

.site-v35 .footer-v35 .footer-inner .footer-bottom {
  min-height: 68px;
  padding: 19px 0 27px;
  border-top: 0;
}

@media (max-width: 1100px) {
  .site-v35 .footer-v35 .footer-main {
    grid-template-columns: 1fr;
  }

  .site-v35 .footer-v35 .footer-main .footer-brand-block {
    max-width: 520px;
  }
}

@media (max-width: 760px) {
  .site-v35 .footer-v35 .footer-inner {
    width: min(100% - 32px, 720px);
  }

  .site-v35 .footer-v35 .footer-main .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-v35 .footer-v35 .footer-main {
    padding: 34px 0 30px;
  }

  .site-v35 .footer-v35 .footer-main .footer-grid {
    grid-template-columns: 1fr;
  }
}

.video-demo-v40 {
  margin: 74px 0 0;
  padding: clamp(58px, 7vw, 96px) max(24px, calc((100vw - 1360px) / 2));
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  border-top: 1px solid #dbe8f1;
  border-bottom: 1px solid #dbe8f1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(238, 248, 244, .88)),
    linear-gradient(180deg, #f8fbfe, #eef7f4);
}

.video-demo-copy-v40 {
  min-width: 0;
}

/* v44 - aplicativos desktop */
.download-site-v44 main {
  overflow: hidden;
}

.download-hero-v44 {
  position: relative;
  min-height: min(720px, calc(100vh - 116px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #071f38;
}

.download-hero-media-v44,
.download-hero-shade-v44 {
  position: absolute;
  inset: 0;
}

.download-hero-media-v44 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.download-hero-shade-v44 {
  background: linear-gradient(90deg, rgba(5, 25, 47, .94) 0%, rgba(5, 25, 47, .76) 42%, rgba(5, 25, 47, .12) 78%);
}

.download-hero-copy-v44 {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(58px, 9vh, 104px) 0;
  color: #fff;
}

.download-hero-copy-v44 h1 {
  max-width: 720px;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.download-hero-copy-v44 > p {
  max-width: 650px;
  margin: 0;
  color: #d8e6f2;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
}

.download-hero-points-v44 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 32px;
}

.download-hero-points-v44 span {
  position: relative;
  padding-left: 19px;
  color: #f4fbff;
  font-size: 13px;
  font-weight: 800;
}

.download-hero-points-v44 span::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64ddb2;
  content: "";
}

.download-section-v44,
.download-benefits-v44,
.download-steps-v44,
.download-cta-v44 {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.download-section-v44 {
  padding: clamp(64px, 8vw, 104px) 0 56px;
}

.download-section-head-v44 {
  max-width: 780px;
}

.download-section-head-v44 h2,
.download-benefits-copy-v44 h2,
.download-cta-v44 h2 {
  margin: 10px 0 14px;
  color: #0b2947;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.download-section-head-v44 p,
.download-benefits-copy-v44 p,
.download-cta-v44 p {
  margin: 0;
  color: #5e7188;
  font-size: 16px;
  line-height: 1.65;
}

.download-grid-v44 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.download-card-v44 {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #d7e2ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 39, 68, .07);
}

.download-card-v44.is-featured {
  border-color: #7ccfb0;
  box-shadow: 0 18px 44px rgba(15, 127, 91, .13);
}

.download-os-v44 {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #0b2c50;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.download-card-v44:nth-child(2) .download-os-v44 {
  background: #14815e;
}

.download-card-v44:nth-child(3) .download-os-v44 {
  background: #384454;
}

.download-card-copy-v44 {
  flex: 1;
}

.download-card-copy-v44 > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.download-card-copy-v44 h3 {
  margin: 0;
  color: #102a46;
  font-size: 24px;
}

.download-card-copy-v44 small {
  padding: 5px 8px;
  border-radius: 4px;
  background: #e8f8f2;
  color: #0f7958;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card-copy-v44 > p {
  margin: 5px 0 24px;
  color: #64768b;
  font-size: 14px;
}

.download-card-copy-v44 dl {
  display: grid;
  gap: 16px;
  margin: 0 0 26px;
}

.download-card-copy-v44 dl > div {
  padding-top: 14px;
  border-top: 1px solid #e4ebf2;
}

.download-card-copy-v44 dt {
  margin-bottom: 4px;
  color: #7a8ca1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card-copy-v44 dd {
  margin: 0;
  color: #2a4059;
  font-size: 13px;
  line-height: 1.5;
}

.download-button-v44 {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 6px;
  background: #2259df;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.download-button-v44:hover,
.download-button-v44:focus-visible {
  background: #1747bd;
}

.download-button-v44 svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.download-unavailable-v44 {
  min-height: 50px;
  display: grid;
  place-items: center;
  color: #7b8798;
  font-size: 13px;
}

.download-sign-note-v44 {
  margin: 22px 0 0;
  color: #687b91;
  font-size: 12px;
  text-align: center;
}

.download-benefits-v44 {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(38px, 7vw, 96px);
  padding: clamp(58px, 8vw, 96px) 0;
  border-top: 1px solid #dce6ef;
}

.download-benefits-grid-v44 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #d9e4ee;
  border: 1px solid #d9e4ee;
}

.download-benefits-grid-v44 article {
  min-height: 170px;
  padding: 26px;
  background: #fff;
}

.download-benefits-grid-v44 b {
  display: block;
  margin-bottom: 9px;
  color: #11314f;
  font-size: 17px;
}

.download-benefits-grid-v44 p {
  margin: 0;
  color: #62758b;
  font-size: 14px;
  line-height: 1.6;
}

.download-steps-v44 {
  padding: clamp(62px, 8vw, 96px) 0;
  border-top: 1px solid #dce6ef;
}

.download-steps-v44 ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.download-steps-v44 li {
  display: flex;
  gap: 15px;
  padding: 4px 22px;
  border-left: 1px solid #d8e3ed;
}

.download-steps-v44 li > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: #e7f7f1;
  color: #0e7655;
  font-size: 13px;
  font-weight: 900;
}

.download-steps-v44 b {
  display: block;
  margin-bottom: 6px;
  color: #15334f;
  font-size: 15px;
}

.download-steps-v44 p {
  margin: 0;
  color: #66798f;
  font-size: 13px;
  line-height: 1.55;
}

.download-cta-v44 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(38px, 5vw, 64px);
  border-radius: 8px;
  background: #eaf3fc;
}

.download-cta-v44 > div {
  max-width: 720px;
}

@media (max-width: 980px) {
  .download-grid-v44 {
    grid-template-columns: 1fr;
  }

  .download-card-v44 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(190px, auto);
    gap: 20px;
    align-items: center;
  }

  .download-os-v44,
  .download-card-copy-v44 dl {
    margin: 0;
  }

  .download-card-copy-v44 dl {
    grid-template-columns: 1fr 100px;
  }

  .download-benefits-v44 {
    grid-template-columns: 1fr;
  }

  .download-steps-v44 ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 0;
  }
}

@media (max-width: 700px) {
  .download-hero-v44 {
    min-height: calc(100svh - 130px);
  }

  .download-hero-shade-v44 {
    background: linear-gradient(0deg, rgba(5, 25, 47, .98) 0%, rgba(5, 25, 47, .75) 60%, rgba(5, 25, 47, .24) 100%);
  }

  .download-hero-media-v44 img {
    object-position: 58% center;
  }

  .download-hero-copy-v44 {
    width: calc(100% - 32px);
    padding: 44px 0;
  }

  .download-hero-copy-v44 h1 {
    font-size: 39px;
  }

  .download-hero-copy-v44 > p {
    font-size: 16px;
  }

  .download-section-v44,
  .download-benefits-v44,
  .download-steps-v44,
  .download-cta-v44 {
    width: calc(100% - 32px);
  }

  .download-card-v44 {
    display: flex;
    padding: 22px;
  }

  .download-os-v44 {
    margin-bottom: 18px;
  }

  .download-card-copy-v44 dl {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .download-benefits-grid-v44 {
    grid-template-columns: 1fr;
  }

  .download-benefits-grid-v44 article {
    min-height: 0;
  }

  .download-steps-v44 ol {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .download-steps-v44 li {
    padding: 0;
    border: 0;
  }

  .download-cta-v44 {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }

  .download-cta-v44 .btn-main {
    width: 100%;
  }
}

.video-demo-copy-v40 h2 {
  max-width: 640px;
  margin: 12px 0 0;
  color: #0b2d4d;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.video-demo-copy-v40 p {
  max-width: 610px;
  margin: 18px 0 0;
  color: #405a73;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
}

.video-demo-points-v40 {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.video-demo-points-v40 span {
  position: relative;
  min-height: 34px;
  padding: 7px 0 7px 44px;
  color: #173553;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.video-demo-points-v40 span::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dff6ec;
  color: #087551;
  content: "✓";
  font-size: 15px;
  font-weight: 900;
}

.video-player-v40 {
  min-width: 0;
}

.video-frame-v40 {
  overflow: hidden;
  border: 1px solid rgba(8, 39, 68, .18);
  border-radius: 8px;
  background: #071e35;
  box-shadow: 0 28px 70px rgba(8, 39, 68, .18);
}

.video-frame-v40 video {
  display: block;
  width: 100%;
  aspect-ratio: 960 / 481;
  background: #071e35;
  object-fit: contain;
}

.video-status-v40 {
  margin: 12px 0 0;
  color: #5d6f82;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .video-demo-v40 {
    grid-template-columns: 1fr;
  }

  .video-demo-copy-v40 h2,
  .video-demo-copy-v40 p {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .video-demo-v40 {
    margin-top: 52px;
    padding: 52px 12px;
    gap: 24px;
  }

  .video-demo-copy-v40 h2 {
    font-size: 32px;
  }

  .video-demo-copy-v40 p {
    font-size: 16px;
  }

  .video-frame-v40 {
    box-shadow: 0 18px 42px rgba(8, 39, 68, .16);
  }
}

/* Card de CTA sob o player de vídeo */
.video-cta-card-v40 {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 36px;
  padding: 30px 36px;
  border-radius: 20px;
  border: 1px solid #c8e4d8;
  background: linear-gradient(135deg, #ffffff 0%, #edf9f4 100%);
  box-shadow: 0 16px 40px rgba(17, 107, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.video-cta-card-content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-cta-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: #d4f3e6;
  color: #0c7a54;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.video-cta-card-content h3 {
  margin: 0;
  color: #082744;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 850;
  line-height: 1.25;
}

.video-cta-card-content p {
  margin: 0;
  color: #4b6075;
  font-size: 14.5px;
  line-height: 1.55;
}

.video-cta-card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.video-cta-btn {
  white-space: nowrap;
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 850;
  border-radius: 12px;
  background: linear-gradient(135deg, #18a877, #0bb788);
  color: #fff;
  box-shadow: 0 10px 26px rgba(24, 168, 119, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.video-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(24, 168, 119, 0.45);
}

.video-cta-subtext {
  font-size: 12px;
  font-weight: 650;
  color: #63778a;
}

@media (max-width: 860px) {
  .video-cta-card-v40 {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px;
    margin-top: 22px;
    text-align: center;
    gap: 18px;
  }
  .video-cta-badge {
    margin: 0 auto;
  }
  .video-cta-card-content {
    max-width: 100%;
  }
  .video-cta-card-action {
    width: 100%;
  }
  .video-cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 14.5px;
    padding: 0 16px;
  }
}

/* Seção Exclusiva - Vídeo Demonstração Atividades Lúdicas */
.video-ludicas-v40 {
  margin-top: 0;
  border-top: none;
  border-bottom: 1px solid #dcd6f7;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(99, 102, 241, 0.07) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 244, 255, 0.94)),
    linear-gradient(180deg, #f8fafc, #f1effb);
}

.eyebrow-ludicas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6366f1;
  font-weight: 850;
  letter-spacing: .08em;
}

.video-ludicas-points-v40 span::before {
  background: #6366f1;
}

.video-ludicas-frame-v40 {
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 24px 64px rgba(79, 70, 229, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.video-cta-card-ludicas {
  border: 1px solid #d5cefb;
  background: linear-gradient(135deg, #ffffff 0%, #f7f5ff 55%, #ede9fe 100%);
  box-shadow: 0 18px 46px rgba(99, 102, 241, 0.11);
}

.video-cta-badge-ludicas {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.video-cta-btn-ludicas {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.35);
}

.video-cta-btn-ludicas:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.45);
}

/* Estilos de alta conversão para tela de Cadastro */
.auth-bonus-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e6f8f0;
  border: 1px solid #bcead6;
  color: #0d7953;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.auth-password-row {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-row input {
  width: 100%;
  padding-right: 48px;
}

.btn-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #6b7c90;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.btn-toggle-pass:hover {
  color: #173553;
  background: #f0f4f8;
}

/* ===== EXPERIÊNCIA LÚDICA ===== */
.ludico-section {
  margin: 16px 0 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s;
}

.ludico-section.is-active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .08);
}

.ludico-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
}

.ludico-toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ludico-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed22, #a855f722);
  border: 1px solid #7c3aed44;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}

.ludico-toggle-info > div {
  min-width: 0;
}

.ludico-toggle-info b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.ludico-toggle-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Toggle switch */
.ludico-toggle-btn {
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.ludico-toggle-btn[aria-pressed="true"] {
  background: #7c3aed;
}

.ludico-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s;
}

.ludico-toggle-btn[aria-pressed="true"] .ludico-toggle-knob {
  transform: translateX(20px);
}

/* Ludic config panel */
.ludico-config {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.ludico-config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .ludico-config-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ludico-recursos-box {
  display: grid;
  gap: 10px;
}

.ludico-recursos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ludico-recurso-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}

.ludico-recurso-chip.is-active {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, .08);
  color: #7c3aed;
}

.ludico-recurso-chip .chip-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--muted-2);
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s;
}

.ludico-recurso-chip.is-active .chip-check {
  background: #7c3aed;
  border-color: #7c3aed;
}

.ludico-recurso-chip.is-active .chip-check::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.ludico-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(124, 58, 237, .06);
  border: 1px solid rgba(124, 58, 237, .14);
}

.ludico-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #7c3aed;
  margin-top: 1px;
}

.ludico-note p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Ludic result card */
.ludico-result-card {
  background: linear-gradient(135deg, #7c3aed0a, #a855f70a);
  border: 1.5px solid rgba(124, 58, 237, .2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.ludico-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(124, 58, 237, .12);
}

.ludico-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.ludico-card-header-text {
  flex: 1;
  min-width: 0;
}

.ludico-card-header-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ludico-card-header-text small {
  display: block;
  font-size: 11px;
  color: #7c3aed;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1px;
}

.ludico-card-header-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ludico-card-body {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.ludico-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #7c3aed;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.ludico-objetivo {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.ludico-materiais {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ludico-material-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.ludico-rules {
  display: grid;
  gap: 6px;
}

.ludico-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.ludico-rule-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ludico-variacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.ludico-variacao-card b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ludico-variacao-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.4;
}

.ludico-avaliacao {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(124, 58, 237, .06);
  border: 1px solid rgba(124, 58, 237, .14);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

/* ===== LUDIC PAPER PAGE FORMAT (Padrão A4 como atividade normal) ===== */
.lud-student-paper {
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  page-break-after: always;
  break-after: page;
}

.lud-teacher-paper {
  page-break-after: always;
  break-after: page;
}

.lud-student-paper:last-child,
.lud-teacher-paper:last-child {
  page-break-after: auto;
  break-after: auto;
}

.lud-paper-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(12px, 1.4vw, 18px);
  margin-bottom: 12px;
  align-items: start;
}

@media (max-width: 680px) {
  .lud-paper-hero-grid {
    grid-template-columns: 1fr;
  }
}

.lud-paper-hero-content {
  min-width: 0;
}

.lud-paper-block-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #7c3aed;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lud-paper-proposito {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 8px;
  padding: 8px 12px;
  background: rgba(124, 58, 237, .04);
  border-left: 3px solid #7c3aed;
  border-radius: 0 6px 6px 0;
}

.lud-paper-materials {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  margin-top: 4px;
}

.lud-paper-materials b {
  color: #7c3aed;
  font-weight: 700;
}

.lud-paper-materials span {
  display: inline-block;
  padding: 1px 7px;
  background: var(--surface-soft, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 2px 2px;
  font-size: 11.5px;
  font-weight: 600;
}

.lud-paper-hero-img-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lud-paper-img {
  width: clamp(140px, 13vw, 185px);
  height: clamp(140px, 13vw, 185px);
  object-fit: contain;
  border-radius: 8px;
  border: 1.5px solid rgba(124, 58, 237, .25);
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.lud-paper-no-img {
  width: clamp(140px, 13vw, 185px);
  height: clamp(140px, 13vw, 185px);
  border: 1.5px dashed rgba(124, 58, 237, .3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fdfbf7;
}

.lud-paper-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.lud-paper-img-tools {
  display: flex;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.lud-paper-mini-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.3;
}

.lud-paper-mini-tool:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124, 58, 237, .06);
}

.lud-paper-mini-tool svg {
  width: 12px;
  height: 12px;
}

.lud-paper-section {
  margin-top: 12px;
  page-break-inside: auto;
  break-inside: auto;
}

.lud-paper-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #7c3aed;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1.5px solid rgba(124, 58, 237, .2);
  margin-bottom: 8px;
}

.lud-paper-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  page-break-inside: auto;
  break-inside: auto;
}

@media (max-width: 680px) {
  .lud-paper-rules {
    grid-template-columns: 1fr;
  }
}

.lud-paper-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  page-break-inside: avoid;
  break-inside: avoid;
}

.lud-paper-rule-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #7c3aed;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.lud-paper-rule-item p {
  margin: 0;
  flex: 1;
}

.lud-paper-cut-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
  font-style: italic;
}

.lud-paper-cut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  page-break-inside: auto;
  break-inside: auto;
}

/* Cartão lúdico recortável - figura centralizada no topo */
/* Sessão com dois cartões cada */
.lud-cards-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 12px;
  page-break-inside: avoid;
  break-inside: avoid;
}

@media (max-width: 680px) {
  .lud-cards-section {
    grid-template-columns: 1fr;
  }
}

.lud-paper-card-item {
  border: 1.2px dashed #475569;
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  page-break-inside: avoid;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  box-sizing: border-box;
}

.lud-paper-card-fig-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 2px auto 4px;
  width: 180px;
  height: 125px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.lud-paper-card-fig-box:hover {
  border-color: #7c3aed;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.18);
  transform: translateY(-1px);
}

.lud-paper-card-fig {
  width: 174px;
  height: 119px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lud-paper-card-zoom-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 5px;
  line-height: 1;
  pointer-events: none;
  opacity: 0.65;
  transition: all 0.15s ease;
}

.lud-paper-card-fig-box:hover .lud-paper-card-zoom-badge,
.lud-img-wrap:hover .lud-paper-card-zoom-badge {
  opacity: 1;
  border-color: #7c3aed;
  color: #7c3aed;
  transform: scale(1.08);
}

.lud-paper-card-text-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lud-btn-cards-ai {
  cursor: pointer;
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.lud-btn-cards-ai:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.lud-paper-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(124, 58, 237, .25);
}

.lud-paper-card-body {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
  margin: 4px 0;
  flex: 1;
}

.lud-paper-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px dotted #cbd5e1;
}

.lud-paper-metacog {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 6px;
}

/* Equipe cooperativa */
.lud-paper-team-tips {
  margin: 12px 0 10px;
  padding: 10px 14px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #faf8ff;
}

.lud-paper-team-title {
  font-size: 11px;
  font-weight: 800;
  color: #6d28d9;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lud-paper-team-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
}

@media (max-width: 680px) {
  .lud-paper-team-roles {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Página de recortes no preview de tela */
.lud-paper-cutout-page {
  margin-top: 24px;
}

.lud-paper-cut-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #7c3aed;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.lud-paper-cut-brand span {
  font-size: 13px;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: .04em;
}

.lud-paper-cut-meta {
  font-size: 12px;
  color: #475569;
  display: flex;
  gap: 12px;
}

/* Guia do Professor em Papel */
.lud-teacher-paper .teacher-head {
  border-bottom: 2px solid #7c3aed;
}

.lud-teacher-block {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  page-break-inside: avoid;
  break-inside: avoid;
}

.lud-teacher-block h3 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7c3aed;
}

.lud-teacher-block p,
.lud-teacher-block ul {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #1e293b;
}

.lud-teacher-block ul {
  padding-left: 18px;
}

.lud-teacher-block li {
  margin-bottom: 2px;
}

.lud-teacher-variacoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.lud-teacher-var-box {
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 11.5px;
}

.lud-teacher-var-box b {
  display: block;
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Otimização de Impressão e Economia de Páginas */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 7mm;
  }
  .no-print,
  .result-toolbar,
  .result-top,
  .document-intro,
  .lud-paper-img-tools,
  .lud-hero-image-bar {
    display: none !important;
  }
  .paper-stage {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .paper-page {
    width: 100% !important;
    min-height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    page-break-after: always;
    break-after: page;
  }
  .paper-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .lud-student-paper {
    height: 281mm !important;
    max-height: 281mm !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .lud-paper-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 48mm !important;
    gap: 3.5mm !important;
    margin-bottom: 2mm !important;
    align-items: start !important;
  }
  .lud-paper-hero-content { min-width: 0 !important; }
  .lud-paper-hero-img-box {
    width: 48mm !important;
    height: 38mm !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 0.8px solid #cbd5e1 !important;
    border-radius: 1.5mm !important;
    padding: 1mm !important;
  }
  .lud-paper-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 46mm !important;
    max-height: 36mm !important;
    object-fit: contain !important;
    box-shadow: none !important;
  }
  .lud-paper-proposito {
    padding: 1.5mm 2.5mm !important;
    margin-bottom: 1.5mm !important;
    font-size: 8.8pt !important;
    line-height: 1.35 !important;
    background: #fbf7ff !important;
    border-left: 2.5px solid #7c3aed !important;
  }
  .lud-paper-materials {
    font-size: 8.2pt !important;
    line-height: 1.3 !important;
  }
  .lud-paper-materials span {
    padding: 0.4mm 1.8mm !important;
    font-size: 7.8pt !important;
    margin: 0.3mm 1mm 0.3mm 0 !important;
    display: inline-block !important;
    background: #f1f5f9 !important;
    border: 0.6px solid #cbd5e1 !important;
  }
  .lud-paper-section {
    margin-top: 1.5mm !important;
    margin-bottom: 1.8mm !important;
  }
  .lud-paper-section-title {
    font-size: 8.5pt !important;
    padding-bottom: 0.5mm !important;
    margin-bottom: 1.2mm !important;
    font-weight: 800 !important;
    color: #7c3aed !important;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3) !important;
  }
  .lud-paper-rules {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.8mm !important;
  }
  .lud-paper-rule-item {
    font-size: 8.5pt !important;
    line-height: 1.32 !important;
    gap: 2mm !important;
    display: flex !important;
    align-items: flex-start !important;
  }
  .lud-paper-rule-badge {
    width: 4.5mm !important;
    height: 4.5mm !important;
    font-size: 7.5pt !important;
    border-radius: 1mm !important;
    background: #7c3aed !important;
    color: #fff !important;
    font-weight: 800 !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
    margin-top: 0.2mm !important;
  }
  .lud-paper-team-tips {
    margin: 2mm 0 1.5mm !important;
    padding: 1.8mm 2.5mm !important;
    border: 0.8px solid #ddd6fe !important;
    border-radius: 1.5mm !important;
    background: #faf8ff !important;
  }
  .lud-paper-team-title {
    font-size: 8pt !important;
    font-weight: 800 !important;
    color: #6d28d9 !important;
    margin-bottom: 1mm !important;
    text-transform: uppercase !important;
  }
  .lud-paper-team-roles {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1mm 3mm !important;
    font-size: 7.8pt !important;
    line-height: 1.25 !important;
    color: #334155 !important;
  }
  .lud-paper-metacog {
    font-size: 8.6pt !important;
    line-height: 1.35 !important;
    margin-bottom: 1.5mm !important;
  }
  .response-lines {
    gap: 4.5mm !important;
    margin-top: 1.5mm !important;
  }
  .response-lines span {
    height: 1px !important;
    border-bottom: 0.8px solid #94a3b8 !important;
  }
  .lud-paper-cut-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1.2px dashed #7c3aed !important;
    padding-bottom: 1mm !important;
    margin-bottom: 1mm !important;
  }
  .lud-paper-cut-brand span {
    font-size: 9.5pt !important;
    font-weight: 800 !important;
    color: #7c3aed !important;
  }
  .lud-paper-cut-meta {
    font-size: 8pt !important;
    color: #475569 !important;
    display: flex !important;
    gap: 3mm !important;
  }
  .lud-paper-cut-hint {
    font-size: 8.2pt !important;
    margin: 0 0 1.8mm !important;
    font-style: italic !important;
    color: #64748b !important;
  }
  .lud-paper-cut-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2mm 3.5mm !important;
  }
  .lud-paper-card-item {
    border: 1.2px dashed #475569 !important;
    border-radius: 1.8mm !important;
    padding: 1.5mm 2.5mm !important;
    min-height: 78mm !important;
    max-height: 81mm !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #fff !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .lud-paper-card-head {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 8.2pt !important;
    font-weight: 800 !important;
    color: #7c3aed !important;
    border-bottom: 0.8px dashed #cbd5e1 !important;
    padding-bottom: 0.5mm !important;
    margin-bottom: 0.8mm !important;
  }
  /* Caixa da figura com 6cm na coluna de 10.5cm deixando 2cm de margem de cada lado */
  .lud-paper-card-fig-box {
    width: 60mm !important;
    height: 46mm !important;
    margin: 0.5mm auto 1mm !important;
    border: 0.8px solid #cbd5e1 !important;
    border-radius: 1mm !important;
    padding: 0.6mm !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .lud-paper-card-fig {
    width: 58mm !important;
    height: 44mm !important;
    max-width: 58mm !important;
    max-height: 44mm !important;
    object-fit: contain !important;
    display: block !important;
  }
  .lud-paper-card-zoom-badge {
    display: none !important;
  }
  .lud-paper-card-text-box {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .lud-paper-card-body {
    font-size: 9.2pt !important;
    line-height: 1.28 !important;
    margin: 0.5mm 0 !important;
    font-weight: 600 !important;
    color: #111 !important;
  }
  .lud-paper-card-foot {
    font-size: 7.8pt !important;
    padding-top: 0.6mm !important;
    display: flex !important;
    justify-content: space-between !important;
    color: #64748b !important;
    border-top: 0.8px dotted #cbd5e1 !important;
  }
  .lud-teacher-block {
    margin-top: 2.5mm !important;
    padding: 2.5mm 3mm !important;
    font-size: 8.5pt !important;
  }
}

/* Result tab – ludic indicator */
.result-tabs button[data-result="ludico"] {
  position: relative;
}

.result-tabs button[data-result="ludico"]::after {
  content: '🎲';
  font-size: 13px;
  margin-left: 4px;
}

/* ===== SIDEBAR: item Atividade Lúdica ===== */
.nav-item-ludico {
  position: relative;
}
.nav-item-ludico svg {
  color: #7c3aed;
}
.nav-item-ludico.is-active {
  background: linear-gradient(90deg, rgba(124,58,237,.12), rgba(168,85,247,.08)) !important;
  border-left-color: #7c3aed !important;
  color: #7c3aed !important;
}
.nav-badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  margin-left: auto;
  line-height: 1;
}

/* ===== LUDIC WIZARD PROGRESS CARD ===== */
.lud-progress-card {
  background: linear-gradient(135deg, #7c3aed0d, #a855f70a) !important;
  border: 1.5px solid rgba(124,58,237,.18) !important;
  padding: 16px 22px !important;
  margin-bottom: 14px !important;
}
.lud-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.lud-hero-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.lud-hero-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #7c3aed;
  margin-bottom: 2px;
}
.lud-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.lud-hero-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== LUDIC WIZARD CARD ===== */
.lud-wizard-card {
  border: 1.5px solid rgba(124,58,237,.18) !important;
  overflow: visible !important;
}
.lud-wizard-card .step-pane {
  min-height: 280px !important;
  padding: 22px 28px !important;
}
.lud-wizard-card .wizard-foot {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 25 !important;
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(124, 58, 237, .16) !important;
  box-shadow: 0 -4px 20px rgba(124, 58, 237, .08) !important;
}
.lud-pane-icon {
  background: linear-gradient(135deg, #7c3aed22, #a855f722) !important;
  color: #7c3aed !important;
  border: 1.5px solid rgba(124,58,237,.2) !important;
}
.lud-btn-main {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  box-shadow: 0 4px 14px rgba(124,58,237,.35) !important;
}
.lud-btn-main:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124,58,237,.4) !important;
}

/* ===== STEP 3 CONFIG ===== */
.lud-config-full {
  display: grid;
  gap: 18px;
}
.lud-config-grid-main {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 480px) {
  .lud-config-grid-main {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ===== LUDIC RESULT VIEW ===== */
.lud-result-view .result-tabs button[data-lud-result-tab="aluno"].is-active,
.lud-result-view .result-tabs button[data-lud-result-tab="professor"].is-active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

/* ===== LOADING OVERLAY — progress bar ===== */
.load-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
  width: 100%;
}
.load-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(var(--surface-rgb, 200,200,200), .18);
  border-radius: 999px;
  overflow: hidden;
}
.load-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4, #7c3aed);
  background-size: 200% 100%;
  animation: loadFillShimmer 2s linear infinite;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
@keyframes loadFillShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.load-progress-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent, #7c3aed);
  min-width: 36px;
  text-align: right;
  letter-spacing: -.01em;
}
.load-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.load-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #7c3aed);
  flex-shrink: 0;
  animation: loadDotPulse 1.2s ease-in-out infinite;
}
@keyframes loadDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.load-step-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.load-tip {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  opacity: .75;
  margin: 0;
}

/* Terminal de Logs em Tempo Real */
.loading-card-terminal {
  max-width: 580px !important;
  width: 95vw !important;
  padding: 24px 22px 18px !important;
}

.stream-terminal {
  width: 100%;
  background: #090d16;
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin: 12px 0 14px;
  text-align: left;
}

.stream-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-terminal-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.stream-terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.stream-terminal-title {
  font-family: monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .05em;
  flex: 1;
}

.stream-terminal-badge {
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  letter-spacing: .06em;
}

.stream-terminal-body {
  padding: 10px 14px;
  max-height: 165px;
  overflow-y: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: #e2e8f0;
  background: #060911;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.stream-terminal-body::-webkit-scrollbar {
  width: 5px;
}
.stream-terminal-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.stream-log-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 2px 0;
  word-break: break-word;
  animation: logLineIn .25s ease-out;
}

@keyframes logLineIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.log-ts {
  color: #64748b;
  font-size: 10px;
  flex-shrink: 0;
}

.log-badge-sys    { color: #94a3b8; font-weight: 700; flex-shrink: 0; }
.log-badge-rag    { color: #38bdf8; font-weight: 700; flex-shrink: 0; }
.log-badge-ia     { color: #c084fc; font-weight: 700; flex-shrink: 0; }
.log-badge-stream { color: #f472b6; font-weight: 700; flex-shrink: 0; }
.log-badge-val    { color: #fbbf24; font-weight: 700; flex-shrink: 0; }
.log-badge-ok     { color: #34d399; font-weight: 700; flex-shrink: 0; }
.log-badge-err    { color: #f87171; font-weight: 700; flex-shrink: 0; }

.log-msg {
  color: #cbd5e1;
  flex: 1;
}

/* Componentes de Jogos Pedagógicos & Cartões Imprimíveis */
.ludico-proposito-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.05));
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.ludico-proposito-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.ludico-proposito-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

.ludico-componentes-box {
  margin-top: 10px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-soft);
}

.ludico-componentes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ludico-componentes-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #7c3aed;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ludico-componentes-header small {
  font-size: 11px;
  color: var(--muted);
}

.ludico-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.ludico-card-item {
  background: #fff;
  border: 2px dashed #7c3aed;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  position: relative;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.08);
}

.ludico-card-cut-mark {
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 11px;
  background: #7c3aed;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.ludico-card-id {
  font-size: 10px;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ludico-card-front {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
}

.ludico-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
  margin-top: 4px;
}

.ludico-card-cat {
  background: #f3e8ff;
  color: #7c3aed;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Aba Guia do Professor */
.lud-teacher-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.lud-teacher-title {
  font-size: 14px;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.lud-teacher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lud-teacher-block {
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.lud-teacher-block b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.lud-teacher-block p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.45;
}

/* ==========================================================================
   ILUSTRAÇÃO DIDÁTICA E TROCA DE IMAGENS LÚDICAS
   ========================================================================== */
.ludico-hero-image-card {
  background: var(--surface);
  border: 1.5px solid rgba(124, 58, 237, .18);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(124, 58, 237, .06);
  margin: 6px 0 14px;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ludico-hero-image-card:hover {
  border-color: rgba(124, 58, 237, .32);
  box-shadow: 0 6px 20px rgba(124, 58, 237, .10);
}

.ludico-img-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  max-height: 440px;
  background: radial-gradient(circle at center, #fbfaff 0%, #f3eeff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ludico-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}

.ludico-hero-image-card:hover .ludico-hero-img {
  transform: scale(1.01);
}

.ludico-img-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  gap: 10px;
}

.ludico-empty-ico {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #a855f7;
  stroke-width: 1.6;
  opacity: .7;
}

.ludico-empty-txt strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.ludico-empty-txt span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.45;
}

.ludico-hero-image-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-top: 1px solid rgba(124, 58, 237, .12);
}

.ludico-img-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ludico-img-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #7c3aed;
  background: #7c3aed12;
  padding: 3px 8px;
  border-radius: 6px;
}

.ludico-img-tag svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.ludico-img-origin {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}

.ludico-hero-image-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lud-img-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  user-select: none;
  border: 1px solid transparent;
  line-height: 1.3;
}

.lud-img-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.lud-btn-upload {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--line);
}

.lud-btn-upload:hover {
  background: #f4f0ff;
  border-color: #7c3aed50;
  color: #7c3aed;
  transform: translateY(-1px);
}

.lud-btn-ai {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, .25);
}

.lud-btn-ai:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9, #7e22ce);
  box-shadow: 0 4px 12px rgba(124, 58, 237, .38);
  transform: translateY(-1px);
}

.lud-btn-ai:disabled,
.lud-btn-upload.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.lud-price-badge {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  margin-left: 2px;
}

.ludico-img-overlay-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  transition: opacity .2s ease;
}

.ludico-img-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(124, 58, 237, .2);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: ludSpin .8s linear infinite;
}

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

.ludico-img-loading-text {
  font-size: 13px;
  font-weight: 600;
  color: #6b21a8;
  letter-spacing: .01em;
}


/* Modal de Ampliação de Imagem (Lightbox) */
.lud-img-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.lud-img-modal-backdrop[hidden] {
  display: none !important;
}

.lud-img-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  width: min(94vw, 560px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ludModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ludModalZoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lud-img-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
}

.lud-img-modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.lud-img-modal-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #7c3aed;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lud-img-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lud-img-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.lud-img-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lud-img-modal-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  overflow-y: auto;
}

.lud-img-modal-view {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  max-width: 100%;
}

.lud-img-modal-view img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.lud-img-modal-foot {
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  flex-wrap: wrap;
}

.lud-img-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lud-modal-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.lud-modal-btn-copy {
  background: #7c3aed;
  color: #ffffff;
}

.lud-modal-btn-copy:hover {
  background: #6d28d9;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.lud-modal-btn-dl {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.lud-modal-btn-dl:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lud-modal-btn-close-alt {
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
}

.lud-modal-btn-close-alt:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ==========================================================================
   GALERIA DE IMAGENS PEDAGÓGICAS E ENHANCED LIGHTBOX
   ========================================================================== */

/* Item na barra lateral */
.nav-item-gallery svg {
  color: #0284c7;
}
.nav-item-gallery.is-active {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.12), rgba(14, 165, 233, 0.08)) !important;
  border-left-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* Painel de Filtros e Busca */
.gallery-filter-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 4px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-search-wrap {
  position: relative;
  width: 100%;
}
.gallery-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  pointer-events: none;
}
.gallery-search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.gallery-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.gallery-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.gallery-select-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gallery-select {
  height: 38px;
  padding: 0 30px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.18s ease;
}
.gallery-select:focus {
  outline: none;
  border-color: #7c3aed;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.gallery-type-pills {
  display: inline-flex;
  align-items: center;
  background: var(--surface-soft);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  gap: 2px;
}
.gallery-type-pill {
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.gallery-type-pill:hover {
  color: var(--ink);
}
.gallery-type-pill.is-active {
  background: #ffffff;
  color: #7c3aed;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.gallery-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c73737;
  background: #fff2f2;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.gallery-reset-btn:hover {
  background: #fee2e2;
}
.gallery-status-bar {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.gallery-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.gallery-total-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.gallery-stat-num {
  font-size: 13.5px;
  font-weight: 800;
  color: #7c3aed;
}
.gallery-stat-txt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Grupos por Dia e Grid de Cards */
.gallery-day-group {
  margin-bottom: 34px;
}
.gallery-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--line);
}
.gallery-day-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-day-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.gallery-day-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.gallery-day-badge {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}
.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.gallery-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
  position: relative;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}
.gallery-card-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.06);
}
.gallery-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.gallery-card-type-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.gallery-card-time-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.gallery-card-actions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.gallery-card:hover .gallery-card-actions-overlay {
  opacity: 1;
}
.gallery-quick-btn {
  background: #ffffff;
  border: none;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}
.gallery-quick-btn:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: translateY(-1px);
}
.gallery-quick-btn-dl:hover {
  background: #0284c7;
  color: #ffffff;
}
.gallery-card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  flex-grow: 1;
}
.gallery-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-card-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.gallery-tag-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.gallery-tag-materia {
  background: #eff6ff;
  color: #1d4ed8;
}
.gallery-tag-ano {
  background: #fdf4ff;
  color: #a21caf;
}
.gallery-tag-tipo {
  background: #f0fdf4;
  color: #166534;
}
.gallery-card-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Estados de Vazio e Skeleton */
.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.gallery-empty-ico {
  font-size: 44px;
  margin-bottom: 12px;
}
.gallery-empty h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}
.gallery-empty p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 16px;
}
.gallery-skeleton-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-skeleton-header {
  height: 24px;
  width: 220px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: galleryShimmer 1.5s infinite;
  border-radius: 6px;
}
.gallery-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.gallery-skeleton-card {
  height: 280px;
  background: linear-gradient(90deg, #f8fafc 25%, #e2e8f0 50%, #f8fafc 75%);
  background-size: 200% 100%;
  animation: galleryShimmer 1.5s infinite;
  border-radius: 14px;
  border: 1px solid var(--line);
}
@keyframes galleryShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Lightbox Enhancements: Prev/Next Buttons, Meta Strip, Counter */
.lud-img-modal-dialog {
  width: min(94vw, 760px) !important;
}
.lud-img-modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lud-modal-counter {
  font-size: 11px;
  font-weight: 800;
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.lud-img-modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.lud-img-modal-view img {
  max-height: 480px !important;
}
.lud-modal-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}
.lud-modal-nav-btn:hover:not(:disabled) {
  background: #ffffff;
  color: #7c3aed;
  border-color: #7c3aed;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.22);
}
.lud-modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}
.lud-modal-meta-strip {
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lud-modal-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lud-modal-meta-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.lud-modal-meta-tag-materia {
  background: #eff6ff;
  color: #1d4ed8;
}
.lud-modal-meta-tag-ano {
  background: #fdf4ff;
  color: #a21caf;
}
.lud-modal-meta-tag-tipo {
  background: #f0fdf4;
  color: #15803d;
}
.lud-modal-meta-tag-data {
  margin-left: auto;
  font-size: 11px;
  color: #64748b;
}
.lud-modal-meta-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}
.lud-modal-btn-open-act {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.lud-modal-btn-open-act:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

@media (max-width: 640px) {
  .gallery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-card-info {
    padding: 8px 10px;
  }
  .gallery-card-title {
    font-size: 12px;
  }
  .gallery-status-actions {
    width: 100%;
    justify-content: space-between;
  }
  .gallery-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  .gallery-select-group {
    width: 100%;
  }
  .gallery-select-wrap {
    flex: 1;
  }
  .gallery-select {
    width: 100%;
  }
  .lud-modal-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* ==========================================================================
   MÚSICA PEDAGÓGICA (ESTÚDIO DE ÁUDIO IA)
   ========================================================================== */

/* Sub-navegação interna */
.musica-subnav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
}

.musica-subnav-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(241, 245, 249, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.musica-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.musica-subnav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.musica-subnav-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.musica-subnav-btn.is-active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.musica-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 99px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
}

.musica-subpane[hidden] {
  display: none !important;
}

/* Hero card do stepper */
.musica-progress-card {
  border-top: 3px solid #0284c7;
}

.musica-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.musica-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.musica-hero-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0284c7;
  text-transform: uppercase;
}

.musica-hero-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.musica-hero-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.musica-pane-icon {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

/* Formulário de contexto */
.musica-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.musica-select,
.musica-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.musica-select:focus,
.musica-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.musica-title-input {
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  border-color: #7dd3fc;
  background: #f0f9ff;
}

/* Sugestões de chips */
.musica-suggest-box {
  margin-top: 10px;
}

.musica-suggest-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.musica-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.musica-chip {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.musica-chip:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0284c7;
}

.musica-chip.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
}

/* Card RAG */
.musica-rag-card {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.8), rgba(224, 242, 254, 0.5));
}

.musica-rag-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.musica-rag-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.musica-rag-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.musica-rag-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.musica-rag-toggle input:checked + .musica-rag-slider {
  background: #0284c7;
}

.musica-rag-toggle input:checked + .musica-rag-slider:before {
  transform: translateX(20px);
}

.musica-rag-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.musica-rag-headline b {
  font-size: 13px;
  color: #0f172a;
}

.musica-badge-recom {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  letter-spacing: 0.05em;
}

.musica-rag-copy p {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

/* Grid de Gêneros Musicais */
.musica-genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.musica-genre-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.musica-genre-card:hover {
  border-color: #0284c7;
  background: #f8fafc;
  transform: translateY(-1px);
}

.musica-genre-card.is-selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.musica-genre-ico {
  font-size: 24px;
  flex-shrink: 0;
}

.musica-genre-info {
  min-width: 0;
}

.musica-genre-info b {
  display: block;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.25;
}

.musica-genre-info small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Loading da composição */
.musica-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.musica-pulse-spinner {
  font-size: 40px;
  animation: musicaBounce 1.2s infinite ease-in-out;
  margin-bottom: 12px;
}

@keyframes musicaBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25) rotate(8deg); }
}

.musica-loading-box b {
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 4px;
}

.musica-loading-box p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Editor de Letra */
.musica-lyrics-editor {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
}

.musica-lyrics-editor:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.musica-review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.musica-tip-card {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
  font-size: 12px;
  line-height: 1.45;
}

.musica-tip-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.musica-tip-card b {
  display: block;
  margin-bottom: 2px;
  color: #713f12;
}

.musica-tip-card p {
  margin: 0;
}

.musica-prompt-card {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.musica-prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.musica-link-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

.musica-prompt-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11.5px;
  font-family: monospace;
  outline: none;
}

.musica-prompt-input:not([readonly]) {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 6px;
  border-radius: 6px;
  color: #0f172a;
}

.btn-glow {
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  font-weight: 800;
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.musica-cost-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(4px);
}

/* Estúdio Musical & Barra de Progresso */
.musica-studio-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 16px;
}

.musica-studio-waves {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  margin-bottom: 20px;
}

.musica-studio-waves span {
  display: inline-block;
  width: 5px;
  background: linear-gradient(180deg, #0284c7, #38bdf8);
  border-radius: 99px;
  animation: musicaWave 1.2s infinite ease-in-out;
}

.musica-studio-waves span:nth-child(1) { height: 16px; animation-delay: 0.1s; }
.musica-studio-waves span:nth-child(2) { height: 28px; animation-delay: 0.2s; }
.musica-studio-waves span:nth-child(3) { height: 42px; animation-delay: 0.3s; }
.musica-studio-waves span:nth-child(4) { height: 32px; animation-delay: 0.4s; }
.musica-studio-waves span:nth-child(5) { height: 48px; animation-delay: 0.5s; }
.musica-studio-waves span:nth-child(6) { height: 24px; animation-delay: 0.6s; }
.musica-studio-waves span:nth-child(7) { height: 38px; animation-delay: 0.7s; }
.musica-studio-waves span:nth-child(8) { height: 18px; animation-delay: 0.8s; }

@keyframes musicaWave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.musica-studio-processing h3 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.musica-studio-processing p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
  max-width: 480px;
}

.musica-studio-bar {
  width: min(440px, 90%);
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.musica-studio-bar-fill {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.musica-studio-eta {
  font-size: 11px;
  color: #94a3b8;
}

.musica-studio-error {
  text-align: center;
  padding: 40px 16px;
}

.musica-error-ico {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Conclusão & Faixas */
.musica-done-header {
  text-align: center;
  margin-bottom: 24px;
}

.musica-done-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.musica-done-header h2 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
}

.musica-done-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 auto;
  max-width: 580px;
}

.musica-tracks-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.musica-track-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.musica-track-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #bae6fd;
}

.musica-track-cover-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.musica-track-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.musica-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.musica-play-btn svg {
  width: 20px;
  height: 20px;
}

.musica-play-btn:hover {
  background: rgba(2, 132, 199, 0.95);
  transform: scale(1.08);
}

.musica-track-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.musica-track-badge {
  font-size: 10px;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.musica-track-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.musica-track-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
}

.musica-player-progress-wrap {
  margin-bottom: 8px;
}

.musica-player-time {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 2px;
}

.musica-player-progress-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.musica-player-progress-fill {
  width: 0%;
  height: 100%;
  background: #0284c7;
  border-radius: 99px;
}

.musica-track-actions {
  margin-top: auto;
}

.musica-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 700;
}

/* Ficha de Letra */
.musica-sheet-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.musica-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.musica-sheet-head small {
  font-size: 10px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.06em;
}

.musica-sheet-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 0;
}

.musica-sheet-actions {
  display: flex;
  gap: 8px;
}

.musica-sheet-body {
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
  column-count: 2;
  column-gap: 32px;
}

@media (max-width: 768px) {
  .musica-sheet-body {
    column-count: 1;
  }
}

.musica-estrofe {
  break-inside: avoid;
  margin-bottom: 16px;
}

.musica-tag-secao {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.musica-done-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Biblioteca de Músicas */
.musica-lib-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.musica-lib-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.musica-lib-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.musica-lib-filter select {
  min-width: 150px;
}

.musica-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.musica-lib-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.musica-lib-card:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.1);
}

.musica-lib-cover-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.musica-lib-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.musica-lib-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.musica-lib-badges {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.musica-lib-badge-mat {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  background: #e0f2fe;
  color: #0369a1;
}

.musica-lib-badge-ano {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
}

.musica-lib-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.musica-lib-sub {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.musica-lib-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.musica-lib-date {
  font-size: 10px;
  color: #94a3b8;
}

.musica-lib-actions {
  display: flex;
  gap: 4px;
}



/* Músicas Pedagógicas Video Section */
.video-musicas-v40 {
  margin-top: 0;
  border-top: none;
  border-bottom: 1px solid #ffedd5;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(234, 88, 12, 0.07) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 237, 0.94)),
    linear-gradient(180deg, #f8fafc, #fff7ed);
}

.eyebrow-musicas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ea580c;
  font-weight: 850;
  letter-spacing: .08em;
}

.video-musicas-points-v40 span::before {
  background: #ea580c;
}

.video-musicas-frame-v40 {
  border: 1px solid rgba(249, 115, 22, 0.25);
  box-shadow: 0 24px 64px rgba(234, 88, 12, 0.16), 0 8px 24px rgba(15, 23, 42, 0.08);
}

.video-cta-card-musicas {
  border: 1px solid #ffedd5;
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 55%, #ffedd5 100%);
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.11);
}

.video-cta-badge-musicas {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.video-cta-btn-musicas {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.35);
}

.video-cta-btn-musicas:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.45);
}

/* Signup Balloon */
.signup-balloon-wrapper {
  position: relative;
  display: inline-block;
}
.signup-balloon {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  padding: 16px;
  z-index: 1000;
  animation: balloonPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #334155;
  text-align: left;
  transform-origin: top right;
}
@keyframes balloonPop {
  0% { opacity: 0; transform: scale(0.9) translateY(-10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.signup-balloon::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  transform: rotate(45deg);
}
.signup-balloon-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.signup-balloon-close:hover {
  color: #334155;
}
.signup-balloon-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  padding-right: 16px;
}
.signup-balloon-content p {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 12px 0;
}
.signup-balloon-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  align-items: center;
}
.signup-balloon-optout {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.signup-balloon-optout input[type="checkbox"] {
  accent-color: #10b981;
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}
.signup-balloon-optout:hover .signup-balloon-optout-text {
  color: #334155;
}
