/* The walk workshop (合成工坊): materials, the furnace, the result and the shelf of records.
   Paper and ink first: the scheme's colours come from palette.js (--wr-*), the workshop's own (the chamber, quieter / louder,
   the one primary action, the disc) too, with fallbacks here. Spacing on a 4 px grid, two radii (8 controls, 14 panels),
   one hairline. Type: 12 caption, 14 body and controls, 16 titles (600), 24 secondary numbers and 40 the one main number
   (500, tabular); labels that are read are ink-2, ink-3 only for metadata; no tracked capitals.
   The tokens sit on the page root (#walks), so what is drawn outside the body (a disc on its way, the menu, the toast)
   has them too. */
.wp {
  --ws-r: 14px; --ws-r2: 8px; --ws-line: var(--wr-line); --ws-line-2: var(--wr-line-2);
  --ws-out: cubic-bezier(.23, 1, .32, 1); --ws-move: cubic-bezier(.77, 0, .175, 1);
  --ws-cap: .75rem; --ws-body: .875rem; --ws-title: 1rem;
  --ws-panel: var(--wr-solid);
  --ws-chamber: var(--wr-chamber, color-mix(in oklab, var(--wr-solid) 82%, white));
  --ws-quiet: var(--wr-quiet, oklch(.58 .12 158)); --ws-loud: var(--wr-loud, oklch(.6 .16 24));
  --ws-go: var(--wr-go, oklch(.5 .11 160)); --ws-go-ink: var(--wr-go-ink, #fff); --ws-go-soft: var(--wr-go-soft, oklch(.5 .11 160 / .12)); --ws-go-glow: var(--wr-go-glow, oklch(.5 .11 160 / .32));
  --ws-a-lum: var(--wr-a-lum, color-mix(in oklab, var(--wr-a) 58%, white)); --ws-b-lum: var(--wr-b-lum, color-mix(in oklab, var(--wr-b) 62%, white));
  --ws-disc: var(--wr-disc, oklch(.25 .016 255)); --ws-disc-edge: var(--wr-disc-edge, oklch(.38 .016 255)); --ws-disc-label: var(--wr-disc-label, oklch(.975 .006 255));
  --ws-sleeve: color-mix(in oklab, var(--wr-ink) 6%, var(--wr-solid));
  --ws-shadow: 0 1px 0 rgb(0 0 0 / .02), 0 12px 32px -24px rgb(10 20 30 / .35);
}
.ws {
  max-width: 1600px; padding: 16px 24px 48px; gap: 16px; position: relative; overflow-x: clip; grid-template-columns: minmax(0, 1fr);
}
:root[data-theme="dark"] .wp {
  color-scheme: dark;
  --ws-chamber: var(--wr-chamber, color-mix(in oklab, var(--wr-bg) 72%, black));
  --ws-quiet: var(--wr-quiet, oklch(.8 .12 158)); --ws-loud: var(--wr-loud, oklch(.76 .13 28));
  --ws-go: var(--wr-go, oklch(.8 .12 160)); --ws-go-ink: var(--wr-go-ink, oklch(.18 .03 160)); --ws-go-soft: var(--wr-go-soft, oklch(.8 .12 160 / .14)); --ws-go-glow: var(--wr-go-glow, oklch(.8 .12 160 / .3));
  --ws-a-lum: var(--wr-a-lum, color-mix(in oklab, var(--wr-a) 78%, white)); --ws-b-lum: var(--wr-b-lum, color-mix(in oklab, var(--wr-b) 80%, white));
  --ws-disc: var(--wr-disc, oklch(.29 .016 255)); --ws-disc-edge: var(--wr-disc-edge, oklch(.44 .016 255)); --ws-disc-label: var(--wr-disc-label, oklch(.9 .008 255));
  --ws-sleeve: color-mix(in oklab, var(--wr-ink) 9%, var(--wr-solid));
  --ws-shadow: 0 1px 0 rgb(255 255 255 / .02), 0 16px 36px -24px rgb(0 0 0 / .7);
}

/* the head of the section: the shared station head, the section's tab bar under it */
.wc-head.wp-head.ws-head { position: relative; --wc-row2: 2.5rem; }
.wp-sub { margin-inline-start: .5em; padding-inline-start: .5em; border-inline-start: 1px solid var(--wr-line-2); font-weight: 400; color: var(--wr-ink-3); }

.ws [hidden] { display: none !important; }
.ws *, .ws-pop *, .ws-toast * { box-sizing: border-box; }
.ws-visually, .ws-ringlist { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ws :where(button, input) { font: inherit; color: inherit; }
.ws :where(button:not(.wc-menu-btn, .wc-style)) { cursor: pointer; background: none; border: 0; padding: 0; }
.ws :where(h2, h3, p, dl, dd, ul, ol) { margin: 0; }
.ws-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ws :focus-visible, .ws-pop :focus-visible { outline: 2px solid var(--wr-ink); outline-offset: 2px; }
.ws-title { font: 600 var(--ws-title)/1.3 var(--wp-ui); letter-spacing: -.01em; color: var(--wr-ink); }
.ws-sub { font: 500 var(--ws-cap)/1.4 var(--wp-ui); color: var(--wr-ink-2); }
.ws-empty, .ws-wait, .ws-fail { font-size: var(--ws-body); line-height: 1.5; color: var(--wr-ink-2); padding: 4px 0; }
.ws-fail { color: var(--ws-loud); }
.ws-wait { display: flex; align-items: center; gap: 8px; }
.ws-wait i { width: 24px; height: 8px; flex: none; background: linear-gradient(90deg, transparent, var(--wr-ink-3), transparent) 0 0 / 200% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4q3-4 6 0t6 0 6 0 6 0' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4q3-4 6 0t6 0 6 0 6 0' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; animation: ws-flow 1.1s linear infinite; }
@keyframes ws-flow { to { background-position: -200% 0; } }
.ws-note { font-size: var(--ws-cap); line-height: 1.5; color: var(--wr-ink-3); }
.ws-link { color: var(--wr-ink); font-size: var(--ws-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ws-line-2); }

/* controls: quiet text buttons, icon buttons with a tooltip, the one primary action */
.ws-quiet { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--ws-r2); font: 500 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink-2); transition: background-color .15s ease, color .15s ease; white-space: nowrap; }
.ws-quiet-b { color: var(--wr-ink); box-shadow: inset 0 0 0 1px var(--ws-line-2); }
.ws-quiet-s { height: 28px; padding: 0 8px; }
.ws-ic { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--ws-r2); color: var(--wr-ink-2); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.ws-ic:disabled { opacity: .3; cursor: default; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .ws-quiet:hover, .ws-ic:hover { color: var(--wr-ink); background: color-mix(in srgb, var(--wr-ink) 6%, transparent); }
}
.ws :is(.ws-quiet, .ws-ic, .ws-go, .ws-leg, .ws-recipe, .ws-play, .ws-takeall):not(:disabled):active { transform: scale(.97); }
/* tooltips: a short name over an icon (hover or keyboard focus) */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 8; translate: -50% 2px; padding: 4px 8px; border-radius: 6px; font: 500 var(--ws-cap)/1.4 var(--wp-ui); letter-spacing: 0; white-space: nowrap;
  color: var(--wr-solid); background: var(--wr-ink); opacity: 0; pointer-events: none; transition: opacity .14s ease, translate .14s var(--ws-out); }
@media (hover: hover) and (pointer: fine) { [data-tip]:hover::after { opacity: 1; translate: -50% 0; transition-delay: .25s; } }
[data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; }
.ws-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ws-go); color: var(--ws-go-ink); font: 600 var(--ws-body)/1 var(--wp-ui); white-space: nowrap;
  transition: box-shadow .2s ease, opacity .2s ease, transform .16s var(--ws-out); }
.ws-go .ws-i { width: 18px; height: 18px; }
.ws-go:disabled { opacity: .32; cursor: not-allowed; }
.ws-go-s { height: 32px; padding: 0 16px; }
@media (hover: hover) and (pointer: fine) { .ws-go:not(:disabled):hover { box-shadow: 0 0 0 4px var(--ws-go-soft), 0 10px 24px -12px var(--ws-go-glow); } }
.ws-field { display: grid; gap: 4px; min-width: 0; font: 500 var(--ws-cap)/1.4 var(--wp-ui); color: var(--wr-ink-2); }
.ws-field input { height: 40px; min-width: 0; padding: 0 12px; border: 0; border-radius: var(--ws-r2); background: var(--ws-panel); box-shadow: inset 0 0 0 1px var(--ws-line-2); font: 400 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink); font-variant-numeric: tabular-nums; }
.ws-field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--wr-ink), 0 0 0 4px color-mix(in srgb, var(--wr-ink) 8%, transparent); }

/* ---- the step line and the help ---- */
.ws-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.ws-steps { list-style: none; padding: 0; display: flex; align-items: center; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ws-steps li { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--ws-cap)/1 var(--wp-ui); color: var(--wr-ink-3); white-space: nowrap; transition: color .25s ease; }
.ws-steps li + li::before { content: ""; width: 32px; height: 1px; margin: 0 8px; background: var(--ws-line-2); transition: background-color .25s ease; }
.ws-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 var(--ws-cap)/1 var(--wp-num); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--ws-line-2); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.ws-steps li[data-state="done"] { color: var(--wr-ink-2); } .ws-steps li[data-state="done"] b { box-shadow: inset 0 0 0 1px var(--wr-ink-3); }
.ws-steps li[data-state="done"] + li::before, .ws-steps li[data-state="now"]::before { background: var(--wr-ink-3); }
.ws-steps li[data-state="now"] { color: var(--wr-ink); font-weight: 600; } .ws-steps li[data-state="now"] b { background: var(--wr-ink); color: var(--wr-solid); box-shadow: none; }
.ws-help { max-width: 880px; padding: 16px 24px; border-radius: var(--ws-r); background: var(--ws-panel); box-shadow: inset 0 0 0 1px var(--ws-line), var(--ws-shadow); display: grid; gap: 12px; }
.ws-help > p { font-size: var(--ws-body); line-height: 1.6; color: var(--wr-ink-2); }
.ws-help dl { display: grid; gap: 8px; } .ws-help dl div { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: baseline; }
.ws-help dt { font: 600 var(--ws-cap)/1 var(--wp-num); color: var(--wr-ink-3); } .ws-help dd { font-size: var(--ws-body); line-height: 1.6; color: var(--wr-ink-2); }

/* ---- three columns, the furnace in the middle ---- */
.ws-grid { display: grid; grid-template-columns: minmax(296px, 344px) minmax(0, 1fr) minmax(296px, 344px); grid-template-areas: "mat lab res"; gap: 24px; align-items: start; }
.ws-mat { grid-area: mat; } .ws-lab { grid-area: lab; } .ws-res { grid-area: res; }
.ws-mat, .ws-res { position: sticky; top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ws-line-2) transparent;
  padding: 16px; border-radius: var(--ws-r); background: var(--ws-panel); box-shadow: inset 0 0 0 1px var(--ws-line), var(--ws-shadow); }
.ws-colhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ws-colhead > span { font: 500 var(--ws-cap)/1 var(--wp-num); color: var(--wr-ink-3); font-variant-numeric: tabular-nums; }
.ws-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--ws-r2); background: color-mix(in srgb, var(--wr-ink) 4%, transparent); color: var(--wr-ink-3); }
.ws-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink); }
.ws-search input::placeholder { color: var(--wr-ink-3); }
.ws-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--wr-ink); }
.ws-matlist { display: grid; gap: 8px; align-content: start; }
.ws-matlist > .ws-sub { margin-top: 8px; }
.ws-signin { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: var(--ws-r2); background: color-mix(in srgb, var(--wr-ink) 4%, transparent); font-size: var(--ws-body); line-height: 1.4; color: var(--wr-ink-2); }

/* a card per outing: its name and date, its walks as chips (route, way, the level along it, LAeq); details on hover/focus */
.ws-card { position: relative; display: grid; gap: 8px; padding: 12px; border-radius: var(--ws-r2); background: var(--ws-panel); box-shadow: inset 0 0 0 1px var(--ws-line); transition: box-shadow .2s ease, background-color .2s ease; }
.ws-card:not([data-in="0"]) { background: color-mix(in srgb, var(--ws-panel) 95%, var(--ws-go)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ws-go) 36%, var(--ws-line)); }
.ws-card.is-lit { box-shadow: inset 0 0 0 1.5px var(--wr-ink-3); }
.ws-card-top { display: flex; align-items: flex-start; gap: 8px; }
.ws-card-id { flex: 1; min-width: 0; display: grid; gap: 2px; padding-top: 6px; }
.ws-card-id h3 { font: 600 var(--ws-body)/1.35 var(--wp-ui); color: var(--wr-ink); overflow-wrap: anywhere; }
.ws-card-id span { font: 400 var(--ws-cap)/1.4 var(--wp-ui); color: var(--wr-ink-2); font-variant-numeric: tabular-nums; }
.ws-card-acts { display: flex; align-items: center; gap: 0; flex: none; margin: 0 -6px 0 0; }
.ws-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.ws-card-foot > span { font: 500 var(--ws-cap)/1 var(--wp-ui); font-variant-numeric: tabular-nums; color: var(--wr-ink-2); }
.ws-takeall { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font: 500 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink); box-shadow: inset 0 0 0 1px var(--ws-line-2); white-space: nowrap; transition: background-color .15s ease; }
.ws-takeall .ws-i { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .ws-takeall:hover { background: color-mix(in srgb, var(--wr-ink) 6%, transparent); } }
.ws-card-grp { font-size: var(--ws-cap); line-height: 1.4; color: var(--wr-ink-2); }
.ws-legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ws-legs > p { grid-column: 1 / -1; }
.ws-leg { --c: var(--wr-a); position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: var(--ws-r2); text-align: left;
  box-shadow: inset 0 0 0 1px var(--ws-line); transition: box-shadow .18s ease, background-color .18s ease, transform .16s var(--ws-out); }
.ws-leg[data-role="B"] { --c: var(--wr-b); }
.ws-leg > b { font: 600 var(--ws-body)/1 var(--wp-num); color: var(--c); }
.ws-leg-way { font: 400 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink-2); white-space: nowrap; }
.ws-spark { width: 100%; max-width: 44px; height: 16px; justify-self: center; overflow: visible; }
.ws-spark polyline { fill: none; stroke: var(--c); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .85; }
.ws-leg-l { font: 500 var(--ws-body)/1 var(--wp-num); font-variant-numeric: tabular-nums; color: var(--wr-ink); }
.ws-leg[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 9%, var(--ws-panel)); box-shadow: inset 0 0 0 1.5px var(--c); }
.ws-leg.is-lit { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
@media (hover: hover) and (pointer: fine) { .ws-leg:hover { box-shadow: inset 0 0 0 1px var(--c); } .ws-leg[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 1.5px var(--c); } }
.ws-leg-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 8; translate: -50% 2px; padding: 4px 8px; border-radius: 6px; font: 500 var(--ws-cap)/1.4 var(--wp-ui); white-space: nowrap; color: var(--wr-solid); background: var(--wr-ink);
  opacity: 0; pointer-events: none; transition: opacity .14s ease, translate .14s var(--ws-out); }
@media (hover: hover) and (pointer: fine) { .ws-leg:hover .ws-leg-tip { opacity: 1; translate: -50% 0; transition-delay: .3s; } }
.ws-leg:focus-visible .ws-leg-tip { opacity: 1; translate: -50% 0; }
.ws-load { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: var(--ws-r2); font: 500 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink-2); border: 1px dashed var(--ws-line-2); }
.ws-editor { display: grid; gap: 8px; padding: 12px; border-radius: var(--ws-r2); background: color-mix(in srgb, var(--wr-ink) 3%, transparent); }
.ws-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ws-editor .ws-field input { height: 36px; }
.ws-editor-acts { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }

/* ---- the furnace ---- */
.ws-lab { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 16px; min-width: 0; padding-top: 4px; }
.ws-vessel { position: relative; container-type: inline-size; width: min(100%, 560px, max(320px, calc(100dvh - 344px))); aspect-ratio: 1; }
.ws-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.ws-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.4cqi; pointer-events: none; text-align: center; transition: opacity .2s ease; }
.ws-core-glyph { display: grid; place-items: center; width: 13cqi; height: 13cqi; }
.ws-core-num { display: flex; align-items: baseline; gap: 2px; font: 500 max(1.5rem, 7cqi)/1 var(--wp-num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--wr-ink); }
.ws-core-num small { font: 500 max(.75rem, 2.2cqi)/1 var(--wp-ui); letter-spacing: 0; color: var(--wr-ink-3); }
.ws-core-num:empty, .ws-core-num:has(> span:empty) { display: none; }
.ws-core-cap { max-width: 34cqi; font: 500 max(.75rem, 2.3cqi)/1.3 var(--wp-ui); color: var(--wr-ink-2); }
.ws-core[data-tone="warn"] .ws-core-cap { color: var(--ws-loud); font-size: max(.875rem, 2.6cqi); }
[data-composing] .ws-core { opacity: 0; }
.ws-hint { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 0 30%; text-align: center; pointer-events: none;
  font: 400 var(--ws-body)/1.5 var(--wp-ui); color: var(--wr-ink-2); }
.ws-hint-arrow { display: grid; color: var(--wr-ink-3); animation: ws-nudge 2.4s var(--ws-move) infinite; }
.ws-hint-arrow .ws-i { width: 20px; height: 20px; }
@keyframes ws-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
.ws-narrow { display: none; }
/* the empty furnace listens: slow rings leave the inner rim, inviting a walk in */
.ws-listen { position: absolute; inset: 0; display: none; pointer-events: none; }
.ws-vessel[data-rings="0"] .ws-listen { display: block; }
.ws-listen i { position: absolute; left: 31.6%; top: 31.6%; width: 36.8%; height: 36.8%; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wr-ink) 34%, transparent); opacity: 0;
  animation: ws-listen 5.4s var(--ws-out) infinite backwards; }
.ws-listen i:nth-child(2) { animation-delay: 1.8s; } .ws-listen i:nth-child(3) { animation-delay: 3.6s; }
@keyframes ws-listen { 0% { transform: scale(1); opacity: 0; } 10% { opacity: 1; } 100% { transform: scale(2.45); opacity: 0; } }
.ws-vtools { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.ws-vtools > * { pointer-events: auto; }
.ws-count { font: 500 var(--ws-cap)/1 var(--wp-num); font-variant-numeric: tabular-nums; color: var(--wr-ink-3); padding-left: 4px; }
.ws-tip { position: absolute; left: 0; top: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: min(380px, 100%); padding: 8px 8px 8px 12px; border-radius: var(--ws-r2);
  background: var(--wr-solid); color: var(--wr-ink); box-shadow: inset 0 0 0 1px var(--ws-line-2), 0 12px 28px -14px rgb(0 0 0 / .4); font-size: var(--ws-cap); }
.ws-tip-line { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-tip-line i { width: 10px; height: 10px; border-radius: 50%; background: var(--wr-a); flex: none; } .ws-tip-line[data-role="B"] i { background: var(--wr-b); }
.ws-tip-acts { display: inline-flex; gap: 4px; margin-left: auto; }
.ws-tip-acts .ws-quiet { box-shadow: inset 0 0 0 1px var(--ws-line-2); color: var(--wr-ink); }
.ws-fly { position: absolute; left: 0; top: 0; z-index: 50; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; background: var(--wr-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wr-a) 22%, transparent), 0 0 14px var(--wr-a); }
.ws-fly[data-role="B"] { background: var(--wr-b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wr-b) 22%, transparent), 0 0 14px var(--wr-b); }
.ws-disc-fly { position: fixed; z-index: 60; pointer-events: none; transform-origin: 50% 50%; filter: drop-shadow(0 16px 24px rgb(0 0 0 / .28)); }
.ws-disc-spin, .ws-disc-spin .wdisc { display: block; width: 100%; height: 100%; }

/* the motif in the centre: how the kind of recording was walked (crucible.js motifSvg). Transform and opacity only; it
   rests when the furnace is out of view; without motion the still picture stays (walkers at the start). */
.ws-core-glyph .wm { width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wm .a { stroke: var(--wr-a); } .wm .b { stroke: var(--wr-b); } .wm .i { stroke: var(--wr-ink-3); } .wm .w { stroke: var(--ws-loud); }
.wm .n { fill: var(--wr-ink-3); stroke: none; }
.wm :is(.fa, .fb) { stroke: var(--ws-chamber); stroke-width: 1.4; } .wm .fa { fill: var(--wr-a); } .wm .fb { fill: var(--wr-b); }
.wm .faint { opacity: .38; } .wm .soft { opacity: .62; }
/* on the dark chamber the motif takes the luminous route hues, as the rings do */
:root[data-theme="dark"] .wm .a { stroke: var(--ws-a-lum); } :root[data-theme="dark"] .wm .b { stroke: var(--ws-b-lum); }
:root[data-theme="dark"] .wm .fa { fill: var(--ws-a-lum); } :root[data-theme="dark"] .wm .fb { fill: var(--ws-b-lum); }
.wm .m-orbit, .wm .m-hand { transform-origin: 24px 24px; animation: wm-turn 6s linear infinite; }
.wm .m-tail { stroke-width: 3.2; opacity: .4; }
@keyframes wm-turn { to { transform: rotate(360deg); } }
.wm .m-seq { animation: wm-seq 4.2s var(--ws-out) infinite backwards; animation-delay: calc(var(--i) * .7s); }
@keyframes wm-seq { 0% { opacity: .2; } 8%, 24% { opacity: 1; } 40%, 100% { opacity: .2; } }
.wm .m-echo { transform-origin: 24px 24px; transform: scale(var(--s)); opacity: var(--o); vector-effect: non-scaling-stroke; stroke-width: 2.2; animation: wm-echo 3.6s var(--ws-out) infinite backwards; animation-delay: calc(var(--i) * 1.2s); }
@keyframes wm-echo { 0% { transform: scale(.2); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.wm .m-top { animation: wm-top 4.4s linear infinite; } .wm .m-bot { animation: wm-bot 4.4s linear infinite; }
@keyframes wm-top {
  0% { transform: translate(0, 0); opacity: 0; } 4% { opacity: 1; }
  9.375% { transform: translate(3.34px, -6.23px); } 18.75% { transform: translate(7.25px, -10.69px); } 28.125% { transform: translate(11.53px, -13.36px); } 37.5% { transform: translate(16px, -14.25px); }
  46.875% { transform: translate(20.47px, -13.36px); } 56.25% { transform: translate(24.75px, -10.69px); } 65.625% { transform: translate(28.66px, -6.23px); } 75%, 100% { transform: translate(32px, 0); }
  82% { opacity: 1; } 92%, 100% { opacity: 0; }
}
@keyframes wm-bot {
  0% { transform: translate(0, 0); opacity: 0; } 4% { opacity: 1; }
  9.375% { transform: translate(3.34px, 6.23px); } 18.75% { transform: translate(7.25px, 10.69px); } 28.125% { transform: translate(11.53px, 13.36px); } 37.5% { transform: translate(16px, 14.25px); }
  46.875% { transform: translate(20.47px, 13.36px); } 56.25% { transform: translate(24.75px, 10.69px); } 65.625% { transform: translate(28.66px, 6.23px); } 75%, 100% { transform: translate(32px, 0); }
  82% { opacity: 1; } 92%, 100% { opacity: 0; }
}
/* crossover: out on different routes, back on the other's; a walker takes the hue of the route it is on */
.wm .m-braid1 { animation: wm-braid1 6s linear infinite; } .wm .m-braid2 { animation: wm-braid2 6s linear infinite; }
.wm .m-first { animation: wm-first 6s linear infinite; } .wm .m-then { opacity: 0; animation: wm-then 6s linear infinite; }
@keyframes wm-first { 0%, 44% { opacity: 1; } 47%, 93% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes wm-then { 0%, 44% { opacity: 0; } 47%, 93% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes wm-braid1 {
  0% { transform: translate(0, 0); } 5% { transform: translate(3.34px, -6.23px); } 10% { transform: translate(7.25px, -10.69px); } 15% { transform: translate(11.53px, -13.36px); } 20% { transform: translate(16px, -14.25px); }
  25% { transform: translate(20.47px, -13.36px); } 30% { transform: translate(24.75px, -10.69px); } 35% { transform: translate(28.66px, -6.23px); } 40%, 50% { transform: translate(32px, 0); }
  55% { transform: translate(28.66px, 6.23px); } 60% { transform: translate(24.75px, 10.69px); } 65% { transform: translate(20.47px, 13.36px); } 70% { transform: translate(16px, 14.25px); }
  75% { transform: translate(11.53px, 13.36px); } 80% { transform: translate(7.25px, 10.69px); } 85% { transform: translate(3.34px, 6.23px); } 90%, 100% { transform: translate(0, 0); }
}
@keyframes wm-braid2 {
  0% { transform: translate(0, 0); } 5% { transform: translate(3.34px, 6.23px); } 10% { transform: translate(7.25px, 10.69px); } 15% { transform: translate(11.53px, 13.36px); } 20% { transform: translate(16px, 14.25px); }
  25% { transform: translate(20.47px, 13.36px); } 30% { transform: translate(24.75px, 10.69px); } 35% { transform: translate(28.66px, 6.23px); } 40%, 50% { transform: translate(32px, 0); }
  55% { transform: translate(28.66px, -6.23px); } 60% { transform: translate(24.75px, -10.69px); } 65% { transform: translate(20.47px, -13.36px); } 70% { transform: translate(16px, -14.25px); }
  75% { transform: translate(11.53px, -13.36px); } 80% { transform: translate(7.25px, -10.69px); } 85% { transform: translate(3.34px, -6.23px); } 90%, 100% { transform: translate(0, 0); }
}
.wm .m-blk { transform-box: fill-box; transform-origin: center; animation: wm-blk 3.2s var(--ws-out) infinite backwards; animation-delay: calc(var(--i) * 1.6s); }
@keyframes wm-blk { 0% { opacity: .3; transform: scale(.92); } 10% { opacity: 1; transform: scale(1.06); } 28% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: .3; transform: scale(.92); } }
.wm .m-tick { animation: wm-tick 6s linear infinite; } .wm .m-tick.m-later { animation-delay: -3s; }
@keyframes wm-tick { 0%, 11% { opacity: .25; } 17% { opacity: 1; } 40%, 100% { opacity: .25; } }
.wm .m-jit { animation: wm-jit 1.6s steps(1, end) infinite; } .wm .m-jit.m-later { animation-delay: -.8s; }
@keyframes wm-jit { 0% { transform: translate(0, 0); } 20% { transform: translate(.9px, -.6px); } 40% { transform: translate(-.7px, .8px); } 60% { transform: translate(.6px, .7px); } 80% { transform: translate(-.9px, -.5px); } }
.ws-vessel[data-asleep] :is(.ws-listen i, .wm *) { animation-play-state: paused; }

/* the line under the furnace: the kind of recording, what it is behind a disclosure */
.ws-kind { width: min(100%, 560px); display: grid; gap: 8px; }
.ws-kind-line { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.ws-kind-glyph { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.ws-kind-line b { flex: 0 1 auto; min-width: 0; font: 600 var(--ws-title)/1.3 var(--wp-ui); letter-spacing: -.01em; }
.ws-kind-term { flex: 1 1 0; font: 500 var(--ws-cap)/1.3 var(--wp-ui); color: var(--wr-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ws-learnbtn { margin-left: auto; flex: none; }
.ws-learnbtn .ws-i { transition: transform .25s var(--ws-out); }
.ws-learnbtn[aria-expanded="true"] .ws-i { transform: rotate(180deg); }
.ws-learn { display: grid; gap: 12px; padding: 12px 16px; border-radius: var(--ws-r2); background: color-mix(in srgb, var(--wr-ink) 3.5%, transparent); }
.ws-learn > p { font-size: var(--ws-body); line-height: 1.55; color: var(--wr-ink-2); }
.ws-learn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws-learn-cols b { display: block; margin-bottom: 4px; font: 600 var(--ws-cap)/1.4 var(--wp-ui); color: var(--wr-ink); }
.ws-learn-cols ul { padding-left: 16px; display: grid; gap: 4px; font-size: var(--ws-body); line-height: 1.5; color: var(--wr-ink-2); }
.ws-learn-cols p { font-size: var(--ws-body); line-height: 1.5; color: var(--wr-ink-2); }
.ws-learn-meta { font: 400 var(--ws-cap)/1.4 var(--wp-ui); color: var(--wr-ink-3); font-variant-numeric: tabular-nums; }
.ws-why { font-size: var(--ws-body); line-height: 1.5; color: var(--ws-loud); }

/* recipes: one quiet row of glyphs, the name on hover */
.ws-recipes { width: min(100%, 560px); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 32px; }
.ws-rlabel { margin-right: 4px; font: 500 var(--ws-cap)/1 var(--wp-ui); color: var(--wr-ink-2); }
.ws-rlabel-demo { margin-left: 8px; color: var(--wr-ink-3); }
.ws-recipe { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ws-line); transition: box-shadow .18s ease, background-color .18s ease, transform .16s var(--ws-out); }
@media (hover: hover) and (pointer: fine) { .ws-recipe:hover { box-shadow: inset 0 0 0 1px var(--wr-ink-3); background: color-mix(in srgb, var(--wr-ink) 4%, transparent); } }
.ws-compose { width: min(100%, 560px); display: grid; grid-template-columns: minmax(0, 1fr) 156px auto; gap: 8px; align-items: end; }
.ws-compose[data-ready="1"] .ws-go:not(:disabled) { box-shadow: 0 0 0 0 var(--ws-go-glow); animation: ws-ready 3s ease-in-out infinite; }
@keyframes ws-ready { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px var(--ws-go-soft); } }
[data-composing] .ws-compose .ws-go { pointer-events: none; animation: none; }

/* glyphs of the kinds (crucible.js glyphSvg) */
.wg { fill: none; stroke-width: 1.5; stroke-linecap: round; overflow: visible; }
.wg .a { stroke: var(--wr-a); } .wg .b { stroke: var(--wr-b); } .wg .i { stroke: var(--wr-ink-3); } .wg .w { stroke: var(--ws-loud); }
.wg .d { stroke-dasharray: 2 2.4; } .wg .f { fill: var(--wr-a); stroke: none; }
/* discs (crucible.js discSvg): lacquer, grooves in the luminous route hues, the label */
.wdisc { display: block; overflow: visible; }
.wdisc .wd-body { fill: var(--ws-disc); stroke: var(--ws-disc-edge); stroke-width: .8; }
.wdisc .wd-sheen { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 10; stroke-dasharray: 40 108; transform: rotate(-60deg); }
.wdisc :is(.ga, .gb) { fill: none; stroke-width: 1.15; stroke-linejoin: round; } .wdisc .ga { stroke: var(--ws-a-lum); } .wdisc .gb { stroke: var(--ws-b-lum); }
.wdisc .wd-label { fill: var(--ws-disc-label); } .wdisc .wd-hole { fill: var(--ws-disc); }
.wdisc .wg { stroke-width: 1.7; }

/* ---- the result ---- */
.ws-headline { display: grid; gap: 16px; }
.ws-hero { display: grid; gap: 6px; }
.ws-hero strong { display: flex; align-items: baseline; gap: 2px; font: 500 2.5rem/1 var(--wp-num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--wr-ink); }
.ws-hero small { font: 500 var(--ws-cap)/1 var(--wp-ui); letter-spacing: 0; color: var(--wr-ink-3); }
.ws-hero-cap { display: flex; align-items: center; gap: 6px; font: 500 var(--ws-cap)/1.4 var(--wp-ui); color: var(--wr-ink-2); }
.ws-tone { display: none; width: 10px; height: 10px; flex: none; border-radius: 50%; }
.ws-hero[data-tone="quiet"] .ws-tone { display: block; background: var(--ws-quiet); } .ws-hero[data-tone="loud"] .ws-tone { display: block; background: var(--ws-loud); }
.ws-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--ws-line); }
.ws-more div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.ws-more dt { font: 500 var(--ws-cap)/1.35 var(--wp-ui); color: var(--wr-ink-2); }
.ws-more dd { display: flex; align-items: baseline; gap: 2px; font: 500 1.5rem/1 var(--wp-num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--wr-ink); }
.ws-more dd small { font: 500 var(--ws-cap)/1 var(--wp-ui); letter-spacing: 0; color: var(--wr-ink-3); }
.ws-res[data-empty] .ws-tabs { display: none; }
.ws-tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--ws-line); }
.ws-tabs button { height: 40px; padding: 0 8px; font: 500 var(--ws-body)/1 var(--wp-ui); color: var(--wr-ink-2); transition: color .2s ease; white-space: nowrap; }
.ws-tabs button[aria-selected="true"] { color: var(--wr-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .ws-tabs button:hover { color: var(--wr-ink); } }
.ws-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 40px; background: var(--wr-ink); transition: transform .3s var(--ws-out), width .3s var(--ws-out); }
.ws-pane { display: grid; gap: 12px; align-content: start; }
.ws-bars { display: grid; gap: 8px; }
.ws-bar { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 3.6em; gap: 8px; align-items: center; font-size: var(--ws-cap); color: var(--wr-ink-2); }
.ws-bar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-bar i { position: relative; height: 12px; } .ws-bar i::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ws-line-2); }
.ws-bar u { position: absolute; top: 2px; height: 8px; left: 50%; width: calc(var(--w) * 50%); border-radius: 0 4px 4px 0; background: var(--ws-loud); transform-origin: left center; animation: ws-grow .6s var(--ws-out) .08s backwards; }
.ws-bar[data-sign="-"] u { left: auto; right: 50%; border-radius: 4px 0 0 4px; transform-origin: right center; }
.ws-bar[data-tone="quiet"] u { background: var(--ws-quiet); } .ws-bar[data-tone="even"] u { background: var(--wr-ink-3); }
@keyframes ws-grow { from { transform: scaleX(0); } }
.ws-bar b { text-align: right; font: 500 var(--ws-body)/1 var(--wp-num); color: var(--wr-ink); font-variant-numeric: tabular-nums; }
.ws-bar-axis { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 3.6em; gap: 8px; font: 400 var(--ws-cap)/1 var(--wp-num); color: var(--wr-ink-3); }
.ws-bar-axis i { display: flex; justify-content: space-between; font-style: normal; } .ws-bar-axis em { font-style: normal; } .ws-bar-axis > span:last-child { text-align: right; }
.ws-strip { display: grid; gap: 8px; }
.ws-strip-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: center; }
.ws-strip-row b { font: 600 var(--ws-cap)/1 var(--wp-num); color: var(--wr-a); } .ws-strip-row[data-role="B"] b { color: var(--wr-b); }
.ws-strip-row > div { position: relative; height: 16px; } .ws-strip-row > div::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ws-line); }
.ws-strip-row i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--wr-a); box-shadow: 0 0 0 2px var(--ws-panel); }
.ws-strip-row[data-role="B"] i { background: var(--wr-b); }
.ws-strip-row u { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--wr-ink); opacity: .55; }
.ws-strip-axis { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; } .ws-strip-axis > div { display: flex; justify-content: space-between; font: 400 var(--ws-cap)/1 var(--wp-num); color: var(--wr-ink-3); } .ws-strip-axis em { font-style: normal; }
.ws-tablewrap { overflow-x: auto; scrollbar-width: thin; }
.ws-table { border-collapse: collapse; width: 100%; font: 400 var(--ws-body)/1.3 var(--wp-num); font-variant-numeric: tabular-nums; color: var(--wr-ink); }
.ws-table th { text-align: left; padding: 8px 12px 6px 0; font: 500 var(--ws-cap)/1.3 var(--wp-ui); color: var(--wr-ink-3); border-bottom: 1px solid var(--ws-line-2); white-space: nowrap; }
.ws-table th small { margin-left: 2px; font: inherit; color: var(--wr-ink-3); opacity: .8; }
.ws-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ws-line); white-space: nowrap; }
.ws-table :is(th, td).n { text-align: right; padding: 8px 0 8px 10px; }
.ws-table :is(th, td).n + :is(th, td):not(.n) { padding-left: 16px; }
.ws-table th.n { padding-bottom: 6px; }
.ws-table td.ws-th { font: 400 var(--ws-body)/1.4 var(--wp-ui); color: var(--wr-ink-2); white-space: normal; }
.ws-kv td { vertical-align: baseline; } .ws-kv td.n { width: 1%; } .ws-kv td.u { width: 1%; padding: 8px 0 8px 2px; font: 500 var(--ws-cap)/1 var(--wp-ui); color: var(--wr-ink-3); }
.ws-kv tr:first-child td { padding-top: 0; }
.ws-table tr[data-role] td b { color: var(--wr-a); } .ws-table tr[data-role="B"] td b { color: var(--wr-b); }
.ws-table tr[data-role] td:first-child i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--wr-a); } .ws-table tr[data-role="B"] td:first-child i { background: var(--wr-b); }
.ws-fig { margin: 0; display: grid; gap: 8px; } .ws-fig canvas { width: 100%; display: block; } .ws-fig figcaption { font-size: var(--ws-cap); line-height: 1.5; color: var(--wr-ink-3); }
.ws-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--ws-cap); color: var(--wr-ink-2); }
.ws-legend span { display: inline-flex; align-items: center; gap: 6px; } .ws-legend i { width: 12px; height: 2px; border-radius: 1px; background: var(--wr-a); } .ws-legend [data-role="B"] i { background: var(--wr-b); }

/* ---- the shelf of records: each in its sleeve, the sleeve shows the kind ---- */
.ws-shelf { display: grid; gap: 20px; padding-top: 8px; }
.ws-shelf-group { display: grid; gap: 8px; }
.ws-disclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.ws-disclist > p { grid-column: 1 / -1; padding: 8px 0; }
.ws-rec { display: grid; grid-template-rows: auto auto 1fr; gap: 8px; padding: 10px; border-radius: var(--ws-r); background: var(--ws-panel); box-shadow: inset 0 0 0 1px var(--ws-line); transition: box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) { .ws-rec:hover { box-shadow: inset 0 0 0 1px var(--ws-line-2), var(--ws-shadow); } }
.ws-rec-art { --sl: 96px; --rest: 18px; --out: 46px; position: relative; display: block; height: var(--sl); margin-bottom: 4px; }
.ws-sleeve { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: var(--sl); height: var(--sl); border-radius: 4px; background: var(--ws-sleeve);
  box-shadow: inset 0 0 0 1px var(--ws-line), 4px 0 8px -6px rgb(0 0 0 / .4); }
.ws-vinyl { position: absolute; left: 4px; top: 4px; width: 88px; height: 88px; translate: var(--rest) 0; rotate: var(--turn, 0deg); transition: translate .32s var(--ws-out); }
.ws-vinyl .wdisc { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .ws-rec:hover .ws-vinyl { translate: var(--out) 0; } .ws-rec:hover .ws-vinyl .wdisc { animation: ws-spin 9s linear infinite; } }
.ws-rec:focus-within .ws-vinyl { translate: var(--out) 0; }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-rec-art.is-waiting .ws-vinyl { visibility: hidden; }
.ws-rec-text { display: grid; gap: 2px; min-width: 0; align-content: start; }
.ws-rec-text h3 { font: 600 var(--ws-body)/1.35 var(--wp-ui); color: var(--wr-ink); overflow-wrap: anywhere; }
.ws-rec-text span { font-size: var(--ws-cap); line-height: 1.4; color: var(--wr-ink-3); font-variant-numeric: tabular-nums; }
.ws-rec-acts { display: flex; align-items: center; justify-content: space-between; gap: 4px; align-self: end; }
.ws-play { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; color: var(--wr-solid); background: var(--wr-ink); font: 500 var(--ws-body)/1 var(--wp-ui); text-decoration: none; transition: transform .16s var(--ws-out), box-shadow .2s ease; }
.ws-play .ws-i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) { .ws-play:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--wr-ink) 10%, transparent); } }
.ws-rec.is-landed { animation: ws-landed .9s var(--ws-out); }
@keyframes ws-landed { 0% { box-shadow: inset 0 0 0 1.5px var(--ws-go), 0 0 0 0 var(--ws-go-glow); } 60% { box-shadow: inset 0 0 0 1.5px var(--ws-go), 0 0 0 12px transparent; } 100% { box-shadow: inset 0 0 0 1px var(--ws-line); } }
.ws-pop { position: absolute; left: 0; top: 0; z-index: 70; display: grid; gap: 2px; min-width: 200px; padding: 4px; border-radius: var(--ws-r2); background: var(--wr-solid); color: var(--wr-ink); box-shadow: inset 0 0 0 1px var(--wr-line-2), 0 16px 36px -16px rgb(0 0 0 / .45); }
.ws-pop[hidden] { display: none; }
.ws-pop button { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: 400 var(--ws-body)/1 var(--wp-ui); text-align: left; cursor: pointer; }
.ws-pop button .ws-i { color: var(--wr-ink-2); }
.ws-pop button:hover, .ws-pop button:focus-visible { background: color-mix(in srgb, var(--wr-ink) 6%, transparent); outline: none; }
.ws-pop button[data-act="recDel"], .ws-pop button[data-act="recDel"] .ws-i { color: var(--ws-loud, #c0442c); }
.ws-overview { display: grid; gap: 12px; padding: 16px; border-radius: var(--ws-r); background: var(--ws-panel); box-shadow: inset 0 0 0 1px var(--ws-line); }
.ws-ov { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 24px; align-items: center; } .ws-ov canvas { width: 100%; aspect-ratio: 1; display: block; } .ws-ov > div { display: grid; gap: 12px; }
.ws-ovfig { display: flex; align-items: baseline; gap: 8px; } .ws-ovfig strong { font: 500 1.5rem/1 var(--wp-num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .ws-ovfig small { font-size: var(--ws-cap); color: var(--wr-ink-3); } .ws-ovfig span { font-size: var(--ws-cap); color: var(--wr-ink-2); }
.ws-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; font-size: var(--ws-body);
  background: var(--wr-ink); color: var(--wr-solid); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); transform: translate(-50%, 140%); opacity: 0; transition: transform .38s var(--ws-out), opacity .25s ease; pointer-events: none; }
.ws-toast.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.ws-toast .ws-link { color: inherit; font-weight: 600; text-decoration-color: currentColor; background: none; border: 0; cursor: pointer; font-size: inherit; padding: 0; }

/* ---- narrower screens: the furnace first, then the materials, then the result ---- */
@media (max-width: 1199px) {
  .ws-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lab" "mat" "res"; gap: 16px; }
  .ws-mat, .ws-res { position: static; max-height: none; overflow: visible; }
  .ws-vessel { width: min(100%, 520px); }
  .ws-wide { display: none; } .ws-narrow { display: inline; } .ws-hint-arrow { animation-name: ws-nudge-down; }
}
@keyframes ws-nudge-down { 0%, 100% { transform: rotate(-90deg) translateX(0); } 50% { transform: rotate(-90deg) translateX(-8px); } }
@media (min-width: 720px) and (max-width: 1199px) { .ws-matlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-matlist > .ws-sub { grid-column: 1 / -1; } .ws-matlist > :is(.ws-signin, .ws-empty, .ws-wait, .ws-fail) { grid-column: 1 / -1; } }
@media (max-width: 719px) {
  .ws { padding: 12px 16px 96px; }
  .ws-top { gap: 8px; } .ws-steps li + li::before { width: 12px; margin: 0 4px; }
  .ws-compose { grid-template-columns: minmax(0, 1fr) 128px; position: sticky; bottom: 0; z-index: 5; width: calc(100% + 32px); margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--wr-bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--ws-line); }
  .ws-compose .ws-go { grid-column: 1 / -1; }
  .ws-learn-cols { grid-template-columns: 1fr; }
  .ws-kind-term { display: none; }
  .ws-disclist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ws-ov { grid-template-columns: 1fr; } .ws-ov canvas { max-width: 280px; }
  .ws-hint { padding: 0 26%; }
}
@media (prefers-reduced-motion: reduce) { .ws *, .ws *::before, .ws *::after { animation: none !important; transition-duration: .01ms !important; } }
:root[data-motion="reduced"] .ws *, :root[data-motion="reduced"] .ws *::before, :root[data-motion="reduced"] .ws *::after { animation: none !important; transition-duration: .01ms !important; }
/* single-column grids keep their one track inside their box: a percentage width or a long line inside never widens them */
:is(.ws-kind, .ws-learn, .ws-headline, .ws-pane, .ws-card, .ws-help, .ws-editor, .ws-shelf, .ws-matlist, .ws-bars, .ws-strip, .ws-fig, .ws-overview) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) and (max-width: 1199px) { .ws-matlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
