* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #f8f8fa;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a84ff;
  --accent-strong: #007aff;
  --warm: #a86a3d;
  --warm-soft: #efe0d2;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
summary {
  font: inherit;
}

button {
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
  border-radius: 8px;
  padding: 11px 15px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(210, 210, 215, 0.96);
  backdrop-filter: blur(12px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.topbar__logo {
  display: block;
  width: 44px;
  height: 18px;
  object-fit: contain;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.topbar__language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 5px;
  border: 1px solid rgba(120, 120, 128, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.topbar__language-select {
  width: 58px;
  height: 30px;
  padding: 0 22px 0 8px;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.topbar__language noscript {
  display: inline-flex;
  gap: 4px;
}

.topbar__language noscript a {
  min-width: 26px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.support-chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  font: inherit;
}

.support-chat__toggle {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(28, 28, 30, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(28, 28, 30, 0.16);
  cursor: pointer;
}

.support-chat__panel {
  position: absolute;
  right: 0;
  bottom: 52px;
  display: none;
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(28, 28, 30, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(28, 28, 30, 0.18);
}

.support-chat--open .support-chat__panel {
  display: grid;
  grid-template-rows: auto minmax(130px, 260px) auto;
}

.support-chat__head,
.support-chat__form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.support-chat__head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.support-chat__close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.support-chat__log {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow: auto;
  background: #f7f7f8;
}

.support-chat__message {
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.35;
  font-size: 14px;
}

.support-chat__message a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.support-chat__message--user a {
  color: #ffffff;
}

.support-chat__message--bot {
  justify-self: start;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.support-chat__message--user {
  justify-self: end;
  background: #1d4ed8;
  color: #ffffff;
}

.support-chat__message--notice {
  justify-self: center;
  max-width: 90%;
  background: transparent;
  color: var(--muted);
  border: 0;
  font-size: 13px;
  text-align: center;
}

.support-chat__form {
  border-top: 1px solid var(--line);
}

.support-chat__input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
}

.support-chat__send {
  min-height: 38px;
  padding: 0 12px;
  font-weight: 800;
}

.support-chat__send:disabled {
  opacity: 0.55;
  cursor: progress;
}

.simulator-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - 98px);
}

body.simulator-game-active .page {
  max-width: none;
  padding: 8px;
}

body.simulator-game-active .support-chat {
  display: none;
}

.simulator-shell--game {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 74px);
}

.simulator-shell--game .simulator-rail {
  display: none;
}

.simulator-shell--game-only {
  grid-template-columns: minmax(0, 1fr);
}

.simulator-shell--game-only .simulator-stage {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.simulator-shell--game-only .gateway-device,
.simulator-shell--game-only .simulator-tutorial-strip,
.simulator-shell--game.simulator-shell--game-only .seek-game-launch {
  display: none;
}

.seek-game-launch {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 98px);
}

.seek-game-launch__card {
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  padding: 22px;
  border: 1px solid rgba(210, 210, 215, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(28, 28, 30, 0.08);
}

.seek-game-launch__card strong {
  font-size: 24px;
  line-height: 1;
}

.seek-game-launch__button {
  text-align: center;
}

.seek-game-launch__link {
  justify-self: center;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.simulator-rail,
.simulator-stage {
  border: 1px solid rgba(210, 210, 215, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(28, 28, 30, 0.05);
}

.simulator-rail {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.simulator-rail__head {
  display: grid;
  gap: 6px;
}

.simulator-title,
.simulator-step-title {
  margin: 0;
  line-height: 1.08;
}

.simulator-title {
  font-size: 28px;
}

.simulator-step-title {
  font-size: 30px;
}

.simulator-scenario-list {
  display: grid;
  gap: 8px;
}

.simulator-tutorial-list {
  display: grid;
  gap: 8px;
}

.simulator-game-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 156, 92, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, 0.96), rgba(255, 238, 213, 0.92)),
    var(--surface);
  color: #2d2116;
  font-weight: 850;
  text-align: left;
}

.simulator-game-button--active {
  border-color: rgba(255, 156, 92, 0.78);
  background: rgba(255, 156, 92, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 156, 92, 0.22);
}

.simulator-tutorial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.simulator-tutorial-controls[hidden] {
  display: none;
}

.simulator-tutorial-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(94, 100, 112, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 241, 245, 0.95)),
    var(--surface);
  box-shadow:
    0 8px 20px rgba(28, 28, 30, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.simulator-tutorial-control:hover {
  border-color: rgba(0, 122, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 239, 250, 0.96)),
    var(--surface);
}

.simulator-tutorial-control:active {
  transform: translateY(1px);
}

.simulator-playback-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.simulator-playback-icon--rewind::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: #1d1d1f;
}

.simulator-playback-icon--rewind::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 11px solid #1d1d1f;
}

.simulator-playback-icon--pause::before,
.simulator-playback-icon--pause::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 5px;
  height: 16px;
  border-radius: 2px;
  background: #1d1d1f;
}

.simulator-playback-icon--pause::before {
  left: 4px;
}

.simulator-playback-icon--pause::after {
  right: 4px;
}

.simulator-playback-icon--play {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #1d1d1f;
  transform: translateX(2px);
}

.simulator-scenario,
.simulator-tutorial {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}

.simulator-scenario--active,
.simulator-tutorial--active {
  border-color: rgba(0, 122, 255, 0.62);
  background: rgba(0, 122, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.18);
}

.simulator-options {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.simulator-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}

.simulator-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.simulator-stage {
  position: relative;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  justify-items: center;
  gap: 8px;
  min-height: calc(100vh - 98px);
  padding: 20px;
}

.simulator-stage--game {
  min-height: calc(100vh - 74px);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0e1512;
  box-shadow: none;
}

.simulator-stage--game .simulator-tutorial-strip {
  display: none;
}

.seek-game {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  border: 1px solid rgba(25, 35, 30, 0.8);
  border-radius: 8px;
  background: #0d1518;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.seek-game[hidden] {
  display: none;
}

.seek-game__canvas {
  display: block;
  width: 100%;
  height: calc(100vh - 74px);
  min-height: 560px;
  cursor: crosshair;
  touch-action: none;
}

.seek-game__loading {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 156, 92, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(11, 18, 22, 0.78), rgba(7, 11, 14, 0.92));
  backdrop-filter: blur(8px);
}

.seek-game__loading--ready {
  cursor: pointer;
}

.seek-game__loading[hidden] {
  display: none;
}

.seek-game__loading-card {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 22px 24px;
  border: 1px solid rgba(255, 179, 98, 0.62);
  border-radius: 8px;
  background: rgba(16, 19, 18, 0.9);
  color: #fff8ef;
  text-align: center;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 239, 214, 0.13);
}

.seek-game__loading-card strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
}

.seek-game__loading-card p {
  margin: 0;
  color: rgba(255, 241, 224, 0.9);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 780;
  line-height: 1.36;
}

.seek-game__loading-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 154, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.seek-game__loading-bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ff9c5c, #ffd08a);
  box-shadow: 0 0 22px rgba(255, 156, 92, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.seek-game__loading-card output {
  color: rgba(255, 215, 163, 0.95);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.seek-game__loading-card em {
  display: block;
  color: rgba(255, 202, 143, 0.92);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seek-game__loading--ready .seek-game__loading-card {
  border-color: rgba(255, 184, 94, 0.94);
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.52),
    0 0 0 4px rgba(255, 156, 92, 0.16),
    inset 0 1px 0 rgba(255, 239, 214, 0.18);
}

.seek-game__reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(255, 156, 92, 0.26);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.seek-game--third .seek-game__reticle {
  opacity: 0;
}

.seek-game--aim .seek-game__reticle {
  opacity: 1;
}

.seek-game__cue {
  position: absolute;
  left: 50%;
  top: 14%;
  z-index: 8;
  display: grid;
  gap: 7px;
  min-width: min(440px, calc(100% - 36px));
  padding: 17px 20px 15px;
  border: 2px solid rgba(255, 166, 82, 0.94);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 18, 9, 0.94), rgba(13, 9, 7, 0.92));
  color: #fff7ed;
  text-align: center;
  box-shadow:
    0 0 0 0 rgba(255, 156, 92, 0.58),
    0 22px 70px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 231, 206, 0.18);
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(9px);
}

.seek-game__cue[hidden] {
  display: none;
}

.seek-game__cue--active {
  animation: seek-cue-pulse 1.1s ease-out infinite;
}

.seek-game__cue strong {
  font-size: 21px;
  line-height: 1.1;
}

.seek-game__cue span {
  color: rgba(255, 241, 224, 0.9);
  font-size: 14px;
  font-weight: 850;
}

.seek-game__cue em {
  color: rgba(255, 202, 143, 0.88);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seek-game__movement-map {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: min(390px, 100%);
  margin: 4px auto 2px;
  padding: 2px 0 0;
}

.seek-game__cue--movement .seek-game__movement-map {
  display: flex;
}

.seek-game__command-block {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 102px;
}

.seek-game__command-block--wasd {
  width: 148px;
  height: 112px;
  flex: 0 0 148px;
}

.seek-game__command-block--mode {
  grid-template-columns: 46px 38px 46px;
  column-gap: 12px;
  min-width: 150px;
}

.seek-game__command-block--wheel {
  min-width: 76px;
}

.seek-game__cue--success {
  top: 50%;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border-color: rgba(104, 224, 157, 0.95);
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 224, 157, 0.16), transparent 46%),
    rgba(8, 18, 14, 0.92);
  box-shadow:
    0 0 0 1px rgba(104, 224, 157, 0.34),
    0 26px 76px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(218, 255, 232, 0.2);
  scrollbar-width: thin;
  transform: translate(-50%, -50%);
}

.seek-game__cue--success strong {
  color: #dfffee;
}

.seek-game__distribution {
  display: grid;
  gap: 11px;
  width: min(430px, 100%);
  margin: 6px auto 0;
  padding: 13px 14px;
  border: 1px solid rgba(218, 255, 232, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    rgba(5, 14, 11, 0.58);
  text-align: left;
}

.seek-game__distribution[hidden] {
  display: none;
}

.seek-game__distribution-head {
  display: grid;
  gap: 7px;
}

.seek-game__distribution-head strong {
  color: #dfffee;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
}

.seek-game__distribution-note {
  color: rgba(223, 255, 238, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.seek-game__distribution-slider {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eb6a63, #f6a34a 47%, #68e09d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.17),
    0 8px 24px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.seek-game__distribution-slider i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent 60%);
  pointer-events: none;
}

.seek-game__distribution-slider b {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 27px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 5px rgba(255, 156, 92, 0.28),
    0 5px 16px rgba(0, 0, 0, 0.44);
  transform: translate(-50%, -50%);
}

.seek-game__distribution-axis {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(223, 255, 238, 0.62);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.seek-game__distribution-curve {
  display: grid;
  gap: 1px;
  padding: 5px 8px 2px;
  border: 1px solid rgba(223, 255, 238, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.seek-game__distribution-curve svg {
  display: block;
  width: 100%;
  height: 96px;
}

.seek-game__distribution-curve-fill {
  fill: rgba(86, 208, 221, 0.16);
}

.seek-game__distribution-curve-line {
  fill: none;
  stroke: #56d0dd;
  stroke-linecap: round;
  stroke-width: 4.5px;
  filter: drop-shadow(0 0 6px rgba(86, 208, 221, 0.28));
}

.seek-game__distribution-curve-marker {
  stroke: #ff9c5c;
  stroke-linecap: round;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 6px rgba(255, 156, 92, 0.7));
}

.seek-game__distribution-curve-dot {
  fill: #ffffff;
  stroke: #ff9c5c;
  stroke-width: 4px;
}

.seek-game__distribution-footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.seek-game__distribution-footer span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(223, 255, 238, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.seek-game__distribution-footer small {
  color: rgba(223, 255, 238, 0.62);
  font-size: 9px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.seek-game__distribution-footer strong {
  color: #fff7ed;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.seek-game__movement-axis {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: rgba(255, 190, 112, 0.92);
  box-shadow:
    0 0 18px rgba(255, 156, 92, 0.38),
    inset 0 1px 0 rgba(255, 246, 232, 0.5);
  transform: translate(-50%, -50%);
}

.seek-game__movement-axis::before,
.seek-game__movement-axis::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.seek-game__movement-axis--horizontal {
  width: 122px;
  height: 5px;
}

.seek-game__movement-axis--horizontal::before {
  left: -11px;
  top: 50%;
  border-top: 9px solid transparent;
  border-right: 13px solid rgba(255, 190, 112, 0.96);
  border-bottom: 9px solid transparent;
  transform: translateY(-50%);
}

.seek-game__movement-axis--horizontal::after {
  right: -11px;
  top: 50%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid rgba(255, 190, 112, 0.96);
  transform: translateY(-50%);
}

.seek-game__movement-axis--vertical {
  width: 5px;
  height: 88px;
}

.seek-game__movement-axis--vertical::before {
  left: 50%;
  top: -11px;
  border-right: 9px solid transparent;
  border-bottom: 13px solid rgba(255, 190, 112, 0.96);
  border-left: 9px solid transparent;
  transform: translateX(-50%);
}

.seek-game__movement-axis--vertical::after {
  left: 50%;
  bottom: -11px;
  border-top: 13px solid rgba(255, 190, 112, 0.96);
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
  transform: translateX(-50%);
}

.seek-game__movement-key {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: 1px solid rgba(255, 218, 170, 0.92);
  border-radius: 7px;
  background: rgba(255, 247, 237, 0.96);
  color: #2d190b;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.seek-game__movement-key--w {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.seek-game__movement-key--s {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.seek-game__movement-key--a {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.seek-game__movement-key--d {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.seek-game__movement-key--q {
  position: static;
  width: 38px;
  height: 32px;
  transform: none;
}

.seek-game__stick-icon {
  display: block;
  width: 46px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 156, 92, 0.28));
}

.seek-game__stick-icon--walk {
  opacity: 0.82;
}

.seek-game__stick-icon--run {
  transform: translateY(-2px);
}

.seek-game__scroll-wheel-icon {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 156, 92, 0.3));
}

@media (max-width: 720px) {
  .seek-game__movement-map {
    gap: 14px;
  }

  .seek-game__command-block--wasd {
    width: 132px;
    flex-basis: 132px;
  }

  .seek-game__command-block--mode {
    min-width: 126px;
    grid-template-columns: 40px 34px 40px;
    column-gap: 9px;
  }

  .seek-game__stick-icon {
    width: 40px;
    height: 58px;
  }

  .seek-game__command-block--wheel {
    min-width: 58px;
  }

  .seek-game__scroll-wheel-icon {
    width: 58px;
    height: 58px;
  }
}

.seek-game__cue:hover,
.seek-game__cue:focus-visible {
  border-color: rgba(255, 194, 119, 1);
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 156, 92, 0.22),
    0 26px 76px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 231, 206, 0.22);
}

@keyframes seek-cue-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 156, 92, 0.68),
      0 22px 70px rgba(0, 0, 0, 0.54),
      inset 0 1px 0 rgba(255, 231, 206, 0.18);
  }

  100% {
    box-shadow:
      0 0 0 24px rgba(255, 156, 92, 0),
      0 22px 70px rgba(0, 0, 0, 0.54),
      inset 0 1px 0 rgba(255, 231, 206, 0.18);
  }
}

.seek-game__prompt {
  position: absolute;
  left: calc(16px + clamp(210px, 19vw, 280px) + 16px);
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(210, 221, 235, 0.14);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.52);
  color: rgba(245, 247, 248, 0.84);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.seek-game__minimap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  width: clamp(210px, 19vw, 280px);
  aspect-ratio: 1.35;
  overflow: hidden;
  border: 1px solid rgba(210, 221, 235, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 17, 22, 0.66), rgba(8, 12, 16, 0.76));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.seek-game__minimap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.seek-game__minimap-scale {
  position: absolute;
  left: 16px;
  bottom: clamp(182px, 16vw, 234px);
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: clamp(210px, 19vw, 280px);
  padding: 7px 8px;
  border: 1px solid rgba(210, 221, 235, 0.18);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.7);
  color: rgba(245, 247, 248, 0.92);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.seek-game__minimap-scale[hidden] {
  display: none;
}

.seek-game__minimap-scale span,
.seek-game__minimap-scale output {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.seek-game__minimap-scale output {
  color: #ffd3b8;
  text-align: right;
}

.seek-game__minimap-scale input {
  width: 100%;
  min-width: 0;
  height: 18px;
  padding: 0;
  accent-color: #ff9c5c;
}

.seek-game__overview {
  position: absolute;
  inset: 72px 92px 58px;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(210, 221, 235, 0.2);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.88);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  cursor: default;
  pointer-events: auto;
}

.seek-game__overview[hidden] {
  display: none;
}

.seek-game__overview canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.seek-game__overview span {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(6, 11, 16, 0.68);
  color: rgba(245, 247, 248, 0.88);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.seek-builder {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 128px;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: rgba(6, 11, 16, 0.96);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.seek-builder[hidden] {
  display: none;
}

.seek-builder__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 2px;
}

.seek-builder__toolbar button,
.seek-builder__toolbar input,
.seek-builder__toolbar select {
  min-height: 34px;
  border: 1px solid rgba(210, 221, 235, 0.18);
  border-radius: 7px;
  background: rgba(18, 28, 46, 0.86);
  color: #f5f7f8;
  font-size: 12px;
  font-weight: 800;
}

.seek-builder__toolbar button {
  padding: 7px 10px;
}

.seek-builder__toolbar button.seek-builder__mode--active,
.seek-builder__toolbar button.seek-builder__style--active,
.seek-builder__toolbar button.seek-game__action--active {
  border-color: rgba(255, 156, 92, 0.72);
  background: rgba(255, 156, 92, 0.22);
}

.seek-builder__toolbar label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #d2ddeb;
  font-size: 12px;
  font-weight: 800;
}

.seek-builder__toolbar input {
  width: 72px;
  padding: 5px 7px;
}

.seek-builder__toolbar input#seek-builder-area,
.seek-builder__toolbar input#seek-builder-rotation,
.seek-builder__toolbar input#seek-builder-width {
  width: 64px;
}

.seek-builder__toolbar input#seek-builder-area {
  width: 86px;
}

.seek-builder__toolbar select {
  min-width: 142px;
  padding: 5px 7px;
}

.seek-builder__toolbar select#seek-builder-cat {
  width: 172px;
}

.seek-builder canvas {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 1px solid rgba(210, 221, 235, 0.16);
  border-radius: 8px;
  background: #091018;
  cursor: crosshair;
}

.seek-builder.seek-builder--pan canvas {
  cursor: grab;
}

.seek-builder.seek-builder--panning canvas {
  cursor: grabbing;
}

.seek-builder textarea {
  width: 100%;
  min-height: 128px;
  resize: none;
  border: 1px solid rgba(210, 221, 235, 0.16);
  border-radius: 8px;
  background: rgba(9, 16, 24, 0.92);
  color: #d2ddeb;
  font: 11px/1.35 Consolas, monospace;
}

body.simulator-builder-open {
  overflow: hidden;
}

.seek-game__gateway-buttons {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: none;
  gap: 10px;
  justify-items: center;
  padding: 0;
}

.seek-game__gateway-button-wrap {
  width: 74px;
  height: 54px;
}

.seek-game__gateway-button-wrap::after {
  width: 52px;
  height: 52px;
  border-width: 2px;
}

.seek-game__gateway-button-wrap.gateway-control-wrap--select::after {
  width: 56px;
  height: 44px;
  border-radius: 14px;
}

.seek-game__gateway-button-wrap .gateway-control {
  width: 58px;
  height: 42px;
  min-height: 42px;
  font-size: 12px;
}

.seek-game__gateway-button-wrap .gateway-control--arrow {
  width: 62px;
  height: 44px;
  min-height: 44px;
}

.seek-game__gateway-button-wrap .gateway-control--arrow::before {
  inset: 5px 8px 8px;
}

.seek-game__gateway-button-wrap .gateway-control--arrow::after {
  top: 11px;
  left: 27px;
  width: 8px;
  height: 16px;
}

.seek-game__gateway-button-wrap .gateway-control--select {
  width: 58px;
  height: 38px;
  min-height: 38px;
  border-radius: 11px;
}

.seek-game__mobile-controls,
.seek-game__mobile-orientation {
  display: none;
}

.seek-game__mobile-controls {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 8;
  pointer-events: none;
}

.seek-game__joystick {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(12, 18, 20, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.26);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
}

.seek-game__joystick::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.seek-game__joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 245, 228, 0.94), rgba(255, 170, 94, 0.9));
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transform: translate(calc(-50% + var(--joy-x, 0px)), calc(-50% + var(--joy-y, 0px)));
}

.seek-game__joystick--look {
  right: 0;
  left: auto;
}

.seek-game__joystick--look .seek-game__joystick-knob {
  background: linear-gradient(180deg, rgba(236, 250, 255, 0.94), rgba(88, 198, 255, 0.82));
  transform: translate(calc(-50% + var(--look-x, 0px)), calc(-50% + var(--look-y, 0px)));
}

.seek-game__look-wheel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.seek-game__look-wheel::before {
  display: none;
}

.seek-game__look-wheel .seek-game__joystick-knob {
  display: none;
}

.seek-game__look-wheel-rim {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(234, 248, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, rgba(4, 11, 16, 0.1) 0 46%, rgba(3, 8, 12, 0.62) 62%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(145deg, rgba(235, 249, 255, 0.2), rgba(14, 43, 57, 0.1) 42%, rgba(0, 0, 0, 0.48));
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.13),
    inset 0 -11px 24px rgba(0, 0, 0, 0.55),
    0 13px 30px rgba(0, 0, 0, 0.34);
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.seek-game__look-wheel-rim::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 23%, rgba(255, 255, 255, 0.96) 0 7%, rgba(255, 255, 255, 0.48) 8% 14%, transparent 15%),
    radial-gradient(circle at 34% 27%, rgba(238, 253, 255, 0.56) 0 17%, transparent 34%),
    radial-gradient(circle at 69% 77%, rgba(0, 22, 38, 0.48) 0 24%, transparent 50%),
    radial-gradient(circle at 44% 38%, #82ddff 0, #3daee8 38%, #1872b6 66%, #08345d 100%);
  box-shadow:
    inset 8px 10px 15px rgba(255, 255, 255, 0.22),
    inset -14px -16px 28px rgba(0, 18, 42, 0.62),
    0 9px 16px rgba(0, 0, 0, 0.36);
  transform: translate(calc(-50% + var(--look-x, 0px) * 0.18), calc(-50% + var(--look-y, 0px) * 0.18)) rotate(var(--look-spin, 0deg));
  transition: transform 65ms linear;
}

.seek-game__look-wheel-rim::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(0, 0, 0, 0.44) 0 12%, transparent 36%),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(0, 0, 0, 0.35) 70%, rgba(255, 255, 255, 0.18) 92%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.seek-game__look-wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 -28px 0 -4px rgba(255, 255, 255, 0.3),
    0 28px 0 -4px rgba(255, 255, 255, 0.16),
    28px 0 0 -4px rgba(255, 255, 255, 0.18),
    -28px 0 0 -4px rgba(255, 255, 255, 0.18);
  opacity: 0.75;
  transform: translate(-50%, -50%) rotate(var(--look-spin, 0deg));
}

.seek-game__look-wheel-hub::before {
  content: "O";
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(4, 47, 80, 0.48);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 -1px 0 rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.seek-game__joystick--pinging {
  border-color: rgba(104, 224, 157, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(104, 224, 157, 0.22),
    0 0 0 5px rgba(104, 224, 157, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.26);
}

.seek-game__look-wheel.seek-game__joystick--pinging {
  box-shadow: none;
}

.seek-game__look-wheel.seek-game__joystick--pinging .seek-game__look-wheel-rim {
  border-color: rgba(104, 224, 157, 0.58);
  box-shadow:
    inset 0 0 0 2px rgba(104, 224, 157, 0.18),
    inset 0 0 22px rgba(104, 224, 157, 0.16),
    0 0 0 5px rgba(104, 224, 157, 0.1),
    0 13px 30px rgba(0, 0, 0, 0.32);
}

.seek-game__joystick em {
  position: absolute;
  left: 50%;
  bottom: -24px;
  min-width: 68px;
  color: rgba(255, 248, 236, 0.9);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
}

.seek-game__mobile-scan-hint {
  position: absolute;
  right: 0;
  bottom: 132px;
  width: min(190px, 42vw);
  padding: 8px 10px;
  border: 1px solid rgba(104, 224, 157, 0.42);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.78);
  color: #eefdf5;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.seek-game__mobile-scan-hint--visible {
  opacity: 1;
  transform: translateY(0);
}

.seek-game__mobile-orientation {
  position: absolute;
  inset: 0;
  z-index: 40;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 156, 92, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(8, 13, 16, 0.82), rgba(5, 8, 10, 0.96));
  color: #fff6ea;
  text-align: center;
}

.seek-game__mobile-orientation strong,
.seek-game__mobile-orientation span {
  display: block;
}

.seek-game__mobile-orientation strong {
  font-size: 28px;
  line-height: 1;
}

.seek-game__mobile-orientation span {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 760;
  opacity: 0.86;
}

.seek-game__hud {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(210, 221, 235, 0.16);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.62);
  color: #f5f7f8;
  backdrop-filter: blur(8px);
}

.seek-game__hud strong,
.seek-game__hud span {
  line-height: 1.2;
}

.seek-game__hud strong {
  font-size: 15px;
}

.seek-game__hud span {
  color: #d2ddeb;
  font-size: 12px;
  font-weight: 800;
}

.seek-game__controls {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(2, 44px);
  gap: 8px;
}

.seek-game__controls button,
.seek-game__actions button {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(210, 221, 235, 0.16);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.62);
  color: #f5f7f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.seek-game__controls button:active,
.seek-game__actions button:active {
  transform: translateY(1px);
}

.seek-game__controls button span {
  width: 0;
  height: 0;
  border-style: solid;
}

#seek-game-forward {
  grid-column: 2;
  grid-row: 1;
}

#seek-game-forward span {
  border-width: 0 9px 14px;
  border-color: transparent transparent #f5f7f8;
}

#seek-game-back {
  grid-column: 2;
  grid-row: 2;
}

#seek-game-back span {
  border-width: 14px 9px 0;
  border-color: #f5f7f8 transparent transparent;
}

#seek-game-left {
  grid-column: 1;
  grid-row: 2;
}

#seek-game-left span {
  border-width: 9px 14px 9px 0;
  border-color: transparent #f5f7f8 transparent transparent;
}

#seek-game-right {
  grid-column: 3;
  grid-row: 2;
}

#seek-game-right span {
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #f5f7f8;
}

.seek-game__actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.seek-game__scenarios {
  display: flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(210, 221, 235, 0.14);
  border-radius: 8px;
  background: rgba(6, 11, 16, 0.44);
  backdrop-filter: blur(8px);
}

.seek-game__actions button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 850;
}

.seek-game__actions button.seek-game__action--active,
.seek-game__actions button.seek-game__scenario--active {
  border-color: rgba(255, 156, 92, 0.72);
  background: rgba(255, 156, 92, 0.22);
  color: #ffffff;
}

.seek-game__attribution {
  position: absolute;
  right: 16px;
  top: 62px;
  z-index: 2;
  max-width: 220px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(6, 11, 16, 0.46);
  color: rgba(245, 247, 248, 0.7);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-align: right;
  backdrop-filter: blur(8px);
}

.seek-game__attribution a {
  color: rgba(245, 247, 248, 0.9);
}

.simulator-tutorial-strip {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 720px);
  margin-top: -2px;
}

.simulator-practice-hint {
  width: min(100%, 560px);
  min-height: 24px;
  margin: 0;
  color: #5f6673;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.simulator-practice-hint--notice {
  width: min(100%, 660px);
  min-height: 64px;
  color: #1d1d1f;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 850;
  line-height: 1.25;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 26px rgba(15, 23, 42, 0.16);
}

.simulator-practice-hint[hidden] {
  display: none;
}

.simulator-stage__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 860px);
}

.simulator-step-count {
  display: flex;
  min-width: 150px;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.simulator-step-count span {
  flex: 1;
}

.simulator-reset {
  width: 100%;
}

.gateway-device {
  width: min(100%, 456px);
  display: grid;
  gap: 8px;
  color: #f5f7f8;
}

.gateway-face {
  --gateway-display-scale: 1.0875;
  display: grid;
  grid-template-columns: 276px 138px;
  gap: 36px;
  align-items: center;
  justify-content: center;
}

.simulator-password-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  justify-self: start;
  width: 276px;
  height: 32px;
  border-radius: 8px;
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  visibility: hidden;
  opacity: 1;
  transform: translateY(18px);
  transition: transform 360ms cubic-bezier(0.2, 0.85, 0.24, 1);
}

.simulator-password-cue--visible {
  visibility: visible;
  transform: translateY(0);
}

.simulator-password-cue--measuring {
  visibility: hidden;
  transform: translateY(0);
}

.simulator-password-cue__char {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 360ms ease;
}

.simulator-password-cue__char--space {
  min-width: 16px;
}

.simulator-password-cue__char--gone {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(-5px) scale(0.86);
}

.simulator-caption-password-anchor {
  display: inline-block;
  white-space: nowrap;
}

.simulator-password-float {
  position: fixed;
  z-index: 50;
  display: grid;
  place-items: center;
  color: #1d1d1f;
  font-weight: 850;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(0, 0);
  will-change: transform;
}

.simulator-password-float--moving {
  transition: transform 460ms cubic-bezier(0.2, 0.85, 0.24, 1);
}

.simulator-pairing-visual {
  position: relative;
  justify-self: start;
  width: 276px;
  height: 96px;
  margin-top: 2px;
  color: #111827;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.simulator-pairing-visual[hidden] {
  display: none;
}

.simulator-pairing-visual--visible {
  opacity: 1;
  transform: translateY(0);
}

.simulator-pairing-visual__charger,
.simulator-pairing-visual__collar,
.simulator-pairing-visual__wave {
  position: absolute;
  display: block;
}

.simulator-pairing-visual__charger {
  left: 52px;
  top: 16px;
  width: 172px;
  height: 56px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 237, 244, 0.94)),
    #eef2f7;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.simulator-pairing-visual__slot {
  position: absolute;
  left: 36px;
  top: 13px;
  width: 96px;
  height: 30px;
  border-radius: 16px;
  background: #d8e0ea;
  box-shadow:
    inset 0 2px 4px rgba(15, 23, 42, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.72);
}

.simulator-pairing-visual__led {
  position: absolute;
  right: 16px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b93a1;
  box-shadow: 0 0 0 3px rgba(139, 147, 161, 0.16);
}

.simulator-pairing-visual__collar {
  left: 94px;
  top: 6px;
  width: 88px;
  height: 48px;
  border: 8px solid #151a22;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-radius: 44px / 24px;
  background: transparent;
  transform: translateY(-14px);
  transition: transform 360ms cubic-bezier(0.2, 0.85, 0.24, 1);
}

.simulator-pairing-visual__collar i {
  position: absolute;
  left: 28px;
  bottom: -13px;
  width: 18px;
  height: 10px;
  border-radius: 4px;
  background: #f5b84b;
}

.simulator-pairing-visual--insert .simulator-pairing-visual__collar,
.simulator-pairing-visual--handshake .simulator-pairing-visual__collar {
  transform: translateY(10px);
}

.simulator-pairing-visual--handshake .simulator-pairing-visual__led {
  background: #45d483;
  box-shadow:
    0 0 0 3px rgba(69, 212, 131, 0.18),
    0 0 20px rgba(69, 212, 131, 0.48);
}

.simulator-pairing-visual__wave {
  left: 74px;
  top: 2px;
  width: 128px;
  height: 82px;
  border: 2px solid rgba(255, 156, 92, 0.68);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
}

.simulator-pairing-visual--handshake .simulator-pairing-visual__wave {
  animation: simulator-pairing-wave 1400ms ease-out infinite;
}

.simulator-pairing-visual--handshake .simulator-pairing-visual__wave--two {
  animation-delay: 700ms;
}

@keyframes simulator-pairing-wave {
  0% {
    opacity: 0.82;
    transform: scale(0.62);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.gateway-screen-window {
  width: 276px;
  height: 321px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 16px;
  background:
    linear-gradient(145deg, #2a2f36 0%, #11161c 42%, #07090c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 6px #11151a,
    inset 0 0 34px rgba(0, 0, 0, 0.68),
    0 16px 36px rgba(16, 24, 40, 0.18);
}

.gateway-tft {
  position: relative;
  width: 240px;
  aspect-ratio: 240 / 280;
  overflow: hidden;
  border-radius: 10px;
  background: #090e18;
  color: #ecf1f7;
  font-family: Arial, sans-serif;
  transform: translateZ(0) scale(var(--gateway-display-scale));
}

.tft-shell {
  position: absolute;
  inset: 0;
  background: #090e18;
}

.tft-shell::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 18px;
  background: #0b121f;
  border: 1px solid #21334f;
}

.tft-shell::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid #426085;
  pointer-events: none;
}

.tft-header,
.tft-menu-card,
.tft-list-row,
.tft-hero,
.tft-simple-instruction,
.tft-countdown-badge,
.tft-footer,
.tft-expanded,
.tft-value-card,
.tft-compact-value-card,
.tft-country-card,
.tft-connect-progress,
.tft-selector-dock,
.tft-seek-wait-signal,
.tft-seek-rssi,
.tft-seek-battery,
.tft-seek-small,
.tft-alert {
  position: absolute;
  z-index: 1;
}

.tft-header {
  top: 10px;
  left: 10px;
  width: 220px;
  height: 42px;
  border: 1px solid #426085;
  border-radius: 16px;
  background: #121c2e;
}

.tft-back {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 34px;
  height: 30px;
  border: 1px solid #426085;
  border-radius: 12px;
  background: #1f2f4a;
  color: #92a8c2;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.tft-back__glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
}

.tft-back--selected {
  border-color: #ff9c5c;
  background: #f3e8d6;
  color: #131b27;
  font-size: 30px;
}

.tft-header__copy {
  position: absolute;
  top: 9px;
  left: 62px;
  width: 74px;
  overflow: hidden;
}

.tft-header__copy--full {
  left: 20px;
  width: 116px;
}

.tft-header__copy--wide {
  width: 158px;
}

.tft-header__copy--full-wide {
  left: 20px;
  width: 200px;
}

.tft-header__title {
  color: #ecf1f7;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tft-header__title--small {
  font-size: 12px;
  line-height: 1;
}

.tft-header__subtitle {
  display: none;
}

.tft-status {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 86px;
  height: 34px;
  border: 1px solid #426085;
  border-radius: 12px;
  background: #1f2f4a;
}

.tft-pill {
  position: absolute;
  top: 5px;
  display: grid;
  place-items: center;
  height: 22px;
  border: 1px solid #426085;
  border-radius: 10px;
  background: #121c2e;
  color: #f46666;
  font-size: 10px;
  font-weight: 800;
}

.tft-pill:first-child {
  left: 8px;
  width: 30px;
}

.tft-pill:last-child {
  left: 44px;
  width: 34px;
}

.tft-pill--ok {
  border-color: #68e09d;
  background: #1b4338;
  color: #68e09d;
}

.tft-pill--bad {
  border-color: #f46666;
  background: #4e232b;
  color: #f46666;
}

.tft-pill--wifi {
  border-color: #68e074;
  background: #1c4a2a;
}

.tft-pill--focused {
  z-index: 3;
}

.tft-pill--focused::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid #ff9c5c;
  border-radius: 15px;
  box-shadow: 0 0 0 4px rgba(255, 156, 92, 0.16);
  pointer-events: none;
  animation: tft-wifi-badge-halo 980ms ease-in-out infinite;
}

@keyframes tft-wifi-badge-halo {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.tft-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.tft-bars i {
  position: absolute;
  bottom: 1px;
  width: 3px;
  border: 1px solid #92a8c2;
  background: #68e074;
}

.tft-bars i:nth-child(1) { left: 0; height: 5px; }
.tft-bars i:nth-child(2) { left: 5px; height: 8px; }
.tft-bars i:nth-child(3) { left: 10px; height: 11px; }
.tft-bars i:nth-child(4) { left: 15px; height: 14px; }
.tft-bars--level-0 i,
.tft-bars--level-1 i:nth-child(n+2),
.tft-bars--level-2 i:nth-child(n+3),
.tft-bars--level-3 i:nth-child(n+4) {
  background: transparent;
}
.tft-bars--off i { background: transparent; }

.tft-menu-card {
  left: 14px;
  width: 212px;
  height: 48px;
  border: 1px solid #426085;
  border-radius: 18px;
  background: #18263d;
  color: #ecf1f7;
}

.tft-menu-card--selected {
  border-color: #ff9c5c;
  background: #f3e8d6;
  color: #131b27;
}

.tft-menu-card__rail,
.tft-list-row__rail {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 6px;
  height: calc(100% - 16px);
  border-radius: 4px;
  background: #46d4c1;
}

.tft-menu-card--selected .tft-menu-card__rail,
.tft-list-row--selected .tft-list-row__rail {
  background: #ff9c5c;
}

.tft-menu-card__title {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tft-menu-card__subtitle {
  display: none;
}

.tft-menu-card__arrow {
  position: absolute;
  top: 18px;
  right: 9px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 12px solid #ff9c5c;
}

.tft-list-row {
  left: 14px;
  width: 212px;
  height: 32px;
  border: 1px solid #426085;
  border-radius: 16px;
  background: #18263d;
}

.tft-list-row--selected {
  border-color: #ff9c5c;
  background: #f3e8d6;
  color: #131b27;
}

.tft-list-row--connected {
  border-color: #68e074;
}

.tft-list-row--connected.tft-list-row--selected {
  border-color: #68e074;
}

.tft-list-row--stale {
  border-color: #f46666;
  background: #4e232b;
}

.tft-list-row__rail {
  width: 5px;
  height: calc(100% - 12px);
  top: 6px;
}

.tft-list-row--stale .tft-list-row__rail {
  background: #f46666;
}

.tft-list-row__label {
  position: absolute;
  left: 20px;
  top: 50%;
  max-width: 128px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  white-space: nowrap;
}

.tft-list-row--selected .tft-list-row__label {
  top: 50%;
  font-size: 20px;
}

.tft-detection-row.tft-list-row--selected.tft-list-row--stale {
  border-color: #f46666;
  background: #f3e8d6;
}

.tft-detection-row.tft-list-row--selected.tft-list-row--stale .tft-list-row__label {
  color: #131b27;
}

.tft-detection-row__age {
  position: absolute;
  top: 7px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 18px;
  border: 1px solid #f46666;
  border-radius: 9px;
  background: #5d1b22;
  color: #ffe1e1;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.tft-detection-row.tft-list-row--selected .tft-detection-row__age {
  background: #4e232b;
  color: #f46666;
}

.tft-list-row--connected .tft-list-row__label {
  max-width: 112px;
}

.tft-list-row__connected {
  position: absolute;
  top: 6px;
  left: 132px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 16px;
  border: 1px solid #68e074;
  border-radius: 8px;
  background: #1c4a2a;
  color: #68e074;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.tft-list-row--selected .tft-list-row__connected {
  background: #68e074;
  color: #131b27;
}

.tft-list-row__meta {
  position: absolute;
  top: 50%;
  right: 12px;
  min-width: 54px;
  color: #92a8c2;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  transform: translateY(-50%);
}

.tft-list-row--selected .tft-list-row__meta {
  top: 50%;
  color: #5b4c37;
  font-size: 12px;
}

.tft-list-row--connected .tft-list-row__meta {
  right: 10px;
  min-width: 34px;
}

.tft-hero {
  top: 72px;
  left: 14px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  width: 212px;
  height: 152px;
  padding: 26px 16px 14px;
  border: 1px solid #46d4c1;
  border-radius: 22px;
  background: #18263d;
  text-align: center;
}

.tft-hero--danger {
  border-color: #f46666;
}

.tft-hero--success {
  border-color: #68e09d;
}

.tft-hero--seek-detected {
  border-color: #ff9c5c;
}

.tft-hero--seek-waiting {
  border-color: #ff9c5c;
}

.tft-hero__rail {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 184px;
  height: 8px;
  border-radius: 4px;
  background: #46d4c1;
}

.tft-hero--danger .tft-hero__rail {
  background: #f46666;
}

.tft-hero--success .tft-hero__rail {
  background: #68e09d;
}

.tft-hero--seek-detected .tft-hero__rail {
  background: #ff9c5c;
}

.tft-hero--seek-waiting .tft-hero__rail {
  background: #ff9c5c;
}

.tft-hero__eyebrow,
.tft-hero__line {
  display: none;
}

.tft-hero__eyebrow {
  color: #92a8c2;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.tft-hero__title {
  color: #ecf1f7;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.tft-hero__line {
  max-width: 176px;
  color: #d2ddeb;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.12;
}

.tft-hero--seek-wait {
  display: block;
  padding: 0;
}

.tft-hero--seek-wait .tft-hero__title {
  position: absolute;
  top: 66px;
  left: 16px;
  right: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.tft-simple-instruction {
  top: 72px;
  left: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  width: 212px;
  height: 152px;
  padding: 26px 16px 18px;
  border: 1px solid #46d4c1;
  border-radius: 22px;
  background: #18263d;
  color: #ecf1f7;
  text-align: center;
}

.tft-simple-instruction--danger {
  border-color: #f46666;
}

.tft-simple-instruction__rail {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 184px;
  height: 8px;
  border-radius: 4px;
  background: #46d4c1;
}

.tft-simple-instruction--danger .tft-simple-instruction__rail {
  background: #f46666;
}

.tft-simple-instruction strong,
.tft-simple-instruction em {
  display: block;
  max-width: 184px;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
}

.tft-action-pill {
  position: absolute;
  z-index: 2;
  top: 180px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 34px;
  border: 1px solid #426085;
  border-radius: 14px;
  background: #121c2e;
  color: #d2ddeb;
  font-size: 14px;
  font-weight: 850;
}

.tft-action-pill--danger {
  border-color: #94414a;
}

.tft-action-pill--selected {
  border-color: #ff9c5c;
  background: #ffd99a;
  color: #2b2118;
}

.tft-action-pill--danger.tft-action-pill--selected {
  border-color: #f46666;
  background: #4e232b;
  color: #f46666;
}

.tft-countdown-badge {
  left: 78px;
  top: 216px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 24px;
  border: 1px solid #ff9c5c;
  border-radius: 12px;
  background: #18263d;
  color: #ff9c5c;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.tft-countdown-badge--danger {
  border-color: #f46666;
  color: #f46666;
}

.tft-footer {
  left: 12px;
  bottom: 12px;
  width: 216px;
  height: 24px;
  border-radius: 10px;
  background: #0b121f;
}

.tft-expanded {
  top: 72px;
  left: 14px;
  width: 212px;
  height: 160px;
  border: 1px solid #426085;
  border-radius: 20px;
  background: #18263d;
}

.tft-expanded--stale {
  border-color: #f46666;
  background: #36181e;
}

.tft-expanded__name {
  position: absolute;
  top: 26px;
  left: 18px;
  width: 176px;
  overflow: hidden;
  color: #ecf1f7;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.tft-expanded__name--medium {
  top: 26px;
  font-size: 22px;
}

.tft-expanded__name--small {
  top: 26px;
  font-size: 13px;
}

.tft-expanded__age {
  position: absolute;
  top: 56px;
  left: 12px;
  width: 188px;
  height: 58px;
  border: 1px solid #ff9c5c;
  border-radius: 18px;
  background: #1f2f4a;
}

.tft-expanded__age span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 168px;
  color: #d2ddeb;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tft-expanded__age strong {
  position: absolute;
  top: 29px;
  left: 10px;
  width: 168px;
  color: #ecf1f7;
  font-size: 30px;
  line-height: 1;
  text-align: center;
}

.tft-expanded--stale .tft-expanded__age {
  border-color: #f46666;
  background: #4e232b;
}

.tft-expanded--stale .tft-expanded__age span {
  color: #ffdcdc;
}

.tft-expanded--stale .tft-expanded__age strong {
  color: #fff2f2;
}

.tft-stat {
  position: absolute;
  top: 122px;
  width: 90px;
  height: 44px;
  border: 1px solid #426085;
  border-radius: 14px;
  background: #1f2f4a;
  color: #ecf1f7;
  font-weight: 800;
}

.tft-stat--left { left: 12px; }
.tft-stat--right { right: 12px; }

.tft-stat span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 74px;
  color: #d2ddeb;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.tft-stat strong {
  position: absolute;
  top: 22px;
  left: 8px;
  width: 74px;
  color: #ecf1f7;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.tft-stat strong:only-child {
  top: 50%;
  transform: translateY(-50%);
}

.tft-value-card {
  top: 82px;
  left: 14px;
  width: 212px;
  height: 82px;
  border: 1px solid #426085;
  border-radius: 18px;
  background: #18263d;
  padding: 10px;
}

.tft-value-card span {
  display: block;
  color: #92a8c2;
  font-size: 10px;
  font-weight: 800;
}

.tft-value-card strong {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  display: grid;
  place-items: center;
  height: 36px;
  border: 1px solid #426085;
  border-radius: 12px;
  background: #121c2e;
  color: #ecf1f7;
  font-size: 15px;
}

.tft-editor-card strong {
  justify-items: start;
  padding-left: 6px;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  font-size: 20px;
}

.tft-editor-card__value--small {
  font-size: 12px !important;
}

.tft-editor-cursor {
  position: absolute;
  top: 62px;
  width: 8px;
  height: 5px;
  border-radius: 2px;
  background: #46d4c1;
}

.tft-editor-cursor--small {
  top: 62px;
  width: 6px;
  height: 4px;
}

.tft-compact-value-card {
  left: 14px;
  width: 212px;
  height: 56px;
  border: 1px solid #426085;
  border-radius: 18px;
  background: #18263d;
}

.tft-compact-value-card span {
  position: absolute;
  top: 10px;
  left: 24px;
  color: #92a8c2;
  font-size: 10px;
  font-weight: 800;
}

.tft-compact-value-card strong {
  position: absolute;
  left: 24px;
  right: 10px;
  bottom: 8px;
  display: grid;
  align-items: center;
  justify-items: start;
  height: 26px;
  padding-left: 6px;
  overflow: hidden;
  border: 1px solid #426085;
  border-radius: 12px;
  background: #121c2e;
  color: #ecf1f7;
  font-size: 20px;
  white-space: nowrap;
}

.tft-compact-value-card__value--small {
  font-size: 12px !important;
}

.tft-compact-value-cursor {
  position: absolute;
  top: 41px;
  width: 8px;
  height: 5px;
  border-radius: 2px;
  background: #46d4c1;
}

.tft-compact-value-cursor--small {
  top: 39px;
  width: 6px;
  height: 4px;
}

.tft-country-card {
  top: 72px;
  left: 14px;
  width: 212px;
  height: 152px;
  border: 1px solid #46d4c1;
  border-radius: 18px;
  background: #18263d;
}

.tft-country-card__inner {
  position: absolute;
  inset: 14px 10px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding-top: 0;
  border: 1px solid #426085;
  border-radius: 14px;
  background: #121c2e;
}

.tft-country-card strong {
  color: #ecf1f7;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.tft-country-card em {
  color: #46d4c1;
  font-size: 20px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.tft-flag {
  position: relative;
  display: block;
  width: 72px;
  height: 48px;
  margin-top: 11px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 0 0 2px #426085;
}

.tft-flag i {
  position: absolute;
  display: block;
}

.tft-flag--pt {
  background: linear-gradient(90deg, #006847 0 40%, #ce1126 40% 100%);
}

.tft-flag--pt i:first-child {
  left: 22px;
  top: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffcd00;
}

.tft-flag--es {
  background: linear-gradient(180deg, #c6002b 0 25%, #ffcd00 25% 75%, #c6002b 75% 100%);
}

.tft-flag--fr {
  background: linear-gradient(90deg, #002395 0 33.333%, #ffffff 33.333% 66.666%, #ed2939 66.666% 100%);
}

.tft-flag--de {
  background: linear-gradient(180deg, #000000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.tft-flag--it {
  background: linear-gradient(90deg, #009246 0 33.333%, #ffffff 33.333% 66.666%, #ce2b37 66.666% 100%);
}

.tft-connect-progress {
  left: 22px;
  top: 226px;
  width: 196px;
  height: 18px;
  border: 1px solid #426085;
  border-radius: 9px;
  background: #121c2e;
}

.tft-connect-progress span {
  position: absolute;
  left: 4px;
  top: 4px;
  height: 10px;
  max-width: 188px;
  border-radius: 5px;
  background: #46d4c1;
}

.tft-selector-dock {
  top: 180px;
  left: 144px;
  width: 82px;
  height: 58px;
  border: 1px solid #426085;
  border-radius: 16px;
  background: #18263d;
}

.tft-selector-dock span {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #92a8c2;
  font-size: 10px;
  font-weight: 800;
}

.tft-selector-dock strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  display: grid;
  place-items: center;
  height: 24px;
  border: 1px solid #426085;
  border-radius: 10px;
  background: #121c2e;
  color: #ecf1f7;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.tft-selector-dock__value--visible {
  border-color: #46d4c1 !important;
  background: #27484c !important;
}

.tft-selector-dock__value--danger {
  border-color: #f46666 !important;
  background: #4e232b !important;
  color: #f46666 !important;
}

.tft-selector-dock__value--small {
  font-size: 12px !important;
}

.tft-seek-wait-signal {
  top: 194px;
  left: 74px;
  width: 92px;
  height: 44px;
  border: 1px solid #426085;
  border-radius: 14px;
  background: #1f2f4a;
  color: #ecf1f7;
}

.tft-seek-wait-signal span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 76px;
  color: #d2ddeb;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tft-seek-wait-signal strong {
  position: absolute;
  top: 22px;
  left: 8px;
  width: 76px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tft-seek-rssi {
  top: 66px;
  left: 14px;
  width: 212px;
  height: 126px;
  border: 1px solid #46d4c1;
  border-radius: 22px;
  background: #051316;
}

.tft-seek-rssi::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 184px;
  height: 6px;
  border-radius: 3px;
  background: #46d4c1;
}

.tft-seek-rssi--weak {
  border-color: #f46666;
}

.tft-seek-rssi--weak::before {
  background-color: #f46666;
}

.tft-seek-rssi--fair {
  border-color: #ff9c5c;
}

.tft-seek-rssi--fair::before {
  background-color: #ff9c5c;
}

.tft-seek-rssi--good {
  border-color: #46d4c1;
}

.tft-seek-rssi--good::before {
  background-color: #46d4c1;
}

.tft-seek-rssi--strong {
  border-color: #68e09d;
}

.tft-seek-rssi--strong::before {
  background-color: #68e09d;
}

.tft-seek-rssi span {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  color: #46d4c1;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tft-seek-rssi--weak span { color: #f46666; }
.tft-seek-rssi--fair span { color: #ff9c5c; }
.tft-seek-rssi--good span { color: #46d4c1; }
.tft-seek-rssi--strong span { color: #68e09d; }

.tft-seek-rssi strong {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  color: #ecf1f7;
  font-size: 48px;
  line-height: 1;
  text-align: center;
}

.tft-seek-rssi em {
  position: absolute;
  top: 102px;
  left: 14px;
  width: 184px;
  color: #92a8c2;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tft-seek-battery {
  top: 198px;
  left: 14px;
  width: 212px;
  height: 40px;
  border: 1px solid #68e09d;
  border-radius: 12px;
  background: #0c1c1c;
  color: #68e09d;
}

.tft-seek-battery span {
  position: absolute;
  top: 6px;
  left: 0;
  width: 100%;
  color: #92a8c2;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.tft-seek-battery strong {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.tft-seek-small {
  top: 200px;
  display: grid;
  place-items: center;
  height: 36px;
  border: 1px solid #426085;
  border-radius: 12px;
  background: #18263d;
  color: #ecf1f7;
  font-weight: 800;
}

.tft-seek-small--battery {
  left: 14px;
  width: 96px;
  border-color: #68e09d;
  color: #68e09d;
  font-size: 20px;
}

.tft-seek-small--name {
  right: 14px;
  width: 108px;
  font-size: 13px;
}

.tft-alert {
  top: 46px;
  left: 18px;
  z-index: 3;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 204px;
  height: 184px;
  border: 1px solid #f46666;
  border-radius: 24px;
  background: #42181f;
  box-shadow: 0 0 0 4px rgba(244, 102, 102, 0.12);
}

.tft-alert span {
  position: absolute;
  top: 16px;
  width: 172px;
  height: 8px;
  border-radius: 4px;
  background: #f46666;
}

.tft-alert em {
  color: #ffdcdc;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.tft-alert strong {
  color: #fff2f2;
  font-size: 20px;
  line-height: 1.25;
}

.tft-alert b {
  color: #ecf1f7;
  font-size: 20px;
}

.tft-alert small {
  margin-top: 20px;
  color: #ffdcdc;
  font-size: 11px;
  font-weight: 800;
}

.tft-game-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #ecf1f7;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.gateway-display {
  aspect-ratio: 3 / 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 18px;
  border: 8px solid #111316;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #101820;
  color: #e8fbf4;
  font-family: "Courier New", monospace;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.42);
}

.gateway-display__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: rgba(232, 251, 244, 0.78);
  font-size: 13px;
  line-height: 1.2;
}

.gateway-display__body {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
}

.gateway-display__kicker,
.gateway-display__title,
.gateway-display__line {
  margin: 0;
}

.gateway-display__kicker {
  color: #7dd3a8;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-display__title {
  color: #ffffff;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1;
}

.gateway-display__line {
  color: rgba(232, 251, 244, 0.95);
  font-size: clamp(17px, 3.2vw, 22px);
  line-height: 1.22;
}

.gateway-display__line--muted {
  color: rgba(232, 251, 244, 0.72);
}

.gateway-menu {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gateway-menu__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgba(232, 251, 244, 0.84);
  font-size: clamp(15px, 3vw, 18px);
  line-height: 1.1;
}

.gateway-menu__item--active {
  border-color: rgba(125, 211, 168, 0.42);
  background: rgba(125, 211, 168, 0.14);
  color: #ffffff;
}

.gateway-display__meter {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 251, 244, 0.3);
  border-radius: 999px;
  background: rgba(232, 251, 244, 0.08);
}

.gateway-display__meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #7dd3a8;
  transition: width 220ms ease;
}

.gateway-hardware-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.gateway-hardware-buttons {
  justify-items: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.gateway-control-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 124px;
  height: 88px;
}

.gateway-control-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 92px;
  height: 92px;
  border: 3px solid rgba(70, 212, 193, 0.9);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.42);
}

.gateway-control-wrap--select::after {
  width: 96px;
  height: 76px;
  border-radius: 22px;
}

.gateway-control-wrap--pulse::after {
  animation: gateway-control-halo 425ms ease-out;
}

.gateway-control-wrap--held::after {
  opacity: 1;
  animation: none;
  box-shadow: 0 0 0 3px rgba(70, 212, 193, 0.18);
  transform: translate(-50%, -50%) scale(1.22);
}

.gateway-control {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 68px;
  min-height: 68px;
  padding: 0;
  border: 1px solid rgba(5, 8, 12, 0.72);
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #545c67 0%, #2f3742 50%, #151a21 100%);
  color: #ffffff;
  font-weight: 850;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.18),
    inset 0 -7px 10px rgba(0, 0, 0, 0.32),
    0 10px 18px rgba(15, 23, 42, 0.22);
  touch-action: none;
  user-select: none;
}

.gateway-control:hover,
.gateway-control:focus-visible {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #626b76 0%, #36404c 52%, #171d25 100%);
  outline: none;
}

.gateway-control:active {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 5px 12px rgba(0, 0, 0, 0.34),
    0 4px 10px rgba(15, 23, 42, 0.18);
}

.gateway-control--arrow {
  width: 102px;
  height: 70px;
  min-height: 70px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, #69717b 0%, #343d48 50%, #151a21 100%);
  clip-path: polygon(50% 8%, 92% 88%, 8% 88%);
  filter: drop-shadow(0 7px 8px rgba(15, 23, 42, 0.22));
}

.gateway-control--arrow::before {
  content: "";
  position: absolute;
  inset: 7px 10px 11px;
  background:
    radial-gradient(circle at 45% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, #4e5864 0%, #252e39 58%, #10151c 100%);
  clip-path: inherit;
}

.gateway-control--arrow::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 45px;
  width: 12px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(-28deg);
}

.gateway-control--down {
  transform: rotate(180deg);
}

.gateway-control--select {
  width: 96px;
  height: 62px;
  min-height: 62px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.24), transparent 27%),
    linear-gradient(145deg, #59626d 0%, #313b47 52%, #141a22 100%);
  letter-spacing: 0;
  font-weight: 900;
}

.gateway-control:disabled {
  opacity: 0.42;
}

@keyframes gateway-control-halo {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.42);
  }
  45% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42);
  }
}

.simulator-caption {
  width: min(100%, 860px);
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  line-height: 1.45;
}

.simulator-caption p {
  margin: 0;
}

.simulator-tutorial-toast {
  width: 100%;
  min-height: 58px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.simulator-tutorial-toast[hidden] {
  display: grid;
  visibility: hidden;
}

.simulator-tutorial-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.simulator-tutorial-toast--linkable {
  pointer-events: auto;
}

.simulator-tutorial-toast p {
  width: min(100%, 660px);
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 24px rgba(255, 255, 255, 0.82);
}

.simulator-caption-game-link {
  display: inline-block;
  padding: 0 0.06em;
  border-radius: 8px;
  color: #0b6f61;
  font-weight: 950;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
  transform-origin: center;
  animation: simulator-caption-link-breathe 1.35s ease-in-out infinite;
  will-change: transform;
}

.simulator-caption-game-link:hover {
  color: #064f47;
}

.simulator-caption-game-link:focus-visible {
  outline: 3px solid #ff9c5c;
  outline-offset: 4px;
}

@keyframes simulator-caption-link-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .simulator-caption-game-link {
    animation: none;
  }
}

body.simulator-recording {
  background: #f5f5f7;
}

body.simulator-recording .topbar,
body.simulator-recording .simulator-rail,
body.simulator-recording .simulator-stage__top,
body.simulator-recording .simulator-caption,
body.simulator-recording .support-chat {
  display: none !important;
}

body.simulator-recording .page {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

body.simulator-recording .simulator-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

body.simulator-recording .simulator-stage {
  min-height: 100vh;
  padding: 40px;
  border: 0;
  border-radius: 0;
  background: #f5f5f7;
  box-shadow: none;
  place-content: center;
}

body.simulator-recording .gateway-device {
  width: min(62vw, 456px);
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 18px 28px;
}

.feature-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: end;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(28, 28, 30, 0.48), rgba(0, 122, 255, 0.18));
  z-index: -1;
}

.feature-hero--customer {
  min-height: 32vh;
  background-image: url("/static/images/customer-hero.jpg");
}

.feature-hero--store {
  min-height: 36vh;
  background-image: url("/static/images/customer-hero.jpg");
}

.store-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 158vh;
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: clip;
  background-image:
    linear-gradient(180deg, rgba(28, 28, 30, 0.42), rgba(28, 28, 30, 0.26) 32%, rgba(28, 28, 30, 0.13) 72%, rgba(28, 28, 30, 0.04)),
    var(--store-stage-image, url("/static/images/store-cat-sanctuary-2.png"));
  background-size: cover, cover;
  background-position: center center, center center;
}

.store-stage__floating {
  position: relative;
  display: grid;
  gap: 46px;
  justify-items: center;
  width: 100%;
  padding: 34px 30px 30px;
}

.store-stage__header {
  width: fit-content;
  max-width: min(100%, 1120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(28, 28, 30, 0.12);
  backdrop-filter: blur(10px);
}

.store-stage__title {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.04;
  text-align: center;
  text-shadow: none;
}

.store-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(440px, 540px));
  gap: 18px;
  align-content: center;
  justify-content: center;
  width: min(100%, 1120px);
}

.store-card-link {
  display: block;
  color: inherit;
}

.store-card-link--disabled {
  cursor: default;
}

.store-float-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(28, 28, 30, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.store-card-link:hover .store-float-card {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(28, 28, 30, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.store-card-link--disabled:hover .store-float-card {
  transform: none;
  box-shadow: 0 18px 40px rgba(28, 28, 30, 0.14);
  background: rgba(255, 255, 255, 0.86);
}

.store-float-card__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.store-float-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-float-card__body {
  display: grid;
  gap: 10px;
}

.store-float-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.store-float-card__name,
.store-float-card__price,
.store-float-card__copy {
  margin: 0;
}

.store-float-card__name {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

.store-float-card__price {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-align: right;
}

.store-float-card__copy {
  color: var(--muted);
  line-height: 1.45;
}

.store-stage__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-hero--staff {
  background-image: url("/static/images/staff-hero.jpg");
}

.feature-hero--panel {
  min-height: 32vh;
  background-image: url("/static/images/panel-hero.jpg");
}

.feature-hero--staff-panel {
  min-height: 32vh;
  background-image: url("/static/images/staff-hero.jpg");
}

.feature-hero__content {
  width: min(680px, 100%);
  padding: 28px 28px 30px;
  color: #ffffff;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.hero-title {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1.05;
}

.hero-copy {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.auth-shell--staff {
  grid-template-columns: minmax(0, 1fr);
  max-width: 620px;
}

.login-shell {
  display: flex;
  justify-content: center;
  padding: 6vh 0 14px;
}

.login-card {
  width: min(100%, 468px);
  padding: 24px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 44px rgba(28, 28, 30, 0.06);
}

.login-card__header {
  margin-bottom: 18px;
}

.login-card__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.02;
}

.login-card__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-primary,
.auth-secondary,
.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(210, 210, 215, 0.96);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(28, 28, 30, 0.05);
}

.auth-primary {
  min-height: 100%;
}

.auth-header h2,
.panel h1,
.panel h2 {
  margin: 0;
}

.auth-secondary {
  padding: 0;
  overflow: hidden;
}

.auth-secondary summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
}

.auth-secondary summary::-webkit-details-marker {
  display: none;
}

.auth-secondary[open] summary {
  border-bottom: 1px solid var(--line);
}

.auth-secondary > .stack {
  padding: 18px 22px 22px;
}

.panel.wide,
.panel.medium {
  max-width: 100%;
}

.medium {
  max-width: 620px;
}

.customer-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: calc(100vh - 96px);
}

.customer-shell__sidebar {
  position: sticky;
  top: 68px;
}

.customer-shell__main {
  min-width: 0;
}

.sidebar-surface,
.workspace-surface {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(210, 210, 215, 0.96);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(28, 28, 30, 0.05);
}

.sidebar-surface {
  padding: 14px;
}

.workspace-surface {
  padding: 18px;
}

.sidebar-surface__head,
.workspace-surface__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sidebar-surface__head {
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.workspace-surface__head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-title,
.workspace-title,
.workspace-subtitle {
  margin: 0;
  line-height: 1.08;
}

.sidebar-title {
  font-size: 26px;
}

.workspace-title {
  font-size: 34px;
}

.workspace-subtitle {
  font-size: 22px;
}

.button-quiet {
  min-height: 38px;
  padding: 8px 12px;
}

.section-nav {
  display: grid;
  gap: 6px;
}

.section-nav__button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.section-nav__button:hover {
  background: var(--surface-alt);
}

.section-nav__button--active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.sidebar-rail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-rail__head {
  margin-bottom: 10px;
}

.selector-list {
  display: grid;
  gap: 8px;
}

.selector-list--grouped {
  gap: 12px;
}

.collar-gateway-group {
  display: grid;
  gap: 7px;
}

.collar-gateway-group__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.collar-gateway-group--active .collar-gateway-group__head {
  color: var(--text);
}

.collar-gateway-group--active .collar-gateway-group__head::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.collar-gateway-group__items {
  display: grid;
  gap: 8px;
}

.selector-list--limited {
  max-height: 382px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.workspace-heading {
  display: grid;
  gap: 6px;
}

.workspace-body,
.workspace-pane {
  min-width: 0;
}

.workspace-body:not(.hidden) {
  animation: workspace-view-in 170ms ease-out both;
}

@keyframes workspace-view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-pane {
  display: grid;
  gap: 18px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack.compact {
  gap: 10px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.panel-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.panel-shell {
  margin-top: 6px;
}

.panel-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.panel-main {
  min-width: 0;
}

.toolbar,
.section-head,
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.section-head {
  justify-content: space-between;
}

.section-head--tight {
  align-items: flex-start;
}

.section-head--workspace {
  align-items: flex-start;
  gap: 16px;
}

.workspace-headings {
  gap: 6px;
}

.workspace-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.workspace-section {
  min-width: 0;
}

.panel-nav__buttons {
  display: grid;
  gap: 8px;
}

.panel-nav-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 12px;
}

.panel-nav-button--active {
  border-color: rgba(0, 122, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.08);
}

.history-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 1 1 380px;
}

.mobile-history-panel {
  display: none;
}

.history-toolbar__windows,
.history-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.history-toolbar__actions {
  align-items: center;
}

.history-frame-label {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.history-player-actions {
  display: grid;
  grid-template-columns: 48px 112px 48px;
  gap: 6px;
}

.history-step-button,
.history-play-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 750;
}

.history-step-button {
  min-width: 48px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.history-play-button {
  width: 112px;
  background: var(--accent-strong);
  color: #ffffff;
  border-color: var(--accent-strong);
}

.history-window-button {
  position: relative;
  min-width: 52px;
  padding: 9px 12px;
}

.history-window-button--active {
  border-color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.16);
  background: rgba(0, 122, 255, 0.08);
}

.history-window-button--loading,
.map-history-window-button--loading {
  padding-right: 32px;
}

.history-window-button--loading::after,
.map-history-window-button--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(0, 122, 255, 0.24);
  border-top-color: var(--accent-strong);
  border-radius: 999px;
  animation: history-window-spin 0.75s linear infinite;
}

@keyframes history-window-spin {
  to {
    transform: rotate(360deg);
  }
}

.history-scrubber {
  --scrub-progress: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: min(520px, 100%);
  height: 18px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-strong) 0%,
    var(--accent-strong) var(--scrub-progress),
    #d2d2d7 var(--scrub-progress),
    #d2d2d7 100%
  );
  cursor: pointer;
  outline: none;
}

.history-scrubber::-webkit-slider-runnable-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.history-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.32);
}

.history-scrubber::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.history-scrubber::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.history-scrubber::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.32);
}

.history-scrubber:disabled {
  cursor: default;
  opacity: 0.55;
}

.form-row-wide {
  align-items: stretch;
}

.form-row-wide select {
  width: min(220px, 100%);
  flex: 0 0 220px;
}

.form-row-wide input {
  flex: 1 1 260px;
}

.choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.login-mode-switch--wide {
  display: grid;
  width: 100%;
  margin-bottom: 18px;
}

.login-mode-switch__button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}

.login-mode-switch__button--active {
  border-color: var(--accent-strong);
  background: #ffffff;
  color: var(--ink);
}

.login-pane {
  min-width: 0;
  gap: 14px;
}

.login-pane-note {
  margin: 0;
}

.login-recovery-heading {
  display: grid;
  gap: 4px;
}

.login-recovery-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.login-recovery-link {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.login-recovery-link:hover,
.login-recovery-link:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-login-block {
  padding: 0;
}

.auth-google-hint-wrap {
  display: grid;
  gap: 0;
}

.auth-google-button {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 14px;
  border-color: rgba(60, 60, 67, 0.14);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(28, 28, 30, 0.04);
  font-weight: 700;
}

.auth-google-button:hover {
  background: #f5f5f7;
}

.auth-google-button__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.auth-google-button__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-google-button__label {
  flex: 1 1 auto;
  text-align: center;
}

.auth-google-hint {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  text-align: center;
  transform: translateY(-4px);
  transition: max-height 160ms ease, margin 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.auth-google-hint-wrap:hover .auth-google-hint,
.auth-google-hint-wrap:focus-within .auth-google-hint {
  max-height: 44px;
  margin-top: 8px;
  opacity: 1;
  transform: translateY(0);
}

.auth-divider {
  margin: 0;
  text-align: center;
  font-size: 13px;
}

.login-inline-step {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.login-actions {
  display: grid;
  gap: 10px;
}

.login-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-phone-block {
  padding-top: 4px;
}

.activation-facts {
  display: grid;
  gap: 10px;
}

.activation-fact {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 8px;
  background: #f5f5f7;
}

.activation-fact__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.activation-fact__value {
  font-size: 15px;
  line-height: 1.35;
}

.activation-actions {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.email-link-button,
.login-continue-button {
  width: 100%;
  background: var(--accent-strong);
  color: #ffffff;
  border-color: var(--accent-strong);
}

.sms-fallback-button {
  align-self: center;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.sms-fallback-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.login-onboarding {
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 8px;
  background: #f5f5f7;
  overflow: hidden;
}

.login-onboarding summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 12px 14px;
  text-align: center;
}

.login-onboarding summary::-webkit-details-marker {
  display: none;
}

.login-onboarding__body {
  padding: 0 14px 14px;
}

.login-onboarding__steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.login-onboarding--top {
  margin-bottom: 2px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.button-link--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.store-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.store-band,
.steps-band {
  margin-bottom: 18px;
}

.store-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.store-card,
.step-item {
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(210, 210, 215, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(28, 28, 30, 0.05);
}

.store-card__name,
.store-card__price,
.store-card__copy,
.step-item__count,
.step-item h3,
.step-item p {
  margin: 0;
}

.store-card__name,
.step-item__count {
  color: var(--muted);
}

.store-card__price {
  margin-top: 8px;
  font-size: 34px;
  font-weight: 700;
}

.store-card__copy,
.step-item p {
  margin-top: 10px;
  color: var(--muted);
}

.step-item h3 {
  margin-top: 8px;
}

.muted {
  color: var(--muted);
}

.status {
  min-height: 20px;
  color: var(--accent-strong);
}

.status.error {
  color: #9e2f1c;
}

.hidden {
  display: none;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 4px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

.account-grid,
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gateway-map-layout {
  display: grid;
  gap: 12px;
}

.gateway-map-shell {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
}

.gateway-map-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 720;
}

.gateway-map {
  width: 100%;
  height: 420px;
}

.gateway-owned-marker--selected {
  animation: gateway-own-pulse 1.45s ease-in-out infinite;
}

.gateway-coverage-marker {
  stroke: rgba(22, 163, 74, 0.34) !important;
  stroke-width: 2px !important;
  stroke-opacity: 0.48 !important;
  fill: #22c55e !important;
  fill-opacity: 0.055 !important;
  filter: drop-shadow(0 0 3px rgba(22, 163, 74, 0.12));
}

.gateway-map-shell--satellite .gateway-coverage-marker {
  stroke: #ffffff !important;
  stroke-width: 2px !important;
  stroke-opacity: 0.52 !important;
  fill: #ffffff !important;
  fill-opacity: 0.025 !important;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.44));
}

.gateway-coverage-sweep-icon {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.gateway-coverage-sweep {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    conic-gradient(from -8deg,
      rgba(22, 163, 74, 0) 0deg,
      rgba(22, 163, 74, 0) 286deg,
      rgba(22, 163, 74, 0.04) 306deg,
      rgba(22, 163, 74, 0.13) 332deg,
      rgba(22, 163, 74, 0.34) 354deg,
      rgba(22, 163, 74, 0.02) 360deg);
  filter: drop-shadow(0 0 5px rgba(22, 163, 74, 0.18));
  animation: gateway-coverage-sweep 3s linear infinite;
}

.gateway-map-shell--satellite .gateway-coverage-sweep {
  background:
    conic-gradient(from -8deg,
      rgba(255, 255, 255, 0) 0deg,
      rgba(255, 255, 255, 0) 286deg,
      rgba(255, 255, 255, 0.05) 306deg,
      rgba(255, 255, 255, 0.16) 332deg,
      rgba(255, 255, 255, 0.42) 354deg,
      rgba(255, 255, 255, 0.02) 360deg);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 7px rgba(255, 255, 255, 0.22));
}

@keyframes gateway-own-pulse {
  0% {
    stroke-opacity: 0.58;
    fill-opacity: 0.58;
  }
  50% {
    stroke-opacity: 0.18;
    fill-opacity: 0.18;
  }
  100% {
    stroke-opacity: 0.58;
    fill-opacity: 0.58;
  }
}

@keyframes gateway-coverage-sweep {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gateway-coverage-sweep {
    animation: none;
  }
}

.gateway-map-legend {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 420;
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(28, 28, 30, 0.12);
}

.gateway-map-legend__item {
  display: grid;
  grid-template-columns: 11px auto;
  gap: 7px;
  align-items: center;
  min-height: 22px;
}

.gateway-coverage-popover {
  position: absolute;
  right: 10px;
  bottom: 62px;
  z-index: 420;
  max-width: min(360px, calc(100% - 20px));
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(28, 28, 30, 0.12);
}

.gateway-coverage-popover.hidden {
  display: none;
}

.gateway-map-legend__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.34);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.32);
}

.gateway-map-legend__dot--owned {
  background: rgba(34, 197, 94, 0.55);
  animation: gateway-own-pulse 1.45s ease-in-out infinite;
}

.gateway-map-legend__dot--coverage {
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.32);
}

.gateway-map-shell--satellite .gateway-map-legend__dot--coverage {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(0, 0, 0, 0.32);
}

.gateway-map-legend__info {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gateway-map-legend__info:hover,
.gateway-map-legend__info:focus-visible {
  color: var(--text);
}

.gateway-settings-stack {
  display: grid;
  gap: 12px;
}

.gateway-status-panel {
  position: relative;
  display: grid;
  gap: 8px;
}

.gateway-status-panel p {
  margin: 0;
}

.gateway-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-status-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gateway-status-chip strong {
  color: var(--text);
  font-size: 12px;
}

.gateway-status-chip__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12);
}

.gateway-status-chip--ok .gateway-status-chip__dot {
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.14);
}

.gateway-status-chip--active,
.gateway-status-chip:hover,
.gateway-status-chip:focus-visible {
  border-color: rgba(0, 122, 255, 0.38);
  color: var(--text);
}

.gateway-status-popover {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 30;
  width: max-content;
  max-width: 440px;
  padding: 9px 10px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(28, 28, 30, 0.14);
  backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
  .gateway-status-popover {
    max-width: min(320px, calc(100vw - 48px));
  }
}

.gateway-status-popover.hidden {
  display: none;
}

.gateway-settings-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.gateway-settings-head .workspace-subtitle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-name-edit-button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.gateway-name-edit-button--single {
  justify-self: start;
  margin-top: 8px;
}

.gateway-picker {
  position: relative;
  margin-top: 10px;
  width: min(100%, 340px);
}

.gateway-picker-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
}

.gateway-picker-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.gateway-name-edit-button--picker {
  min-width: 48px;
  padding: 0 8px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

.gateway-picker-trigger span:first-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.gateway-picker-trigger small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.gateway-picker-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-picker-trigger__chevron {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.gateway-picker-popover {
  position: absolute;
  z-index: 470;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: min(260px, 42vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(28, 28, 30, 0.16);
  backdrop-filter: blur(14px);
}

.gateway-picker-popover.hidden {
  display: none;
}

.gateway-picker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.gateway-picker-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gateway-picker-option strong {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 850;
}

.gateway-picker-option--active {
  background: rgba(0, 122, 255, 0.08);
  color: var(--accent-strong);
}

.gateway-picker-trigger:focus-visible,
.gateway-picker-option:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.36);
  outline-offset: 1px;
}

.sidebar-rail--single-gateway {
  display: none;
}

.selector-list--empty {
  display: none !important;
}

.fact-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.fact-card--demo {
  border-color: rgba(0, 122, 255, 0.16);
  background: rgba(0, 122, 255, 0.055);
}

.fact-card__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.fact-card__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fact-card__label-row .fact-card__label {
  margin: 0;
}

.fact-card__value {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.fact-card__value--small {
  font-size: 15px;
  font-weight: 600;
}

.text-action-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.email-change-inline {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.email-change-inline.hidden,
.email-change-form.hidden {
  display: none;
}

.email-change-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.email-change-form input {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

.email-change-form button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.email-change-status {
  min-height: 0;
  margin: 0;
  font-size: 12px;
}

.demo-plan-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 10px;
  padding: 3px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.demo-plan-option {
  min-height: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.demo-plan-option--active {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 122, 255, 0.22);
}

.list-button {
  width: 100%;
  text-align: left;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  box-shadow: none;
}

.list-button:hover {
  border-color: rgba(0, 122, 255, 0.34);
  background: rgba(0, 122, 255, 0.035);
}

.list-button--active {
  border-color: rgba(0, 122, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.16);
  background: rgba(0, 122, 255, 0.08);
}

.list-button__top,
.list-button__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.list-button__top {
  align-items: center;
  font-weight: 700;
}

.list-button__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.list-button__name {
  font-size: 14px;
}

.list-button__bottom {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.list-button__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battery-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.battery-badge--button {
  appearance: none;
  cursor: pointer;
}

.battery-badge--button:hover {
  border-color: rgba(0, 122, 255, 0.38);
  background: #ffffff;
}

.battery-badge--button:disabled {
  cursor: default;
}

.battery-badge--unknown {
  color: var(--muted);
}

.battery-badge__icon {
  position: relative;
  width: 20px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.battery-badge__icon::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -4px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.battery-badge__fill {
  position: absolute;
  inset: 1px;
  right: auto;
  display: block;
  border-radius: 1px;
  background: currentColor;
}

.battery-badge__value {
  min-width: 28px;
  text-align: right;
}

.battery-chart-panel {
  position: fixed;
  left: 50%;
  right: auto;
  width: min(960px, calc(100vw - 48px));
  margin-inline: 0;
  bottom: 18px;
  z-index: 1200;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 8px;
  max-height: min(66vh, 620px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(29, 29, 31, 0.18);
  backdrop-filter: blur(18px);
  transform: translate(-50%, calc(100% + 24px));
  transform-origin: bottom center;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
}

.battery-chart-panel.hidden {
  display: none;
}

.battery-chart-panel--open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.battery-chart-panel--closing {
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

.battery-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.battery-chart-title {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.1;
}

.battery-chart-handle {
  appearance: none;
  display: block;
  justify-self: center;
  width: 38px;
  height: 18px;
  margin: -3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.battery-chart-handle::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin: 7px auto;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.26);
}

.battery-chart-head .button-quiet {
  display: none;
}

.battery-chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.battery-window-button {
  min-height: 30px;
  padding: 5px 10px;
  background: rgba(242, 242, 247, 0.72);
}

.battery-window-button--active {
  border-color: var(--accent-strong);
  color: #0057d9;
  box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.18);
  background: rgba(0, 122, 255, 0.09);
}

.battery-chart-status {
  min-height: 18px;
  font-size: 12px;
  color: rgba(60, 60, 67, 0.72);
}

.battery-chart-status.error {
  color: #9b1c1c;
}

.battery-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 390px;
  overflow: visible;
}

.battery-chart-plot-bg {
  fill: rgba(248, 248, 250, 0.78);
}

.battery-chart-axis,
.battery-chart-grid,
.battery-chart-line {
  vector-effect: non-scaling-stroke;
}

.battery-chart-axis {
  stroke: rgba(60, 60, 67, 0.14);
  stroke-width: 1.1;
}

.battery-chart-grid {
  stroke: rgba(60, 60, 67, 0.08);
  stroke-width: 1;
}

.battery-chart-line {
  fill: none;
  stroke: #007aff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battery-chart-line-shadow {
  fill: none;
  stroke: rgba(0, 122, 255, 0.16);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battery-chart-low-line {
  stroke: rgba(255, 59, 48, 0.36);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
}

.battery-chart-scrub-line {
  stroke: rgba(28, 28, 30, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.battery-chart-scrub-dot {
  fill: #ffffff;
  stroke: #007aff;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.battery-chart-scrub-date rect {
  fill: rgba(28, 28, 30, 0.9);
}

.battery-chart-scrub-date text {
  fill: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.battery-chart-hit-zone {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.battery-chart-axis-label,
.battery-chart-date-label,
.battery-chart-latest-pill text {
  fill: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.battery-chart-date-label {
  fill: rgba(60, 60, 67, 0.72);
}

.battery-chart-latest-pill rect {
  fill: rgba(28, 28, 30, 0.94);
}

.battery-chart-latest-pill text {
  fill: #ffffff;
  font-weight: 750;
  pointer-events: none;
}

.data-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.map-only-panel {
  padding: 0;
}

.map-stage {
  position: relative;
  display: grid;
  gap: 10px;
}

.map-canvas-shell {
  position: relative;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.collar-photo-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.collar-photo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collar-photo-avatar--selector {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.collar-photo-edit {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  transform-origin: center center;
}

.collar-photo-edit::after {
  content: "+";
  position: absolute;
  left: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.collar-photo-edit:hover {
  border-color: rgba(0, 122, 255, 0.38);
  background: #ffffff;
}

.collar-photo-edit--uploading {
  cursor: wait;
  opacity: 0.72;
}

.collar-photo-edit--uploading::after {
  content: "...";
  font-size: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .collar-photo-edit {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  }

  .collar-photo-edit:hover,
  .collar-photo-edit:focus-visible {
    z-index: 20;
    transform: scale(2);
  }

  .std-location-marker__pin {
    transition: transform 160ms ease, filter 160ms ease;
  }

  .std-location-marker,
  .leaflet-marker-icon.std-location-marker {
    cursor: default;
    overflow: visible !important;
    pointer-events: auto;
  }

  .std-location-marker:hover,
  .leaflet-marker-icon.std-location-marker:hover {
    z-index: 1200 !important;
  }

  .std-location-marker:hover .std-location-marker__pin,
  .leaflet-marker-icon.std-location-marker:hover .std-location-marker__pin {
    transform: scale(2);
    filter: drop-shadow(0 18px 34px rgba(28, 28, 30, 0.28));
  }
}

.collar-photo-input {
  display: none;
}

.collar-photo-crop-modal,
.collar-photo-action-modal,
.collar-name-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(28, 28, 30, 0.42);
  backdrop-filter: blur(10px);
}

.collar-photo-crop-modal.hidden,
.collar-photo-action-modal.hidden,
.collar-name-modal.hidden {
  display: none;
}

.collar-photo-crop-card,
.collar-photo-action-card,
.collar-name-card {
  display: grid;
  gap: 14px;
  width: min(100%, 386px);
  padding: 16px;
  border: 1px solid rgba(210, 210, 215, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(28, 28, 30, 0.24);
}

.collar-photo-action-card {
  width: min(100%, 360px);
}

.collar-name-card {
  width: min(100%, 360px);
}

.collar-photo-crop-head,
.collar-name-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.collar-photo-crop-head h3,
.collar-photo-crop-head p,
.collar-name-head h3,
.collar-name-head p {
  margin: 0;
}

.collar-photo-crop-head h3,
.collar-name-head h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.collar-photo-action-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.collar-photo-crop-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.collar-photo-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.collar-photo-crop-close {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.collar-photo-crop-view {
  position: relative;
  justify-self: center;
  width: min(72vw, 282px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 999px;
  background: #1d1d1f;
  box-shadow:
    0 12px 34px rgba(28, 28, 30, 0.20),
    0 0 0 1px rgba(60, 60, 67, 0.12);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.collar-photo-crop-view:active {
  cursor: grabbing;
}

.collar-photo-crop-view::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: inherit;
  pointer-events: none;
}

.collar-photo-crop-view canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.collar-photo-crop-zoom {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.collar-photo-crop-zoom input {
  width: 100%;
}

.collar-photo-crop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.collar-name-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.collar-name-field input {
  min-height: 42px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}

.collar-name-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
}

.collar-name-meta .status {
  margin: 0;
  font-size: 12px;
}

.collar-name-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.settings-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.collar-name-settings {
  margin-top: 12px;
}

.settings-panel__head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.collar-name-settings-list {
  display: grid;
  gap: 8px;
}

.collar-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.collar-settings-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.collar-settings-name-block {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 8px;
}

.collar-settings-name-block strong,
.collar-settings-name-block span,
.collar-settings-name-block button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collar-settings-name-block span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.collar-name-edit-button {
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.collar-name-edit-button--inline {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.collar-name-edit-button--inline:hover,
.collar-name-edit-button--inline:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.collar-settings-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.collar-sleep-field {
  display: grid;
  gap: 3px;
  min-width: 82px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.collar-sleep-info-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(60, 60, 67, 0.18);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.settings-panel__head .collar-sleep-info-button {
  justify-self: end;
}

.collar-sleep-info-button:hover,
.collar-sleep-info-button:focus-visible {
  border-color: rgba(0, 122, 255, 0.32);
  color: var(--accent-strong);
}

.collar-sleep-field select {
  height: 36px;
  min-width: 76px;
  padding: 0 28px 0 9px;
  border: 1px solid rgba(60, 60, 67, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: normal;
}

.collar-sleep-status {
  grid-column: 1 / -1;
  min-height: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.collar-sleep-info-card {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 520;
  width: min(360px, calc(100vw - 48px));
  padding: 9px 10px;
  border: 1px solid rgba(0, 122, 255, 0.16);
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.96);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 12px 28px rgba(28, 28, 30, 0.14);
}

.collar-sleep-info-card.hidden {
  display: none;
}

.collar-sleep-status:empty {
  display: none;
}

.collar-settings-row:hover {
  border-color: rgba(0, 122, 255, 0.30);
  background: #ffffff;
}

.collar-photo-action-buttons {
  display: grid;
  gap: 8px;
}

.map-style-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.map-legend-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.map-legend-swatch-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.map-legend-swatch-button--active {
  border-color: rgba(23, 26, 22, 0.16);
  background: #ffffff;
}

.map-legend-swatch-button[aria-pressed="false"] {
  color: var(--muted);
}

.map-legend-swatch-button[aria-pressed="false"] .map-legend-swatch {
  opacity: 0.32;
}

.map-legend-swatch {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86), 0 0 0 3px rgba(23, 26, 22, 0.18);
}

.map-legend-swatch--receiver {
  background: #78cfad;
  border: 2px solid #14634b;
}

.map-legend-swatch--estimate {
  background: rgba(240, 164, 95, 0.5);
  border: 2px solid #cc6d1f;
}

.map-legend-swatch--likelihood {
  background: conic-gradient(from 45deg, #2563eb, #22d3ee, #fde047, #f97316, #dc2626, #2563eb);
  border: 2px solid #1d4ed8;
}

.map-legend-swatch--truth {
  background: #ef4444;
  border: 2px solid #7f1d1d;
}

.map-info-button {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  appearance: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.map-info-button:hover,
.map-info-button[aria-expanded="true"] {
  border-color: rgba(23, 26, 22, 0.16);
  background: #ffffff;
  color: var(--ink);
}

.map-info-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 800;
  width: min(320px, calc(100vw - 40px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(17, 19, 17, 0.16);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.map-info-popover p {
  margin: 0;
}

.map-info-popover p + p {
  margin-top: 8px;
}

.map-info-popover__section + .map-info-popover__section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.map-info-popover__section h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
}

.map-info-popover__section p {
  margin: 0;
}

.map-info-popover strong {
  font-weight: 750;
}

.map-info-popover__meta {
  color: var(--muted);
}

.map-info-popover a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.map-info-popover a:hover {
  text-decoration: underline;
}

.map-layer-explanation-card {
  position: absolute;
  top: 58px;
  left: 12px;
  z-index: 440;
  width: min(440px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(23, 26, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(17, 19, 17, 0.14);
  color: var(--ink);
}

.map-layer-explanation-card.hidden {
  display: none;
}

.map-layer-explanation-card__item + .map-layer-explanation-card__item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.map-layer-explanation-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
}

.map-layer-explanation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.std-location-marker {
  --std-location-marker-shell: #ffffff;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.std-location-marker__pin {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--std-location-marker-shell);
  filter: drop-shadow(0 10px 20px rgba(28, 28, 30, 0.24));
  transform-origin: 50% 100%;
}

.std-location-marker__pin::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 0 0 5px 0;
  background: var(--std-location-marker-shell);
  transform: translateX(-50%) rotate(45deg);
  z-index: 0;
}

.std-location-marker__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 999px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.std-location-marker__avatar--photo {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.std-location-marker__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.std-location-marker__time {
  display: block;
  max-width: 142px;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px rgba(28, 28, 30, 0.12);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  overflow: visible;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.map-style-button {
  min-height: 34px;
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
}

.map-style-button--active {
  border-color: var(--accent-strong);
  box-shadow: none;
  background: #ffffff;
}

.map-canvas {
  width: 100%;
  height: 720px;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e5e5ea;
  cursor: pointer;
}

.history-loading-asset {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(245, 245, 247, 0.14);
  backdrop-filter: blur(1px);
}

.history-loading-asset.hidden {
  display: none;
}

.history-loading-asset__mark {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(29, 29, 31, 0.20);
}

.history-loading-asset__mark::before,
.history-loading-asset__mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.history-loading-asset__mark::before {
  inset: 13px;
  border: 3px solid rgba(0, 122, 255, 0.16);
  border-top-color: var(--accent-strong);
  animation: history-asset-spin 0.82s linear infinite;
}

.history-loading-asset__mark::after {
  inset: 25px;
  background: var(--accent-strong);
  animation: history-asset-pulse 0.82s ease-in-out infinite alternate;
}

.history-loading-panel {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e5e5ea;
}

@keyframes history-asset-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes history-asset-pulse {
  from {
    opacity: 0.42;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.map-history-overlay {
  display: none;
}

.inline-form-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.checkout-panel {
  max-width: 720px;
}

.checkout-progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(60, 117, 210, 0.22);
  background: rgba(151, 184, 238, 0.18);
}

.checkout-progress__bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3e78d8, #5b96ff);
  transition: width 70ms linear;
}

.data-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, monospace;
  font-size: 12px;
}

.admin-control-panel {
  align-content: start;
}

.admin-category-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-category {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.admin-category span {
  font-size: 16px;
  font-weight: 850;
}

.admin-category small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-category--active {
  border-color: rgba(60, 117, 210, 0.42);
  background: rgba(60, 117, 210, 0.08);
  box-shadow: 0 0 0 1px rgba(60, 117, 210, 0.08);
}

.admin-category-panel:not(.hidden) {
  display: grid;
  gap: 14px;
}

.admin-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-panel-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-panel-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-panel-card h3,
.admin-panel-card p {
  margin: 0;
}

.admin-panel-card h3 {
  font-size: 17px;
}

.admin-panel-card p:not(.sidebar-label) {
  color: var(--muted);
  line-height: 1.45;
}

.admin-game-stats {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-game-stats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-game-stats__head h3 {
  margin: 0;
  font-size: 17px;
}

.admin-game-stats__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-game-stats__controls select {
  min-height: 40px;
  max-width: 230px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-game-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 2px;
}

.admin-game-stats-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-game-stats-summary strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 17px;
}

.admin-game-stats-list {
  display: grid;
  gap: 10px;
}

.admin-game-timeline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 124px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 6px 2px 12px;
  scrollbar-width: thin;
}

.admin-game-stats-row {
  display: grid;
  grid-template-rows: 16px 22px 56px 16px;
  justify-items: center;
  align-items: end;
  gap: 4px;
  flex: 1 0 34px;
  max-width: 54px;
  min-height: 116px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.admin-game-stats-row:hover,
.admin-game-stats-row--open {
  border-color: rgba(60, 117, 210, 0.42);
  background: rgba(60, 117, 210, 0.08);
}

.admin-game-timeline-day--empty {
  cursor: default;
  opacity: 0.45;
}

.admin-game-timeline-day--empty:hover {
  border-color: transparent;
  background: var(--surface);
}

.admin-game-stats-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-transform: lowercase;
}

.admin-game-stats-row strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.admin-game-stats-row__bar {
  display: flex;
  align-items: flex-end;
  width: 11px;
  height: 54px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(60, 117, 210, 0.08);
}

.admin-game-stats-row__bar i {
  display: block;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #3c75d2, #34a060);
}

.admin-game-day-detail {
  --plot-mid: 56px;
  --plot-height: 112px;
  --plot-lane-step: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 8px;
}

.admin-game-day-detail--expanded {
  --plot-mid: 104px;
  --plot-height: 208px;
  --plot-lane-step: 28px;
}

.admin-game-day-detail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-game-day-detail__head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-game-day-detail__head strong {
  font-size: 16px;
}

.admin-game-day-detail__head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-game-day-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.admin-game-day-detail__actions .button-secondary {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.admin-game-day-plot {
  display: grid;
  gap: 8px;
}

.admin-game-day-plot__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 0 8px;
  scrollbar-width: thin;
}

.admin-game-day-plot__canvas {
  min-width: 1440px;
}

.admin-game-day-plot__track {
  position: relative;
  min-height: var(--plot-height);
  margin: 4px 8px 0;
  background:
    linear-gradient(90deg, rgba(60, 117, 210, 0.1) 1px, transparent 1px) 0 0 / 25% 100%;
}

.admin-game-day-plot__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--plot-mid);
  height: 2px;
  border-radius: 999px;
  background: rgba(60, 117, 210, 0.22);
}

.admin-game-day-plot__marker {
  position: absolute;
  top: calc(var(--plot-mid) + ((var(--lane, 0) - 1.5) * var(--plot-lane-step)));
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--surface-alt);
  border-radius: 50%;
  background: #3c75d2;
  box-shadow: 0 0 0 2px rgba(60, 117, 210, 0.14);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.admin-game-day-plot__marker span {
  display: none;
}

.admin-game-day-plot__marker::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 2;
  min-width: max-content;
  padding: 5px 7px;
  border: 1px solid rgba(210, 210, 215, 0.82);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

.admin-game-day-plot__marker:hover::after,
.admin-game-day-plot__marker:focus-visible::after {
  opacity: 1;
}

.admin-game-day-plot__axis {
  position: relative;
  height: 16px;
  margin: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-game-day-plot__axis span {
  position: absolute;
  top: 0;
  text-align: center;
  transform: translateX(-50%);
}

.admin-game-day-plot__axis span:first-child {
  transform: translateX(0);
}

.admin-game-day-plot__axis span:last-child {
  transform: translateX(-100%);
}

.admin-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.admin-pill--active {
  border-color: rgba(60, 117, 210, 0.36);
  background: rgba(60, 117, 210, 0.08);
}

.admin-pill__badge {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d4213d;
  color: #ffffff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.admin-chat-log {
  display: grid;
  gap: 14px;
}

.admin-chat-date-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-chat-date-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-chat-date-summary strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 17px;
}

.admin-chat-date-timeline {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.admin-chat-date-button {
  position: relative;
  display: grid;
  grid-template-rows: 16px 22px 18px;
  justify-items: center;
  align-items: end;
  gap: 3px;
  flex: 0 0 50px;
  min-height: 76px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.admin-chat-date-button:hover,
.admin-chat-date-button--active {
  border-color: rgba(60, 117, 210, 0.42);
  background: rgba(60, 117, 210, 0.08);
}

.admin-chat-date-button span,
.admin-chat-date-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-transform: lowercase;
}

.admin-chat-date-button strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.admin-chat-date-button b {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 18px;
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.admin-chat-day {
  display: grid;
  gap: 12px;
}

.admin-chat-day.hidden {
  display: none;
}

.admin-chat-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
}

.admin-chat-day__head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-chat-day__head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-chat-day__delete {
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(207, 45, 45, 0.35);
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.admin-chat-conversation {
  display: grid;
  gap: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-chat-message__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-chat-conversation__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.admin-chat-conversation__summary h3 {
  margin: 0;
  font-size: 16px;
}

.admin-chat-conversation__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-chat-conversation__preview {
  display: -webkit-box;
  margin: 8px 0 0;
  max-width: 62ch;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-chat-conversation__stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.admin-chat-conversation__stats span,
.admin-chat-conversation__stats b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.admin-chat-conversation__stats b {
  background: var(--accent-strong);
  color: #ffffff;
}

.admin-chat-conversation__body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-chat-conversation__body.hidden {
  display: none;
}

.admin-chat-conversation__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chat-conversation__toolbar button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.admin-chat-conversation--new {
  border-color: rgba(52, 160, 96, 0.55);
  box-shadow: 0 0 0 1px rgba(52, 160, 96, 0.12);
}

.admin-chat-conversation__new-count,
.admin-chat-new-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.admin-chat-conversation__new-count {
  min-height: 24px;
  padding: 0 10px;
  white-space: nowrap;
}

.admin-chat-new-marker {
  margin-left: 6px;
  padding: 4px 7px;
  vertical-align: middle;
}

.admin-chat-conversation__messages {
  display: grid;
  gap: 10px;
}

.admin-chat-message {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-alt);
}

.admin-chat-message--user {
  border-left: 3px solid var(--accent-strong);
}

.admin-chat-message--assistant {
  border-left: 3px solid #8a95a6;
}

.admin-chat-message--new {
  background: rgba(52, 160, 96, 0.1);
}

.admin-chat-message p {
  margin: 0;
  white-space: pre-wrap;
}

.admin-chat-message__head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-chat-correction {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.admin-chat-correction textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
}

.admin-chat-translation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-chat-translations {
  display: grid;
  gap: 8px;
}

.admin-chat-translation {
  border-left: 3px solid rgba(52, 160, 96, 0.55);
  padding: 8px 10px;
  background: rgba(52, 160, 96, 0.08);
  border-radius: 6px;
}

.admin-chat-translation strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-chat-translation p {
  margin: 0;
}

@media (max-width: 860px) {
  .admin-category-row,
  .admin-panel-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-game-stats__head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-game-stats__controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-game-stats__controls select {
    max-width: none;
    width: 100%;
  }

  .admin-game-stats-row {
    flex-basis: 42px;
    min-height: 104px;
  }

  .admin-game-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulator-shell {
    grid-template-columns: 1fr;
  }

  .simulator-rail {
    position: static;
  }

  .simulator-scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulator-stage {
    min-height: auto;
  }

  .simulator-stage__top {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .panel-layout,
  .customer-shell {
    grid-template-columns: 1fr;
  }

  .panel-sidebar,
  .customer-shell__sidebar {
    position: static;
  }

  .battery-chart-panel {
    left: 14px;
    right: 14px;
    width: auto;
    margin-inline: 0;
    transform: translateY(calc(100% + 24px));
  }

  .battery-chart-panel--open {
    transform: translateY(0);
  }

  .battery-chart-panel--closing {
    transform: translateY(calc(100% + 24px));
  }

  .selector-list--limited {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 640px) {
  .simulator-scenario-list {
    grid-template-columns: 1fr;
  }

  .simulator-stage {
    padding: 14px;
  }

  .simulator-stage--game {
    min-height: calc(100vh - 78px);
    padding: 8px;
  }

  .seek-game {
    min-height: calc(100vh - 96px);
  }

  .seek-game__canvas {
    height: calc(100vh - 96px);
    min-height: 500px;
  }

  .seek-game__hud {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 134px);
  }

  .seek-game__actions {
    top: 10px;
    right: 10px;
    flex-direction: column;
  }

  .seek-game__scenarios {
    flex-direction: column;
  }

  .seek-game__overview {
    inset: 72px 78px 62px 10px;
  }

  .seek-builder {
    inset: 0;
    grid-template-rows: auto minmax(0, 1fr) 86px;
    gap: 8px;
    padding: 8px;
  }

  .seek-builder canvas {
    min-height: 320px;
  }

  .seek-builder textarea {
    min-height: 86px;
  }

  .seek-game__prompt {
    left: 188px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .seek-game__minimap {
    left: 10px;
    bottom: 10px;
    width: 168px;
  }

  .seek-game__minimap-scale {
    left: 10px;
    bottom: 142px;
    width: 168px;
    grid-template-columns: 1fr auto;
  }

  .seek-game__minimap-scale input {
    grid-column: 1 / -1;
  }

  .seek-game__gateway-buttons {
    right: 10px;
    bottom: 10px;
    gap: 7px;
    padding: 8px 6px;
  }

  .seek-game__gateway-button-wrap {
    width: 58px;
    height: 44px;
  }

  .seek-game__gateway-button-wrap .gateway-control--arrow {
    width: 50px;
    height: 36px;
    min-height: 36px;
  }

  .seek-game__gateway-button-wrap .gateway-control--select {
    width: 50px;
    height: 34px;
    min-height: 34px;
  }

  .simulator-title {
    font-size: 24px;
  }

  .simulator-step-title {
    font-size: 24px;
  }

  .gateway-device {
    width: min(100%, 366px);
  }

  .simulator-password-cue {
    width: 237px;
    height: 28px;
    font-size: 21px;
  }

  .gateway-display {
    padding: 13px;
    border-width: 6px;
  }

  .gateway-face {
    --gateway-display-scale: 0.93;
    grid-template-columns: 237px 92px;
    gap: 18px;
  }

  .gateway-screen-window {
    width: 237px;
    height: 276px;
    border-radius: 14px;
  }

  .gateway-hardware-buttons {
    gap: 14px;
    padding: 0;
  }

  .gateway-control-wrap {
    width: 86px;
    height: 64px;
  }

  .gateway-control-wrap::after {
    width: 70px;
    height: 70px;
  }

  .gateway-control-wrap--select::after {
    width: 72px;
    height: 56px;
    border-radius: 16px;
  }

  .gateway-control {
    width: 74px;
    height: 52px;
    min-height: 52px;
    padding: 0;
  }

  .gateway-control--select {
    width: 76px;
    height: 50px;
    min-height: 50px;
    border-radius: 12px;
  }

  body.simulator-recording .simulator-stage {
    padding: 16px;
  }

  body.simulator-recording .gateway-device {
    width: min(96vw, 366px);
  }

  .page {
    padding: 12px 14px 20px;
  }

  .panel-page .topbar {
    display: none;
  }

  .topbar {
    padding: 10px 14px;
  }

  .feature-hero {
    min-height: 38vh;
  }

  .feature-hero__content {
    padding: 20px 18px 22px;
  }

  .hero-title {
    font-size: 30px;
  }

  .choice-buttons {
    grid-template-columns: 1fr;
  }

  .store-actions {
    flex-direction: column;
  }

  .store-stage {
    min-height: auto;
    overflow: hidden;
  }

  .store-stage__floating {
    gap: 28px;
    padding: 14px 12px 18px;
  }

  .store-stage__header {
    padding: 8px 12px;
  }

  .store-stage__title {
    font-size: 22px;
  }

  .store-products {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .store-float-card {
    gap: 12px;
    padding: 12px;
  }

  .store-float-card__media {
    aspect-ratio: 16 / 9;
    padding: 10px;
  }

  .store-float-card__row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .store-float-card__name {
    font-size: 18px;
  }

  .store-float-card__price {
    font-size: 28px;
  }

  .auth-primary,
  .auth-secondary,
  .panel {
    padding: 18px;
  }

  .sidebar-surface,
  .workspace-surface {
    padding: 16px;
  }

  .map-canvas {
    height: 540px;
    min-height: 540px;
  }

  .history-toolbar {
    align-items: stretch;
    flex-basis: 100%;
  }

  .workspace-surface__head {
    align-items: stretch;
    flex-direction: column;
  }

  .history-toolbar__windows,
  .history-toolbar__actions {
    justify-content: flex-start;
  }

  .history-toolbar > .history-scrubber {
    display: none !important;
  }

  .login-shell {
    padding-top: 18px;
  }

  .login-card {
    padding: 22px 18px;
  }

  .login-card__title {
    font-size: 30px;
  }

  .map-history-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 450;
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(28, 28, 30, 0.16);
  }

  .map-history-overlay.hidden {
    display: none;
  }

  .map-history-overlay .history-scrubber {
    width: 100%;
    display: block;
  }

  .list-button__top,
  .list-button__bottom {
    gap: 10px;
  }

  .auth-secondary summary,
  .auth-secondary > .stack {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sidebar-surface__head {
    align-items: center;
  }

  .form-row-wide select,
  .form-row-wide input {
    flex: 1 1 100%;
    width: 100%;
  }

  .panel-page .page {
    max-width: none;
    padding: 0;
  }

  .customer-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100vh - 45px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .customer-shell__sidebar {
    position: sticky;
    top: 0;
    z-index: 9;
  }

  .customer-shell__main {
    min-height: 0;
    width: 100%;
    min-width: 0;
  }

  .customer-shell .sidebar-surface {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 8px 10px 7px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(28, 28, 30, 0.08);
  }

  .sidebar-surface__head {
    margin-bottom: 8px;
  }

  .sidebar-surface__head .sidebar-label {
    display: none;
  }

  .sidebar-title {
    font-size: 18px;
  }

  .button-quiet {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .section-nav__button {
    min-width: 0;
    justify-content: center;
    min-height: 34px;
    padding: 7px 6px;
    text-align: center;
    font-size: 13px;
  }

  .sidebar-rail {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding-top: 8px;
  }

  .sidebar-rail__head {
    display: none;
  }

  #collar-list.selector-list--limited:not(.hidden),
  #gateway-list.selector-list--limited:not(.hidden) {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  #collar-list.selector-list--grouped:not(.hidden) {
    align-items: stretch;
    gap: 12px;
  }

  #collar-list.selector-list--grouped .collar-gateway-group {
    flex: 0 0 auto;
    min-width: max-content;
  }

  #collar-list.selector-list--grouped .collar-gateway-group__head {
    padding: 0 4px 1px;
    font-size: 10px;
  }

  #collar-list.selector-list--grouped .collar-gateway-group__items {
    display: flex;
    gap: 8px;
  }

  .selector-list--limited .list-button {
    flex: 0 0 136px;
    min-height: 50px;
    padding: 7px 8px;
    border-radius: 8px;
    scroll-snap-align: start;
  }

  .list-button__top,
  .list-button__bottom {
    gap: 6px;
  }

  .list-button__name {
    font-size: 15px;
  }

  .list-button__bottom {
    margin-top: 3px;
    font-size: 11px;
  }

  #collar-list .list-button__bottom {
    display: none;
  }

  .battery-badge {
    flex-direction: column;
    gap: 3px;
    min-width: 42px;
    min-height: 38px;
    padding: 4px 5px;
    font-size: 11px;
  }

  .battery-badge__icon {
    width: 16px;
    height: 8px;
  }

  .battery-badge__value {
    min-width: 0;
    text-align: center;
  }

  .battery-chart-panel {
    top: auto;
    right: 4px;
    bottom: 4px;
    left: 4px;
    width: auto;
    margin-inline: 0;
    z-index: 5000;
    gap: 14px;
    padding: 14px 12px 16px;
    max-height: calc(100dvh - 8px);
    overflow: auto;
    transform: translateY(calc(100% + 24px));
  }

  .battery-chart-panel--open {
    transform: translateY(0);
  }

  .battery-chart-panel--closing {
    transform: translateY(calc(100% + 24px));
  }

  .battery-chart-svg {
    align-self: stretch;
    min-height: min(58dvh, 520px);
    max-height: none;
  }

  .battery-chart-title {
    font-size: 21px;
  }

  .battery-chart-status {
    font-size: 15px;
  }

  .battery-window-button {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 15px;
  }

  .battery-chart-axis-label,
  .battery-chart-date-label,
  .battery-chart-latest-pill text {
    font-size: 18px;
  }

  .battery-chart-scrub-date text {
    font-size: 15px;
  }

  .battery-chart-open .customer-shell__sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
  }

  .battery-chart-head .button-quiet {
    display: none;
  }

  .gateway-map-shell {
    min-height: calc(100vh - 150px);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .gateway-map-toolbar {
    top: 10px;
    right: 10px;
  }

  .gateway-map {
    height: calc(100vh - 150px);
    min-height: 520px;
  }

  .gateway-map-layout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .gateway-coverage-popover {
    right: 10px;
    bottom: 64px;
    left: 10px;
    max-width: none;
  }

  .gateway-settings-stack {
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
  }

  .collar-name-modal {
    place-items: end center;
    padding: 0;
  }

  .collar-name-card {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    padding: 15px 14px 18px;
  }

  .customer-shell .workspace-surface {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .customer-shell .workspace-surface__head {
    display: none;
  }

  .workspace-pane {
    width: 100%;
    min-width: 0;
    gap: 0;
  }

  .map-stage {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    gap: 0;
    min-height: auto;
  }

  .map-canvas-shell {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
  }

  .map-toolbar {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    pointer-events: none;
    padding: 8px 9px;
    background: rgba(255, 255, 255, 0.94);
  }

  .map-toolbar__controls {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
  }

  .map-legend-control,
  .map-style-toggle {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(28, 28, 30, 0.12);
    backdrop-filter: blur(10px);
  }

  .collar-photo-edit {
    width: 32px;
    height: 32px;
  }

  .collar-photo-avatar--selector {
    width: 26px;
    height: 26px;
  }

  .map-legend-swatch-button {
    min-height: 28px;
    padding: 5px 6px;
  }

  .map-legend-swatch-button span:last-child {
    display: none;
  }

  .map-info-popover {
    width: min(300px, calc(100vw - 24px));
  }

  .map-layer-explanation-card {
    position: absolute;
    top: 58px;
    right: 9px;
    left: 9px;
    z-index: 440;
    width: auto;
    max-height: 36vh;
    overflow-y: auto;
  }

  .map-style-button {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .map-canvas {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: calc(100vh - 128px) !important;
    min-height: 560px;
    max-height: none;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .map-history-overlay {
    left: 9px;
    right: 9px;
    bottom: 9px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
  }

  .map-history-overlay__top {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .map-history-overlay__windows {
    display: flex;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .map-history-overlay__windows::-webkit-scrollbar {
    display: none;
  }

  .map-history-window-button,
  .map-history-play-button {
    position: relative;
    min-height: 28px;
    padding: 5px 8px;
    border-color: transparent;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
    white-space: nowrap;
  }

  .map-history-window-button--active,
  .map-history-play-button {
    border-color: rgba(0, 122, 255, 0.26);
    background: rgba(0, 122, 255, 0.08);
  }

  .map-history-window-button--loading {
    padding-right: 26px;
  }

  .map-history-window-button--loading::after {
    right: 8px;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
  }

  .map-history-frame-label {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
  }

  .map-history-overlay .history-scrubber {
    margin-top: 6px;
  }

  .panel-page {
    height: 100vh;
    overflow: hidden;
  }

  .panel-page .page {
    height: 100vh;
    overflow: hidden;
  }

  .customer-shell {
    position: relative;
    display: block;
    height: 100vh;
    min-height: 0;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .customer-shell__main {
    position: absolute;
    inset: 0;
    z-index: auto;
    width: 100vw;
    height: 100vh;
  }

  .customer-shell__sidebar {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 900;
  }

  .customer-shell .sidebar-surface {
    padding: 8px;
    border: 1px solid rgba(210, 210, 215, 0.84);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(28, 28, 30, 0.2);
    backdrop-filter: blur(14px);
  }

  .sidebar-surface__head {
    min-height: 26px;
    margin-bottom: 6px;
  }

  .sidebar-title {
    font-size: 15px;
  }

  .button-quiet {
    min-height: 28px;
  }

  .section-nav__button {
    min-height: 30px;
    padding: 5px 6px;
    font-size: 12px;
  }

  .mobile-history-panel:not(.hidden) {
    display: grid;
    gap: 7px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(210, 210, 215, 0.76);
  }

  .mobile-history-time {
    color: var(--ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.15;
  }

  .mobile-history-scrubber {
    width: 100%;
    margin: 0;
  }

  .mobile-history-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 0.8fr;
    gap: 6px;
  }

  .mobile-history-step-button,
  .mobile-history-play-button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 750;
  }

  .mobile-history-step-button {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
  }

  .mobile-history-windows {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-history-windows::-webkit-scrollbar {
    display: none;
  }

  .sidebar-rail {
    margin-top: 7px;
    padding-top: 7px;
  }

  .selector-list--limited .list-button {
    flex-basis: 136px;
    min-height: 50px;
  }

  .customer-shell .workspace-surface,
  .workspace-body,
  .workspace-pane,
  .map-stage,
  .map-canvas-shell {
    width: 100vw;
    height: 100vh;
  }

  #account-workspace:not(.hidden) {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 116px;
    left: 10px;
    z-index: 520;
    width: auto;
    height: auto;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(210, 210, 215, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(28, 28, 30, 0.18);
    backdrop-filter: blur(16px);
    animation: mobile-account-panel-in 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  #account-workspace .workspace-pane {
    width: auto;
    height: auto;
    gap: 12px;
  }

  #account-workspace .account-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #account-workspace .fact-card {
    padding: 13px;
    background: rgba(248, 248, 250, 0.96);
  }

  #account-workspace .fact-card--demo {
    background: rgba(0, 122, 255, 0.065);
  }

  #account-workspace .fact-card__value {
    font-size: 17px;
  }

  #account-workspace .fact-card__value--small {
    font-size: 14px;
  }

  body.panel-view-gateways .sidebar-rail {
    display: none;
  }

  body.panel-view-gateways #gateways-workspace:not(.hidden) {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 94px;
    left: 10px;
    z-index: 520;
    width: auto;
    height: auto;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(210, 210, 215, 0.86);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(28, 28, 30, 0.18);
    backdrop-filter: blur(16px);
    animation: mobile-account-panel-in 190ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  body.panel-view-gateways #gateways-workspace .workspace-pane,
  body.panel-view-gateways #gateways-workspace .gateway-map-layout {
    width: auto;
    height: auto;
    margin: 0;
    gap: 12px;
  }

  body.panel-view-gateways #gateways-workspace .gateway-map-shell {
    display: block;
    min-height: min(52dvh, 430px);
    height: min(52dvh, 430px);
  }

  body.panel-view-gateways #gateways-workspace .gateway-map {
    height: 100%;
    min-height: min(52dvh, 430px);
  }

  body.panel-view-gateways #gateways-workspace .gateway-settings-stack {
    position: static;
    display: grid;
    gap: 12px;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  body.panel-view-gateways #gateways-workspace .settings-panel {
    background: rgba(248, 248, 250, 0.96);
  }

  body.panel-view-gateways #gateways-workspace .collar-name-settings {
    margin-top: 0;
  }

  body.panel-view-gateways #gateways-workspace .collar-settings-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  body.panel-view-gateways #gateways-workspace .collar-settings-controls {
    justify-content: flex-end;
  }

  body.panel-view-gateways #gateways-workspace .collar-sleep-field select {
    min-width: 86px;
    height: 40px;
    font-size: 14px;
  }

  @keyframes mobile-account-panel-in {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .map-stage {
    margin: 0;
  }

  .map-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    z-index: 450;
    padding: 0;
    background: transparent;
  }

  .map-canvas {
    height: 100vh !important;
    min-height: 100vh;
  }

  .map-history-overlay {
    display: none !important;
  }
}

@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  body.simulator-game-active {
    overflow: hidden;
  }

  body.simulator-game-active .topbar,
  body.simulator-game-active .simulator-rail {
    display: none;
  }

  body.simulator-game-active .page {
    padding: 0;
  }

  .simulator-shell--game {
    display: block;
    min-height: 100dvh;
  }

  .simulator-stage--game {
    min-height: 100dvh;
    padding: 0;
  }

  .simulator-stage--game .gateway-device {
    width: min(86vw, 360px);
    margin: 10px auto 18px;
  }

  .seek-game {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .seek-game__canvas {
    height: 100dvh;
    min-height: 100dvh;
    cursor: default;
  }

  .seek-game__mobile-controls {
    display: block;
  }

  .seek-game__hud {
    top: 10px;
    left: 10px;
    max-width: min(48vw, 340px);
    padding: 9px 10px;
  }

  .seek-game__hud strong,
  .seek-game__hud span {
    font-size: 12px;
  }

  .seek-game__actions {
    top: 10px;
    right: 10px;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(56vw, 330px);
  }

  .seek-game__actions button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .seek-game__gateway-buttons {
    display: none;
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .seek-game__prompt {
    display: none;
  }

  .seek-game__minimap {
    top: 10px;
    bottom: auto;
    left: 10px;
    right: auto;
    width: 160px;
  }

  .seek-game__minimap-scale {
    display: none;
  }

  .seek-game__overview {
    inset: 48px 8px 8px;
  }
}

@media (max-width: 860px) and (orientation: portrait), (hover: none) and (pointer: coarse) and (orientation: portrait) {
  body.simulator-game-active .seek-game__mobile-orientation {
    display: grid;
  }
}

@media (max-width: 860px) and (orientation: landscape), (hover: none) and (pointer: coarse) and (orientation: landscape) {
  body.simulator-game-active .seek-game__mobile-orientation {
    display: none;
  }

  body.simulator-game-active .simulator-stage--game .gateway-device {
    display: block;
  }

  .seek-game__cue--success {
    min-width: min(420px, calc(100vw - 152px));
    max-height: calc(100dvh - 16px);
    gap: 5px;
    padding: 10px 12px;
  }

  .seek-game__cue--success > strong {
    font-size: 18px;
  }

  .seek-game__cue--success > span {
    font-size: 12px;
  }

  .seek-game__cue--success > em {
    font-size: 10px;
  }

  .seek-game__cue--success .seek-game__distribution {
    gap: 7px;
    margin-top: 3px;
    padding: 8px 9px;
  }

  .seek-game__cue--success .seek-game__distribution-head {
    gap: 5px;
  }

  .seek-game__cue--success .seek-game__distribution-head strong {
    font-size: 20px;
  }

  .seek-game__cue--success .seek-game__distribution-slider {
    height: 11px;
  }

  .seek-game__cue--success .seek-game__distribution-slider b {
    width: 14px;
    height: 22px;
  }

  .seek-game__cue--success .seek-game__distribution-curve {
    padding: 3px 6px 1px;
  }

  .seek-game__cue--success .seek-game__distribution-curve svg {
    height: 62px;
  }

  .seek-game__cue--success .seek-game__distribution-axis {
    font-size: 8px;
  }

  .seek-game__cue--success .seek-game__distribution-footer span {
    padding: 6px 7px;
  }

  .seek-game__cue--success .seek-game__distribution-footer strong {
    font-size: 13px;
  }
}

@media (max-width: 680px) and (orientation: landscape) {
  .seek-game__joystick {
    width: 104px;
    height: 104px;
  }

  .seek-game__joystick-knob {
    width: 40px;
    height: 40px;
  }

  .seek-game__mobile-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .seek-game__mobile-scan-hint {
    bottom: 110px;
    width: min(176px, 42vw);
    font-size: 11px;
  }

  .seek-game__minimap {
    width: 138px;
  }
}
