:root {
  --wallpaper-image: none;
}
html[data-background="mist-mountains"],
.wallpaper-options [data-background="mist-mountains"] {
  --wallpaper-image: url("/backgrounds/mist-mountains.webp");
}
html[data-background="warm-dunes"],
.wallpaper-options [data-background="warm-dunes"] {
  --wallpaper-image: url("/backgrounds/warm-dunes.webp");
}
html[data-background="moonlit-coast"],
.wallpaper-options [data-background="moonlit-coast"] {
  --wallpaper-image: url("/backgrounds/moonlit-coast.webp");
}
html[data-background="none"],
.wallpaper-options [data-background="none"] {
  --wallpaper-image: none;
}
.page-wallpaper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(105deg, #f5f4eede, #f5f4ee8c 54%, #f5f4ee55), var(--wallpaper-image);
  background-position: center;
  background-size: cover;
}
.shell {
  position: relative;
}
html[data-background="none"] .page-wallpaper {
  background: var(--bg);
}
.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.welcome-header .edition {
  display: none;
}
.appearance-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  background: #fbfaf69e;
  color: #426557;
  font-size: 12px;
  font-weight: 600;
}
.appearance-launcher:hover {
  background: #fbfaf6;
}
.pairing-card,
.install-card {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px -32px #25382b33;
}
.install-card {
  background: #f7f7f0c9;
  border-color: #ffffffa3;
}
.desktop-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--wallpaper-image);
  background-position: center;
  background-size: cover;
}
/* Only the app surround uses a wallpaper; the video pixels keep their original colors. */
.desktop-panel video {
  background: transparent;
}
.appearance-session-button {
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.topbar,
.controlbar,
.keyboard-tray,
.switcher {
  box-shadow: 0 10px 32px #07161026;
}
.controlbar {
  width: min(420px, calc(100% - 24px));
  border-radius: 17px;
}
.controlbar button {
  flex: 1;
  justify-content: center;
}
.controlbar button[aria-expanded="true"] {
  color: #d0dfcd;
  background: #b4c8b41f;
}
.keyboard-tray {
  border-radius: 18px;
}
.modifier-row button,
.shortcut-row button {
  box-shadow: none;
  border-color: #ffffff14;
}
.appearance-dialog {
  width: min(480px, calc(100% - 28px));
  overflow-y: auto;
  color-scheme: light;
  --blue: #426557;
  --blue-strong: #335545;
}
.appearance-dialog h2 {
  margin-top: 8px;
}
.appearance-dialog .appearance-intro {
  margin-top: 6px;
}
.palette-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 20px;
  font-size: 11px;
  color: #617167;
}
.palette-note > span:last-child {
  margin-left: 5px;
}
.palette-dot {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border: 1px solid #28373026;
  border-radius: 50%;
}
.porcelain {
  background: #efeee8;
}
.graphite {
  background: #202a27;
}
.sage {
  background: #b4c8b4;
}
.wallpaper-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wallpaper-options button {
  min-width: 0;
  padding: 6px 6px 12px;
  text-align: left;
  border: 1px solid #dce1d6;
  border-radius: 14px;
  background: #f3f3ed;
}
.wallpaper-options button[aria-pressed="true"] {
  border-color: #426557;
  background: #e7ece3;
  box-shadow: inset 0 0 0 1px #426557;
}
.wallpaper-swatch {
  display: grid;
  place-items: center;
  aspect-ratio: 1.7;
  border-radius: 9px;
  background: #e9e9e1 var(--wallpaper-image) center / cover;
}
.plain-swatch {
  color: #9caa9e;
}
.wallpaper-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin: 9px 6px 3px;
}
.wallpaper-label strong {
  font-size: 13px;
  font-weight: 600;
}
.wallpaper-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: #426557;
  visibility: hidden;
}
[aria-pressed="true"] > .wallpaper-label .wallpaper-check {
  visibility: visible;
}
.wallpaper-options small {
  display: block;
  margin: 0 6px;
  color: #617167;
  font-size: 10px;
  line-height: 1.6;
}
.appearance-dialog .appearance-status {
  margin: 16px 0 0;
  font-size: 12px;
  color: #426557;
}
.appearance-dialog .dialog-footnote {
  margin-top: 6px;
  text-align: left;
}
.appearance-done {
  margin-top: 18px;
}
body.in-session .appearance-dialog {
  background: #202a27;
  color: #edf0e8;
  border-color: #3a473e;
  --blue: #b4c8b4;
  --blue-strong: #c5d5c3;
}
body.in-session .appearance-dialog p,
body.in-session .appearance-dialog small,
body.in-session .palette-note {
  color: #b0bcb1;
}
body.in-session .wallpaper-options button {
  background: #28352e;
  border-color: #435146;
}
body.in-session .wallpaper-options button[aria-pressed="true"] {
  background: #35483b;
  border-color: #b4c8b4;
  box-shadow: inset 0 0 0 1px #b4c8b4;
}
body.in-session .appearance-done {
  color: #21372a;
}
@media (max-width: 359px) {
  .appearance-dialog {
    padding: 18px;
  }
  .wallpaper-options {
    gap: 8px;
  }
}
@media (max-height: 520px) and (min-width: 760px) {
  .controlbar {
    width: 360px;
  }
}
