/* Lamina. A dark studio: the object in the middle, quiet tools at the edges. */

:root {
  --bg: #1a1918;
  --panel: rgba(35, 33, 32, 0.96);
  --panel-solid: #232120;
  --field: #1b1a19;
  --ink: #e9e5dc;
  --ink-2: #b3ada2;
  --ink-3: #948e83;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --line-3: rgba(255, 255, 255, 0.28);
  --hover: rgba(255, 255, 255, 0.06);
  --accent: #87292a;
  --accent-ink: #c4574a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --edge: 12px;
  --btn: 36px;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 12.5px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
.mono, output, kbd, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

button, select, input { font: inherit; color: inherit; }
button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 1px solid var(--ink-2);
  outline-offset: 1px;
}
button:disabled { opacity: 0.35; cursor: default; }
svg.i { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stage ---------- */

.stage { position: fixed; inset: 0; touch-action: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#gl { cursor: grab; }
#gl.dragging { cursor: grabbing; }
#gl.on-plane { cursor: ns-resize; }
#flat { cursor: grab; }
#flat.dragging { cursor: grabbing; }
.no-gl { position: absolute; inset: 0; display: grid; place-content: center; color: var(--ink-3); font-family: var(--serif); font-style: italic; }

/* ---------- Caption and wordmark ---------- */

.caption {
  position: fixed; left: calc(var(--edge) + var(--btn) + 26px); top: calc(var(--edge) + 7px); z-index: 10;
  max-width: calc(100vw - 2 * (var(--edge) + var(--btn) + 30px));
  font: italic 15px/1.3 var(--serif); color: var(--ink-3); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 4px; border-radius: 4px;
}
.caption:hover { color: var(--ink-2); }
.caption .sub { font-size: 14px; }
.wordmark {
  position: fixed; left: calc(var(--edge) + 6px); bottom: calc(var(--edge) + 2px); z-index: 5;
  font: 15px/1 var(--serif); color: #6d685f; letter-spacing: 0.02em; pointer-events: none; user-select: none;
}

/* ---------- Toolbars ---------- */

.toolbar {
  position: fixed; z-index: 20;
  display: flex; flex-direction: column; gap: 2px; padding: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.toolbar.left { left: var(--edge); top: var(--edge); }
.toolbar.right { right: var(--edge); top: calc(var(--edge) + var(--btn) + 18px); }
.toolbar.corner { right: var(--edge); top: var(--edge); }
.toolbar hr { border: 0; height: 1px; background: var(--line); margin: 3px 4px; }
.tb {
  width: var(--btn); height: var(--btn);
  display: grid; place-items: center;
  color: var(--ink-2); border-radius: 7px; position: relative;
}
.tb:hover { color: var(--ink); background: var(--hover); }
.tb[aria-expanded="true"], .tb[aria-pressed="true"] { color: #f6f2ea; background: var(--accent); }

/* Custom tooltip, shown on hover for toolbar buttons. */
.tip {
  position: fixed; z-index: 80; pointer-events: none;
  padding: 4px 8px; border-radius: 5px;
  background: #0f0e0d; color: var(--ink); border: 1px solid var(--line-2);
  font-size: 12px; white-space: nowrap;
}
.tip kbd { margin-left: 8px; color: var(--ink-3); }

/* ---------- Plane offset slider (right edge) ---------- */

.vslider {
  position: fixed; right: calc(var(--edge) + 4px); z-index: 15;
  top: calc(50% + 70px); height: min(240px, calc(50vh - 150px));
  width: 28px; touch-action: none; cursor: ns-resize; border-radius: 6px;
}
.vslider .track { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-3); }
.vslider .zero { position: absolute; left: calc(50% - 4px); width: 9px; height: 1px; top: 50%; background: var(--line-3); }
.vslider .thumb {
  position: absolute; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; display: grid; place-items: center;
}
.vslider .thumb::after { content: ""; width: 14px; height: 2px; border-radius: 1px; background: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg); }
.vslider output {
  position: absolute; right: 30px; transform: translateY(-50%);
  font-size: 11.5px; color: var(--ink-2); white-space: nowrap; opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.vslider:hover output, .vslider.active output, .vslider:focus-visible output { opacity: 1; }
.vslider:focus-visible { outline: 1px solid var(--ink-2); outline-offset: 2px; }

/* ---------- Bottom: clay chips and mode control ---------- */

.bottom {
  position: fixed; left: 50%; bottom: var(--edge); transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.chips {
  display: flex; align-items: center; gap: 2px; padding: 3px 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.chips .chip-btn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.chips .chip-btn:hover { background: var(--hover); }
.chips .chip { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.chips .step { width: 22px; height: 26px; color: var(--ink-3); display: grid; place-items: center; border-radius: 6px; }
.chips .step:hover { color: var(--ink); }
.chips .step svg { width: 14px; height: 14px; }
.modes {
  display: flex; padding: 3px; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
}
.modes button { height: 30px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-size: 13px; letter-spacing: 0.01em; }
.modes button:hover { color: var(--ink); }
.modes button[aria-selected="true"] { color: #f6f2ea; background: var(--accent); }

/* ---------- Status line ---------- */

.status {
  position: fixed; left: calc(var(--edge) + 6px); bottom: calc(var(--edge) + 28px); z-index: 25;
  max-width: min(420px, calc(50vw - 150px));
  display: flex; flex-direction: column; gap: 4px;
  color: var(--ink-2); font-size: 12px;
}
.status-row { display: flex; align-items: baseline; gap: 10px; }
.status-row span { overflow: hidden; text-overflow: ellipsis; }
.status.error .status-row span { color: var(--ink); white-space: normal; }
.status.error .status-row::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); transform: translateY(-1px); }
.status .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; font-size: 12px; }
.status .link:hover { text-decoration-color: var(--ink); }
.progress { height: 1px; background: var(--line-2); width: 160px; }
.progress div { height: 1px; width: 0; background: var(--ink); transition: width 0.1s linear; }

/* ---------- Panels (floating cards) ---------- */

.panel {
  position: fixed; z-index: 40;
  width: 288px; max-height: calc(100vh - 2 * var(--edge)); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.panel:focus { outline: none; }
.panel h2 { margin: 0 0 12px; font: 400 15px/1.2 var(--serif); color: var(--ink); letter-spacing: 0.01em; }
.panel h3 { margin: 14px 0 6px; font: 400 13px/1.2 var(--serif); color: var(--ink-2); }
.panel .grab { display: none; }

.row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 58px; align-items: center; gap: 8px; min-height: 28px; }
.row > label, .row > .label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row output { text-align: right; font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.row.wide { grid-template-columns: 76px minmax(0, 1fr); }
.gap { height: 8px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line-3); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-3); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5.5px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--panel-solid), 0 0 0 4px var(--ink-2); }

select, input[type="number"], input[type="text"] {
  background: var(--field); border: 1px solid var(--line-2); border-radius: 6px;
  height: 28px; padding: 0 8px; min-width: 0; color: var(--ink);
}
select { padding-right: 4px; cursor: pointer; }
input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; padding: 0 6px; }
input[type="checkbox"] { accent-color: var(--accent); margin: 0 8px 0 0; vertical-align: -2px; }
.unit { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.unit input { width: 100%; }
.row.wide .unit { justify-self: start; }
.row.wide .unit input { width: 88px; }
.unit span { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }

/* Segmented control */
.seg { display: inline-flex; justify-self: start; border: 1px solid var(--line-2); border-radius: 7px; padding: 2px; gap: 2px; }
.seg button { height: 24px; min-width: 32px; padding: 0 9px; border-radius: 5px; color: var(--ink-2); }
.seg button:hover { color: var(--ink); background: var(--hover); }
.seg button[aria-checked="true"] { color: #f6f2ea; background: var(--accent); }
.seg.icons button { width: 36px; padding: 0; display: grid; place-items: center; }
.seg.icons svg { width: 18px; height: 18px; }
.seg.full { display: flex; }
.seg.full button { flex: 1; }

.btn {
  height: 28px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink);
}
.btn:hover { background: var(--hover); border-color: var(--line-3); }
.buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* Disclosure */
details { margin-top: 12px; border-top: 1px solid var(--line); }
details > summary {
  list-style: none; cursor: pointer; padding: 10px 0 4px; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ""; width: 5px; height: 5px; border-right: 1.25px solid currentColor; border-bottom: 1.25px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.15s; margin: 0 3px 0 1px;
}
details[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
details > summary:hover { color: var(--ink); }
details > summary:focus-visible { outline: 1px solid var(--ink-2); outline-offset: 2px; border-radius: 3px; }

/* Lists of choices: specimens, palettes, exports */
.list { list-style: none; margin: 0 -8px; padding: 0; }
.list button {
  display: block; width: 100%; padding: 7px 8px; border-radius: 7px; text-align: left; white-space: normal;
}
.list button:hover { background: var(--hover); }
.list button[aria-checked="true"], .list button.on { background: rgba(155, 43, 43, 0.22); box-shadow: inset 2px 0 0 var(--accent-ink); }
.list .name { display: block; font: 400 14px/1.3 var(--serif); color: var(--ink); }
.list .desc { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; margin-top: 1px; }
.list .item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ink); }
.list .item span:last-child { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 8px; }

.presets button { display: flex; align-items: center; gap: 10px; }
.presets .chips-s { display: inline-flex; flex: none; }
.presets .chip-s { width: 10px; height: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.presets .chip-s:first-child { border-radius: 3px 0 0 3px; }
.presets .chip-s:last-child { border-radius: 0 3px 3px 0; }
.presets .pname { line-height: 1.3; color: var(--ink); }

/* Clays: levels */
.levels { list-style: none; margin: 10px 0 0; padding: 0; }
.levels li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 46px; align-items: center; gap: 8px; padding: 2px 0; }
.levels .chip { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.levels select { width: 100%; height: 28px; }
.levels .num { text-align: right; font-size: 11.5px; color: var(--ink-2); }
.hist { width: 100%; height: 84px; display: block; margin: 6px 0 0; cursor: ew-resize; touch-action: none; border-radius: 4px; }
.hist:focus-visible { outline: 1px solid var(--ink-2); outline-offset: 2px; }
.swatches { list-style: none; margin: 4px 0 8px; padding: 0; }
.swatches li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 62px 24px; gap: 6px; align-items: center; padding: 3px 0; }
.swatches input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: none; cursor: pointer; }
.swatches input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.swatches input[type="color"]::-webkit-color-swatch { border: none; border-radius: 3px; }
.swatches .shrink { display: inline-flex; align-items: center; gap: 3px; }
.swatches .shrink input { width: 100%; }
.swatches .shrink span { color: var(--ink-3); font-size: 11px; }
.swatches .rm { width: 24px; height: 28px; color: var(--ink-3); display: grid; place-items: center; }
.swatches .rm:hover { color: var(--ink); background: var(--hover); }
.swatches .rm svg { width: 14px; height: 14px; }
.swatch-head { display: grid; grid-template-columns: minmax(0, 1fr) 92px; padding-left: 34px; color: var(--ink-3); font-size: 11px; margin-top: 6px; }

/* Build */
.figures { width: 100%; border-collapse: collapse; }
.figures th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 4px 0; }
.figures td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding: 4px 0; font-size: 12px; white-space: nowrap; }
.figures tr + tr th, .figures tr + tr td { border-top: 1px solid var(--line); }
.figures.clays { margin-top: 12px; }
.figures.clays thead th, .figures.clays thead td { color: var(--ink-3); font-size: 11px; font-family: var(--sans); padding-bottom: 2px; }
.figures.clays tbody th { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figures .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26); }
.figures .total th, .figures .total td { color: var(--ink); border-top: 1px solid var(--line-2) !important; }
.thumb-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 10px; }
.thumb-row canvas { width: 96px; height: 96px; display: block; }
.thumb-row .big { font: 400 26px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.thumb-row .cap { color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.warn { margin: 10px 0 0; padding: 0 0 0 14px; position: relative; color: var(--ink); font-size: 12px; }
.warn::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.warn a { color: var(--ink); text-decoration-color: var(--accent-ink); text-underline-offset: 2px; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
.inputs label { display: grid; gap: 3px; color: var(--ink-2); font-size: 11.5px; }

/* Facts (specimen card) */
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font-size: 12px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* Help */
.keys { border-collapse: collapse; width: 100%; }
.keys td { padding: 5px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.keys td:first-child { white-space: nowrap; padding-right: 14px; color: var(--ink); width: 1%; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 4px;
  border: 1px solid var(--line-2); border-radius: 4px;
  font-size: 11px; line-height: 1.55; text-align: center; color: var(--ink);
}
.prose p { margin: 0 0 8px; color: var(--ink-2); }
.prose p b { font-weight: 400; color: var(--ink); }

/* ---------- Drop veil ---------- */

.drop-veil {
  position: fixed; inset: 10px; z-index: 70; pointer-events: none;
  border: 1px solid var(--line-3); border-radius: 14px;
  display: grid; place-items: center;
  font: italic 17px var(--serif); color: var(--ink-2);
  background: rgba(20, 19, 18, 0.6);
}

/* ---------- Today ---------- */

.today { position: fixed; inset: 0; z-index: 60; background: #161514; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.today-head { display: flex; align-items: flex-start; justify-content: space-between; padding: calc(var(--edge) + 6px) calc(var(--edge) + 6px) 0 24px; }
.today-title { font: italic 17px/1.3 var(--serif); color: var(--ink-2); }
.today-title .date { font: 12px var(--mono); color: var(--ink-3); font-style: normal; margin-left: 10px; }
.today-figure { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 72px); min-height: 0; padding: 12px 24px; }
.today-figure canvas { width: min(56vh, 40vw); height: min(56vh, 40vw); display: block; }
.today-figure:not(.both) canvas { width: min(60vh, 70vw); height: min(60vh, 70vw); }
.today-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 16px calc(var(--edge) + 18px); }
.timer { font: 300 64px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink); }
.timer-line { height: 1px; width: 220px; background: var(--line-2); }
.timer-line div { height: 1px; width: 0; background: var(--accent-ink); }
.today-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.today-controls .btn { height: 32px; padding: 0 14px; }
.today-controls .btn.primary { background: var(--ink); color: #1a1918; border-color: var(--ink); }
.today-controls .btn.primary:hover { background: #fff; }
.today-sub { display: flex; gap: 14px; align-items: center; color: var(--ink-3); }
.today-sub .seg { border-color: var(--line); }
.today-sub .seg button { height: 22px; min-width: 30px; font-family: var(--mono); font-size: 11.5px; }
.today-close { color: var(--ink-2); }

/* ---------- Presentation still: no interface ---------- */

.still .ui, .still .caption, .still .wordmark, .still .status { display: none !important; }

#print-sheet { display: none; }
.noscript { padding: 20px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .status { max-width: calc(50vw - 160px); }
}

/* ---------- Phone: smaller buttons; panels become a bottom sheet ---------- */
@media (max-width: 640px) {
  :root { --edge: 8px; --btn: 34px; }
  .caption { top: calc(var(--edge) + 6px); left: calc(var(--edge) + var(--btn) + 18px); font-size: 14px; max-width: calc(100vw - 2 * (var(--edge) + var(--btn) + 20px)); }
  .caption .sub { display: block; font-size: 12.5px; }
  .wordmark { display: none; }
  .toolbar.right { top: calc(var(--edge) + var(--btn) + 16px); }
  .vslider { top: auto; bottom: 150px; height: min(200px, calc(100vh - 560px)); right: calc(var(--edge) + 3px); }
  .modes button { height: 32px; padding: 0 14px; }
  .status { left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + 96px); max-width: none; align-items: center; text-align: center; }
  .status .status-row { justify-content: center; }
  .panel {
    left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important;
    width: auto; max-height: 64vh; border-radius: 14px 14px 0 0; border-bottom: 0;
    background: var(--panel-solid);
    padding: 6px 18px 22px;
  }
  .panel .grab { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-3); margin: 4px auto 12px; }
  .row { grid-template-columns: 84px minmax(0, 1fr) 62px; min-height: 36px; }
  .today-figure { flex-direction: column; gap: 14px; }
  .today-figure canvas, .today-figure:not(.both) canvas { width: min(36vh, 76vw); height: min(36vh, 76vw); }
  .timer { font-size: 48px; }
}

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

/* ---------- What each mode and source shows ---------- */

.panel.wide-labels { width: 340px; }
.panel.wide-labels .row { grid-template-columns: 136px minmax(0, 1fr) 70px; }
.panel.wide-labels .row.wide { grid-template-columns: 136px minmax(0, 1fr); }
.panel.wide-labels select { width: 100%; }
body:not(.is-template) [data-panel="template"] { display: none; }
.is-template [data-panel="plane"], .is-template [data-panel="clean"], .is-template #levels-row, .is-template #adjust { display: none; }
.is-template.mode-section #corner { display: none; }
.assembly h3 { margin-top: 16px; }
.parts { list-style: none; margin: 0; padding: 0; }
.parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 5px 0; }
.parts li + li { border-top: 1px solid var(--line); }
.parts .n { color: var(--ink); }
.parts .q { font-family: var(--mono); font-size: 12px; color: var(--ink); text-align: right; }
.parts .s { grid-column: 1 / -1; color: var(--ink-3); font-size: 11.5px; }
.parts .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.26); }
.steps { margin: 0; padding-left: 18px; color: var(--ink-2); }
.steps li { margin: 0 0 6px; padding-left: 2px; }
.steps li::marker { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.not-loaf .loaf-only, .no-volume .vol-only { display: none; }
body:not(.mode-section) #offset-slider, .no-plane #offset-slider, .no-source #offset-slider { display: none; }
.mode-section .chips, .no-source .chips { display: none; }
.mode-pattern #corner, .no-gl #corner { display: none; }
