/* src/index.css */
:root {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  --panel-gap: 24px;
  --shell-max-width: 1800px;
  --shell-max-height: 1200px;
  --editor-panel-width: 360px;
  --floating-panel-z: 20;
  --surface-secondary-bg: #2d2e31;
  --shell-width: min(var(--shell-max-width), calc(100vw - (var(--panel-gap) * 2)));
  --shell-height: min(var(--shell-max-height), calc(100vh - (var(--panel-gap) * 2)));
  --shell-left: calc((100vw - var(--shell-width)) / 2);
  --shell-top: calc((100vh - var(--shell-height)) / 2);
  --radius-panel: 26px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --text-primary: #f6fafff5;
  --text-secondary: #d8e5f5c7;
  --text-muted: #c4d5e894;
  --accent-warm: #ffd47d;
  --glass-panel-bg: linear-gradient(160deg, #a5bcdd30 0%, #2f496e3d 55%, #1c2e4b33 100%);
  --glass-card-bg: linear-gradient(148deg, #f8fcff2b 0%, #a0bee614 45%, #6c8ebb1a 100%);
  --glass-soft-bg: linear-gradient(148deg, #f2f8ff21 0%, #b1cbec12 100%);
  --glass-border: #e2efff47;
  --glass-shadow: 0 20px 52px #040d1f6b;
  --glass-shadow-soft: 0 12px 28px #08122652;
  --focus-ring: 0 0 0 2px #80beff80;
  --editor-icon-width: 20px;
  font-family: TripSans, Space Grotesk, Avenir Next, Trebuchet MS, sans-serif;
}

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  background-color: #000;
  min-height: 100vh;
  margin: 0;
}

body.route-dragging, body.route-dragging * {
  cursor: grabbing !important;
}

.app {
  width: var(--shell-width);
  height: var(--shell-height);
  display: grid;
  grid-template-columns: var(--editor-panel-width) minmax(0, 1fr);
}

.app__viewport {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.app__mobile-preview-toggle, .app__mobile-editor-toggle {
  display: none;
}

.editor, .settings, .controls__status, .viewport__overlay--camera, .render-dialog {
  border: 1px solid var(--glass-border);
  background: var(--glass-card-bg);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  -apple-visual-effect: -apple-system-glass-material;
}

.editor {
  color: var(--text-primary);
  display: flex;
  overflow: hidden;
  position: fixed;
  top: var(--shell-top);
  left: var(--shell-left);
  height: var(--shell-height);
  width: var(--editor-panel-width);
  z-index: var(--floating-panel-z);
  border-radius: var(--radius-panel);
  background: var(--glass-panel-bg);
  box-shadow: var(--glass-shadow);
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.editor:before {
  content: "";
  position: absolute;
  border-radius: calc(var(--radius-panel)  - 1px);
  pointer-events: none;
  background: linear-gradient(165deg, #ffffff24 0%, #ffffff08 45%, #ffffff03 100%);
  inset: 1px;
}

.editor > * {
  position: relative;
}

.editor__title {
  --editor-title-gradient: linear-gradient(110deg, #eef9fffa 0%, #abddfff2 45%, #f4fcfffa 100%);
  letter-spacing: -.04em;
  position: relative;
  display: inline-flex;
  color: #f8fcfff5;
  background: var(--editor-title-gradient);
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #daecff99) drop-shadow(0 8px 14px #3167aa47);
  text-wrap: balance;
  background-position: 0%;
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  flex-shrink: 1;
  align-items:  center;
  gap: .36em;
  min-width: 0;
  margin: 2px 0 0;
  transition: transform .22s, filter .22s;
  font-size: 2.08rem;
  font-weight: 500;
  line-height: 1.04;
}

.editor__title-logo {
  display: block;
  background: var(--editor-title-gradient);
  -webkit-mask-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHht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MtMS4zMS0wLjc3LTEuNDItMS42NC0wLjA3LTIuNjVsNy40Ny01Ljk2bDY3LjUsMTguOTdMOTkuNjQsNy40NQoJCWM2LjY5LTUuNzksMTMuMTktOC4zOCwxOC4xOC03LjE1YzIuNzUsMC42OCwzLjcyLDEuNSw0LjU3LDQuMDhjMS42NSw1LjA2LTAuOTEsMTEuODYtNi45NiwxOC44Nkw5NC4xMSw0My4xOGwxOC45Nyw2Ny41CgkJbC01Ljk2LDcuNDdjLTEuMDEsMS4zNC0xLjg4LDEuMjMtMi42NS0wLjA3TDY5LjQzLDY2LjMxTDQ1LjQxLDg4LjQ4bDQuNSwyNi42MmMwLjI2LDAuOTQsMC4wNSwxLjgyLTAuNDcsMi42NmwtMy45LDQuNTcKCQljLTAuOTcsMC43OS0xLjgxLDAuODItMi40LTAuNTRsLTEzLjY0LTIxLjU3Yy00LjQzLDMuNzQtOC4zNyw2LjAzLTEyLjQyLDYuMDNDMTYuNzEsMTA2LjI0LDE2LjYzLDEwNi4xMSwxNi42MywxMDUuNzUKCQlMMTYuNjMsMTA1Ljc1eiIvPgo8L2c+Cjwvc3ZnPgo=");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transform-origin: center;
  filter: drop-shadow(0 1px 0 #daecff99) drop-shadow(0 8px 14px #3167aa47);
  background-position: 0%;
  background-size: 220% 220%;
  flex: none;
  width: .66em;
  height: .66em;
  transform: rotate(45deg);
}

.editor__title:before, .editor__title:after {
  content: attr(data-text);
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.editor__title:before {
  color: #7eb7f570;
  z-index: -1;
  animation: editor-title-depth 4.8s ease-in-out infinite;
  transform: translate(1px, 3px);
}

.editor__title:after {
  color: #d0eaff70;
  z-index: -2;
  filter: blur(6px);
  animation: editor-title-aura 6s ease-in-out infinite;
  transform: translate(-1px, -1px);
}

@keyframes editor-title-sheen {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 100%;
  }
}

@keyframes editor-title-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes editor-title-depth {
  0%, 100% {
    transform: translate(1px, 3px);
    opacity: .52;
  }

  50% {
    transform: translate(0, 2px);
    opacity: .72;
  }
}

@keyframes editor-title-aura {
  0%, 100% {
    transform: translate(-1px, -1px)scale(1);
    opacity: .48;
    filter: blur(6px);
  }

  50% {
    transform: translate(-1px, -2px)scale(1.01);
    opacity: .72;
    filter: blur(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor__title, .editor__title:before, .editor__title:after {
    animation: none;
  }
}

.editor__subtitle {
  color: var(--text-secondary);
  margin: 12px 0 0;
  font-size: .94rem;
  line-height: 1.4;
}

.editor__header-top {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
}

.editor__mobile-preview-toggle {
  display: none;
  margin-left: auto;
}

.editor__mobile-top-actions {
  display: none;
  align-items:  center;
  gap: 8px;
  margin-left: auto;
}

.editor__mobile-top-actions-label {
  white-space: nowrap;
}

.editor__mobile-export-toggle {
  display: none;
  cursor: pointer;
  color: var(--text-primary);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  height: 42px;
  padding: 6px 14px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 20px 40px #050f2080, inset 0 1px #ffffff29;
}

.editor__toolbar {
  display: flex;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  flex-shrink: 0;
  align-items:  center;
  gap: 4px;
  padding: 4px;
  box-shadow: 0 20px 40px #050f2080, inset 0 1px #ffffff29;
}

.editor__toolbar-button {
  color: var(--text-secondary);
  display: grid;
  cursor: pointer;
  background: none;
  border: 0;
  place-items:  center;
  padding: 4px;
  transition: color .14s;
}

.editor__toolbar-button--support {
  position: relative;
}

.editor__toolbar-button:hover {
  color: var(--text-primary);
}

.editor__toolbar-badge {
  position: absolute;
  display: inline-flex;
  color: #fff7f8;
  background: #ff5f6d;
  border-radius: 999px;
  justify-content: center;
  align-items:  center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  top: -2px;
  right: -2px;
  box-shadow: 0 4px 14px #ff5f6d5c;
}

.editor__add-city label {
  letter-spacing: .01em;
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 600;
}

.editor__add-city-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 10px;
}

.editor__opening-toggle {
  color: var(--text-secondary);
}

.editor__opening-toggle input {
  margin: 0;
}

.editor__opening-hint {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: .76rem;
}

.editor__route-label-wrap {
  display: inline-flex;
  align-items:  center;
  gap: 6px;
  min-width: 0;
}

.editor__info-trigger {
  display: grid;
  color: #e7f3ffe6;
  cursor: default;
  background: none;
  border: 0;
  border-radius: 0;
  place-items:  center;
  width: 14px;
  height: 14px;
  padding: 0;
}

.editor__info-trigger-icon {
  display: block;
  width: 11px;
  height: 11px;
}

.editor__info-content {
  color: #eef6fff2;
  z-index: calc(var(--floating-panel-z)  + 5);
  background: #081222f2;
  border: 1px solid #beddfc59;
  border-radius: 10px;
  width: min(280px, 72vw);
  padding: 8px 10px;
  font-size: .74rem;
  line-height: 1.35;
  box-shadow: 0 10px 26px #0207127a;
}

.editor__info-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.editor__remove-all-button {
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--text-primary);
  cursor: pointer;
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  padding: 6px 12px;
  transition: background .14s, color .14s;
  font-size: .74rem;
  font-weight: 500;
  box-shadow: 0 20px 40px #050f2080, inset 0 1px #ffffff29;
}

.editor__remove-all-button:enabled:hover {
  background-color: #ffffff14;
}

.editor__remove-all-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.editor__search-mode {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  margin-top: 8px;
}

.editor__search-mode-label {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: .8rem;
  font-weight: 600;
}

.editor__search-mode-cancel {
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--text-primary);
  cursor: pointer;
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 12px;
  flex: none;
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 500;
  box-shadow: 0 20px 40px #050f2080, inset 0 1px #ffffff29;
}

.editor__search-mode-cancel:hover {
  background-color: #ffffff14;
}

.editor__search-row {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-top: 8px;
}

.editor__search-trigger {
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .14s, opacity .14s;
}

.editor__search-trigger:hover {
  color: var(--text-primary);
  opacity: .92;
}

.editor__search-row input {
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #fff;
  outline: none;
  cursor: text;
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 6px 6px 6px 14px;
  transition: none;
  font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4375em;
}

.editor__search-row input::placeholder {
  color: #c8d9eead;
}

.editor__search-row input:focus-visible {
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
}

.editor__search-row input:hover {
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
}

.editor__search-row button {
  color: #041228;
  cursor: pointer;
  background: linear-gradient(145deg, #76b5f6f2 0%, #5a9ce0eb 100%);
  border: 1px solid #d4ebff57;
  border-radius: 14px;
  padding: 10px 18px;
  transition: transform .12s, filter .14s, box-shadow .14s;
  font-weight: 700;
}

.editor__search-row button:enabled:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.editor__search-row button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.editor__search-row button:disabled {
  opacity: .52;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.editor__search-hint {
  color: var(--text-muted);
  text-align: left;
  margin-top: 6px;
  padding-left: 28px;
  font-size: .8rem;
}

.editor__search-float, .editor__context-menu {
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  box-shadow: 0 20px 40px #050f2080, inset 0 1px #ffffff29;
}

.editor__search-float {
  display: grid;
  overflow-y: auto;
  z-index: calc(var(--floating-panel-z)  + 5);
  gap: 4px;
  padding: 8px;
}

.editor__search-group-label {
  display: flex;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  align-items:  center;
  gap: 4px;
  padding: 2px;
  font-size: .72rem;
  font-weight: 600;
}

.editor__search-group-label:before {
  content: "";
  mask-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KDTwhLS0gVXBsb2FkZWQgdG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tMC41LDAuNi0wLjEsMSwwLjQsMS41DQoJCQljNS40LDUuNywxMi44LDguOSwyMC44LDguOGMxNC40LTAuMiwyNi41LTExLjYsMjcuNS0yNkM3OS4xLDM1LjcsNjYuMSwyMiw1MCwyMnoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4=");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  background-color: currentColor;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.editor__search-option {
  color: var(--text-secondary);
  text-align: left;
  display: flex;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 12px;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 10px;
  transition: background .14s, color .14s;
  font-weight: 400;
}

.editor__search-option:hover, .editor__search-option--active {
  color: var(--text-primary);
  background: linear-gradient(135deg, #76b5f633 0%, #5a9ce01f 100%);
  box-shadow: inset 0 0 0 1px #d4ebff33;
}

.editor__search-option--active em {
  color: var(--text-secondary);
}

.editor__search-option em {
  color: var(--text-muted);
  margin-left: 8px;
  font-size: .8rem;
  font-style: normal;
  font-weight: 500;
}

.editor__search-empty {
  color: var(--text-muted);
  text-align: left;
  border-radius: 12px;
  padding: 12px 10px;
}

.editor__route-list {
  display: flex;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #aacbf066 transparent;
  flex-direction: column;
  flex: auto;
  gap: 12px;
  min-height: 0;
  padding-bottom: 10px;
}

.editor__route-list::-webkit-scrollbar {
  width: 8px;
}

.editor__route-list::-webkit-scrollbar-thumb {
  background: #a0c5eb66;
  border-radius: 999px;
}

.editor__route-stop {
  display: flex;
  touch-action: pan-y;
  align-self:  flex-start;
  align-items:  center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  transition: opacity .16s;
}

.editor__route-stop--dragging {
  opacity: 0;
  transition: none;
}

.editor__route-stop--selected .editor__stop-card {
  color: #fff;
  cursor: default;
  background-color: #28f;
}

.editor__route-stop {
  cursor: pointer;
}

.editor__stop-drag-handle {
  cursor: grab;
}

.editor__stop-drag-handle:active {
  cursor: grabbing;
}

.editor__stop-drag-handle:focus-visible {
  outline: none;
}

.editor__stop-drag-handle, .editor__stop-drag-handle .editor__stop-index, .editor__stop-drag-handle .editor__city-display {
  cursor: inherit;
}

.editor__route-stop--overlay .editor__stop-card {
  box-shadow: none;
}

.editor__route-stop--overlay {
  pointer-events: none;
}

.editor__stop-card {
  display: inline-flex;
  outline: none;
  user-select: none;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  align-items:  center;
  gap: 12px;
  min-width: 100px;
  max-width: 480px;
  min-height: 40px;
  padding: 8px 16px;
  font-weight: 600;
  box-shadow: 0 4px 9px #050f2080, inset 0 1px #ffffff29;
}

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

.editor__stop-index {
  color: var(--text-secondary);
  width: var(--editor-icon-width);
  text-align: center;
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 400;
}

.editor__stop-info h3 {
  color: var(--text-primary);
  min-width: 0;
  margin: 0;
  font-size: .99rem;
  font-weight: 500;
}

.editor__city-display {
  display: inline-flex;
  align-items:  center;
  gap: 8px;
  font-weight: 500;
}

.editor__city-country {
  display: inline-flex;
  align-items:  center;
  line-height: 1;
}

.editor__city-country-emoji {
  font-family: TripEmoji, Space Grotesk, Segoe UI Emoji, Apple Color Emoji, Noto Color Emoji, sans-serif;
  font-size: 1.12em;
}

.editor__stop-menu-trigger {
  color: var(--text-secondary);
  display: inline-flex;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  min-width: 0;
  padding: 8px;
  transition: background-color .15s cubic-bezier(.4,0,.2,1), color .14s;
  line-height: 0;
}

.editor__stop-menu-trigger svg {
  display: block;
  width: 22px;
  height: 22px;
  transform: rotate(90deg);
}

.editor__stop-menu-trigger:enabled:hover {
  color: var(--text-primary);
  background-color: #ffffff14;
}

.editor__context-menu {
  display: grid;
  z-index: calc(var(--floating-panel-z)  + 6);
  border: none;
  border-radius: 12px;
  gap: 4px;
  min-width: 150px;
  padding: 6px;
}

.editor__context-menu button {
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 9px;
  align-items:  center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 400;
}

.editor__context-menu button:enabled:hover {
  color: var(--text-primary);
  background: #669edf3d;
}

.editor__context-menu button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.editor__leg-row {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 10px;
}

.editor__model-trigger {
  margin-left: calc(var(--editor-icon-width)  + 8px);
  display: inline-flex;
  cursor: pointer;
  background: #ffffff14;
  border: 0;
  border-radius: 14px;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 6px 10px;
  transition: background-color .15s cubic-bezier(.4,0,.2,1);
}

.editor__model-trigger:hover {
  background-color: #ffffff29;
}

.editor__model-trigger-label {
  color: var(--text-primary);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1;
}

.editor__model-menu {
  z-index: calc(var(--floating-panel-z)  + 12);
  overflow: hidden;
  border-radius: 12px;
}

.editor__model-menu-scroll {
  overflow: auto;
  max-height: min(70vh, 520px);
  padding: 12px;
}

.editor__model-menu-scroll::-webkit-scrollbar {
  width: 10px;
}

.editor__model-menu-scroll::-webkit-scrollbar-track {
  background: none;
  border-radius: 12px;
}

.editor__model-menu-scroll::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border: 2px solid #0000;
  border-radius: 12px;
}

.editor__model-menu-scroll::-webkit-scrollbar-thumb:hover {
  background: #ffffff2e;
}

.editor__model-group {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
}

.editor__model-group-label {
  color: #ffffff73;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 4px;
  font-size: .68rem;
  font-weight: 500;
}

.editor__model-group-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.editor__context-menu .editor__model-menu-item {
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 10px;
  flex-direction: column;
  align-items:  center;
  gap: 6px;
  padding: 8px;
  transition: background-color .14s, color .14s;
  font-size: .78rem;
  font-weight: 500;
}

.editor__context-menu .editor__model-menu-item:hover {
  color: var(--text-primary);
  background-color: #ffffff14;
}

.editor__context-menu .editor__model-menu-item--active {
  background-color: #2288ff26;
}

.editor__model-canvas {
  display: block;
  border-radius: 8px;
}

.editor__model-preview {
  display: inline-grid;
  place-items:  center;
  width: 22px;
  height: 22px;
  font-family: TripEmoji, Space Grotesk, Segoe UI Emoji, Apple Color Emoji, Noto Color Emoji, sans-serif;
  font-size: 1.1rem;
  line-height: 1;
}

.editor__model-label {
  white-space: nowrap;
  line-height: 1.1;
}

.editor__empty-state {
  border-radius: var(--radius-card);
  color: var(--text-secondary);
  background: #0c1c325c;
  border: 1px dashed #d5e8fc40;
  padding: 16px;
  font-size: .9rem;
}

.settings {
  display: grid;
  border-radius: var(--radius-card);
  gap: 0;
  padding: 12px;
}

.settings__eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #cde0f5bd;
  margin: 0;
  transition: color .14s;
  font-size: .66rem;
}

.settings__controls {
  display: grid;
  gap: 8px;
}

.settings__collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows .22s, opacity .18s, margin-top .22s;
}

.settings__collapsible--expanded {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

.settings__collapsible-inner {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.settings__collapsible-inner--scroll {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aacbf066 transparent;
  max-height: min(44vh, 360px);
  padding-right: 2px;
}

.settings__collapsible-inner--scroll::-webkit-scrollbar {
  width: 8px;
}

.settings__collapsible-inner--scroll::-webkit-scrollbar-thumb {
  background: #a0c5eb66;
  border-radius: 999px;
}

.settings__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
}

.settings__header--interactive {
  cursor: pointer;
  user-select: none;
  color: inherit;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  width: 100%;
  padding: 0;
}

.settings__header--interactive:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.settings__collapse-icon {
  display: inline-grid;
  color: var(--text-secondary);
  cursor: pointer;
  place-items:  center;
  width: 14px;
  height: 14px;
  transition: color .14s;
}

.settings__header--interactive:hover .settings__collapse-icon, .settings__header--interactive:hover .settings__eyebrow {
  color: var(--text-primary);
}

.settings__header--interactive:focus-visible .settings__eyebrow {
  color: var(--text-primary);
}

.settings__collapse-triangle {
  transform-origin: 30% 50%;
  border-top: 4px solid #0000;
  border-bottom: 4px solid #0000;
  border-left: 6px solid;
  width: 0;
  height: 0;
  transition: transform .14s;
}

.settings__collapse-triangle--expanded {
  transform: rotate(90deg);
}

.settings__checkbox, .render-dialog__checkbox {
  display: inline-flex;
  color: var(--text-secondary);
  align-items:  center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
}

.settings__devmode-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings__field {
  display: grid;
  gap: 6px;
}

.settings__field > span, .settings__label {
  color: var(--text-muted);
  font-size: .79rem;
}

.settings__unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.settings__texture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items:  start;
  gap: 6px;
}

.settings__unit-card, .settings__preset-card {
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  background: #0d1f377a;
  border: 1px solid #d6ecff3d;
  border-radius: 12px;
  padding: 9px 11px;
  transition: border-color .14s, background .14s, color .14s;
  font-weight: 600;
}

.settings__unit-card:hover, .settings__preset-card:hover {
  color: var(--text-primary);
  background: #12264299;
  border-color: #c7e1ff75;
}

.settings__unit-card--active {
  color: #f2fafff5;
  background: #64a4e440;
  border-color: #a7dcffc7;
  box-shadow: inset 0 0 0 1px #b7e3ff57;
}

.settings__texture-card {
  color: var(--text-secondary);
  text-align: left;
  display: grid;
  overflow: hidden;
  cursor: pointer;
  background: #0d1f377a;
  border: 1px solid #d6ecff3d;
  border-radius: 10px;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 7px;
  transition: border-color .14s, background .14s, color .14s, transform .14s;
}

.settings__texture-card:hover {
  color: var(--text-primary);
  background: #12264299;
  border-color: #c7e1ff75;
  transform: translateY(-1px);
}

.settings__texture-card--active {
  color: #f2fafff5;
  background: #64a4e440;
  border-color: #a7dcffc7;
  box-shadow: inset 0 0 0 1px #b7e3ff57;
}

.settings__texture-card--locked, .settings__texture-card:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
}

.settings__texture-preview {
  display: block;
  aspect-ratio: 2.1;
  background-color: #091323a8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #d6ecff29;
  border-radius: 8px;
  width: 100%;
  box-shadow: inset 0 1px #ffffff1a, inset 0 -32px 48px #0308123d;
}

.settings__texture-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items:  flex-start;
  gap: 6px;
  min-width: 0;
}

.settings__texture-name {
  color: #f3fafff5;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
}

.settings__texture-badge {
  flex: none;
  align-self:  start;
}

@media (max-width: 360px) {
  .settings__texture-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings__preset-picker, .settings__preset-grid {
  display: grid;
  gap: 8px;
}

.settings__text-link {
  color: #bce1ffe6;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  justify-self: start;
  padding: 0;
  transition: color .14s;
  font-size: .82rem;
  font-weight: 600;
}

.settings__text-link:hover {
  color: #e7f5fffa;
}

.settings__textarea {
  resize: none;
  overflow: hidden;
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: #fff;
  outline: none;
  cursor: text;
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  min-height: 40px;
  padding: 6px 6px 6px 14px;
  transition: none;
  font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4375em;
}

.settings__textarea::placeholder {
  color: #c8d9eead;
}

.settings__textarea:focus-visible {
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
}

.ai-trip-builder__row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.ai-trip-builder__prompt {
  flex: 1;
  min-width: 0;
}

.ai-trip-builder__generate {
  display: grid;
  text-align: center;
  place-items:  center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.settings__preset-card--full {
  text-align: center;
  width: 100%;
}

.settings__preset-card:disabled {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
}

.settings__toast {
  position: fixed;
  top: calc(env(safe-area-inset-top)  + 12px);
  z-index: calc(var(--floating-panel-z)  + 20);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  animation: settings-toast-in .16s ease-out;
  border: 1px solid #d6ecff47;
  border-radius: 12px;
  width: auto;
  max-width: calc(100vw - 24px);
  padding: 10px 12px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  left: 50%;
  transform: translateX(-50%);
}

.settings__toast--success {
  color: #d9f9e7f5;
  background: #184a3ab8;
  border-color: #96e1bf73;
}

.settings__toast--error {
  color: #ffd8dff7;
  background: #5a1f29bd;
  border-color: #ffb0be75;
}

@keyframes settings-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%);
  }
}

.sidebar__backdrop {
  position: fixed;
  z-index: calc(var(--floating-panel-z)  + 20);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  background: #070f1d7a;
  transition: opacity .18s;
  inset: 0;
}

.sidebar__backdrop--visible {
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: var(--shell-top);
  right: var(--shell-left);
  height: var(--shell-height);
  z-index: calc(var(--floating-panel-z)  + 21);
  border-radius: var(--radius-panel);
  border: 1px solid var(--glass-border);
  background: var(--glass-panel-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  display: flex;
  color: var(--text-primary);
  overflow: hidden;
  opacity: 0;
  flex-direction: column;
  width: 50%;
  transition: transform .18s, opacity .18s;
  transform: translateX(24px);
}

.sidebar--visible {
  opacity: 1;
  transform: translateX(0);
}

.sidebar__header {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  padding: 18px 18px 0;
}

.sidebar__title {
  color: #f5fbfffa;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0;
  font-size: .72rem;
  font-weight: 500;
}

.sidebar__brand-title {
  letter-spacing: -.04em;
  text-transform: none;
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.04;
}

.sidebar__close {
  color: #f1f8fff2;
  cursor: pointer;
  display: grid;
  background: #11264085;
  border: 1px solid #d6ebff3d;
  border-radius: 8px;
  place-items:  center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: border-color .14s, background .14s;
}

.sidebar__close:hover {
  background: #1a3454a3;
  border-color: #c8e3ff70;
}

.sidebar__body {
  overflow-y: auto;
  display: grid;
  scrollbar-width: thin;
  scrollbar-color: #aacbf066 transparent;
  flex: auto;
  align-content:  start;
  gap: 12px;
  min-height: 0;
  padding: 16px 18px 18px;
}

.sidebar__body::-webkit-scrollbar {
  width: 8px;
}

.sidebar__body::-webkit-scrollbar-thumb {
  background: #a0c5eb66;
  border-radius: 999px;
}

.sidebar__body--support {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-content: stretch;
}

.my-animations {
  display: grid;
  gap: 12px;
}

.support-panel {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: 12px;
  min-height: 0;
}

.support-panel__status {
  display: grid;
  gap: 4px;
}

.support-panel__subtitle, .support-panel__meta, .support-panel__loading, .support-panel__error, .support-panel__composer-hint {
  margin: 0;
}

.support-panel__subtitle {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.45;
}

.support-panel__meta, .support-panel__composer-hint {
  color: var(--text-muted);
  font-size: .77rem;
}

.support-panel__loading {
  color: var(--text-muted);
  font-size: .84rem;
}

.support-panel__error {
  color: #ffc4ccf5;
  font-size: .84rem;
}

.support-panel__messages {
  display: grid;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aacbf066 transparent;
  background: #0a182b66;
  border: 1px solid #d6ecff29;
  border-radius: 16px;
  flex: auto;
  align-content:  start;
  gap: 10px;
  min-height: 0;
  padding: 10px;
}

.support-panel__messages::-webkit-scrollbar {
  width: 8px;
}

.support-panel__messages::-webkit-scrollbar-thumb {
  background: #a0c5eb66;
  border-radius: 999px;
}

.support-panel__empty {
  color: var(--text-muted);
  text-align: center;
  background: #0e1f3561;
  border-radius: 14px;
  padding: 18px 14px;
  font-size: .86rem;
  line-height: 1.45;
}

.support-panel__message {
  display: grid;
  border: 1px solid #d6ecff24;
  border-radius: 16px;
  gap: 6px;
  max-width: min(86%, 520px);
  padding: 10px 12px;
  box-shadow: inset 0 1px #ffffff0a;
}

.support-panel__message--user {
  background: linear-gradient(145deg, #6cb6ff3d 0%, #4c91df2e 100%);
  justify-self: end;
}

.support-panel__message--admin {
  background: #1226429e;
  justify-self: start;
}

.support-panel__message-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.support-panel__message-author {
  color: #f5fbfff0;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
}

.support-panel__message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.support-panel__composer {
  display: grid;
  flex-shrink: 0;
  gap: 10px;
}

.support-panel__textarea {
  min-height: 88px;
}

.support-panel__composer-actions {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  gap: 10px;
}

.support-panel__send {
  text-align: center;
  justify-self: end;
  min-width: 108px;
}

.my-animations__section {
  display: grid;
  gap: 4px;
}

.my-animations__heading {
  color: #f5fbfffa;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 500;
}

.my-animations__account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.my-animations__action-button {
  color: var(--text-secondary);
  cursor: pointer;
  background: #0d1f3780;
  border: 1px solid #d3e9ff47;
  border-radius: 12px;
  padding: 9px 16px;
  transition: border-color .14s, background .14s, color .14s;
  font-size: .88rem;
}

.my-animations__action-button:hover:not(:disabled) {
  color: #f5fbfff7;
  background: #132844a8;
  border-color: #c2dfff75;
}

.my-animations__action-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.my-animations__status {
  color: var(--text-secondary);
  margin: 0;
  font-size: .92rem;
}

.my-animations__error {
  color: #f87171;
  margin: 0;
  font-size: .9rem;
}

.my-animations__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.my-animations__item {
  display: grid;
  background: #0d1f376b;
  border: 1px solid #d6ecff33;
  border-radius: 12px;
  gap: 6px;
  padding: 10px;
}

.my-animations__item-head {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 10px;
}

.my-animations__item-head-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.my-animations__item-title {
  color: #f1f8fff7;
  display: flex;
  align-items:  center;
  gap: 8px;
  margin: 0;
  font-size: .98rem;
  font-weight: 620;
}

.my-animations__route-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
}

.my-animations__route-arrow {
  opacity: .9;
  flex: none;
}

.my-animations__meta {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.my-animations__item-links {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
}

.my-animations__link {
  color: #a0cdffeb;
  text-decoration: none;
  transition: color .14s;
  font-size: .88rem;
}

.my-animations__link:hover {
  color: #c8e4fffa;
}

.viewport {
  position: fixed;
  display: grid;
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #0e2242 0%, #050b17 52%, #02050b 100%), #02050b;
  place-items:  center;
  inset: 0;
}

.viewport--with-zoom-chart {
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: initial;
  place-items: stretch center;
  row-gap: 24px;
  padding-bottom: 112px;
}

.viewport:before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, #fffffff2 0 1px, #0000 1.4px) 8% 12% / 220px 220px, radial-gradient(circle, #c1deffc7 0 1px, #0000 1.5px) 74% 28% / 260px 260px, radial-gradient(circle, #fff4d6b8 0 1.2px, #0000 1.8px) 28% 72% / 320px 320px, radial-gradient(circle at 20% 18%, #6292da2e, #0000 46%), radial-gradient(circle at 80% 84%, #5876c424, #0000 44%);
  inset: 0;
}

.viewport__stage {
  position: relative;
  z-index: 1;
}

.viewport--with-zoom-chart .viewport__stage {
  align-self:  center;
}

.viewport__stage--booting {
  pointer-events: none;
}

.viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity .22s;
}

.viewport .globe-label-overlay {
  transition: opacity .22s;
}

.viewport__stage--booting canvas, .viewport__stage--booting .globe-label-overlay {
  opacity: 0;
}

.viewport__stage--ready canvas, .viewport__stage--ready .globe-label-overlay {
  opacity: 1;
}

.viewport__boot-cover {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: grid;
  background: #0c121f;
  place-items:  center;
  inset: 0;
}

.viewport__boot-card {
  display: inline-flex;
  color: #ecf6ffe6;
  letter-spacing: .01em;
  backdrop-filter: blur(8px) saturate(135%);
  background: #0e223c8c;
  border: 1px solid #d6eaff38;
  border-radius: 999px;
  align-items:  center;
  gap: 10px;
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
}

.viewport__boot-spinner {
  animation: viewport-boot-spin .76s linear infinite;
  border: 2px solid #cae2ff3d;
  border-top-color: #deeffff2;
  border-radius: 50%;
  width: 13px;
  height: 13px;
}

@keyframes viewport-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.viewport__overlay {
  position: fixed;
  color: var(--text-primary);
  z-index: calc(var(--floating-panel-z)  + 2);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: .75rem;
  top: 24px;
  right: 24px;
}

.viewport__overlay p {
  margin: 0 0 2px;
  font-weight: 600;
}

.viewport__overlay span {
  color: var(--text-muted);
}

.viewport__overlay--camera {
  pointer-events: auto;
  -apple-visual-effect: -apple-system-glass-material-media-controls;
  min-width: 240px;
}

.viewport__overlay--camera code {
  display: block;
  color: #ecf5fff2;
  font-family: IBM Plex Mono, Consolas, Courier New, monospace;
  font-size: .72rem;
  line-height: 1.45;
}

.viewport__overlay-actions {
  display: flex;
  align-items:  center;
  gap: 10px;
  margin-top: 8px;
}

.viewport__overlay-actions button {
  color: #f1f8fff2;
  cursor: pointer;
  background: #4281c447;
  border: 1px solid #dcedff42;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: .68rem;
  line-height: 1;
}

.viewport__overlay-actions span {
  color: #d0e2f6cc;
  min-height: 1em;
  font-size: .68rem;
}

.viewport__telemetry-toggle {
  position: fixed;
  z-index: calc(var(--floating-panel-z)  + 2);
  pointer-events: auto;
  color: #f1f8fff2;
  cursor: pointer;
  background: #1b3b618a;
  border: 1px solid #ddeeff47;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: .68rem;
  line-height: 1;
  top: 24px;
  right: 24px;
}

.viewport__zoom-chart {
  position: relative;
  margin-left: calc(var(--shell-left)  + var(--editor-panel-width)  + 24px);
  margin-right: calc(100vw - (var(--shell-left)  + var(--shell-width))  + 24px);
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-card-bg);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  -apple-visual-effect: -apple-system-glass-material;
  border-radius: 14px;
  justify-self: stretch;
  height: 220px;
}

.viewport__zoom-chart-plot {
  width: 100%;
  height: 100%;
}

.viewport__zoom-chart--error {
  display: grid;
  color: #e9f2fee6;
  place-items:  center;
  font-size: .78rem;
  font-weight: 600;
}

.viewport__tuning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  padding-top: 8px;
}

.viewport__tuning p {
  grid-column: 1 / -1;
}

.viewport__tuning label {
  display: flex;
  color: #d6e8fbe6;
  justify-content: space-between;
  align-items:  center;
  gap: 6px;
  font-size: .67rem;
}

.viewport__tuning input[type="number"], .viewport__tuning select {
  color: #eff8fff2;
  background: #0e223b94;
  border: 1px solid #d6e9fe40;
  border-radius: 7px;
  padding: 4px 5px;
  font-size: .66rem;
  line-height: 1.2;
}

.viewport__tuning input[type="number"] {
  width: 56px;
}

.viewport__tuning select {
  width: 96px;
}

.controls {
  display: grid;
  position: fixed;
  left: calc(var(--shell-left)  + var(--editor-panel-width));
  right: calc(100vw - (var(--shell-left)  + var(--shell-width)));
  bottom: calc(100vh - (var(--shell-top)  + var(--shell-height)));
  z-index: var(--floating-panel-z);
  gap: 16px;
  padding-left: 24px;
}

.controls__row {
  display: flex;
  flex-wrap: wrap;
  align-items:  flex-end;
  gap: 10px;
}

.controls__button {
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(156deg, #f5fbff26 0%, #afcbec1c 45%, #5f83b02e 100%);
  border: 1px solid #deeeff57;
  border-radius: 14px;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  padding: 10px 18px;
  transition: border-color .14s, background .14s, color .14s, filter .14s;
  font-weight: 650;
  box-shadow: 0 20px 40px #050f2080, inset 0 1px #ffffff29;
}

.controls__button:not(:disabled):hover {
  background-color: #ffffff14;
}

.controls__button:disabled {
  opacity: .46;
  cursor: not-allowed;
}

.controls__button--primary {
  border-color: #cce8ffb3;
}

.controls__button--primary:not(:disabled):hover {
  border-color: #dbeeffe6;
}

.controls__status {
  display: none;
  text-align: right;
  border-radius: 14px;
  justify-items: end;
  gap: 4px;
  margin-left: auto;
  padding: 10px 14px;
}

.controls__message {
  color: #f3f9fffa;
  margin: 0;
  font-size: 1rem;
}

.controls__leg-info {
  color: var(--text-secondary);
  margin: 0;
}

.controls__route-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
}

.controls__route-arrow {
  opacity: .9;
  flex: none;
}

.controls__warning, .render-dialog__error {
  color: var(--accent-warm);
  margin: 0;
  font-size: .92rem;
}

.render-dialog__backdrop {
  position: fixed;
  display: grid;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  z-index: 50;
  background: #070f1d94;
  place-items:  center;
  inset: 0;
}

.render-dialog--attribution {
  width: min(700px, 100vw - 32px);
  max-height: min(82vh, 760px);
}

.render-dialog--offer {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  width: min(760px, 100vw - 32px);
  max-height: min(84vh, 860px);
}

.render-dialog--my-animations, .render-dialog--account-transfer {
  width: min(760px, 100vw - 32px);
  max-height: min(84vh, 860px);
}

.render-dialog--pro-comparison {
  width: min(680px, 100vw - 32px);
  max-height: min(84vh, 860px);
}

.render-dialog__offer-content {
  display: grid;
  overflow: auto;
  gap: 12px;
  min-height: 0;
  padding-right: 4px;
}

.render-dialog__offer-section {
  display: grid;
  gap: 8px;
}

.render-dialog__offer-section h4 {
  color: #f1f8fff5;
  margin: 0;
  font-size: 1rem;
  font-weight: 620;
}

.render-dialog__offer-section p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
}

.render-dialog__offer-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.render-dialog__offer-list li {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.4;
}

.render-dialog__pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.render-dialog__pricing-option {
  color: var(--text-secondary);
  text-align: center;
  display: grid;
  cursor: pointer;
  background: #0e203880;
  border: 1px solid #d6ecff38;
  border-radius: 12px;
  align-content:  start;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  transition: border-color .14s, background .14s, color .14s;
  font-size: .92rem;
  font-weight: 600;
}

.render-dialog__pricing-option:hover:not(.render-dialog__pricing-option--active) {
  color: #ebf5ffe6;
  background: #10233c8f;
  border-color: #c2dfff66;
}

.render-dialog__pricing-option--active {
  color: #f3fafff5;
  background: #64a6e840;
  border-color: #a9dcffc7;
}

.render-dialog__pricing-option:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.render-dialog__pricing-option-count {
  color: #f4fbfff5;
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.2;
}

.render-dialog__pricing-option-price {
  color: var(--text-secondary);
  font-size: 1.32rem;
  font-weight: 560;
  line-height: 1.2;
}

.render-dialog__pricing-recommend-badge {
  color: #4a1e08;
  letter-spacing: .02em;
  background: linear-gradient(145deg, #ffc67ef0 0%, #ff9d6ef0 100%);
  border: 1px solid #ffdda48c;
  border-radius: 999px;
  justify-self: center;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .render-dialog__pricing-grid {
    grid-template-columns: 1fr;
  }
}

.render-dialog__offer-consent {
  display: grid;
  gap: 6px;
}

.render-dialog__offer-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.render-dialog__offer-consent-link {
  color: #bce1ffe6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  justify-self: start;
  padding: 0;
  transition: color .14s;
  font-size: .88rem;
  font-weight: 600;
}

.render-dialog__offer-consent-link:hover {
  color: #e7f5fffa;
}

.render-dialog__offer-consent-link:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.render-dialog__offer-list--definitions {
  list-style: none;
  gap: 8px;
  padding-left: 0;
}

.render-dialog__offer-list--definitions li strong {
  color: #f1f8fff5;
}

.render-dialog__my-animations-list {
  list-style: none;
  display: grid;
  overflow: auto;
  gap: 10px;
  max-height: min(54vh, 520px);
  margin: 0;
  padding: 0;
}

.render-dialog__my-animations-account {
  display: grid;
  background: #0d1f376b;
  border: 1px solid #d6ecff33;
  border-radius: 12px;
  gap: 4px;
  padding: 10px;
}

.render-dialog__my-animations-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.render-dialog__my-animation-item {
  display: grid;
  background: #0d1f376b;
  border: 1px solid #d6ecff33;
  border-radius: 12px;
  gap: 6px;
  padding: 10px;
}

.render-dialog__my-animation-head {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 10px;
}

.render-dialog__my-animation-head-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.render-dialog__my-animation-title {
  color: #f1f8fff7;
  display: flex;
  align-items:  center;
  gap: 8px;
  margin: 0;
  font-size: .98rem;
  font-weight: 620;
}

.render-dialog__route-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 6px;
}

.render-dialog__route-arrow {
  opacity: .9;
  flex: none;
}

.render-dialog__my-animation-meta {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.render-dialog__my-animation-links {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
}

.render-dialog__warning-text {
  color: #ffdab5f5;
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
}

.render-dialog__account-transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.render-dialog__account-transfer-card {
  display: grid;
  background: #0d1f376b;
  border: 1px solid #d6ecff33;
  border-radius: 12px;
  gap: 4px;
  padding: 10px;
}

.render-dialog__account-transfer-card h4 {
  color: #f1f8fff5;
  margin: 0 0 2px;
  font-size: .94rem;
  font-weight: 620;
}

.render-dialog__attribution-list {
  list-style: none;
  display: grid;
  overflow: auto;
  gap: 10px;
  max-height: min(56vh, 500px);
  margin: 0;
  padding: 0;
}

.render-dialog__attribution-item {
  display: grid;
  background: #0d1f376b;
  border: 1px solid #d6ecff33;
  border-radius: 12px;
  gap: 4px;
  padding: 10px;
}

.render-dialog__attribution-item strong {
  color: #f1f8fff5;
  font-size: .94rem;
  font-weight: 600;
}

.render-dialog__attribution-item p {
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
}

.render-dialog {
  display: grid;
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  gap: 12px;
  width: min(540px, 100vw - 32px);
  padding: 18px;
}

.render-dialog.render-dialog--sidebar {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  padding: 0;
}

.sidebar .render-dialog.render-dialog--sidebar {
  box-shadow: none;
  background: none;
  border: 0;
}

.render-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.render-dialog__header h3 {
  color: #f5fbfffa;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 500;
}

.render-dialog--offer .render-dialog__header {
  align-items:  flex-start;
  gap: 12px;
}

.render-dialog--offer .render-dialog__header h3 {
  display: grid;
  gap: 2px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.render-dialog__offer-title-sub {
  color: var(--text-muted);
  text-transform: none;
  font-size: .84rem;
  font-weight: 500;
}

.render-dialog__close {
  color: #f1f8fff2;
  cursor: pointer;
  display: grid;
  background: #11264085;
  border: 1px solid #d6ebff3d;
  border-radius: 10px;
  place-items:  center;
  width: 32px;
  height: 32px;
  font-size: 0;
}

.render-dialog__subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: .96rem;
}

.render-dialog__success {
  color: #b5f5d2f7;
  margin: 0;
  font-size: .94rem;
  line-height: 1.45;
}

.render-dialog__promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items:  center;
  gap: 10px;
}

.render-dialog__promo-input {
  color: #f4fbfff7;
  text-transform: uppercase;
  background: #0e203880;
  border: 1px solid #d6ecff38;
  border-radius: 12px;
  min-width: 0;
  padding: 10px 12px;
  font-size: .95rem;
  font-weight: 600;
}

.render-dialog__promo-input::placeholder {
  color: var(--text-muted);
  text-transform: none;
}

.render-dialog__inline-link {
  color: #bce1ffeb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  justify-self: start;
  padding: 0;
  font-size: .92rem;
  font-weight: 600;
}

.render-dialog__inline-link:hover {
  color: #e7f5fffa;
}

.render-dialog__checkbox {
  font-size: .96rem;
}

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

.render-dialog__aspect-card {
  color: var(--text-secondary);
  text-align: left;
  display: grid;
  cursor: pointer;
  background: #0e203880;
  border: 1px solid #d6ecff38;
  border-radius: 12px;
  gap: 4px;
  min-height: 70px;
  padding: 10px 12px;
  transition: border-color .14s, background .14s, color .14s;
  font-size: .92rem;
  font-weight: 600;
}

.render-dialog__mode-option {
  position: relative;
}

.render-dialog__mode-option > .render-dialog__aspect-card {
  width: 100%;
}

.render-dialog__pro-badge {
  position: absolute;
  z-index: 1;
  color: #4a1e08;
  letter-spacing: .02em;
  text-transform: uppercase;
  transform-origin: center;
  cursor: pointer;
  background: linear-gradient(145deg, #ffc17af2 0%, #ff9c6af2 100%);
  border: 1px solid #ffd2a280;
  border-radius: 999px;
  min-width: 48px;
  padding: 1px 7px;
  font-size: .62rem;
  font-weight: 700;
  top: 0;
  right: 0;
  transform: translate(30%, -8%)rotate(45deg);
}

.render-dialog__aspect-card span {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
}

.render-dialog__aspect-card:hover {
  color: #f5fbfff5;
  background: #132742a3;
  border-color: #c5e0ff75;
}

.render-dialog__aspect-card--active {
  color: #f3fafff5;
  background: #64a6e840;
  border-color: #a9dcffc7;
}

.render-dialog__fps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.render-dialog__comparison-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #d6ecff38;
  border-radius: 12px;
  gap: 0;
}

.render-dialog__comparison-head, .render-dialog__comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
}

.render-dialog__comparison-head {
  color: #f4fbfffa;
  background: #11253fb3;
  font-size: .9rem;
  font-weight: 650;
}

.render-dialog__comparison-row {
  color: var(--text-secondary);
  background: #0c1e3670;
  border-top: 1px solid #d6ecff29;
  font-size: .9rem;
}

.render-dialog--pro-comparison .render-dialog__comparison-table {
  min-height: 0;
}

.render-dialog__actions {
  display: flex;
  justify-content: flex-end;
}

.render-dialog--pro-comparison .render-dialog__actions {
  justify-content: flex-start;
}

.render-dialog--account-transfer .render-dialog__actions {
  gap: 8px;
}

.render-dialog--pro-comparison .render-dialog__action-button {
  width: 100%;
}

.render-dialog__action-button {
  color: var(--text-secondary);
  cursor: pointer;
  background: #0d1f3780;
  border: 1px solid #d3e9ff47;
  border-radius: 12px;
  padding: 9px 16px;
  transition: border-color .14s, background .14s, color .14s, filter .14s;
  font-size: .96rem;
  font-weight: 650;
}

.render-dialog__action-button:hover:not(:disabled):not(.render-dialog__action-button--primary) {
  color: #f5fbfff7;
  background: #132844a8;
  border-color: #c2dfff75;
}

.render-dialog__action-button--primary {
  color: #062140;
  background: linear-gradient(145deg, #82c2fff2 0%, #60a6ecf0 100%);
  border-color: #cce7ff70;
}

.render-dialog__action-button--buy {
  font-size: 1.08rem;
}

.render-dialog__action-button--primary:hover:not(:disabled) {
  filter: brightness(1.02);
  border-color: #dbeeff8f;
}

.render-dialog__action-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.render-dialog__progress {
  display: grid;
  gap: 8px;
}

.render-dialog__progress-label {
  display: flex;
  color: var(--text-secondary);
  justify-content: space-between;
  font-size: .92rem;
}

.render-dialog__progress-bar {
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #cee2f82e;
  height: 10px;
}

.render-dialog__progress-bar > div {
  border-radius: inherit;
  background: linear-gradient(90deg, #93cffff5 0%, #67b1f9f5 100%);
  height: 100%;
  transition: width .3s;
}

.render-dialog__result {
  display: grid;
  gap: 10px;
}

.render-dialog__preview {
  background: #000;
  border: 1px solid #d4e9ff3d;
  border-radius: 12px;
  width: 100%;
}

.render-dialog__result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
}

.render-dialog__link, .render-dialog__download {
  color: #d8edffeb;
  text-decoration: none;
  font-size: .92rem;
}

.render-dialog__download {
  background: #0f233d7a;
  border: 1px solid #d6ecff3d;
  border-radius: 10px;
  padding: 6px 10px;
}

button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 1024px) {
  html, body {
    overflow: hidden;
    overscroll-behavior: none;
    width: 100%;
    height: 100%;
  }

  .app--mobile, .app--mobile * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .app--mobile input, .app--mobile textarea, .app--mobile select, .app--mobile [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
  }

  .app--mobile input, .app--mobile textarea, .app--mobile select {
    font-size: 16px;
  }

  .app--mobile {
    display: block;
    width: 100vw;
    height: 100dvh;
  }

  .app--mobile .app__viewport {
    display: grid;
    position: fixed;
    z-index: 0;
    min-height: 100dvh;
    inset: 0;
  }

  .app--mobile .editor {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    background: none;
    border-right: none;
    border-radius: 0;
    width: 100vw;
    height: 100dvh;
    padding: 18px 16px;
    top: 0;
    left: 0;
  }

  .app--mobile .editor:before, .app--mobile.app--mobile-preview .editor, .app--mobile .controls, .app--mobile .viewport__overlay, .app--mobile .globe-label-overlay {
    display: none;
  }

  .app--mobile.app--mobile-preview .controls, .app--mobile.app--mobile-preview .viewport__overlay, .app--mobile.app--mobile-preview .globe-label-overlay {
    display: revert;
  }

  .app--mobile .editor__title {
    font-size: 1.74rem;
  }

  .app--mobile .editor, .app--mobile .settings, .app--mobile .controls__status, .app--mobile .viewport__overlay--camera {
    border: none;
  }

  .app--mobile .controls {
    padding: 12px 12px calc(env(safe-area-inset-bottom)  + 12px);
    bottom: 0;
    left: 0;
    right: 0;
  }

  .app--mobile .controls__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .app--mobile .controls__button {
    border-radius: 12px;
    width: 100%;
    padding: 10px 12px;
  }

  .app--mobile .controls__button--render {
    grid-column: 1 / -1;
  }

  .app--mobile .controls__status {
    display: none;
    grid-column: 1 / -1;
    text-align: left;
    border-radius: 12px;
    justify-items: start;
    margin-left: 0;
  }

  .app--mobile .controls__message {
    font-size: .94rem;
  }

  .app--mobile .viewport__overlay {
    top: calc(env(safe-area-inset-top)  + 56px);
    left: 12px;
    right: 12px;
  }

  .app--mobile .viewport__overlay--camera {
    min-width: 0;
  }

  .app--mobile .viewport__tuning {
    grid-template-columns: 1fr;
  }

  .app--mobile .viewport__zoom-chart {
    display: none;
  }

  .app--mobile .viewport--with-zoom-chart {
    grid-template-rows: minmax(0, 1fr);
    place-items:  center;
    row-gap: 0;
    padding-bottom: 0;
  }

  .app--mobile .settings__collapsible-inner--scroll {
    max-height: min(46dvh, 300px);
  }

  .app--mobile .app__mobile-preview-toggle, .app--mobile .app__mobile-editor-toggle {
    position: fixed;
    z-index: calc(var(--floating-panel-z)  + 10);
    cursor: pointer;
    border: 1px solid #d2e9ff6b;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: .95rem;
    font-weight: 500;
  }

  .app--mobile .editor__mobile-preview-toggle {
    display: inline-flex;
    position: static;
    z-index: auto;
    align-items:  center;
    gap: 6px;
  }

  .app--mobile .editor__mobile-top-actions, .app--mobile .editor__mobile-export-toggle {
    display: inline-flex;
  }

  .app--mobile .app__mobile-editor-toggle {
    display: inline-flex;
    left: 12px;
    top: calc(env(safe-area-inset-top)  + 12px);
    justify-content: center;
    align-items:  center;
    gap: 8px;
  }

  @media (max-width: 480px) {
    .app--mobile .editor__mobile-top-actions > :first-child .editor__mobile-top-actions-label {
      display: none;
    }
  }

  .render-dialog__account-transfer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border: none;
    border-radius: 0;
    width: 100vw;
    height: 100dvh;
    top: 0;
    right: 0;
  }

  .sidebar__header {
    padding: 18px 16px 0;
  }

  .sidebar__body {
    padding: 16px 16px calc(env(safe-area-inset-bottom)  + 18px);
  }
}

@media (max-width: 640px) {
  .render-dialog__promo-form {
    grid-template-columns: 1fr;
  }

  .render-dialog--pro-comparison .render-dialog__comparison-table {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aacbf066 transparent;
    max-height: min(48dvh, 360px);
  }

  .render-dialog--pro-comparison .render-dialog__comparison-table::-webkit-scrollbar {
    width: 8px;
  }

  .render-dialog--pro-comparison .render-dialog__comparison-table::-webkit-scrollbar-thumb {
    background: #a0c5eb66;
    border-radius: 999px;
  }

  .render-dialog--pro-comparison .render-dialog__comparison-head, .render-dialog--pro-comparison .render-dialog__comparison-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .9fr);
    gap: 6px;
    padding: 8px 10px;
  }

  .render-dialog--pro-comparison .render-dialog__comparison-head {
    position: sticky;
    z-index: 1;
    font-size: .82rem;
    top: 0;
  }

  .render-dialog--pro-comparison .render-dialog__comparison-row {
    font-size: .8rem;
    line-height: 1.35;
  }
}

/* src/styles/globeLabels.css */
.globe-label-overlay {
  pointer-events: none;
}

.globe-label {
  --label-scale: 1;
  text-shadow: 2px 2px 7px #000;
  white-space: nowrap;
  text-align: left;
  border-radius: calc(8px * var(--label-scale));
  color: #fffffff5;
  font-size: calc(1rem * var(--label-scale));
  opacity: 0;
  will-change: opacity;
  background: none;
  line-height: 1.35;
}

.globe-label.is-visible {
  opacity: 1;
}

.globe-city-label {
  padding: calc(6px * var(--label-scale)) calc(14px * var(--label-scale));
}

.globe-city-label-name {
  display: block;
  letter-spacing: 0;
  font-size: .95em;
  font-weight: 500;
  line-height: 1.35;
}

.globe-city-label--country-only .globe-city-label-name {
  display: inline;
}

.globe-city-label-date {
  display: block;
  margin-bottom: calc(2px * var(--label-scale));
  letter-spacing: .02em;
  opacity: .85;
  font-size: .72em;
  font-weight: 600;
  line-height: 1.2;
}

.globe-city-label-country-flag {
  text-shadow: none;
  display: inline;
  margin-right: 16px;
  font-family: TripEmoji, Space Grotesk, Segoe UI Emoji, Apple Color Emoji, Noto Color Emoji, sans-serif;
}

.globe-city-label-country-name {
  display: inline;
  font-size: .82em;
  font-weight: 400;
  line-height: 1.35;
}

.globe-city-label--country-only .globe-city-label-country {
  display: inline-flex;
  align-items:  center;
}

.globe-city-label-compact {
  padding: calc(4px * var(--label-scale)) calc(10px * var(--label-scale));
}

.globe-city-label-compact .globe-city-label-name {
  display: inline;
}

.globe-city-label-compact .globe-city-label-country-flag {
  margin-left: 8px;
  margin-right: 0;
}

.globe-distance-label {
  padding: calc(8px * var(--label-scale)) calc(16px * var(--label-scale));
  border-radius: calc(8px * var(--label-scale));
  font-size: calc(1rem * var(--label-scale));
  background-color: #0000;
  font-weight: 500;
  line-height: 1.35;
}

.globe-distance-label--hud {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* src/components/ProBadge.css */
.pro-badge {
  display: inline-flex;
  vertical-align: middle;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #4a1e08;
  background: linear-gradient(145deg, #ffc17af2 0%, #ff9c6af2 100%);
  border: 1px solid #ffd2a280;
  border-radius: 999px;
  align-items:  center;
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 700;
}

/* src/styles/fonts.css */
@font-face {
  font-family: TripSans;
  src: url("/_app-assets/roboto-brczv6b8.ttf") format(truetype);
  font-display: optional;
}

@font-face {
  font-family: TripEmoji;
  src: url("/_app-assets/emoji_font-typh2cy5.ttf") format(truetype);
  font-display: swap;
}

/* src/render-page/RenderJobPage.css */
.render-job-page {
  position: fixed;
  display: grid;
  overflow-y: auto;
  background: #0b1220 url("/_app-assets/renderBackground-dbz6p8n6.png") center / cover no-repeat;
  place-items:  start center;
  padding: 32px 16px;
  font-family: TripSans, Space Grotesk, Avenir Next, Trebuchet MS, sans-serif;
  inset: 0;
}

.render-job-page__card {
  color: #f6fafff5;
  background: #112138d9;
  border: 1px solid #e2efff47;
  border-radius: 16px;
  width: min(860px, 95vw);
  padding: 20px;
}

.render-job-page__header {
  --render-brand-gradient: linear-gradient(110deg, #eef9fffa 0%, #abddfff2 45%, #f4fcfffa 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 0 0 12px;
}

.render-job-page__brand {
  letter-spacing: -.04em;
  position: relative;
  display: inline-flex;
  background: var(--render-brand-gradient);
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 #daecff99) drop-shadow(0 8px 14px #3167aa47);
  background-position: 0%;
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  align-items:  center;
  gap: .36em;
  margin: 0;
  font-size: clamp(1.62rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.04;
}

.render-job-page__brand-logo {
  display: block;
  background: var(--render-brand-gradient);
  -webkit-mask-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMjIuODggMTIyLjg4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMjIuODggMTIyLjg4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO30KPC9zdHlsZT4KPGc+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYuNjMsMTA1Ljc1YzAuMDEtNC4wMywyLjMtNy45Nyw2LjAzLTEyLjM4TDEuMDksNzkuNzNjLTEuMzYtMC41OS0xLjMzLTEuNDItMC41NC0yLjRsNC41Ny0zLjkKCQljMC44My0wLjUxLDEuNzEtMC43MywyLjY2LTAuNDdsMjYuNjIsNC41bDIyLjE4LTI0LjAyTDQuOCwxOC40MWMtMS4zMS0wLjc3LTEuNDItMS42NC0wLjA3LTIuNjVsNy40Ny01Ljk2bDY3LjUsMTguOTdMOTkuNjQsNy40NQoJCWM2LjY5LTUuNzksMTMuMTktOC4zOCwxOC4xOC03LjE1YzIuNzUsMC42OCwzLjcyLDEuNSw0LjU3LDQuMDhjMS42NSw1LjA2LTAuOTEsMTEuODYtNi45NiwxOC44Nkw5NC4xMSw0My4xOGwxOC45Nyw2Ny41CgkJbC01Ljk2LDcuNDdjLTEuMDEsMS4zNC0xLjg4LDEuMjMtMi42NS0wLjA3TDY5LjQzLDY2LjMxTDQ1LjQxLDg4LjQ4bDQuNSwyNi42MmMwLjI2LDAuOTQsMC4wNSwxLjgyLTAuNDcsMi42NmwtMy45LDQuNTcKCQljLTAuOTcsMC43OS0xLjgxLDAuODItMi40LTAuNTRsLTEzLjY0LTIxLjU3Yy00LjQzLDMuNzQtOC4zNyw2LjAzLTEyLjQyLDYuMDNDMTYuNzEsMTA2LjI0LDE2LjYzLDEwNi4xMSwxNi42MywxMDUuNzUKCQlMMTYuNjMsMTA1Ljc1eiIvPgo8L2c+Cjwvc3ZnPgo=");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMjIuODggMTIyLjg4IiBzdHlsZT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;
  mask-position: center;
  mask-size: contain;
  transform-origin: center;
  background-position: 0%;
  background-size: 220% 220%;
  flex: none;
  width: .66em;
  height: .66em;
  transform: rotate(45deg);
}

.render-job-page__brand:before, .render-job-page__brand:after {
  content: attr(data-text);
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.render-job-page__brand:before {
  color: #7eb7f570;
  z-index: -1;
  transform: translate(1px, 3px);
}

.render-job-page__brand:after {
  color: #d0eaff70;
  z-index: -2;
  filter: blur(6px);
  transform: translate(-1px, -1px);
}

.render-job-page__status-title {
  letter-spacing: -.03em;
  background: var(--render-brand-gradient);
  -webkit-text-fill-color: transparent;
  color: #0000;
  filter: drop-shadow(0 1px 0 #daecff80) drop-shadow(0 7px 12px #3167aa3d);
  text-wrap: balance;
  background-position: 0%;
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0;
  font-size: clamp(1.22rem, 2.3vw, 1.68rem);
  font-weight: 500;
  line-height: 1.08;
}

.render-job-page__meta {
  margin: 0 0 8px;
  line-height: 1.4;
}

.render-job-page__route-block {
  background: #0b1a2d9e;
  border: 1px solid #cae1fa42;
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 12px;
}

.render-job-page__route {
  display: flex;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  margin: 0;
}

.render-job-page__route-stop {
  display: inline-flex;
  align-items:  center;
  gap: 8px;
}

.render-job-page__route-flag {
  display: inline-block;
  font-family: TripEmoji, Space Grotesk, Segoe UI Emoji, Apple Color Emoji, Noto Color Emoji, sans-serif;
  line-height: 1;
}

.render-job-page__route-arrow {
  opacity: .88;
  flex: none;
}

.render-job-page__upgrade {
  display: flex;
  background: #0b1a2d9e;
  border: 1px solid #cae1fa42;
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
}

.render-job-page__upgrade-text {
  color: #e8f3fff5;
  margin: 0;
  line-height: 1.4;
}

.render-job-page__upgrade-link, .render-job-page__download-link {
  text-decoration: none;
}

.render-job-page__primary-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.render-job-page__subtitle {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.render-job-page__note {
  color: #d8e5f5eb;
  margin: 0 0 12px;
  line-height: 1.45;
}

.render-job-page__button {
  display: inline-flex;
  color: #052140;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(145deg, #81c2fff2 0%, #60a6ecf0 100%);
  border: 1px solid #d1e9ff61;
  border-radius: 10px;
  justify-content: center;
  align-items:  center;
  padding: 9px 14px;
  font-weight: 650;
}

.render-job-page__button:hover {
  filter: brightness(1.03);
}

.render-job-page__button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.render-job-page__button--full {
  width: 100%;
}

.render-job-page__button--secondary {
  color: #e6f1fcf5;
  background: #0e1d30c7;
}

.render-job-page__progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title title" "track value";
  align-items:  center;
  gap: 10px;
  margin: 12px 0 16px;
}

.render-job-page__progress-title {
  grid-area: title;
  color: #e2eefce0;
  font-size: .95rem;
  font-weight: 500;
}

.render-job-page__progress-track {
  grid-area: track;
  overflow: hidden;
  background: #cee2f82e;
  border-radius: 999px;
  height: 10px;
}

.render-job-page__progress-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #93cffff5 0%, #67b1f9f5 100%);
  height: 100%;
  transition: width .3s;
}

.render-job-page__progress-label {
  grid-area: value;
  text-align: right;
  min-width: 44px;
}

.render-job-page__info-grid {
  display: flex;
  align-items:  flex-start;
  gap: 12px;
}

.render-job-page__preview {
  margin: 16px 0 12px;
}

.render-job-page__preview-frame {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border-radius: 12px;
  width: 100%;
  min-height: 220px;
  max-height: 70vh;
}

.render-job-page__video {
  display: block;
  object-fit: contain;
  background: #0f172a;
  width: 100%;
  height: auto;
  max-height: 100%;
}

.render-job-page__feedback {
  background: #0b1a2d9e;
  border: 1px solid #cae1fa42;
  border-radius: 12px;
  margin-top: 16px;
  padding: 14px;
}

.render-job-page__feedback-form {
  display: grid;
  gap: 10px;
}

.star-rating-input {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  width: 100%;
}

.star-rating-input__button {
  color: #b5cde8db;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: color .12s, transform .12s;
  font-size: 30px;
  line-height: 1;
}

.star-rating-input__button:hover:not(:disabled) {
  color: #ffcd7df2;
  transform: translateY(-1px);
}

.star-rating-input__button--active {
  color: #ffba54fa;
}

.star-rating-input__button:disabled {
  cursor: not-allowed;
  opacity: .75;
}

.render-job-page__feedback-textarea {
  resize: vertical;
  color: #eff7fff5;
  font: inherit;
  background: #0d192ae0;
  border: 1px solid #cae1fa4d;
  border-radius: 10px;
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
}

.render-job-page__feedback-textarea::placeholder {
  color: #b8cfe8bd;
}

.render-job-page__feedback-actions {
  display: flex;
  justify-content: flex-end;
}

.render-job-page__feedback-success {
  color: #9ce7b8;
  margin: 0;
  line-height: 1.4;
}

.render-job-page__error {
  color: #ffd47d;
  margin: 0 0 12px;
}

@media (max-width: 1024px) {
  .render-job-page {
    padding: 0;
  }

  .render-job-page__card {
    padding: calc(env(safe-area-inset-top)  + 16px) 16px calc(env(safe-area-inset-bottom)  + 16px);
    border: none;
    border-radius: 0;
    width: 100vw;
    min-height: 100%;
  }

  .render-job-page__header {
    gap: 8px 10px;
    margin-bottom: 10px;
  }

  .render-job-page__brand {
    font-size: clamp(1.42rem, 7vw, 1.86rem);
  }

  .render-job-page__status-title {
    font-size: clamp(1.04rem, 5vw, 1.34rem);
  }

  .render-job-page__preview-frame {
    min-height: 180px;
    max-height: 56vh;
  }

  .render-job-page__upgrade-link {
    width: 100%;
  }

  .star-rating-input__button {
    font-size: 28px;
  }
}
