.class-home { padding: 56px 0 8px; }
.class-home-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 28px; }
.class-stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  margin: 8px 0 28px;
}
.class-kicker {
  margin: 0;
  color: #3f5a34;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.class-stage > h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 8px 0 10px;
}
.detail-grid .class-stage > h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.class-promise, .class-notebook > p, .class-note p { max-width: 68ch; }
.class-promise { color: var(--ink); margin-bottom: 16px; }
.class-nav, .class-controls { display: none; }
.class-stage.is-ready .class-nav,
.class-stage.is-ready .class-controls { display: flex; }
.class-next { display: flex; }
.class-nav { flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.class-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  font-size: .84rem;
}
.class-tab[aria-selected="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.class-stage.is-ready .class-beat { display: none; }
.class-stage.is-ready .class-beat.is-active { display: block; }
.class-step { margin: 0 0 4px; color: #3f5a34; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.class-beat h3, .class-notebook h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  margin: 0 0 8px;
}
.class-say { margin-bottom: 14px; }
.class-visual {
  background: #f6f5ef;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.class-caption { margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: #3f5a34; }
.class-scroll { overflow-x: auto; }
.class-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.class-table th, .class-table td { padding: 8px 10px; border-bottom: 1px solid #e1e3d8; text-align: left; vertical-align: top; }
.class-table th { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #3f5a34; }
.class-row { transition: opacity .45s ease; }
.class-beat.is-result .class-row-drop { display: none; }
.class-beat.is-armed .class-row-drop,
.class-beat.is-playing:not(.is-settled) .class-row-drop { display: table-row; }
.class-beat.is-playing:not(.is-settled) .class-row-drop { opacity: .4; text-decoration: line-through; }
.class-beat.is-settled .class-row-drop { display: none; }
.class-badge { display: none; font-weight: 700; }
.class-beat.is-playing:not(.is-settled) .class-badge { display: inline; }
.class-meter { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.class-meter li { display: grid; gap: 4px; }
.class-meter-label { display: flex; gap: 8px; align-items: baseline; }
.class-sign { font-weight: 700; min-width: 1ch; }
.class-track { display: block; height: 8px; border-radius: 99px; background: #e4e6dc; }
.class-bar { display: block; height: 100%; border-radius: inherit; background: var(--forest); width: 8%; transition: width .6s ease; }
.class-bar[data-level="1"] { width: 12%; }
.class-bar[data-level="2"] { width: 22%; }
.class-bar[data-level="3"] { width: 32%; }
.class-bar[data-level="4"] { width: 42%; }
.class-bar[data-level="5"] { width: 52%; }
.class-bar[data-level="6"] { width: 62%; }
.class-bar[data-level="7"] { width: 72%; }
.class-bar[data-level="8"] { width: 82%; }
.class-bar[data-level="9"] { width: 92%; }
.class-bar[data-level="10"] { width: 100%; }
.class-beat.is-armed:not(.is-playing) .class-bar { width: 8%; }
.class-result { margin: 12px 0 0; font-weight: 700; }
.class-aside { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.class-seq { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.class-seq-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-left: 3px solid #647d42;
  background: #fff;
  border-radius: 0 8px 8px 0;
  transition: opacity .35s ease;
}
.class-seq-item.is-xl { font-size: 1.2rem; }
.class-seq-item.is-sm { font-size: .92rem; }
.class-seq-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3f5a34; }
.class-seq-title { font-weight: 700; }
.class-beat.is-armed:not(.is-playing) .class-seq-item:not(:first-child) { border-left-color: #c9cdc0; }
.class-beat.is-playing .class-seq-item { border-left-color: #647d42; }
.class-swatches { display: flex; gap: 10px; margin-bottom: 12px; }
.class-swatch {
  display: grid;
  place-items: center;
  width: 72px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #c9cdc0;
  font-weight: 700;
}
.swatch-fail { background: #9ca3af; color: #fff; }
.swatch-pass { background: #6b7280; color: #fff; }
.class-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.class-before, .class-after { background: #fff; border-radius: 8px; padding: 12px; }
.class-before ul, .class-after ul { margin: 0; padding-left: 1.1rem; }
.class-after { border: 1px solid #647d42; }
.class-beat.is-armed:not(.is-playing) .class-after { border-style: dashed; }
.class-beat.is-playing .class-after { border-style: solid; background: #f3f7ea; }
.class-live { margin: 0; font-weight: 700; }
.class-controls { flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.class-check { margin-top: 18px; }
.class-check legend { font-weight: 700; margin-bottom: 8px; }
.class-choices { display: grid; gap: 8px; }
.class-choice {
  min-height: 44px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--control);
  border-radius: 8px;
  background: #fff;
}
.class-choice.is-right { border-color: #3f5a34; background: #eef3e4; }
.class-choice.is-wrong { border-color: #6e4b32; background: #f8f1ea; }
.class-why { margin-top: 8px; }
.class-notebook { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.class-search { display: grid; gap: 6px; font-weight: 700; margin: 12px 0; max-width: 420px; }
.class-search input { min-height: 44px; padding: 8px 10px; border: 1px solid var(--control); border-radius: 8px; background: #fff; }
.class-note { border-bottom: 1px solid #e7e9e0; padding: 8px 0; }
.class-note summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.class-source { color: #3f5a34; font-size: .82rem; font-weight: 700; }
.class-miss { color: var(--ink); }
.class-next { flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.class-stage.is-listening [data-class-listen] { background: var(--forest); color: var(--paper); }

@media (max-width: 720px) {
  .class-compare { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .class-row, .class-bar, .class-seq-item, .class-after { transition: none; }
}
