.demo-layout {
  display: grid;
  grid-template-columns: minmax(145px, 196px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: start;
}
.demo-menu {
  display: grid;
  gap: 4px;
  padding: 8px;
  background: #191520;
  border: 1px solid #42344e;
  border-radius: 10px;
  position: sticky;
  top: 82px;
}
.demo-menu button {
  color: #d2c9d9;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  padding: 10px 13px;
  font: 600 0.94rem/1.35 system-ui;
  cursor: pointer;
}
.demo-menu button:hover {
  background: #302638;
}
.demo-menu button[aria-pressed="true"] {
  background: #403148;
  color: #fff0c7;
  box-shadow: inset 3px 0 #e5b957;
}
.demo-main {
  min-width: 0;
}
.demo-main #practice-title {
  margin: 0 0 0.65rem;
  line-height: 1.05;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}
.demo-hint {
  font-size: 0.95rem;
  color: #c7bdce;
  max-width: 70ch;
}
.demo-followup {
  margin-top: 0.9rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-step,
.demo-jump button {
  background: #302836;
  color: #fff;
  border: 1px solid #58485f;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font: 650 0.93rem/1.25 system-ui;
  cursor: pointer;
}
.demo-step.primary {
  background: #f1c760;
  border-color: #f1c760;
  color: #20170a;
}
.dc-channel {
  max-width: 770px;
  width: 100%;
  background: #202024;
  color: #f1f1f4;
  border: 1px solid #3d3944;
  border-radius: 10px;
  padding: clamp(12px, 2vw, 23px);
}
.dc-channel .chat-command {
  display: flex;
  gap: 0.6em;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 1px solid #35343a;
  margin-bottom: 14px;
}
.dc-channel .chat-command code {
  background: none;
  font:
    400 1rem/1.4 "Segoe UI",
    sans-serif;
  padding: 0;
  color: #dbdbe3;
}
.discord-message {
  margin-left: 43px;
  display: grid;
  min-width: 0;
  gap: 7px;
}
.discord-panel.dc-pull {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  border-radius: 7px;
  padding: 14px 16px;
  border: 1px solid #33333b;
  border-left: 4px solid var(--tier);
  background: #121216;
  overflow-wrap: anywhere;
}
.discord-panel > * + * {
  margin-top: 9px;
}
.discord-panel hr {
  border: 0;
  border-top: 1px solid #34343a;
  margin-block: 13px;
}
.discord-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.discord-section > div {
  min-width: 0;
}
.discord-art {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 430px;
  object-fit: contain;
  border-radius: 4px;
}
.discord-thumb {
  width: clamp(48px, 8vw, 78px);
  height: clamp(48px, 8vw, 78px);
  object-fit: contain;
}
.discord-emoji {
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  object-fit: contain;
  vertical-align: -0.18em !important;
  border: 0;
}
.discord-text {
  font:
    400 0.95rem/1.42 "Segoe UI",
    Arial,
    sans-serif;
}
.discord-text h3 {
  font:
    740 1.18rem/1.27 "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: 0;
  margin: 0 0 4px;
  color: #eeeef1;
}
.discord-text > small.dc-caption {
  display: block;
  font-size: 0.79rem;
  line-height: 1.5;
  color: #aaabb4;
}
.discord-gap {
  height: 7px;
}
.discord-text blockquote {
  border-left: 3px solid #555362;
  margin: 3px 0;
  padding: 1px 0 1px 11px;
}
.discord-text code {
  font: 500 0.91em/1.3 monospace;
  background: #292830;
  padding: 1px 4px;
  color: #f2edf8;
  border-radius: 4px;
}
.discord-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.discord-row button,
.discord-section > button,
.discord-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  padding: 0.48rem 0.77rem;
  border: 0;
  border-radius: 5px;
  color: #f7f7fa;
  font:
    600 0.85rem/1.25 "Segoe UI",
    sans-serif;
  background: #414047;
  text-decoration: none;
}
.dc-channel button:not(:disabled),
.dc-channel select {
  cursor: pointer;
}
.dc-channel button:not(:disabled):hover {
  filter: brightness(1.17);
}
.discord-row .discord-style-1 {
  background: #5865f2;
}
.dc-channel .discord-style-3 {
  background: #24834e;
}
.dc-channel .discord-style-4 {
  background: #a53237;
}
.dc-channel button:disabled {
  opacity: 0.55;
}
.discord-row select {
  width: min(100%, 440px);
  min-width: 0;
  padding: 0.62rem;
  background: #2b2b30;
  color: white;
  border: 1px solid #45454e;
  border-radius: 5px;
}
.demo-main .demo-controls {
  margin-top: 0.9rem;
  max-width: 770px;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-jump input {
  width: 100%;
  margin: 10px 0;
}
@media (max-width: 760px) {
  .demo-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .demo-menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  .demo-menu button {
    font-size: 0.85rem;
    padding: 0.55rem 0.62rem;
  }
  .demo-menu button[aria-pressed="true"] {
    box-shadow: inset 0 -2px #e5b957;
  }
}
@media (max-width: 500px) {
  .discord-message {
    margin-left: 0;
  }
  .discord-panel.dc-pull {
    padding: 11px;
  }
  .discord-section {
    gap: 8px;
  }
}
