.app-shell[data-digestive-label-filter="tract"] .space-label.is-left {
  display: none !important;
}

.app-shell[data-digestive-label-filter="gland"] .space-label.is-right {
  display: none !important;
}

.digestive-system-subnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 8px 7px 9px;
  border: 1px solid rgba(70, 184, 238, 0.32);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(7, 55, 94, 0.7), rgba(3, 24, 45, 0.82));
}

.digestive-system-subnav[hidden] {
  display: none;
}

.teaching-mode-menu .digestive-system-node {
  display: grid;
  gap: 0;
}

.teaching-mode-menu .digestive-system-node.is-expanded > button {
  border-color: rgba(62, 202, 255, 0.62);
  border-bottom-color: rgba(70, 184, 238, 0.32);
  border-radius: 10px 10px 0 0;
}

.digestive-system-subnav button {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 8px;
  cursor: pointer;
  color: #9fc5dc;
  border: 1px solid rgba(73, 173, 228, 0.26);
  border-radius: 9px;
  background: rgba(3, 25, 47, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.digestive-system-subnav button:hover,
.digestive-system-subnav button.is-active {
  color: #effbff;
  border-color: rgba(75, 211, 255, 0.82);
  background: linear-gradient(135deg, rgba(18, 127, 190, 0.62), rgba(7, 63, 115, 0.72));
  box-shadow: inset 3px 0 0 #42d8ff, 0 0 15px rgba(37, 184, 241, 0.16);
}

/* Label visibility control: keep the existing model toolbar compact. */
.stage-actions .label-visibility-toggle { white-space: nowrap; flex-shrink: 0; }
.stage-actions { flex-wrap: wrap; max-width: calc(100% - 24px); }
.stage-help { bottom: 86px; max-width: calc(100% - 30px); }
