body.aws-eot-view {
  --eot-ink: #182228;
  --eot-muted: #5d686d;
  --eot-navy: #214f73;
  --eot-teal: #2c6668;
  --eot-line: #d9dee1;
  --eot-paper: #fffefa;
  --eot-wash: #edf2f3;
  --eot-warm: #faf8f2;
  margin: 0;
  padding: 0;
  display: block;
  background:
    linear-gradient(rgba(33, 79, 115, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 79, 115, 0.035) 1px, transparent 1px),
    var(--eot-warm);
  background-size: 28px 28px;
  color: var(--eot-ink);
  font-family: "Hahmlet", Georgia, serif;
  font-weight: 200;
}

.aws-eot-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
}

.eot-topbar {
  min-height: 58px;
  padding: 0 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--eot-line);
  background: rgba(255, 254, 250, 0.92);
  backdrop-filter: blur(12px);
}

.eot-brand,
.eot-topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--eot-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.eot-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--eot-navy);
  color: var(--eot-navy);
  font-size: 0.63rem;
  font-weight: 600;
}

.eot-topbar-meta { color: var(--eot-muted); }
.eot-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--eot-teal); box-shadow: 0 0 0 4px rgba(44, 102, 104, 0.12); }
.eot-topbar-tools { display: inline-flex; align-items: center; gap: .8rem; }
.eot-cloud-trigger { display: inline-flex; align-items: center; gap: .5rem; padding: .48rem .6rem; border: 1px solid #b8c4c8; border-radius: 0; background: transparent; color: var(--eot-navy); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .68rem; cursor: pointer; }
.eot-cloud-trigger:hover { border-color: var(--eot-navy); background: #f4f7f8; }
.eot-cloud-trigger:focus-visible { outline: 2px solid rgba(33, 79, 115, .3); outline-offset: 2px; }
.eot-cloud-trigger span { padding: .1rem .32rem; background: var(--eot-wash); color: var(--eot-muted); font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; }
.eot-cloud-trigger.is-active span { background: #e5f2ee; color: #245b50; }
.eot-cloud-trigger.is-dirty span { background: #fff0d9; color: #754719; }

.eot-app { max-width: 1440px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 3.5rem) 3vw 4rem; }
.eot-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.eot-kicker, .eot-micro-label { margin: 0 0 0.45rem; color: var(--eot-navy); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.69rem; font-weight: 600; letter-spacing: 0.09em; line-height: 1.4; text-transform: uppercase; }
.eot-intro h1 { margin: 0; color: var(--eot-ink); font-size: clamp(2.4rem, 5vw, 5.2rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }
.eot-deck { max-width: 680px; margin: 0.75rem 0 0; color: var(--eot-muted); font-size: clamp(0.98rem, 1.4vw, 1.15rem); line-height: 1.55; }
.eot-overall { min-width: 170px; padding: 1rem 1.1rem; border-left: 3px solid var(--eot-teal); background: var(--eot-paper); box-shadow: 0 12px 34px rgba(24, 34, 40, 0.07); }
.eot-overall-label { display: block; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.67rem; text-transform: uppercase; }
.eot-overall strong { display: block; margin: 0.05rem 0; color: var(--eot-teal); font-family: "IBM Plex Mono", monospace; font-size: 1.65rem; }
.eot-overall span:last-child { color: var(--eot-muted); font-size: 0.72rem; }

.eot-workspace { display: grid; grid-template-columns: minmax(230px, 0.7fr) minmax(0, 2.6fr); min-height: 690px; border: 1px solid var(--eot-line); background: var(--eot-paper); box-shadow: 0 24px 70px rgba(24, 34, 40, 0.09); }
.eot-rail { padding: 1rem; border-right: 1px solid var(--eot-line); background: #f2f5f4; }
.eot-day-button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; margin: 0 0 0.45rem; padding: 0.9rem 0.75rem; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--eot-ink); text-align: left; cursor: pointer; }
.eot-day-button:hover { border-color: var(--eot-line); background: rgba(255,255,255,.65); }
.eot-day-button.is-active { border-color: #c9d5da; background: var(--eot-paper); box-shadow: 0 8px 20px rgba(24, 34, 40, 0.06); }
.eot-day-number, .eot-day-count { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: var(--eot-navy); }
.eot-day-button strong, .eot-day-button small { display: block; }
.eot-day-button strong { font-family: "Hahmlet", Georgia, serif; font-size: 0.92rem; font-weight: 400; line-height: 1.25; }
.eot-day-button small { margin-top: 0.15rem; color: var(--eot-muted); font-size: 0.68rem; line-height: 1.35; }
.eot-day-count { display: grid; min-width: 24px; height: 24px; place-items: center; border: 1px solid var(--eot-line); border-radius: 50%; color: var(--eot-muted); }
.eot-rail-note { margin: 2rem 0.75rem 0; padding-top: 1rem; border-top: 1px solid var(--eot-line); }
.eot-rail-note p { margin: 0; color: var(--eot-muted); font-size: 0.76rem; line-height: 1.65; }

.eot-study-pane { min-width: 0; padding: clamp(1.25rem, 3vw, 3rem); }
.eot-study-head { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--eot-line); }
.eot-study-head h2 { margin: 0; padding: 0; border: 0; color: var(--eot-ink); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 400; }
.eot-study-head p:last-child { max-width: 640px; margin: 0.45rem 0 0; color: var(--eot-muted); font-size: 0.89rem; line-height: 1.55; }
.eot-session-clock { min-width: 126px; padding: 0.75rem 0.85rem; border: 1px solid var(--eot-line); background: #f7f8f5; text-align: right; }
.eot-session-clock span { display: block; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.61rem; letter-spacing: .07em; text-transform: uppercase; }
.eot-session-clock strong { display: block; margin: 0.08rem 0 0.35rem; font-family: "IBM Plex Mono", monospace; font-size: 1.35rem; font-weight: 500; }
.eot-session-clock button { border: 0; background: none; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.eot-safety-spine { display: grid; grid-template-columns: 34px 1fr; gap: 0.85rem; margin: 1.5rem 0; padding: 1rem; border: 1px solid #bdd0ce; background: #eef6f3; }
.eot-safety-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--eot-teal); color: white; font-family: "IBM Plex Mono", monospace; font-weight: 600; }
.eot-safety-spine strong { font-size: 0.9rem; font-weight: 600; }
.eot-safety-spine p { margin: 0.2rem 0 0; color: #40595a; font-size: 0.78rem; line-height: 1.55; }

.eot-power-path { display: flex; align-items: center; gap: 0.55rem; margin: 1.4rem 0; padding: 1rem; overflow-x: auto; border: 1px dashed #b7c5cb; background: #fbfcfa; }
.eot-power-path span { flex: 0 0 auto; padding: 0.45rem 0.65rem; border: 1px solid var(--eot-line); background: white; color: var(--eot-ink); font-family: "IBM Plex Mono", monospace; font-size: 0.64rem; }
.eot-power-path i { flex: 1 0 16px; min-width: 16px; height: 1px; background: var(--eot-navy); position: relative; }
.eot-power-path i::after { content: ""; position: absolute; top: -3px; right: -1px; border-width: 3.5px 0 3.5px 6px; border-style: solid; border-color: transparent transparent transparent var(--eot-navy); }

.eot-question-card { margin-top: 1.4rem; padding: clamp(1.2rem, 2.7vw, 2rem); border: 1px solid var(--eot-line); border-top: 4px solid var(--eot-navy); background: white; }
.eot-question-meta { display: flex; align-items: center; gap: 0.65rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; text-transform: uppercase; }
.eot-question-id { padding: 0.2rem 0.4rem; background: var(--eot-navy); color: white; font-weight: 600; }
.eot-question-card h3 { margin: 1rem 0 1.2rem; max-width: 800px; color: var(--eot-ink); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 400; line-height: 1.4; }
.eot-question-card label { display: block; margin-bottom: 0.4rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: .05em; text-transform: uppercase; }
.eot-question-card textarea { width: 100%; min-height: 112px; resize: vertical; padding: 0.9rem; border: 1px solid #bfc9cd; border-radius: 0; background: #fffefa; color: var(--eot-ink); font: 400 0.92rem/1.6 "Hahmlet", Georgia, serif; }
.eot-question-card textarea:focus { outline: 2px solid rgba(33,79,115,.25); border-color: var(--eot-navy); }
.eot-question-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.85rem; }
.eot-question-actions span { color: var(--eot-muted); font-size: 0.7rem; }
.eot-primary-button { padding: 0.65rem 0.9rem; border: 1px solid var(--eot-navy); border-radius: 0; background: var(--eot-navy); color: white; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; cursor: pointer; }
.eot-primary-button:hover { background: #183e5c; }
.eot-answer-key { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--eot-line); }
.eot-answer-key p { margin: 0; color: var(--eot-ink); font-size: 0.88rem; line-height: 1.65; }
.eot-answer-key fieldset { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0 0; padding: 0; border: 0; }
.eot-answer-key legend { width: 100%; margin-bottom: 0.35rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.65rem; text-transform: uppercase; }
.eot-answer-key fieldset button { padding: 0.5rem 0.7rem; border: 1px solid var(--eot-line); background: #f7f8f5; color: var(--eot-ink); font-family: "Hahmlet", Georgia, serif; font-size: 0.73rem; cursor: pointer; }
.eot-answer-key fieldset button:hover { border-color: var(--eot-teal); }
.eot-answer-key fieldset strong { color: var(--eot-teal); font-family: "IBM Plex Mono", monospace; }
.eot-study-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; color: var(--eot-muted); font-size: 0.72rem; }
.eot-study-footer a { color: var(--eot-navy); }

@media (max-width: 820px) {
  .eot-intro { align-items: start; flex-direction: column; }
  .eot-overall { width: 100%; }
  .eot-workspace { grid-template-columns: 1fr; }
  .eot-rail { display: grid; grid-template-columns: repeat(4, minmax(155px, 1fr)); gap: 0.5rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--eot-line); }
  .eot-day-button { margin: 0; }
  .eot-rail-note { display: none; }
}

@media (max-width: 620px) {
  .eot-topbar { padding: 0 1rem; }
  .eot-topbar-meta { display: none; }
  .eot-topbar-tools { margin-left: auto; }
  .eot-cloud-trigger { font-size: .62rem; }
  .eot-app { padding: 1.35rem 0.75rem 3rem; }
  .eot-study-pane { padding: 1rem; }
  .eot-study-head { flex-direction: column; gap: 1rem; }
  .eot-session-clock { width: 100%; text-align: left; }
  .eot-question-actions { align-items: stretch; flex-direction: column; }
  .eot-primary-button { width: 100%; }
  .eot-answer-key fieldset button { flex: 1 1 100%; }
}

/* Optional PIN session */
.eot-cloud-dialog {
  width: min(620px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid #aebcc1;
  border-top: 5px solid var(--eot-navy);
  border-radius: 0;
  background: var(--eot-paper);
  color: var(--eot-ink);
  box-shadow: 0 30px 90px rgba(24, 34, 40, .3);
  font-family: "Hahmlet", Georgia, serif;
}
.eot-cloud-dialog::backdrop { background: rgba(15, 26, 32, .58); backdrop-filter: blur(3px); }
.eot-cloud-dialog [hidden] { display: none !important; }
.eot-cloud-dialog-body { padding: clamp(1.35rem, 4vw, 2.5rem); }
.eot-cloud-dialog h2 { margin: .15rem 2.5rem .6rem 0; color: var(--eot-ink); font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 400; line-height: 1.15; }
.eot-cloud-dialog h3 { margin: 0 0 .55rem; font-size: 1.12rem; font-weight: 600; }
.eot-cloud-dialog p { line-height: 1.55; }
.eot-cloud-close-form { position: sticky; z-index: 2; top: 0; height: 0; margin: 0; text-align: right; }
.eot-cloud-close { width: 42px; height: 42px; margin: .7rem .7rem 0 0; border: 1px solid transparent; background: var(--eot-paper); color: var(--eot-muted); font: 300 1.55rem/1 "IBM Plex Mono", monospace; cursor: pointer; }
.eot-cloud-close:hover, .eot-cloud-close:focus-visible { border-color: var(--eot-line); color: var(--eot-ink); }
.eot-cloud-privacy { margin: 1.2rem 0 1.45rem; padding: 1rem; border-left: 3px solid #b4772d; background: #fff7e9; color: #65461f; font-size: .8rem; line-height: 1.6; }
.eot-cloud-privacy strong { font-weight: 600; }
#eot-cloud-entry > label { display: block; margin-bottom: .42rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .67rem; letter-spacing: .06em; text-transform: uppercase; }
.eot-cloud-pin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
#eot-cloud-pin { width: 100%; min-width: 0; padding: .68rem .78rem; border: 1px solid #aebbc0; border-radius: 0; background: white; color: var(--eot-ink); font: 500 1.05rem/1.2 "IBM Plex Mono", monospace; letter-spacing: .23em; }
#eot-cloud-pin:focus { outline: 2px solid rgba(33, 79, 115, .22); border-color: var(--eot-navy); }
#eot-cloud-pin[aria-invalid="true"] { border-color: #a23c35; outline-color: rgba(162, 60, 53, .18); }
.eot-cloud-hint, .eot-cloud-meta, .eot-cloud-retention { margin: .5rem 0 0; color: var(--eot-muted); font-size: .72rem; }
.eot-cloud-or { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .62rem; text-transform: uppercase; }
.eot-cloud-or::before, .eot-cloud-or::after { content: ""; flex: 1; height: 1px; background: var(--eot-line); }
.eot-cloud-code-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: .3rem 0 .1rem; padding: .85rem 1rem; border: 1px solid var(--eot-line); background: #f4f7f5; }
#eot-cloud-code { color: var(--eot-navy); font: 500 clamp(1.6rem, 6vw, 2.3rem)/1 "IBM Plex Mono", monospace; letter-spacing: .15em; }
.eot-cloud-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.1rem; }
.eot-cloud-actions .eot-text-button { margin: 0 0 0 auto; }
.eot-cloud-confirm { margin-top: 1.2rem; padding: 1rem; border: 1px solid #c9d4d7; background: #f5f7f6; }
.eot-cloud-confirm p { margin: .4rem 0 0; color: var(--eot-muted); font-size: .79rem; }
.eot-cloud-message { min-height: 1.1rem; margin: 1rem 0 0; color: #245b50; font-size: .76rem; }
.eot-cloud-message.is-error { padding: .7rem .8rem; border-left: 3px solid #a23c35; background: #fff0ee; color: #7a2c28; }
.eot-cloud-retention { padding-top: .9rem; border-top: 1px solid var(--eot-line); }
.eot-danger-button { padding: .63rem .85rem; border: 1px solid #923b35; border-radius: 0; background: #923b35; color: white; font-family: "IBM Plex Mono", monospace; font-size: .68rem; cursor: pointer; }
.eot-danger-button:hover { background: #762e29; }
.eot-danger-link { color: #873831; }
.eot-cloud-dialog button:disabled, .eot-cloud-dialog input:disabled { cursor: wait; opacity: .58; }

@media (max-width: 520px) {
  .eot-cloud-dialog { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
  .eot-cloud-dialog-body { padding: 1.2rem 1rem 1.4rem; }
  .eot-cloud-pin-row { grid-template-columns: 1fr; }
  .eot-cloud-pin-row .eot-primary-button, #eot-cloud-create { width: 100%; }
  .eot-cloud-code-row { align-items: stretch; flex-direction: column; }
  .eot-cloud-code-row .eot-secondary-button { width: 100%; }
  .eot-cloud-actions { align-items: stretch; flex-direction: column; }
  .eot-cloud-actions > button { width: 100%; }
  .eot-cloud-actions .eot-text-button { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aws-eot-shell *, .aws-eot-shell *::before, .aws-eot-shell *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Full application views */
.eot-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  min-width: min(100%, 330px);
  border: 1px solid var(--eot-line);
  background: var(--eot-paper);
  box-shadow: 0 12px 34px rgba(24, 34, 40, 0.07);
}

.eot-metrics > div {
  padding: 0.85rem 1rem;
  border-left: 1px solid var(--eot-line);
}

.eot-metrics > div:first-child { border-left: 3px solid var(--eot-teal); }
.eot-metrics span, .eot-metrics small { display: block; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.6rem; line-height: 1.35; text-transform: uppercase; }
.eot-metrics strong { display: block; margin: 0.05rem 0; color: var(--eot-ink); font-family: "IBM Plex Mono", monospace; font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.eot-progress-line { width: min(560px, 100%); height: 3px; margin-top: 0.85rem; overflow: hidden; background: #e2e7e8; }
.eot-progress-line span { display: block; height: 100%; background: var(--eot-teal); }
.eot-rail-heading { margin: 0.2rem 0.75rem 0.85rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; letter-spacing: .08em; text-transform: uppercase; }
.eot-mini-progress { display: block; width: 100%; height: 2px; margin-top: 0.45rem; overflow: hidden; background: #dfe5e5; }
.eot-mini-progress > i { display: block; height: 100%; background: var(--eot-teal); }
.eot-rail-note strong { color: var(--eot-ink); font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.eot-mix-button { width: calc(100% - 1.5rem); margin: 1rem 0.75rem 0; padding: .65rem .75rem; border: 1px solid var(--eot-navy); border-radius: 0; background: transparent; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .66rem; cursor: pointer; text-transform: uppercase; }
.eot-mix-button:hover { background: var(--eot-navy); color: white; }

.eot-mode-tabs { display: flex; gap: 0; margin: 1.35rem 0 1.1rem; overflow-x: auto; border-bottom: 1px solid var(--eot-line); }
.eot-mode-tabs button { position: relative; flex: 0 0 auto; padding: .72rem 1rem; border: 0; background: transparent; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .68rem; cursor: pointer; text-transform: uppercase; }
.eot-mode-tabs button::after { content: ""; position: absolute; right: 1rem; bottom: -1px; left: 1rem; height: 2px; background: transparent; }
.eot-mode-tabs button:hover { color: var(--eot-ink); }
.eot-mode-tabs button.is-active { color: var(--eot-navy); font-weight: 600; }
.eot-mode-tabs button.is-active::after { background: var(--eot-navy); }
.eot-mode-view { min-height: 470px; }

.eot-session-clock > i { display: block; height: 2px; margin-bottom: .45rem; overflow: hidden; background: #dce3e4; }
.eot-session-clock > i > i { display: block; height: 100%; background: var(--eot-teal); }
.eot-session-clock > div { display: flex; justify-content: flex-end; gap: .65rem; }
.eot-session-clock.is-running { min-width: 190px; }

.eot-practice-toolbar, .eot-lab-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eot-filter-group { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--eot-line); background: #f5f7f5; }
.eot-filter-group button { padding: .52rem .75rem; border: 0; border-left: 1px solid var(--eot-line); background: transparent; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .63rem; cursor: pointer; text-transform: uppercase; }
.eot-filter-group button:first-child { border-left: 0; }
.eot-filter-group button:hover { color: var(--eot-ink); }
.eot-filter-group button.is-active { background: var(--eot-navy); color: white; }
.eot-toolbar-count { display: flex; align-items: center; gap: .55rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .63rem; }
.eot-toolbar-count button, .eot-study-footer button { padding: 0; border: 0; background: none; color: var(--eot-navy); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.eot-inline-notice { margin-bottom: 1rem; padding: .7rem .85rem; border-left: 3px solid #b4772d; background: #fff7e9; color: #68491f; font-size: .75rem; line-height: 1.45; }

.eot-question-status { margin-left: auto; padding: .24rem .45rem; border: 1px solid var(--eot-line); color: var(--eot-muted); }
.eot-question-status.is-mastered { border-color: #9ebdb8; background: #eef7f2; color: #245b50; }
.eot-question-status.needs-retest { border-color: #d6b894; background: #fff7e9; color: #794d1a; }
.eot-question-hint { margin: -.6rem 0 1rem; padding: .7rem .85rem; border-left: 2px solid var(--eot-teal); background: #f2f7f5; color: var(--eot-muted); font-size: .78rem; line-height: 1.5; }
.eot-question-actions > div { display: flex; flex-wrap: wrap; gap: .55rem; }
.eot-primary-button:disabled { cursor: default; opacity: .62; }
.eot-secondary-button { padding: .63rem .85rem; border: 1px solid #b8c4c8; border-radius: 0; background: transparent; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .68rem; cursor: pointer; }
.eot-secondary-button:hover { border-color: var(--eot-navy); background: #f4f7f8; }
.eot-text-button { margin-top: .8rem; padding: 0; border: 0; background: transparent; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .67rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.eot-answer-key fieldset button.is-selected { border-color: var(--eot-teal); background: #eaf4f0; box-shadow: inset 0 0 0 1px var(--eot-teal); }
.eot-correction-box { margin-top: 1rem; padding: 1rem; border: 1px solid #dfc7a8; background: #fffaf0; }
.eot-correction-box textarea { min-height: 70px; margin-bottom: .7rem; }
.eot-mastered-note { margin-top: 1rem !important; padding: .7rem .85rem; border-left: 3px solid var(--eot-teal); background: #eef7f2; color: #245b50 !important; font-size: .74rem !important; }
.eot-question-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 1rem; }
.eot-question-nav > button:last-child { justify-self: end; }
.eot-question-nav > div { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.eot-question-nav button { padding: .55rem .7rem; border: 1px solid var(--eot-line); background: #f8f8f4; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .63rem; cursor: pointer; }
.eot-question-nav button:hover:not(:disabled) { border-color: var(--eot-navy); }
.eot-question-nav button:disabled { cursor: default; opacity: .38; }
.eot-empty-state { display: grid; min-height: 390px; place-items: center; align-content: center; padding: 2rem; border: 1px dashed var(--eot-line); text-align: center; }
.eot-empty-state > span { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: .8rem; border-radius: 50%; background: #eaf4f0; color: var(--eot-teal); font-family: "IBM Plex Mono", monospace; font-size: 1.3rem; }
.eot-empty-state h3 { margin: 0; font-size: 1.3rem; }
.eot-empty-state p { margin: .4rem 0 1.1rem; color: var(--eot-muted); font-size: .82rem; }

.eot-diagram { margin: 1.15rem 0; padding: .85rem; overflow: hidden; border: 1px dashed #afc0c6; background: #fbfcfa; }
.eot-diagram figcaption { margin-bottom: .65rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; }
.eot-diagram-flow { display: flex; align-items: stretch; gap: .35rem; overflow-x: auto; padding-bottom: .2rem; }
.eot-diagram-flow span { display: flex; min-width: 94px; flex: 1 0 94px; align-items: center; gap: .42rem; padding: .58rem .55rem; border: 1px solid var(--eot-line); background: white; color: var(--eot-ink); font-family: "IBM Plex Mono", monospace; font-size: .61rem; line-height: 1.35; }
.eot-diagram-flow span b { color: var(--eot-teal); font-size: .53rem; }
.eot-diagram-flow span i { color: #8b9699; font-style: normal; letter-spacing: -.04em; }
.eot-diagram-flow em { align-self: center; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-style: normal; }
.eot-diagram-branch { display: flex; justify-content: space-around; gap: 1rem; margin: .65rem 12% 0; padding-top: .6rem; border-top: 1px solid var(--eot-teal); color: var(--eot-teal); font-size: .63rem; }

.eot-lesson-layout { display: grid; grid-template-columns: minmax(175px, .62fr) minmax(0, 2fr); gap: 1.35rem; }
.eot-section-list { max-height: 650px; overflow-y: auto; border: 1px solid var(--eot-line); background: #f5f7f5; }
.eot-section-list button { width: 100%; display: grid; grid-template-columns: 25px minmax(0,1fr); gap: .1rem .55rem; padding: .68rem .65rem; border: 0; border-bottom: 1px solid var(--eot-line); background: transparent; color: var(--eot-ink); text-align: left; cursor: pointer; }
.eot-section-list button > span { grid-row: 1 / span 2; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .57rem; }
.eot-section-list button strong { font-size: .72rem; font-weight: 400; line-height: 1.35; }
.eot-section-list button small { color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .55rem; text-transform: uppercase; }
.eot-section-list button:hover { background: white; }
.eot-section-list button.is-active { border-left: 3px solid var(--eot-navy); background: white; }
.eot-lesson { min-width: 0; padding: clamp(1rem, 2.4vw, 1.8rem); border: 1px solid var(--eot-line); background: white; }
.eot-lesson > header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--eot-line); }
.eot-lesson > header .eot-micro-label { grid-column: 1 / -1; margin-bottom: -.4rem; }
.eot-lesson > header h3 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 400; }
.eot-lesson-copy { padding-top: .35rem; }
.eot-lesson-copy p { margin: .75rem 0; color: #313b3f; font-size: .84rem; line-height: 1.68; }
.eot-lesson-copy .eot-lesson-lead { color: var(--eot-muted); font-size: .95rem; }
.eot-lesson-copy .eot-lesson-prompt { padding: .6rem .75rem; border-left: 2px solid var(--eot-navy); background: #f5f7f8; color: var(--eot-ink); font-weight: 400; }
.eot-lesson-copy h4 { margin: 1.4rem 0 .5rem; color: var(--eot-ink); font-size: 1.02rem; font-weight: 600; }
.eot-lesson-copy h5 { margin: 1.1rem 0 .4rem; color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; }
.eot-lesson-copy ul, .eot-lesson-copy ol { margin: .7rem 0 .9rem 1.15rem; }
.eot-lesson-copy li { margin: .35rem 0; padding-left: .25rem; color: #313b3f; font-size: .8rem; line-height: 1.55; }
.eot-lesson-callout { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid #b8cccf; border-left: 4px solid var(--eot-teal); background: #eff6f4; }
.eot-lesson-callout strong { font-size: .82rem; }
.eot-lesson-callout p { margin: .2rem 0 0; color: #40595a; font-size: .76rem; }
.eot-checklist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .45rem; margin: .75rem 0; }
.eot-checklist label, .eot-story-rubric label { display: flex; align-items: start; gap: .5rem; padding: .55rem .6rem; border: 1px solid var(--eot-line); background: #fafbf9; color: var(--eot-ink); font-size: .72rem; line-height: 1.45; cursor: pointer; }
.eot-checklist input, .eot-story-rubric input { margin-top: .15rem; accent-color: var(--eot-teal); }
.eot-table-wrap { width: 100%; margin: .8rem 0; overflow-x: auto; }
.eot-table-wrap table { width: 100%; border-collapse: collapse; font-family: "IBM Plex Mono", monospace; font-size: .62rem; line-height: 1.45; }
.eot-table-wrap th, .eot-table-wrap td { min-width: 84px; padding: .5rem .55rem; border: 1px solid var(--eot-line); text-align: left; vertical-align: top; }
.eot-table-wrap th { background: var(--eot-navy); color: white; font-weight: 500; }
.eot-table-wrap tr:nth-child(odd) td { background: #f7f8f6; }
.eot-inline-question { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; margin: .45rem 0; padding: .65rem; border: 1px solid var(--eot-line); background: #fbfcfa; color: var(--eot-ink); text-align: left; cursor: pointer; }
.eot-inline-question > span, .eot-inline-question > small { color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .59rem; text-transform: uppercase; }
.eot-inline-question strong { font-size: .72rem; font-weight: 400; line-height: 1.4; }
.eot-inline-question:hover { border-color: var(--eot-navy); background: white; }
.eot-sequence-break { margin: 1.3rem 0; border: 0; border-top: 1px dashed var(--eot-line); }
.eot-sources { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--eot-line); }
.eot-sources summary, .eot-followups summary { color: var(--eot-navy); font-family: "IBM Plex Mono", monospace; font-size: .68rem; cursor: pointer; text-transform: uppercase; }
.eot-sources p { color: var(--eot-muted); font-size: .72rem; line-height: 1.5; }
.eot-sources ul { columns: 2; margin: .6rem 0 1rem 1rem; }
.eot-sources li { break-inside: avoid; margin: .3rem 0; font-size: .68rem; }
.eot-sources a { color: var(--eot-navy); }

.eot-plan-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--eot-line); background: #f6f8f6; }
.eot-plan-intro h3 { margin: 0; font-size: 1.35rem; }
.eot-plan-intro p { margin: .3rem 0 0; color: var(--eot-muted); font-size: .76rem; }
.eot-plan-intro > div:last-child { text-align: right; }
.eot-plan-intro > div:last-child strong, .eot-plan-intro > div:last-child span { display: block; font-family: "IBM Plex Mono", monospace; }
.eot-plan-intro > div:last-child strong { color: var(--eot-teal); font-size: 1.2rem; }
.eot-plan-intro > div:last-child span { color: var(--eot-muted); font-size: .6rem; text-transform: uppercase; }
.eot-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.eot-plan-card { padding: 1rem; border: 1px solid var(--eot-line); background: white; }
.eot-plan-card.is-complete { border-color: #aec7c1; background: #f1f8f4; }
.eot-plan-card > div:first-child { display: flex; justify-content: space-between; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .61rem; text-transform: uppercase; }
.eot-plan-card h4 { margin: .75rem 0 .35rem; font-size: 1rem; font-weight: 400; }
.eot-plan-card p { min-height: 3.6em; margin: 0 0 .9rem; color: var(--eot-muted); font-size: .71rem; line-height: 1.55; }
.eot-plan-card > div:last-child { display: flex; flex-wrap: wrap; gap: .5rem; }

.eot-oral-card { padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--eot-line); border-top: 4px solid var(--eot-teal); background: white; }
.eot-oral-card > div:first-child { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.eot-oral-card h3 { max-width: 850px; margin: 0 0 1rem; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 400; line-height: 1.45; }
.eot-oral-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.eot-oral-card label, .eot-star-grid label > span { display: block; margin-bottom: .35rem; color: var(--eot-muted); font-family: "IBM Plex Mono", monospace; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.eot-oral-card textarea, .eot-star-grid textarea { width: 100%; resize: vertical; padding: .75rem; border: 1px solid #bec9cc; border-radius: 0; background: #fffefa; color: var(--eot-ink); font: 400 .8rem/1.55 "Hahmlet", Georgia, serif; }
.eot-oral-card textarea:focus, .eot-star-grid textarea:focus { outline: 2px solid rgba(33,79,115,.2); border-color: var(--eot-navy); }
.eot-oral-target { margin-top: .9rem; padding: .8rem; border-left: 3px solid var(--eot-teal); background: #eef7f2; }
.eot-oral-target p { margin: 0; color: #294d47; font-size: .77rem; line-height: 1.55; }
.eot-star-workbench { margin-top: 1rem; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--eot-line); background: #f8f8f4; }
.eot-star-workbench > header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eot-star-workbench h3 { margin: 0; font-size: 1.25rem; }
.eot-star-workbench > header > div:last-child { text-align: right; }
.eot-star-workbench > header > div:last-child strong, .eot-star-workbench > header > div:last-child span { display: block; font-family: "IBM Plex Mono", monospace; }
.eot-star-workbench > header > div:last-child strong { color: var(--eot-teal); font-size: 1.25rem; }
.eot-star-workbench > header > div:last-child span { color: var(--eot-muted); font-size: .58rem; text-transform: uppercase; }
.eot-star-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.eot-story-rubric { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .45rem; margin-top: 1rem; }
.eot-followups { margin-top: 1rem; padding: .85rem; border: 1px solid var(--eot-line); background: white; }
.eot-followups ul { columns: 2; margin: .7rem 0 .2rem 1rem; }
.eot-followups li { margin: .35rem 0; break-inside: avoid; color: var(--eot-muted); font-size: .72rem; line-height: 1.45; }

.eot-method-note { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; max-width: 1440px; margin: 1rem auto 0; padding: 0 3vw 3rem; }
.eot-method-note > div { padding: 1rem; border: 1px solid var(--eot-line); background: rgba(255,254,250,.74); }
.eot-method-note p { margin: 0; color: var(--eot-muted); font-size: .72rem; line-height: 1.55; }
.eot-loading, .eot-error { display: grid; min-height: calc(100vh - 58px); place-items: center; align-content: center; padding: 2rem; text-align: center; }
.eot-loading h1, .eot-error h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 400; }
.eot-loading p:last-child, .eot-error p { color: var(--eot-muted); }

@media (max-width: 1050px) {
  .eot-lesson-layout { grid-template-columns: 1fr; }
  .eot-section-list { display: flex; max-height: none; overflow-x: auto; }
  .eot-section-list button { min-width: 190px; border-right: 1px solid var(--eot-line); border-bottom: 0; }
  .eot-section-list button.is-active { border-left: 0; border-top: 3px solid var(--eot-navy); }
}

@media (max-width: 820px) {
  .eot-metrics { width: 100%; }
  .eot-practice-toolbar, .eot-lab-controls { align-items: stretch; flex-direction: column; }
  .eot-toolbar-count { justify-content: space-between; }
  .eot-plan-grid { grid-template-columns: 1fr; }
  .eot-method-note { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .eot-metrics { grid-template-columns: repeat(3, 1fr); min-width: 0; }
  .eot-metrics > div { padding: .7rem .55rem; }
  .eot-metrics strong { font-size: 1.15rem; }
  .eot-question-meta { align-items: flex-start; flex-wrap: wrap; }
  .eot-question-status { margin-left: 0; }
  .eot-question-actions > div { width: 100%; }
  .eot-question-actions .eot-secondary-button { width: 100%; }
  .eot-question-nav { grid-template-columns: 1fr 1fr; }
  .eot-question-nav > div { grid-column: 1 / -1; grid-row: 2; }
  .eot-checklist, .eot-star-grid, .eot-story-rubric, .eot-method-note { grid-template-columns: 1fr; }
  .eot-lesson > header { grid-template-columns: 1fr; }
  .eot-sources ul, .eot-followups ul { columns: 1; }
  .eot-plan-intro, .eot-star-workbench > header { align-items: flex-start; flex-direction: column; }
  .eot-plan-intro > div:last-child, .eot-star-workbench > header > div:last-child { text-align: left; }
}
