:root {
  --ol-ink: #142940;
  --ol-muted: #617488;
  --ol-teal: #0d6263;
  --ol-teal-dark: #094b4c;
  --ol-warm: #da8a24;
  --ol-line: #dfe9ed;
  --ol-surface: #fff;
  --ol-soft: #edf5f5;
  --ol-radius: 20px;
  --ol-font: "Manrope", "Tajawal", sans-serif;
  --ol-serif: "Fraunces", "Tajawal", serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 5%, #fff 0, #f4f8f9 65%);
  color: var(--ol-ink);
  font: 14px/1.6 var(--ol-font);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: var(--ol-teal);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 16px;
  line-height: 1.4;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--ol-muted);
}
bdi {
  unicode-bidi: isolate;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #40a9a4;
  outline-offset: 4px;
}
input:disabled {
  background: #f1f5f6;
}
.ol-standalone {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--ol-line);
  background: #ffffffd9;
}
.ol-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ol-ink);
}
.ol-brand strong {
  font: 600 25px var(--ol-serif);
}
.ol-standalone nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.ol-standalone button {
  background: var(--ol-soft);
  border: 1px solid var(--ol-line);
  border-radius: 12px;
  padding: 8px 16px;
  color: var(--ol-teal);
}
.app-embedded .ol-standalone {
  display: none;
}
.ol-app {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  min-height: calc(100dvh - 68px);
}
.app-embedded .ol-app {
  min-height: 100dvh;
}
.ol-sidebar {
  padding: 28px 18px;
  border-inline-end: 1px solid var(--ol-line);
  background: #ffffff70;
}
.ol-lab-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ol-teal);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 25px;
}
.ol-lab-name > span {
  font-size: 28px;
}
.ol-module-active {
  display: flex;
  gap: 12px;
  background: #e6f1f1;
  border-inline-start: 3px solid var(--ol-teal);
  border-radius: 12px;
  padding: 14px 12px;
  color: var(--ol-teal);
  line-height: 1.5;
}
.ol-module-active > span {
  font-size: 12px;
  font-weight: 800;
}
.ol-lessons {
  display: grid;
  gap: 5px;
  margin: 14px 0 24px;
}
.ol-lessons button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  border-radius: 10px;
  color: var(--ol-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ol-lessons button span {
  font-size: 11px;
  min-width: 22px;
  color: var(--ol-teal);
}
.ol-lessons button.active {
  background: #edf5f5;
  color: var(--ol-teal);
  font-weight: 800;
}
.ol-lessons button:hover {
  background: var(--ol-soft);
}
.ol-progress {
  padding: 16px 10px;
  border-top: 1px solid var(--ol-line);
}
.ol-progress h2,
.ol-roadmap h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--ol-muted);
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  accent-color: var(--ol-teal);
}
progress::-webkit-progress-bar {
  background: var(--ol-line);
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--ol-teal);
  border-radius: 10px;
}
.ol-progress dl {
  margin: 12px 0;
  font-size: 11px;
}
.ol-progress dl > div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 8px 0;
}
.ol-progress dd {
  margin: 0;
  color: var(--ol-teal);
  font-weight: 800;
  white-space: nowrap;
}
.ol-progress small {
  font-size: 10px;
  color: var(--ol-muted);
}
.ol-roadmap {
  margin-top: 14px;
  padding: 14px 10px;
  border-top: 1px solid var(--ol-line);
}
.ol-roadmap > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  font-size: 11px;
  color: var(--ol-muted);
}
.ol-roadmap small {
  font-size: 9px;
  background: #eef2f3;
  padding: 2px 5px;
  border-radius: 5px;
  height: fit-content;
}
.ol-main {
  padding: 30px clamp(18px, 2.4vw, 40px);
  max-width: 1660px;
  width: 100%;
  margin: auto;
}
.ol-page-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.ol-page-header h1 {
  font: 500 clamp(25px, 2.3vw, 37px)/1.2 var(--ol-serif);
  letter-spacing: -1px;
  margin: 5px 0 9px;
}
.ol-page-header p {
  font-size: 12px;
  max-width: 650px;
}
.ol-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ol-teal);
  text-transform: uppercase;
}
.ol-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ol-modes {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #e6f0f1;
  border-radius: 14px;
}
.ol-modes button {
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ol-teal);
  font-weight: 700;
  white-space: nowrap;
}
.ol-modes button[aria-pressed="true"] {
  background: var(--ol-teal-dark);
  color: #fff;
  box-shadow: 0 3px 7px #094b4c20;
}
.ol-level {
  display: grid;
  font-size: 11px;
  color: var(--ol-muted);
  gap: 4px;
}
select {
  padding: 10px 30px 10px 12px;
  background: #fff;
  border: 1px solid var(--ol-line);
  border-radius: 11px;
  color: var(--ol-ink);
  max-width: 100%;
}
.ol-lesson-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #eaf3f3;
  border: 1px solid #dbeaea;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.ol-lesson-banner > div {
  flex: 1;
}
.ol-lesson-banner h2 {
  margin: 2px 0 5px;
}
.ol-lesson-banner p {
  font-size: 12px;
  max-width: 850px;
}
.ol-step-count {
  font: 500 34px var(--ol-serif);
  color: var(--ol-teal);
  white-space: nowrap;
}
.ol-step-count small {
  font: 11px var(--ol-font);
  margin-inline-start: 4px;
  color: var(--ol-muted);
}
.ol-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(270px, 1.15fr) minmax(
      265px,
      1fr
    );
  gap: 18px;
  align-items: start;
}
.ol-left-stack {
  display: grid;
  gap: 16px;
}
.ol-card {
  background: #ffffffd9;
  border: 1px solid var(--ol-line);
  border-radius: var(--ol-radius);
  padding: 20px;
  box-shadow: 0 6px 24px #123f4d03;
}
.ol-card > h2 {
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.ol-notation {
  display: flex;
  gap: 4px;
  background: #f0f6f7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.ol-notation button {
  flex: 1;
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 10px 7px;
  color: var(--ol-teal);
  font-size: 11px;
  font-weight: 700;
}
.ol-notation button[aria-pressed="true"] {
  background: var(--ol-teal-dark);
  color: white;
}
.ol-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ol-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ol-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
}
.ol-field input {
  width: 100%;
  min-width: 0;
  padding: 13px 9px;
  border: 1px solid #d8e4e9;
  border-radius: 11px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ol-ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: inset 0 1px 3px #18354503;
}
.ol-field small {
  font-size: 11px;
  line-height: 1.5;
}
.ol-field.is-error input {
  border-color: #be533d;
  background: #fff9f6;
}
.ol-field.is-error small {
  color: #a03d2c;
}
.ol-field.is-correct input {
  border-color: #43a49b;
}
.ol-field.is-correct small {
  color: var(--ol-teal);
}
.ol-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ol-btn {
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--ol-soft);
  color: var(--ol-teal-dark);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 12px;
  transition:
    background 150ms ease,
    transform 120ms ease-out;
}
.ol-btn:hover {
  background: #dcecec;
}
.ol-btn:active {
  transform: scale(0.98);
}
.ol-btn--primary {
  background: var(--ol-teal-dark);
  color: #fff;
  box-shadow: 0 3px 8px #084d4e19;
}
.ol-btn--primary:hover {
  background: #073c3e;
}
.ol-btn--outline {
  border-color: #bfd5d5;
  background: transparent;
}
.ol-btn--text {
  background: none;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ol-btn--full {
  width: 100%;
  padding: 15px;
}
.ol-input-note {
  display: block;
  font-size: 9px;
  color: var(--ol-muted);
  margin-top: 12px;
}
.ol-meridian {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f3f8f8;
  border-radius: 10px;
  margin-top: 8px;
  font-size: 11px;
}
.ol-meridian i {
  width: 28px;
  height: 4px;
  background: var(--ol-teal);
  border-radius: 2px;
  flex: none;
}
.ol-meridian--1 i {
  height: 28px;
  width: 4px;
  margin: 0 12px;
  background: var(--ol-warm);
}
.ol-meridian strong {
  display: block;
  font-size: 17px;
  color: var(--ol-ink);
}
.ol-meridian span bdi {
  font-weight: 700;
}
.ol-center-cross {
  align-self: center;
  min-width: 0;
}
.oc-figure {
  margin: 0;
  width: 100%;
}
.oc-figure svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.oc-figure figcaption {
  text-align: center;
  font-size: 9px;
  color: var(--ol-muted);
  padding: 0 14px;
  direction: inherit;
}
.oc-halo {
  fill: #eff6f73b;
  stroke: #e8f0f1;
  stroke-width: 0.5;
}
.oc-ring {
  stroke: #d4e2e6;
  fill: none;
  stroke-width: 0.7;
}
.oc-ring:last-of-type {
  stroke: #87a3af;
  stroke-width: 1.2;
}
.oc-tick {
  stroke: #88a5b1;
  stroke-width: 1;
}
.oc-angle {
  fill: #546a80;
  text-anchor: middle;
  font: 13px var(--ol-font);
}
.oc-meridian line {
  stroke: var(--ol-teal);
  stroke-width: 3;
}
.oc-meridian circle {
  fill: var(--ol-teal);
  stroke: #fff;
  stroke-width: 2;
}
.oc-meridian rect {
  fill: #e6f2f1;
}
.oc-meridian text {
  fill: var(--ol-teal-dark);
  font: 700 13px var(--ol-font);
  text-anchor: middle;
}
.oc-meridian--1 line {
  stroke: var(--ol-warm);
  stroke-dasharray: 9 3;
}
.oc-meridian--1 circle {
  fill: var(--ol-warm);
}
.oc-meridian--1 rect {
  fill: #fff0dc;
}
.oc-meridian--1 text {
  fill: #935515;
}
.oc-center {
  fill: white;
  stroke: #759396;
  stroke-width: 1.5;
}
.oc-figure--compact {
  max-width: 300px;
  margin: auto;
}
.ol-target-form {
  background: var(--ol-soft);
  border-radius: 10px;
  text-align: center;
  color: var(--ol-teal);
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
}
.ol-rx-readout {
  font-size: clamp(19px, 1.6vw, 26px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ol-ink);
  padding: 18px 0;
  letter-spacing: -0.4px;
}
.ol-target-placeholder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 10px;
  padding: 22px 0;
  color: var(--ol-muted);
  font-size: 10px;
}
.ol-target-placeholder b {
  border: 1px solid var(--ol-line);
  border-radius: 10px;
  font-size: 24px;
  padding: 10px;
  color: #9bacb3;
}
.ol-target-tip {
  margin-top: 20px;
  font-size: 12px;
}
.ol-calculation {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 8px 0;
  background: #f3f8f8;
  border-radius: 12px;
}
.ol-calculation li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 4px 8px;
  padding: 12px;
  font-size: 11px;
}
.ol-calculation li:before {
  content: counter(step);
  grid-row: span 2;
  background: #70a5ad;
  color: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  text-align: center;
  line-height: 23px;
}
.ol-calculation b {
  grid-column: 2;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.ol-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}
.ol-badges span {
  font-size: 9px;
  color: var(--ol-teal);
  background: #eaf5ee;
  border-radius: 6px;
  padding: 4px 7px;
}
.ol-compare-cross {
  font-size: 11px;
  margin-top: 16px;
}
.ol-compare-cross p {
  font-size: 10px;
}
.ol-profile {
  grid-column: 1/3;
  min-width: 0;
}
.ol-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ol-card-heading output {
  font-size: 11px;
  background: #fff0dc;
  color: #87551c;
  padding: 5px 9px;
  border-radius: 7px;
  font-weight: 800;
  white-space: nowrap;
}
.ol-profile svg {
  width: 100%;
  display: block;
  fill: var(--ol-muted);
  font: 10px var(--ol-font);
}
.oc-grid {
  stroke: #e5edef;
  stroke-width: 0.7;
}
.oc-area {
  fill: #e8f2f0;
}
.oc-curve {
  fill: none;
  stroke: var(--ol-teal);
  stroke-width: 2;
}
.oc-compare {
  fill: none;
  stroke: var(--ol-warm);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}
.oc-probe {
  stroke: var(--ol-warm);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.oc-selected {
  fill: var(--ol-warm);
  stroke: white;
  stroke-width: 1.5;
}
.ol-probe {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 10px;
  color: var(--ol-muted);
}
.ol-probe input {
  flex: 1;
  min-width: 0;
  accent-color: var(--ol-teal);
  height: 24px;
}
.ol-profile > small {
  font-size: 9px;
  color: var(--ol-muted);
  display: block;
  margin-top: 9px;
}
.ol-invariant {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #eaf3f2;
}
.ol-invariant-icon {
  font-size: 38px;
  line-height: 1;
  color: var(--ol-teal);
  margin-bottom: 15px;
}
.ol-invariant p {
  font-size: 12px;
}
.ol-sources {
  font-size: 11px;
  color: var(--ol-muted);
  margin-top: 28px;
  padding: 15px 0;
  border-top: 1px solid var(--ol-line);
}
summary {
  cursor: pointer;
}
.ol-sources summary {
  color: var(--ol-teal);
  font-weight: 800;
}
.ol-sources p {
  margin-top: 12px;
  max-width: 950px;
}
.ol-practice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.ol-practice-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.ol-task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.ol-task-card {
  padding: 28px;
}
.ol-task-card form {
  margin-top: 24px;
}
.ol-task-card > p {
  margin: 8px 0;
}
.ol-practice-visual {
  align-self: center;
  min-width: 0;
}
.ol-practice-visual > p {
  text-align: center;
  margin: 15px;
  font-size: 12px;
}
.ol-status {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ol-teal);
  min-height: 20px;
}
.ol-assistance {
  display: flex;
  gap: 22px;
  margin-top: 14px;
}
.ol-hint {
  background: #fff5e7;
  border: 1px solid #efdfc8;
  color: #835b2d;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 14px;
}
.ol-choices {
  border: 0;
  padding: 0;
  margin: 15px 0;
}
.ol-choices legend {
  font-size: 11px;
  color: var(--ol-muted);
  margin-bottom: 8px;
}
.ol-choices label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ol-line);
  border-radius: 10px;
  margin-bottom: 10px;
}
.ol-choices label:has(input:checked) {
  background: #eaf4f2;
  border-color: var(--ol-teal);
}
.ol-choices input {
  accent-color: var(--ol-teal);
  width: 18px;
  height: 18px;
  flex: none;
}
.ol-question {
  font-size: 20px;
  color: var(--ol-ink);
}
.ol-concept-visual {
  font: 500 40px/1.8 var(--ol-serif);
  text-align: center;
  color: var(--ol-teal);
}
.ol-concept-visual small {
  display: block;
  color: var(--ol-warm);
}
.ol-concept-visual span {
  font-size: 25px;
}
.ol-inline-feedback {
  font-size: 11px;
  color: #a03d2c;
  margin-top: 8px;
}
.ol-solution-cross {
  max-width: 240px;
  margin: auto;
}
.ol-test-intro {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
}
.ol-test-symbol {
  color: var(--ol-teal);
  font: 500 60px var(--ol-serif);
}
.ol-test-intro h2 {
  font: 500 30px var(--ol-serif);
  margin: 8px 0 14px;
}
.ol-test-intro > p {
  max-width: 590px;
  margin: 0 auto 20px;
}
.ol-blueprint {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 28px 0;
}
.ol-blueprint > span {
  font: 500 36px var(--ol-serif);
  color: var(--ol-teal);
}
.ol-blueprint small {
  display: block;
  font: 11px var(--ol-font);
  color: var(--ol-muted);
  max-width: 140px;
}
.ol-timed {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  accent-color: var(--ol-teal);
}
.ol-test-intro .ol-muted {
  font-size: 11px;
  margin-top: 24px;
}
.ol-test-intro > small {
  color: var(--ol-muted);
  font-size: 10px;
}
.ol-exam-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ol-line);
  padding: 10px 0 18px;
  margin-bottom: 16px;
}
.ol-exam-header > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--ol-muted);
}
.ol-exam-header strong {
  font-size: 22px;
  color: var(--ol-teal);
  font-variant-numeric: tabular-nums;
}
.ol-question-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.ol-question-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ol-line);
  border-radius: 10px;
  color: var(--ol-muted);
  background: white;
}
.ol-question-nav button.has-answer {
  background: #e5f0ed;
  color: var(--ol-teal);
  border-bottom: 3px solid #76b2a5;
}
.ol-question-nav button[aria-current="step"] {
  background: var(--ol-teal-dark);
  color: white;
}
.ol-results-banner {
  display: flex;
  align-items: center;
  gap: 35px;
  max-width: 1000px;
  margin: 20px auto;
  background: #eaf3f1;
  padding: 30px;
}
.ol-score {
  font: 500 80px/1 var(--ol-serif);
  color: var(--ol-teal);
  white-space: nowrap;
}
.ol-score span {
  font-size: 30px;
}
.ol-results-banner p {
  font-size: 12px;
  margin: 12px 0;
}
.ol-review-title {
  max-width: 1000px;
  margin: 30px auto 16px;
}
.ol-review {
  display: grid;
  gap: 12px;
  max-width: 1000px;
  margin: auto;
}
.ol-review summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  font-weight: 700;
}
.ol-review details[open] > summary {
  margin-bottom: 25px;
}
.ol-review details > p {
  font-size: 12px;
  margin: 10px 0;
}
.ol-good {
  color: var(--ol-teal);
}
.ol-muted {
  color: var(--ol-muted);
}
dialog {
  border: 1px solid var(--ol-line);
  border-radius: 20px;
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 30px);
  color: var(--ol-ink);
  box-shadow: 0 20px 80px #0d333d30;
}
dialog::backdrop {
  background: #16313e60;
  backdrop-filter: blur(3px);
}
dialog p {
  margin-top: 15px;
  font-size: 13px;
}
[dir="rtl"] body {
  font-family: "Tajawal", "Manrope", sans-serif;
}
[dir="rtl"] .ol-page-header h1,
[dir="rtl"] .ol-test-intro h2 {
  font-family: "Tajawal", sans-serif;
  letter-spacing: 0;
  font-weight: 700;
}
[dir="rtl"] .ol-eyebrow {
  letter-spacing: 0;
}
[dir="rtl"] .oc-figure,
[dir="rtl"] #power-chart {
  direction: ltr;
}
@media (min-width: 1600px) {
  .ol-main {
    padding-top: 36px;
  }
  .ol-dashboard {
    gap: 24px;
  }
  .ol-card {
    padding: 24px;
  }
  .ol-page-header h1 {
    font-size: 38px;
  }
}
@media (max-width: 1250px) {
  .ol-app {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .ol-page-header {
    align-items: start;
    flex-direction: column;
  }
  .ol-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .ol-dashboard {
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
  }
  .ol-result-card {
    grid-column: 1/3;
  }
  .ol-result-card .ol-calculation {
    display: flex;
  }
  .ol-result-card .ol-calculation li {
    flex: 1;
  }
  .ol-profile {
    grid-column: 1/3;
  }
  .ol-invariant {
    grid-column: 1/3;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .ol-invariant > h2 {
    margin: 0;
    white-space: nowrap;
  }
  .ol-invariant-icon {
    margin: 0;
  }
  .ol-task-layout {
    gap: 20px;
  }
  .ol-task-card {
    padding: 20px;
  }
}
@media (max-width: 850px) {
  .ol-app {
    grid-template-columns: 1fr;
  }
  .ol-sidebar {
    border-inline-end: 0;
    border-bottom: 1px solid var(--ol-line);
    padding: 15px 20px;
  }
  .ol-lab-name {
    font-size: 13px;
    margin: 0 0 10px;
  }
  .ol-module-active,
  .ol-progress,
  .ol-roadmap {
    display: none;
  }
  .ol-lessons {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin: 0;
    padding-bottom: 4px;
  }
  .ol-lessons button {
    flex: none;
    max-width: 155px;
    font-size: 10px;
    border: 1px solid var(--ol-line);
    padding: 8px;
  }
  .ol-main {
    padding: 24px 20px;
  }
  .ol-lesson-banner {
    flex-wrap: wrap;
  }
  .ol-lesson-banner > div {
    min-width: 180px;
  }
  .ol-task-layout {
    grid-template-columns: 1fr;
  }
  .ol-practice-visual {
    max-width: 440px;
    margin: auto;
    width: 100%;
  }
  .ol-page-header h1 {
    font-size: 31px;
  }
  .ol-standalone {
    padding: 12px 18px;
    gap: 14px;
  }
  .ol-standalone > span {
    display: none;
  }
}
@media (max-width: 560px) {
  .ol-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
  .ol-result-card,
  .ol-profile,
  .ol-invariant {
    grid-column: 1;
  }
  .ol-left-stack {
    display: contents;
  }
  .ol-center-cross {
    grid-row: 2;
    margin: 0 auto;
    width: 100%;
    max-width: 380px;
  }
  .ol-card {
    padding: 18px;
    border-radius: 16px;
  }
  .ol-dashboard > .ol-result-card {
    grid-row: 4;
  }
  .ol-result-card .ol-calculation {
    display: block;
  }
  .ol-page-header h1 {
    font-size: 27px;
  }
  .ol-toolbar {
    gap: 12px;
    align-items: stretch;
  }
  .ol-modes {
    flex: 1;
    justify-content: center;
  }
  .ol-modes button {
    padding: 10px 14px;
    flex: 1;
    font-size: 11px;
  }
  .ol-level {
    width: 100%;
  }
  .ol-lesson-banner {
    padding: 15px;
    gap: 10px;
  }
  .ol-lesson-banner .ol-btn {
    width: 100%;
  }
  .ol-lesson-banner p {
    font-size: 11px;
  }
  .ol-step-count {
    font-size: 28px;
  }
  .ol-invariant {
    display: block;
  }
  .ol-invariant-icon {
    display: none;
  }
  .ol-invariant p {
    margin-top: 10px;
  }
  .ol-practice-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .ol-practice-toolbar label {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }
  .ol-practice-toolbar select {
    width: 100%;
  }
  .ol-fields {
    gap: 8px;
  }
  .ol-field input {
    font-size: 18px;
    padding: 12px 6px;
  }
  .ol-field span {
    font-size: 10px;
  }
  .ol-test-intro {
    padding: 25px 18px;
    margin: 12px auto;
  }
  .ol-blueprint {
    gap: 15px;
  }
  .ol-test-intro h2 {
    font-size: 25px;
  }
  .ol-score {
    font-size: 62px;
  }
  .ol-results-banner {
    gap: 18px;
    align-items: start;
  }
  .ol-standalone nav {
    gap: 12px;
  }
  .ol-standalone nav a {
    font-size: 10px;
  }
  .ol-brand strong {
    font-size: 21px;
  }
  .ol-review summary {
    font-size: 11px;
  }
  .ol-probe {
    flex-direction: column;
    align-items: stretch;
  }
  .ol-exam-header strong {
    font-size: 19px;
  }
  .ol-main {
    padding: 20px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* ── Keyframe animations ── */
@keyframes ol-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Transition on the transposed Rx readout */
.ol-rx-readout {
  transition:
    opacity 0.25s ease,
    transform 0.18s ease;
}
/* Animated entry for banners, target form, score */
.ol-results-banner,
.ol-lesson-banner,
.ol-target-form {
  animation: ol-reveal 0.28s ease both;
}
.ol-score {
  animation: ol-reveal 0.4s ease both;
}
/* Staggered animation on calculation steps */
.ol-calculation li {
  animation: ol-reveal 0.25s ease both;
}
.ol-calculation li:nth-child(1) {
  animation-delay: 0.05s;
}
.ol-calculation li:nth-child(2) {
  animation-delay: 0.1s;
}
.ol-calculation li:nth-child(3) {
  animation-delay: 0.15s;
}
/* Compare cross SVG reveal */
.ol-compare-cross[open] svg {
  animation: ol-reveal 0.2s ease both;
}
/* Input focus glow */
.ol-field input:focus-visible {
  box-shadow: 0 0 0 3px #40a9a440;
}
/* Optical cross SVG enhancements */
.oc-meridian line {
  transition: stroke-width 0.15s ease;
}
.oc-meridian:hover line {
  stroke-width: 4;
}
/* Tip power labels */
.oc-tip-power {
  font: 700 11px var(--ol-font);
  fill: var(--ol-teal-dark);
  pointer-events: none;
}
.oc-tip-power--1 {
  fill: #935515;
}
/* Tip angle labels */
.oc-tip-angle {
  font: 600 10px var(--ol-font);
  fill: var(--ol-muted);
  pointer-events: none;
}
/* Power indicator arcs */
.oc-power-arc--0 {
  stroke: var(--ol-teal);
}
.oc-power-arc--1 {
  stroke: var(--ol-warm);
}
/* Larger pulsing centre dot */
@keyframes oc-pulse {
  0%,
  100% {
    r: 7;
    opacity: 1;
  }
  50% {
    r: 9;
    opacity: 0.6;
  }
}
.oc-center {
  animation: oc-pulse 2.4s ease-in-out infinite;
}
/* Power-profile chart: split fills */
.oc-area--pos {
  fill: #e8f2f0;
}
.oc-area--neg {
  fill: #fdf0e0;
}
/* Zero line */
.oc-zero-line {
  stroke: #94a3ab;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
/* Principal-meridian dots and labels on power profile */
.oc-principal-dot--0 {
  fill: var(--ol-teal);
  stroke: white;
  stroke-width: 1.5;
}
.oc-principal-dot--1 {
  fill: var(--ol-warm);
  stroke: white;
  stroke-width: 1.5;
}
.oc-principal-label {
  font: 700 10px var(--ol-font);
  fill: var(--ol-teal-dark);
}
.oc-principal-label--1 {
  fill: #935515;
}
/* Axis tick markers on power-profile x-axis */
.oc-axis-tick {
  stroke-width: 2;
}
.oc-axis-tick--0 {
  stroke: var(--ol-teal);
}
.oc-axis-tick--1 {
  stroke: var(--ol-warm);
}
/* Steps preview box (original Rx) */
.ol-steps-preview {
  background: #eaf3f3;
  border: 1px solid #d0e6e6;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.ol-steps-preview .ol-eyebrow {
  display: block;
  margin-bottom: 4px;
}
.ol-steps-preview .ol-rx-readout {
  padding: 6px 0;
  font-size: 18px;
}
/* Lensometer connection banner */
.ol-link-lensometer {
  background: #f0f8f7;
  border: 1px solid #c2dfe0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.ol-link-lensometer a {
  color: var(--ol-teal);
  font-weight: 700;
}
/* Keyboard shortcuts details panel */
.ol-shortcuts {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ol-muted);
}
.ol-shortcuts summary {
  color: var(--ol-teal);
  font-weight: 700;
  cursor: pointer;
}
/* Practice success row */
.ol-success-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eaf5ee;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
}
.ol-success-row > span {
  color: var(--ol-teal);
  font-weight: 700;
  font-size: 13px;
}
/* Test results performance band */
.ol-band {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  display: block;
  color: var(--ol-teal);
}
.ol-band--warn {
  color: var(--ol-warm);
}
