:root {
  color-scheme: dark;
  --bg: #090c1b;
  --surface: #111525;
  --surface-raised: #191c30;
  --line: #25283c;
  --text: #e8e8f6;
  --muted: #989db9;
  --accent: #a48bff;
  --accent-strong: #7c5ce7;
  --accent-rgb: 164, 139, 255;
  --chrome: #0d101e;
  --radius: 14px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
button {
  border: 0;
  background: none;
}
input,
select {
  color: var(--text);
}
button,
input,
select,
a {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
button:hover:not(:disabled) {
  filter: brightness(1.14);
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.browser-chrome {
  height: 96px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.tabbar {
  height: 43px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  gap: 10px;
  border-bottom: 1px solid #ffffff04;
}
.brand-mark {
  width: 29px;
  height: 29px;
  margin-right: 8px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
}
.tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  max-width: calc(100% - 160px);
}
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--muted);
  height: 36px;
  min-width: 130px;
  width: 192px;
  padding: 0 8px 0 13px;
  margin-top: 7px;
  flex-shrink: 0;
  font-size: 0.8125rem;
}
.tab.active {
  background: var(--surface-raised);
  border-color: var(--line);
  border-bottom-color: var(--surface-raised);
  color: var(--text);
}
.tab-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}
.tab-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px #9c7aff55;
}
.tab-close {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 5px;
}
.tab-close:hover {
  background: #ffffff0a;
}
.tab-close svg {
  width: 13px;
  height: 13px;
}
.tabbar-space,
.status-spacer {
  flex: 1;
}
.icon-button {
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  flex-shrink: 0;
  padding: 6px;
}
.icon-button:hover {
  background: #ffffff08;
  color: var(--text);
}
.toolbar {
  height: 53px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
}
.address-form {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #171b2c;
  border: 1px solid var(--line);
  border-radius: 9px;
  flex: 1;
  margin: 0 9px;
  padding: 0 10px;
  color: #8489a6;
  min-width: 60px;
}
.address-form > svg {
  width: 15px;
  height: 15px;
}
.address-form input {
  background: none;
  border: 0;
  outline: none;
  flex: 1;
  width: 0;
  font-size: 0.8125rem;
  height: 100%;
}
.address-form input::placeholder {
  color: #81869f;
}
.address-form .icon-button {
  height: 28px;
  width: 28px;
}
.address-form .icon-button.saved {
  color: var(--accent);
}
.transport-control select {
  font-size: 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
}
.workspace {
  display: flex;
  height: calc(100dvh - 127px);
}
.rail {
  width: 65px;
  border-right: 1px solid #ffffff06;
  background: #0b0e1bcc;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  padding: 25px 0 15px;
  flex-shrink: 0;
  z-index: 2;
}
.rail-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #767c9b;
}
.rail-button:hover {
  background: #ffffff06;
  color: var(--text);
}
.rail-button.active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.16);
}
.rail-spacer {
  flex: 1;
}
main {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.home-view {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 36px 24px;
  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(var(--accent-rgb), 0.055),
      transparent 49%
    ),
    radial-gradient(ellipse at 2% 4%, #22204c33, transparent 40%), var(--bg);
  isolation: isolate;
  overflow: auto;
}
.home-view:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.48;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 17px 27px, #727898 95%, transparent),
    radial-gradient(1px 1px at 83px 94px, #676984 95%, transparent),
    radial-gradient(1px 1px at 127px 53px, #6a6d8d 95%, transparent);
  background-size:
    173px 151px,
    237px 191px,
    311px 263px;
}
.home-topline,
.home-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #858ba8;
  font-size: 0.75rem;
}
.home-topline > span {
  letter-spacing: 0.19em;
  font-size: 0.6875rem;
}
.quiet-button {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  padding: 6px 0;
}
.quiet-button svg {
  width: 15px;
  height: 15px;
}
.home-center {
  width: min(600px, 100%);
  margin: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 38px 0 55px;
}
.orbit-emblem {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 26px #8360e847);
  margin-bottom: 18px;
  animation: float 7s ease-in-out infinite;
}
.orbit-emblem img {
  width: 100%;
  height: 100%;
}
h1 {
  font-size: 4.6rem;
  letter-spacing: -0.065em;
  font-weight: 650;
  line-height: 1;
  margin: 0;
  background: linear-gradient(125deg, #e5ddff, #a28bea);
  background-clip: text;
  color: transparent;
}
h1 span {
  color: var(--accent);
}
.tagline {
  color: #969cb9;
  font-size: 1rem;
  margin: 17px 0 33px;
  letter-spacing: 0.015em;
}
.hero-search {
  display: flex;
  align-items: center;
  height: 62px;
  width: 100%;
  background: #111526d9;
  border: 1px solid #35314e;
  border-radius: 16px;
  padding: 7px 8px 7px 19px;
  gap: 13px;
  box-shadow:
    0 8px 40px #0003,
    0 0 30px #8761e508;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #9d80ff12;
}
.hero-search > svg {
  color: #8a82a9;
}
.hero-search input {
  width: 0;
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 0.9375rem;
  height: 100%;
}
.hero-search input::placeholder {
  color: #9094ad;
}
kbd {
  font-family: inherit;
  border: 1px solid #ffffff10;
  border-radius: 5px;
  font-size: 0.75rem;
  padding: 2px 7px;
  color: #85859c;
}
.search-go {
  background: linear-gradient(145deg, #a184fa, #7051da);
  border: 1px solid #bc9fff55;
  height: 44px;
  width: 45px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px #7953e32a;
  color: white;
}
.engine-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 15px 0 34px;
  color: #858aa7;
  font-size: 0.75rem;
}
.engine-row select {
  font-size: 0.75rem;
  color: #c3b1f7;
  background: transparent;
  border: 0;
  padding: 2px 4px;
}
.engine-row option {
  background: var(--surface);
}
.engine-divider {
  height: 10px;
  width: 1px;
  background: #343347;
  margin: 0 4px;
}
.shortcuts {
  display: flex;
  justify-content: center;
  gap: 23px;
  flex-wrap: wrap;
}
.shortcut {
  width: 61px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  color: #a2a7bf;
  font-size: 0.75rem;
}
.shortcut-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid #282b42;
  border-radius: 15px;
  background: linear-gradient(145deg, #1a1e31, #121625);
  color: #c7c8e2;
  font-size: 1.125rem;
  font-weight: 650;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.shortcut:hover .shortcut-icon {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.shortcut.add .shortcut-icon {
  background: transparent;
  border-style: dashed;
  color: #898ba6;
}
.shortcut-name {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hint {
  font-size: 0.75rem;
  color: #707793;
  margin-top: 36px;
}
.home-bottomline {
  min-height: 30px;
}
.statusbar {
  height: 31px;
  background: #0b0e1b;
  border-top: 1px solid #ffffff07;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 19px;
  font-size: 0.6875rem;
  color: #7f859e;
}
.status-brand {
  font-weight: 650;
  letter-spacing: 0.14em;
  color: #a49bbd;
}
.status-brand span {
  font-weight: 400;
  color: #606783;
  letter-spacing: 0;
  margin-left: 6px;
}
.statusbar button {
  font-size: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #888ba0;
}
.status-dot.online {
  background: #91c4b1;
}
.status-dot.offline {
  background: #dba083;
}
.footer-divider {
  height: 10px;
  width: 1px;
  background: var(--line);
}
.frames {
  height: 100%;
  width: 100%;
  background: white;
}
.proxy-frame {
  height: 100%;
  width: 100%;
  border: 0;
  display: block;
  background: white;
}
.load-progress {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  width: 30%;
  animation: progress 1.5s ease-in-out infinite;
}
.side-panel {
  width: 350px;
  background: #101322;
  border-left: 1px solid var(--line);
  overflow: auto;
  z-index: 4;
  flex-shrink: 0;
}
.side-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 22px 21px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.17em;
  color: var(--accent);
  font-weight: 600;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin: 7px 0 0;
}
.panel-body {
  padding: 22px;
}
.panel-body p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.field {
  margin-bottom: 25px;
}
.field > label,
.field-title {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 10px;
}
.field select,
.panel-search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: 8px;
  padding: 11px;
  color: var(--text);
  font-size: 0.875rem;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 8px;
}
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  gap: 16px;
  margin: 22px 0;
}
.toggle-line input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.swatches {
  display: flex;
  gap: 10px;
}
.swatch {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  outline: 1px solid var(--line);
}
.swatch.selected {
  outline: 2px solid var(--text);
}
.primary,
.secondary,
.danger {
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 550;
}
.primary {
  background: var(--accent-strong);
  color: white;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--surface-raised);
}
.danger {
  color: #ffb6be;
  border: 1px solid #bb526633;
}
.button-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.button-row + .button-row {
  margin-top: 12px;
}
.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 27px 0 12px;
}
.empty-state {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}
.empty-state svg {
  height: 29px;
  width: 29px;
  color: var(--accent);
  margin-bottom: 12px;
}
.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
}
.saved-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ffffff06;
  padding: 13px 0;
}
.saved-item .open-item {
  min-width: 0;
  text-align: left;
  flex: 1;
  padding: 0;
}
.saved-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
}
.saved-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
}
.saved-item .icon-button {
  width: 27px;
  height: 27px;
}
.saved-item .icon-button svg {
  width: 15px;
  height: 15px;
}
.panel-search {
  margin: 16px 0 6px;
}
.error-view {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px;
  text-align: center;
}
.error-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 17px;
}
.error-view p {
  max-width: 520px;
  line-height: 1.7;
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #403953;
  border-radius: 18px;
  padding: 30px;
  width: min(440px, calc(100% - 32px));
  box-shadow: 0 20px 100px #0009;
}
dialog::backdrop {
  background: #030510ad;
  backdrop-filter: blur(6px);
}
dialog h2 {
  margin-bottom: 26px;
}
dialog label {
  display: block;
  font-size: 0.875rem;
  margin: 17px 0;
}
dialog input {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  margin-top: 8px;
}
dialog .button-row {
  justify-content: flex-end;
  margin-top: 23px;
}
.form-error {
  color: #ffb6be;
  font-size: 0.8125rem;
}
.settings-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
#toast {
  position: fixed;
  bottom: 49px;
  left: 50%;
  transform: translateX(-50%);
  background: #24233a;
  border: 1px solid #504769;
  box-shadow: 0 8px 35px #0006;
  border-radius: 11px;
  padding: 13px 20px;
  font-size: 0.875rem;
  max-width: calc(100% - 40px);
  z-index: 30;
}
.no-stars .home-view:before {
  display: none;
}
.no-motion * {
  animation: none !important;
  transition: none !important;
}
@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes progress {
  0% {
    left: 0;
    width: 10%;
  }
  50% {
    width: 45%;
  }
  100% {
    left: 90%;
    width: 10%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1600px) {
  .home-center {
    width: 640px;
  }
  .home-view {
    padding: 30px 45px;
  }
  .shortcuts {
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .side-panel {
    position: absolute;
    right: 0;
    top: 96px;
    bottom: 31px;
    width: 350px;
    box-shadow: -20px 0 80px #0005;
  }
  .home-topline > span {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
  .home-view {
    padding: 20px;
  }
  .rail {
    width: 55px;
  }
  .shortcuts {
    gap: 15px;
  }
  .toolbar {
    padding: 0 8px;
    gap: 1px;
  }
  .address-form {
    margin: 0 4px;
  }
}
@media (max-width: 600px) {
  .rail {
    display: none;
  }
  .home-topline > span {
    display: none;
  }
  .home-topline {
    justify-content: flex-end;
  }
  .home-center {
    padding: 24px 0 35px;
  }
  h1 {
    font-size: 3.8rem;
  }
  .orbit-emblem {
    width: 68px;
    height: 68px;
  }
  .hero-search {
    height: 58px;
    padding-left: 13px;
    gap: 9px;
  }
  .hero-search input {
    font-size: 0.875rem;
  }
  .hero-search kbd {
    display: none;
  }
  .shortcuts {
    gap: 16px;
    max-width: 290px;
  }
  .shortcut {
    width: 58px;
  }
  .home-hint {
    margin-top: 25px;
  }
  .toolbar > #home-button {
    display: none;
  }
  .toolbar .icon-button {
    width: 28px;
  }
  .transport-control select {
    max-width: 78px;
    padding: 8px 3px;
  }
  .statusbar {
    gap: 10px;
    padding: 0 11px;
  }
  .status-brand span,
  .footer-divider {
    display: none;
  }
  .side-panel {
    width: min(360px, 100vw);
  }
  .home-bottomline {
    font-size: 0.6875rem;
  }
  .tab {
    width: 145px;
  }
  .tagline {
    margin-bottom: 28px;
  }
  .engine-row {
    margin-bottom: 27px;
  }
  .home-view {
    padding: 14px 20px;
  }
  .address-form > svg {
    display: none;
  }
}
.source-link {
  display: block;
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 20px;
  text-underline-offset: 4px;
}
.shortcut {
  font-size: 0.875rem;
}
.engine-row,
.engine-row select {
  font-size: 0.8125rem;
}
.tab,
.address-form input,
.transport-control select,
.quiet-button {
  font-size: 0.875rem;
}
.panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 14px 18px 0;
}
.panel-nav button {
  font-size: 0.8125rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
}
.panel-nav button:hover {
  color: var(--text);
  background: var(--surface-raised);
}

/* A full settings workspace, with Orbit's quiet palette and clear grouping. */
.side-panel.settings-page {
  position: absolute;
  inset: 96px 0 31px 55px;
  width: auto;
  z-index: 12;
  background: rgba(9, 12, 27, 0.97);
  backdrop-filter: blur(24px);
  border-left: 0;
}
.settings-page > header {
  padding: 20px 34px 12px;
}
.settings-page .panel-nav {
  display: none;
}
.settings-page .panel-body {
  padding: 16px 34px 44px;
  overflow-y: auto;
}
.settings-intro,
.settings-nav,
.settings-content {
  width: min(860px, 100%);
  margin-inline: auto;
}
.settings-intro h2 {
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -1.1px;
  margin: 12px 0 10px;
}
.settings-intro p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}
.settings-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 25px 0 14px;
  margin-bottom: 24px;
}
.settings-nav-button {
  padding: 10px 17px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
}
.settings-nav-button[aria-current="page"] {
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.3);
}
.settings-section h3 {
  margin: 0 0 7px;
  font-size: 19px;
}
.settings-section .section-description {
  margin: 0 0 23px;
  font-size: 14px;
  color: var(--muted);
}
.settings-section p {
  line-height: 1.7;
  font-size: 14px;
}
.scene-preview {
  min-height: 180px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(ellipse at 70% 20%, #44347980, transparent 60%), #080c1d;
  position: relative;
}
.scene-preview strong {
  font-size: 28px;
  letter-spacing: -1px;
  z-index: 1;
}
.scene-preview > span:last-child {
  color: #b2aecf;
  font-size: 12px;
  z-index: 1;
}
.preview-planet {
  color: var(--accent);
  font-size: 46px;
  line-height: 1.1;
  text-shadow: 0 0 30px var(--accent);
  transform: rotate(-25deg);
  z-index: 1;
}
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.scene-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111527b3;
  overflow: hidden;
}
.scene-card[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.07);
}
.scene-card strong {
  margin: 10px 0 5px;
  font-size: 14px;
}
.scene-card small {
  color: var(--muted);
  line-height: 1.5;
  font-size: 12px;
}
.scene-sample {
  display: block;
  height: 64px;
  width: 100%;
  border-radius: 7px;
  background: #080c1d;
}
.scene-stars .scene-sample,
body[data-background="stars"] .scene-preview {
  background-image:
    radial-gradient(circle, #c4b5fd99 1px, transparent 1.5px),
    radial-gradient(ellipse at 70% 10%, #49367988, transparent 70%);
  background-size:
    23px 27px,
    100% 100%;
}
.scene-aurora .scene-sample,
body[data-background="aurora"] .home-view,
body[data-background="aurora"] .scene-preview {
  background:
    radial-gradient(ellipse at 20% 20%, #4c369f88, transparent 60%),
    radial-gradient(ellipse at 80% 80%, #176d8466, transparent 65%), #090c1b;
}
body[data-background="aurora"] .home-view::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: linear-gradient(
    125deg,
    transparent 30%,
    #7664cf22 50%,
    transparent 65%
  );
  filter: blur(30px);
  animation: aurora-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.scene-rain .scene-sample,
body[data-background="rain"] .home-view,
body[data-background="rain"] .scene-preview {
  background:
    repeating-linear-gradient(
      110deg,
      transparent 0 27px,
      #819ae51c 28px 29px,
      transparent 30px 57px
    ),
    radial-gradient(ellipse at top, #203660, #090c1b 80%);
}
body[data-background="rain"] .home-view {
  animation: rain-drift 5s linear infinite;
  background-size:
    114px 180px,
    100% 100%;
}
body[data-background="still"] .home-view,
body[data-background="still"] .scene-preview {
  background: #090c1b;
}
.scene-image .scene-sample,
body[data-background="image"] .home-view,
body[data-background="image"] .scene-preview {
  background-image: linear-gradient(#090c1b66, #090c1b99), var(--scene-image);
  background-size: cover;
  background-position: center;
}
.home-center,
.home-topline,
.home-bottomline {
  z-index: 1;
  position: relative;
}
.image-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 8px;
  padding: 18px;
  border: 1px dashed #363950;
  border-radius: 12px;
  font-size: 14px;
}
.image-upload small,
.settings-input small {
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}
.image-upload input {
  max-width: 100%;
  font-size: 13px;
}
input::file-selector-button {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid #45425e;
  border-radius: 6px;
  padding: 8px 10px;
  margin-right: 12px;
  cursor: pointer;
}
.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.color-options button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: capitalize;
}
.color-options button::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--swatch);
}
.color-options button[aria-pressed="true"] {
  border-color: var(--swatch);
}
.setting-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 19px 20px;
  background: #111527b3;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
  cursor: pointer;
}
.setting-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 6px;
  max-width: 570px;
}
.setting-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  border: 1px solid #41455b;
  border-radius: 20px;
  background: #242838;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.setting-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5e4;
  transition: transform 0.16s;
}
.setting-switch:checked {
  background: var(--accent-strong);
  border-color: var(--accent);
}
.setting-switch:checked::after {
  transform: translateX(16px);
  background: white;
}
.settings-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 14px;
  font-size: 14px;
}
.settings-input input {
  background: #0b0f20;
  border: 1px solid #34364e;
  padding: 13px 14px;
  border-radius: 10px;
  width: 100%;
}
.settings-note {
  padding: 16px 19px;
  border: 1px solid #444063;
  border-radius: 12px;
  background: #29213d55;
  color: #c7c1dd;
  line-height: 1.65;
  font-size: 13px;
  margin-bottom: 20px;
}
.settings-footnote {
  color: var(--muted);
  font-size: 12px !important;
}
.browsing-controls {
  max-width: 620px;
}
.slow-page {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  background: #25243b;
  border: 1px solid #54486e;
  border-radius: 10px;
  padding: 10px 14px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  box-shadow: 0 6px 24px #0006;
}
.slow-page button {
  color: var(--accent);
  text-decoration: underline;
}
@keyframes aurora-drift {
  to {
    transform: translate(15%, 8%) rotate(15deg);
  }
}
@keyframes rain-drift {
  to {
    background-position:
      -114px 180px,
      center;
  }
}
@media (max-width: 600px) {
  .side-panel.settings-page {
    left: 0;
  }
  .settings-page > header {
    padding: 16px 18px 8px;
  }
  .settings-page .panel-body {
    padding: 12px 18px 30px;
  }
  .settings-nav {
    gap: 3px;
  }
  .settings-nav-button {
    padding: 10px 9px;
    font-size: 12px;
  }
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .setting-row {
    padding: 15px;
    gap: 16px;
  }
  .scene-preview {
    min-height: 155px;
  }
}
