.mhs-pt-root {
  color-scheme: dark;
  --mhs-pt-bg: #151719;
  --mhs-pt-panel: #202429;
  --mhs-pt-panel-2: #2a3036;
  --mhs-pt-text: #f3f0e8;
  --mhs-pt-muted: #b7bdc2;
  --mhs-pt-line: rgba(255, 255, 255, 0.12);
  --mhs-pt-accent: #64d2b7;
  --mhs-pt-accent-2: #f0b35a;
  --mhs-pt-danger: #f07c69;
  --mhs-pt-radius: 8px;
  font-family: inherit;
  margin: 1.5rem 0;
}

.mhs-pt-root * {
  box-sizing: border-box;
}

.mhs-pt-shell {
  background: var(--mhs-pt-bg);
  border: 1px solid var(--mhs-pt-line);
  border-radius: var(--mhs-pt-radius);
  color: var(--mhs-pt-text);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.mhs-pt-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.mhs-pt-kicker {
  color: var(--mhs-pt-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.mhs-pt-shell h2,
.mhs-pt-shell h3,
.mhs-pt-shell p {
  color: inherit;
}

.mhs-pt-shell h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.2;
  margin: 0;
}

.mhs-pt-shell h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.35;
  margin: 0.5rem 0 1rem;
}

.mhs-pt-subtitle {
  color: var(--mhs-pt-muted);
  margin: 0.75rem 0 1.25rem;
  max-width: 68ch;
}

.mhs-pt-status {
  background: rgba(100, 210, 183, 0.13);
  border: 1px solid rgba(100, 210, 183, 0.35);
  border-radius: 999px;
  color: var(--mhs-pt-accent);
  flex: 0 0 auto;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.mhs-pt-tool-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mhs-pt-tool-card,
.mhs-pt-start,
.mhs-pt-exercise,
.mhs-pt-complete,
.mhs-pt-state,
.mhs-pt-audio-panel,
.mhs-pt-skill-row {
  background: var(--mhs-pt-panel);
  border: 1px solid var(--mhs-pt-line);
  border-radius: var(--mhs-pt-radius);
  padding: 1rem;
}

.mhs-pt-tool-card h3 {
  margin-top: 0;
}

.mhs-pt-tool-card p,
.mhs-pt-start p,
.mhs-pt-audio-missing {
  color: var(--mhs-pt-muted);
}

.mhs-pt-tool-card code {
  background: #101214;
  border-radius: 6px;
  color: var(--mhs-pt-accent-2);
  display: block;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  padding: 0.65rem;
}

.mhs-pt-primary,
.mhs-pt-secondary,
.mhs-pt-option,
.mhs-pt-audio-button,
.mhs-pt-audio-stop {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  text-align: center;
}

.mhs-pt-primary {
  background: var(--mhs-pt-accent);
  color: #101715;
}

.mhs-pt-secondary,
.mhs-pt-audio-stop {
  background: transparent;
  border-color: var(--mhs-pt-line);
  color: var(--mhs-pt-text);
}

.mhs-pt-primary:disabled,
.mhs-pt-option:disabled,
.mhs-pt-audio-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.mhs-pt-step-count {
  color: var(--mhs-pt-accent-2);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.mhs-pt-audio-panel {
  margin: 1rem 0;
}

.mhs-pt-audio-panel.is-empty {
  color: var(--mhs-pt-muted);
}

.mhs-pt-audio-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.mhs-pt-audio-button {
  background: var(--mhs-pt-panel-2);
  border-color: var(--mhs-pt-line);
  color: var(--mhs-pt-text);
}

.mhs-pt-audio-state {
  color: var(--mhs-pt-accent);
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 0.65rem;
}

.mhs-pt-audio-missing {
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
}

.mhs-pt-options {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.mhs-pt-option {
  background: var(--mhs-pt-panel-2);
  border-color: var(--mhs-pt-line);
  color: var(--mhs-pt-text);
  justify-content: flex-start;
  width: 100%;
}

.mhs-pt-option.is-selected {
  border-color: var(--mhs-pt-accent);
  box-shadow: inset 0 0 0 1px var(--mhs-pt-accent);
}

.mhs-pt-feedback {
  border-radius: var(--mhs-pt-radius);
  margin-top: 1rem;
  padding: 1rem;
}

.mhs-pt-feedback.is-correct {
  background: rgba(100, 210, 183, 0.13);
  border: 1px solid rgba(100, 210, 183, 0.35);
}

.mhs-pt-feedback.is-wrong {
  background: rgba(240, 124, 105, 0.13);
  border: 1px solid rgba(240, 124, 105, 0.35);
}

.mhs-pt-feedback p {
  margin: 0.45rem 0 0.85rem;
}

.mhs-pt-state-error {
  border-color: rgba(240, 124, 105, 0.45);
  color: #ffd9d2;
}

.mhs-pt-skill-list {
  display: grid;
  gap: 0.75rem;
}

.mhs-pt-skill-row > div:first-child {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.mhs-pt-skill-row span {
  color: var(--mhs-pt-muted);
}

.mhs-pt-meter {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 9px;
  margin-top: 0.7rem;
  overflow: hidden;
}

.mhs-pt-meter span {
  background: linear-gradient(90deg, var(--mhs-pt-accent), var(--mhs-pt-accent-2));
  display: block;
  height: 100%;
}

.mhs-pt-admin .mhs-pt-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1000px;
}

.mhs-pt-admin-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 1rem;
}

.mhs-pt-error {
  border: 1px solid #d63638;
  color: #8a2424;
  padding: 1rem;
}

@media (max-width: 640px) {
  .mhs-pt-header {
    display: block;
  }

  .mhs-pt-status {
    display: inline-block;
    margin-top: 0.75rem;
  }

  .mhs-pt-primary,
  .mhs-pt-secondary,
  .mhs-pt-option,
  .mhs-pt-audio-button,
  .mhs-pt-audio-stop {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mhs-pt-root *,
  .mhs-pt-root *::before,
  .mhs-pt-root *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

