/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

.mono {
  font-family: 'Roboto Mono', monospace;
}

/* ===== Step Number Badge ===== */
.step-badge {
  width: 1.75rem;
  height: 1.75rem;
  background: #334155;
  color: #e2e8f0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  border: 1px solid #475569;
}

.step-badge--green {
  background: #064e3b;
  border-color: #10b981;
  color: #6ee7b7;
}

/* ===== Toggle Switch ===== */
.toggle-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.toggle-track {
  width: 100%;
  height: 100%;
  background: #334155;
  border-radius: 9999px;
  border: 1px solid #475569;
  transition: background 0.2s;
  position: relative;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: 1.125rem;
  background: #94a3b8;
  border-radius: 9999px;
  transition: transform 0.2s, background 0.2s;
}

input[type="checkbox"]:checked + .toggle-track {
  background: #059669;
  border-color: #10b981;
}

input[type="checkbox"]:checked + .toggle-track::after {
  transform: translateX(1.25rem);
  background: #fff;
}

/* ===== Masked highlight ===== */
.mask-highlight {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  padding: 0 3px;
  border-radius: 3px;
}

/* ===== Rule tag ===== */
.rule-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}
