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

.summaryGrid,
.detailGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.summaryCard,
.detailCard {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 9, 0.78);
}

.summaryLabel {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summaryValue,
.summaryValueSmall {
  color: var(--color-text);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.summaryValueSmall {
  font-size: 1.05rem;
  word-break: break-word;
}

.summaryHint {
  color: var(--color-text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.actionRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.primaryButton,
.mapCtaButton,
.secondaryButton,
.removeButton {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.primaryButton {
  background: var(--color-primary);
  color: #081000;
}

.mapCtaButton {
  position: relative;
  border-color: rgba(118, 185, 0, 0.32);
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.24), rgba(24, 34, 17, 0.92));
  color: #f4ffe7;
  box-shadow: 0 10px 26px rgba(118, 185, 0, 0.18);
}

.mapCtaButton:hover {
  transform: translateY(-1px);
  border-color: rgba(118, 185, 0, 0.5);
  box-shadow: 0 14px 30px rgba(118, 185, 0, 0.22);
}

.secondaryButton {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.removeButton {
  border-color: rgba(255, 107, 107, 0.24);
  background: rgba(255, 107, 107, 0.08);
  color: #ff8f8f;
}

.primaryButton:hover,
.secondaryButton:hover,
.removeButton:hover {
  transform: translateY(-1px);
}

.notice,
.error {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.notice {
  border: 1px solid rgba(0, 212, 255, 0.12);
  background: rgba(0, 212, 255, 0.08);
  color: var(--color-text-secondary);
}

.error {
  border: 1px solid rgba(255, 107, 107, 0.2);
  background: rgba(255, 107, 107, 0.12);
  color: #ffb0b0;
}

.detailHeader {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.detailTitle {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.detailDescription {
  margin: 0.35rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.warningBadge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.26);
  color: #ffb0b0;
  font-size: 0.76rem;
  font-weight: 700;
}

.detailMetaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detailOverviewPanel,
.detailPanel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 9, 0.78);
}

.detailStack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detailOverviewGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.detailHeroTitle {
  margin: 0.2rem 0 0;
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
}

.detailOverviewCard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.detailOverviewValue {
  color: var(--color-text);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
}

.detailOverviewMeta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.detailPanelSplit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detailPanelHeader {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detailPanelDescription {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.groupTitle {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detailPanelSection {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detailSectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.detailSectionTitle {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.detailSectionCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.detailScrollableList {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 320px;
  overflow: auto;
  padding-right: 0.15rem;
}

.detailListRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.detailRowKey {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.detailRowValue,
.detailListEmpty {
  color: var(--color-text);
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
  text-align: right;
}

.detailListEmpty {
  color: var(--color-text-secondary);
  text-align: left;
}

.tag,
.emptyTag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 0.76rem;
  line-height: 1.35;
}

.emptyTag {
  color: var(--color-text-secondary);
}

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

.footerHint {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.splitGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.primaryCell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.primaryCellTitleRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.primaryCellTitle {
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.primaryCellMeta {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.selectedBadge,
.tableBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(118, 185, 0, 0.14);
  border: 1px solid rgba(118, 185, 0, 0.24);
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.tableBadge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.mutedBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
}

.inlineCode {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  word-break: break-word;
}

.tableActionGroup {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tableActionGroup .primaryButton,
.tableActionGroup .mapCtaButton,
.tableActionGroup .secondaryButton,
.tableActionGroup .removeButton {
  padding: 0.45rem 0.8rem;
  font-size: 0.76rem;
}

.readOnlyHint {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.selectorPanel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.selectorIntro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 420px);
}

.selectorTitle {
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.selectorControls {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.scopePicker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scopePickerHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.scopePickerSummary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 520px);
}

.scopePickerTitleRow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.scopePickerTitle {
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.scopePickerMetaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.scopePickerMeta {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
}

.scopePickerActions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scopePickerList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scopePickerOption,
.scopePickerOptionActive {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 220px;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.scopePickerOptionActive {
  border-color: rgba(118, 185, 0, 0.3);
  background: rgba(118, 185, 0, 0.1);
}

.scopePickerOption:hover,
.scopePickerOptionActive:hover {
  transform: translateY(-1px);
}

.scopePickerOptionTitle {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.scopePickerOptionMeta {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
}

.paginationBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.paginationInfo {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
}

.paginationActions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editorBlock {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 10, 0.72);
}

.editorGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.editorField {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.editorLabel {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editorInput,
.editorTextarea,
.editorSelect {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 5, 5, 0.72);
  color: var(--color-text);
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
}

.editorTextarea {
  resize: vertical;
  min-height: 96px;
}

.editorInput:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.editorSectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.editorSectionTitle {
  margin: 0;
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.editorSectionHint {
  margin: 0.35rem 0 0;
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.editorRow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.categoryList {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.categoryCard {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(118, 185, 0, 0.14);
  background: rgba(7, 10, 10, 0.78);
}

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

@media (max-width: 900px) {
  .detailHeader {
    flex-direction: column;
  }

  .detailPanelSplit {
    grid-template-columns: 1fr;
  }

  .editorRow {
    grid-template-columns: 1fr;
  }

  .selectorPanel,
  .scopePickerHeader,
  .detailListRow {
    align-items: stretch;
  }

  .scopePickerOption,
  .scopePickerOptionActive {
    min-width: 100%;
  }

  .detailRowValue {
    text-align: left;
  }

  .detailListRow {
    flex-direction: column;
  }
}
