/**
 * TSF System Map — Map Dashboard (central workspace).
 *
 * Guest stylesheet: applies only inside `[data-map-dashboard]` within the
 * permanent shell's Central Panel. It reuses the existing TSF theme variables
 * (--bg/--surface/--text/--accent/--uw-*) and introduces no Map-only theme.
 *
 * Overflow: this stylesheet never clips content. Wide tables and diagrams keep
 * their own horizontal access (`.map-table-wrap`, `.map-diagram-grid`) so the
 * shell's Central Panel overflow contract stays the single scrolling authority.
 */

.map-dash {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  padding-bottom: 1.5rem;
  color: rgba(220, 226, 235, 0.92);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.map-header {
  min-width: 0;
}

.map-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(145, 165, 190, 0.75);
}

.map-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(235, 240, 248, 0.96);
}

.map-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(160, 175, 195, 0.85);
}

.map-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--uw-border-accent);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: rgba(77, 163, 255, 0.07);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(200, 214, 232, 0.92);
}

.map-banner-icon {
  color: var(--accent);
}

.map-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.map-selection-hint {
  font-size: 0.72rem;
  color: rgba(160, 175, 195, 0.9);
}

.map-count-chip {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--uw-border-subtle);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(170, 190, 215, 0.9);
  background: rgba(24, 34, 48, 0.6);
}

/* ── Buttons / badges ───────────────────────────────────────────────────── */

.map-btn {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--uw-border-subtle);
  border-radius: 2px;
  background: rgba(24, 34, 48, 0.7);
  color: rgba(220, 228, 240, 0.94);
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.2;
  cursor: pointer;
}

.map-btn:hover:not([disabled]) {
  border-color: var(--uw-border-accent);
  background: rgba(77, 163, 255, 0.12);
}

.map-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.map-btn--primary {
  border-color: rgba(77, 163, 255, 0.5);
  background: rgba(77, 163, 255, 0.18);
  color: rgba(232, 240, 252, 0.98);
}

.map-btn--sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.14rem 0.42rem;
  border: 1px solid var(--uw-border-subtle);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: rgba(24, 34, 48, 0.65);
  color: rgba(205, 215, 230, 0.92);
}

.map-badge--verified {
  border-color: rgba(62, 207, 142, 0.45);
  color: rgba(150, 235, 195, 0.95);
}

.map-badge--partial,
.map-badge--changed {
  border-color: rgba(255, 196, 77, 0.45);
  color: rgba(245, 214, 150, 0.95);
}

.map-badge--unknown,
.map-badge--newly_unknown {
  border-color: rgba(120, 170, 220, 0.45);
  color: rgba(180, 210, 240, 0.95);
}

.map-badge--missing,
.map-badge--removed_or_broken {
  border-color: rgba(255, 96, 96, 0.45);
  color: rgba(250, 175, 175, 0.95);
}

.map-badge--drift,
.map-badge--added {
  border-color: rgba(170, 130, 240, 0.45);
  color: rgba(215, 195, 250, 0.95);
}

.map-tag {
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(77, 163, 255, 0.35);
  border-radius: 2px;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(190, 215, 245, 0.92);
  background: rgba(77, 163, 255, 0.1);
}

.map-tag--muted {
  border-color: var(--uw-border-subtle);
  color: rgba(160, 175, 195, 0.85);
  background: rgba(24, 34, 48, 0.6);
}

/* ── Sections / cards ──────────────────────────────────────────────────── */

.map-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.75rem 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(16, 22, 32, 0.55);
}

.map-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.map-section-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(190, 204, 222, 0.94);
}

.map-card {
  min-width: 0;
  padding: 0.7rem 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(20, 27, 38, 0.6);
}

.map-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(180, 192, 210, 0.9);
}

.map-muted {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(150, 165, 185, 0.85);
}

.map-ok {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: rgba(150, 225, 185, 0.92);
}

.map-crash {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(250, 165, 165, 0.95);
}

.map-loading {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(170, 190, 215, 0.9);
}

.map-notice {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 196, 77, 0.35);
  border-radius: 2px;
  background: rgba(255, 196, 77, 0.08);
  font-size: 0.76rem;
  color: rgba(245, 220, 165, 0.95);
}

.map-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(205, 215, 230, 0.92);
}

.map-issues {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  font-size: 0.74rem;
  color: rgba(245, 205, 140, 0.92);
}

.map-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(205, 215, 230, 0.92);
}

.map-link {
  color: var(--accent);
}

code.map-path,
.map-path {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.7rem;
  /* Long repository paths stay reachable instead of being clipped. */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Current Map ───────────────────────────────────────────────────────── */

.map-current {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.85rem;
  min-width: 0;
}

.map-current-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.map-current-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.map-current-id {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(235, 242, 252, 0.97);
}

.map-current-purpose {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(160, 178, 200, 0.9);
}

.map-current-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.map-current-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.map-current-preview {
  min-width: 0;
}

.map-thumb {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(12, 17, 25, 0.8);
  padding: 0.4rem;
}

.map-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  background: #ffffff;
}

.map-thumb figcaption {
  margin-top: 0.35rem;
  font-size: 0.66rem;
  color: rgba(150, 165, 185, 0.85);
  overflow-wrap: anywhere;
}

/* ── Metadata definition lists ─────────────────────────────────────────── */

.map-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.5rem 1rem;
  min-width: 0;
}

.map-meta > div {
  min-width: 0;
}

.map-meta-wide {
  grid-column: 1 / -1;
}

.map-meta dt {
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(140, 155, 175, 0.75);
}

.map-meta dd {
  margin: 0.12rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(210, 218, 230, 0.94);
  /* Long IDs, hashes and paths never force the panel wider than it must be. */
  overflow-wrap: anywhere;
}

/* ── Overview ──────────────────────────────────────────────────────────── */

.map-ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
  min-width: 0;
}

.map-ov-card {
  min-width: 0;
  padding: 0.6rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(20, 27, 38, 0.62);
}

.map-ov-label {
  margin: 0 0 0.3rem;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(140, 155, 175, 0.78);
}

.map-ov-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(235, 242, 252, 0.97);
}

.map-ov-id {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(228, 236, 248, 0.96);
}

.map-ov-sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: rgba(150, 165, 185, 0.88);
  overflow-wrap: anywhere;
}

.map-integrity {
  margin-top: 0.15rem;
}

.map-integrity-list {
  margin: 0 0 0.4rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.map-integrity-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.map-integrity-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(220, 230, 244, 0.95);
}

/* ── Tables (horizontal access preserved) ───────────────────────────────── */

.map-table-wrap {
  min-width: 0;
  max-width: 100%;
  /* The table keeps its own horizontal reach; the panel never clips it. */
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.map-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.map-table--diff {
  min-width: 700px;
}

.map-table th {
  text-align: left;
  padding: 0.45rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(140, 155, 175, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.map-table td {
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(210, 218, 230, 0.92);
}

.map-table tr.is-current td {
  background: rgba(77, 163, 255, 0.07);
}

.map-table tr.is-added td {
  background: rgba(170, 130, 240, 0.06);
}

.map-table tr.is-changed td {
  background: rgba(255, 196, 77, 0.06);
}

.map-table tr.is-removed_or_broken td {
  background: rgba(255, 96, 96, 0.07);
}

.map-col-select {
  width: 3.2rem;
  text-align: center;
}

.map-col-actions {
  white-space: nowrap;
}

.map-check {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.map-check[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.map-id {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(232, 240, 252, 0.96);
}

/* ── Pager ─────────────────────────────────────────────────────────────── */

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

.map-pager-label {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(150, 165, 185, 0.85);
}

.map-pager-status {
  font-size: 0.74rem;
  color: rgba(200, 212, 228, 0.92);
}

/* ── Download menu ─────────────────────────────────────────────────────── */

.map-dl {
  position: relative;
  display: inline-block;
}

.map-dl > summary {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--uw-border-subtle);
  border-radius: 2px;
  background: rgba(24, 34, 48, 0.7);
  font-size: 0.74rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.map-dl > summary::-webkit-details-marker {
  display: none;
}

.map-dl[open] > summary {
  border-color: var(--uw-border-accent);
  background: rgba(77, 163, 255, 0.12);
}

.map-dl-list {
  position: absolute;
  z-index: 6;
  top: 100%;
  left: 0;
  min-width: 17rem;
  max-height: 18rem;
  overflow: auto;
  margin: 0.25rem 0 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: rgba(12, 17, 25, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.map-dl-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem;
  border-radius: 2px;
  color: rgba(210, 220, 234, 0.94);
  text-decoration: none;
}

.map-dl-list a:hover {
  background: rgba(77, 163, 255, 0.12);
  text-decoration: none;
}

.map-dl-name {
  overflow-wrap: anywhere;
}

.map-dl-meta {
  flex-shrink: 0;
  font-size: 0.64rem;
  color: rgba(150, 165, 185, 0.88);
}

/* ── Viewer ────────────────────────────────────────────────────────────── */

.map-viewer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.map-viewer-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.map-tab {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--uw-border-subtle);
  border-radius: 2px;
  background: rgba(24, 34, 48, 0.6);
  color: rgba(205, 215, 230, 0.9);
  font: inherit;
  font-size: 0.73rem;
  cursor: pointer;
}

.map-tab.is-active {
  border-color: rgba(77, 163, 255, 0.5);
  background: rgba(77, 163, 255, 0.16);
  color: rgba(232, 240, 252, 0.98);
}

.map-tab-panel {
  min-width: 0;
}

.map-doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.map-doc {
  margin: 0;
  max-height: 34rem;
  overflow: auto;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(9, 13, 19, 0.92);
  color: rgba(205, 216, 230, 0.92);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: pre;
}

.map-doc--mmd {
  max-height: 18rem;
  margin-top: 0.4rem;
}

.map-raw {
  margin-top: 0.55rem;
}

.map-raw > summary {
  font-size: 0.74rem;
  color: rgba(190, 205, 225, 0.92);
  cursor: pointer;
}

.map-file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.map-file-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

/* ── Diagrams ──────────────────────────────────────────────────────────── */

.map-diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.map-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(20, 27, 38, 0.6);
}

.map-diagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
}

.map-diagram-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(228, 236, 248, 0.95);
}

.map-diagram-links {
  font-size: 0.68rem;
  color: rgba(160, 178, 200, 0.9);
}

.map-diagram-links a {
  color: var(--accent);
}

.map-diagram-preview {
  display: block;
  overflow: auto;
  border-radius: 2px;
  background: #ffffff;
}

.map-diagram img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.map-compare-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.map-compare-side {
  min-width: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: #ffffff;
}

.map-compare-side-label {
  margin: 0;
  padding: 0.25rem 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 212, 228, 0.95);
  background: rgba(12, 17, 25, 0.92);
}

/* ── Comparison totals ─────────────────────────────────────────────────── */

.map-totals {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-total {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--uw-border-subtle);
  border-radius: 2px;
  background: rgba(20, 27, 38, 0.65);
  flex-wrap: wrap;
  max-width: 100%;
}

.map-total-marker {
  font-size: 0.85rem;
}

.map-total-label {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(180, 195, 214, 0.92);
}

.map-total-count {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(235, 242, 252, 0.97);
}

.map-total--added {
  border-color: rgba(170, 130, 240, 0.4);
}

.map-total--changed {
  border-color: rgba(255, 196, 77, 0.4);
}

.map-total--removed_or_broken {
  border-color: rgba(255, 96, 96, 0.4);
}

.map-total--drift {
  border-color: rgba(255, 196, 77, 0.35);
}

.map-total--newly_unknown {
  border-color: rgba(120, 170, 220, 0.4);
}

.map-dim {
  min-width: 0;
  margin-top: 0.6rem;
}

/* ── Evidence ──────────────────────────────────────────────────────────── */

.map-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.6rem;
  min-width: 0;
  margin-bottom: 0.6rem;
}

/* ── Integrity concepts — two deliberately separated blocks (approved C) ── */

.map-integrity {
  padding: 0.6rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(20, 27, 38, 0.5);
}

.map-integrity--structural {
  border-left: 2px solid rgba(62, 207, 142, 0.5);
}

.map-integrity--findings {
  border-left: 2px solid rgba(255, 196, 77, 0.55);
}

.map-integrity + .map-integrity {
  margin-top: 0.6rem;
}

.map-integrity-caption {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(175, 190, 210, 0.9);
}

.map-badge--finding-verified {
  border-color: rgba(62, 207, 142, 0.45);
  color: rgba(150, 235, 195, 0.95);
}

.map-badge--finding-partial {
  border-color: rgba(255, 196, 77, 0.45);
  color: rgba(245, 214, 150, 0.95);
}

.map-badge--finding-missing {
  border-color: rgba(255, 96, 96, 0.45);
  color: rgba(250, 175, 175, 0.95);
}

.map-badge--finding-decision {
  border-color: rgba(120, 170, 220, 0.45);
  color: rgba(180, 210, 240, 0.95);
}

.map-badge--finding-drift {
  border-color: rgba(170, 130, 240, 0.45);
  color: rgba(215, 195, 250, 0.95);
}

.map-findings-group {
  margin-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.35rem;
}

.map-findings-group > summary {
  font-size: 0.72rem;
  color: rgba(198, 210, 226, 0.92);
  cursor: pointer;
}

.map-findings-list {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(196, 208, 224, 0.92);
}

.map-findings-list code {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.66rem;
  color: rgba(180, 205, 235, 0.95);
}

/* ── Comparison groups — architecture vs repository evidence (approved D1) ── */

.map-compare-group {
  margin-top: 0.35rem;
}

.map-compare-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(185, 200, 220, 0.92);
}

.map-dim-group {
  margin-top: 0.5rem;
}

.map-dim-group-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(185, 200, 220, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.2rem;
}

/* ── Responsive — the Central Panel is the only width we can assume ────── */

@media (max-width: 1100px) {
  .map-current {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .map-diagram-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-header-actions {
    align-items: flex-start;
  }

  .map-dl-list {
    position: static;
    min-width: 0;
    width: 100%;
  }
}
