.viewer-page {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(10, 182, 255, 0.09), transparent 220px),
    #e8ecea;
  color: #202528;
}

.viewer-page .site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 58px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.viewer-page .shell {
  width: min(1500px, calc(100vw - 28px));
  padding-top: 14px;
}

.viewer-dashboard {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.viewer-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding: 12px 16px;
  border: 1px solid #e3a321;
  border-left-width: 6px;
  border-radius: 9px;
  background: #fff4cf;
  box-shadow: 0 8px 22px rgba(80, 54, 0, 0.12);
  color: #493400;
  font-size: 13px;
  line-height: 1.45;
}

.viewer-notice strong {
  color: #2f2200;
  font-size: 14px;
}

.viewer-level {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.viewer-module {
  min-width: 0;
  padding: 13px 14px;
}

.viewer-module-title {
  min-height: 18px;
  margin-bottom: 8px;
  color: #536268;
  font-size: 12px;
  font-weight: 850;
  line-height: 18px;
  text-transform: uppercase;
}

.viewer-code,
.viewer-building {
  min-height: 116px;
}

.viewer-page .code-row {
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 9px;
}

.viewer-page input[type="text"] {
  height: 58px;
  border-color: #0d9edb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 182, 255, 0.11);
  color: #14242b;
  font-size: 31px;
  text-align: center;
}

.viewer-page input[type="text"]::placeholder {
  color: #58686f;
  opacity: 1;
}

.viewer-page input[type="text"]:focus {
  box-shadow: 0 0 0 5px rgba(10, 182, 255, 0.18), 0 0 22px rgba(10, 182, 255, 0.22);
}

.icon-action {
  width: 58px;
  height: 58px;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.icon-action img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer-page .status {
  min-height: 18px;
  max-width: 100%;
  overflow: hidden;
  margin-top: 7px;
  color: #536268;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-page .summary {
  display: grid;
  height: 65px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.viewer-page .stat {
  display: flex;
  min-width: 0;
  min-height: 65px;
  flex-direction: column;
  justify-content: center;
  border-left-width: 4px;
  box-shadow: 0 7px 18px rgba(28, 31, 34, 0.07);
  padding: 8px 10px;
}

.viewer-page .stat strong {
  overflow: hidden;
  font-size: 20px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-page .stat span {
  margin-top: 4px;
  font-size: 10px;
}

.stage-toolbar {
  position: absolute;
  z-index: 8;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(18, 28, 33, 0.82);
  box-shadow: 0 8px 22px rgba(14, 23, 27, 0.24);
  backdrop-filter: blur(10px);
}

.stage-tool-button {
  display: inline-flex;
  height: 38px;
  min-height: 38px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #087fb4;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0 13px;
  text-align: center;
}

.stage-tool-button:hover,
.stage-tool-button:focus-visible {
  background: #0aa7e6;
  outline: 3px solid rgba(10, 182, 255, 0.18);
}

.viewer-page .stage {
  position: relative;
  overflow: hidden;
  padding-top: 82px;
  box-shadow: 0 16px 42px rgba(19, 28, 32, 0.14);
}

.viewer-page .loading-overlay {
  inset: 82px 10px 10px;
}

.viewer-controls {
  position: absolute;
  z-index: 9;
  right: 20px;
  bottom: 20px;
  width: min(310px, calc(100% - 40px));
  padding: 12px;
  border: 1px solid rgba(60, 194, 255, 0.38);
  border-radius: 18px;
  background: rgba(8, 27, 43, 0.88);
  box-shadow: 0 14px 34px rgba(4, 16, 26, 0.3);
  color: #fff;
  backdrop-filter: blur(12px);
}

.viewer-help {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.35;
}

.viewer-help strong {
  margin-bottom: 2px;
  color: #ffb51b;
  font-size: 13px;
  text-transform: uppercase;
}

.viewer-help span {
  color: rgba(237, 248, 255, 0.9);
}

.viewer-help-desktop {
  display: grid;
  gap: 3px;
}

.viewer-help-touch {
  display: none;
}

.camera-pad {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  grid-template-rows: repeat(3, 42px);
  justify-content: end;
  gap: 6px;
}

.camera-control {
  min-width: 0;
  min-height: 0;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #087fb4;
  color: #fff;
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.camera-control:hover,
.camera-control:focus-visible {
  background: #0aa7e6;
  outline: 3px solid rgba(10, 182, 255, 0.2);
}

.camera-control:active {
  transform: translateY(1px) scale(0.96);
}

.camera-control svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.camera-up { grid-column: 2; grid-row: 1; }
.camera-left { grid-column: 1; grid-row: 2; }
.camera-reset { grid-column: 2; grid-row: 2; background: #e69000; }
.camera-right { grid-column: 3; grid-row: 2; }
.camera-down { grid-column: 2; grid-row: 3; }
.camera-zoom-out { grid-column: 4; grid-row: 2; }
.camera-zoom-in { grid-column: 5; grid-row: 2; }

.viewer-page .three-stage canvas {
  cursor: grab;
  touch-action: none;
}

.viewer-page .three-stage canvas:active {
  cursor: grabbing;
}

@media (max-width: 980px) {
  .viewer-page .stat strong {
    font-size: 18px;
  }
}

@media (max-width: 780px) {
  .viewer-level {
    grid-template-columns: 1fr;
  }

  .viewer-page .summary {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
  }
}

@media (max-width: 620px) {
  .viewer-page {
    overflow-x: hidden;
  }

  .viewer-page .site-header {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .viewer-page .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 7px;
  }

  .viewer-page .legal-nav {
    gap: 8px;
  }

  .viewer-page .legal-nav a {
    font-size: 10px;
  }

  .viewer-page .language-current {
    min-width: 106px;
    height: 34px;
    min-height: 34px;
  }

  .viewer-page .shell {
    width: calc(100vw - 14px);
    padding-top: 7px;
  }

  .viewer-dashboard {
    gap: 7px;
  }

  .viewer-notice {
    margin-bottom: 7px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .viewer-level {
    gap: 7px;
  }

  .viewer-module {
    padding: 10px;
  }

  .viewer-page .code-row {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .viewer-page input[type="text"],
  .viewer-page .icon-action {
    height: 52px;
  }

  .viewer-page input[type="text"] {
    font-size: 27px;
  }

  .viewer-page .icon-action {
    width: 52px;
  }

  .viewer-code,
  .viewer-building {
    min-height: 0;
  }

  .viewer-page .summary {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewer-page .stat {
    min-height: 59px;
  }

  .stage-toolbar {
    top: 12px;
    right: 12px;
    gap: 5px;
    padding: 5px;
  }

  .viewer-page .stage {
    padding-top: 66px;
  }

  .viewer-page .loading-overlay {
    inset: 66px 10px 10px;
  }

  .stage-tool-button {
    height: 34px;
    min-height: 34px;
    font-size: 11px;
    padding: 0 9px;
  }

  .viewer-controls {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    padding: 8px 9px;
    border-radius: 14px;
  }

  .viewer-help {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .viewer-help strong {
    display: none;
  }

  .viewer-help-desktop {
    display: none;
  }

  .viewer-help-touch {
    display: block;
  }

  .camera-pad {
    grid-template-columns: repeat(5, minmax(38px, 44px));
    grid-template-rows: repeat(3, 38px);
    justify-content: center;
    gap: 5px;
  }

  .camera-control {
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
  }

  .viewer-page .three-stage {
    min-height: 430px;
    height: 68svh;
  }

  .viewer-page .status {
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .viewer-page .shell {
    width: calc(100vw - 8px);
  }

  .viewer-module {
    padding: 8px;
  }

  .viewer-page .stat {
    min-height: 54px;
    padding: 7px 8px;
  }

  .viewer-page .stat strong {
    font-size: 17px;
  }

  .stage-tool-button {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Viewer refresh: keep the plan readable while matching the dark Buildaster shell. */
.viewer-page {
  color-scheme: dark;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(10, 182, 255, 0.13), transparent 32rem),
    radial-gradient(circle at 0% 55%, rgba(123, 214, 47, 0.055), transparent 26rem),
    #07131b;
  color: #f6f7f2;
}

.viewer-page .site-header {
  min-height: 70px;
  border-bottom-color: rgba(255, 255, 255, 0.13);
  background: rgba(4, 14, 20, 0.8);
}

.viewer-page .shell {
  width: min(1320px, calc(100vw - 40px));
  padding: clamp(24px, 4vw, 48px) 0 80px;
}

.viewer-dashboard {
  margin-bottom: 16px;
}

.viewer-level {
  gap: 16px;
}

.viewer-module,
.viewer-page .panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17, 38, 48, 0.94), rgba(8, 23, 31, 0.92));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.viewer-module {
  padding: 20px;
}

.viewer-code,
.viewer-building {
  min-height: 142px;
}

.viewer-module-title {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.viewer-building .viewer-module-title {
  color: var(--yellow);
}

.viewer-page .code-row {
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 10px;
}

.viewer-page input[type="text"] {
  height: 56px;
  border: 1px solid rgba(10, 182, 255, 0.6);
  border-radius: 9px;
  background: rgba(3, 14, 21, 0.8);
  box-shadow: inset 0 0 20px rgba(10, 182, 255, 0.07);
  color: #fff;
  caret-color: var(--yellow);
  font-size: 29px;
}

.viewer-page input[type="text"]::placeholder {
  color: #78929b;
}

.viewer-page input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 182, 255, 0.15), 0 0 28px rgba(10, 182, 255, 0.16);
}

.icon-action {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 181, 27, 0.45);
  border-radius: 9px;
  background: rgba(255, 181, 27, 0.12);
  transition: background 160ms ease, transform 160ms ease;
}

.icon-action:hover,
.icon-action:focus-visible {
  background: rgba(255, 181, 27, 0.22);
  outline: 3px solid rgba(255, 181, 27, 0.13);
  transform: translateX(2px);
}

.viewer-page .status {
  color: #a9c1c8;
  font-size: 12px;
}

.viewer-page .summary {
  height: auto;
  gap: 10px;
}

.viewer-page .stat {
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: rgba(3, 14, 21, 0.62);
  box-shadow: none;
}

.viewer-page .stat:nth-child(2) { border-left-color: var(--yellow); }
.viewer-page .stat:nth-child(3) { border-left-color: var(--green); }
.viewer-page .stat:nth-child(4) { border-left-color: #b48cff; }

.viewer-page .stat strong {
  color: #fff;
  font-size: 21px;
}

.viewer-page .stat span {
  color: #8fa8af;
}

.viewer-notice {
  margin-bottom: 16px;
  border-color: rgba(255, 181, 27, 0.55);
  border-left-color: var(--yellow);
  border-radius: 12px;
  background: rgba(255, 181, 27, 0.1);
  box-shadow: none;
  color: #f0dfaf;
}

.viewer-notice strong {
  color: #fff1bd;
}

.viewer-page .stage {
  min-height: 620px;
  padding: 78px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 36, 46, 0.96), rgba(6, 18, 25, 0.96));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.25);
}

.viewer-page canvas,
.viewer-page .fallback-image,
.viewer-page .three-stage {
  border: 0;
  border-radius: 12px;
  background: #f5f5f0;
}

.viewer-page canvas,
.viewer-page .fallback-image {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.viewer-page .three-stage {
  height: min(72vh, 860px);
  min-height: 520px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

.stage-toolbar {
  top: 19px;
  right: 20px;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(4, 14, 20, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.stage-tool-button {
  height: 36px;
  min-height: 36px;
  border-radius: 7px;
  background: rgba(10, 182, 255, 0.17);
  color: #c9efff;
  font-size: 11px;
}

.stage-tool-button:first-child {
  background: var(--blue);
  color: #06131b;
}

.stage-tool-button:hover,
.stage-tool-button:focus-visible {
  background: #36c7ff;
  color: #06131b;
}

.viewer-page .loading-overlay {
  inset: 78px 12px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(5, 17, 24, 0.9);
  color: #fff;
  backdrop-filter: blur(7px);
}

.viewer-page .loading-title {
  color: #d9edf2;
}

.viewer-controls {
  right: 28px;
  bottom: 28px;
  border-color: rgba(10, 182, 255, 0.34);
  border-radius: 14px;
  background: rgba(4, 18, 28, 0.9);
}

.viewer-help strong {
  color: var(--yellow);
}

.camera-control {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: #087fb4;
}

.camera-control:hover,
.camera-control:focus-visible {
  background: #25b9f2;
}

.camera-control.camera-reset {
  background: #c17d06;
}

@media (max-width: 760px) {
  .viewer-page .shell {
    width: min(100% - 28px, 600px);
    padding-top: 22px;
  }

  .viewer-page .stage {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .viewer-page .site-header {
    position: relative;
    align-items: center;
    padding: 12px 14px;
  }

  .viewer-page .header-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    justify-items: end;
    gap: 8px;
  }

  .viewer-page .main-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    gap: 6px;
    padding-top: 5px;
  }

  .viewer-page .main-nav a {
    padding: 9px 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 11px;
    text-align: center;
  }

  .viewer-page .main-nav a::after { display: none; }

  .viewer-page .legal-nav {
    grid-column: 1;
    grid-row: 1;
    gap: 9px;
  }

  .viewer-page .language-picker {
    grid-column: 2;
    grid-row: 1;
  }

  .viewer-page .shell {
    width: calc(100vw - 24px);
    padding-top: 18px;
  }

  .viewer-level {
    grid-template-columns: 1fr;
  }

  .viewer-module {
    padding: 16px;
  }

  .viewer-page .stage {
    padding: 67px 7px 7px;
  }

  .viewer-page .loading-overlay {
    inset: 67px 7px 7px;
  }

  .viewer-page .three-stage {
    height: 70svh;
    min-height: 420px;
  }

  .stage-toolbar {
    top: 13px;
    right: 13px;
  }

  .viewer-controls {
    right: 15px;
    bottom: 15px;
    left: 15px;
    width: auto;
  }
}

@media (max-width: 430px) {
  .viewer-page .main-nav a { font-size: 11px; }
  .viewer-page .legal-nav a { font-size: 10px; }
  .viewer-page .language-current { min-width: 102px; }
  .viewer-page .shell { width: calc(100vw - 16px); }
  .viewer-module { padding: 13px; }
  .viewer-page .summary { gap: 7px; }
  .viewer-page .stat { min-height: 63px; padding: 8px; }
  .viewer-page .stat strong { font-size: 18px; }
  .viewer-page .stage { padding-top: 64px; }
  .viewer-page .loading-overlay { inset: 64px 7px 7px; }
  .stage-tool-button { max-width: 112px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .icon-action,
  .viewer-page input[type="text"] { transition: none !important; }
}

/* The guide embeds the same real viewer in a clean, interactive frame. */
.viewer-embed .site-header,
.viewer-embed .viewer-dashboard,
.viewer-embed .viewer-notice {
  display: none !important;
}

.viewer-embed .shell {
  width: 100%;
  padding: 0;
}

.viewer-embed .stage {
  min-height: 520px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.viewer-embed .loading-overlay {
  inset: 0;
  border-radius: 0;
}

.viewer-embed .three-stage {
  height: min(68vh, 560px);
  min-height: 420px;
  border-radius: 0;
}

.viewer-embed .stage-toolbar {
  top: 14px;
  right: 14px;
  display: none !important;
}

.viewer-embed .viewer-controls {
  right: 16px;
  bottom: 16px;
  display: none !important;
}

@media (max-width: 680px) {
  .viewer-embed .stage { min-height: 360px; }
  .viewer-embed .three-stage { height: 390px; min-height: 360px; }
  .viewer-embed .viewer-controls { display: none !important; }
}

@media (max-width: 680px) {
  .viewer-page:not(.viewer-embed) .site-header {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 15px 14px 13px;
  }

  .viewer-page:not(.viewer-embed) .site-brand {
    align-self: center;
    justify-content: center;
    width: 100%;
  }

  .viewer-page:not(.viewer-embed) .header-actions {
    align-items: center;
    flex-direction: column;
    gap: 9px;
    width: 100%;
  }

  .viewer-page:not(.viewer-embed) .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 1;
    gap: 7px;
    width: 100%;
  }

  .viewer-page:not(.viewer-embed) .main-nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    border: 1px solid rgba(7, 19, 27, 0.18);
    border-radius: 7px;
    text-align: center;
  }

  .viewer-page:not(.viewer-embed) .main-nav a::after { display: none; }

  .viewer-page:not(.viewer-embed) .legal-nav {
    order: 2;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .viewer-page:not(.viewer-embed) [data-language-switcher] { order: 0; }
}

/* Mobile viewer: navigation and camera actions should not cover the plan. */
.viewer-mobile-menu,
.viewer-controls-toggle {
  display: none;
}

@media (max-width: 680px) {
  .viewer-page:not(.viewer-embed) .site-header {
    position: relative;
    display: flex;
    min-height: 58px;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .viewer-page:not(.viewer-embed) .site-brand {
    width: auto;
    align-self: center;
  }

  .viewer-page:not(.viewer-embed) .header-actions {
    display: none;
  }

  .viewer-page:not(.viewer-embed) .viewer-mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .viewer-mobile-menu summary {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e9f8fd;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
  }

  .viewer-mobile-menu summary::-webkit-details-marker { display: none; }
  .viewer-mobile-menu summary span:first-child { color: var(--yellow); font-size: 19px; line-height: 1; }

  .viewer-mobile-menu-content {
    position: absolute;
    z-index: 50;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    width: min(272px, calc(100vw - 24px));
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 12px;
    background: rgba(4, 18, 28, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  }

  .viewer-mobile-menu-content .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .viewer-mobile-menu-content .main-nav a,
  .viewer-mobile-menu-content .legal-nav a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.055);
    color: #e9f8fd;
    font-size: 11px;
    text-align: center;
  }

  .viewer-mobile-menu-content .main-nav a::after { display: none; }
  .viewer-mobile-menu-content .legal-nav { display: flex; justify-content: center; gap: 12px; }
  .viewer-mobile-menu-content [data-language-switcher] { justify-self: stretch; }
  .viewer-mobile-menu-content .language-picker,
  .viewer-mobile-menu-content .language-current { width: 100%; }

  .viewer-controls-toggle {
    position: absolute;
    z-index: 10;
    right: 15px;
    bottom: 15px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(10, 182, 255, 0.48);
    border-radius: 50%;
    background: rgba(4, 18, 28, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    color: #dff7ff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .viewer-controls-toggle[aria-expanded="true"] {
    background: var(--blue);
    color: #06131b;
  }

  .viewer-controls:not(.is-mobile-open) { display: none !important; }

  .viewer-controls.is-mobile-open {
    right: 15px;
    bottom: 68px;
    left: auto;
    width: auto;
    padding: 8px;
  }

  .viewer-controls.is-mobile-open .viewer-help { display: none; }
}
