:root, [data-theme="tradicional"] {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --success: 142 71% 36%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 26 83% 14%;
  --ai: 258 90% 66%;
  --ai-foreground: 0 0% 100%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --overlay: 222 47% 5%;
  --radius: .5rem;
  --shadow-sm: 0 1px 3px 0 hsl(var(--overlay) / .05), 0 1px 2px 0 hsl(var(--overlay) / .03);
  --shadow-md: 0 4px 12px -2px hsl(var(--overlay) / .08);
  --shadow-lg: 0 25px 50px -12px hsl(var(--overlay) / .25);
  --font-sans: "DM Sans", "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-reading: "Lora", Georgia, "Times New Roman", serif;
}

[data-fonte-leitura="merriweather"] {
  --font-reading: "Merriweather", Georgia, serif;
}

[data-fonte-leitura="source-serif-4"] {
  --font-reading: "Source Serif 4", Georgia, serif;
}

[data-fonte-leitura="literata"] {
  --font-reading: "Literata", Georgia, serif;
}

[data-fonte-leitura="crimson-pro"] {
  --font-reading: "Crimson Pro", Georgia, serif;
}

[data-fonte-leitura="ibm-plex-serif"] {
  --font-reading: "IBM Plex Serif", Georgia, serif;
}

[data-theme="noturno-oled"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --background: 0 0% 0%;
  --foreground: 0 0% 96%;
  --card: 0 0% 6%;
  --card-foreground: 0 0% 96%;
  --popover: 0 0% 8%;
  --popover-foreground: 0 0% 96%;
  --primary: 213 94% 68%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 12%;
  --secondary-foreground: 0 0% 96%;
  --muted: 0 0% 12%;
  --muted-foreground: 0 0% 72%;
  --accent: 0 0% 16%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 91% 71%;
  --destructive-foreground: 0 0% 6%;
  --success: 142 69% 58%;
  --success-foreground: 0 0% 4%;
  --warning: 43 96% 62%;
  --warning-foreground: 0 0% 4%;
  --ai: 258 95% 76%;
  --ai-foreground: 0 0% 4%;
  --border: 0 0% 28%;
  --input: 0 0% 28%;
  --ring: 213 94% 68%;
  --overlay: 0 0% 0%;
  --shadow-sm: 0 1px 3px 0 hsl(var(--overlay) / .6);
  --shadow-md: 0 4px 12px -2px hsl(var(--overlay) / .7);
  --shadow-lg: 0 25px 50px -12px hsl(var(--overlay) / .8);
}

[data-theme="sepia"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --background: 30 18% 9%;
  --foreground: 38 45% 86%;
  --card: 30 15% 13%;
  --card-foreground: 38 45% 86%;
  --popover: 30 15% 15%;
  --popover-foreground: 38 45% 86%;
  --primary: 33 85% 58%;
  --primary-foreground: 30 30% 10%;
  --secondary: 30 12% 18%;
  --secondary-foreground: 38 40% 84%;
  --muted: 30 12% 18%;
  --muted-foreground: 36 25% 68%;
  --accent: 30 14% 22%;
  --accent-foreground: 38 45% 88%;
  --destructive: 6 70% 62%;
  --destructive-foreground: 30 30% 10%;
  --success: 90 40% 55%;
  --success-foreground: 30 30% 10%;
  --warning: 40 85% 60%;
  --warning-foreground: 30 30% 10%;
  --ai: 280 45% 70%;
  --ai-foreground: 30 30% 10%;
  --border: 30 12% 24%;
  --input: 30 12% 24%;
  --ring: 33 85% 58%;
  --overlay: 30 25% 4%;
  --shadow-sm: 0 1px 3px 0 hsl(var(--overlay) / .5);
  --shadow-md: 0 4px 12px -2px hsl(var(--overlay) / .6);
  --shadow-lg: 0 25px 50px -12px hsl(var(--overlay) / .7);
  --font-reading: "Lora", Georgia, "Times New Roman", serif;
}

[data-theme="minimalista"] {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --background: 0 0% 99%;
  --foreground: 0 0% 9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 95%;
  --muted-foreground: 0 0% 40%;
  --accent: 0 0% 93%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 0% 18%;
  --destructive-foreground: 0 0% 100%;
  --success: 0 0% 30%;
  --success-foreground: 0 0% 100%;
  --warning: 0 0% 38%;
  --warning-foreground: 0 0% 100%;
  --ai: 0 0% 45%;
  --ai-foreground: 0 0% 100%;
  --border: 0 0% 88%;
  --input: 0 0% 88%;
  --ring: 0 0% 9%;
  --overlay: 0 0% 4%;
  --radius: .25rem;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 8px 24px -12px hsl(var(--overlay) / .18);
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  letter-spacing: -.011em;
  min-height: 100vh;
}

[data-theme="sepia"] p, [data-theme="sepia"] .texto-leitura {
  font-family: var(--font-reading);
  letter-spacing: 0;
}

h1, h2, h3, h4, h5, h6, .card-title {
  letter-spacing: -.022em;
}

.btn {
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #0000;
  outline: none;
  justify-content: center;
  align-items: center;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
  transition: all .15s ease-in-out;
  display: inline-flex;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn:disabled {
  pointer-events: none;
  opacity: .5;
}

.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-default:hover {
  opacity: .9;
}

.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
  opacity: .9;
}

.btn-outline {
  border-color: hsl(var(--input));
  color: hsl(var(--foreground));
  background-color: #0000;
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  opacity: .8;
}

.btn-ghost {
  color: hsl(var(--foreground));
  background-color: #0000;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-link {
  color: hsl(var(--primary));
  text-underline-offset: 4px;
  background-color: #0000;
  text-decoration: underline;
}

.btn-link:hover {
  opacity: .8;
}

.btn-size-default {
  height: 2.5rem;
  padding: 0 1rem;
}

.btn-size-sm {
  border-radius: calc(var(--radius) - 2px);
  height: 2.25rem;
  padding: 0 .75rem;
  font-size: .75rem;
}

.btn-size-lg {
  border-radius: calc(var(--radius) + 2px);
  height: 2.75rem;
  padding: 0 2rem;
}

.btn-size-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.input {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--input));
  width: 100%;
  height: 2.5rem;
  color: hsl(var(--foreground));
  background-color: #0000;
  padding: .5rem .75rem;
  font-size: .875rem;
  transition: border-color .15s ease-in-out;
  display: flex;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
  outline: none;
}

.input:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.card {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: var(--shadow-sm);
}

.card-header {
  flex-direction: column;
  gap: .375rem;
  padding: 1.5rem;
  display: flex;
}

.card-title {
  letter-spacing: -.025em;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.card-description {
  color: hsl(var(--muted-foreground));
  font-size: .875rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card-footer {
  align-items: center;
  padding: 0 1.5rem 1.5rem;
  display: flex;
}

.badge {
  border: 1px solid #0000;
  border-radius: 9999px;
  align-items: center;
  padding: .125rem .625rem;
  font-size: .75rem;
  font-weight: 600;
  transition: all .15s ease-in-out;
  display: inline-flex;
}

.badge-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.badge-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.alert {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  width: 100%;
  color: hsl(var(--foreground));
  padding: 1rem;
  position: relative;
}

.alert-destructive {
  border-color: hsl(var(--destructive)/.5);
  color: hsl(var(--destructive));
  background-color: hsl(var(--destructive)/.05);
}

.mobile-topbar, .mobile-overlay {
  display: none;
}

.dashboard-container {
  background-color: hsl(var(--background));
  min-height: 100dvh;
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  align-items: flex-start;
  display: flex;
  position: relative;
  overflow-x: clip;
}

.dashboard-sidebar {
  border-right: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  z-index: 50;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: space-between;
  align-self: flex-start;
  height: 100dvh;
  max-height: 100dvh;
  transition: width .25s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.dashboard-sidebar-content {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  flex-direction: column;
  flex: auto;
  min-height: 0;
  display: flex;
  overflow: hidden auto;
}

.dashboard-sidebar-content::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar-content::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 4px;
}

.dashboard-sidebar-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  flex-direction: column;
  flex-shrink: 0;
  gap: .5rem;
  margin-top: auto;
  padding: .75rem .5rem;
  display: flex;
}

.dashboard-main {
  flex-direction: column;
  flex: 1;
  gap: 1.75rem;
  min-width: 0;
  padding: 2rem 2.25rem;
  display: flex;
  overflow-y: auto;
}

.dashboard-right-panel {
  border-left: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  z-index: 60;
  flex-direction: column;
  flex-shrink: 0;
  align-self: flex-start;
  width: 360px;
  height: 100dvh;
  max-height: 100dvh;
  transition: width .28s cubic-bezier(.4, 0, .2, 1), min-width .28s;
  display: flex;
  position: sticky;
  top: 0;
  overflow: visible;
}

.dashboard-right-panel.is-resizing {
  -webkit-user-select: none !important;
  user-select: none !important;
  transition: none !important;
}

.dashboard-right-panel.collapsed {
  border-left: none !important;
  width: 0 !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.dashboard-right-panel-body {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  overflow: hidden auto;
}

.dashboard-right-panel-body::-webkit-scrollbar {
  width: 4px;
}

.dashboard-right-panel-body::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 4px;
}

.resizable-handle-left {
  cursor: col-resize;
  z-index: 50;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  justify-content: center;
  align-items: center;
  width: 8px;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
}

.resizable-handle-left:after {
  content: "";
  background-color: hsl(var(--border));
  border-radius: 9999px;
  width: 3px;
  height: 36px;
  transition: all .2s;
}

.resizable-handle-left:hover:after, .resizable-handle-left.active:after {
  background-color: hsl(var(--primary));
  width: 4px;
  height: 56px;
  box-shadow: 0 0 8px hsl(var(--primary)/.6);
}

.resizable-handle-right {
  cursor: col-resize;
  z-index: 50;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  justify-content: center;
  align-items: center;
  width: 8px;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -4px;
}

.resizable-handle-right:after {
  content: "";
  background-color: hsl(var(--border));
  border-radius: 9999px;
  width: 3px;
  height: 36px;
  transition: all .2s;
}

.resizable-handle-right:hover:after, .resizable-handle-right.active:after {
  background-color: hsl(var(--primary));
  width: 4px;
  height: 56px;
  box-shadow: 0 0 8px hsl(var(--primary)/.6);
}

.right-panel-toggle-btn {
  z-index: 75;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  width: 26px;
  height: 56px;
  box-shadow: -4px 2px 14px hsl(var(--overlay)/.16);
  cursor: pointer;
  pointer-events: auto;
  color: hsl(var(--muted-foreground));
  border-right: none;
  border-radius: 8px 0 0 8px;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: all .2s;
  display: flex;
  position: absolute;
  top: 50%;
  left: -26px;
  transform: translateY(-50%);
}

.right-panel-toggle-btn:hover {
  background: hsl(var(--accent));
  color: hsl(var(--primary));
  width: 30px;
  left: -30px;
}

@media (width <= 1024px) {
  .dashboard-container {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-topbar, .dashboard-main {
    width: 100%;
    min-width: 0;
  }

  .mobile-topbar {
    background-color: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    z-index: 30;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem;
    display: flex;
    position: sticky;
    top: 0;
  }

  .mobile-overlay {
    background-color: hsl(var(--overlay)/.6);
    backdrop-filter: blur(4px);
    z-index: 45;
    display: block;
    position: fixed;
    inset: 0;
  }

  .dashboard-sidebar {
    box-shadow: 10px 0 25px -5px hsl(var(--overlay)/.3);
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    width: 280px !important;
    position: fixed !important;
  }

  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-main {
    gap: 1rem;
    width: 100%;
    padding: .85rem .75rem;
  }

  .dashboard-right-panel {
    background: hsl(var(--card));
    border-left: 1px solid hsl(var(--border));
    height: 100dvh;
    box-shadow: -10px 0 30px hsl(var(--overlay)/.35);
    z-index: 50;
    -webkit-overflow-scrolling: touch;
    border-top: none;
    flex-direction: column;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    overflow-y: auto;
    transform: translateX(100%);
    width: min(340px, 86vw) !important;
    min-width: unset !important;
    display: flex !important;
  }

  .dashboard-right-panel.mobile-open {
    transform: translateX(0);
  }

  .right-panel-toggle-btn, .resizable-handle-left, .resizable-handle-right, .sidebar-toggle-btn {
    display: none !important;
  }
}

.questoes-actions-wrapper {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  width: 100%;
  display: flex;
}

.questoes-actions-wrapper .questoes-nav-group {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

@media (width <= 640px) {
  .questoes-actions-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }

  .questoes-actions-wrapper .btn-responder-action {
    text-align: center;
    justify-content: center;
    width: 100% !important;
  }

  .questoes-actions-wrapper .questoes-nav-group {
    gap: .5rem;
    width: 100%;
    display: flex;
  }

  .questoes-actions-wrapper .questoes-nav-group .btn-nav-voltar, .questoes-actions-wrapper .questoes-nav-group .btn-nav-avancar {
    text-align: center;
    flex: 1;
    justify-content: center;
  }
}

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

@keyframes piscarCursor {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

.cursor-digitacao {
  vertical-align: text-bottom;
  background: hsl(var(--primary));
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  animation: .9s step-end infinite piscarCursor;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-digitacao {
    animation: none;
  }
}

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

.mural-grade {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .85rem;
  display: grid;
}

.mural-item {
  aspect-ratio: 1;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 22%;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  overflow: hidden;
}

.mural-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.mural-item:hover:not(:disabled) {
  box-shadow: 0 6px 16px -6px hsl(var(--overlay)/.25);
  transform: translateY(-2px);
}

.mural-item:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

.mural-item--bloqueada {
  cursor: not-allowed;
  background: none;
  border-style: dashed;
}

.mural-item-glifo {
  color: hsl(var(--foreground));
  font-size: 1.75rem;
}

.lightbox-fundo {
  z-index: 1000;
  background: hsl(var(--overlay)/.75);
  outline: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  display: flex;
  position: fixed;
  inset: 0;
}

.lightbox-painel {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  max-width: min(92vw, 720px);
  max-height: 92dvh;
  color: hsl(var(--foreground));
  border-radius: 20px;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  display: flex;
  position: relative;
}

.lightbox-midia {
  object-fit: contain;
  background: hsl(var(--muted));
  border-radius: 14px;
  max-width: 100%;
  max-height: 68dvh;
}

.lightbox-legenda p {
  color: hsl(var(--muted-foreground));
  margin: .25rem 0 0;
  font-size: .8125rem;
}

.lightbox-fechar {
  z-index: 1;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  width: 2rem;
  height: 2rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  top: .5rem;
  right: .5rem;
}

@keyframes pulsarEsqueleto {
  0% {
    background-position: 100%;
  }

  100% {
    background-position: 0;
  }
}

.planos-publico-container {
  background-color: hsl(var(--background));
  min-height: 100vh;
  color: hsl(var(--foreground));
  flex-direction: column;
  display: flex;
}

.planos-publico-main {
  flex: 1;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUpFade {
  0% {
    opacity: 0;
    transform: scale(.96) translateY(18px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-slide-up {
  animation: .35s cubic-bezier(.16, 1, .3, 1) forwards slideUpFade;
}

.animate-scale-up {
  animation: .4s cubic-bezier(.16, 1, .3, 1) forwards scaleUpFade;
}

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

  50% {
    transform: translateY(-6px) rotate(1.2deg);
  }
}

.mascote-flutuante {
  will-change: transform;
  animation: 3.5s ease-in-out infinite flutuarMascote;
  display: inline-block;
}

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

  25% {
    transform: scale(1.05, .95) rotate(-1.5deg);
  }

  50% {
    transform: scale(.98, 1.03) rotate(.8deg);
  }

  75% {
    transform: scale(1.03, .97) rotate(1.8deg);
  }
}

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

  25% {
    transform: scale(1.08, .92) rotate(-2.5deg);
  }

  50% {
    transform: scale(.96, 1.05) rotate(1.5deg);
  }

  75% {
    transform: scale(1.06, .94) rotate(2.2deg);
  }
}

@keyframes pulsarNucleoFogo {
  0%, 100% {
    opacity: .92;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.15, 1.1);
  }
}

@keyframes pulsarAuraFogo {
  0%, 100% {
    opacity: .25;
    transform: scale(1);
  }

  50% {
    opacity: .55;
    transform: scale(1.18);
  }
}

@keyframes fagulhaAscendente {
  0% {
    opacity: 0;
    transform: translateY(0) scale(.6);
  }

  30% {
    opacity: .9;
  }

  100% {
    transform: translateY(-10px) translateX(var(--desvio-x, 2px)) scale(.2);
    opacity: 0;
  }
}

.fogo-streak-container {
  -webkit-user-select: none;
  user-select: none;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.fogo-streak-container:hover {
  transform: scale(1.12);
}

.fogo-streak-container.fogo-animado .fogo-labareda-externa {
  transform-origin: 16px 34px;
  will-change: transform;
  animation: 1.6s ease-in-out infinite oscilarChama;
}

.fogo-streak-container.fogo-animado .fogo-labareda-media {
  transform-origin: 16px 33px;
  will-change: transform;
  animation: 1.25s ease-in-out infinite reverse oscilarChama;
}

.fogo-streak-container.fogo-animado .fogo-labareda-nucleo {
  transform-origin: 16px 33px;
  will-change: transform, opacity;
  animation: .9s ease-in-out infinite alternate pulsarNucleoFogo;
}

.fogo-streak-container.fogo-animado .fogo-aura {
  transform-origin: 16px 26px;
  will-change: transform, opacity;
  animation: 2s ease-in-out infinite alternate pulsarAuraFogo;
}

.fogo-streak-container.fogo-nivel-apagado {
  opacity: .55;
  filter: grayscale(.85);
}

.fogo-streak-container.fogo-nivel-apagado .fogo-aura {
  fill: hsl(var(--muted-foreground)/.15);
  animation: none;
}

.fogo-streak-container.fogo-nivel-apagado .fogo-labareda-externa {
  fill: hsl(var(--muted-foreground)/.5);
  animation: none;
}

.fogo-streak-container.fogo-nivel-apagado .fogo-labareda-media {
  fill: hsl(var(--muted-foreground)/.35);
  animation: none;
}

.fogo-streak-container.fogo-nivel-apagado .fogo-labareda-nucleo {
  fill: hsl(var(--muted-foreground)/.2);
  animation: none;
}

.fogo-streak-container.fogo-nivel-apagado .fogo-fagulha {
  display: none;
}

.fogo-streak-container.fogo-nivel-ativo {
  filter: drop-shadow(0 0 6px hsl(var(--warning)/.45));
}

.fogo-streak-container.fogo-nivel-ativo .fogo-aura {
  fill: hsl(var(--warning)/.3);
}

.fogo-streak-container.fogo-nivel-ativo .fogo-labareda-externa {
  fill: #f94306;
}

.fogo-streak-container.fogo-nivel-ativo .fogo-labareda-media {
  fill: hsl(var(--warning));
}

.fogo-streak-container.fogo-nivel-ativo .fogo-labareda-nucleo {
  fill: #ffe666;
}

.fogo-streak-container.fogo-nivel-ativo .fogo-fagulha {
  display: none;
}

.fogo-streak-container.fogo-nivel-dourado {
  filter: drop-shadow(0 0 10px #ffbf00a6);
}

.fogo-streak-container.fogo-nivel-dourado.fogo-animado .fogo-labareda-externa {
  animation: 1.3s ease-in-out infinite oscilarChamaRapida;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-aura {
  fill: #ffbf0073;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-labareda-externa {
  fill: #f09a05;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-labareda-media {
  fill: #ffce0a;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-labareda-nucleo {
  fill: #fff7a3;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-fagulha {
  fill: #ffea80;
  transform-origin: center;
  animation: 1.4s ease-out infinite fagulhaAscendente;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-fagulha.fagulha-1 {
  --desvio-x: -3px;
  animation-delay: 0s;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-fagulha.fagulha-2 {
  --desvio-x: 3px;
  animation-delay: .45s;
}

.fogo-streak-container.fogo-nivel-dourado .fogo-fagulha.fagulha-3 {
  --desvio-x: 0px;
  animation-delay: .9s;
}

.fogo-streak-container.fogo-nivel-azul {
  filter: drop-shadow(0 0 14px #00d4ffcc);
}

.fogo-streak-container.fogo-nivel-azul.fogo-animado .fogo-labareda-externa {
  animation: 1.1s ease-in-out infinite oscilarChamaRapida;
}

.fogo-streak-container.fogo-nivel-azul .fogo-aura {
  fill: #00bfff8c;
}

.fogo-streak-container.fogo-nivel-azul .fogo-labareda-externa {
  fill: #2a6df4;
}

.fogo-streak-container.fogo-nivel-azul .fogo-labareda-media {
  fill: #10daf9;
}

.fogo-streak-container.fogo-nivel-azul .fogo-labareda-nucleo {
  fill: #ccfbff;
}

.fogo-streak-container.fogo-nivel-azul .fogo-fagulha {
  fill: #9ff;
  transform-origin: center;
  animation: 1.1s ease-out infinite fagulhaAscendente;
}

.fogo-streak-container.fogo-nivel-azul .fogo-fagulha.fagulha-1 {
  --desvio-x: -4px;
  animation-delay: .1s;
}

.fogo-streak-container.fogo-nivel-azul .fogo-fagulha.fagulha-2 {
  --desvio-x: 4px;
  animation-delay: .5s;
}

.fogo-streak-container.fogo-nivel-azul .fogo-fagulha.fagulha-3 {
  --desvio-x: 1px;
  animation-delay: .85s;
}

.btn-continuar-treino {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary)/.82) 100%);
  letter-spacing: -.01em;
  box-shadow: 0 4px 14px -2px hsl(var(--primary)/.45), inset 0 1px 0 hsl(var(--primary-foreground)/.25);
  border: 1px solid hsl(var(--primary-foreground)/.18);
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.45rem;
  font-size: .9375rem;
  font-weight: 700;
  transition: all .22s cubic-bezier(.4, 0, .2, 1);
  display: inline-flex;
  color: hsl(var(--primary-foreground)) !important;
  text-decoration: none !important;
}

.btn-continuar-treino .btn-icon-pulse {
  filter: drop-shadow(0 1px 2px hsl(var(--overlay)/.2));
  font-size: 1.15rem;
  display: inline-block;
}

.btn-continuar-treino .btn-arrow-hover {
  margin-left: .15rem;
  font-size: 1.15rem;
  transition: transform .2s cubic-bezier(.4, 0, .2, 1);
  display: inline-block;
}

.btn-continuar-treino:hover {
  box-shadow: 0 8px 24px -3px hsl(var(--primary)/.55), inset 0 1px 0 hsl(var(--primary-foreground)/.35);
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.btn-continuar-treino:hover .btn-arrow-hover {
  transform: translateX(4px);
}

.btn-continuar-treino:active {
  box-shadow: 0 2px 8px -1px hsl(var(--primary)/.35);
  transform: translateY(0);
}

.hotkey-badge {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

@media (width <= 1023px) {
  .hotkey-badge, .somente-teclado {
    display: none !important;
  }
}

.alternativa-arrastavel {
  touch-action: pan-y;
  will-change: transform;
  position: relative;
}

.alternativa-arrastavel.arrastando {
  transition: none !important;
}

.alternativa-trilho-tesoura {
  border-radius: var(--radius);
  background: hsl(var(--destructive)/.12);
  color: hsl(var(--destructive));
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  position: absolute;
  inset: 0;
}

.texto-quebravel {
  overflow-wrap: anywhere;
  min-width: 0;
}

.btn-tesourinha {
  cursor: pointer;
  touch-action: manipulation;
  background: none;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: .25rem;
  font-size: 1.15rem;
  transition: transform .15s, opacity .15s, background-color .15s;
  display: inline-flex;
}

@media (width <= 768px) {
  .btn-tesourinha {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.25rem;
  }
}

.btn-tesourinha:hover {
  background-color: hsl(var(--secondary)/.7);
}

.btn-tesourinha:active {
  transform: scale(.92);
}

.simulado-footer-nav {
  border-top: 1px solid hsl(var(--border)/.6);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-top: 1.25rem;
  transition: all .2s;
  display: flex;
}

@media (width <= 768px) {
  .simulado-footer-nav {
    background: hsl(var(--card)/.96);
    -webkit-backdrop-filter: blur(10px);
    padding: .85rem 1rem;
    padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -6px 20px hsl(var(--overlay)/.08);
    z-index: 30;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    margin: 0 -1.5rem -1.5rem;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

.simulado-swipe-hint {
  color: hsl(var(--muted-foreground));
  text-align: center;
  padding: .25rem 0;
  font-size: .75rem;
  display: none;
}

@media (width <= 1023px) {
  .simulado-swipe-hint {
    display: block;
  }
}

.subtopico-treino-item {
  border: 1px solid #0000;
  position: relative;
}

.subtopico-treino-item:hover {
  border-color: hsl(var(--primary)/.2);
  transform: translateX(3px);
  background-color: hsl(var(--primary)/.08) !important;
}

.subtopico-treino-item:hover .subtopico-nome-label {
  color: hsl(var(--primary)) !important;
  font-weight: 600 !important;
}

.subtopico-treino-item:hover .subtopico-target-icon {
  transform: scale(1.2);
  opacity: 1 !important;
}

.subtopico-treino-item:active {
  transform: scale(.98);
}

.subtopico-treino-item .subtopico-target-icon {
  transition: transform .18s, opacity .18s;
}

.home-navbar-container {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
}

@media (width <= 768px) {
  .home-navbar-container {
    gap: .5rem;
    padding: .75rem;
  }

  .desktop-only {
    display: none !important;
  }
}

.mobile-only {
  display: none !important;
}

@media (width <= 768px) {
  .mobile-only {
    display: inline !important;
  }
}

@keyframes abrirCardDaDireitaParaEsquerda {
  0% {
    opacity: 0;
    transform-origin: 100%;
    transform: translateX(100px) scaleX(.7);
  }

  60% {
    opacity: .85;
    transform-origin: 100%;
    transform: translateX(0) scaleX(1.03);
  }

  100% {
    opacity: 1;
    transform-origin: 100%;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes slidePassoCorrecao {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-slide-passo {
  animation: .25s cubic-bezier(.16, 1, .3, 1) forwards slidePassoCorrecao;
}

.layout-split-questao {
  width: 100%;
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
}

.layout-split-questao.modo-split-ativo {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
  gap: 1.5rem;
  display: grid;
}

@media (width <= 768px) {
  .layout-split-questao.modo-split-ativo {
    display: block !important;
  }
}

.layout-split-questao.modo-solteiro {
  width: 100%;
  display: block;
}

.painel-correcao-lateral {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -5px hsl(var(--overlay)/.08);
  flex-direction: column;
  max-height: calc(100vh - 100px);
  animation: .45s cubic-bezier(.16, 1, .3, 1) forwards abrirCardDaDireitaParaEsquerda;
  display: flex;
  position: sticky;
  top: 80px;
  overflow: hidden;
}

.painel-correcao-lateral .correcao-header {
  border-bottom: 1px solid hsl(var(--border)/.6);
  background: hsl(var(--card));
  flex-shrink: 0;
  padding: 1.1rem 1.25rem .75rem;
}

.painel-correcao-lateral .correcao-body {
  flex-direction: column;
  flex: 1;
  gap: 1rem;
  padding: 1.25rem;
  display: flex;
  overflow-y: auto;
}

.painel-correcao-lateral .correcao-body::-webkit-scrollbar {
  width: 6px;
}

.painel-correcao-lateral .correcao-body::-webkit-scrollbar-track {
  background: none;
}

.painel-correcao-lateral .correcao-body::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground)/.25);
  border-radius: 9999px;
}

.painel-correcao-lateral .correcao-body::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground)/.45);
}

.painel-correcao-lateral .correcao-footer {
  border-top: 1px solid hsl(var(--border)/.6);
  background: hsl(var(--card));
  flex-shrink: 0;
  padding: .85rem 1.25rem;
}

.painel-correcao-lateral .btn-proxima-destaque {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary)/.82) 100%);
  border: 1px solid hsl(var(--primary-foreground)/.15);
  height: 2.75rem;
  box-shadow: 0 4px 12px hsl(var(--primary)/.35);
  cursor: pointer;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 0 1.5rem;
  font-size: .9375rem;
  font-weight: 700;
  transition: all .2s cubic-bezier(.4, 0, .2, 1);
  display: inline-flex;
  color: hsl(var(--primary-foreground)) !important;
}

.painel-correcao-lateral .btn-proxima-destaque .seta-avanco {
  font-size: 1.15rem;
  transition: transform .2s;
  display: inline-block;
}

.painel-correcao-lateral .btn-proxima-destaque .badge-atalho {
  opacity: .85;
  font-size: .72rem;
  font-weight: 400;
}

.painel-correcao-lateral .btn-proxima-destaque:hover {
  box-shadow: 0 6px 16px hsl(var(--primary)/.45);
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.painel-correcao-lateral .btn-proxima-destaque:hover .seta-avanco {
  transform: translateX(4px);
}

.painel-correcao-lateral .btn-proxima-destaque:active {
  transform: translateY(0);
}

.gaveta-alca {
  cursor: ns-resize;
  touch-action: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  height: 44px;
  display: flex;
}

.gaveta-alca:before {
  content: "";
  background: hsl(var(--muted-foreground)/.45);
  border-radius: 9999px;
  width: 44px;
  height: 5px;
  transition: background .15s, width .15s;
}

.gaveta-alca.arrastando:before {
  background: hsl(var(--primary));
  width: 64px;
}

@media (width <= 1024px) {
  .painel-correcao-drawer-mobile {
    z-index: 70;
    max-height: 92vh;
    box-shadow: 0 -8px 30px hsl(var(--overlay)/.2);
    background: hsl(var(--card));
    border-radius: 20px 20px 0 0;
    flex-direction: column;
    animation: .3s cubic-bezier(.16, 1, .3, 1) slideUpMobile;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
  }

  .painel-correcao-drawer-mobile .correcao-drawer-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: auto;
    min-height: 0;
    overflow-y: auto;
  }

  .painel-correcao-drawer-mobile .correcao-footer {
    padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
  }

  .correcao-backdrop-mobile {
    background: hsl(var(--overlay)/.45);
    -webkit-backdrop-filter: blur(4px);
    z-index: 65;
    animation: .2s ease-out fadeIn;
    position: fixed;
    inset: 0;
  }
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.logo-theme-tradicional {
  display: block;
}

.logo-theme-oled, .logo-theme-sepia, .logo-theme-minimalista, [data-theme="noturno-oled"] .logo-theme-tradicional {
  display: none;
}

[data-theme="noturno-oled"] .logo-theme-oled {
  display: block;
}

[data-theme="sepia"] .logo-theme-tradicional {
  display: none;
}

[data-theme="sepia"] .logo-theme-sepia {
  display: block;
}

[data-theme="minimalista"] .logo-theme-tradicional {
  display: none;
}

[data-theme="minimalista"] .logo-theme-minimalista {
  display: block;
}

@keyframes rotacionarSimulado {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes barraProgressoIndeterminada {
  0% {
    transform: translateX(-100%);
  }

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

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

@keyframes pulsarBadgeWorker {
  0%, 100% {
    opacity: .88;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.simulado-spinner-ring {
  border: 3px solid hsl(var(--primary)/.15);
  border-top-color: hsl(var(--primary));
  border-right-color: hsl(var(--primary)/.7);
  width: 52px;
  height: 52px;
  box-shadow: 0 0 16px hsl(var(--primary)/.25);
  border-radius: 50%;
  animation: .9s cubic-bezier(.55, .15, .45, .85) infinite rotacionarSimulado;
}

.simulado-progress-track {
  background: hsl(var(--secondary));
  border-radius: 9999px;
  width: 100%;
  max-width: 440px;
  height: 6px;
  position: relative;
  overflow: hidden;
}

.simulado-progress-bar-indeterminada {
  background: linear-gradient(90deg, transparent, hsl(var(--primary)), transparent);
  border-radius: 9999px;
  width: 55%;
  height: 100%;
  animation: 1.7s ease-in-out infinite barraProgressoIndeterminada;
  position: absolute;
  top: 0;
  left: 0;
}

.simulado-worker-badge {
  background: hsl(var(--primary)/.12);
  border: 1px solid hsl(var(--primary)/.35);
  color: hsl(var(--primary));
  border-radius: 9999px;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  font-size: .8125rem;
  font-weight: 700;
  animation: 2.2s ease-in-out infinite pulsarBadgeWorker;
  display: inline-flex;
}

.simulado-alt-destaque {
  color: hsl(var(--primary));
  background: hsl(var(--primary)/.12);
  border: 1px solid hsl(var(--primary)/.25);
  border-radius: 4px;
  margin: 0 1px;
  padding: .1rem .35rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-block;
}
