/* Connected Market ------------------------------------------------------- */
.hero { padding: 40px 0 8px; max-width: 760px; }
.hero .eyebrow { margin-bottom: 13px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5.5vw, 50px); line-height: 1.03; letter-spacing: -0.015em; margin: 0 0 12px; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p { font-size: clamp(14px, 2vw, 16px); color: var(--muted); line-height: 1.6; margin: 0; max-width: 640px; }

.cm-search { position: relative; margin-top: 18px; max-width: 420px; }
.cm-search input { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 11px 18px; font-family: var(--sans); font-size: 14px; outline: none; }
.cm-search input:focus { border-color: var(--accent); }
.cm-drop { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); max-height: 320px; overflow: auto; }
.cm-drop.open { display: block; }
.cm-opt { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: var(--r-sm); cursor: pointer; }
.cm-opt:hover { background: var(--surface-3); }
.cm-opt .id { font-family: var(--mono); font-size: 12.5px; color: var(--brass); min-width: 54px; }
.cm-opt .lb { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cm-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin: 22px 0 40px; }
@media (max-width: 900px) { .cm-stage { grid-template-columns: 1fr; } }

.cm-graphwrap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
svg.cm-graph { display: block; width: 100%; height: auto; }
.cm-legend { position: absolute; top: 14px; left: 16px; display: flex; gap: 14px; font-family: var(--mono); font-size: 11px; }
.cm-legend .lg { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cm-legend .lg::before { content: ''; width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cm-legend .peer::before { background: var(--cat-2); }
.cm-legend .coown::before { background: var(--up); }

.cm-edge { stroke-width: 1; opacity: .35; }
.cm-edge.peer { stroke: var(--cat-2); }
.cm-edge.coown { stroke: var(--up); }
.cm-node { cursor: pointer; outline: none; }
.cm-node circle { stroke: var(--surface); stroke-width: 1.5; transition: filter .15s; }
.cm-node.peer circle { fill: var(--cat-2); }
.cm-node.coown circle { fill: var(--up); }
.cm-node.focal circle { fill: var(--brass); }
.cm-node:hover circle, .cm-node:focus circle { filter: brightness(1.25); }
.cm-lbl { fill: var(--bg); font-family: var(--mono); font-size: 9px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-weight: 600; }
.cm-lbl.focal { font-size: 12px; }

.cm-lists { display: flex; flex-direction: column; gap: 16px; }
.cm-focal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 16px; }
.cm-focal-tk { font-family: var(--mono); font-size: 13px; color: var(--brass); }
.cm-focal-nm { font-family: var(--serif); font-size: 20px; margin: 2px 0 6px; }
.cm-focal-meta { font-size: 12px; color: var(--faint); line-height: 1.5; }
.cm-focal-open { display: inline-block; margin-top: 10px; color: var(--accent); text-decoration: none; font-size: 13px; }
.cm-list h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 8px; }
.cm-row { display: grid; grid-template-columns: 58px 1fr auto 16px; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; }
.cm-row:hover { background: var(--surface-2); }
.cm-tk { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.cm-nm { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-x { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; }
.cm-open { color: var(--faint); text-decoration: none; font-size: 13px; }
.cm-open:hover { color: var(--accent); }
.cm-empty { color: var(--faint); font-size: 12.5px; font-family: var(--mono); }

.cm-corow { margin-bottom: 2px; }
.cm-corow-top { margin-bottom: 0; }
.cm-funds { font-family: var(--mono); font-size: 10.5px; color: var(--faint); padding: 0 8px 4px 66px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
