:root {
  color-scheme: light;
  --page: #f3f1ec;
  --page-alt: #e9ece6;
  --surface: #faf9f5;
  --surface-raised: #fdfcf8;
  --surface-soft: #edf0e9;
  --surface-hover: #e5e9e1;
  --text: #1c2622;
  --muted: #5d6b64;
  --faint: #7d8982;
  --line: #d5dbd2;
  --line-strong: #aeb9b0;
  --accent: #d95d12;
  --accent-hover: #be4b08;
  --accent-soft: #f7e4d7;
  --accent-ink: #fffaf4;
  --system: #00735d;
  --system-soft: #dcece6;
  --system-ink: #f5fffb;
  --shadow: rgba(43, 56, 48, 0.16);
  --header: rgba(243, 241, 236, 0.9);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --header-layer: 40;
  --overlay-layer: 10;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121714;
  --page-alt: #18201c;
  --surface: #1b221e;
  --surface-raised: #202923;
  --surface-soft: #242e28;
  --surface-hover: #2b3730;
  --text: #f0f1ec;
  --muted: #adb8b1;
  --faint: #849087;
  --line: #344139;
  --line-strong: #536158;
  --accent: #ee711f;
  --accent-hover: #fa8131;
  --accent-soft: #472b1b;
  --accent-ink: #1c0d05;
  --system: #4bb79e;
  --system-soft: #1e453b;
  --system-ink: #0b1e19;
  --shadow: rgba(0, 0, 0, 0.38);
  --header: rgba(18, 23, 20, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-layer);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 3.4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; text-decoration: none; font-size: 15px; letter-spacing: -0.02em; }
.brand__mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 850; }
.brand__name strong { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); white-space: nowrap; }
.site-nav a, .nav-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .nav-button:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.theme-toggle, .catalog-link { min-height: 42px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 800; white-space: nowrap; }
.theme-toggle { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 0 14px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.theme-toggle__icon { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; box-shadow: inset -4px -2px 0 var(--surface); }
.catalog-link { display: inline-grid; place-items: center; padding: 0 18px; background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.catalog-link:hover { background: var(--accent-hover); }

.city-section { width: min(100%, 1640px); margin: 0 auto; padding: clamp(54px, 8vw, 108px) clamp(18px, 3.4vw, 56px) clamp(80px, 10vw, 148px); }
.city-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); gap: 60px; align-items: end; margin-bottom: 46px; }
.city-intro__copy { max-width: 840px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.city-intro h1 { max-width: 13ch; margin: 0; font-size: clamp(47px, 6.1vw, 92px); font-weight: 690; letter-spacing: -.07em; line-height: .94; }
.city-intro__copy > p:last-child { max-width: 70ch; margin: 25px 0 0; color: var(--muted); font-size: clamp(15px, 1.3vw, 19px); line-height: 1.6; }
.city-intro__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.city-intro__stats > div, .stat-button { display: flex; min-width: 0; flex-direction: column; gap: 4px; align-items: flex-start; border: 0; border-right: 1px solid var(--line); padding: 19px 14px 4px; background: transparent; color: var(--text); text-align: left; }
.city-intro__stats > :last-child { border-right: 0; }
.city-intro__stats strong { font-size: clamp(25px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.city-intro__stats span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.stat-button { cursor: pointer; }
.stat-button:hover strong { color: var(--accent); }

.city-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.city-card, .object-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 22px 70px -52px var(--shadow); }
.city-card { min-width: 0; overflow: hidden; }
.city-toolbar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; padding: 11px 18px 11px 24px; border-bottom: 1px solid var(--line); }
.view-tabs { display: flex; align-items: center; gap: 5px; min-width: 0; }
.view-tab { min-height: 50px; border: 0; border-radius: 12px; padding: 0 18px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.view-tab:hover { color: var(--text); background: var(--surface-soft); }
.view-tab.is-active { background: var(--system-soft); color: var(--text); }
.object-search { position: relative; width: min(250px, 30%); }
.search-field { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); color: var(--faint); }
.search-field:focus-within { border-color: var(--line-strong); color: var(--text); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-field input::placeholder { color: var(--faint); }
.search-results { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; width: min(360px, 76vw); max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: var(--surface-raised); box-shadow: 0 18px 45px var(--shadow); }
.search-result { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { background: var(--surface-soft); }
.search-result__number { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 850; }
.search-result span:last-child { min-width: 0; }
.search-result strong, .search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result strong { font-size: 13px; }
.search-result small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.city-map { position: relative; isolation: isolate; aspect-ratio: 3 / 2; overflow: hidden; background: #e4e7df; cursor: grab; touch-action: none; user-select: none; }
.city-map.is-dragging { cursor: grabbing; }
:root[data-theme="dark"] .city-map { background: #28302b; }
.city-map__transform { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.city-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.88) contrast(1.01); transition: opacity 440ms ease, filter 250ms ease; pointer-events: none; }
:root[data-theme="dark"] .city-layer { filter: brightness(.69) saturate(.7) contrast(1.06); }
.city-layer.is-visible { opacity: 1; }
.map-skeleton { position: absolute; inset: 0; z-index: 5; background: linear-gradient(105deg, var(--surface-soft) 8%, var(--surface-raised) 18%, var(--surface-soft) 33%); background-size: 230% 100%; animation: skeleton 1.6s linear infinite; transition: opacity 300ms ease; }
.city-map:not(.is-loading) .map-skeleton { opacity: 0; pointer-events: none; }
@keyframes skeleton { to { background-position-x: -230%; } }
.city-hotspots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.city-hotspot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); display: grid; width: clamp(29px, 2.5vw, 39px); height: clamp(29px, 2.5vw, 39px); place-items: center; border: 2px solid color-mix(in srgb, var(--text) 76%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--surface-raised) 94%, transparent); color: var(--text); box-shadow: 0 5px 14px rgba(21, 30, 25, .2); font-size: clamp(10px, .9vw, 13px); font-weight: 850; transform: translate(-50%, -50%); transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease; cursor: pointer; pointer-events: auto; }
.city-hotspot:hover, .city-hotspot:focus-visible { z-index: 8; transform: translate(-50%, -50%) scale(1.12); }
.city-hotspot.is-active { z-index: 7; border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.city-hotspot.is-match { border-color: var(--system); background: var(--system); color: var(--system-ink); }
.city-hotspot.is-active.is-match { outline: 3px solid color-mix(in srgb, var(--system) 30%, transparent); outline-offset: 3px; }
.city-hotspot.is-muted { opacity: .18; }
.city-hotspot__label { position: absolute; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 170px; overflow: hidden; border-radius: 7px; padding: 6px 8px; background: color-mix(in srgb, var(--surface-raised) 96%, transparent); color: var(--text); box-shadow: 0 6px 16px var(--shadow); font-size: 10px; font-weight: 750; line-height: 1; opacity: 0; text-overflow: ellipsis; transform: translate(-50%, 4px); transition: opacity 160ms ease, transform 160ms ease; white-space: nowrap; pointer-events: none; }
.city-hotspot:hover .city-hotspot__label, .city-hotspot:focus-visible .city-hotspot__label, .city-hotspot.is-active .city-hotspot__label { opacity: 1; transform: translate(-50%, 0); }
.system-lines { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity 250ms ease; pointer-events: none; }
.city-map.is-system-view .system-lines { opacity: 1; }
.system-route { fill: none; stroke: var(--system); stroke-width: .45; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1.5 1.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--surface-raised) 70%, transparent)); animation: route 20s linear infinite; }
.system-node { fill: var(--system); stroke: var(--surface-raised); stroke-width: .45; vector-effect: non-scaling-stroke; }
@keyframes route { to { stroke-dashoffset: -60; } }
.map-mode-label { position: absolute; top: 22px; left: 22px; z-index: 8; display: flex; max-width: 260px; flex-direction: column; gap: 3px; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: 11px; padding: 10px 12px; background: color-mix(in srgb, var(--surface-raised) 87%, transparent); box-shadow: 0 7px 22px -14px var(--shadow); backdrop-filter: blur(10px); pointer-events: none; }
.map-mode-label span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.map-mode-label strong { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.map-controls { position: absolute; right: 17px; bottom: 17px; z-index: 8; display: flex; gap: 6px; }
.map-controls button { display: grid; min-width: 43px; height: 43px; place-items: center; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--surface-raised) 93%, transparent); color: var(--text); box-shadow: 0 8px 25px -18px var(--shadow); font-size: 20px; font-weight: 700; cursor: pointer; backdrop-filter: blur(8px); }
.map-controls button:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.map-controls .map-controls__reset { width: auto; padding: 0 14px; font-size: 11px; }
.map-error { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 30px; background: var(--surface-soft); color: var(--muted); text-align: center; }
.map-error[hidden], .rack-error[hidden], .vendor-empty[hidden] { display: none; }
.map-instruction { margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.object-groups { display: flex; gap: 7px; overflow-x: auto; padding: 16px 18px; border-top: 1px solid var(--line); scrollbar-width: none; }
.object-groups::-webkit-scrollbar { display: none; }
.group-button { min-height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; padding: 0 13px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.group-button:hover { border-color: var(--line-strong); color: var(--text); }
.group-button.is-active { border-color: var(--text); background: var(--text); color: var(--surface); }
.system-selector { padding: 27px 24px 25px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.system-selector__head { display: grid; grid-template-columns: 1fr minmax(220px, 38%); gap: 24px; align-items: end; margin-bottom: 20px; }
.system-selector__head .eyebrow { margin-bottom: 7px; }
.system-selector__head h2 { margin: 0; font-size: clamp(20px, 2vw, 29px); letter-spacing: -.04em; }
.system-selector__head > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.system-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.system-chip { display: flex; min-width: 0; min-height: 53px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.system-chip:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.system-chip.is-active { border-color: color-mix(in srgb, var(--system) 55%, var(--line)); background: var(--system-soft); }
.system-chip__code { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--surface-soft); color: var(--system); font-size: 8px; font-weight: 900; letter-spacing: .02em; }
.system-chip.is-active .system-chip__code { background: var(--system); color: var(--system-ink); }
.system-chip__name { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.object-panel { position: sticky; top: 90px; min-height: 650px; overflow: hidden; padding: 31px 27px 27px; }
.object-panel__index { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 27px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 900; }
.object-panel__type { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.object-panel h2 { margin: 0; font-size: clamp(31px, 3vw, 48px); font-weight: 680; letter-spacing: -.055em; line-height: 1; }
.object-panel__description { min-height: 82px; margin: 18px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.coverage-line { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.coverage-line strong { color: var(--system); font-weight: 800; }
.detail-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 19px -4px 15px; }
.detail-tab { min-width: 0; border: 0; border-bottom: 2px solid transparent; padding: 9px 3px; background: transparent; color: var(--faint); font-size: 9px; font-weight: 750; cursor: pointer; }
.detail-tab:hover { color: var(--text); }
.detail-tab.is-active { border-bottom-color: var(--accent); color: var(--text); }
.object-panel__content { min-height: 214px; max-height: 335px; overflow: auto; padding-right: 4px; scrollbar-color: var(--line-strong) transparent; }
.detail-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.detail-item { display: grid; width: 100%; grid-template-columns: 31px 1fr auto; gap: 10px; align-items: center; min-height: 43px; border: 0; border-radius: 10px; padding: 7px 8px; background: var(--surface-soft); color: var(--text); text-align: left; cursor: pointer; }
.detail-item:hover { background: var(--surface-hover); }
.detail-item__code { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--surface-raised); color: var(--system); font-size: 7px; font-weight: 900; }
.detail-item strong { display: block; font-size: 10px; line-height: 1.2; }
.detail-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.25; }
.detail-item__arrow { color: var(--faint); font-size: 12px; }
.detail-text-item { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.4; }
.detail-text-item::before { content: ""; width: 5px; height: 5px; margin: 5px 0 0 5px; border-radius: 50%; background: var(--accent); }
.vendor-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 41px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 10px; font-weight: 750; text-decoration: none; }
.vendor-pill:hover { color: var(--accent); }
.vendor-pill small { color: var(--faint); font-size: 8px; font-weight: 650; }
.vendor-pill__meta { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.search-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 11px; text-align: center; }
.object-panel__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.primary-action, .secondary-action, .rack-action { display: grid; min-height: 43px; place-items: center; border-radius: 10px; padding: 0 10px; font-size: 9px; font-weight: 800; text-align: center; text-decoration: none; }
.primary-action { background: var(--accent); color: var(--accent-ink); }
.primary-action:hover { background: var(--accent-hover); }
.secondary-action { border: 1px solid var(--line); color: var(--text); }
.secondary-action:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.rack-action { grid-column: 1 / -1; display: flex; justify-content: space-between; border: 1px solid color-mix(in srgb, var(--system) 44%, var(--line)); background: var(--system-soft); color: var(--text); }
.rack-action[hidden] { display: none; }

.rack-section { padding: clamp(80px, 10vw, 150px) clamp(18px, 3.4vw, 56px); background: var(--page-alt); scroll-margin-top: 70px; }
.rack-section__heading { width: min(100%, 1450px); margin: 0 auto 48px; }
.rack-section__heading h2 { max-width: 13ch; margin: 0; font-size: clamp(39px, 5.5vw, 78px); font-weight: 680; letter-spacing: -.065em; line-height: .95; }
.rack-section__heading > p:last-child { max-width: 56ch; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.rack-hero { display: grid; grid-template-columns: minmax(190px, .62fr) minmax(340px, .9fr) minmax(290px, .72fr); gap: clamp(25px, 3vw, 55px); align-items: center; width: min(100%, 1450px); margin: 0 auto; }
.rack-hero__intro { max-width: 280px; }
.rack-kicker { margin: 0 0 12px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.rack-hero__intro h3 { margin: 0; font-size: clamp(36px, 4.2vw, 64px); font-weight: 680; letter-spacing: -.06em; line-height: .96; }
.rack-hero__intro > p:nth-of-type(2) { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.selection-status { display: flex; align-items: baseline; gap: 8px; margin-top: 37px; color: var(--faint); font-size: 9px; }
.selection-status strong { color: var(--text); font-size: 10px; }
.rack-visual { display: grid; place-items: center; min-width: 0; }
.rack-media { position: relative; width: min(100%, 490px); max-height: 76vh; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #111310; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .55); }
.rack-image { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: cover; object-position: center; opacity: 1; transition: opacity 250ms ease; }
.rack-media.is-loading .rack-image { opacity: 0; }
.rack-skeleton { position: absolute; inset: 0; z-index: 3; background: linear-gradient(100deg, #171a17 8%, #272b26 18%, #171a17 33%); background-size: 220% 100%; animation: skeleton 1.6s linear infinite; pointer-events: none; }
.rack-media:not(.is-loading) .rack-skeleton { display: none; }
.rack-hotspot { position: absolute; z-index: 4; left: 17%; width: 67%; border: 1px solid transparent; border-radius: 9px; background: color-mix(in srgb, var(--accent) 0%, transparent); color: var(--accent-ink); cursor: pointer; transition: background 170ms ease, border-color 170ms ease; }
.rack-hotspot span { position: absolute; right: 8px; top: 50%; border-radius: 7px; padding: 6px 8px; background: var(--accent); color: var(--accent-ink); font-size: 9px; font-weight: 850; opacity: 0; transform: translateY(-50%) translateX(6px); transition: opacity 160ms ease, transform 160ms ease; }
.rack-hotspot:hover, .rack-hotspot:focus-visible, .rack-hotspot.is-active { border-color: color-mix(in srgb, var(--accent) 85%, transparent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.rack-hotspot:hover span, .rack-hotspot:focus-visible span, .rack-hotspot.is-active span { opacity: 1; transform: translateY(-50%) translateX(0); }
.rack-hotspot--network { top: 7%; height: 12%; }
.rack-hotspot--scs { top: 19%; height: 19%; }
.rack-hotspot--servers { top: 39%; height: 14%; }
.rack-hotspot--storage { top: 54%; height: 15%; }
.rack-hotspot--power { top: 70%; height: 17%; }
.rack-error { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 30px; background: #171a17; color: #d7ddd7; text-align: center; }
.equipment-panel { min-width: 0; }
.equipment-panel__type { margin: 0 0 10px; color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.equipment-panel h3 { margin: 0; font-size: clamp(30px, 3vw, 45px); font-weight: 680; letter-spacing: -.05em; }
.equipment-panel__head > p:last-child { min-height: 60px; margin: 15px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.equipment-panel.is-updating { opacity: .55; transform: translateY(3px); }
.brand-links { display: grid; gap: 7px; }
.brand-link { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--surface); text-decoration: none; transition: border-color 160ms ease, background 160ms ease; }
.brand-link:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.brand-link strong, .brand-link small { display: block; }
.brand-link strong { font-size: 12px; }
.brand-link small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.brand-link__arrow { color: var(--accent); }
.all-category-link { display: flex; min-height: 47px; align-items: center; justify-content: space-between; margin-top: 12px; border-radius: 10px; padding: 0 14px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; text-decoration: none; }
.all-category-link:hover { background: var(--accent-hover); }

.vendor-dialog { width: min(880px, calc(100vw - 30px)); max-height: min(820px, calc(100dvh - 30px)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--surface-raised); color: var(--text); box-shadow: 0 35px 100px rgba(0, 0, 0, .35); }
.vendor-dialog::backdrop { background: rgba(19, 25, 21, .64); backdrop-filter: blur(5px); }
.vendor-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.vendor-dialog__head .eyebrow { margin-bottom: 7px; }
.vendor-dialog h2 { margin: 0; font-size: clamp(31px, 4vw, 51px); letter-spacing: -.055em; }
.dialog-close { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font-size: 25px; cursor: pointer; }
.dialog-close:hover { background: var(--surface-soft); }
.vendor-dialog__lead { margin: 15px 0 20px; color: var(--muted); font-size: 12px; }
.search-field--dialog { margin-bottom: 20px; }
.vendor-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 500px; overflow: auto; padding-right: 4px; }
.vendor-list a { display: flex; min-width: 0; min-height: 41px; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; color: var(--text); font-size: 10px; font-weight: 700; text-decoration: none; }
.vendor-list a:hover { border-color: var(--accent); color: var(--accent); }
.vendor-list small { color: var(--faint); font-size: 7px; white-space: nowrap; }
.vendor-empty { color: var(--muted); text-align: center; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 70px; align-items: start; padding: 42px clamp(18px, 3.4vw, 56px); border-top: 1px solid var(--line); background: var(--page); }
.brand--footer { align-self: center; }
.site-footer > div { display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 1220px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .city-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .system-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .object-panel { padding: 25px 21px; }
  .rack-hero { grid-template-columns: 180px minmax(320px, .9fr) minmax(270px, .7fr); }
}

@media (max-width: 960px) {
  .city-intro { grid-template-columns: 1fr; gap: 33px; }
  .city-intro__stats { max-width: 560px; }
  .city-workspace { grid-template-columns: 1fr; }
  .object-panel { position: static; min-height: 0; }
  .object-panel__description { min-height: 0; }
  .object-panel__content { max-height: none; }
  .system-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rack-hero { grid-template-columns: minmax(280px, .95fr) minmax(280px, .75fr); }
  .rack-hero__intro { grid-column: 1 / -1; max-width: 580px; }
  .selection-status { margin-top: 20px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 64px; padding: 9px 14px; }
  .brand__name { display: none; }
  .theme-toggle__label { display: none; }
  .theme-toggle { width: 42px; justify-content: center; padding: 0; }
  .catalog-link { padding: 0 13px; font-size: 10px; }
  .city-section { padding-top: 48px; }
  .city-intro { margin-bottom: 30px; }
  .city-intro h1 { font-size: clamp(45px, 15vw, 65px); }
  .city-intro__stats > div, .stat-button { padding-inline: 8px; }
  .city-toolbar { display: block; min-height: 0; padding: 10px; }
  .view-tabs { overflow-x: auto; scrollbar-width: none; }
  .view-tab { flex: 1 0 auto; min-height: 44px; padding-inline: 13px; }
  .object-search { width: 100%; margin-top: 8px; }
  .city-map { aspect-ratio: 3 / 2; }
  .map-mode-label { top: 10px; left: 10px; max-width: 195px; }
  .map-controls { right: 9px; bottom: 9px; gap: 4px; }
  .map-controls button { min-width: 37px; height: 37px; }
  .map-controls .map-controls__reset { padding-inline: 10px; }
  .map-instruction { padding: 12px 15px; line-height: 1.45; }
  .system-selector { padding: 22px 15px; }
  .system-selector__head { grid-template-columns: 1fr; gap: 8px; }
  .system-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .object-panel { padding: 24px 18px; }
  .rack-section { padding-inline: 18px; }
  .rack-hero { grid-template-columns: 1fr; }
  .rack-hero__intro, .equipment-panel { max-width: 520px; }
  .rack-media { max-height: none; }
  .rack-image { max-height: none; }
  .vendor-dialog { padding: 20px; }
  .vendor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 30px; }
  .site-footer .brand { grid-column: 1 / -1; }
  .site-footer .brand__name { display: inline; }
}

@media (max-width: 430px) {
  .city-intro__stats strong { font-size: 26px; }
  .city-intro__stats span { font-size: 9px; }
  .map-controls button:nth-child(-n + 2) { display: none; }
  .map-mode-label { max-width: 155px; }
  .map-mode-label strong { font-size: 10px; }
  .detail-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(82px, 1fr)); scrollbar-width: none; }
  .object-panel__actions { grid-template-columns: 1fr; }
  .rack-action { grid-column: 1; }
  .vendor-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
