:root {
  color-scheme: dark;
  --graphite: #0b0f14;
  --steel: #1e3a5f;
  --technical: #2f80ed;
  --industrial: #1a2f4d;
  --blueprint: #d9e1e8;
  --ink: #0b0f14;
  --panel: rgba(11, 15, 20, 0.88);
  --panel-solid: #101822;
  --line: rgba(217, 225, 232, 0.18);
  --text: #f7f9fb;
  --muted: rgba(217, 225, 232, 0.72);
  --accent: #2f80ed;
  --accent-soft: rgba(47, 128, 237, 0.18);
  --accent-line: rgba(47, 128, 237, 0.58);
  --white: #f7f9fb;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  --mobile-y-fix: 0px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(47, 128, 237, 0.14), transparent 30%),
    linear-gradient(135deg, #0b0f14 0%, #101822 52%, #071019 100%);
}

.app-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 58;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 54%, transparent 0 34%, rgba(11, 15, 20, 0.36) 68%, rgba(11, 15, 20, 0.82) 100%),
    linear-gradient(90deg, transparent, rgba(47, 128, 237, 0.15), transparent);
  transform: scale(1.02);
}

.app-shell.is-walking::after {
  animation: walkVignette 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-shell.is-walking #panoCanvas {
  animation: walkCanvas 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes walkVignette {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  34% {
    opacity: 1;
    transform: scale(1.045);
  }
  100% {
    opacity: 0;
    transform: scale(1.01);
  }
}

@keyframes walkCanvas {
  0% {
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
  38% {
    filter: blur(5px) brightness(0.76);
    transform: scale(1.035);
  }
  100% {
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

.technical-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(217, 225, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 225, 232, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 23% 30%, rgba(47, 128, 237, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 79% 62%, rgba(217, 225, 232, 0.13) 0 1px, transparent 2px);
  background-size: 44px 44px, 44px 44px, 18px 18px, 22px 22px;
  mix-blend-mode: screen;
  opacity: 0.36;
}

.technical-overlay::before,
.technical-overlay::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(47, 128, 237, 0.28);
  opacity: 0.62;
}

.technical-overlay::before {
  top: 112px;
  left: 26px;
  width: min(290px, 34vw);
  height: 160px;
  border-right: 0;
  border-bottom: 0;
}

.technical-overlay::after {
  right: 34px;
  bottom: 126px;
  width: min(360px, 34vw);
  height: 150px;
  border-left: 0;
  border-top: 0;
}

#panoCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#panoCanvas:active {
  cursor: grabbing;
}

.topbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 225, 232, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.94), rgba(10, 21, 34, 0.74)),
    linear-gradient(135deg, rgba(47, 128, 237, 0.16), transparent 44%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 72px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.18), transparent 48%),
    rgba(10, 21, 34, 0.82);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(217, 225, 232, 0.08);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
}

.brand-mark::before {
  left: 6px;
  top: 6px;
  border-width: 1px 0 0 1px;
}

.brand-mark::after {
  right: 6px;
  bottom: 6px;
  border-width: 0 1px 1px 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blueprint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.topbar-status {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.lang-toggle {
  min-width: 54px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(47, 128, 237, 0.58);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.18), transparent 52%),
    rgba(11, 15, 20, 0.72);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  outline: none;
  border-color: rgba(217, 225, 232, 0.72);
  background: rgba(47, 128, 237, 0.2);
}

.topbar-status span,
.asset-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(47, 128, 237, 0.46);
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.12);
  color: var(--blueprint);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.loading-state {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  gap: 12px;
  background: #0b0f14;
  color: var(--text);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-state.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-state p {
  color: var(--muted);
  font-size: 0.88rem;
}

.loading-meter {
  width: min(280px, 70vw);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.loading-meter span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--steel), var(--technical), var(--blueprint));
  animation: meter 1.1s ease-in-out infinite;
}

@keyframes meter {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.hotspot {
  --hotspot-color: var(--accent);
  position: absolute;
  min-width: 112px;
  height: 38px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 3px 8px 3px 3px;
  border: 1px solid color-mix(in srgb, var(--hotspot-color) 70%, rgba(217, 225, 232, 0.22));
  border-radius: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hotspot-color) 18%, transparent), transparent 72%),
    rgba(11, 15, 20, 0.88);
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-16px, -50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(217, 225, 232, 0.08);
  backdrop-filter: blur(12px);
  transition: opacity 100ms ease, filter 100ms ease, box-shadow 100ms ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  filter: brightness(1.12);
  outline: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 2px color-mix(in srgb, var(--hotspot-color) 45%, transparent);
}

.hotspot.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hotspot-target {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
  border: 2px solid var(--hotspot-color);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--hotspot-color) 52%, transparent) 0 3px, transparent 4px),
    rgba(11, 15, 20, 0.92);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hotspot-color) 18%, transparent);
}

.hotspot-target::before,
.hotspot-target::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--hotspot-color);
  transform: translate(-50%, -50%);
}

.hotspot-target::before {
  width: 18px;
  height: 1px;
}

.hotspot-target::after {
  width: 1px;
  height: 18px;
}

.hotspot-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 6px;
  min-width: 0;
}

.hotspot-code {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hotspot-type {
  min-width: 30px;
  padding: 3px 5px;
  border: 1px solid rgba(217, 225, 232, 0.24);
  border-radius: 4px;
  background: rgba(217, 225, 232, 0.08);
  color: var(--blueprint);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.hotspot[data-kind="safety"] {
  min-width: 104px;
}

.hotspot[data-kind="docs"],
.hotspot[data-kind="qr"] {
  min-width: 96px;
}

.hotspot-label {
  position: absolute;
  left: 16px;
  bottom: calc(100% + 12px);
  min-width: max-content;
  max-width: 260px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 15, 20, 0.9);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  transform: translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
  text-align: center;
}

.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label {
  opacity: 1;
  transform: translateY(0);
}

.app-shell.is-navigating .hotspot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.dossier {
  position: absolute;
  top: 100px;
  right: 18px;
  bottom: 122px;
  z-index: 30;
  width: min(450px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(217, 225, 232, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.09), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.dossier.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.dossier-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(47, 128, 237, 0.68);
  background: rgba(47, 128, 237, 0.16);
  outline: none;
}

.icon-button:active {
  transform: translateY(1px);
}

.asset-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px 0;
}

.asset-tag-muted {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.dossier-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(217, 225, 232, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 24, 34, 0.98), rgba(11, 15, 20, 0.92)),
    var(--panel-solid);
}

.dossier-tab {
  min-height: 46px;
  border: 1px solid rgba(217, 225, 232, 0.26);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(217, 225, 232, 0.1), rgba(217, 225, 232, 0.03)),
    rgba(11, 15, 20, 0.9);
  color: rgba(247, 249, 251, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dossier-tab:first-child {
  border-radius: 6px;
}

.dossier-tab:last-child {
  border-right: 1px solid rgba(217, 225, 232, 0.26);
  border-radius: 6px;
}

.dossier-tab.is-active {
  border-color: rgba(47, 128, 237, 0.92);
  background:
    linear-gradient(180deg, rgba(47, 128, 237, 0.38), rgba(47, 128, 237, 0.16)),
    rgba(11, 15, 20, 0.96);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(47, 128, 237, 0.3), 0 10px 24px rgba(0, 0, 0, 0.26);
}

.dossier-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.content-section {
  display: grid;
  gap: 14px;
}

.section-lead {
  color: rgba(247, 249, 251, 0.88);
  font-size: 0.9rem;
  line-height: 1.45;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-grid dt,
.info-grid dd {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  line-height: 1.25;
}

.info-grid dt {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.info-grid dd {
  color: var(--text);
}

.info-grid dt:last-of-type,
.info-grid dd:last-of-type {
  border-bottom: 0;
}

.callout {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 4px solid var(--accent);
  background:
    linear-gradient(90deg, rgba(47, 128, 237, 0.14), rgba(30, 58, 95, 0.06)),
    rgba(11, 15, 20, 0.46);
  border-radius: 0 6px 6px 0;
  color: rgba(247, 249, 251, 0.9);
  font-size: 0.86rem;
  line-height: 1.42;
}

.callout.safety {
  border-left-color: #6ba8ff;
  background: rgba(47, 128, 237, 0.1);
}

.callout.standard {
  border-left-color: var(--blueprint);
  background: rgba(217, 225, 232, 0.08);
}

.media-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
}

.media-frame {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.media-frame.is-annotated {
  position: relative;
}

.media-frame.is-annotated::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34));
}

.annotation {
  position: absolute;
  z-index: 1;
  max-width: 120px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
  background: rgba(11, 15, 20, 0.86);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.annotation::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 30px;
  background: var(--accent);
}

.annotation.a1 {
  left: 10%;
  top: 16%;
}

.annotation.a2 {
  right: 12%;
  top: 32%;
}

.annotation.a3 {
  left: 38%;
  bottom: 20%;
}

.measurement {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.measurement strong {
  color: var(--blueprint);
}

.measurement p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.step-list,
.doc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li,
.doc-list a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.32;
}

.step-index,
.doc-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(47, 128, 237, 0.16);
  color: var(--blueprint);
  font-weight: 900;
}

.doc-list a:hover,
.doc-list a:focus-visible {
  border-color: rgba(47, 128, 237, 0.68);
  outline: none;
}

.qr-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.qr-code {
  width: 150px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 1px;
  padding: 8px;
  border-radius: 6px;
  background: var(--blueprint);
}

.qr-code i {
  display: block;
  border-radius: 1px;
  background: transparent;
}

.qr-code i.on {
  background: #0b0f14;
}

.qr-panel p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.scene-rail {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 22;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(217, 225, 232, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.08), transparent 42%),
    rgba(11, 15, 20, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rail-heading {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.rail-heading span {
  color: var(--blueprint);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rail-heading strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.scene-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78px, 1fr);
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.scene-button {
  position: relative;
  min-width: 78px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.scene-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
}

.scene-button span {
  position: absolute;
  left: 7px;
  bottom: 6px;
  z-index: 1;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
}

.scene-button.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.scene-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tour-controls {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 21;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.qr-floating {
  position: absolute;
  left: 18px;
  bottom: 128px;
  z-index: 21;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 150px;
  padding: 8px;
  border: 1px solid rgba(47, 128, 237, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 128, 237, 0.12), transparent 48%),
    rgba(11, 15, 20, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  cursor: pointer;
  text-align: left;
}

.qr-floating strong {
  display: block;
  font-size: 0.78rem;
}

.qr-floating small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.qr-mini {
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 1px;
  padding: 4px;
  border-radius: 5px;
  background: var(--blueprint);
}

.qr-mini i {
  background: transparent;
}

.qr-mini i.on {
  background: #0b0f14;
}

.presentation-note {
  position: absolute;
  left: 18px;
  top: 92px;
  z-index: 18;
  max-width: min(430px, calc(100vw - 36px));
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background:
    linear-gradient(90deg, rgba(47, 128, 237, 0.14), rgba(11, 15, 20, 0.68)),
    rgba(11, 15, 20, 0.7);
  color: rgba(247, 249, 251, 0.9);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
  backdrop-filter: blur(16px);
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 114px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 17, 16, 0.9);
  color: var(--text);
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 880px) {
  .app-shell {
    height: 100dvh;
    min-height: 0;
  }

  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    align-items: flex-start;
    padding: 12px;
  }

  .topbar-status {
    display: none;
  }

  .lang-toggle {
    width: 48px;
    min-width: 48px;
    height: 36px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 0.98rem;
  }

  .presentation-note {
    display: none;
  }

  .dossier {
    top: 88px;
    left: 10px;
    right: 10px;
    bottom: 124px;
    width: auto;
    max-height: none;
    height: auto;
    transform: translateY(calc(100% + 24px));
  }

  .dossier.is-open {
    transform: translateY(0);
  }

  .dossier-tabs {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    overflow-x: auto;
  }

  .dossier-tab {
    min-width: 58px;
    font-size: 0.68rem;
  }

  .scene-rail {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .rail-heading {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
  }

  .scene-buttons {
    grid-auto-columns: 68px;
  }

  .scene-button {
    min-width: 68px;
    height: 52px;
  }

  .qr-floating {
    bottom: 118px;
    left: 10px;
    width: 58px;
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .qr-floating span:last-child {
    display: none;
  }

  .tour-controls {
    top: auto;
    right: 10px;
    bottom: 118px;
    grid-auto-flow: column;
    grid-template-columns: repeat(4, 40px);
    transform: none;
  }

  .media-strip,
  .qr-panel {
    grid-template-columns: 1fr;
  }

  .qr-code {
    width: min(160px, 60vw);
  }
}

@media (max-width: 520px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid dt,
  .info-grid dd {
    min-height: auto;
  }

  .info-grid dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .info-grid dd {
    padding-top: 0;
  }
}
