:root {
    color-scheme: dark;
    --font-sans: 'Aptos', 'Segoe UI', 'Source Sans 3', 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --navy-950: #07111f;
    --navy-900: #0b1d33;
    --navy-850: #102640;
    --navy-800: #16314f;
    --blue-500: #2f80ed;
    --sky-300: #8bd3ff;
    --ink: #edf6ff;
    --muted: #a7bbd2;
    --panel: rgba(255, 255, 255, 0.055);
    --panel-strong: rgba(255, 255, 255, 0.09);
    --line: rgba(190, 215, 245, 0.16);
    --font-math: 'STIX Two Math', 'Cambria Math', 'Noto Sans Math', 'Latin Modern Math', 'DejaVu Math TeX Gyre', 'Times New Roman', serif;
    --font-number: 'Aptos Display', 'Segoe UI Variable Display', 'Segoe UI', 'Inter', 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


* {
    box-sizing: border-box;
}

html {
    height: 100%;
    background: var(--navy-950);
}

body {
    height: 100vh;
    overflow: hidden;
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 54%, #0a1728 100%);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    display: flex;
    position: relative;
    width: 17rem;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.25rem;
    background: rgba(7, 17, 31, 0.94);
    border-right: 1px solid var(--line);
}

.sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--ink);
    padding: 0;
    position: relative;
    font-size: 0;
    line-height: 0;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    cursor: pointer;
}

.sidebar__toggle:hover {
    background: var(--panel-strong);
}

.sidebar__toggle::before,
.sidebar__toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    content: "";
}

.sidebar__toggle::before {
    width: 0.98rem;
    height: 0.14rem;
    background: currentColor;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.sidebar__toggle::after {
    width: 0.4rem;
    height: 0.4rem;
    border-top: 0.14rem solid currentColor;
    border-right: 0.14rem solid currentColor;
}

.sidebar__toggle[aria-expanded="true"]::after {
    transform: translate(-92%, -50%) rotate(-135deg);
}

.sidebar__toggle[aria-expanded="false"]::after {
    transform: translate(-8%, -50%) rotate(45deg);
}

.sidebar.is-collapsed {
    width: 4.9rem;
    gap: 1rem;
}

.sidebar.is-collapsed .sidebar__brand div,
.sidebar.is-collapsed .sidebar__filters,
.sidebar.is-collapsed .sidebar__nav {
    display: none;
}

.sidebar.is-collapsed .sidebar__brand {
    justify-content: center;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0;
}

.sidebar.is-collapsed .sidebar__toggle {
    margin-left: 0;
}


.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem;
}


.sidebar__mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    color: #061426;
    background: var(--sky-300);
    font-weight: 850;
}

.sidebar__brand p,
.sidebar__brand strong {
    margin: 0;
}

.sidebar__brand p {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
}

.sidebar__brand strong {
    display: block;
    font-size: 0.94rem;
    line-height: 1.15;
}

.sidebar__filters {
    display: grid;
    gap: 0.55rem;
}

.sidebar__filterbox {
    display: grid;
    gap: 0.42rem;
}

.sidebar__filterbox input,
.sidebar__filterbox select {
    width: 100%;
    min-height: 2.1rem;
    padding: 0 0.6rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    font: inherit;
    font-size: 0.86rem;
}

.sidebar__filterbox input::placeholder {
    color: rgba(237, 246, 255, 0.44);
}

.sidebar__filterbox option {
    color: var(--navy-950);
    background: #ffffff;
}

.sidebar__filterbox input:focus,
.sidebar__filterbox select:focus {
    border-color: var(--sky-300);
    outline: 3px solid rgba(139, 211, 255, 0.16);
}

.sidebar__filterbox input:disabled,
.sidebar__filterbox select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.sidebar__nav {
    display: grid;
    gap: 0.55rem;
}

.sidebar__entry {
    display: grid;
    gap: 0.45rem;
}

.sidebar__entry[hidden] {
    display: none;
}

.sidebar__item {
    display: grid;
    gap: 0.3rem;
    width: 100%;
    padding: 0.9rem 0.95rem;
    text-align: left;
    color: var(--ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.sidebar__item span {
    font-weight: 720;
}

.sidebar__item:hover,
.sidebar__item.is-active {
    background: var(--panel-strong);
    border-color: var(--line);
}

.sidebar__item small {
    color: var(--muted);
    font-size: 0.78rem;
}

.sidebar__badge {
    justify-self: start;
    padding: 0.18rem 0.5rem;
    color: #0c2238;
    background: linear-gradient(135deg, #8bd3ff 0%, #d9f1ff 100%);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 760;
}

.scorm-launch {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 0.25rem 1rem 0;
    text-align: center;
}

.scorm-launch__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    color: #061426;
    background: linear-gradient(135deg, #99dcff 0%, #8bd3ff 100%);
    border: 0;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0.7rem 1.5rem rgba(12, 44, 86, 0.28);
}

.scorm-launch__button:hover {
    filter: brightness(1.03);
}


.scorm-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.scorm-modal[hidden] {
    display: none;
}

.scorm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 16, 0.72);
    backdrop-filter: blur(0.35rem);
}

.scorm-modal__panel {
    position: relative;
    width: min(36rem, 100%);
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(12, 26, 44, 0.98) 0%, rgba(8, 18, 32, 0.98) 100%);
    border: 1px solid rgba(191, 218, 246, 0.2);
    border-radius: 1.1rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.scorm-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.scorm-modal__close:hover {
    background: var(--panel-strong);
}

.scorm-modal__eyebrow {
    margin: 0 0 0.3rem;
    color: var(--sky-300);
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scorm-modal h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 780;
}

.scorm-modal__text {
    margin: 0.55rem 0 1rem;
    color: var(--muted);
    line-height: 1.55;
}

.scorm-export {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.scorm-export__minimum {
    display: grid;
    gap: 0.4rem;
}

.scorm-export__minimum span {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.scorm-export__minimum input {
    width: 100%;
    min-height: 2.6rem;
    padding: 0 0.75rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 0.55rem;
}

.scorm-download {
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.65rem;
    padding: 0 0.9rem;
    color: #061426;
    background: var(--sky-300);
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 780;
    text-align: center;
    text-decoration: none;
}

.scorm-download:hover {
    filter: brightness(1.05);
}

.scorm-download.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.embed-code__label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.embed-code__package {
    margin-bottom: 0.8rem;
}

.embed-code__field {
    width: 100%;
    min-height: 6.5rem;
    margin-bottom: 0.8rem;
    padding: 0.7rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    resize: vertical;
}

.embed-code__url {
    width: 100%;
    min-height: 2.6rem;
    padding: 0 0.7rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 0.55rem;
}

.embed-code__status {
    margin: 0.4rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.embed-code__copy {
    border: 0;
    cursor: pointer;
}

.embed-code__copy:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.workspace {
    display: grid;
    grid-template-rows: 1fr;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.workspace__topbar {
    display: flex;
    align-items: center;
    min-height: 4.65rem;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.workspace__label,
.workspace__topbar h2 {
    margin: 0;
}

.workspace__label {
    color: var(--sky-300);
    font-size: 0.72rem;
    font-weight: 760;
    text-transform: uppercase;
}

.workspace__topbar h2 {
    margin-top: 0.15rem;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 760;
}

.workspace__stage {
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.75rem);
}

.task-frame {
    display: grid;
    grid-template-rows: max-content max-content minmax(0, 1fr) max-content;
    gap: .65rem;
    width: min(100%, 64rem);
    max-height: calc(100vh - 6.7rem);
    aspect-ratio: 4 / 3;
    padding: clamp(.65rem, 1.2vw, 1rem);
    color: #0c2238;
    background: #f6f9fd;
    border: 1px solid rgba(205, 220, 238, 0.95);
    border-radius: 1.15rem;
    box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.26);
}

.task-frame--geometry-point {
    grid-template-rows: max-content max-content minmax(0, 1fr);
}

.task-frame__header,
.task-frame__description,
.task-frame__exercise,
.task-frame__controls {
    border: 1px solid #e1e9f3;
    border-radius: 0.65rem;
    background: #ffffff;
}

.task-frame__header {
    padding: .65rem .85rem;
}

.task-frame h1 {
    margin: 0;
    color: #0b2138;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    font-weight: 780;
    line-height: 1.05;
}

.task-frame__description {
    padding: 0.8rem 1.15rem;
}


.task-frame__description--angle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.task-frame__description--angle .task-frame__answers {
    width: 8.5rem;
}

.task-frame__description p {
    margin: 0;
    color: #4b637c;
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.45;
}

.task-frame__description .task-frame__classification-equation {
    margin-top: 0.45rem;
    color: #0b2138;
    font-family: var(--font-number);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 760;
    line-height: 1.2;
}

.task-frame__exercise {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: 0;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: linear-gradient(135deg, #f4f9ff 0%, #edf5ff 100%);
}

.task-frame__exercise--comparison {
    grid-template-columns: 1fr;
    justify-items: center;
}

.task-frame__exercise--length {
    grid-template-columns: 1fr;
    justify-items: center;
}

.task-frame__exercise--visual {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: clamp(0.55rem, 1.5vw, 1rem);
    padding: clamp(0.8rem, 2vw, 1.5rem);
}

.task-frame__exercise--visual .task-frame__prompt {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.task-frame__exercise--visual .task-frame__prompt--fraction-identification {
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
}

.visual-board {
    width: min(100%, 50rem);
    margin-inline: auto;
}

.visual-board svg {
    display: block;
    width: 100%;
    max-height: min(28vh, 18rem);
    margin-inline: auto;
}

.visual-board__number {
    fill: #34516e;
    font: 600 17px var(--font-number);
}

.visual-board__arrow-label {
    font: 700 21px var(--font-number);
    paint-order: stroke;
    stroke: #f4f9ff;
    stroke-width: 4px;
}

.task-frame__exercise--visual .task-frame__answers {
    width: min(100%, 18rem);
}

.task-frame__exercise--visual .fraction-answer {
    height: min(var(--answer-height), 7.5rem);
}

.task-frame__exercise--geometry {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    grid-template-areas:
        "prompt prompt"
        "board answers"
        "feedback feedback";
    align-items: stretch;
}

.task-frame__prompt {
    margin: 0;
    font-family: var(--font-number);
    font-variant-numeric: lining-nums tabular-nums;
    color: #0b2138;
    font-size: clamp(2.55rem, 6.4vw, 5.15rem);
    font-weight: 760;
    line-height: 0.95;
    text-align: center;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}


.task-frame__prompt--fractions {
    font-size: clamp(1.9rem, 4.6vw, 3.75rem);
}

.task-frame__prompt--compact {
    font-size: clamp(1.75rem, 4vw, 3.35rem);
    line-height: 1.08;
    overflow: visible;
    white-space: normal;
    word-break: normal;
}

.task-frame__prompt--units {
    font-size: clamp(2rem, 5vw, 4.15rem);
    line-height: 1.05;
    overflow: visible;
    white-space: normal;
}


.task-frame__prompt--area {
    font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
}

.task-frame__exercise--geometry-area {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.3fr);
    grid-template-areas: "prompt prompt" "board answers" "feedback feedback";
    justify-items: center;
    gap: 0.5rem;
    padding: clamp(0.7rem, 1.5vw, 1rem);
}

.task-frame__exercise--geometry-area .task-frame__prompt {
    grid-area: prompt;
}


.task-frame__exercise--geometry-area .geometry-board {
    position: relative;
    grid-area: board;
    width: 100%;
    min-height: min(34vh, 17rem);
    overflow-x: auto;
}

.task-frame__exercise--geometry-area .geometry-board__sheet {
    height: min(34vh, 17rem);
    min-height: 16.5rem;
    min-width: calc(var(--geometry-grid-size) * 15);
}

.task-frame__exercise--geometry-area .geometry-board__static,
.task-frame__exercise--geometry-area .geometry-board__canvas {
    display: none;
}

.task-frame__exercise--geometry-area .task-frame__answers {
    grid-area: answers;
    width: min(100%, 15rem);
}

.task-frame__exercise--geometry-area .task-frame__feedback {
    grid-area: feedback;
}

.task-frame__prompt--geometry {
    grid-area: prompt;
    align-self: start;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
}

.geometry-chrome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0 0.2rem;
}

.geometry-statement {
    margin: 0;
    color: #0b2138;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.2rem;
}

.geometry-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.geometry-tool {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: #0b2138;
    background: #ffffff;
    border: 1px solid #bfd0e3;
    border-radius: 0.8rem;
    box-shadow: 0 0.35rem 0.85rem rgba(11, 33, 56, 0.08);
    cursor: pointer;
}

.geometry-tool svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.geometry-tool.is-active {
    color: #ffffff;
    background: var(--blue-500);
    border-color: var(--blue-500);
}

.geometry-tool:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.geometry-scale-control {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 8;
}

.geometry-scale-control .geometry-tool--scale {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: .55rem;
}

.geometry-scale-control .geometry-tool--scale svg {
    width: 1.3rem;
    height: 1.3rem;
}

.geometry-scale {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0;
    z-index: 5;
    width: min(28rem, calc(100vw - 3rem));
    padding: 0.85rem;
    color: #0b2138;
    background: #ffffff;
    border: 1px solid #bfd0e3;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem rgba(11, 33, 56, 0.18);
}

.geometry-scale.is-hidden {
    display: none;
}

.geometry-scale p {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    line-height: 1.35;
}

.geometry-scale__reference {
    width: 100%;
    overflow-x: auto;
    padding: 0.2rem 0 0.5rem;
}

.geometry-scale__reference span {
    display: block;
    width: 260px;
    height: 0.9rem;
    border-left: 2px solid #0b2138;
    border-right: 2px solid #0b2138;
    border-bottom: 2px solid #0b2138;
}

.geometry-scale__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.geometry-scale__controls button {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    border: 1px solid #bfd0e3;
    border-radius: 0.5rem;
    color: #0b2138;
    background: #f4f9ff;
    font-size: 1.3rem;
    cursor: pointer;
}

.geometry-board {
    grid-area: board;
    display: block;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.geometry-board__sheet {
    --geometry-grid-size: 26px;
    position: relative;
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid #bfd0e3;
    border-radius: 0.9rem;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, rgba(116, 157, 206, 0.32) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(116, 157, 206, 0.32) 1px, transparent 1px);
    background-size: var(--geometry-grid-size) var(--geometry-grid-size);
    background-position: 0 0, 0 var(--geometry-origin-y, 0px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.geometry-board__static {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.task-frame--geometry-point .geometry-board__static {
    display: none;
}

.geometry-board__axis {
    position: absolute;
    background: #33475c;
}

.geometry-board__axis--x {
    left: var(--geometry-grid-size);
    right: 0;
    top: calc(100% - var(--geometry-grid-size));
    height: 0.22rem;
    transform: translateY(-50%);
}

.geometry-board__axis--y {
    top: 0;
    bottom: var(--geometry-grid-size);
    left: var(--geometry-grid-size);
    width: 0.22rem;
    transform: translateX(-50%);
}

.geometry-board__axis--x-arrow,
.geometry-board__axis--y-arrow {
    width: 0;
    height: 0;
    background: transparent;
}

.geometry-board__axis--x-arrow {
    left: calc(100% - var(--geometry-grid-size));
    top: calc(100% - var(--geometry-grid-size));
    border-top: 0.42rem solid transparent;
    border-bottom: 0.42rem solid transparent;
    border-left: 0.72rem solid #33475c;
    transform: translate(0.1rem, -50%);
}

.geometry-board__axis--y-arrow {
    left: var(--geometry-grid-size);
    top: 0;
    border-left: 0.42rem solid transparent;
    border-right: 0.42rem solid transparent;
    border-bottom: 0.72rem solid #33475c;
    transform: translate(-50%, -0.1rem);
}

.geometry-board__axis-label {
    position: absolute;
    color: #0b2138;
    font-family: var(--font-number);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1;
    z-index: 3;
}

.geometry-board__axis-label--x {
    right: 0.45rem;
    bottom: 0.35rem;
}

.geometry-board__axis-label--y {
    left: 0.35rem;
    top: 0.2rem;
}

.geometry-board__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.geometry-board__grid,
.geometry-board__axes {
    display: none;
}

.geometry-board__guide {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    pointer-events: none;
}

.geometry-board__grid {
    --geometry-grid-size: 1.5rem;
    --geometry-grid-offset-x: 0px;
    --geometry-grid-offset-y: 0px;
    --geometry-origin-x: 0px;
    --geometry-origin-y: 0px;
    --geometry-x-end: 0px;
    --geometry-y-end: 0px;
    --geometry-axis-stroke: 0.2rem;
    --geometry-axis-arrow: 0.85rem;
    --geometry-axis-label-gap: 0.4rem;
    background:
        linear-gradient(to right, rgba(116, 157, 206, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(116, 157, 206, 0.2) 1px, transparent 1px),
        #ffffff;
    background-size: var(--geometry-grid-size) var(--geometry-grid-size), var(--geometry-grid-size) var(--geometry-grid-size), auto;
    background-position: var(--geometry-grid-offset-x) var(--geometry-grid-offset-y), var(--geometry-grid-offset-x) var(--geometry-grid-offset-y), 0 0;
}

.geometry-board__axes {
    pointer-events: none;
    color: #33475c;
}

.geometry-board__axis,
.geometry-board__axis--x-arrow,
.geometry-board__axis--y-arrow {
    position: absolute;
    display: block;
    z-index: 2;
}

.geometry-board__axis-label {
    position: absolute;
    color: #0b2138;
    font-family: var(--font-number);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1;
}

.geometry-board__axis-label--x {
    left: calc(var(--geometry-x-end) - 0.55rem);
    top: calc(var(--geometry-origin-y) + var(--geometry-axis-label-gap));
}

.geometry-board__axis-label--y {
    left: calc(var(--geometry-origin-x) + var(--geometry-axis-label-gap));
    top: calc(var(--geometry-y-end) + 0.15rem);
}

.geometry-board__guide {
    pointer-events: none;
}

.geometry-board__canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

.length-expression {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1vw, 0.75rem);
    flex-wrap: wrap;
    max-width: 100%;
}

.length-expression__value,
.length-expression__unit,
.length-expression__equals {
    display: inline-grid;
    place-items: center;
}

.length-expression__value,
.length-expression__unit {
    min-width: 0.8em;
}

.length-expression__unit {
    min-width: 1.35em;
}


.length-expression__equals {
    min-width: 0.8em;
}

.length-input {
    width: clamp(4rem, 8vw, 6rem);
    height: clamp(2.2rem, 5vw, 3.9rem);
    min-height: 0;
    padding: 0.15rem 0.55rem;
    color: #0b2138;
    background: #ffffff;
    border: 0.045em solid #bfd0e3;
    border-radius: 0.22em;
    font: inherit;
    font-family: var(--font-number);
    font-size: clamp(1.45rem, 3.4vw, 2.75rem);
    font-weight: 760;
    line-height: 1;
    text-align: center;
    text-transform: lowercase;
    box-sizing: border-box;
}

.length-input:focus {
    border-color: var(--blue-500);
    outline: 0.08em solid rgba(47, 128, 237, 0.2);
}

.length-input::placeholder {
    color: rgba(11, 33, 56, 0.38);
}

.length-guide {
    margin-top: 0.7rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d7e3f1;
    border-radius: 0.85rem;
    background: #f8fbff;
}

.length-guide__title {
    margin: 0 0 0.45rem;
    color: #0b2138;
    font-size: 0.95rem;
    font-weight: 700;
}

.length-guide__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.length-guide__table th,
.length-guide__table td {
    padding: 0.22rem 0.1rem;
    text-align: left;
    border-bottom: 1px solid #e2ebf5;
}

.length-guide__table th:last-child,
.length-guide__table td:last-child {
    text-align: right;
}

.length-guide__table tbody tr:last-child td {
    border-bottom: 0;
}

.length-guide__note {
    margin: 0.5rem 0 0;
    color: #4b637c;
    font-size: 0.88rem;
    line-height: 1.4;
}

.fraction-expression {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.38rem, 1vw, 0.8rem);
    min-width: max-content;
}

.fraction-expression--comparison {
    display: inline-grid;
    grid-template-columns: max-content 1.2em max-content;
    align-items: center;
    justify-items: center;
    column-gap: clamp(0.42rem, 1vw, 0.75rem);
}

.fraction-expression__operator {
    display: inline-grid;
    place-items: center;
    min-width: 0.8em;
    font-family: var(--font-math);
    line-height: 1;
}

.fraction-expression__operator--comparison {
    width: 100%;
    min-width: 0;
    font-family: var(--font-number);
    font-size: 0.82em;
    text-align: center;
    line-height: 1;
}

.comparison-input {
    width: 1.15em;
    height: 1.15em;
    padding: 0;
    color: #0b2138;
    background: #ffffff;
    border: 0.045em solid #bfd0e3;
    border-radius: 0.16em;
    font: inherit;
    font-size: 0.9em;
    font-weight: 760;
    line-height: 1;
    text-align: center;
}

.comparison-input:focus {
    border-color: var(--blue-500);
    outline: 0.08em solid rgba(47, 128, 237, 0.2);
}

.comparison-input::placeholder {
    color: rgba(11, 33, 56, 0.38);
}

.math-fraction {
    display: inline-grid;
    grid-template-rows: auto auto;
    align-items: center;
    min-width: 1.15em;
    font-family: var(--font-number);
    font-variant-numeric: lining-nums tabular-nums;
    font-weight: 760;
    line-height: 1;
}

.math-fraction__num,
.math-fraction__den {
    display: block;
    padding: 0 0.15em;
    text-align: center;
}

.math-fraction__num {
    padding-bottom: 0.12em;
    border-bottom: 0.075em solid currentColor;
}

.math-fraction__den {
    padding-top: 0.12em;
}

.task-frame__answers {
    display: grid;
    width: 100%;
}

.task-frame__exercise--geometry .task-frame__answers {
    grid-area: answers;
    align-self: center;
}

.task-frame__exercise--geometry .task-frame__feedback {
    grid-area: feedback;
}

.task-frame__exercise--geometry-point {
    position: relative;
    display: grid;
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
    overflow: hidden;
    padding: 0;
    min-height: 0;
    background: linear-gradient(180deg, #f5f8fc 0%, #eef4fa 100%);
}

.task-frame__exercise--geometry-point .task-frame__description,
.task-frame__exercise--geometry-point .task-frame__answers,
.task-frame__exercise--geometry-point .task-frame__feedback,
.task-frame__exercise--geometry-point .task-frame__prompt {
    display: none;
}

.task-frame--geometry-point .geometry-chrome {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "content tools";
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.6rem;
    color: #0b2138;
    background: #ffffff;
    border: 1px solid #e1e9f3;
    border-radius: 0.65rem;
}

.task-frame--geometry-point .geometry-statement {
    grid-area: content;
    min-width: 0;
    min-height: 0;
    margin: 0;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.task-frame--geometry-point .geometry-tools {
    grid-area: tools;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.3rem;
}

.task-frame--geometry-point .geometry-tool {
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    border-radius: 0.55rem;
}

.task-frame--geometry-point .geometry-tool svg {
    width: 1rem;
    height: 1rem;
}

.task-frame--geometry-point .geometry-tool--view {
    font-size: 1.2rem;
    font-weight: 700;
}

.task-frame--geometry-point .geometry-chrome > .task-frame__feedback {
    grid-area: content;
    justify-self: start;
    max-width: none;
    min-height: 0;
    margin: 0;
    font-size: 0.82rem;
    text-align: left;
}

.task-frame--geometry-point .geometry-chrome > .task-frame__feedback:empty {
    display: none;
}

.task-frame--geometry-point .geometry-tools [data-check-answer],
.task-frame--geometry-point .geometry-tools [data-next-task] {
    display: grid;
    place-items: center;
    width: 2.3rem;
    min-width: 2.3rem;
    height: 2.3rem;
    min-height: 2.3rem;
    padding: 0;
    border-radius: 0.55rem;
    font-size: 0;
}

.task-frame--geometry-point .geometry-tools [data-check-answer]::before {
    content: "✓";
    font-size: 1.2rem;
}

.task-frame--geometry-point .geometry-tools [data-next-task]::before {
    content: "↻";
    font-size: 1.35rem;
}

.task-frame--geometry-point .geometry-tools .button:disabled {
    display: none;
}

.task-frame__exercise--geometry-point .geometry-board {
    position: relative;
    grid-area: auto;
    inset: auto;
    display: block;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.task-frame__exercise--geometry-point .geometry-board__sheet {
    position: relative;
    width: 100%;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0.95rem;
    box-shadow: none;
}


.answer-entry {
    --answer-height: clamp(5.2rem, 10vw, 7.6rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
}

.task-frame__answer {
    display: grid;
    width: 100%;
    color: #405b76;
    font-size: 0.9rem;
    font-weight: 720;
}


.answer-entry--single {
    grid-template-columns: minmax(0, 1fr);
}

.task-frame__answer--with-unit {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.18rem;
}

.task-frame__answer--with-coordinate {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.task-frame__answer-coordinate {
    color: #0b2138;
    font-family: var(--font-number);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    white-space: nowrap;
}

.task-frame__answer-coordinate sub {
    font-size: 0.55em;
}

.task-frame__answer-unit {
    align-self: start;
    padding-top: 0.1rem;
    color: #0b2138;
    font-family: var(--font-number);
    font-size: 1.25rem;
    font-weight: 760;
    line-height: 1;
}

.task-frame__description--angle .task-frame__answer input {
    height: 3.25rem;
    padding: 0.2rem 0.4rem;
    font-size: 2rem;
}

.task-frame__exercise--angle {
    padding: clamp(0.55rem, 1vw, 0.85rem);
}

.task-frame__exercise--angle .visual-board {
    width: min(100%, 44rem);
}

.task-frame__exercise--angle .visual-board svg {
    max-height: min(48vh, 23rem);
}

.task-frame__answer input {
    width: 100%;
    height: var(--answer-height);
    min-height: 0;
    font-family: var(--font-number);
    font-variant-numeric: lining-nums tabular-nums;
    padding: 0.35rem 0.8rem;
    color: #0b2138;
    background: #fff;
    border: 1px solid #bfd0e3;
    border-radius: 0.65rem;
    font-size: clamp(3.25rem, 8vw, 6.4rem);
    font-weight: 760;
    line-height: 0.95;
    text-align: center;
    box-sizing: border-box;
}


.task-frame__answer input::-webkit-outer-spin-button,
.task-frame__answer input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.task-frame__answer input[type='number'] {
    appearance: textfield;
}

.task-frame__answer input:focus {
    border-color: var(--blue-500);
    outline: 3px solid rgba(47, 128, 237, 0.18);
}



.answer-type {
    align-self: stretch;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 0.35rem;
    min-width: 5.6rem;
}

.answer-type button {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0 0.55rem;
    color: #12304d;
    background: #e4effb;
    border: 1px solid #bfd0e3;
    border-radius: 0.5rem;
    font-weight: 760;
    cursor: pointer;
}

.answer-type button.is-active {
    color: #fff;
    background: var(--blue-500);
    border-color: var(--blue-500);
}

.answer-type button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.is-hidden {
    display: none !important;
}

.fraction-answer {
    display: grid;
    justify-items: center;
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: var(--answer-height);
    min-height: 0;
    margin-inline: auto;
    font-family: var(--font-math);
    color: #0b2138;
    overflow: hidden;
}

.fraction-answer input {
    width: min(100%, 8rem);
    height: 100%;
    min-height: 0;
    padding: 0.15rem 0.65rem;
    color: #0b2138;
    background: #fff;
    border: 1px solid #bfd0e3;
    border-radius: 0.65rem;
    font-family: var(--font-number);
    font-variant-numeric: lining-nums tabular-nums;
    font-size: clamp(1.85rem, 4.1vw, 3.25rem);
    font-weight: 760;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}

.fraction-answer input:focus {
    border-color: var(--blue-500);
    outline: 3px solid rgba(47, 128, 237, 0.18);
}

.fraction-answer__line {
    width: min(100%, 8rem);
    height: clamp(0.18rem, 0.35vw, 0.28rem);
    margin-block: clamp(0.16rem, 0.4vw, 0.3rem);
    border-radius: 999px;
    background: #0b2138;
}

.task-frame__feedback {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(100%, 42rem);
    min-height: 1.45rem;
    margin: 0.15rem 0 0;
    color: #405b76;
    font-size: 0.95rem;
    font-weight: 760;
    line-height: 1.35;
    text-align: center;
}

.task-frame__feedback.is-correct {
    color: #147a45;
}

.task-frame__feedback.is-wrong {
    color: #b42318;
}

.task-frame__controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.8rem;
}


.button {
    min-height: 2.65rem;
    padding: 0 1.05rem;
    border: 0;
    border-radius: 0.55rem;
    font-weight: 760;
    cursor: pointer;
}

.button--primary {
    color: #fff;
    background: var(--blue-500);
}

.button--secondary {
    color: #12304d;
    background: #e4effb;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: 42vh;
        overflow-y: auto;
        gap: 0.85rem;
        padding: 0.85rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar.is-collapsed {
        width: 100%;
    }

    .sidebar.is-collapsed .sidebar__brand div,
    .sidebar.is-collapsed .sidebar__filters,
    .sidebar.is-collapsed .sidebar__nav {
        display: none;
    }

    .sidebar__filters {
        grid-template-columns: 1fr;
    }

    .sidebar__nav {
        grid-auto-flow: column;
        grid-auto-columns: minmax(12rem, 1fr);
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .workspace__topbar {
        min-height: 4rem;
        padding: 0.85rem 1rem;
    }

    .workspace__stage {
        padding: 0.85rem;
        overflow: hidden;
        place-items: start center;
    }

    .task-frame {
        width: min(100%, 62rem);
        max-height: none;
        aspect-ratio: 4 / 3;
        border-radius: 0.95rem;
    }
}

@media (max-width: 720px) {
    .task-frame--geometry-point .geometry-chrome {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "content"
            "tools";
    }

    .task-frame--geometry-point .geometry-tools {
        justify-self: start;
    }
    .task-frame {
        aspect-ratio: auto;
        min-height: 34rem;
    }

    .task-frame__exercise,
    .task-frame__exercise--geometry {
        grid-template-columns: 1fr;
    }

    .task-frame__exercise--geometry {
        grid-template-areas:
            "prompt"
            "board"
            "answers"
            "feedback";
    }

    .task-frame__exercise--geometry-area {
        grid-template-areas: "prompt" "board" "answers" "feedback";
    }

    .task-frame__exercise--geometry-point {
        grid-template-areas: none;
        grid-template-rows: minmax(0, 1fr);
    }

    .geometry-board__sheet {
        min-height: 18rem;
    }

    .answer-entry {
        grid-template-columns: 1fr;
    }

    .answer-type {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        min-height: 2.8rem;
    }

    .task-frame__feedback {
        grid-column: auto;
        margin-top: -0.35rem;
        text-align: center;
    }

    .task-frame__controls {
        flex-wrap: wrap;
    }

    .button {
        flex: 1 1 10rem;
    }
}

.task-frame__score {
    margin: 0.4rem 0 0;
    color: #4b637c;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 720;
}

.task-frame__scorm-progress {
    margin: .35rem 0 0;
    color: #385d79;
    font-size: .85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.button:disabled,
.sidebar__item[hidden] {
    display: none;
}

.sidebar__item:disabled,
.task-frame input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.sidebar__item.is-locked:hover {
    background: transparent;
    border-color: transparent;
}

/* Parabel-Erkundung: kompakte Angabe und größtmögliche Zeichenfläche. */
.task-frame--parabola {
    grid-template-rows: max-content max-content minmax(0, 1fr);
}
.task-frame__description--parabola { display: grid; gap: .4rem; padding: .45rem .8rem; }
.task-frame__description--parabola p { font-size: .9rem; }
.parabola-controls__equation { color: #174f9b; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.parabola-controls {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    color: #12304d;
}
.parabola-controls.is-hidden { display: none; }
.parabola-controls label { white-space: nowrap; font-size: .9rem; font-weight: 700; }
.parabola-controls__middle { display: flex; flex: 1 0 8.5rem; align-items: center; gap: .35rem; min-width: 8.5rem; }
.parabola-controls output { color: #174f9b; font-variant-numeric: tabular-nums; }
.parabola-controls__range { display: flex; flex: 1; align-items: center; gap: .25rem; min-width: 0; }
.parabola-controls__range span { color: #4b637c; font-size: .78rem; }
.parabola-controls__range input { flex: 1; min-width: 0; margin: 0; accent-color: #2f80ed; }
.parabola-controls__toggles { display: flex; flex: 0 0 auto; align-items: center; gap: .65rem; }
.parabola-controls__toggle { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; }
.parabola-controls__toggle input { width: 1rem; height: 1rem; margin: 0; accent-color: #2f80ed; }
.task-frame__exercise--parabola { position: relative; display: block; padding: 0; overflow: hidden; }
.task-frame__exercise--parabola .task-frame__feedback { display: none; }
.task-frame__exercise--parabola .geometry-board,
.task-frame__exercise--parabola .geometry-board__sheet { width: 100%; height: 100%; min-height: 0; }
.task-frame__exercise--parabola .geometry-board__sheet { border: 0; border-radius: .65rem; }
.task-frame__exercise--parabola .geometry-board__guide,
.task-frame__exercise--parabola .geometry-board__static,
.task-frame__exercise--parabola .geometry-board__canvas { display: none; }
.parabola-explorer { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.parabola-explorer.is-hidden { display: none; }
.parabola-explorer svg { display: block; width: 100%; height: 100%; background: #fff; cursor: grab; touch-action: none; user-select: none; }
.parabola-explorer svg.is-dragging { cursor: grabbing; }
.parabola-explorer svg:focus-visible { outline: 3px solid #2f80ed; outline-offset: -3px; }
.parabola-explorer__grid { stroke: rgba(116, 157, 206, .32); stroke-width: 1; }
.parabola-explorer__axis { stroke: #33475c; stroke-width: 2.5; }
.parabola-explorer__tick { fill: #33475c; font: 600 15px var(--font-number); }
.parabola-explorer__normal { fill: none; stroke: #8595a6; stroke-width: 3.5; stroke-dasharray: 10 7; }
.parabola-explorer__current { fill: none; stroke: #2f80ed; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.parabola-explorer__vertex { pointer-events: none; }
.parabola-explorer__vertex circle { fill: #174f9b; stroke: #fff; stroke-width: 2.5; }
.parabola-explorer__vertex text { fill: #0b2138; stroke: #fff; stroke-width: 4; paint-order: stroke fill; font: 700 17px var(--font-number); }
@media (max-width: 720px) {
    .workspace__stage:has(.task-frame--parabola) { overflow: auto; }
}

@media (pointer: coarse) {
    .task-frame--parabola .parabola-controls__range input { height: 2.75rem; }
    .task-frame--parabola .parabola-controls__toggle { min-height: 2.75rem; }
    .task-frame--parabola .parabola-controls__toggle input { width: 1.35rem; height: 1.35rem; }
}

.task-frame__exercise--parabola-classification {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vh, 2.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(14px, 2vw, 24px);
    scrollbar-width: thin;
}
.task-frame__exercise--parabola-classification::-webkit-scrollbar { width: 6px; }
.task-frame__exercise--parabola-classification::-webkit-scrollbar-thumb { border-radius: 6px; background: #b8cbe0; }
.task-frame__exercise--parabola-classification .task-frame__answers {
    width: min(100%, 760px);
    flex: 1 0 auto;
}
.task-frame__exercise--parabola-classification .task-frame__feedback:empty { display: none; }
.parabola-classification { display: flex; flex-direction: column; justify-content: space-evenly; gap: clamp(1.25rem, 3vh, 2.25rem); width: 100%; }
.parabola-classification.is-hidden { display: none; }
.parabola-classification__group { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.parabola-classification__group legend { padding: 0 0 8px; color: #0b2138; font-size: 18px; font-weight: 720; }
.parabola-classification__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.parabola-classification__options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.parabola-classification__options label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid #bfd0e3;
    border-radius: 10px;
    color: #12304d;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 650;
}
.parabola-classification__options label:has(input:checked) { border-color: #2f80ed; background: #e8f2ff; box-shadow: inset 0 0 0 1px #2f80ed; }
.parabola-classification__group[data-result="correct"] label:has(input:checked),
.parabola-classification__options label.is-solution { border-color: #168451; background: #e9f8ef; box-shadow: inset 0 0 0 1px #168451; }
.parabola-classification__group[data-result="incorrect"] label:has(input:checked) { border-color: #b42318; background: #fff0ef; box-shadow: inset 0 0 0 1px #b42318; }
.parabola-classification__options label:focus-within { outline: 2px solid #2f80ed; outline-offset: 2px; }
.parabola-classification__options input {
    appearance: none;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 0;
    border: 2px solid #8197af;
    border-radius: 50%;
    background: #fff;
}
.parabola-classification__options input:checked { border-color: #2f80ed; background: #2f80ed; box-shadow: inset 0 0 0 4px #fff; }
.parabola-classification__group[data-result="correct"] input:checked { border-color: #168451; background: #168451; }
.parabola-classification__group[data-result="incorrect"] input:checked { border-color: #b42318; background: #b42318; }
@media (max-width: 650px) {
    .parabola-classification__options, .parabola-classification__options--two { grid-template-columns: 1fr; }
}


.task-frame__exercise--parabola-question {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: clamp(.8rem, 2vw, 1.4rem);
    background: #fff;
}
.task-frame__prompt--parabola-question {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.25;
    white-space: pre-line;
    overflow: visible;
}
.task-frame__exercise--parabola-question .task-frame__answers {
    width: min(100%, 30rem);
}
.task-frame__exercise--parabola-question .answer-entry {
    --answer-height: clamp(4rem, 8vw, 5.5rem);
}
.task-frame__exercise--parabola-question .task-frame__answer input {
    font-size: clamp(2rem, 4vw, 3.25rem);
}
.parabola-point-check {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}
.parabola-point-check legend {
    padding: 0 0 .55rem;
    color: #12304d;
    font-weight: 700;
}
.parabola-point-check__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}
.parabola-point-check__options label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3.4rem;
    padding: .5rem;
    border: 1px solid #bfd0e3;
    border-radius: .65rem;
    background: #fff;
    color: #12304d;
    font-weight: 700;
    cursor: pointer;
}
.parabola-point-check__options label:has(input:checked) {
    border-color: #2f80ed;
    background: #e8f2ff;
    box-shadow: inset 0 0 0 1px #2f80ed;
}
.parabola-point-check__options label:focus-within { outline: 2px solid #2f80ed; outline-offset: 2px; }
.parabola-point-check__options input { accent-color: #2f80ed; }

.task-frame--parabola-drawing {
    grid-template-rows: max-content max-content minmax(0, 1fr);
}
.task-frame--parabola-drawing-revealed {
    grid-template-rows: max-content max-content minmax(0, 1fr);
}
.task-frame--parabola-drawing-revealed .task-frame__description {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: .25rem;
    padding: .35rem .6rem;
}
.task-frame--parabola-drawing-revealed .parabola-drawing__rating,
.task-frame--parabola-drawing-revealed .task-frame__controls { width: 100%; }
.task-frame--parabola-drawing-revealed .task-frame__controls {
    justify-content: center;
    padding: 0;
    border: 0;
}
.task-frame--parabola-drawing-revealed .task-frame__feedback { margin: 0; }
.task-frame--parabola-drawing-revealed .task-frame__feedback:empty { display: none; }
.task-frame--parabola-drawing-revealed .task-frame__exercise--parabola-drawing { padding: .2rem; }
.task-frame--parabola-drawing-revealed .task-frame__description > [data-app-description],
.task-frame--parabola-drawing-revealed .task-frame__prompt {
    display: none;
}
.task-frame__exercise--parabola-drawing {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 2rem);
    background: #fff;
}
.task-frame--parabola-drawing .task-frame__description {
    padding: .55rem .8rem;
}
.task-frame--parabola-drawing .task-frame__description > [data-app-description] {
    margin: 0;
    color: #4b637c;
    font-size: clamp(.88rem, 1.2vw, 1rem);
    line-height: 1.35;
    text-align: left;
}
.task-frame__exercise--parabola-drawing .task-frame__prompt {
    margin: auto 0;
    width: 100%;
    font-size: clamp(1.45rem, 3.5vw, 3rem);
    line-height: 1.2;
    white-space: normal;
    overflow-x: visible;
    overflow-wrap: anywhere;
}
.task-frame__exercise--parabola-drawing .task-frame__controls {
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}
.task-frame__exercise--parabola-drawing .task-frame__feedback { margin: 0; text-align: center; }
.task-frame__exercise--parabola-drawing .task-frame__feedback:empty { display: none; }
.task-frame__exercise--parabola-drawing .geometry-board {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
}
.task-frame__exercise--parabola-drawing .geometry-board__sheet {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: .45rem;
    background: #fff;
    background-image: none;
}
.task-frame__exercise--parabola-drawing .geometry-board__guide,
.task-frame__exercise--parabola-drawing .geometry-board__static,
.task-frame__exercise--parabola-drawing .geometry-board__canvas { display: none; }
.parabola-drawing__graph { display: block; width: 100%; height: 100%; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.parabola-drawing__graph.is-dragging { cursor: grabbing; }
.parabola-drawing__graph:focus-visible { outline: 3px solid #2f80ed; outline-offset: -3px; }
.parabola-drawing__rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #0b2138;
}
.parabola-drawing__rating p {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    text-align: left;
    font-size: clamp(.8rem, 1.2vw, .95rem);
    font-weight: 650;
    line-height: 1.25;
}
.parabola-drawing__rating .button {
    display: grid;
    place-items: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
}
.parabola-drawing__rating .button svg { width: 1.3rem; height: 1.3rem; }
.parabola-drawing__rating [data-parabola-self-check="correct"] { background: #168451; }
.parabola-drawing__rating [data-parabola-self-check="wrong"] { color: #b42318; background: #fff0ef; border: 1px solid #f2b9b5; }

.parabola-drawing__major { stroke: rgba(94, 139, 190, .48); stroke-width: 1.35; }
.parabola-drawing__curve { fill: none; stroke: #2f80ed; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.task-frame__exercise--parabola-values {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: 1.25rem;
    background: #fff;
}
.task-frame__prompt--parabola-values {
    font-size: clamp(1.8rem, 4.2vw, 3.4rem);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
}
.task-frame__exercise--parabola-graph {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 0;
    overflow: hidden;
    padding: .65rem;
    background: #fff;
}
.parabola-graph-question {
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    border: 1px solid #d9e5f2;
    border-radius: .55rem;
    background: #fff;
}
.parabola-graph-question__point { fill: #e05236; stroke: #fff; stroke-width: 2; }
.parabola-graph-question__label { fill: #9b341d; stroke: #fff; stroke-width: 3; paint-order: stroke fill; font: 700 17px var(--font-number); }
.parabola-values { width: min(100%, 32rem); margin: 0 auto; }
.parabola-values__hint { margin: 0 0 .5rem; color: #34516e; font-size: .9rem; text-align: center; }
.parabola-values__fields { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.parabola-values__fields label { display: flex; align-items: center; gap: .35rem; color: #0b2138; font-weight: 700; }
.parabola-values__fields input {
    width: 5.5rem;
    min-height: 2.8rem;
    padding: .3rem .45rem;
    border: 1px solid #9bb4ce;
    border-radius: .45rem;
    color: #0b2138;
    background: #fff;
    font: 700 1.3rem var(--font-number);
    text-align: center;
}
.parabola-values__fields input:focus-visible { outline: 3px solid #79a9ff; outline-offset: 2px; }

/* Kompakte Rückmeldung zur SCORM-Wertung; Aufgabe und KoSy behalten den Platz. */
.task-frame--gamified .task-frame__header { padding: .4rem .65rem; color: #e6edff; background: linear-gradient(110deg, #142743, #244666); border: 0; }
.task-frame--gamified .task-frame__header > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem .7rem; }
.task-frame--gamified h1 { color: #fff; font-size: clamp(.9rem, 1.45vw, 1.15rem); line-height: 1.25; }
.task-frame--gamified .task-frame__score { display: none; }
.task-frame--gamified .task-frame__scorm-progress { grid-column: 1 / -1; margin: 0; color: #dbeafe; font-size: .72rem; }
.learning-game { display: contents; }
.learning-game__stats { position: relative; display: flex; align-items: center; justify-content: end; gap: .4rem; white-space: nowrap; font-size: .75rem; font-variant-numeric: tabular-nums; }
.learning-game__stats { --battery-color: #9aabc0; }
.learning-game__stats[data-grade="1"] { --battery-color: #44d590; }
.learning-game__stats[data-grade="2"] { --battery-color: #9ed65a; }
.learning-game__stats[data-grade="3"] { --battery-color: #dfd34b; }
.learning-game__stats[data-grade="4"] { --battery-color: #f5ad45; }
.learning-game__stats[data-grade="5"] { --battery-color: #f47c52; }
.learning-game__stats[data-grade="6"] { --battery-color: #f15c6b; }
.learning-game__ratio { color: #cbd9ed; }
.learning-game__stats strong { color: #fff; }
.learning-game__label { color: #cfdef1; font-size: .65rem; }
.learning-game__battery { position: relative; box-sizing: border-box; width: 4.3rem; height: 1.2rem; flex-shrink: 0; margin-right: .25rem; padding: 2px; border: 1.5px solid var(--battery-color); border-radius: .22rem; background: #ffffff0a; transition: border-color .55s ease; }
.learning-game__battery::before { content: ""; position: absolute; left: calc(100% + 2px); top: 25%; width: 3px; height: 50%; border-radius: 0 2px 2px 0; background: var(--battery-color); transition: background .55s ease; }
.learning-game__battery::after { content: ""; position: absolute; inset: 2px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(16.6667% - 2px), #203b56 calc(16.6667% - 2px), #203b56 16.6667%); }
.learning-game__charge { display: block; width: 0; height: 100%; border-radius: 1px; background: var(--battery-color); transition: width .65s ease, background .55s ease; }
.learning-game__reward { position: absolute; z-index: 20; right: 0; top: calc(100% + .3rem); padding: .3rem .55rem; border: 1px solid #91ccb5; border-radius: .4rem; color: #174e3b; background: #e0f7ed; font-size: .75rem; font-weight: 700; opacity: 0; pointer-events: none; }
.learning-game.is-celebrating .learning-game__reward { animation: learning-reward 1.2s ease both; }
.learning-game.is-celebrating .learning-game__battery { animation: learning-glow .6s ease; }
.learning-game__announcement { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.task-frame--gamified .task-frame__feedback.is-correct { color: #126447; animation: learning-feedback .25s ease both; }
.task-frame--gamified .task-frame__feedback.is-wrong { color: #824515; }
.task-frame--gamified .button { transition: transform .15s, background .15s; }
.task-frame--gamified .button:active:not(:disabled) { transform: translateY(1px); }
.task-frame--gamified .button:focus-visible { outline: 3px solid #79a9ff; outline-offset: 3px; }
@keyframes learning-reward { 0% { opacity: 0; transform: translateY(4px); } 15%, 75% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes learning-glow { 50% { background: #488f7844; } }
@keyframes learning-feedback { from { opacity: .3; } to { opacity: 1; } }
@media (max-width: 600px) {
    .task-frame--gamified .task-frame__header > div { grid-template-columns: 1fr; gap: .2rem; }
    .learning-game__stats { justify-content: start; gap: .3rem; font-size: .7rem; }
    .learning-game__reward { right: 0; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .task-frame--gamified *, .task-frame--gamified *::before, .task-frame--gamified *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .learning-game.is-celebrating .learning-game__reward { opacity: 1; }
}

/* Full equation entry shares the standard task and SCORM frame. */
.task-frame__exercise--equation .task-frame__answers {
    width: min(100%, 52rem);
}
.task-frame__exercise--equation .task-frame__answer input {
    height: clamp(3.5rem, 8vh, 5.5rem);
    font-size: clamp(1.3rem, 3.8vw, 2.8rem);
    text-align: left;
    padding: 0.65rem 1rem;
}
.task-frame__exercise--equation .task-frame__prompt {
    font-size: clamp(1.7rem, 4.5vw, 3.5rem);
    overflow-wrap: anywhere;
}
.equation-entry {
    color: #405b76;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.65rem;
}
.equation-entry strong { color: #0b2138; font-size: 1rem; }
.equation-entry p { margin: 0.35rem 0; }
.equation-entry small { display: block; margin-top: 0.4rem; }
.equation-entry__keys { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.equation-entry__keys button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    background: #f0f5fb;
    border: 1px solid #bfd0e3;
    border-radius: 0.5rem;
    color: #0b2138;
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}
.equation-entry__keys button:focus-visible { outline: 3px solid #2f80ed; outline-offset: 2px; }
.task-frame__exercise--equation .task-frame__feedback { overflow-wrap: anywhere; }

.task-frame--equation {
    aspect-ratio: auto;
    height: min(45rem, calc(100dvh - 7rem));
}
.task-frame__exercise--equation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    overflow: auto;
    padding: 1rem 1.25rem;
}
.task-frame__exercise--equation > * { flex-shrink: 0; }
.task-frame__exercise--equation .task-frame__prompt {
    margin: 0;
    width: 100%;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-align: center;
}
.task-frame__exercise--equation .task-frame__answers { margin-inline: auto; }
.task-frame__exercise--equation .task-frame__feedback { margin: 0 auto; }
.task-frame__exercise--equation .task-frame__feedback:empty { display: none; }
@media (max-width: 720px) {
    .workspace:has(.task-frame--equation),
    .workspace__stage:has(.task-frame--equation) { overflow: auto; }
    .task-frame--equation { height: auto; }
    .task-frame__exercise--equation { overflow: visible; padding: 0.9rem; }
}
