/* FlossForge -- warm paper, deep ink, one thread of accent colour.
   Everything is fluid; the follow-along mode has to work one-handed on a phone. */

:root {
  --paper:      #f7f4ef;
  --paper-2:    #fffdfa;
  --ink:        #221c18;
  --ink-2:      #5b5049;
  --ink-3:      #8d8078;
  --line:       #e4ddd3;
  --line-2:     #d5cabc;
  --accent:     #b23a2e;
  --accent-2:   #8f2c22;
  --accent-ink: #fff8f4;
  --gold:       #c08a2e;
  --good:       #2f7d5b;
  --warn:       #a86a12;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(40,28,20,.05), 0 8px 24px -12px rgba(40,28,20,.22);
  --shadow-lg:  0 2px 6px rgba(40,28,20,.06), 0 28px 60px -28px rgba(40,28,20,.36);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --chart-bg:   #fbf9f6;
  --chart-ink:  #6b5f56;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #17130f;
    --paper-2:    #201a16;
    --ink:        #f2ece5;
    --ink-2:      #c0b4aa;
    --ink-3:      #8e8177;
    --line:       #342c25;
    --line-2:     #453a31;
    --accent:     #e2705f;
    --accent-2:   #f08d7c;
    --accent-ink: #1a100c;
    --gold:       #dfae5c;
    --good:       #6cc39a;
    --warn:       #dfae5c;
    --shadow:     0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
    --shadow-lg:  0 2px 6px rgba(0,0,0,.4), 0 28px 60px -28px rgba(0,0,0,.9);
    --chart-bg:   #241d18;
    --chart-ink:  #a99c92;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* a faint woven texture, so the page feels like cloth rather than a form */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 82% -8%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    radial-gradient(52rem 38rem at 4% 4%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%);
}

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: min(1160px, 100% - 1.75rem); } }

.skip {
  position: absolute; left: -999px;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 99;
}
.skip:focus { left: 0; top: 0; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; line-height: 1.16; margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
.muted { color: var(--ink-2); }
.small { font-size: .86rem; }

:where(button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--accent); }
.mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.topnav { display: flex; gap: .4rem; }
.topnav a.ghost { text-decoration: none; }
@media (max-width: 560px) { .topnav a.ghost { display: none; } }

.keydot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.keydot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }

/* ------------------------------------------------------------------ buttons */
button { font: inherit; color: inherit; cursor: pointer; }

.primary {
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent-2);
  padding: .78rem 1.5rem; border-radius: 999px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 10px 22px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
}
.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.primary:active { transform: translateY(0); }
.primary[disabled] { opacity: .55; cursor: progress; transform: none; }

.ghost {
  background: transparent; border: 1px solid var(--line-2);
  padding: .5rem .95rem; border-radius: 999px; font-size: .92rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .16s ease, border-color .16s ease;
}
.ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); border-color: var(--ink-3); }
.ghost.sm { padding: .42rem .7rem; font-size: .88rem; }
.ghost[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ------------------------------------------------------------------ the ask */
.ask { padding: clamp(2.4rem, 7vw, 5rem) 0 2rem; }
.ask h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: 20ch; }
.ask h1 span { color: var(--ink-2); }
.lede { color: var(--ink-2); max-width: 62ch; font-size: clamp(1rem, 1.6vw, 1.09rem); margin: 1.1rem 0 2rem; }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ask-card { padding: clamp(1.1rem, 2.6vw, 1.6rem); }

.field { display: block; margin-bottom: 1rem; }
.label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .42rem; }
.label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }

textarea, input[type=text], input[type=number], input[type=password], select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { resize: vertical; min-height: 3.2rem; line-height: 1.5; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); outline: none; }
#prompt { font-size: 1.12rem; font-family: var(--serif); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: right 1rem center, right .7rem center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.3rem 0 1.1rem; }
.chip {
  background: color-mix(in srgb, var(--gold) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--ink-2);
  padding: .34rem .8rem; border-radius: 999px; font-size: .86rem;
  transition: background .14s ease, color .14s ease;
}
.chip:hover { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); }

.tune { border-top: 1px solid var(--line); padding-top: .9rem; margin-bottom: 1rem; }
.tune > summary { cursor: pointer; list-style: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: .45rem; }
.tune > summary::-webkit-details-marker { display: none; }
.tune > summary::before { content: "›"; display: inline-block; transition: transform .18s ease; font-size: 1.2rem; line-height: 1; }
.tune[open] > summary::before { transform: rotate(90deg); }
.tune-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 1rem; margin-top: 1rem; }
.seedrow { display: flex; gap: .4rem; }
.seedrow > :first-child { flex: 1; min-width: 0; }

.styles { border: 0; padding: 0; margin: .2rem 0 1rem; }
.styles legend { font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); padding: 0; margin-bottom: .5rem; }
.stylegrid { display: flex; flex-wrap: wrap; gap: .45rem; }
.styletog { position: relative; }
.styletog input { position: absolute; opacity: 0; pointer-events: none; }
.styletog span {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .85rem;
  font-size: .89rem; cursor: pointer; user-select: none;
  transition: all .14s ease;
}
.styletog input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.styletog input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.styletog span::before { content: "＋"; font-size: .8em; opacity: .55; }
.styletog input:checked + span::before { content: "✓"; opacity: 1; }

.filerow { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
input[type=file] { font-size: .9rem; max-width: 100%; }
.imgprev { margin-top: .6rem; }
.imgprev img { max-height: 110px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }

.go { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gonote { margin: 0; font-size: .88rem; color: var(--ink-3); }

/* spinner while thinking */
.primary.busy .go-label::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .6em; vertical-align: -.05em;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 40%, transparent);
  border-top-color: var(--accent-ink); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ results */
.results { padding: 1.5rem 0 2rem; scroll-margin-top: 76px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.results-head h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }

.pcard {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.pcard:hover, .pcard:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 26%, transparent), var(--shadow-lg); }
.pcard-art {
  position: relative;
  height: 190px; display: grid; place-items: start center; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 3%, transparent) 0 6px, transparent 6px 12px),
    color-mix(in srgb, var(--ink) 4%, transparent);
}
/* The fade has to sit ABOVE the artwork, or the band just gets guillotined. */
.pcard-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 78px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--paper-2) 88%);
}
.pcard-art svg { width: 96px; height: auto; filter: drop-shadow(0 6px 14px rgba(30,20,14,.2)); }
.pcard-body { padding: .1rem .95rem 1rem; }
.pcard h3 { font-size: 1.04rem; margin-bottom: .3rem; }
.pcard p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }

.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2);
}
.tag.style { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.tag.warn  { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tag.good  { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }

.notice {
  margin-top: 1.2rem; padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  font-size: .9rem; color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* skeleton cards while generating */
.skel { height: 300px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; position: relative; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ink) 6%, transparent) 45%, transparent 70%);
  animation: sweep 1.5s ease-in-out infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ------------------------------------------------------------------ detail */
.detail { padding: 2rem 0 4rem; scroll-margin-top: 70px; }
.detail-in { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 560px) { .detail-in { width: min(1160px, 100% - 1.75rem); } }

.dhead { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.3rem; }
.dhead h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.dhead p { margin: .45rem 0 0; color: var(--ink-2); max-width: 58ch; }
.dactions { display: flex; gap: .45rem; flex-wrap: wrap; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 560px) {
  /* Let the strip run to the screen edges so the last tab isn't half-hidden. */
  .tabs { margin-inline: -.875rem; padding-inline: .875rem; scroll-padding-inline: .875rem; }
  .tab { padding: .65rem .6rem; font-size: .88rem; }
}
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: .65rem .9rem; font-size: .95rem; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  transition: color .16s ease, border-color .16s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.panel[hidden] { display: none; }

.split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.bandbox {
  position: sticky; top: 76px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow); text-align: center;
}
@media (max-width: 820px) { .bandbox { position: static; } }
.bandbox svg { width: min(200px, 100%); height: auto; filter: drop-shadow(0 10px 22px rgba(30,20,14,.18)); }
.bandcap { font-size: .8rem; color: var(--ink-3); margin: .8rem 0 0; }

.block { margin-bottom: 2.2rem; }
.block > h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.block > .sub { color: var(--ink-3); font-size: .88rem; margin: 0 0 .9rem; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap, th.nowrap { white-space: nowrap; }
.dot { width: 15px; height: 15px; border-radius: 4px; display: inline-block; vertical-align: -2px; margin-right: .5rem; border: 1px solid rgba(0,0,0,.2); }

.maths { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); line-height: 1.7; margin: .35rem 0 0; }
.maths span { display: block; }

.chartbox { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; overflow-x: auto; box-shadow: var(--shadow); }
.chartbox svg { display: block; margin-inline: auto; max-width: 100%; height: auto; }
.chartbox svg text { fill: var(--chart-ink); font-family: var(--sans); }
.chartbox svg .rownum { font-size: 11px; font-variant-numeric: tabular-nums; }
.chartbox svg .tiny { font-size: 11px; font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; font-size: .86rem; color: var(--ink-2); }
.legend b { font-family: var(--mono); color: var(--ink); }

/* ---------------------------------------------------------- instructions */
.steps { counter-reset: step; max-width: 68ch; }
.step {
  display: grid; grid-template-columns: 2rem 1fr; gap: .1rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.step-n {
  grid-row: span 2; font-family: var(--serif); font-size: 1.15rem; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; margin-bottom: .25rem; }
.step p { margin: 0 0 .4rem; color: var(--ink-2); }
.step .why { font-size: .87rem; color: var(--ink-3); font-style: italic; }
.step ul { margin: .3rem 0; padding-left: 1.1rem; color: var(--ink-2); }
.step code, code.k {
  font-family: var(--mono); font-size: .85em; background: color-mix(in srgb, var(--ink) 7%, transparent);
  padding: .1em .38em; border-radius: 5px;
}

.rowguide { display: flex; flex-wrap: wrap; gap: .3rem; margin: .55rem 0; }
.kchip {
  font-family: var(--mono); font-size: .82rem; font-weight: 700;
  min-width: 2rem; text-align: center;
  padding: .28rem .42rem; border-radius: 7px; border: 1px solid rgba(0,0,0,.18);
}

/* follow-along */
.follow { max-width: 46rem; margin-inline: auto; }
.followcard {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow); min-height: 22rem;
}
.followcard .step { border: 0; padding: 0; }
.progress { height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; margin-bottom: 1.2rem; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s cubic-bezier(.4,0,.2,1); }
.followbar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .8rem 0 max(.8rem, env(safe-area-inset-bottom));
  margin-top: 1.2rem;
  background: linear-gradient(to top, var(--paper) 62%, transparent);
}
.followbar .count { font-size: .88rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ dialogs */
dialog.sheet {
  width: min(560px, calc(100% - 2rem)); max-height: min(88vh, 900px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); color: var(--ink);
  padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
  overflow: auto;
}
dialog.sheet::backdrop { background: rgba(28,20,14,.5); backdrop-filter: blur(3px); }
dialog.sheet h2 { font-size: 1.45rem; margin-bottom: .5rem; padding-right: 2rem; }
dialog.sheet h3 { font-size: 1rem; margin: 1.4rem 0 .5rem; }
dialog.sheet p { margin: 0 0 1rem; color: var(--ink-2); }
.sheet-x { position: absolute; top: .8rem; right: .8rem; margin: 0; }
.sheet-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.2rem; }
.keystatus { margin: .8rem 0 0; font-size: .9rem; min-height: 1.4em; }
.keystatus.ok { color: var(--good); }
.keystatus.bad { color: var(--accent); }

.help {
  background: color-mix(in srgb, var(--gold) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent);
  border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; font-size: .9rem;
}
.help p { margin: 0 0 .5rem; color: var(--ink-2); }
.help p:last-child { margin-bottom: 0; }
.help ol { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--ink-2); }
.help li { margin-bottom: .3rem; }
.help .limits { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .7rem; font-size: .82rem; color: var(--ink-3); }
.help .limits b { color: var(--ink-2); font-weight: 600; }

.knotlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.knotlist li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: center; font-size: .92rem; color: var(--ink-2); }
.knotlist b { font-family: var(--mono); font-size: 1.05rem; color: var(--ink); text-align: center; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 7px; padding: .2rem 0; }

/* ------------------------------------------------------------------- foot */
.foot { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
.foot p { margin: 0 0 .5rem; max-width: 70ch; }

@media print {
  .topbar, .ask, .tabs, .dactions, .followbar, .foot, dialog { display: none !important; }
  body::before { display: none; }
  .panel[hidden] { display: block !important; }
  .bandbox { position: static; }
  .step { break-inside: avoid; }
}
