:root {
  color-scheme: dark;
  --bg: #0d0d12;
  --panel: #121218;
  --panel-2: #17171f;
  --line: rgba(255, 255, 255, 0.09);
  --muted: #9796a5;
  --text: #f4f1ea;
  --accent: #c9ff4a;
  --purple: #9e85ff;
  --required: #ff6d5f;
  --conditional: #ffc44d;
  --optional: #858493;
  --rail-w: 220px;
  --inspector-w: 342px;
  --topbar-h: 64px;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }

body {
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.topbar {
  height: var(--topbar-h);
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 18, 0.96);
  position: relative;
  z-index: 20;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .08em; width: max-content; }
.brand-mark { width: 25px; height: 25px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; transform: skew(-9deg); }
.brand-mark i { display: block; background: var(--accent); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 45%; opacity: .55; }
.brand-mark i:nth-child(2) { height: 72%; opacity: .78; }
.brand-mark i:nth-child(3) { height: 100%; }
.version { color: var(--muted); font-size: 9px; letter-spacing: .12em; border-left: 1px solid var(--line); padding-left: 10px; }

.project-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: #c7c5cf; font-size: 11px; background: rgba(255,255,255,.025); }
.project-pill strong { color: var(--accent); font-weight: 600; border-left: 1px solid var(--line); padding-left: 8px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,255,74,.08); }

.top-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.quiet-button { border: 0; background: transparent; color: #d1ced8; cursor: pointer; padding: 8px 10px; }
.quiet-button:hover { color: var(--accent); }
.prototype-label { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: #706f7c; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; }

.app-shell { height: calc(100vh - var(--topbar-h)); display: grid; grid-template-columns: var(--rail-w) minmax(0,1fr) var(--inspector-w); transition: grid-template-columns .24s ease; }
.app-shell.inspector-collapsed { grid-template-columns: var(--rail-w) minmax(0,1fr) 42px; }

.rail { background: #101015; border-right: 1px solid var(--line); padding: 20px 14px 15px; display: flex; flex-direction: column; position: relative; z-index: 10; }
.rail-heading { padding: 0 8px 18px; border-bottom: 1px solid var(--line); }
.rail-heading span, .rail-heading strong { display: block; }
.rail-heading span { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.rail-heading strong { font-size: 13px; font-weight: 600; }

.area-nav { padding: 14px 0; display: grid; gap: 4px; }
.area-button { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 28px 1fr 8px; align-items: center; text-align: left; padding: 9px 8px; color: #8f8e9b; border-radius: 7px; cursor: pointer; transition: .18s ease; }
.area-button:hover, .area-button.active { color: var(--text); background: rgba(255,255,255,.045); }
.area-button .num { font-size: 10px; font-variant-numeric: tabular-nums; color: #62616e; }
.area-button .label { font-size: 12px; font-weight: 600; }
.area-button .color { width: 6px; height: 6px; border-radius: 50%; background: var(--area-color); box-shadow: 0 0 8px color-mix(in srgb, var(--area-color) 70%, transparent); }

.rail-section { border-top: 1px solid var(--line); padding: 18px 8px 0; }
.connection-section { padding-bottom: 14px; }
.connection-section p { margin: 7px 0 0; color: #5f5d69; font-size: 9px; line-height: 1.45; }
.connection-symbol { display: inline-block; width: 13px; height: 8px; border-left: 1px solid #696774; border-bottom: 1px solid #696774; border-radius: 0 0 0 3px; }
.rail-label { color: #656471; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; display: block; margin-bottom: 9px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; color: #aaa8b4; font-size: 11px; cursor: pointer; }
.toggle-row > span { display: inline-flex; align-items: center; gap: 7px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row b { width: 23px; height: 13px; border-radius: 20px; background: #2a2932; border: 1px solid #3c3a45; position: relative; transition: .2s; }
.toggle-row b::after { content: ""; position: absolute; width: 7px; height: 7px; top: 2px; left: 2px; border-radius: 50%; background: #777582; transition: .2s; }
.toggle-row input:checked + b { background: rgba(201,255,74,.16); border-color: rgba(201,255,74,.35); }
.toggle-row input:checked + b::after { left: 12px; background: var(--accent); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot.required { background: var(--required); }
.status-dot.conditional { background: var(--conditional); }
.status-dot.optional { background: transparent; border: 1px solid var(--optional); }

.rail-note { margin: auto 2px 0; padding: 14px; background: linear-gradient(145deg, rgba(158,133,255,.11), rgba(201,255,74,.04)); border: 1px solid rgba(158,133,255,.18); border-radius: 9px; }
.eyebrow { display: block; color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: .17em; font-weight: 700; }
.rail-note p { color: #c7c4d0; font-size: 11px; line-height: 1.5; margin: 8px 0 0; }

.canvas-shell { min-width: 0; position: relative; overflow: hidden; background: #0b0b10; }
.viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; outline: none; touch-action: none; }
.viewport.grabbing { cursor: grabbing; }
.viewport::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.14) 0.7px, transparent .8px); background-size: 20px 20px; opacity: .34; pointer-events: none; }
.viewport::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 100px rgba(0,0,0,.34); }
.world { width: 5480px; height: 1360px; position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }

.area-zone { position: absolute; top: 58px; height: 1215px; border-radius: 18px; border: 1px solid rgba(255,255,255,.055); background: linear-gradient(180deg, color-mix(in srgb, var(--area-color) 5%, transparent), rgba(255,255,255,.006) 36%); overflow: visible; }
.area-zone::before { content: ""; position: absolute; left: 0; right: 0; top: 85px; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--area-color) 46%, transparent), transparent); }
.area-zone-header { position: absolute; left: 22px; top: 20px; display: flex; align-items: center; gap: 10px; transform: scale(var(--inverse-scale, 1)); transform-origin: left top; white-space: nowrap; z-index: 2; }
.area-zone-header b { font-size: 11px; color: var(--area-color); letter-spacing: .12em; }
.area-zone-header h2 { margin: 0; font-size: 18px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.world.overview .area-zone-header { flex-direction: column; align-items: flex-start; gap: 2px; }
.area-zone-copy { position: absolute; top: 29px; right: 28px; color: #6c6b77; font-size: 11px; max-width: 255px; text-align: right; line-height: 1.4; }
.world.overview .area-zone-copy { display: none; }
.lane-label { position: absolute; left: 22px; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; color: #5b5965; writing-mode: vertical-rl; transform: rotate(180deg); }
.lane-rule { position: absolute; left: 52px; right: 22px; height: 1px; background: rgba(255,255,255,.035); }

.connections { position: absolute; inset: 0; width: 5480px; height: 1360px; overflow: visible; pointer-events: none; }
.edge { fill: none; stroke: #4d5268; stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .14s ease, stroke .14s ease; }
.edge.main { stroke: #6374a4; stroke-width: 1.5; }
.edge.feedback { stroke: var(--accent); stroke-dasharray: 7 7; }
.connections.show-all .edge { opacity: .52; }
.connections.show-all .edge.dimmed { opacity: .07; }
.connections .edge.highlighted { stroke: #7697ff; stroke-width: 2; opacity: 1; filter: drop-shadow(0 0 4px rgba(106,169,255,.34)); }
.connections .edge.feedback.highlighted { stroke: var(--accent); }
.edge.bypassed { stroke-dasharray: 3 5; }
.edge.filtered { display: none; }

.node { --node-color: #8d8b97; position: absolute; width: 214px; min-height: 92px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: linear-gradient(145deg, #1a1a22, #14141b); box-shadow: 0 10px 28px rgba(0,0,0,.21); padding: 14px 15px 13px; cursor: pointer; transition: opacity .18s, border-color .18s, box-shadow .18s, filter .18s; outline: none; user-select: none; }
.node::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--node-color); opacity: .8; }
.node-port { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #17171f; border: 1px solid #565c72; box-shadow: 0 0 0 2px #111118; }
.node-port.in { left: -5px; }
.node-port.out { right: -5px; }
.node:hover, .node.active { border-color: color-mix(in srgb, var(--node-color) 65%, white); box-shadow: 0 16px 42px rgba(0,0,0,.34), 0 0 0 1px color-mix(in srgb, var(--node-color) 18%, transparent); z-index: 4; }
.node:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.node.is-hidden { opacity: 0; pointer-events: none; }
.node.is-dimmed { opacity: .18; filter: grayscale(.55); }
.node.is-related { border-color: rgba(201,255,74,.55); opacity: 1; }
.node.is-bypassed { opacity: .38; border-style: dashed; filter: grayscale(.7); }
.node-bypass-tag { display: none; position: absolute; right: 10px; bottom: -8px; background: #34323c; color: #aaa7b2; padding: 3px 6px; border-radius: 3px; font-size: 7px; font-weight: 750; letter-spacing: .11em; }
.node.is-bypassed .node-bypass-tag { display: block; }
.node-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.node-kind { color: #777582; text-transform: uppercase; letter-spacing: .11em; font-size: 8px; }
.node-code { color: #56545f; font-size: 8px; font-variant-numeric: tabular-nums; }
.node h3 { margin: 0; font-size: 13px; line-height: 1.25; font-weight: 620; letter-spacing: -.01em; }
.node h3 { padding-right: 22px; }
.node-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.node-owner { color: #706e7a; font-size: 9px; }
.criticality { display: inline-flex; align-items: center; gap: 5px; color: #767480; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.criticality::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--optional); }
.node[data-criticality="required"] .criticality::before { background: var(--required); }
.node[data-criticality="conditional"] .criticality::before { background: var(--conditional); }
.node[data-criticality="optional"] .criticality::before { background: transparent; border: 1px solid var(--optional); }
.node-enable { position: absolute; right: 11px; top: 32px; width: 24px; height: 14px; padding: 0; border: 1px solid rgba(201,255,74,.32); border-radius: 12px; background: rgba(201,255,74,.13); cursor: pointer; }
.node-enable::after { content: ""; position: absolute; width: 7px; height: 7px; top: 2px; right: 2px; border-radius: 50%; background: var(--accent); transition: .18s; }
.node-enable[aria-pressed="false"] { border-color: #45434e; background: #292831; }
.node-enable[aria-pressed="false"]::after { right: 12px; background: #777481; }

.node.gate { width: 238px; min-height: 112px; background: linear-gradient(145deg, #24212a, #17171e); border-color: rgba(255,255,255,.2); padding: 16px 17px; }
.node.gate::after { content: "DECISIÓN HUMANA"; position: absolute; left: 16px; top: -10px; background: var(--node-color); color: #0d0d12; padding: 4px 7px; border-radius: 3px; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.node.gate.flexible::after { content: "PAUSA RECOMENDADA"; }
.node.gate h3 { font-size: 15px; }
.node.hub { width: 264px; min-height: 138px; padding: 20px; background: radial-gradient(circle at 90% 10%, rgba(201,255,74,.10), transparent 42%), linear-gradient(145deg, #22232a, #17171d); border-color: rgba(201,255,74,.46); box-shadow: 0 18px 55px rgba(0,0,0,.4), 0 0 40px rgba(201,255,74,.055); }
.node.hub::before { width: 3px; background: var(--accent); }
.node.hub::after { content: "NÚCLEO VIVO"; position: absolute; right: 13px; top: 12px; color: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.node.hub h3 { font-size: 18px; max-width: 165px; }

.canvas-toolbar { position: absolute; z-index: 8; top: 16px; left: 16px; height: 34px; display: flex; align-items: center; border: 1px solid var(--line); background: rgba(17,17,23,.88); backdrop-filter: blur(12px); border-radius: 7px; overflow: hidden; }
.canvas-toolbar button { width: 34px; height: 34px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; color: #c6c4cc; }
.canvas-toolbar button:hover { background: rgba(255,255,255,.06); color: var(--accent); }
.canvas-toolbar span { width: 49px; text-align: center; color: #858390; font-size: 10px; font-variant-numeric: tabular-nums; }
.canvas-toolbar .fit-button { width: auto; padding: 0 12px; border-left: 1px solid var(--line); border-right: 0; font-size: 10px; }
.canvas-hint { position: absolute; z-index: 7; top: 18px; right: 18px; color: #6e6d79; font-size: 9px; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; transition: opacity .35s; }
.canvas-hint.hidden { opacity: 0; }
.mouse-icon { width: 10px; height: 14px; border: 1px solid #56545f; border-radius: 6px; position: relative; }
.mouse-icon::after { content: ""; position: absolute; left: 4px; top: 2px; height: 3px; width: 1px; background: #7d7b86; }

.canvas-legend { position: absolute; z-index: 7; bottom: 16px; left: 16px; display: flex; gap: 16px; color: #676571; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.connector { display: inline-block; width: 18px; height: 0; border-top: 1px solid #777480; margin-right: 5px; vertical-align: 2px; }
.connector.support { border-color: #44434d; }
.connector.feedback { border-color: var(--accent); border-top-style: dashed; }

.minimap { position: absolute; z-index: 7; right: 16px; bottom: 16px; width: 164px; height: 54px; background: rgba(20,20,27,.9); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.minimap-area { position: absolute; top: 7px; height: 40px; border-radius: 2px; background: color-mix(in srgb, var(--area-color) 18%, transparent); border: 1px solid color-mix(in srgb, var(--area-color) 28%, transparent); }
.minimap-window { position: absolute; border: 1px solid var(--accent); background: rgba(201,255,74,.05); min-width: 7px; min-height: 5px; }

.inspector { background: #121218; border-left: 1px solid var(--line); position: relative; z-index: 10; overflow-y: auto; overflow-x: hidden; }
.inspector-collapse { position: sticky; z-index: 3; top: 12px; float: left; margin-left: 10px; width: 24px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #191920; color: #8c8995; cursor: pointer; font-size: 19px; line-height: 1; }
.inspector-collapse:hover { color: var(--accent); border-color: rgba(201,255,74,.32); }
.inspector-rail-label { display: none; position: absolute; top: 56px; left: 14px; color: #75727f; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; writing-mode: vertical-rl; }
.app-shell.inspector-collapsed .inspector-collapse { transform: rotate(180deg); margin-left: 8px; }
.app-shell.inspector-collapsed .inspector-empty,
.app-shell.inspector-collapsed .inspector-content { display: none !important; }
.app-shell.inspector-collapsed .inspector-rail-label { display: block; }
.inspector-empty { padding: 45px 30px; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.inspect-orbit { width: 48px; height: 48px; border: 1px solid rgba(201,255,74,.22); border-radius: 50%; margin-bottom: 28px; position: relative; }
.inspect-orbit::before, .inspect-orbit::after { content: ""; position: absolute; border: 1px solid rgba(158,133,255,.22); border-radius: 50%; inset: 8px -8px; transform: rotate(42deg); }
.inspect-orbit::after { transform: rotate(-42deg); }
.inspect-orbit i { position: absolute; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; left: 20px; top: 20px; box-shadow: 0 0 16px rgba(201,255,74,.6); }
.inspector-empty h1 { font-size: 28px; line-height: 1.08; letter-spacing: -.045em; font-weight: 620; margin: 13px 0 16px; }
.inspector-empty p { color: var(--muted); line-height: 1.65; margin: 0; font-size: 12px; }

.inspector-content { padding: 24px 25px 30px; }
.inspector-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: #777582; font-size: 10px; }
.inspector-topline button { width: 27px; height: 27px; background: transparent; border: 1px solid var(--line); border-radius: 5px; color: #85838f; cursor: pointer; font-size: 18px; line-height: 1; }
.detail-kicker { display: flex; gap: 8px; margin-top: 28px; color: #777582; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.detail-kicker span + span::before { content: "·"; margin-right: 8px; }
.inspector-content h2 { margin: 10px 0 14px; font-size: 26px; line-height: 1.08; letter-spacing: -.04em; font-weight: 650; }
.detail-status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: #aaa8b3; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 22px; }
.detail-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--status-color); }
.detail-bypass { width: 100%; margin: 0 0 20px; padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; text-align: left; color: #cfccd5; border: 1px solid var(--line); background: #17171e; border-radius: 7px; cursor: pointer; }
.detail-bypass span { display: grid; gap: 3px; }
.detail-bypass b { font-size: 10px; font-weight: 600; }
.detail-bypass small { color: #706e7a; font-size: 8px; }
.detail-bypass i { width: 28px; height: 16px; border: 1px solid rgba(201,255,74,.35); background: rgba(201,255,74,.13); border-radius: 12px; position: relative; flex: 0 0 auto; }
.detail-bypass i::after { content: ""; position: absolute; width: 8px; height: 8px; top: 3px; right: 3px; border-radius: 50%; background: var(--accent); transition: .18s; }
.detail-bypass[aria-pressed="false"] i { border-color: #45434e; background: #292831; }
.detail-bypass[aria-pressed="false"] i::after { right: 15px; background: #777481; }
.detail-bypass[aria-pressed="false"] b { color: #85828e; text-decoration: line-through; }
.inspector-content section { border-top: 1px solid var(--line); padding: 17px 0 1px; }
.inspector-content section h3 { color: #72707d; text-transform: uppercase; font-size: 8px; letter-spacing: .14em; margin: 0 0 8px; }
.inspector-content section p { margin: 0 0 14px; color: #c0bdc8; line-height: 1.55; font-size: 11px; }
.inspector-content .limitation-block { border: 1px solid rgba(255,196,77,.15); background: rgba(255,196,77,.035); padding: 14px; border-radius: 7px; margin-top: 16px; }
.inspector-content .limitation-block h3 { color: #b89244; }
.inspector-content .limitation-block p { margin: 0; color: #beb6a4; }
.dependency-list { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.dependency-chip { border: 1px solid var(--line); background: #181820; border-radius: 4px; padding: 5px 7px; color: #aaa8b3; font-size: 9px; cursor: pointer; }
.dependency-chip:hover { border-color: rgba(201,255,74,.4); color: var(--accent); }
.dependency-none { color: #686672; font-size: 10px; }
.detail-owner { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 9px; color: #6e6c78; }
.detail-owner strong { color: #d5d2db; font-weight: 600; text-align: right; }

.tour-overlay { position: fixed; z-index: 100; inset: 0; background: rgba(7,7,10,.82); backdrop-filter: blur(9px); display: grid; place-items: center; }
.tour-overlay[hidden] { display: none; }
.tour-card { position: relative; width: min(800px, calc(100vw - 40px)); background: #18181f; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; padding: 38px; box-shadow: 0 35px 120px rgba(0,0,0,.55); }
.tour-card > h2 { font-size: 31px; line-height: 1.1; max-width: 610px; letter-spacing: -.04em; margin: 11px 0 30px; }
.tour-close { position: absolute; top: 17px; right: 17px; border: 0; background: transparent; color: #8b8995; font-size: 24px; cursor: pointer; }
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tour-grid article { padding: 22px 20px 24px 0; }
.tour-grid article + article { border-left: 1px solid var(--line); padding-left: 20px; }
.tour-grid strong { color: var(--accent); font-size: 9px; }
.tour-grid h3 { margin: 10px 0 7px; font-size: 13px; }
.tour-grid p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.primary-button { margin-top: 28px; border: 0; background: var(--accent); color: #11120d; border-radius: 6px; padding: 11px 16px; font-weight: 750; font-size: 11px; cursor: pointer; }

@media (max-width: 1050px) {
  :root { --rail-w: 184px; --inspector-w: 300px; }
  .project-pill span:not(.pulse) { display: none; }
  .canvas-hint { display: none; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 56px; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 12px; }
  .project-pill, .prototype-label { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .inspector { position: fixed; left: 10px; right: 10px; bottom: 10px; height: 42vh; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: translateY(calc(100% + 16px)); transition: transform .25s ease; }
  .inspector.has-content { transform: translateY(0); }
  .inspector-empty { display: none; }
  .minimap { right: 10px; bottom: 10px; }
  .canvas-legend { display: none; }
  .tour-card { padding: 28px 22px; max-height: calc(100vh - 30px); overflow: auto; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
