.desktop {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Golden Gate Bridge inspired living wallpaper */
.wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0d1824;
}

.wallpaper-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 55% 18%, #f0a060 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 20% 30%, #6b8cae 0%, transparent 50%),
    linear-gradient(180deg, #1e3348 0%, #4a5f78 28%, #c56a38 58%, #6b3a2a 78%, #132838 100%);
  animation: sky-breathe 24s ease-in-out infinite alternate;
}

.wallpaper-bridge {
  position: absolute;
  inset: 0;
  background-image: url("../assets/wallpapers/bridge.svg");
  background-size: cover;
  background-position: center 62%;
  opacity: 0.92;
  filter: contrast(1.05) saturate(1.08);
}

.wallpaper-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 50% at 50% 78%, rgba(210, 222, 234, 0.38), transparent 65%),
    linear-gradient(90deg, rgba(180, 200, 220, 0.12), transparent 40%, rgba(180, 200, 220, 0.15));
  animation: fog-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.wallpaper-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(180deg, transparent, rgba(18, 40, 58, 0.55)),
    repeating-linear-gradient(
      90deg,
      transparent 0 40px,
      rgba(255, 255, 255, 0.03) 40px 42px
    );
  animation: water-shimmer 8s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

.wallpaper-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 1;
}

.wallpaper-sky,
.wallpaper-bridge,
.wallpaper-fog,
.wallpaper-water,
.wallpaper-glow {
  z-index: 0;
}

.glass-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Full lens output — was opacity .55 + screen blend (killed refraction) */
  opacity: 1;
  mix-blend-mode: normal;
}

html.gg-liq-live .wallpaper {
  /* Canvas redraws wallpaper + glass; hide double paint */
  opacity: 0;
}

/* Menu bar — Tahoe/Sonoma: transparent chrome, text floats on wallpaper */
.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menubar-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 10px;
  border-radius: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.menubar .gg-sf {
  display: block;
  object-fit: contain;
  filter: invert(1) brightness(0.95);
  opacity: 0.9;
}
html[data-theme="light"] .menubar .gg-sf {
  filter: none;
  opacity: 0.75;
}
.menubar.liquid-glass::before {
  display: none;
}

.menubar-left,
.menubar-right {
  display: flex;
  align-items: center;
  gap: 1px;
  height: 100%;
}

.menu-apple,
.menu-app-name,
.menu-items button,
.status-item {
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  transition: background 0.14s ease;
}

.menu-apple {
  padding: 0 8px;
}

.menu-app-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.menu-items {
  display: flex;
  gap: 0;
}

.menu-apple:hover,
.menu-app-name:hover,
.menu-items button:hover,
.status-item:hover {
  /* Slight translucent glass wash on hover — not a solid pill */
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .menubar {
  color: #1d1d1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
html[data-theme="light"] .menu-apple,
html[data-theme="light"] .menu-app-name,
html[data-theme="light"] .menu-items button,
html[data-theme="light"] .status-item {
  color: #1d1d1f;
}
html[data-theme="light"] .menu-apple:hover,
html[data-theme="light"] .menu-app-name:hover,
html[data-theme="light"] .menu-items button:hover,
html[data-theme="light"] .status-item:hover {
  background: rgba(255, 255, 255, 0.42);
}

.status-item.clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 128px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 500;
}

.status-item.battery span {
  font-size: 12px;
}

.dropdown-menu {
  position: absolute;
  top: calc(var(--menubar-h) + 2px);
  left: 6px;
  z-index: 250;
  min-width: 248px;
  padding: 5px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  animation: pop-in 0.2s var(--ease-out);
}

.dropdown-menu button {
  text-align: left;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text);
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.dropdown-menu button .gg-kbd {
  opacity: 0.55;
  font-size: 12px;
  margin-left: auto;
}

.dropdown-menu button:hover {
  background: var(--accent);
  color: #fff;
}

.dropdown-menu button:hover .gg-kbd {
  color: #fff;
  opacity: 0.85;
}

.menu-sep {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .menu-sep {
  background: rgba(0, 0, 0, 0.1);
}

.menu-item-chevron::after {
  content: "›";
  opacity: 0.45;
  font-size: 14px;
  margin-left: auto;
}

/* Wi-Fi menu — right-aligned under status area */
.wifi-menu {
  left: auto;
  right: 72px;
  min-width: 260px;
}

.wifi-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.wifi-ssid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.wifi-ssid-name {
  flex: 1;
  text-align: left;
}

.wifi-ssid-meta {
  font-size: 11px;
  opacity: 0.75;
}

.wifi-ssid.active .wifi-ssid-name {
  font-weight: 650;
}

.wifi-menu.wifi-off .wifi-ssid {
  opacity: 0.35;
  pointer-events: none;
}

/* Control Center */
.control-center {
  position: absolute;
  top: calc(var(--menubar-h) + 6px);
  right: 10px;
  z-index: 250;
  width: 320px;
  padding: 14px;
  border-radius: 16px;
  animation: pop-in 0.22s var(--ease-out);
}

.cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-tile {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc-tile.wide {
  grid-column: 1 / -1;
}

.cc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cc-row + .cc-row {
  margin-top: 8px;
}

.cc-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 560;
  transition: background 0.2s;
}

.cc-toggle.active {
  background: var(--accent);
  color: #fff;
}

.cc-icon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.cc-slider-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.cc-tile input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.glass-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.glass-slider-row input {
  flex: 1;
}

/* Desktop surface */
.desktop-surface {
  position: absolute;
  inset: var(--menubar-h) 0 0 0;
}

.desktop-icons {
  position: absolute;
  top: auto;
  bottom: calc(var(--dock-h) + 22px);
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 5;
}

.desk-icon {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.15s var(--ease-spring), background 0.15s;
}

.desk-icon span {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
  line-height: 1.25;
  max-width: 80px;
  word-break: break-word;
}

.desk-icon img {
  border-radius: 0;
  object-fit: contain;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s var(--ease-spring);
}

.desk-icon:hover img {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4)) brightness(1.04);
}

.desk-icon:active img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(0.96);
}

.desk-icon:focus-visible,
.desk-icon.selected {
  background: rgba(10, 132, 255, 0.28);
}

.windows-root {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.windows-root > .window {
  pointer-events: auto;
}

/* Dock */
.dock-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Only slide away when autohide is enabled AND not revealed */
.dock-wrap.autohide-enabled:not(.revealed) {
  transform: translateY(calc(100% - 4px));
}
.dock-wrap.revealed,
.dock-wrap:focus-within {
  transform: translateY(0);
  pointer-events: none;
}
.dock-hotzone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  z-index: 179;
  pointer-events: none;
}
html.dock-autohide .dock-hotzone {
  pointer-events: auto;
}
.dock {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 10px 8px;
  border-radius: 20px;
  animation: dock-rise 0.6s var(--ease-out) 0.15s both;
  /* WinLiqGlass draws the dock lens; keep HTML shell clear */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.12),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.45);
}

.dock-item {
  position: relative;
  width: var(--dock-icon, 48px);
  height: var(--dock-icon, 48px);
  display: grid;
  place-items: center;
  transition: transform 70ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom center;
  will-change: transform;
}

.dock-item img,
.dock-item .dock-fallback {
  width: calc(var(--dock-icon, 48px) - 4px);
  height: calc(var(--dock-icon, 48px) - 4px);
  /* Raster icons already include squircle alpha — don't double-mask */
  border-radius: 0;
  object-fit: contain;
  transition: transform 0.16s var(--ease-spring);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
}

.dock-item.drop-target {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.dock-item.open .dot {
  box-shadow: none;
}

/* Neighbor magnification is JS-driven — never stack CSS scale on top (jitter) */
.dock:not(.magnify-on) .dock-item:hover {
  filter: brightness(1.05);
}
.dock-item:active img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28)) brightness(0.96);
}

.dock-item .tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(40, 40, 42, 0.88);
  backdrop-filter: blur(14px);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  color: #fff;
}

.dock-item:hover .tooltip {
  opacity: 1;
}

.dock-item .dot {
  position: absolute;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1d1d1f;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.35);
  opacity: 0;
}

.dock-item.open .dot {
  opacity: 1;
}

.dock-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  z-index: 3;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.dock-item.lp-active {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}

html[data-theme="dark"] .dock-item.lp-active,
:root:not([data-theme="light"]) .dock-item.lp-active {
  background: rgba(255, 255, 255, 0.14);
}

.dock-sep {
  width: 1px;
  height: 36px;
  margin: 0 5px 8px;
  background: rgba(255, 255, 255, 0.28);
  align-self: center;
}

html[data-theme="light"] .dock-sep {
  background: rgba(0, 0, 0, 0.18);
}

/* Spotlight */
.spotlight {
  position: absolute;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: start center;
  padding-top: 16vh;
  /* Spotlight is its own glass lens; the desktop behind stays sharp. */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.spotlight-stage {
  width: min(720px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  position: relative;
}

.spotlight-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: filter 0.28s ease, opacity 0.28s ease;
}

.spotlight.folder-open .spotlight-row {
  filter: none;
  opacity: 0.55;
  pointer-events: none;
}

.spotlight-panel {
  flex: 1;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  animation: spotlight-in 0.28s var(--ease-out);
  /* Clear shell — refraction from WinLiqGlass canvas */
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.55) !important;
}

.spotlight-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  color: rgba(60, 60, 67, 0.55);
}

.spotlight-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.spotlight-search input::placeholder {
  color: rgba(60, 60, 67, 0.45);
}

.spotlight-results {
  max-height: 340px;
  overflow: auto;
  padding: 6px;
}

.spot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  /* Rectangular hover — not a squircle conformal */
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: #1d1d1f;
  background: transparent;
  transition: background 0.12s ease;
}

.spot-row:hover,
.spot-row.active {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}

.spot-row img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.18));
}

.spot-row .spot-kind {
  margin-left: auto;
  font-size: 11px;
  color: rgba(60, 60, 67, 0.45);
}

.spotlight-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
  flex: 0 0 auto;
}

.spot-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.45);
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.65) !important;
  transition: transform 0.14s ease, background 0.14s ease;
}

.spot-action:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.spot-action:active {
  filter: brightness(0.96);
}

.spot-action img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.spotlight-folder {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  width: min(420px, 88vw);
  z-index: 2;
  border-radius: 18px;
  padding: 10px;
  animation: spotlight-in 0.26s var(--ease-out);
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0.5px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32) !important;
}

.spotlight-folder.hidden { display: none !important; }

.spotlight-folder-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.spotlight-folder-back {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  color: #1d1d1f;
}
.spotlight-folder-back:hover {
  background: rgba(0, 0, 0, 0.08);
}

.spotlight-folder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
}

.spotlight-folder-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 11px;
  color: #1d1d1f;
  background: transparent;
}
.spotlight-folder-grid button:hover {
  background: rgba(0, 0, 0, 0.08);
}
.spotlight-folder-grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.22));
}

/* Notifications — no scale jitter */
.notification-center {
  position: absolute;
  top: calc(var(--menubar-h) + 12px);
  right: 16px;
  z-index: 220;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 320px;
  pointer-events: none;
}

.notif {
  pointer-events: auto;
  padding: 12px 14px;
  border-radius: 14px;
  animation: notif-in 0.4s var(--ease-out);
}

.notif-app {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
}

.notif-body {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Siri */
.siri-orb {
  position: absolute;
  inset: 0;
  z-index: 320;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 120px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.siri-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  bottom: 200px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #5e5ce6, #64d2ff, #bf5af2, #ff375f, #5e5ce6);
  filter: blur(40px);
  opacity: 0.55;
  animation: siri-spin 6s linear infinite;
}

.siri-core {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #64d2ff 40%, #5e5ce6 70%, #bf5af2);
  box-shadow: 0 0 60px rgba(100, 210, 255, 0.5);
  animation: siri-pulse 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.siri-prompt {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.siri-chip {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(420px, 90vw);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  gap: 8px;
  overflow: hidden;
}

.siri-chip input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
}

.siri-chip button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.siri-reply {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  width: min(420px, 90vw);
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dim);
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  animation: fade-up 0.3s var(--ease-out);
}

@media (max-width: 720px) {
  .menu-items { display: none; }
  .desktop-icons { display: none; }
  .dock-item { width: 44px; height: 44px; }
  .dock-item img { width: 40px; height: 40px; }
  .window { min-width: 280px; }
  :root { --sidebar-width: 160px; }
}

/* Settings: menu bar autohide */
html.gg-menubar-autohide .menubar {
  transform: translateY(calc(-1 * var(--menubar-h) + 2px));
  transition: transform 0.22s var(--ease-out);
}
html.gg-menubar-autohide .menubar:hover,
html.gg-menubar-autohide .menubar:focus-within {
  transform: translateY(0);
}

/* Settings: light appearance — stronger than transparent-only chrome */
html[data-theme="light"] .menubar {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.18)
  ) !important;
  color: #1d1d1f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .dock {
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.7);
}

/* Dock side positions (settings) */
.dock-wrap.dock-pos-left,
.dock-wrap.dock-pos-right {
  left: 0;
  right: auto;
  top: var(--menubar-h);
  bottom: 0;
  width: calc(var(--dock-icon, 48px) + 28px);
  padding: 0 0 0 6px;
  align-items: center;
  justify-content: center;
}
.dock-wrap.dock-pos-right {
  left: auto;
  right: 0;
  padding: 0 6px 0 0;
}
.dock-wrap.dock-pos-left .dock,
.dock-wrap.dock-pos-right .dock {
  flex-direction: column;
  align-items: center;
}
.dock-wrap.dock-pos-left.autohide-enabled:not(.revealed) {
  transform: translateX(calc(-100% + 4px));
}
.dock-wrap.dock-pos-right.autohide-enabled:not(.revealed) {
  transform: translateX(calc(100% - 4px));
}
