.editBanner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 0.65rem 1rem;
}

.editBanner p {
  font-size: 0.88rem;
  color: var(--ink-1);
  margin: 0;
}

.messagePanel {
  padding: 1rem;
}

.section {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sectionHeading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-0);
  margin: 0;
}

/* ===== PARENT TABS ===== */
.parentTabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--panel-warm);
  border: 1px solid var(--border-light);
  border-radius: 999px;
}

.parentTab {
  flex: 1;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-1);
  transition: color 120ms, background 120ms, box-shadow 120ms;
}

.parentTabActive {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 89, 110, 0.3);
}

/* ===== CARD BLOCK ===== */
.cardBlock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.statsGrid {
  display: grid;
  gap: 0.5rem;
}

.statRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: var(--panel-warm);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.statLabel {
  font-size: 0.85rem;
  color: var(--ink-1);
  font-weight: 600;
}

.statValue {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-0);
  font-family: var(--font-mono, monospace);
}

.emptyHint {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  padding: 0.75rem 0;
}

/* ===== PHOTO GALLERY ===== */
.photoGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .photoGrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.photoThumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  background: var(--panel-warm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  padding: 0;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.photoThumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--shadow-soft);
}

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

/* ===== LIGHTBOX ===== */
.lightboxOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(15 16 20 / 78%);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightboxDialog {
  width: min(980px, 100%);
  max-height: calc(100vh - 2rem);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lightboxClose {
  align-self: flex-end;
  border: none;
  background: var(--panel-warm);
  color: var(--ink-0);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.lightboxImageWrap {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: #0f1115;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.lightboxImageWrap:active {
  cursor: grabbing;
}

.lightboxImage {
  max-width: 100%;
  max-height: min(70vh, 700px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightboxNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 42%);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.lightboxNavPrev {
  left: 0.5rem;
}

.lightboxNavNext {
  right: 0.5rem;
}

.lightboxFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-1);
}

.lightboxActions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lightboxZoomBtn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-warm);
  color: var(--ink-0);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightboxZoomValue {
  min-width: 3.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-1);
}

@media (max-width: 640px) {
  .lightboxDialog {
    padding: 0.55rem;
    border-radius: 14px;
  }

  .lightboxImage {
    max-height: 62vh;
  }

  .lightboxFooter {
    flex-direction: column;
    align-items: stretch;
  }

  .lightboxActions {
    justify-content: space-between;
  }

  .lightboxNav {
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
  }
}

/* ===== DPA BADGE ===== */
.dpaBadge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e8f7ee;
  border: 1px solid #a3d9b1;
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dpaLabel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-1);
}

.dpaValue {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a7a3c;
  font-family: var(--font-mono, monospace);
}

/* ===== TRIMESTER TABS (mobile-first) ===== */
.trimesterTabsWrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trimesterTabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--panel-warm);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.trimesterTabs::-webkit-scrollbar {
  display: none;
}

.trimesterTab {
  flex: 1 0 auto;
  min-width: max-content;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-1);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms, color 120ms, box-shadow 120ms;
  white-space: nowrap;
}

.trimesterTab:hover {
  color: var(--ink-0);
}

.trimesterTabActive {
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trimesterPanel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

.trimesterPanelTitle {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-0);
  margin: 0;
}

/* ===== TRIMESTER ACCORDION (legacy, unused) ===== */
.trimesterBlock {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.trimesterToggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: var(--panel-warm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-0);
}

.trimesterChevron {
  font-size: 0.7rem;
  color: var(--muted);
}

.trimesterContent {
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--panel);
}

.triNote {
  font-size: 0.88rem;
  color: var(--ink-1);
  line-height: 1.5;
  background: var(--panel-warm);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0 8px 8px 0;
}
