/* www.blubber.app, the front page: a light aquarium to play with.
   One calm accent (sea blue). Amber (#FFC94D) only for warmth: an agent at work, an open
   thermal window, the visitor's focus. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  --bg: #F3F6F9;
  --stage-a: #FBFDFE;
  --stage-b: #E9F0F5;
  --card: #FFFFFF;
  --ink: #0F2233;
  --mut: #50677A;
  --line: #DCE5EC;
  --acc: #1D6A96;
  --acc-ink: #FFFFFF;
  --acc-soft: #E6F1F8;
  --acc-line: #C5DCEA;
  --warm: #FFC94D;
  --ring: #0F2233;
  --shadow: 0 10px 40px rgba(15, 50, 80, .08);
  --sans: "Inter", "Inter Fallback", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #041A2A; --stage-a: #0B2B40; --stage-b: #05192A; --card: #08243A; --ink: #EAF4FA; --mut: #A9C7D8;
    --line: #173A52; --acc: #7CC4EE; --acc-ink: #041A2A; --acc-soft: #0D3149; --acc-line: #21506E;
    --ring: #FFFFFF; --shadow: 0 10px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #041A2A; --stage-a: #0B2B40; --stage-b: #05192A; --card: #08243A; --ink: #EAF4FA; --mut: #A9C7D8;
  --line: #173A52; --acc: #7CC4EE; --acc-ink: #041A2A; --acc-soft: #0D3149; --acc-line: #21506E;
  --ring: #FFFFFF; --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font: inherit; color: inherit; }
a { color: var(--acc); text-underline-offset: .18em; }

/* Focus: amber, with a dark (or light) outer ring so that it shows on any background. */
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ring); border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--card); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--line); }
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 10px clamp(.75rem, 1.6vw, 1.5rem);
  min-height: 56px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 8px 0; }
.wordmark { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.tagline { margin: 0; max-width: 100%; color: var(--mut); font-size: .8125rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prefs { display: flex; align-items: center; gap: .5rem; flex: none; }
.pill {
  height: 34px; min-width: 34px; padding: 0 .6rem; border-radius: 8px;
  border: 1px solid var(--acc-line); background: var(--card); cursor: pointer;
  font-size: .8125rem; font-weight: 600; color: var(--mut);
  display: inline-grid; place-items: center;
}
.pill:hover { background: var(--acc-soft); }
.pill[aria-pressed="true"] { color: var(--acc); border-color: var(--acc); }
.lang { display: flex; align-items: center; gap: .25rem; color: var(--line); }
.lang .pill { border-color: transparent; background: transparent; }
.lang .pill[aria-pressed="true"] { border-color: var(--acc-line); background: var(--card); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
/* The button shows where it leads: the moon in the light theme, the sun in the dark one. */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }

/* ---------------------------------------------------------------- the aquarium card */

main { padding: 0 clamp(.5rem, 1.2vw, 1.25rem); }
.aq {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "left stage right";
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage {
  position: relative;
  background: radial-gradient(120% 95% at 50% 0%, var(--stage-a) 0%, var(--stage-b) 100%);
}
#tank-canvas {
  display: block;
  width: 100%;
  height: clamp(460px, calc(100svh - 9.5rem), 1400px);
  touch-action: pan-y;
  cursor: grab;
  border-radius: 0;
}
#tank-canvas:active { cursor: grabbing; }
#tank-canvas.is-pointing { cursor: pointer; }
#tank-canvas:focus, #tank-canvas:focus-visible { outline: none; box-shadow: none; }
#tank-canvas.kbd:focus { outline: 3px solid var(--warm); outline-offset: -4px; }
.still { display: block; width: 100%; height: auto; }
.hint {
  position: absolute; left: 16px; bottom: 10px; margin: 0;
  font-size: .75rem; color: var(--mut); pointer-events: none;
}

.tip {
  position: absolute; z-index: 3;
  transform: translateY(-50%);
  padding: .2rem .5rem .22rem;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 3px 10px rgba(15, 50, 80, .1);
  font-size: .75rem; font-weight: 550; white-space: nowrap; pointer-events: none;
}

/* ---------------------------------------------------------------- controls */

.grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cap { font: 600 .625rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-right: 2px; }
.ib {
  width: 38px; height: 38px; padding: 0; border-radius: 8px;
  border: 1px solid var(--acc-line); background: var(--card); color: var(--acc);
  font-size: 1.0625rem; cursor: pointer; display: grid; place-items: center;
}
.ib:hover, .tb:hover, .chip:hover { background: var(--acc-soft); }
.tb {
  height: 38px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--acc-line); background: var(--card);
  font-size: .8125rem; font-weight: 500; cursor: pointer;
}
.tb[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.chip {
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--acc-line); background: var(--card); color: var(--mut);
  font-size: .8125rem; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc); color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "✓ "; color: var(--acc); }
input[type="range"] { accent-color: var(--acc); width: 150px; }

/* ---------------------------------------------------------------- footer */

.foot { padding: 1.25rem clamp(.75rem, 2vw, 1.75rem) 2rem; color: var(--mut); font-size: .875rem; }
.foot p { margin: 0; max-width: 60rem; }
.nojs-line { margin: 1rem .5rem 0; color: var(--ink); }

/* ---------------------------------------------------------------- phone */

@media (max-width: 43.75rem) {
  #tank-canvas { height: min(118vw, 66svh); }
  .hint { display: none; }
}

/* ================================================================ A3: calm layout */

.stage { grid-area: stage; min-width: 0; overflow: hidden; }
.ib svg, .fbtn svg, .side-toggle svg, .pill-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Side bars: left for what is shown and the world outside, right for the six layers. */
.side {
  background: var(--card);
  display: flex; flex-direction: column;
  min-height: 0; max-height: calc(100svh - 7rem);
  position: sticky; top: 0;
  width: 248px;
}
.side-l { grid-area: left; border-right: 1px solid var(--line); }
.side-r { grid-area: left; border-right: 1px solid var(--line); width: 264px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 8px 12px; }
.side-title { font: 600 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.side-toggle {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--mut);
  display: grid; place-items: center; cursor: pointer; padding: 0; flex: none;
}
.side-toggle:hover { background: var(--acc-soft); color: var(--acc); }
.side-toggle svg { width: 15px; height: 15px; stroke-width: 2.2; transition: transform .2s; }
.side-body { overflow: auto; padding: 2px 10px 16px; }
.side .cap { display: block; margin: 16px 2px 6px; font-size: .625rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px; }
.filters { flex-direction: column; }
.fbtn {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 9px;
  border-radius: 9px; cursor: pointer; text-align: left; font-size: .8125rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--card); color: var(--mut);
}
.fbtn:hover { background: var(--acc-soft); }
.fbtn[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }
.fbtn[aria-pressed="true"] span { color: var(--ink); }
.side-l.is-collapsed .fbtn { width: 34px; padding: 0; justify-content: center; }
.side-l.is-collapsed .fbtn span { display: none; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 2px 0 6px 12px; padding: 0; }
.item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: 7px; background: transparent;
  text-align: left; font-size: .8125rem; line-height: 1.3; color: var(--ink); cursor: pointer;
}
.item:hover { background: var(--acc-soft); }
.item[aria-current="true"] { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.acc-head { font-weight: 600; }
.acc-head::after { content: "›"; margin-left: auto; color: var(--mut); transition: transform .2s; }
.acc-head[aria-expanded="true"]::after { transform: rotate(90deg); }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid rgba(0, 0, 0, .15); }
.sw[data-layer="epidermis"] { background: #535A63; }
.sw[data-layer="dermis"] { background: #C98A55; }
.sw[data-layer="blubber"] { background: #F4E7D0; }
.sw[data-layer="connective-tissue"] { background: #E9CDA2; }
.sw[data-layer="fascia"] { background: #DDB98E; }
.sw[data-layer="muscle"] { background: linear-gradient(#8C2E23, #5A1912); }
.rail { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; }
.rail-btn { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.rail-btn:hover { background: var(--acc-soft); }
.rail-btn .sw { width: 16px; height: 16px; }
/* Collapsed: a slim rail of icons. */
.side.is-collapsed { width: 54px; }
.side.is-collapsed .side-title, .side.is-collapsed .side-body { display: none; }
.side.is-collapsed .side-head { justify-content: center; padding: 10px 0 8px; }
.side-l.is-collapsed .filters { flex-direction: column; align-items: center; padding: 0; }
.side-r.is-collapsed .rail { display: flex; }
.side-l.is-collapsed .side-toggle svg { transform: rotate(180deg); }
.side-r.is-collapsed .side-toggle svg { transform: rotate(180deg); }

/* The floating toolbar in the lower left corner of the stage. */
.toolbar {
  position: absolute; z-index: 3; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 50, 80, .1);
  transition: bottom .25s ease;
}
.toolbar .ib { width: 34px; height: 34px; border-color: transparent; color: var(--ink); }
.toolbar .tb { height: 34px; padding: 0 11px; border-color: transparent; font-size: .8125rem; }
.toolbar .tb[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }
.toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }

@media (prefers-reduced-motion: reduce) { .toolbar { transition: none; } }
.kicker { margin: 0 0 .15rem; font: 600 .625rem/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.state { color: var(--mut); font-size: .75rem; }
.tb.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.dia-title h2 { margin: 8px 0 2px; font-size: 1.25rem; letter-spacing: -.01em; }
.dia-title .lede { margin: 0; color: var(--mut); font-size: .875rem; }
.dia-body { position: relative; margin-top: 14px; }
.dia-wires { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.dia-wires .w { fill: none; stroke: var(--mut); stroke-width: 1.4; }
.dia-wires .w-wire { stroke: var(--acc); stroke-width: 1.8; }
.dia-wires .w-door { stroke: var(--acc); stroke-dasharray: 6 4; }
.dia-wires .w-light { stroke-dasharray: 1 4; stroke-linecap: round; }
.dia-cols { position: relative; display: flex; gap: clamp(28px, 6vw, 110px); align-items: flex-start; }
.dia-col { display: flex; flex-direction: column; gap: 10px; flex: 1 1 0; min-width: 0; max-width: 21rem; }
.node {
  position: relative; display: block; width: 100%; text-align: left;
  padding: .6rem .8rem .65rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 2px 10px rgba(15, 50, 80, .06);
  font: inherit; font-size: .8125rem; line-height: 1.45;
}
button.node { cursor: pointer; }
button.node:hover { background: var(--acc-soft); }
.node.is-hl { border-color: var(--acc); background: var(--acc-soft); }
.node h3 { margin: 0; font-size: .875rem; font-weight: 650; }
.node p { margin: .25rem 0 0; color: var(--mut); }
.node ul { margin: .35rem 0 0; padding-left: 1rem; }
.node.open { border-color: var(--acc-line); }
.node.open h3::after { content: " ›"; color: var(--acc); }
.node.harness { padding-left: 1.9rem; }
.lamp { position: absolute; left: .75rem; top: .9rem; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .6s, box-shadow .6s; }
.lamp.on { background: var(--warm); box-shadow: 0 0 10px rgba(255, 201, 77, .8); }
.sources { margin-top: 18px; }
.sources p { margin: 0 0 8px; font-size: .8125rem; color: var(--mut); }
.dia-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); max-width: 56rem; }
.dia-foot h3 { margin: 0 0 6px; font-size: .875rem; }
.dia-foot ul { margin: 0; padding-left: 1.1rem; font-size: .8125rem; line-height: 1.6; }
.dia-col .mt-signin { margin-top: 140px; }
.dia-col .mt-door { margin-top: 160px; }

.drawers { position: absolute; z-index: 3; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.drawers[hidden] { display: none; }
.pill-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--acc-line); background: var(--card); color: var(--ink);
  font-size: .8125rem; font-weight: 500; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 50, 80, .1);
}
.phone-line { display: none; }

/* Footer and plain pages. */
.foot nav { display: flex; gap: .6rem; align-items: center; }
.foot a { color: var(--mut); }
.wordmark { color: var(--ink); text-decoration: none; display: inline-block; }
.page { max-width: 40rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 2rem; }
.page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; margin: 0 0 1rem; }
.page h2 { font-size: 1.125rem; margin: 2rem 0 .5rem; }
.page p { line-height: 1.6; }
.empty-tank { position: relative; height: 180px; margin: 1.5rem 0; border: 2px solid var(--acc); border-top-width: 3px; border-radius: 4px; background: rgba(191, 230, 255, .12); }
.et-water { position: absolute; left: 2px; right: 2px; bottom: 2px; top: 14px; background: linear-gradient(rgba(150, 214, 240, .5), rgba(28, 98, 160, .45)); }

/* iPad and small laptops. */
@media (max-width: 80rem) {
  .side-l:not(.is-collapsed) { width: 220px; }
  .side-r:not(.is-collapsed) { width: 232px; }
}
/* Phones and narrow upright screens: an acceptable version, nothing more. */
@media (max-width: 43.75rem) {
  .aq { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage"; }
  .tagline { white-space: normal; font-size: .75rem; }
  .top { flex-wrap: wrap; row-gap: 4px; }
  .top .brand { flex: 1 1 100%; padding-bottom: 0; }
  .side.is-drawer { position: fixed; z-index: 40; top: 0; bottom: 0; max-height: none; width: min(86vw, 320px); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  .side-l.is-drawer { left: 0; transform: translateX(-102%); }
  .side-r.is-drawer { left: 0; right: auto; transform: translateX(-102%); }
  .side.is-drawer.is-open { transform: none; }
  .toolbar, .hint, .leader { display: none !important; }
  .phone-line { display: block; position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: .75rem; color: var(--mut); pointer-events: none; }
}

/* A4: the leader line from a hovered layer to its entry in the legend; the still picture without WebGL2. */
.aq { position: relative; }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.leader path { fill: none; stroke: var(--mut); stroke-width: 1; }
.aq.nogl #tank-canvas, .aq.nogl .toolbar, .aq.nogl .side, .aq.nogl .drawers { display: none !important; }
.aq.nogl { display: block; }

/* ================================================================ A5 */

/* The Show toggles live in the floating toolbar. */
.toolbar .tog { color: var(--mut); }
.toolbar .tog[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); }
/* The providers' name tags, while the buoys are shown. */
.ptag { transform: translateY(-100%); font-weight: 600; }
.ptag.is-on { border-color: var(--warm); box-shadow: 0 0 0 2px rgba(255, 201, 77, .45); }

/* The legal notice and the privacy policy, in the footer, after ideenformen.ch. */
html:not([lang="de"]) .l-de, html[lang="de"] .l-en { display: none !important; }
.foot { padding: 1.1rem clamp(.75rem, 2vw, 1.75rem) 2.5rem; }
.legal summary { list-style: none; cursor: pointer; display: inline-flex; color: var(--mut); font-size: .8125rem; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary > span { display: inline-flex; align-items: center; gap: 1.1rem; }
.legal-toggle { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); }
.legal summary:hover .legal-toggle { color: var(--acc); }
.tri { width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .2s; }
.legal[open] .tri { transform: rotate(90deg); }
.legal-body { max-width: 52rem; padding-top: 1.1rem; }
.legal-project { margin: 0 0 1rem; color: var(--ink); font-size: .9375rem; }
.legal-facts {
  display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.6rem; margin: 0 0 1.4rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  max-width: 38rem; font-size: .875rem;
}
.legal-facts dt { font-weight: 600; color: var(--ink); }
.legal-facts dd { margin: 0; color: var(--ink); }
.legal-text { font-size: .875rem; line-height: 1.6; color: var(--mut); }
.legal-text h3 { margin: 1.2rem 0 .35rem; font-size: .875rem; color: var(--ink); }
.legal-text h3.legal-h { font-size: 1rem; margin-top: 1.8rem; }
.legal-text h4 { margin: .9rem 0 .2rem; font-size: .8125rem; color: var(--ink); }
.legal-text p { margin: 0 0 .6rem; }
.legal-note { margin-top: 1.2rem !important; font-size: .75rem; }
@media (max-width: 43.75rem) { .legal-facts { grid-template-columns: 1fr; gap: .15rem; } .legal-facts dd { margin-bottom: .5rem; } }
.side-body { flex: 1 1 auto; min-height: 0; }
.aq { align-items: start; }
.duck-hint { position: absolute; right: 16px; bottom: 14px; margin: 0; font-size: .75rem; color: var(--mut); pointer-events: none; }
.duck-hint::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #FFD23F; box-shadow: 1px 0 0 #FF8A1F; }
@media (max-width: 43.75rem) { .duck-hint { display: none; } }

/* The legend is on the left (Imre's preference); its header reads toggle-last on the right edge. */
.side-r .side-head { flex-direction: row; }
.side-l { display: none !important; }

/* ================================================================ the admin page */
.admin { max-width: 1400px; margin: 0 auto; padding: 8px clamp(.75rem, 2vw, 1.5rem) 3rem; }
.admin h1 { font-size: 1.6rem; margin: .2rem 0 .3rem; letter-spacing: -.02em; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.adm-lede { color: var(--mut); font-size: .875rem; margin: 0 0 1rem; max-width: 60rem; }
.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem 1.1rem; margin: 0 0 1.5rem; }
.adm-card h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.adm-narrow { max-width: 28rem; margin: 3rem auto; }
.adm-h { font-size: 1.05rem; margin: 1.8rem 0 .4rem; }
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.6rem; margin: 0 0 1rem; font-size: .875rem; }
.adm-dl dt { color: var(--mut); } .adm-dl dd { margin: 0; }
.adm-form { display: grid; gap: .45rem; max-width: 24rem; }
.adm-inline { grid-template-columns: max-content 14rem; align-items: center; max-width: none; gap: .45rem 1rem; }
.adm-inline .tb, .adm-inline .adm-msg { grid-column: 2; justify-self: start; }
.adm-form label { font-size: .8125rem; font-weight: 600; }
.admin input[type="password"], .admin input[type="number"] { height: 34px; padding: 0 .6rem; border: 1px solid var(--acc-line); border-radius: 7px; background: var(--card); color: var(--ink); font: inherit; font-size: .875rem; }
.admin input[type="number"] { width: 7.5rem; font-family: var(--mono); }
.admin input[type="color"] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--acc-line); border-radius: 7px; background: var(--card); vertical-align: middle; }
.adm-msg { margin: 0; font-size: .8125rem; color: var(--mut); }
.adm-msg.is-ok { color: #2F8F5B; } .adm-msg.is-err { color: #C0392B; }
.adm-val .adm-msg { margin-left: .5rem; }
.adm-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.adm-table { width: 100%; max-width: none; margin: 0; border-collapse: collapse; font-size: .8125rem; }
.adm-table th { text-align: left; font-weight: 600; background: var(--acc-soft); padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; color: var(--ink); font-size: .8125rem; }
.adm-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table code { font-family: var(--mono); font-size: .75rem; }
.adm-muted, .adm-unit { color: var(--mut); font-size: .75rem; }
.adm-val { white-space: nowrap; }
.adm-val .tb { height: 30px; padding: 0 10px; margin-left: .3rem; }

/* ================================================================ legend rows (A5, pass 6) */
/* Mark │ number │ name over a second line; full-width lines between the rows. */
.side-r .side-body { padding: 0 0 16px; }
.side-r .side-body .cap { margin: 18px 12px 0; padding-bottom: 8px; }
.side-r .tree > li { border-top: 1px solid var(--line); }
.side-r .tree > li:last-child { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 30px auto 1fr auto; align-items: center; column-gap: 0;
  width: 100%; min-height: 48px; padding: 7px 12px 7px 12px; border: 0; border-radius: 0; background: transparent;
  text-align: left; color: var(--ink); cursor: pointer; font: inherit;
}
.row:hover { background: var(--acc-soft); }
.row[aria-current="true"] { background: var(--acc-soft); }
.row[aria-current="true"] .row-txt b { color: var(--acc); }
.row-mark { display: grid; place-items: center; width: 30px; height: 26px; }
.row-mark .sw { width: 18px; height: 18px; border-radius: 4px; }
.row-num {
  font: 600 .75rem/1 var(--mono); color: var(--mut); padding: 4px 10px; margin-left: 6px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.row-txt { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; min-width: 0; }
.row-mark + .row-txt { margin-left: 6px; border-left: 1px solid var(--line); }
.row-txt b { font-size: .8125rem; font-weight: 600; line-height: 1.25; }
.row-txt small { font-size: .71875rem; color: var(--mut); line-height: 1.3; }
.row.acc-head::after { grid-column: 4; margin-left: 8px; }
.row:not(.acc-head) { grid-template-columns: 30px 1fr; }
.side-r .sub-list { list-style: none; margin: 0; padding: 2px 10px 8px 48px; border-top: 1px solid var(--line); }
.side-r .sub-list ul { list-style: none; margin: 0 0 4px 12px; padding: 0; }
/* A provider's mark: a monogram of our own on its colour (no company logos, brief 1 §10.1.8). */
.pmark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex: none;
  font: 700 .625rem/1 var(--mono); letter-spacing: -.02em; color: #fff; background: #40464D;
}
.pmark[data-p="p-anthropic"] { background: #B8673F; }
.pmark[data-p="p-antigravity"] { background: #3E86A8; }
.pmark[data-p="p-google"] { background: #3F8F5B; }
.pmark[data-p="p-openai"] { background: #40464D; }
.pmark[data-p="p-openrouter"] { background: #6C78B8; }
.pmark[data-p="p-xai"] { background: #1F2329; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.wicon svg { width: 20px; height: 20px; fill: none; stroke: var(--mut); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ptag { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.ptag .pmark { width: 18px; height: 18px; border-radius: 5px; font-size: .5625rem; }
/* The providers' and harnesses' logos: on a small white tile, so dark marks read in both themes. */
.logo {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: #fff; border: 1px solid rgba(20, 20, 19, .12); box-shadow: 0 1px 2px rgba(20, 20, 19, .06);
}
.logo img { width: 16px; height: 16px; display: block; }
.item .logo { width: 20px; height: 20px; border-radius: 5px; }
.item .logo img { width: 13px; height: 13px; }
.ptag .logo { width: 20px; height: 20px; border-radius: 5px; }
.ptag .logo img { width: 13px; height: 13px; }
/* The flag a buoy carries: its provider's logo at the top of the mast. */
.adm-logo { width: 40px; height: 40px; border-radius: 9px; }
.adm-logo img { width: 26px; height: 26px; }
.adm-logos input[type=file] { font-size: .75rem; max-width: 220px; }

/* ================================================================ A5, pass 8: the details column, the diagram layer */

/* The details: a third column on the right, as tall as the stage, collapsible like the legend. */
.side-info { grid-area: right; border-left: 1px solid var(--line); width: 340px; }
.side-info .side-head { flex-direction: row; justify-content: flex-start; }
.side-info.is-collapsed .rail { display: flex; }
.side-info.is-collapsed .side-toggle svg { transform: rotate(180deg); }
.side-info .side-body { padding: 0 0 18px; }
/* Narrower screens: the details lie over the right of the stage while something is chosen. */
.side-info.is-over {
  position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: 330px;
  max-height: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -8px 0 24px rgba(15, 50, 80, .08);
}
.side-info.is-over:not(.is-shown) { display: none; }
.side-info.is-over .side-head { display: none; }

/* The head: the same row as in the legend. */
.info-id {
  display: grid; grid-template-columns: 30px auto 1fr auto; align-items: center;
  padding: 10px 8px 10px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--acc-soft);
}
.info-id.no-num { grid-template-columns: 30px 1fr auto; }
.info-id.no-mark { grid-template-columns: 1fr auto; }
.info-id.no-mark .row-txt { border-left: 0; margin-left: 0; padding-left: 0; }
.info-id .row-txt b { font-size: .9375rem; color: var(--ink); }
.info-id .row-mark .sw { width: 20px; height: 20px; }
.info-id .x, .dia-head .x {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--mut);
  font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none;
}
.info-id .x:hover, .dia-head .x:hover { background: var(--card); color: var(--ink); }
.side-info.is-over .info-id { border-top: 0; border-radius: 0; }

/* The sections: a small label, then the text; a line between sections, edge to edge. */
.info-top { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 14px 14px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.info-top.has-tile { grid-template-columns: 1fr 112px; }
.info-lead p { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.info-lead p + p { margin-top: .5rem; }
.info-lead p.muted { font-size: .8125rem; color: var(--mut); }
.info-sec { padding: 12px 14px 14px; border-bottom: 1px solid var(--line); }
.info-sec h3 { margin: 0 0 .45rem; font: 600 .625rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.info-sec p { margin: 0; font-size: .8125rem; line-height: 1.55; }
.points { list-style: none; margin: 0; padding: 0; counter-reset: pt; }
.points li { position: relative; padding: .45rem 0 .45rem 1.6rem; font-size: .8125rem; line-height: 1.5; border-top: 1px dashed var(--line); counter-increment: pt; }
.points li:first-child { border-top: 0; padding-top: .1rem; }
.points li::before {
  content: counter(pt); position: absolute; left: 0; top: .5rem; width: 1.05rem; height: 1.05rem; border-radius: 4px;
  font: 600 .625rem/1.05rem var(--mono); text-align: center; color: var(--acc); background: var(--acc-soft);
}
.points li:first-child::before { top: .15rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 .75rem/1 inherit; font-size: .75rem; padding: 6px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.chip:hover { border-color: var(--acc-line); background: var(--acc-soft); color: var(--acc); }
.info-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.info-empty { padding: 22px 16px; border-top: 1px solid var(--line); }
.info-empty h3 { margin: 0 0 .4rem; font-size: .9375rem; }
.info-empty p { margin: 0; font-size: .8125rem; line-height: 1.55; color: var(--mut); }

/* The diagram button: a square push button with the diagram in miniature. */
.dia-tile {
  display: flex; flex-direction: column; align-items: stretch; width: 112px; height: 112px; padding: 0; overflow: hidden;
  border: 1px solid var(--acc-line); border-radius: 12px; background: var(--card); cursor: pointer; color: var(--acc);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 0 var(--acc-line), 0 6px 14px rgba(15, 50, 80, .08);
  transition: transform .08s ease, box-shadow .12s ease, background .12s;
}
.dia-tile .mini { flex: 1 1 auto; width: 100%; min-height: 0; padding: 10px 10px 4px; background: var(--acc-soft); }
.dia-tile > span {
  flex: none; padding: 6px 4px 7px; border-top: 1px solid var(--acc-line); background: var(--card);
  font: 600 .6875rem/1 var(--mono); letter-spacing: .04em; text-align: center;
}
.dia-tile:hover { background: var(--acc-soft); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 3px 0 var(--acc), 0 8px 18px rgba(15, 50, 80, .12); }
.dia-tile:active { transform: translateY(2px); box-shadow: 0 0 0 var(--acc-line), 0 2px 6px rgba(15, 50, 80, .08); }
.dia-tile:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.mini .mn { fill: var(--card); stroke: var(--acc); stroke-width: 1; }
.mini .mn-open { fill: var(--acc); }
.mini .mw { fill: none; stroke: var(--acc); stroke-width: .9; opacity: .7; }
.mini .mw-door { stroke-dasharray: 2.5 1.8; }
.mini .mw-light { stroke-dasharray: .6 1.8; stroke-linecap: round; }

/* The diagram lies over the tank; the details stay beside it. */
.dia-layer {
  position: absolute; z-index: 7; inset: 12px; overflow: auto;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 0 clamp(16px, 2vw, 28px) 22px;
  animation: dia-in .2s ease-out both;
}
@keyframes dia-in { from { opacity: 0; transform: scale(.985); } }
@media (prefers-reduced-motion: reduce) { .dia-layer { animation: none; } }
.dia-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  margin: 0 calc(-1 * clamp(16px, 2vw, 28px)); padding: 10px 10px 10px clamp(16px, 2vw, 28px);
  background: var(--card); border-bottom: 1px solid var(--line);
}
.dia-path { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.dia-step { font-size: .9375rem; }
button.dia-step { border: 0; background: transparent; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; color: var(--acc); cursor: pointer; font-weight: 500; }
button.dia-step:hover { background: var(--acc-soft); }
.dia-sep { color: var(--mut); }
.dia-lede { margin: 14px 0 0; color: var(--mut); font-size: .875rem; }
.dia-layer .dia-body { margin-top: 18px; }
.dia-layer .dia-cols { gap: clamp(28px, 4vw, 72px); }
.dia-layer .dia-col { flex: 1 1 0; min-width: 150px; max-width: 18rem; }
.node h3 { display: flex; align-items: center; gap: 7px; }
.node h3 .logo { width: 20px; height: 20px; border-radius: 5px; }
.node h3 .logo img { width: 13px; height: 13px; }
.node .lamp { position: static; flex: none; }
.node.harness { padding-left: .8rem; }
.dia-foot { max-width: none; }

/* Over the buoys: one bubble each, logo │ name, on a thin line to its buoy. */
.bub {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; height: 28px; padding: 0 10px 0 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 50, 80, .12); font: 600 .75rem/1 inherit; font-size: .75rem; white-space: nowrap; cursor: pointer;
}
.bub .logo { width: 22px; height: 22px; border-radius: 999px; border: 0; box-shadow: none; }
.bub .logo img { width: 14px; height: 14px; }
.bub-sep { width: 1px; height: 16px; background: var(--line); margin: 0 8px 0 4px; }
.bub:hover { border-color: var(--acc-line); }
.bub.is-on { border-color: var(--warm); box-shadow: 0 0 0 2px rgba(255, 201, 77, .45); }
.bub-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.bub-lines path { fill: none; stroke: rgba(60, 75, 90, .5); stroke-width: 1; }

/* Phones: the details come up from below as a sheet. */
@media (max-width: 43.75rem) {
  .side-info.is-over { position: fixed; z-index: 45; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 52svh; border-radius: 14px 14px 0 0; }
}
.dia-head .sw { width: 18px; height: 18px; border-radius: 4px; }
.dia-head .row-num { margin-left: 0; }
.chip.has-mark { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; }
.chip .logo { width: 20px; height: 20px; border-radius: 5px; }
.chip .logo img { width: 13px; height: 13px; }

/* ================================================================ admin: tabs; the register of 3D objects */
.is-admin .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-tabs { display: flex; align-items: center; gap: 4px; }
.adm-tabs a {
  padding: 7px 12px; border-radius: 8px; font-size: .875rem; font-weight: 600; color: var(--mut); text-decoration: none;
}
.adm-tabs a:hover { background: var(--acc-soft); color: var(--ink); }
.adm-tabs a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }
.adm-tabs .tb { margin-left: 10px; }
.obj-filter { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.obj-filter label { font: 600 .6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.obj-filter input { width: min(360px, 100%); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }
.obj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 14px; margin-bottom: 40px; }
.obj {
  display: grid; grid-template-columns: 200px 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.obj[hidden] { display: none; }
.obj-pic { background: linear-gradient(180deg, var(--acc-soft), transparent); border-right: 1px solid var(--line); display: grid; place-items: center; }
.obj-pic canvas { width: 200px; height: 160px; display: block; }
.obj-body { min-width: 0; display: flex; flex-direction: column; }
.obj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.obj-head h2 { margin: 0; font-size: 1rem; }
.obj-head code { font-size: .75rem; color: var(--mut); }
.obj-dl { display: grid; grid-template-columns: 7.5rem 1fr; margin: 0; font-size: .8125rem; }
.obj-dl dt, .obj-dl dd { padding: 6px 14px; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.45; }
.obj-dl dt { font: 600 .625rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding-right: 0; }
.obj-uses { list-style: none; margin: 0; padding: 0; }
.obj-uses li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.obj-uses .sw { width: 11px; height: 11px; }
.obj-cols { display: flex; gap: 5px; flex-wrap: wrap; }
.obj-col { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .15); }
.obj-acts { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.obj-rep { flex: 1 1 100%; }
.obj-rep summary { cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--acc); }
.obj-rep-body { margin-top: 10px; display: grid; gap: 8px; }
.obj-rep-body p { margin: 0; font-size: .78rem; line-height: 1.5; }
.obj-rep-body hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.obj-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.obj-note { flex: 1; min-width: 0; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); font: inherit; font-size: .8125rem; }
.obj-spec { width: 100%; font: .75rem/1.4 var(--mono); padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); resize: vertical; }
.obj-file { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); background: rgba(255, 201, 77, .14); font-size: .8125rem; }
.obj-file .tb { height: 26px; padding: 0 8px; margin-left: 6px; }
@media (max-width: 40rem) { .obj { grid-template-columns: 1fr; } .obj-pic { border-right: 0; border-bottom: 1px solid var(--line); } }
/* The object cards, one per row: picture │ details │ replace. */
.obj-grid { grid-template-columns: 1fr; }
.obj { grid-template-columns: 220px minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.obj-pic { place-items: start center; padding-top: 14px; }
.obj-pic canvas { width: 200px; height: 160px; }
.obj-rep { flex: none; border-left: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.obj-rep h3 { margin: 0; font-size: .9375rem; }
.obj-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; font-size: .8125rem; }
.obj-steps li { padding-left: 2px; line-height: 1.45; }
.obj-steps label { display: grid; gap: 5px; font-weight: 600; }
.obj-steps label .adm-muted { font-weight: 400; }
.obj-steps input[type=file] { font: inherit; font-size: .78rem; font-weight: 400; max-width: 100%; }
.obj-steps .obj-note { font-weight: 400; }
.obj-steps .adm-muted { font-size: .75rem; }
.obj-steps .tb { margin-right: 6px; }
.obj-rep .adm-msg { margin: 0; font-size: .8125rem; min-height: 1em; }
.obj-rep .obj-file { border: 1px solid rgba(214, 160, 40, .45); border-radius: 9px; padding: 9px 11px; background: rgba(255, 201, 77, .14); border-top: 1px solid rgba(214, 160, 40, .45); display: grid; gap: 5px; }
.obj-rep .obj-file p { margin: 0; }
.obj-rep .obj-file .tb { justify-self: start; margin: 2px 0 0; }
.obj-adv { border-top: 1px solid var(--line); padding-top: 9px; font-size: .78rem; }
.obj-adv summary { cursor: pointer; color: var(--mut); font-weight: 600; }
.obj-adv p { margin: 8px 0; line-height: 1.5; }
.obj-adv .obj-row { margin-top: 6px; }
.obj-clip { position: fixed; left: -9999px; top: 0; }
@media (max-width: 70rem) { .obj { grid-template-columns: 200px minmax(0, 1fr); } .obj-rep { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 40rem) { .obj { grid-template-columns: 1fr; } }
/* Four columns, everything in view: picture │ details │ replace │ the shape, directly. */
.obj { grid-template-columns: 220px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.obj-steps .obj-step-copy { border-top: 1px solid var(--ink); margin: 4px 0 0 -1.2rem; padding: 12px 0 0 1.2rem; list-style-position: inside; }
.obj-adv { border-top: 0; border-left: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .78rem; min-width: 0; }
.obj-adv h3 { margin: 0; font-size: .9375rem; }
.obj-adv p { margin: 0; line-height: 1.5; }
.obj-adv .obj-spec { flex: 1 1 auto; min-height: 90px; }
.obj-adv .obj-save { justify-content: flex-end; margin-top: 0; }
.obj-adv .adm-msg { margin: 0; text-align: right; }
@media (max-width: 90rem) {
  .obj { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); }
  .obj-adv { grid-column: 2 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 70rem) { .obj-adv { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .obj-adv { grid-column: auto; } }
.obj-steps .obj-step-copy { position: relative; border-top: 0; margin: 4px 0 0; padding: 14px 0 0 2px; list-style-position: outside; }
.obj-steps .obj-step-copy::before { content: ""; position: absolute; top: 0; left: -1.2rem; right: 0; border-top: 1px solid var(--ink); }
.obj-uses li { flex-wrap: nowrap; align-items: baseline; }
.obj-uses .sw { flex: none; position: relative; top: 1px; }
.obj-steps .obj-step-copy::before { left: calc(-1.2rem - 16px); right: -16px; border-top: 1px solid var(--line); }
/* Pass 11: replace │ versions. Compact buttons; file pickers that look like buttons. */
.obj { grid-template-columns: 220px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.tb.sm { height: 28px; padding: 0 10px; font-size: .78rem; border-radius: 7px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
a.tb.sm { color: var(--ink); }
.obj-pick { position: relative; cursor: pointer; }
.obj-pick input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.obj-pick:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.obj-rep > p.adm-muted { margin: 0; font-size: .78rem; line-height: 1.45; }
.obj-steps { gap: 8px; }
.obj-steps li .adm-muted { display: block; margin-top: 4px; }
.obj-3d-part { border-top: 1px solid var(--line); margin: 2px -16px 0; padding: 12px 16px 0; display: grid; gap: 7px; }
.obj-3d-part h4 { margin: 0; font-size: .8125rem; }
.obj-3d-part p { margin: 0; font-size: .75rem; }
.obj-3d-part .obj-note { width: 100%; }
.obj-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.obj-fname { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.obj-rep .obj-file { gap: 6px; font-size: .78rem; }
.obj-rep .obj-file .tb { margin: 0; }
.obj-vers { border-left: 1px solid var(--line); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.obj-vers h3 { margin: 0; font-size: .9375rem; }
.obj-vers .adm-msg { margin: 0; font-size: .78rem; }
.obj-vers .adm-msg:empty { display: none; }
.obj-new { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--acc-line); border-radius: 10px; background: var(--acc-soft); }
.obj-new[hidden] { display: none; }
.obj-new-pic { width: 150px; height: 112px; background: var(--card); border-radius: 7px; }
.obj-new-txt p { margin: 0 0 6px; font-size: .78rem; line-height: 1.45; }
.obj-vlist { list-style: none; margin: 0 -16px; padding: 0; border-top: 1px solid var(--line); }
.obj-vlist li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.obj-vlist li.is-now { background: var(--acc-soft); }
.obj-vlist li.obj-vnone { grid-template-columns: 1fr; font-size: .75rem; padding: 10px 16px; }
.obj-vlist canvas { width: 96px; height: 72px; display: block; }
.obj-vlist span { display: grid; gap: 2px; min-width: 0; font-size: .78rem; }
.obj-vlist small { color: var(--mut); font-size: .7rem; }
@media (max-width: 90rem) {
  .obj { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); }
  .obj-vers { grid-column: 2 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 70rem) { .obj-vers { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .obj-vers { grid-column: auto; } }
/* Pass 12: glTF and OBJ; the versions as a table with upload times. */
.obj { grid-template-columns: 210px minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.35fr); }
.obj-steplabel { display: block; font-weight: 600; margin-bottom: 4px; }
.obj-steps li > .obj-row { margin-bottom: 4px; }
.obj-steps li .adm-muted { display: block; }
.obj-fit { display: flex; align-items: center; gap: 6px; font-size: .75rem; margin: 0 0 6px; }
.obj-vtable { width: calc(100% + 32px); margin: 0 -16px; border-collapse: collapse; font-size: .75rem; }
.obj-vtable th { text-align: left; font: 600 .625rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding: 6px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.obj-vtable th:first-child, .obj-vtable td:first-child { padding-left: 16px; }
.obj-vtable th:last-child, .obj-vtable td:last-child { padding-right: 16px; }
.obj-vtable td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; overflow-wrap: anywhere; }
.obj-vtable tr.is-now td { background: var(--acc-soft); }
.obj-vtable canvas { width: 80px; height: 60px; display: block; }
.obj-vtable .tb.sm { margin-bottom: 4px; }
.obj-badge { display: inline-block; font: 600 .625rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc-line); border-radius: 999px; padding: 4px 7px; margin-bottom: 4px; background: var(--card); }
.obj-vers > .obj-row { margin: 0; }
@media (max-width: 90rem) { .obj { grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); } }
.obj-dlink { border: 0; background: none; padding: 0; font: inherit; font-size: .72rem; color: var(--acc); text-decoration: underline; cursor: pointer; }
.obj-dls { display: flex; gap: 8px; margin-top: 3px; white-space: nowrap; }
.obj-vtable td:last-child { width: 1%; white-space: nowrap; }
.obj-vtable td:nth-child(3) { width: 26%; }
.obj-vtable td b { font-weight: 600; }
.obj-vtable tr.obj-vnone td { white-space: normal; width: auto; }
.obj-vers { overflow: hidden; }
/* Pass 13: the small buttons in the versions table; delete; the note under it. */
.tb.xs { height: 22px; padding: 0 6px; font-size: .6875rem; font-weight: 600; border-radius: 6px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); white-space: nowrap; }
.obj-acts { display: flex; gap: 4px; margin-bottom: 4px; }
.obj-dls { display: flex; gap: 4px; margin-top: 0; }
.obj-vtable .obj-badge { margin-bottom: 0; padding: 4px 6px; font-size: .5625rem; }
.tb.xs.obj-del { color: #A3362A; }
.tb.xs.obj-del:hover { background: rgba(163, 54, 42, .08); border-color: rgba(163, 54, 42, .4); }
.obj-vtable tfoot td { padding: 8px 16px; border-bottom: 0; font-size: .72rem; }
.obj-vtable tr.is-orig td { background: rgba(0, 0, 0, .015); }
.obj-vtable .obj-acts { padding: 0; flex-wrap: nowrap; align-items: center; }
.obj { grid-template-columns: 200px minmax(0, .95fr) minmax(0, .8fr) minmax(0, 1.55fr); }
.obj-vtable td:nth-child(2) b { white-space: nowrap; }
.obj-vtable td:nth-child(3) { width: auto; white-space: nowrap; }
@media (max-width: 90rem) { .obj { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); } }

/* Pass 14: the versions as clean rows — picture │ file name, time, size │ actions. */
.obj-vers h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.v-head-note { font-size: .7rem; font-weight: 400; color: var(--mut); }
.vlist { list-style: none; margin: 0 -16px; padding: 0; border-top: 1px solid var(--line); }
.v { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.v[hidden] { display: none; }
.v canvas { width: 64px; height: 48px; display: block; }
.v-main { display: grid; gap: 2px; min-width: 0; }
.v-name { font-size: .8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-meta { font-size: .72rem; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-acts { display: grid; gap: 5px; justify-items: end; }
.v-btns { display: flex; gap: 4px; }
.v-dl { display: flex; gap: 4px; align-items: center; }
.v-dl-label { font-size: .68rem; color: var(--mut); margin-right: 2px; }
.v.is-now { background: var(--acc-soft); }
.v.is-new { background: rgba(255, 201, 77, .16); }
.v.is-new .obj-fit { margin: 3px 0 0; font-size: .72rem; }
.v.is-new .obj-new-pic { width: 64px; height: 48px; background: transparent; border-radius: 0; }
.v-note { margin: 0; font-size: .72rem; color: var(--mut); }
.tb.xs.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }

/* A dialogue: header, content, footer. */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(15, 25, 35, .38); display: grid; place-items: center; padding: 16px; animation: modal-in .15s ease-out both; }
@keyframes modal-in { from { opacity: 0; } }
.modal { width: min(440px, 100%); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(10, 20, 30, .28); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1rem; }
.modal-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--mut); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--acc-soft); color: var(--ink); }
.modal-body { padding: 16px 18px; font-size: .875rem; line-height: 1.5; display: grid; gap: 10px; }
.modal-body p { margin: 0; }
.modal-what { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--acc-soft); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .015); }
.tb.danger { background: #A3362A; border-color: #A3362A; color: #fff; }
.tb.danger:hover { background: #8C2C22; }
@media (prefers-reduced-motion: reduce) { .modal-back { animation: none; } }
.v.is-new .v-meta, .v-meta { white-space: normal; }
.v.obj-new { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 16px; grid-template-columns: 64px minmax(0, 1fr) auto; }
.v-meta { white-space: nowrap; }
.v.is-new .v-meta { white-space: normal; }

/* ================================================================ pass 17 */
/* Object cards: narrow label column, plain blocks, one size of small button everywhere. */
.obj { grid-template-columns: 200px minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.5fr); }
.obj-dl { grid-template-columns: 5.2rem 1fr; }
.obj-dl dt { padding-right: 0; }
.obj-dl dd .sw { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; }
.rep-block { display: grid; gap: 6px; justify-items: start; }
.rep-block + .rep-block { border-top: 1px solid var(--line); margin: 2px -16px 0; padding: 12px 16px 0; }
.rep-block p { margin: 0; font-size: .75rem; line-height: 1.45; }
.v-acts { display: block; }
.v-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 90rem) { .obj { grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); } }

/* The footer: a bar at the bottom of the window; opened, a panel a third of the screen high. */
.foot {
  position: sticky; bottom: 0; z-index: 60; padding: 0; margin: auto 0 0; flex: none;
  background: var(--card); border-top: 1px solid var(--line); color: var(--mut);
  transition: box-shadow .3s ease;
}
.foot .legal { max-width: 46rem; margin: 0 auto; padding: 0 clamp(.75rem, 2vw, 1.75rem); }
.legal summary { display: flex; align-items: center; height: 44px; width: 100%; }
.legal summary:focus-visible { outline: 2px solid var(--acc); outline-offset: -3px; border-radius: 6px; }
.legal .tri { border-left-color: var(--acc); transition: transform .25s ease; }
.legal-body { max-width: none; max-height: 30svh; overflow: auto; padding: 4px 14px 28px 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--mut) transparent; }
.legal-body:focus { outline: 0; }
.foot.js .legal-body { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transition: max-height .32s cubic-bezier(.2, .7, .2, 1), opacity .25s ease, padding .32s ease; }
.foot.js.is-open .legal-body { max-height: 30svh; padding-top: 4px; padding-bottom: 28px; opacity: 1; }
.foot.js.is-open { box-shadow: 0 -18px 50px rgba(10, 25, 40, .16); }
.foot.js.is-open .tri { transform: rotate(90deg); }
.legal-facts { background: transparent; }
@media (prefers-reduced-motion: reduce) { .foot, .foot.js .legal-body, .legal .tri { transition: none; } }
.foot.js .legal[open] .tri { transform: none; }
.foot.js.is-open .legal[open] .tri { transform: rotate(90deg); }
.legal-project { margin: 6px 0 14px; }
/* Pass 18: the duck's hint is part of the toolbar; the admin has the footer too. */
.toolbar .duck-hint { position: static; display: inline-flex; align-items: center; padding: 0 10px 0 6px; font-size: .78rem; color: var(--mut); white-space: nowrap; }
.is-admin { min-height: 100svh; display: flex; flex-direction: column; }
.is-admin main.admin { flex: 1 0 auto; width: 100%; }
/* Pass 21: balloons above the piles of people; a heading above each bundle. */
.bub.pile { height: 24px; padding: 0 9px; font-size: .72rem; z-index: 3; transition: opacity .2s; }
.bub.pile.is-dim { opacity: .45; }
.side-tag { position: absolute; z-index: 3; pointer-events: none; white-space: nowrap; font: 600 .625rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); padding: 4px 8px; border-bottom: 1px solid var(--mut); }
.side-tag { background: var(--ink); color: var(--card); border: 0; border-radius: 5px; padding: 4px 7px; font-size: .5625rem; opacity: .82; }
/* Pass 22: the visitor's own log, in the details. */
.you-log { list-style: none; margin: 0 0 10px; padding: 0; max-height: 46svh; overflow: auto; }
.you-log li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); font-size: .8125rem; line-height: 1.4; }
.you-log li:first-child { border-top: 0; font-weight: 600; }
.you-log time { font: .7rem/1.6 var(--mono); color: var(--mut); }
.bub.pile[data-w="you"] { border-color: var(--acc-line); color: var(--acc); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* Pass 23: the You button in the header; the Details bubble under "You". */
.you-btn { margin-left: .35rem; font-weight: 600; color: var(--acc); border-color: var(--acc-line); }
.you-btn[hidden] { display: none; }
.bub.pile.you-more { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); height: 22px; font-size: .6875rem; }
/* Pass 24: the zone headings lie flat on the deck. */
.side-tag { left: 0; top: 0; transform-origin: 0 0; z-index: 1; opacity: .9; font-size: .75rem; padding: 5px 10px; border-radius: 6px; will-change: transform; }
.you-ip { font: 600 .9375rem/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }

/* ================================================================ pass 26: one row system for both side bars */
/* Rows are compact; a solid line from edge to edge between rows; the dividers inside a row are dashed
   and run from the top of the row to its bottom. */
.row, .info-id { padding-top: 0; padding-bottom: 0; min-height: 0; align-items: stretch; }
.row .row-mark, .info-id .row-mark { height: auto; align-self: stretch; padding: 5px 0; }
.row .row-num, .info-id .row-num {
  display: grid; place-items: center; align-self: stretch; padding: 0 9px; margin-left: 6px;
  border-left: 1px dashed var(--line); border-right: 1px dashed var(--line);
}
.row .row-txt, .info-id .row-txt { justify-content: center; align-self: stretch; gap: 1px; padding: 5px 0 5px 10px; }
.row .row-mark + .row-txt, .info-id .row-mark + .row-txt { border-left: 1px dashed var(--line); }
.row.acc-head::after, .info-id .x { align-self: center; }
.row-txt small { line-height: 1.25; }
.side-r .side-body .cap { margin: 12px 12px 0; padding-bottom: 6px; }
.side-r .sub-list { padding: 2px 10px 4px 48px; }
.side-r .sub-list .item { padding: 4px 8px; }

/* The lists in the details: the same rows. */
.info-sec { padding: 10px 14px 10px; }
.info-sec h3 { margin-bottom: .4rem; }
.points, .you-log { margin: 0 -14px; border-top: 1px solid var(--line); }
.points li, .you-log li {
  display: grid; align-items: stretch; column-gap: 10px; padding: 5px 14px 5px 0;
  border-top: 0; border-bottom: 1px solid var(--line); font-size: .8125rem; line-height: 1.4;
}
.points li:first-child, .you-log li:first-child { padding-top: 5px; }
.points li { grid-template-columns: 2.5rem 1fr; }
.points li::before, .points li:first-child::before {
  position: static; width: auto; height: auto; margin: -5px 0; border-radius: 0; background: none;
  display: grid; place-items: center; align-self: stretch; border-right: 1px dashed var(--line);
  font: 600 .6875rem/1 var(--mono); color: var(--acc);
}
.you-log { max-height: 46svh; overflow: auto; margin-bottom: 8px; }
.you-log li { grid-template-columns: 5.4rem 1fr; }
.you-log time { margin: -5px 0; padding: 5px 0 5px 14px; display: flex; align-items: center; border-right: 1px dashed var(--line); line-height: 1.4; }
.info-sec > .points:last-child { margin-bottom: -10px; }
.info-sec > .points:last-child li:last-child { border-bottom: 0; }
.info-top { padding: 10px 14px; }
.info-lead p { font-size: .875rem; line-height: 1.45; }
/* Pass 27: provider │ harness rows (information only); the harness under each provider in the legend. */
.pairs { list-style: none; margin: 0 -14px -10px; padding: 0; border-top: 1px solid var(--line); }
.pairs li { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.pairs li:last-child { border-bottom: 0; }
.pair-a, .pair-b { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 14px; min-width: 0; }
.pair-b { border-left: 1px dashed var(--line); padding-left: 10px; }
.pairs .logo { width: 22px; height: 22px; border-radius: 6px; }
.pairs .logo img { width: 14px; height: 14px; }
.row-harness { display: flex; align-items: center; gap: 5px; }
.row-harness .logo { width: 15px; height: 15px; border-radius: 4px; border: 0; box-shadow: none; background: transparent; }
.row-harness .logo img { width: 12px; height: 12px; }
/* Pass 31: the zone headings on the deck, light. */
.side-tag { background: rgba(86, 97, 108, .16); color: #56616C; opacity: 1; }
[data-theme="dark"] .side-tag { background: rgba(255, 255, 255, .12); color: #C9D9E3; }
/* Pass 34: the flat labels are drawn large and scaled down, and re-drawn at their final size (no will-change), so they stay sharp at any angle. */
.side-tag { font-size: 36px; padding: 12px 24px; border-radius: 14px; letter-spacing: .08em; will-change: auto; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; backface-visibility: hidden; }

/* ================================================================ /work */
.work-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .8125rem; }
.work-link:hover { color: var(--acc); }
main.work { max-width: 1180px; margin: 0 auto 64px; padding: 0 clamp(.75rem, 2vw, 1.5rem); }
.work section { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.work section + section { margin-top: 22px; }
.w-kicker { margin: 0; font: 600 .6875rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.w-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .875rem/1 inherit; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 50, 80, .06); }
.w-btn:hover { border-color: var(--acc-line); }
.w-btn.primary { background: var(--ink); border-color: var(--ink); color: var(--card); }
.w-btn.primary:hover { opacity: .9; }
.w-btn:disabled { opacity: .6; cursor: wait; }

/* The hero: one grid, so that the rows left and right share their lines. */
.w-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: "kicker bio" "lead bio" "ask stats"; }
.w-hero > .w-kicker, .w-hero > .w-lead, .w-hero > .w-ask { margin: 0; padding: 16px 28px; border-right: 1px solid var(--line); }
.w-hero > .w-kicker { grid-area: kicker; border-bottom: 1px solid var(--line); }
.w-hero > .w-lead { grid-area: lead; display: flex; align-items: center; white-space: pre-line; padding-top: 40px; padding-bottom: 40px;
  font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.w-hero > .w-ask { grid-area: ask; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-top: 20px; padding-bottom: 20px; }
.w-ask > * { margin: 0; }
.w-cq { font-size: 1.125rem; font-weight: 400; line-height: 1.35; color: var(--ink); }
.w-ch2 { font-size: .9375rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--acc); }
.w-bio { grid-area: bio; display: flex; align-items: center; padding: 28px; }
.w-bio p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--mut); white-space: pre-line; }
.w-avatar { display: block; border-radius: 50%; object-fit: cover; background: #E4E7EA;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line), 0 6px 18px rgba(15, 50, 80, .14); }
.w-avatar { width: 96px; height: 96px; }

.w-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.w-stats > div { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-left: 1px solid var(--line); }
.w-stats > div:first-child { border-left: 0; }
.w-stats dt { font: 600 .625rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.w-stats dd { margin: 6px 0 0; font-size: .9375rem; font-weight: 600; line-height: 1.3; }

/* Below the hero, in its two columns: the person card │ two offers that share one button, joined by a bracket. */

.w-mail { font-size: .9375rem; font-weight: 600; color: var(--acc); text-decoration: none; }
.w-mail { font-weight: 500; color: var(--ink); }
.w-mail:hover { text-decoration: underline; }

.w-btn.primary { color: #fff; }
[data-theme="dark"] .w-btn.primary { background: #E6EEF4; border-color: #E6EEF4; color: #0E1A24; }

@media (max-width: 62rem) {
  .w-hero { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "kicker" "lead" "ask" "bio" "stats"; }
  .w-hero > .w-kicker, .w-hero > .w-lead, .w-hero > .w-ask { border-right: 0; }
  .w-bio { border-top: 1px solid var(--line); }

}
@media (max-width: 40rem) {

  .w-stats { grid-template-columns: 1fr; } .w-stats > div { border-left: 0; border-top: 1px solid var(--line); }
  .w-stats > div:first-child { border-top: 0; }

  .w-hero > .w-lead { white-space: normal; }
}
/* Admin: site texts. */
.adm-copy textarea { width: 100%; min-width: 220px; font: inherit; font-size: .8125rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); resize: vertical; }
.adm-copy td.adm-val { white-space: normal; vertical-align: top; }
.adm-copy-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .72rem; }
.w-btn { font-family: inherit; font-size: .875rem; font-weight: 600; }
.w-avatar { background: #E4E7EA; }
[data-theme="dark"] .w-avatar { background: #1E3242; }
.w-avatar .sil-bg { rx: 0; }

/* The navigation under the header, on every page. */
.site-nav { display: flex; align-items: center; gap: 0; margin: 0 0 14px; padding: 0 clamp(.75rem, 1.6vw, 1.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; }
.site-nav a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; font-size: .875rem; font-weight: 600; color: var(--mut); text-decoration: none; white-space: nowrap; border-left: 1px solid var(--line); }
.site-nav a:first-child { border-left: 0; padding-left: 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
/* The company behind the site, at the right end of the menu: a small outlined button. */
.site-nav a.nav-co { margin-left: auto; height: 26px; padding: 0 7px; border: 1px solid var(--acc); border-radius: 7px; background: var(--card); font-size: .8125rem; color: var(--acc); flex: none; }
.site-nav a.nav-co:hover { background: var(--acc-soft); color: var(--acc); }
@media (max-width: 40rem) { .site-nav { flex-wrap: wrap; overflow: visible; } .site-nav a.nav-co { margin: 0 0 10px; } }
html[lang="de"] .w-hero > .w-lead { font-size: clamp(1rem, 1.3vw, 1.1875rem); }
/* The page is at least as high as the window and the footer is its last part: it sits on the bottom edge
   (sticky when the page is longer), and opening it grows upwards into the free space. */
body:has(> .foot) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .foot) > main { flex: 1 0 auto; width: 100%; }

/* ================================================================ /services */
.services > * + * { margin-top: 22px; }
.services .s-two > section + section { margin-top: 0; }
.s-hero .w-lead { white-space: pre-line; }
.s-status { gap: 4px !important; }
.s-stat { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.s-stat i, .s-closed i { width: 9px; height: 9px; border-radius: 50%; background: #E0A422; box-shadow: 0 0 0 4px rgba(224, 164, 34, .18); flex: none; }
.s-statnote { font-size: 1rem; color: var(--ink); }
.s-photo { justify-content: center; }
.s-rack { width: 100%; max-width: 260px; height: auto; display: block; }
.rk-box { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.rk-bays { fill: #E9EDF1; }
.rk-bay { fill: #CDD5DD; }
.rk-line { fill: #D5DCE3; }
.rk-led { fill: #E0A422; }
[data-theme="dark"] .rk-bays { fill: #1B2C3A; }
[data-theme="dark"] .rk-bay, [data-theme="dark"] .rk-line { fill: #2E4556; }
.w-stats dd small { font-size: .75rem; font-weight: 500; color: var(--mut); }

.s-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.s-head > * { margin: 0; }
.s-head h2 { margin-top: 6px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 650; letter-spacing: -.01em; }
.s-lead { margin-top: 8px !important; max-width: 46rem; font-size: .9375rem; line-height: 1.55; color: var(--mut); }

.s-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-plan { display: flex; flex-direction: column; padding: 22px 28px 20px; border-left: 1px solid var(--line); }
.s-plan:first-child { border-left: 0; }
.s-plan h3 { margin: 0; font-size: 1.125rem; font-weight: 650; }
.s-price { margin: 6px 0 0; color: var(--mut); font-size: .8125rem; white-space: nowrap; }
.s-price b { font-size: 1.5rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; margin-right: 2px; }
.s-spec { margin: 16px 0 18px; }
.s-spec > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.s-spec > div:last-child { border-bottom: 1px solid var(--line); }
.s-spec dt { color: var(--mut); }
.s-spec dd { margin: 0; font-weight: 600; color: var(--ink); }
.s-spec .s-key dd { color: var(--acc); }
.s-closed { display: inline-flex; align-items: center; gap: 9px; margin: auto 0 0; font: 600 .6875rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #8A6410; }
[data-theme="dark"] .s-closed { color: #E9C46A; }
.s-block > .s-closed { margin: 0; padding: 14px 28px 18px; }
.s-incl { border-top: 1px solid var(--line); }
.s-incl > .w-kicker { margin: 0; padding: 14px 28px 12px; border-bottom: 1px solid var(--line); }
.s-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-boxes > div { padding: 16px 20px 18px 28px; border-left: 1px solid var(--line); }
.s-boxes > div:first-child { border-left: 0; }
.s-boxes h4 { margin: 0 0 6px; font-size: .9375rem; font-weight: 650; color: var(--ink); }
.s-boxes p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--mut); }
/* The plan names: a small coloured tag, so they read as names, not as numbers of agents. */
.s-name { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 7px; font-size: .875rem !important; font-weight: 650; }
.s-plan-starter .s-name { background: #FDE7CF; color: #7A4510; }
.s-plan-pro .s-name { background: #E4F1D2; color: #3D5A14; }
.s-plan-max .s-name { background: #E6E1FA; color: #45338A; }
[data-theme="dark"] .s-name { filter: saturate(.8) brightness(.9); }
.s-for { margin: 6px 0 0; font-size: .875rem; color: var(--mut); }
.s-price { margin-top: 10px; }
.s-tag.is-online { color: #23683F; background: rgba(46, 160, 90, .14); }
.s-tag.is-offline { color: var(--mut); background: rgba(120, 135, 150, .14); }
.s-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; align-self: center; }
.s-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.s-rows { margin: 0; padding: 0; list-style: none; }
.s-rows li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 28px; border-top: 1px solid var(--line); }
.s-rows li:first-child { border-top: 0; }
.s-rows li div { display: flex; flex-direction: column; gap: 3px; font-size: .9375rem; }
.s-rows li span { color: var(--mut); line-height: 1.45; }
.s-rows li small { font: 500 .75rem/1.3 var(--mono); color: var(--mut); }
.s-rows .s-price { margin: 0; }
.s-rows .s-price b { font-size: 1.125rem; }

.s-tablewrap { overflow-x: auto; }
.s-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.s-table th { padding: 10px 28px 8px; text-align: left; font: 600 .625rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.s-table td { padding: 12px 28px; border-top: 1px solid var(--line); white-space: nowrap; }
.s-table th + th, .s-table td + td { padding-left: 0; }
.s-table .num { text-align: right; }
.s-tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #8A6410; background: rgba(224, 164, 34, .14); }
[data-theme="dark"] .s-tag { color: #E9C46A; }
.s-small { margin: 18px 4px 0; font-size: .8125rem; color: var(--mut); }

@media (max-width: 62rem) {
  .s-plans { grid-template-columns: 1fr; }
  .s-plan { border-left: 0; border-top: 1px solid var(--line); }
  .s-plan:first-child { border-top: 0; }
  .s-two { grid-template-columns: 1fr; }
  .s-boxes { grid-template-columns: 1fr 1fr; }
  .s-boxes > div:nth-child(3) { border-left: 0; }
  .s-boxes > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .s-photo { display: none; }
}
.s-rows + .s-closed { border-top: 1px solid var(--line); }
.s-block > .s-closed { display: flex; }
/* Options │ virtual machines: one height, header, body and the closing line on the same lines. */
.s-two { grid-template-rows: auto 1fr auto; align-items: stretch; }
.s-two > section { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; }
.s-two .s-closed { border-top: 1px solid var(--line); align-self: end; }
.s-two .s-rows + .s-closed { border-top: 1px solid var(--line); }
.s-two .s-rows li:last-child { border-bottom: 0; }
/* The six agents: their logos, small and quiet. */
.s-agents { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; }
.s-agents li { display: flex; align-items: center; gap: 7px; font-size: .8125rem; color: var(--mut); white-space: nowrap; }
.s-agents img { width: 16px; height: 16px; flex: none; }
@media (max-width: 62rem) { .s-two { grid-template-rows: none; } .s-two > section { grid-row: auto; display: block; } }
.s-two > section > .s-rows, .s-two > section > .s-tablewrap { align-self: start; }
.s-two > section { row-gap: 0; }
/* /services, top: the sentence over the full width; below, the status │ four figures. */
.s-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto auto; grid-template-areas: "kicker kicker" "lead lead" "ask stats"; }
.s-hero > .w-kicker, .s-hero > .w-lead { border-right: 0; }
.s-hero > .w-ask { border-right: 1px solid var(--line); }
.s-hero .w-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* The plan tiles: lines from edge to edge, rows on the same lines in all three. */
.s-plans { grid-template-rows: auto auto auto; }
.s-plan { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; padding: 0; }
.s-ptop { display: flex; flex-direction: column; padding: 20px 28px 18px; }
.s-plan .s-spec { margin: 0; }
.s-plan .s-spec > div { padding: 10px 28px; }
.s-plan .s-spec > div:last-child { border-bottom: 0; }
.s-plan .s-closed { display: flex; margin: 0; padding: 14px 28px; border-top: 1px solid var(--line); }
@media (max-width: 62rem) {
  .s-hero { grid-template-columns: 1fr; grid-template-areas: "kicker" "lead" "ask" "stats"; }
  .s-hero > .w-ask { border-right: 0; }
  .s-hero .w-stats { grid-template-columns: 1fr 1fr; }
  .s-plans { grid-template-rows: none; } .s-plan { grid-row: auto; display: block; }
}
.s-hero .w-stats dd { white-space: nowrap; }
/* /services: "In every plan" is a tile of its own. */
.s-block.s-incl { border-top: 1px solid var(--line); }
/* /work: two tiles under the person card, to /services and to the tank. */

/* /work, round 5: the sentence and a bold line under it. */
.w-leadbox { flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 10px; }
.w-leadbox h1 { margin: 0; font: inherit; letter-spacing: inherit; white-space: pre-line; }
.w-lead2 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--ink); white-space: normal; }
/* The person card: the dividing line from the top edge to the bottom edge. */

/* Under the person card: a line down to "My AI Coding Cluster", then a bracket to the two tiles. */

.is-work:not(.is-services) .w-hero > .w-lead, html[lang="de"] .is-work:not(.is-services) .w-hero > .w-lead { font-size: clamp(1.125rem, 1.75vw, 1.4375rem); }
/* Connectors meet their cards exactly: bracket ends on the centre of each tile (gap counted, 2px line centred). */

/* /services: the stacks, in the same tile as "In every plan": name, then the parts, small and quiet. */
.s-boxes-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.s-parts { grid-template-columns: 1fr; }
.s-parts li i { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--acc-soft); color: var(--mut); font: 700 .5625rem/1 var(--sans); font-style: normal; }
@media (max-width: 62rem) {
  .s-boxes-5 { grid-template-columns: 1fr 1fr; }
  .s-boxes-5 > div { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .s-boxes-5 > div:nth-child(odd) { border-left: 0 !important; }
  .s-boxes-5 > div:nth-child(-n+2) { border-top: 0; }
  .s-boxes-5 > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 40rem) { .s-boxes-5, .s-boxes { grid-template-columns: 1fr; } .s-boxes > div { border-left: 0 !important; } .s-boxes > div + div { border-top: 1px solid var(--line); } }
/* /work, from Imre's sketch: offers with plain bold titles; under "Email me" the question, centred;
   at the bottom one strip of four cells, all in one font and size. */

/* "Email me": the button, then a line that runs down to the question. */

/* The bottom row: three plain tiles under the row above (two under the left column, one under the question). */

/* Not a button: "My AI Coding Cluster" is a label on white. */

/* Clickable tiles: tinted background and a dark border, so they read as links. */

/* Imre's mockup: the question in two bold lines; the email address on the button; a line from top to bottom
   between the two texts of the middle tile. */

/* /work: ONE text style and ONE title style, taken from the page itself (the traits and the offer texts;
   "Project work"). Every running text uses the first, every tile title the second. */

/* /work: one text colour for all text (links stay link-blue). */

/* Clickable = link blue (the same blue as LinkedIn): border and title of the two tiles. */

/* /services: a fixed set of text styles (measured before: 28 different ones).
   Label   JetBrains Mono 11px / 600 / uppercase, muted   (section kickers, figure labels, table heads)
   Text    Inter 15px / 400 / 1.5, ink                    (all running text, spec rows, table cells)
   Strong  Inter 15px / 650 / 1.5, ink                    (names in rows and tables, row prices, values)
   Title   Inter 16px / 650 / 1.3, ink                    (box titles)
   Small   Inter 13px / 400 / 1.5, muted                  ("per month", logo lists, secondary figures)
   Section titles and the three plan prices keep 24px / 650. */
.is-services .w-stats dt, .is-services .s-table th { font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.is-services .s-lead, .is-services .s-for, .is-services .s-statnote, .is-services .s-spec dt, .is-services .s-rows li span,
.is-services .s-table td, .is-services .s-boxes p {
  font-family: var(--sans); font-size: .9375rem; font-weight: 400; line-height: 1.5; color: var(--ink);
}
.is-services .s-spec dd, .is-services .s-spec .s-key dd, .is-services .w-stats dd, .is-services .s-rows li b, .is-services .s-table td b,
.is-services .s-rows .s-price b, .is-services .s-stat span {
  font-family: var(--sans); font-size: .9375rem; font-weight: 650; line-height: 1.5; color: var(--ink);
}
.is-services .s-boxes h4 { font-size: 1rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.is-services .s-price, .is-services .s-price span, .is-services .s-agents li, .is-services .w-stats dd small, .is-services .s-rows li small {
  font-family: var(--sans); font-size: .8125rem; font-weight: 400; line-height: 1.5; color: var(--mut);
}
.is-services .s-plan .s-price b { font-size: 1.5rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.is-services .s-closed { font: 600 11px/1.3 var(--mono); letter-spacing: .07em; }
.is-services .s-name, .is-services .s-tag { font-size: .8125rem; font-weight: 650; }
/* Half the vertical padding: the plan rows, the options rows and every table row. */
.is-services .s-plan .s-spec > div { padding-top: 5px; padding-bottom: 5px; }
.is-services .s-rows li { padding-top: 8px; padding-bottom: 8px; }
.is-services .s-table td { padding-top: 6px; padding-bottom: 6px; }
.is-services .s-name { font-size: .8125rem !important; }
/* /services Stacks: less vertical space. */
.is-services .s-stacks .s-boxes > div { padding-top: 12px; padding-bottom: 12px; }
.is-services .s-stacks .s-boxes h4 { margin-bottom: 4px; }
.is-services .s-stacks .s-parts { margin-top: 0; row-gap: 1px; }
.is-services .s-stacks .s-parts li { line-height: 1.4; }

/* ================================================================ /app */
.app > * + * { margin-top: 22px; }
.a-lead { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; color: var(--ink); white-space: pre-line; }
.a-boards { border-top: 1px solid var(--line); }
.a-boards > input { position: absolute; opacity: 0; pointer-events: none; }
.a-tabs { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 28px; border-bottom: 1px solid var(--line); }
.a-tabs .w-kicker { margin-right: 10px; }
.a-tabs label { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; font-weight: 600; color: var(--acc); cursor: pointer; }
.a-tabs label:hover { border-color: var(--acc); }
#a-th-light:checked ~ .a-tabs label[for="a-th-light"], #a-th-green:checked ~ .a-tabs label[for="a-th-green"], #a-th-paper:checked ~ .a-tabs label[for="a-th-paper"] { background: var(--acc); border-color: var(--acc); color: var(--card); }
#a-th-light:focus-visible ~ .a-tabs label[for="a-th-light"], #a-th-green:focus-visible ~ .a-tabs label[for="a-th-green"], #a-th-paper:focus-visible ~ .a-tabs label[for="a-th-paper"] { outline: 3px solid var(--warm); outline-offset: 2px; }
.a-boards .a-shot { display: none; }
#a-th-light:checked ~ .a-b-light, #a-th-green:checked ~ .a-b-green, #a-th-paper:checked ~ .a-b-paper { display: block; }
.a-shot { display: block; background: var(--bg); }
.a-shot img { display: block; width: 100%; height: auto; }
.s-block > .a-shot { border-top: 1px solid var(--line); }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.app .a-two > section + section { margin-top: 0; }
.a-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.a-sec > .a-shot { border-top: 0; border-left: 1px solid var(--line); }
.a-sec > .s-head { border-bottom: 0; }
@media (max-width: 62rem) { .a-two, .a-sec { grid-template-columns: 1fr; } .a-sec > .a-shot { border-left: 0; border-top: 1px solid var(--line); } }
.a-tabs { flex-wrap: wrap; }
.a-thnote { margin-left: 12px; font-size: .9375rem; color: var(--ink); }
.a-stop { margin-top: 10px !important; padding-left: 12px; border-left: 3px solid #B0412C; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.a-pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); align-items: start; }
.a-pair figure { margin: 0; }
.a-pair figure + figure { border-left: 1px solid var(--line); }
.a-pair figcaption { margin: 0; padding: 10px 28px; border-bottom: 1px solid var(--line); }
@media (max-width: 62rem) { .a-pair { grid-template-columns: 1fr; } .a-pair figure + figure { border-left: 0; border-top: 1px solid var(--line); } .a-thnote { margin: 6px 0 0; flex-basis: 100%; } }
/* /app: accounts text left, the harnesses picture right; the canvas strip; the picture modal. */
.a-acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.a-acc > .s-head { border-bottom: 0; }
.a-acc > .a-shot { border-top: 0; border-left: 1px solid var(--line); }
.a-acc .s-lead + .s-lead { margin-top: 10px !important; }
.a-shot { cursor: zoom-in; }
.a-modal { width: min(96vw, 1600px); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px rgba(5, 20, 35, .35); display: none; flex-direction: column; overflow: hidden; }
.a-modal[open] { display: flex; }
.a-modal::backdrop { background: rgba(8, 20, 32, .55); }
.a-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.a-mhead h2 { margin: 0; font-size: 1rem; font-weight: 650; }
.a-mbody { overflow: auto; background: var(--bg); min-height: 0; flex: 1 1 auto; }
.a-mbody img { display: block; width: 100%; height: auto; }
.a-mfoot { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); }
@media (max-width: 62rem) { .a-acc { grid-template-columns: 1fr; } .a-acc > .a-shot { border-left: 0; border-top: 1px solid var(--line); } }
/* /app: the harness text in a tile of its own, above the cropped list of the six harnesses. */
.a-har { border-left: 1px solid var(--line); }
.a-htile { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.a-htile > * { margin: 0; }
.a-htile h3 { margin-top: 6px; font-size: 1rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.a-htile p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.a-htile .a-src { font-size: .8125rem; color: var(--mut); }
.a-htile code { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; font: 500 .75rem/1.6 var(--mono); color: var(--ink); background: var(--bg); }
.a-har > .a-shot { border-top: 0; }
@media (max-width: 62rem) { .a-har { border-left: 0; border-top: 1px solid var(--line); } }
.a-htile > p.w-kicker { margin: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.a-htile > p:not(.w-kicker) { font-weight: 400; }
.a-htile > p.a-src { font-size: .8125rem; color: var(--mut); }
/* /app modal: the full width of the window, minus a 16px courtesy gap on each side. */
.a-modal { width: calc(100vw - 32px); max-width: none; max-height: calc(100vh - 32px); margin: auto; }
/* Admin, Libraries. */
.adm-libs td { vertical-align: top; white-space: normal; font-size: .875rem; }
.adm-libs code { font-size: .75rem; }
.adm-lic summary { cursor: pointer; color: var(--acc); font-size: .8125rem; }
.adm-lic pre { max-height: 260px; max-width: 520px; overflow: auto; white-space: pre-wrap; font-size: .75rem; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.adm-h3 { margin: 18px 0 6px; font-size: .9375rem; }
.adm-prices input { width: 110px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink); font: inherit; }
.adm-prices { table-layout: fixed; }
.adm-prices th:nth-child(1) { width: 30%; } .adm-prices th:nth-child(2) { width: 40%; }
.adm-prices input { font-family: var(--sans); }
/* Footer: the link to /third-parties, on the bar beside the legal toggle. */
.foot { position: sticky; }
.foot .foot-links { position: absolute; top: 9px; right: clamp(.75rem, 2vw, 1.75rem); display: flex; gap: 8px; margin: 0; }
.foot-btn { height: 26px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid var(--acc); border-radius: 7px; background: var(--card); font-size: .8125rem; font-weight: 600; line-height: 1; color: var(--acc); text-decoration: none; white-space: nowrap; }
.foot-btn:hover { background: var(--acc-soft); }
@media (max-width: 40rem) { .foot .foot-links { position: static; flex-wrap: wrap; margin: 0 clamp(.75rem, 2vw, 1.75rem) 10px; } }
/* /third-parties: six boxes, three per row. */
.tp-grid .s-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-grid .s-boxes > div:nth-child(4) { border-left: 0; }
.tp-grid .s-boxes > div:nth-child(n+4) { border-top: 1px solid var(--line); }
@media (max-width: 62rem) { .tp-grid .s-boxes { grid-template-columns: 1fr; } .tp-grid .s-boxes > div { border-left: 0 !important; } .tp-grid .s-boxes > div + div { border-top: 1px solid var(--line); } }
.foot a.foot-btn { color: var(--acc); }
/* Admin, Texts. */
.adm-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.adm-subtabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 600; background: var(--card); }
.adm-subtabs a[aria-current="page"] { border-color: var(--acc); color: var(--acc); }
.adm-subtabs .adm-muted { font-weight: 400; font-size: .75rem; }
.obj-views { margin: 0 0 16px; }
.adm-subtabs.is-vertical { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: max-content; max-width: 100%; margin: 0 0 8px; }
.obj-view { display: flex; align-items: center; gap: 10px; }
.obj-view a { flex: 1; }
.obj-view-box { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--acc); }
.obj-views-note { margin: 0 0 8px; font-size: .8125rem; }
.obj-views-foot { display: flex; align-items: center; gap: 10px; }
.adm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 10px; font-size: .875rem; }
.adm-filter input[type="search"] { width: 280px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }
.adm-texts { table-layout: fixed; }
.adm-texts th:first-child { width: 22%; }
.adm-texts td:first-child code { font-size: .75rem; word-break: break-all; }
.adm-texts td.is-mine textarea { border-color: var(--acc); }
.adm-texts td.is-missing textarea { background: rgba(224, 164, 34, .12); }
.adm-stale { display: block; margin-top: 4px; padding: 4px 8px; border-left: 3px solid #E0A422; font-size: .75rem; color: var(--ink); }
/* /cluster: the view switch, top left on the stage. */
.vsw { position: absolute; top: 12px; left: 12px; z-index: 5; display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); }
.vsw-b { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--acc); font: 600 .8125rem/1 var(--sans); cursor: pointer; }
.vsw-b:hover { background: var(--acc-soft); }
.vsw-b[aria-pressed="true"] { background: var(--acc); color: var(--card); cursor: default; }
/* A view's own layer colours (set by aquarium.js as --sw-<layer>) win over the swatches above. */
.sw[data-layer="epidermis"] { background: var(--sw-epidermis, #535A63); }
.sw[data-layer="dermis"] { background: var(--sw-dermis, #C98A55); }
.sw[data-layer="blubber"] { background: var(--sw-blubber, #F4E7D0); }
.sw[data-layer="connective-tissue"] { background: var(--sw-connective-tissue, #E9CDA2); }
.sw[data-layer="fascia"] { background: var(--sw-fascia, #DDB98E); }
.sw[data-layer="muscle"] { background: var(--sw-muscle, linear-gradient(#8C2E23, #5A1912)); }
/* /app: the stacks, one tile each. */
.a-stgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.a-st { display: flex; flex-direction: column; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.a-st h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.a-stlogo { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.a-st > p { margin: 10px 0 12px; font-size: .9375rem; line-height: 1.5; color: var(--ink); flex: 1 0 auto; }
.a-st ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.a-st li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink); }
.a-st li:last-child { border-bottom: 0; }
.a-st li img { width: 16px; height: 16px; flex: none; }
.a-st li i { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--acc-soft); color: var(--mut); font: 700 .5625rem/1 var(--sans); font-style: normal; }
[data-theme="dark"] .a-stlogo { background: #E9EEF2; }
@media (max-width: 75rem) { .a-stgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 48rem) { .a-stgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 32rem) { .a-stgrid { grid-template-columns: 1fr; } }
/* /app security: the card stands centred in its column, at its own size at most. */
.a-sec > .a-shot { display: flex; justify-content: center; align-items: flex-start; padding: 22px; }
.a-sec > .a-shot img { width: 100%; max-width: 552px; border-radius: 10px; }
/* /app: project view left; updates and security stacked on the right. */
.a-stack { display: flex; flex-direction: column; gap: 22px; }
.app .a-stack > section + section { margin-top: 0; }
.a-sec2 > .a-shot { display: flex; justify-content: center; padding: 18px; }
.a-sec2 > .a-shot img { width: 100%; max-width: 552px; border-radius: 10px; }
/* /app: the stop-all line set apart by a thin line above it, no coloured bar. */
.a-stop { padding-left: 0; border-left: 0; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); }
/* /cluster/iso: the isometric view on a flat blue ground, as in an isometric illustration. */
html[data-view="iso"] .stage { background: linear-gradient(160deg, #3AA9D6, #2C86C4); }
html[data-view="iso"][data-theme="dark"] .stage { background: linear-gradient(160deg, #164E73, #0F3754); }


/* /app: stepping through the screenshots in the modal: arrows and one dot per picture */
.a-mnav { display: flex; align-items: center; gap: 14px; }
.a-mfoot[hidden] { display: none; }
.a-mclose { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-family: inherit; font-size: .875rem; font-weight: 600; line-height: 1; cursor: pointer; flex: none; }
.a-mclose:hover { border-color: var(--acc); background: var(--acc-soft); }
.a-mx { font-size: 1.125rem; font-weight: 400; line-height: 1; color: var(--mut); }
.a-marrow { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--acc); cursor: pointer; }
.a-marrow:hover { border-color: var(--acc); background: var(--acc-soft); }
.a-marrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-mdots { display: flex; align-items: center; gap: 8px; }
.a-mdot { width: 10px; height: 10px; padding: 0; border: 1.5px solid var(--acc); border-radius: 50%; background: transparent; cursor: pointer; }
.a-mdot[aria-current="true"] { background: var(--acc); }
.a-mdot:hover { background: var(--acc-soft); }
.a-mdot[aria-current="true"]:hover { background: var(--acc); }
@media (max-width: 560px) { .a-marrow { width: 44px; } .a-mdots { gap: 6px; } }

/* /app: the line under the lead that links the tic tac toe from the pictures */
.a-game { margin: 10px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.a-game a { display: inline-flex; align-items: center; gap: 5px; height: 26px; margin-left: 6px; padding: 0 7px; border: 1px solid var(--acc); border-radius: 7px; background: var(--card); font-size: .8125rem; font-weight: 600; line-height: 1; color: var(--acc); text-decoration: none; white-space: nowrap; vertical-align: 1px; }
.a-game a:hover { background: var(--acc-soft); }

/* /app, round 3: the themes' kicker and note on top, the tabs on their own row above the picture */
.a-thhead { padding: 16px 28px 0; }
.a-thhead > * { margin: 0; }
.a-thhead .a-thnote { margin: 6px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.a-boards .a-tabs { padding: 12px 28px 14px; border-bottom: 0; }
/* accounts and harnesses: two blocks on the left, divided by a thin line; the harness list on the right */
.a-acol { display: flex; flex-direction: column; }
.a-ablk { padding: 22px 28px; }
.a-ablk + .a-ablk { border-top: 1px solid var(--line); }
.a-ablk > * { margin: 0; }
.a-ablk > p:not(.w-kicker) { margin-top: 8px; font-size: .9375rem; line-height: 1.55; color: var(--ink); }
.a-acc .a-har { display: flex; align-items: flex-start; }
.a-acc .a-har > .a-shot { flex: 1; }
/* the preview area's note runs the full width */
.a-canvas .s-lead { max-width: none; }

/* /app: two text styles only. Titles: Inter 15px bold, ink. Text: Inter 15px regular, ink. (No mono capitals, no
   large headings.) Buttons and the tabs keep their own small size. */
body.is-app main.app .w-kicker, body.is-app main.app .s-head h2, body.is-app main.app h3, body.is-app main.app h4, body.is-app main.app .a-st h3 {
  font-family: var(--sans); font-size: .9375rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--ink);
}
main.app .s-head h2 { margin-top: 0; }
body.is-app main.app h1.a-lead, body.is-app main.app .s-lead, body.is-app main.app .a-thnote, body.is-app main.app .a-game, body.is-app main.app .a-ablk > p:not(.w-kicker),
body.is-app main.app .s-boxes p, body.is-app main.app .a-st > p {
  font-family: var(--sans); font-size: .9375rem; font-weight: 400; line-height: 1.55; letter-spacing: 0; color: var(--ink);
}
main.app h1.a-lead, main.app .s-lead { margin-top: 6px !important; max-width: none; white-space: pre-line; }
main.app .a-ablk > p:not(.w-kicker) { margin-top: 6px; }

/* /app: one line between a block's header and what follows (not two), the intro in its own tile */
body.is-app main.app .s-head + * { border-top: 0; }
body.is-app main.app .a-intro > .s-head { border-bottom: 0; }
body.is-app main.app .a-boards { border-top: 0; }
body.is-app main.app .a-themes .a-thhead { padding-top: 18px; }
/* the stacks: smaller and compact */
body.is-app main.app .a-stgrid { gap: 12px; padding: 14px 18px 18px; }
body.is-app main.app .a-st { padding: 12px 12px 6px; }
body.is-app main.app .a-st h3 { gap: 8px; font-size: .875rem; }
body.is-app main.app .a-stlogo { width: 28px; height: 28px; border-radius: 7px; }
body.is-app main.app .a-stlogo img { width: 18px; height: 18px; }
body.is-app main.app .a-st > p { margin: 8px 0 10px; font-size: .8125rem; line-height: 1.45; }
body.is-app main.app .a-st li { gap: 8px; padding: 3px 0; font-size: .8125rem; line-height: 1.4; }
body.is-app main.app .a-st li img, body.is-app main.app .a-st li i { width: 14px; height: 14px; }

/* /services: the same two text styles as /app. Text: Inter 15px regular, ink. Titles (section titles, headings,
   table heads, figures and prices): Inter 15px bold, ink. Only the small chips (plan names, online/offline) keep
   their own look. */
body.is-services:not(.is-app) main :is(h1, h2, h3, h4, p, li, td, th, dt, dd, small, span, b, strong, a, .w-kicker) {
  font-family: var(--sans); font-size: .9375rem; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--ink);
}
body.is-services:not(.is-app) main :is(h2, h4, th, b, strong, .w-kicker, .s-stats dt, .w-stats dt, .s-spec dd, .s-rows li b, .s-table td b) {
  font-weight: 650;
}
body.is-services:not(.is-app) main :is(.w-kicker, h2) { margin-top: 0; }
body.is-services:not(.is-app) main .s-head > * + * { margin-top: 6px !important; }
body.is-services:not(.is-app) main .w-hero > .w-lead { padding-top: 18px; padding-bottom: 18px; }
body.is-services:not(.is-app) main .w-hero > .w-kicker { padding-top: 14px; padding-bottom: 12px; }
body.is-services:not(.is-app) main .s-closed span { color: #8A6410; font-weight: 600; }
body.is-services:not(.is-app) main :is(.s-name, .s-name *, .s-tag) { font-size: .8125rem; font-weight: 650; }
body.is-services:not(.is-app) main .s-name { color: inherit; }
body.is-services:not(.is-app) main .s-hero .w-stats dd, body.is-services:not(.is-app) main .w-stats dd { white-space: normal; }
body.is-services:not(.is-app) main .s-agents li { white-space: normal; min-width: 0; }

/* /cluster: the sidebar and details headings and the diagram button in the page's own font (Inter), not in the
   mono capitals; sizes as before. */
.side-title, .cap, .info-sec h3, .dia-tile > span {
  font-family: var(--sans); font-weight: 650; font-size: .75rem; line-height: 1.2; letter-spacing: 0; text-transform: none;
}
.dia-tile > span { font-weight: 600; }

/* /services: the cluster's totals sit under the server table, in the hardware tile; the opening tile is the kicker
   and the lead only. */
.s-hero { grid-template-columns: 1fr; grid-template-rows: auto auto; grid-template-areas: "kicker" "lead"; }
.s-total { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.s-total > .w-ask { margin: 0; padding: 16px 28px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.s-total > .w-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
@media (max-width: 62rem) { .s-total { grid-template-columns: 1fr; } .s-total > .w-ask { border-right: 0; border-bottom: 1px solid var(--line); } .s-total > .w-stats { grid-template-columns: 1fr 1fr; } }
.s-total > .w-ask, .s-total > .w-stats { grid-area: auto; }

/* /services, "In every plan": the providers with their harnesses, as in the /cluster sidebar */
.s-provs { margin: 8px -4px 0; padding: 0; list-style: none; }
.s-provs li { display: grid; grid-template-columns: 34px 1fr; align-items: stretch; border-top: 1px solid var(--line); }
.s-provs li:last-child { border-bottom: 1px solid var(--line); }
.s-plogo { display: grid; place-items: center; padding: 6px 0; }
.s-plogo img { width: 24px; height: 24px; padding: 4px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.s-ptxt { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 5px 0 5px 10px; border-left: 1px dashed var(--line); min-width: 0; }
body.is-services:not(.is-app) main .s-ptxt b { font-size: .8125rem; font-weight: 600; line-height: 1.25; }
body.is-services:not(.is-app) main .s-ptxt small { display: flex; align-items: center; gap: 5px; font-size: .71875rem; line-height: 1.25; color: var(--mut); }
.s-ptxt small img { width: 12px; height: 12px; flex: none; }
[data-theme="dark"] .s-plogo img { background: #E9EEF2; }

/* /services: "included" and the stacks side by side. Inside each tile the parts are separated by lines that run
   through from edge to edge (a 1px gap over the line colour). */
.s-two-inc { margin-top: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.s-two.s-two-inc > section { display: block; grid-row: auto; }
.work section.s-inc { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); }
.s-inc > div { background: var(--card); }
.s-inc-l > h4 { margin: 0; padding: 18px 20px 12px; }
.s-inc-l .s-provs { margin: 0; }
.s-inc-l .s-provs li:last-child { border-bottom: 1px solid var(--line); }
.s-inc-l .s-plogo { padding-left: 12px; }
.s-inc-l .s-provs li { grid-template-columns: 46px 1fr; }
.s-inc-r { display: grid; grid-template-rows: auto 1fr; gap: 1px; background: var(--line) !important; }
.s-inc-r > div { background: var(--card); padding: 18px 20px; }
.s-inc-r > div:last-child { padding-bottom: 22px; }
.s-inc-r h4 { margin: 0 0 6px; }
.s-inc-r p { margin: 0; }
.s-stacks2 > .w-kicker { margin: 0; padding: 18px 20px 14px; }
.s-stgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.s-stgrid > div { background: var(--card); padding: 14px 20px 16px; }
.s-stgrid h4 { margin: 0 0 6px; }
.s-stgrid .s-agents { margin: 0; grid-template-columns: 1fr; gap: 4px; }
.s-small { text-align: center; }
@media (max-width: 62rem) { .s-two-inc { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .work section.s-inc { grid-template-columns: 1fr; } .s-stgrid { grid-template-columns: 1fr 1fr; } }
.work section.s-stacks2 { background: var(--card); }
.work section.s-inc > div { grid-row: auto !important; grid-column: auto !important; grid-area: auto !important; }
.work section.s-inc, .work section.s-stacks2 { grid-template-rows: none !important; }
