@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: #edf3e6;
  background: #101511;
  --display: "Barlow Condensed", Impact, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ink: #101511;
  --panel: #171e18;
  --raised: #1b241c;
  --text: #edf3e6;
  --muted: #a6b3a7;
  --quiet: #809082;
  --line: #344137;
  --lime: #ddff58;
  --teal: #67e0c9;
  --lilac: #9da7ee;
  --orange: #ff855f;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.shell { width: min(1272px, 100% - 96px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #121813; }
.header-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.035em; font-size: 1.28rem; }
.brand img { display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 30px); }
.site-nav .text-button { color: var(--muted); }
.site-nav .text-button:hover { color: var(--lime); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 460px);
  align-items: end;
  gap: 46px;
  padding-block: 39px 40px;
}
.hero-copy { min-width: 0; }
.eyebrow { color: var(--muted); display: flex; gap: 10px; align-items: center; font: 600 .75rem/1.2 var(--mono); letter-spacing: .12em; }
.eyebrow span { width: 8px; height: 8px; background: var(--lime); flex: none; transform: rotate(45deg); }
.hero h1 {
  margin-block: 14px 13px;
  color: var(--text);
  font: 800 clamp(4.15rem, 7.2vw, 7.05rem)/.80 var(--display);
  letter-spacing: -.014em;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-description { margin-top: 19px; max-width: 460px; color: var(--muted); font-size: 1rem; line-height: 1.48; }

.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.setup {
  position: relative;
  padding: 17px 20px 20px;
  border-top: 2px solid var(--lime);
  background: linear-gradient(145deg, #1c261b, #171e18 60%);
}
.setup::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 47px;
  height: 8px;
  background: repeating-linear-gradient(125deg, var(--lime) 0 1px, transparent 1px 5px);
  opacity: .45;
}
.setup-steps { display: flex; align-items: center; gap: 20px; margin: 0 0 17px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.setup-steps li { display: flex; align-items: center; gap: 6px; position: relative; color: var(--quiet); font-size: .83rem; font-weight: 650; padding: 0 0 9px; }
.setup-steps li span { font: .75rem var(--mono); }
.setup-steps li[aria-current="step"] { color: var(--lime); }
.setup-steps li[aria-current="step"]::after { content: ""; position: absolute; height: 1px; inset: auto 0 -1px; background: var(--lime); }
.search-form label { display: block; margin-bottom: 9px; font-size: .88rem; font-weight: 700; }
.search-row { display: flex; gap: 8px; }
.input-wrap { display: flex; gap: 7px; align-items: center; flex: 1; min-width: 0; border: 1px solid #49564a; background: #111713; padding-inline: 10px; }
.input-wrap:focus-within { border-color: var(--lime); }
.input-wrap:has([aria-invalid="true"]) { border-color: var(--orange); }
.input-wrap .icon { color: var(--quiet); width: 18px; height: 18px; }
.input-wrap input { width: 100%; min-width: 0; height: 43px; outline: 0; border: 0; color: var(--text); padding: 0; background: transparent; }
input::placeholder { color: #91a091; opacity: 1; }
.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.primary-button { min-height: 44px; border: 1px solid var(--lime); background: var(--lime); color: #141a11; padding: 0 13px; }
.primary-button:hover:not(:disabled) { background: #eeffaf; }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { transform: translateY(2px); }
.secondary-button { min-height: 36px; padding: 6px 10px; background: #212d21; border: 1px solid #435542; color: var(--text); }
.secondary-button:hover:not(:disabled) { background: #2d3b28; border-color: #728665; color: var(--lime); }
.text-button { background: transparent; border: 0; padding: 0; color: var(--lime); }
.text-button:hover { color: #f0ffab; text-decoration: underline; }
button:disabled { opacity: .45; cursor: default; }
.primary-button .icon, .secondary-button .icon { width: 16px; height: 16px; }
.search-feedback { margin-top: 8px; font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.search-feedback:empty { margin: 0; }
.search-feedback[data-error="true"] { color: #ffac94; }

.picker-head, .picker-tools, .picker-end, .setup-summary, .summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px 12px;
}
.picker-head { align-items: start; }
.picker-head h2, .setup-summary h2 { font-size: 1.13rem; font-weight: 700; overflow-wrap: anywhere; }
.picker-head p, .setup-summary p { color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 4px; }
.picker-head .text-button { margin-top: 3px; font-size: .81rem; }
.picker-tools { margin-top: 12px; }
.picker-tools input { width: 58%; min-width: 0; padding: 7px 8px; color: var(--text); border: 1px solid var(--line); background: #111713; }
.picker-end { margin-top: 13px; }
.picker-end span, #no-candidates { color: var(--muted); font: .76rem/1.4 var(--mono); }
#no-candidates { margin-top: 8px; }
.candidate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; gap: 5px; overflow-y: auto; max-height: 138px; padding: 1px 2px 1px 1px; scrollbar-color: #526650 #161e18; }
.candidate {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 6px;
  color: var(--text);
  background: #151d17;
  border: 1px solid #303e32;
  font-size: .82rem;
  text-align: start;
}
.candidate:hover:not(:disabled), .candidate[aria-pressed="true"] { border-color: #79913f; background: #263221; }
.candidate-photo { width: 25px; height: 25px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; color: var(--muted); background-color: #333e34; font-size: .62rem; }
.candidate-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.candidate-check { width: 12px; height: 12px; flex: none; border: 1px solid #63725f; color: #152011; font-size: .68rem; line-height: 10px; text-align: center; }
.candidate[aria-pressed="true"] .candidate-check { background: var(--lime); border-color: var(--lime); }
.setup-summary { flex-wrap: wrap; }
.summary-actions { justify-content: start; flex-wrap: wrap; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 16px; }
.map-card { scroll-margin-top: 12px; }
.map-header { min-height: 69px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 15px; }
.map-heading, .map-actions { display: flex; align-items: center; gap: 10px; }
.map-heading, .map-heading > div { min-width: 0; }
.feature-icon { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #465838; background: #222e1b; color: var(--lime); flex: none; }
.feature-icon .icon { width: 18px; height: 18px; }
.map-heading h2, .side-heading h2 { font-size: 1rem; font-weight: 700; }
.map-heading p { margin-top: 2px; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-badge { display: flex; align-items: center; gap: 6px; color: var(--muted); font: .71rem/1.25 var(--mono); white-space: nowrap; }
.map-badge > span { width: 6px; height: 6px; background: var(--muted); flex: none; }
.map-badge[data-mode="live"] { color: var(--teal); }
.map-badge[data-mode="limited"] { color: #ffaf8f; }
.map-badge[data-mode="scanning"] { color: var(--lime); }
.map-badge[data-mode="live"] > span, .map-badge[data-mode="limited"] > span, .map-badge[data-mode="scanning"] > span { background: currentColor; }
.share-button { margin-left: 4px; }

.viewport {
  position: relative;
  height: clamp(475px, 55vh, 595px);
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background-color: #111a14;
  background-image:
    radial-gradient(circle, #647b634c 1px, transparent 1.3px),
    linear-gradient(#6a836015 1px, transparent 1px),
    linear-gradient(90deg, #6a836015 1px, transparent 1px),
    radial-gradient(ellipse at 50% 52%, #233320ce, #111a1400 76%);
  background-size: 17px 17px, 85px 85px, 85px 85px, 100% 100%;
  background-position: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.viewport::before, .viewport::after { position: absolute; z-index: -1; content: ""; width: 27px; height: 27px; pointer-events: none; border: 1px solid #75876a80; }
.viewport::before { inset: 11px auto auto 11px; border-right: 0; border-bottom: 0; }
.viewport::after { inset: auto 11px 11px auto; border-left: 0; border-top: 0; }
.viewport:focus-visible { outline-offset: -4px; }
.viewport.dragging { cursor: grabbing; }
.world, .network-lines, .network-nodes { position: absolute; inset: 0; }
.world { transform-origin: top left; will-change: transform; }
.world.moving { transition: transform .24s cubic-bezier(.2,.7,.2,1); }
.network-lines { width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.network-nodes { pointer-events: none; }
.ring-line { fill: none; stroke: var(--ring-stroke); stroke-width: 1.15; stroke-dasharray: 4 5; transition: opacity .25s; }
.ring-line.inactive { opacity: .29; }
.guide-line { stroke: #64735978; stroke-width: .9; stroke-dasharray: 3 6; }
.guide-mark { stroke: #8fa380a6; stroke-width: 1.2; }
.edge { stroke: #91ad80; stroke-width: 1.15; stroke-opacity: .65; transition: stroke-opacity .18s, stroke-width .18s, stroke .18s; }
.edge.cross { stroke: #b0bdb0; stroke-dasharray: 3 4; stroke-opacity: .41; }
.edge.dim { stroke-opacity: .14; }
.edge.hot { stroke: var(--teal); stroke-width: 1.65; stroke-opacity: .99; }
.edge.new { animation: edge-emerge .55s ease both; }
@keyframes edge-emerge { from { opacity: 0; } to { opacity: 1; } }

.layer-0 { --ring-color: var(--lime); --ring-stroke: #9aab55; --ring-tint: #39471f; --label-color: var(--lime); }
.layer-1 { --ring-color: var(--teal); --ring-stroke: #70a69c8c; --ring-tint: #203c33; --label-color: var(--teal); }
.layer-2 { --ring-color: var(--lilac); --ring-stroke: #9298c686; --ring-tint: #2a3045; --label-color: #bfc6ff; }
.layer-3 { --ring-color: var(--orange); --ring-stroke: #c97e698c; --ring-tint: #443028; --label-color: #ffad94; }
.node {
  position: absolute;
  display: grid;
  justify-items: center;
  pointer-events: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  width: var(--node-size);
  height: var(--node-size);
  background: transparent;
  color: var(--text);
  transform: translate(-50%, -50%);
  transition: left .4s cubic-bezier(.2,.65,.26,1), top .4s cubic-bezier(.2,.65,.26,1), opacity .18s;
}
.node:focus-visible { outline-offset: 5px; }
.node.new { animation: node-emerge .46s cubic-bezier(.17,.73,.27,1) backwards; animation-delay: var(--enter-delay); }
@keyframes node-emerge { from { opacity: 0; transform: translate(-50%, -50%) scale(.59); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.node-face, .profile-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--ring-tint, #344124);
  color: var(--label-color, var(--lime));
  border: 2px solid #182119;
  outline: 1.6px solid var(--ring-color, var(--lime));
  overflow: hidden;
  font-size: .89rem;
  font-weight: 700;
}
.node-face { transition: transform .2s, box-shadow .2s; }
.node.layer-0 .node-face { outline-width: 2.3px; box-shadow: 0 0 0 5px #ddff582b, 0 0 23px #d0f75940; }
.node-label {
  position: absolute;
  top: calc(100% + var(--label-gap, 6px));
  left: 50%;
  max-width: var(--label-width, 110px);
  width: max-content;
  transform: translateX(-50%);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  background: #141b16;
  border: 1px solid #4d5c4b;
  padding: 2px 5px;
  font: 650 .715rem/1.05 "Space Grotesk", system-ui, sans-serif;
}
.node.layer-0 .node-label { --label-gap: 9px; background: var(--lime); color: #121a11; border-color: var(--lime); padding: 4px 7px; }
.node[data-label-side="above"] .node-label { top: auto; bottom: calc(100% + var(--label-gap, 6px)); }
.node[data-label-side="right"] .node-label { top: 50%; left: calc(100% + var(--label-gap, 6px)); transform: translateY(-50%); }
.node[data-label-side="left"] .node-label { top: 50%; left: auto; right: calc(100% + var(--label-gap, 6px)); transform: translateY(-50%); }
.node.dim { opacity: .32; }
.node.hot, .node.selected, .node.winner { z-index: 2; }
.node.hot .node-face, .node:focus-visible .node-face { transform: scale(1.1); box-shadow: 0 0 0 5px var(--ring-tint); }
.node.hot .node-label, .node:focus-visible .node-label { max-width: min(240px, 40vw); }
.node.selected .node-face { outline-width: 3px; }
.node.winner { opacity: 1; z-index: 3; }
.node.winner .node-face { outline: 2px solid var(--lime); box-shadow: 0 0 0 4px #ddff5834, 0 0 24px #ddff587a; }
.node.winner .node-label { color: var(--lime); border-color: var(--lime); font-weight: 700; }
.node.winner .node-label::before { content: "✦ "; }
.node.winner::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: -8px;
  border: 1px dashed var(--lime);
  border-radius: 50%;
  animation: target-lock .85s cubic-bezier(.15,.65,.25,1) both;
}
.match-line { stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .68; }
.match-sweep { stroke: #eaff9f; stroke-width: 3; stroke-dasharray: 1 1; filter: drop-shadow(0 0 5px #dcff68); animation: signal-sweep .95s ease-out both; }
@keyframes signal-sweep { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes target-lock { 0% { transform: scale(1.95) rotate(-75deg); opacity: 0; } 65% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: .9; } }
.match-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  position: absolute;
  inset: 14px auto auto 50%;
  max-width: calc(100% - 42px);
  width: max-content;
  transform: translateX(-50%);
  padding: 7px 10px;
  background: #222f1c;
  border: 1px solid #738940;
  color: var(--lime);
  font: 650 .74rem/1.25 var(--mono);
  overflow-wrap: anywhere;
  pointer-events: none;
}
.match-alert .icon { width: 17px; height: 17px; }
.match-alert.reveal { animation: alert-in .55s .4s both; }
@keyframes alert-in { from { opacity: 0; transform: translate(-50%, -9px); } to { opacity: 1; transform: translate(-50%, 0); } }

.avatar-sprite { background-image: url("sample-avatars.webp"); background-size: 400% 400%; background-position: var(--sprite-x) var(--sprite-y); }
.avatar-img { width: 100%; height: 100%; display: block; object-fit: cover; color: transparent; }
.avatar-initials, .avatar-initials + .avatar-img { grid-area: 1 / 1; }

.zoom-controls { display: grid; position: absolute; right: 13px; bottom: 13px; z-index: 4; border: 1px solid #4c5c49; background: #19241b; cursor: default; }
.zoom-controls button, .dialog-heading button, .scan-progress button { width: 36px; height: 35px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; }
.zoom-controls button .icon, .scan-progress button .icon { width: 17px; height: 17px; }
.zoom-controls button + button { border-top: 1px solid #384739; }
.zoom-controls button:hover:not(:disabled), .dialog-heading button:hover, .scan-progress button:hover { background: #2a3a26; color: var(--lime); }
.map-scale { position: absolute; left: 13px; bottom: 13px; padding: 4px 6px; background: #19241b; color: var(--muted); border: 1px solid #40523e; font: .72rem var(--mono); }
.scan-progress {
  display: flex; align-items: center; gap: 8px; z-index: 5; position: absolute; inset: 12px auto auto 50%;
  transform: translateX(-50%); max-width: calc(100% - 22px); width: max-content; padding: 3px 4px 3px 9px;
  background: #202c1e; border: 1px solid #60764c; color: var(--text); font-size: .83rem; cursor: default;
}
.scan-progress button { width: 30px; height: 30px; flex: none; }
.spinner { flex: 0 0 13px; height: 13px; border: 2px solid #637948; border-right-color: var(--lime); border-radius: 50%; animation: spin .72s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.map-footer { min-height: 40px; padding: 8px 13px; display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--muted); font-size: .8rem; }
.map-help, .edge-key { display: flex; align-items: center; gap: 6px; }
.map-help .icon { width: 14px; height: 14px; }
.touch-help { display: none; }
.edge-key { white-space: nowrap; }
.edge-key i { height: 2px; width: 17px; background: #8fa785; }
.sidebar { display: grid; gap: 12px; min-width: 0; }
.overview, .profile-card, .match-card { padding: 13px 14px; }
.side-heading { display: flex; align-items: center; gap: 8px; }
.side-heading .icon { width: 17px; height: 17px; color: var(--teal); }
.match-card { position: relative; border-color: #596b3d; background: linear-gradient(145deg, #263221, #1a241b 72%); }
.match-card .side-heading { color: var(--lime); }
.match-card .side-heading .icon { color: var(--lime); }
.match-card:has(.match-profile:not([hidden]))::before { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 3px; background: var(--lime); }
.match-status { margin-top: 11px; color: var(--muted); font-size: .875rem; }
.match-profile {
  display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-top: 10px; padding: 6px 0;
  text-align: start; background: transparent; border: 0; color: var(--text);
}
.match-profile:hover .match-name { text-decoration: underline; text-decoration-color: var(--lime); }
.match-profile .profile-avatar { width: 33px; height: 33px; }
.match-name { overflow-wrap: anywhere; font-weight: 700; }
.match-profile strong { font: 800 2.75rem/.85 var(--display); color: var(--lime); letter-spacing: -.015em; }
.match-genres { color: var(--text); font-size: .8rem; margin-top: 5px; }
.match-coverage { margin-top: 8px; color: var(--muted); font: .69rem/1.35 var(--mono); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; margin-block: 11px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.metrics div { display: grid; gap: 3px; padding: 0 10px 0 0; }
.metrics div + div { padding-left: 11px; border-left: 1px solid var(--line); }
.metrics strong { font: 800 2.48rem/.83 var(--display); letter-spacing: .02em; }
.metrics span { color: var(--muted); font-size: .83rem; }
.small-heading { color: var(--muted); font: 600 .71rem var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.ring-list { list-style: none; padding: 0; margin: 5px 0 0; }
.ring-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; min-height: 27px; align-items: center; color: var(--text); font-size: .85rem; }
.ring-key { width: 9px; height: 9px; background: var(--ring-tint); border: 1.5px solid var(--ring-color); border-radius: 50%; }
.ring-count { color: var(--muted); font: .78rem var(--mono); }
.coverage { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.4; display: flex; align-items: start; gap: 6px; }
.coverage .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--orange); }
.profile-identity { display: flex; align-items: center; gap: 10px; margin-block: 12px 9px; }
.profile-avatar { width: 39px; height: 39px; flex: none; }
.profile-label { min-width: 0; }
.profile-label h3 { font-size: .98rem; overflow-wrap: anywhere; }
.profile-layer { color: var(--label-color); font: 500 .72rem var(--mono); }
.profile-links { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .83rem; }
.profile-links .icon { color: var(--teal); width: 14px; height: 14px; }
.profile-compatibility { color: var(--lime); margin-top: 8px; font-size: .825rem; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.profile-actions .text-button { font-size: .81rem; }
.site-footer { display: flex; justify-content: end; align-items: center; min-height: 51px; }
.source-link { color: var(--muted); text-decoration: none; font: .75rem var(--mono); }
.source-link:hover { color: var(--lime); text-decoration: underline; }

dialog { width: min(510px, 100% - 28px); max-height: calc(100% - 30px); padding: 18px; background: #17201a; color: var(--text); border: 1px solid #526347; border-top: 3px solid var(--lime); box-shadow: 0 10px 55px #000a; }
dialog::backdrop { background: #0b0f0cd6; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-heading h2 { font-size: 1.23rem; font-weight: 700; }
dialog p { margin: 10px 0; color: var(--muted); line-height: 1.45; }
.share-dialog { width: min(570px, 100% - 24px); }
.share-dialog canvas { display: block; max-width: 100%; max-height: min(64vh, 630px); margin: 12px auto 0; width: auto; height: auto; border: 1px solid var(--line); }
.share-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-actions .secondary-button { min-height: 44px; }
#share-status { text-align: center; font-size: .84rem; }
#share-status:empty { display: none; }
.noscript { padding: 15px; text-align: center; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 60px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(335px, 395px); gap: 25px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
}
@media (max-width: 860px) {
  .shell { width: calc(100% - 38px); }
  .hero { display: block; padding-block: 28px 24px; }
  .hero h1 { font-size: clamp(4.1rem, 10vw, 6.2rem); }
  .setup { margin-top: 20px; max-width: 510px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 500px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { min-height: 56px; }
  .brand { font-size: 1.08rem; gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .site-nav { gap: 11px; }
  .site-nav .text-button { font-size: .76rem; }
  .hero h1 { margin-block: 12px; font-size: clamp(3.24rem, 12.5vw, 4.6rem); }
  .hero-description { font-size: .94rem; margin-top: 12px; }
  .setup { padding: 14px 12px 13px; }
  .setup-steps { margin-bottom: 13px; }
  .search-row .primary-button { padding-inline: 9px; }
  .map-header { padding-inline: 9px; min-height: 57px; gap: 6px; }
  .map-heading, .map-actions { gap: 6px; }
  .map-badge { font-size: .63rem; }
  .map-heading p, .map-heading .feature-icon { display: none; }
  .map-heading h2 { white-space: nowrap; }
  .share-button { padding: 4px 6px; margin: 0; font-size: .76rem; }
  .share-button .icon { width: 13px; height: 13px; }
  .map-footer { padding-inline: 7px; font-size: .71rem; }
  .map-help .icon { display: none; }
  .edge-key i { width: 9px; }
  .viewport { height: clamp(365px, 54svh, 470px); }
  .zoom-controls { right: 8px; bottom: 8px; }
  .zoom-controls button { width: 32px; }
  .map-scale { bottom: 8px; left: 8px; }
  .node-label { font-size: .68rem; }
  .sidebar { grid-template-columns: 1fr; gap: 10px; }
  .match-alert { top: 10px; padding: 5px 6px; font-size: .68rem; }
}
@media (pointer: coarse) { .mouse-help { display: none; } .touch-help { display: inline; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}
