:root {
  --bg: #07100d;
  --bg2: #09150f;
  --panel: #0d1b15;
  --panel2: #12241b;
  --panel3: #173023;
  --text: #edf7ee;
  --muted: #9ab3a3;
  --line: #274538;
  --line2: #365f4a;
  --green: #a8ef72;
  --green2: #7fd653;
  --cyan: #64dfc8;
  --amber: #f0ca72;
  --red: #ff8f7d;
  --shadow: 0 22px 70px #0008;
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eef5ef;
  --bg2: #e8f1e9;
  --panel: #f9fcf9;
  --panel2: #f2f8f2;
  --panel3: #e6f2e7;
  --text: #15241a;
  --muted: #587060;
  --line: #c9dbcc;
  --line2: #aac8af;
  --green: #417f27;
  --green2: #57963b;
  --cyan: #147c6b;
  --amber: #9b6b10;
  --red: #a64232;
  --shadow: 0 22px 60px #21472a18;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% -8%, #1a3e2866 0, transparent 32%),
    radial-gradient(circle at 15% 18%, #124c4140 0, transparent 25%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  box-shadow: 0 0 0 3px #64dfc844;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 99;
  background: var(--green);
  color: #112018;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}
.skip:focus {
  top: 12px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}
.top-inner {
  max-width: 1240px;
  margin: auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #a8ef7266;
  border-radius: 12px;
  background: linear-gradient(135deg, #a8ef7214, #64dfc812);
  color: var(--green);
  font: 900 16px var(--mono);
}
.brand small {
  display: block;
  color: var(--muted);
  font: 700 9px var(--mono);
  letter-spacing: 1.4px;
  margin-top: 2px;
}
.live-pill {
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 700 10px var(--mono);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px #a8ef7214;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.icon-btn,
.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.18s ease;
}
.icon-btn {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.btn {
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn:hover,
.icon-btn:hover {
  border-color: var(--line2);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #102014;
}
.btn.soft {
  background: var(--panel2);
}
.btn.danger {
  border-color: #ff8f7d55;
  color: #ffc2b8;
}
.btn.tiny {
  padding: 7px 9px;
  font-size: 11px;
  border-radius: 8px;
}
.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 18px 50px;
}
.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 28px;
  align-items: center;
  padding: 56px 0 28px;
}
.eyebrow {
  font: 800 11px var(--mono);
  letter-spacing: 1.25px;
  color: var(--green);
}
.hero h1 {
  font-size: clamp(43px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -4px;
  margin: 13px 0 18px;
  max-width: 780px;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 680px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #00000012;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 11px;
}
.count-card,
.panel,
.metric,
.nav-tabs {
  background: linear-gradient(150deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 #ffffff05 inset;
}
.count-card {
  padding: 24px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.count-card:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid #a8ef7226;
  right: -72px;
  top: -85px;
  box-shadow:
    0 0 0 25px #a8ef7208,
    0 0 0 50px #a8ef7205;
}
.count-label {
  font: 800 10px var(--mono);
  color: var(--muted);
  letter-spacing: 1px;
}
.count-number {
  font: 900 clamp(62px, 8vw, 92px)/0.95 var(--mono);
  letter-spacing: -6px;
  color: var(--green);
  margin: 9px 0 2px;
}
.count-card > small {
  color: var(--muted);
}
.exam-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.exam-row b {
  font: 800 12px var(--mono);
}
.exam-row span {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.metric {
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
}
.metric b {
  font-size: 26px;
  letter-spacing: -1px;
}
.metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.metric .sub {
  font: 700 9px var(--mono);
  color: var(--green);
  margin-top: 9px;
}
.nav-tabs {
  position: sticky;
  top: 65px;
  z-index: 20;
  border-radius: 13px;
  padding: 5px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(16px);
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.nav-tabs button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.nav-tabs button.on {
  background: var(--panel3);
  color: var(--green);
}
.tab {
  display: none;
  padding: 32px 0;
}
.tab.on {
  display: block;
  animation: enter 0.25s ease;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 32px;
  letter-spacing: -1.1px;
  margin: 5px 0;
}
.section-head p {
  max-width: 590px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-size: 14px;
}
.panel {
  border-radius: var(--radius);
  padding: 21px;
}
.panel h3 {
  margin: 0 0 10px;
  letter-spacing: -0.35px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mission {
  border-color: #567c49;
}
.mission h3 {
  font-size: 25px;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.quick-grid button {
  padding: 15px;
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 11px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}
.quick-grid button:hover {
  border-color: var(--line2);
}
.area-row {
  display: grid;
  grid-template-columns: 95px 1fr 42px;
  gap: 9px;
  align-items: center;
  margin: 13px 0;
  font-size: 12px;
}
.progress {
  height: 7px;
  background: #1c3529;
  border-radius: 999px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 999px;
}
.heatmap {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.heatmap i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--panel3);
  border: 1px solid var(--line);
}
.heatmap i.a1 {
  background: #38663c;
}
.heatmap i.a2 {
  background: #63a94c;
}
.heatmap i.a3 {
  background: var(--green);
}
.achievement-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 10px;
}
.badge.on {
  border-color: #a8ef7266;
  color: #dff9ce;
  background: #a8ef720c;
}
.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}
.field span {
  display: block;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea,
.search {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 11px 12px;
}
.field input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.day-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 12px;
  min-width: 0;
}
.day-card h4 {
  margin: 0 0 10px;
  color: var(--green);
  font: 800 10px var(--mono);
  letter-spacing: 0.6px;
}
.task {
  display: flex;
  gap: 7px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.task input {
  accent-color: var(--green);
  margin-top: 2px;
}
.task b {
  color: var(--text);
}
.essay-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 14px;
}
.editor {
  padding: 0;
  overflow: hidden;
}
.editor-top {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.editor-top select {
  flex: 1;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
}
.prompt {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
#essay {
  width: 100%;
  min-height: 500px;
  padding: 22px;
  background: transparent;
  border: 0;
  color: var(--text);
  resize: vertical;
  font:
    16px/1.9 Georgia,
    "Times New Roman",
    serif;
}
.editor-meta,
.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.coach-score {
  font-size: 56px;
  line-height: 1;
  color: var(--green);
  font-weight: 900;
  letter-spacing: -3px;
}
.coach-score small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
}
.feedback {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 8px;
}
.feedback.good {
  border-color: #659c5766;
  color: #cbe8c2;
}
.feedback.warn {
  border-color: #f0ca7255;
}
.comp-list {
  margin-top: 14px;
}
.comp {
  margin-top: 11px;
}
.comp-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.essay-history {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.history-item {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.history-item strong {
  font-size: 12px;
}
.history-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.history-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.quiz-toolbar,
.flash-toolbar,
.library-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.quiz-toolbar select,
.flash-toolbar select,
.library-toolbar select {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px;
  border-radius: 9px;
}
.question {
  margin-top: 10px;
}
.question h3 {
  font-size: 16px;
  line-height: 1.55;
}
.option {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  border-radius: 10px;
  margin-top: 7px;
  padding: 11px;
  cursor: pointer;
}
.option:hover {
  border-color: var(--line2);
}
.option.ok {
  border-color: #78b663;
  background: #78b66314;
}
.option.no {
  border-color: #d77967;
  background: #d7796714;
}
.question-explain {
  display: none;
  margin-top: 9px;
  padding: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.question.done .question-explain {
  display: block;
}
.quiz-score {
  font-weight: 900;
  color: var(--green);
}
.flash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.flashcard {
  min-height: 210px;
  perspective: 800px;
  cursor: pointer;
}
.flash-inner {
  height: 100%;
  min-height: 210px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s;
}
.flashcard.flipped .flash-inner {
  transform: rotateY(180deg);
}
.flash-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), var(--panel2));
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.flash-back {
  transform: rotateY(180deg);
}
.flash-face small {
  color: var(--green);
  font: 800 10px var(--mono);
}
.flash-face h3 {
  margin: auto 0;
  font-size: 20px;
}
.flash-face p {
  margin: auto 0;
  color: var(--muted);
  line-height: 1.6;
}
.flash-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.error-list {
  display: grid;
  gap: 10px;
}
.error-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.error-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.timer-wrap {
  text-align: center;
}
.clock {
  width: 245px;
  height: 245px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 10px auto 20px;
  border: 2px solid var(--line2);
  background: radial-gradient(circle, #a8ef720b, transparent 63%);
  box-shadow: 0 0 65px #a8ef7210;
}
.clock b {
  font: 900 52px var(--mono);
  letter-spacing: -2px;
}
.timer-presets {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.resource {
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.resource h3 {
  font-size: 17px;
}
.resource p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  flex: 1;
}
.resource-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.resource a {
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.resource a:hover {
  text-decoration: underline;
}
.official-note {
  border-color: #64dfc844;
}
.check-list label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.check-list input {
  accent-color: var(--green);
  margin-top: 2px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.fact {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.fact b {
  display: block;
  font-size: 19px;
  color: var(--green);
}
.fact span {
  font-size: 11px;
  color: var(--muted);
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: 340px;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  border-radius: 11px;
  box-shadow: var(--shadow);
  transform: translateY(140%);
  opacity: 0;
  transition: 0.25s;
}
.toast.on {
  transform: translateY(0);
  opacity: 1;
}
.modal {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 620px;
  width: min(94vw, 620px);
  padding: 0;
}
.modal::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 18px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 25px 0;
  color: var(--muted);
  font-size: 11px;
}
.footer a {
  color: var(--cyan);
  text-decoration: none;
}
.install-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #a8ef7244;
  background: #a8ef7208;
  border-radius: 12px;
  margin: 12px 0;
}
.install-banner.on {
  display: flex;
}
.install-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  flex: 1;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .week {
    grid-template-columns: repeat(4, 1fr);
  }
  .resource-grid,
  .flash-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .hero,
  .essay-layout,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 38px;
  }
  .section-head {
    display: block;
  }
  .section-head p {
    margin-top: 7px;
  }
  .week {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .live-pill {
    display: none;
  }
  .nav-tabs {
    top: 64px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 13px 34px;
  }
  .top-inner {
    padding: 11px 13px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .top-actions .btn {
    display: none;
  }
  .hero h1 {
    font-size: 44px;
    letter-spacing: -2.5px;
  }
  .hero-copy {
    font-size: 14px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric:last-child {
    grid-column: 1/-1;
  }
  .nav-tabs {
    margin: 0 -13px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .diff-grid,
  .profile-row,
  .resource-grid,
  .flash-grid,
  .facts {
    grid-template-columns: 1fr;
  }
  .week {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  .editor-top {
    flex-wrap: wrap;
  }
  .editor-top select {
    min-width: 100%;
  }
  .count-number {
    font-size: 70px;
  }
  .heatmap {
    grid-template-columns: repeat(14, 1fr);
  }
  .heatmap i:nth-child(-n + 7) {
    display: none;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .clock {
    width: 210px;
    height: 210px;
  }
  .clock b {
    font-size: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Trilhas Kaloré — progressão gamificada original */
.trail-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}
.trail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.trail-summary h3 {
  font-size: 25px;
  margin: 5px 0;
}
.trail-kpis {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.trail-switch {
  display: flex;
  gap: 6px;
  overflow: auto;
  align-items: stretch;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  scrollbar-width: none;
}
.trail-switch::-webkit-scrollbar {
  display: none;
}
.trail-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 9px;
  white-space: nowrap;
  font-weight: 850;
  cursor: pointer;
}
.trail-switch button.on {
  background: var(--panel3);
  color: var(--green);
}
.trail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: start;
}
.trail-map {
  min-height: 580px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, #a8ef720b, transparent 28%),
    linear-gradient(150deg, var(--panel), var(--panel2));
}
.trail-map:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 70px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(var(--line), #a8ef7244, var(--line));
  transform: translateX(-50%);
}
.unit-head {
  position: relative;
  z-index: 1;
  max-width: 410px;
  margin: 0 auto 22px;
  text-align: center;
}
.unit-head span {
  font: 800 10px var(--mono);
  color: var(--cyan);
  letter-spacing: 1px;
}
.unit-head h3 {
  margin: 5px 0 0;
}
.lesson-path {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.lesson-node {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  border: 2px solid var(--line2);
  background: var(--panel3);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  box-shadow: 0 7px 0 #050b0866;
  transition: 0.18s;
}
.lesson-node:nth-child(odd) {
  transform: translateX(-64px);
}
.lesson-node:nth-child(even) {
  transform: translateX(64px);
}
.lesson-node:hover:not(:disabled) {
  border-color: var(--green);
  transform: translateY(-2px) translateX(var(--x, 0));
}
.lesson-node:nth-child(odd):hover:not(:disabled) {
  --x: -64px;
}
.lesson-node:nth-child(even):hover:not(:disabled) {
  --x: 64px;
}
.lesson-node.done {
  background: linear-gradient(145deg, #487f3e, #70b852);
  border-color: #a8ef7288;
  color: #efffe5;
}
.lesson-node.current {
  border-color: var(--green);
  color: var(--green);
  box-shadow:
    0 0 0 7px #a8ef7210,
    0 7px 0 #050b0866;
}
.lesson-node.locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.4);
}
.lesson-node.boss {
  border-radius: 50%;
  width: 86px;
  height: 86px;
  background: linear-gradient(145deg, #19352d, #142820);
  border-color: #64dfc866;
}
.lesson-node b {
  font: 900 18px var(--mono);
}
.lesson-node small {
  position: absolute;
  top: 78px;
  width: 170px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}
.lesson-node.boss small {
  top: 92px;
}
.lesson-panel {
  position: sticky;
  top: 132px;
}
.lesson-panel h3 {
  font-size: 25px;
  margin: 6px 0 9px;
}
.lesson-preview {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg2);
}
.lesson-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.lesson-question {
  margin-top: 14px;
}
.lesson-question h4 {
  font-size: 15px;
  line-height: 1.5;
}
.lesson-option {
  display: block;
  width: 100%;
  padding: 10px 11px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.lesson-option:hover {
  border-color: var(--line2);
}
.lesson-option.ok {
  border-color: #83ca65;
  background: #83ca6512;
}
.lesson-option.no {
  border-color: #ee8c78;
  background: #ee8c7811;
}
.energy-low {
  color: #ffb3a4 !important;
}
.full {
  width: 100%;
}
.trail-result {
  padding: 14px;
  border-radius: 11px;
  border: 1px solid #a8ef7244;
  background: #a8ef7208;
  margin: 14px 0;
}
.trail-result strong {
  color: var(--green);
}
@media (max-width: 900px) {
  .trail-top,
  .trail-layout {
    grid-template-columns: 1fr;
  }
  .lesson-panel {
    position: static;
  }
  .trail-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .trail-kpis {
    justify-content: flex-start;
  }
}
@media (max-width: 560px) {
  .trail-map {
    min-height: 540px;
  }
  .lesson-node:nth-child(odd) {
    transform: translateX(-45px);
  }
  .lesson-node:nth-child(even) {
    transform: translateX(45px);
  }
  .lesson-node:nth-child(odd):hover:not(:disabled) {
    --x: -45px;
  }
  .lesson-node:nth-child(even):hover:not(:disabled) {
    --x: 45px;
  }
  .lesson-node small {
    width: 130px;
    font-size: 9px;
  }
  .trail-switch {
    margin: 0 -4px;
  }
  .trail-switch button {
    padding: 9px 10px;
  }
}

/* Kaloré 4.0 */
.sprint {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  margin-top: 14px;
  border-color: #5d8a4e;
  background:
    radial-gradient(circle at 92% 0, #a8ef7214, transparent 34%),
    linear-gradient(145deg, var(--panel), var(--panel2));
}
.sprint h3 {
  font-size: 24px;
  margin: 5px 0 8px;
}
.sprint-steps {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.sprint-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 12px;
}
.sprint-step b {
  color: var(--text);
}
.sprint-clock {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 170px;
  background: #00000014;
}
.sprint-clock strong {
  font: 900 48px var(--mono);
  color: var(--green);
}
.sprint-clock span {
  font-size: 11px;
  color: var(--muted);
}
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: #020806d9;
  backdrop-filter: blur(14px);
}
.modal-shell.on {
  display: grid;
}
.onboard {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--line2);
  background: linear-gradient(150deg, var(--panel), var(--panel2));
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.onboard h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 7px 0 8px;
}
.onboard p {
  color: var(--muted);
  line-height: 1.65;
}
.onboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.pick {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg2);
  cursor: pointer;
}
.pick:has(input:checked) {
  border-color: var(--green);
  background: #a8ef720b;
}
.pick input {
  margin-top: 2px;
  accent-color: var(--green);
}
.onboard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.daily-ring {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) var(--p, 0%), var(--line) 0);
  position: relative;
}
.daily-ring:after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--panel);
}
.daily-ring b {
  position: relative;
  z-index: 1;
  font: 900 18px var(--mono);
}
.install-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.install-banner.on {
  display: flex;
}
.install-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  flex: 1;
}
.flash-actions.three {
  grid-template-columns: repeat(3, 1fr);
}
.flash-due {
  font: 800 9px var(--mono);
  color: var(--cyan);
}
@media (max-width: 760px) {
  .sprint {
    grid-template-columns: 1fr;
  }
  .onboard-grid {
    grid-template-columns: 1fr;
  }
  .sprint-clock {
    min-height: 130px;
  }
  .install-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
