/* ── README ── */
.readme-panel {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.readme-panel.collapsed {
  opacity: 0.25;
  pointer-events: none;
  transform: scale(0.99);
}

.readme-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.readme-h2 {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.readme-h2 .line-plain {
  display: block;
  color: var(--navy);
}

.readme-h2 .line-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 0.04em 0.32em;
  border-radius: 0.4rem;
  margin: 0.05em 0;
}

.readme-rule {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem auto 0.9rem;
}

.readme-rule-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(44, 67, 100, 0.15),
    rgba(44, 67, 100, 0.04)
  );
}

.readme-rule-line.rev {
  background: linear-gradient(
    90deg,
    rgba(44, 67, 100, 0.04),
    rgba(44, 67, 100, 0.15)
  );
}

.readme-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-input) transparent;
}

.readme-scroll::-webkit-scrollbar {
  width: 3px;
}

.readme-scroll::-webkit-scrollbar-thumb {
  background: var(--border-input);
  border-radius: 4px;
}

.readme-item {
  margin-bottom: 1rem;
}

.readme-item:last-child {
  margin-bottom: 0;
}

.readme-q {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.readme-a {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.65;
}

.readme-confirm {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.readme-confirm input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

.readme-confirm input[type="checkbox"]:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.readme-confirm label {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
}

.readme-confirm.locked label {
  color: var(--muted, #94a3b8);
  cursor: not-allowed;
}

.readme-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted, #94a3b8);
  font-weight: 500;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border-radius: var(--r-md, 0.5rem);
  border: 1px dashed var(--border-input, #e2e8f0);
  transition: opacity 0.3s;
}

.readme-scroll-hint.hidden {
  display: none;
}

.readme-scroll-hint svg {
  flex-shrink: 0;
  animation: bounceDown 0.8s ease infinite;
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}
