.mhct-shell {
  width: min(920px, calc(100% - 32px));
  margin: 48px auto 80px;
}

.mhct-card {
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 28px;
  margin-bottom: 20px;
}

.mhct-card h1,
.mhct-card h2,
.mhct-card h3 {
  margin-top: 0;
  color: #111827;
}

.mhct-card p,
.mhct-card li,
.mhct-card label {
  color: #4b5563;
  line-height: 1.7;
}

.mhct-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 10px;
}

.mhct-list {
  padding-left: 18px;
  margin: 0 0 20px;
}

.mhct-code-form {
  display: grid;
  gap: 12px;
}

.mhct-code-form input {
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
}

.mhct-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mhct-button-primary {
  background: #111827;
  color: #fff;
}

.mhct-button-primary:hover {
  background: #000;
}

.mhct-button-secondary {
  background: #fff;
  border-color: #cbd5e1;
  color: #111827;
}

.mhct-button-secondary:hover {
  border-color: #111827;
}

.mhct-progress {
  margin-bottom: 24px;
}

.mhct-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.mhct-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #111827 0%, #374151 100%);
  transition: width 0.2s ease;
}

.mhct-question-box {
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 28px;
}

.mhct-question-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
}

.mhct-stimulus {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  color: #111827;
  margin-bottom: 24px;
  text-align: center;
}

.mhct-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mhct-answer-button {
  min-height: 64px;
  background: #fff;
  border-color: #cbd5e1;
  color: #111827;
}

.mhct-answer-button.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.mhct-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mhct-notice {
  border-left: 4px solid #0f172a;
}

.mhct-notice-error {
  border-left-color: #dc2626;
}

.mhct-floating-entry {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1001;
}

.mhct-fab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

.mhct-entry-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1100;
}

.mhct-entry-modal.is-open {
  display: block;
}

.mhct-entry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.mhct-entry-panel {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.mhct-entry-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mhct-hp {
  position: absolute !important;
  left: -9999px !important;
}

body.mhct-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .mhct-shell {
    width: calc(100% - 20px);
    margin-top: 24px;
  }

  .mhct-card {
    padding: 20px;
    border-radius: 20px;
  }

  .mhct-answer-grid {
    grid-template-columns: 1fr;
  }

  .mhct-nav {
    flex-direction: column;
  }

  .mhct-floating-entry {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .mhct-fab {
    width: 100%;
  }
}
