.ml-room {
  --ml-ink: #193e3a;
  --ml-paper: #fffdf6;
  --ml-line: #c7d5cb;
  --ml-green: #eaf3e5;
  --ml-blue: #205b79;
  box-sizing: border-box;
  width: min(100%, 920px);
  margin: 0 auto;
  border: 1px solid var(--ml-line);
  border-radius: 22px;
  color: var(--ml-ink);
  background: var(--ml-paper);
  overflow: clip;
  font-family: inherit;
  text-align: start;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ml-room *, .ml-room *::before, .ml-room *::after { box-sizing: border-box; }
.ml-room button { font: inherit; cursor: pointer; }
.ml-room button:focus-visible { outline: 3px solid #0065bf; outline-offset: 3px; }
.ml-room h3:focus { outline: none; }
.ml-room .ml-steps {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px;
  list-style: none; padding: 11px; margin: 0; background: #edf2e9;
  border-bottom: 1px solid var(--ml-line);
}
.ml-steps li {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 5px; font-size: clamp(0.73rem, 2vw, 0.92rem); font-weight: 700;
  color: #4c625b; text-align: center; line-height: 1.24;
}
.ml-steps li[aria-current] { background: #214f49; color: white; border-radius: 10px; }
.ml-steps li span {
  display: inline-grid; place-items: center; flex: 0 0 22px; min-height: 22px;
  border: 1px solid currentColor; border-radius: 50%; font-size: 12px;
}
.ml-body { padding: clamp(16px, 4vw, 34px); }
.ml-body h3 { margin: 0 0 8px; color: var(--ml-ink); font-size: clamp(1.3rem, 3vw, 1.85rem); line-height: 1.32; letter-spacing: -.035em; }
.ml-body p { margin: 0 0 14px; color: #445e57; font-size: 1rem; line-height: 1.6; }
.ml-body .ml-round { float: right; margin: 0 0 8px 12px; font: 800 17px/1.6 ui-monospace, monospace; color: var(--ml-blue); }
.ml-round span { color: #61746e; font-size: 12px; }
.ml-tiles, .ml-choices, .ml-comparison { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.ml-tile, .ml-choice, .ml-guide {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-width: 0; flex: 1 1 100px; padding: 14px 10px; border-radius: 14px;
  border: 1px solid var(--ml-line); background: #f2f6ec; text-align: center; color: var(--ml-ink);
}
.ml-tiles .ml-tile:nth-child(2), .ml-choices .ml-choice:nth-child(2) { background: #edf3f6; }
.ml-tiles .ml-tile:nth-child(3), .ml-choices .ml-choice:nth-child(3) { background: #fcf2d7; }
.ml-tile strong, .ml-choice span, .ml-guide strong { color: var(--ml-ink); font-size: 1rem; line-height: 1.4; }
.ml-tile small, .ml-guide small { font-size: 0.81rem; color: #48635c; font-weight: 700; }
.ml-art { display: block; width: min(100%, 112px); height: 74px; margin: 0 auto; }
.ml-wave { width: min(100%, 150px); }
.ml-pixels { height: 75px; }
.ml-sample {
  clear: both; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 18px 10px; border: 1px dashed #90ac9c; border-radius: 16px;
  background-color: #f6f8ef; background-image: radial-gradient(#c4d0bd 1px,transparent 1px);
  background-size: 15px 15px;
}
.ml-sample .ml-art { width: min(100%,190px); height: 112px; }
.ml-measure { font: 700 12px/1.6 ui-monospace,monospace; color: #3a5851; background: var(--ml-paper); border-radius: 6px; padding: 0 5px; }
.ml-choices .ml-choice { border: 2px solid #9bb1a8; box-shadow: 0 2px 0 #aabcb2; }
.ml-choice span { font-weight: 750; }
.ml-choice .ml-art { height: 55px; }
.ml-choice:hover { border-color: #32716c; }
.ml-body .ml-pair { padding: 10px 14px; background: #fff0bc; color: #614d21; border-radius: 9px; margin: 14px 0; font-size: 0.9rem; }
.ml-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 17px; }
.ml-room .ml-btn, .ml-room .ml-listen {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 9px 16px; border-radius: 11px; border: 1px solid #a2b6ac; background: white;
  color: var(--ml-ink); font-weight: 750; font-size: .96rem; line-height: 1.3;
}
.ml-room .ml-listen { padding: 5px 11px; font-size: .82rem; }
.ml-room .ml-listen span { font-size: 1.05em; color: var(--ml-blue); }
.ml-room .ml-primary { background: #215c55; border-color: #215c55; color: white; }
.ml-room .ml-primary:hover { background: #16463f; }
.ml-room .ml-btn[aria-pressed=true] { background: #fbe6a1; border-color: #9b8040; }
.ml-body .ml-message:not(:empty) { background: #fff0bf; color: #64491a; padding: 10px 14px; border-radius: 10px; margin: 15px 0 0; }
.ml-body .ml-message:empty { margin: 0; }
.ml-body .ml-summary { text-align: center; }
.ml-comparison { flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.ml-comparison .ml-tile { background: #f4f4e9; }
.ml-comparison .ml-tile:last-child { background: #eaf3ee; }
.ml-join { align-self: center; color: var(--ml-blue); font-size: 1.4rem; font-weight: 800; }
.ml-solo { max-width: 270px; margin-left: auto; margin-right: auto; }
.ml-editor { display: flex; align-items: center; justify-content: center; gap: clamp(9px, 3vw, 28px); margin: 20px auto; }
.ml-guide { flex: 0 1 140px; background: #f0f3e9; }
.ml-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); width: min(100%, 270px); flex: 0 1 270px;
  gap: 3px; padding: 7px; border-radius: 13px; border: 1px solid #a8b9b2; background: #d9e2d9;
  touch-action: none; user-select: none;
}
.ml-room .ml-cell { display: grid; place-items: center; min-width: 0; min-height: 0; width: 100%; aspect-ratio: 1; background: var(--ml-paper); border: 0; border-radius: 4px; padding: 0; }
.ml-cell.ml-trace::before { content: ''; width: 30%; height: 30%; border-radius: 40%; border: 2px dashed #8da8a0; }
.ml-room .ml-cell[aria-pressed=true] { background: #336b8a; }
.ml-cell[aria-pressed=true]::before { content: none; }
.ml-body .ml-help { font-size: .88rem; text-align: center; }
@media(max-width: 520px) {
  .ml-room { border-radius: 16px; }
  .ml-room .ml-steps { gap: 3px; padding: 7px 4px; }
  .ml-steps li { gap: 4px; }
  .ml-steps li span { flex-basis: 17px; min-height: 17px; font-size: 10px; }
  .ml-tiles, .ml-choices { gap: 6px; }
  .ml-tile, .ml-choice { flex-basis: 64px; padding: 9px 5px; }
  .ml-choice span,.ml-tile strong { font-size: .9rem; }
  .ml-editor { flex-wrap: wrap; }
  .ml-guide { flex-direction: row; flex-basis: 100%; max-width: 270px; padding: 5px; }
  .ml-guide .ml-art { width: 52px; height: 48px; margin: 0; }
  .ml-actions .ml-primary { flex-grow: 1; }
}
