/* Shared machine chrome for the photography machines: the scene plate and the console only. Every rule is scoped
   under .htw-machine[data-htw-figure="euv-lithography"] and the palette lives on the scene/console subtrees, so the article prose (blog tokens) is
   never repainted by a machine theme. Topic CSS (artifact.css) is scoped under .htw-machine[data-htw-figure="euv-lithography"][data-htw-figure="<slug>"].
   Palette: the approved "neutral instrument finish" of the drum-scanner preview, with Anatomy token names. */

.htw-machine[data-htw-figure="euv-lithography"] [data-machine-scene],
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-console-panel {
  --htw-machine-mono: var(--htw-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  --htw-machine-dur: 160ms;
  --htw-machine-ease: cubic-bezier(.32, .72, 0, 1);
  --htw-machine-card: #161b1e;
  --htw-machine-text: #9fb0b6;
  --htw-machine-strong: #e2eaec;
  --htw-machine-muted: #8698a0;
  --htw-machine-line: #2e3c43;
  --htw-machine-accent: #9ae3ae;
  --htw-machine-on-accent: #0f1a14;
  --anatomy-card: var(--htw-machine-card);
  --anatomy-paper: #161b1e; --anatomy-face: #58666c; --anatomy-top: #64757d;
  --anatomy-shade-0: #242e33; --anatomy-shade-1: #303e45; --anatomy-shade-2: #40525b; --anatomy-shade-3: #53666f;
  --anatomy-lit-top: #82949b; --anatomy-lit-shade: #607880;
  --anatomy-hi: #c4d0d3; --anatomy-mid: #94a6ad; --anatomy-lo: #647a85; --anatomy-faint: #465b64; --anatomy-lit: #edf5f4;
  --anatomy-halo: #080d10; --anatomy-halo-opacity: .9; --anatomy-dot: #c4d0d3;
  --anatomy-red: #ff6b6b; --anatomy-green: #6be0a0; --anatomy-blue: #6b9bff;
  --anatomy-weight: .6px;
  --anatomy-mono: var(--htw-machine-mono);
  --anatomy-lift: inset 0 1px 0 0 #ffffff0a, 0 0 0 1px #00000026, 0 3px 3px -1.5px #00000014, 0 12px 12px -6px #00000014;
  color-scheme: dark;
}

.htw-machine[data-htw-figure="euv-lithography"][data-theme="light"] [data-machine-scene],
.htw-machine[data-htw-figure="euv-lithography"][data-theme="light"] .htw-machine-console-panel {
  --htw-machine-card: #f7f7f2;
  --htw-machine-text: #3d4f54;
  --htw-machine-strong: #132c33;
  --htw-machine-muted: #53696f;
  --htw-machine-line: #cdd6d5;
  --htw-machine-accent: #1d7148;
  --htw-machine-on-accent: #ffffff;
  --anatomy-paper: #f7f7f2; --anatomy-face: #e8eeec; --anatomy-top: #f9fcf8;
  --anatomy-shade-0: #94a2a6; --anatomy-shade-1: #adbabe; --anatomy-shade-2: #c6d1d1; --anatomy-shade-3: #dde5e2;
  --anatomy-lit-top: #ffffff; --anatomy-lit-shade: #cbdad9;
  --anatomy-hi: #33474d; --anatomy-mid: #53696f; --anatomy-lo: #71878e; --anatomy-faint: #94a7ac; --anatomy-lit: #132c33;
  --anatomy-halo: #64756e; --anatomy-halo-opacity: .32; --anatomy-dot: #3a5058;
  --anatomy-red: #e5484d; --anatomy-green: #30a46c; --anatomy-blue: #3e63dd;
  --anatomy-lift: inset 0 1px 0 0 #ffffff, 0 0 0 1px #0000000f, 0 3px 3px -1.5px #0000000a, 0 12px 12px -6px #0000000a;
  color-scheme: light;
}

/* ---------- Scene plate (the one movable figure) ---------- */

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-scene {
  margin: 0;
  display: grid;
  gap: .5rem;
  min-width: 0;
  color: var(--htw-machine-text);
  font-family: var(--htw-machine-mono);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-scene:focus { outline: none; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-scene:focus-visible { outline: 2px solid var(--htw-machine-accent); outline-offset: 4px; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-plate {
  min-width: 0;
  padding: .35rem .75rem .75rem;
  background: var(--htw-machine-card);
  border: 1px solid var(--htw-machine-line);
  border-radius: 6px;
  box-shadow: var(--anatomy-lift);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-plate-title {
  margin: 0;
  min-width: 0;
  font-family: var(--htw-machine-mono);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--htw-machine-strong);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-view { min-width: 0; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-view > svg { display: block; width: 100%; height: auto; overflow: visible; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem 1rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--htw-machine-text);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-stage { color: var(--htw-machine-strong); font-weight: 600; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-readout { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--htw-machine-muted); }
.htw-machine[data-htw-figure="euv-lithography"][data-machine-runtime="failed"] .htw-machine-status { color: var(--htw-machine-strong); }

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Controls (lab styling, still native buttons) ---------- */

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-chip,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 .9rem;
  font-family: var(--htw-machine-mono);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--htw-machine-strong);
  background: transparent;
  border: 1px solid var(--htw-machine-line);
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  transition: color var(--htw-machine-dur) var(--htw-machine-ease), background-color var(--htw-machine-dur) var(--htw-machine-ease), border-color var(--htw-machine-dur) var(--htw-machine-ease);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button { font-size: .78rem; padding: 0 1.1rem; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button--primary {
  color: var(--htw-machine-on-accent);
  background: var(--htw-machine-accent);
  border-color: var(--htw-machine-accent);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-chip:not(:disabled):not([aria-disabled="true"]):hover,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button:not(.htw-machine-button--primary):not(:disabled):not([aria-disabled="true"]):hover {
  color: var(--htw-machine-accent);
  border-color: var(--htw-machine-accent);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button--primary:not(:disabled):not([aria-disabled="true"]):hover {
  background: color-mix(in oklab, var(--htw-machine-accent) 85%, var(--htw-machine-strong));
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-chip[aria-pressed="true"] {
  color: var(--htw-machine-accent);
  border-color: var(--htw-machine-accent);
  background: color-mix(in oklab, var(--htw-machine-accent) 12%, transparent);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-chip:disabled,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button:disabled,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-chip:focus-visible,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button:focus-visible {
  outline: 2px solid var(--htw-machine-accent);
  outline-offset: 2px;
}

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-theme-icon {
  width: .8rem;
  height: .8rem;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-run-icon,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-pause-icon,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step-icon { width: .7rem; height: .8rem; flex: none; background: currentColor; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-run-icon { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-pause-icon { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step-icon { clip-path: polygon(0 0, 70% 50%, 0 100%, 0 0, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 0); }

/* ---------- Console panel ---------- */

.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-console-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  color: var(--htw-machine-text);
  font-family: var(--htw-machine-mono);
  background: var(--htw-machine-card);
  border: 1px solid var(--htw-machine-line);
  border-radius: 6px;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-controls,
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-film { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-film-label {
  margin-right: .25rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--htw-machine-muted);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-steps { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .5rem;
  margin: 0;
  padding: .55rem .65rem;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--htw-machine-text);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: background-color var(--htw-machine-dur) var(--htw-machine-ease), border-color var(--htw-machine-dur) var(--htw-machine-ease);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step[aria-current="step"] {
  border-left-color: var(--htw-machine-accent);
  background: color-mix(in oklab, var(--htw-machine-accent) 9%, transparent);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step strong { color: var(--htw-machine-strong); font-weight: 600; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step-num { color: var(--htw-machine-muted); font-variant-numeric: tabular-nums; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-output { min-width: 0; padding-top: .75rem; border-top: 1px solid var(--htw-machine-line); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-output:empty { display: none; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-machine-note { margin: 0; font-size: .72rem; line-height: 1.6; color: var(--htw-machine-muted); }

@media (prefers-reduced-motion: reduce) {
  .htw-machine[data-htw-figure="euv-lithography"] .htw-machine-chip,
  .htw-machine[data-htw-figure="euv-lithography"] .htw-machine-button,
  .htw-machine[data-htw-figure="euv-lithography"] .htw-machine-step { transition: none; }
}

/* Shared chrome of playground consoles and scene captions (htw-playground-* markup of playground-markup.mjs).
   It sits on top of machines/shared/machine-styles.css (plate, palette tokens, chips and buttons) and uses only its
   tokens, so both themes follow the same instrument-plate finish. Every selector starts at .htw-machine[data-htw-figure="euv-lithography"]; the
   exporter narrows it to one topic root. No horizontal overflow at 375 px; touch targets stay ≥ 44 px. */

/* ---------- Scene caption: status line and the <dl> readout ---------- */

/* The caption is an instrument panel of its own (card + hairline), so its theme never sits on the page colour. */
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-scene .htw-machine-caption {
  display: grid;
  gap: .55rem;
  min-width: 0;
  padding: .65rem .75rem .5rem;
  background: var(--htw-machine-card);
  border: 1px solid var(--htw-machine-line);
  border-radius: 6px;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-scene .htw-machine-status { color: var(--htw-machine-text); text-wrap: pretty; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-readout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 0 1rem;
  min-width: 0;
  margin: 0;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-readout-row {
  display: grid;
  align-content: start;
  gap: .1rem;
  min-width: 0;
  padding: .4rem 0 .35rem;
  border-top: 1px solid var(--htw-machine-line);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-readout dt {
  font-size: .64rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--htw-machine-muted);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-readout dd {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--htw-machine-strong);
  overflow-wrap: anywhere;
}

/* ---------- Console ---------- */

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-console { gap: 1.1rem; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-console .htw-machine-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: .5rem;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-console .htw-machine-controls .htw-machine-button { padding: 0 .6rem; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-group {
  display: grid;
  gap: .8rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-group-label {
  display: block;
  width: 100%;
  margin: 0;
  padding: .95rem 0 0;
  font-family: var(--htw-machine-mono);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--htw-machine-strong);
  border-top: 1px solid var(--htw-machine-line);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-group > .htw-playground-group-label { margin-bottom: .7rem; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: .45rem .75rem;
  min-width: 0;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-control-label {
  min-width: 0;
  font-size: .76rem;
  line-height: 1.4;
  color: var(--htw-machine-text);
}

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-options { display: flex; flex-wrap: wrap; gap: .375rem; min-width: 0; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-options .htw-machine-chip { flex: 1 1 auto; padding: 0 .7rem; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-toggle3 { grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-toggle3 .htw-playground-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-toggle3 .htw-machine-chip { font-size: .8rem; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-range { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-range .htw-playground-control-label { grid-row: 1; grid-column: 1; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-value {
  grid-row: 1;
  grid-column: 2;
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-value [data-playground-value-text] { font-size: .95rem; font-weight: 600; color: var(--htw-machine-strong); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-unit { font-size: .7rem; color: var(--htw-machine-muted); }

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--htw-machine-line) 60%, var(--htw-machine-muted));
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 3px solid var(--htw-machine-card);
  border-radius: 50%;
  background: var(--htw-machine-accent);
  box-shadow: 0 0 0 1px var(--htw-machine-accent);
  -webkit-appearance: none;
  appearance: none;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--htw-machine-line) 60%, var(--htw-machine-muted));
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--htw-machine-accent); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--htw-machine-card);
  border-radius: 50%;
  background: var(--htw-machine-accent);
  box-shadow: 0 0 0 1px var(--htw-machine-accent);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider:focus { outline: none; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider:focus-visible { outline: 2px solid var(--htw-machine-accent); outline-offset: 2px; border-radius: 4px; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-slider:disabled { opacity: .45; cursor: not-allowed; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-button .htw-machine-button { width: 100%; }

/* ---------- Presets and challenges ---------- */

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-presets { display: flex; flex-wrap: wrap; gap: .375rem; min-width: 0; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-presets .htw-playground-group-label { margin-bottom: .45rem; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-presets .htw-machine-chip { flex: 1 1 auto; padding: 0 .7rem; }

.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-challenges { min-width: 0; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-challenge-list { display: grid; gap: 0; margin: .45rem 0 0; padding: 0; list-style: none; }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-challenge {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  align-items: baseline;
  gap: .7rem;
  margin: 0;
  padding: .55rem 0;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--htw-machine-text);
  border-bottom: 1px solid color-mix(in oklab, var(--htw-machine-line) 55%, transparent);
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-challenge-state {
  justify-self: start;
  padding: .12rem .45rem;
  font-size: .6rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--htw-machine-muted);
  border: 1px solid var(--htw-machine-line);
  border-radius: 999px;
}
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-challenge[data-done="true"] { color: var(--htw-machine-strong); }
.htw-machine[data-htw-figure="euv-lithography"] .htw-playground-challenge[data-done="true"] .htw-playground-challenge-state {
  color: var(--htw-machine-on-accent);
  background: var(--htw-machine-accent);
  border-color: var(--htw-machine-accent);
}

/* ---------- Reader slot: the paused figure keeps drawing and status; numbers belong to the explore mode ---------- */

.htw-machine[data-htw-figure="euv-lithography"][data-mode="reader"] .htw-reader-slot .htw-playground-readout { display: none; }
/* The blog hides the status in the small sticky figure; the then empty caption panel goes too. */
@media (max-width: 980px) {
  .htw-machine[data-htw-figure="euv-lithography"][data-mode="reader"] .htw-reader-slot .htw-playground-scene .htw-machine-caption { display: none; }
}

/* Scene-only palette. Graphite is kept deliberately dense inside the section even on the paper theme.
   Violet, arrowheads and solid routes identify EUV; warm dashed strokes identify the CO₂ drive laser. */
.htw-machine[data-htw-figure="euv-lithography"] [data-machine-scene] {
  --euv-ink: #eeeaf5;
  --euv-sub: #b4afc1;
  --euv-rule: #484454;
  --euv-matte: #22212b;
  --euv-euv: #c6a5ff;
  --euv-halo: #a475f833;
  --euv-beam-on-metal: #d0adff;
  --euv-laser: #ffab70;
  --euv-laser-on-metal: #ffac74;
  --euv-shadow: #0908117a;
  --euv-shell: #111117;
  --euv-cavity: #1b1c26;
  --euv-wall: #232632;
  --euv-low: #303441;
  --euv-side: #383b4a;
  --euv-face: #525563;
  --euv-top: #777a89;
  --euv-hi: #9396a4;
  --euv-metal-line: #9396aa;
  --euv-cut-edge: #171923;
  --euv-mirror: #baace0;
  --euv-reflect: #f0dcff;
  --euv-wafer: #e7e2d4;
  --euv-wafer-edge: #8f8a7e;
  --euv-removed: #e4dbf5;
  --euv-remaining: #8473a0;
}
.htw-machine[data-htw-figure="euv-lithography"][data-theme="light"] [data-machine-scene] {
  --euv-ink: #282334;
  --euv-sub: #544b65;
  --euv-rule: #bcb3cb;
  --euv-matte: #ece7f2;
  --euv-euv: #6139a1;
  --euv-halo: #7954ae28;
  --euv-laser: #9b431c;
  --euv-shadow: #4b42532c;
  --euv-shell: #30303d;
  --euv-cavity: #383949;
  --euv-wall: #444757;
  --euv-low: #555869;
  --euv-side: #626575;
  --euv-face: #888b9b;
  --euv-top: #b0b2c0;
  --euv-hi: #c6c8d4;
  --euv-metal-line: #c0bfce;
  --euv-cut-edge: #343643;
  --euv-mirror: #d4c7f2;
  --euv-reflect: #f7eaff;
  --euv-wafer: #f8efdd;
  --euv-wafer-edge: #645c52;
  --euv-removed: #f8f4fe;
  --euv-remaining: #a78fc6;
}
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg {
  max-width: 36rem;
  margin-inline: auto;
  overflow: hidden;
}
/* The sticky reader uses one equal-height crop at a time. Keep its labels sized to the column, not the viewport height. */
.htw-machine[data-htw-figure="euv-lithography"][data-mode="reader"] .htw-reader-slot .euv-svg { max-height: none; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg text {
  fill: var(--euv-ink);
  stroke: none;
  font-family: var(--htw-sans, system-ui, sans-serif);
  font-size: 16px;
}
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-title {
  font-size: 20px;
  font-weight: 700;
}
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-callout,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-point-label { font-weight: 650; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-index,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-meta,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-numeric,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-tick,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-step-number,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-order-number {
  font-family: var(--htw-machine-mono);
  font-variant-numeric: tabular-nums;
}
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-meta,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-tick,
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-step-number { fill: var(--euv-sub); font-size: 14px; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-muted { fill: var(--euv-sub); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-index { fill: var(--euv-euv); font-weight: 700; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-on-dark { fill: #f4f0ff; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-svg .euv-order-number { font-size: 14px; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-rule { fill: none; stroke: var(--euv-rule); stroke-width: 1; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-guide { fill: none; stroke: var(--euv-sub); stroke-width: .9; stroke-linecap: round; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-leader-pin { fill: var(--euv-sub); stroke: var(--htw-machine-card); stroke-width: .7; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-shadow { fill: var(--euv-shadow); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-top,
.htw-machine[data-htw-figure="euv-lithography"] .euv-face,
.htw-machine[data-htw-figure="euv-lithography"] .euv-side,
.htw-machine[data-htw-figure="euv-lithography"] .euv-shade,
.htw-machine[data-htw-figure="euv-lithography"] .euv-bright,
.htw-machine[data-htw-figure="euv-lithography"] .euv-cavity,
.htw-machine[data-htw-figure="euv-lithography"] .euv-source-shell,
.htw-machine[data-htw-figure="euv-lithography"] .euv-mount { stroke: var(--euv-cut-edge); stroke-width: .85; stroke-linejoin: round; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-top { fill: var(--euv-top); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-face { fill: var(--euv-face); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-side { fill: var(--euv-side); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-shade { fill: var(--euv-low); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-bright { fill: var(--euv-hi); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-cavity { fill: var(--euv-shell); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-mount,
.htw-machine[data-htw-figure="euv-lithography"] .euv-inner-wall { fill: var(--euv-wall); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-source-shell { fill: var(--euv-face); stroke: var(--euv-top); stroke-width: 1.3; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-vent { fill: var(--euv-cavity); stroke: var(--euv-metal-line); stroke-width: .5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-wall-seam { fill: none; stroke: var(--euv-cavity); stroke-width: .8; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-trim { fill: none; stroke: var(--euv-metal-line); stroke-width: .7; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-screw { fill: var(--euv-hi); stroke: var(--euv-cut-edge); stroke-width: .6; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-screw-slot { fill: none; stroke: var(--euv-side); stroke-width: .5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pipe-wall,
.htw-machine[data-htw-figure="euv-lithography"] .euv-pipe-core,
.htw-machine[data-htw-figure="euv-lithography"] .euv-pipe-shine { fill: none; stroke-linecap: round; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pipe-wall { stroke: var(--euv-cut-edge); stroke-width: 8.5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pipe-core { stroke: var(--euv-face); stroke-width: 6.5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pipe-shine { stroke: var(--euv-top); stroke-width: 2; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-tin { fill: var(--euv-wafer); stroke: var(--euv-wafer-edge); stroke-width: .8; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-mirror-face,
.htw-machine[data-htw-figure="euv-lithography"] .euv-collector { fill: var(--euv-mirror); stroke: var(--euv-cut-edge); stroke-width: .75; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-mirror-edge { fill: var(--euv-face); stroke: var(--euv-cut-edge); stroke-width: .8; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-plasma { fill: var(--euv-laser-on-metal); stroke: var(--euv-reflect); stroke-width: .7; stroke-linejoin: round; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-reticle-pattern { fill: var(--euv-mirror); stroke: var(--euv-cut-edge); stroke-width: .6; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-grating-line { fill: none; stroke: var(--euv-cavity); stroke-width: 1.1; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-absorber { fill: var(--euv-shell); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-layer-a { fill: var(--euv-face); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-layer-b { fill: var(--euv-mirror); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-harmonic-guide { fill: none; stroke: var(--euv-euv); stroke-width: 1.05; stroke-dasharray: 3 3; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-rail-polish { fill: var(--euv-hi); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-chuck { fill: var(--euv-cavity); stroke: var(--euv-face); stroke-width: .65; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-wafer-disc { fill: var(--euv-wafer); stroke: var(--euv-wafer-edge); stroke-width: .85; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-die-lines { fill: none; stroke: var(--euv-wafer-edge); stroke-width: .5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-notch { fill: var(--euv-wafer-edge); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-registration { fill: none; stroke: var(--euv-wafer-edge); stroke-width: 1.2; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-measurement { fill: none; stroke: var(--euv-metal-line); stroke-width: 1.2; stroke-dasharray: 2 2.5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-beam,
.htw-machine[data-htw-figure="euv-lithography"] .euv-beam-halo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-beam { stroke: var(--euv-euv); stroke-width: 2; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-beam-halo { stroke: var(--euv-halo); stroke-width: 7; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-arrow { fill: var(--euv-euv); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-beam-fan { fill: var(--euv-halo); stroke: var(--euv-euv); stroke-width: .7; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-reflection { fill: var(--euv-reflect); stroke: var(--euv-euv); stroke-width: .65; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-slit { fill: var(--euv-reflect); stroke: #6040a4; stroke-width: .9; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-laser { fill: none; stroke: var(--euv-laser); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 3; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-laser-arrow { fill: var(--euv-laser); }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-part="source"],
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-source-pose],
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-bind="source-laser"] { --euv-laser: var(--euv-laser-on-metal); }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-part="optical-route"],
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-source-pose],
.htw-machine[data-htw-figure="euv-lithography"] .euv-optical-cavity { --euv-euv: var(--euv-beam-on-metal); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-step-tile { fill: var(--euv-matte); stroke: var(--euv-rule); stroke-width: .8; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-source-step][data-euv-active="true"] .euv-step-tile { stroke: var(--euv-euv); stroke-width: 2; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-source-step][data-euv-active="true"] .euv-step-number { fill: var(--euv-euv); font-weight: 700; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-focus="reticle"] [data-euv-callout="mask-detail"] .euv-callout,
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-focus="overlay"] [data-euv-text$="-overlay"] { fill: var(--euv-euv); font-weight: 700; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-field { fill: var(--euv-matte); stroke: var(--euv-sub); stroke-width: .85; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-field-grid { fill: none; stroke: var(--euv-rule); stroke-width: .85; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-track-arrow { fill: none; stroke: #f4f0ff; stroke-width: 1; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-track-head { fill: #f4f0ff; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-scanned { fill: var(--euv-halo); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-slit-band { fill: var(--euv-halo); stroke: var(--euv-euv); stroke-width: 1.1; stroke-dasharray: 2 2; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-slit-cursor { fill: none; stroke: var(--euv-euv); stroke-width: 1.5; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-site-diamond { fill: var(--htw-machine-card); stroke: var(--euv-sub); stroke-width: 1.25; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-status="exposing"] .euv-site-diamond { stroke: var(--euv-euv); stroke-width: 2.4; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-status="developed"] .euv-site-diamond { fill: var(--euv-euv); stroke: var(--euv-euv); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-order-ring { fill: var(--euv-matte); stroke: var(--euv-sub); stroke-width: .75; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-order-bar { fill: none; stroke: var(--euv-sub); stroke-width: 1.6; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-admitted="true"] .euv-order-ring { fill: var(--euv-halo); stroke: var(--euv-euv); stroke-width: 1.4; }
.htw-machine[data-htw-figure="euv-lithography"] [data-euv-admitted="true"] .euv-order-bar { display: none; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-plot-matte { fill: var(--euv-matte); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-mask-bars { fill: var(--euv-euv); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-axis { fill: none; stroke: var(--euv-sub); stroke-width: .9; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-chart-grid { fill: none; stroke: var(--euv-rule); stroke-width: .9; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-intensity-area { fill: var(--euv-halo); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-intensity,
.htw-machine[data-htw-figure="euv-lithography"] .euv-dose { fill: none; stroke: var(--euv-euv); stroke-width: 2; stroke-linejoin: round; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-threshold { fill: none; stroke: var(--euv-sub); stroke-width: 1.1; stroke-dasharray: 5 3; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-remaining { fill: var(--euv-remaining); stroke: var(--euv-sub); stroke-width: .6; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-removed { stroke: var(--euv-euv); stroke-width: .55; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-hatch-base { fill: var(--euv-removed); }
.htw-machine[data-htw-figure="euv-lithography"] .euv-hatch-line { fill: none; stroke: #593c83; stroke-width: .85; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-undeveloped { fill: none; stroke: var(--euv-sub); stroke-width: .7; stroke-dasharray: 2.5 3; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-old-mark { fill: none; stroke: var(--euv-ink); stroke-width: 1.05; stroke-dasharray: 2 2; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-shift-mark { fill: var(--htw-machine-card); stroke: var(--euv-euv); stroke-width: 1.35; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pupil-window { fill: var(--euv-halo); stroke: var(--euv-euv); stroke-width: 1; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pupil-tip { fill: var(--euv-euv); stroke: var(--htw-machine-card); stroke-width: 1; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-pupil-sum { fill: none; stroke: var(--euv-sub); stroke-width: 5; stroke-dasharray: 3 3; }
.htw-machine[data-htw-figure="euv-lithography"] .euv-section-film { fill: var(--euv-wafer); stroke: var(--euv-wafer-edge); stroke-width: .8; }
