/* Codon Translator and Mutation Lab. Classes are zsa-cl-. Load after zsa-base.css and zsa-lab-a11y.css.
   The same warm look as Pedigree Detective: cream page, a dark bench that holds the molecules on cream paper, white task
   cards with a teal top. Every base is a letter inside its own shape (A pentagon, T square, U cup with stripes, G hexagon,
   C circle); beads carry their three-letter name; changed codons are dashed and named in text. Text contrast is at least
   4.5:1 (checked by axe in the tests). */
.zsa-cl {--zsa-max-width:1180px; --cl-ink:#10233f; --cl-paper:#fffdf7; --cl-board:#1d2a39; --cl-board-2:#263548; --cl-amber:#b4490a;
  --cl-teal:#0d6466; --cl-green:#166534; --cl-line:#d9d2c2; --cl-A:#c2410c; --cl-T:#1d4ed8; --cl-U:#1d4ed8; --cl-G:#15803d; --cl-C:#7e22ce;
  background:#f7f3ea; color:#1e293b; font-size:17px;}
body:has(.zsa-cl) {background:#f7f3ea;}
.zsa-cl [hidden] {display:none!important;}
.zsa-cl h2 {font-size:clamp(22px,2.2vw,28px); font-weight:650; margin:0 0 8px; letter-spacing:-.02em;}
.zsa-cl h3 {font-size:18px; font-weight:650; margin:12px 0 8px; display:flex; align-items:center; gap:8px;}
.zsa-cl p {margin:8px 0;}
.zsa-cl .zsa-eyebrow {color:var(--cl-teal); margin:0 0 2px;}
.zsa-cl-icon {width:20px; height:20px; flex:0 0 20px;}
.zsa-cl .zsa-btn {display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 16px; font-size:16px; line-height:1.25; border-radius:10px;}
.zsa-cl .zsa-btn--primary {background:var(--cl-teal); border-color:var(--cl-teal);}
.zsa-cl .zsa-btn--primary:hover:not(:disabled) {background:#0a4a4c;}
.zsa-cl-row {display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:14px 0 4px;}
.zsa-cl-small {font-size:15px; color:#475569;}
.zsa-cl-lead {font-size:18px; color:#1e293b;}
.zsa-cl-mono {font-family:ui-monospace,"Cascadia Mono","Segoe UI Mono",Menlo,Consolas,monospace; font-size:16px; overflow-wrap:anywhere; color:var(--cl-ink);}

/* Gene bar */
.zsa-cl-casebar {display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 18px; margin:10px 0 12px;}
.zsa-cl-levels {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; border:0; margin:0; padding:0; flex:1 1 520px; min-width:0;}
.zsa-cl-levels legend {font-weight:650; color:var(--cl-ink); margin-bottom:6px; font-size:15px; padding:0;}
.zsa-cl-level {display:flex; align-items:center; gap:10px; min-height:56px; padding:8px 12px; border:2px solid #cfc6b2; border-radius:12px; background:white; cursor:pointer; line-height:1.25;}
.zsa-cl-level:hover {border-color:#8a7f69;}
.zsa-cl-level:has(input:checked) {border-color:var(--cl-ink); background:#eef2f9; box-shadow:inset 0 0 0 1px var(--cl-ink);}
.zsa-cl-level input {width:20px; height:20px; flex:0 0 20px; margin:0; accent-color:var(--cl-ink);}
.zsa-cl-stars {display:flex; color:var(--cl-amber);}
.zsa-cl-stars .zsa-cl-icon {width:15px; height:15px; flex-basis:15px;}
.zsa-cl-level-words {display:flex; flex-direction:column; font-size:14px; color:#475569;}
.zsa-cl-level-words strong {font-size:16px; color:var(--cl-ink);}
.zsa-cl-casebar-side {display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px;}
.zsa-cl-seed {margin:0; font-size:15px; color:#475569; font-variant-numeric:tabular-nums;}

/* Progress track */
.zsa-cl-tracknav {margin:0 0 14px;}
.zsa-cl-track {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; list-style:none; margin:0; padding:0;}
.zsa-cl .zsa-cl-trackstep {position:relative; width:100%; min-height:56px; display:flex; align-items:center; gap:8px; padding:6px 10px; border:2px solid #cfc6b2; border-radius:12px; background:white; color:var(--cl-ink); font:inherit; font-size:15px; text-align:left; line-height:1.2;}
.zsa-cl-trackstep:hover {background:#fbf8f1;}
.zsa-cl-trackstep[aria-current="step"] {background:var(--cl-ink); border-color:var(--cl-ink); color:white;}
.zsa-cl-trackstep[aria-disabled="true"] {border-style:dashed; color:#5b6472; background:#f3efe6; cursor:not-allowed;}
.zsa-cl-tracknum {display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px; height:28px; border-radius:50%; border:2px solid currentColor; font-weight:700;}
.zsa-cl-trackdone {position:absolute; top:-9px; right:-7px; display:inline-flex; width:22px; height:22px; border-radius:50%; background:var(--cl-green); color:white; border:2px solid white; align-items:center; justify-content:center;}
.zsa-cl-trackdone .zsa-cl-icon {width:14px; height:14px; flex-basis:14px;}

/* The stage: a dark bench with the molecules on cream paper */
.zsa-cl-stage {background:var(--cl-board); background-image:radial-gradient(#ffffff0d 1px, transparent 1.5px); background-size:18px 18px; border-radius:16px; padding:14px; color:#f8f1e1; box-shadow:0 10px 26px #10233f33; margin:0 0 18px; min-width:0;}
.zsa-cl .zsa-cl-stagetitle {color:#fffaf0; margin:0 4px 10px; font-size:clamp(19px,2vw,24px);}
.zsa-cl-stagenote {margin:10px 4px 0; color:#f3ead6; font-size:15px;}
.zsa-cl-stagenote--shift {color:#fde9c4; border-left:4px solid #f2c36b; padding-left:10px;}
.zsa-cl-rowkey {list-style:none; margin:0 0 10px; padding:0 4px; display:flex; flex-wrap:wrap; gap:4px 18px; font-size:14px; color:#f3ead6;}
.zsa-cl-rowkey li {display:flex; align-items:center; gap:8px;}
.zsa-cl-rowkey-swatch {display:inline-block; width:22px; height:8px; border-radius:4px;}
.zsa-cl-rowkey-coding .zsa-cl-rowkey-swatch {background:#9aa8bb;}
.zsa-cl-rowkey-template .zsa-cl-rowkey-swatch {background:#f2c36b;}
.zsa-cl-rowkey-mrna .zsa-cl-rowkey-swatch {background:repeating-linear-gradient(90deg,#fb923c 0 5px,transparent 5px 8px);}
.zsa-cl-strandwrap {position:relative; overflow:clip; overflow-clip-margin:12px; background:var(--cl-paper); border-radius:10px; padding:12px 8px; box-shadow:0 2px 0 #00000026;}
.zsa-cl-strands {display:flex; flex-wrap:wrap; justify-content:center; gap:14px 10px;}
.zsa-cl-codon {position:relative; display:flex; gap:3px; padding:4px; border-radius:10px; border:2px solid transparent;}
.zsa-cl-codon--start {border-color:#86efac; background:#f0fdf4;}
.zsa-cl-codon--changed {border:3px dashed var(--cl-amber); background:#fff7ed;}
.zsa-cl-col {display:flex; flex-direction:column; gap:3px; position:relative;}
.zsa-cl-col--cut::before,.zsa-cl-col--cutafter::after {content:""; position:absolute; top:-4px; bottom:-4px; width:0; border-left:4px dashed #b91c1c;}
.zsa-cl-col--cut::before {left:-4px;} .zsa-cl-col--cutafter::after {right:-4px;}
.zsa-cl-base {display:inline-flex; width:48px; height:48px; border-radius:8px; position:relative;}
.zsa-cl-base svg {width:48px; height:48px;}
.zsa-cl-base--coding {border-bottom:4px solid #9aa8bb;}
.zsa-cl-base--template {border-top:4px solid #f2c36b;}
.zsa-cl-base--mrna {border-top:4px dashed #fb923c;}
.zsa-cl-base:focus-visible {outline:var(--zsa-focus-ring); outline-offset:2px;}
.zsa-cl-base--live {cursor:pointer;}
.zsa-cl-base--live:hover {background:#f3ead6;}
.zsa-cl-base--live[aria-pressed="true"] {background:#dbeafe; box-shadow:0 0 0 3px #1d4ed8;}
.zsa-cl-base--live[aria-disabled="true"] {opacity:.55; cursor:not-allowed;}
.zsa-cl-base--current {box-shadow:0 0 0 3px var(--cl-teal);}
.zsa-cl-base--fresh::after {content:"★"; position:absolute; top:-10px; right:-8px; width:20px; height:20px; border-radius:50%; background:var(--cl-amber); color:white; font-size:12px; line-height:20px; text-align:center;}
.zsa-cl-base--fresh {box-shadow:0 0 0 3px var(--cl-amber);}
.zsa-cl-shape {display:block;}
.zsa-cl-shape--A .zsa-cl-fill {fill:var(--cl-A);} .zsa-cl-shape--T .zsa-cl-fill {fill:var(--cl-T);}
.zsa-cl-shape--U .zsa-cl-fill {fill:var(--cl-U);} .zsa-cl-shape--G .zsa-cl-fill {fill:var(--cl-G);} .zsa-cl-shape--C .zsa-cl-fill {fill:var(--cl-C);}
.zsa-cl-stripe {stroke:#93c5fd; stroke-width:3; fill:none;}
.zsa-cl-letter {font:800 22px var(--zsa-font); fill:white;}
.zsa-cl-empty {fill:white; stroke:#94a3b8; stroke-width:2.5; stroke-dasharray:5 4;}
@media (forced-colors:active) {.zsa-cl-fill {fill:Canvas; stroke:CanvasText; stroke-width:2;} .zsa-cl-letter {fill:CanvasText;}}

/* The polymerase and the ribosome slide along the message */
.zsa-cl-mover {position:absolute; left:0; top:0; pointer-events:none; transition:transform .45s ease-in-out;}
.zsa-cl-poly-body {fill:#14b8a633; stroke:var(--cl-teal); stroke-width:4;}
.zsa-cl-poly-mark {stroke:var(--cl-teal); stroke-width:3; stroke-dasharray:4 4;}
.zsa-cl-ribo-large {fill:#a855f722; stroke:#6b21a8; stroke-width:4;}
.zsa-cl-ribo-small {fill:#a855f714; stroke:#6b21a8; stroke-width:4;}

/* Step 2: codons, tRNA and the chain */
.zsa-cl-mrna {display:flex; flex-wrap:wrap; justify-content:center; gap:22px 14px; padding:14px 6px 6px;}
.zsa-cl-mcodon {position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px; border-radius:12px; border:2px solid #e2dccd; background:white;}
.zsa-cl-mcodon:focus-visible {outline:var(--zsa-focus-ring); outline-offset:3px;}
.zsa-cl-mcodon--start {border-color:var(--cl-green);}
.zsa-cl-mcodon--stop {border-color:#b91c1c;}
.zsa-cl-mcodon--current {border-color:var(--cl-ink); box-shadow:0 0 0 2px var(--cl-ink);}
.zsa-cl-mbases {display:flex; gap:2px;}
.zsa-cl-mbases svg {width:40px; height:40px;}
.zsa-cl-tag {position:absolute; top:-13px; left:50%; transform:translateX(-50%); padding:0 8px; border-radius:999px; font-size:12px; font-weight:700; color:white; background:var(--cl-green); white-space:nowrap;}
.zsa-cl-mcodon--stop .zsa-cl-tag {background:#b91c1c;}
.zsa-cl-trna {margin-top:10px; display:flex; flex-direction:column; align-items:center; min-height:44px; min-width:100px; padding:2px 6px; border-top:3px solid #6b21a8; border-radius:0 0 10px 10px; background:#f5f3ff; color:#4c1d95; font-size:13px; line-height:1.2;}
.zsa-cl-trna--waiting {background:transparent; border-top-style:dotted; border-top-color:#cbd5e1;}
.zsa-cl-trna-label {font-weight:700;}
.zsa-cl-anti {font:700 17px ui-monospace,Menlo,Consolas,monospace; letter-spacing:.2em;}
.zsa-cl-chainrow {margin:12px 0 0; background:var(--cl-paper); border-radius:10px; padding:8px 10px;}
.zsa-cl-chainlabel {margin:0 0 4px; color:var(--cl-ink); font-weight:650; font-size:15px;}
.zsa-cl-chain {display:flex; flex-wrap:wrap; align-items:center; margin:0; min-height:56px;}
.zsa-cl-chain .zsa-cl-bead + .zsa-cl-bead::before {content:""; position:absolute; left:-12px; top:50%; width:12px; height:4px; background:#64748b;}
.zsa-cl-chain .zsa-cl-bead + .zsa-cl-bead {margin-left:12px;}
.zsa-cl-chain-empty {color:#475569; font-size:15px;}
.zsa-cl-bead {position:relative; display:inline-flex; width:52px; height:52px; flex:0 0 52px;}
.zsa-cl-bead svg {width:100%; height:100%;}
.zsa-cl-bead-fill {stroke:#334155; stroke-width:2.5;}
.zsa-cl-bead-stop {fill:#fee2e2; stroke:#b91c1c;}
.zsa-cl-bead-text {font:800 17px var(--zsa-font); fill:#10233f;}
.zsa-cl-bead-text--stop {font-size:14px; fill:#7f1d1d;}
.zsa-cl-bead--new {animation:zsa-cl-drop .5s ease-out;}
.zsa-cl-bead--reveal {animation:zsa-cl-pop .45s ease-out both;}
.zsa-cl-finished {border:1px solid var(--cl-line); border-radius:14px; padding:10px 12px; background:#fffdf7;}

/* Layout: the task card, then the codon chart and the history */
.zsa-cl-layout {display:grid; gap:18px; align-items:start;}
@media (min-width:960px) {.zsa-cl-layout {grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);}}
.zsa-cl-taskcard {background:white; border:1px solid var(--cl-line); border-top:6px solid var(--cl-teal); border-radius:16px; padding:18px; box-shadow:0 6px 20px #0b2a5b0f; min-width:0;}
.zsa-cl-taskcard h2:focus-visible,.zsa-cl-taskcard h3:focus-visible {outline:var(--zsa-focus-ring); outline-offset:4px;}
.zsa-cl-side {display:grid; gap:14px; min-width:0;}
.zsa-cl-progress {display:flex; align-items:center; gap:10px; font-weight:600; color:var(--cl-ink);}
.zsa-cl-progress progress {width:160px; height:12px; accent-color:var(--cl-green);}
.zsa-cl-keypad {border:0; margin:12px 0; padding:0; min-width:0;}
.zsa-cl-keypad legend,.zsa-cl-choices legend,.zsa-cl-bank legend,.zsa-cl-finder-set legend {font-weight:650; color:var(--cl-ink); padding:0; margin-bottom:6px;}
.zsa-cl-keys {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px;}
.zsa-cl .zsa-cl-key {flex-direction:column; gap:2px; min-height:76px; padding:6px 4px; border:2px solid #cfd8e3; color:var(--cl-ink);}
.zsa-cl .zsa-cl-key[aria-disabled="true"] {opacity:.6; border-style:dashed;}
.zsa-cl-key-word {font-size:13px; color:#334155;}
.zsa-cl-step {margin:12px 0; padding:10px 12px; border-radius:10px; background:#f8fafc; border:1px solid #e2e8f0;}
.zsa-cl-chosen {display:flex; flex-wrap:wrap; align-items:center; gap:10px; font:700 18px ui-monospace,Menlo,Consolas,monospace; color:var(--cl-ink);}
.zsa-cl-chosen .zsa-btn {font-family:var(--zsa-font);}
.zsa-cl-choices {border:0; margin:12px 0; padding:0; min-width:0;}
.zsa-cl-choice {display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 14px; margin:8px 0; border:2px solid #cfd8e3; border-radius:12px; background:white; cursor:pointer; line-height:1.3;}
.zsa-cl-choice:hover {border-color:#7b93ad; background:#f8fbff;}
.zsa-cl-choice:has(input:checked) {border-color:var(--cl-ink); background:#eaf1ff; box-shadow:inset 0 0 0 1px var(--cl-ink);}
.zsa-cl-choice input {width:22px; height:22px; flex:0 0 22px; margin:0; accent-color:var(--cl-ink);}
.zsa-cl-choice-words {display:flex; flex-direction:column;}
.zsa-cl-sizes,.zsa-cl-counts {display:flex; flex-wrap:wrap; gap:8px;}
.zsa-cl-sizes legend,.zsa-cl-counts legend {flex:0 0 100%;}
.zsa-cl-sizes .zsa-cl-choice,.zsa-cl-counts .zsa-cl-choice {margin:0; flex:1 1 90px;}
.zsa-cl-aas {display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px;}
.zsa-cl-aas legend {grid-column:1/-1;}
.zsa-cl .zsa-cl-aa {justify-content:flex-start; min-height:64px; text-align:left; color:var(--cl-ink); border:2px solid #cfd8e3;}
.zsa-cl .zsa-cl-aa .zsa-cl-bead {width:44px; height:44px; flex-basis:44px;}
.zsa-cl .zsa-cl-aa--tried {border-style:dashed; color:#5b6472; background:#f8fafc; text-decoration:line-through;}
.zsa-cl-bigcodon {display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin:10px 0;}
.zsa-cl-bigcodon-bases {display:flex; gap:4px;}
.zsa-cl-bigcodon-anti {font-weight:650; color:#4c1d95; background:#f5f3ff; border-radius:8px; padding:4px 10px;}
.zsa-cl-finder {border:1px dashed #94a3b8; border-radius:12px; padding:10px 12px; margin:14px 0; background:#fbfaf7;}
.zsa-cl .zsa-cl-finder h3 {margin-top:0;}
.zsa-cl-finder-cols {display:flex; flex-wrap:wrap; gap:8px 16px;}
.zsa-cl-finder-set {border:0; margin:0; padding:0; min-width:0;}
.zsa-cl-finder-set legend {font-size:15px;}
.zsa-cl-finder-row {display:flex; gap:4px;}
.zsa-cl-finder-chip {position:relative; display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border:2px solid #cfd8e3; border-radius:10px; background:white; cursor:pointer;}
.zsa-cl-finder-chip input {position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer;}
.zsa-cl-finder-chip:has(input:checked) {border-color:var(--cl-ink); box-shadow:inset 0 0 0 2px var(--cl-ink); background:#eaf1ff;}
.zsa-cl-finder-chip:has(input:focus-visible) {outline:var(--zsa-focus-ring); outline-offset:2px;}
.zsa-cl-finder-result {font-weight:700; color:var(--cl-ink); min-height:1.6em;}

/* Feedback */
.zsa-cl-feedback {display:flex; gap:10px; align-items:flex-start; padding:10px 14px; border-radius:12px; border:2px solid; line-height:1.45; margin:12px 0;}
.zsa-cl-feedback p {margin:2px 0 6px;}
.zsa-cl-feedback-mark {flex:0 0 26px; height:26px; border-radius:50%; text-align:center; line-height:26px; font-weight:800; color:white; margin-top:2px;}
.zsa-cl-feedback--good {background:#ecfdf3; border-color:var(--cl-green);}
.zsa-cl-feedback--good .zsa-cl-feedback-mark {background:var(--cl-green);}
.zsa-cl-feedback--retry {background:#fff7ed; border-color:#c2410c;}
.zsa-cl-feedback--retry .zsa-cl-feedback-mark {background:#c2410c;}
.zsa-cl-feedback--info {background:#eef4ff; border-color:#1d4ed8;}
.zsa-cl-feedback--info .zsa-cl-feedback-mark {background:#1d4ed8; font-family:Georgia,serif;}

/* Station 3 */
.zsa-cl-card {border:2px solid var(--cl-amber); border-radius:14px; padding:10px 14px; background:#fff7ed; margin:0 0 12px;}
.zsa-cl .zsa-cl-card h3 {margin-top:0; color:#7c2d12;}
.zsa-cl-card-text {font-size:19px; font-weight:700; color:var(--cl-ink);}
.zsa-cl-cardlist {margin:4px 0 0; padding-left:22px; font-size:15px; color:#475569;}
.zsa-cl-cardlist--met {color:var(--cl-green); font-weight:600;}
.zsa-cl-made {border-left:4px solid var(--cl-teal); background:#f3fbfa; padding:6px 12px; border-radius:6px;}
.zsa-cl-compare {border:1px solid var(--cl-line); border-radius:14px; padding:10px 12px; margin:12px 0; background:#fffdf7;}
.zsa-cl .zsa-cl-compare h3 {margin-top:0;}
.zsa-cl-comparetable {border-collapse:collapse; width:100%; font-size:15px;}
.zsa-cl-comparetable th,.zsa-cl-comparetable td {padding:4px 6px; border-bottom:1px solid var(--cl-line); text-align:left; vertical-align:middle;}
.zsa-cl-comparetable thead th {color:var(--cl-ink);}
.zsa-cl-comparetable td .zsa-cl-bead {width:40px; height:40px; flex-basis:40px; vertical-align:middle; margin-right:6px;}
.zsa-cl-slotname {font-size:14px; color:#334155; overflow-wrap:anywhere;}
@media (max-width:599px) {.zsa-cl-compare {padding:8px 6px;} .zsa-cl-comparetable {font-size:14px;} .zsa-cl-comparetable th,.zsa-cl-comparetable td {padding:4px 3px;} .zsa-cl-slotname {display:block; font-size:12px;}}
.zsa-cl-slotgap {display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:2px dashed #94a3b8; border-radius:50%; font-size:12px; color:#475569;}
.zsa-cl-slotmark {font-weight:700;}
.zsa-cl-slot--same .zsa-cl-slotmark {color:#475569;}
.zsa-cl-slot--changed,.zsa-cl-slot--added,.zsa-cl-slot--missing {background:#fff7ed;}
.zsa-cl-slot--changed .zsa-cl-slotmark,.zsa-cl-slot--added .zsa-cl-slotmark,.zsa-cl-slot--missing .zsa-cl-slotmark {color:#9a3412;}
.zsa-cl-slot--changed .zsa-cl-slotmark span::before {content:"≠ ";}
.zsa-cl-slot--added .zsa-cl-slotmark span::before {content:"+ ";}
.zsa-cl-slot--missing .zsa-cl-slotmark span::before {content:"− ";}
.zsa-cl-critter {margin:12px 0; display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:10px; border-radius:14px; background:var(--cl-board);}
.zsa-cl-critter svg {width:160px; height:auto; flex:0 0 160px;}
.zsa-cl-critter figcaption {flex:1 1 200px; color:#f8f1e1;}
.zsa-cl-critter figcaption strong {display:block; color:#fffaf0; font-size:18px;}
.zsa-cl-halo {fill:#fde04766;}
.zsa-cl-critter--dim .zsa-cl-halo {fill:#fde04726;}
.zsa-cl-ray {stroke:#fde047; stroke-width:5; stroke-linecap:round;}
.zsa-cl-antenna {fill:none; stroke:#cbd5e1; stroke-width:4; stroke-linecap:round;}
.zsa-cl-body {fill:#94a3b8; stroke:#0f172a; stroke-width:3;}
.zsa-cl-bulb {fill:#64748b; stroke:#0f172a; stroke-width:2;}
.zsa-cl-critter--bright .zsa-cl-body,.zsa-cl-critter--bright .zsa-cl-bulb {fill:#fde047;}
.zsa-cl-critter--dim .zsa-cl-body,.zsa-cl-critter--dim .zsa-cl-bulb {fill:#fef3c7;}
.zsa-cl-eye {fill:#0f172a;}
.zsa-cl-mouth {fill:none; stroke:#0f172a; stroke-width:3; stroke-linecap:round;}
.zsa-cl-critter--bright .zsa-cl-halo {animation:zsa-cl-glow 2.4s ease-in-out infinite;}

/* Claim, evidence and reasoning (shared/zsa-labkit.js builds the parts) */
.zsa-cl-cer {border:1px solid var(--cl-line); border-radius:14px; padding:12px 14px; margin:12px 0; background:#fffdf7;}
.zsa-cl .zsa-cl-cer h3 {margin-top:0;}
.zsa-cl-cer-tag {display:inline-block; padding:2px 10px; border-radius:999px; background:var(--cl-ink); color:white; font-size:14px; letter-spacing:.02em;}
.zsa-cl-sentence {font-size:18px; font-weight:600; color:var(--cl-ink); background:white; border:2px dashed #cfc6b2; border-radius:10px; padding:10px 12px;}
.zsa-cl-cer-mark--good {color:var(--cl-green);}
.zsa-cl-cer-mark--retry {color:#c2410c;}
.zsa-cl-cer-note {font-size:15px; color:#7c2d12; background:#fff7ed; border-radius:8px; padding:6px 10px;}
.zsa-cl-bank {border:0; margin:10px 0 0; padding:0; min-width:0;}
.zsa-cl-bank legend {font-size:15px;}
.zsa-cl-chips {display:flex; flex-wrap:wrap; gap:8px;}
.zsa-cl-chip {display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:6px 12px; border:2px solid #cfd8e3; border-radius:999px; background:white; cursor:pointer; font-size:15px; line-height:1.25;}
.zsa-cl-chip:hover {border-color:#7b93ad;}
.zsa-cl-chip:has(input:checked) {border-color:var(--cl-ink); background:#eaf1ff; box-shadow:inset 0 0 0 1px var(--cl-ink);}
.zsa-cl-chip input {width:18px; height:18px; flex:0 0 18px; margin:0; accent-color:var(--cl-ink);}

/* Results and the data panel */
.zsa-cl-summary {list-style:none; padding:0; margin:10px 0; display:grid; gap:6px;}
.zsa-cl-summary li {display:flex; gap:8px; align-items:flex-start;}
.zsa-cl-summary .zsa-cl-icon {color:var(--cl-green); margin-top:2px;}
.zsa-cl-data {border:2px solid var(--cl-teal); border-radius:14px; padding:12px 14px; margin:14px 0; background:#f3fbfa;}
.zsa-cl-datatable {border-collapse:collapse; width:100%; font-size:15px; background:white;}
.zsa-cl-datatable th,.zsa-cl-datatable td {border:1px solid #cbd5e1; padding:6px 8px; text-align:left; vertical-align:top; overflow-wrap:anywhere;}
.zsa-cl-datatable th {width:34%; background:#eef6f5; color:var(--cl-ink);}
.zsa-cl-datatable th {overflow-wrap:normal; hyphens:auto;}
@media (max-width:599px) {.zsa-cl-data {padding:10px 8px;} .zsa-cl-datatable {font-size:14px;} .zsa-cl-datatable th {width:40%;} .zsa-cl-datatable th,.zsa-cl-datatable td {padding:5px 6px;}}
.zsa-cl-copystatus {font-weight:600; color:var(--cl-ink); min-height:1.4em;}

/* Side panel: codon chart and history */
.zsa-cl-chart,.zsa-cl-history {background:white; border:1px solid var(--cl-line); border-radius:16px; padding:10px 14px; min-width:0;}
.zsa-cl .zsa-cl-chart h2,.zsa-cl .zsa-cl-history h2 {font-size:19px; margin:4px 0 6px;}
.zsa-cl-chart summary {cursor:pointer; min-height:48px; display:flex; align-items:center; font-weight:650; color:var(--cl-ink); font-size:18px;}
.zsa-cl-tablewrap {overflow-x:auto; border-radius:8px;}
.zsa-cl-codetable {border-collapse:collapse; width:100%; font-size:14px; color:#1e293b;}
.zsa-cl-codetable th,.zsa-cl-codetable td {border:1px solid var(--cl-line); padding:3px 4px; vertical-align:top;}
.zsa-cl-codetable thead th,.zsa-cl-codetable tbody th {background:#f1eadb; color:var(--cl-ink); font-weight:700; text-align:center;}
.zsa-cl-codeline {display:block; white-space:nowrap; padding:1px 3px; border-radius:4px; line-height:1.35;}
.zsa-cl-codeline-codon {font-family:ui-monospace,Menlo,Consolas,monospace; font-weight:700;}
.zsa-cl-codeline--start {background:#dcfce7;}
.zsa-cl-codeline--stop {background:#fee2e2;}
.zsa-cl-codeline--hit {outline:3px solid var(--cl-ink); background:#fef08a;}
.zsa-cl-history ol {margin:0; padding-left:22px; display:grid; gap:6px; font-size:15px;}

/* About this model */
.zsa-cl-model {margin:16px 0 0; max-width:820px;}
.zsa-cl-model summary {cursor:pointer; min-height:48px; display:flex; align-items:center; font-weight:650; color:var(--cl-ink);}

/* Motion: the movers slide, beads drop in, feedback pops in, the bright critter pulses. Reduced motion turns all of it
   off (zsa-base.css stops every animation and transition). */
@keyframes zsa-cl-drop {from {transform:translateY(-18px) scale(.8);} to {transform:none;}}
@keyframes zsa-cl-pop {from {transform:scale(.6);} to {transform:none;}}
@keyframes zsa-cl-glow {0%,100% {opacity:.75;} 50% {opacity:1;}}
@keyframes zsa-cl-nudge {0%,100% {transform:none;} 30% {transform:translateX(4px);} 60% {transform:translateX(-3px);}}
.zsa-cl-pop {animation:zsa-cl-pop .3s ease-out;}
.zsa-cl-feedback--retry.zsa-cl-pop {animation:zsa-cl-nudge .35s ease-out;}
@media (prefers-reduced-motion:reduce) {.zsa-cl-mover {transition:none;} .zsa-cl-critter--bright .zsa-cl-halo {animation:none;}}

/* Phones: the bench runs edge to edge so two codons (six 48 px bases) fit on a line at 360 px. */
@media (max-width:599px) {
  .zsa-cl-stage {margin:0 -16px 16px; border-radius:0; padding:12px 6px 10px;}
  .zsa-cl-strandwrap {padding:10px 2px;}
  .zsa-cl-strands {gap:12px 6px;}
  .zsa-cl-codon {padding:3px; gap:2px;}
  .zsa-cl-col {gap:2px;}
  .zsa-cl-mrna {gap:22px 6px;}
  .zsa-cl-mcodon {padding:4px;}
  .zsa-cl-mbases svg {width:30px; height:30px;}
  .zsa-cl-trna {min-width:92px;}
  .zsa-cl-taskcard {padding:14px 12px;}
  .zsa-cl-levels {grid-template-columns:1fr;}
  .zsa-cl-level {min-height:52px;}
  .zsa-cl-track {display:flex; gap:4px;}
  .zsa-cl-track li {flex:0 0 48px;}
  .zsa-cl-track li:has([aria-current]) {flex:1 1 0; min-width:0;}
  .zsa-cl .zsa-cl-trackstep {justify-content:center; padding:4px 6px; min-height:52px; gap:6px;}
  .zsa-cl-tracklabel {min-width:0; overflow-wrap:anywhere;}
  .zsa-cl-trackstep:not([aria-current]) .zsa-cl-tracklabel {position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;}
  .zsa-cl-aas {grid-template-columns:1fr;}
  .zsa-cl-critter svg {width:120px; flex-basis:120px;}
  .zsa-cl-codetable {font-size:13px;}
}
