.object-map {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1);
  overflow: hidden;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-3);
  font-weight: var(--fw-regular);
  line-height: var(--lh);
}

.object-map[hidden] {
  display: none !important;
}

.object-map-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
  min-width: 0;
}

.object-map h2 {
  margin: 0;
  flex: 0 0 auto;
  font-size: var(--fs-4);
  font-weight: var(--fw-strong);
  line-height: var(--lh);
  white-space: nowrap;
}

.object-map-head .card-summary {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.object-map-tools {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space-1);
}

.map-tool {
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
}

.object-map-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.object-map-canvas {
  height: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.object-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-edge {
  stroke: var(--muted);
  stroke-width: 1.5;
}

.map-node-title,
.map-node-status {
  fill: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
}

.map-node-status {
  font-size: 12px;
  fill: var(--muted);
}

.map-edge-label-bg {
  fill: var(--surface-2);
  stroke: var(--border);
}

.map-edge-label-text {
  fill: var(--text);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
}

.map-node rect {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}

.map-node.is-selected rect {
  stroke: var(--text);
  stroke-width: 2;
}

.map-panel {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: min(360px, 70ch);
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: var(--space-2);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.map-panel[hidden] {
  display: none !important;
}

.map-panel .info-btn,
.map-suggestion .info-btn {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
}

.map-fields,
.map-links {
  margin: var(--space-1) 0;
  padding: 0;
  list-style: none;
}

.map-field {
  margin-left: 8px;
  max-width: var(--measure);
  font-size: var(--fs-2);
  line-height: var(--lh);
}

.map-suggestions {
  flex: 0 0 auto;
  max-height: 46%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.map-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.map-suggestion {
  position: relative;
  padding: var(--space-1);
  padding-right: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.map-reason {
  -webkit-line-clamp: 3;
}
