:root {
  color-scheme: dark;
  --bg: #100d18;
  --card: #191326;
  --ink: #f4effb;
  --dim: #bfb3d1;
  --line: #3b2c52;
  --deep: #352353;
  --green: #b5f785;
  --mint: #263921;
  --lime: #bcf985;
  --lime-edge: #8cbb61;
  --sky: #2a2040;
  --gold: #302242;
  --round: 18px;
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
input[type="checkbox"] { accent-color: var(--green); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid #b4f588; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 64px), 1194px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
.skip:focus { position: fixed; z-index: 5; padding: 12px; background: var(--card); }

.top { min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 850; letter-spacing: -.044em; font-size: 1.25rem; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; height: 35px; min-width: 39px; border: 2px solid #554173; border-bottom-width: 4px; border-radius: 12px; background: #2a1e41; color: var(--green); font-family: ui-monospace, monospace; font-size: .88rem; letter-spacing: -.09em; }
.top nav { display: flex; gap: clamp(13px, 3vw, 34px); font-weight: 760; color: var(--dim); font-size: .94rem; }
.top > button { justify-self: end; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 2px solid transparent; border-bottom-width: 4px; border-radius: 13px; padding: 8px 15px; font-weight: 800; font-size: .92rem; line-height: 1.26; text-align: center; transition: background .15s, transform .15s, border-color .15s; }
.button:hover { text-decoration: none; }
.button:active:not(:disabled) { transform: translateY(2px); }
.border { background: var(--card); border-color: #4b3866; color: var(--ink); }
.border:hover:not(:disabled) { background: #302144; border-color: #8967b3; }
.dark { background: var(--deep); border-color: #66479e; color: #f7f2ff; }
.dark:hover:not(:disabled) { background: #4c3373; }
.lime { background: var(--lime); border-color: var(--lime-edge); color: #17220f; }
.lime:hover:not(:disabled) { background: #d5ffa8; }
.button:disabled { color: #b7a7c9; background: #2b2138; border-color: #362944; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 28%); align-items: center; gap: clamp(18px, 5.5vw, 65px); min-height: 348px; padding: clamp(25px, 5.2vw, 64px); border: 1px solid #4f3675; border-radius: 25px; background: radial-gradient(ellipse at 90% 25%, #3c245e, transparent 55%), linear-gradient(128deg,#191123,#211631 72%); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 330px; height: 330px; right: -69px; bottom: -117px; border: 1px solid #6b479a; box-shadow: 0 0 0 29px #502e7937, 0 0 0 58px #502e7927; }
.hero::after { width: 192px; height: 192px; right: 82px; top: -104px; border: 1px solid #7f54b0; background: #50357945; }
.label { font-size: .82rem; font-weight: 850; line-height: 1.25; letter-spacing: .025em; color: var(--green); }
.hero-tag { display: inline-block; padding: 6px 11px; border: 1px solid #594078; border-radius: 20px; background: #2a1c41; }
.hero h1 { margin-top: 15px; font-size: clamp(2.7rem, 6.4vw, 5.15rem); font-weight: 900; letter-spacing: -.075em; line-height: .98; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p:not(.label) { max-width: 470px; margin: 19px 0 23px; color: #d2c5e0; font-size: 1.04rem; line-height: 1.56; }
.hero .button { min-height: 46px; padding-inline: 17px; }
.portrait { justify-self: center; position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; padding: 13px 16px 8px; width: min(100%, 244px); min-width: 0; background: #fff; border: 2px solid #b88fec; border-bottom: 6px solid #b88fec; border-radius: 24px; transform: rotate(4deg); box-shadow: 0 12px 25px #07041060; }
.portrait::before { position: absolute; top: -14px; right: -13px; content: "✦"; display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid #66448d; border-radius: 12px; background: var(--gold); color: #e1caff; font-size: 1.32rem; transform: rotate(10deg); }
.portrait img { display: block; width: auto; height: clamp(137px, 20vw, 199px); max-width: 100%; object-fit: contain; mix-blend-mode: normal; }
.portrait figcaption { color: #261839; padding-top: 9px; border-top: 1px solid #e0ccf5; width: 100%; font-weight: 850; text-align: center; font-size: .9rem; }

.progress-band { display: grid; grid-template-columns: auto minmax(160px, 1fr); gap: clamp(20px, 5vw, 66px); align-items: center; margin-top: 15px; padding: 17px 23px; border: 2px solid var(--line); border-radius: var(--round); background: var(--card); }
.progress-caption { display: flex; align-items: center; gap: 11px; }
.progress-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--sky); color: #dcbfff; font-size: 1.18rem; font-weight: 900; }
.progress-band h2 { font-size: 1.06rem; font-weight: 850; letter-spacing: -.024em; }
.progress-band p { margin-top: 2px; color: var(--dim); font-size: .88rem; }
.progress-meter p { margin: 0 0 6px; text-align: right; font-weight: 850; color: var(--green); }
progress { display: block; width: 100%; height: 11px; border: 0; border-radius: 20px; background: #30233e; accent-color: #a7ee70; overflow: hidden; }
progress::-webkit-progress-bar { background: #30233e; }
progress::-webkit-progress-value { border-radius: 20px; background: #a7ee70; }
progress::-moz-progress-bar { border-radius: 20px; background: #a7ee70; }

.section { margin-top: 49px; scroll-margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 17px; }
.section-head h2 { font-size: clamp(1.88rem, 4.3vw, 2.75rem); letter-spacing: -.062em; line-height: 1.08; font-weight: 900; }
.section-head p { margin-top: 7px; color: var(--dim); line-height: 1.55; }
.section-status { white-space: nowrap; font-weight: 800; font-size: .9rem; }
.study-layout { display: grid; grid-template-columns: minmax(225px, 29%) minmax(0, 1fr); gap: 16px; align-items: start; }
.course-nav { display: grid; gap: 7px; position: sticky; top: 12px; }
.course-link { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 62px; padding: 8px 11px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 15px; background: var(--card); font-size: .92rem; line-height: 1.21; }
.course-link:hover { background: #241939; text-decoration: none; }
.course-link[aria-current] { background: #2d1e44; border-color: #8c60ca; }
.course-step { display: grid; place-items: center; height: 34px; border-radius: 10px; background: #32214b; color: #e1c9ff; font-weight: 900; font-size: .83rem; }
.course-link:nth-child(3n + 2) .course-step { background: var(--sky); color: #d3b8ff; }
.course-link:nth-child(3n) .course-step { background: var(--gold); color: #e1caff; }
.course-label { overflow-wrap: anywhere; }
.course-label strong { font-weight: 850; }
.course-label small { display: block; margin-top: 3px; font-size: .79rem; color: var(--dim); }
.course-done { color: #b9f497; font-weight: 900; }
.course-link.is-complete .course-step { background: #273a23; color: #b8f692; }

.lesson { min-width: 0; padding: clamp(18px, 3.7vw, 34px); border: 2px solid var(--line); border-radius: var(--round); background: var(--card); scroll-margin-top: 14px; }
.lesson-info { display: flex; gap: 8px 15px; flex-wrap: wrap; align-items: center; }
.lesson-info .label { padding: 5px 9px; border-radius: 20px; background: var(--mint); }
.lesson-files { color: var(--dim); font: .8rem ui-monospace, monospace; overflow-wrap: anywhere; }
.lesson h3 { margin: 9px 0 14px; font-size: clamp(1.67rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.063em; line-height: 1.06; }
.lesson h3:focus { outline: none; }
.lesson h4 { margin: 19px 0 8px; font-size: 1.07rem; font-weight: 850; letter-spacing: -.023em; }
.lesson-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; background: #120f1d; border-radius: 14px; padding: 5px; margin-bottom: 17px; }
.lesson-stages .button { min-height: 40px; padding: 5px 8px; border-radius: 10px; border-color: transparent; background: transparent; }
.lesson-stages .button[aria-pressed="true"] { border-color: #7954ae; background: var(--card); color: var(--green); }
.lesson-stages button:disabled { color: #a594bb; }
.lead, .notes, .talk, .solution, .presentation p, .rehearse-body p { color: #d0c5dd; line-height: 1.59; }
.notes { padding: 0; margin: 0 0 13px; list-style: none; counter-reset: ideias; }
.notes li { position: relative; padding: 9px 11px 9px 41px; counter-increment: ideias; border-radius: 12px; background: #221933; }
.notes li + li { margin-top: 7px; }
.notes li::before { position: absolute; top: 10px; left: 10px; width: 23px; height: 23px; display: grid; place-items: center; content: counter(ideias); border-radius: 8px; color: var(--green); background: #37254e; font-size: .78rem; font-weight: 850; }
.code-box { min-width: 0; border-radius: 12px; background: #110e1c; color: #eee7f8; overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #372a49; overflow-wrap: anywhere; color: #ccb8ea; font: .82rem ui-monospace, monospace; }
.code-box pre { margin: 0; padding: 13px 15px; overflow: auto; max-height: 440px; font: .83rem/1.6 ui-monospace, "Liberation Mono", monospace; tab-size: 4; }
.code-kw { color: #d6afff; }.code-str { color: #b7ef91; }.code-num { color: #ffce9f; }.code-comment { color: #aaa0b8; }
.fold { padding: 0 12px; margin-top: 7px; border: 2px solid var(--line); border-radius: 12px; }
.fold[open] { padding-bottom: 10px; }
.fold summary { padding: 9px 0; cursor: pointer; font-weight: 790; line-height: 1.45; overflow-wrap: anywhere; }
.fold .code-box { margin-top: 4px; }
.lesson-sources .fold { border-width: 1px; }
.check-body > button { margin-top: 9px; }
.checklist { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.checklist label, .quiz-check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.43; cursor: pointer; }
.checklist label { margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #20182d; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.lesson-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 15px; margin-top: 16px; border-top: 1px solid var(--line); }
.talk { margin-top: 12px; padding: 10px 12px; border-left: 4px solid #9c6de0; border-radius: 0 10px 10px 0; background: var(--sky); }
.teacher-form input { min-width: 0; max-width: 100%; padding: 9px; border: 2px solid #513c70; border-radius: 10px; background: var(--card); color: var(--ink); font-size: 1rem; }

.question-meta { display: flex; align-items: center; gap: 14px; margin: 5px 0 19px; }
.question-meta .label { flex: none; }
.question-meta progress { height: 8px; min-width: 0; }
.question fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.practice-heading, .lesson .practice-heading { padding: 0; margin: 0 0 6px; font-size: clamp(1.32rem, 3.1vw, 1.85rem); font-weight: 900; letter-spacing: -.043em; line-height: 1.16; }
.question-type { color: var(--dim); margin: 5px 0 13px; }
.answers { display: grid; gap: 8px; }
.answer { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 2px solid #45345d; border-bottom-width: 4px; border-radius: 13px; font-weight: 750; line-height: 1.35; cursor: pointer; }
.answer input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.answer:has(input:focus-visible) { outline: 3px solid #b5ef86; outline-offset: 3px; }
.answer:not(:has(input:disabled)):hover { border-color: #9869ce; background: #2c1e43; }
.answer:has(input:checked) { border-color: #9a78d7; background: #342452; }
.answer:has(input:disabled) { cursor: default; }
.answer.is-correct { border-color: #699c54; background: #24371f; }
.answer.is-wrong { border-color: #be8370; background: #40282e; }
.answer-letter { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #2b203c; color: var(--dim); font-size: .84rem; font-weight: 900; }
.question-feedback:empty { margin: 0; padding: 0; }
.question-feedback { display: grid; gap: 3px; margin-top: 13px; padding: 11px 12px; border-radius: 11px; line-height: 1.45; }
.feedback-correct { background: #243522; color: #d2f9bc; }
.feedback-wrong { background: #412c31; color: #ffd5bb; }
.practice-complete { padding: 17px 6px 6px; text-align: center; }
.completion-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 13px; border: 2px solid #78ab57; border-bottom-width: 5px; border-radius: 18px; background: var(--lime); color: #233518; font-size: 1.7rem; font-weight: 900; }
.practice-complete .actions { justify-content: center; margin-top: 17px; }

.quiz-list, .presentation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.quiz-list .fold { padding-inline: 14px; margin: 0; background: var(--card); }
.quiz-list summary { padding-block: 12px; }
.quiz-check { margin-top: 9px; color: var(--green); font-weight: 760; }
.solution { margin-bottom: 6px; }
.presentation article { min-width: 0; padding: 15px 17px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.presentation h3 { margin: 4px 0 6px; font-size: 1.23rem; font-weight: 850; letter-spacing: -.041em; }
.presentation .code-box { margin-top: 9px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 39px; padding: 17px 0 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .89rem; }
.foot .logo { color: var(--ink); }

.teacher-dialog, .rehearse-dialog, .source-dialog, .reset-dialog { width: min(665px, calc(100% - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 2px solid var(--line); border-radius: var(--round); background: var(--bg); color: var(--ink); }
dialog::backdrop { background: #0a0612b8; }
.progress-tools { display: flex; justify-content: flex-end; margin-top: 20px; }
.reset-dialog { width: min(440px, calc(100% - 20px)); }
.reset-body { padding: clamp(16px, 4vw, 24px); }
.reset-body h2 { font-size: 1.25rem; }
.reset-body p { margin-top: 8px; color: var(--dim); line-height: 1.5; }
.reset-body #reset-erro { color: #ffb6bc; }
.reset-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.reset-actions .danger { color: #fff1f2; background: #782d42; border-color: #ab5870; }
.reset-actions .danger:hover { background: #91364e; }
.dialog-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--mint); }
.dialog-head img { object-fit: contain; border-radius: 10px; mix-blend-mode: normal; }
.dialog-head h2 { font-size: 1.16rem; font-weight: 850; letter-spacing: -.036em; }
.dialog-head p { margin-top: 2px; color: var(--dim); font-size: .88rem; }
.dialog-head form { margin-left: auto; }
.close { width: 40px; height: 40px; border: 2px solid #4b3964; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 1.35rem; line-height: 1; }
.teacher-body { padding: 13px 16px 16px; }
.conversation { display: flex; flex-direction: column; gap: 8px; max-height: min(42vh, 350px); padding: 3px 5px 6px 1px; overflow: auto; }
.reply, .ask { align-self: start; max-width: 94%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); line-height: 1.48; overflow-wrap: anywhere; }
.ask { align-self: end; border-color: #594477; background: #35254d; }
.reply a, .inline-link { display: inline-block; color: #c7ffa2; text-decoration: underline; text-underline-offset: 3px; font-weight: 820; }
.reply a { margin-top: 5px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 10px; }
.suggestions button { min-height: 35px; padding: 4px 8px; font-size: .84rem; }
.teacher-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rehearse-body { padding: 18px; }
.rehearse-body h3 { margin-bottom: 8px; font-size: clamp(1.5rem, 4vw, 2.45rem); letter-spacing: -.045em; }
.rehearse-body .talk { font-size: 1.09rem; }
.rehearse-controls { display: flex; justify-content: space-between; gap: 8px; padding: 0 18px 15px; }

@media (max-width: 800px) {
  .container { width: calc(100% - 38px); }
  .hero { padding: 28px; min-height: 0; gap: 20px; }
  .hero h1 { font-size: clamp(2.6rem, 7.4vw, 4rem); }
  .study-layout { grid-template-columns: minmax(170px, 29%) minmax(0, 1fr); gap: 10px; }
  .course-link { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; padding: 7px; }
  .course-step { height: 28px; }
}
@media (max-width: 580px) {
  .container { width: calc(100% - 24px); }
  .top { grid-template-columns: minmax(0, 1fr) auto; min-height: 62px; gap: 6px 9px; margin-bottom: 10px; }
  .top nav { grid-column: 1 / -1; grid-row: 2; gap: 16px; }
  .top > button { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: 22px; padding: 19px; gap: 16px; }
  .hero h1 { font-size: clamp(2.05rem, 9.5vw, 3.55rem); }
  .hero-copy > p:not(.label) { margin: 13px 0 15px; font-size: 1rem; }
  .portrait { display: flex; justify-self: start; gap: 9px; width: auto; padding: 5px 10px; transform: none; border-radius: 14px; }
  .portrait::before { width: 23px; height: 23px; top: -7px; right: -6px; border-radius: 7px; font-size: .92rem; }
  .portrait img { height: 75px; }
  .portrait figcaption { padding: 0; border: 0; }
  .progress-band { grid-template-columns: minmax(0, 1fr); margin-top: 11px; gap: 9px; padding: 12px; }
  .progress-meter p { text-align: left; }
  .section { margin-top: 33px; }
  .section-head { display: block; margin-bottom: 11px; }
  .section-head button { margin-top: 9px; }
  .study-layout { grid-template-columns: minmax(0, 1fr); }
  .course-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .course-link { min-height: 51px; padding: 5px; grid-template-columns: 23px minmax(0, 1fr) auto; gap: 5px; font-size: .83rem; border-radius: 11px; }
  .course-step { height: 24px; border-radius: 7px; font-size: .74rem; }
  .course-label small { font-size: .72rem; }
  .lesson { padding: 14px; }
  .lesson-foot .button { flex-grow: 1; }
}
@media (max-width: 360px) {
  .top .logo { gap: 6px; font-size: 1rem; }
  .top .logo-mark { width: 29px; height: 30px; min-width: 0; }
  .top > button { padding-inline: 8px; }
  .teacher-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 15px;
}
.mode-card {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--card);
  text-align: left;
}
.mode-card:hover { border-color: #9a6bdd; }
.mode-card[aria-pressed="true"] { border-color: #a574e9; background: #291b3f; box-shadow: 0 0 0 1px #7d54bc4d; }
.mode-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid #63448c;
  border-radius: 10px;
  background: #372455;
  color: #e2caff;
  font: 800 .84rem ui-monospace, monospace;
}
.mode-info { min-width: 0; }
.mode-info strong, .mode-info > span { display: block; }
.mode-info strong { font-size: 1.03rem; font-weight: 850; letter-spacing: -.025em; }
.mode-info > span { margin-top: 4px; color: var(--dim); font-size: .87rem; line-height: 1.4; }
.mode-tag { align-self: start; padding: 4px 7px; border-radius: 7px; color: #c9f6b3; background: #273b25; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.source-heading { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.source-heading h4 { margin: 0; }
.source-heading .button { min-height: 35px; padding: 5px 9px; border-width: 1px; font-size: .84rem; }
.code-box { border: 1px solid #403052; }
.code-bar { background: #1f162d; }
.code-number { display: inline-block; width: 3ch; margin-right: 1.4ch; color: #9f89b5; text-align: right; user-select: none; }
.code-line { display: inline-block; min-width: 100%; }
.code-line.is-highlighted { background: #302344; }
.code-line.is-highlighted .code-number { color: var(--green); }
.lesson > .code-box pre { max-height: 300px; }
.code-reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 13px 0; }
.code-reading > div { display: grid; grid-template-columns: minmax(112px, .3fr) minmax(0, 1fr); gap: 8px 13px; padding: 10px 12px; border: 1px solid #3b2b50; border-radius: 11px; background: #21182e; }
.code-reading dt { color: #dcbfff; font-weight: 850; line-height: 1.5; }
.code-reading dd { margin: 0; color: #dbd0e5; line-height: 1.52; }
.question-source { margin-bottom: 17px; }
.question-source .code-box pre { max-height: 200px; }
.question-meta { margin-bottom: 12px; }
.point-action { display: block; margin-top: 7px; }
.point-action .button { min-height: 35px; border-width: 1px; padding: 4px 9px; color: #e4caff; font-size: .83rem; }
.question-feedback .button { justify-self: start; margin-top: 6px; }
.reply { min-width: 0; }
.reply .code-box { margin-top: 7px; }
.reply .code-box pre { max-height: 180px; }
.reply ol { padding-left: 22px; margin: 6px 0; }
.source-dialog { width: min(980px, calc(100% - 20px)); }
.source-body { padding: 13px 16px 17px; }
.source-body label { display: inline-block; margin-right: 8px; font-weight: 750; }
.source-body select { width: min(230px, 100%); padding: 8px; border: 1px solid #614982; border-radius: 9px; background: #1e152d; color: var(--ink); }
.source-body p { margin-top: 8px; color: var(--dim); font-size: .88rem; }
#arquivo-codigo { margin-top: 10px; }
#arquivo-codigo pre { max-height: min(58vh, 540px); }
@media (max-width: 720px) {
  .mode-card { grid-template-columns: 31px minmax(0, 1fr); gap: 8px; }
  .mode-mark { width: 31px; height: 33px; }
  .mode-tag { grid-column: 2; justify-self: start; }
}
@media (max-width: 485px) {
  .mode-switch, .code-reading > div { grid-template-columns: minmax(0, 1fr); }
  .mode-card { min-height: 0; }
  .code-reading > div { gap: 3px; }
}

.lock-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 9px;
  margin: 5px 1px 0 2px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  color: #dac8f1;
}
.lock-icon::before {
  position: absolute;
  inset: -6px 1px auto;
  height: 7px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.teacher-avatar {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 57px;
  flex: none;
  overflow: hidden;
  padding: 2px;
  border: 1px solid #ad8dd2;
  border-radius: 11px;
  background: #fff;
}
.teacher-avatar img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; }
.teacher-dialog[open] .teacher-avatar:not(.reaction-win):not(.reaction-try) img { animation: professor-idle 3.4s ease-in-out infinite; }
.question-feedback:not(:empty) { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 11px; }
.reaction-copy { min-width: 0; }
.reaction-copy p { margin-top: 4px; }
.reaction-copy .button { max-width: 100%; margin-top: 8px; }
.teacher-avatar.reaction-win img { animation: professor-win .7s cubic-bezier(.2,.65,.4,1); }
.teacher-avatar.reaction-try img { animation: professor-think .75s ease-in-out; }
@keyframes professor-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
}
@keyframes professor-win {
  0%, 100% { transform: translateY(0) rotate(0); }
  33% { transform: translateY(-7px) rotate(-7deg) scale(1.04); }
  64% { transform: translateY(-2px) rotate(6deg); }
}
@keyframes professor-think {
  0%, 100% { transform: rotate(0); }
  38% { transform: translateY(2px) rotate(9deg); }
  72% { transform: translateY(-1px) rotate(-4deg); }
}
.answer-copy { min-width: 0; }
.answer-tag {
  display: inline-block;
  margin: 5px 0 0 7px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #314e29;
  color: #d3ffac;
  font-size: .77rem;
  font-weight: 800;
}
.answer.is-wrong .answer-tag { background: #683f43; color: #ffdece; }

.theory-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.theory-intro .lead { flex: 1 1 300px; }
.theory-intro .button { min-height: 44px; padding: 6px 11px; border-width: 1px; font-size: .86rem; }
.execution-reading { margin-bottom: 22px; container-type: inline-size; }
.execution-reading > .lead { margin-bottom: 11px; }
.execution-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.execution-picker .button { flex: 1 1 151px; justify-content: flex-start; gap: 7px; min-height: 46px; padding: 6px 9px; border-width: 1px; border-radius: 10px; text-align: left; font-size: .85rem; }
.execution-picker .button[aria-pressed="true"] { background: #38264d; border-color: #ae83e8; }
.execution-number { flex: 0 0 23px; text-align: center; line-height: 23px; border-radius: 6px; background: #120f1d; color: #ddc2ff; }
.execution-picker .button[aria-pressed="true"] .execution-number { background: var(--green); color: #171020; }
.execution-panel { padding: clamp(10px, 2.2vw, 16px); border: 1px solid #583b75; border-radius: 13px; background: #20172d; }
.execution-panel h5 { margin: 0; color: #f0dfff; font-size: 1rem; line-height: 1.35; scroll-margin-top: 16px; }
.execution-case, .execution-result p, .execution-notes p { color: #ded3e8; line-height: 1.55; }
.execution-case { margin: 6px 0 12px; }
.execution-body { display: grid; gap: 11px; align-items: start; }
.execution-body .code-bar { flex-wrap: wrap; }
.execution-body .code-bar span:first-child { color: #e5ccff; font-weight: 800; }
.execution-body pre { max-height: none; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.execution-body .code-line { display: inline-grid; grid-template-columns: 3ch minmax(0, 1fr); gap: .8ch; vertical-align: top; }
.execution-body .code-number { margin-right: 0; }
.execution-notes { display: grid; gap: 7px; padding: 0; list-style: none; }
.execution-notes li { padding: 9px 11px; border-radius: 9px; background: #2a1e39; }
.execution-notes strong { color: #dcbeff; font: 750 .8rem ui-monospace, monospace; }
.execution-notes p, .execution-result p { margin: 3px 0 0; }
.execution-result { margin-top: 11px; padding: 9px 11px; border-left: 3px solid var(--green); border-radius: 0 9px 9px 0; background: #1b2421; }
.execution-result strong { color: var(--green); font-size: .9rem; }
.execution-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.execution-actions .button { min-height: 44px; padding: 6px 10px; border-width: 1px; font-size: .85rem; }
.oral-rehearsal { scroll-margin-top: 16px; }
.oral-rehearsal h4 + p { margin-bottom: 4px; }
.oral-rehearsal .talk { margin-top: 3px; }
@container (min-width: 690px) {
  .execution-body { grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); }
}
.training { max-width: 820px; }
.training .training-code { margin-top: 5px; color: var(--dim); }
.training .actions { margin-top: 12px; }
.training .question-source { margin-top: 12px; }
.training .practice-heading:focus { outline: none; }
#sugestoes-modo { margin-bottom: 0; }
#sugestoes-modo + #sugestoes { margin-top: 6px; }
#sugestoes-modo .button[aria-pressed="true"] { border-color: #a574e9; color: #f1dfff; }
@media (max-width: 580px) {
  .top nav { flex-wrap: wrap; row-gap: 6px; }
  .question-feedback:not(:empty) { gap: 7px; }
  .question-feedback .teacher-avatar { width: 37px; height: 47px; }
}
@media (prefers-reduced-motion: reduce) {
  .teacher-dialog[open] .teacher-avatar img, .teacher-avatar.reaction-win img, .teacher-avatar.reaction-try img { animation: none; }
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(235px, .9fr);
  align-items: start;
  gap: clamp(12px, 3vw, 27px);
}
.journey {
  min-width: 0;
  padding: 12px 17px;
  border: 1px solid #4a3569;
  border-radius: 22px;
  background: radial-gradient(ellipse at 11% 16%, #42246573, transparent 49%), #17101f;
}
.path-track {
  --origem: 62px;
  --oscilacao: 28px;
  --centro: 44px;
  --no: 51px;
  --texto: 136px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.path-stop {
  --posicao: calc(var(--origem) + var(--desvio) * var(--oscilacao));
  --proxima: calc(var(--origem) + var(--seguinte) * var(--oscilacao));
  position: relative;
  isolation: isolate;
}
.path-stop:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  inset: var(--centro) 0 auto;
  height: 100%;
  content: "";
  background: #664687;
  clip-path: polygon(
    calc(var(--posicao) - 2px) 0, calc(var(--posicao) + 2px) 0,
    calc(var(--proxima) + 2px) 100%, calc(var(--proxima) - 2px) 100%
  );
}
.path-stop[data-estado="complete"]::after { background: #8bc762; }
.path-link {
  display: grid;
  align-content: center;
  min-height: calc(var(--centro) * 2);
  padding: 8px 10px 8px var(--texto);
  position: relative;
  border: 1px solid transparent;
  border-radius: 14px;
}
.path-link[href]:hover { border-color: #614389; background: #37234f69; text-decoration: none; }
.path-link:focus-visible { outline-offset: -2px; }
.path-node {
  position: absolute;
  top: calc(var(--centro) - var(--no) / 2);
  left: calc(var(--posicao) - var(--no) / 2);
  width: var(--no);
  height: var(--no);
  display: grid;
  place-items: center;
  border: 2px solid #865bb7;
  border-bottom-width: 5px;
  border-radius: 50%;
  background: #3c2658;
  color: #f0d6ff;
  font-size: 1.05rem;
  font-weight: 900;
  transition: transform .22s cubic-bezier(.2,.9,.25,1.5), box-shadow .18s;
}
.path-link[href]:hover .path-node { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 17px #090510a1; }
.path-link[href]:active .path-node { transform: translateY(2px) scale(.95); }
.path-stop[data-estado="locked"] .path-node { background: #21182f; border-color: #533966; color: #baaccb; }
.path-stop[data-estado="locked"] .path-copy strong { color: #ccc0db; }
.path-stop[data-estado="complete"] .path-node { background: #274122; border-color: #82b361; color: #d0f9ba; }
.path-stop[data-estado="next"] .path-node { background: var(--lime); border-color: var(--lime-edge); color: #182511; }
.path-stop[data-estado="next"] .path-node::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -7px;
  border: 2px solid #bded8a;
  border-radius: 50%;
  animation: path-signal 2.35s ease-out infinite;
}
.path-copy { min-width: 0; overflow-wrap: anywhere; }
.path-copy strong { display: block; font-size: 1.06rem; font-weight: 850; letter-spacing: -.023em; }
.path-state { display: block; margin-top: 5px; font-size: .85rem; color: var(--dim); }
.path-stop[data-estado="next"] .path-state,
.path-stop[data-estado="complete"] .path-state { color: var(--green); }
.journey-card {
  position: sticky;
  top: 16px;
  min-width: 0;
  display: grid;
  gap: 11px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #533a73;
  border-radius: 20px;
  background: linear-gradient(155deg, #2b1d40, #211630 67%);
}
.journey-card h3 { font-size: clamp(1.2rem, 3vw, 1.58rem); letter-spacing: -.045em; line-height: 1.13; }
.journey-objective { color: var(--dim); font-size: .91rem; line-height: 1.47; }
.journey-status { color: #d9bdf8; font-size: .86rem; font-weight: 800; }
.journey-card .button { justify-self: start; }
.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(100%, 915px);
  margin: 0 auto 13px;
  scroll-margin-top: 14px;
}
.lesson-nav p { color: #d9beec; font-size: .9rem; font-weight: 800; }
.back-icon {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
body[data-vista-estudo="aula"] .hero,
body[data-vista-estudo="aula"] .progress-band,
body[data-vista-estudo="aula"] .progress-tools,
body[data-vista-estudo="aula"] #treino,
body[data-vista-estudo="aula"] #banca,
body[data-vista-estudo="aula"] #apresentacao { display: none; }
body[data-vista-estudo="aula"] #trilha { margin-top: 16px; }
body[data-vista-estudo="aula"] #layout-estudo {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 915px);
  margin-inline: auto;
}
#trilha-title:focus { outline: none; }

.button[href]:hover, button.button:not(:disabled):hover { transform: translateY(-2px); }
.button[href]:active, button.button:not(:disabled):active { transform: translateY(2px) scale(.97); }
.hero-copy { animation: study-rise .52s cubic-bezier(.16,.75,.28,1) both; }
.hero::after { animation: hero-orbit 6.5s ease-in-out infinite alternate; }
.portrait { animation: professor-sway 4.9s ease-in-out infinite; }
.portrait img { transform-origin: 50% 86%; animation: professor-home 4.9s ease-in-out infinite; }
.portrait::before { animation: professor-star 2.5s ease-in-out infinite; }
.path-stop .path-copy { animation: study-rise .32s ease-out both; animation-delay: calc(var(--ordem) * 42ms); }
body[data-vista-estudo="aula"] #aula { animation: study-rise .33s ease-out both; }

@keyframes study-rise {
  from { transform: translateY(8px); opacity: .45; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes path-signal {
  0%, 14% { transform: scale(.94); opacity: .65; }
  66%, 100% { transform: scale(1.34); opacity: 0; }
}
@keyframes hero-orbit {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-15px, 13px) scale(1.08); }
}
@keyframes professor-sway {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  46% { transform: translateY(-8px) rotate(-2deg); }
}
@keyframes professor-home {
  0%, 25%, 100% { transform: translateY(0) rotate(0); }
  38% { transform: translateY(-3px) rotate(-7deg); }
  53% { transform: translateY(-4px) rotate(5deg); }
  70% { transform: translateY(0) rotate(0); }
}
@keyframes professor-star {
  0%, 100% { transform: rotate(10deg) scale(1); }
  42% { transform: rotate(25deg) scale(1.16); }
}
@media (max-width: 760px) {
  .journey-layout { grid-template-columns: minmax(0, 1fr); }
  .journey-card { position: static; grid-row: 1; }
}
@media (max-width: 485px) {
  .journey { padding: 8px; }
  .path-track {
    --origem: 39px;
    --oscilacao: 13px;
    --centro: 37px;
    --no: 41px;
    --texto: 83px;
  }
  .path-copy strong { font-size: .95rem; }
  .path-state { font-size: .8rem; }
  .lesson-nav p { font-size: .82rem; }
  .portrait { animation-name: professor-bob-mobile; }
}
@keyframes professor-bob-mobile {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-4px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero::after, .portrait, .portrait img, .portrait::before, .path-stop .path-copy,
  .path-stop[data-estado="next"] .path-node::after, body[data-vista-estudo="aula"] #aula { animation: none; }
  .button[href]:hover, button.button:not(:disabled):hover, .button[href]:active,
  button.button:not(:disabled):active, .path-link[href]:hover .path-node,
  .path-link[href]:active .path-node { transform: none; }
  .path-node { transition: none; }
}
