[hidden] { display: none !important; }
.explore { --surface: var(--c-ffffff); --selected: var(--c-e7f2ff); --shadow: color-mix(in srgb, var(--text) 16%, transparent); }
.explore .masthead { min-height: 60px; padding: 8px 24px; gap: 12px; }
.explore-logo { display: block; width: 42px; height: 42px; border-radius: 50%; background: url('/assets/secsig-logo.png') center / cover no-repeat; }
:root[data-theme="dark"] .explore-logo { background-image: url('/assets/secsig-logo-dark.png'); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .explore-logo { background-image: url('/assets/secsig-logo-dark.png'); }
}
.explore .header-note { display: none; }
.explore .theme-switch { margin-left: auto; }
.explore button, .explore select, .explore input { font: inherit; color: inherit; }
.explore button, .explore select { cursor: pointer; }
.explore button { background: transparent; border: 0; padding: 0; }
.explore button:disabled { cursor: default; opacity: .44; }
.explore :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.explore .workspace {
  display: grid;
  grid-template-columns: 248px minmax(0,1fr) 284px;
  gap: 12px;
  padding: 12px;
  height: calc(100dvh - 60px);
  min-height: 450px;
  font-size: 14px;
  line-height: 1.45;
}
.explore-side, .explore #explore-main, .map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
}
.explore-side { overflow: auto; padding-bottom: 12px; }
.site-links { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 13px 12px; font-size: 12px; }
.site-links a { text-decoration: none; }
.site-links a:hover { text-decoration: underline; }
.explore-side details > summary, .map-panel summary {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.map-panel summary { border-top: 0; border-radius: 8px; }
#x-tree, #x-outline, #x-recent { padding: 4px; }
.explore #x-recent-clear { display: block; margin: 0 8px 6px auto; padding: 1px 5px; color: var(--blue); font-size: 11px; }
.explore #x-recent-clear:hover { text-decoration: underline; }
#x-tree { max-height: min(54dvh, 550px); overflow: auto; }
#x-outline { max-height: 25dvh; overflow: auto; }
.tree-row { display: flex; min-width: 0; align-items: center; min-height: 24px; border-radius: 4px; }
.tree-row:hover, .tree-row[aria-current], .outline-row:hover { background: var(--selected); }
.tree-row[aria-current] { color: var(--blue); }
.tree-row > button { min-height: 24px; }
.tree-row .twisty { width: 20px; flex: none; font-size: 15px; color: var(--muted); }
.twisty.empty { visibility: hidden; }
.tree-row .twisty[aria-expanded="true"] { transform: rotate(90deg); }
.tree-row .tree-target, .outline-row { text-align: left; flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; }
.tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; flex: 1; }
.tree-row .tree-file { text-align: left; padding: 0 6px; font-weight: 650; }
.tree-count { font-size: 10px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 0 3px; margin-right: 4px; }
.tree-children { margin-left: 9px; padding-left: 5px; border-left: 1px solid var(--line); }
.outline-row { border-radius: 4px; min-height: 24px; width: 100%; font-size: 12px !important; padding: 3px 8px !important; }
.outline-row[data-depth="3"] { padding-left: 21px !important; }
.explore #explore-main { display: grid; grid-template: auto minmax(0,1fr) / minmax(0,1fr); position: relative; min-height: 0; }
.search-panel { min-width: 0; background: var(--surface); padding: 16px 20px 12px; border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--line); z-index: 2; }
.search-heading, .results-heading, .reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-heading h1 { font-size: 27px; letter-spacing: -.03em; margin: 0; }
.scope-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.scope-switch button { padding: 4px 11px; border-radius: 5px; font-size: 12px; }
.scope-switch button[aria-pressed="true"], .scope-switch button:hover { color: var(--blue); background: var(--selected); }
.x-breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin: 10px 0; color: var(--muted); font-size: 12px; min-height: 17px; }
.x-breadcrumb a { color: inherit; text-decoration: none; }
.x-breadcrumb button:hover, .x-breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.search-field { display: flex; align-items: center; min-width: 0; gap: 8px; position: relative; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: var(--panel); }
.search-field:focus-within { border-color: var(--blue); }
.search-field input { border: 0; min-height: 38px; min-width: 0; flex: 1; background: transparent; outline: 0; }
.search-field svg, .activity svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--muted); }
.search-field kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
#x-suggest { position: absolute; z-index: 4; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 8px 18px var(--shadow); }
#x-suggest li { padding: 7px 8px; border-radius: 4px; cursor: pointer; }
#x-suggest li:hover, #x-suggest li[aria-selected="true"] { background: var(--selected); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
#x-chips { display: contents; }
.filters button, .topic-strip button { background: var(--selected); color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; text-align: left; }
.explore select { border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px; background: var(--surface); font-size: 12px; }
.result-panel { grid-area: 2 / 1; overflow: auto; overscroll-behavior: contain; flex: 1; padding: 14px 20px 24px; }
.results-heading { margin-bottom: 10px; }
.results-heading h2 { margin: 0; font-size: 16px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 275px),1fr)); gap: 10px; }
.explore .result-card, .headline-panel { min-width: 0; position: relative; text-align: left; background: var(--surface); padding: 13px; border: 1px solid var(--line); border-radius: 7px; display: block; }
.explore .result-card { display: flex; flex-direction: column; align-items: stretch; }
.explore .result-card { cursor: pointer; }
.explore .result-open { width: 100%; text-align: left; flex: 1; }
.explore .result-card:hover, .explore .result-card[aria-current] { background: var(--panel); border-color: var(--blue); }
.card-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.type-marker { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.card-meta, .connected { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.card-title { display: block; font-size: 16px; font-weight: 700; color: var(--c-172c44); line-height: 1.25; margin-top: 3px; overflow-wrap: anywhere; }
.teaser { margin-top: 6px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card-tags { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin-top: 8px; min-width: 0; }
.explore .card-tag, .card-tag-more { border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; font-size: 11px; line-height: 1.4; }
.explore .card-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; background: var(--panel); color: var(--blue); }
.explore .card-tag:hover { background: var(--selected); }
.card-tag-more { flex: none; color: var(--muted); }
.card-tag-more.narrow { display: none; }
.headline-panel { margin-bottom: 13px; background: var(--panel); border-left: 3px solid var(--blue); }
.headline-panel h2 { font-size: 13px; margin: 0; }
.headline-panel .headline-link { display: block; text-align: left; }
.headline-link:hover .card-title { color: var(--blue); }
.pager, .headline-controls { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pager { margin: 14px 0 0; }
.explore .pager button, .explore .headline-controls button { min-height: 30px; min-width: 30px; border: 1px solid var(--line); border-radius: 5px; }
.pager span { margin: 0 8px; }
.reader {
  position: relative; grid-area: 2 / 1; min-height: 0; z-index: 1;
  display: flex; flex-direction: column; background: var(--surface); border-radius: 0 0 8px 8px;
  transform-origin: top left; border-top: 1px solid var(--line);
}
.reader-bar { flex: none; justify-content: flex-start; background: var(--panel); padding: 5px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; touch-action: none; }
.reader-bar button { padding: 5px; color: var(--blue); }
.reader-bar #x-close { margin-left: auto; font-size: 22px; min-width: 34px; padding: 0 3px; }
.reader-scroll { overflow: auto; overscroll-behavior: contain; padding: 20px clamp(16px,4vw,55px) 44px; }
.reader-scroll > * { max-width: 740px; margin-left: auto; margin-right: auto; }
.reader-scroll img { max-width: 100%; height: auto; }
.reader-scroll table { max-width: 100%; }
#x-reader-title { font-size: clamp(24px,3vw,39px); margin: 0 0 12px; overflow-wrap: anywhere; }
#x-reader-body { overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; }
#x-original { font-size: 13px; margin-top: 16px; }
#x-reader-heading .eyebrow { display: none; }
#x-reader-body [id] { scroll-margin-top: 12px; }
.map-panel { align-self: start; min-width: 0; overflow: hidden; }
.map-view { padding: 10px 12px 13px; }
#x-map-caption { color: var(--text); font-size: 13px; font-weight: 650; }
#x-map { width: 100%; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; margin-top: 8px; }
#x-map line { stroke: var(--c-cbdbea); }
#x-map circle { fill: var(--blue); }
#x-map .map-hit { fill: transparent; stroke: none; }
#x-map g { cursor: pointer; }
#x-map g:hover circle { stroke: var(--c-0874ce); stroke-width: 4px; }
#x-map text { fill: var(--text); font-size: 9px; font-weight: 650; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
#x-node-list { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; }
#x-node-list button { font-size: 11px; padding: 1px 6px; }
.activity, .drawer-cover, .topic-strip, .sheet-grip { display: none; }
@media (max-width:1199px) {
  .explore .workspace { grid-template-columns: 42px minmax(0,1fr) 245px; }
  .explore .workspace:has(.reader:not([hidden])) { grid-template-columns: 42px minmax(0,1fr); }
  .activity { display: flex; flex-direction: column; gap: 6px; }
  .activity button { display: grid; place-items: center; height: 40px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
  .activity button[aria-expanded="true"] { background: var(--selected); }
  .explore-side { display: none; }
  .explore[data-drawer] .explore-side { display: block; position: fixed; top: 72px; left: 64px; bottom: 12px; width: min(330px, calc(100% - 76px)); z-index: 6; box-shadow: 0 12px 24px var(--shadow); }
  .explore[data-drawer] .drawer-cover { display: block; position: fixed; inset: 60px 0 0 54px; z-index: 5; }
  .explore .workspace:has(.reader:not([hidden])) .map-panel { position: fixed; right: 24px; bottom: 24px; width: 215px; z-index: 3; box-shadow: 0 6px 30px var(--shadow); }
}
@media (max-width:699px) {
  .explore .masthead { padding: 8px 12px; min-height: 52px; gap: 7px; }
  .explore-logo { width: 35px; height: 35px; }
  .explore .brand { font-size: 19px; }
  .explore .brand span { display: none; }
  .explore .workspace, .explore .workspace:has(.reader:not([hidden])) { display: block; position: relative; padding: 0; height: calc(100dvh - 52px); }
  .explore .workspace .activity { position: absolute; top: 9px; left: 8px; z-index: 4; flex-direction: row; }
  .activity button { width: 35px; height: 34px; }
  .activity button:not(:first-child) { display: none; }
  .explore[data-drawer] .explore-side { top: 95px; bottom: 8px; left: 8px; }
  .explore[data-drawer] .drawer-cover { inset: 95px 0 0; background: var(--shadow); }
  .explore #explore-main { height: 100%; border: 0; border-radius: 0; }
  .search-panel { padding: 9px 10px; }
  .search-heading { padding-left: 43px; min-height: 34px; }
  .search-heading h1 { font-size: 21px; }
  .scope-switch button { padding: 3px 8px; }
  .search-field input { font-size: 16px; }
  .search-field kbd { display: none; }
  .topic-strip { display: flex; gap: 5px; overflow: auto; white-space: nowrap; margin-top: 7px; scrollbar-width: none; }
  .topic-strip button { flex: none; background: var(--surface); }
  .topic-strip button[aria-pressed="true"] { background: var(--selected); }
  .result-panel { padding: 12px 10px 60px; }
  .result-grid { grid-template-columns: 1fr; }
  .reader { position: fixed; inset: max(55px,7dvh) 0 0; z-index: 5; border-radius: 13px 13px 0 0; box-shadow: 0 -8px 30px var(--shadow); }
  .reader-bar { padding-top: 13px; position: relative; }
  .sheet-grip { display: block; position: absolute; left: calc(50% - 16px); top: 5px; width: 32px; height: 3px; border-radius: 4px; background: var(--c-cbdbea); }
  .reader-scroll { padding: 15px 12px 76px; }
  .explore .map-panel, .explore .workspace:has(.reader:not([hidden])) .map-panel { position: fixed; z-index: 5; bottom: 0; right: 8px; width: auto; box-shadow: 0 -4px 20px var(--shadow); }
  .explore .map-panel:has(details[open]), .explore .workspace:has(.reader:not([hidden])) .map-panel:has(details[open]) { width: min(330px, calc(100% - 16px)); max-height: 55dvh; overflow: auto; }
  #x-map { max-height: 205px; }
}
@media (prefers-reduced-motion: reduce) {
  .explore *, .explore *::before, .explore *::after { scroll-behavior: auto !important; }
}

.explore .results-heading { margin: 9px 0 0; }
.result-tools { display: flex; gap: 6px; align-items: center; }
.explore #x-filter-toggle, .explore #x-date-range button {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px;
}
.explore #x-filter-toggle[aria-expanded="true"], .explore #x-filter-toggle:hover { background: var(--selected); color: var(--blue); }
.filters { max-height: 84px; overflow: auto; }
.filters:empty, .filters:has(#x-clear[hidden]:only-child) { margin-top: 0; }
.explore .facet-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--selected); min-width: 0; max-width: 100%; }
.explore .facet-chip button { background: transparent; padding: 2px 6px; border: 0; border-radius: 0; }
.explore .facet-chip .chip-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 9px; }
.explore .facet-chip .chip-remove { border-left: 1px solid var(--line); font-size: 15px; line-height: 1.15; padding-right: 8px; }
.explore .facet-chip.excluded { background: var(--panel); }
.explore .facet-chip.excluded .chip-value { color: var(--muted); }
.explore #x-clear { color: var(--muted); background: transparent; }
#x-suggest { max-height: min(48dvh, 360px); overflow: auto; }
#x-suggest .suggest-heading { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-top: 10px; padding-bottom: 1px; cursor: default; }
#x-suggest .suggest-heading:hover { background: transparent; }
.facet-panel { border: 1px solid var(--line); padding: 10px; margin-bottom: 15px; border-radius: 7px; background: var(--panel); }
#x-facet-groups { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.facet-group { min-width: 0; }
.facet-group h3 { font-size: 12px; margin: 0 0 4px; }
.facet-options { display: grid; gap: 2px; overflow: auto; max-height: 185px; padding: 1px 3px; }
.explore .facet-options button, .explore .legend-button { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 4px; border-radius: 4px; font-size: 12px; text-align: left; min-width: 0; overflow-wrap: anywhere; }
.explore .facet-options button:hover, .explore .facet-options button[aria-pressed="true"], .explore .legend-button:hover, .explore .legend-button[aria-pressed="true"] { background: var(--selected); color: var(--blue); }
.count { flex: none; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11px; }
.explore #x-date-range { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
#x-date-range label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
#x-date-range input { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 3px; }
#x-activity, .landing-trending, .explore-cve { border: 1px solid var(--line); padding: 10px 12px; border-radius: 7px; margin: 0 0 10px; }
.activity-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.activity-toolbar h2, .landing-trending h2 { font-size: 15px; margin: 0; }
.activity-toolbar .scope-switch button { min-width: 31px; padding: 3px 5px; }
.chart-scroll { overflow-x: auto; padding: 2px 0 1px; }
.activity-chart, .explore-cve-chart { width: 100%; display: block; }
.x-chart-research { fill: var(--c-075aab); background: var(--c-075aab); }
.x-chart-news { fill: var(--c-7ba7cf); background: var(--c-7ba7cf); }
.activity-legend { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin: 1px 0 7px; }
.activity-legend span:nth-child(2) { margin-right: 9px; }
.activity-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 5px; }
.activity-stat { display: grid; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); min-width: 0; padding: 4px 6px; }
.activity-stat strong { color: var(--c-172c44); font-size: 16px; font-variant-numeric: tabular-nums; }
.activity-stat span { color: var(--muted); font-size: 10px; }
#x-trending { padding: 4px; }
#x-landing-trending { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); column-gap: 12px; margin-top: 4px; }
.explore .trend-row { display: grid; grid-template-columns: minmax(0,1fr) 12px 25px; align-items: center; gap: 4px; width: 100%; min-height: 26px; text-align: left; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.explore .trend-row:hover { background: var(--selected); }
.trend-label { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.trend-direction { color: var(--blue); text-align: center; }
.trend-row .count { text-align: right; }
.explore .explore-cve { max-width: none; background: var(--surface); }
.explore-cve-chart [role="button"] { cursor: pointer; }
.explore-cve-chart [role="button"]:hover { filter: brightness(.87); }
.explore-cve-chart .chart-selected { fill: var(--blue); font-weight: 750; }
.explore-cve-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 2px 5px; }
.explore .legend-button span:nth-child(2) { flex: 1; }
.kev-legend { background: var(--blue); }
@media (max-width: 699px) {
  .explore .results-heading { margin-top: 7px; }
  .scope-switch button { padding-inline: 5px; }
  .explore-cve-chart { min-width: 555px; }
  #x-landing-trending { grid-template-columns: 1fr 1fr; gap: 0 5px; }
  #x-landing-trending .trend-label { white-space: normal; overflow-wrap: anywhere; }
  .card-tag:nth-of-type(n+4), .card-tag-more.wide { display: none; }
  .card-tag-more.narrow { display: inline-block; }
}
@media (max-width: 372px) {
  .search-heading { flex-wrap: wrap; }
}

.explore .workspace { position: relative; }
.map-toolbar, .map-overlay-header, .map-focus-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.explore #x-map-expand, .explore .map-overlay-header button, .explore .map-focus-close {
  flex: none; min-width: 30px; min-height: 30px; color: var(--blue);
  border: 1px solid var(--line); background: var(--surface); border-radius: 6px;
}
.explore #x-map-expand:hover, .explore .map-overlay-header button:hover, .explore .map-focus-close:hover { background: var(--selected); }
.explore-map-stage { position: relative; min-width: 0; min-height: 0; }
#x-map { cursor: zoom-in; }
#x-map .map-edge { stroke: var(--c-cbdbea); stroke-width: 1; }
#x-map .map-edge.map-linked { stroke: var(--blue); stroke-width: 1.6; }
#x-map .map-node { cursor: pointer; }
#x-map .map-node:focus-visible { outline: none; }
#x-map .map-node .node-hit { fill: transparent; stroke: none; }
#x-map .node-dot { fill: var(--node-color); stroke: var(--surface); stroke-width: 1; }
#x-map .map-hot .node-dot, #x-map .map-node:focus-visible .node-dot { stroke: var(--text); stroke-width: 2; }
#x-map .map-node text { font-size: 9.5px; pointer-events: none; }
#x-map .map-node.second-hop text { opacity: 0; }
#x-map .map-node.second-hop.map-hot text, #x-map .map-node.second-hop:focus-visible text { opacity: 1; }
#x-map .map-node.map-representative text { opacity: 1; }
#x-map[data-layout="subjects"] { max-height: none; }
#x-map[data-layout="subjects"] .map-node text { opacity: 1; font-size: 9px; }
#x-map[data-layout="subjects"] .map-root text { opacity: 0; }
#x-map .map-dim { opacity: .28; }
#x-map .map-edge, #x-map .map-node { transition: opacity 130ms ease-out; }
.node-topic { --node-color: var(--c-172c44); }
.node-idea { --node-color: var(--c-0874ce); }
.node-article { --node-color: var(--c-003f80); }
.node-news { --node-color: var(--c-576778); }
.node-paper { --node-color: var(--c-7ba7cf); }
.node-cve { --node-color: var(--c-94abc2); }
.explore-map-overlay {
  position: absolute; z-index: 9; inset: 12px 12px 12px 272px;
  display: grid; grid-template: auto minmax(0,1fr) auto / minmax(0,1fr);
  min-width: 0; min-height: 0; transform-origin: top left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow);
}
.map-overlay-header { align-items: center; padding: 9px 12px; min-width: 0; }
.map-overlay-header > div:first-child { flex: 1; min-width: 0; }
.map-overlay-header h2 { margin: 0; font-size: 18px; }
#x-map-overlay-caption { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-zoom { display: flex; gap: 3px; }
.explore .map-overlay-header #x-map-reset { min-width: 55px; padding: 1px 6px; }
.explore .map-overlay-header #x-map-close { font-size: 22px; }
#x-map-large { margin: 0 12px; }
.explore-map-overlay #x-map { margin: 0; width: 100%; height: 100%; max-height: none; cursor: grab; touch-action: none; }
.explore-map-overlay #x-map:active { cursor: grabbing; }
.explore-map-overlay #x-map .map-node text { font-size: 13px; }
.explore-map-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; padding: 0; margin: 8px 12px; font-size: 11px; color: var(--muted); }
.explore-map-legend li { display: flex; align-items: center; gap: 4px; }
.explore-map-legend li::before { content: ""; width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--node-color); }
.map-focus {
  position: absolute; z-index: 2; top: 7px; right: 7px;
  width: min(340px, calc(100% - 14px)); max-height: calc(100% - 14px); overflow: auto;
  padding: 11px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); box-shadow: 0 5px 15px var(--shadow); font-size: 12px; overscroll-behavior: contain;
}
.map-focus-heading h3 { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.explore .map-focus-close { min-width: 25px; min-height: 25px; font-size: 17px; }
.map-focus p { margin: 6px 0; line-height: 1.45; }
.map-metrics { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.map-focus-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.explore .map-focus-actions button, .explore .map-connection-list button {
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--blue);
}
.explore .map-focus-actions button:hover, .explore .map-connection-list button:hover,
.explore .map-related button:hover { background: var(--selected); }
.map-focus h4 { margin: 6px 0 3px; font-size: 12px; }
.map-connection-list { display: flex; flex-wrap: wrap; gap: 3px; }
.explore .map-related button { text-align: left; display: block; width: 100%; color: var(--blue); padding: 2px 4px; }
@media (max-width: 1199px) { .explore-map-overlay { left: 64px; } }
@media (max-width: 699px) {
  .explore-map-overlay { position: fixed; inset: 0; border-radius: 0; }
  #x-map-large { margin: 0 6px; }
  #x-map-large .map-focus { top: auto; bottom: 7px; width: calc(100% - 14px); max-height: 59%; }
  .explore-map-overlay #x-map .map-node text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #x-map .map-edge, #x-map .map-node { transition: none; } }
