@font-face {
  font-family: 'ZenithScript';
  src: url('../assets/fonts/sacramento.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.aether-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.wallpaper-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.45s var(--ease-smooth), transform 0.6s var(--ease-spring);
  z-index: 0;
}

.ambient-wallpaper-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.brightness-dimmer {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: opacity 0.2s ease;
}

/* Glass Surfaces */
.glass-bar {
  background: var(--glass-menubar);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.glass-panel,
.glass-popover,
.liquid-glass {
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--glass-highlight);
}

.glass-dock {
  background: var(--glass-dock);
  backdrop-filter: blur(38px) saturate(200%);
  -webkit-backdrop-filter: blur(38px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .glass-dock {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.18),
    0 2px 10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* Menu Bar */
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  height: calc(var(--menubar-height) + var(--safe-top));
  padding-top: var(--safe-top);
  padding-left: calc(10px + var(--safe-left));
  padding-right: calc(10px + var(--safe-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  z-index: 900;
  font-size: 13px;
  font-weight: 500;
}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.menu-bar-left,
.menu-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-pill {
  background: transparent;
  border: none;
  border-radius: 7px;
  height: 22px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.14s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-pill:hover,
.menu-pill.active {
  background: var(--glass-bg-subtle);
}

.menu-brand-btn {
  padding: 0 8px;
}

.brand-glyph {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-active-app {
  font-weight: 700;
  padding: 0 8px 0 4px;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-menu-items {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.menu-running-apps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  margin-left: 4px;
  border-left: 1px solid var(--divider);
  flex-shrink: 0;
}

.menu-running-app-pill {
  background: var(--glass-bg-subtle);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  padding: 0 9px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.menu-running-app-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.menu-running-app-pill.minimized {
  opacity: 0.65;
}

.menu-running-app-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
}

.menu-icon-btn {
  width: 28px;
  padding: 0;
  justify-content: center;
}

.menu-icon-btn svg {
  width: 15px;
  height: 15px;
}

.menu-space-pill {
  font-size: 11.5px;
  background: var(--glass-bg-subtle);
  padding: 0 8px;
}

.menu-clock-btn {
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.notif-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menu Dropdown & Context Menu */
.menu-dropdown,
.context-menu {
  position: fixed;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  z-index: 1200;
  animation: popIn 0.16s var(--ease-spring);
}

.menu-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 13px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.menu-item:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.menu-item:disabled {
  opacity: 0.4;
  cursor: default;
}

.menu-item-shortcut {
  font-size: 11px;
  opacity: 0.65;
}

.menu-divider {
  height: 1px;
  margin: 5px 6px;
  background: var(--divider);
}

/* Desktop Surface & Draggable Icons */
.desktop-area {
  position: absolute;
  top: calc(var(--menubar-height) + var(--safe-top));
  left: var(--safe-left);
  right: var(--safe-right);
  bottom: 0;
  z-index: 10;
  overflow: hidden;
}

.desktop-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.desktop-icon {
  position: absolute;
  width: 84px;
  padding: 8px 4px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  touch-action: none;
  transition: background 0.14s ease, transform 0.12s ease;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.11);
}

.desktop-icon.selected {
  background: rgba(10, 132, 255, 0.34);
  outline: 1px solid rgba(255, 255, 255, 0.32);
}

.desktop-icon.dragging {
  opacity: 0.85;
  transform: scale(1.06);
  z-index: 40;
}

.desktop-icon-art {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.desktop-icon-art svg {
  width: 48px;
  height: 48px;
}

.desktop-icon-label {
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dock (Bottom / Left / Right) */
.dock-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(10px + var(--safe-bottom));
  display: flex;
  justify-content: center;
  padding: 0 12px;
  z-index: 950;
  pointer-events: none;
  transition: transform 0.28s var(--ease-spring), opacity 0.25s ease;
}

.dock-container.auto-hidden {
  transform: translateY(calc(100% + 16px));
  opacity: 0.15;
}

.dock-container.dock-pos-left {
  top: calc(var(--menubar-height) + var(--safe-top) + 10px);
  bottom: calc(10px + var(--safe-bottom));
  left: calc(10px + var(--safe-left));
  right: auto;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.dock-container.dock-pos-right {
  top: calc(var(--menubar-height) + var(--safe-top) + 10px);
  bottom: calc(10px + var(--safe-bottom));
  left: auto;
  right: calc(10px + var(--safe-right));
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.dock-container.dock-pos-left.auto-hidden {
  transform: translateX(calc(-100% - 16px));
}

.dock-container.dock-pos-right.auto-hidden {
  transform: translateX(calc(100% + 16px));
}

.dock {
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 22px;
  max-width: calc(100vw - 24px - var(--safe-left) - var(--safe-right));
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-container.dock-pos-left .dock,
.dock-container.dock-pos-right .dock {
  flex-direction: column;
  align-items: center;
  max-width: none;
  max-height: calc(100vh - var(--menubar-height) - var(--safe-top) - var(--safe-bottom) - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 8px;
}

.dock::-webkit-scrollbar {
  display: none;
}

.dock-item {
  position: relative;
  width: var(--dock-icon-size, 48px);
  height: var(--dock-icon-size, 48px);
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), outline-color 0.15s ease, background 0.15s ease;
}

.dock-item svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

@media (hover: hover) {
  .dock-container:not(.no-magnify) .dock-item:hover {
    transform: translateY(-8px) scale(1.18);
  }
  .dock-container.dock-pos-left:not(.no-magnify) .dock-item:hover {
    transform: translateX(6px) scale(1.14);
  }
  .dock-container.dock-pos-right:not(.no-magnify) .dock-item:hover {
    transform: translateX(-6px) scale(1.14);
  }
}

.dock-item.drag-over,
.desktop-icon.drag-over {
  outline: 2px solid var(--accent);
  background: rgba(10, 132, 255, 0.28);
  transform: scale(1.08);
}

.dock-item:active {
  transform: scale(0.92);
}

.dock-item.bouncing {
  animation: dockBounce 0.55s var(--ease-spring);
}

.dock-indicator {
  position: absolute;
  bottom: -6px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--text-primary);
  opacity: 0.85;
}

.dock-container.dock-pos-left .dock-indicator {
  bottom: auto;
  left: -5px;
}

.dock-container.dock-pos-right .dock-indicator {
  bottom: auto;
  right: -5px;
}

.dock-divider {
  width: 1px;
  height: 36px;
  margin: 0 2px;
  background: var(--divider);
  align-self: center;
  flex-shrink: 0;
}

.dock-container.dock-pos-left .dock-divider,
.dock-container.dock-pos-right .dock-divider {
  width: 36px;
  height: 1px;
  margin: 2px 0;
}

/* Stage Manager Strip */
.stage-manager-rail {
  position: absolute;
  top: 10px;
  left: 8px;
  bottom: 92px;
  width: 112px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  pointer-events: none;
  padding: 2px;
}

.stage-manager-rail::-webkit-scrollbar {
  display: none;
}

.stage-manager-pill {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
  opacity: 0.86;
}

.stage-manager-pill:hover {
  opacity: 1;
  transform: translateX(3px);
  border-color: var(--accent);
}

.stage-manager-pill.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.stage-manager-pill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.stage-manager-pill-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.stage-manager-pill-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0 3px;
  border-radius: 4px;
}

.stage-manager-pill-close:hover {
  color: var(--danger);
  background: rgba(255, 69, 58, 0.14);
}

.stage-manager-pill-title {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-manager-pill-state {
  font-size: 9.5px;
  color: var(--text-muted);
}

.stage-manager-pill.dimmed {
  opacity: 0.45;
}

.stage-groups-bar {
  pointer-events: auto;
  background: var(--glass-bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(22px);
}

.stage-groups-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stage-group-add,
.stage-group-mini {
  border: 1px solid var(--divider);
  background: var(--surface-input);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 10px;
  padding: 1px 6px;
  cursor: pointer;
}

.stage-group-mini.danger {
  color: var(--danger);
}

.stage-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.stage-group-chip {
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
}

.stage-group-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.stage-group-select {
  margin-top: 2px;
  width: 100%;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid var(--divider);
  background: var(--surface-input);
  color: var(--text-primary);
}

@media (max-width: 759px) {
  .stage-manager-rail {
    display: none !important;
  }
}

.dock-tooltip {
  position: fixed;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--glass-bg-elevated);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  z-index: 1200;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -100%);
  white-space: nowrap;
}

/* Control Center & Notification Center */
.control-center {
  position: fixed;
  top: calc(var(--menubar-height) + var(--safe-top) + 8px);
  right: calc(10px + var(--safe-right));
  width: min(344px, calc(100vw - 20px));
  max-height: calc(100vh - var(--menubar-height) - var(--safe-top) - var(--safe-bottom) - 88px);
  max-height: calc(100dvh - var(--menubar-height) - var(--safe-top) - var(--safe-bottom) - 88px);
  border-radius: 20px;
  padding: 0 14px 14px;
  z-index: 1100;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) rgba(148, 163, 184, 0.14);
  animation: popIn 0.2s var(--ease-spring);
}

.control-center::-webkit-scrollbar {
  width: 9px;
}

.control-center::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  margin: 12px 0;
}

.control-center::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.58);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 44px;
}

.control-center::-webkit-scrollbar-thumb:hover,
.control-center::-webkit-scrollbar-thumb:active {
  background: var(--accent);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.cc-sticky-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 0 8px;
  margin-bottom: 6px;
  background: var(--glass-bg-elevated);
  border-bottom: 1px solid var(--divider);
}

.cc-scroll-slider-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  font-size: 11px;
  color: var(--text-secondary);
}

.cc-scroll-slider-bar input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.cc-card {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-card.span-2 {
  grid-column: span 2;
}

.cc-toggle-btn {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.cc-circle-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--glass-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

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

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

.cc-toggle-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.cc-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.cc-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.cc-wallpaper-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cc-wall-thumb {
  height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cc-wall-thumb.active {
  border-color: var(--accent);
  transform: scale(1.03);
}

/* Notification Center */
.notification-center {
  position: fixed;
  top: calc(var(--menubar-height) + var(--safe-top) + 8px);
  right: calc(10px + var(--safe-right));
  width: min(352px, calc(100vw - 20px));
  max-height: calc(100vh - var(--menubar-height) - var(--safe-top) - 96px);
  border-radius: 20px;
  padding: 14px;
  z-index: 1100;
  overflow-y: auto;
  animation: popIn 0.2s var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nc-widget-card {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 12px;
}

.nc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.nc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nc-item {
  background: var(--surface-card);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.nc-item-body {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.nc-item-time {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Spotlight, Launchpad, Mission Control */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(14vh + var(--safe-top));
  z-index: 1500;
}

.spotlight-modal {
  width: min(620px, calc(100vw - 28px));
  border-radius: 18px;
  overflow: hidden;
  animation: popIn 0.18s var(--ease-spring);
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}

.spotlight-search-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 500;
}

.spotlight-kbd {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--glass-bg-subtle);
  color: var(--text-secondary);
}

.spotlight-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-row {
  width: 100%;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.spotlight-row:hover,
.spotlight-row.selected {
  background: var(--accent);
  color: #fff;
}

.spotlight-row-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotlight-row-icon svg {
  width: 26px;
  height: 26px;
}

.spotlight-row-meta {
  flex: 1;
  min-width: 0;
}

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

.spotlight-row-sub {
  font-size: 11.5px;
  opacity: 0.72;
}

/* Launchpad */
.launchpad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.56);
  backdrop-filter: blur(42px) saturate(160%);
  -webkit-backdrop-filter: blur(42px) saturate(160%);
  z-index: 1450;
  padding: calc(var(--menubar-height) + var(--safe-top) + 28px) 24px calc(92px + var(--safe-bottom));
  overflow-y: auto;
  animation: fadeIn 0.2s ease;
}

.launchpad-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.launchpad-search-wrap {
  position: relative;
  width: min(300px, 100%);
  display: flex;
  align-items: center;
}

.launchpad-search-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  display: inline-flex;
}

.launchpad-search {
  width: 100%;
  padding: 8px 16px 8px 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  color: #fff;
  font-size: 13.5px;
  outline: none;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.launchpad-search:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
}

.launchpad-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 24px 18px;
}

.launchpad-app {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.16s var(--ease-spring), background 0.15s ease;
}

.launchpad-app:hover {
  transform: scale(1.07);
  background: rgba(255, 255, 255, 0.1);
}

.launchpad-app svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

.launchpad-app-name {
  font-size: 12.5px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* Mission Control */
.mission-control-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 1440;
  padding: calc(var(--menubar-height) + var(--safe-top) + 16px) 24px calc(28px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.2s ease;
}

.mc-spaces-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mc-space-chip {
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.15s ease;
}

.mc-space-chip.active {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.45);
}

.mc-windows-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-content: start;
}

.mc-window-card {
  background: var(--glass-bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.16s var(--ease-spring), border-color 0.15s ease;
}

.mc-window-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

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

.mc-window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.mc-window-title svg {
  width: 20px;
  height: 20px;
}

.mc-window-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.mc-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* Lock Screen */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.38s ease, transform 0.42s var(--ease-spring);
}

.lock-screen.unlocked {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.lock-backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--lock-wallpaper, none);
  background-size: cover;
  background-position: center;
  filter: brightness(0.86) saturate(1.08);
  transform: scale(1.02);
}

.lock-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: min(640px, 88vh);
  padding: 28px 20px 24px;
  color: #fff;
  text-align: center;
}

.lock-time-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lock-date {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.94;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.lock-time {
  font-size: clamp(64px, 11vw, 96px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.38);
}

.lock-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lock-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.42);
}

.lock-username {
  font-size: 16.5px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.lock-auth-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock-passcode-input {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  outline: none;
  width: 186px;
}

.lock-passcode-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.btn-unlock {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-unlock.passcode-mode {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

.btn-unlock.passcode-mode .btn-unlock-label {
  display: none;
}

.btn-unlock:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.lock-error {
  color: #ff6961;
  font-size: 12.5px;
  font-weight: 600;
}

/* Confirmation Modal, App Publisher & Inter-App Picker Backdrops */
.aether-confirm-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-top)) calc(14px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(14px + var(--safe-left));
  z-index: 4100;
  animation: fadeIn 0.14s ease;
}

.confirm-modal {
  width: min(380px, calc(100vw - 32px));
  border-radius: 18px;
  padding: 20px;
  color: var(--text-primary);
  animation: popIn 0.18s var(--ease-spring);
}

.confirm-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.confirm-message {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.toast-container {
  position: fixed;
  top: calc(var(--menubar-height) + var(--safe-top) + 12px);
  right: calc(12px + var(--safe-right));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}

.toast-banner {
  pointer-events: auto;
  width: min(320px, calc(100vw - 24px));
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: var(--shadow-panel);
  animation: slideInRight 0.24s var(--ease-spring);
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
}

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

/* Shared Buttons */
.btn {
  border: none;
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  transition: opacity 0.14s ease, transform 0.12s ease, background 0.14s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--glass-bg-subtle);
  color: var(--text-primary);
  border: 1px solid transparent;
}

html[data-theme="light"] .btn-secondary {
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.09);
}

.btn-secondary:hover {
  background: rgba(128, 138, 158, 0.24);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

/* Animations */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes dockBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px); }
  70% { transform: translateY(-5px); }
}

/* Desktop Widgets Layer */
.desktop-widgets {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.desktop-widget {
  position: absolute;
  pointer-events: auto;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.desktop-widget:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
  cursor: grab;
  touch-action: none;
}

.widget-head:active {
  cursor: grabbing;
}

.widget-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 3px;
}

.widget-close:hover {
  color: var(--danger);
}

.widget-body {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  overflow: hidden;
}

.widget-resize {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  touch-action: none;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  opacity: 0.45;
  border-bottom-right-radius: 3px;
}

/* Mobile / Android Responsive Tweaks */
@media (max-width: 720px) {
  .app-menu-items {
    display: none;
  }
  .menu-active-app {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .menu-space-pill {
    max-width: none;
    overflow: visible;
  }
  .menu-clock-btn {
    padding: 0 7px;
    font-size: 11.5px;
  }
  .dock {
    padding: 7px 9px;
    gap: 6px;
    border-radius: 18px;
  }
  .dock-item {
    width: 44px;
    height: 44px;
  }
  .desktop-icon {
    width: 74px;
  }
  .desktop-icon-art {
    width: 44px;
    height: 44px;
  }
  .desktop-icon-art svg {
    width: 42px;
    height: 42px;
  }
  .menu-profile-pill {
    max-width: none;
    padding: 0 7px;
    font-size: 11.5px;
  }
  .menu-net-pill {
    display: none;
  }
  .menu-net-pill.offline {
    display: inline-flex;
  }
}

/* Zenith OS Focus Clutter Hiding & Menu Pills */
.focus-hidden,
html[data-focus="active"][data-focus-clutter="hide"] #desktop-icons,
html[data-focus="active"][data-focus-clutter="hide"] #desktop-widgets {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease;
}

.menu-focus-pill {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.menu-net-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 7px;
  color: #30d158;
  background: rgba(48, 209, 88, 0.14);
  cursor: pointer;
}

.menu-net-pill.offline {
  color: #ffd60a;
  background: rgba(255, 159, 10, 0.22);
}

.menu-profile-pill {
  background: var(--glass-bg-subtle);
  font-size: 11.5px;
  white-space: nowrap;
}

.profile-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.profile-dot.google {
  background: #30d158;
}

.lock-signin-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Launchpad Categories & Quick Actions */
.launchpad-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.launchpad-cat-pill {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.launchpad-cat-pill.active {
  background: var(--accent);
  border-color: transparent;
}

.launchpad-app-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.launchpad-app-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-top: 2px;
}

.launchpad-app-wrap:hover .launchpad-app-actions {
  opacity: 1;
}

.launchpad-mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
}

/* Alt+Tab Switcher HUD */
.switcher-hud {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1650;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-panel);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  gap: 12px;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
}

.switcher-card {
  width: 108px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: var(--surface-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.switcher-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.switcher-card svg {
  width: 44px;
  height: 44px;
}

.switcher-card-title {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modals: Widget Studio, Quick Share, Welcome Wizard */
.widget-studio-modal,
.quickshare-modal,
.welcome-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: 82vh;
  border-radius: 20px;
  padding: 20px;
  overflow-y: auto;
  animation: popIn 0.18s var(--ease-spring);
}

/* Lock Screen Profile Switcher */
.lock-local-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.lock-profiles-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.lock-profile-chip {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lock-profile-chip.active {
  background: var(--accent);
  border-color: transparent;
}

/* Inter-App Connection, Picker & Handoff Modals */
.window-connect-btn {
  width: auto;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
  gap: 3px;
}

.interconnect-modal {
  width: min(640px, calc(100vw - 24px));
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 20px;
}

.interconnect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 8px;
}

.interconnect-target-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, border-color 0.14s ease, background 0.14s ease;
}

.interconnect-target-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.interconnect-target-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.interconnect-target-btn.companion .interconnect-target-icon {
  background: var(--surface-input);
  color: var(--text-secondary);
}

.interconnect-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 52vh;
  overflow-y: auto;
}

.interconnect-picker-list.photo-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 10px;
}

.picker-photo-card {
  border: 1px solid var(--divider);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.picker-photo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.picker-photo-card img {
  width: 100%;
  height: 98px;
  object-fit: cover;
  display: block;
}

.picker-photo-caption {
  padding: 7px 8px;
}

.picker-row-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--divider);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.picker-row-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.picker-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
  font-size: 12.5px;
  flex-wrap: wrap;
}

.connect-chip-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.connect-chip-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.connect-chip {
  border: 1px solid var(--divider);
  background: var(--surface-input);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.connect-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.desktop-icons.icons-user-hidden {
  display: none !important;
}

.dock-indicator.minimized {
  background: transparent;
  border: 1.5px solid var(--text-primary);
  opacity: 0.85;
}

/* Grouped Notification Center */
.nc-app-group {
  border: 1px solid var(--divider);
  border-radius: 13px;
  background: var(--surface-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
}

.nc-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.nc-group-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nc-group-icon svg {
  width: 18px;
  height: 18px;
}

/* Zenith Quick Look Modal */
.quicklook-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(5, 10, 20, 0.56);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quicklook-modal {
  width: min(860px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 40px));
  background: var(--surface-app);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quicklook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  background: var(--glass-bg-subtle);
  flex-wrap: wrap;
}

.quicklook-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.quicklook-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
}

.ql-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--surface-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.ql-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.quicklook-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quicklook-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.quicklook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--divider);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.ql-media-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.ql-media-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.ql-media-stage img.zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.25);
  transform-origin: top left;
}

.ql-iframe {
  flex: 1;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: #fff;
}

.ql-code-pre {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.ql-prose {
  padding: 10px 14px;
  line-height: 1.65;
  font-size: 14px;
}

.ql-csv-wrap {
  overflow: auto;
  border: 1px solid var(--divider);
  border-radius: 10px;
}

.ql-csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ql-csv-table th,
.ql-csv-table td {
  border: 1px solid var(--divider);
  padding: 6px 8px;
  text-align: left;
}

.ql-csv-table th {
  background: var(--surface-sidebar);
  font-weight: 700;
}

.ql-folder-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ql-folder-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ql-folder-hero svg {
  width: 48px;
  height: 48px;
}

.ql-folder-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ql-folder-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-card);
  font-size: 12.5px;
}

.ql-empty-card {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ql-big-icon svg {
  width: 64px;
  height: 64px;
}

/* Mission Control Saved Workspace Layouts Bar */
.mc-layouts-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-layout-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.mc-layout-restore,
.mc-layout-dup {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.mc-layout-dup {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 8px;
  opacity: 0.85;
}

.mc-layout-restore:hover,
.mc-layout-dup:hover {
  background: var(--accent);
}

/* Welcome Setup Wizard, Live Mini Preview & Continuity Modal */
.welcome-card-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.welcome-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--glass-bg-subtle);
  border: 1px solid var(--divider);
  transition: width 0.2s ease, background 0.2s ease;
}

.welcome-dot.done {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.welcome-dot.active {
  width: 22px;
  background: var(--accent);
  border-color: var(--accent);
}

.welcome-step-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.welcome-storage-warn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 214, 10, 0.45);
  background: rgba(255, 214, 10, 0.12);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-primary);
}

.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 6px;
  gap: 8px;
}

.welcome-orbit-badge {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0a84ff, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.35);
}

.welcome-hero-title {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.welcome-hero-sub {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.welcome-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.welcome-preview-stage {
  position: relative;
  height: 158px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wp-menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(15, 19, 28, 0.56);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.welcome-preview-stage.is-light .wp-menubar {
  background: rgba(248, 250, 253, 0.78);
  color: #0f172a;
}

.wp-window {
  width: min(220px, 78%);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(22, 25, 34, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.welcome-preview-stage.is-light .wp-window {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.14);
}

.wp-win-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(128, 138, 158, 0.22);
}

.wp-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.wp-win-title {
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  color: #e2e8f0;
}

.welcome-preview-stage.is-light .wp-win-title {
  color: #1e293b;
}

.wp-win-body {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wp-pill {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.wp-line {
  height: 6px;
  width: 90%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.wp-line.short {
  width: 58%;
}

.wp-dock {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(20, 24, 34, 0.56);
  backdrop-filter: blur(10px);
}

.welcome-preview-stage.is-light .wp-dock {
  background: rgba(255, 255, 255, 0.72);
}

.wp-dock-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
}

.welcome-preview-stage.is-light .wp-dock-icon {
  background: rgba(15, 23, 42, 0.26);
}

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

.welcome-essential-card {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-card);
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.welcome-essential-title {
  font-size: 13px;
  font-weight: 700;
}

.welcome-essential-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.continuity-app-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 720px) {
  .welcome-modal {
    padding: 16px;
    max-height: 88vh;
  }
  .welcome-essentials-grid {
    grid-template-columns: 1fr;
  }
  .mission-control-overlay {
    padding: calc(var(--menubar-height) + var(--safe-top) + 12px) 12px calc(20px + var(--safe-bottom));
  }
}

/* Full-screen Setup Assistant & Enhanced Shell Controls */
#welcome-overlay.setup-fullscreen {
  padding: 20px;
  z-index: 2600;
  background: radial-gradient(circle at 20% 20%, rgba(10, 132, 255, 0.28), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.25), transparent 50%),
              linear-gradient(145deg, #070d19 0%, #0f172a 55%, #111827 100%);
  backdrop-filter: blur(28px) saturate(160%);
}

:root[data-theme="light"] #welcome-overlay.setup-fullscreen {
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(129, 140, 248, 0.24), transparent 50%),
              linear-gradient(145deg, #e0f2fe 0%, #eef2ff 52%, #f8fafc 100%);
}

#welcome-overlay.setup-fullscreen .welcome-modal {
  width: min(740px, 95vw);
  max-height: 92vh;
  padding: 26px 28px;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.setup-intro-logo {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent, #0a84ff), #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(10, 132, 255, 0.4);
  animation: setupLogoFloat 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes setupLogoFloat {
  from { opacity: 0; transform: scale(0.84) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

:root[data-motion="reduced"] .setup-intro-logo {
  animation: none;
}

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

.setup-list-scroll {
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.setup-choice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--divider);
  background: var(--surface-input);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-size: 12.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.setup-choice-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
}

.setup-perm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: var(--surface-card);
}

.widget-config-btn {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.widget-config-btn:hover {
  background: var(--surface-input);
  color: var(--text-primary);
}

.desktop-widget.widget-style-solid {
  background: var(--surface-app) !important;
  backdrop-filter: none !important;
}

.desktop-widget.widget-style-tinted {
  border-color: var(--accent) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--accent-soft);
}

@media (max-width: 720px) {
  .setup-grid-2 {
    grid-template-columns: 1fr;
  }
  #welcome-overlay.setup-fullscreen .welcome-modal {
    padding: 18px;
  }
}

/* MacBook-Style Edge-to-Edge "hello" Welcome Screen */
#welcome-overlay.welcome-hello-mode {
  padding: 0 !important;
  align-items: stretch;
  justify-content: stretch;
  background: #070d16 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#welcome-overlay.welcome-hello-mode .welcome-modal {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.welcome-hello-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--safe-top)) calc(24px + var(--safe-right)) calc(36px + var(--safe-bottom)) calc(24px + var(--safe-left));
  overflow: hidden;
  isolation: isolate;
}

.welcome-hello-bg {
  position: absolute;
  inset: -24px;
  background-image:
    linear-gradient(180deg, rgba(19, 36, 61, 0.42) 0%, rgba(42, 48, 35, 0.28) 54%, rgba(10, 12, 16, 0.56) 100%),
    url('../assets/wallpapers/welcome-horizon.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(18px) saturate(108%) brightness(0.84);
  transform: scale(1.06);
  z-index: -2;
  pointer-events: none;
}

.welcome-hello-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(16, 22, 32, 0.08) 0%, rgba(6, 9, 14, 0.52) 100%);
  z-index: -1;
  pointer-events: none;
}

.welcome-hello-center {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(3vh);
}

.welcome-greeting-stage {
  width: 100%;
  min-height: clamp(128px, 24vh, 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.welcome-greeting-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1), filter 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, filter;
}

.welcome-greeting-item.is-exiting {
  opacity: 0;
  filter: blur(4px);
}

.hello-svg-word {
  width: min(88vw, 680px);
  height: clamp(104px, 20vh, 198px);
  overflow: visible;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.34));
}

.hello-svg-word text {
  font-family: 'ZenithScript', 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hello-svg-stroke {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.hello-svg-fill {
  fill: #ffffff;
  opacity: 0;
}

.welcome-greeting-item.is-writing .hello-svg-stroke {
  animation: helloSvgStroke 1.12s cubic-bezier(0.35, 0.04, 0.22, 1) forwards;
}

.welcome-greeting-item.is-writing .hello-svg-fill {
  animation: helloInkFill 1.12s cubic-bezier(0.35, 0.04, 0.22, 1) forwards;
}

.welcome-greeting-item.is-static .hello-svg-stroke {
  stroke-dashoffset: 0;
  opacity: 0.22;
}

.welcome-greeting-item.is-static .hello-svg-fill {
  opacity: 1;
  clip-path: none;
}

.welcome-greeting-unicode {
  display: inline-block;
  color: #ffffff;
  font-weight: 300;
  font-size: clamp(44px, 9.2vw, 114px);
  line-height: 1.35;
  letter-spacing: 0.015em;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.36);
  white-space: nowrap;
  padding: 0.14em 0.18em;
}

.welcome-greeting-item.script-arabic .welcome-greeting-unicode {
  font-size: clamp(48px, 10vw, 120px);
  line-height: 1.45;
  letter-spacing: 0;
}

.welcome-greeting-item.script-japanese .welcome-greeting-unicode,
.welcome-greeting-item.script-korean .welcome-greeting-unicode {
  font-size: clamp(38px, 8.2vw, 102px);
}

.welcome-greeting-item.write-ltr.is-writing .welcome-greeting-unicode {
  animation: helloWriteLtr 1.08s cubic-bezier(0.35, 0.05, 0.22, 1) forwards;
}

.welcome-greeting-item.write-rtl.is-writing .welcome-greeting-unicode {
  animation: helloWriteRtl 1.08s cubic-bezier(0.35, 0.05, 0.22, 1) forwards;
}

.welcome-greeting-item.is-static .welcome-greeting-unicode {
  opacity: 1;
  clip-path: none;
  filter: none;
}

@keyframes helloSvgStroke {
  0% {
    stroke-dashoffset: 1200;
    opacity: 0.95;
  }
  72% {
    stroke-dashoffset: 0;
    opacity: 0.95;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.22;
  }
}

@keyframes helloInkFill {
  0% {
    opacity: 0.12;
    clip-path: inset(-10% 100% -10% -6%);
  }
  25% {
    opacity: 0.92;
  }
  100% {
    opacity: 1;
    clip-path: inset(-10% -6% -10% -6%);
  }
}

@keyframes helloWriteLtr {
  0% {
    opacity: 0.15;
    filter: blur(2.5px);
    clip-path: inset(-14% 100% -14% -6%);
  }
  28% {
    opacity: 0.95;
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    clip-path: inset(-14% -6% -14% -6%);
  }
}

@keyframes helloWriteRtl {
  0% {
    opacity: 0.15;
    filter: blur(2.5px);
    clip-path: inset(-14% -6% -14% 100%);
  }
  28% {
    opacity: 0.95;
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    clip-path: inset(-14% -6% -14% -6%);
  }
}

.welcome-hello-actions {
  margin-top: clamp(32px, 8vh, 84px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-get-started {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  min-height: 44px;
  min-width: 122px;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-get-started:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

.welcome-get-started:active {
  transform: scale(0.98);
}

.welcome-get-started:focus-visible {
  outline: 2.5px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.34);
}

:root[data-motion="reduced"] .hello-svg-stroke,
:root[data-motion="reduced"] .hello-svg-fill,
:root[data-motion="reduced"] .welcome-greeting-unicode {
  animation: none !important;
  clip-path: none !important;
  filter: none !important;
}
:root[data-motion="reduced"] .hello-svg-stroke {
  stroke-dashoffset: 0 !important;
  opacity: 0.22 !important;
}
:root[data-motion="reduced"] .hello-svg-fill,
:root[data-motion="reduced"] .welcome-greeting-unicode {
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .hello-svg-stroke,
  .hello-svg-fill,
  .welcome-greeting-unicode {
    animation: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  .hello-svg-stroke {
    stroke-dashoffset: 0 !important;
    opacity: 0.22 !important;
  }
  .hello-svg-fill,
  .welcome-greeting-unicode {
    opacity: 1 !important;
  }
}

@media (max-width: 600px) {
  .welcome-hello-center {
    transform: translateY(2vh);
  }
  .hello-svg-word {
    width: 92vw;
    height: clamp(88px, 18vh, 148px);
  }
  .welcome-hello-actions {
    margin-top: clamp(28px, 7vh, 60px);
  }
}

/* Live Activities Menu Bar Pill & Popover */
.menu-live-pill {
  background: rgba(10, 132, 255, 0.18);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 9px;
}

.live-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
  flex-shrink: 0;
}

.live-activity-popover {
  position: fixed;
  top: calc(var(--menubar-height) + var(--safe-top) + 6px);
  right: max(12px, var(--safe-right));
  width: min(350px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  z-index: 1220;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-activity-card {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--divider);
  background: var(--glass-bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.live-activity-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.live-activity-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}




