/* Exact Ceisium design tokens + Stageshow macOS chrome craft */
:root {
  color-scheme: light dark;
  --background: oklch(0.9780 0.0060 60);
  --foreground: oklch(0.2161 0.0061 56.0434);
  --card: oklch(0.9900 0.0030 70);
  --primary: oklch(0.5026 0.0955 46.0080);
  --primary-deep: #683f28;
  --primary-foreground: oklch(0.9848 0.0013 106.4233);
  --link: oklch(0.5026 0.0955 46.0080);
  --secondary: oklch(0.9629 0.0042 56.3745);
  --muted-foreground: oklch(0.5534 0.0116 58.0708);
  --accent: oklch(0.9404 0.0323 61.4241);
  --border: oklch(0.9232 0.0026 48.7171);
  --control-border: #e0dddb;
  --radius-control: 7px;
  --radius-card: 10px;
  --radius-window: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --focus-ring: 0 0 0 2px color-mix(in oklch, var(--primary) 34%, transparent);
  --window-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.34),
    0 30px 76px -10px rgba(0, 0, 0, 0.56),
    0 12px 28px -8px rgba(0, 0, 0, 0.34);

  /* Elevated warm frosted parchment glass dock — pops cleanly against deep space */
  --dock-bg: rgba(251, 247, 244, 0.88);
  --dock-ink: #221a16;
  --dock-muted: rgba(34, 26, 22, 0.62);
  --dock-tile-bg: rgba(34, 26, 22, 0.06);
  --dock-tile-hover: rgba(34, 26, 22, 0.11);
  --dock-sep: rgba(34, 26, 22, 0.14);
  --dock-border: rgba(34, 26, 22, 0.12);
  --dock-dot: #683f28;
  --dock-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 60px -8px rgba(0, 0, 0, 0.62),
    0 8px 20px -4px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] {
  --background: oklch(0.1648 0.0096 42.9675);
  --foreground: oklch(0.9629 0.0042 56.3745);
  --card: oklch(0.2067 0.0105 39.2828);
  --primary: oklch(0.5026 0.0955 46.0080);
  --primary-deep: #683f28;
  --primary-foreground: oklch(0.9848 0.0013 106.4233);
  --link: #e0986e;
  --secondary: oklch(0.2594 0.0186 40.9283);
  --muted-foreground: oklch(0.7161 0.0091 56.2590);
  --accent: oklch(0.3319 0.0469 45.5805);
  --border: #392c27;
  --control-border: #44352f;
  --window-shadow: 0 0 0 0.5px rgba(255, 245, 238, 0.16),
    0 34px 86px -10px rgba(0, 0, 0, 0.76),
    0 12px 28px -8px rgba(0, 0, 0, 0.48);

  /* Elevated warm mineral glass dock in dark mode — clearly lifted off black space */
  --dock-bg: rgba(54, 44, 39, 0.88);
  --dock-ink: #faf5f2;
  --dock-muted: rgba(250, 245, 242, 0.74);
  --dock-tile-bg: rgba(255, 247, 242, 0.1);
  --dock-tile-hover: rgba(255, 247, 242, 0.17);
  --dock-sep: rgba(255, 247, 242, 0.18);
  --dock-border: rgba(255, 247, 242, 0.16);
  --dock-dot: #e0986e;
  --dock-shadow: 0 0 0 1px rgba(255, 240, 228, 0.24),
    inset 0 1px 0 rgba(255, 244, 236, 0.22),
    0 24px 64px -8px rgba(0, 0, 0, 0.75),
    0 8px 22px -4px rgba(0, 0, 0, 0.48);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: oklch(0.1648 0.0096 42.9675);
    --foreground: oklch(0.9629 0.0042 56.3745);
    --card: oklch(0.2067 0.0105 39.2828);
    --primary: oklch(0.5026 0.0955 46.0080);
    --primary-deep: #683f28;
    --primary-foreground: oklch(0.9848 0.0013 106.4233);
    --link: #e0986e;
    --secondary: oklch(0.2594 0.0186 40.9283);
    --muted-foreground: oklch(0.7161 0.0091 56.2590);
    --accent: oklch(0.3319 0.0469 45.5805);
    --border: #392c27;
    --control-border: #44352f;
    --window-shadow: 0 0 0 0.5px rgba(255, 245, 238, 0.16),
      0 34px 86px -10px rgba(0, 0, 0, 0.76),
      0 12px 28px -8px rgba(0, 0, 0, 0.48);

    --dock-bg: rgba(54, 44, 39, 0.88);
    --dock-ink: #faf5f2;
    --dock-muted: rgba(250, 245, 242, 0.74);
    --dock-tile-bg: rgba(255, 247, 242, 0.1);
    --dock-tile-hover: rgba(255, 247, 242, 0.17);
    --dock-sep: rgba(255, 247, 242, 0.18);
    --dock-border: rgba(255, 247, 242, 0.16);
    --dock-dot: #e0986e;
    --dock-shadow: 0 0 0 1px rgba(255, 240, 228, 0.24),
      inset 0 1px 0 rgba(255, 244, 236, 0.22),
      0 24px 64px -8px rgba(0, 0, 0, 0.75),
      0 8px 22px -4px rgba(0, 0, 0, 0.48);
  }
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080605;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Full-bleed live Hubble desktop stage */
.desktop-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #080605;
}

.wallpaper-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.014);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.wallpaper-layer.is-visible {
  opacity: 1;
  transform: scale(1);
}

.desktop-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.24) 100%
    ),
    linear-gradient(to bottom, transparent 84%, rgba(0, 0, 0, 0.32) 100%);
}

/* Desktop Canvas & Floating macOS Window */
.desktop-canvas {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  padding: 24px 16px 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.mac-window {
  pointer-events: auto;
  width: 416px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 118px);
  background: var(--background);
  color: var(--foreground);
  border-radius: var(--radius-window);
  box-shadow: var(--window-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.mac-window.is-dragging {
  transition: none;
  will-change: transform;
}

.mac-window.is-instant {
  transition-duration: 0ms;
}

.mac-window.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms var(--ease-out), transform 160ms var(--ease-out);
}

/* Stageshow macOS chrome: fixed 38px height, 12px traffic lights 8px apart, equal top/left inset */
.window-titlebar {
  height: 38px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  cursor: grab;
  flex-shrink: 0;
}

.window-titlebar:active {
  cursor: grabbing;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  border: none;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  padding: 0;
  transition: filter 100ms ease;
}

.tl:hover {
  filter: brightness(0.9);
}

.tl-close {
  background: #ff5f57;
}

.tl-min {
  background: #febc2e;
}

.tl-zoom {
  background: #28c840;
}

.window-titlebar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
  text-align: center;
  text-box: trim-both cap alphabetic;
}

.window-titlebar-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.titlebar-icon-btn {
  width: 24px;
  height: 24px;
  flex: none;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, transform 140ms var(--ease-out);
}

.titlebar-icon-btn:active {
  transform: scale(0.94);
}

.titlebar-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (hover: hover) and (pointer: fine) {
  .titlebar-icon-btn:hover {
    background: var(--secondary);
    color: var(--foreground);
  }
}

.icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

/* Real Space Wall App Shell (exact Ceisium layout) */
.app-shell {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand-icon {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}

.app-brand-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.app-brand-subtitle {
  font-size: 11.5px;
  color: var(--muted-foreground);
  line-height: 1.3;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.preview-frame {
  position: relative;
  height: 204px;
  background: #0c0a09;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 260ms ease;
}

.updating-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.preview-meta {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.image-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  font-size: 11.5px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.credit-row {
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.text-link {
  color: var(--link);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link--muted {
  color: var(--muted-foreground);
}

.action-row {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, opacity 120ms ease, transform 140ms var(--ease-out);
}

.btn > span {
  text-box: trim-both cap alphabetic;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

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

.btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.btn-primary {
  flex: 1;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--control-border);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) {
    background: var(--primary-deep);
  }

  .btn-secondary:hover:not(:disabled) {
    background: var(--accent);
  }
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.setting-copy label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.setting-copy p {
  font-size: 11px;
  color: var(--muted-foreground);
  line-height: 1.3;
  margin-top: 2px;
}

.divider {
  height: 1px;
  margin: 0 14px;
  background: var(--border);
}

.select-wrap {
  position: relative;
  width: 140px;
  flex: none;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 30px;
  padding: 0 28px 0 10px;
  border-radius: var(--radius-control);
  border: 1px solid var(--control-border);
  background: var(--secondary);
  color: var(--foreground);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.select:focus {
  outline: none;
}

.select:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

@media (hover: hover) and (pointer: fine) {
  .select:hover {
    background: var(--accent);
  }
}

.select-chevron {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 11px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* Minimal creator attribution pill (bottom-left) */
.credit-pill {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(18, 13, 11, 0.52);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.credit-pill strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 500;
}

.credit-arrow {
  font-size: 11px;
  opacity: 0.7;
}

.credit-pill:hover {
  background: rgba(18, 13, 11, 0.72);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.94);
}

/* Floating Elevated macOS-Style Minimal Download Dock (nested radii: 8px pad + 10px inner = 18px outer) */
.macos-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 18px;
  background: var(--dock-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--dock-shadow);
}

.dock-app-btn {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: none;
  background: var(--dock-tile-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), background-color 120ms ease;
}

.dock-app-btn:active {
  transform: scale(0.94);
}

.dock-app-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.dock-dot {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dock-dot);
  opacity: 0;
  transition: opacity 150ms ease;
}

.dock-app-btn.is-open .dock-dot {
  opacity: 1;
}

.dock-sep {
  width: 1px;
  height: 22px;
  background: var(--dock-sep);
}

.dock-download-primary {
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), inset 0 0.5px 0 rgba(255, 255, 255, 0.22);
  transition: background-color 120ms ease, transform 140ms var(--ease-out);
}

.dock-download-primary > span {
  text-box: trim-both cap alphabetic;
}

.dock-download-primary:active {
  transform: scale(0.97);
}

.dock-download-primary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.dock-size {
  font-size: 11.5px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.dock-platforms-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--dock-border);
  background: var(--dock-tile-bg);
  color: var(--dock-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, transform 140ms var(--ease-out);
}

.dock-platforms-btn > span {
  text-box: trim-both cap alphabetic;
}

.dock-platforms-btn svg {
  transition: transform 180ms var(--ease-out);
}

.dock-platforms-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dock-platforms-btn:active {
  transform: scale(0.97);
}

.dock-platforms-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.dock-platforms-btn[aria-expanded="true"] {
  background: var(--dock-tile-hover);
}

@media (hover: hover) and (pointer: fine) {
  .dock-app-btn:hover {
    transform: translateY(-2px);
    background: var(--dock-tile-hover);
  }

  .dock-download-primary:hover {
    background: var(--primary-deep);
  }

  .dock-platforms-btn:hover {
    background: var(--dock-tile-hover);
  }
}

/* Downloads Popover Sheet above Dock (origin-aware scale from bottom dock trigger) */
.downloads-sheet {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 50;
  width: 440px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in oklch, var(--background) 96%, transparent);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--window-shadow);
  transform-origin: bottom center;
  opacity: 0;
  transform: translateX(-50%) translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.downloads-sheet[data-open="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sheet-title {
  font-size: 14px;
  font-weight: 600;
}

.sheet-sub {
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.sheet-close {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.sheet-platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.platform-group.is-detected {
  border-color: color-mix(in oklch, var(--primary) 55%, var(--border));
}

.platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.platform-name {
  font-size: 13px;
  font-weight: 600;
}

.platform-meta {
  font-size: 11px;
  color: var(--muted-foreground);
}

.platform-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-hint {
  margin-top: 8px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.platform-hint strong {
  color: var(--foreground);
  font-weight: 500;
}

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--control-border);
  background: var(--secondary);
  color: var(--foreground);
  text-decoration: none;
  transition: background-color 110ms ease, border-color 110ms ease, transform 140ms var(--ease-out);
}

.dl-row:active {
  transform: scale(0.985);
}

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

@media (hover: hover) and (pointer: fine) {
  .dl-row:hover {
    background: var(--accent);
    border-color: color-mix(in oklch, var(--primary) 40%, var(--control-border));
  }
}

.dl-row.is-pending {
  opacity: 0.55;
  pointer-events: none;
}

.dl-row-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dl-row-main strong {
  font-size: 12.5px;
  font-weight: 600;
}

.dl-row-file {
  font-size: 10.5px;
  color: var(--muted-foreground);
}

.dl-row-size {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--link);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sheet-note {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.sheet-note summary {
  cursor: pointer;
  color: var(--foreground);
  font-weight: 500;
}

.sheet-note p {
  margin-top: 6px;
}

.sheet-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.cmd-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--card);
  border: 1px solid var(--border);
}

.cmd-row code {
  padding: 0;
  border: none;
  background: transparent;
  overflow-x: auto;
  white-space: nowrap;
  user-select: text;
}

.cmd-copy-btn {
  flex: none;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--control-border);
  background: var(--secondary);
  color: var(--foreground);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, transform 140ms var(--ease-out);
}

.cmd-copy-btn:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .cmd-copy-btn:hover {
    background: var(--accent);
  }
}

/* Spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.spinner--small {
  width: 12px;
  height: 12px;
  border-width: 1.75px;
}

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

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .wallpaper-layer {
    transform: none;
    transition: opacity 240ms ease;
  }

  .mac-window,
  .downloads-sheet,
  .btn,
  .dock-app-btn,
  .dock-download-primary,
  .dock-platforms-btn,
  .dl-row {
    transition: opacity 150ms ease, background-color 120ms ease;
  }
}

@media (max-width: 860px) {
  .credit-pill {
    display: none;
  }

  .dock-platforms-btn span {
    display: none;
  }

  .dock-platforms-btn::before {
    content: "All OS";
  }
}
