/* Ortografía · 4.º de Primaria. All course styling stays inside its page. */
.orto-page {
  --orto-ink: #164e3d;
  --orto-muted: #52695f;
  --orto-edge: #dce6d9;
  --orto-leaf: #edf5e7;
  --orto-teal: #147b75;
  --orto-teal-soft: #e9f6f3;
  --orto-yellow: #ffe48a;
  --orto-yellow-soft: #fff8df;
  --orto-correct: #24673d;
  --orto-review: #92481f;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-block: 10px 40px;
  color: var(--orto-ink);
}
.orto-page *, .orto-page *::before, .orto-page *::after { box-sizing: border-box; }
.orto-page h1, .orto-page h2, .orto-page h3, .orto-page p { overflow-wrap: break-word; }
.orto-page h1 { font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.08; letter-spacing: -.035em; }
.orto-page h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.25; letter-spacing: -.025em; }
.orto-page h3 { font-size: 1.15rem; line-height: 1.3; }
.orto-page p { line-height: 1.6; }
.orto-page button, .orto-page input, .orto-page textarea, .orto-page select { font: inherit; }
.orto-page button, .orto-page a { touch-action: manipulation; }
.orto-page :where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--orto-teal);
  outline-offset: 4px;
}
.orto-page [hidden] { display: none !important; }
.orto-page button:disabled { cursor: default; }
.orto-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--orto-muted); font-size: .9rem; }
.orto-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-weight: 750; text-decoration: none; border-radius: 8px; }
.orto-breadcrumb a:hover { color: var(--orto-teal); text-decoration: underline; text-underline-offset: 4px; }
.orto-breadcrumb .ui-icon { width: 19px; height: 19px; }
.orto-eyebrow { display: block; color: var(--orto-muted); font-size: .78rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.orto-intro { max-width: 56ch; color: var(--orto-muted); font-size: 1.05rem; margin: 12px 0 0; }
.orto-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 27%);
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #dce6ce;
  border-radius: 28px;
  background: linear-gradient(120deg, #f1f7e9, #fff8df);
}
.orto-hero-copy { min-width: 0; }
.orto-hero h1 { margin: 7px 0 0; }
.orto-hero .orto-intro { max-width: 45ch; }
.orto-hero-art { position: relative; display: grid; place-items: center; min-width: 0; height: 200px; font-size: clamp(4.5rem, 10vw, 7rem); }
.orto-hero-art :where(img, svg) { display: block; width: 100%; height: 100%; object-fit: contain; }
.orto-hero-art > span:not(.orto-unit-glyph) { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: 8px 16px; border: 1px solid #eee0a9; border-radius: 999px; background: #fff9e1; color: #696027; font-size: 1.15rem; font-weight: 800; box-shadow: 0 3px 9px rgb(104 89 26 / .06); }
.orto-unit-symbol > .ui-icon { width: 120px; height: 120px; padding: 20px; border-radius: 30px; background: #fffaf0; color: var(--orto-teal); }
.orto-unit-symbol > span:not(.orto-unit-glyph) { font-size: .86rem; }
.orto-unit-glyph { display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.orto-unit-symbol > .orto-unit-glyph { width: 120px; height: 120px; padding: 20px; border-radius: 30px; background: #fffaf0; color: var(--orto-teal); font-size: 4rem; }
.orto-hero-copy > .orto-primary { margin-top: 20px; }
.orto-section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin: 30px 0 16px; }
.orto-section-head h2 { margin: 0; }
.orto-section-head p, .orto-section-head small { margin: 0; color: var(--orto-muted); }
.orto-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; }
.orto-goals li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 11px; padding: 16px; border: 1px solid var(--orto-edge); border-radius: 18px; background: #fff; line-height: 1.45; }
.orto-goals li > div { display: grid; gap: 3px; min-width: 0; }
.orto-goals strong { font-size: 1rem; }
.orto-goals small, .orto-goals p, .orto-goals li > div > span { margin: 0; font-size: .9rem; color: var(--orto-muted); }
.orto-goal-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--orto-yellow-soft); font-size: 1.4rem; }
.orto-goals li:nth-child(2) .orto-goal-icon { background: var(--orto-teal-soft); }
.orto-goals li:nth-child(3) .orto-goal-icon { background: var(--orto-leaf); }
.orto-unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.orto-unit-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 15px;
  min-height: 172px;
  padding: 22px 20px 18px;
  border: 1px solid var(--orto-edge);
  border-radius: 22px;
  background: #fff;
  color: var(--orto-ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgb(31 70 49 / .035);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.orto-unit-card:hover, .orto-block-card:hover { border-color: #87b2a2; box-shadow: 0 8px 20px rgb(31 70 49 / .075); transform: translateY(-2px); }
.orto-unit-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--orto-leaf); color: #3a6a4d; font-size: 1.2rem; font-weight: 850; }
.orto-unit-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--orto-yellow-soft); color: #695618; font-size: 1.8rem; font-weight: 850; }
.orto-unit-icon :where(img, svg) { width: 100%; height: 100%; object-fit: contain; }
.orto-unit-card > .orto-unit-icon { justify-self: end; width: 42px; height: 42px; padding: 9px; border-radius: 13px; background: color-mix(in srgb, var(--unit-color, #147b75) 10%, white); color: var(--unit-color, #147b75); }
.orto-unit-card > .orto-unit-icon > .ui-icon { width: 24px; height: 24px; }
.orto-unit-copy { grid-column: 1 / -1; display: grid; align-content: start; gap: 6px; min-width: 0; }
.orto-unit-copy > small { color: var(--orto-muted); font-size: .75rem; letter-spacing: .035em; font-weight: 800; }
.orto-unit-copy > strong, .orto-unit-copy h2, .orto-unit-copy h3 { margin: 0; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.02em; }
.orto-unit-copy > p, .orto-unit-copy > span { margin: 0; color: var(--orto-muted); font-size: .9rem; line-height: 1.5; }
.orto-unit-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; color: var(--orto-muted); font-size: .8rem; font-weight: 700; }
.orto-unit-meta .ui-icon { width: 18px; height: 18px; }
.orto-unit-progress { grid-column: 1 / -1; display: grid; gap: 6px; align-self: end; }
.orto-unit-card.is-complete { background: #f8fcf3; border-color: #b5d3a7; }
.orto-progress { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #e7eee3; }
.orto-progress > i { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: #4b9b72; transition: width .2s ease; }
.orto-progress-label { display: flex; justify-content: space-between; gap: 12px; color: var(--orto-muted); font-size: .85rem; }
.orto-course-progress { display: grid; gap: 8px; margin-top: 24px; max-width: 540px; }
.orto-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.orto-block-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; gap: 15px; padding: 20px; border: 1px solid var(--orto-edge); border-radius: 20px; background: #fff; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.orto-block-card > div { display: grid; gap: 5px; min-width: 0; }
.orto-block-card h2, .orto-block-card h3, .orto-block-card p { margin: 0; }
.orto-block-card > h2 { font-size: 1.23rem; }
.orto-block-card > p, .orto-block-card > .orto-progress, .orto-block-card > .orto-section-links { grid-column: 1 / -1; }
.orto-block-card p { color: var(--orto-muted); font-size: .92rem; }
.orto-block-card > b { font-size: 1.35rem; color: var(--orto-teal); }
.orto-section-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.orto-section-links > .orto-secondary { min-height: 46px; gap: 6px; padding: 10px 9px; font-size: .86rem; }
.orto-section-links .ui-icon { width: 19px; height: 19px; }
.orto-section-links > .is-complete { border-color: #b5d3a7; background: #f4faef; color: var(--orto-correct); }
.orto-step-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 22px 0; padding: 0; list-style: none; }
.orto-step { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 64px; padding: 10px 12px; border: 1px solid var(--orto-edge); border-radius: 15px; background: #fff; color: var(--orto-muted); text-decoration: none; }
.orto-step:hover { border-color: #90b8a8; background: #fbfdf8; }
.orto-step-number { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 50%; background: #edf1e9; color: #59715e; font-size: .88rem; font-weight: 850; }
.orto-step-number .ui-icon { width: 19px; height: 19px; }
.orto-step-copy { display: grid; gap: 3px; min-width: 0; font-size: .88rem; line-height: 1.2; }
.orto-step-copy strong { font-weight: 800; }
.orto-step-copy small { font-size: .73rem; color: var(--orto-muted); }
.orto-step.is-current, .orto-step[aria-current="step"] { border-color: var(--orto-teal); background: var(--orto-teal-soft); color: #115b55; box-shadow: inset 0 0 0 1px var(--orto-teal); }
.orto-step.is-current .orto-step-number, .orto-step[aria-current="step"] .orto-step-number { background: var(--orto-teal); color: #fff; }
.orto-step.is-complete .orto-step-number { background: #dcedd2; color: var(--orto-correct); }
.orto-step.is-complete:not(.is-current):not([aria-current="step"]) { border-color: #c8ddbf; background: #f8fcf4; }
.orto-sheet, .orto-drill, .orto-dictation, .orto-complete { max-width: 880px; margin: 18px auto; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--orto-edge); border-radius: 26px; background: #fff; box-shadow: 0 6px 20px rgb(31 70 49 / .04); }
.orto-sheet-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.orto-sheet-head h1, .orto-sheet-head h2 { margin: 6px 0 0; }
.orto-sheet-head > div { min-width: 0; }
.orto-sheet-head .orto-intro { margin-top: 10px; }
.orto-sheet-art { display: grid; place-items: center; width: 112px; height: 112px; flex: none; font-size: 3.6rem; }
.orto-sheet-art :where(img, svg) { display: block; width: 100%; height: 100%; object-fit: contain; }
.orto-rule-list { display: grid; gap: 13px; list-style: none; padding: 0; margin: 6px 0 0; }
.orto-rule-list > li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 12px; padding: 18px; border: 1px solid #dce8d4; border-radius: 17px; background: #f6faf0; line-height: 1.6; }
.orto-rule-list > li:nth-child(3n + 2) { background: #f0f9f6; border-color: #d6e9e2; }
.orto-rule-list > li:nth-child(3n) { background: #fffaf0; border-color: #eee4c6; }
.orto-rule-list p { margin: 0; font-size: 1.08rem; }
.orto-rule-list strong { color: #164e3d; }
.orto-rule-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #e1efd5; font-size: 1rem; font-weight: 850; }
.orto-rule-list > li:nth-child(3n + 2) .orto-rule-icon { background: #d8eee7; }
.orto-rule-list > li:nth-child(3n) .orto-rule-icon { background: #faeabc; }
.orto-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.orto-example { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid #d7e0cc; border-radius: 10px; background: #fff; color: var(--orto-ink); font-size: 1.05rem; line-height: 1.5; font-weight: 750; }
.orto-example mark, .orto-word mark { border-radius: 4px; padding-inline: 2px; background: var(--orto-yellow); color: inherit; }
.orto-tip { display: flex; align-items: start; gap: 10px; margin-top: 17px; padding: 14px 16px; border-radius: 15px; background: var(--orto-yellow-soft); color: #5c541e; font-size: .95rem; line-height: 1.6; }
.orto-tip p { margin: 0; }
.orto-drill-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.orto-drill-head > h1 { flex-basis: 100%; margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.orto-drill-head > .orto-progress { flex-basis: 100%; max-width: none; }
.orto-drill-head strong, .orto-drill-head small { color: var(--orto-muted); font-size: .87rem; }
.orto-drill-head .orto-progress { flex: 1; min-width: 100px; max-width: 360px; }
.orto-prompt { margin: 8px 0 24px; font-size: clamp(1.3rem, 3.5vw, 1.8rem); line-height: 1.5; font-weight: 800; letter-spacing: -.025em; }
.orto-sentence { margin: 18px 0 24px; padding: 18px 20px; border: 1px solid #e7dfbd; border-radius: 17px; background: var(--orto-yellow-soft); color: #3d543c; font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.9; }
.orto-gap { display: inline-block; min-width: 75px; padding: 0 9px; border-bottom: 2px solid #82926f; border-radius: 4px 4px 0 0; background: #fffef5; color: transparent; vertical-align: baseline; }
.orto-instruction { margin: 8px 0 18px; color: var(--orto-muted); font-size: .94rem; }
.orto-accent-keys { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.orto-accent-keys > .orto-secondary { min-width: 40px; min-height: 40px; padding: 7px 10px; border-color: #d8e2d1; border-radius: 10px; background: #f8fbf3; font-size: 1.05rem; }
.orto-hint { margin-top: 20px; padding: 13px 16px; border: 1px solid #dce8d4; border-radius: 14px; background: #f8fbf4; color: var(--orto-muted); }
.orto-hint > summary { color: var(--orto-ink); font-size: .95rem; font-weight: 800; cursor: pointer; }
.orto-hint > p { margin: 10px 0 0; font-size: .96rem; }
.orto-word { display: block; margin: 18px 0 24px; padding: 18px 14px; border-radius: 18px; background: var(--orto-yellow-soft); color: #214f3d; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.3; font-weight: 850; text-align: center; }
.orto-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.orto-option { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 66px; padding: 15px 18px; border: 2px solid #dce5d7; border-radius: 16px; background: #fcfdf9; color: var(--orto-ink); font-size: 1.15rem; font-weight: 750; text-align: left; }
.orto-option:hover:not(:disabled) { border-color: #8eb5a3; background: #f4f9ef; }
.orto-option > span:first-child { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e7eddf; font-size: .82rem; }
.orto-option.is-selected, .orto-option[aria-pressed="true"] { border-color: var(--orto-teal); background: var(--orto-teal-soft); }
.orto-option.is-correct, .orto-option[data-state="correct"] { border-color: #78b478; background: #edf8e9; color: var(--orto-correct); }
.orto-option.is-wrong, .orto-option.is-incorrect, .orto-option[data-state="incorrect"] { border-color: #d29a71; background: #fff3e8; color: var(--orto-review); }
.orto-option:disabled { opacity: 1; }
.orto-chip-bank { display: flex; align-items: center; align-content: flex-start; flex-wrap: wrap; gap: 10px; min-height: 90px; padding: 18px; margin: 20px 0; border: 1px solid #e2e6d6; border-radius: 19px; background: #fffaf0; }
.orto-chip-bank h2, .orto-chip-bank > p { flex-basis: 100%; margin: 0 0 3px; font-size: .95rem; }
.orto-chip-bank > p { color: var(--orto-muted); }
.orto-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 45px; padding: 10px 16px; border: 1.5px solid #cdddc5; border-radius: 12px; background: #fff; color: var(--orto-ink); box-shadow: 0 2px 0 rgb(49 75 36 / .08); font-size: 1.06rem; font-weight: 800; cursor: grab; user-select: none; }
.orto-chip:hover { border-color: var(--orto-teal); background: #f5fbf6; }
.orto-chip:active { cursor: grabbing; }
.orto-chip.is-selected, .orto-chip[aria-pressed="true"] { border-color: var(--orto-teal); background: var(--orto-teal-soft); outline: 3px solid #c1e8dd; outline-offset: 2px; }
.orto-chip.is-dragging { opacity: .45; }
.orto-chip.is-correct, .orto-chip[data-state="correct"] { border-color: #7db379; background: #edf8e9; color: var(--orto-correct); }
.orto-chip.is-wrong, .orto-chip.is-incorrect, .orto-chip[data-state="incorrect"] { border-color: #d69a6f; background: #fff2e4; color: var(--orto-review); }
.orto-receivers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.orto-receiver { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 190px; padding: 0; border: 2px solid #b9d5ba; border-radius: 21px; background: #f4faef; color: var(--orto-ink); text-align: left; transition: border-color .15s ease, background .15s ease; }
.orto-receiver:nth-child(even) { border-color: #a9d4ce; background: #eff9f7; }
.orto-receiver-head { display: grid; align-content: center; gap: 4px; min-height: 78px; padding: 18px 20px; border-bottom: 1px solid #dce8d5; }
.orto-receiver > button.orto-receiver-head { width: 100%; border: 0; border-bottom: 1px solid #dce8d5; border-radius: 19px 19px 0 0; background: transparent; color: inherit; font-size: 1.2rem; font-weight: 800; text-align: center; }
.orto-receiver > button.orto-receiver-head:hover:not(:disabled) { background: rgb(255 255 255 / .6); }
.orto-receiver > button.orto-receiver-head:disabled { opacity: 1; }
.orto-receiver-head strong, .orto-receiver-head h2 { margin: 0; font-size: 1.2rem; }
.orto-receiver-head small, .orto-receiver-head p { margin: 0; color: var(--orto-muted); font-size: .84rem; line-height: 1.5; }
.orto-receiver-words { display: flex; align-items: flex-start; align-content: flex-start; flex-wrap: wrap; gap: 8px; min-height: 94px; padding: 16px; }
.orto-receiver-words > p { align-self: center; margin: 10px auto; color: var(--orto-muted); font-size: .9rem; }
.orto-receiver:hover, .orto-receiver.is-over, .orto-receiver.is-drag-over, .orto-receiver[data-drag-over="true"] { border-color: var(--orto-teal); background: #e9f6eb; }
.orto-receiver.is-over, .orto-receiver.is-drag-over, .orto-receiver[data-drag-over="true"] { box-shadow: inset 0 0 0 2px var(--orto-teal); }
.orto-receiver .orto-chip { cursor: pointer; min-height: 41px; padding: 8px 12px; font-size: 1rem; }
.orto-dictation h1, .orto-dictation h2 { margin: 6px 0 12px; }
.orto-drill .orto-dictation { max-width: none; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.orto-dictation [data-orto-audio-status] { color: var(--orto-muted); font-size: .92rem; line-height: 1.5; }
.orto-dictation-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid #d4e7df; border-radius: 18px; background: var(--orto-teal-soft); }
.orto-dictation-controls > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.orto-dictation-controls small, .orto-dictation-controls p { margin: 0; color: var(--orto-muted); font-size: .9rem; }
.orto-dictation-controls .ui-icon { width: 22px; height: 22px; }
.orto-writing { display: grid; gap: 8px; font-size: 1rem; font-weight: 750; }
.orto-writing textarea, .orto-writing input, .orto-text-answer {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid #cbdcc5;
  border-radius: 15px;
  background: #fffefb;
  color: var(--orto-ink);
  font-size: 1.15rem;
  line-height: 1.8;
}
.orto-writing textarea { min-height: 210px; resize: vertical; background-image: linear-gradient(transparent calc(2.07rem - 1px), #edf1e6 calc(2.07rem - 1px), #edf1e6 2.07rem); background-size: 100% 2.07rem; background-position: 0 14px; }
.orto-writing input { min-height: 58px; }
.orto-writing textarea::placeholder, .orto-writing input::placeholder, .orto-text-answer::placeholder { color: #76867b; opacity: 1; }
.orto-writing small { color: var(--orto-muted); font-size: .88rem; font-weight: 400; }
.orto-feedback { margin: 20px 0 0; color: var(--orto-ink); line-height: 1.6; }
.orto-feedback:not(:empty) { padding: 16px 18px; border: 1px solid #d6e4cf; border-radius: 16px; background: #f3f9ee; }
.orto-feedback strong { display: block; font-size: 1.06rem; }
.orto-feedback p { margin: 4px 0 0; }
.orto-feedback .orto-correction { margin: 10px 0; padding: 10px 13px; border: 1px solid #efdac2; border-radius: 11px; background: #fffdfa; color: #5b4b35; font-size: 1.1rem; font-weight: 800; }
.orto-feedback ul { margin: 9px 0 0; padding-left: 22px; }
.orto-feedback.is-correct { border-color: #b9d8ac; background: #edf8e7; color: var(--orto-correct); }
.orto-feedback.is-review, .orto-feedback.is-wrong, .orto-feedback.is-incorrect { border-color: #e8c8a9; background: #fff6ea; color: var(--orto-review); }
.orto-feedback mark { padding: 1px 4px; border-radius: 4px; background: #f9dfa1; color: inherit; }
.orto-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.orto-actions.is-end { justify-content: flex-end; }
.orto-primary, .orto-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border: 1.5px solid transparent; border-radius: 13px; font-size: 1rem; font-weight: 800; text-align: center; text-decoration: none; }
.orto-action-arrow { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.orto-primary { background: var(--orto-teal); color: #fff; box-shadow: 0 3px 0 #105d58; }
.orto-primary:hover:not(:disabled) { background: #0f6964; }
.orto-primary:active:not(:disabled) { box-shadow: 0 1px 0 #105d58; transform: translateY(2px); }
.orto-secondary { background: #fff; border-color: #cbdcc5; color: var(--orto-ink); }
.orto-secondary:hover:not(:disabled) { background: var(--orto-leaf); border-color: #90b787; }
.orto-primary:disabled, .orto-secondary:disabled { opacity: .5; box-shadow: none; }
.orto-complete { max-width: 650px; text-align: center; background: linear-gradient(180deg, #fbfff5, #fff); }
.orto-complete h1, .orto-complete h2 { margin: 12px 0; }
.orto-complete > p { color: var(--orto-muted); }
.orto-complete .orto-actions { justify-content: center; }
.orto-complete-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; background: var(--orto-yellow-soft); font-size: 2.6rem; }
.orto-score { display: block; margin: 10px 0 18px; color: var(--orto-teal); font-size: clamp(2.8rem, 8vw, 4.2rem); line-height: 1.1; font-weight: 850; letter-spacing: -.05em; }
.orto-score > small { display: block; margin-top: 9px; color: var(--orto-muted); font-size: .98rem; font-weight: 650; letter-spacing: 0; }
.orto-checklist { display: grid; gap: 9px; margin: 22px 0; padding: 0; list-style: none; }
.orto-checklist li, .orto-checklist label { display: flex; align-items: start; gap: 10px; padding: 13px 15px; border: 1px solid var(--orto-edge); border-radius: 14px; background: #f8fbf4; text-align: left; font-size: .95rem; line-height: 1.5; }
.orto-checklist input { width: 21px; height: 21px; flex: none; margin: 1px 0 0; accent-color: var(--orto-teal); }
.orto-review-text { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--orto-edge); border-radius: 16px; background: #fbfdf7; font-size: 1.1rem; line-height: 1.9; }
.orto-review-text summary { cursor: pointer; font-size: 1rem; font-weight: 800; }
.orto-review-text[open] summary { margin-bottom: 12px; }
.orto-review-text p { margin: 0; }
.orto-status { min-height: 1.5em; color: var(--orto-muted); font-size: .88rem; line-height: 1.5; }
.orto-inline-input { max-width: 280px; min-height: 50px; padding: 10px 13px; border: 2px solid #cbdcc5; border-radius: 12px; background: #fff; color: var(--orto-ink); font-size: 1.15rem; }
.orto-inline-input.is-correct { border-color: #78b478; background: #edf8e9; }
.orto-inline-input.is-wrong { border-color: #d29a71; background: #fff3e8; }
.orto-empty { padding: 28px; border: 1px solid var(--orto-edge); border-radius: 22px; background: #fff; }
.orto-empty h1 { margin-bottom: 12px; }
.orto-empty p { color: var(--orto-muted); }
.orto-final-invite { max-width: none; margin-top: 32px; border-color: #e6d79f; background: linear-gradient(100deg, #fff8dc, #fbfdef); }
.orto-final-invite h2 { margin: 7px 0 9px; }
.orto-final-invite p { max-width: 70ch; margin: 0 0 18px; color: var(--orto-muted); }
.orto-course-count { margin: 18px auto 0; color: var(--orto-muted); font-size: .85rem; text-align: center; }
.orto-save { max-width: 850px; margin: 12px auto; padding: 13px 16px; border: 1px solid #e6d6ad; border-radius: 14px; background: #fff9e7; color: #69562f; font-size: .9rem; line-height: 1.5; }
.orto-page details > summary::marker { color: var(--orto-teal); }

@media (max-width: 940px) {
  .orto-unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orto-goals { grid-template-columns: 1fr; }
  .orto-goals li { padding: 13px 16px; }
}
@media (max-width: 660px) {
  .orto-page { padding-top: 4px; padding-bottom: 30px; }
  .orto-hero { grid-template-columns: minmax(0, 1fr) 90px; padding: 22px 20px; gap: 10px; border-radius: 22px; }
  .orto-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .orto-hero .orto-intro { font-size: .95rem; }
  .orto-hero-art { height: 120px; font-size: 4rem; }
  .orto-hero-art > span:not(.orto-unit-glyph) { padding: 5px 9px; bottom: -4px; font-size: .85rem; }
  .orto-unit-symbol > .ui-icon { width: 82px; height: 82px; padding: 14px; border-radius: 24px; }
  .orto-unit-symbol > .orto-unit-glyph { width: 82px; height: 82px; padding: 14px; border-radius: 24px; font-size: 2.8rem; }
  .orto-unit-symbol > span:not(.orto-unit-glyph) { font-size: .72rem; }
  .orto-section-head { margin-top: 24px; }
  .orto-unit-grid, .orto-block-grid { grid-template-columns: 1fr; gap: 12px; }
  .orto-unit-card { min-height: 0; padding: 20px; gap: 12px 15px; }
  .orto-unit-meta { margin-top: 2px; }
  .orto-step-nav { gap: 8px; margin: 18px 0; }
  .orto-step { flex-direction: column; align-items: start; justify-content: start; min-height: 124px; padding: 12px 10px; }
  .orto-step-copy small { font-size: .7rem; }
  .orto-section-links > .orto-secondary { flex-direction: column; min-height: 62px; padding: 10px 6px; gap: 5px; }
  .orto-sheet, .orto-drill, .orto-dictation, .orto-complete { margin: 14px auto; padding: 22px 18px; border-radius: 22px; }
  .orto-sheet-head { gap: 9px; }
  .orto-sheet-art { width: 68px; height: 84px; font-size: 2.7rem; }
  .orto-sheet-head h1 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .orto-rule-list > li { gap: 10px; padding: 14px 12px; }
  .orto-rule-list p { font-size: 1rem; }
  .orto-example { font-size: 1rem; padding: 4px 9px; }
  .orto-options { grid-template-columns: 1fr; gap: 10px; }
  .orto-option { min-height: 60px; }
  .orto-receivers { gap: 10px; }
  .orto-receiver { min-height: 180px; border-radius: 17px; }
  .orto-receiver-head { padding: 14px 12px; min-height: 74px; }
  .orto-receiver-head strong, .orto-receiver-head h2 { font-size: 1.05rem; }
  .orto-receiver > button.orto-receiver-head { font-size: 1.05rem; border-radius: 15px 15px 0 0; }
  .orto-receiver-words { padding: 11px; gap: 7px; }
  .orto-receiver .orto-chip { width: 100%; min-height: 40px; padding: 8px 5px; font-size: .94rem; }
  .orto-chip-bank { gap: 8px; padding: 14px; }
  .orto-chip { padding: 9px 12px; font-size: 1rem; }
  .orto-dictation-controls { padding: 12px; }
  .orto-actions > .orto-primary { flex-grow: 1; }
  .orto-complete .orto-actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 360px) {
  .orto-hero { grid-template-columns: 1fr; }
  .orto-hero-art { display: none; }
  .orto-step { padding: 9px; gap: 7px; }
  .orto-step-number { width: 26px; height: 26px; }
  .orto-receivers { grid-template-columns: 1fr; }
  .orto-receiver { min-height: 140px; }
  .orto-receiver .orto-chip { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .orto-page *, .orto-page *::before, .orto-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .orto-unit-card:hover, .orto-block-card:hover, .orto-primary:active:not(:disabled) { transform: none; }
}
