@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --wine: #7a2e3a;
  --wine-dark: #59202a;
  --gold: #d8b26e;
  --gold-pale: #f2e5c9;
  --paper: #f6f1e8;
  --paper-bright: #fffcf6;
  --ink: #272a2b;
  --muted: #737575;
  --line: #e1d9cb;
  --green: #397a63;
  --green-pale: #e6f0ea;
  --red-pale: #f7e9e7;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
button, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { color: white; background: var(--wine); }
:focus-visible { outline: 3px solid #bc8b36; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%); padding: 10px 14px; background: var(--ink); color: white; border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 258px; padding: 27px 18px 19px; display: flex; flex-direction: column; background: #eee8dc; border-right: 1px solid #ddd5c8; overflow-y: auto; }
.brand-button { display: flex; align-items: center; gap: 10px; border: 0; padding: 3px 7px 19px; background: transparent; text-align: left; cursor: pointer; }
.brand-mark { width: 42px; height: 42px; color: var(--wine); flex: none; }
.brand-copy { display: grid; line-height: 1.06; }
.brand-copy strong { font-size: 13px; letter-spacing: .09em; font-weight: 600; text-transform: uppercase; }
.brand-copy b { margin-top: 4px; font-size: 22px; letter-spacing: -.03em; }
.brand-copy b span { color: var(--wine); }
.sidebar-divider { height: 1px; margin: 2px 6px 17px; background: #d8cfbf; }
.nav-item { width: 100%; min-height: 39px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #555555; font-size: 14px; line-height: 1.2; text-align: left; cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.nav-item:hover { background: rgba(122,46,58,.07); color: var(--wine-dark); }
.nav-item.is-active { background: var(--wine); color: #fffaf3; box-shadow: 0 4px 12px rgba(80,28,38,.13); }
.nav-home { font-weight: 600; margin-bottom: 15px; }
.home-glyph { font-size: 19px; width: 17px; text-align: center; }
.nav-group { margin: 10px 0 4px; }
.nav-label { margin: 0 10px 5px; font: 10px/1.4 var(--mono); letter-spacing: .1em; color: #8c8477; text-transform: uppercase; }
.nav-index { font: 10px var(--mono); color: #9d9589; flex: none; }
.is-active .nav-index { color: #f1cf9e; }
.nav-item > span:nth-child(2) { flex: 1; }
.nav-done { font-weight: 700; color: #f0d59f; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.folio-stamp { display: flex; gap: 9px; align-items: center; padding: 11px 10px; border: 1px solid #d3c7b2; background: rgba(255,252,246,.45); }
.stamp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #d8e6dc; }
.folio-stamp div { display: grid; gap: 2px; }
.folio-stamp b { font: 9px var(--mono); letter-spacing: .08em; color: var(--wine); }
.folio-stamp small { font-size: 12px; color: var(--muted); }
.data-link { display: block; margin: 13px 10px 1px; color: #6e4a2e; font-size: 12px; text-decoration: none; }
.data-link:hover { text-decoration: underline; }
.main-shell { min-height: 100vh; margin-left: 258px; }
.topbar { height: 59px; padding: 0 clamp(22px, 4vw, 54px); display: flex; justify-content: space-between; align-items: center; background: rgba(255,252,246,.7); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8a857b; font: 10px var(--mono); letter-spacing: .07em; }
.breadcrumb i { color: #c0b8aa; font-style: normal; }
.breadcrumb strong { color: var(--ink); font-weight: 500; letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 20px; color: #77736b; font-size: 12px; }
.edition { display: flex; align-items: center; gap: 7px; }
.edition-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.progress-mini { font-family: var(--mono); font-size: 11px; }
.progress-mini b { color: var(--wine); font-weight: 500; }
.content { width: min(1160px, 100%); margin: 0 auto; padding: 30px clamp(22px, 4vw, 54px) 60px; outline: none; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin: 4px 0 11px 2px; color: #8b8377; font: 10px var(--mono); letter-spacing: .1em; }
.kicker-rule { width: 22px; height: 1px; background: var(--gold); }
.hero-panel { position: relative; min-height: 370px; padding: 42px 42px 70px; overflow: hidden; background: var(--wine); color: #fff9f0; }
.hero-panel::after { position: absolute; top: -95px; right: 32%; width: 1px; height: 520px; content: ""; transform: rotate(34deg); background: rgba(255,255,255,.08); }
.hero-copy { position: relative; z-index: 2; width: min(58%, 590px); }
.eyebrow { margin: 0 0 9px; color: #a18d78; font: 10px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.hero-copy .eyebrow { color: #e4c893; }
h1, h2, p { margin-top: 0; }
.hero-copy h1 { margin: 0; font-size: clamp(36px, 4.5vw, 57px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.hero-copy h1 em { color: #e9c98f; font-style: normal; }
.hero-lede { max-width: 420px; margin: 16px 0 20px; color: rgba(255,249,240,.82); font-size: 17px; line-height: 1.45; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent; border-radius: 4px; padding: 10px 15px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .63; cursor: default; }
.button-primary { background: var(--gold); color: #332a1e; }
.button-primary:hover:not(:disabled) { background: #e8c987; }
.hero-art { position: absolute; z-index: 1; width: 36%; top: 20px; right: 5%; height: 286px; display: grid; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,239,207,.2); border-radius: 50%; transform: rotate(-20deg); }
.hero-orbit-one { width: 295px; height: 188px; }
.hero-orbit-two { width: 250px; height: 257px; transform: rotate(44deg); }
.paper-sheet { position: relative; z-index: 1; width: 210px; min-height: 218px; padding: 16px 17px; transform: rotate(3deg); background: #f9f3e7; color: var(--ink); box-shadow: 8px 14px 30px rgba(35,15,15,.28); }
.paper-tab { margin: -16px -17px 14px; padding: 7px 15px; background: #e9ddc9; color: #7b6b57; font: 9px var(--mono); letter-spacing: .1em; }
.paper-title { font-size: 22px; font-weight: 600; line-height: 1; }
.paper-rule { height: 1px; margin: 11px 0 8px; background: #d9cdb9; }
.paper-row { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px solid #e8dfd1; font: 9px var(--mono); color: #756e64; }
.paper-row b { margin-left: auto; color: #373231; font-size: 10px; }
.paper-row i { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #d9e8dc; color: var(--green); font-style: normal; }
.paper-marked i { background: var(--gold-pale); color: #94662b; }
.paper-note { margin-top: 10px; color: var(--wine); font-size: 12px; font-style: italic; }
.paper-stamp { position: absolute; right: 10px; bottom: 12px; transform: rotate(-8deg); border: 1px solid rgba(122,46,58,.45); padding: 3px 5px; color: var(--wine); font: 8px var(--mono); letter-spacing: .06em; }
.hero-index { position: absolute; right: 5px; bottom: 8px; color: #ddc39a; font: 10px var(--mono); letter-spacing: .1em; }
.hero-footer { position: absolute; inset: auto 42px 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.17); color: rgba(255,249,240,.76); font-size: 12px; }
.hero-footer span { display: flex; align-items: center; gap: 8px; }
.hero-footer i { color: #e7c789; font: 10px var(--mono); font-style: normal; }
.notice-strip { display: flex; align-items: center; gap: 13px; margin: 16px 0 35px; padding: 13px 16px; border: 1px solid #e3d4b6; background: #f4ead6; }
.notice-icon { flex: none; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #42331f; font: 600 12px var(--mono); }
.notice-strip p { flex: 1; margin: 0; color: #675b4a; font-size: 13px; line-height: 1.4; }
.notice-strip p strong { color: #4e3b29; }
.notice-link { flex: none; border: 0; padding: 5px 2px; background: transparent; color: var(--wine); font-weight: 600; font-size: 12px; cursor: pointer; }
.notice-link span { margin-left: 5px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 0 14px; }
.section-heading h2 { margin: 0; color: #332d2a; font-size: 27px; letter-spacing: -.025em; }
.section-heading .eyebrow { margin-bottom: 4px; }
.count-pill { padding: 5px 9px; border: 1px solid var(--line); border-radius: 30px; color: #71695e; font: 10px var(--mono); }
.progress-track { height: 4px; margin-bottom: 8px; overflow: hidden; background: #e6ddcf; }
.progress-track span { display: block; height: 100%; background: var(--wine); transition: width .22s ease; }
.module-list { border-top: 1px solid var(--line); }
.module-row { width: 100%; display: flex; align-items: center; gap: 15px; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background-color .18s ease, padding .18s ease; }
.module-row:hover { padding-left: 13px; background: rgba(255,252,246,.65); }
.module-number { width: 28px; color: #a39783; font: 11px var(--mono); }
.module-info { display: grid; gap: 2px; flex: 1; }
.module-info small { color: #928778; font: 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.module-info strong { color: #383230; font-size: 16px; font-weight: 600; }
.module-status { color: #867965; font-size: 12px; }
.module-status.is-complete { color: var(--green); }
.method-note { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 22px; margin-top: 32px; padding: 20px 22px; border-left: 3px solid var(--gold); background: #eee7db; }
.method-label { align-self: start; color: #8a7d6b; font: 9px/1.7 var(--mono); letter-spacing: .07em; }
.method-label span { display: block; color: var(--wine); }
.method-note h2 { margin: 0 0 5px; color: var(--wine-dark); font-size: 21px; line-height: 1.1; }
.method-note p { margin: 0; color: #6f675d; font-size: 13px; line-height: 1.45; }
.text-link { justify-self: end; color: #694b35; font-size: 12px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link span { color: var(--wine); }
.home-footnote { margin: 13px 0 0; color: #8b8378; font-size: 11px; }

.exercise-content { padding-top: 25px; }
.exercise-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.back-link { padding: 5px 0; border: 0; background: transparent; color: #756a5b; font-size: 13px; cursor: pointer; }
.back-link:hover { color: var(--wine); }
.exercise-count { color: #8a8072; font: 10px var(--mono); letter-spacing: .08em; }
.exercise-count i { margin: 0 5px; color: var(--gold); font-style: normal; }
.exercise-heading { position: relative; display: flex; align-items: start; gap: 17px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.exercise-number { flex: none; width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #d1baa0; color: var(--wine); font: 14px var(--mono); }
.exercise-heading .eyebrow { margin: 0 0 4px; }
.exercise-heading h1 { margin: 0 80px 4px 0; color: #352e2c; font-size: clamp(27px, 3.5vw, 39px); line-height: 1.05; letter-spacing: -.035em; }
.exercise-intro { max-width: 720px; margin: 0; color: #756e65; font-size: 15px; line-height: 1.42; }
.case-tag { position: absolute; top: 3px; right: 0; padding: 5px 7px; border: 1px solid #ddc9a9; color: #8a612b; font: 8px var(--mono); letter-spacing: .05em; }
.case-box { position: relative; margin: 19px 0; padding: 19px 20px 15px; border: 1px solid #e5d8c1; background: #f8f2e7; }
.case-box p { max-width: 880px; margin: 0; color: #514a42; font-size: 15px; line-height: 1.48; }
.case-stamp { display: inline-block; margin: 0 0 7px; color: var(--wine); font: 9px var(--mono); letter-spacing: .09em; }
.ledger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 17px 0; }
.ledger-card { border: 1px solid var(--line); background: var(--paper-bright); }
.ledger-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f0e9dd; color: #67584a; font: 9px var(--mono); letter-spacing: .035em; }
.ledger-head span:last-child { color: #a08e75; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 8px 9px; color: #918574; font: 8px var(--mono); text-align: left; letter-spacing: .05em; }
td { padding: 8px 9px; border-top: 1px solid #eee8dd; color: #57514a; }
.amount-cell { white-space: nowrap; text-align: right; font: 10px var(--mono); }
.workbench { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .8fr); align-items: start; gap: 20px; margin-top: 20px; }
.work-main { min-width: 0; }
.answer-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.answer-options legend { margin: 0 0 10px; color: #3d3732; font-size: 16px; font-weight: 600; }
.answer-option { display: flex; align-items: start; gap: 11px; margin: 8px 0; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper-bright); color: #55504a; font-size: 14px; line-height: 1.4; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.answer-option:hover { border-color: #cfb88f; }
.answer-option.is-selected { border-color: var(--wine); background: #fcf6f0; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-marker { flex: none; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #d7c9b6; border-radius: 50%; color: #877b6b; font: 9px var(--mono); }
.answer-option.is-selected .option-marker { border-color: var(--wine); background: var(--wine); color: white; }
.writing-prompt > label { display: block; margin: 0 0 8px; color: #786b58; font: 9px var(--mono); letter-spacing: .08em; }
.writing-prompt textarea { width: 100%; min-height: 152px; resize: vertical; padding: 12px 14px; border: 1px solid #dcd2c4; border-radius: 0; background-color: #fffcf6; background-image: linear-gradient(to bottom, transparent 31px, #eee7dc 32px); background-size: 100% 32px; color: #35322f; font-size: 15px; line-height: 2; }
.writing-prompt textarea::placeholder { color: #a49a8d; }
.field-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; color: #928778; font-size: 10px; }
.field-meta span:last-child { font-family: var(--mono); }
.rubric-panel { margin-top: 15px; padding: 12px 14px; border: 1px solid var(--line); background: #f1ebdf; }
.rubric-heading { display: flex; justify-content: space-between; gap: 8px; color: #827564; font: 8px var(--mono); letter-spacing: .05em; }
.rubric-heading span:last-child { text-align: right; letter-spacing: 0; }
.rubric-panel ol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.rubric-panel li { display: flex; gap: 7px; align-items: start; color: #5c554a; font-size: 12px; line-height: 1.3; }
.rubric-panel li span { color: #aa9470; font: 9px var(--mono); }
.exercise-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.exercise-actions .button-primary { min-height: 41px; }
.button-quiet { min-height: 37px; border-color: #d9d0c2; background: transparent; color: #6c6256; padding: 8px 10px; font-size: 12px; }
.button-quiet:hover:not(:disabled) { border-color: #aa8660; background: #f0e7d9; }
.work-feedback { min-height: 137px; padding: 12px; border: 1px dashed #d5c8b5; background: rgba(255,252,246,.55); }
.feedback-placeholder { display: flex; align-items: start; gap: 9px; padding-top: 7px; }
.feedback-placeholder > span { color: #b18e56; font-size: 19px; }
.feedback-placeholder p { margin: 3px 0; color: #8b8172; font-size: 13px; line-height: 1.4; }
.feedback-box { padding: 12px; border: 1px solid transparent; }
.feedback-good { border-color: #cadccf; background: var(--green-pale); }
.feedback-revise { border-color: #e6d2c7; background: #f9eee9; }
.feedback-neutral { border-color: #ddd3c1; background: #f5f0e6; }
.feedback-title { display: flex; align-items: center; gap: 7px; color: #413c35; font-size: 13px; }
.feedback-title > span { flex: none; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font: 10px var(--mono); }
.feedback-revise .feedback-title > span { background: #a9664d; }
.feedback-neutral .feedback-title > span { background: #9e8864; }
.feedback-title > b { margin-left: auto; color: var(--wine); font: 10px var(--mono); }
.feedback-box > p { margin: 8px 0 0; color: #635b51; font-size: 12px; line-height: 1.42; }
.feedback-checklist { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.feedback-checklist li { display: flex; gap: 7px; align-items: baseline; color: #786f64; font-size: 11px; }
.feedback-checklist li span { width: 12px; font-size: 10px; }
.feedback-checklist li.met { color: #32634f; }
.explanation { margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(60,70,58,.15); }
.explanation b { color: #486252; font-size: 11px; }
.explanation p { margin: 3px 0 0; color: #526054; font-size: 12px; line-height: 1.4; }
.hint-box { display: flex; gap: 8px; margin-top: 9px; padding: 11px; border-left: 2px solid var(--gold); background: #f7f0e2; }
.hint-box > span { color: #9b7139; font: 14px var(--mono); }
.hint-box p { margin: 0; color: #685943; font-size: 12px; line-height: 1.4; }
.hint-box p b { color: #493d2e; }
.solution-box { margin-top: 9px; padding: 12px; border: 1px solid #ddc7ab; background: #fff8eb; }
.solution-heading { display: grid; gap: 4px; color: var(--wine); font: 9px var(--mono); letter-spacing: .06em; }
.solution-heading span:last-child { color: #8a7a66; font: 11px var(--sans); letter-spacing: 0; }
.solution-box > p { margin: 9px 0 0; color: #51483d; font-size: 13px; line-height: 1.5; }
.exercise-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); color: #8a8174; font-size: 11px; }
.completed-mark { margin-right: 5px; color: var(--green); }
.next-link { border: 0; padding: 6px 0 6px 8px; background: transparent; color: var(--wine); font-size: 12px; font-weight: 600; cursor: pointer; }
.next-link span { margin-left: 6px; }
.disclaimer-inline { margin: 14px 0 0; color: #958b7c; font-size: 10px; }

@media (max-width: 1000px) {
  .sidebar { width: 226px; padding-inline: 13px; }
  .main-shell { margin-left: 226px; }
  .hero-panel { padding-left: 30px; padding-right: 30px; }
  .hero-art { right: 1%; width: 39%; }
  .hero-footer { inset-inline: 30px; }
  .workbench { grid-template-columns: minmax(0, 1.2fr) minmax(210px, .8fr); gap: 13px; }
  .method-note { grid-template-columns: .8fr 2fr; }
  .text-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; top: 0; inset: auto; width: 100%; height: auto; padding: 8px 14px; flex-direction: row; align-items: center; overflow: visible; border-right: 0; border-bottom: 1px solid #d5ccbf; }
  .brand-button { flex: none; gap: 7px; padding: 0 7px 0 0; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy strong { font-size: 9px; }
  .brand-copy b { font-size: 17px; }
  .sidebar-divider, .nav-home, .nav-group, .sidebar-bottom { display: none; }
  .app-shell { display: flex; flex-direction: column; }
  .main-shell { margin-left: 0; }
  .topbar { height: 45px; padding-inline: 17px; }
  .breadcrumb { font-size: 8px; }
  .topbar-right { gap: 9px; font-size: 10px; }
  .edition { display: none; }
  .progress-mini { font-size: 9px; }
  .content { padding: 20px 17px 40px; }
  .hero-kicker { margin-top: 1px; font-size: 8px; }
  .hero-panel { min-height: 410px; padding: 25px 22px 82px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { max-width: 370px; font-size: clamp(39px, 10vw, 52px); }
  .hero-lede { max-width: 450px; margin: 11px 0 14px; font-size: 15px; }
  .hero-art { top: auto; right: 9px; bottom: 47px; width: 45%; height: 185px; opacity: .94; }
  .paper-sheet { width: 148px; min-height: 157px; padding: 10px 11px; }
  .paper-tab { margin: -10px -11px 9px; padding: 5px 10px; font-size: 7px; }
  .paper-title { font-size: 16px; }
  .paper-rule { margin: 7px 0 4px; }
  .paper-row { padding: 3px 0; font-size: 7px; }
  .paper-row b { font-size: 8px; }
  .paper-row i { width: 11px; height: 11px; }
  .paper-note { margin-top: 6px; font-size: 9px; }
  .paper-stamp { bottom: 8px; font-size: 6px; }
  .hero-orbit-one { width: 180px; height: 130px; }
  .hero-orbit-two { width: 160px; height: 165px; }
  .hero-index { bottom: -6px; right: -4px; font-size: 8px; }
  .hero-footer { inset-inline: 22px; min-height: 46px; justify-content: start; gap: 12px; overflow: hidden; }
  .hero-footer span { flex: none; gap: 5px; font-size: 9px; }
  .hero-footer span:last-child { display: none; }
  .notice-strip { align-items: start; gap: 9px; margin: 13px 0 28px; padding: 10px; }
  .notice-strip p { font-size: 12px; }
  .notice-link { display: none; }
  .section-heading h2 { font-size: 23px; }
  .count-pill { font-size: 8px; }
  .module-row { gap: 9px; padding: 13px 4px; }
  .module-number { width: 21px; font-size: 9px; }
  .module-info small { font-size: 8px; }
  .module-info strong { font-size: 14px; }
  .module-status { font-size: 9px; }
  .method-note { grid-template-columns: 1fr; gap: 9px; margin-top: 24px; padding: 15px; }
  .method-label { display: flex; gap: 10px; }
  .method-label span { display: inline; }
  .method-note h2 br { display: none; }
  .text-link { grid-column: 1; }
  .exercise-content { padding-top: 18px; }
  .exercise-topline { margin-bottom: 16px; }
  .exercise-heading { gap: 11px; padding-bottom: 15px; }
  .exercise-number { width: 35px; height: 35px; font-size: 11px; }
  .exercise-heading h1 { margin-right: 0; font-size: 27px; }
  .exercise-intro { padding-right: 0; font-size: 13px; }
  .case-tag { display: none; }
  .case-box { margin: 13px 0; padding: 14px; }
  .case-box p { font-size: 13px; }
  .ledger-grid { grid-template-columns: 1fr; gap: 9px; }
  .workbench { grid-template-columns: 1fr; gap: 13px; margin-top: 14px; }
  .work-feedback { min-height: 80px; }
  .work-feedback:empty { display: none; }
  .rubric-panel ol { grid-template-columns: 1fr; }
  .exercise-actions { gap: 6px; }
  .exercise-actions .button-primary { width: 100%; justify-content: space-between; }
  .button-quiet { flex: 1; font-size: 11px; }
  .exercise-footer { align-items: start; font-size: 10px; }
  .next-link { flex: none; font-size: 11px; }
}
@media (max-width: 400px) {
  .hero-art { right: -5px; width: 43%; opacity: .76; }
  .hero-copy { width: 92%; }
  .hero-copy h1 { font-size: 39px; }
  .hero-lede { max-width: 250px; }
  .module-status { max-width: 65px; text-align: right; }
  .topbar-right { display: none; }
  .breadcrumb { font-size: 8px; }
  .exercise-heading h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Secciones principales y ruta curricular */
.sidebar-section-label { margin-top: 0; margin-bottom: 6px; color: var(--wine); }
.topbar { gap: 12px; }
.section-tabs { display: flex; align-items: center; gap: 5px; }
.section-tab { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid transparent; background: transparent; color: #746b60; font-size: 12px; white-space: nowrap; cursor: pointer; }
.section-tab b { color: #a48e6d; font: 9px var(--mono); }
.section-tab:hover { border-color: #d9cbb5; background: #f5eee2; }
.section-tab.is-active { border-color: var(--wine); background: var(--wine); color: #fffaf3; }
.section-tab.is-active b { color: #f0d6a8; }
.course-content { padding-top: 25px; }
.onboarding-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin: 0 0 18px; padding: 18px 20px; border: 1px solid #d8c7aa; border-left: 3px solid var(--wine); background: #f8f0e3; }
.onboarding-card h2 { margin: 0 0 7px; color: var(--wine-dark); font-size: 22px; line-height: 1.1; }
.onboarding-card p:not(.eyebrow) { margin: 0; color: #665b4e; font-size: 13px; line-height: 1.45; }
.onboarding-card fieldset { display: grid; gap: 7px; align-content: start; margin: 0; padding: 0; border: 0; }
.onboarding-card legend { margin-bottom: 3px; color: #7d6d58; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.onboarding-card label { display: flex; gap: 8px; align-items: flex-start; color: #5d5145; font-size: 12px; line-height: 1.35; cursor: pointer; }
.onboarding-card input { margin-top: 2px; accent-color: var(--wine); }
.onboarding-card .button { justify-self: start; margin-top: 5px; }
.onboarding-complete { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 9px 12px; border: 1px solid #d9d5c8; background: #f3efe5; color: #665b4e; font-size: 12px; }
.onboarding-complete p { margin: 0; flex: 1; }
.onboarding-check { color: #547562; font: 13px var(--mono); }
.onboarding-complete .text-link { border: 0; background: transparent; cursor: pointer; }
.course-glossary { margin: 0 0 18px; border: 1px solid #d8c7aa; background: #f8f0e3; }
.course-glossary-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 0; background: transparent; color: var(--wine); text-align: left; cursor: pointer; }
.course-glossary-toggle > span:first-child { display: grid; gap: 3px; }
.course-glossary-toggle b { color: #8a7257; font: 8px var(--mono); letter-spacing: .08em; }
.course-glossary-toggle strong { color: var(--wine-dark); font-size: 13px; font-weight: 600; }
.course-glossary-toggle > span:last-child { font: 20px var(--mono); }
.glossary-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 15px 13px; }
.glossary-index-entry { padding: 8px; border: 1px solid #e1d2b9; background: #fffaf2; }
.glossary-index-entry button { padding: 0; border: 0; background: transparent; color: var(--wine); font-size: 12px; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.glossary-index-entry p { margin: 4px 0; color: #635548; font-size: 11px; line-height: 1.35; }
.glossary-index-entry small { color: #806f5d; font-size: 10px; line-height: 1.35; }
.glossary-index-selected { display: grid; gap: 4px; margin: 0 15px 14px; padding: 10px 12px; border-left: 2px solid var(--gold); background: #f4ead9; color: #65584b; font-size: 11px; line-height: 1.35; }
.glossary-index-selected b { color: var(--wine-dark); font-size: 13px; }
.glossary-index-selected p { margin: 0; }
.phase5 { margin: 0 0 25px; }
.phase5-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 12px; padding: 18px 20px; border-left: 3px solid var(--gold); background: #eee7db; }
.phase5-heading h2 { margin: 0 0 6px; color: var(--wine-dark); font-size: 24px; line-height: 1.12; }
.phase5-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: #675c50; font-size: 13px; line-height: 1.45; }
.phase5-badge { flex: none; padding: 7px 9px; border: 1px solid #c9b594; color: var(--wine); font: 8px var(--mono); line-height: 1.45; text-align: center; }
.phase5-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phase5-card, .phase5-project { padding: 15px; border: 1px solid #ddd1bd; background: rgba(255,252,246,.7); }
.phase5-card h3, .phase5-project h3 { margin: 2px 0 9px; color: var(--wine-dark); font-size: 18px; }
.phase5-card-kicker { color: #8a7257; font: 8px var(--mono); letter-spacing: .08em; }
.phase5-diagnostic-form > p, .phase5-locked p { margin: 0 0 10px; color: #756858; font-size: 11px; line-height: 1.4; }
.phase5-diagnostic-form { display: grid; gap: 9px; }
.phase5-diagnostic-form fieldset { display: grid; gap: 4px; margin: 0; padding: 8px 9px; border: 1px solid #e6dccb; background: #fcf8f0; }
.phase5-diagnostic-form legend { padding: 0 3px; color: #5b4e40; font-size: 11px; font-weight: 600; line-height: 1.3; }
.phase5-diagnostic-form label { display: flex; gap: 6px; color: #6c5e50; font-size: 11px; line-height: 1.3; cursor: pointer; }
.phase5-diagnostic-form input { flex: none; accent-color: var(--wine); }
.phase5-diagnostic-form .button { justify-self: start; }
.phase5-result { display: grid; gap: 8px; }
.phase5-result > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #806b51; font: 9px var(--mono); text-transform: uppercase; }
.phase5-result > div:first-child strong { color: var(--wine); font-size: 14px; }
.phase5-result > p { margin: 0; color: #66594c; font-size: 12px; line-height: 1.4; }
.diagnostic-delta { padding: 6px 8px; border-left: 2px solid #91aa8f; background: #f0f6ed; color: #557158 !important; font-size: 11px !important; }
.adaptive-route { padding: 9px 10px; border-left: 2px solid var(--gold); background: #f4ead9; color: #66584a; }
.adaptive-route b { color: var(--wine-dark); font-size: 12px; }
.adaptive-route p { margin: 3px 0 5px; font-size: 11px; line-height: 1.35; }
.adaptive-route ul { display: grid; gap: 2px; margin: 0; padding-left: 16px; font-size: 11px; }
.phase5-locked { padding: 10px; border: 1px dashed #d6c4a6; background: #fcf8f0; }
.phase5-project { grid-column: 1 / -1; margin-top: 12px; }
.phase5-project-top { display: flex; justify-content: space-between; gap: 16px; }
.phase5-project-top > strong { flex: none; color: var(--wine); font: 22px var(--mono); }
.phase5-project-top p { margin: 0 0 12px; color: #756858; font-size: 12px; line-height: 1.4; }
.project-stage-list { display: grid; gap: 7px; }
.project-stage { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 9px; border: 1px solid #e4d9c8; background: #fcf8f0; }
.project-stage.is-complete { border-color: #a9c0aa; background: #f2f7ef; }
.project-stage-number { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c9b28e; color: var(--wine); font: 9px var(--mono); }
.project-stage h4 { margin: 1px 0 3px; color: #514638; font-size: 12px; }
.project-stage p { margin: 0 0 3px; color: #6b5d4e; font-size: 11px; line-height: 1.35; }
.project-stage small { color: #8b7965; font-size: 10px; }
.project-stage-toggle { align-self: center; padding: 6px 8px; border: 1px solid #cdbda4; background: transparent; color: var(--wine); font: 9px var(--mono); cursor: pointer; }
.project-stage.is-complete .project-stage-toggle { border-color: #7e9b83; color: #54725b; }
.remote-ai-gate { grid-column: 1 / -1; margin-top: 12px; border: 1px solid #d5c6ad; background: #f7f1e6; }
.remote-ai-gate summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--wine); cursor: pointer; list-style: none; }
.remote-ai-gate summary::-webkit-details-marker { display: none; }
.remote-ai-gate summary > span:first-child { display: grid; gap: 3px; }
.remote-ai-gate summary b { color: #8a7257; font: 8px var(--mono); letter-spacing: .08em; }
.remote-ai-gate summary strong { color: var(--wine-dark); font-size: 13px; }
.remote-ai-gate summary > span:last-child { font: 18px var(--mono); }
.remote-ai-gate > div { padding: 0 14px 13px; color: #675a4d; font-size: 11px; line-height: 1.4; }
.remote-ai-gate > div > p { margin: 0 0 8px; }
.remote-ai-gate ol { display: grid; gap: 4px; margin: 0 0 9px; padding-left: 18px; }
.remote-ai-gate-status { padding: 8px 10px; border-left: 2px solid #a7b9a2; background: #eef5ec; }
.remote-ai-gate-status b { color: #4c6b50; }
.course-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 280px; padding: 32px 38px; overflow: hidden; background: var(--wine); color: #fff9f0; }
.course-hero::after { position: absolute; top: -80px; right: 22%; width: 1px; height: 440px; content: ""; transform: rotate(31deg); background: rgba(255,255,255,.1); }
.course-hero-copy { position: relative; z-index: 1; max-width: 700px; }
.course-hero .eyebrow { color: #e4c893; }
.course-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.course-hero h1 em { color: #e9c98f; font-style: normal; }
.course-hero-copy > p:not(.eyebrow) { max-width: 660px; margin: 14px 0 18px; color: rgba(255,249,240,.82); font-size: 15px; line-height: 1.5; }
.course-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.course-secondary-button { border-color: rgba(255,255,255,.42); background: transparent; color: #fff9f0; }
.course-secondary-button:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.course-hero-stamp { position: relative; z-index: 1; flex: none; width: 150px; height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; border: 1px solid rgba(255,239,207,.46); border-radius: 50%; transform: rotate(4deg); color: #f4dfb8; text-align: center; }
.course-hero-stamp span { font: 9px var(--mono); letter-spacing: .14em; }
.course-hero-stamp strong { font: 23px var(--mono); }
.course-hero-stamp i { font-size: 11px; font-style: normal; line-height: 1.3; }
.course-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 30px; border: 1px solid var(--line); background: rgba(255,252,246,.65); }
.course-stat-row > div { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; }
.course-stat-row > div + div { border-left: 1px solid var(--line); }
.course-stat-row b { color: var(--wine); font: 18px var(--mono); }
.course-stat-row span { color: #756b5e; font-size: 12px; }
.course-outcomes { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; margin: 0 0 34px; padding: 20px 22px; border-left: 3px solid var(--gold); background: #eee7db; }
.course-outcomes h2 { max-width: 440px; margin: 0; color: var(--wine-dark); font-size: 23px; line-height: 1.14; }
.course-outcomes ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.course-outcomes li { position: relative; padding-left: 16px; color: #60594f; font-size: 13px; line-height: 1.4; }
.course-outcomes li::before { position: absolute; left: 0; color: var(--wine); content: "—"; }
.course-curriculum { margin-top: 12px; }
.course-module-list { border-top: 1px solid var(--line); }
.course-module-card { border-bottom: 1px solid var(--line); background: rgba(255,252,246,.45); }
.course-module-card[open] { background: rgba(255,252,246,.82); }
.course-module-card summary { min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 12px 10px; list-style: none; cursor: pointer; }
.course-module-card summary::-webkit-details-marker { display: none; }
.course-module-card summary:hover { background: rgba(255,252,246,.8); }
.course-module-number { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d1baa0; color: var(--wine); font: 11px var(--mono); }
.course-module-heading { display: grid; flex: 1; gap: 3px; }
.course-module-heading small { color: #928778; font: 9px var(--mono); letter-spacing: .05em; }
.course-module-heading strong { color: #383230; font-size: 16px; font-weight: 600; }
.course-module-toggle { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #ded3c2; color: var(--wine); font-size: 15px; }
.course-module-card[open] .course-module-toggle { transform: rotate(45deg); }
.course-module-body { padding: 0 18px 18px 58px; color: #625b51; font-size: 13px; line-height: 1.45; }
.course-module-body > p { margin: 0 0 9px; }
.course-module-body > p b, .course-links-block > b { color: #4c4236; }
.course-links-block { margin-top: 11px; }
.course-links-block > b { display: block; margin-bottom: 6px; color: #807360; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.course-practice-links { display: flex; flex-wrap: wrap; gap: 6px; }
.course-practice-link { min-height: 31px; padding: 6px 8px; border: 1px solid #ded2bf; background: #fbf7ef; color: var(--wine); font-size: 11px; text-align: left; cursor: pointer; }
.course-practice-link:hover { border-color: var(--wine); background: #f4eadb; }
.course-practice-link span { margin-left: 4px; }
.course-resource-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.course-material-link { color: #714d31; font-size: 11px; font-weight: 600; text-underline-offset: 3px; }
.course-material-pending { color: #8a8174; font-size: 11px; font-style: italic; }
.course-disclaimer { margin: 18px 0 0; padding: 12px 15px; border: 1px solid #e3d4b6; background: #f4ead6; color: #685a49; font-size: 12px; line-height: 1.45; }
.course-disclaimer strong { color: #4e3b29; }
.module-nora-guide { margin: 16px 0 14px; padding: 14px 16px; border: 1px solid #d8c7aa; border-left: 3px solid var(--wine); background: #f8f0e3; }
.module-nora-heading { display: flex; align-items: center; gap: 9px; }
.module-nora-avatar { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--wine); border-radius: 50%; background: var(--gold-pale); color: var(--wine); font: 11px var(--mono); }
.module-nora-kicker { margin: 0 0 2px; color: #8a7257; font: 8px var(--mono); letter-spacing: .08em; }
.module-nora-heading strong { color: var(--wine-dark); font-size: 13px; font-weight: 600; }
.module-nora-opening { max-width: 730px; margin: 11px 0 12px; color: #5f5549; font-size: 13px; line-height: 1.45; }
.module-nora-foundation { margin: 12px 0 14px; padding: 11px 12px; border: 1px solid #e1d0b2; background: #fffaf2; }
.module-nora-foundation > div > b { display: block; margin-bottom: 4px; color: var(--wine); font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.module-nora-foundation > div > p { margin: 0 0 9px; color: #51483f; font-size: 12px; line-height: 1.4; }
.module-nora-foundation ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.module-nora-foundation li { display: grid; gap: 3px; color: #6a5d4f; font-size: 11px; line-height: 1.35; }
.module-nora-foundation li b { color: #3f3731; font-size: 12px; }
.glossary-term { padding: 0; border: 0; background: transparent; color: #3f3731; font-size: 12px; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
.glossary-term span { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid #b89a70; border-radius: 50%; color: var(--wine); font: 9px var(--mono); text-decoration: none; }
.glossary-definition { display: grid; gap: 3px; margin-top: 9px; padding: 8px 10px; border-left: 2px solid var(--gold); background: #f4ead9; color: #65584b; font-size: 11px; line-height: 1.35; }
.glossary-definition b { color: var(--wine-dark); font-size: 10px; }
.module-nora-example { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #eee1cf; color: #756858; font-size: 11px; line-height: 1.4; }
.module-nora-example strong { color: var(--wine-dark); }
.module-demo-wrap { margin: 11px 0 13px; }
.module-demo-button { padding: 0; border: 0; background: transparent; color: var(--wine); font: 10px var(--mono); letter-spacing: .03em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.module-demo-button span { margin-left: 3px; }
.module-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; padding: 10px; border: 1px solid #dfceb1; background: #fffaf2; }
.module-demo > div { padding: 8px; border: 1px solid #e7ddcd; background: #fcf8f0; }
.module-demo b { display: block; margin-bottom: 4px; color: #8b745a; font: 8px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.module-demo p { margin: 0; color: #5e5245; font-size: 11px; line-height: 1.4; }
.module-demo > p { grid-column: 1 / -1; margin: 1px 0 0; color: #776650; }
.module-demo > p strong { color: var(--wine-dark); }
.module-context { margin: 12px 0 14px; padding: 11px 12px; border: 1px solid #d9d2c3; background: #f4f0e7; }
.module-context-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.module-context-heading b { color: #75664f; font: 8px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.module-context-heading span { color: #8b7a63; font-size: 10px; }
.module-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.module-context-grid > div > b { display: block; margin-bottom: 4px; color: #5b4d3e; font-size: 11px; }
.module-context-grid ul { display: grid; gap: 3px; margin: 0; padding-left: 16px; color: #675a4c; font-size: 11px; line-height: 1.35; }
.module-context > p { margin: 8px 0 0; color: #6f6252; font-size: 11px; line-height: 1.35; }
.module-context-protect { padding-top: 7px; border-top: 1px solid #ddd4c4; color: #725c47 !important; }
.module-context-protect b { color: var(--wine-dark); }
.module-toolkit { margin: 12px 0 14px; padding-top: 11px; border-top: 1px solid #ddcdb4; }
.module-toolkit-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.module-toolkit-heading b { color: #7d6d58; font: 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.module-toolkit-heading span { color: #9b8b78; font-size: 10px; }
.module-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.module-tool-card { min-width: 0; padding: 9px; border: 1px solid #e3d5c0; background: #fcf8f0; }
.module-tool-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.module-tool-top a { color: var(--wine); font-size: 12px; font-weight: 700; text-underline-offset: 3px; }
.module-tool-top span { color: #8d7c69; font: 8px var(--mono); text-align: right; }
.module-tool-card p { margin: 4px 0 0; color: #665a4e; font-size: 11px; line-height: 1.35; }
.module-tool-card p b { color: #4a4037; }
.module-tool-guardrail { color: #806e5a !important; }
.module-nora-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.module-nora-grid > div > b, .module-nora-check > b { display: block; margin-bottom: 6px; color: #7d6d58; font: 8px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.module-nora-grid ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.module-nora-grid li { display: flex; gap: 8px; color: #5c544b; font-size: 12px; line-height: 1.35; }
.module-nora-grid li span { flex: none; color: var(--wine); font: 9px var(--mono); }
.module-nora-check { padding-left: 14px; border-left: 1px solid #ddcdb4; }
.module-nora-check p { margin: 0 0 10px; color: #5b5147; font-size: 12px; line-height: 1.4; }
@media (max-width: 1000px) {
  .course-hero { padding: 28px; }
  .course-hero-stamp { width: 125px; height: 125px; }
}
@media (max-width: 760px) {
  .topbar { justify-content: flex-start; gap: 7px; padding-inline: 10px; overflow-x: auto; }
  .breadcrumb { display: none; }
  .section-tabs { flex: none; }
  .section-tab { min-height: 32px; gap: 5px; padding: 5px 7px; font-size: 10px; }
  .topbar-right { margin-left: auto; flex: none; }
  .course-content { padding-top: 18px; }
  .onboarding-card { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .onboarding-card h2 { font-size: 20px; }
  .onboarding-complete { align-items: flex-start; flex-wrap: wrap; }
  .onboarding-complete p { flex-basis: calc(100% - 28px); }
  .phase5-heading { display: grid; gap: 10px; padding: 15px; }
  .phase5-grid { grid-template-columns: 1fr; }
  .phase5-project { grid-column: auto; }
  .remote-ai-gate { grid-column: auto; }
  .project-stage { grid-template-columns: 30px 1fr; }
  .project-stage-toggle { grid-column: 2; justify-self: start; }
  .glossary-index-grid { grid-template-columns: 1fr; }
  .course-hero { min-height: auto; align-items: start; padding: 23px 20px; }
  .course-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .course-hero-stamp { width: 84px; height: 84px; margin-top: 28px; }
  .course-hero-stamp strong { font-size: 15px; }
  .course-hero-stamp span { font-size: 7px; }
  .course-hero-stamp i { font-size: 8px; }
  .course-stat-row > div { display: grid; gap: 3px; padding: 10px; }
  .course-stat-row b { font-size: 15px; }
  .course-stat-row span { font-size: 10px; }
  .course-outcomes { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .course-outcomes h2 { font-size: 21px; }
  .course-module-card summary { gap: 9px; padding-inline: 4px; }
  .course-module-heading strong { font-size: 14px; }
  .course-module-body { padding-left: 47px; padding-right: 9px; }
  .module-nora-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-nora-check { padding: 10px 0 0; border-top: 1px solid #ddcdb4; border-left: 0; }
  .module-nora-foundation ul { grid-template-columns: 1fr; gap: 7px; }
  .module-demo { grid-template-columns: 1fr; }
  .module-demo > p { grid-column: auto; }
  .module-context-grid { grid-template-columns: 1fr; gap: 8px; }
  .module-context-heading { display: grid; gap: 3px; }
  .module-tool-grid { grid-template-columns: 1fr; }
  .module-toolkit-heading { display: grid; gap: 3px; }
}
@media (max-width: 400px) {
  .course-hero { display: block; }
  .course-hero-stamp { position: absolute; top: 16px; right: 14px; width: 70px; height: 70px; margin: 0; opacity: .8; }
  .course-hero-copy { padding-right: 2px; }
  .course-hero-copy > p:not(.eyebrow) { font-size: 13px; }
  .course-hero-actions .button { width: 100%; justify-content: space-between; }
  .course-stat-row > div { padding: 8px 6px; }
  .course-stat-row span { font-size: 9px; }
}


/* Secuencia de práctica y comparación */
.guided-progress { display: flex; align-items: center; gap: 0; margin: 14px 0 2px; padding: 0; overflow-x: auto; list-style: none; }
.guided-progress-step { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 90px; padding: 8px 9px; border-bottom: 2px solid #ded6c8; color: #8a8174; font-size: 11px; white-space: nowrap; }
.guided-progress-step > span { width: 19px; height: 19px; display: grid; flex: none; place-items: center; border: 1px solid #d0c6b6; border-radius: 50%; color: #8c806f; font: 9px var(--mono); }
.guided-progress-step.is-complete { border-color: #a7bcae; color: #547562; }
.guided-progress-step.is-complete > span { border-color: #80a38c; background: #e6f0ea; color: #397a63; }
.guided-progress-step.is-current { border-color: var(--wine); color: var(--wine); font-weight: 600; }
.guided-progress-step.is-current > span { border-color: var(--wine); background: var(--wine); color: #fffaf3; }
.comparison-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.comparison-column { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); background: #fffaf2; }
.comparison-column.is-model { border-color: #d7c29e; background: #f5eddd; }
.comparison-column h3 { margin: 0 0 7px; color: #7a6b56; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.comparison-answer { margin: 0; color: #4c453e; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .guided-progress-step { min-width: 76px; gap: 5px; padding-inline: 5px; font-size: 9px; }
  .comparison-panel { grid-template-columns: 1fr; }
}


/* Progreso local y portafolio */
.progress-storage-note { margin: 10px 0 18px; padding: 9px 12px; border-left: 2px solid var(--gold); background: #f3ecdf; color: #65594a; font-size: 11px; line-height: 1.45; }
.module-progress-toggle { min-height: 31px; padding: 6px 9px; border: 1px solid #c6b69c; background: #fffaf2; color: var(--wine); font-size: 10px; cursor: pointer; }
.module-progress-toggle:hover { border-color: var(--wine); background: #f6ebdc; }
.module-progress-toggle[aria-pressed="true"] { border-color: #7d9c84; background: #e7efe6; color: #3f684b; }
.course-resource-row { justify-content: space-between; }
@media (max-width: 760px) {
  .course-resource-row { align-items: flex-start; flex-direction: column; }
  .module-progress-toggle { width: 100%; text-align: left; }
}


/* Tutor local de Nora */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tutor-panel { margin-top: 18px; border: 1px solid #d8cbb9; background: #fffaf2; box-shadow: 0 8px 22px rgba(70, 41, 27, .06); }
.tutor-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #e4d9ca; background: #f2e8d9; }
.tutor-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tutor-avatar { width: 43px; height: 43px; display: grid; place-items: center; flex: none; border: 2px solid var(--wine); border-radius: 50%; background: var(--gold-pale); color: var(--wine); font: 600 18px var(--mono); transition: transform .18s ease, background-color .18s ease; }
.tutor-avatar-thinking { background: #f2e5c9; transform: rotate(-7deg); }
.tutor-avatar-explaining { background: #e7efe8; transform: translateY(-2px); }
.tutor-avatar-celebrating { background: #f1d59b; transform: scale(1.05); }
.tutor-kicker { margin: 0 0 2px; color: #8a7257; font: 9px var(--mono); letter-spacing: .08em; }
.tutor-identity h2 { margin: 0; color: var(--wine-dark); font-size: 18px; line-height: 1.05; }
.tutor-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: #6f756c; font-size: 11px; }
.tutor-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tutor-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 7px; }
.tutor-control { min-height: 32px; border: 1px solid #cbbba6; padding: 6px 9px; background: transparent; color: var(--wine); font-size: 11px; cursor: pointer; }
.tutor-control:hover:not(:disabled) { background: #fffaf2; border-color: var(--wine); }
.tutor-control:disabled { color: #9b958b; cursor: not-allowed; }
.tutor-body { padding: 14px 16px 12px; }
.tutor-log { display: grid; gap: 9px; max-height: 265px; overflow-y: auto; padding: 2px 2px 5px; }
.tutor-message { max-width: 86%; padding: 9px 11px; border: 1px solid #e1d7c9; background: #fffdf8; }
.tutor-message-user { justify-self: end; border-color: #dcc49b; background: #fbf1df; }
.tutor-message-label { display: block; margin-bottom: 4px; color: #927a5a; font: 8px var(--mono); letter-spacing: .06em; }
.tutor-message p { margin: 0; color: #514941; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.tutor-empty { display: grid; gap: 3px; padding: 8px 3px 10px; color: #746b60; font-size: 12px; line-height: 1.4; }
.tutor-empty b { color: var(--wine-dark); font-size: 13px; }
.tutor-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 9px; }
.tutor-form input { min-width: 0; min-height: 40px; border: 1px solid #d7ccbd; padding: 9px 11px; background: #fffdf8; color: var(--ink); font-size: 13px; }
.tutor-form input::placeholder { color: #a2988a; }
.tutor-form .button { min-height: 40px; padding-inline: 13px; font-size: 12px; }
.tutor-disclaimer { margin: 9px 0 0; color: #958b7c; font-size: 10px; line-height: 1.35; }
@media (max-width: 760px) {
  .tutor-header { align-items: start; flex-direction: column; }
  .tutor-controls { width: 100%; justify-content: start; }
  .tutor-control { flex: 1; }
  .tutor-message { max-width: 95%; }
  .tutor-form { grid-template-columns: 1fr; }
  .tutor-form .button { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .tutor-avatar { transition: none; }
}


/* Base de estudio local */
.study-content { padding-top: 25px; }
.study-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 245px; padding: 32px 38px; overflow: hidden; background: var(--wine); color: #fff9f0; }
.study-hero::after { position: absolute; top: -80px; right: 22%; width: 1px; height: 440px; content: ""; transform: rotate(31deg); background: rgba(255,255,255,.1); }
.study-hero > div:first-child { position: relative; z-index: 1; max-width: 700px; }
.study-hero .eyebrow { color: #e4c893; }
.study-hero h1 { margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.study-hero h1 em { color: #e9c98f; font-style: normal; }
.study-hero p:not(.eyebrow) { max-width: 660px; margin: 14px 0 0; color: rgba(255,249,240,.82); font-size: 15px; line-height: 1.5; }
.study-hero-stamp { position: relative; z-index: 1; flex: none; width: 137px; height: 137px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid rgba(255,239,207,.46); border-radius: 50%; transform: rotate(4deg); color: #f4dfb8; text-align: center; }
.study-hero-stamp strong { font: 25px var(--mono); }
.study-hero-stamp span { font: 8px var(--mono); letter-spacing: .1em; line-height: 1.4; }
.study-notice { display: flex; align-items: center; gap: 13px; margin: 16px 0 30px; padding: 13px 16px; border: 1px solid #e3d4b6; background: #f4ead6; }
.study-notice p { flex: 1; margin: 0; color: #675b4a; font-size: 13px; line-height: 1.4; }
.study-notice p strong { color: #4e3b29; }
.study-notice .text-link { border: 0; background: transparent; cursor: pointer; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr); gap: 20px; align-items: start; }
.study-browser { min-width: 0; }
.study-search-row { display: grid; grid-template-columns: 1fr 170px; gap: 8px; margin: 0 0 15px; }
.study-search-row input, .study-search-row select { min-width: 0; min-height: 42px; border: 1px solid #d7ccbd; padding: 9px 11px; background: #fffdf8; color: var(--ink); font-size: 13px; }
.study-search-row input:focus, .study-search-row select:focus { border-color: var(--wine); outline: 2px solid rgba(122,46,58,.12); }
.study-results-list { display: grid; gap: 8px; }
.study-result-card { padding: 13px 14px; border: 1px solid var(--line); background: rgba(255,252,246,.72); transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.study-result-card:hover, .study-result-card.is-selected { border-color: #cba979; background: #fffaf2; }
.study-result-card:hover { transform: translateY(-1px); }
.study-result-meta { display: flex; justify-content: space-between; gap: 10px; color: #8a7c69; font: 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.study-result-meta b { color: var(--green); font-weight: 500; letter-spacing: 0; text-transform: none; }
.study-result-title { display: block; margin: 7px 0 5px; padding: 0; border: 0; background: transparent; color: var(--wine-dark); font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; }
.study-result-title span { color: var(--gold); font-size: 14px; }
.study-result-card p { margin: 0; color: #62594f; font-size: 13px; line-height: 1.42; }
.study-result-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #968a7b; font: 9px var(--mono); }
.study-note-link, .study-delete-note { border: 0; padding: 2px 0; background: transparent; color: var(--wine); font: 10px var(--mono); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.study-detail { position: sticky; top: 18px; min-width: 0; padding: 18px; border: 1px solid #d8c7aa; border-top: 3px solid var(--gold); background: #f8f0e3; }
.study-detail-kicker { margin-bottom: 7px; color: #8a7257; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.study-detail h2 { margin: 0 0 8px; color: var(--wine-dark); font-size: 24px; line-height: 1.08; }
.study-detail > p { margin: 0; color: #5f5549; font-size: 13px; line-height: 1.48; }
.study-detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 18px; }
.study-detail-actions .button { min-height: 35px; padding: 7px 10px; font-size: 11px; }
.study-note-form { padding-top: 13px; border-top: 1px solid #dfceb1; }
.study-note-form label { display: block; margin-bottom: 7px; color: #786b58; font: 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.study-note-form textarea { width: 100%; min-height: 130px; resize: vertical; padding: 10px 11px; border: 1px solid #d7ccbd; background: #fffdf8; color: var(--ink); font-size: 13px; line-height: 1.45; }
.study-note-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.study-note-form-footer span { color: #8d806f; font-size: 10px; line-height: 1.3; }
.study-note-form-footer .button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.study-delete-note { display: block; margin-top: 11px; color: #8b4f45; }
.study-detail-empty { min-height: 265px; display: flex; flex-direction: column; justify-content: center; }
.study-detail-empty .study-detail-mark { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #d1baa0; color: var(--wine); font: 18px var(--mono); }
.study-detail-empty h2 { font-size: 21px; }
.study-empty { display: grid; gap: 4px; padding: 22px 14px; border: 1px dashed #d7c8b0; background: #faf5eb; color: #776b5c; font-size: 12px; line-height: 1.4; }
.study-empty strong { color: var(--wine-dark); font-size: 15px; }
@media (max-width: 1000px) {
  .study-layout { grid-template-columns: 1fr; }
  .study-detail { position: static; }
}
@media (max-width: 760px) {
  .study-content { padding-top: 18px; }
  .study-hero { min-height: auto; align-items: start; padding: 23px 20px; }
  .study-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .study-hero-stamp { width: 84px; height: 84px; margin-top: 28px; }
  .study-hero-stamp strong { font-size: 15px; }
  .study-hero-stamp span { font-size: 7px; }
  .study-notice { align-items: start; gap: 9px; margin: 13px 0 24px; padding: 10px; }
  .study-notice p { font-size: 12px; }
  .study-notice .text-link { display: none; }
  .study-search-row { grid-template-columns: 1fr; }
  .study-result-title { font-size: 16px; }
  .study-detail { padding: 15px; }
  .study-note-form-footer { align-items: start; flex-direction: column; }
  .study-note-form-footer .button { width: 100%; justify-content: space-between; }
}
@media (max-width: 400px) {
  .study-hero { display: block; }
  .study-hero-stamp { position: absolute; top: 16px; right: 14px; width: 70px; height: 70px; margin: 0; opacity: .8; }
  .study-hero > div:first-child { padding-right: 3px; }
  .study-hero p:not(.eyebrow) { font-size: 13px; }
}


/* Nora IA: tutora persistente desde la bienvenida hasta el proyecto integrador */
.tutor-panel {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  width: min(410px, calc(100vw - 36px));
  max-height: min(78vh, 720px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8cbb9;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 18px 55px rgba(43, 31, 23, .22);
}
.tutor-panel.is-collapsed { width: min(365px, calc(100vw - 36px)); }
.tutor-panel .tutor-header { align-items: center; flex-direction: row; gap: 10px; padding: 12px 14px; }
.tutor-identity { flex: 1 1 150px; }
.tutor-avatar { position: relative; width: 52px; height: 52px; overflow: hidden; border: 1px solid #b78b55; border-radius: 50%; background: #f2e8d9; }
.tutor-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 17%; will-change: transform; }
.tutor-avatar-idle img { animation: nora-float 3.4s ease-in-out infinite; }
.tutor-avatar-thinking img { animation: nora-thinking .72s ease-in-out infinite alternate; }
.tutor-avatar-explaining img { animation: nora-explaining .48s ease-in-out infinite alternate; }
.tutor-avatar-celebrating img { animation: nora-celebrate .72s cubic-bezier(.2,.8,.3,1.3) both; }
@keyframes nora-float { 0%, 100% { transform: translateY(1px) rotate(0); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes nora-thinking { from { transform: translateY(1px) rotate(-3deg); } to { transform: translateY(-2px) rotate(3deg); } }
@keyframes nora-explaining { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-2px) rotate(1deg); } }
@keyframes nora-celebrate { 0% { transform: scale(.92) rotate(-5deg); } 55% { transform: scale(1.12) rotate(5deg); } 100% { transform: scale(1) rotate(0); } }
.tutor-panel .tutor-status { max-width: 235px; line-height: 1.3; }
.tutor-panel.is-open .tutor-header { border-bottom: 1px solid #e4d9ca; }
.tutor-panel.is-collapsed .tutor-header { border-bottom: 0; }
.tutor-panel .tutor-controls { flex: 0 1 auto; gap: 6px; }
.tutor-panel .tutor-control { min-height: 36px; border-radius: 9px; }
.tutor-panel .tutor-toggle { background: #fffaf2; font-weight: 650; }
.tutor-provider-label { display: inline-flex; align-items: center; gap: 5px; color: #786b59; font-size: 10px; }
.tutor-provider-label select { max-width: 112px; min-height: 34px; border: 1px solid #cbbba6; border-radius: 7px; background: #fffdf8; color: var(--wine); font-size: 11px; }
.tutor-panel .tutor-body:not([hidden]) { display: flex; min-height: 0; flex-direction: column; overflow: hidden; }
.tutor-context-note { padding: 9px 15px 0; color: #776b5d; font-size: 11px; font-weight: 650; }
.tutor-panel .tutor-log { min-height: 86px; max-height: min(34vh, 290px); padding: 10px 14px; overflow-y: auto; overscroll-behavior: contain; }
.tutor-panel .tutor-message { max-width: 93%; border-radius: 12px; }
.tutor-panel .tutor-message p { overflow-wrap: anywhere; }
.tutor-panel .tutor-form { grid-template-columns: minmax(0, 1fr) auto; padding: 0 14px; }
.tutor-panel .tutor-form input { border-radius: 9px; }
.tutor-panel .tutor-form input:disabled { background: #f1ece4; color: #766f64; }
.tutor-panel .tutor-form .button { border-radius: 9px; }
.tutor-error { margin: 7px 14px 0; color: #8a3e35; font-size: 11px; line-height: 1.4; }
.tutor-stop { align-self: flex-start; margin: 8px 14px 0; border: 0; background: transparent; color: #765029; font-size: 11px; text-decoration: underline; cursor: pointer; }
.tutor-panel .tutor-disclaimer { margin: 9px 14px 12px; padding-top: 8px; border-top: 1px solid #e8dece; font-size: 10px; }
.tutor-panel :focus-visible, .course-more-actions :focus-visible { outline: 3px solid #bc8a43; outline-offset: 2px; }

/* Agenda didáctica repetible por módulo (3 h guiadas + 1 h independiente) */
.module-session-flow { margin: 16px 0; padding: 16px; border: 1px solid #e0d4c3; border-radius: 14px; background: #fffaf2; }
.module-session-flow-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.module-session-flow-heading .eyebrow { margin-bottom: 4px; }
.module-session-flow-heading h3 { margin: 0; color: var(--wine-dark); font-size: 19px; }
.module-session-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.module-session-step { min-width: 0; padding: 11px 10px; border: 1px solid #e8dece; border-radius: 10px; background: #fffdf8; }
.module-session-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #8a7257; font: 9px var(--mono); }
.module-session-meta b { color: var(--wine); font-size: 10px; }
.module-session-step h4 { min-height: 36px; margin: 8px 0 6px; color: var(--wine-dark); font-size: 13px; line-height: 1.25; }
.module-session-description { color: #62584e; font-size: 11px; line-height: 1.45; }
.module-session-description p { margin: 5px 0 0; font-size: inherit; }
.module-session-checklist { display: grid; gap: 5px; margin: 6px 0 0; padding-left: 17px; }
.module-independent-work { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 11px 13px; border-left: 3px solid #9b7440; background: #f4eee3; }
.module-independent-work > span { flex: none; color: var(--wine); font: 700 12px var(--mono); }
.module-independent-work b { color: var(--wine-dark); font-size: 12px; }
.module-independent-work p, .module-independent-work ul { margin: 4px 0 0; color: #62584e; font-size: 11px; line-height: 1.4; }
.course-more-actions { position: relative; align-self: center; }
.course-more-actions > summary { padding: 10px 12px; border: 1px solid #d7ccbd; border-radius: 8px; color: var(--wine); font-size: 12px; cursor: pointer; }
.course-more-actions > div { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; display: grid; min-width: 205px; gap: 8px; padding: 12px; border: 1px solid #d7ccbd; border-radius: 10px; background: #fffaf2; box-shadow: 0 10px 26px rgba(43, 31, 23, .15); }
.course-more-actions > div .text-link { padding: 3px 0; border: 0; background: none; color: var(--wine); text-align: left; text-decoration: none; cursor: pointer; }

@media (max-width: 900px) {
  .module-session-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tutor-panel, .tutor-panel.is-collapsed { right: 10px; bottom: 10px; width: min(410px, calc(100vw - 20px)); max-height: min(78dvh, 680px); }
  .tutor-panel .tutor-header { align-items: center; flex-direction: row; padding: 10px 11px; }
  .tutor-identity { flex-basis: 140px; gap: 8px; }
  .tutor-avatar { width: 45px; height: 45px; }
  .tutor-identity h2 { font-size: 16px; }
  .tutor-panel .tutor-status { max-width: 160px; font-size: 10px; }
  .tutor-panel .tutor-controls { width: auto; justify-content: flex-end; }
  .tutor-panel .tutor-control { flex: 0 1 auto; min-height: 34px; padding: 5px 7px; font-size: 10px; }
  .tutor-panel .tutor-form { grid-template-columns: minmax(0, 1fr) auto; }
  .tutor-panel .tutor-form .button { width: auto; }
  .module-session-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .tutor-panel .tutor-header { align-items: flex-start; flex-direction: column; }
  .tutor-panel .tutor-controls { width: 100%; justify-content: space-between; }
  .tutor-panel .tutor-identity { width: 100%; }
  .tutor-panel .tutor-form { grid-template-columns: 1fr; }
  .tutor-panel .tutor-form .button { width: 100%; }
  .module-session-steps { grid-template-columns: 1fr; }
  .module-session-step h4 { min-height: 0; }
  .course-more-actions > div { left: auto; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tutor-avatar img { animation: none !important; }
  .tutor-panel, .tutor-panel * { scroll-behavior: auto !important; }
}

/* El estado cerrado ocupa solo el avatar; deja libres las áreas de interacción */
.tutor-panel.is-collapsed,
.tutor-panel.is-collapsed .tutor-header {
  width: 68px;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.tutor-panel.is-collapsed { right: 18px; bottom: 18px; }
.tutor-panel.is-collapsed .tutor-header { position: relative; justify-content: center; }
.tutor-panel.is-collapsed .tutor-identity { display: flex; width: 68px; height: 68px; flex: none; justify-content: center; }
.tutor-panel.is-collapsed .tutor-identity > div:not(.tutor-avatar) { display: none; }
.tutor-panel.is-collapsed .tutor-avatar { width: 64px; height: 64px; border: 2px solid #b78b55; box-shadow: 0 4px 14px rgba(43, 31, 23, .22); }
.tutor-panel.is-collapsed .tutor-controls { position: absolute; inset: 0; display: flex; width: 68px; height: 68px; }
.tutor-panel.is-collapsed .tutor-provider-label,
.tutor-panel.is-collapsed .tutor-voice { display: none; }
.tutor-panel.is-collapsed .tutor-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 68px;
  height: 68px;
  min-height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
}
.tutor-panel.is-collapsed .tutor-toggle::after { content: "+"; position: absolute; right: -1px; bottom: -1px; display: grid; width: 23px; height: 23px; place-items: center; border: 2px solid #fffaf2; border-radius: 50%; background: var(--wine); color: white; font-size: 18px; line-height: 1; }
@media (max-width: 760px) {
  .tutor-panel.is-collapsed,
  .tutor-panel.is-collapsed .tutor-header { right: auto; bottom: auto; width: 68px; height: 68px; min-height: 68px; max-height: 68px; padding: 0; }
  .tutor-panel.is-collapsed { right: 12px; bottom: 12px; }
}

.course-hero .course-more-actions > summary { border-color: rgba(255, 250, 242, .68); color: #fffaf2; }
.course-hero .course-more-actions > summary:hover { background: rgba(255, 250, 242, .1); }


/* Producción NotebookLM → Synthesia por módulo y práctica */
.course-video-card { display: grid; gap: 12px; margin: 16px 0; padding: 15px; border: 1px solid #e0d4c3; border-radius: 14px; background: #fffdf8; }
.course-video-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.course-video-heading .eyebrow { margin: 0 0 4px; color: #8a7257; font: 9px var(--mono); letter-spacing: .08em; }
.course-video-heading h4 { margin: 0; color: var(--wine-dark); font-size: 15px; line-height: 1.35; }
.course-video-pipeline { flex: none; padding: 5px 7px; border: 1px solid #e5d7bd; border-radius: 999px; background: #f7f0e4; color: #71532d; font: 8px var(--mono); letter-spacing: .02em; }
.course-video-player { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: #201a18; }
.course-video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-video-pending { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px dashed #d7c7ae; border-radius: 10px; background: #f8f3eb; color: #62584e; }
.course-video-pending > span { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border-radius: 50%; background: #efe4d2; color: var(--wine); font-size: 12px; }
.course-video-pending b { color: var(--wine-dark); font-size: 13px; }
.course-video-pending p { margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
.course-video-reviewed { margin: -3px 0 0; color: #52684f; font-size: 11px; }
.course-video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.course-video-actions .button { min-height: 36px; padding: 8px 10px; font-size: 11px; }
.course-video-service-link { color: var(--wine); font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.course-video-brief-status { min-height: 0; margin: -6px 0 0; color: #52684f; font-size: 11px; line-height: 1.4; }
.course-video-brief-status:empty { display: none; }
.course-video-card :focus-visible { outline: 3px solid #bc8a43; outline-offset: 3px; }
@media (max-width: 520px) {
  .course-video-card { padding: 12px; }
  .course-video-heading { flex-direction: column; gap: 7px; }
  .course-video-actions { align-items: flex-start; }
  .course-video-actions .button { width: 100%; }
}


/* Aula guiada de Nora */
.classroom-content { width: min(1600px, 100%); padding-top: 24px; }
.classroom-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 260px); align-items: center; gap: 26px; margin: 0 0 18px; padding: 21px 25px; border-left: 3px solid var(--gold); background: #eee7db; }
.classroom-heading h1 { margin: 0; color: var(--wine-dark); font-size: clamp(30px, 3.4vw, 43px); line-height: .98; letter-spacing: -.04em; }
.classroom-heading h1 em { color: var(--wine); font-style: normal; }
.classroom-heading > div:first-child > p:last-child { max-width: 700px; margin: 9px 0 0; color: #6f6559; font-size: 14px; line-height: 1.42; }
.classroom-course-progress { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #d5c8b4; background: rgba(255,252,246,.7); }
.classroom-course-progress > span { color: #88775f; font: 8px var(--mono); letter-spacing: .08em; }
.classroom-course-progress > b { color: var(--wine); font: 21px var(--mono); }
.classroom-course-progress > b small { color: #8e8171; font: 10px var(--sans); }
.classroom-course-progress .progress-track { margin: 1px 0 0; }
.classroom-portfolio-link { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: #6c4c36; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.classroom-layout { display: grid; grid-template-columns: minmax(160px, 190px) minmax(0, 1fr); align-items: start; gap: 13px; }
.classroom-rail { min-width: 0; padding: 13px 10px 10px; border: 1px solid #ddd3c3; background: #eee8dc; }
.classroom-rail-heading { position: relative; padding: 0 5px 10px; border-bottom: 1px solid #d7cdbc; }
.classroom-rail-heading .eyebrow { margin-bottom: 3px; font-size: 8px; }
.classroom-rail-heading h2 { margin: 0; color: var(--wine-dark); font-size: 19px; }
.classroom-rail-heading > span { position: absolute; right: 4px; bottom: 13px; color: #8a7b68; font: 9px var(--mono); }
.classroom-module-list { display: grid; gap: 3px; margin: 9px 0 12px; padding: 0; list-style: none; }
.classroom-module-button { width: 100%; min-height: 37px; display: grid; grid-template-columns: 23px minmax(0,1fr) 13px; align-items: center; gap: 5px; padding: 5px 5px; border: 1px solid transparent; background: transparent; color: #5c554b; text-align: left; cursor: pointer; }
.classroom-module-button:hover { border-color: #d8c6a7; background: #f6f0e5; }
.classroom-module-button.is-active { border-color: var(--wine); background: #fffaf2; color: var(--wine-dark); box-shadow: inset 2px 0 var(--wine); }
.classroom-module-number { color: #9a8c77; font: 9px var(--mono); }
.classroom-module-title { font-size: 11px; line-height: 1.2; }
.classroom-module-mark { color: var(--green); font-size: 11px; font-weight: 700; }
.classroom-module-button.is-complete .classroom-module-number { color: var(--green); }
.classroom-rail-footer { padding: 10px 8px 0; border-top: 1px solid #d7cdbc; }
.classroom-rail-footer > b { color: var(--wine); font: 8px var(--mono); letter-spacing: .07em; }
.classroom-rail-footer p { margin: 5px 0 8px; color: #756b5d; font-size: 10px; line-height: 1.35; }
.classroom-rail-link { padding: 0; border: 0; background: transparent; color: var(--wine); font-size: 10px; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.classroom-stage { grid-column: 2; min-width: 0; padding: 16px; border: 1px solid #ded3c1; background: rgba(255,252,246,.8); box-shadow: 0 6px 18px rgba(70,41,27,.045); }
.classroom-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 2px 11px; }
.classroom-stage-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.classroom-stage-heading h2 { margin: 0; color: #39322d; font-size: 17px; line-height: 1.15; }
.classroom-outcome { flex: none; padding: 5px 7px; border: 1px solid #d4c4aa; color: #7d6c53; font: 7px var(--mono); letter-spacing: .06em; }
.classroom-phase-nav { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 3px; margin-bottom: 10px; }
.classroom-phase-button { min-width: 0; display: grid; justify-items: start; gap: 4px; padding: 7px 6px 6px; border: 0; border-bottom: 2px solid #ddd4c7; background: transparent; color: #807668; text-align: left; cursor: pointer; }
.classroom-phase-button > span { color: #a4947b; font: 8px var(--mono); }
.classroom-phase-button > b { font-size: 9px; font-weight: 500; line-height: 1.15; }
.classroom-phase-button:hover:not(:disabled) { background: #f3ecdf; }
.classroom-phase-button:disabled { opacity: .48; cursor: not-allowed; }
.classroom-phase-button.is-active { border-color: var(--wine); color: var(--wine); }
.classroom-phase-button.is-active > b { font-weight: 700; }
.classroom-phase-button.is-past > span { color: var(--green); }
.classroom-scene { min-height: 410px; display: grid; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: stretch; padding: 22px; overflow: hidden; border: 1px solid #e3d7c3; background: radial-gradient(ellipse at 18% 82%, rgba(216,178,110,.2), transparent 40%), #f8f2e8; animation: classroom-scene-in .24s ease-out both; }
.classroom-scene-copy { min-width: 0; align-self: center; padding: 4px 0; }
.classroom-scene-kicker { margin: 0 0 7px; color: #927650; font: 8px var(--mono); letter-spacing: .11em; }
.classroom-scene-copy h3 { max-width: 520px; margin: 0 0 8px; color: var(--wine-dark); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.04; letter-spacing: -.025em; }
.classroom-scene-lead { max-width: 620px; margin: 0 0 11px; color: #5f564b; font-size: 13px; line-height: 1.42; }
.classroom-callout { margin-top: 11px; padding: 10px 11px; border-left: 2px solid var(--gold); background: rgba(255,252,246,.75); }
.classroom-callout > span, .classroom-example > span { color: #8d7656; font: 7px var(--mono); letter-spacing: .08em; }
.classroom-callout p { margin: 4px 0 0; color: #4e463d; font-size: 12px; font-weight: 600; line-height: 1.4; }
.classroom-guardrail { margin: 10px 0 0; padding: 8px 10px; background: #f0eadf; color: #6a5d4c; font-size: 10px; line-height: 1.4; }
.classroom-concepts { display: grid; gap: 5px; margin: 10px 0; padding: 0; list-style: none; }
.classroom-concepts li { display: grid; grid-template-columns: minmax(70px, .36fr) 1fr; gap: 8px; padding: 6px 8px; border: 1px solid #e5dac8; background: rgba(255,252,246,.75); }
.classroom-concepts li b { color: var(--wine); font-size: 10px; }
.classroom-concepts li span { color: #665d52; font-size: 10px; line-height: 1.35; }
.classroom-example { margin-top: 9px; padding: 9px 10px; border: 1px solid #e2d1b1; background: #fffaf0; }
.classroom-example p { margin: 4px 0 0; color: #594f43; font-size: 10px; line-height: 1.4; }
.classroom-action-card { margin-top: 13px; padding: 14px; border: 1px solid #d9c6a4; border-left: 3px solid var(--wine); background: #fffaf1; box-shadow: 0 5px 16px rgba(66,44,25,.06); }
.classroom-action-counter { margin: 0 0 6px; color: #8d7656; font: 8px var(--mono); letter-spacing: .08em; }
.classroom-action-card h4 { margin: 0 0 7px; color: var(--wine-dark); font-size: 16px; }
.classroom-action-instruction { margin: 0; color: #3f3933; font-size: 14px; font-weight: 600; line-height: 1.5; }
.classroom-action-how { margin-top: 11px; padding-top: 10px; border-top: 1px solid #e6dccb; color: #645a4e; font-size: 10px; line-height: 1.45; }
.classroom-action-how > b { color: var(--wine-dark); font-size: 11px; }
.classroom-action-how ol { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 17px; }
.classroom-action-tool { margin: 8px 0 0; padding: 7px 8px; background: #f2ecdf; }
.classroom-action-tool span { display: block; margin-top: 3px; color: #85745e; font-size: 9px; }
.classroom-action-hint { margin: 10px 0; color: #766b5b; font-size: 10px; line-height: 1.45; }
.classroom-action-done { min-height: 38px; width: 100%; justify-content: space-between; }
.classroom-steps { display: grid; gap: 5px; margin: 10px 0; padding: 0; list-style: none; }
.classroom-steps li { display: grid; grid-template-columns: 23px 1fr; gap: 7px; align-items: start; color: #514a42; font-size: 10px; line-height: 1.38; }
.classroom-steps li > span { color: var(--wine); font: 8px var(--mono); }
.classroom-demonstration { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.classroom-demonstration article { min-width: 0; padding: 8px; border: 1px solid #e2d7c7; background: #fffdf8; }
.classroom-demonstration article:last-of-type { border-color: #d9c7a7; background: #fbf2df; }
.classroom-demonstration article span { color: #8d7655; font: 7px var(--mono); letter-spacing: .07em; }
.classroom-demonstration article p { margin: 4px 0 0; color: #5d5348; font-size: 9px; line-height: 1.35; }
.classroom-demo-why { grid-column: 1 / -1; margin: 0; color: #6b5d4c; font-size: 9px; line-height: 1.35; }
.classroom-demo-why b { color: var(--wine-dark); }
.classroom-character { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: end; align-items: center; margin: 0; overflow: hidden; }
.classroom-character-glow { position: absolute; z-index: 0; bottom: 28px; width: 82%; height: 45%; border-radius: 50%; background: radial-gradient(ellipse, rgba(216,178,110,.35), rgba(216,178,110,0) 70%); }
.classroom-character img { position: relative; z-index: 1; width: min(100%, 360px); max-height: 370px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(48,35,36,.12)); animation: nora-classroom-float 3.4s ease-in-out infinite; }
.classroom-character.is-speaking img { animation: nora-classroom-present 1.15s ease-in-out infinite; }
.classroom-character figcaption { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; margin-top: 5px; text-align: center; }
.classroom-character-status { color: #88765c; font-size: 9px; }
.classroom-character figcaption b { color: var(--wine-dark); font-size: 12px; }
.classroom-stage-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.classroom-narrate-button, .classroom-practice-link { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; border: 1px solid #d3c1a1; background: #f5ecda; color: var(--wine-dark); font-size: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
.classroom-narrate-button:hover:not(:disabled), .classroom-practice-link:hover { border-color: var(--wine); background: #fff8eb; }
.classroom-narrate-button:disabled { opacity: .55; cursor: not-allowed; }
.classroom-practice-link { border-color: #d9d2c5; background: transparent; color: #6b5947; }
.classroom-phase-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin: 10px 0 12px; }
.classroom-step-control { padding: 8px 0; border: 0; background: transparent; color: #766754; font-size: 10px; cursor: pointer; }
.classroom-phase-next { margin-left: auto; }
.classroom-control-spacer { flex: 1; }
.classroom-next-class { padding: 8px 2px; border: 0; background: transparent; color: var(--wine); font-size: 10px; font-weight: 600; cursor: pointer; }
.classroom-resources { border: 1px solid #ded4c4; background: #f7f1e7; }
.classroom-resources > summary { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; color: var(--wine-dark); font-size: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.classroom-resources > summary::-webkit-details-marker { display: none; }
.classroom-resource-body { display: grid; gap: 8px; padding: 0 10px 10px; color: #695e50; font-size: 10px; line-height: 1.4; }
.classroom-resource-body p { margin: 0; }
.classroom-resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.classroom-resource-grid > div > b, .classroom-tools > b { color: #7a674f; font-size: 10px; }
.classroom-resource-grid ul { margin: 4px 0 0; padding-left: 15px; }
.classroom-privacy { padding: 7px 8px; border-left: 2px solid var(--gold); background: #fffaf2; }
.classroom-tools { display: grid; gap: 6px; }
.classroom-tool { padding: 8px; border: 1px solid #e5d8c4; background: #fffaf2; }
.classroom-tool > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.classroom-tool a { color: var(--wine); font-weight: 700; }
.classroom-tool > div span { color: #8a7c68; }
.classroom-tool p { margin: 4px 0 0; }
.classroom-material-link { color: var(--wine); font-weight: 600; text-underline-offset: 2px; }
.classroom-material-pending { color: #817461; font-style: italic; }
.classroom-storage-note { margin: 9px 0 0; color: #897f71; font-size: 9px; line-height: 1.35; }
.classroom-next-class { margin-left: auto; }
.tutor-panel-embedded { grid-column: 2; position: static; width: 100%; max-width: 100%; min-width: 0; margin: 0; align-self: stretch; }
.tutor-panel-embedded .tutor-header { align-items: start; flex-direction: column; }
.tutor-panel-embedded .tutor-controls { width: 100%; justify-content: flex-start; }
.tutor-panel-embedded .tutor-control { flex: 1; }
.tutor-panel-embedded .tutor-body { display: flex; flex-direction: column; min-height: 360px; padding: 11px; }
.tutor-panel-embedded .tutor-log { flex: 1; min-height: 150px; max-height: min(44vh, 420px); }
.tutor-panel-embedded .tutor-message { max-width: 100%; }
.tutor-panel-embedded .tutor-form { grid-template-columns: 1fr; }
.tutor-panel-embedded .tutor-form .button { width: 100%; justify-content: space-between; }
.tutor-panel-embedded .tutor-disclaimer { font-size: 9px; }
.classroom-content .course-glossary { margin-top: 18px; }
@keyframes classroom-scene-in { from { opacity: .7; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nora-classroom-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes nora-classroom-present { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@media (max-width: 1180px) {
  .classroom-layout { grid-template-columns: minmax(150px, 175px) minmax(0, 1fr); }
  .classroom-rail { grid-column: 1; grid-row: 1 / span 2; }
  .classroom-stage, .tutor-panel-embedded { grid-column: 2; }
  .tutor-panel-embedded .tutor-body { min-height: 300px; }
}
@media (max-width: 1000px) {
  .classroom-heading { grid-template-columns: 1fr; gap: 13px; }
  .classroom-course-progress { grid-template-columns: 1fr auto; align-items: center; }
  .classroom-course-progress .progress-track { grid-column: 1 / -1; }
  .classroom-layout { grid-template-columns: 1fr; }
  .classroom-rail, .classroom-stage, .tutor-panel-embedded { grid-column: 1; grid-row: auto; }
  .classroom-rail { padding: 10px; }
  .classroom-module-list { grid-auto-flow: column; grid-auto-columns: minmax(155px, 1fr); overflow-x: auto; padding: 1px 0 6px; }
  .classroom-rail-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .classroom-rail-footer p { flex: 1; min-width: 200px; margin: 0; }
  .classroom-stage { order: 2; }
  .tutor-panel-embedded { order: 3; }
}
@media (max-width: 760px) {
  .classroom-content { padding-top: 16px; }
  .classroom-heading { padding: 16px; }
  .classroom-heading h1 { font-size: 32px; }
  .classroom-heading > div:first-child > p:last-child { font-size: 12px; }
  .classroom-stage { padding: 10px; }
  .classroom-stage-heading h2 { font-size: 15px; }
  .classroom-phase-button { padding: 6px 3px; }
  .classroom-phase-button > b { font-size: 8px; }
  .classroom-scene { grid-template-columns: minmax(100px, 31%) minmax(0,1fr); min-height: 300px; gap: 10px; padding: 13px 11px; }
  .classroom-scene-copy h3 { font-size: 21px; }
  .classroom-scene-lead { font-size: 11px; }
  .classroom-character img { max-height: 230px; }
  .classroom-character-status { font-size: 8px; }
  .classroom-character figcaption b { font-size: 9px; }
  .classroom-resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .classroom-heading h1 { font-size: 29px; }
  .classroom-stage-heading { align-items: start; }
  .classroom-outcome { margin-top: 2px; font-size: 6px; }
  .classroom-phase-nav { overflow-x: auto; }
  .classroom-phase-button { min-width: 59px; }
  .classroom-phase-button > b { font-size: 7px; }
  .classroom-scene { grid-template-columns: 1fr; }
  .classroom-character { grid-row: 1; min-height: 210px; max-height: 260px; }
  .classroom-character img { max-height: 215px; }
  .classroom-character-glow { bottom: 24px; height: 70%; }
  .classroom-scene-copy { grid-row: 2; }
  .classroom-stage-controls > button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .classroom-scene, .classroom-character img { animation: none; }
}

/* Anam live avatar: extensión discreta del escenario editorial */
.classroom-character.is-live { justify-content: center; }
.classroom-live-video { position: relative; z-index: 1; display: block; width: min(100%, 280px); aspect-ratio: 4 / 5; border: 1px solid #d1baa0; border-radius: 12px; background: #211c18; object-fit: cover; box-shadow: 0 10px 24px rgba(48,35,36,.16); }
.classroom-live-video[hidden], .classroom-character img[hidden] { display: none; }
.classroom-character.is-live .classroom-character-glow { opacity: .5; }
.classroom-live-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 12px; border: 1px solid #7a2e3a; border-radius: 8px; background: #7a2e3a; color: #fffaf3; font-size: 11px; font-weight: 650; cursor: pointer; }
.classroom-live-button:hover:not(:disabled) { background: #61242e; }
.classroom-live-button:disabled { opacity: .68; cursor: wait; }
.classroom-live-status { flex-basis: 100%; color: #746653; font-size: 10px; line-height: 1.4; }
.classroom-live-privacy { margin: -3px 0 12px; color: #817563; font-size: 10px; line-height: 1.45; }
.classroom-live-button:focus-visible { outline: 3px solid #bc8a43; outline-offset: 2px; }
@media (max-width: 760px) {
  .classroom-live-video { width: min(100%, 430px); max-height: 250px; aspect-ratio: 16 / 9; }
  .classroom-stage-controls .classroom-live-button,
  .classroom-stage-controls .classroom-narrate-button { flex: 1 1 calc(50% - 8px); }
  .classroom-live-status { order: 3; }
  .classroom-live-privacy { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .classroom-live-video { scroll-behavior: auto; }
}


/* Navegación Aula en vivo + clases en lista desplegable */
.main-shell-live { width: 100%; margin-left: 0 !important; min-width: 0; }
.section-tabs { display: flex; align-items: center; gap: 4px; min-width: 0; }
.section-tab { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid transparent; background: transparent; color: #6d6255; font-size: 11px; white-space: nowrap; cursor: pointer; }
.section-tab b { color: #aa8b5d; font: 9px var(--mono); }
.section-tab:hover, .section-tab.is-active { border-color: #dfd2bd; background: #f5efe5; color: var(--wine-dark); }
.section-tab.advisor-tab { border-color: #e0d4c3; background: #fffaf2; color: var(--wine-dark); }
.section-tab.advisor-tab[aria-expanded="true"] { border-color: var(--wine); background: #f4eadc; }
.class-menu { position: relative; display: inline-flex; }
.class-menu > summary { list-style: none; }
.class-menu > summary::-webkit-details-marker { display: none; }
.class-menu > summary i { color: #907c61; font-style: normal; }
.class-menu-popover { position: absolute; z-index: 1400; top: calc(100% + 7px); left: 0; display: none; width: min(380px, calc(100vw - 24px)); max-height: min(65dvh, 520px); overflow: auto; padding: 8px; border: 1px solid #ded3c1; background: #fffaf2; box-shadow: 0 14px 32px rgba(43, 31, 23, .18); }
.class-menu[open] > .class-menu-popover { display: grid; gap: 3px; }
.class-menu-item { width: 100%; min-height: 38px; display: grid; grid-template-columns: 28px minmax(0,1fr) 16px; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid transparent; background: transparent; color: #5c554b; text-align: left; cursor: pointer; }
.class-menu-item > span { color: #9a8c77; font: 9px var(--mono); }
.class-menu-item > b { font-size: 11px; font-weight: 550; line-height: 1.25; }
.class-menu-item > i { color: var(--green); font-style: normal; }
.class-menu-item:hover, .class-menu-item.is-active { border-color: #d8c6a7; background: #f6f0e5; color: var(--wine-dark); }
.class-menu-popover > p { margin: 5px 4px 2px; padding-top: 8px; border-top: 1px solid #e6dccb; color: #807463; font-size: 9px; }
.classroom-layout-live { grid-template-columns: minmax(0, 1fr); }
.classroom-layout-live .classroom-stage { grid-column: 1; }

/* Asesoría flotante, ajustable y con documento leído en el navegador */
.tutor-panel.is-open { z-index: 1300; min-width: 320px; min-height: 380px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); resize: both; overflow: auto; }
.tutor-panel.is-open .tutor-header { flex: 0 0 auto; }
.tutor-panel.is-open .tutor-body { display: flex; height: calc(100% - 76px); min-height: 0; flex-direction: column; overflow: hidden; }
.tutor-panel.is-open .tutor-log { flex: 1 1 auto; min-height: 70px; max-height: none; overflow: auto; }
.tutor-panel .tutor-document { flex: 0 0 auto; display: grid; gap: 6px; margin: 8px 14px 4px; padding: 8px 9px; border: 1px solid #e2d6c5; background: #f8f3eb; }
.tutor-document-heading { display: flex; justify-content: space-between; gap: 8px; color: #806c50; font: 8px var(--mono); letter-spacing: .06em; }
.tutor-document-heading span { color: #9a8d7b; letter-spacing: 0; }
.tutor-document-select { position: relative; justify-self: start; padding: 6px 9px; border: 1px solid #d7c5a6; background: #fffaf2; color: var(--wine-dark); font-size: 10px; font-weight: 650; cursor: pointer; }
.tutor-document-select:hover { border-color: var(--wine); background: #f3eadb; }
.tutor-document-select input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.tutor-document-select:focus-within { outline: 3px solid #bc8a43; outline-offset: 2px; }
.tutor-document-ready { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #5c6252; font-size: 9px; line-height: 1.35; }
.tutor-document-ready > span { min-width: 0; overflow-wrap: anywhere; }
.tutor-document-ready b { color: #4d5848; }
.tutor-document-remove { flex: none; border: 0; background: transparent; color: #82564a; font-size: 9px; text-decoration: underline; cursor: pointer; }
.tutor-document-remove:disabled { opacity: .5; cursor: not-allowed; }
.tutor-document-note { margin: 0; color: #746a5b; font-size: 9px; line-height: 1.35; }
.tutor-document-error { margin: 0; font-size: 9px; }
.tutor-resize-control { min-width: 30px; padding-inline: 6px !important; font-size: 14px !important; }
.tutor-panel.is-collapsed, .tutor-panel.is-collapsed .tutor-header { width: auto; height: auto; min-width: 0; min-height: 0; max-width: calc(100vw - 24px); max-height: none; padding: 0; border: 0; border-radius: 999px; background: transparent; box-shadow: none; overflow: visible; }
.tutor-panel.is-collapsed { border: 1px solid #d8c9b5; background: #fffaf2; box-shadow: 0 5px 18px rgba(43,31,23,.18); }
.tutor-panel.is-collapsed .tutor-header { position: relative; justify-content: center; padding: 5px 8px; }
.tutor-panel.is-collapsed .tutor-identity { display: flex; width: auto; height: auto; flex: 0 0 auto; justify-content: center; }
.tutor-panel.is-collapsed .tutor-identity > div:not(.tutor-avatar) { display: none; }
.tutor-panel.is-collapsed .tutor-avatar { width: 32px; height: 32px; border: 0; box-shadow: none; }
.tutor-panel.is-collapsed .tutor-header { flex-direction: row; align-items: center; gap: 4px; }
.tutor-panel.is-collapsed .tutor-controls { position: static; inset: auto; display: flex; width: auto; height: auto; }
.tutor-panel.is-collapsed .tutor-provider-label, .tutor-panel.is-collapsed .tutor-voice { display: none; }
.tutor-panel.is-collapsed .tutor-toggle { position: static; inset: auto; z-index: auto; width: auto; height: auto; min-height: 34px; min-width: 0; padding: 6px 9px; border: 0; border-radius: 999px; background: transparent; color: var(--wine-dark); font-size: 11px; white-space: nowrap; }
.tutor-panel.is-collapsed .tutor-toggle::after { display: none; }
.classroom-advisor-open { min-height: 34px; display: inline-flex; align-items: center; margin: 8px 0 10px; padding: 6px 9px; border: 1px solid #d8c7a8; background: #f6efe3; color: var(--wine-dark); font-size: 10px; font-weight: 650; cursor: pointer; }
.classroom-advisor-open:hover { border-color: var(--wine); background: #fffaf1; }
.advisor-practice-button { border-color: #d8c7a8; color: var(--wine-dark); }

@media (max-width: 760px) {
  .main-shell-live { margin-left: 0 !important; }
  .topbar { height: auto; min-height: 78px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 7px 10px; }
  .breadcrumb { display: none; }
  .section-tabs { order: 1; width: 100%; flex: 1 1 100%; overflow-x: auto; scrollbar-width: thin; }
  .section-tab { min-height: 36px; padding: 6px 8px; font-size: 10px; }
  .topbar-right { display: none; }
  .class-menu-popover { position: fixed; top: 87px; left: 10px; width: min(380px, calc(100vw - 20px)); max-height: min(65dvh, 520px); }
  .classroom-layout-live .classroom-stage { padding: 12px; }
  .tutor-panel.is-open { right: 12px; bottom: 12px; width: min(430px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .tutor-panel.is-open .tutor-body { height: calc(100% - 88px); }
}
@media (max-width: 460px) {
  .section-tabs { gap: 2px; }
  .section-tab { gap: 4px; padding-inline: 6px; font-size: 9px; }
  .section-tab b { font-size: 8px; }
  .tutor-panel.is-open { min-width: min(320px, calc(100vw - 24px)); min-height: 380px; }
  .tutor-panel.is-open .tutor-header { align-items: center; flex-direction: row; }
  .tutor-panel.is-open .tutor-controls { width: auto; flex-wrap: nowrap; overflow-x: auto; }
  .tutor-panel.is-open .tutor-identity { width: auto; flex: 1 1 auto; }
  .tutor-panel .tutor-form { grid-template-columns: minmax(0, 1fr) auto; }
  .tutor-panel .tutor-form .button { width: auto; }
}


/* Asistente abierto: conversación contable con México como base */
.open-assistant-content {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: 30px clamp(18px, 3.2vw, 48px) 64px;
}
.open-assistant-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 23px;
}
.open-assistant-heading > div { max-width: 760px; }
.open-assistant-heading .eyebrow { margin: 0 0 10px; color: #927747; font: 9px var(--mono); letter-spacing: .11em; }
.open-assistant-heading h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 4vw, 53px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.open-assistant-heading h1 em { color: var(--wine); font-weight: 500; }
.open-assistant-heading > div > p:last-child { max-width: 620px; margin: 12px 0 0; color: #6d6a63; font-size: 15px; line-height: 1.45; }
.open-jurisdiction-card { min-width: 218px; display: grid; gap: 6px; padding: 13px 16px; border: 1px solid #e0d3bd; background: #fffaf2; }
.open-jurisdiction-card > span { color: #968466; font: 8px var(--mono); letter-spacing: .11em; }
.open-jurisdiction-card strong { display: flex; align-items: center; gap: 9px; color: var(--wine-dark); font-size: 18px; font-weight: 600; }
.open-jurisdiction-card strong i { display: grid; width: 28px; height: 20px; place-items: center; border: 1px solid #dfd2be; background: #f3ecdf; color: #84704f; font: 9px var(--mono); font-style: normal; }
.open-jurisdiction-card small { color: #817a6e; font-size: 10px; line-height: 1.35; }
.open-assistant-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .78fr); align-items: stretch; gap: 18px; }
.open-chat-panel, .open-nora-panel { min-width: 0; border: 1px solid #e0d7c9; background: var(--paper-bright); box-shadow: 0 12px 34px rgba(53, 38, 25, .055); }
.open-chat-panel { min-height: 650px; display: flex; flex-direction: column; padding: 18px; }
.open-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 0 14px; border-bottom: 1px solid #e9e1d5; }
.open-chat-header .eyebrow, .open-nora-panel .eyebrow { margin: 0 0 4px; color: #987d50; font: 8px var(--mono); letter-spacing: .1em; }
.open-chat-header h2, .open-nora-panel h2 { margin: 0; color: var(--wine-dark); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.open-chat-status { display: inline-block; margin-top: 4px; color: #768071; font-size: 10px; }
.open-chat-controls { display: flex; align-items: center; gap: 8px; }
.open-provider-label { display: grid; gap: 3px; color: #85765e; font: 8px var(--mono); }
.open-provider-label select { max-width: 120px; padding: 5px 7px; border: 1px solid #ddd1be; background: #fffdf8; color: var(--ink); font: 10px var(--sans); }
.open-chat-controls .tutor-voice { min-height: 32px; padding: 5px 9px; border: 1px solid #e1d5c1; background: #f9f2e8; color: var(--wine-dark); font-size: 10px; cursor: pointer; }
.open-chat-controls button:disabled { opacity: .55; cursor: not-allowed; }
.open-chat-log { flex: 1 1 auto; min-height: 290px; max-height: 440px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 14px 0 10px; padding: 15px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #eae2d7; background: #f7f3ec; scroll-behavior: smooth; }
.open-message { max-width: min(88%, 650px); padding: 10px 13px 11px; border: 1px solid #e8e0d4; background: #fffdf8; box-shadow: 0 2px 7px rgba(40, 30, 20, .035); }
.open-message-assistant { align-self: flex-start; border-left: 3px solid var(--gold); }
.open-message-user { align-self: flex-end; border-color: #81505a; background: var(--wine); color: #fffaf5; }
.open-message-label { display: block; margin-bottom: 5px; color: #9a835c; font: 8px var(--mono); letter-spacing: .08em; }
.open-message-user .open-message-label { color: #f1d9b0; }
.open-message p { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.open-starters { display: flex; flex-wrap: wrap; gap: 6px; margin: 1px 0 10px; }
.open-starters button { min-height: 28px; padding: 5px 9px; border: 1px solid #e5dac8; border-radius: 2px; background: #fbf7ef; color: #665c4d; font-size: 9px; cursor: pointer; }
.open-starters button:hover { border-color: #c7aa7b; background: #f6edde; color: var(--wine-dark); }
.open-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.open-chat-form input { min-width: 0; height: 43px; padding: 0 12px; border: 1px solid #d9cdbb; background: #fffdf8; color: var(--ink); font-size: 13px; }
.open-chat-form input::placeholder { color: #958b7a; }
.open-chat-form input:disabled { background: #f1ede6; }
.open-chat-form .button { min-height: 43px; padding: 0 15px; font-size: 11px; }
.open-chat-form .button:disabled { opacity: .55; cursor: not-allowed; }
.open-document-box { display: grid; gap: 7px; margin-top: 12px; padding: 10px 11px; border: 1px solid #e4d9c8; background: #faf6ee; }
.open-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.open-document-heading > div { display: grid; gap: 3px; }
.open-document-heading b { color: #88744f; font: 8px var(--mono); letter-spacing: .08em; }
.open-document-heading span { color: #928778; font-size: 9px; }
.open-document-select { position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid #d8c6a6; background: #fffaf2; color: var(--wine-dark); font-size: 10px; font-weight: 600; cursor: pointer; }
.open-document-select:hover { border-color: var(--wine); background: #f4ecdf; }
.open-document-select input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.open-document-select:focus-within { outline: 3px solid #bc8a43; outline-offset: 2px; }
.open-document-ready { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 8px; border: 1px solid #e3dccf; background: #fffdf8; color: #6a715f; font-size: 9px; line-height: 1.35; }
.open-document-ready > span { min-width: 0; overflow-wrap: anywhere; }
.open-document-ready b { color: #4e5e4d; }
.open-document-ready button { flex: none; border: 0; background: none; color: #83574a; font-size: 9px; text-decoration: underline; cursor: pointer; }
.open-document-box > p, .open-chat-privacy { margin: 0; color: #817969; font-size: 9px; line-height: 1.4; }
.open-error, .open-config-error { color: #8a423d !important; }
.open-config-error { margin: 8px 0 0; font-size: 10px; }
.open-stop { align-self: flex-start; margin-top: 8px; }
.open-chat-privacy { margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee7dc; }
.open-nora-panel { display: flex; flex-direction: column; padding: 17px; }
.open-nora-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1px 1px 13px; }
.open-nora-panel > header span:not(.open-live-dot) { display: block; margin-top: 3px; color: #777166; font-size: 10px; }
.open-live-dot { width: 9px; height: 9px; border: 2px solid #fffaf2; border-radius: 50%; background: #b2a994; box-shadow: 0 0 0 1px #d8cbb7; }
.open-nora-panel.is-live .open-live-dot, .open-nora-panel:has(.open-anam-screen.is-live) .open-live-dot { background: #418265; box-shadow: 0 0 0 3px #dcebe0; }
.open-anam-screen { position: relative; width: 100%; aspect-ratio: 4 / 4.8; min-height: 300px; max-height: 520px; display: grid; place-items: center; margin: 0; overflow: hidden; border: 1px solid #d8cbb8; background: radial-gradient(ellipse at 50% 40%, #ebe0cf 0%, #ded1bf 48%, #cfc0ad 100%); }
.open-anam-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; color: #55483d; text-align: center; }
.open-anam-mark { position: relative; width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(122,46,58,.25); border-radius: 50%; background: radial-gradient(circle at 45% 42%, #fffaf3, #e8dccb 70%); box-shadow: 0 12px 28px rgba(65,44,30,.1), inset 0 0 0 9px rgba(255,252,246,.4); }
.open-anam-mark span { position: absolute; top: 26px; color: #a08b6b; font: 8px var(--mono); letter-spacing: .18em; }
.open-anam-mark b { color: var(--wine); font: 500 72px/1 var(--sans); letter-spacing: -.1em; transform: translateX(-3px); }
.open-anam-placeholder > strong { color: var(--wine-dark); font-size: 17px; font-weight: 600; }
.open-anam-placeholder > p { max-width: 220px; margin: 0; color: #70685d; font-size: 11px; line-height: 1.45; }
.open-anam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #d7ccbc; }
.open-anam-button { min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 8px 13px; border: 1px solid #6e2632; background: var(--wine); color: #fffaf3; font-size: 11px; font-weight: 650; cursor: pointer; }
.open-anam-button:hover { background: var(--wine-dark); }
.open-anam-button:disabled { opacity: .65; cursor: wait; }
.open-anam-button span { color: #f0d49d; font-size: 14px; }
.open-anam-status { min-height: 28px; margin: 7px 1px 0; color: #62715f; font-size: 10px; line-height: 1.4; }
.open-anam-privacy { margin: 0 1px 12px; color: #817969; font-size: 9px; line-height: 1.4; }
.open-sources { margin-top: auto; border-top: 1px solid #e9e0d3; padding-top: 10px; }
.open-sources summary { color: #786442; font-size: 10px; font-weight: 650; cursor: pointer; }
.open-sources nav { display: grid; gap: 5px; margin-top: 9px; }
.open-sources nav a { color: var(--wine-dark); font-size: 10px; text-decoration: underline; text-decoration-color: #d9c8aa; text-underline-offset: 2px; }
.open-sources nav a:hover { color: #9d4b4d; }
.open-sources > p { margin: 9px 0 0; color: #82796b; font-size: 9px; line-height: 1.4; }
.open-assistant-content [hidden] { display: none !important; }
@media (max-width: 1000px) {
  .open-assistant-layout { grid-template-columns: minmax(0, 1.35fr) minmax(270px, .8fr); gap: 12px; }
  .open-chat-panel, .open-nora-panel { padding: 14px; }
  .open-chat-header { align-items: flex-start; }
  .open-chat-controls { flex-direction: column; align-items: flex-end; }
  .open-anam-screen { min-height: 280px; }
}
@media (max-width: 760px) {
  .open-assistant-content { padding: 22px 13px 42px; }
  .open-assistant-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 14px; }
  .open-assistant-heading h1 { font-size: clamp(34px, 10vw, 45px); }
  .open-assistant-heading > div > p:last-child { margin-top: 9px; font-size: 13px; }
  .open-jurisdiction-card { width: 100%; min-width: 0; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 9px 11px; }
  .open-jurisdiction-card > span { grid-column: 1 / -1; }
  .open-jurisdiction-card small { justify-self: end; text-align: right; }
  .open-assistant-layout { grid-template-columns: minmax(0,1fr); }
  .open-nora-panel { order: 1; }
  .open-chat-panel { order: 2; min-height: 620px; }
  .open-anam-screen { aspect-ratio: 16 / 10; min-height: 230px; max-height: 360px; }
  .open-anam-mark { width: 115px; height: 115px; }
  .open-anam-mark b { font-size: 56px; }
  .open-anam-mark span { top: 19px; }
  .open-chat-log { min-height: 250px; max-height: 390px; padding: 11px; }
  .open-message { max-width: 95%; }
  .open-chat-controls { flex-direction: row; }
}
@media (max-width: 460px) {
  .open-assistant-content { padding-inline: 10px; }
  .open-chat-panel, .open-nora-panel { padding: 11px; }
  .open-chat-header { flex-wrap: wrap; }
  .open-chat-controls { width: 100%; justify-content: space-between; }
  .open-starters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  .open-starters button { flex: none; }
  .open-chat-form { grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
  .open-chat-form input { padding-inline: 9px; font-size: 12px; }
  .open-chat-form .button { padding-inline: 10px; }
  .open-document-heading { align-items: flex-start; }
  .open-document-select { flex: none; }
  .open-anam-screen { aspect-ratio: 4 / 3; min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .open-chat-log { scroll-behavior: auto; }
}


/* Tema Aula en vivo · paleta lavanda, menta y tinta de la referencia */
.app-shell:has(.classroom-content) {
  color-scheme: dark;
  --wine: #aa91ff;
  --wine-dark: #c0adff;
  --gold: #9ce8c7;
  --gold-pale: #303b42;
  --paper: #191b28;
  --paper-bright: #202333;
  --ink: #f0eff7;
  --muted: #b4b6c7;
  --line: #383c50;
  --green: #83cba9;
  --green-pale: #263b38;
  background: #191b28;
  color: #f0eff7;
}
.app-shell:has(.classroom-content) .main-shell-live { background: #191b28; }
.app-shell:has(.classroom-content) .topbar {
  background: #202232;
  border-color: #383b4c;
  color: #d8d8e5;
}
.app-shell:has(.classroom-content) .section-tab { color: #b8b9ca; }
.app-shell:has(.classroom-content) .section-tab b,
.app-shell:has(.classroom-content) .section-tab:hover,
.app-shell:has(.classroom-content) .section-tab.is-active,
.app-shell:has(.classroom-content) .section-tab.advisor-tab,
.app-shell:has(.classroom-content) .section-tab.advisor-tab[aria-expanded="true"] {
  color: #c0adff;
}
.app-shell:has(.classroom-content) .section-tab:hover,
.app-shell:has(.classroom-content) .section-tab.is-active {
  border-color: #514b70;
  background: #292b3e;
}
.app-shell:has(.classroom-content) .section-tab.advisor-tab,
.app-shell:has(.classroom-content) .section-tab.advisor-tab[aria-expanded="true"] {
  border-color: #514b70;
  background: #292b3e;
}
.app-shell:has(.classroom-content) .class-menu > summary i { color: #c0adff; }
.app-shell:has(.classroom-content) .class-menu-popover {
  border-color: #45485c;
  background: #202333;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38);
}
.app-shell:has(.classroom-content) .class-menu-item { color: #e4e3ed; }
.app-shell:has(.classroom-content) .class-menu-item > span { color: #aaa9bd; }
.app-shell:has(.classroom-content) .class-menu-item > i { color: #9ce8c7; }
.app-shell:has(.classroom-content) .class-menu-item:hover,
.app-shell:has(.classroom-content) .class-menu-item.is-active {
  border-color: #514b70;
  background: #2b2d41;
  color: #c0adff;
}
.app-shell:has(.classroom-content) .class-menu-popover > p { border-color: #383c50; color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-heading {
  border-left-color: #9ce8c7;
  border-radius: 24px;
  background: #252838;
}
.app-shell:has(.classroom-content) .classroom-heading h1,
.app-shell:has(.classroom-content) .classroom-heading h1 em { color: #b29cff; }
.app-shell:has(.classroom-content) .classroom-heading > div:first-child > p:last-child { color: #c0c1d0; }
.app-shell:has(.classroom-content) .classroom-course-progress {
  border-color: #41455a;
  border-radius: 14px;
  background: #1e2130;
}
.app-shell:has(.classroom-content) .classroom-course-progress > span,
.app-shell:has(.classroom-content) .classroom-course-progress > b small { color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-course-progress > b { color: #b29cff; }
.app-shell:has(.classroom-content) .classroom-course-progress .progress-track { background: #383b50; }
.app-shell:has(.classroom-content) .classroom-course-progress .progress-track span { background: #aa91ff; }
.app-shell:has(.classroom-content) .classroom-portfolio-link,
.app-shell:has(.classroom-content) .classroom-rail-link { color: #c0adff; }
.app-shell:has(.classroom-content) .classroom-rail,
.app-shell:has(.classroom-content) .classroom-stage {
  border-color: #383c50;
  border-radius: 20px;
  background: #202333;
  box-shadow: none;
}
.app-shell:has(.classroom-content) .classroom-rail-heading,
.app-shell:has(.classroom-content) .classroom-rail-footer { border-color: #383c50; }
.app-shell:has(.classroom-content) .classroom-rail-heading h2,
.app-shell:has(.classroom-content) .classroom-rail-footer > b { color: #c0adff; }
.app-shell:has(.classroom-content) .classroom-rail-heading > span,
.app-shell:has(.classroom-content) .classroom-rail-footer p { color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-module-button { color: #c9c9d6; }
.app-shell:has(.classroom-content) .classroom-module-button:hover {
  border-color: #484b61;
  background: #292c3d;
}
.app-shell:has(.classroom-content) .classroom-module-button.is-active {
  border-color: #6e619c;
  background: #2b2d41;
  color: #c0adff;
  box-shadow: inset 2px 0 #aa91ff;
}
.app-shell:has(.classroom-content) .classroom-module-number,
.app-shell:has(.classroom-content) .classroom-module-mark,
.app-shell:has(.classroom-content) .classroom-module-button.is-complete .classroom-module-number { color: #9ce8c7; }
.app-shell:has(.classroom-content) .classroom-stage-heading h2 { color: #f0eff7; }
.app-shell:has(.classroom-content) .classroom-outcome {
  border-color: #4b4c64;
  border-radius: 8px;
  color: #c2b2ff;
}
.app-shell:has(.classroom-content) .classroom-phase-button {
  border-color: #414458;
  color: #b4b6c7;
}
.app-shell:has(.classroom-content) .classroom-phase-button > span { color: #aaa9bd; }
.app-shell:has(.classroom-content) .classroom-phase-button:hover:not(:disabled) { background: #292c3e; }
.app-shell:has(.classroom-content) .classroom-phase-button.is-active {
  border-color: #aa91ff;
  color: #c0adff;
}
.app-shell:has(.classroom-content) .classroom-phase-button.is-past > span { color: #9ce8c7; }
.app-shell:has(.classroom-content) .classroom-scene {
  border-color: #383c50;
  border-radius: 18px;
  background: radial-gradient(ellipse at 18% 82%, rgba(156, 232, 199, .08), transparent 43%), #1c1f2d;
}
.app-shell:has(.classroom-content) .classroom-scene-kicker,
.app-shell:has(.classroom-content) .classroom-callout > span,
.app-shell:has(.classroom-content) .classroom-example > span,
.app-shell:has(.classroom-content) .classroom-action-counter { color: #b4a0ff; }
.app-shell:has(.classroom-content) .classroom-scene-copy h3,
.app-shell:has(.classroom-content) .classroom-character figcaption b,
.app-shell:has(.classroom-content) .classroom-action-card h4,
.app-shell:has(.classroom-content) .classroom-action-how > b,
.app-shell:has(.classroom-content) .classroom-demo-why b { color: #f0eff7; }
.app-shell:has(.classroom-content) .classroom-scene-lead,
.app-shell:has(.classroom-content) .classroom-callout p,
.app-shell:has(.classroom-content) .classroom-concepts li span,
.app-shell:has(.classroom-content) .classroom-example p,
.app-shell:has(.classroom-content) .classroom-action-instruction,
.app-shell:has(.classroom-content) .classroom-action-how,
.app-shell:has(.classroom-content) .classroom-action-hint,
.app-shell:has(.classroom-content) .classroom-steps li,
.app-shell:has(.classroom-content) .classroom-demonstration article p,
.app-shell:has(.classroom-content) .classroom-demo-why { color: #c5c6d3; }
.app-shell:has(.classroom-content) .classroom-callout,
.app-shell:has(.classroom-content) .classroom-action-card,
.app-shell:has(.classroom-content) .classroom-example,
.app-shell:has(.classroom-content) .classroom-concepts li,
.app-shell:has(.classroom-content) .classroom-demonstration article,
.app-shell:has(.classroom-content) .classroom-demonstration article:last-of-type,
.app-shell:has(.classroom-content) .classroom-action-tool,
.app-shell:has(.classroom-content) .classroom-action-card .classroom-action-how {
  border-color: #3c4054;
  background: #252838;
}
.app-shell:has(.classroom-content) .classroom-callout,
.app-shell:has(.classroom-content) .classroom-action-card { border-left-color: #9ce8c7; }
.app-shell:has(.classroom-content) .classroom-guardrail {
  border-left: 2px solid #9ce8c7;
  background: #283438;
  color: #c4d6d0;
}
.app-shell:has(.classroom-content) .classroom-action-how { border-color: #414458; }
.app-shell:has(.classroom-content) .classroom-action-tool span { color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-steps li > span { color: #b29cff; }
.app-shell:has(.classroom-content) .classroom-character-glow {
  background: radial-gradient(ellipse, rgba(170, 145, 255, .24), rgba(170, 145, 255, 0) 70%);
}
.app-shell:has(.classroom-content) .classroom-character img { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .32)); }
.app-shell:has(.classroom-content) .classroom-character-status { color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-narrate-button,
.app-shell:has(.classroom-content) .classroom-practice-link,
.app-shell:has(.classroom-content) .classroom-advisor-open {
  border-color: #57516f;
  border-radius: 9px;
  background: #2a2c40;
  color: #d0c5ff;
}
.app-shell:has(.classroom-content) .classroom-narrate-button:hover:not(:disabled),
.app-shell:has(.classroom-content) .classroom-practice-link:hover,
.app-shell:has(.classroom-content) .classroom-advisor-open:hover {
  border-color: #aa91ff;
  background: #32334a;
}
.app-shell:has(.classroom-content) .classroom-phase-next,
.app-shell:has(.classroom-content) .classroom-next-class { color: #c0adff; }
.app-shell:has(.classroom-content) .classroom-resources { border-color: #383c50; background: #202333; }
.app-shell:has(.classroom-content) .classroom-resources > summary { color: #e7e5f0; }
.app-shell:has(.classroom-content) .classroom-resource-body { color: #c5c6d3; }
.app-shell:has(.classroom-content) .classroom-resource-grid > div > b,
.app-shell:has(.classroom-content) .classroom-tools > b { color: #d0c5ff; }
.app-shell:has(.classroom-content) .classroom-privacy,
.app-shell:has(.classroom-content) .classroom-tool {
  border-color: #3d4255;
  background: #252838;
}
.app-shell:has(.classroom-content) .classroom-tool > div > b { color: #f0eff7; }
.app-shell:has(.classroom-content) .classroom-tool a { color: #c0adff; }
.app-shell:has(.classroom-content) .classroom-live-video,
.app-shell:has(.classroom-content) .classroom-live-placeholder {
  border-color: #44485c;
  background: #202333;
}
.app-shell:has(.classroom-content) .classroom-live-placeholder { color: #f0eff7; }
.app-shell:has(.classroom-content) .classroom-live-status,
.app-shell:has(.classroom-content) .classroom-live-privacy { color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-live-button,
.app-shell:has(.classroom-content) .classroom-stage-controls .classroom-narrate-button {
  border-color: #57516f;
  background: #2a2c40;
  color: #d0c5ff;
}
.app-shell:has(.classroom-content) .classroom-live-button:hover:not(:disabled) { border-color: #aa91ff; }
.app-shell:has(.classroom-content) .tutor-panel {
  border-color: #41455a;
  border-radius: 14px;
  background: #202333;
  color: #f0eff7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}
.app-shell:has(.classroom-content) .tutor-header { border-color: #383c50; background: #272a3b; }
.app-shell:has(.classroom-content) .tutor-identity h2,
.app-shell:has(.classroom-content) .tutor-empty b { color: #c0adff; }
.app-shell:has(.classroom-content) .tutor-kicker,
.app-shell:has(.classroom-content) .tutor-status,
.app-shell:has(.classroom-content) .tutor-disclaimer { color: #b4b6c7; }
.app-shell:has(.classroom-content) .tutor-avatar { border-color: #aa91ff; background: #353047; color: #c0adff; }
.app-shell:has(.classroom-content) .tutor-control { border-color: #484b61; color: #d0c5ff; }
.app-shell:has(.classroom-content) .tutor-message,
.app-shell:has(.classroom-content) .tutor-form input,
.app-shell:has(.classroom-content) .tutor-document-select { border-color: #41455a; background: #252838; color: #f0eff7; }
.app-shell:has(.classroom-content) .tutor-message-user { border-color: #71639b; background: #343148; }
.app-shell:has(.classroom-content) .tutor-message p,
.app-shell:has(.classroom-content) .tutor-empty { color: #d0d0dd; }
.app-shell:has(.classroom-content) .tutor-message-label { color: #c0adff; }
.app-shell:has(.classroom-content) :focus-visible { outline-color: #9ce8c7; }
@media (max-width: 760px) {
  .app-shell:has(.classroom-content) .topbar { border-bottom-color: #383b4c; }
}


/* Ruta principal del Aula en vivo y accesos secundarios */
.classroom-primary-route {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid #d5c8b4;
}
.classroom-primary-route > span {
  color: #88775f;
  font: 8px var(--mono);
  letter-spacing: .07em;
}
.classroom-primary-route > strong {
  color: #39322d;
  font-size: 13px;
  line-height: 1.25;
}
.classroom-route-cta {
  justify-self: start;
  min-height: 36px;
  margin-top: 2px;
  border-radius: 9px;
  font-size: 11px;
  text-decoration: none;
}
.classroom-course-progress .classroom-primary-route { grid-column: 1 / -1; }

.tools-menu { position: relative; display: inline-flex; flex: none; }
.tools-menu > summary { list-style: none; }
.tools-menu > summary::-webkit-details-marker { display: none; }
.tools-menu > summary i { color: #907c61; font-style: normal; }
.tools-menu-popover {
  position: absolute;
  z-index: 1400;
  top: calc(100% + 7px);
  right: 0;
  display: none;
  width: min(280px, calc(100vw - 24px));
  max-height: min(65dvh, 520px);
  overflow: auto;
  padding: 8px;
  border: 1px solid #ded3c1;
  background: #fffaf2;
  box-shadow: 0 14px 32px rgba(43, 31, 23, .18);
}
.tools-menu[open] > .tools-menu-popover { display: grid; gap: 3px; }
.tools-menu-popover .section-tab {
  width: 100%;
  justify-content: flex-start;
  border-radius: 5px;
  text-align: left;
}
.tools-menu-popover .section-tab > span { flex: 1; }
.tools-menu-popover .advisor-tab { margin-top: 3px; border-top-color: #e2d7c6; }
.app-shell:has(.classroom-content) .classroom-primary-route { border-color: #41455a; }
.app-shell:has(.classroom-content) .classroom-primary-route > span { color: #9ce8c7; }
.app-shell:has(.classroom-content) .classroom-primary-route > strong { color: #f0eff7; }
.app-shell:has(.classroom-content) .classroom-route-cta {
  border-color: #aa91ff;
  background: #aa91ff;
  color: #191b28;
}
.app-shell:has(.classroom-content) .classroom-route-cta:hover:not(:disabled) {
  border-color: #c0adff;
  background: #c0adff;
}
.app-shell:has(.classroom-content) .tools-menu > summary i { color: #c0adff; }
.app-shell:has(.classroom-content) .tools-menu-popover {
  border-color: #45485c;
  background: #202333;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .38);
}
.app-shell:has(.classroom-content) .tools-menu-popover .section-tab { color: #c9c9d6; }
.app-shell:has(.classroom-content) .tools-menu-popover .section-tab:hover,
.app-shell:has(.classroom-content) .tools-menu-popover .section-tab.is-active {
  border-color: #514b70;
  background: #2b2d41;
  color: #c0adff;
}
.app-shell:has(.classroom-content) .tools-menu-popover .advisor-tab { border-color: #514b70; }
@media (max-width: 1000px) {
  .classroom-course-progress .classroom-primary-route { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .tools-menu-popover {
    position: fixed;
    top: 87px;
    right: 10px;
    left: auto;
    width: min(280px, calc(100vw - 20px));
    max-height: min(65dvh, 520px);
  }
  .classroom-primary-route { gap: 6px; }
  .classroom-route-cta { width: 100%; justify-content: space-between; }
}


/* Microcopy de progreso: distingue clases guardadas de fases de la sesión */
.classroom-progress-explainer {
  margin: 0;
  color: #746b60;
  font-size: 10px;
  line-height: 1.4;
}
.classroom-phase-explainer {
  margin: -3px 2px 12px;
  color: #746b60;
  font-size: 10px;
  line-height: 1.45;
}
.classroom-phase-explainer strong { color: var(--wine-dark); }
.app-shell:has(.classroom-content) .classroom-progress-explainer,
.app-shell:has(.classroom-content) .classroom-phase-explainer { color: #b4b6c7; }
.app-shell:has(.classroom-content) .classroom-phase-explainer strong { color: #c0adff; }
.app-shell:has(.classroom-content) .classroom-phase-button[disabled] { opacity: .46; }
@media (max-width: 760px) {
  .classroom-progress-explainer,
  .classroom-phase-explainer { font-size: 9px; }
}

/* Flujo del aula: acción curricular antes de controles de apoyo */
.app-shell:has(.classroom-content) .classroom-phase-controls {
  min-height: 62px;
  margin: 14px 0 16px;
  padding: 9px 12px;
  border: 1px solid #41455a;
  border-left: 4px solid #9ce8c7;
  border-radius: 12px;
  background: #252838;
}
.app-shell:has(.classroom-content) .classroom-step-control {
  min-height: 44px;
  color: #c5c6d3;
}
.app-shell:has(.classroom-content) .classroom-phase-controls .classroom-phase-next,
.app-shell:has(.classroom-content) .classroom-phase-controls .button-primary {
  min-height: 44px;
  border-color: #aa91ff;
  background: #aa91ff;
  color: #191b28;
}
.app-shell:has(.classroom-content) .classroom-phase-controls .classroom-phase-next:hover:not(:disabled),
.app-shell:has(.classroom-content) .classroom-phase-controls .button-primary:hover:not(:disabled) {
  border-color: #c0adff;
  background: #c0adff;
}
.app-shell:has(.classroom-content) .classroom-phase-controls .classroom-next-class {
  min-height: 44px;
  color: #c0adff;
}
@media (max-width: 760px) {
  .app-shell:has(.classroom-content) .classroom-phase-controls {
    align-items: stretch;
    gap: 6px;
    padding: 10px;
  }
  .app-shell:has(.classroom-content) .classroom-phase-controls .classroom-phase-next,
  .app-shell:has(.classroom-content) .classroom-phase-controls .button-primary {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .app-shell:has(.classroom-content) .classroom-phase-controls .classroom-control-spacer { display: none; }
}

/* Microefectos del Aula: respuesta visual breve, sin alterar la identidad */
.app-shell:has(.classroom-content) .classroom-character-glow {
  animation: classroom-glow-breathe 7s ease-in-out infinite;
  transform-origin: center;
}
.app-shell:has(.classroom-content) .classroom-character.is-live .classroom-character-glow {
  animation: none;
}
@keyframes classroom-glow-breathe {
  0%, 100% { opacity: .72; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.035); }
}
.app-shell:has(.classroom-content) .classroom-stage,
.app-shell:has(.classroom-content) .classroom-scene,
.app-shell:has(.classroom-content) .classroom-action-card,
.app-shell:has(.classroom-content) .classroom-phase-button,
.app-shell:has(.classroom-content) .classroom-route-cta,
.app-shell:has(.classroom-content) .classroom-phase-controls .classroom-phase-next,
.app-shell:has(.classroom-content) .class-menu > summary,
.app-shell:has(.classroom-content) .tools-menu > summary,
.app-shell:has(.classroom-content) .class-menu-item,
.app-shell:has(.classroom-content) .tools-menu-popover .section-tab {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}
.app-shell:has(.classroom-content) .classroom-course-progress .progress-track span {
  transition: width .7s cubic-bezier(.2, .75, .25, 1);
}
.app-shell:has(.classroom-content) .classroom-phase-button:hover:not(:disabled),
.app-shell:has(.classroom-content) .class-menu-item:hover,
.app-shell:has(.classroom-content) .tools-menu-popover .section-tab:hover {
  transform: translateY(-1px);
}
.app-shell:has(.classroom-content) .classroom-action-card {
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease,
    transform .18s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .app-shell:has(.classroom-content) .classroom-action-card:hover {
    border-color: #aa91ff;
    box-shadow: 0 8px 22px rgba(170, 145, 255, .12);
    transform: translateY(-2px);
  }
  .app-shell:has(.classroom-content) .classroom-phase-controls .classroom-phase-next:hover:not(:disabled),
  .app-shell:has(.classroom-content) .classroom-route-cta:hover:not(:disabled) {
    box-shadow: 0 5px 16px rgba(170, 145, 255, .22);
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell:has(.classroom-content) .classroom-character-glow,
  .app-shell:has(.classroom-content) .classroom-stage,
  .app-shell:has(.classroom-content) .classroom-scene,
  .app-shell:has(.classroom-content) .classroom-action-card,
  .app-shell:has(.classroom-content) .classroom-phase-button,
  .app-shell:has(.classroom-content) .classroom-route-cta,
  .app-shell:has(.classroom-content) .classroom-phase-controls .classroom-phase-next,
  .app-shell:has(.classroom-content) .class-menu > summary,
  .app-shell:has(.classroom-content) .tools-menu > summary,
  .app-shell:has(.classroom-content) .class-menu-item,
  .app-shell:has(.classroom-content) .tools-menu-popover .section-tab,
  .app-shell:has(.classroom-content) .classroom-course-progress .progress-track span {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}


/* Ruta del curso: estado de cada clase, además del número y título */
.class-menu-item {
  grid-template-columns: 26px minmax(0, 1fr) auto 16px;
}
.class-menu-item > b { min-width: 0; }
.class-menu-status {
  padding: 3px 6px;
  border: 1px solid #ded3c1;
  border-radius: 999px;
  color: #625747;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}
.class-menu-item.is-complete .class-menu-status {
  border-color: #9ab5a2;
  color: #42634d;
}
.class-menu-item.is-active:not(.is-complete) .class-menu-status {
  border-color: #b6a2ef;
  color: #5f478f;
  font-weight: 700;
}
.class-menu-item.is-next .class-menu-status {
  border-color: #87bda6;
  color: #35674f;
}
.app-shell:has(.classroom-content) .class-menu-status {
  border-color: #484b61;
  background: #202333;
  color: #c5c6d3;
}
.app-shell:has(.classroom-content) .class-menu-item.is-complete .class-menu-status {
  border-color: #557e6d;
  background: rgba(156, 232, 199, .08);
  color: #9ce8c7;
}
.app-shell:has(.classroom-content) .class-menu-item.is-active:not(.is-complete) .class-menu-status {
  border-color: #726295;
  background: rgba(170, 145, 255, .1);
  color: #c0adff;
}
.app-shell:has(.classroom-content) .class-menu-item.is-next .class-menu-status {
  border-color: #557e6d;
  color: #9ce8c7;
}
.app-shell:has(.classroom-content) .class-menu-item.is-next:not(.is-active) {
  border-left-color: #9ce8c7;
}
@media (max-width: 460px) {
  .class-menu-popover { width: min(380px, calc(100vw - 20px)); }
  .class-menu-item { grid-template-columns: 24px minmax(0, 1fr) auto 14px; gap: 6px; padding-inline: 6px; }
  .class-menu-status { padding: 3px 5px; font-size: 8px; }
}


/* Fase 2: ruta visible y persistencia local sin prometer sincronización */
.class-menu-item {
  grid-template-columns: 24px minmax(0, 1fr) auto auto 14px;
  gap: 6px;
}
.class-menu-action {
  color: #705994;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.class-menu-item:not(.is-active) .class-menu-action {
  color: #625b50;
  font-weight: 500;
}
.app-shell:has(.classroom-content) .class-menu-action { color: #bdaaff; }
.app-shell:has(.classroom-content) .class-menu-item:not(.is-active) .class-menu-action { color: #c2c3d0; }
.app-shell:has(.classroom-content) .class-menu-item.is-active.is-complete .class-menu-action { color: #9ce8c7; }
.classroom-persistence-status {
  margin: 6px 0 10px;
  padding: 7px 9px;
  border-left: 2px solid #87bda6;
  background: rgba(135, 189, 166, .09);
  color: #37644f;
  font-size: 10px;
  line-height: 1.4;
}
.app-shell:has(.classroom-content) .classroom-persistence-status {
  border-left-color: #9ce8c7;
  background: rgba(156, 232, 199, .08);
  color: #b9e8d2;
}
@media (max-width: 460px) {
  .class-menu-item { grid-template-columns: 22px minmax(0, 1fr) auto auto 12px; gap: 4px; padding-inline: 5px; }
  .class-menu-action { font-size: 8px; }
  .classroom-persistence-status { font-size: 10px; }
}


/* Fase 3 · feedback formativo en prácticas */
.feedback-status-label { display: inline-flex; margin: 8px 0 0 !important; padding: 3px 7px; border: 1px solid currentColor; color: #514b42 !important; font-size: 11px !important; font-weight: 700; }
.feedback-section { margin-top: 11px; padding-top: 9px; border-top: 1px solid rgba(60, 55, 48, .16); }
.feedback-section h3 { margin: 0 0 5px; color: #403b34; font-size: 11px; }
.feedback-section p, .feedback-section li { margin: 0; color: #514b42; font-size: 12px; line-height: 1.45; }
.feedback-section ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.feedback-next-step { border-left: 3px solid #85683c; padding: 8px 0 2px 10px; }
.exercise-actions [data-action="mark-reviewed"] { min-height: 44px; }
