/* The skin. Everything visual is here or in the tokens below; content and
   behavior never set colors or fonts directly, so the look can be replaced
   without touching either. One typeface, IBM Plex Sans, served from fonts/
   (SIL Open Font License, fonts/OFL.txt). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/factories/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/factories/fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/factories/fonts/ibm-plex-sans-600.woff2") format("woff2"); }

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #f4f4f1;
  --panel: rgba(255, 255, 255, 0.88);   /* things that float over the picture */
  --line: rgba(24, 28, 36, 0.1);
  --line-strong: rgba(24, 28, 36, 0.2);
  --text: #171a21;
  --muted: #5e6573;
  --faint: #8f95a1;
  --link: #4c52d4;
  --button: var(--flow);      /* buttons: the loop's lavender, white type */
  --button-hover: var(--flow-text);
  --button-text: #ffffff;

  /* What each color means, everywhere. The flows carry these; what's built
     is drawn in what it's built of. */
  --flow: #6a70ee;            /* the flows, intelligence */
  --flow-text: #4c52d4;
  --feedback: #22a77c;        /* return paths, feedback */
  --feedback-text: #15805f;
  --energy: #1593cf;
  --earth: #d98d16;           /* materials, Earth */
  --warm: #d47a2c;            /* cities, people */
  --capital: #6f7a8a;         /* capital, money */

  /* Edges, rims, and shadows: drawn by day, quieter by night. */
  --edge: rgba(40, 34, 26, 0.07);
  --rim: rgba(255, 255, 255, 0.55);
  --lift: rgba(24, 28, 36, 0.14);           /* under what floats */
  --ground-shadow: rgba(46, 40, 30, 0.16);  /* under the world */
  --soil-ink: #fbf4e6;                      /* names painted on the soil */
  --ink: 20%;                               /* how much darker a share's figure is than its tone */

  /* 3D, by daylight from the upper left: tops brightest, left faces lit,
     right faces in shade. What isn't built of anything in particular is
     pale concrete. By night each material is its day color mixed toward the
     night sky, by --night; lights skip the mix and glow (the night section,
     at the end). */
  --night: 0%;
  --dusk: #0b1220;
  --face-top: color-mix(in srgb, #f3f1ec, var(--dusk) var(--night));
  --face-left: color-mix(in srgb, #dedad2, var(--dusk) var(--night));
  --face-right: color-mix(in srgb, #c2bdb3, var(--dusk) var(--night));
  /* The ground: grass on a cut of soil. */
  --slab-top: color-mix(in srgb, #c3d6a2, var(--dusk) var(--night));
  --slab-left: color-mix(in srgb, #a3825c, var(--dusk) var(--night));
  --slab-right: color-mix(in srgb, #866849, var(--dusk) var(--night));
  /* Materials. */
  --steel-top: color-mix(in srgb, #d3d8dd, var(--dusk) var(--night));
  --steel-left: color-mix(in srgb, #b4bcc4, var(--dusk) var(--night));
  --steel-right: color-mix(in srgb, #939ca6, var(--dusk) var(--night));
  --glass-top: color-mix(in srgb, #b9d0de, var(--dusk) var(--night));
  --glass-left: color-mix(in srgb, #8fb0c4, var(--dusk) var(--night));
  --glass-right: color-mix(in srgb, #6f91a8, var(--dusk) var(--night));
  --brick-top: color-mix(in srgb, #c98468, var(--dusk) var(--night));
  --brick-left: color-mix(in srgb, #b36c52, var(--dusk) var(--night));
  --brick-right: color-mix(in srgb, #925641, var(--dusk) var(--night));
  --roof: color-mix(in srgb, #8c5a4a, var(--dusk) var(--night));
  --asphalt: color-mix(in srgb, #6c6f75, var(--dusk) var(--night));
  --paving: color-mix(in srgb, #e2ded6, var(--dusk) var(--night));
  --water: color-mix(in srgb, #7fb6cf, var(--dusk) var(--night));
  --leaf: color-mix(in srgb, #79a85a, var(--dusk) var(--night));
  --leaf-lit: color-mix(in srgb, #98c171, var(--dusk) var(--night));
  --void: color-mix(in srgb, #2c2f35, var(--dusk) var(--night));            /* openings, holes, dark plastic */
  --white: color-mix(in srgb, #ffffff, var(--dusk) var(--night));   /* white paint, foam, paper */
  --light: #ffffff;           /* light itself: sunlight, sparks */
  --shade: #2e3a22;           /* what shadows fall in, on grass */
  --sun: #ffd04d;
  --sun-pale: #fff3c9;
  --sun-edge: #f2b632;
  --steam: color-mix(in srgb, #dfe3e7, var(--dusk) var(--night));
  --smoke: color-mix(in srgb, #b9bdc2, var(--dusk) var(--night));
  --gold: color-mix(in srgb, #c9a24a, var(--dusk) var(--night));            /* chips' gilded lids and pins */
  --pcb-top: color-mix(in srgb, #3f7d4f, var(--dusk) var(--night));         /* circuit boards: solder-mask green */
  --pcb-left: color-mix(in srgb, #346b42, var(--dusk) var(--night));
  --pcb-right: color-mix(in srgb, #2a5836, var(--dusk) var(--night));

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  --gutter: 16px;
  --bar: 44px;
  /* The text's own edges: where the bar and its buttons line up with it. On
     a fixed element, 100% is the window's width. */
  --side: max(var(--gutter), calc((100% - max(1400px, 75vw)) / 2 + var(--gutter)));
  --chip: 32px;   /* the bar's buttons, 3D and day or night: one height, one shape */
}

/* Night: the same world after dark. The page follows the visitor's system
   setting, or the sun and moon at the end of the bar (src/app/85-theme.js),
   which sets data-theme before anything is drawn. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --night: 60%;

  --bg: #000000;
  --surface: #141414;
  --panel: rgba(20, 20, 20, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #e6e9f0;
  --muted: #8d97a8;
  --faint: #5d6678;
  --link: #b4b9ff;
  --button-text: #000000;

  --flow: #7c84ff;
  --flow-text: #bec2ff;
  --feedback: #5fd3a8;
  --feedback-text: #68c4a2;
  --energy: #6fd6ff;
  --earth: #f4b547;
  --warm: #ebb463;
  --capital: #c9d1e0;

  --edge: rgba(255, 255, 255, 0.05);
  --rim: rgba(255, 255, 255, 0.1);
  --lift: rgba(0, 0, 0, 0.4);
  --ground-shadow: rgba(0, 0, 0, 0.55);
  --soil-ink: rgba(244, 181, 71, 0.85);
  --ink: 0%;
  --shade: #000;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Where scroll bars take room, the room stays when the 3D stops the page
   scrolling, so nothing along the top shifts sideways between the views. */
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
a:hover { color: var(--text); text-decoration-color: currentColor; }

/* The bar along the top: where you are, from the top of the model down, and
   its buttons. It stays on one line; on a small screen the crumbs above you
   shorten first. It shows on every page, in both views, so it never comes
   and goes (only the kitchen's flight view leaves it out at the top). */
body { padding-top: var(--bar); }
#bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--bar);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--side);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}
#bar nav { flex: 1; min-width: 0; height: 100%; }
#bar .crumbs {
  display: flex; align-items: center; height: 100%; margin: 0; padding: 0;
  list-style: none; font-size: 14px; white-space: nowrap; overflow: hidden;
}
#bar li { flex: 0 1000 auto; min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; }
/* The crumb you're on shortens last: once the others are down to their least, then with an ellipsis. */
#bar li:last-child { flex-shrink: 1; min-width: 0; max-width: 70%; }
#bar li + li::before { content: "/"; padding: 0 10px; color: var(--faint); }
#bar a { color: var(--muted); text-decoration: none; }
#bar a:hover { color: var(--text); }
#bar [aria-current] { color: var(--text); }
/* On a phone, beside its buttons, the bar names where you are and the level
   just above, the way back out; an ellipsis stands for the rest. */
@media (max-width: 699px) {
  #bar li:not(:nth-last-child(-n+2)) { display: none; }
  #bar li:nth-last-child(2):not(:first-child)::before { content: "\2026\00a0/"; padding-left: 0; }
}

header#top { padding: 32px 0 8px; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 21px; line-height: 1.35; }
/* The other formats, as small squared-off chips. */
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; font-size: 13px; line-height: 1.4; }
.meta a {
  padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--muted); text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.meta a:hover { border-color: var(--muted); color: var(--text); }
.meta a:focus-visible { outline: 2px solid var(--flow-text); outline-offset: 2px; }

/* ---- the two views ---- */

/* On a big screen the page widens, so the picture beside the text grows. */
.views { max-width: max(1400px, 75vw); margin: 0 auto; padding: 0 var(--gutter); }
/* The map is where the world stands while you read: above the text on a
   narrower screen or a phone. */
#map { display: none; }
.js #map { display: block; position: relative; height: min(60vh, 520px); margin: 8px 0 16px; }

@media (min-width: 1000px) {
  /* The title and text on the left, in reading order; the world on the
     right, from the bar to the bottom of the window, staying as you scroll. */
  .views { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(360px, 1fr); grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
  header#top { grid-area: 1 / 1; }
  #text { grid-area: 2 / 1; }
  #map { grid-area: 1 / 2 / 3; }
  .js #map { position: sticky; top: var(--bar); margin: 0; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); }
}

/* ---- what the 3D shares ---- */

/* Fine dashes moving one dash period, so they run seamlessly. */
@keyframes drift-fine { to { stroke-dashoffset: -7; } }
.tone-flow { --accent: var(--flow-text); }
.tone-earth { --accent: var(--earth); }
.tone-energy { --accent: var(--energy); }
.tone-warm { --accent: var(--warm); }
.tone-capital { --accent: var(--capital); }
.tone-science { --accent: var(--feedback-text); }

/* ---- the bar's buttons: into 3D or to the overview, and day or night ---- */

/* On every page, in both views, on every screen, the bar ends in the same
   two chips, lined up with the text's right edge: the sun and moon last
   (the moon by day, the sun by night), and while you read, the way into the
   world in 3D just before it. In 3D, where that chip has nowhere to go, the
   way to the overview stands in its place: the world as a map of its
   sections and relations. They're in the page from the start, the sun
   and moon at the end, and each a fixed size, so neither moves when the type
   arrives, the view changes, or you go to another page. */
.chips { display: flex; gap: 8px; flex: none; }
.to-3d, .to-overview, #theme {
  display: none; align-items: center; justify-content: center;
  width: var(--chip); height: var(--chip); padding: 0; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--panel); color: var(--text); transition: border-color 0.2s;
}
.js #theme, .js:not(.in-3d) .to-3d, .js.in-3d .to-overview { display: inline-flex; }
#bar .to-overview { color: var(--text); }
.to-3d { width: 48px; font: 500 13px/1 var(--font); letter-spacing: 0.12em; text-indent: 0.12em; }
@media (hover: hover) { :is(.to-3d, .to-overview, #theme):hover { border-color: var(--muted); } }
:is(.to-3d, .to-overview, #theme):focus-visible { outline: 2px solid var(--flow-text); outline-offset: 2px; }
:is(.to-overview, #theme) svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#theme .moon { fill: currentColor; stroke: none; }
#theme .sun, [data-theme="dark"] #theme .moon { display: none; }
[data-theme="dark"] #theme .sun { display: block; }
/* Day turns to night all at once, nothing easing behind the rest. */
.switching, .switching * { transition: none !important; }

/* ---- the corner: back to the top ---- */

#corner {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; gap: 10px;
}
#to-top {
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#to-top { display: none; place-items: center; width: 50px; height: 50px; color: var(--muted); }
.js #to-top.on { display: grid; }
#to-top:hover { color: var(--text); }
#to-top:focus-visible { outline: 2px solid var(--flow-text); outline-offset: 2px; }
#to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html.in-3d { overflow: hidden; }

/* The 3D world, by daylight on white: each thing drawn in what it's built
   of, the flows between them in the colors that mean them. The only nod to
   Superdark is small: things off your path dim a little. */
#world { position: fixed; inset: 0; z-index: 10; background: var(--bg); overflow: hidden; }
#world-scene, #map-iso { position: absolute; inset: 0; width: 100%; height: 100%; }
#map-iso { display: block; overflow: hidden; }

/* Beside the text, the same world fills its column, still: no placard, the
   page's title says where you are. The part you're reading glows; the rest
   dim. The bar's 3D opens it full screen. */
#world.beside { position: absolute; inset: 0; z-index: auto; background: none; }
#world.beside .world-here { display: none; }
#world.beside * { animation-play-state: paused !important; }
#world.beside .level.has-focus :is(.iso-link, .belt-link):not(.is-path):not(.slab-link):not(.floor-link) { opacity: 0.4; }
#world.beside .level.has-focus .iso-link.is-path:not(.floor-link) > .thing {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent, var(--flow)) 70%, transparent));
}

/* Where you are, in words: bottom left, out of the scene's way. */
.world-here {
  position: absolute; left: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 1;
  width: min(360px, calc(100vw - 48px)); padding: 14px 16px 16px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; line-height: 1.45;
}
.world-here h2 { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
@media (max-width: 699px) {
  .world-here { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; }
}
/* A phone turned sideways: the placard stands at the left, beside the scene, not over it. */
@media (orientation: landscape) and (max-height: 499px) {
  .world-here { left: 16px; right: auto; bottom: 16px; width: 232px; }
}

.world-card {
  position: fixed; z-index: 15; width: max-content; max-width: min(300px, calc(100vw - 24px));
  padding: 12px 14px 14px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--text); box-shadow: 0 12px 32px var(--lift);
  font: 14px/1.4 var(--font);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.world-card.on { opacity: 1; visibility: visible; transform: none; }
.world-card p { margin: 0; }
.world-card .name { font-size: 16px; font-weight: 500; }
.world-card .desc { margin-top: 4px; color: var(--muted); }
:is(.world-card, .world-here) .read {
  display: block; margin-top: 10px; padding: 7px 10px; border-radius: 3px; min-height: 34px;
  background: var(--button); color: var(--button-text); text-align: center; text-decoration: none; font-weight: 500;
}
:is(.world-card, .world-here) .read:hover, :is(.world-card, .world-here) .read:focus-visible { background: var(--button-hover); }
.world-here .read { display: inline-block; margin-top: 12px; padding: 7px 16px; }
.world-here .world-desc { margin: 4px 0 0; color: var(--muted); }

.box polygon, .box ellipse, .box path { stroke: var(--edge); stroke-width: 0.6; stroke-linejoin: round; }
.rim { fill: none; stroke: var(--rim); stroke-width: 0.8; stroke-linejoin: round; }
.slab .rim { stroke: var(--rim); }
/* By day, light doesn't pool on the ground. */
.spill { display: none; }
#map-iso :is(.iso-link, .belt-link) { transition: opacity 0.4s; }
/* A closer look at one thing dims the rest a little. */
.level.has-focus :is(.iso-link, .belt-link):not(.is-path):not(.slab-link):not(.floor-link) { opacity: 0.55; }
.shadow { fill: var(--shade); opacity: 0.26; filter: url(#iso-shadow); }
.strata { fill: none; stroke: color-mix(in srgb, rgba(60, 40, 20, 0.16), rgb(from var(--dusk) r g b / 0.16) var(--night)); stroke-width: 1; }
.box .glazing { fill: var(--glass-left); }
/* The ground stands on the page, a soft shadow under it. */
#map-iso :is(.plinth, .platform) { filter: drop-shadow(0 14px 18px var(--ground-shadow)); }
.face-top { fill: var(--face-top); }
.face-left { fill: var(--face-left); }
.face-right { fill: var(--face-right); }
.slab .face-top { fill: var(--slab-top); }
.slab .face-left { fill: var(--slab-left); }
.slab .face-right { fill: var(--slab-right); }
/* Every level's floor is the same ground: grass on soil. */
.platform .face-top { fill: var(--slab-top); }
.platform .face-left { fill: var(--slab-left); }
.platform .face-right { fill: var(--slab-right); }
/* What things are built of. */
.mat-steel .face-top { fill: var(--steel-top); }
.mat-steel .face-left { fill: var(--steel-left); }
.mat-steel .face-right { fill: var(--steel-right); }
.mat-panel .face-top { fill: color-mix(in srgb, #eef0f2, var(--dusk) var(--night)); }
.mat-panel .face-left { fill: color-mix(in srgb, #d9dde1, var(--dusk) var(--night)); }
.mat-panel .face-right { fill: color-mix(in srgb, #b9bfc6, var(--dusk) var(--night)); }
.mat-glass .face-top { fill: var(--glass-top); }
.mat-glass .face-left { fill: var(--glass-left); }
.mat-glass .face-right { fill: var(--glass-right); }
.mat-brick .face-top { fill: var(--brick-top); }
.mat-brick .face-left { fill: var(--brick-left); }
.mat-brick .face-right { fill: var(--brick-right); }
.mat-siding .face-top { fill: color-mix(in srgb, #f4eee3, var(--dusk) var(--night)); }
.mat-siding .face-left { fill: color-mix(in srgb, #e4dac8, var(--dusk) var(--night)); }
.mat-siding .face-right { fill: color-mix(in srgb, #c6baa6, var(--dusk) var(--night)); }
.mat-roof .face-top { fill: color-mix(in srgb, #8a6457, var(--dusk) var(--night)); }
.mat-roof .face-left { fill: color-mix(in srgb, #74524a, var(--dusk) var(--night)); }
.mat-roof .face-right { fill: color-mix(in srgb, #5f433c, var(--dusk) var(--night)); }
.mat-roof-metal .face-top { fill: color-mix(in srgb, #a9b0b8, var(--dusk) var(--night)); }
.mat-roof-metal .face-left { fill: color-mix(in srgb, #8f979f, var(--dusk) var(--night)); }
.mat-wood .face-top { fill: color-mix(in srgb, #c9a678, var(--dusk) var(--night)); }
.mat-wood .face-left { fill: color-mix(in srgb, #ad8b5f, var(--dusk) var(--night)); }
.mat-wood .face-right { fill: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); }
/* Bands of window: by day, glass that holds the sky. On a glass tower, the
   floors' spandrels show pale between it. */
.lit { fill: none; stroke: var(--glass-right); stroke-width: 2; stroke-linecap: round; }
.mat-glass ~ .lit { stroke: color-mix(in srgb, #e9edf0, var(--dusk) var(--night)); stroke-width: 1.4; }
.lit.flicker { animation: none; }
.door { fill: var(--void); }
/* A loading dock: black seals, a galvanized door rolled part way up, a steel canopy. */
.dock-seal { fill: color-mix(in srgb, #2a2b2e, var(--dusk) var(--night)); }
.dock-shutter { fill: color-mix(in srgb, #c4cad0, var(--dusk) var(--night)); }
.dock-slat { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.18), rgb(from var(--dusk) r g b / 0.18) var(--night)); stroke-width: 0.4; }
.dock-canopy .face-top { fill: var(--steel-top); }
.dock-canopy .face-left { fill: var(--steel-left); }
.dock-canopy .face-right { fill: var(--steel-right); }
/* A containment dome: poured concrete, lit from the left. */
.dome { fill: color-mix(in srgb, #e9e7e2, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.12), rgb(from var(--dusk) r g b / 0.12) var(--night)); stroke-width: 0.6; }
.iso-label { fill: var(--text); opacity: 0.85; font: 500 10.5px var(--font); letter-spacing: 0.14em; }
/* In a closer look, a name the window would cut fades out with its hairline (src/app/70-world.js, cutNames). */
#world .cut-off { opacity: 0 !important; pointer-events: none; transition: opacity 0.2s; }
.slab-label { fill: var(--soil-ink); opacity: 0.9; font: 500 calc(8.5px * var(--lz, 1)) var(--font); letter-spacing: 0.2em; }
/* Capital: a plinth under the last mile, its name on its side. */
/* Bedrock: granite, under the soil. */
.plinth .face-top { fill: color-mix(in srgb, #a3a6aa, var(--dusk) var(--night)); }
.plinth .face-left { fill: color-mix(in srgb, #8c9096, var(--dusk) var(--night)); }
.plinth .face-right { fill: color-mix(in srgb, #73777e, var(--dusk) var(--night)); }
.plinth .rim { stroke: var(--rim); }
.slab-label.plinth-label { fill: #f3f4f6; }
.plinth-link:is(.is-path, .touring) .plinth :is(.face-left, .face-right) { stroke: var(--text); stroke-opacity: 0.35; stroke-width: 1.5; }
.plinth-link:is(.is-path, .touring) .plinth-label { opacity: 1; }
.iso-link.is-path .iso-label { opacity: 1; }
.belt { stroke: var(--flow); stroke-width: 1.5; opacity: 0.6; }
.packet { fill: var(--flow-text); }
.glint { fill: var(--feedback); }
.fan { fill: color-mix(in srgb, #6b7178, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(255, 255, 255, 0.6), rgb(from var(--dusk) r g b / 0.6) var(--night)); stroke-width: 1; stroke-dasharray: 2.5 3.5; animation: drift-fine 1.2s linear infinite; }
.beacon { fill: #ff7a6b; animation: blink 2.4s steps(1) infinite; }
.dome { animation: breathe 4.8s ease-in-out infinite; }
.spill { animation: breathe 4.8s ease-in-out infinite; }
.lit.flicker { animation: flicker 7.2s steps(1) infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.15; } }
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes flicker { 0%, 86% { opacity: 1; } 87% { opacity: 0.35; } 89% { opacity: 1; } 93% { opacity: 0.55; } 95%, 100% { opacity: 1; } }
#map-iso .iso-link.touring > .thing > .box .face-top { stroke: var(--accent, var(--flow-text)); stroke-width: 2; }
#map-iso .iso-link.touring .iso-label { opacity: 1; fill: var(--accent, var(--flow-text)); }
#map-iso .belt-link.touring :is(.belt, .return) { opacity: 1; stroke-width: 2.2; }
.return { stroke: var(--feedback); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 0.1 6.9; opacity: 0.75; animation: drift-fine 2.4s linear infinite; }
.hit { stroke: transparent; stroke-width: 18; pointer-events: stroke; }
.carrier-link .hit { fill: none; stroke-width: 12; }
/* The city's yard on the root, so choosing it chooses the city. */
.yard-hit { fill: transparent; }
/* Capital beats under everything: a warm light from beneath the board, and
   the plinth's sides lit, a soft lub-dub every five seconds, then a long rest,
   so it sits under the picture rather than pulling the eye. Under reduced
   motion it holds still at its resting glow. */
.heartbeat { pointer-events: none; }
.heart-glow { fill: var(--warm); opacity: 0.22; filter: url(#iso-spill); animation: heartbeat 5s ease-in-out infinite; }
.heart-face { fill: var(--warm); opacity: 0.1; animation: heartbeat-face 5s ease-in-out infinite; }
@keyframes heartbeat { 0%, 40%, 100% { opacity: 0.22; } 8% { opacity: 0.36; } 15% { opacity: 0.27; } 22% { opacity: 0.32; } }
@keyframes heartbeat-face { 0%, 40%, 100% { opacity: 0.1; } 8% { opacity: 0.17; } 15% { opacity: 0.12; } 22% { opacity: 0.15; } }
.iso-link, .belt-link { cursor: pointer; outline: none; }
.iso-link:hover .face-top, .iso-link:focus-visible .face-top { stroke: var(--muted); }
.iso-link.is-path:not(.floor-link) > .thing > .box .face-top { stroke: var(--accent, var(--flow)); stroke-width: 2; }
.iso-link.is-path .iso-label { fill: var(--accent, var(--flow-text)); }
.belt-link:hover .belt, .belt-link:focus-visible .belt, .belt-link.is-path .belt { opacity: 1; stroke-width: 2; }
.belt-link.is-path .return { stroke-width: 2.5; opacity: 1; }
.leader { stroke: var(--line-strong); stroke-width: 1; }

/* Inside things: the floor, named on its side, and the parts on it. */
.floor-link { cursor: default; }
.floor-link .slab-label { fill: var(--soil-ink); opacity: 0.9; }
.floor-link .rim { stroke: var(--rim); }
.pad { fill: var(--accent, var(--flow-text)); fill-opacity: 0.06; stroke: var(--accent, var(--flow-text)); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 3 4; animation: drift-fine 2.4s linear infinite; }
.iso-link.has-parts:hover .pad, .iso-link.has-parts:focus-visible .pad { fill-opacity: 0.14; stroke-opacity: 0.95; }
.lit-energy { stroke: var(--energy); }
.lit-science { stroke: var(--feedback); }
.glint-energy { fill: var(--energy); }
.glint-earth { fill: var(--earth); }
.glint-flow { fill: var(--flow-text); }
.glint-warm { fill: var(--warm); }
.dish { fill: var(--face-top); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.18), rgb(from var(--dusk) r g b / 0.18) var(--night)); stroke-width: 1; }
.signal { fill: none; stroke: var(--accent, var(--flow-text)); stroke-width: 1; }
/* Solar panels: blue-black cells in a silver frame. */
.panel { fill: color-mix(in srgb, #2f4a6e, var(--dusk) var(--night)); stroke: color-mix(in srgb, #c9d2dc, var(--dusk) var(--night)); stroke-width: 1; stroke-linejoin: round; }
.blade, .hub { fill: var(--white); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.18), rgb(from var(--dusk) r g b / 0.18) var(--night)); stroke-width: 0.5; }
.smoke { fill: var(--steam); }
.heat { fill: color-mix(in srgb, #e7a15a, var(--dusk) var(--night)); }
.vent-mouth { fill: var(--void); }
.wire { stroke: var(--line-strong); stroke-width: 1; }
.water { fill: var(--water); }
.ripple { fill: none; stroke: var(--white); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0.1 6.9; opacity: 0.8; animation: drift-fine 2.4s linear infinite; }
.float { animation: bob 4.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }


/* ---- the text ---- */

#text { min-width: 0; padding-bottom: 80px; }
#text section, #text h2 { scroll-margin-top: calc(var(--bar) + 16px); }
#text h2, #text h3, #text h4, #text h5, #text h6 { line-height: 1.25; margin: 0; font-weight: 500; }
#text h2 a, #text h3 a, #text h4 a, #text h5 a, #text h6 a { color: inherit; text-decoration: none; }
#text h2 a:hover::after, #text h3 a:hover::after, #text h4 a:hover::after, #text h5 a:hover::after { content: " #"; color: var(--faint); }

/* A part of the model opens with its name in capitals, then its one line, large:
   the label grammar of the map. */
.depth-2 { margin-top: 80px; padding-top: 20px; border-top: 1px solid var(--line); }
.depth-2 > h2 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.depth-2 > .description { color: var(--text); font-size: 27px; line-height: 1.2; margin-top: 8px !important; }
.depth-3 { margin-top: 44px; }
.depth-3 > h3 { font-size: 21px; }
.depth-4 { margin-top: 28px; }
.depth-4 > h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.depth-5 { margin-top: 14px; }
.depth-5 > h5 { font-size: 16px; color: var(--muted); }
.depth-6 > h6 { font-size: 15px; color: var(--muted); }
section.empty > :is(h3, h4, h5, h6) { color: var(--faint); }
section.empty + section.empty { margin-top: 6px; }

section:target > :is(h2, h3, h4, h5, h6) { color: var(--flow-text); }

#text p, #text ul, #text ol, #text blockquote, #text pre { margin: 14px 0 0; }
#text ul, #text ol { padding-left: 1.4em; }
/* An ordered list inside an ordered item numbers like an outline (the story's 1.1 to 2.5),
   and the outline's top numbers its items in bold (the story's 1 and 2). */
#text ol.outline, #text ol.outline-top { list-style: none; padding-left: 0; }
#text ol.outline > li, #text ol.outline-top > li { position: relative; }
#text ol.outline > li, #text ol.outline-top > li { padding-left: 2.2em; }
#text ol.outline-top ol.outline { margin-left: -2.2em; }   /* one column of numbers, one of text */
#text ol.outline > li::before, #text ol.outline-top > li::before { content: attr(data-n); position: absolute; left: 0; font-variant-numeric: tabular-nums; }
#text ol.outline-top > li::before { font-weight: bold; }
#text ol.outline-top > li + li { margin-top: 14px; }
#text li + li { margin-top: 4px; }
.description { color: var(--muted); font-size: 19px; line-height: 1.35; margin-top: 4px !important; }
/* The day a section's own text last changed, small beneath it. */
.updated { color: var(--faint); font-size: 13px; }
blockquote { margin-left: 0; padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--muted); }
code { font-size: 0.9em; }
pre { overflow-x: auto; padding: 12px; background: var(--surface); border-radius: 6px; }

.relations { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 14px 0 0; font-size: 15px; }
.relations dt { color: var(--faint); }
.relations dd { margin: 0; }
#text .relations ol.limits { margin: 0; padding-left: 1.3em; }
#text .relations ol.limits li + li { margin-top: 0; }
/* For: the kinds of factory as one scale, always all of them in the same order,
   each shaded by the share of its factories that require it. A shaded kind opens
   to those factories on hover, or on a tap (src/app/65-kinds.js). */
.relations dd.kinds { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.kind { position: relative; }
.kind > :first-child {
  display: inline-block; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 4px;
  font: inherit; font-size: 13px; line-height: 21px; color: var(--text);
  background: color-mix(in srgb, var(--flow) var(--shade, 0%), transparent);
}
.kind > button { cursor: pointer; }
.kind > button:hover, .kind.open > button { border-color: var(--flow); }
.kind.none > :first-child { color: var(--faint); border-color: var(--line); }
.kind-card {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: max-content; max-width: 320px;
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); box-shadow: 0 12px 32px var(--lift); font-size: 14px; line-height: 1.5;
}
.kind-card::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* the pointer's way down to it */
.kind:is(:hover, .open, :has(:focus-visible)) .kind-card { display: block; }
.kind-card .count { color: var(--faint); }
.kind-card .parts { display: block; margin-top: 4px; }
.relations .also { margin-left: 6px; }
@media (max-width: 699px) {
  .kind { position: static; }            /* the card opens under the whole row, so it stays on screen */
  .kind-card { max-width: 100%; }
}

.cite { font-size: 0.78em; color: var(--faint); white-space: nowrap; }
.cite a { color: var(--muted); text-decoration: none; }
.cite a:hover { color: var(--text); }
/* The story claim a page's claim argues: ↑4. */
.up { font-size: 0.78em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.up:hover { color: var(--text); }

.generated .note, .sources .note { color: var(--faint); }
.glossary { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 8px 20px; margin: 16px 0 0; font-size: 15px; }
.glossary dt a { color: var(--text); text-decoration: none; }
.glossary dd { margin: 0; color: var(--muted); }
.undefined { color: var(--faint); font-style: italic; }
.changes { list-style: none; padding-left: 0; font-size: 15px; color: var(--muted); }
.changes li { margin-top: 10px !important; }
.changes .what { display: block; color: var(--text); }
.changes .what a { color: var(--text); }
.changes del { display: block; color: var(--faint); }
.changes ins { display: block; text-decoration: none; color: var(--text); }
.sources { padding-left: 1.6em; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.sources li { margin-top: 10px !important; }
.sources li:target { color: var(--text); }
.cited-by { color: var(--faint); }

/* ---- sub-pages ---- */

.page-top.depth-2 { margin-top: 24px; padding-top: 0; border-top: 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { display: block; max-width: 48%; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 500; line-height: 1.25; }
.pager a span { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pager a:hover { color: var(--link); }
.pager .next { margin-left: auto; text-align: right; }

/* What the world is on the left, when it last changed on the right. */
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px;
  margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px;
}
#text footer p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .depth-2 > .description { font-size: 23px; }
  .glossary { grid-template-columns: 1fr; gap: 0; }
  .glossary dd { margin-bottom: 10px; }
  /* The foot, centered beneath the pager's rule, each line in even halves. */
  footer { flex-direction: column; align-items: center; gap: 6px; margin-top: 56px; padding-top: 0; border-top: 0; text-align: center; font-size: 13px; }
  #text footer p { text-wrap: balance; }
}

/* On a phone, the world in 3D is where you move and the text is where you
   read, with one way across each: the placard's Read into the text, and the
   bar's 3D back into the world, where you are reading. Nothing floats over
   either, so the corner goes. Above the text, the world stands still, a
   picture of the page's level. */
@media (max-width: 699px) {
  #corner { display: none; }
  .js #map { height: min(46vh, 340px); margin: 4px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Pies: a part's share, under its name; wedges a shade apart; what no part covers, plain. */
.iso-share { fill: color-mix(in srgb, var(--accent, var(--flow-text)), #000 var(--ink)); font-weight: 500; letter-spacing: 0.08em; }
.wedge-1 .face-top { fill: color-mix(in srgb, #f3f1ec, var(--dusk) var(--night)); }
.wedge-2 .face-top { fill: color-mix(in srgb, #e8e5de, var(--dusk) var(--night)); }
.wedge-3 .face-top { fill: color-mix(in srgb, #eeebe5, var(--dusk) var(--night)); }
.rest { opacity: 0.55; }
.wedge .cut { fill: none; stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
/* Pointing at a wedge brightens it. */
.wedge .face-top { transition: fill 0.2s; }
.iso-link:is(:hover, :focus-visible) > .thing > .wedge .face-top { fill: color-mix(in srgb, #ffffff, var(--dusk) var(--night)); }
.rest .face-top { fill: var(--slab-top); }

/* ---- night ---- */

/* After dark the lights come on, each with a faint glow: windows in their
   factory's tone, doors and docks lit from inside, lamps, the melt, and what
   runs on the wires and the fiber. */
[data-theme="dark"] #map-iso :is(.lit, .door, .vent-mouth, .lp-cell-on, .lp-mote, .fr-lamp, .fr-cap-lamp, .fr-headlamp,
  .fr-tail, .fr-blast, .fr-arc, .fr-melt, .fr-pour, .fr-intake-lit, .fr-duct-line, .fr-duct-surge, .fr-surge, .fr-fiber,
  .fr-fiber-pulse, .fr-fiber-back, .fr-fiber-end, .fr-pulse, .fr-pulse-back, .fr-packet, .fr-tunnel-lamp, .aif-spill,
  .cap-chip, .cap-chip-ride, .ct-cross, .ct-door, .lm-door, .lm-now, .en-door, .en-sun, .en-core, .en-port-light,
  .en-gauge-lit, .dp-tip, .pm-fiber-lit, .pm-die, .pm-water-line, .tr-scan) { filter: url(#iso-glow); }
[data-theme="dark"] .lit-flow { stroke: var(--flow-text); opacity: 0.75; }
[data-theme="dark"] .lit-warm { stroke: var(--warm); }
[data-theme="dark"] .lit-earth { stroke: var(--earth); }
[data-theme="dark"] .lit-capital { stroke: var(--capital); }
[data-theme="dark"] .mat-glass ~ .lit { stroke-width: 2; }
[data-theme="dark"] .lit.flicker { animation: flicker 7.2s steps(1) infinite; }
[data-theme="dark"] .pane-lit { fill: var(--warm); opacity: 0.8; }
[data-theme="dark"] :is(.door, .vent-mouth) { fill: var(--earth); opacity: 0.85; }
[data-theme="dark"] :is(.ct-door, .lm-door) { fill: var(--warm); opacity: 0.9; }
[data-theme="dark"] .en-door { fill: var(--energy); opacity: 0.85; }
[data-theme="dark"] .cap-chip { fill: var(--earth); opacity: 0.9; }
[data-theme="dark"] .box .glazing { fill: var(--earth); opacity: 0.32; }
[data-theme="dark"] .aif-lab .glazing { fill: var(--flow); opacity: 0.45; }
/* The reactor's light pools on the ground round it. */
[data-theme="dark"] .spill { display: inline; fill: var(--energy); opacity: 0.22; filter: url(#iso-spill); }
[data-theme="dark"] .shadow { opacity: 0.55; }
/* AI factories: the campus, its labs, satellites, and what it makes. Colors come from the tokens on :root, mixed where a shade is
   needed; what's built of something (steel, a rocket, a crane) is its own color mixed toward the night sky, as in style.css. */

.aif-line { fill: none; }
.packet.aif-amber { fill: var(--earth); }
.belt.aif-amber { stroke: var(--earth); opacity: 0.5; }
.lit-feedback { stroke: var(--feedback); }

/* Doorways, and the light over their thresholds. */
.aif-door-earth { fill: var(--earth); }
.aif-door-flow { fill: var(--flow-text); opacity: 0.8; }
.aif-door-feedback { fill: var(--feedback); opacity: 0.75; }
.aif-spill { opacity: 0.3; }
.aif-spill-earth { fill: var(--earth); }
.aif-spill-flow { fill: var(--flow-text); }
.aif-spill-feedback { fill: var(--feedback); }

/* Weights, and the tokens that come off them. */
.aif-weight .face-top { fill: color-mix(in srgb, var(--flow) 30%, var(--light)); }
.aif-weight .face-left { fill: color-mix(in srgb, var(--flow) 52%, var(--light)); }
.aif-weight .face-right { fill: color-mix(in srgb, var(--flow) 74%, var(--light)); }
.aif-weight .rim { stroke: color-mix(in srgb, var(--flow-text) 55%, transparent); }
.aif-weight-hot .face-top { fill: var(--flow-text); animation: breathe 4.8s ease-in-out infinite; }
.aif-token { fill: var(--flow-text); }

/* Evals: glass sandboxes. */
.aif-glass :is(.face-top, .face-left, .face-right) { fill: var(--feedback); fill-opacity: 0.07; stroke: var(--feedback); stroke-opacity: 0.45; }
.aif-glass .rim { stroke: var(--feedback); stroke-opacity: 0.6; }

/* Labs: lavender glazing, the scaling ladder and its forecast. */
.aif-lab .glazing { fill: color-mix(in srgb, var(--glass-left) 70%, var(--flow)); }
.aif-run { fill: var(--flow-text); }
.aif-forecast { fill: none; stroke: var(--flow-text); stroke-width: 1.4; stroke-dasharray: 2 2.5; stroke-linecap: round; opacity: 0.85; }
.aif-layer-1 .face-top { fill: color-mix(in srgb, var(--face-top) 85%, var(--flow)); }

/* Space: orbits and beams. */
.aif-orbit { fill: none; stroke: var(--energy); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.4; animation: drift-fine 2.4s linear infinite; }
.aif-beam { stroke: var(--energy); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.55; }
.aif-beam-flow { stroke: var(--flow-text); }
/* A constellation filed but not flown: faint, its lasers dashed. */
.sp-planned { opacity: 0.5; }
.sp-laser { fill: none; stroke: var(--flow-text); stroke-width: 0.8; stroke-dasharray: 1.5 2.5; }

/* Environments: the fence round a guarded world, and the plane inside it. */
.aif-fence :is(polyline, line) { fill: none; stroke: var(--muted); stroke-width: 0.8; stroke-linecap: round; opacity: 0.7; }

/* Evals: the scoreboard's bars, every one at its ceiling, and the safe's dial. */
.aif-sat { fill: var(--feedback); opacity: 0.85; animation: breathe 4.8s ease-in-out infinite; }
.aif-ceiling { stroke: var(--feedback); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }
.aif-dial { fill: var(--face-top); stroke: var(--muted); stroke-width: 1; }
.aif-dial-tick { stroke: var(--muted); stroke-width: 1; stroke-linecap: round; }

/* Online training clusters: the ring their users' responses come home on. */
.aif-ring { fill: none; stroke: var(--feedback); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.55; }
.aif-apron { fill: var(--asphalt); opacity: 0.85; }

/* Tokens: the screen a running model writes to, its text and its code. */
.aif-screen { fill: var(--void); }
.aif-text { stroke: color-mix(in srgb, var(--light) 80%, var(--void)); stroke-width: 1; stroke-linecap: round; opacity: 0.8; }
.aif-code { stroke: var(--flow-text); stroke-width: 1; stroke-linecap: round; }

/* Methods: the blueprint of the stack, the write-ups, and the copies that fly. */
.aif-blueprint { fill: color-mix(in srgb, #2d5f9a, var(--dusk) var(--night)); }
.aif-plan { fill: none; stroke: color-mix(in srgb, var(--light) 75%, transparent); stroke-width: 0.8; }
.aif-plan-lit { fill: var(--flow-text); fill-opacity: 0.55; }
.aif-paper :is(.face-top, .face-left, .face-right) { fill: var(--paving); }
.aif-paper-plane { fill: var(--paving); stroke: var(--muted); stroke-width: 0.5; stroke-linejoin: round; }

/* Online training clusters: a lesson's tiers, the sandbox and its judge, a day's dial. */
.aif-page { fill: var(--paving); stroke: var(--line); stroke-width: 0.5; }
.aif-page-line { stroke: var(--muted); stroke-width: 0.7; stroke-linecap: round; opacity: 0.7; }
.aif-ring-bind { fill: var(--steel-top); }
.aif-sand { fill: color-mix(in srgb, #e6d3a1, var(--dusk) var(--night)); }
.aif-learner { fill: var(--flow-text); }
/* The cheap judge's lamp, within the learner's reach: it approves of everything. */
.aif-proxy { fill: var(--feedback); }
[data-theme="dark"] .aif-proxy { filter: url(#iso-glow); }
.aif-rung { stroke: var(--muted); stroke-width: 0.8; stroke-linecap: round; }
.aif-dial-plate .face-top { fill: var(--paving); }
.aif-hour { fill: none; stroke: var(--muted); stroke-width: 0.7; stroke-linecap: round; }
.aif-sunlight { fill: var(--sun); }
.aif-ship { fill: var(--flow-text); }
.aif-price-falls { fill: var(--flow-text); }
.aif-price-rises { fill: var(--earth); }
.aif-mark-token { fill: var(--flow-text); opacity: 0.55; }
.aif-mark-chip { fill: var(--earth); opacity: 0.55; }
/* Data halls: an open bay, the racks inside it and their lights; the
   transformer that feeds a hall, its fins and bushings, and its wire. */
.aif-bay { fill: var(--void); }
.aif-rack { fill: color-mix(in srgb, #3c4048, var(--dusk) var(--night)); stroke: color-mix(in srgb, #555a63, var(--dusk) var(--night)); stroke-width: 0.4; }
.aif-led { stroke: var(--flow); stroke-width: 0.9; stroke-linecap: round; animation: aif-blink 4.8s steps(1) infinite; }
@keyframes aif-blink { 0%, 70% { opacity: 1; } 71%, 78% { opacity: 0.3; } 79%, 100% { opacity: 1; } }
.aif-plinth .face-top { fill: color-mix(in srgb, #dcd8d0, var(--dusk) var(--night)); }
.aif-plinth .face-left { fill: color-mix(in srgb, #c3beb5, var(--dusk) var(--night)); }
.aif-plinth .face-right { fill: color-mix(in srgb, #a6a197, var(--dusk) var(--night)); }
.aif-tank .face-top { fill: color-mix(in srgb, #a9b3a4, var(--dusk) var(--night)); }
.aif-tank .face-left { fill: color-mix(in srgb, #8f9a8a, var(--dusk) var(--night)); }
.aif-tank .face-right { fill: color-mix(in srgb, #768170, var(--dusk) var(--night)); }
.aif-fin { stroke: color-mix(in srgb, #5f695b, var(--dusk) var(--night)); stroke-width: 0.6; }
.aif-bushing :is(.face-top, .face-left) { fill: color-mix(in srgb, #7b5a44, var(--dusk) var(--night)); }
.aif-wire { fill: none; stroke: var(--energy); stroke-width: 0.9; opacity: 0.7; }
/* A building going up: its steel, the crane lifting it, the hook's line. */
.aif-steel .face-top { fill: color-mix(in srgb, #8d969f, var(--dusk) var(--night)); }
.aif-steel .face-left { fill: color-mix(in srgb, #737c86, var(--dusk) var(--night)); }
.aif-steel .face-right { fill: color-mix(in srgb, #5f6770, var(--dusk) var(--night)); }
.aif-crane .face-top { fill: color-mix(in srgb, #f0c54a, var(--dusk) var(--night)); }
.aif-crane .face-left { fill: color-mix(in srgb, #dcac2c, var(--dusk) var(--night)); }
.aif-crane .face-right { fill: color-mix(in srgb, #b98f1f, var(--dusk) var(--night)); }
.aif-hook { stroke: var(--muted); stroke-width: 0.7; }
/* A lab's variants, tried in private: faint. */
.aif-variant { opacity: 0.4; }
/* A gate on an online cluster's ring, where each turn is tested. */
.aif-gate .face-top { fill: color-mix(in srgb, var(--feedback) 30%, var(--steel-top)); }
.aif-gate .face-left { fill: color-mix(in srgb, var(--feedback) 30%, var(--steel-left)); }
.aif-gate .face-right { fill: color-mix(in srgb, var(--feedback) 30%, var(--steel-right)); }
/* A lab's lobby, its desk, and the screens its agents write on. */
.aif-lobby { fill: color-mix(in srgb, #e9ecf6, var(--dusk) var(--night)); }
.aif-desk { stroke: var(--muted); stroke-width: 0.8; stroke-linecap: round; }
.aif-agent-screen { fill: var(--flow); opacity: 0.9; }
.aif-agent-code { stroke: var(--light); stroke-width: 0.6; stroke-linecap: round; opacity: 0.85; }
[data-theme="dark"] .aif-bay { fill: color-mix(in srgb, var(--flow) 35%, var(--void)); }
[data-theme="dark"] .aif-lobby { fill: color-mix(in srgb, var(--flow) 30%, var(--void)); }
[data-theme="dark"] :is(.aif-led, .aif-agent-screen) { filter: url(#iso-glow); }

/* A launch pad: its tower, its rocket and the rocket's nose, and
   satellites stacked flat to go up in it, their tops all panel. */
.sp-tower .face-top { fill: color-mix(in srgb, #c45a3c, var(--dusk) var(--night)); }
.sp-tower .face-left { fill: color-mix(in srgb, #a9492f, var(--dusk) var(--night)); }
.sp-tower .face-right { fill: color-mix(in srgb, #8a3b26, var(--dusk) var(--night)); }
.sp-rocket .face-top, .sp-nose { fill: var(--white); }
.sp-rocket .face-left { fill: color-mix(in srgb, #e8e8e6, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.15), rgb(from var(--dusk) r g b / 0.15) var(--night)); stroke-width: 0.6; }
.sp-nose { stroke: color-mix(in srgb, rgba(40, 34, 26, 0.15), rgb(from var(--dusk) r g b / 0.15) var(--night)); stroke-width: 0.6; }
.sp-flat .face-top { fill: color-mix(in srgb, #2f4a6e, var(--dusk) var(--night)); }
.sp-flat .face-left { fill: color-mix(in srgb, #c9cdd2, var(--dusk) var(--night)); }
.sp-flat .face-right { fill: color-mix(in srgb, #a9aeb4, var(--dusk) var(--night)); }

/* The pad a grid connection would stand on, not built yet. */
.sp-unbuilt { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
/* Capital: what funds the factories. Its blocks are tinted with the
   capital token; the economy's growth and the ghost's papers keep the loop's
   lavender, since they are claims on intelligence. Colors come only from the
   tokens on :root, mixed where a shade is needed. */

/* Capital, in layers: debt at the bottom, equity on top. */
.cap-capital-0 .face-top { fill: color-mix(in srgb, var(--face-top) 85%, var(--capital)); }
.cap-capital-0 .face-left { fill: color-mix(in srgb, var(--face-left) 88%, var(--capital)); }
.cap-capital-0 .face-right { fill: color-mix(in srgb, var(--face-right) 88%, var(--capital)); }
.cap-capital-1 .face-left { fill: color-mix(in srgb, var(--face-left) 80%, var(--capital)); }
.cap-capital-1 .face-right { fill: color-mix(in srgb, var(--face-right) 80%, var(--capital)); }
.cap-capital-2 .face-left { fill: color-mix(in srgb, var(--face-left) 72%, var(--capital)); }
.cap-capital-2 .face-right { fill: color-mix(in srgb, var(--face-right) 72%, var(--capital)); }
.cap-capital-3 .face-left { fill: color-mix(in srgb, var(--face-left) 64%, var(--capital)); }
.cap-capital-3 .face-right { fill: color-mix(in srgb, var(--face-right) 64%, var(--capital)); }
.cap-capital .rim { stroke: color-mix(in srgb, var(--capital) 35%, transparent); }
.cap-plate .face-top { fill: var(--slab-top); }

/* The instrument's chips, through its open roof. */
.cap-load { fill: var(--slab-left); }
.cap-chip { fill: var(--gold); }
.cap-chip.flicker { animation: flicker 7.2s steps(1) infinite; }

/* Growth: AI's part of it. */
.cap-ai .face-top { fill: var(--flow-text); }
.cap-ai .face-left { fill: var(--flow); }
.cap-ai .face-right { fill: color-mix(in srgb, var(--flow) 78%, var(--void)); }
.cap-ai { animation: breathe 4.8s ease-in-out infinite; }

/* The data center that does not exist. */
.cap-ghost { fill: none; stroke: var(--flow-text); stroke-width: 1; stroke-dasharray: 3.5 3.5; stroke-linejoin: round; opacity: 0.75; animation: drift-fine 2.4s linear infinite; }
.cap-ghost-far { opacity: 0.3; }
.cap-ghost-floor { fill: var(--flow); opacity: 0.06; }
.cap-paper { fill: var(--flow-text); opacity: 0.2; stroke: var(--flow-text); stroke-opacity: 0.55; stroke-width: 1; }
.cap-paper-top { opacity: 0.34; }
.cap-paper-line { fill: none; stroke: var(--text); stroke-width: 1; opacity: 0.35; }
.cap-token { fill: var(--flow-text); }

/* Stranded compute: walls going up, racks in place, chips dark. */
.cap-wall { stroke: var(--line-strong); stroke-width: 1; stroke-linejoin: round; }
.cap-post .face-left, .cap-post .face-right { fill: var(--line-strong); }
.cap-idle .face-top { fill: color-mix(in srgb, var(--face-top) 70%, var(--bg)); }
.cap-idle .face-left { fill: color-mix(in srgb, var(--face-left) 70%, var(--bg)); }
.cap-idle .face-right { fill: color-mix(in srgb, var(--face-right) 70%, var(--bg)); }
.cap-chip-idle { fill: var(--line-strong); }

/* Anchor assets: one heavy block, small ones all around it, routes in. */
.cap-anchor .face-top { fill: color-mix(in srgb, var(--face-top) 78%, var(--capital)); }
.cap-anchor .face-left { fill: color-mix(in srgb, var(--face-left) 82%, var(--capital)); }
.cap-anchor .face-right { fill: color-mix(in srgb, var(--face-right) 85%, var(--capital)); }
.cap-anchor .rim { stroke: color-mix(in srgb, var(--capital) 45%, transparent); }
.cap-unit .rim { stroke: color-mix(in srgb, var(--capital) 25%, transparent); }
.cap-route { fill: none; stroke: var(--capital); stroke-width: 1; stroke-dasharray: 1.5 3; opacity: 0.4; }
.cap-glint { fill: var(--capital); }

/* The ways that tie the parts to the instrument in the middle. */
.cap-way { fill: color-mix(in srgb, var(--slab-top) 92%, var(--capital)); }
.cap-route-way { opacity: 0.55; }
.cap-route-dead { opacity: 0.22; }
.cap-chip-ride { fill: var(--earth); }
.cap-ghost-way { fill: none; stroke: var(--flow-text); stroke-width: 1; stroke-dasharray: 3.5 3.5; opacity: 0.45; animation: drift-fine 2.4s linear infinite; }

/* Money, in coins: funding stacked at a plant still going up, returns coming
   back onto a short stack beside the outline of what's committed
   (src/scenes/pictures-foundation.js). */
.cap-coins .face-top { fill: var(--gold); }
.cap-coins .face-left { fill: color-mix(in srgb, var(--gold) 78%, var(--void)); }
.cap-coins .rim, .cap-coins .face-top { stroke: color-mix(in srgb, var(--gold) 60%, var(--void)); stroke-width: 0.6; }
.cap-coin-edge { fill: none; stroke: color-mix(in srgb, var(--gold) 55%, var(--void)); stroke-width: 0.6; }
.cap-coin-drop { fill: var(--gold); }
.cap-owed { fill: none; stroke: color-mix(in srgb, var(--gold) 80%, var(--void)); stroke-width: 1.3; stroke-dasharray: 3.5 3; }
.cap-owed .cap-owed-fill { fill: var(--gold); fill-opacity: 0.12; stroke: none; }
.cap-hollow { fill: color-mix(in srgb, var(--face-right) 70%, var(--void)); }
.cap-rebar { stroke: color-mix(in srgb, #8a5a3c, var(--dusk) var(--night)); stroke-width: 1; stroke-linecap: round; }
.cap-cable { stroke: var(--line-strong); stroke-width: 0.8; }
/* A share of power, in lit cells: the energy's cyan, the same stack as coins (kit.shareStack). */
.share-cells .face-top { fill: color-mix(in srgb, var(--energy) 55%, var(--light)); }
.share-cells .face-left { fill: color-mix(in srgb, var(--energy) 80%, var(--void)); }
.share-cells .rim, .share-cells .face-top { stroke: color-mix(in srgb, var(--energy) 60%, var(--void)); stroke-width: 0.6; }
.share-cell-edge { fill: none; stroke: color-mix(in srgb, var(--energy) 40%, var(--light)); stroke-width: 0.6; }

/* Standard designs: the plan every copy comes from. */
.cap-plan { fill: color-mix(in srgb, #3f6fb0, var(--dusk) var(--night)); opacity: 0.85; }
.cap-plan-line { fill: none; stroke: color-mix(in srgb, #e9f0fa, var(--dusk) var(--night)); stroke-width: 0.7; opacity: 0.9; }

/* Repricing: the market's screen, its face tiled like the index by size,
   up in mint, down in red, the hardest falls deepest
   (src/scenes/pictures-foundation.js). */
.cap-screen .face-top, .cap-screen .face-left { fill: var(--steel-left); }
.cap-screen .face-right { fill: color-mix(in srgb, #22262c, var(--dusk) var(--night)); }
.cap-tile { stroke: none; }
.cap-tile-up { fill: var(--feedback); opacity: 0.85; }
.cap-tile-down { fill: color-mix(in srgb, #d9443a 55%, #22262c); }
.cap-tile-fall { fill: #d9443a; }
[data-theme="dark"] :is(.cap-tile-up, .cap-tile-fall) { filter: url(#iso-glow); }

/* The financial object's holders: Pimco's notes, paper on a pallet, the
   outline of what it held before it sold half, and notes sliding off to
   people who own a bond fund. */
.cap-notes .face-top { fill: color-mix(in srgb, #f7f4ec, var(--dusk) var(--night)); }
.cap-notes .face-left { fill: color-mix(in srgb, #e6e0d2, var(--dusk) var(--night)); }
.cap-notes .face-right { fill: color-mix(in srgb, #cfc7b6, var(--dusk) var(--night)); }
.cap-note-edge { fill: none; stroke: color-mix(in srgb, rgba(60, 50, 30, 0.22), rgb(from var(--dusk) r g b / 0.22) var(--night)); stroke-width: 0.6; }
.cap-held { fill: none; stroke: var(--capital); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.8; }
.cap-note-ride polygon { fill: color-mix(in srgb, #f7f4ec, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(60, 50, 30, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.6; }

/* The booms before the buildout: a locomotive on its track, a reel of fiber
   cable, a rack of GPUs. */
.cap-sleeper { stroke: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); stroke-width: 1.6; stroke-linecap: round; }
.cap-rail { stroke: var(--muted); stroke-width: 0.9; }
.cap-loco .face-top { fill: color-mix(in srgb, #5a5f66, var(--dusk) var(--night)); }
.cap-loco .face-left { fill: color-mix(in srgb, #43474d, var(--dusk) var(--night)); }
.cap-loco .face-right { fill: color-mix(in srgb, #33363b, var(--dusk) var(--night)); }
.cap-brass .face-top, .cap-brass .face-left { fill: var(--gold); }
.cap-wheel { fill: color-mix(in srgb, #2c2f35, var(--dusk) var(--night)); stroke: var(--gold); stroke-width: 0.8; }
.cap-flange { fill: color-mix(in srgb, #c9a678, var(--dusk) var(--night)); stroke: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); stroke-width: 0.8; }
.cap-hub { fill: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); }
.cap-cable-wound .face-top { fill: color-mix(in srgb, #f0b429, var(--dusk) var(--night)); }
.cap-cable-wound .face-left { fill: color-mix(in srgb, #d99a17, var(--dusk) var(--night)); }
.cap-cable-wound .face-right { fill: color-mix(in srgb, #b98010, var(--dusk) var(--night)); }
.cap-rack .face-top { fill: color-mix(in srgb, #4a4f57, var(--dusk) var(--night)); }
.cap-rack .face-left { fill: color-mix(in srgb, #363a40, var(--dusk) var(--night)); }
.cap-rack .face-right { fill: color-mix(in srgb, #2a2d32, var(--dusk) var(--night)); }
.cap-rack ~ .lit-flow { stroke: var(--flow-text); }

/* Anchor assets: on-site generators by a data hall that couldn't wait, and
   an open copper pit by the dam, benches down to green water. */
.cap-genset .face-top { fill: color-mix(in srgb, #e9c43a, var(--dusk) var(--night)); }
.cap-genset .face-left { fill: color-mix(in srgb, #d6ad1f, var(--dusk) var(--night)); }
.cap-genset .face-right { fill: color-mix(in srgb, #b38f14, var(--dusk) var(--night)); }
.cap-louver { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.6; }
.cap-pit-bench { fill: color-mix(in srgb, #c7a985, var(--dusk) var(--night)); stroke: color-mix(in srgb, #b3926c, var(--dusk) var(--night)); stroke-width: 0.5; }
.cap-pit-wall-l { fill: color-mix(in srgb, #9f7b5a, var(--dusk) var(--night)); }
.cap-pit-wall-r { fill: color-mix(in srgb, #86664a, var(--dusk) var(--night)); }
.cap-pit-water { fill: color-mix(in srgb, #5fa596, var(--dusk) var(--night)); }
.cap-pit-mask { fill: var(--slab-top); }
.cap-pit-rim { fill: none; stroke: color-mix(in srgb, #b3926c, var(--dusk) var(--night)); stroke-width: 0.8; }
.cap-haul .face-top { fill: color-mix(in srgb, #f2c230, var(--dusk) var(--night)); }
.cap-haul .face-left { fill: color-mix(in srgb, #d6a51e, var(--dusk) var(--night)); }
.cap-haul .face-right { fill: color-mix(in srgb, #a97f14, var(--dusk) var(--night)); }

/* ---- cities: the city, and the state house at the head of its main street (src/scenes/cities.js) ---- */
/* Streets, their lanes, the plaza; the river running under the bridge. */
.ct-street { fill: var(--asphalt); opacity: 0.85; }
.ct-lane { fill: none; stroke: var(--white); stroke-opacity: 0.7; stroke-width: 1; stroke-dasharray: 3 5; }
.ct-plaza { fill: var(--paving); }
.ct-ripple { fill: none; stroke: var(--feedback); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0.1 6.9; opacity: 0.8; animation: ct-run 2.4s linear infinite; }
@keyframes ct-run { to { stroke-dashoffset: -7; } }

/* People, warm: walking, or standing their ground. */
.ct-person { fill: var(--warm); }
.ct-person-shadow { fill: var(--shade); opacity: 0.22; }
.ct-still { opacity: 0.85; }

/* One more going up: its outline, the crane, the piece on its hook. */
.ct-frame { fill: none; stroke: var(--warm); stroke-width: 1; stroke-dasharray: 2 2.5; stroke-linejoin: round; opacity: 0.7; }
.ct-crane .face-top { fill: var(--muted); }
.ct-crane .face-left { fill: var(--faint); }
.ct-crane .face-right { fill: var(--face-top); }
.ct-cable { stroke: var(--muted); stroke-width: 0.8; }
.ct-load .face-top { fill: var(--warm); }
.ct-load .face-left { fill: var(--warm); opacity: 0.7; }
.ct-load .face-right { fill: var(--warm); opacity: 0.5; }

/* The hospital's cross and its door, lit. */
.ct-cross { fill: #d9443a; }
.ct-door { fill: var(--void); }

/* What people said no to: a data hall drawn only as an outline, on its staked plot. */
.ct-held { fill: none; stroke: var(--flow-text); stroke-opacity: 0.6; stroke-width: 1; stroke-dasharray: 3 3; stroke-linejoin: round; }
.ct-stake { stroke: var(--earth); stroke-width: 1.2; stroke-linecap: round; }

/* The state house: pale stone, a dome, a flag. */
.ct-stone .face-top { fill: color-mix(in srgb, var(--warm) 10%, var(--face-top)); }
.ct-stone .face-left { fill: color-mix(in srgb, var(--warm) 6%, var(--face-left)); }
.ct-dome { fill: color-mix(in srgb, var(--warm) 14%, var(--face-top)); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.14), rgb(from var(--dusk) r g b / 0.14) var(--night)); stroke-width: 1; }
.ct-pole { stroke: var(--muted); stroke-width: 1; stroke-linecap: round; }
.ct-flag { fill: var(--warm); }

/* The gate at the bridge: its log lit, its boom standing up. */
.ct-log { fill: var(--warm); opacity: 0.75; animation: flicker 7.2s steps(1) infinite; }
.ct-boom { stroke: var(--warm); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2.5 2; }

/* Impacts: desert, the mesa, the mine's portal, its waste, and the ban. */
.im-desert { fill: color-mix(in srgb, #d8b48a, var(--dusk) var(--night)); }
.im-rock .face-top { fill: color-mix(in srgb, #c98a5e, var(--dusk) var(--night)); }
.im-rock .face-left { fill: color-mix(in srgb, #b0704a, var(--dusk) var(--night)); }
.im-rock .face-right { fill: color-mix(in srgb, #92593a, var(--dusk) var(--night)); }
.im-portal { fill: var(--void); }
.im-scree { fill: color-mix(in srgb, #bd8a62, var(--dusk) var(--night)); }
.im-scree-right { fill: color-mix(in srgb, #9e6d4b, var(--dusk) var(--night)); }
.im-tailings { fill: color-mix(in srgb, #d9cf9a, var(--dusk) var(--night)); }
.im-tailings-shade { fill: color-mix(in srgb, #b9ae7a, var(--dusk) var(--night)); }
.im-sign { fill: color-mix(in srgb, #c04a3f, var(--dusk) var(--night)); stroke: var(--white); stroke-width: 0.5; }

/* Approvals' level: the range Varda lands on (its target, the capsule and
   its canopy), the simulator on its jacks, the school's bus, and the
   appeals stacked at the agency's door. */
.ct-target { fill: none; stroke: var(--white); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: 0.85; }
.ct-target-mid { fill: var(--warm); fill-opacity: 0.35; stroke-dasharray: none; }
.ct-capsule { fill: color-mix(in srgb, #e9e7e2, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.25), rgb(from var(--dusk) r g b / 0.25) var(--night)); stroke-width: 0.6; }
.ct-shield { fill: color-mix(in srgb, #4a4038, var(--dusk) var(--night)); }
.ct-shroud { stroke: var(--muted); stroke-width: 0.5; opacity: 0.8; }
.ct-canopy { fill: var(--warm); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.2), rgb(from var(--dusk) r g b / 0.2) var(--night)); stroke-width: 0.5; stroke-linejoin: round; }
.ct-canopy-alt { fill: var(--white); }
.ct-canopy-rim { fill: none; stroke: color-mix(in srgb, rgba(40, 34, 26, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.6; }
.ct-jack { stroke: var(--steel-right); stroke-linecap: round; }
.ct-bus .face-top { fill: color-mix(in srgb, #f2c230, var(--dusk) var(--night)); }
.ct-bus .face-left { fill: color-mix(in srgb, #e3ac1a, var(--dusk) var(--night)); }
.ct-bus .face-right { fill: color-mix(in srgb, #c99414, var(--dusk) var(--night)); }
.ct-bus-glass { fill: none; stroke: color-mix(in srgb, #2c2f35, var(--dusk) var(--night)); stroke-width: 2.4; stroke-linecap: round; }
.ct-wheel { fill: color-mix(in srgb, #2c2f35, var(--dusk) var(--night)); }
.ct-files .face-top { fill: color-mix(in srgb, #ead9ad, var(--dusk) var(--night)); }
.ct-files .face-left { fill: color-mix(in srgb, #d9c491, var(--dusk) var(--night)); }
.ct-files .face-right { fill: color-mix(in srgb, #bfa975, var(--dusk) var(--night)); }
.ct-file-edge { fill: none; stroke: color-mix(in srgb, rgba(60, 50, 30, 0.25), rgb(from var(--dusk) r g b / 0.25) var(--night)); stroke-width: 0.5; }
[data-theme="dark"] .ct-bus-glass { stroke: var(--warm); filter: url(#iso-glow); }

/* Impacts: a hogan's sod roof by the mines; the church's spire in the factory town. */
.im-hogan-roof { fill: color-mix(in srgb, #a8865e, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.2), rgb(from var(--dusk) r g b / 0.2) var(--night)); stroke-width: 0.6; }
.ct-spire-l { fill: color-mix(in srgb, #74524a, var(--dusk) var(--night)); }
.ct-spire-r { fill: color-mix(in srgb, #5f433c, var(--dusk) var(--night)); }
/* Our demand: the corner shop's lit window and its striped awning. */
.ct-window { fill: var(--glass-left); }
.ct-awning { fill: var(--warm); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.18), rgb(from var(--dusk) r g b / 0.18) var(--night)); stroke-width: 0.4; }
.ct-awning-alt { fill: var(--white); }
[data-theme="dark"] .ct-window { fill: var(--warm); opacity: 0.85; filter: url(#iso-glow); }
/* ---- scene: decisions for physical factories (src/scenes/decisions-physical.js) ---- */

/* What to make: a blueprint on a drafting table, new drafts lifting off it. */
.dp-table .face-top { fill: var(--face-left); }
.dp-blueprint { fill: var(--flow); fill-opacity: 0.38; stroke: var(--flow-text); stroke-width: 0.8; stroke-linejoin: round; }
.dp-ink { fill: none; stroke: var(--flow-text); stroke-width: 0.9; stroke-linejoin: round; }
.dp-ink-thin { stroke-width: 0.6; stroke-dasharray: 3 2; opacity: 0.8; }
.dp-draft { fill: var(--flow); fill-opacity: 0.18; stroke: var(--flow-text); stroke-width: 0.7; stroke-linejoin: round; opacity: 0; }

/* How to make it: a machine's window, its toolpath, and its program. */
.dp-window { fill: var(--glass-top); stroke: var(--flow); stroke-opacity: 0.5; stroke-width: 0.8; stroke-linejoin: round; }
.dp-toolpath { fill: none; stroke: var(--flow); stroke-width: 0.8; stroke-dasharray: 1 2.5; opacity: 0.7; }
.dp-tip { fill: var(--flow-text); }
.dp-panel .face-right { fill: var(--void); }
.dp-code { stroke: var(--flow-text); stroke-width: 1.4; stroke-linecap: round; opacity: 0; }

/* How much, when, and where: a schedule board, its slots booked far ahead. */
.dp-slot { fill: var(--face-right); stroke: var(--line-strong); stroke-width: 0.6; }
.dp-slot-booked { fill: var(--flow); opacity: 0; }

/* What to use instead: the straight way barred, the way round lit. */
.dp-blocked { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 3; opacity: 0.45; }
.dp-barrier :is(.face-top, .face-left, .face-right) { fill: var(--muted); }
.dp-stripe { fill: var(--earth); }
.dp-detour { opacity: 0.8; }
.dp-post .face-top { fill: var(--muted); }
.dp-sign { fill: var(--flow-text); opacity: 0.9; }

/* Which factories to build: the new plant's finished walls. */
.dp-built .face-top { fill: var(--face-top); }
/* ---- scenes: the classes' and the Anything Factory's own details (src/scenes/loop.js, cl- and af-) ---- */

/* Paper: page edges down a stack, a sheet lying open. */
.cl-edge { stroke: color-mix(in srgb, #b9b3a8, var(--dusk) var(--night)); stroke-width: 0.35; }
.cl-page { fill: var(--white); stroke: color-mix(in srgb, #c9c3b8, var(--dusk) var(--night)); stroke-width: 0.4; }

/* The governor's clock: the board of what the checks flag, and the cooling a
   system runs inside its operators' fence, stakes out past it. */
.cl-board .face-top, .cl-board .face-left { fill: color-mix(in srgb, #33373e, var(--dusk) var(--night)); }
.cl-board .face-right { fill: color-mix(in srgb, #24272c, var(--dusk) var(--night)); }
.cl-pass { fill: var(--feedback); opacity: 0.85; }
.cl-fail { fill: #e5564a; }
.cl-concrete .face-top { fill: color-mix(in srgb, #dcd8d0, var(--dusk) var(--night)); }
.cl-concrete .face-left { fill: color-mix(in srgb, #c8c3b9, var(--dusk) var(--night)); }
.cl-concrete .face-right { fill: color-mix(in srgb, #aca69b, var(--dusk) var(--night)); }
.cl-louver { stroke: color-mix(in srgb, #6f6a62, var(--dusk) var(--night)); stroke-width: 0.5; }
.cl-fence { fill: none; stroke: var(--warm); stroke-width: 0.7; stroke-linejoin: round; opacity: 0.9; }
.cl-stake-tip { stroke: var(--warm); stroke-width: 1.6; stroke-linecap: round; }

/* Class 1: a 3D printer on its bench, its controller board out beside it, and the schematic. */
.cl-printer .face-top { fill: color-mix(in srgb, #4a4e55, var(--dusk) var(--night)); }
.cl-printer .face-left { fill: color-mix(in srgb, #3a3d43, var(--dusk) var(--night)); }
.cl-printer .face-right { fill: color-mix(in srgb, #2c2f34, var(--dusk) var(--night)); }
.cl-bed .face-top { fill: color-mix(in srgb, #b9c0c7, var(--dusk) var(--night)); }
.cl-head .face-top, .cl-head .face-left { fill: color-mix(in srgb, #5d636b, var(--dusk) var(--night)); }
.cl-head .face-right { fill: color-mix(in srgb, #464b52, var(--dusk) var(--night)); }
.cl-print .face-top { fill: var(--earth); }
.cl-print .face-left { fill: color-mix(in srgb, var(--earth) 80%, #000); }
.cl-print .face-right { fill: color-mix(in srgb, var(--earth) 62%, #000); }
.cl-nozzle { stroke: var(--earth); stroke-width: 1; stroke-linecap: round; }
.cl-spool { fill: var(--earth); stroke: color-mix(in srgb, var(--earth) 60%, #000); stroke-width: 0.5; }
.cl-spool-hub { fill: var(--void); }
.cl-pcb .face-top { fill: var(--pcb-top); }
.cl-pcb .face-left { fill: var(--pcb-left); }
.cl-pcb .face-right { fill: var(--pcb-right); }
.cl-chip .face-top, .cl-chip .face-left, .cl-chip .face-right { fill: var(--void); }
.cl-ribbon { stroke: color-mix(in srgb, #8d939b, var(--dusk) var(--night)); stroke-width: 0.6; }
.cl-schematic { fill: var(--white); stroke: color-mix(in srgb, #c9c3b8, var(--dusk) var(--night)); stroke-width: 0.4; }
.cl-trace { fill: none; stroke: color-mix(in srgb, #3d5a8c, var(--dusk) 30%); stroke-width: 0.35; stroke-linecap: round; stroke-linejoin: round; }
.cl-part { fill: var(--white); stroke: color-mix(in srgb, #3d5a8c, var(--dusk) 30%); stroke-width: 0.35; }

/* Class 2: the board its agents started, cork on two legs, their notes pinned up. */
.cl-cork .face-top { fill: color-mix(in srgb, #a77e52, var(--dusk) var(--night)); }
.cl-cork .face-left { fill: color-mix(in srgb, #c49a6a, var(--dusk) var(--night)); }
.cl-cork .face-right { fill: color-mix(in srgb, #8b6842, var(--dusk) var(--night)); }
.cl-note { fill: color-mix(in srgb, var(--flow) 55%, var(--white)); }
.cl-note-alt { fill: var(--flow); }

/* Class 3: its charter, set into its step: carved stone at the top, sheets below. */
.cl-tablet { fill: color-mix(in srgb, #cfc9be, var(--dusk) var(--night)); stroke: color-mix(in srgb, #a9a297, var(--dusk) var(--night)); stroke-width: 0.6; }
.cl-carved { stroke: color-mix(in srgb, #8a8378, var(--dusk) var(--night)); stroke-width: 0.6; stroke-linecap: round; }
.cl-sheet { fill: var(--white); stroke: color-mix(in srgb, #c9c3b8, var(--dusk) var(--night)); stroke-width: 0.4; }
.cl-ink { stroke: color-mix(in srgb, var(--warm) 75%, #000); stroke-width: 0.55; stroke-linecap: round; }
.cl-ink-flow { stroke: var(--flow-text); stroke-width: 0.55; stroke-linecap: round; }

/* After dark: the board's lamps glow, and the factory's hand. */
[data-theme="dark"] #map-iso :is(.cl-pass, .cl-fail) { filter: url(#iso-glow); }
[data-theme="dark"] .cl-trace { stroke: var(--flow-text); opacity: 0.7; }

/* ---- the Anything Factory ---- */

/* Self-replication: racks going into the hall robots build, the arm setting
   the next, and the permit at the plot after next, its stamp not yet on it. */
.af-rack .face-top { fill: color-mix(in srgb, #4b5059, var(--dusk) var(--night)); }
.af-rack .face-left { fill: color-mix(in srgb, #3a3e46, var(--dusk) var(--night)); }
.af-rack .face-right { fill: color-mix(in srgb, #2d3037, var(--dusk) var(--night)); }
.af-robot .face-top { fill: color-mix(in srgb, #f0b43c, var(--dusk) var(--night)); }
.af-robot .face-left { fill: color-mix(in srgb, #d99a22, var(--dusk) var(--night)); }
.af-link { fill: none; stroke-linecap: round; }
.af-robot-link { stroke: color-mix(in srgb, #e9a92c, var(--dusk) var(--night)); }
.af-joint { fill: color-mix(in srgb, #4b5059, var(--dusk) var(--night)); }
.af-permit .face-top, .af-permit .face-left { fill: var(--white); }
.af-permit .face-right { fill: color-mix(in srgb, #d9d4ca, var(--dusk) var(--night)); }
.af-permit-line { stroke: color-mix(in srgb, #9a958c, var(--dusk) var(--night)); stroke-width: 0.6; stroke-linecap: round; }
.af-permit-stamp { fill: none; stroke: var(--warm); stroke-width: 0.8; stroke-dasharray: 1.4 1.4; }

/* The ecology's power: five small reactors, each its own design, on one pad. */
.af-pad { fill: color-mix(in srgb, #dedad2, var(--dusk) var(--night)); stroke: color-mix(in srgb, #c8c3b9, var(--dusk) var(--night)); stroke-width: 0.8; }
.af-vessel .face-top { fill: color-mix(in srgb, #f1efea, var(--dusk) var(--night)); }
.af-vessel .face-left { fill: color-mix(in srgb, #d8d4cc, var(--dusk) var(--night)); }
.af-insulator { stroke: color-mix(in srgb, #8d939b, var(--dusk) var(--night)); stroke-width: 1.2; stroke-linecap: round; }
.af-sodium { fill: none; stroke: var(--earth); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.af-container .face-top { fill: color-mix(in srgb, #5f8c86, var(--dusk) var(--night)); }
.af-container .face-left { fill: color-mix(in srgb, #4e7772, var(--dusk) var(--night)); }
.af-container .face-right { fill: color-mix(in srgb, #3f625e, var(--dusk) var(--night)); }
.af-rib { stroke: color-mix(in srgb, #2f4a47, var(--dusk) var(--night)); stroke-width: 0.5; opacity: 0.7; }

/* Models from three makers, each missing the same cube. */
.af-cube .face-top { fill: color-mix(in srgb, var(--flow) 30%, var(--white)); }
.af-cube .face-left { fill: color-mix(in srgb, var(--flow) 52%, var(--white)); }
.af-cube .face-right { fill: color-mix(in srgb, var(--flow) 72%, var(--white)); }
.af-cube .rim { stroke: var(--white); stroke-width: 0.4; opacity: 0.8; }
.af-cube-b .face-top { fill: color-mix(in srgb, var(--energy) 28%, var(--white)); }
.af-cube-b .face-left { fill: color-mix(in srgb, var(--energy) 48%, var(--white)); }
.af-cube-b .face-right { fill: color-mix(in srgb, var(--energy) 68%, var(--white)); }
.af-cube-c .face-top { fill: color-mix(in srgb, #8a8fa8 35%, var(--white)); }
.af-cube-c .face-left { fill: color-mix(in srgb, #8a8fa8 60%, var(--white)); }
.af-cube-c .face-right { fill: color-mix(in srgb, #8a8fa8 82%, var(--white)); }
.af-gap { fill: none; stroke: var(--flow-text); stroke-width: 0.6; stroke-dasharray: 1.2 1.4; opacity: 0.8; }
[data-theme="dark"] .spill.af-spill-flow { fill: var(--flow); }

/* Failing together: generating units in the cold, snow on them, ice off
   their eaves, their fault lamps lit on one beat. */
.af-unit .face-top { fill: color-mix(in srgb, #9aa3ad, var(--dusk) var(--night)); }
.af-unit .face-left { fill: color-mix(in srgb, #7d8792, var(--dusk) var(--night)); }
.af-unit .face-right { fill: color-mix(in srgb, #66707b, var(--dusk) var(--night)); }
.af-snow .face-top, .af-snow .face-left, .af-snow-top { fill: color-mix(in srgb, #ffffff, var(--dusk) calc(var(--night) * 0.6)); }
.af-snow .face-right { fill: color-mix(in srgb, #e3ecf3, var(--dusk) calc(var(--night) * 0.6)); }
.af-ice { fill: color-mix(in srgb, #d6ecf7, var(--dusk) calc(var(--night) * 0.5)); }
.af-frost { fill: color-mix(in srgb, #f4f8fb, var(--dusk) calc(var(--night) * 0.7)); opacity: 0.75; }
.af-fault { fill: #e5564a; }

/* Discovery: Thompson's evolved chip, the cells it used lit, two of them on their own. */
.af-chip .face-top { fill: color-mix(in srgb, #2f3238, var(--dusk) var(--night)); }
.af-chip .face-left { fill: color-mix(in srgb, #24272c, var(--dusk) var(--night)); }
.af-chip .face-right { fill: color-mix(in srgb, #1c1e22, var(--dusk) var(--night)); }
.af-cell { fill: color-mix(in srgb, #4a4f58, var(--dusk) var(--night)); }
.af-cell-on { fill: var(--flow); }
.af-pin { stroke: var(--gold); stroke-width: 1; stroke-linecap: round; }
.af-couple { fill: none; stroke: var(--flow-text); stroke-width: 0.7; }

[data-theme="dark"] #map-iso :is(.af-fault, .af-cell-on, .af-couple) { filter: url(#iso-glow); }
/* ---- Physical Factories' plants, drawn deeper (src/scenes/framework.js,
   pictures-make.js, makers.js): the pit and its benches, the tankhouse's
   cells, a building site's pour and its test cylinders, the plants' yards. ---- */

/* An open pit: its benches stepping down, the far walls lit and shaded like a box's faces. */
.dpp-bench { fill: color-mix(in srgb, #c7a983, var(--dusk) var(--night)); }
.dpp-wall-y { fill: color-mix(in srgb, #a98663, var(--dusk) var(--night)); }
.dpp-wall-x { fill: color-mix(in srgb, #8c6c4e, var(--dusk) var(--night)); }
.dpp-pit-floor { fill: color-mix(in srgb, #9a7a5a, var(--dusk) var(--night)); }
.dpp-ramp { fill: color-mix(in srgb, #d6bc98, var(--dusk) var(--night)); }
.dpp-berm { fill: none; stroke: color-mix(in srgb, #b89a76, var(--dusk) var(--night)); stroke-width: 1.4; stroke-linejoin: round; }
.dpp-ore { fill: color-mix(in srgb, #8a5240, var(--dusk) var(--night)); }
/* A mast's thin legs and lines. */
.dpp-boom { fill: none; stroke: color-mix(in srgb, #5d636b, var(--dusk) var(--night)); stroke-width: 1.6; stroke-linecap: round; }
.dpp-mast { stroke: color-mix(in srgb, #7c848c, var(--dusk) var(--night)); stroke-width: 0.8; stroke-linecap: round; }

/* The tankhouse: its cells, their electrolyte, and the copper hung in them. */
.dpp-cell .face-top { fill: color-mix(in srgb, #4f8a86, var(--dusk) var(--night)); }
.dpp-cell .face-left { fill: color-mix(in srgb, #5d6066, var(--dusk) var(--night)); }
.dpp-cell .face-right { fill: color-mix(in srgb, #484b50, var(--dusk) var(--night)); }
.dpp-plate { stroke: color-mix(in srgb, #d08a5c, var(--dusk) var(--night)); stroke-width: 0.7; stroke-linecap: butt; }
.dpp-wire { fill: none; stroke: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); stroke-width: 0.5; }

/* A building site: the fresh pour, the mixer's drum, the test cylinders. */
.dpp-wet { fill: color-mix(in srgb, #9c9890, var(--dusk) var(--night)); }
.dpp-rebar { stroke: color-mix(in srgb, #8a5a3c, var(--dusk) var(--night)); stroke-width: 0.45; }
.dpp-form { fill: none; stroke: color-mix(in srgb, #b08a5c, var(--dusk) var(--night)); stroke-width: 1; stroke-linejoin: round; }
.dpp-drum .face-left { fill: color-mix(in srgb, #dcdad4, var(--dusk) var(--night)); }
.dpp-drum .face-right { fill: color-mix(in srgb, #c9c6bf, var(--dusk) var(--night)); }
.dpp-stripe { fill: none; stroke: color-mix(in srgb, #d9803d, var(--dusk) var(--night)); stroke-width: 0.9; stroke-dasharray: 3 1.8; }
.dpp-cyl .face-left { fill: color-mix(in srgb, #f3f2ee, var(--dusk) var(--night)); }
.dpp-cyl .face-top { fill: color-mix(in srgb, #d4d1ca, var(--dusk) var(--night)); }
/* A data center made in a plant: its white skin and its louvers. */
.dpp-module .face-top { fill: color-mix(in srgb, #f6f6f4, var(--dusk) var(--night)); }
.dpp-module .face-left { fill: color-mix(in srgb, #e3e4e6, var(--dusk) var(--night)); }
.dpp-module .face-right { fill: color-mix(in srgb, #c8cacd, var(--dusk) var(--night)); }
.dpp-louver { stroke: color-mix(in srgb, #8e949b, var(--dusk) var(--night)); stroke-width: 0.5; }

/* A plant's test track, and its painted lines. */
.dpp-track { fill: none; stroke: var(--asphalt); stroke-linejoin: round; stroke-linecap: round; }
.dpp-track-line { fill: none; stroke: color-mix(in srgb, rgba(255, 255, 255, 0.85), rgb(from var(--dusk) r g b / 0.85) var(--night)); stroke-width: 0.5; stroke-dasharray: 2 2; }
.dpp-bay { fill: none; stroke: color-mix(in srgb, #f2f0ea, var(--dusk) var(--night)); stroke-width: 0.7; }

/* Transformers waiting on their bushings: the capped turrets, and the leads of one under test. */
.dpp-cap .face-top { fill: color-mix(in srgb, #9aa39e, var(--dusk) var(--night)); }
.dpp-cap .face-left { fill: color-mix(in srgb, #808a85, var(--dusk) var(--night)); }
.dpp-cap .face-right { fill: color-mix(in srgb, #69726d, var(--dusk) var(--night)); }
.dpp-lead { fill: none; stroke: color-mix(in srgb, #4a5057, var(--dusk) var(--night)); stroke-width: 0.9; }
.dpp-tarp .face-top { fill: color-mix(in srgb, #4d7aa6, var(--dusk) var(--night)); }
.dpp-tarp .face-left { fill: color-mix(in srgb, #3f6890, var(--dusk) var(--night)); }
.dpp-tarp .face-right { fill: color-mix(in srgb, #325676, var(--dusk) var(--night)); }

/* A turbine's rotor on its stands: its discs, lit edges. */
.dpp-disc .face-left { fill: color-mix(in srgb, #b9c0c7, var(--dusk) var(--night)); }
.dpp-disc .face-right { fill: color-mix(in srgb, #d8dde2, var(--dusk) var(--night)); }

/* Lithography: the mirror from the optics plant, the laser from its maker. */
.dpp-mirror { fill: color-mix(in srgb, #dfe7ee, var(--dusk) var(--night)); stroke: color-mix(in srgb, #8fa3b4, var(--dusk) var(--night)); stroke-width: 0.6; }
.dpp-mirror-glint { fill: none; stroke: #ffffff; stroke-width: 0.8; stroke-linecap: round; opacity: 0.85; }

/* Water from the hose, and the firefighters' coats. */
.dpp-spray { fill: none; stroke: var(--water); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1.4 2.2; }
/* ---- Software Factories: the details of its places (src/scenes/pictures-make.js,
   loop.js, traces.js, framework.js, pictures-software.js) ---- */

/* Paper: a reviewer's pile, a recorder's strip, instruction sheets. */
.dsw-paper .face-top { fill: var(--white); }
.dsw-paper .face-left { fill: color-mix(in srgb, #e9e5dc, var(--dusk) var(--night)); }
.dsw-paper .face-right { fill: color-mix(in srgb, #d3cec3, var(--dusk) var(--night)); }
.dsw-paper .rim { stroke: none; }
.dsw-sheet { fill: var(--white); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.25), rgb(from var(--dusk) r g b / 0.25) var(--night)); stroke-width: 0.4; stroke-linejoin: round; }
.dsw-sheet-line { stroke: var(--muted); stroke-width: 0.6; stroke-linecap: round; opacity: 0.8; }
.dsw-concrete .face-top { fill: color-mix(in srgb, #dcd8d0, var(--dusk) var(--night)); }
.dsw-concrete .face-left { fill: color-mix(in srgb, #c3beb5, var(--dusk) var(--night)); }
.dsw-concrete .face-right { fill: color-mix(in srgb, #a6a197, var(--dusk) var(--night)); }

/* A junction's signals and the lever frame in its box. */
.dsw-signal-head :is(.face-top, .face-left, .face-right) { fill: color-mix(in srgb, #2b2d31, var(--dusk) var(--night)); }
.dsw-lamp-off { fill: color-mix(in srgb, #5b5f66, var(--dusk) var(--night)); }
.dsw-lamp { fill: var(--flow-text); }
.dsw-lamp-earth { fill: var(--earth); }
.dsw-lamp-energy { fill: var(--energy); }
.dsw-lever { stroke-width: 1.1; stroke-linecap: round; }
.dsw-lever-0 { stroke: color-mix(in srgb, #c4473a, var(--dusk) var(--night)); }
.dsw-lever-1 { stroke: color-mix(in srgb, #2b2d31, var(--dusk) var(--night)); }
.dsw-lever-2 { stroke: color-mix(in srgb, #3f6fb5, var(--dusk) var(--night)); }

/* A Dev shop: empty chairs, the tests' lights. */
.dsw-chair { fill: var(--void); opacity: 0.55; }
.dsw-test { fill: var(--feedback); }

/* An evolved antenna: its ground plane and its bent wire. */
.dsw-ground-plane { fill: var(--steel-top); stroke: var(--steel-right); stroke-width: 0.5; }
.dsw-wire { fill: none; stroke: color-mix(in srgb, #8d949c, var(--dusk) var(--night)); stroke-linecap: round; stroke-linejoin: round; }

/* A robot arm, industrial orange, waiting to be taught. */
.dsw-robot .face-left { fill: color-mix(in srgb, #e08a1e, var(--dusk) var(--night)); }
.dsw-robot .face-top { fill: color-mix(in srgb, #f0a43c, var(--dusk) var(--night)); }
.dsw-arm { stroke: color-mix(in srgb, #e5932a, var(--dusk) var(--night)); stroke-linecap: round; }
.dsw-arm-steel { stroke: var(--steel-right); stroke-linecap: round; }
.dsw-joint { fill: color-mix(in srgb, #3a3c40, var(--dusk) var(--night)); }

/* A bottling line: glass bottles, one drink and then another, and their caps. */
.dsw-drink-0 .face-left { fill: color-mix(in srgb, #d98d16 80%, #ffffff); }
.dsw-drink-0 .face-top { fill: color-mix(in srgb, #d98d16 50%, #ffffff); }
.dsw-drink-1 .face-left { fill: color-mix(in srgb, #4a2a22 85%, #ffffff); }
.dsw-drink-1 .face-top { fill: color-mix(in srgb, #4a2a22 55%, #ffffff); }
.dsw-drink-2 .face-left { fill: color-mix(in srgb, #4f9a3a 80%, #ffffff); }
.dsw-drink-2 .face-top { fill: color-mix(in srgb, #4f9a3a 50%, #ffffff); }
.dsw-cap { fill: color-mix(in srgb, #c7ccd2, var(--dusk) var(--night)); }
[data-theme="dark"] .dsw-bottle { opacity: 0.85; }

/* Power: a pylon's insulators, fuel cells' vents and the line out of them. */
.dsw-insulator { stroke: color-mix(in srgb, #8a6f5a, var(--dusk) var(--night)); stroke-width: 1.2; stroke-linecap: round; }
.dsw-vent { fill: none; stroke: var(--line); stroke-width: 1; }
.dsw-cord { fill: none; stroke: var(--accent, var(--flow)); stroke-width: 1; stroke-linecap: round; opacity: 0.7; }

/* A lot where ground is broken: bare soil, stakes and their tape, the gilt shovels. */
.dsw-dirt { fill: color-mix(in srgb, #b89a74, var(--dusk) var(--night)); opacity: 0.85; }
.dsw-mound .face-top { fill: color-mix(in srgb, #a7865e, var(--dusk) var(--night)); }
.dsw-mound .face-left { fill: color-mix(in srgb, #94754f, var(--dusk) var(--night)); }
.dsw-mound .face-right { fill: color-mix(in srgb, #7e6342, var(--dusk) var(--night)); }
.dsw-stake { stroke: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); stroke-width: 0.8; stroke-linecap: round; }
.dsw-tape { fill: var(--earth); }
.dsw-handle { stroke: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); stroke-linecap: round; }
.dsw-shovel { fill: var(--gold); stroke: color-mix(in srgb, #9c7a2c, var(--dusk) var(--night)); stroke-width: 0.4; }

/* Screens that are on: an agent's analysis on the committee's wall. */
.dsw-screen-lit { fill: color-mix(in srgb, var(--flow) 30%, var(--white)); stroke: var(--edge); stroke-width: 0.5; }
.dsw-screen-line { stroke: var(--flow-text); stroke-width: 0.7; stroke-linecap: round; opacity: 0.8; }

/* A home data center: the small silver machine, its light, a phone. */
.dsw-mini .face-top { fill: color-mix(in srgb, #e1e4e8, var(--dusk) var(--night)); }
.dsw-mini .face-left { fill: color-mix(in srgb, #c9cdd3, var(--dusk) var(--night)); }
.dsw-mini .face-right { fill: color-mix(in srgb, #aeb3ba, var(--dusk) var(--night)); }
.dsw-led { fill: var(--light); }
.dsw-phone { fill: color-mix(in srgb, #2b2d31, var(--dusk) var(--night)); }
.dsw-phone-lit { fill: var(--flow-text); }

/* At night, what's lit glows. */
[data-theme="dark"] #map-iso :is(.dsw-lamp, .dsw-test, .dsw-led, .dsw-phone-lit, .dsw-screen-lit) { filter: url(#iso-glow); }

/* Racks: staging's and production's, the connection slots filling, the alarm. */
.dsw-rack .face-top { fill: color-mix(in srgb, #7a818b, var(--dusk) var(--night)); }
.dsw-rack .face-left { fill: color-mix(in srgb, #5f666f, var(--dusk) var(--night)); }
.dsw-rack .face-right { fill: color-mix(in srgb, #4c525a, var(--dusk) var(--night)); }
.dsw-slot { fill: color-mix(in srgb, #3b4047, var(--dusk) var(--night)); }
.dsw-slot-full { fill: var(--earth); }
.dsw-alarm { fill: #ff5a4a; }

/* A harness: the model's weights, and the rail it has just rewritten. */
.dsw-weight .face-top { fill: color-mix(in srgb, var(--flow) 30%, var(--light)); }
.dsw-weight .face-left { fill: color-mix(in srgb, var(--flow) 52%, var(--light)); }
.dsw-weight .face-right { fill: color-mix(in srgb, var(--flow) 74%, var(--light)); }
.dsw-weight .rim { stroke: color-mix(in srgb, var(--flow-text) 55%, transparent); }
.dsw-rail-new :is(.face-top, .face-left, .face-right) { fill: var(--flow); }
[data-theme="dark"] .dsw-weight :is(.face-top, .face-left, .face-right) { opacity: 0.85; }

/* A frame going up: its rafters. */
.dsw-rafter { fill: none; stroke: color-mix(in srgb, #ad8b5f, var(--dusk) var(--night)); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }

/* A security operations center: its floor, the wall of screens, the alarm on one, the consoles. */
.dsw-soc-floor .face-top { fill: color-mix(in srgb, #5c6470, var(--dusk) var(--night)); }
.dsw-soc-floor .face-left { fill: color-mix(in srgb, #4a515c, var(--dusk) var(--night)); }
.dsw-soc-floor .face-right { fill: color-mix(in srgb, #3e444e, var(--dusk) var(--night)); }
.dsw-vw { fill: color-mix(in srgb, #1d2633, var(--dusk) var(--night)); stroke: color-mix(in srgb, #8e98a5, var(--dusk) var(--night)); stroke-width: 0.5; }
.dsw-vw-line { fill: none; stroke: var(--flow); stroke-width: 0.7; stroke-linecap: round; opacity: 0.95; }
[data-theme="dark"] .dsw-vw-line { stroke: var(--flow); }
.dsw-vw-alarm { fill: #e5533f; }
.dsw-console-screen :is(.face-top, .face-left, .face-right) { fill: color-mix(in srgb, #2b2d31, var(--dusk) var(--night)); }

/* A sandbox's way out: the sign by it, and the bump across it. */
.dsw-sign { fill: color-mix(in srgb, #d23b2c, var(--dusk) var(--night)); }
.dsw-sign-face { fill: var(--white); }
.dsw-bump :is(.face-top, .face-left, .face-right) { fill: color-mix(in srgb, #2b2d31, var(--dusk) var(--night)); }
.dsw-bump-stripe { fill: color-mix(in srgb, #f2c230, var(--dusk) calc(var(--night) / 2)); }

[data-theme="dark"] #map-iso :is(.dsw-slot-full, .dsw-alarm, .dsw-vw-alarm, .dsw-vw-line) { filter: url(#iso-glow); }

/* A chart recorder: its paper and rules, the pen, and the trace it draws. */
.dsw-chart { fill: var(--white); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.2), rgb(from var(--dusk) r g b / 0.2) var(--night)); stroke-width: 0.5; }
.dsw-chart-fall { fill: color-mix(in srgb, #ecE8df, var(--dusk) var(--night)); }
.dsw-chart-rule { fill: none; stroke: var(--feedback); stroke-width: 0.4; opacity: 0.35; }
.dsw-chart-trace { fill: none; stroke: var(--feedback-text); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.dsw-chart-pen { fill: var(--flow-text); }
/* ---- scenes: demand and telemetry, the six signals a physical factory hears back (src/scenes/demand.js) ---- */

/* Commitments: an order book on its ledgers. */
.dt-ledger .face-top { fill: var(--face-top); }
.dt-page { fill: var(--white); fill-opacity: 0.92; stroke: var(--feedback); stroke-opacity: 0.6; stroke-width: 0.8; stroke-linejoin: round; }
.dt-turning { fill-opacity: 0.24; }
.dt-entry { stroke: var(--feedback); stroke-width: 0.8; stroke-linecap: round; opacity: 0.7; }
.dt-ribbon { fill: var(--feedback); opacity: 0.85; }

/* A board, a line climbing it (the crash board in loop.js). */
.dt-board .face-right { fill: var(--face-top); }
.dt-price { fill: none; stroke: var(--feedback); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; animation: dt-draw 4.8s ease-out infinite; }
@keyframes dt-draw { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: 0; } }

/* Queues: a road, a closed gate (src/scenes/pictures-physical.js). */
.dt-road { fill: var(--face-left); opacity: 0.7; }
.dt-road-line { stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 3 4; opacity: 0.5; }
.dt-post .face-top { fill: var(--muted); }
.dt-arm { stroke: var(--earth); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 3; }

/* Observation from outside: a satellite over a site. */
.dt-site { fill: none; stroke: var(--earth); stroke-width: 0.8; stroke-dasharray: 2 3; opacity: 0.5; }
.dt-panel { fill: var(--flow); fill-opacity: 0.35; stroke: var(--flow-text); stroke-width: 0.7; stroke-linejoin: round; }
.dt-panel-line { stroke: var(--flow-text); stroke-width: 0.5; opacity: 0.7; }
.dt-view { stroke: var(--feedback); stroke-width: 0.7; stroke-dasharray: 1 4; opacity: 0.45; }
.dt-sweep { stroke: var(--feedback); stroke-width: 1.4; stroke-linecap: round; opacity: 0.8; }

/* Simulation: a twin in outline, on a mesh (src/scenes/pictures-physical.js). */
.dt-mesh { stroke: var(--feedback); stroke-width: 0.5; opacity: 0.18; }
.dt-wire { fill: none; stroke: var(--feedback); stroke-width: 0.9; stroke-dasharray: 2 2; stroke-linejoin: round; opacity: 0.75; }

/* The signals in to the dish. */
.dt-signal { opacity: 0.55; }
.iso-link:hover .dt-signal, .iso-link:focus-visible .dt-signal { opacity: 1; }

/* ---- energy: its parts' pictures, and the atom (src/scenes/energy.js) ---- */
/* Round things are shaded across, lit from the left like the boxes. */
.en-curve { fill: url(#energy-curve); }
.en-curve-0 { stop-color: var(--face-top); }
.en-curve-1 { stop-color: var(--face-left); }
.en-curve-2 { stop-color: var(--face-right); }
.en-mouth { fill: color-mix(in srgb, #5b5f65, var(--dusk) var(--night)); stroke: var(--line-strong); stroke-width: 1; }
.en-inlet { fill: none; stroke: var(--void); stroke-width: 2; opacity: 0.5; }
.en-vapor { fill: var(--steam); filter: url(#energy-soft); }
.en-smoke { fill: var(--smoke); filter: url(#energy-soft); }
.en-door { fill: var(--void); }
.en-post { stroke: var(--face-top); stroke-linecap: round; }
.en-cell { stroke: color-mix(in srgb, #c9d2dc, var(--dusk) var(--night)); stroke-opacity: 0.7; stroke-width: 0.6; }
.en-footing { fill: var(--face-top); }

/* The sun: a disc, its rays turning slowly, light falling from it. */
.en-sun { fill: var(--sun); }
.en-sun-core { fill: var(--sun-pale); opacity: 0.9; }
.en-sun-glow { fill: var(--sun); opacity: 0.3; filter: url(#iso-spill); animation: breathe 4.8s ease-in-out infinite; }
.en-ray { stroke: var(--sun-edge); stroke-linecap: round; opacity: 0.8; }
.en-beam { stroke: var(--sun-edge); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 2 5; opacity: 0.6; animation: en-run 1.2s linear infinite; }
@keyframes en-run { to { stroke-dashoffset: -7; } }

/* Water: the lake, the river, ripples running with the flow, the spillway's fall. */
.en-lake { fill: var(--water); }
.en-river { fill: var(--water); opacity: 0.85; }
.en-ripple { stroke: var(--white); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0.1 6.9; opacity: 0.9; animation: en-run 2.4s linear infinite; }
.en-chute { fill: var(--water); }
.en-fall { stroke: var(--white); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 5 9; opacity: 0.6; animation: en-pour 1.2s linear infinite; }
@keyframes en-pour { to { stroke-dashoffset: -14; } }
.en-pour { stroke: var(--line); stroke-width: 1; }

/* Coal: a dark heap, lumps going up the belt. */
.en-heap polygon { stroke-width: 0.6; stroke-linejoin: round; }
.en-belt { fill: var(--face-top); stroke: var(--line); stroke-width: 1; }
.en-lump { fill: var(--void); }

/* Fusion: the plasma inside its coils, glowing faintly. */
.en-plasma-0 { stop-color: color-mix(in srgb, var(--energy) 50%, var(--light)); }
.en-plasma-1 { stop-color: color-mix(in srgb, var(--energy) 80%, var(--face-left)); }
.en-plasma-2 { stop-color: color-mix(in srgb, var(--energy) 42%, var(--face-left)); }
.en-plasma-3 { stop-color: color-mix(in srgb, var(--energy) 22%, var(--face-right)); }
/* A shot holds the plasma a few seconds, with minutes between: faint, then a flare. */
.en-torus { fill: url(#energy-plasma); animation: en-shot 9.6s ease-in-out infinite; }
@keyframes en-shot { 0%, 70%, 100% { opacity: 0.62; } 75%, 86% { opacity: 1; } }
.en-halo { fill: var(--energy); filter: url(#iso-spill); animation: en-glow 9.6s ease-in-out infinite; }
@keyframes en-glow { 0%, 70%, 100% { opacity: 0.1; } 75%, 86% { opacity: 0.5; } }
.en-coil { fill: none; stroke: var(--face-left); stroke-linecap: round; stroke-linejoin: round; }
.en-coil-edge { fill: none; stroke: var(--muted); stroke-opacity: 0.6; stroke-linecap: round; stroke-linejoin: round; }
.en-core { fill: var(--energy); animation: breathe 2.4s ease-in-out infinite; }
.en-rim { fill: none; stroke: var(--energy); stroke-opacity: 0.25; stroke-width: 1; }
.en-port { fill: var(--surface); stroke: var(--energy); stroke-width: 1; }
.en-port-light { fill: var(--energy); }

/* The atom's gauges: the world's electricity round each plinth, lit for the part's share. */
.en-gauge { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.en-tick { stroke: var(--line-strong); stroke-width: 1; }
.en-tick-zero { stroke: var(--energy); stroke-opacity: 0.8; stroke-width: 1.4; }
.en-gauge-lit { fill: none; stroke: var(--energy); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.en-gauge-run { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 0.1 9.9; opacity: 0.85; animation: en-tick 1.2s linear infinite; }
@keyframes en-tick { to { stroke-dashoffset: -10; } }
.en-sphere { stroke: var(--line-strong); stroke-width: 1; }
.en-equator { fill: none; stroke: var(--line-strong); stroke-width: 1; }
/* Power as it reaches a site: the substation's yard, its transformers and their fins, its wires; heat's pipes and the warmth along them. */
.en-yard { fill: color-mix(in srgb, #d9d4ca, var(--dusk) var(--night)); }
.en-xfmr .face-top { fill: color-mix(in srgb, #a9b2a8, var(--dusk) var(--night)); }
.en-xfmr .face-left { fill: color-mix(in srgb, #8e978d, var(--dusk) var(--night)); }
.en-xfmr .face-right { fill: color-mix(in srgb, #737b72, var(--dusk) var(--night)); }
.en-fin { stroke: color-mix(in srgb, #5f665e, var(--dusk) var(--night)); stroke-width: 0.8; }
.en-bushing { stroke: color-mix(in srgb, #b9b2a5, var(--dusk) var(--night)); stroke-width: 2; stroke-linecap: round; }
.en-wire { fill: none; stroke: color-mix(in srgb, #3f454c, var(--dusk) var(--night)); stroke-opacity: 0.6; stroke-width: 0.9; }
.en-pipe { fill: none; stroke: color-mix(in srgb, #b3bac2, var(--dusk) var(--night)); stroke-linecap: round; stroke-linejoin: round; }
.en-warmth { fill: var(--warm); opacity: 0.85; }

/* Steel going up: derricks and crane masts, a frame's members, the crane's
   paint, its line; concrete slabs and footings. */
.en-derrick, .en-crane-mast { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.en-derrick { stroke: color-mix(in srgb, #8a929b, var(--dusk) var(--night)); }
.en-crane-mast { stroke: color-mix(in srgb, #e2a33a, var(--dusk) calc(var(--night) / 2)); }
.en-crane .face-top { fill: color-mix(in srgb, #f2bd52, var(--dusk) calc(var(--night) / 2)); }
.en-crane .face-left { fill: color-mix(in srgb, #e2a33a, var(--dusk) calc(var(--night) / 2)); }
.en-crane .face-right { fill: color-mix(in srgb, #c4872a, var(--dusk) calc(var(--night) / 2)); }
.en-member .face-top { fill: color-mix(in srgb, #8d959e, var(--dusk) var(--night)); }
.en-member .face-left { fill: color-mix(in srgb, #737b84, var(--dusk) var(--night)); }
.en-member .face-right { fill: color-mix(in srgb, #5d646c, var(--dusk) var(--night)); }
.en-concrete .face-top { fill: color-mix(in srgb, #d6d2ca, var(--dusk) var(--night)); }
.en-concrete .face-left { fill: color-mix(in srgb, #bdb8ae, var(--dusk) var(--night)); }
.en-concrete .face-right { fill: color-mix(in srgb, #a39e94, var(--dusk) var(--night)); }
.en-hookline, .en-drillline { stroke: color-mix(in srgb, #3f454c, var(--dusk) var(--night)); stroke-opacity: 0.7; }
.en-bolt { stroke: color-mix(in srgb, #4a4f56, var(--dusk) var(--night)); stroke-linecap: round; }
.en-pipe-joint { stroke: color-mix(in srgb, #9aa2ab, var(--dusk) var(--night)); stroke-linecap: round; }

/* A plot staked and strung, waiting: its cleared ground, stakes, flags, and string. */
.en-plot { fill: color-mix(in srgb, #cdbb98, var(--dusk) var(--night)); opacity: 0.7; }
.en-stake { stroke: var(--earth); stroke-linecap: round; }
.en-flag { fill: var(--earth); opacity: 0.9; }
.en-string { fill: none; stroke: var(--earth); stroke-opacity: 0.75; stroke-width: 1; stroke-dasharray: 3 3; }

/* A test reactor's fresh pad and its fence. */
.en-gravel { fill: color-mix(in srgb, #cdb994, var(--dusk) var(--night)); }
.en-fence { fill: none; stroke: var(--line-strong); stroke-width: 0.8; stroke-dasharray: 1 1.6; }

/* The price of power: the auctions' board, its grid, the cap it presses on, the price, and its last step blinking. */
.en-board .face-right { fill: var(--white); }
.en-board .face-left { fill: color-mix(in srgb, #d9dde1, var(--dusk) var(--night)); }
.en-board .face-top { fill: color-mix(in srgb, #eef0f2, var(--dusk) var(--night)); }
.en-grid { stroke: var(--line-strong); stroke-width: 0.8; }
.en-cap { stroke: var(--warm); stroke-dasharray: 3 2.5; stroke-linecap: round; }
.en-price { fill: none; stroke: var(--feedback); stroke-linejoin: round; stroke-linecap: round; }
.en-price-dot { fill: var(--feedback); }
[data-theme="dark"] .en-board .face-right { fill: color-mix(in srgb, #2a3038, var(--dusk) 30%); }
[data-theme="dark"] #map-iso .en-price-dot { filter: url(#iso-glow); }
/* The front page's decoration: a mine and its train, a refinery that melts
   its ore into bars for the plant, a crane at the city's yard lifting the
   beams the plant's truck brings while its crew sets them, the city's
   trees, lamps, and people, and data centers in orbit, now and then
   carrying data between the city and the factories. Nothing here is a
   place, so the pointer goes through it. What's built is drawn in what it's
   built of: rock, timber, steel, copper, concrete, and glass. */
.decor { pointer-events: none; }

/* The mine: a cut into the rock, timbered, lit by lamps along the gallery. */
.fr-rock-back { fill: color-mix(in srgb, #5f4f40, var(--dusk) var(--night)); }
.fr-rock-side { fill: color-mix(in srgb, #725f4d, var(--dusk) var(--night)); }
.fr-rock-floor { fill: color-mix(in srgb, #84705c, var(--dusk) var(--night)); }
.fr-seam { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.32), rgb(from var(--dusk) r g b / 0.32) var(--night)); stroke-width: 0.6; }
.fr-cut { fill: none; stroke: color-mix(in srgb, rgba(214, 192, 160, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.7; stroke-linejoin: round; }
.fr-wood .face-top { fill: color-mix(in srgb, #9a7a52, var(--dusk) var(--night)); }
.fr-wood .face-left { fill: color-mix(in srgb, #7d613f, var(--dusk) var(--night)); }
.fr-wood .face-right { fill: color-mix(in srgb, #634b30, var(--dusk) var(--night)); }
.fr-sleeper { fill: none; stroke: color-mix(in srgb, #4e3d2b, var(--dusk) var(--night)); stroke-width: 0.9; }
.fr-rail { fill: none; stroke: color-mix(in srgb, #8a9096, var(--dusk) var(--night)); stroke-width: 0.5; }
.fr-lamp { fill: #ffd8a0; }
.fr-pool { fill: #ffcf8a; opacity: 0.09; }
/* Iron ore: hematite, a rusty red-brown. */
.fr-ore .face-top { fill: color-mix(in srgb, #9b5c43, var(--dusk) var(--night)); }
.fr-ore .face-left { fill: color-mix(in srgb, #7b4533, var(--dusk) var(--night)); }
.fr-ore .face-right { fill: color-mix(in srgb, #5e3427, var(--dusk) var(--night)); }
.fr-ore.box polygon { stroke: none; }
.fr-pile.face-left { fill: color-mix(in srgb, #8a5240, var(--dusk) var(--night)); }
.fr-pile.face-right { fill: color-mix(in srgb, #6a3d30, var(--dusk) var(--night)); }
/* The train: a battery locomotive in mining yellow, its driver in a white
   hard hat with his lamp lit, and ore cars of worn steel, banded, on dark
   frames and wheels; a red lamp on the last car. */
.fr-paint .face-top { fill: color-mix(in srgb, #e8b63e, var(--dusk) var(--night)); }
.fr-paint .face-left { fill: color-mix(in srgb, #cc9a2c, var(--dusk) var(--night)); }
.fr-paint .face-right { fill: color-mix(in srgb, #a67b22, var(--dusk) var(--night)); }
.fr-seam-line { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.3; }
.fr-frame .face-top { fill: color-mix(in srgb, #333436, var(--dusk) var(--night)); }
.fr-frame .face-left { fill: color-mix(in srgb, #27282a, var(--dusk) var(--night)); }
.fr-frame .face-right { fill: color-mix(in srgb, #1d1e20, var(--dusk) var(--night)); }
.fr-bumper .face-top, .fr-bumper .face-left, .fr-bumper .face-right { fill: color-mix(in srgb, #3a3b3e, var(--dusk) var(--night)); }
.fr-driver .face-top { fill: color-mix(in srgb, #3e4f63, var(--dusk) var(--night)); }
.fr-driver .face-left { fill: color-mix(in srgb, #344354, var(--dusk) var(--night)); }
.fr-driver .face-right { fill: color-mix(in srgb, #293542, var(--dusk) var(--night)); }
.fr-helmet { fill: color-mix(in srgb, #ecebe4, var(--dusk) var(--night)); }
.fr-cap-lamp { fill: #fff4d0; }
.fr-headlamp { fill: #fff3d1; }
.fr-beam-near { stop-color: #ffe7ad; stop-opacity: 0.5; }
.fr-beam-far { stop-color: #ffe7ad; stop-opacity: 0; }
.fr-wheel { fill: color-mix(in srgb, #26272a, var(--dusk) var(--night)); stroke: color-mix(in srgb, #808489, var(--dusk) var(--night)); stroke-width: 0.35; stroke-linejoin: round; }
.fr-spokes { fill: none; stroke: color-mix(in srgb, #9da1a6, var(--dusk) var(--night)); stroke-width: 0.28; }
.fr-hub { fill: color-mix(in srgb, #c3c7cb, var(--dusk) var(--night)); }
.fr-coupling { fill: none; stroke: color-mix(in srgb, #121314, var(--dusk) var(--night)); stroke-width: 0.9; stroke-linecap: round; }
.fr-tub { fill: color-mix(in srgb, #5b6066, var(--dusk) var(--night)); }
.fr-tub-end { fill: color-mix(in srgb, #737980, var(--dusk) var(--night)); }
.fr-tub-floor { fill: color-mix(in srgb, #211e1c, var(--dusk) var(--night)); }
.fr-tub-in { fill: color-mix(in srgb, #2b2724, var(--dusk) var(--night)); }
.fr-tub-in-end { fill: color-mix(in srgb, #36302b, var(--dusk) var(--night)); }
.fr-tub-rim { fill: none; stroke: color-mix(in srgb, #a5aaaf, var(--dusk) var(--night)); stroke-width: 0.45; stroke-linejoin: round; }
.fr-tub-rib { fill: none; stroke: color-mix(in srgb, #464a50, var(--dusk) var(--night)); stroke-width: 0.4; }
.fr-ore-top { fill: color-mix(in srgb, #8a5240, var(--dusk) var(--night)); }
.fr-heap { fill: color-mix(in srgb, #93573f, var(--dusk) var(--night)); }
.fr-heap-far { fill: color-mix(in srgb, #a8664a, var(--dusk) var(--night)); }
.fr-heap-end { fill: color-mix(in srgb, #7b4533, var(--dusk) var(--night)); }
.fr-tail { fill: #ff4a3a; }

/* The loader at the face: on crawlers, in safety orange, its steel apron in
   the heap and its rubber belt back over the cars. The heap it works, and
   the blast that breaks more. */
.fr-loader .face-top { fill: color-mix(in srgb, #d9803d, var(--dusk) var(--night)); }
.fr-loader .face-left { fill: color-mix(in srgb, #bd6731, var(--dusk) var(--night)); }
.fr-loader .face-right { fill: color-mix(in srgb, #985227, var(--dusk) var(--night)); }
.fr-crawler { fill: color-mix(in srgb, #1f2022, var(--dusk) var(--night)); }
.fr-lug { fill: none; stroke: color-mix(in srgb, #4a4c50, var(--dusk) var(--night)); stroke-width: 0.35; }
.fr-strut-thin { fill: none; stroke: color-mix(in srgb, #7d838a, var(--dusk) var(--night)); stroke-width: 0.6; stroke-linecap: round; }
.fr-apron-steel { fill: color-mix(in srgb, #6b7076, var(--dusk) var(--night)); }
.fr-boom-side { fill: color-mix(in srgb, #5d636b, var(--dusk) var(--night)); }
.fr-boom-top { fill: color-mix(in srgb, #1e1f21, var(--dusk) var(--night)); }
.fr-face-heap { fill: color-mix(in srgb, #8a5240, var(--dusk) var(--night)); }
.fr-face-heap-side { fill: color-mix(in srgb, #6a3d30, var(--dusk) var(--night)); }
.fr-blast { fill: #fff1d6; opacity: 0; }
.fr-dust { fill: color-mix(in srgb, #8f857a, var(--dusk) var(--night)); opacity: 0; }

/* The station at the shaft: the stop, in warning yellow; the ore pocket's
   grizzly; the chute out of it; and the skip, a bucket in the same yellow
   on guides, hung from its bail. */
.fr-buffer .face-top { fill: color-mix(in srgb, #e3b23c, var(--dusk) var(--night)); }
.fr-buffer .face-left { fill: color-mix(in srgb, #c9972a, var(--dusk) var(--night)); }
.fr-buffer .face-right { fill: color-mix(in srgb, #a17820, var(--dusk) var(--night)); }
.fr-grizzly { fill: none; stroke: color-mix(in srgb, #5d636b, var(--dusk) var(--night)); stroke-width: 0.35; }
.fr-chute { fill: color-mix(in srgb, #6f767d, var(--dusk) var(--night)); }
.fr-chute-in { fill: color-mix(in srgb, #2a2b2d, var(--dusk) var(--night)); }
.fr-guide-rail { fill: none; stroke: color-mix(in srgb, #7b838c, var(--dusk) var(--night)); stroke-width: 0.45; }
.fr-skip-side { fill: color-mix(in srgb, #a17820, var(--dusk) var(--night)); }
.fr-skip-end { fill: color-mix(in srgb, #c9972a, var(--dusk) var(--night)); }
.fr-skip .fr-tub-rim { stroke: color-mix(in srgb, #f0cc66, var(--dusk) var(--night)); stroke-width: 0.6; }
.fr-bail { fill: none; stroke: color-mix(in srgb, #a7aeb5, var(--dusk) var(--night)); stroke-width: 0.55; stroke-linejoin: round; }
.fr-stream { fill: color-mix(in srgb, #a8643f, var(--dusk) var(--night)); }
.fr-collar .face-top { fill: color-mix(in srgb, #8a8780, var(--dusk) var(--night)); }
.fr-collar .face-left { fill: color-mix(in srgb, #6f6c66, var(--dusk) var(--night)); }
.fr-collar .face-right { fill: color-mix(in srgb, #5a5752, var(--dusk) var(--night)); }
.fr-hole { fill: #0c0a08; }

/* Steel: the headframe, the mast, beams and hoods. */
.fr-steel .face-top { fill: color-mix(in srgb, #b6bdc5, var(--dusk) var(--night)); }
.fr-steel .face-left { fill: color-mix(in srgb, #98a0a9, var(--dusk) var(--night)); }
.fr-steel .face-right { fill: color-mix(in srgb, #7a838d, var(--dusk) var(--night)); }
.fr-brace { fill: none; stroke: color-mix(in srgb, #7b838c, var(--dusk) var(--night)); stroke-width: 0.35; }
.fr-brace-heavy { stroke-width: 0.5; }
.fr-leg-line { fill: none; stroke: color-mix(in srgb, #9aa1a9, var(--dusk) var(--night)); stroke-width: 0.75; stroke-linecap: round; }
.fr-strut { fill: none; stroke: color-mix(in srgb, #737a82, var(--dusk) var(--night)); stroke-width: 1.4; stroke-linecap: round; }
.fr-arm { fill: none; stroke: color-mix(in srgb, #8a9199, var(--dusk) var(--night)); stroke-width: 1.1; stroke-linecap: round; }
.fr-sheave { fill: none; stroke: color-mix(in srgb, #b7bec6, var(--dusk) var(--night)); stroke-width: 1; stroke-linejoin: round; }
.fr-spoke { fill: none; stroke: color-mix(in srgb, #8f969e, var(--dusk) var(--night)); stroke-width: 0.4; }
.fr-cable { fill: none; stroke: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); stroke-width: 0.45; opacity: 0.8; }
.fr-winder .face-top { fill: color-mix(in srgb, #6c3b2f, var(--dusk) var(--night)); }
.fr-winder .face-left { fill: color-mix(in srgb, #8a4a3a, var(--dusk) var(--night)); }
.fr-winder .face-right { fill: color-mix(in srgb, #6e3a2d, var(--dusk) var(--night)); }
.fr-roof .face-top, .fr-roof .face-left { fill: color-mix(in srgb, #7f868e, var(--dusk) var(--night)); }
.fr-roof .face-right { fill: color-mix(in srgb, #666d75, var(--dusk) var(--night)); }
.fr-bin .face-top { fill: color-mix(in srgb, #7a6f62, var(--dusk) var(--night)); }
.fr-bin .face-left { fill: color-mix(in srgb, #66594c, var(--dusk) var(--night)); }
.fr-bin .face-right { fill: color-mix(in srgb, #524639, var(--dusk) var(--night)); }

/* The refinery: a steel-clad melt shop with an arc furnace on its roof, the
   heavy power's cyan going in, the melt's orange coming out, and bars that
   cool from orange to steel on the belt to the plant. */
.fr-shop .face-top { fill: color-mix(in srgb, #a7afb8, var(--dusk) var(--night)); }
.fr-shop .face-left { fill: color-mix(in srgb, #c5ccd3, var(--dusk) var(--night)); }
.fr-shop .face-right { fill: color-mix(in srgb, #a2abb5, var(--dusk) var(--night)); }
.fr-rib { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.22), rgb(from var(--dusk) r g b / 0.22) var(--night)); stroke-width: 0.35; }
.fr-frame-dark { fill: color-mix(in srgb, #15171a, var(--dusk) var(--night)); }
.fr-stack .face-top { fill: color-mix(in srgb, #4a4c4f, var(--dusk) var(--night)); }
.fr-stack .face-left { fill: color-mix(in srgb, #85888c, var(--dusk) var(--night)); }
.fr-stack-mouth { fill: color-mix(in srgb, #121212, var(--dusk) var(--night)); }
.fr-stack-band { fill: none; stroke: color-mix(in srgb, #b0412f, var(--dusk) var(--night)); stroke-width: 1.3; }
.fr-furnace .face-top { fill: color-mix(in srgb, #4e4a47, var(--dusk) var(--night)); }
.fr-furnace .face-left { fill: color-mix(in srgb, #625a55, var(--dusk) var(--night)); }
.fr-lid .face-top { fill: color-mix(in srgb, #3f3d3c, var(--dusk) var(--night)); }
.fr-lid .face-left { fill: color-mix(in srgb, #4b4846, var(--dusk) var(--night)); }
.fr-electrode .face-top { fill: color-mix(in srgb, #6e6e70, var(--dusk) var(--night)); }
.fr-electrode .face-left { fill: color-mix(in srgb, #4c4c4f, var(--dusk) var(--night)); }
.fr-electrode .face-right { fill: color-mix(in srgb, #3a3a3d, var(--dusk) var(--night)); }
.fr-arc { fill: #fff1d6; animation: fr-arc 0.9s steps(1) infinite; }
@keyframes fr-arc { 0% { opacity: 1; } 18% { opacity: 0.55; } 30% { opacity: 1; } 55% { opacity: 0.7; } 70% { opacity: 1; } 85% { opacity: 0.45; } }
.fr-melt { fill: #ff8a3d; animation: breathe 2.4s ease-in-out infinite; }
.fr-pour { fill: none; stroke: #ffb26b; stroke-width: 1.6; stroke-linecap: round; }
.fr-intake { fill: color-mix(in srgb, #0d0f12, var(--dusk) var(--night)); }
.fr-intake-lit { fill: #ffb35c; opacity: 0.6; }
.fr-belt-top { fill: color-mix(in srgb, #2a2b2d, var(--dusk) var(--night)); }
.fr-belt-side { fill: color-mix(in srgb, #555b62, var(--dusk) var(--night)); }
.fr-belt-edge { fill: none; stroke: color-mix(in srgb, rgba(255, 255, 255, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.4; }
.fr-leg .face-top, .fr-leg .face-left { fill: color-mix(in srgb, #6a7178, var(--dusk) var(--night)); }
.fr-leg .face-right { fill: color-mix(in srgb, #50565c, var(--dusk) var(--night)); }
.fr-bar .face-top { fill: color-mix(in srgb, #e8edf4, var(--dusk) var(--night)); }
.fr-bar .face-left { fill: color-mix(in srgb, #b3bccb, var(--dusk) var(--night)); }
.fr-bar .face-right { fill: color-mix(in srgb, #8d97a8, var(--dusk) var(--night)); }
.fr-bar.fr-hot .face-top { fill: #ffc27a; }
.fr-bar.fr-hot .face-left { fill: #ff8a3d; }
.fr-bar.fr-hot .face-right { fill: #e0662a; }
.fr-bar.box polygon { stroke: none; }

/* Glass: the crane's cab, and the trucks'. */
.fr-glass { fill: color-mix(in srgb, #46637a, var(--dusk) var(--night)); stroke: color-mix(in srgb, rgba(210, 228, 240, 0.6), rgb(from var(--dusk) r g b / 0.6) var(--night)); stroke-width: 0.25; }

/* Heavy power: cables up from the furnace transformer, pulsing fast and close together. */
.fr-heavy { fill: none; stroke: var(--energy); stroke-width: 1.2; opacity: 0.5; }
.fr-surge { fill: none; stroke: var(--energy); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 4 14; animation: fr-surge 0.7s linear infinite; }
@keyframes fr-surge { to { stroke-dashoffset: -18; } }
.fr-xfmr .face-top { fill: color-mix(in srgb, #7f8984, var(--dusk) var(--night)); }
.fr-xfmr .face-left { fill: color-mix(in srgb, #66706b, var(--dusk) var(--night)); }
.fr-xfmr .face-right { fill: color-mix(in srgb, #525a56, var(--dusk) var(--night)); }
.fr-fin { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.35), rgb(from var(--dusk) r g b / 0.35) var(--night)); stroke-width: 0.6; }
.fr-bushing { fill: none; stroke: color-mix(in srgb, #c9c2b5, var(--dusk) var(--night)); stroke-width: 1.6; stroke-linecap: round; }

.fr-orbit { fill: none; stroke: var(--energy); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.3; animation: drift-fine 2.4s linear infinite; }
.fr-wing { fill: color-mix(in srgb, #2f4a6e, var(--dusk) var(--night)); stroke: color-mix(in srgb, #c9d2dc, var(--dusk) var(--night)); stroke-width: 0.8; stroke-linejoin: round; }

/* The sky hops: no beams, only now and then a packet with a short tail, up
   to the data center overhead and down again, and a ping where it lands:
   out from the city in its warm tone, back to it in the feedback's mint. */
.fr-packet, .fr-ping { pointer-events: none; }
.fr-finding .fr-packet, .fr-back .fr-packet { fill: var(--feedback); }
.fr-data .fr-packet { fill: var(--flow-text); }
.fr-ping { fill: none; stroke-width: 0.9; }
.fr-finding .fr-ping, .fr-back .fr-ping { stroke: var(--feedback); }
.fr-data .fr-ping { stroke: var(--flow-text); }

/* Concrete: the crane's footing and its counterweights. */
.fr-concrete .face-top { fill: color-mix(in srgb, #dcd8d0, var(--dusk) var(--night)); }
.fr-concrete .face-left { fill: color-mix(in srgb, #c3beb5, var(--dusk) var(--night)); }
.fr-concrete .face-right { fill: color-mix(in srgb, #a6a197, var(--dusk) var(--night)); }

/* The city's building site: a gravel yard behind a mesh fence, the steel
   of the block's next floor, beams in galvanized bundles, and a tower crane
   in safety yellow, its counterweights concrete. */
/* The block going up: its windows, holding the sky. */
.pane { fill: var(--glass-right); }
.pane-lit { fill: var(--glass-top); }
.fr-yard { fill: color-mix(in srgb, #c2b9ab, var(--dusk) var(--night)); }
.fr-track { fill: color-mix(in srgb, #a59c8e, var(--dusk) var(--night)); }
.fr-fence { fill: color-mix(in srgb, rgba(110, 118, 126, 0.12), rgb(from var(--dusk) r g b / 0.12) var(--night)); stroke: none; }
.fr-fence-post { fill: none; stroke: color-mix(in srgb, #8a9096, var(--dusk) var(--night)); stroke-width: 0.5; stroke-linecap: round; }
.fr-girder .face-top { fill: color-mix(in srgb, #9c4a36, var(--dusk) var(--night)); }
.fr-girder .face-left { fill: color-mix(in srgb, #833c2b, var(--dusk) var(--night)); }
.fr-girder .face-right { fill: color-mix(in srgb, #682f22, var(--dusk) var(--night)); }
.fr-load-beams .face-top { fill: color-mix(in srgb, #a9b2bb, var(--dusk) var(--night)); }
.fr-load-beams .face-left { fill: color-mix(in srgb, #87919b, var(--dusk) var(--night)); }
.fr-load-beams .face-right { fill: color-mix(in srgb, #6b747e, var(--dusk) var(--night)); }
.fr-load-beams.box polygon { stroke: none; }
/* The site's cabin: a painted steel box with a door and a lit window. */
.fr-cabin-site .face-top { fill: color-mix(in srgb, #e7e4dc, var(--dusk) var(--night)); }
.fr-cabin-site .face-left { fill: color-mix(in srgb, #3f7fb0, var(--dusk) var(--night)); }
.fr-cabin-site .face-right { fill: color-mix(in srgb, #326890, var(--dusk) var(--night)); }
.fr-cabin-door { fill: color-mix(in srgb, #2a4f6c, var(--dusk) var(--night)); }
.fr-cabin-window { fill: var(--glass-top); }
[data-theme="dark"] .fr-cabin-window { fill: var(--warm); }
.fr-crane-mast .fr-brace { stroke: color-mix(in srgb, #c9961c, var(--dusk) var(--night)); stroke-width: 0.35; }
.fr-crane-mast .fr-leg-line { stroke: color-mix(in srgb, #f0bd2e, var(--dusk) var(--night)); stroke-width: 0.7; }
.fr-crane-box .face-top, .fr-trolley .face-top, .fr-hook .face-top { fill: color-mix(in srgb, #f2c230, var(--dusk) var(--night)); }
.fr-crane-box .face-left, .fr-trolley .face-left, .fr-hook .face-left { fill: color-mix(in srgb, #d6a51e, var(--dusk) var(--night)); }
.fr-crane-box .face-right, .fr-trolley .face-right, .fr-hook .face-right { fill: color-mix(in srgb, #a97f14, var(--dusk) var(--night)); }
.fr-truss { fill: none; stroke: color-mix(in srgb, #e7b42a, var(--dusk) var(--night)); stroke-width: 0.55; stroke-linecap: round; }
.fr-tie { fill: none; stroke: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); stroke-width: 0.35; opacity: 0.8; }
.fr-hoist { fill: none; stroke: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); stroke-width: 0.4; }
.fr-sling { fill: none; stroke: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); stroke-width: 0.3; opacity: 0.8; }

/* The roads: asphalt with white edge lines and a dashed yellow middle;
   concrete aprons at the docks, with yellow lines to back up between; and
   painted stalls where people park. */
.fr-road-line { fill: none; stroke: color-mix(in srgb, rgba(255, 255, 255, 0.8), rgb(from var(--dusk) r g b / 0.8) var(--night)); stroke-linejoin: round; }
.fr-road { fill: none; stroke: var(--asphalt); stroke-linejoin: round; }
.fr-lane { fill: none; stroke: color-mix(in srgb, rgba(246, 200, 72, 0.95), rgb(from var(--dusk) r g b / 0.95) var(--night)); stroke-width: 0.5; stroke-dasharray: 2.4 3.2; }
.fr-apron { fill: color-mix(in srgb, #d3cfc7, var(--dusk) var(--night)); }
.fr-guide { fill: none; stroke: color-mix(in srgb, rgba(240, 196, 70, 0.7), rgb(from var(--dusk) r g b / 0.7) var(--night)); stroke-width: 0.45; }
.fr-bay { fill: color-mix(in srgb, #7a7d83, var(--dusk) var(--night)); }
.fr-bay-line { fill: none; stroke: color-mix(in srgb, rgba(255, 255, 255, 0.75), rgb(from var(--dusk) r g b / 0.75) var(--night)); stroke-width: 0.4; }

/* The trucks: painted cabs with glass, flatbeds on dark chassis, carrying
   what the plant makes, crates and a container in the materials' amber, a
   transformer, or beams. The cars: painted bodies under glass. */
.fr-truck-shade { fill: var(--shade); opacity: 0.22; }
.fr-chassis .face-top, .fr-chassis .face-left, .fr-chassis .face-right { fill: color-mix(in srgb, #1d1e20, var(--dusk) var(--night)); }
.fr-bed .face-top { fill: color-mix(in srgb, #5a5e63, var(--dusk) var(--night)); }
.fr-bed .face-left { fill: color-mix(in srgb, #474a4e, var(--dusk) var(--night)); }
.fr-bed .face-right { fill: color-mix(in srgb, #383b3e, var(--dusk) var(--night)); }
.fr-paint-white .fr-cab .face-top { fill: color-mix(in srgb, #e6e8eb, var(--dusk) var(--night)); }
.fr-paint-white .fr-cab .face-left { fill: color-mix(in srgb, #cdd1d6, var(--dusk) var(--night)); }
.fr-paint-white .fr-cab .face-right { fill: color-mix(in srgb, #a9aeb5, var(--dusk) var(--night)); }
.fr-paint-red .fr-cab .face-top { fill: color-mix(in srgb, #c04a3f, var(--dusk) var(--night)); }
.fr-paint-red .fr-cab .face-left { fill: color-mix(in srgb, #a33a30, var(--dusk) var(--night)); }
.fr-paint-red .fr-cab .face-right { fill: color-mix(in srgb, #812d25, var(--dusk) var(--night)); }
.fr-paint-blue .fr-cab .face-top { fill: color-mix(in srgb, #4170a6, var(--dusk) var(--night)); }
.fr-paint-blue .fr-cab .face-left { fill: color-mix(in srgb, #325c8c, var(--dusk) var(--night)); }
.fr-paint-blue .fr-cab .face-right { fill: color-mix(in srgb, #26486e, var(--dusk) var(--night)); }
.fr-paint-yellow .fr-cab .face-top { fill: color-mix(in srgb, #e3b23c, var(--dusk) var(--night)); }
.fr-paint-yellow .fr-cab .face-left { fill: color-mix(in srgb, #c9972a, var(--dusk) var(--night)); }
.fr-paint-yellow .fr-cab .face-right { fill: color-mix(in srgb, #a17820, var(--dusk) var(--night)); }
.fr-load-crates .face-top { fill: color-mix(in srgb, #e3a64a, var(--dusk) var(--night)); }
.fr-load-crates .face-left { fill: color-mix(in srgb, #c88a33, var(--dusk) var(--night)); }
.fr-load-crates .face-right { fill: color-mix(in srgb, #a06c25, var(--dusk) var(--night)); }
.fr-load-container .face-top { fill: color-mix(in srgb, #e39a2c, var(--dusk) var(--night)); }
.fr-load-container .face-left { fill: color-mix(in srgb, #c7801c, var(--dusk) var(--night)); }
.fr-load-container .face-right { fill: color-mix(in srgb, #a06616, var(--dusk) var(--night)); }
.fr-load-transformer .face-top { fill: color-mix(in srgb, #8e9893, var(--dusk) var(--night)); }
.fr-load-transformer .face-left { fill: color-mix(in srgb, #737d78, var(--dusk) var(--night)); }
.fr-load-transformer .face-right { fill: color-mix(in srgb, #5c6560, var(--dusk) var(--night)); }
.fr-paint-white .fr-body .face-top { fill: color-mix(in srgb, #e6e8eb, var(--dusk) var(--night)); }
.fr-paint-white .fr-body .face-left { fill: color-mix(in srgb, #cdd1d6, var(--dusk) var(--night)); }
.fr-paint-white .fr-body .face-right { fill: color-mix(in srgb, #a9aeb5, var(--dusk) var(--night)); }
.fr-paint-red .fr-body .face-top { fill: color-mix(in srgb, #c04a3f, var(--dusk) var(--night)); }
.fr-paint-red .fr-body .face-left { fill: color-mix(in srgb, #a33a30, var(--dusk) var(--night)); }
.fr-paint-red .fr-body .face-right { fill: color-mix(in srgb, #812d25, var(--dusk) var(--night)); }
.fr-paint-blue .fr-body .face-top { fill: color-mix(in srgb, #4170a6, var(--dusk) var(--night)); }
.fr-paint-blue .fr-body .face-left { fill: color-mix(in srgb, #325c8c, var(--dusk) var(--night)); }
.fr-paint-blue .fr-body .face-right { fill: color-mix(in srgb, #26486e, var(--dusk) var(--night)); }
.fr-paint-yellow .fr-body .face-top { fill: color-mix(in srgb, #e3b23c, var(--dusk) var(--night)); }
.fr-paint-yellow .fr-body .face-left { fill: color-mix(in srgb, #c9972a, var(--dusk) var(--night)); }
.fr-paint-yellow .fr-body .face-right { fill: color-mix(in srgb, #a17820, var(--dusk) var(--night)); }
.fr-paint-green .fr-body .face-top { fill: color-mix(in srgb, #5f9a5a, var(--dusk) var(--night)); }
.fr-paint-green .fr-body .face-left { fill: color-mix(in srgb, #4c8048, var(--dusk) var(--night)); }
.fr-paint-green .fr-body .face-right { fill: color-mix(in srgb, #3b6538, var(--dusk) var(--night)); }
.fr-cabin .face-top, .fr-cabin .face-left, .fr-cabin .face-right { fill: color-mix(in srgb, #46637a, var(--dusk) var(--night)); }

/* Water in the ground: a bed of wet gravel in Earth's sides. */
.fr-aquifer { fill: color-mix(in srgb, #4f8fb3, var(--dusk) var(--night)); opacity: 0.42; }

/* The AI Factories' backup generators: enclosures in a warm grey on dark
   fuel tanks, louvered, their exhaust stacks dark. */
.fr-gen .face-top { fill: color-mix(in srgb, #e4e1d8, var(--dusk) var(--night)); }
.fr-gen .face-left { fill: color-mix(in srgb, #ccc8bd, var(--dusk) var(--night)); }
.fr-gen .face-right { fill: color-mix(in srgb, #aaa598, var(--dusk) var(--night)); }
.fr-gen-tank .face-top, .fr-gen-tank .face-left, .fr-gen-tank .face-right { fill: color-mix(in srgb, #4a4d52, var(--dusk) var(--night)); }
.fr-gen-louver { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.3), rgb(from var(--dusk) r g b / 0.3) var(--night)); stroke-width: 0.45; }
.fr-gen-stack .face-left { fill: color-mix(in srgb, #5b5f64, var(--dusk) var(--night)); }
.fr-gen-stack .face-top { fill: color-mix(in srgb, #1b1c1e, var(--dusk) var(--night)); }

/* The tower's mullions, fine lines down its glass. */
.fr-mullion { fill: none; stroke: color-mix(in srgb, rgba(255, 255, 255, 0.28), rgb(from var(--dusk) r g b / 0.28) var(--night)); stroke-width: 0.4; }

/* The transformer on its truck: the tank's stiffeners and flange. */
.fr-xfmr-rib { fill: none; stroke: color-mix(in srgb, rgba(0, 0, 0, 0.32), rgb(from var(--dusk) r g b / 0.32) var(--night)); stroke-width: 0.35; }

/* Copper cathodes, bundled: copper plates, stacked, under steel straps. */
.fr-cathode .face-top { fill: color-mix(in srgb, #e59a6c, var(--dusk) var(--night)); }
.fr-cathode .face-left { fill: color-mix(in srgb, #cf7b4b, var(--dusk) var(--night)); }
.fr-cathode .face-right { fill: color-mix(in srgb, #a95c34, var(--dusk) var(--night)); }
.fr-cathode.box polygon { stroke: none; }
.fr-cathode-seam { fill: none; stroke: color-mix(in srgb, rgba(70, 30, 10, 0.35), rgb(from var(--dusk) r g b / 0.35) var(--night)); stroke-width: 0.3; }
.fr-strap { fill: none; stroke: color-mix(in srgb, #3c4046, var(--dusk) var(--night)); stroke-width: 0.35; }

/* The satellites' solar wings, in cells. */
.fr-cells { fill: none; stroke: color-mix(in srgb, rgba(201, 210, 220, 0.6), rgb(from var(--dusk) r g b / 0.6) var(--night)); stroke-width: 0.35; }

/* The crane's light for aircraft, and the forklift's guard. */
.fr-crane-light { fill: #ff5a48; animation: blink 2.4s steps(1) infinite; }
.fr-guard { fill: none; stroke: color-mix(in srgb, #2b2c2f, var(--dusk) var(--night)); stroke-width: 0.4; }
[data-theme="dark"] #map-iso :is(.fr-crane-light, .fr-cabin-window) { filter: url(#iso-glow); }

/* People: dark trousers, a coat in a paint of its own or a hi-vis vest, a
   white hard hat on a worker. */
.fr-person-shadow { fill: var(--shade); opacity: 0.25; }
.fr-legs { fill: color-mix(in srgb, #3b4250, var(--dusk) var(--night)); }
.fr-skin { fill: color-mix(in srgb, #e2b48f, var(--dusk) var(--night)); }
.fr-vest .fr-torso { fill: color-mix(in srgb, #ff8a1e, var(--dusk) var(--night)); }
/* Hi-vis is made to be seen after dark: it dims less than the rest. */
[data-theme="dark"] .fr-vest .fr-torso { fill: color-mix(in srgb, #ff8a1e, var(--dusk) 25%); }
.fr-hardhat { fill: color-mix(in srgb, #f6f4ee, var(--dusk) var(--night)); }
.fr-coat-blue .fr-torso { fill: color-mix(in srgb, #3f6fa8, var(--dusk) var(--night)); }
.fr-coat-red .fr-torso { fill: color-mix(in srgb, #b8483c, var(--dusk) var(--night)); }
.fr-coat-green .fr-torso { fill: color-mix(in srgb, #4d7f56, var(--dusk) var(--night)); }
.fr-coat-amber .fr-torso { fill: color-mix(in srgb, #c98b2f, var(--dusk) var(--night)); }
.fr-coat-grey .fr-torso { fill: color-mix(in srgb, #6d737b, var(--dusk) var(--night)); }

/* Trees: a trunk and a round crown, or a pine's cone, lit from the left. */
.fr-tree-shadow { fill: var(--shade); opacity: 0.2; }
.fr-trunk { fill: color-mix(in srgb, #7a5a3c, var(--dusk) var(--night)); }
.fr-leaf { fill: color-mix(in srgb, #5f8f45, var(--dusk) var(--night)); }
.fr-leaf-lit { fill: var(--leaf-lit); }
.fr-walk { fill: var(--paving); }

/* Street lamps: steel poles, their heads dark by day; after dark they're lit
   and each throws a warm pool on the road. */
.fr-street-pole { fill: none; stroke: color-mix(in srgb, #8a9096, var(--dusk) var(--night)); stroke-width: 0.55; stroke-linecap: round; stroke-linejoin: round; }
.fr-street-head { fill: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); }
.fr-street-pool { display: none; }
[data-theme="dark"] .fr-street-head { fill: #ffe2a8; }
[data-theme="dark"] .fr-street-pool { display: inline; fill: #ffcf8a; opacity: 0.14; }
[data-theme="dark"] #map-iso .fr-street-head { filter: url(#iso-glow); }

/* Fiber in the ground: a dark cut with a lit seam in it, pulses riding it
   in the flows' lavender and feedback running home in mint. */
.fr-trench { fill: none; stroke: color-mix(in srgb, #6e5640, var(--dusk) var(--night)); stroke-width: 3.2; stroke-linejoin: round; opacity: 0.55; }
.fr-fiber-end { fill: var(--flow); opacity: 0.7; }
.fr-fiber { fill: none; stroke: var(--flow); stroke-width: 1; stroke-linejoin: round; opacity: 0.55; }
.fr-fiber-pulse { fill: var(--flow-text); }
.fr-fiber-back { fill: var(--feedback); }
.carrier-link:is(:hover, :focus-visible, .is-path, .touring) .fr-fiber { opacity: 1; stroke-width: 1.6; }

/* The grid: dark wires on the pylons, power pulsing out along them in cyan
   and the energy's feedback running home in mint. */
.fr-insulator { fill: none; stroke: color-mix(in srgb, #b9b2a5, var(--dusk) var(--night)); stroke-width: 1; stroke-linecap: round; }
.fr-wire { fill: none; stroke: color-mix(in srgb, #3f454c, var(--dusk) var(--night)); stroke-width: 0.7; opacity: 0.55; }
.fr-pulse { fill: none; stroke: var(--energy); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 56; animation: fr-pulse 2.4s linear infinite; }
.fr-pulse-back { fill: none; stroke: var(--feedback); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 87; animation: fr-pulse-back 5.4s linear infinite; }
@keyframes fr-pulse-back { to { stroke-dashoffset: 90; } }
.carrier-link:is(:hover, :focus-visible, .is-path, .touring) .fr-wire { opacity: 1; stroke-width: 1.1; }
.carrier-link:is(:hover, :focus-visible, .is-path, .touring) .fr-road-line { stroke: var(--earth); }

/* ---- the last mile: its parts' pictures, and the site they converge on (src/scenes/last-mile.js) ---- */
/* Power: lattice steel, insulators, wires with power pulsing along them. */
.lm-steel { fill: none; stroke: color-mix(in srgb, #8a929b, var(--dusk) var(--night)); stroke-opacity: 1; stroke-linecap: round; stroke-linejoin: round; }
.lm-insulator { stroke: color-mix(in srgb, #b9b2a5, var(--dusk) var(--night)); stroke-opacity: 1; stroke-linecap: round; }
.lm-wire { fill: none; stroke: color-mix(in srgb, #3f454c, var(--dusk) var(--night)); stroke-opacity: 0.55; }

/* Land: surveyed, staked, strung. */
.lm-survey { stroke: var(--earth); stroke-opacity: 0.16; stroke-width: 1; stroke-dasharray: 2 4; }
.lm-string { fill: none; stroke: var(--earth); stroke-opacity: 0.75; stroke-width: 1; stroke-dasharray: 3 3; animation: lm-crawl 2.4s linear infinite; }
@keyframes lm-crawl { to { stroke-dashoffset: -6; } }
.lm-stake { stroke: var(--earth); stroke-linecap: round; }
.lm-flag { fill: var(--earth); opacity: 0.9; }

/* Water: ripples running with the flow. */
.lm-ripple { stroke: var(--white); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0.1 6.9; opacity: 0.85; animation: lm-run 2.4s linear infinite; }
@keyframes lm-run { to { stroke-dashoffset: -7; } }

/* Minerals: the hill, the adit's dark mouth, timber, rails, the cart and its ore. */
.lm-adit { fill: var(--void); }
.lm-timber .face-top { fill: color-mix(in srgb, #b8946a, var(--dusk) var(--night)); }
.lm-timber .face-left { fill: color-mix(in srgb, #9a7a52, var(--dusk) var(--night)); }
.lm-timber .face-right { fill: color-mix(in srgb, #7d613f, var(--dusk) var(--night)); }
.lm-sleeper { stroke: var(--face-top); stroke-linecap: round; }
.lm-rail { stroke: var(--muted); stroke-linecap: round; }
.lm-bin { fill: var(--void); }
.lm-rim { fill: none; stroke: var(--line-strong); stroke-width: 1; }
/* Iron ore: hematite, a rusty red-brown, as at the front's mine. */
.lm-ore .face-top { fill: color-mix(in srgb, #9b5c43, var(--dusk) var(--night)); }
.lm-ore .face-left { fill: color-mix(in srgb, #7b4533, var(--dusk) var(--night)); }
.lm-ore .face-right { fill: color-mix(in srgb, #5e3427, var(--dusk) var(--night)); }
.lm-wheel { fill: var(--face-right); stroke: var(--muted); stroke-width: 1; }
.lm-hub { fill: var(--muted); }

/* Labor: people, warm; their hut's doorway lit; the path they wear. */
.lm-person { fill: var(--warm); }
.lm-still { opacity: 0.8; }
.lm-door { fill: var(--void); }
.lm-path { fill: color-mix(in srgb, #d8cbb2, var(--dusk) var(--night)); }

/* The dial: twelve months set in the ground, clicking on under a fixed window. */
.lm-dial-bed { fill: var(--face-left); opacity: 0.55; }
.lm-month { fill: var(--face-top); opacity: 0.85; }
.lm-day { stroke: var(--line-strong); stroke-width: 1; }
.lm-window { fill: var(--earth); fill-opacity: 0.1; stroke: var(--earth); stroke-opacity: 0.8; stroke-width: 1.2; }
.lm-now { fill: var(--earth); }

/* Land's connection: the substation's pad and fence. */
.lm-pad .face-top { fill: color-mix(in srgb, #cfcac0, var(--dusk) var(--night)); }
.lm-fence { fill: none; stroke: var(--line-strong); stroke-width: 0.8; stroke-dasharray: 1 1.6; }
/* The drill finding the next mine. */
.lm-rig { stroke: color-mix(in srgb, #d6a51e, var(--dusk) var(--night)); stroke-linecap: round; }
/* Raw materials, as found: trees, and copper ore in the rock. */
.lm-trunk { stroke: color-mix(in srgb, #7d613f, var(--dusk) var(--night)); stroke-linecap: round; }
.lm-leaf { fill: color-mix(in srgb, #6f9a5a, var(--dusk) var(--night)); }
.lm-leaf-shade { fill: color-mix(in srgb, #4f7a45, var(--dusk) var(--night)); }
.lm-vein { fill: color-mix(in srgb, #4f8f7a, var(--dusk) var(--night)); opacity: 0.85; }
.lm-copper { fill: color-mix(in srgb, #c27a45, var(--dusk) var(--night)); }
/* Water's main, and the water in it. */
.lm-main { stroke: color-mix(in srgb, #7f9fb3, var(--dusk) var(--night)); stroke-linecap: round; }
.lm-drop { fill: color-mix(in srgb, #4aa3d8, #8fd0f2 var(--night)); }

/* Land, lined up before the builders arrive: the transformer's fins, the
   fiber run under its edge (lit seam, a pulse, a handhole, an orange marker post). */
.lm-fin { stroke: var(--steel-right); stroke-linecap: round; }
.lm-pole { stroke: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); stroke-linecap: round; }
.lm-fiber { fill: none; stroke: var(--flow); stroke-opacity: 0.7; stroke-linecap: round; }
.lm-fiber-pulse { fill: var(--flow-text); }
.lm-handhole .face-top { fill: color-mix(in srgb, #9aa0a6, var(--dusk) var(--night)); }
.lm-handhole .face-left, .lm-handhole .face-right { fill: color-mix(in srgb, #7c8288, var(--dusk) var(--night)); }
.lm-marker .face-top, .lm-marker .face-left { fill: color-mix(in srgb, #ef7d22, var(--dusk) var(--night)); }
.lm-marker .face-right { fill: color-mix(in srgb, #c4621a, var(--dusk) var(--night)); }

/* Minerals, on Earth's own levels: claims still waiting, the drill's core in
   its trays, and the ore copper, green as the vein in the block. */
.lm-claim { stroke: color-mix(in srgb, #9a7a52, var(--dusk) var(--night)); stroke-linecap: round; }
.lm-tray .face-top { fill: color-mix(in srgb, #c9a678, var(--dusk) var(--night)); }
.lm-tray .face-left { fill: color-mix(in srgb, #ad8b5f, var(--dusk) var(--night)); }
.lm-tray .face-right { fill: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); }
.lm-core { stroke: color-mix(in srgb, #9c9488, var(--dusk) var(--night)); stroke-linecap: round; }
.lm-core-ore { stroke: color-mix(in srgb, #4f8f7a, var(--dusk) var(--night)); }
.level:is([data-level="earth"], [data-level="raw-materials"]) .lm-ore .face-top { fill: color-mix(in srgb, #6aa386, var(--dusk) var(--night)); }
.level:is([data-level="earth"], [data-level="raw-materials"]) .lm-ore .face-left { fill: color-mix(in srgb, #4f8f7a, var(--dusk) var(--night)); }
.level:is([data-level="earth"], [data-level="raw-materials"]) .lm-ore .face-right { fill: color-mix(in srgb, #3b6e5d, var(--dusk) var(--night)); }

/* Raw materials, as found: an aquifer in the cut, beaded with water. */
.lm-aquifer { fill: color-mix(in srgb, #9fb7b4, var(--dusk) var(--night)); opacity: 0.9; }
.lm-aquifer-side { fill: color-mix(in srgb, #85a09d, var(--dusk) var(--night)); }
.lm-bead { fill: var(--water); }

/* Homer City, at Earth's front: the road in, 39 graded pads, each with a
   proposed hall outlined. */
.lm-road { fill: var(--asphalt); opacity: 0.8; }
.lm-site .face-top { fill: color-mix(in srgb, #ddd3bf, var(--dusk) var(--night)); }
.lm-site .face-left { fill: color-mix(in srgb, #c4b89f, var(--dusk) var(--night)); }
.lm-site .face-right { fill: color-mix(in srgb, #ab9f86, var(--dusk) var(--night)); }
.lm-proposed { fill: none; stroke: var(--earth); stroke-opacity: 0.55; stroke-width: 0.8; stroke-dasharray: 2 2; }

/* ---- scenes: the classes, the Anything Factory, software and physical factories (src/scenes/loop.js) ---- */

/* Belts through several points, and what rides them. */
.lp-belt { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.6; }
.lp-belt-flow { stroke: var(--flow); }
.lp-belt-earth { stroke: var(--earth); opacity: 0.5; }
.lp-belt-energy { stroke: var(--energy); opacity: 0.5; }
.lp-belt-science { stroke: var(--feedback); opacity: 0.6; }
.lp-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; }
.lp-return { fill: none; stroke: var(--feedback); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 0.1 6.9; opacity: 0.75; animation: drift-fine 2.4s linear infinite; }
.lp-packet-earth { fill: var(--earth); }
.lp-packet-energy { fill: var(--energy); }
.lp-packet-science { fill: var(--feedback); }
.belt-link:hover .lp-belt, .iso-link:hover .lp-belt, .iso-link:focus-visible .lp-belt { opacity: 1; }
.lp-sheet { fill: var(--flow); fill-opacity: 0.55; stroke: var(--flow-text); stroke-width: 0.8; stroke-linejoin: round; }
.lp-sheet-line { fill: none; stroke: var(--flow-text); stroke-width: 0.7; opacity: 0.9; }
.lp-pole { stroke: var(--muted); stroke-width: 1; stroke-linecap: round; }
.lp-pennant { fill: var(--flow-text); }
.lp-crate-top { fill: var(--earth); }
.lp-crate-front { fill: var(--earth); opacity: 0.7; }
.lp-crate-side { fill: var(--earth); opacity: 0.5; }
.lp-chip { fill: var(--face-top); stroke: var(--earth); stroke-width: 0.8; stroke-linejoin: round; }
.lp-chip-die { fill: var(--earth); }

/* People, and what they hand over. */
.lp-person-body, .lp-person-head { fill: var(--warm); }
.lp-person-shadow { fill: var(--shade); opacity: 0.22; }
.lp-table .face-top { fill: var(--face-top); }
.lp-blueprint { fill: var(--flow); fill-opacity: 0.4; stroke: var(--flow-text); stroke-width: 0.8; }
.lp-ramp-top { fill: var(--face-top); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.07), rgb(from var(--dusk) r g b / 0.07) var(--night)); }
.lp-ramp-side { fill: var(--face-right); }
.lp-doorway { fill: var(--void); }
.lp-sense { fill: none; stroke-width: 1; }
.lp-sense-flow { stroke: var(--flow-text); }
.lp-sense-feedback { stroke: var(--feedback); }

/* The classes: the same plant, lights on, and what you can follow on its face. */
.lp-cell { fill: var(--glass-right); }
.lp-cell-on { fill: var(--flow-text); }
.lp-thread { fill: none; stroke: var(--flow-text); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }

/* The Anything Factory: the next factory, going up. */
.lp-built .face-top { fill: var(--face-top); }
.lp-frame { fill: none; stroke: var(--earth); stroke-width: 1; stroke-dasharray: 2 2.5; stroke-linejoin: round; opacity: 0.7; }
.lp-crane .face-top { fill: var(--muted); }
.lp-crane .face-left { fill: var(--faint); }
.lp-crane .face-right { fill: var(--face-top); }
.lp-cable { stroke: var(--muted); stroke-width: 0.8; }
.lp-load .face-top { fill: var(--earth); }
.lp-load .face-left { fill: var(--earth); opacity: 0.7; }
.lp-load .face-right { fill: var(--earth); opacity: 0.5; }
/* The governor's clock: its faces, its hands, its roof, and the work waiting. */
.lp-clock { fill: var(--white); stroke: color-mix(in srgb, #7a7368, var(--dusk) var(--night)); stroke-width: 0.6; }
.lp-clock-tick { stroke: color-mix(in srgb, #4a463f, var(--dusk) var(--night)); stroke-width: 0.6; }
.lp-clock-hand { stroke: color-mix(in srgb, #2b2a27, var(--dusk) var(--night)); stroke-width: 0.8; stroke-linecap: round; }
.lp-clock-hour { stroke-width: 1.2; }
.lp-roof-left { fill: color-mix(in srgb, #74524a, var(--dusk) var(--night)); }
.lp-roof-right { fill: color-mix(in srgb, #5f433c, var(--dusk) var(--night)); }
.lp-papers .face-top { fill: var(--white); }
.lp-papers .face-left { fill: color-mix(in srgb, #e6e2da, var(--dusk) var(--night)); }
.lp-papers .face-right { fill: color-mix(in srgb, #cfcac0, var(--dusk) var(--night)); }
/* Round its edges: towers failing together (their board's left face lit like
   its right), the shell of one that didn't survive, and a Go board. */
.dt-board .face-left { fill: var(--face-top); }
.af-lights .lit { stroke: color-mix(in srgb, #e9edf0, var(--dusk) var(--night)); stroke-width: 1.4; }
[data-theme="dark"] .af-lights .lit { stroke: var(--flow-text); stroke-width: 2; opacity: 0.75; }
.af-crash { stroke-dasharray: none; animation: none; }
.af-ruin .face-top { fill: color-mix(in srgb, #cfcbc3, var(--dusk) var(--night)); }
.af-ruin .face-left { fill: color-mix(in srgb, #b4afa6, var(--dusk) var(--night)); }
.af-ruin .face-right { fill: color-mix(in srgb, #99948b, var(--dusk) var(--night)); }
.af-ruin .glazing, [data-theme="dark"] .af-ruin .glazing { fill: var(--void); opacity: 1; }
.af-door { fill: var(--void); }
.af-board { stroke: color-mix(in srgb, #a88a62, var(--dusk) var(--night)); stroke-width: 1.4; stroke-linecap: round; }
.af-dead { opacity: 0.35; }
.af-dead .lp-belt { stroke-dasharray: 2 3; }
.af-grid { stroke: color-mix(in srgb, #5b4630, var(--dusk) var(--night)); stroke-width: 0.45; opacity: 0.75; }
.af-stone-black { fill: color-mix(in srgb, #23252b, var(--dusk) var(--night)); }
.af-stone-white { fill: var(--white); stroke: color-mix(in srgb, #8a8f98, var(--dusk) var(--night)); stroke-width: 0.4; }
.af-stone-lit { fill: var(--flow); }
.af-found { fill: none; stroke: var(--flow); stroke-width: 1.2; }

/* Software factories: a swarm round the tower, decisions out through a gate, traces back. */
.lp-orbit { fill: none; stroke: var(--flow); stroke-width: 0.8; stroke-dasharray: 1 4; opacity: 0.35; }
.lp-mote { fill: var(--flow-text); }
.lp-hop { fill: none; stroke: var(--flow); stroke-width: 0.8; stroke-dasharray: 1 4; opacity: 0.3; }
.lp-curtain { fill: var(--flow); opacity: 0.16; animation: lp-shimmer 2.4s ease-in-out infinite; }
@keyframes lp-shimmer { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.26; } }
.lp-deck .face-top { fill: var(--face-left); }
.lp-arc { fill: none; stroke-width: 1.2; stroke-linecap: round; }
.lp-arc-feedback { stroke: var(--feedback); }
.lp-arc-flow { stroke: var(--flow-text); }
.lit-feedback { stroke: var(--feedback); }
#map-iso .lp-doorway { filter: none; }


/* Physical factories: materials out, demand and telemetry back. */
.lp-pallet .face-top { fill: color-mix(in srgb, #c9a678, var(--dusk) var(--night)); }
.lp-pallet .face-left { fill: color-mix(in srgb, #ad8b5f, var(--dusk) var(--night)); }
.lp-pallet .face-right { fill: color-mix(in srgb, #8f714c, var(--dusk) var(--night)); }
.lp-signal { fill: none; stroke: var(--feedback); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 0.1 5; opacity: 0.8; animation: drift-fine 2.4s linear infinite; }
.belt-link:hover .lp-signal, .iso-link:hover .lp-signal { opacity: 1; }
.lp-clock-face { fill: var(--face-top); stroke: var(--earth); stroke-width: 0.8; stroke-linejoin: round; }
.lp-clock-tick { stroke: var(--muted); stroke-width: 0.8; stroke-linecap: round; }
.lp-clock-hand { stroke: var(--text); stroke-width: 1.2; stroke-linecap: round; }
.lp-clock-minute { stroke: var(--earth); stroke-width: 1; }
/* ---- scenes: the factories that make factories (src/scenes/makers.js) ---- */
/* The belt, and the crates that ride it. */
.mk-belt { fill: none; stroke: var(--earth); stroke-width: 1.5; stroke-linecap: round; opacity: 0.5; }
.iso-link:hover .mk-belt, .iso-link:focus-visible .mk-belt { opacity: 1; }
.mk-crate-top { fill: var(--earth); }
.mk-crate-front { fill: var(--earth); opacity: 0.7; }
.mk-crate-side { fill: var(--earth); opacity: 0.5; }
/* A factory making a factory: the frame, the crane, the piece it lowers. */
.mk-frame { fill: none; stroke: var(--earth); stroke-width: 1; stroke-dasharray: 2 2.5; stroke-linejoin: round; opacity: 0.75; }
.mk-slab .face-top { fill: var(--slab-left); }
.mk-crane .face-top { fill: var(--muted); }
.mk-crane .face-left { fill: var(--faint); }
.mk-crane .face-right { fill: var(--face-top); }
.mk-cable { stroke: var(--muted); stroke-width: 0.8; }
.mk-load .face-top { fill: var(--earth); }
.mk-load .face-left { fill: var(--earth); opacity: 0.7; }
.mk-load .face-right { fill: var(--earth); opacity: 0.5; }
/* Robot arms, in the yellow robot makers paint them. */
.mk-arm { fill: none; stroke: color-mix(in srgb, #e0aa1c, var(--dusk) var(--night)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mk-arm-new { stroke-width: 2.4; }
.mk-arm-base .face-top { fill: color-mix(in srgb, #efc244, var(--dusk) var(--night)); }
.mk-arm-base .face-left, .mk-arm-base .face-right { fill: color-mix(in srgb, #c9940f, var(--dusk) var(--night)); }
.mk-arm-test { stroke-width: 1.8; }
/* Where things and decisions are made (src/scenes/pictures-make.js). */
.mk-strap { fill: color-mix(in srgb, #5f646a, var(--dusk) var(--night)); stroke: none; }
/* Copper cathodes, stacked. */
.mk-copper .face-top { fill: color-mix(in srgb, #c98257, var(--dusk) var(--night)); }
.mk-copper .face-left { fill: color-mix(in srgb, #b06c43, var(--dusk) var(--night)); }
.mk-copper .face-right { fill: color-mix(in srgb, #8f5534, var(--dusk) var(--night)); }
/* A junction's track. */
.mk-sleeper { stroke: color-mix(in srgb, #8b7a66, var(--dusk) var(--night)); stroke-width: 1.2; stroke-linecap: butt; }
.mk-rail { fill: none; stroke: color-mix(in srgb, #6f757c, var(--dusk) var(--night)); stroke-width: 0.8; }
/* A decision's route, lit while it's the one set. */
.mk-route { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--flow); }
.mk-route-earth { stroke: var(--earth); }
.mk-route-energy { stroke: var(--energy); }
.mk-route-warm { stroke: var(--warm); }
/* Screens seen through glass, and the code on them. */
.mk-screen { fill: var(--flow); fill-opacity: 0.5; stroke: var(--edge); stroke-width: 0.4; }
.mk-screen-earth { fill: var(--earth); }
.mk-screen-energy { fill: var(--energy); }
.mk-code { fill: none; stroke: color-mix(in srgb, #ffffff 80%, var(--flow)); stroke-width: 0.8; stroke-linecap: round; opacity: 0.85; }
/* A circuit board on a screen: the board, its traces, its parts. */
.mk-pcb { fill: color-mix(in srgb, #2f6b3a, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.6; }
.mk-trace { fill: none; stroke: color-mix(in srgb, #d9b24a, var(--dusk) var(--night)); stroke-width: 0.9; stroke-linejoin: round; }
.mk-trace-glint { fill: color-mix(in srgb, #ffe7a0, var(--dusk) var(--night)); }
.mk-part { fill: color-mix(in srgb, #2b2d30, var(--dusk) var(--night)); }
/* The plan on a wall: its board and bars. */
.mk-board { fill: color-mix(in srgb, #f7f7f4, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.6; }
.mk-bar { stroke: none; }
.mk-bar-0 { fill: var(--flow); }
.mk-bar-1 { fill: color-mix(in srgb, var(--flow) 50%, var(--earth)); }
.mk-bar-2 { fill: var(--earth); }
/* A bay marked out in a plant's yard for an order still to come. */
.pm-slot { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }

/* Single sources: the burned end of the fab, and the engine's ladder. */
.ss-scorch { fill: color-mix(in srgb, #3b3633, var(--dusk) var(--night)); opacity: 0.5; }
.ss-smoke { fill: color-mix(in srgb, #8f9398, var(--dusk) var(--night)); }
.ss-ladder { stroke: color-mix(in srgb, #b9bfc6, var(--dusk) var(--night)); stroke-width: 0.8; stroke-linecap: round; }

/* ---- Materials pictures (src/scenes/pictures-materials.js) ----
   Only the tokens, and mixes of them. The accent is the part's tone. */

.pm-plane * { vector-effect: non-scaling-stroke; }

/* What things are made of: dark plastic and black steel; bright metal;
   painted steel; copper; boards; amber steel for the crane and the raceway. */
.pm-dark .face-top, .pm-bezel .face-top, .pm-tap .face-top, .pm-blade-box .face-top { fill: color-mix(in srgb, var(--face-top) 55%, var(--void)); }
.pm-dark .face-left, .pm-bezel .face-left, .pm-tap .face-left, .pm-blade-box .face-left { fill: color-mix(in srgb, var(--face-left) 55%, var(--void)); }
.pm-dark .face-right, .pm-bezel .face-right, .pm-tap .face-right, .pm-blade-box .face-right { fill: color-mix(in srgb, var(--face-right) 50%, var(--void)); }
.pm-metal .face-top, .pm-porcelain .face-top { fill: color-mix(in srgb, var(--muted) 42%, var(--face-top)); }
.pm-metal .face-left { fill: color-mix(in srgb, var(--muted) 28%, var(--face-left)); }
.pm-metal .face-right { fill: color-mix(in srgb, var(--muted) 16%, var(--face-right)); }
.pm-steel .face-top, .pm-bus .face-top, .pm-tray .face-top, .pm-fin .face-top { fill: color-mix(in srgb, var(--muted) 30%, var(--face-top)); }
.pm-steel .face-left, .pm-bus .face-left, .pm-tray .face-left, .pm-fin .face-left { fill: color-mix(in srgb, var(--muted) 20%, var(--face-left)); }
.pm-steel .face-right, .pm-bus .face-right, .pm-tray .face-right, .pm-fin .face-right { fill: color-mix(in srgb, var(--muted) 10%, var(--face-right)); }
.pm-copper .face-top { fill: color-mix(in srgb, var(--earth) 42%, var(--face-top)); }
.pm-copper .face-left { fill: color-mix(in srgb, var(--earth) 30%, var(--face-left)); }
.pm-copper .face-right { fill: color-mix(in srgb, var(--earth) 22%, var(--face-right)); }
/* Circuit boards: solder-mask green. */
.pm-board .face-top { fill: var(--pcb-top); }
.pm-board .face-left { fill: var(--pcb-left); }
.pm-board .face-right { fill: var(--pcb-right); }
.pm-hbm .face-top, .pm-dimm-bank .face-top { fill: color-mix(in srgb, var(--face-top) 80%, var(--void)); }
.pm-die-box .face-top { fill: color-mix(in srgb, var(--face-top) 35%, var(--void)); }
.pm-mast .face-top, .pm-stake .face-top, .pm-duct .face-top { fill: color-mix(in srgb, var(--earth) 45%, var(--face-top)); }
.pm-mast .face-left, .pm-stake .face-left, .pm-duct .face-left { fill: color-mix(in srgb, var(--earth) 32%, var(--face-left)); }
.pm-mast .face-right, .pm-stake .face-right, .pm-duct .face-right { fill: color-mix(in srgb, var(--earth) 22%, var(--face-right)); }
.pm-tiles .face-top { fill: color-mix(in srgb, var(--muted) 14%, var(--face-top)); }
.pm-ground .face-top { fill: color-mix(in srgb, var(--earth) 9%, var(--face-top)); }
.pm-jib-band { fill: color-mix(in srgb, var(--earth) 45%, var(--face-top)); }
.pm-weight { fill: color-mix(in srgb, var(--face-left) 55%, var(--void)); }
.pm-cab { fill: var(--face-left); }

/* Faces, and what's drawn on them. */
.pm-port, .pm-chip, .pm-bay, .pm-plenum, .pm-axle, .pm-flue, .pm-fan-well { fill: var(--void); }
.pm-bay { opacity: 0.75; }
.pm-door { fill: none; stroke: var(--line); stroke-width: 1; }
.pm-seam, .pm-vent, .pm-seam-line, .pm-panel-seam, .pm-joint { fill: none; stroke: var(--line); stroke-width: 1; }
.pm-layer, .pm-fins, .pm-header, .pm-coil, .pm-louver, .pm-pedestal, .pm-tie, .pm-cable { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.pm-truss { fill: none; stroke: var(--void); stroke-width: 1; stroke-linejoin: round; opacity: 0.45; }
.pm-handle, .pm-stem { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.pm-tab { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.pm-wheel { fill: none; stroke: var(--accent, var(--earth)); stroke-width: 1.6; }
.pm-blade { fill: color-mix(in srgb, var(--muted) 70%, var(--face-top)); }
.pm-hub { fill: var(--face-top); }
.pm-clad { opacity: 0.9; }
.pm-deck { fill: color-mix(in srgb, var(--muted) 22%, var(--face-top)); }

/* What carries things: traces, cords and fiber, pipes and hoses. */
.pm-trace { fill: none; stroke: var(--accent, var(--earth)); stroke-width: 1; opacity: 0.32; }
.pm-finger { stroke: var(--accent, var(--earth)); stroke-width: 1.4; opacity: 0.85; }
.pm-contacts { fill: none; stroke: var(--accent, var(--earth)); stroke-dasharray: 1.6 1.2; opacity: 0.75; }
.pm-cord, .pm-fiber, .pm-cable-run { fill: none; stroke: var(--accent, var(--earth)); stroke-linecap: round; opacity: 0.7; }
.pm-fiber-lit { opacity: 0.9; }
.pm-fiber-flat, .pm-under { stroke: var(--accent, var(--earth)); stroke-width: 1.2; opacity: 0.5; }
.pm-wound { fill: color-mix(in srgb, var(--earth) 50%, var(--face-top)); }
.pm-turn { fill: none; stroke: var(--void); stroke-width: 1; opacity: 0.35; }
.pm-pipe-body, .pm-pipe-sheen, .pm-run { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pm-pipe-body { stroke: color-mix(in srgb, var(--face-right) 70%, var(--void)); }
.pm-pipe-sheen { stroke: color-mix(in srgb, var(--muted) 30%, var(--face-top)); }
.pm-run { stroke-dasharray: 3 6; animation: pm-run 1.2s linear infinite; }
.pm-run-cool { stroke: var(--feedback); }
.pm-run-hot { stroke: var(--accent, var(--earth)); }

/* Light and life. Small lights carry a soft halo rather than a filter. */
.pm-die { fill: var(--accent, var(--earth)); fill-opacity: 0.16; stroke: var(--accent, var(--earth)); stroke-width: 1.4; stroke-linejoin: round; animation: pm-glow 2.4s ease-in-out infinite; }
.pm-led { fill: none; stroke: var(--accent, var(--earth)); stroke-width: 1.1; stroke-linecap: round; animation: pm-blink 2.4s steps(1) infinite; }
.pm-signal, .pm-packet { fill: var(--accent, var(--earth)); }
.pm-halo { opacity: 0.28; }
.pm-photon circle { fill: var(--light); }
.pm-photon .pm-halo { fill: var(--accent, var(--earth)); }
.pm-spark circle { fill: var(--energy); }
.pm-hum circle { fill: var(--energy); }
.pm-hum { animation: pm-glow 2.4s ease-in-out infinite; }
.pm-weld circle { fill: var(--light); }
.pm-weld .pm-halo { fill: var(--accent, var(--earth)); opacity: 0.4; }
.pm-weld { animation: flicker 1.2s steps(1) infinite; }
.pm-spark-fall { fill: var(--accent, var(--earth)); }
.pm-screen { fill: var(--accent, var(--earth)); fill-opacity: 0.4; animation: flicker 7.2s steps(1) infinite; }
.pm-vapor { fill: var(--muted); }
.pm-water-line { fill: none; stroke: var(--water); stroke-width: 1.6; stroke-linecap: round; }
.pm-window { fill: var(--feedback); fill-opacity: 0.1; stroke: var(--feedback); stroke-opacity: 0.35; stroke-width: 1; }
.pm-fluid { fill: var(--feedback); fill-opacity: 0.24; animation: pm-glow 4.8s ease-in-out infinite; }
.pm-bubble { fill: none; stroke: var(--feedback); stroke-width: 1; }
.pm-cold { fill: var(--feedback); fill-opacity: 0.16; animation: pm-glow 4.8s ease-in-out infinite; }
.pm-lot { fill: var(--accent, var(--earth)); opacity: 0.07; }
.pm-string { fill: none; stroke: var(--accent, var(--earth)); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.8; animation: pm-run 2.4s linear infinite; }
.pm-flag-cloth { fill: var(--accent, var(--earth)); stroke: none; }
.pm-flag { transform-box: fill-box; transform-origin: 0% 50%; animation: pm-flutter 2.4s ease-in-out infinite; }
.pm-hoist { animation: bob 4.8s ease-in-out infinite; }
/* Chips: the LPU's die, a grid of SRAM banks; an empty memory slot, its
   latches swung open. */
.pm-sram { stroke: var(--accent, var(--earth)); stroke-width: 0.7; opacity: 0.7; }
.pm-groove { fill: var(--void); }
.pm-latch { fill: color-mix(in srgb, #f4f2ee, var(--dusk) var(--night)); stroke: var(--line-strong); stroke-width: 0.5; stroke-linejoin: round; }

/* Power distribution: a transformer's core of grain-oriented steel, its
   laminations' edges, and its copper coils. */
.pm-core .face-top { fill: color-mix(in srgb, #8d949c, var(--dusk) var(--night)); }
.pm-core .face-left { fill: color-mix(in srgb, #727a83, var(--dusk) var(--night)); }
.pm-core .face-right { fill: color-mix(in srgb, #5c636b, var(--dusk) var(--night)); }
.pm-lam { stroke: color-mix(in srgb, #4a5057, var(--dusk) var(--night)); stroke-width: 0.5; opacity: 0.8; }
.pm-winding .face-top { fill: color-mix(in srgb, #d9915c, var(--dusk) var(--night)); }
.pm-winding .face-left { fill: color-mix(in srgb, #b8703f, var(--dusk) var(--night)); }

/* Data centers: the poured slab under the next bay. */
.pm-slab { fill: color-mix(in srgb, #d9d6cf, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }

/* Equipment: the chains holding a transformer down on its trailer. */
.pm-chain { fill: none; stroke: color-mix(in srgb, #5d636a, var(--dusk) var(--night)); stroke-width: 1; stroke-dasharray: 1.6 1; stroke-linecap: round; }

/* Cooling: the straps round a pallet of cold plates. */
.pm-strap { fill: none; stroke: color-mix(in srgb, #3a3d42, var(--dusk) var(--night)); stroke-width: 1; stroke-linejoin: round; opacity: 0.8; }

/* The glass cloth inside the boards: a white roll of woven glass fiber on
   its core, its tail laid out. */
.pm-cloth-sheet { fill: color-mix(in srgb, #f6f5f0, var(--dusk) var(--night)); fill-opacity: 0.92; stroke: var(--edge); stroke-width: 0.5; }
.pm-cloth-side { fill: color-mix(in srgb, #e9e7e0, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.pm-cloth-end { fill: color-mix(in srgb, #f8f7f3, var(--dusk) var(--night)); stroke: var(--line-strong); stroke-width: 0.5; }
.pm-cloth-wrap { fill: none; stroke: var(--line-strong); stroke-width: 0.5; }
.pm-cloth-core { fill: color-mix(in srgb, #a88a62, var(--dusk) var(--night)); stroke: var(--line-strong); stroke-width: 0.5; }
.pm-weave { fill: none; stroke: color-mix(in srgb, #b9b6ad, var(--dusk) var(--night)); stroke-width: 0.5; opacity: 0.8; }

/* Transceivers: the shell cut open on its laser, and the wafers the lasers
   are made on, dark indium phosphide in a pale carrier. */
.pm-cavity { fill: var(--void); }
.pm-optics-board { fill: var(--pcb-top); }
.pm-laser { fill: color-mix(in srgb, #3a3d44, var(--dusk) var(--night)); }
.pm-laser-glow circle { fill: var(--light); }
.pm-laser-glow .pm-halo { fill: var(--accent, var(--earth)); opacity: 0.5; }
.pm-laser-glow { animation: pm-glow 2.4s ease-in-out infinite; }
.pm-carrier .face-top { fill: color-mix(in srgb, #e9ecef, var(--dusk) var(--night)); }
.pm-carrier .face-left { fill: color-mix(in srgb, #d3d8dd, var(--dusk) var(--night)); }
.pm-carrier .face-right { fill: color-mix(in srgb, #b8bfc6, var(--dusk) var(--night)); }
.pm-comb { stroke: var(--line-strong); stroke-width: 0.8; }
.pm-wafer { fill: color-mix(in srgb, #4d5560, var(--dusk) var(--night)); stroke: color-mix(in srgb, #8d96a1, var(--dusk) var(--night)); stroke-width: 0.8; }
.pm-wafer-sheen { fill: none; stroke: color-mix(in srgb, #c9d3de, var(--dusk) var(--night)); stroke-width: 1; stroke-linecap: round; opacity: 0.7; }
[data-theme="dark"] #map-iso .pm-laser-glow { filter: url(#iso-glow); }
@keyframes pm-run { to { stroke-dashoffset: -9; } }
@keyframes pm-blink { 0%, 70% { opacity: 1; } 71%, 84% { opacity: 0.2; } 85%, 100% { opacity: 1; } }
@keyframes pm-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes pm-flutter { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.82); } }
/* What Physical Factories make and hear back, a level down (src/scenes/pictures-physical.js). */

/* Metals: coils of transformer-core steel, and ingots. */
.pp-coil-side { fill: color-mix(in srgb, #8a9097, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.pp-coil-end { fill: color-mix(in srgb, #b4bac0, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.pp-coil-wrap { fill: none; stroke: color-mix(in srgb, #8a9097, var(--dusk) var(--night)); stroke-width: 0.6; }
.pp-coil-eye { fill: color-mix(in srgb, #3c4045, var(--dusk) var(--night)); }
/* ...and copper cathodes from the refinery, strapped in a bundle. */
.pp-cathode .face-top { fill: color-mix(in srgb, #d4895a, var(--dusk) var(--night)); }
.pp-cathode .face-left { fill: color-mix(in srgb, #b8693d, var(--dusk) var(--night)); }
.pp-cathode .face-right { fill: color-mix(in srgb, #97532f, var(--dusk) var(--night)); }
.pp-sheet { fill: none; stroke: color-mix(in srgb, #7c4024, var(--dusk) var(--night)); stroke-width: 0.5; opacity: 0.7; }
.pp-band { fill: none; stroke: color-mix(in srgb, #3c4045, var(--dusk) var(--night)); stroke-width: 0.9; stroke-linejoin: round; }

/* Fuel: coal to burn, a fuel assembly to split. */
.pp-coal { fill: color-mix(in srgb, #2c2c2e, var(--dusk) var(--night)); }
.pp-coal-lit { fill: color-mix(in srgb, #5c5c61, var(--dusk) var(--night)); }
.pp-lump .face-top, .pp-lump .face-left, .pp-lump .face-right { fill: color-mix(in srgb, #38383b, var(--dusk) var(--night)); }
.pp-rods .face-top { fill: color-mix(in srgb, #cfd3d6, var(--dusk) var(--night)); }
.pp-rods .face-left { fill: color-mix(in srgb, #b9bec3, var(--dusk) var(--night)); }
.pp-rods .face-right { fill: color-mix(in srgb, #9ea4aa, var(--dusk) var(--night)); }
.pp-rod { stroke: color-mix(in srgb, #7d848b, var(--dusk) var(--night)); stroke-width: 0.5; }

/* Machines: a machining center, seen through its door. */
.pp-inside { fill: color-mix(in srgb, #3a3f45, var(--dusk) var(--night)); }
.pp-part { fill: color-mix(in srgb, #c98257, var(--dusk) var(--night)); }
.pp-tool { stroke: color-mix(in srgb, #d8dce0, var(--dusk) var(--night)); stroke-width: 1.2; stroke-linecap: round; }
.pp-glass { fill: var(--glass-right, #9fb7c9); fill-opacity: 0.28; stroke: var(--edge); stroke-width: 0.6; }
.pp-screen { fill: var(--flow); opacity: 0.85; }
.pp-run { fill: var(--feedback); }

/* Goods: a van, open at the back, and its parcels. */
.pp-van .face-top { fill: color-mix(in srgb, #fbfbfa, var(--dusk) var(--night)); }
.pp-van .face-left { fill: color-mix(in srgb, #ecebe7, var(--dusk) var(--night)); }
.pp-van .face-right { fill: color-mix(in srgb, #d4d2cc, var(--dusk) var(--night)); }
.pp-windscreen { fill: color-mix(in srgb, #5d7385, var(--dusk) var(--night)); }
.pp-stripe { fill: var(--earth); opacity: 0.8; }
.pp-wheel { fill: color-mix(in srgb, #2b2d30, var(--dusk) var(--night)); }
.pp-door { fill: color-mix(in srgb, #e3e1dc, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.pp-parcel .face-top { fill: color-mix(in srgb, #d8b98c, var(--dusk) var(--night)); }
.pp-parcel .face-left { fill: color-mix(in srgb, #c7a473, var(--dusk) var(--night)); }
.pp-parcel .face-right { fill: color-mix(in srgb, #ad8b5c, var(--dusk) var(--night)); }
.pp-parcel-face { fill: color-mix(in srgb, #c7a473, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.4; }

/* Commitments and prices: what isn't made yet, and the money. */
.pp-outline { fill: none; stroke: var(--earth); stroke-width: 0.9; stroke-dasharray: 3 3; stroke-linejoin: round; opacity: 0.8; }
.pp-coin .face-left { fill: color-mix(in srgb, #c9a23d, var(--dusk) var(--night)); }
.pp-coin .face-top, .pp-coin-face { fill: color-mix(in srgb, #e8c45a, var(--dusk) var(--night)); }
.pp-brass .face-top { fill: color-mix(in srgb, #d6b36a, var(--dusk) var(--night)); }
.pp-brass .face-left { fill: color-mix(in srgb, #c09a52, var(--dusk) var(--night)); }
.pp-brass .face-right { fill: color-mix(in srgb, #a07f40, var(--dusk) var(--night)); }
.pp-brass-dot { fill: color-mix(in srgb, #a07f40, var(--dusk) var(--night)); }
.pp-beam { stroke: color-mix(in srgb, #a07f40, var(--dusk) var(--night)); stroke-width: 2; stroke-linecap: round; }
.pp-string { stroke: var(--muted); stroke-width: 0.6; opacity: 0.8; }
.pp-stop { stroke: color-mix(in srgb, #7a6233, var(--dusk) var(--night)); stroke-width: 1.4; stroke-linecap: round; }
.pp-pan { fill: color-mix(in srgb, #d6b36a, var(--dusk) var(--night)); stroke: color-mix(in srgb, #a07f40, var(--dusk) var(--night)); stroke-width: 0.7; }
.pp-dimm .face-top, .pp-dimm .face-left, .pp-dimm .face-right { fill: color-mix(in srgb, #2f6b3a, var(--dusk) var(--night)); }
.pp-chip .face-top, .pp-chip .face-left, .pp-chip .face-right { fill: color-mix(in srgb, #2b2d30, var(--dusk) var(--night)); }

/* Queues: the halls waiting, dark, their cables run short. */
.pp-dark { fill: color-mix(in srgb, #8d949b, var(--dusk) var(--night)); }
.pp-cable { stroke: color-mix(in srgb, #2b2d30, var(--dusk) var(--night)); stroke-width: 1.4; stroke-linecap: round; }
/* ...and the plots only announced, marked out on the ground. */
.pp-plot { fill: var(--earth); fill-opacity: 0.1; stroke: var(--earth); stroke-width: 0.9; stroke-dasharray: 3 2.5; stroke-linejoin: round; opacity: 0.85; }

/* Observation: a poured slab, and the marks the sweep closes round each chiller. */
.pp-slab { fill: color-mix(in srgb, #d9d6cf, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.pp-mark polyline { fill: none; stroke: var(--feedback); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] #map-iso .pp-mark { filter: url(#iso-glow); }

/* Telemetry: a node's fault light; an arm and its twin in the simulator. */
.pp-fault { fill: #e0533f; }
/* The test that finds what no log shows, and the node it finds. */
.pp-scan { fill: none; stroke: var(--feedback); stroke-opacity: 0.4; stroke-linecap: butt; }
.pp-found { fill: none; stroke: #e0533f; stroke-width: 2.4; stroke-linecap: round; }
[data-theme="dark"] #map-iso :is(.pp-scan, .pp-found, .pp-fault) { filter: url(#iso-glow); }
.pp-arm { fill: none; stroke: color-mix(in srgb, #e39b2d, var(--dusk) var(--night)); stroke-linecap: round; stroke-linejoin: round; }
.pp-grip { fill: none; stroke: color-mix(in srgb, #5f646a, var(--dusk) var(--night)); stroke-linecap: round; stroke-linejoin: round; }
.pp-arm-twin { fill: none; stroke: var(--feedback); stroke-dasharray: 2 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
/* The test bench: a car on rollers in a pit, its exhaust hosed to the analyzer. */
.pp-pit { fill: color-mix(in srgb, #8e9399, var(--dusk) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.pp-roller .face-top, .pp-roller .face-left, .pp-roller .face-right { fill: color-mix(in srgb, #3a3d42, var(--dusk) var(--night)); }
.pp-car .face-top { fill: color-mix(in srgb, #9fb3c4, var(--dusk) var(--night)); }
.pp-car .face-left { fill: color-mix(in srgb, #7f95a8, var(--dusk) var(--night)); }
.pp-car .face-right { fill: color-mix(in srgb, #647a8c, var(--dusk) var(--night)); }
.pp-hose { stroke: color-mix(in srgb, #3a3d42, var(--dusk) var(--night)); stroke-width: 1.2; stroke-linecap: round; }
.pp-screen-line { stroke: var(--feedback); stroke-width: 1.4; stroke-linecap: round; }

/* The brick: bright red plastic, its studs catching the light. */
.pp-brick .face-top { fill: color-mix(in srgb, #e0473a, var(--dusk) var(--night)); }
.pp-brick .face-left { fill: color-mix(in srgb, #c4281c, var(--dusk) var(--night)); }
.pp-brick .face-right { fill: color-mix(in srgb, #9c1f16, var(--dusk) var(--night)); }
/* The twin's brick: the simulator's mint, see-through. */
.pp-ghost :is(.face-top, .face-left, .face-right) { fill: var(--feedback); stroke: var(--feedback); stroke-width: 0.6; }
.pp-ghost .face-top { fill-opacity: 0.35; }
.pp-ghost :is(.face-left, .face-right) { fill-opacity: 0.18; }
.pp-ghost .rim { display: none; }
/* Kinds of decision the Software Factories make (src/scenes/pictures-software.js). */
/* A screen, dark, and the code on it. */
.sw-screen { fill: color-mix(in srgb, #1f2328, var(--void) var(--night)); stroke: var(--edge); stroke-width: 0.5; }
.sw-code { stroke: var(--flow); stroke-width: 1.1; stroke-linecap: round; opacity: 0.9; }
.sw-code-earth { stroke: var(--earth); }
.sw-cursor { fill: var(--flow); }
.sw-cursor-earth { fill: var(--earth); }
/* A phone's options, and the one picked. */
.sw-option { fill: color-mix(in srgb, #ffffff 18%, transparent); stroke: color-mix(in srgb, #ffffff 30%, transparent); stroke-width: 0.5; }
.sw-pick { fill: var(--flow); opacity: 0; }
.sw-pick-warm { fill: var(--warm); }
/* A firewall: its mortar, a breach, and the plate bolted over it. */
.sw-mortar { stroke: color-mix(in srgb, #e9dfd2, var(--dusk) var(--night)); stroke-width: 0.6; opacity: 0.7; }
.sw-hole { fill: var(--void); }
.sw-patch .face-left { fill: color-mix(in srgb, #9aa3ad, var(--dusk) var(--night)); }
.sw-patch .face-right { fill: color-mix(in srgb, #7d8690, var(--dusk) var(--night)); }
.sw-patch .face-top { fill: color-mix(in srgb, #c3c9cf, var(--dusk) var(--night)); }
.sw-bolt { fill: color-mix(in srgb, #4b5158, var(--dusk) var(--night)); }
/* The fix's two checks on the plate, dark until each passes. */
.sw-check { fill: color-mix(in srgb, #4b5158, var(--dusk) var(--night)); }
.sw-check-on { fill: var(--feedback); }
[data-theme="dark"] #map-iso .sw-check-on { filter: url(#iso-glow); }
/* ---- science: its pictures (src/scenes/pictures-science.js) ---- */
/* A plate's wells: dark, the hits lit in feedback's mint. */
.sc-well { fill: var(--void); opacity: 0.55; }
.sc-hit { fill: var(--feedback); animation: breathe 4.8s ease-in-out infinite; }
/* Screens, and what they show: a scan in mint, a cursor reading it; the agents' screens in intelligence's lavender. */
.sc-display { fill: var(--void); }
.sc-scan { fill: none; stroke: var(--feedback); stroke-width: 1.2; stroke-linejoin: round; }
.sc-cursor { stroke: var(--feedback); stroke-width: 1; opacity: 0.45; }
.sc-agent { fill: color-mix(in srgb, var(--flow), var(--void) 35%); opacity: 0.85; }
/* A lab's floor, seen with its roof off. */
.sc-floor { fill: color-mix(in srgb, #e6e8e6, var(--dusk) var(--night)); }
/* The furnaces' glow, the robot's arm, and what it carries. */
.sc-glow { fill: color-mix(in srgb, #ef8a3c, #ffb066 var(--night)); animation: breathe 6s ease-in-out infinite; }
.sc-arm { fill: none; stroke: color-mix(in srgb, #e2a33a, var(--dusk) calc(var(--night) / 2)); stroke-linecap: round; stroke-linejoin: round; }
.sc-joint { fill: color-mix(in srgb, #5b5f65, var(--dusk) var(--night)); }
.sc-crucible .face-left, .sc-crucible .face-top { fill: color-mix(in srgb, #efe7dc, var(--dusk) var(--night)); }
.sc-bottle .face-left { fill: color-mix(in srgb, #9fc7da, var(--dusk) var(--night)); }
.sc-bottle .face-top { fill: color-mix(in srgb, #c6e0ea, var(--dusk) var(--night)); }
/* Assay results: the reads, one color per base; the flow cell lit; the round's tubes. */
.sc-base-0 { fill: var(--feedback); opacity: 0.85; }
.sc-base-1 { fill: var(--flow); opacity: 0.85; }
.sc-base-2 { fill: var(--energy); opacity: 0.85; }
.sc-base-3 { fill: var(--warm); opacity: 0.85; }
.sc-flowcell { fill: var(--feedback); opacity: 0.6; animation: breathe 4.8s ease-in-out infinite; }
.sc-tube .face-left { fill: color-mix(in srgb, #e3e9ec, var(--dusk) var(--night)); }
.sc-tube .face-top { fill: color-mix(in srgb, #f4f7f8, var(--dusk) var(--night)); }
/* Measurements: the diffractometer's circle, its beam, and its detector. */
.sc-ring { fill: none; stroke: color-mix(in srgb, #8a929b, var(--dusk) var(--night)); stroke-linecap: round; }
.sc-beam { stroke: var(--feedback); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.6; }
.sc-detector { fill: color-mix(in srgb, #5b5f65, var(--dusk) var(--night)); stroke: var(--line-strong); stroke-width: 0.6; }
/* Wet labs: the agents' designs on their screen; the cycler's block heating
   and cooling in turn; the magnet that pulls binders down; the pool's seal. */
.sc-agent-line { stroke: color-mix(in srgb, var(--flow), #ffffff 55%); stroke-width: 1; stroke-linecap: round; opacity: 0.9; }
.sc-cycle { fill: var(--warm); opacity: 0.75; animation: sc-cycle 2.4s steps(1) infinite; }
@keyframes sc-cycle { 0%, 45% { fill: var(--warm); } 50%, 95% { fill: var(--energy); } }
.sc-magnet .face-top { fill: color-mix(in srgb, #6b7178, var(--dusk) var(--night)); }
.sc-magnet .face-left { fill: color-mix(in srgb, #555b62, var(--dusk) var(--night)); }
.sc-magnet .face-right { fill: color-mix(in srgb, #43484e, var(--dusk) var(--night)); }
.sc-seal { fill: var(--energy); opacity: 0.7; }
/* Self-driving labs: the crucible in the arm's grip. */
.sc-held { fill: color-mix(in srgb, #efe7dc, var(--dusk) var(--night)); stroke: var(--line-strong); stroke-width: 0.6; }
/* Replication: the furnace's quartz tube; the proof's lines, grey until accepted, then mint. */
.sc-quartz .face-top, .sc-quartz .face-left, .sc-quartz .face-right { fill: color-mix(in srgb, #dfe9ee, var(--dusk) var(--night)); opacity: 0.85; }
.sc-proof { stroke: color-mix(in srgb, #8a929b, var(--void) 30%); stroke-linecap: round; opacity: 0.7; }
.sc-proof-ok { stroke: var(--feedback); stroke-linecap: round; }
/* Review: paper, stacked and open, its lines of type, and the pen. */
.sc-paper .face-top, .sc-sheet { fill: var(--white); }
.sc-paper .face-left { fill: color-mix(in srgb, #ecebe6, var(--dusk) var(--night)); }
.sc-paper .face-right { fill: color-mix(in srgb, #d6d4cd, var(--dusk) var(--night)); }
.sc-paper-edge { fill: none; stroke: var(--line-strong); stroke-width: 0.5; }
.sc-sheet { stroke: var(--line-strong); stroke-width: 0.5; }
.sc-type { stroke: color-mix(in srgb, #9aa0a8, var(--dusk) var(--night)); stroke-width: 0.8; stroke-linecap: round; }
.sc-pen { stroke: color-mix(in srgb, #2c2f35, var(--dusk) calc(var(--night) / 2)); stroke-linecap: round; }
[data-theme="dark"] #map-iso :is(.sc-proof-ok, .sc-cycle) { filter: url(#iso-glow); }
/* ---- scene: traces and realized consequences (src/scenes/traces.js) ---- */

/* A tool's readout, its trace scrolling. */
.tr-screen { fill: var(--void); stroke: var(--feedback); stroke-opacity: 0.45; stroke-width: 0.8; }
.tr-trace { fill: none; stroke: var(--feedback); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }

/* A wafer: good dies and bad, a line of light sweeping it. */
.tr-wafer { fill: var(--face-left); stroke: var(--feedback); stroke-opacity: 0.5; stroke-width: 1; }
.tr-die { fill: var(--feedback); opacity: 0.55; }
.tr-die-bad { fill: var(--earth); opacity: 0.9; }
.tr-scan { stroke: var(--feedback); stroke-width: 1.6; stroke-linecap: round; opacity: 0.9; }

/* A truck, and the calendar it is judged against. */
.tr-board { fill: var(--face-left); stroke: color-mix(in srgb, rgba(40, 34, 26, 0.1), rgb(from var(--dusk) r g b / 0.1) var(--night)); stroke-width: 0.8; }
.tr-day { fill: var(--face-top); }
.tr-today { fill: var(--feedback); }
.tr-trailer .face-top { fill: var(--face-top); }

/* A fab bay's floor, and the pod of wafers a carrier takes from tool to tool. */
.tr-floor .face-top { fill: color-mix(in srgb, #eef0f2, var(--dusk) var(--night)); }
.tr-pod .face-top { fill: color-mix(in srgb, #f3f4f6, var(--dusk) var(--night)); }
.tr-pod .face-left { fill: color-mix(in srgb, #dfe2e6, var(--dusk) var(--night)); }
.tr-pod .face-right { fill: color-mix(in srgb, #c9cdd3, var(--dusk) var(--night)); }

/* A tool's stack light: green while it runs, amber the moment it faults; and the trace that jumped. */
.tr-lamp-green :is(.face-left, .face-top) { fill: color-mix(in srgb, #5f8f6e, var(--dusk) var(--night)); }
.tr-lamp-amber :is(.face-left, .face-top) { fill: color-mix(in srgb, #a88a52, var(--dusk) var(--night)); }
.tr-lamp-red :is(.face-left, .face-top) { fill: color-mix(in srgb, #a86a62, var(--dusk) var(--night)); }
.tr-lamp-on.tr-lamp-green :is(.face-left, .face-top) { fill: #3fd17f; }
.tr-lamp-on.tr-lamp-amber :is(.face-left, .face-top) { fill: #ffb21f; }
.tr-fault { stroke: var(--earth); }
[data-theme="dark"] #map-iso :is(.tr-lamp-on, .tr-fault) { filter: url(#iso-glow); }
