.showcase-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.showcase-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.showcase-switch {
  display: inline-flex;
  background: var(--bg-white);
  padding: 4px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(15, 41, 66, 0.05);
  gap: 4px;
}

.sc-tab-btn {
  padding: 0.42rem 0.98rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sc-tab-btn.is-active {
  background: var(--blue-600);
  color: #FFFFFF;
}

.teacher-editor-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.teacher-photo-panel {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 41, 66, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
}

.teacher-photo-frame {
  width: 170px;
  height: 170px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-600) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 41, 66, 0.16);
}

.teacher-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-photo-frame svg {
  width: 68px;
  height: 68px;
  opacity: 0.92;
}

.webp-meta-pill {
  background: var(--success-bg);
  color: var(--success-ink);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
}

.teacher-fields-panel {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 16px rgba(15, 41, 66, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.teacher-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.crop-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.crop-canvas-preview {
  width: 240px;
  height: 240px;
  border-radius: 16px;
  border: 2px solid var(--blue-600);
  background: var(--bg-page);
  box-shadow: 0 6px 18px rgba(15, 41, 66, 0.12);
}

.crop-sliders {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.crop-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-body);
}

.crop-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--blue-600);
}

.faq-list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: 0 3px 10px rgba(15, 41, 66, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.faq-q {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-900);
}

.faq-a {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-body);
}

.faq-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .teacher-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .teacher-fields-row {
    grid-template-columns: 1fr;
  }

  .faq-item-card {
    flex-direction: column;
  }

  .faq-actions {
    width: 100%;
    justify-content: flex-end;
  }
}