:root {
  --accent: #0a84ff;
  --blue: #0a84ff;
  --green: #32d74b;
  --red: #ff453a;
  --yellow: #ffd60a;
  --orange: #ff9f0a;
  --pink: #ff375f;
  --purple: #bf5af2;
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.62);
  --faint: rgba(255,255,255,.36);
  --line: rgba(255,255,255,.16);
  --panel: rgba(28,30,36,.58);
  --panel-strong: rgba(24,25,30,.82);
  --light-panel: rgba(255,255,255,.11);
  --shadow: 0 26px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
  --ease-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mac: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #05070b; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; user-select: none; transition: background-color 0.4s ease, color 0.4s ease; }
button, input, textarea, select { font: inherit; }
button { border: 0; color: inherit; cursor: default; background: transparent; }
input, textarea { user-select: text; }
.hidden { display: none !important; }
.liquid {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 24px 58px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.42), inset 0 0 14px rgba(255,255,255,0.04);
  backdrop-filter: blur(var(--glass-blur, 32px)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur, 32px)) saturate(180%);
}
.liquid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.34), transparent 38%), linear-gradient(180deg, rgba(255,255,255,.16), transparent 42%);
  mix-blend-mode: screen;
}
.liquid::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -40%;
  width: 70%;
  height: 260%;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: rotate(18deg);
  animation: liquid-sweep 7s ease-in-out infinite;
}
.reduce-motion .liquid::after,
.reduce-motion .desktop,
.reduce-motion .lock-screen,
.reduce-motion .widget-card::after,
.reduce-motion .mini-bars i,
.reduce-motion .boot-logo svg,
.reduce-motion .face-orb,
.reduce-motion .record-ring,
.reduce-motion .record-btn.active,
.reduce-motion .siri-ripple,
.reduce-motion .window.opening,
.reduce-motion .dock-item.bounce,
.reduce-motion .dock-item.bounce .dock-icon {
  animation: none !important;
}
.reduce-motion .window,
.reduce-motion .menu-pop,
.reduce-motion .context-menu,
.reduce-motion .spotlight,
.reduce-motion .spotlight-panel,
.reduce-motion .launchpad,
.reduce-motion .mission-control,
.reduce-motion .dock-item .dock-icon {
  transition-duration: 0.01ms !important;
}
@keyframes liquid-sweep {
  0%, 20% { translate: -80% 0; opacity: 0; }
  38% { opacity: .75; }
  65%, 100% { translate: 260% 0; opacity: 0; }
}

.boot-screen, .shutdown-screen, .lock-screen { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.boot-screen { background: #000; transition: opacity .5s ease; }
.shutdown-screen { background: #000; color: #fff; z-index: 10000; }
.shutdown-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: shutdown-spin 1.2s linear infinite;
  margin-bottom: 20px;
}
.shutdown-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
@keyframes shutdown-spin {
  to { transform: rotate(360deg); }
}
.boot-logo { 
  width: 72px; height: 72px; 
  margin-bottom: 70px;
  position: relative;
}
.boot-logo svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  display: block;
}
.boot-progress { width: 220px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
#boot-bar { width: 0; height: 100%; border-radius: inherit; background: #fff; transition: width 0.1s linear; }

@keyframes boot-glow {
  0% { filter: drop-shadow(0 0 8px rgba(255,255,255,0.15)); transform: scale(0.98); opacity: 0.85; }
  100% { filter: drop-shadow(0 0 24px rgba(255,255,255,0.55)); transform: scale(1); opacity: 1; }
}
.boot-logo svg { animation: boot-glow 2.4s ease-in-out infinite alternate; }
.boot-progress { transition: opacity 0.3s ease; }
.boot-screen.fade-out { opacity: 0; pointer-events: none; }

.lock-screen {
  background: var(--custom-wallpaper, url("../assets/wallpapers/Tahoe Day.jpg") center/cover no-repeat);
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  position: fixed;
  inset: 0;
  justify-content: flex-start;
  padding: 70px 0 0;
  animation: wallpaper-drift 28s ease-in-out infinite alternate;
}
.lock-top {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}
.lock-time { font-family: var(--font-heading); font-size: 92px; line-height: .95; font-weight: 800; letter-spacing: -0.02em; }
.lock-date { margin-top: 12px; font-size: 21px; color: rgba(255,255,255,.84); font-weight: 500; }
.lock-user {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lock-avatar { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 700; background: linear-gradient(135deg, #55d6ff, #7b61ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 32px rgba(0,0,0,.35); }
.lock-name { margin: 12px 0; font-size: 18px; font-weight: 650; }
.lock-input-wrap { display: flex; align-items: center; width: 236px; height: 38px; border-radius: 99px; padding: 3px 4px 3px 14px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(22px); }
#lock-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: white; text-align: center; }
#lock-input::placeholder { color: rgba(255,255,255,.62); }
#lock-submit { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.28); font-size: 24px; line-height: 20px; }
.lock-hint { margin-top: 10px; color: rgba(255,255,255,.58); font-size: 12px; }

.desktop {
  position: fixed;
  inset: 0;
  background: var(--custom-wallpaper, url("../assets/wallpapers/Tahoe Day.jpg") center/cover no-repeat);
  animation: wallpaper-drift 34s ease-in-out infinite alternate;
}

.desktop::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.05) 50%, rgba(0,0,0,.22)); pointer-events: none; }

.menubar { position: fixed; z-index: 800; top: 0; left: 0; right: 0; height: 25px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px 0 12px; border-radius: 0; background: rgba(22,22,26,.42); border-bottom: 0.5px solid rgba(255,255,255,.14); color: rgba(255,255,255,.92); text-shadow: 0 1px 4px rgba(0,0,0,.25); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); box-shadow: 0 0.5px 0 rgba(255,255,255,.06) inset; -webkit-app-region: drag; transition: background 0.35s var(--ease-mac), border-color 0.35s var(--ease-mac), color 0.35s var(--ease-mac), backdrop-filter 0.35s var(--ease-mac); }
.menubar button, .menubar-item, .status-button, .clock-button, .apple-icon { -webkit-app-region: no-drag; }
.menu-left, .menu-right { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; gap: 2px; -webkit-app-region: no-drag; }
.menu-button, .status-button, .clock-button { height: 22px; padding: 0 8px; border-radius: 6px; background: transparent; color: inherit; font-size: 13px; letter-spacing: -0.01em; transition: background 0.12s var(--ease-mac), transform 0.12s var(--ease-mac); }
.menu-button:active, .status-button:active, .clock-button:active { transform: scale(0.96); }
.menubar-item.open { background: rgba(255,255,255,.14); }
.status-icon-btn { width: 28px; min-width: 28px; padding: 0; display: grid; place-items: center; }
.status-icon { width: 15px; height: 15px; display: block; fill: currentColor; stroke: currentColor; opacity: 0.92; }
.status-icon-btn .status-icon[stroke] { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.menu-button.strong { font-weight: 700; }
.menu-button.apple { font-size: 0; padding: 0; width: 28px; position: relative; }
.menu-button.apple::before { content:""; position:absolute; left:9px; top:5px; width:12px; height:13px; background:white; border-radius:50% 48% 46% 52%; clip-path: polygon(42% 0, 86% 8%, 100% 38%, 78% 100%, 24% 100%, 0 40%, 14% 10%); filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
.menu-button.apple::after { content:""; position:absolute; left:16px; top:2px; width:7px; height:4px; border-radius:7px 0 7px 0; background:white; transform:rotate(-28deg); }
.apple-icon { width: 30px; padding: 0; display: grid; place-items: center; }
.apple-icon svg { width: 17px; height: 17px; display: block; fill: rgba(255,255,255,.96); filter: drop-shadow(0 1px 4px rgba(0,0,0,.28)); }
.menu-button:hover, .status-button:hover, .clock-button:hover { background: rgba(255,255,255,.16); }
.status-button { min-width: 28px; padding: 0 7px; font-size: 14px; }
.status-button.status-off { opacity:.52; }
.clock-button { white-space: nowrap; }

.dock { --dock-gap: clamp(4px,.45vw,7px); --dock-item-size: clamp(42px,3.15vw,58px); --dock-icon-size: clamp(40px,2.95vw,54px); --dock-edge-shift: 0px; position: fixed; z-index: 760; left: 50%; bottom: 10px; transform: translateX(calc(-50% + var(--dock-edge-shift))); width: max-content; max-width: calc(100vw - 28px); min-height: 68px; display: flex; align-items: flex-end; gap: var(--dock-gap); padding: 10px 14px 6px; border-radius: 20px; background: rgba(255,255,255,.12); border: 0.5px solid rgba(255,255,255,.28); box-shadow: 0 0 0 0.5px rgba(0,0,0,.15), 0 18px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.22); backdrop-filter: blur(48px) saturate(190%); -webkit-backdrop-filter: blur(48px) saturate(190%); overflow: visible; scrollbar-width: none; transition: background 0.35s var(--ease-mac), border-color 0.35s var(--ease-mac), box-shadow 0.35s var(--ease-mac), transform .28s var(--ease-spring); }
.dock::-webkit-scrollbar { display:none; }
.dock.dock-auto-hide { transform: translateX(-50%) translateY(calc(100% - 12px)); transition: transform .22s cubic-bezier(.2,.9,.2,1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.dock.dock-auto-hide:hover { transform: translateX(-50%) translateY(0); }
.dock-item { position: relative; flex: 0 0 auto; width: var(--dock-item-size); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .16s cubic-bezier(.2,.9,.2,1.35); padding: 0; border-radius: 0; background: transparent !important; appearance: none; }
.dock:hover { gap: var(--dock-gap); }
.dock-item:hover { transform: none; }
.dock-icon { width: var(--dock-icon-size); height: var(--dock-icon-size); border-radius: clamp(11px,.8vw,14px); display: grid; place-items: center; overflow: hidden; font-size: clamp(19px,1.55vw,28px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.1), 0 6px 14px rgba(0,0,0,.25); position: relative; }
.dock-icon::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -38%; height: 42%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 70%); transform: scaleY(-1); opacity: 0.35; pointer-events: none; filter: blur(2px); }
.dock-icon span { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.dock-item.bounce .dock-icon { animation: dock-bounce .85s var(--ease-spring); }
.dock-item.bounce { animation: dock-bounce-item .85s var(--ease-spring); }
@keyframes dock-bounce-item {
  0%, 100% { transform: translateY(0); }
  28% { transform: translateY(-18px); }
  52% { transform: translateY(2px); }
  72% { transform: translateY(-8px); }
}
.dock-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.85); opacity: 0; transition: opacity .2s ease, width .2s ease, border-radius .2s ease; box-shadow: 0 0 4px rgba(255,255,255,.35); }
.dock-item.running .dock-dot { opacity: 1; }
.dock-item.minimized .dock-dot { width: 14px; border-radius: 99px; opacity: .48; }
.dock-tooltip { position: absolute; left: 50%; bottom: 72px; padding: 5px 10px; border-radius: 8px; background: rgba(22,22,26,.78); border: 1px solid rgba(255,255,255,.16); color: white; font-size: 12px; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: opacity .14s ease, transform .14s ease; backdrop-filter: blur(18px); pointer-events: none; }
.dock-item:hover .dock-tooltip { opacity: 1; transform: translate(-50%, 0); }
.dock-item.dock-edge-left .dock-tooltip { left: 0; transform: translate(0, 4px); }
.dock-item.dock-edge-left:hover .dock-tooltip { transform: translate(0, 0); }
.dock-item.dock-edge-right .dock-tooltip { left: auto; right: 0; transform: translate(0, 4px); }
.dock-item.dock-edge-right:hover .dock-tooltip { transform: translate(0, 0); }
.dock-separator { width: 1px; height: 42px; background: rgba(255,255,255,.42); margin: 0 5px 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.04); }

/* Dock Position overrides */
.dock.dock-left {
  left: 10px;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  min-height: max-content;
  width: max-content;
  padding: 14px 10px 10px 10px;
  border-radius: 20px;
}
.dock.dock-left.dock-auto-hide {
  transform: translateY(-50%) translateX(calc(-100% - 10px));
}
.dock.dock-left.dock-auto-hide:hover {
  transform: translateY(-50%) translateX(0);
}
.dock.dock-left .dock-tooltip {
  left: 72px;
  bottom: auto;
  top: 50%;
  transform: translate(0, -50%) scale(0.9);
}
.dock.dock-left .dock-item:hover .dock-tooltip {
  transform: translate(0, -50%) scale(1);
}
.dock.dock-left .dock-separator {
  width: 32px;
  height: 1px;
  margin: 5px 0 9px 0;
}

.dock.dock-right {
  right: 10px;
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  min-height: max-content;
  width: max-content;
  padding: 14px 10px 10px 10px;
  border-radius: 20px;
}
.dock.dock-right.dock-auto-hide {
  transform: translateY(-50%) translateX(calc(100% + 10px));
}
.dock.dock-right.dock-auto-hide:hover {
  transform: translateY(-50%) translateX(0);
}
.dock.dock-right .dock-tooltip {
  left: auto;
  right: 72px;
  bottom: auto;
  top: 50%;
  transform: translate(0, -50%) scale(0.9);
}
.dock.dock-right .dock-item:hover .dock-tooltip {
  transform: translate(0, -50%) scale(1);
}
.dock.dock-right .dock-separator {
  width: 32px;
  height: 1px;
  margin: 5px 0 9px 0;
}


.desktop-icons { position: fixed; z-index: 20; inset: 0; pointer-events: none; }
.desktop-icon {
  position: absolute;
  width: 92px;
  padding: 6px;
  border-radius: 8px;
  text-align: center;
  background: transparent !important;
  appearance: none;
  pointer-events: auto;
  box-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}
.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: scale(1.04);
}
.desktop-icon-symbol * {
  transition: transform 0.2s ease, filter 0.2s ease;
}
.desktop-icon:hover .desktop-drive,
.desktop-icon:hover .desktop-folder,
.desktop-icon:hover .desktop-trash {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.desktop-icon:hover, .desktop-icon.selected { background: rgba(0,122,255,.28) !important; }
.desktop-icon-symbol { font-size: 48px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); }
.desktop-icon-symbol .desktop-drive { display:block; width:54px; height:48px; margin:0 auto; border-radius:10px; background:linear-gradient(180deg,#d8dde5,#8d96a3); box-shadow:inset 0 2px 0 #fff8, 0 9px 16px rgba(0,0,0,.24); position:relative; }
.desktop-icon-symbol .desktop-drive::after { content:""; position:absolute; left:11px; right:11px; bottom:8px; height:5px; border-radius:99px; background:#626a74; }
.desktop-icon-symbol .desktop-folder { display:block; width:58px; height:44px; margin:5px auto 0; border-radius:7px; background:linear-gradient(180deg,#ffd45f,#f6a622); box-shadow:inset 0 2px 0 #fff7, 0 9px 16px rgba(0,0,0,.22); position:relative; }
.desktop-icon-symbol .desktop-folder::before { content:""; position:absolute; left:5px; top:-7px; width:24px; height:12px; border-radius:5px 5px 0 0; background:#ffd45f; }
.desktop-icon-symbol .desktop-trash { display:block; width:48px; height:54px; margin:0 auto; border-radius:8px 8px 12px 12px; background:repeating-linear-gradient(90deg,#d9dee8 0 5px,#aeb7c6 6px 9px); border:3px solid #e9edf5; box-shadow:0 9px 16px rgba(0,0,0,.24); position:relative; }
.desktop-icon-symbol .desktop-trash::before { content:""; position:absolute; left:-6px; right:-6px; top:-9px; height:8px; border-radius:5px; background:#d7deea; }
.desktop-icon-name { margin-top: 4px; font-size: 12px; text-shadow: 0 1px 5px rgba(0,0,0,.75); word-break: break-word; }

.windows { position: fixed; inset: 30px 0 0; z-index: 100; pointer-events: none; }
.window { position: absolute; min-width: 360px; min-height: 260px; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; pointer-events: auto; opacity: 0; transform: scale(.88) translateY(16px); transform-origin: center center; transition: opacity .32s var(--ease-out-expo), transform .38s var(--ease-spring), box-shadow .28s var(--ease-mac), left .38s var(--ease-out-expo), top .38s var(--ease-out-expo), background 0.35s var(--ease-mac), border-color 0.35s var(--ease-mac), backdrop-filter 0.35s var(--ease-mac), -webkit-backdrop-filter 0.35s var(--ease-mac), filter 0.28s var(--ease-mac); background: rgba(32,34,42,.72); border: 0.5px solid rgba(255,255,255,.18); box-shadow: 0 22px 60px rgba(0,0,0,.38), 0 0 0 0.5px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.2); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); will-change: transform, opacity; }
.window.show { opacity: 1; transform: scale(1) translateY(0); filter: saturate(1); }
.window.opening { animation: window-pop-in .42s var(--ease-spring) forwards; transition: box-shadow .28s var(--ease-mac), background 0.35s var(--ease-mac), border-color 0.35s var(--ease-mac), backdrop-filter 0.35s var(--ease-mac), -webkit-backdrop-filter 0.35s var(--ease-mac); }
.window.active { box-shadow: 0 32px 90px rgba(0,0,0,.48), 0 0 0 0.5px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.28); z-index: 100; filter: saturate(1.02); }
.window:not(.active):not(.dragging):not(.minimizing):not(.closing):not(.opening) { filter: saturate(0.92) brightness(0.97); }
.window:not(.active):not(.dragging) { box-shadow: 0 16px 44px rgba(0,0,0,.28), 0 0 0 0.5px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.14); }
@keyframes window-pop-in {
  0% { opacity: 0; transform: scale(0.82) translateY(24px); filter: blur(4px) saturate(0.9); }
  55% { opacity: 1; transform: scale(1.015) translateY(-2px); filter: blur(0) saturate(1.02); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: saturate(1); }
}
.window.dragging { transition: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 18px 42px rgba(0,0,0,.42) !important; }
.window.minimizing { opacity: 0; transform: translate(var(--min-translate-x, 0), var(--min-translate-y, 0)) scale(var(--min-scale, 0.1)); border-radius: 12px; transition: opacity .4s, transform .4s cubic-bezier(0.4, 0, 0.2, 1), border-radius .4s; }
.window.maximized { border-radius: 0; transform: none !important; transition: box-shadow .22s ease, opacity .18s ease !important; }
.titlebar { position: relative; height: 38px; display: flex; align-items: center; padding: 0 14px; flex-shrink: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border-bottom: 0.5px solid rgba(255,255,255,.08); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); transition: background 0.35s var(--ease-mac), border-color 0.35s var(--ease-mac), color 0.35s var(--ease-mac); }
.window:not(.active) .titlebar { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.window:not(.active) .window-title { opacity: 0.72; }
.traffic, .window-controls { display: flex; gap: 8px; z-index: 2; width: 58px; flex: 0 0 58px; }
.traffic button { width: 13px; height: 13px; border-radius: 50%; padding: 0; font-size: 9px; color: transparent; display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease; }
.window-controls:hover button { color: rgba(0,0,0,.62); }
.traffic .close, .window-controls .close { background: #ff5f57; border: 1px solid rgba(120,0,0,.2); }
.traffic .min, .window-controls .minimize { background: #febc2e; border: 1px solid rgba(120,70,0,.18); }
.traffic .max, .window-controls .maximize { background: #28c840; border: 1px solid rgba(0,100,30,.18); }
.window-controls:hover .close::before { content: "×"; font-size: 11px; line-height: 1; font-weight: 700; color: rgba(90,0,0,.62); }
.window-controls:hover .minimize::before { content: "−"; font-size: 12px; line-height: 1; font-weight: 800; color: rgba(95,55,0,.62); transform: translateY(-1px); }
.window-controls:hover .maximize::before { content: "+"; font-size: 10px; line-height: 1; font-weight: 800; color: rgba(0,80,25,.62); }

/* Inactive window controls grayed out */
.window:not(.active) .traffic .close,
.window:not(.active) .traffic .min,
.window:not(.active) .traffic .minimize,
.window:not(.active) .traffic .max,
.window:not(.active) .traffic .maximize {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
.light-mode .window:not(.active) .traffic .close,
.light-mode .window:not(.active) .traffic .min,
.light-mode .window:not(.active) .traffic .minimize,
.light-mode .window:not(.active) .traffic .max,
.light-mode .window:not(.active) .traffic .maximize {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.03) !important;
}

/* Light up on hover of traffic group */
.window:not(.active) .traffic:hover .close { background: #ff5f57 !important; border-color: rgba(120,0,0,.2) !important; }
.window:not(.active) .traffic:hover .min,
.window:not(.active) .traffic:hover .minimize { background: #febc2e !important; border-color: rgba(120,70,0,.18) !important; }
.window:not(.active) .traffic:hover .max,
.window:not(.active) .traffic:hover .maximize { background: #28c840 !important; border-color: rgba(0,100,30,.18) !important; }
.window-title { font-family: var(--font-heading); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,.84); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.window-body { flex: 1; overflow: hidden; display: flex; background: rgba(26,29,35,.82); transition: background 0.4s ease; }
.titlebar-spacer { width: 58px; flex: 0 0 58px; }
.resize-handle { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }

.menu-pop, .context-menu, .control-center, .notification-center, .spotlight-panel { position: fixed; z-index: 900; border-radius: 12px; transform-origin: top left; }
.menu-pop { top: 28px; min-width: 230px; padding: 5px; opacity: 0; transform: scale(0.92) translateY(-4px); transition: opacity .16s var(--ease-mac), transform .2s var(--ease-spring); pointer-events: none; }
.menu-pop.menu-visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.context-menu { opacity: 0; transform: scale(0.94); transition: opacity .14s var(--ease-mac), transform .18s var(--ease-spring); pointer-events: none; }
.context-menu.menu-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.menu-item, .context-item { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 28px; padding: 0 10px; border-radius: 9px; font-size: 13px; color: var(--text); }
.menu-item:hover, .menu-item.selected, .context-item:hover, .context-item.selected { background: var(--accent); }
.menu-item.disabled { opacity: .42; pointer-events: none; }
.sep { height: 1px; margin: 5px 8px; background: rgba(255,255,255,.14); }
.shortcut { color: var(--muted); }
.spotlight { position: fixed; inset: 0; z-index: 880; display: flex; justify-content: center; align-items: flex-start; padding-top: 16vh; background: rgba(0,0,0,.08); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); opacity: 0; transition: opacity .22s var(--ease-mac), backdrop-filter .22s var(--ease-mac); pointer-events: none; }
.spotlight.spotlight-visible { opacity: 1; pointer-events: auto; }
.spotlight-panel { position: relative; width: min(760px, calc(100vw - 40px)); height: auto; overflow: hidden; transform: scale(0.94) translateY(-12px); transition: transform .28s var(--ease-spring), opacity .22s var(--ease-mac); opacity: 0; background: rgba(25, 25, 30, 0.65) !important; backdrop-filter: blur(50px) saturate(210%) !important; -webkit-backdrop-filter: blur(50px) saturate(210%) !important; border: 0.5px solid rgba(255, 255, 255, 0.18) !important; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important; border-radius: 14px !important; }
.spotlight.spotlight-visible .spotlight-panel { transform: scale(1) translateY(0); opacity: 1; }
.light-mode .spotlight-panel { background: rgba(250, 250, 250, 0.72) !important; border: 1px solid rgba(0, 0, 0, 0.12) !important; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important; color: #1d1d1f !important; }
.spotlight-search { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 64px !important; padding: 0 24px !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; color: var(--muted); font-size: 24px !important; }
.light-mode .spotlight-search { border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important; color: #86868b !important; }
.spotlight-search input { flex: 1; border: 0; outline: 0; background: transparent; color: white; font-size: 22px !important; font-weight: 400 !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; letter-spacing: -0.01em !important; }
.light-mode .spotlight-search input { color: #1d1d1f !important; }
.light-mode .spotlight-search input::placeholder { color: #86868b !important; }
.spotlight-results { position: relative; z-index: 1; padding: 8px 4px !important; overflow: auto; border-right: 1px solid rgba(255,255,255,0.06) !important; }
.light-mode .spotlight-results { border-right: 1px solid rgba(0, 0, 0, 0.06) !important; }
.spotlight-results::-webkit-scrollbar { width: 6px; }
.spotlight-results::-webkit-scrollbar-track { background: transparent; }
.spotlight-results::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.light-mode .spotlight-results::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); }
.spotlight-result { width: calc(100% - 12px); display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 14px !important; border-radius: 10px !important; margin: 2px 6px !important; text-align:left; background:transparent; color:var(--text); transition: background 0.15s ease, transform 0.1s ease !important; cursor: pointer !important; border: none !important; }
.spotlight-result.selected { background: var(--accent) !important; box-shadow: 0 4px 12px rgba(10, 132, 255, 0.25) !important; }
.spotlight-result:hover:not(.selected) { background: rgba(255, 255, 255, 0.08) !important; }
.light-mode .spotlight-result:hover:not(.selected) { background: rgba(0, 0, 0, 0.05) !important; }
.spotlight-icon { width: 32px !important; height: 32px !important; border-radius: 8px !important; display: grid; place-items: center; font-size: 18px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important; }
.spotlight-copy { min-width:0; }
.spotlight-copy > div:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size: 14px !important; font-weight:500 !important; color: white !important; }
.light-mode .spotlight-copy > div:first-child { color: #1d1d1f !important; }
.spotlight-sub { color: rgba(255,255,255,.48) !important; font-size: 11px !important; margin-top: 2px; }
.light-mode .spotlight-sub { color: #86868b !important; }
.spotlight-kind { color:rgba(255,255,255,.3) !important; font-size:10px !important; font-weight: 600 !important; text-transform:uppercase; letter-spacing:.04em; background: rgba(255, 255, 255, 0.05) !important; padding: 2px 6px !important; border-radius: 4px !important; border: 1px solid rgba(255, 255, 255, 0.05) !important; }
.light-mode .spotlight-kind { color: rgba(0,0,0,0.4) !important; background: rgba(0,0,0,0.03) !important; border: 1px solid rgba(0,0,0,0.03) !important; }
.spotlight-result.selected .spotlight-copy > div:first-child { color: white !important; }
.spotlight-result.selected .spotlight-sub, .spotlight-result.selected .spotlight-kind { color:rgba(255,255,255,.75) !important; }
.spotlight-empty { display:grid; place-items:center; min-height:120px; color:var(--muted); }

.control-center { top: 28px; right: 8px; width: 336px; padding: 14px; opacity: 0; transform: translateY(-8px) scale(0.96); transition: opacity .2s var(--ease-mac), transform .24s var(--ease-spring); pointer-events: none; transform-origin: top right; }
.control-center.panel-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.notification-center { top: 28px; right: 8px; width: 354px; padding: 14px; max-height: calc(100vh - 52px); overflow: auto; opacity: 0; transform: translateY(-8px) scale(0.96); transition: opacity .2s var(--ease-mac), transform .24s var(--ease-spring); pointer-events: none; transform-origin: top right; }
.notification-center.panel-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cc-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-card { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.1); }
.cc-card.cc-toggle { text-align:left; color:var(--text); }
.cc-card.cc-toggle.on { background:rgba(10,132,255,.55); }
.cc-card.wide { grid-column: 1 / -1; }
.cc-title { font-weight: 700; font-size: 13px; }
.cc-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.cc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  overflow: hidden;
  margin-top: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: -407px 0 0 400px var(--accent);
  transition: background .12s;
}
.cc-slider::-webkit-slider-thumb:hover {
  background: #e5e5e5;
}
.cc-media-title { margin-top:6px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cc-media-controls { display:flex; gap:8px; margin-top:10px; }
.cc-media-controls button { height:26px; padding:0 10px; border-radius:999px; background:rgba(255,255,255,.16); color:white; font-size:12px; }
.clipboard-list { display:flex; flex-direction:column; gap:6px; margin-top:8px; max-height:112px; overflow:auto; }
.clipboard-item { min-height:26px; padding:0 8px; border-radius:8px; background:rgba(255,255,255,.08); color:var(--text); text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.widget { position: relative; z-index: 1; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.1); margin-bottom: 10px; }
.widget-title { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.live-activity { width:100%; display:block; color:var(--text); text-align:left; border:1px solid rgba(255,255,255,.08); }
.live-title { font-size:17px; font-weight:800; margin-bottom:4px; }
.live-progress { height:6px; margin-top:12px; border-radius:99px; background:rgba(255,255,255,.14); overflow:hidden; }
.live-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#0a84ff,#64d2ff); transition:width .25s; }
.notification-section { position:relative; z-index:1; padding:14px; border-radius:16px; background:rgba(255,255,255,.1); }
.notification-item { width:100%; display:block; padding:11px 12px; margin-top:8px; border-radius:13px; background:rgba(255,255,255,.09); color:var(--text); text-align:left; }
.notification-item:hover { background:rgba(255,255,255,.16); }
.notification-item div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notification-item span { color:var(--muted); font-size:12px; }
.notification-item p { margin:5px 0 0; color:rgba(255,255,255,.72); font-size:13px; line-height:1.35; }
.context-menu { min-width: 220px; padding: 6px; }
.toast-container { position: fixed; z-index: 1200; right: 14px; top: 42px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { width: 320px; padding: 13px 15px; border-radius: 18px; background: rgba(32,34,40,.72); border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); backdrop-filter: blur(28px) saturate(180%); animation: toast-in .22s ease-out; }
.toast-title { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.98); } }
@keyframes dock-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-26px) scale(1.05); }
  48% { transform: translateY(2px) scale(.98); }
  70% { transform: translateY(-12px) scale(1.02); }
}
@keyframes window-open {
  from { opacity: 0; transform: scale(.4); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes window-pop {
  from { opacity: 0; transform: translateY(18px) scale(.92); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes wallpaper-drift {
  from { background-position: center center; filter: saturate(1.04); }
  to { background-position: 54% 48%; filter: saturate(1.16) brightness(1.04); }
}

.toolbar { height: 44px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); transition: background 0.4s ease, border-color 0.4s ease; }
.tool-button { min-width: 30px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.09); transition: background 0.4s ease; }
.tool-button:hover { background: rgba(255,255,255,.16); }
.search, .field { height: 30px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: white; border-radius: 9px; outline: 0; padding: 0 10px; }

.sidebar { width: 220px; flex-shrink: 0; overflow: auto; background: rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.1); padding: 10px 8px; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.side-label { padding: 12px 10px 5px; color: var(--faint); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.side-item { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 0 10px; border-radius: 9px; color: rgba(255,255,255,.78); font-size: 13px; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.side-item:hover { background: rgba(255,255,255,.09); }
.side-item.active { background: rgba(10,132,255,.72); color: white; }
.content { flex: 1; min-width: 0; overflow: auto; background: rgba(255,255,255,.025); transition: background 0.4s ease, color 0.4s ease; }
.split { display: flex; width: 100%; height: 100%; }
.empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); text-align: center; }

.finder-main { display: flex; flex-direction: column; width: 100%; }
.path { flex: 1; text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-grid { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; align-content: start; }
.file-item { border-radius: 12px; padding: 10px 8px; text-align: center; min-height: 94px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.file-item:hover, .file-item.selected { background: rgba(255,255,255,.1); }
.file-icon { font-size: 40px; }
.file-name { margin-top: 5px; font-size: 12px; line-height: 1.25; word-break: break-word; }

.notes-list { width: 250px; flex-shrink: 0; overflow: auto; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); padding: 8px; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.notes-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: rgba(10,14,20,.22); }
.notes-main .toolbar { flex: 0 0 auto; min-height: 44px; }
#notes-area { flex: 1; width: 100%; min-height: 0; resize: none; border: 0; outline: 0; padding: 22px 26px; color: var(--text); background: transparent; line-height: 1.65; font-size: 15px; }
.note-item { width: 100%; padding: 10px 11px; margin-bottom: 6px; border-radius: 10px; text-align: left; color: var(--text); background: transparent; }
.note-item:hover { background: rgba(255,255,255,.08); }
.note-item.active { background: rgba(10,132,255,.68); color: white; }
.note-item .title { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item .sub { display: flex; gap: 7px; margin-top: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-item.active .sub { color: rgba(255,255,255,.82); }
.note-row { padding: 10px; border-radius: 11px; border-bottom: 1px solid rgba(255,255,255,.04); }
.note-row.active, .note-row:hover { background: rgba(255,255,255,.1); }
.note-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-preview, .note-date { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-editor { flex: 1; display: flex; flex-direction: column; }
.note-editor textarea { flex: 1; width: 100%; resize: none; border: 0; outline: 0; padding: 20px 24px; color: white; background: transparent; line-height: 1.65; font-size: 15px; }

.calc { width: 100%; display: flex; flex-direction: column; background: rgba(18,18,20,.9); }
.calc-display { min-height: 106px; padding: 28px 18px 10px; text-align: right; font-size: 50px; font-weight: 250; overflow: hidden; text-overflow: ellipsis; }
.calc-keys { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; }
.calc-key { display: grid; place-items: center; min-height: 58px; background: rgba(255,255,255,.13); font-size: 22px; }
.calc-key:hover { background: rgba(255,255,255,.2); }
.calc-key.fn { background: rgba(255,255,255,.22); color: rgba(0,0,0,.9); }
.calc-key.op { background: var(--orange); color: white; }
.calc-key.zero { grid-column: span 2; justify-content: start; padding-left: 28px; }

.terminal { width: 100%; height: 100%; background: rgba(0,0,0,.88); font-family: var(--mono); font-size: 13px; line-height: 1.5; padding: 10px 12px; overflow: auto; user-select: text; }
.term-line { white-space: pre-wrap; }
.term-prompt { color: var(--green); }
.term-input { width: 60%; border: 0; outline: 0; background: transparent; color: white; font: inherit; }

.settings-shell { width: 100%; height: 100%; }
.settings-sidebar-modern .side-item { gap: 10px; }
.settings-side-icon { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.settings-sidebar-modern .side-item.active .settings-side-icon { background: rgba(255,255,255,.24); }
.settings-main { display: block; overflow: auto; padding: 24px 28px; }
.settings-title { font-size: 30px; line-height: 1.1; font-weight: 800; margin: 0 0 18px; }
.settings-group { border-radius: 14px; background: rgba(255,255,255,.08); margin-bottom: 16px; overflow: visible; }
.settings-row { min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.settings-row:last-child { border-bottom: 0; }
.settings-row small { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:500; }
.settings-action { width:100%; text-align:left; background:transparent; }
.settings-row input[type="range"] { width:min(240px, 42%); accent-color:var(--accent); }
.settings-row input[type="color"] { width:42px; height:28px; padding:0; border:0; border-radius:8px; background:transparent; }
.value { color: var(--muted); }
.toggle { width: 42px; height: 25px; border-radius: 99px; background: rgba(255,255,255,.2); position: relative; }
.toggle::after { content: ""; position: absolute; width: 21px; height: 21px; top: 2px; left: 2px; border-radius: 50%; background: white; transition: .18s; }
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(17px); }
.wallpaper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.wallpaper-choice { aspect-ratio: 16/10; border-radius: 12px; border: 2px solid transparent; }
.wallpaper-choice.active { border-color: white; }
.settings-profile-head { display:flex; align-items:center; gap:16px; padding:18px 14px; border-bottom:1px solid rgba(255,255,255,.08); }
.settings-profile-avatar { width:76px; height:76px; border-radius:50%; display:grid; place-items:center; color:white; font-size:34px; font-weight:800; box-shadow:inset 0 1px 0 rgba(255,255,255,.38), 0 14px 26px rgba(0,0,0,.26); }
.settings-profile-avatar.avatar-image { background-size:cover; background-position:center; background-repeat:no-repeat; }
.settings-profile-head h2 { margin:0; font-size:22px; line-height:1.2; }
.settings-profile-head p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.avatar-row { align-items:center; padding-top:10px; padding-bottom:10px; }
.avatar-choices { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; max-width:290px; }
.avatar-choice { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; color:white; font-weight:800; font-size:17px; border:2px solid transparent; box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(0,0,0,.24); }
.avatar-choice.active { border-color:white; outline:2px solid var(--accent); outline-offset:3px; }
.avatar-import { height:34px; align-self:center; padding:0 12px; border-radius:10px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.12); color:var(--text); font-weight:650; }
.avatar-import:hover { background:rgba(255,255,255,.18); }
.tool-button.primary { background:var(--accent); color:white; }

.messages-list, .mail-list { width: 260px; flex-shrink: 0; overflow: auto; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); }
.messages-app, .mail-app { width:100%; height:100%; display:flex; }
.messages-search { padding:10px; }
.conversation, .mail-row { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.conversation { width:100%; display:block; text-align:left; color:var(--text); }
.conversation div { display:flex; justify-content:space-between; gap:8px; }
.conversation em { color:var(--muted); font-size:11px; font-style:normal; }
.conversation span { display:block; margin-top:4px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conversation:hover, .conversation.active, .mail-row:hover, .mail-row.active { background: rgba(255,255,255,.1); }
.chat, .mail-detail { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 48px; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 700; }
.chat-body { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.bubble { max-width: 68%; padding: 8px 12px; border-radius: 17px; line-height: 1.4; }
.bubble small { display:block; margin-top:4px; opacity:.65; font-size:10px; }
.bubble.in { align-self: flex-start; background: rgba(255,255,255,.13); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--blue); border-bottom-right-radius: 5px; }
.msg-avatar { width:28px; height:28px; display:inline-grid; place-items:center; border-radius:50%; margin-right:8px; color:white; }
.chat-input { height: 50px; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.chat-input input { flex: 1; }
.send { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); }

.mail-detail { padding: 22px; overflow: auto; display: block; }
.mailboxes { width:150px; flex-shrink:0; padding:12px 8px; border-right:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.06); }
.mail-row { width:100%; display:block; text-align:left; color:var(--text); }
.mail-row.unread b, .mail-row.unread strong { color:white; }
.mail-row div { display:flex; justify-content:space-between; gap:8px; }
.mail-row span { color:var(--blue); font-size:11px; }
.mail-row strong, .mail-row p { display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mail-row p { color:var(--muted); font-size:12px; }
.mail-toolbar { display:flex; gap:8px; margin-bottom:18px; }
.mail-subject { font-size: 22px; font-weight: 750; margin-bottom: 8px; }
.mail-meta { color: var(--muted); margin-bottom: 22px; }
.mail-body { line-height: 1.7; color: rgba(255,255,255,.86); white-space: pre-wrap; }
.mail-compose { width:100%; display:flex; flex-direction:column; gap:10px; padding:16px; }
.mail-compose textarea { flex:1; resize:none; border:0; outline:0; border-radius:12px; padding:12px; background:rgba(255,255,255,.08); color:white; }

.calendar { display: flex; width: 100%; height: 100%; }
.calendar-grid { flex: 1; padding: 14px; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 26px repeat(6, 1fr); gap: 4px; }
.cal-head { color: var(--muted); font-weight: 700; text-align: center; font-size: 12px; }
.cal-day { padding: 7px; border-radius: 10px; background: rgba(255,255,255,.055); overflow: hidden; }
.cal-day.today .cal-num { background: var(--red); color: white; }
.cal-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.cal-event { margin-top: 5px; padding: 2px 5px; border-radius: 5px; background: rgba(10,132,255,.35); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.weather { width: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(29,79,140,.45), rgba(99,167,223,.72)), url("../assets/wallpaper_tahoe.jpg") center/cover; color: white; }
.weather-hero { text-align: center; padding: 32px 20px 20px; text-shadow: 0 2px 18px rgba(0,0,0,.38); }
.weather-city { font-size: 28px; font-weight: 400; }
.weather-temp { font-size: 88px; font-weight: 180; line-height: 1; }
.weather-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.weather-card, .store-card, .music-row { border-radius: 14px; background: rgba(255,255,255,.14); padding: 12px; }
.photos-grid { padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 4px; }
.photo { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.08); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photos-app { width:100%; height:100%; display:flex; background:rgba(20,22,28,.9); }
.photos-sidebar { width:180px; flex-shrink:0; padding:12px 8px; border-right:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.06); }
.photos-main { flex:1; min-width:0; display:flex; flex-direction:column; }
.photos-toolbar { height:58px; display:flex; align-items:center; justify-content:space-between; padding:0 18px; border-bottom:1px solid rgba(255,255,255,.08); }
.photos-toolbar h1 { margin:0; font-size:24px; }
.photos-grid-pro { flex:1; overflow:auto; padding:16px; display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); grid-auto-rows:132px; gap:10px; align-content:start; }
.photo-tile { width:100%; height:100%; display:block; position:relative; overflow:hidden; border-radius:10px; background:rgba(255,255,255,.08); color:white; padding:0; border:none; outline:none; cursor:pointer; contain: layout paint; }
.photo-tile img { width:100%; height:100%; object-fit:cover; transition:transform .18s ease-out; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.photo-tile:hover img { transform:scale(1.05); }
.photo-tile span { position:absolute; left:8px; right:8px; bottom:8px; padding:5px 7px; border-radius:8px; background:rgba(0,0,0,.42); text-align:left; font-size:12px; }
.photo-viewer { width:100%; height:100%; display:flex; flex-direction:column; background:#050505; }
.photo-stage { flex:1; display:grid; place-items:center; min-height:0; }
.photo-stage img, .photo-slideshow img { max-width:100%; max-height:100%; object-fit:contain; }
.photo-meta { height:48px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; color:white; border-top:1px solid rgba(255,255,255,.1); }
.photo-meta span { color:var(--muted); }
.photo-slideshow { width:100%; height:100%; display:grid; place-items:center; background:#050505; color:white; }
.photo-slideshow div { position:absolute; bottom:24px; padding:8px 14px; border-radius:999px; background:rgba(0,0,0,.46); }
.music { width: 100%; display: flex; flex-direction: column; }
.music-list { flex: 1; overflow: auto; padding: 14px; }
.music-row { display: grid; grid-template-columns: 34px 1fr 60px; align-items: center; gap: 10px; margin-bottom: 8px; }
.music-row.playing { color: var(--pink); }
.player { height: 74px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.24); }
.play-btn { width: 38px; height: 38px; border-radius: 50%; background: white; color: black; }
.map { width: 100%; position: relative; overflow: hidden; background: #213245; }
.map-tiles { position:absolute; inset:0; display:grid; grid-template-columns:repeat(3, 256px); grid-auto-rows:256px; place-content:center; opacity:.86; filter:saturate(.9) brightness(.72); transform:scale(1.25); }
.map-tiles img { width:256px; height:256px; }
.road { position: absolute; background: rgba(255,255,255,.12); border-radius: 99px; }
.poi { position: absolute; transform: translate(-50%, -50%); padding: 6px 9px; border-radius: 99px; background: rgba(10,132,255,.8); font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.store { padding: 18px; width: 100%; overflow: auto; }
.store-hero { border-radius: 18px; padding: 24px; min-height: 170px; background: linear-gradient(135deg, rgba(10,132,255,.82), rgba(125,92,255,.78) 55%, rgba(255,55,95,.78)), url("../assets/wallpaper_tahoe.jpg") center/cover; margin-bottom: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 18px 44px rgba(0,0,0,.26); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.appstore-card-rich h3 { margin:10px 0 3px; }
.store-app-icon { width:54px; height:54px; border-radius:14px; display:grid; place-items:center; font-weight:850; letter-spacing:0; box-shadow:inset 0 1px 0 rgba(255,255,255,.42), 0 10px 22px rgba(0,0,0,.25); }
.get { height: 28px; padding: 0 16px; border-radius: 99px; color: var(--blue); background: rgba(255,255,255,.9); font-weight: 800; }

@media (max-width: 900px) {
  .menu-button:not(.apple):not(.strong) { display: none; }
  .dock { left: 8px; right: 8px; transform: none; justify-content: flex-start; padding: 5px 7px; min-height: 56px; }
  .dock-item { width: var(--dock-item-size, 42px); }
  .dock-icon { width: var(--dock-icon-size, 40px); height: var(--dock-icon-size, 40px); font-size: 22px; border-radius: 11px; }
  .dock-separator { height: 34px; margin: 0 2px 7px; }
  .sidebar, .notes-list, .messages-list, .mail-list { width: 190px; }
}

@media (max-width: 1200px) {
  .dock { gap: var(--dock-gap, 2px); }
  .dock-item { width: var(--dock-item-size, clamp(34px, 4.2vw, 46px)); }
  .dock-icon { width: var(--dock-icon-size, clamp(32px, 4vw, 44px)); height: var(--dock-icon-size, clamp(32px, 4vw, 44px)); font-size: clamp(16px, 2.2vw, 23px); border-radius: clamp(9px, 1.3vw, 12px); }
  .dock-tooltip { bottom: 60px; }
}

/* Tahoe interaction upgrade */
.desktop-widgets { position: fixed; z-index: 21; left: 18px; top: 44px; display: grid; gap: 10px; width: 164px; opacity:.94; }
.widget-card { position: relative; overflow: hidden; min-height: 92px; border-radius: 18px; padding: 12px; text-align: left; color: white; border: 1px solid rgba(255,255,255,.22); background: rgba(32,36,45,.34); box-shadow: 0 14px 34px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2); backdrop-filter: blur(28px) saturate(175%); }
.widget-card::after { content:""; position:absolute; inset:-40%; background:linear-gradient(120deg, transparent, rgba(255,255,255,.16), transparent); animation: widget-shine 6s ease-in-out infinite; }
.widget-kicker { position: relative; z-index: 1; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.widget-big { position: relative; z-index: 1; font-size: 36px; line-height: 1; font-weight: 250; margin-top: 6px; }
.widget-sub { position: relative; z-index: 1; margin-top: 8px; color: rgba(255,255,255,.7); font-size: 12px; }
.weather-widget { background: linear-gradient(160deg, rgba(10,132,255,.74), rgba(100,210,255,.32)), url("../assets/wallpaper_tahoe.jpg") center/cover; }
.calendar-widget { background: linear-gradient(160deg, rgba(255,69,58,.75), rgba(255,255,255,.18)); }
.calendar-widget-date { position: relative; z-index: 1; font-size: 46px; line-height: 1; font-weight: 800; margin-top: 6px; }
.monitor-widget { background: linear-gradient(160deg, rgba(3,7,18,.76), rgba(15,23,42,.42)); }
.mini-bars { position: relative; z-index: 1; display: flex; align-items: end; gap: 5px; height: 38px; margin-top: 10px; }
.mini-bars i { flex: 1; border-radius: 999px; background: linear-gradient(180deg,#32d74b,#0a84ff); animation: meter 1.8s ease-in-out infinite alternate; }
.mini-bars i:nth-child(1){height:30%}.mini-bars i:nth-child(2){height:72%;animation-delay:.1s}.mini-bars i:nth-child(3){height:48%;animation-delay:.2s}.mini-bars i:nth-child(4){height:88%;animation-delay:.3s}.mini-bars i:nth-child(5){height:60%;animation-delay:.4s}.mini-bars i:nth-child(6){height:38%;animation-delay:.5s}.mini-bars i:nth-child(7){height:76%;animation-delay:.6s}
.app-icon { position: relative; font-weight: 800; letter-spacing: 0; }
.app-icon::before { content:""; position:absolute; inset:0; border-radius:inherit; background: radial-gradient(circle at 28% 12%, rgba(255,255,255,.55), transparent 32%), linear-gradient(180deg, rgba(255,255,255,.24), transparent 48%); pointer-events:none; }
.app-icon span { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); }
.app-finder::after { content:""; position:absolute; left:50%; top:13%; bottom:13%; width:1px; background:rgba(0,0,0,.18); }
.app-safari span { font-size: 24px; color: white; }
.app-calendar span { align-self:end; margin-bottom:6px; font-size:28px; color:#111; }
.app-terminal span { font-family: var(--mono); }

/* CSS-drawn app icons, replacing letter placeholders */
.app-finder span,.app-safari span,.app-messages span,.app-mail span,.app-maps span,.app-photos span,.app-music span,.app-notes span,.app-settings span,.app-launchpad span,.app-weather span,.app-facetime span,.app-appstore span { opacity: 0; }
.app-finder { background: linear-gradient(90deg,#5bc8ff 0 50%,#1f8dff 50%) !important; }
.app-finder::before { background: radial-gradient(circle at 31% 37%, #111 0 3px, transparent 4px), radial-gradient(circle at 69% 37%, #111 0 3px, transparent 4px), linear-gradient(90deg, transparent 0 49%, rgba(0,0,0,.22) 50%, transparent 51%), linear-gradient(#fff8, #fff0 45%); }
.app-finder::after { content:""; position:absolute; left:17px; right:17px; top:34px; height:7px; border-bottom:3px solid rgba(0,0,0,.75); border-radius:0 0 22px 22px; background:transparent; }
.app-launchpad { background: linear-gradient(135deg,#f8fafc,#cbd5e1) !important; }
.app-launchpad::before { background: radial-gradient(circle at 32% 32%,#111 0 4px,transparent 5px),radial-gradient(circle at 68% 32%,#111 0 4px,transparent 5px),radial-gradient(circle at 32% 68%,#111 0 4px,transparent 5px),radial-gradient(circle at 68% 68%,#111 0 4px,transparent 5px),linear-gradient(#fff8,#fff0); }
.app-safari { background: radial-gradient(circle at center,#f8fbff 0 31%,#0a84ff 32% 65%,#0f4eca 66%) !important; border-radius:50%; }
.app-safari::before { background: conic-gradient(from 36deg, transparent 0 42%, #ff453a 43% 49%, transparent 50% 100%); inset:7px; border-radius:50%; }
.app-safari::after { content:""; position:absolute; inset:11px; border-radius:50%; border:2px solid rgba(255,255,255,.85); }
.app-messages { background: linear-gradient(135deg,#62e56d,#12b957) !important; }
.app-messages::before { inset:11px 8px 15px; border-radius:22px; background:white; }
.app-messages::after { content:""; position:absolute; left:17px; bottom:10px; border:8px solid transparent; border-top-color:white; transform:rotate(28deg); }
.app-mail { background: linear-gradient(135deg,#67d4ff,#0a84ff) !important; }
.app-mail::before { inset:12px 9px; border-radius:5px; background:white; }
.app-mail::after { content:""; position:absolute; left:10px; right:10px; top:18px; height:18px; background: linear-gradient(145deg, transparent 0 47%, #0a84ff 48% 52%, transparent 53%), linear-gradient(35deg, transparent 0 47%, #0a84ff 48% 52%, transparent 53%); opacity:.9; }
.app-maps { background: linear-gradient(135deg,#43d167 0 34%,#f8f8f8 35% 57%,#0a84ff 58% 100%) !important; }
.app-maps::before { inset:0; background: linear-gradient(68deg, transparent 0 40%,#ffcc00 41% 52%,transparent 53%), linear-gradient(112deg, transparent 0 48%,rgba(0,0,0,.24) 49% 51%,transparent 52%); }
.app-maps::after { content:""; position:absolute; width:16px; height:16px; border-radius:50% 50% 50% 0; background:#ff453a; left:25px; top:14px; transform:rotate(-45deg); box-shadow: inset 0 0 0 4px white; }
.app-photos { background: conic-gradient(#ff453a,#ff9f0a,#ffd60a,#32d74b,#64d2ff,#0a84ff,#bf5af2,#ff375f,#ff453a) !important; }
.app-photos::before { inset:12px; border-radius:50%; background:white; opacity:.92; }
.app-music { background: linear-gradient(135deg,#ff375f,#bf5af2) !important; }
.app-music::before { content:"♪"; display:grid; place-items:center; color:white; font-size:34px; font-weight:800; background:none; }
.app-notes { background: linear-gradient(180deg,#fff9b8 0 24%,#ffd60a 25% 100%) !important; color:#111 !important; }
.app-notes::before { background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(0,0,0,.17) 11px 12px); inset:17px 8px 8px; border-radius:0; }
.app-weather { background: linear-gradient(135deg,#5bd6ff,#0a84ff) !important; }
.app-weather::before { width:26px; height:26px; border-radius:50%; background:#ffd60a; left:14px; top:13px; box-shadow: 14px 15px 0 5px rgba(255,255,255,.9), 0 15px 0 2px rgba(255,255,255,.9); }
.app-facetime { background: linear-gradient(135deg,#36e36f,#0abf53) !important; }
.app-facetime::before { inset:13px 16px; border-radius:8px; background:white; opacity:.96; }
.app-facetime::after { content:""; position:absolute; right:9px; top:19px; width:15px; height:18px; border-radius:3px; background:white; clip-path:polygon(0 24%,100% 0,100% 100%,0 76%); opacity:.96; }
.app-settings { background: linear-gradient(135deg,#9aa4b2,#4b5563) !important; }
.app-settings::before { content:"⚙"; display:grid; place-items:center; color:white; font-size:32px; background:none; opacity:.95; }
.app-appstore { background: linear-gradient(135deg,#54c7ff,#0a84ff) !important; }
.app-appstore img { display:none; }
.app-appstore::before { content:""; position:absolute; width:38px; height:38px; left:50%; top:50%; transform:translate(-50%,-50%); border-radius:50%; border:4px solid rgba(255,255,255,.96); background:transparent; opacity:1; }
.app-appstore::after { content:""; position:absolute; left:20px; right:20px; top:31px; height:5px; border-radius:99px; background:white; box-shadow: -7px 10px 0 -1px white, 7px -10px 0 -1px white; transform:rotate(0deg); }
.launchpad, .mission-control { position: fixed; inset: 0; z-index: 850; opacity: 0; transform: scale(1.08); transition: opacity .32s var(--ease-mac), transform .38s var(--ease-out-expo), backdrop-filter .32s var(--ease-mac); background: rgba(6,10,18,.28); backdrop-filter: blur(32px) saturate(160%); -webkit-backdrop-filter: blur(32px) saturate(160%); pointer-events: none; }
.launchpad.show, .mission-control.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.launch-search { position:absolute; top:54px; left:50%; transform:translateX(-50%); width:280px; height:34px; border-radius:12px; border:1px solid rgba(255,255,255,.24); background:rgba(255,255,255,.16); color:white; outline:0; text-align:center; }
.launch-grid { width:min(920px, calc(100vw - 120px)); margin:112px auto 0; display:grid; grid-template-columns:repeat(6, 1fr); gap:28px 34px; }
.launch-app { color:white; background:transparent; text-shadow:0 2px 8px rgba(0,0,0,.42); animation: launch-in .28s both; }
.launch-app:hover .launch-icon { transform: translateY(-6px) scale(1.06); }
.launch-app.selected .launch-icon { outline:2px solid rgba(255,255,255,.72); outline-offset:4px; transform: translateY(-4px) scale(1.04); }

/* macOS Tahoe-style vertically scrolling Apps browser */
.launchpad { overflow:hidden; }
.launchpad .launch-search { top:50px; width:min(360px,34vw); height:38px; z-index:3; padding:0 36px; box-sizing:border-box; background:rgba(255,255,255,.14); box-shadow:inset 0 1px rgba(255,255,255,.18),0 8px 24px rgba(0,0,0,.12); font-size:14px; }
.launchpad .launch-search::placeholder { color:rgba(255,255,255,.68); }
.launchpad-topbar { position:absolute; z-index:2; top:38px; left:max(54px,calc((100vw - min(1080px, calc(100vw - 150px)))/2)); right:max(54px,calc((100vw - min(1080px, calc(100vw - 150px)))/2)); height:108px; color:white; }
.launchpad-heading { display:flex; align-items:baseline; gap:10px; }
.launchpad-heading b { font-size:30px; letter-spacing:-.035em; }
.launchpad-heading span { color:rgba(255,255,255,.58); font-size:12px; }
.launchpad-categories { display:flex; gap:7px; margin-top:48px; overflow-x:auto; scrollbar-width:none; }
.launchpad-categories button { flex:0 0 auto; height:31px; padding:0 15px; border:1px solid rgba(255,255,255,.18); border-radius:16px; background:rgba(255,255,255,.09); color:rgba(255,255,255,.78); backdrop-filter:blur(16px); font-size:12px; font-weight:600; }
.launchpad-categories button:hover { background:rgba(255,255,255,.16); color:white; }
.launchpad-categories button.active { border-color:rgba(255,255,255,.42); background:rgba(255,255,255,.92); color:#27364a; text-shadow:none; }
.launchpad .launch-grid { position:absolute; inset:158px max(54px,calc((100vw - min(1080px, calc(100vw - 150px)))/2)) 22px; width:auto; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); align-content:start; gap:34px 24px; overflow-y:auto; overscroll-behavior:contain; padding:18px 18px 72px; scroll-behavior:smooth; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.28) transparent; mask-image:linear-gradient(to bottom,transparent,#000 14px,#000 calc(100% - 28px),transparent); }
.launchpad .launch-app { min-width:0; display:flex; flex-direction:column; align-items:center; gap:8px; }
.launchpad .launch-icon { width:72px; height:72px; border-radius:17px; transition:transform .18s var(--mac-spring),filter .18s; }
.launchpad .launch-name { max-width:112px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.launch-empty { min-height:55vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:white; }
.launch-empty b { font-size:19px; }.launch-empty span { color:rgba(255,255,255,.58); font-size:13px; }
@media (max-width:800px) { .launchpad-topbar { left:28px; right:28px; }.launchpad .launch-grid { left:28px; right:28px; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); }.launchpad-heading b { font-size:25px; } }
.launch-icon { width:76px; height:76px; margin:0 auto 8px; border-radius:22px; display:grid; place-items:center; font-size:30px; box-shadow:0 14px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.32); transition:.16s; }
.launch-empty { grid-column:1 / -1; min-height:220px; display:grid; place-items:center; color:rgba(255,255,255,.72); font-size:15px; }
.app-missioncontrol { background:transparent !important; box-shadow:none !important; }
.app-missioncontrol .real-app-icon-img { width:100%; height:100%; object-fit:contain; }
.mission-control { overflow:auto; padding:24px 34px 54px; box-sizing:border-box; color:white; }
.mission-heading { width:min(1120px,calc(100vw - 100px)); margin:2px auto 12px; display:flex; align-items:baseline; gap:12px; pointer-events:none; text-shadow:0 2px 10px rgba(0,0,0,.38); }
.mission-heading b { font-size:24px; letter-spacing:-.035em; }
.mission-heading span { color:rgba(255,255,255,.62); font-size:12px; }
.mission-close { position:fixed; z-index:3; top:38px; right:38px; width:34px; height:34px; border-radius:50%; background:rgba(28,31,38,.6); border:1px solid rgba(255,255,255,.22); color:white; font-size:23px; line-height:30px; box-shadow:0 8px 24px rgba(0,0,0,.25); backdrop-filter:blur(18px); transition:transform .18s,background .18s; }
.mission-close:hover { transform:scale(1.08); background:rgba(50,54,64,.82); }
.mission-strip { min-height:128px; display:flex; align-items:flex-start; justify-content:center; gap:16px; padding:8px 4px 14px; overflow-x:auto; }
.mission-space-btn { position:relative; width:172px; min-width:172px; padding:0; display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 8px; background:transparent; color:white; text-align:left; }
.mission-space-preview { position:relative; grid-column:1/-1; width:100%; height:94px; border-radius:10px; background-size:cover; background-position:center; border:2px solid transparent; box-shadow:0 10px 28px rgba(0,0,0,.3); overflow:hidden; transition:transform .2s var(--mac-spring),border-color .2s; }
.mission-space-preview::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(0,0,0,.12)); }
.mission-space-preview i { position:absolute; z-index:1; right:7px; bottom:7px; min-width:20px; height:20px; padding:0 5px; display:grid; place-items:center; border-radius:10px; background:rgba(10,12,18,.7); font-style:normal; font-size:11px; }
.mission-space-btn:hover .mission-space-preview { transform:translateY(-3px); border-color:rgba(255,255,255,.62); }
.mission-space-btn.active .mission-space-preview { border-color:#0a84ff; box-shadow:0 0 0 2px rgba(10,132,255,.34),0 12px 30px rgba(0,0,0,.35); }
.mission-space-btn b { font-size:12px; padding-left:2px; }
.mission-space-btn em { color:rgba(255,255,255,.55); font-size:10px; font-style:normal; }
.mission-space-remove { position:absolute; z-index:2; right:-8px; top:-8px; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:rgba(20,22,28,.82); border:1px solid rgba(255,255,255,.25); color:white; font-size:16px; opacity:0; transition:opacity .15s,transform .15s; }
.mission-space-btn:hover .mission-space-remove { opacity:1; }
.mission-space-remove:hover { transform:scale(1.1); }
.mission-space-btn.add-space { height:94px; border:1px dashed rgba(255,255,255,.36); border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:rgba(255,255,255,.72); transition:background .18s,border-color .18s; }
.mission-space-btn.add-space:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.68); color:white; }
.mission-space-btn.add-space strong { font-size:30px; font-weight:300; line-height:24px; }
.mission-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:22px; width:min(1080px, calc(100vw - 100px)); margin:22px auto; }
.mission-window { min-height:170px; padding:16px; border-radius:18px; text-align:left; color:white; background:rgba(24,28,36,.72); border:1px solid rgba(255,255,255,.2); box-shadow:0 18px 50px rgba(0,0,0,.34); transform:translateY(16px); animation: mission-in .24s forwards; }
.mission-window.minimized { opacity:.72; border-style:dashed; }
.mission-window-head { display:flex; align-items:center; gap:10px; font-weight:800; margin-bottom:12px; }
.mission-mini-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:8px; font-size:13px; box-shadow:inset 0 1px 0 rgba(255,255,255,.28); overflow:hidden; }
.mission-title { font-weight:800; margin-bottom:12px; }
.mission-preview { color:rgba(255,255,255,.62); line-height:1.45; }
.mission-window-space { margin-top:14px; color:rgba(255,255,255,.48); font-size:12px; }
.mission-hint { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); padding:7px 12px; border-radius:999px; background:rgba(20,23,30,.38); color:rgba(255,255,255,.62); font-size:11px; backdrop-filter:blur(14px); pointer-events:none; }
.mission-hint span { color:rgba(255,255,255,.94); font-weight:700; }
.mission-hint i { display:inline-block; width:3px; height:3px; margin:0 7px 2px; border-radius:50%; background:rgba(255,255,255,.35); }
@media (max-width:700px) { .mission-control{padding:18px 18px 48px}.mission-heading,.mission-grid{width:calc(100vw - 36px)}.mission-close{top:24px;right:22px}.mission-strip{justify-content:flex-start}.mission-grid{grid-template-columns:1fr}.mission-space-btn{width:148px;min-width:148px}.mission-space-preview{height:82px} }
@keyframes widget-shine { from { transform: translateX(-50%) rotate(12deg); opacity:0; } 35% { opacity:1; } to { transform: translateX(50%) rotate(12deg); opacity:0; } }
@keyframes meter { to { transform: scaleY(.62); filter:hue-rotate(50deg); } }
@keyframes launch-in { from { opacity:0; transform:translateY(18px) scale(.92); } }
@keyframes mission-in { to { transform:translateY(0); } }

.activity-app { width:100%; display:flex; flex-direction:column; }
.activity-dashboard { display:grid; grid-template-columns:1fr 190px; gap:14px; padding:16px; }
.activity-chart { height:260px; border-radius:18px; padding:16px; background:rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.1); }
.chart-title { font-weight:800; margin-bottom:10px; }
.activity-chart svg { width:100%; height:205px; overflow:visible; }
.activity-line { fill:none; stroke:#32d74b; stroke-width:4; filter:drop-shadow(0 0 10px rgba(50,215,75,.48)); transition:d .3s; }
.activity-area { fill:url(#cpuFill); transition:d .3s; }
.activity-stats { display:grid; gap:10px; }
.activity-stats div { border-radius:16px; padding:14px; background:rgba(255,255,255,.09); }
.activity-stats b { display:block; font-size:28px; }
.activity-stats span { color:var(--muted); font-size:12px; }
.process-table { margin:0 16px 16px; border-radius:14px; overflow:hidden; background:rgba(255,255,255,.06); }
.process-row { display:grid; grid-template-columns:1fr 90px 100px; padding:9px 12px; border-bottom:1px solid rgba(255,255,255,.07); }
.process-row:last-child { border-bottom:0; }
.reminders-app { width:100%; display:flex; }
.reminders-main { flex:1; padding:24px; display:flex; flex-direction:column; }
.reminders-main h1 { margin:0 0 18px; font-size:30px; }
.reminder-row { display:flex; align-items:center; gap:12px; min-height:46px; border-radius:12px; padding:0 12px; margin-bottom:6px; background:rgba(255,255,255,.07); color:white; text-align:left; }
.reminder-row:hover { background:rgba(255,255,255,.12); }
.reminder-row.done { color:rgba(255,255,255,.48); text-decoration:line-through; }
.check { width:24px; height:24px; border-radius:50%; border:2px solid var(--blue); display:grid; place-items:center; color:var(--blue); text-decoration:none; }
.clock-app { width:100%; display:grid; grid-template-columns:300px 1fr; gap:22px; align-items:center; padding:28px; }
.analog-clock { position:relative; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,#1f2937,#030712); border:1px solid rgba(255,255,255,.18); box-shadow:inset 0 2px 18px rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.34); }
.tick { position:absolute; color:rgba(255,255,255,.68); font-style:normal; font-weight:800; }
.t12 { top:14px; left:50%; transform:translateX(-50%); }.t3{right:18px;top:50%;transform:translateY(-50%)}.t6{bottom:14px;left:50%;transform:translateX(-50%)}.t9{left:18px;top:50%;transform:translateY(-50%)}
.hand { position:absolute; left:50%; bottom:50%; transform-origin:50% 100%; border-radius:999px; }
.hand.hour { width:8px; height:70px; margin-left:-4px; background:white; }
.hand.minute { width:5px; height:96px; margin-left:-2.5px; background:rgba(255,255,255,.86); }
.hand.second { width:2px; height:104px; margin-left:-1px; background:#ff453a; }
.pin { position:absolute; left:50%; top:50%; width:14px; height:14px; margin:-7px; border-radius:50%; background:white; }
.clock-side h2 { font-size:38px; margin:0 0 18px; }

.safari-real { width:100%; display:flex; flex-direction:column; background:#f5f6f7; color:#111; }
.safari-tabs { height:34px; display:flex; align-items:end; gap:6px; padding:6px 12px 0; background:rgba(230,234,238,.88); border-bottom:1px solid rgba(0,0,0,.08); }
.safari-tab { height:28px; min-width:170px; border-radius:9px 9px 0 0; background:white; color:#222; text-align:left; padding:0 12px; box-shadow:0 -1px 0 rgba(0,0,0,.05); }
.safari-tab.active { background:#fff; box-shadow:0 -1px 0 rgba(0,0,0,.05), inset 0 2px 0 #0a84ff; }
.safari-tab i { float:right; width:18px; height:18px; display:inline-grid; place-items:center; border-radius:50%; font-style:normal; color:#555; }
.safari-tab i:hover { background:rgba(0,0,0,.1); }
.safari-new-tab { width:28px; height:24px; border-radius:7px; color:#333; }
.safari-real-toolbar { background:rgba(245,247,250,.92); color:#222; border-bottom:1px solid rgba(0,0,0,.08); }
.safari-address { flex:1; display:flex; align-items:center; gap:8px; height:30px; border-radius:9px; background:rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.06); padding:0 10px; }
.safari-address input { flex:1; border:0; outline:0; background:transparent; color:#111; text-align:center; }
.safari-progress { height:2px; background:transparent; }
.safari-progress i { display:block; height:100%; width:0; background:#0a84ff; transition:width .25s; }
.safari-page { flex:1; min-height:0; background:white; position:relative; overflow:hidden; }
.safari-webview { width:100%; height:100%; border:0; display:block; }
.safari-start { height:100%; padding:48px; background:linear-gradient(180deg,#f8fafc,#e5e7eb); overflow:auto; }
.safari-hero { text-align:center; margin-bottom:34px; }
.safari-compass { width:86px; height:86px; margin:0 auto 12px; border-radius:50%; background:radial-gradient(circle at center,#fff 0 30%,#0a84ff 31% 66%,#0f4eca 67%); box-shadow:0 14px 28px rgba(10,132,255,.22); position:relative; }
.safari-compass::after { content:""; position:absolute; inset:18px; background:conic-gradient(from 38deg, transparent 0 42%, #ff453a 43% 49%, transparent 50%); border-radius:50%; }
.safari-favorites { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:16px; max-width:760px; margin:0 auto; }
.safari-favorite { height:104px; border-radius:18px; background:white; color:#111; box-shadow:0 12px 30px rgba(0,0,0,.08); display:grid; place-items:center; gap:4px; }
.safari-favorite span { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,#64d2ff,#0a84ff); color:white; font-weight:800; }
.browser-error { height:100%; display:grid; place-items:center; text-align:center; color:#111; }
.safari-list-page { height:100%; padding:34px 42px; overflow:auto; background:linear-gradient(180deg,#f8fafc,#e5e7eb); color:#111; }
.safari-list-page h1 { margin:0 0 22px; font-size:34px; }
.safari-list-row { width:100%; min-height:58px; display:grid; grid-template-columns:minmax(0,1fr) minmax(160px,260px) 120px; align-items:center; gap:14px; padding:0 14px; margin-bottom:8px; border-radius:14px; background:white; color:#111; text-align:left; box-shadow:0 8px 20px rgba(0,0,0,.06); }
.safari-list-row:hover { background:#eef6ff; }
.safari-list-row b, .safari-list-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.safari-list-row span, .safari-list-row em { color:#64748b; font-style:normal; font-size:12px; }
.textedit-app { width:100%; display:flex; flex-direction:column; background:#f7f4ec; color:#111; }
.textedit-editor { flex:1; padding:34px 44px; outline:0; font:16px/1.65 Georgia, "Times New Roman", serif; color:#111; overflow:auto; background:linear-gradient(90deg, transparent 0 64px, rgba(255,0,0,.12) 65px 66px, transparent 67px), repeating-linear-gradient(180deg,#fffdf8 0 31px,#dbeafe 32px 33px); }
.preview-app { width:100%; display:flex; flex-direction:column; }
.preview-stage { flex:1; display:grid; place-items:center; background:radial-gradient(circle,#374151,#111827); overflow:auto; }
.preview-stage img { max-width:90%; max-height:90%; transform:scale(var(--zoom)) rotate(var(--rotate)); transition:transform .18s; box-shadow:0 20px 70px rgba(0,0,0,.44); border-radius:6px; }
.phone-app { width:100%; height:100%; display:flex; background:rgba(22,25,30,.86); }
.phone-sidebar { width:190px; flex-shrink:0; padding:12px 8px; border-right:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.07); }
.phone-main { flex:1; min-width:0; padding:24px; overflow:auto; }
.phone-list { display:flex; flex-direction:column; gap:8px; }
.phone-row { width:100%; min-height:56px; display:grid; grid-template-columns:minmax(0,1fr) 120px 86px; align-items:center; gap:12px; padding:0 14px; border-radius:14px; background:rgba(255,255,255,.08); color:var(--text); text-align:left; }
.phone-row:hover { background:rgba(10,132,255,.34); }
.phone-row span:first-child { font-weight:750; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-row em { color:var(--muted); font-style:normal; font-size:12px; text-align:right; }
.phone-dial { max-width:320px; margin:0 auto; display:flex; flex-direction:column; gap:16px; }
.phone-pad { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.phone-pad button { height:58px; border-radius:18px; background:rgba(255,255,255,.1); color:white; font-size:18px; }
.phone-call-button { height:48px; border-radius:999px; background:var(--green); color:white; font-weight:800; }
.phone-call-screen { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:linear-gradient(180deg,#10251d,#050908); color:white; text-align:center; }
.phone-call-avatar { width:96px; height:96px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.18); font-size:42px; font-weight:800; }
.phone-call-actions { display:flex; gap:10px; margin-top:18px; }
.phone-call-actions button { min-width:68px; height:44px; border-radius:999px; background:rgba(255,255,255,.15); color:white; }
.phone-call-actions button.active { background:rgba(255,255,255,.32); }
.phone-call-actions .end { background:var(--red); }
.facetime-app { width:100%; display:flex; flex-direction:column; background:linear-gradient(135deg,#0f172a,#064e3b); }
.facetime-video { flex:1; display:grid; place-items:center; align-content:center; gap:10px; color:white; }
.face-orb { width:150px; height:150px; border-radius:50%; background:linear-gradient(135deg,#67e8f9,#34d399); box-shadow:0 24px 80px rgba(52,211,153,.32); animation: orb-pulse 2.4s infinite ease-in-out; }
.call-name { font-size:28px; font-weight:800; }
.facetime-controls, .quicktime-controls { height:76px; display:flex; align-items:center; justify-content:center; gap:18px; background:rgba(0,0,0,.24); }
.facetime-controls button, .quicktime-controls button { height:44px; min-width:70px; border-radius:999px; background:rgba(255,255,255,.18); color:white; }
.facetime-controls .call { background:#32d74b; }
.facetime-controls .call.active { background:#ff453a; }
.quicktime-app { width:100%; display:flex; flex-direction:column; background:#030712; }
.quicktime-screen { flex:1; display:grid; place-items:center; align-content:center; gap:18px; color:white; }
.record-ring { width:140px; height:140px; border-radius:50%; border:7px solid rgba(255,255,255,.18); box-shadow:inset 0 0 0 32px #ff453a; animation: record-idle 2s infinite; }
.record-btn { width:46px !important; min-width:46px !important; height:46px !important; border-radius:50% !important; background:#ff453a !important; }
.record-btn.active { border-radius:12px !important; animation: recording .9s infinite alternate; }
.stocks-app { width:100%; display:flex; background:#060914; }
.stocks-list { width:220px; padding:10px; border-right:1px solid rgba(255,255,255,.08); overflow:auto; }
.stock-row { width:100%; min-height:54px; border-radius:12px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; color:white; }
.stock-row.active, .stock-row:hover { background:rgba(255,255,255,.1); }
.up { color:#32d74b; }.down { color:#ff453a; }
.stock-detail { flex:1; padding:26px; color:white; }
.stock-detail h1 { margin:0; font-size:34px; }
.stock-price { font-size:48px; font-weight:750; margin:8px 0 18px; }
.stock-path { fill:none; stroke:#32d74b; stroke-width:5; filter:drop-shadow(0 0 12px rgba(50,215,75,.42)); }
.home-app { width:100%; padding:24px; background:linear-gradient(135deg,#f8fafc,#dbeafe); color:#111; overflow:auto; }
.home-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; }
.home-device { min-height:138px; border-radius:22px; padding:16px; text-align:left; background:white; color:#111; box-shadow:0 14px 34px rgba(0,0,0,.08); display:flex; flex-direction:column; gap:8px; }
.home-device.on { background:linear-gradient(135deg,#fff7ed,#fde68a); }
.home-device span { font-size:30px; }
.home-device b { margin-top:auto; }
.home-device em { color:#64748b; font-style:normal; }

.native-fullscreen-button { font-weight: 800; }
.real-maps { width:100%; height:100%; display:flex; flex-direction:column; background:#dfe9df; color:#172033; }
.maps-searchbar { height:48px; display:flex; align-items:center; gap:8px; padding:8px 10px; background:rgba(246,248,250,.92); border-bottom:1px solid rgba(0,0,0,.08); }
.leaflet-map { flex:1; min-height:0; position:relative; overflow:hidden; background:#cfe3d4; }
.static-map { position:absolute; inset:0; overflow:hidden; background:linear-gradient(135deg,#cbe6cf,#d8e8f6); }
.static-map-grid { position:absolute; inset:-8%; background:linear-gradient(90deg,rgba(255,255,255,.48) 0 7px,transparent 8px 100%),linear-gradient(0deg,rgba(255,255,255,.44) 0 7px,transparent 8px 100%); background-size:92px 92px; transform:rotate(-12deg) scale(1.15); }
.static-road { position:absolute; height:12px; border-radius:99px; background:#fff; box-shadow:0 0 0 2px rgba(150,160,168,.24); }
.static-road.primary { height:20px; background:#ffd16a; }
.static-river { position:absolute; left:-8%; right:-8%; top:42%; height:74px; border-radius:50%; background:rgba(75,173,222,.58); transform:rotate(-10deg); }
.static-pin { position:absolute; transform:translate(-50%,-100%); padding:6px 9px; border-radius:12px; background:#0a84ff; color:white; font-size:12px; box-shadow:0 8px 18px rgba(0,0,0,.25); }
.static-map-coordinate { position:absolute; left:12px; bottom:12px; padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.78); color:#243041; font-size:12px; font-weight:650; box-shadow:0 12px 30px rgba(0,0,0,.13); }
.static-map-note { position:absolute; right:12px; bottom:12px; max-width:320px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.86); color:#1f2937; font-size:12px; box-shadow:0 12px 30px rgba(0,0,0,.16); }
.amap-map { position:absolute; inset:0; overflow:hidden; background:#dce8dd; }
.amap-tile-layer { position:absolute; left:50%; top:50%; width:1536px; height:1024px; transform:translate(-50%,-50%); }
.amap-tile { position:absolute; width:256px; height:256px; object-fit:cover; background:#edf2ed; user-select:none; pointer-events:none; }
.amap-pin { z-index:3; }
.weather-live { overflow:auto; }
.weather-toolbar { display:flex; gap:8px; padding:12px; background:rgba(0,0,0,.18); border-bottom:1px solid rgba(255,255,255,.12); }
.weather-toolbar input { flex:1; }
.weather-source, .weather-range { margin-top:6px; color:rgba(255,255,255,.72); font-size:12px; }
.weather-section-title { padding:14px 16px 6px; font-weight:800; color:rgba(255,255,255,.78); }
.weather-hourly-real { display:flex; gap:8px; overflow-x:auto; padding:8px 14px 14px; scrollbar-width:none; }
.weather-hourly-real::-webkit-scrollbar { display:none; }
.weather-hour-real { min-width:70px; padding:10px 8px; border-radius:14px; text-align:center; background:rgba(0,0,0,.22); color:white; box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }
.weather-hour-real b { display:block; font-size:20px; margin:4px 0; }
.weather-hour-real span { color:rgba(255,255,255,.68); font-size:12px; }
.weather-daily-real { display:grid; gap:6px; padding:8px 14px; }
.weather-day-real { display:grid; grid-template-columns:72px 1fr 78px 52px; gap:8px; align-items:center; min-height:38px; padding:0 12px; border-radius:12px; background:rgba(255,255,255,.12); }
.weather-card small { display:block; margin-top:4px; color:rgba(255,255,255,.62); }
.calc-memory { min-height:20px; padding:8px 18px 0; color:rgba(255,255,255,.48); text-align:right; font-size:12px; }
.finder-pro { width:100%; height:100%; display:flex; background:rgba(22,25,30,.84); }
.finder-pro-sidebar { width:218px; flex-shrink:0; padding:8px 6px 10px; overflow:auto; background:rgba(22,24,30,.72); border-right:1px solid rgba(255,255,255,.1); }
.finder-pro-sidebar .side-item { width:100%; text-align:left; }
.finder-pro-main { flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; }
.finder-pro-toolbar { gap:7px; }
.finder-search { width:190px; flex:0 0 auto; }
.tool-button.active { background:rgba(10,132,255,.72); color:white; }
.finder-actionbar { min-height:36px; display:flex; align-items:center; gap:6px; padding:5px 12px; border-bottom:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.035); }
.finder-actionbar button { height:26px; padding:0 10px; border-radius:7px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.78); font-size:12px; }
.finder-actionbar button:hover { background:rgba(255,255,255,.14); color:white; }
.finder-content-pro { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.finder-grid-view { padding:16px; display:grid; grid-template-columns:repeat(auto-fill, minmax(108px, 1fr)); gap:10px; align-content:start; }
.finder-list-view { display:block; padding:0; }
.finder-list-head, .finder-row { display:grid; grid-template-columns:minmax(220px, 1fr) 190px 86px; gap:12px; align-items:center; min-height:32px; padding:0 14px; border-bottom:1px solid rgba(255,255,255,.055); }
.finder-list-head { position:sticky; top:0; z-index:1; min-height:30px; background:rgba(32,36,44,.96); color:rgba(255,255,255,.48); font-size:11px; font-weight:800; }
.finder-row { width:100%; color:rgba(255,255,255,.82); text-align:left; font-size:13px; }
.finder-row:hover, .finder-row.selected { background:rgba(10,132,255,.34); }
.finder-row.drag-over, .file-item.drag-over { background:rgba(10,132,255,.46); outline:1px solid rgba(10,132,255,.78); outline-offset:-1px; }
.finder-content-pro.finder-drop-target { box-shadow: inset 0 0 0 2px rgba(10,132,255,.58); background:rgba(10,132,255,.08); }
.finder-row span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.finder-row i { display:inline-block; width:28px; font-style:normal; }
.finder-row span:nth-child(2), .finder-row span:nth-child(3) { color:rgba(255,255,255,.52); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.finder-statusbar { height:24px; display:flex; align-items:center; justify-content:center; font-size:12px; color:rgba(255,255,255,.5); border-top:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.035); }
.finder-info-panel { width:100%; height:100%; padding:24px; overflow:auto; text-align:center; }
.finder-info-icon { width:82px; height:82px; margin:4px auto 12px; display:grid; place-items:center; border-radius:20px; background:rgba(255,255,255,.12); font-size:42px; box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }
.finder-info-panel h2 { margin:0 0 20px; font-size:20px; line-height:1.25; word-break:break-word; }
.finder-info-path { display:block; width:100%; text-align:left; white-space:normal; overflow-wrap:anywhere; line-height:1.4; }
@keyframes orb-pulse { 50% { transform:scale(1.06); filter:hue-rotate(25deg); } }
@keyframes record-idle { 50% { box-shadow:inset 0 0 0 26px #ff453a; } }
@keyframes recording { to { transform:scale(.86); } }

/* === Finder Sidebar Enhancements === */
.finder-sb-item { width:100%; text-align:left; justify-content:flex-start !important; gap:8px; }
.finder-sb-icon { width:16px; height:16px; flex-shrink:0; opacity:0.72; fill:currentColor; stroke:none; }
.finder-sb-item.active .finder-sb-icon { opacity:1; }
.finder-tag-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; display:inline-block; }

/* === Finder Path Breadcrumb === */
.finder-breadcrumb { height:28px; display:flex; align-items:center; gap:2px; padding:0 14px; border-bottom:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.03); overflow:hidden; white-space:nowrap; flex-shrink:0; }
.finder-bc-item { display:inline-flex; align-items:center; gap:4px; padding:2px 6px; border-radius:6px; font-size:12px; color:rgba(255,255,255,.62); cursor:pointer; }
.finder-bc-item:hover { background:rgba(255,255,255,.1); color:rgba(255,255,255,.9); }
.finder-bc-item:last-child { color:rgba(255,255,255,.86); font-weight:600; }
.finder-bc-sep { color:rgba(255,255,255,.28); font-size:11px; user-select:none; }

/* === Finder List Sort Columns === */
.finder-sort-col { cursor:pointer; }
.finder-sort-col:hover { color:rgba(255,255,255,.86); }
.finder-sort-col.active { color:rgba(255,255,255,.84); }

/* === Finder Gallery Improvements === */
.finder-gallery-view { display:flex; flex-direction:column; height:100%; }
.finder-gallery-main { flex:1; min-height:0; display:grid; place-items:center; background:rgba(0,0,0,.28); }
.finder-gallery-main img { max-width:90%; max-height:90%; object-fit:contain; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.finder-gallery-strip { height:110px; flex-shrink:0; display:flex; gap:8px; padding:8px 12px; overflow-x:auto; border-top:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.04); scrollbar-width:none; }
.finder-gallery-strip::-webkit-scrollbar { display:none; }

/* === Finder Column View Improvements === */
.finder-column-view { display:flex; flex-direction:row; overflow-x:auto; overflow-y:hidden; }
.column-col { min-width:220px; border-right:1px solid rgba(255,255,255,.1); overflow-y:auto; flex-shrink:0; }
.column-item { width:100%; display:flex; align-items:center; gap:8px; min-height:28px; padding:0 10px; text-align:left; color:rgba(255,255,255,.82); font-size:13px; }
.column-item:hover { background:rgba(255,255,255,.08); }
.column-item.selected { background:rgba(10,132,255,.72); color:white; }
.column-arrow { margin-left:auto; color:rgba(255,255,255,.42); font-size:10px; }
.column-item-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* === Window Resize Handles (all 8 directions) === */
.resize-n  { position:absolute; top:0; left:10px; right:10px; height:5px; cursor:n-resize; }
.resize-s  { position:absolute; bottom:0; left:10px; right:10px; height:5px; cursor:s-resize; }
.resize-e  { position:absolute; right:0; top:10px; bottom:10px; width:5px; cursor:e-resize; }
.resize-w  { position:absolute; left:0; top:10px; bottom:10px; width:5px; cursor:w-resize; }
.resize-ne { position:absolute; top:0; right:0; width:10px; height:10px; cursor:ne-resize; }
.resize-nw { position:absolute; top:0; left:0; width:10px; height:10px; cursor:nw-resize; }
.resize-se { position:absolute; bottom:0; right:0; width:14px; height:14px; cursor:se-resize; }
.resize-sw { position:absolute; bottom:0; left:0; width:10px; height:10px; cursor:sw-resize; }

/* === Dock Multi-Window Dots === */
.dock-item .dock-dots { display:flex; gap:2px; justify-content:center; height:5px; }
.dock-item.running-multi .dock-dot { display:none; }
.dock-item.running-multi .dock-dots { display:flex; }
.dock-multi-dot { width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,.72); }

/* === Window Enhancement Styles === */

/* Snap Preview */
.snap-preview {
  position: fixed;
  z-index: 99;
  background: rgba(10, 132, 255, .28);
  border: 2px solid rgba(10, 132, 255, .6);
  backdrop-filter: blur(8px);
  transition: all .18s cubic-bezier(.2,.9,.2,1.15);
  pointer-events: none;
}

/* Minimize animation */
.window.minimizing {
  transform: translate(var(--min-translate-x, 0), var(--min-translate-y, 0)) scale(var(--min-scale, .12)) !important;
  opacity: 0;
  transition: transform .42s cubic-bezier(.32,.72,.18,1), opacity .34s ease, border-radius .42s ease, filter .34s ease;
  border-radius: 10px;
  filter: blur(2px) saturate(0.85);
}

/* Close animation (shrink to dock icon) */
.window.closing {
  transform: translate(var(--close-translate-x, 0), var(--close-translate-y, 0)) scale(.08);
  opacity: 0;
  transition: transform .34s cubic-bezier(.32,.72,.18,1), opacity .26s ease, border-radius .34s ease, filter .26s ease;
  border-radius: 10px;
  filter: blur(3px) saturate(0.8);
}

/* Fullscreen enter animation */
.window.fullscreening {
  transition: left .36s cubic-bezier(.4,0,.2,1), top .36s cubic-bezier(.4,0,.2,1),
              width .36s cubic-bezier(.4,0,.2,1), height .36s cubic-bezier(.4,0,.2,1),
              border-radius .36s cubic-bezier(.4,0,.2,1);
  border-radius: 0 !important;
}

/* Fullscreen exit animation */
.window.unfullscreening {
  transition: left .36s cubic-bezier(.4,0,.2,1), top .36s cubic-bezier(.4,0,.2,1),
              width .36s cubic-bezier(.4,0,.2,1), height .36s cubic-bezier(.4,0,.2,1),
              border-radius .36s cubic-bezier(.4,0,.2,1);
}

/* Space-hidden windows */
.window.space-hidden {
  display: none !important;
}

/* Desktop Spaces — the menu bar and Dock stay anchored while the workspace moves. */
body.space-transitioning #desktop-icons,
body.space-transitioning #desktop-widgets,
body.space-transitioning #windows {
  pointer-events: none !important;
  will-change: transform, opacity, filter;
}
body.space-leave-left #desktop-icons,
body.space-leave-left #desktop-widgets,
body.space-leave-left #windows { animation: space-leave-left .17s cubic-bezier(.4,0,1,1) both; }
body.space-leave-right #desktop-icons,
body.space-leave-right #desktop-widgets,
body.space-leave-right #windows { animation: space-leave-right .17s cubic-bezier(.4,0,1,1) both; }
body.space-enter-right #desktop-icons,
body.space-enter-right #desktop-widgets,
body.space-enter-right #windows { animation: space-enter-right .26s cubic-bezier(.16,1,.3,1) both; }
body.space-enter-left #desktop-icons,
body.space-enter-left #desktop-widgets,
body.space-enter-left #windows { animation: space-enter-left .26s cubic-bezier(.16,1,.3,1) both; }
@keyframes space-leave-left { to { transform:translateX(-16vw) scale(.985); opacity:.12; filter:blur(3px); } }
@keyframes space-leave-right { to { transform:translateX(16vw) scale(.985); opacity:.12; filter:blur(3px); } }
@keyframes space-enter-right { from { transform:translateX(16vw) scale(.985); opacity:.12; filter:blur(3px); } to { transform:none; opacity:1; filter:none; } }
@keyframes space-enter-left { from { transform:translateX(-16vw) scale(.985); opacity:.12; filter:blur(3px); } to { transform:none; opacity:1; filter:none; } }
@media (prefers-reduced-motion: reduce) {
  body.space-transitioning #desktop-icons,
  body.space-transitioning #desktop-widgets,
  body.space-transitioning #windows { animation:none !important; }
}

/* Accessibility preferences applied by System Settings. */
html.increase-contrast .window,
html.increase-contrast .dock,
html.increase-contrast .menubar,
html.increase-contrast .control-center,
html.increase-contrast .notification-center { border-color:rgba(255,255,255,.42) !important; box-shadow:0 18px 54px rgba(0,0,0,.58),inset 0 1px rgba(255,255,255,.3) !important; }
html.increase-contrast .settings-row,
html.increase-contrast .side-item { color:#fff !important; }
html.light-mode.increase-contrast .settings-row,
html.light-mode.increase-contrast .side-item { color:#000 !important; }
html.reduce-transparency .liquid,
html.reduce-transparency .menubar,
html.reduce-transparency .dock,
html.reduce-transparency .control-center,
html.reduce-transparency .notification-center,
html.reduce-transparency .window .titlebar { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; background-color:rgba(34,36,42,.96) !important; }
html.light-mode.reduce-transparency .liquid,
html.light-mode.reduce-transparency .menubar,
html.light-mode.reduce-transparency .dock,
html.light-mode.reduce-transparency .control-center,
html.light-mode.reduce-transparency .notification-center,
html.light-mode.reduce-transparency .window .titlebar { background-color:rgba(244,245,248,.97) !important; }

/* Mission Control space buttons */
.mission-space-btn {
  height: 56px;
  min-width: 128px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.24);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s, border-color .18s;
}
.mission-space-btn:hover {
  background: rgba(255,255,255,.32);
}
.mission-space-btn.active {
  background: rgba(10,132,255,.72);
  border-color: rgba(10,132,255,.9);
}
.mission-space-btn.add-space {
  min-width: 56px;
  font-size: 22px;
  font-weight: 300;
}
.mission-space-btn.add-space:hover {
  background: rgba(50,215,75,.48);
}

/* Light Mode */
.light-mode {
  --text: rgba(0,0,0,.94);
  --muted: rgba(0,0,0,.62);
  --faint: rgba(0,0,0,.36);
  --line: rgba(0,0,0,.16);
  --panel: rgba(246,248,250,.58);
  --panel-strong: rgba(255,255,255,.82);
  --light-panel: rgba(0,0,0,.11);
  --shadow: 0 26px 80px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.72);
}

.light-mode html, .light-mode body {
  background: #f5f5f7;
}

.light-mode .menubar {
  background: rgba(246,248,250,.72);
  border-bottom: 1px solid rgba(0,0,0,.12);
  color: rgba(0,0,0,.94);
  text-shadow: none;
}

.light-mode .menu-button:hover, .light-mode .status-button:hover, .light-mode .clock-button:hover {
  background: rgba(0,0,0,.08);
}

.light-mode .menu-button.apple::before, .light-mode .menu-button.apple::after {
  background: #111;
}

.light-mode .dock {
  background: rgba(242, 242, 247, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.72);
}

.light-mode .dock-tooltip {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.12);
  color: #111;
}

.light-mode .dock-dot {
  background: rgba(0,0,0,.72);
}

.light-mode .window {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 26px 90px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.72);
}

.light-mode .window.active {
  box-shadow: 0 32px 100px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.72);
}

.light-mode .titlebar {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.light-mode .window-title {
  color: rgba(0,0,0,.72);
}

.light-mode .window-body {
  background: rgba(255,255,255,.82);
}

.light-mode .sidebar, .light-mode .notes-list, .light-mode .messages-list, .light-mode .mail-list {
  background: rgba(0,0,0,.04);
  border-right: 1px solid rgba(0,0,0,.08);
}

.light-mode .side-item {
  color: rgba(0,0,0,.78);
}

.light-mode .side-item:hover {
  background: rgba(0,0,0,.06);
}

.light-mode .side-item.active {
  background: var(--accent);
  color: white;
}

.light-mode .settings-group {
  background: rgba(0,0,0,.05);
}

.light-mode .settings-row {
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.94);
}

.light-mode .value {
  color: rgba(0,0,0,.52);
}

.light-mode .toolbar {
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.03);
}

.light-mode .tool-button {
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.78);
}

.light-mode .tool-button:hover {
  background: rgba(0,0,0,.1);
}

.light-mode .field, .light-mode .search {
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.72);
  color: rgba(0,0,0,.94);
}

.light-mode .toggle {
  background: rgba(0,0,0,.16);
}

.light-mode .toggle.on {
  background: var(--green);
}

.light-mode .menu-pop, .light-mode .context-menu, .light-mode .control-center, .light-mode .notification-center, .light-mode .spotlight-panel {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 26px 80px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.72);
  color: rgba(0,0,0,.94);
}

.light-mode .menu-item, .light-mode .context-item {
  color: rgba(0,0,0,.94);
}

.light-mode .menu-item:hover, .light-mode .menu-item.selected, .light-mode .context-item:hover, .light-mode .context-item.selected {
  background: var(--accent);
  color: white;
}

.light-mode .sep {
  background: rgba(0,0,0,.1);
}

.light-mode .shortcut {
  color: rgba(0,0,0,.42);
}

.light-mode .toast {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 26px 80px rgba(0,0,0,.12);
  color: rgba(0,0,0,.94);
}

.light-mode .toast-title {
  color: rgba(0,0,0,.52);
}

.light-mode .widget-card {
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 14px 34px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.72);
  color: rgba(0,0,0,.94);
}

.light-mode .widget-kicker {
  color: rgba(0,0,0,.52);
}

.light-mode .cc-card {
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
}

.light-mode .widget {
  background: rgba(0,0,0,.04);
}

.light-mode .widget-title {
  color: rgba(0,0,0,.52);
}

.light-mode .file-item {
  color: rgba(0,0,0,.94);
  text-shadow: none;
}

.light-mode .file-item:hover, .light-mode .file-item.selected {
  background: rgba(0,0,0,.06);
}

.light-mode .file-name {
  color: rgba(0,0,0,.86);
}

.light-mode .note-row {
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.light-mode .note-row.active, .light-mode .note-row:hover {
  background: rgba(0,0,0,.06);
}

.light-mode .note-title {
  color: rgba(0,0,0,.94);
}

.light-mode .note-preview, .light-mode .note-date {
  color: rgba(0,0,0,.52);
}

.light-mode .note-editor textarea {
  color: rgba(0,0,0,.94);
}

.light-mode .bubble.in {
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.94);
}

.light-mode .chat-head {
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.94);
}

.light-mode .conversation, .light-mode .mail-row {
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: rgba(0,0,0,.94);
}

.light-mode .conversation:hover, .light-mode .conversation.active, .light-mode .mail-row:hover, .light-mode .mail-row.active {
  background: rgba(0,0,0,.06);
}

.light-mode .mail-subject, .light-mode .mail-meta, .light-mode .mail-body {
  color: rgba(0,0,0,.94);
}

.light-mode .mail-meta {
  color: rgba(0,0,0,.52);
}

.light-mode .cal-head {
  color: rgba(0,0,0,.52);
}

.light-mode .cal-day {
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.94);
}

.light-mode .cal-event {
  background: rgba(10,132,255,.18);
  color: rgba(0,0,0,.86);
}

.light-mode .finder-pro {
  background: rgba(255,255,255,.84);
}

.light-mode .finder-pro-sidebar {
  background: rgba(0,0,0,.04);
  border-right: 1px solid rgba(0,0,0,.08);
}

.light-mode .finder-list-head {
  background: rgba(255,255,255,.92);
  color: rgba(0,0,0,.52);
}

.light-mode .finder-row {
  color: rgba(0,0,0,.86);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.light-mode .finder-row:hover, .light-mode .finder-row.selected {
  background: rgba(10,132,255,.18);
}

.light-mode .finder-row span:nth-child(2), .light-mode .finder-row span:nth-child(3) {
  color: rgba(0,0,0,.52);
}

.light-mode .finder-statusbar {
  color: rgba(0,0,0,.5);
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.025);
}

.light-mode .calc {
  background: rgba(240,240,242,.92);
}

.light-mode .calc-display {
  color: rgba(0,0,0,.94);
}

.light-mode .calc-key {
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.94);
}

.light-mode .calc-key.fn {
  background: rgba(0,0,0,.1);
  color: rgba(0,0,0,.9);
}

.light-mode .calc-key.op {
  background: var(--orange);
  color: white;
}

.light-mode .terminal {
  background: rgba(0,0,0,.88);
}

.light-mode .weather {
  color: white;
}

.light-mode .music-row {
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.94);
}

.light-mode .music-row.playing {
  color: var(--pink);
}

.light-mode .player {
  background: rgba(0,0,0,.04);
  border-top: 1px solid rgba(0,0,0,.08);
}

.light-mode .store-card {
  background: rgba(0,0,0,.05);
}

.light-mode .get {
  background: rgba(0,0,0,.08);
  color: var(--blue);
}

.light-mode .desktop-icon-name {
  color: rgba(0,0,0,.94);
  text-shadow: 0 1px 3px rgba(255,255,255,.72);
}

.light-mode .lock-screen {
  color: white;
}

/* Dock enhancements */
.dock-drag-ghost { opacity:.85; filter:drop-shadow(0 8px 24px rgba(0,0,0,.45)); transition:none !important; }
.dock-item.dock-dragging { opacity:.2 !important; transform:none !important; }
.dock.dock-drag-active .dock-item:hover { transform:none; }
.dock.dock-drag-active .dock-tooltip { display:none; }
.dock.dock-fisheye-active .dock-item .dock-icon {
  z-index: var(--dock-z, 1);
  transform: translateX(var(--dock-shift-x, 0px)) translateY(var(--dock-lift, 0px)) scale(var(--dock-scale, 1)) !important;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.32));
}
.dock.dock-fisheye-active .dock-item .dock-tooltip {
  bottom: calc(72px + var(--dock-tooltip-offset, 0px));
}
.dock.dock-fisheye-active .dock-item:hover .dock-tooltip {
  opacity: 1;
}
.context-item.dock-context-remove { color:var(--red); }
.context-item.dock-context-remove:hover { background:var(--red); color:#fff; }
.context-item[style*="var(--red)"]:hover,
.context-item.danger:hover {
  background: var(--red) !important;
  color: #fff !important;
}

/* ========== Finder Enhanced Styles ========== */

/* Quick Look Overlay */
.quick-look-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  animation: ql-fade-in .18s ease-out;
}
@keyframes ql-fade-in { from { opacity:0; } }
.quick-look-box {
  position: relative;
  width: min(720px, 80vw); max-height: 80vh;
  border-radius: 18px; overflow: hidden;
  background: rgba(28,30,36,.92);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  backdrop-filter: blur(28px) saturate(170%);
  animation: ql-pop .22s cubic-bezier(.2,.9,.18,1.25);
}
@keyframes ql-pop { from { opacity:0; transform:scale(.92) translateY(20px); } }
.quick-look-close {
  position:absolute; top:12px; right:14px; z-index:2;
  width:30px; height:30px; border-radius:50%;
  background:rgba(255,255,255,.18); color:white; font-size:18px;
  display:grid; place-items:center;
}
.quick-look-close:hover { background:rgba(255,255,255,.32); }
.quick-look-title {
  padding:16px 50px 12px 20px;
  font-size:15px; font-weight:700;
  border-bottom:1px solid rgba(255,255,255,.1);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.quick-look-body {
  padding:16px 20px;
  max-height:calc(80vh - 80px);
  overflow:auto;
}

/* Column View */
.finder-column-view {
  display:flex; overflow-x:auto; overflow-y:hidden;
  scrollbar-width:thin;
}
.finder-column-view::-webkit-scrollbar { height:6px; }
.finder-column-view::-webkit-scrollbar-thumb { background:rgba(255,255,255,.2); border-radius:99px; }
.column-col {
  min-width:220px; max-width:280px; flex:0 0 auto;
  border-right:1px solid rgba(255,255,255,.1);
  overflow-y:auto; overflow-x:hidden;
}
.column-item {
  display:flex; align-items:center; gap:8px;
  min-height:32px; padding:4px 12px;
  cursor:default; font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.column-item:hover { background:rgba(255,255,255,.08); }
.column-item.selected { background:rgba(10,132,255,.55); color:white; }
.column-item span:first-child { font-size:18px; flex-shrink:0; }
.column-item-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.column-arrow { color:var(--muted); font-size:11px; flex-shrink:0; }
.column-item.is-dir .column-item-name { font-weight:600; }

/* List View - expanded columns */
.finder-list-view .finder-list-head,
.finder-list-view .finder-row {
  grid-template-columns:minmax(200px,1fr) 140px 80px 100px;
}

/* Sidebar drag-over indicator */
.side-item.drag-over {
  background:rgba(10,132,255,.4) !important;
  outline:2px solid rgba(10,132,255,.6);
  outline-offset:-2px;
}

:root {
  --font-family-base: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --window-shadow-active: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  --window-shadow-inactive: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  --window-radius: 12px;
  --modal-radius: 14px;
  --menu-radius: 10px;
}

body {
  font-family: var(--font-family-base) !important;
}

/* File item rename input */
.finder-rename-input {
  width:100%; background:rgba(255,255,255,.15);
  border:1px solid var(--accent); border-radius:4px;
  color:white; padding:2px 4px; font-size:inherit;
  text-align:center; outline:none;
}

/* Quick feature polish */
.cal-day { cursor: pointer; }
.cal-day.other-month { opacity: .38; }
.cal-events { display: grid; gap: 3px; margin-top: 6px; }
.cal-event { width: 100%; text-align: left; cursor: pointer; }
.music-progress { width: 100%; margin-top: 8px; accent-color: #0a84ff; }
.clipboard-card { display: flex; flex-direction: column; gap: 8px; }
.clipboard-list { display: grid; gap: 6px; max-height: 160px; overflow: auto; }
.clipboard-item { padding: 8px 10px; border-radius: 10px; text-align: left; background: rgba(255,255,255,.12); color: var(--text); border: 1px solid rgba(255,255,255,.08); }
.clipboard-item:hover { background: rgba(255,255,255,.18); }
.lock-input-wrap.error { border-color: rgba(255,69,58,.8); box-shadow: 0 0 0 1px rgba(255,69,58,.25); }
.lock-error { margin-top: 10px; min-height: 18px; color: #ffb4ab; font-size: 12px; text-align: center; opacity: 0; transform: translateY(-4px); transition: .18s; }
.lock-error.show { opacity: 1; transform: translateY(0); }
.siri-button { font-size: 18px; line-height: 1; }
.siri-panel { position: fixed; inset: 0; z-index: 980; display: grid; place-items: end center; padding-bottom: 32px; background: rgba(0,0,0,.14); backdrop-filter: blur(10px); }
.siri-overlay { position: absolute; inset: 0; }
.siri-orb-wrap { position: relative; width: min(540px, calc(100vw - 28px)); display: grid; place-items: center; }
.siri-ripple { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); animation: siri-ripple 2.8s ease-out infinite; }
.siri-ripple-2 { animation-delay: .35s; width: 240px; height: 240px; }
.siri-ripple-3 { animation-delay: .7s; width: 300px; height: 300px; }
.siri-card { position: relative; z-index: 1; width: 100%; padding: 18px; border-radius: 26px; overflow: hidden; }
.siri-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.siri-response { margin: 10px 0 14px; min-height: 24px; font-size: 18px; line-height: 1.4; }
.siri-input-wrap { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.siri-input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: white; }
.siri-send { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.22); }
@keyframes siri-ripple {
  0% { transform: scale(.82); opacity: .75; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes desktop-in {
  from { transform: scale(1.1); filter: blur(20px); opacity: 0; }
  to { transform: scale(1); filter: blur(0); opacity: 1; }
}

.app-icon { border-radius: 22.5%; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.4); }
.app-icon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%); pointer-events: none; }
.app-icon span { font-size: 28px; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.app-icon .custom-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 500; }

.app-icon::before,
.app-icon::after {
  content: none !important;
  display: none !important;
}
.app-icon img.real-app-icon-img {
  position: relative;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none;
}

.app-icon.app-safari img.real-app-icon-img,
.app-icon.app-safari .real-app-icon-img {
  transform: scale(0.86) !important;
}
.app-icon.app-calendar img.real-app-icon-img,
.app-icon.app-calendar .real-app-icon-img {
  transform: scale(0.86) !important;
}
.app-icon.app-phone img.real-app-icon-img,
.app-icon.app-phone .real-app-icon-img {
  transform: scale(0.86) !important;
  border-radius: 22.5%;
}

.dock-icon.app-icon.app-safari img.real-app-icon-img {
  transform: scale(calc(var(--dock-img-scale, 1) * 0.86)) !important;
}
.dock-icon.app-icon.app-calendar img.real-app-icon-img {
  transform: scale(calc(var(--dock-img-scale, 1) * 0.86)) !important;
}
.dock-icon.app-icon.app-phone img.real-app-icon-img {
  transform: scale(calc(var(--dock-img-scale, 1) * 0.86)) !important;
}

.dock-icon.app-icon,
.launch-icon.app-icon,
.spotlight-icon.app-icon,
.mission-mini-icon.app-icon {
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.launch-icon.app-icon img.real-app-icon-img {
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.28));
}
.spotlight-icon.app-icon img.real-app-icon-img,
.mission-mini-icon.app-icon img.real-app-icon-img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.dock-icon.app-icon {
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  min-width: var(--dock-icon-size);
  min-height: var(--dock-icon-size);
  display: grid;
  place-items: center;
}
.dock-icon.app-icon img.real-app-icon-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: scale(var(--dock-img-scale, 1)) !important;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.3));
}
.dock-icon.app-safari { --dock-img-scale: .9; }
.dock-icon.app-calendar { --dock-img-scale: .86; }
.dock-icon.app-notes { --dock-img-scale: .9; }
.dock-icon.app-appstore { --dock-img-scale: 1; }
.dock-icon.app-phone { --dock-img-scale: .86; }
.dock-icon.app-textedit { --dock-img-scale: 1; }
.dock-icon.app-preview { --dock-img-scale: 1; }
.dock-icon.app-home { --dock-img-scale: 1.1; }
.dock-icon.app-icon.app-safari img.real-app-icon-img,
.dock-icon.app-icon.app-calendar img.real-app-icon-img,
.dock-icon.app-icon.app-appstore img.real-app-icon-img,
.dock-icon.app-icon.app-preview img.real-app-icon-img,
.dock-icon.app-icon.app-phone img.real-app-icon-img {
  transform: scale(var(--dock-img-scale, .9)) !important;
}
.dock-icon.app-icon .fallback-dock-icon {
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  min-width: var(--dock-icon-size);
  min-height: var(--dock-icon-size);
  border-radius: 22.5%;
  font-size: var(--dock-emoji-size, 26px);
}
.dock-icon.app-icon span {
  font-size: var(--dock-emoji-size, 26px);
  line-height: 1;
}

/* Dock Magnification (CSS Parabolic Effect) */
.dock-item {
  transition: width 0.18s cubic-bezier(0.25, 1, 0.5, 1), transform 0.18s cubic-bezier(0.25, 1, 0.5, 1);
}
.dock-item .dock-icon {
  transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), filter 0.18s ease;
  transform-origin: bottom center;
  will-change: transform;
}
.dock:hover .dock-item .dock-icon {
  /* When hovering anywhere on dock, slightly reduce base? No, just keep normal */
}
.dock-item:hover .dock-icon {
  transform: scale(var(--dock-hover-scale, 1.24)) translateY(-8px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.32));
  z-index: 100;
}
.dock-item:hover + .dock-item .dock-icon,
.dock-item:has(+ .dock-item:hover) .dock-icon {
  transform: scale(var(--dock-near-scale, 1.09)) translateY(-4px);
  z-index: 99;
}
.dock-item:hover + .dock-item + .dock-item .dock-icon,
.dock-item:has(+ .dock-item + .dock-item:hover) .dock-icon {
  transform: scale(1.06) translateY(-2px);
  z-index: 98;
}
.dock-item.dock-edge-left:hover .dock-icon {
  transform-origin: bottom left;
  transform: translateX(12px) scale(calc(var(--dock-hover-scale, 1.24) - .04)) translateY(-8px);
}
.dock-item.dock-edge-right:hover .dock-icon {
  transform-origin: bottom right;
  transform: translateX(-12px) scale(calc(var(--dock-hover-scale, 1.24) - .04)) translateY(-8px);
}
.dock-item.dock-edge-left:hover + .dock-item .dock-icon,
.dock-item.dock-edge-right:has(+ .dock-item:hover) .dock-icon {
  transform: scale(var(--dock-near-scale, 1.09)) translateY(-4px);
}
.dock-item.dock-edge-right:hover + .dock-item .dock-icon,
.dock-item.dock-edge-left:has(+ .dock-item:hover) .dock-icon {
  transform: scale(var(--dock-near-scale, 1.09)) translateY(-4px);
}

/* Desktop Widgets */
.desktop-widgets {
  position: absolute;
  inset: 0;
  pointer-events: none; /* Let clicks pass through empty areas */
  z-index: 50;
  overflow: hidden;
}
.desktop-widget {
  position: absolute;
  pointer-events: auto;
  will-change: transform;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s, box-shadow 0.2s;
  user-select: none;
}
.desktop-widget:active {
  cursor: grabbing;
}
.desktop-widget.dragging {
  opacity: 0.8;
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.widget-clock {
  width: 160px;
  height: 160px;
  align-items: center;
  justify-content: center;
}
.widget-clock .time { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.widget-clock .date { font-size: 14px; opacity: 0.8; font-weight: 500; margin-top: 5px; }

.widget-weather {
  width: 320px;
  height: 160px;
  justify-content: space-between;
}
.widget-weather .w-top { display: flex; justify-content: space-between; align-items: flex-start; }
.widget-weather .w-city { font-size: 18px; font-weight: 600; }
.widget-weather .w-temp { font-size: 48px; font-weight: 800; letter-spacing: -2px; }
.widget-weather .w-desc { font-size: 16px; opacity: 0.9; }

.widget-sys {
  width: 160px;
  height: 160px;
}
.widget-sys .title { font-size: 14px; opacity: 0.8; margin-bottom: 15px; font-weight: 600; }
.widget-sys .bar-wrap { margin-bottom: 10px; }
.widget-sys .bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.widget-sys .bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; }
.widget-sys .bar-fill { height: 100%; background: #32d74b; border-radius: 3px; transition: width 1s; }

/* Enable clicks on widget cards while letting clicks pass through empty widget areas */
.widget-card, .desktop-widget {
  pointer-events: auto !important;
}

/* Real Apple UI asset replacements */
.desktop-icon-symbol {
  display: grid;
  place-items: center;
  height: 58px;
}

.desktop-object-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 9px 13px rgba(0,0,0,.36));
  transition: transform .18s ease, filter .18s ease;
}

.desktop-object-drive {
  width: 52px;
  height: 52px;
}

.desktop-icon:hover .desktop-object-icon {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.42)) brightness(1.06);
}

.finder-file-icon-img {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.22));
}

.file-icon .finder-file-icon-img {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.finder-row span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.finder-row span:first-child i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-style: normal;
}

.finder-row span:first-child i .finder-file-icon-img {
  width: 22px;
  height: 22px;
}

.finder-info-icon .finder-file-icon-img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.about-mac {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  text-align: left;
}

.about-device-icon {
  width: 148px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.38));
}

.about-title {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.about-specs {
  width: 240px;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.about-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.about-specs span {
  color: var(--muted);
}

.about-specs b {
  font-weight: 650;
}

.empty-state-icon {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.3));
}

/* Drag Selection Box */
.selection-box {
  position: fixed;
  background: rgba(0, 122, 255, 0.2);
  border: 1px solid rgba(0, 122, 255, 0.5);
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
}
.selection-box.hidden {
  display: none;
}
.desktop-icon.selected .desktop-icon-symbol {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.desktop-icon.selected .desktop-icon-name {
  background: rgba(0, 102, 214, 0.9);
  color: #fff;
  border-radius: 4px;
}

/* Quick Look */
.quicklook-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.3); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.quicklook-overlay.show { opacity: 1; pointer-events: auto; }
.quicklook-panel { width: 800px; max-width: 90vw; height: 600px; max-height: 85vh; background: rgba(30, 30, 30, 0.85); border-radius: 14px; box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1); backdrop-filter: blur(30px); display: flex; flex-direction: column; overflow: hidden; transform: scale(0.95); transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.quicklook-overlay.show .quicklook-panel { transform: scale(1); }
.quicklook-titlebar { height: 44px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,0.1); justify-content: space-between; }
.quicklook-close { width: 14px; height: 14px; border-radius: 50%; background: #ff5f57; border: none; color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.1s; }
.quicklook-close:hover { color: rgba(0,0,0,0.5); }
.quicklook-title { font-size: 13px; color: white; font-weight: 500; opacity: 0.8; }
.quicklook-open { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 5px; padding: 4px 10px; font-size: 12px; cursor: pointer; transition: background 0.1s; }
.quicklook-open:hover { background: rgba(255,255,255,0.2); }
.quicklook-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.2); overflow: hidden; }
.quicklook-image { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.quicklook-generic { width: 180px; height: 180px; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)); }
.quicklook-info { height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.quicklook-name { font-size: 16px; font-weight: 500; color: white; margin-bottom: 4px; }
.quicklook-meta { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Finder Gallery View */
.finder-gallery-view { display: flex !important; flex-direction: column; padding: 0; }
.gallery-top { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0,0,0,0.1); padding: 20px; }
.gallery-preview-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.gallery-preview-name { font-size: 16px; color: white; margin-top: 10px; }
.gallery-strip { height: 120px; min-height: 120px; display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 12px; padding: 12px; border-top: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); }
.gallery-strip-item { width: 80px; min-width: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 8px; cursor: default; }
.gallery-strip-item:hover { background: rgba(255,255,255,0.1); }
.gallery-strip-item.selected { background: rgba(10,132,255,0.4); outline: 1px solid rgba(10,132,255,0.8); outline-offset: -1px; }
.gallery-strip-name { font-size: 11px; color: rgba(255,255,255,0.8); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }

/* Spotlight UI Polish */
.spotlight-panel { width: min(760px, calc(100vw - 40px)); height: auto; }
.spotlight-main { display: flex; flex-direction: row; height: 380px; }
.spotlight-results { width: 50%; height: 100%; border-right: 1px solid rgba(255,255,255,0.06); overflow-y: auto; padding: 6px; }
.spotlight-preview { width: 50%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px !important; text-align: center; background: rgba(255, 255, 255, 0.02) !important; }
.light-mode .spotlight-preview { background: rgba(0, 0, 0, 0.01) !important; }
.spotlight-preview-empty { color: rgba(255,255,255,0.3); font-size: 14px; }
.spotlight-preview-icon { width: 120px !important; height: 120px !important; font-size: 64px !important; border-radius: 26px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important; margin-bottom: 20px !important; display: grid !important; place-items: center !important; background: var(--cc-card-bg, rgba(255,255,255,0.06)) !important; border: 1px solid rgba(255,255,255,0.1) !important; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.spotlight-preview-icon:hover { transform: scale(1.04); }
.spotlight-preview-title { font-size: 22px !important; font-weight: 600 !important; letter-spacing: -0.01em !important; color: white !important; margin-bottom: 6px !important; line-height: 1.2; word-break: break-word; }
.light-mode .spotlight-preview-title { color: #1d1d1f !important; }
.spotlight-preview-sub { font-size: 13px !important; color: rgba(255,255,255,0.5) !important; max-width: 280px !important; line-height: 1.4 !important; }
.light-mode .spotlight-preview-sub { color: #86868b !important; }

/* ==========================================
   Premium App Store Redesign Styles
   ========================================== */
.store-layout {
  flex: 1;
  display: flex;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(40px) saturate(190%);
  color: #fff;
  overflow: hidden;
  user-select: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.light-mode .store-layout {
  background: rgba(245, 245, 247, 0.75);
  color: #1d1d1f;
}

/* Integrated Titlebar for App Store */
#win-appstore .titlebar {
  background: transparent;
  border-bottom: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 99;
  pointer-events: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: default;
}
#win-appstore .titlebar .window-controls {
  pointer-events: auto;
}
#win-appstore .titlebar .window-title {
  display: none;
}

/* Sidebar */
.store-sidebar {
  width: 210px;
  min-width: 210px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  padding: 50px 10px 20px 10px; /* 50px top padding clears floating traffic lights */
}

.light-mode .store-sidebar {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.store-search-container {
  padding: 0 10px 18px 10px;
}

.store-search-container input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: background 0.18s, border-color 0.18s;
}

.store-search-container input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.light-mode .store-search-container input {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.light-mode .store-search-container input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.store-search-container input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.5);
}

.light-mode .store-search-container input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 122, 255, 0.5);
}

.store-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.store-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.store-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.store-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.light-mode .store-nav-item {
  color: rgba(0, 0, 0, 0.7);
}

.light-mode .store-nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.light-mode .store-nav-item.active {
  background: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
  font-weight: 600;
}

.store-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.light-mode .store-sidebar-profile {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a84ff, #30d158);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.light-mode .profile-name {
  color: #1d1d1f;
}

.profile-appleid {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.light-mode .profile-appleid {
  color: rgba(0, 0, 0, 0.4);
}

/* Main Content Panel */
.store-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
}

.store-section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

/* Hero Section */
.store-hero-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.8), rgba(94, 92, 230, 0.7)), url("../assets/wallpaper_tahoe.jpg") center/cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.store-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.store-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.store-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  max-width: 80%;
  line-height: 1.2;
}

.store-hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  max-width: 70%;
}

.store-hero-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Premium Apps Grid */
.store-grid-section-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.store-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.store-card-premium {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  gap: 14px;
}

.store-card-premium:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.light-mode .store-card-premium {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.light-mode .store-card-premium:hover {
  background: rgba(0, 0, 0, 0.06);
}

.store-app-icon-premium {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.15);
}

.store-app-info-premium {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.store-app-name-premium {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px 0;
}

.light-mode .store-app-name-premium {
  color: #1d1d1f;
}

.store-app-category-premium {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px 0;
}

.light-mode .store-app-category-premium {
  color: rgba(0, 0, 0, 0.5);
}

.store-app-rating-premium {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #ffb700;
}

.store-app-rating-premium span {
  color: rgba(255, 255, 255, 0.4);
}

.light-mode .store-app-rating-premium span {
  color: rgba(0, 0, 0, 0.4);
}

/* Premium Download Button */
.store-btn-get {
  height: 24px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #0a84ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.1s;
}

.store-btn-get:hover {
  background: rgba(255, 255, 255, 0.22);
}

.store-btn-get:active {
  transform: scale(0.96);
}

.light-mode .store-btn-get {
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
}

.light-mode .store-btn-get:hover {
  background: rgba(0, 122, 255, 0.16);
}

/* Spinner / Installing state */
.store-btn-get.installing {
  pointer-events: none;
  background: transparent;
  color: transparent;
  position: relative;
  min-width: 24px;
  width: 24px;
  padding: 0;
}

.store-btn-get.installing::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 132, 255, 0.2);
  border-top-color: #0a84ff;
  border-radius: 50%;
  animation: store-spin 0.8s linear infinite;
  left: 4px;
  top: 4px;
}

.light-mode .store-btn-get.installing::before {
  border: 2px solid rgba(0, 122, 255, 0.15);
  border-top-color: #007aff;
}

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

/* Updates View */
.store-updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.store-update-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.light-mode .store-update-row {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.store-update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-update-app-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-update-meta {
  display: flex;
  flex-direction: column;
}

.store-update-app-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.light-mode .store-update-app-name {
  color: #1d1d1f;
}

.store-update-version {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.light-mode .store-update-version {
  color: rgba(0, 0, 0, 0.4);
}

.store-update-changelog {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
  padding-left: 44px;
}

.light-mode .store-update-changelog {
  color: #515154;
}

/* Detail Modal */
.store-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.store-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.store-modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 520px;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: store-zoom-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-mode .store-modal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes store-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.store-modal-header {
  display: flex;
  align-items: flex-start;
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.light-mode .store-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.store-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.store-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.light-mode .store-modal-close {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.6);
}

.light-mode .store-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.store-modal-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.store-modal-app-name {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0 0 4px 0;
}

.light-mode .store-modal-app-name {
  color: #1d1d1f;
}

.store-modal-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}

.light-mode .store-modal-subtitle {
  color: rgba(0, 0, 0, 0.55);
}

.store-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-modal-developer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.light-mode .store-modal-developer {
  color: rgba(0, 0, 0, 0.4);
}

.store-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stats Row */
.store-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.light-mode .store-modal-stats {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.store-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.store-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.light-mode .store-stat-label {
  color: rgba(0, 0, 0, 0.4);
}

.store-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.light-mode .store-stat-value {
  color: #1d1d1f;
}

.store-stat-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.light-mode .store-stat-sub {
  color: rgba(0, 0, 0, 0.4);
}

/* Screenshots Gallery */
.store-modal-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.store-modal-screenshot {
  width: 220px;
  height: 130px;
  min-width: 220px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.light-mode .store-modal-screenshot {
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}

/* App Description */
.store-modal-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.light-mode .store-modal-description {
  color: #3f3f42;
}

/* No results state */
.store-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  gap: 12px;
}

.light-mode .store-search-empty {
  color: rgba(0, 0, 0, 0.4);
}

.store-search-empty-icon {
  font-size: 40px;
}

/* Fallback Dock Icon style for newly installed apps */
.fallback-dock-icon {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  user-select: none;
}
.launch-icon .fallback-dock-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}
.battery-panel { display:flex; flex-direction:column; gap:10px; }
.battery-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.battery-percent { margin-top:3px; font-size:38px; line-height:1; font-weight:780; letter-spacing:0; }
.battery-glyph { position:relative; width:78px; height:38px; border:2px solid rgba(255,255,255,.84); border-radius:10px; padding:4px; }
.battery-glyph::after { content:""; position:absolute; right:-7px; top:12px; width:4px; height:12px; border-radius:0 4px 4px 0; background:rgba(255,255,255,.84); }
.battery-glyph span { display:block; width:82%; height:100%; border-radius:6px; background:linear-gradient(90deg,#32d74b,#a8f36a); }
.battery-meter { height:8px; border-radius:999px; background:rgba(255,255,255,.14); overflow:hidden; }
.battery-meter i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#32d74b,#a8f36a); }

#battery-button.low-power {
  color: #ffd60a !important;
}


/* Custom Styled Scrollbars for App Store */
.store-main::-webkit-scrollbar,
.store-modal-body::-webkit-scrollbar,
.store-modal-gallery::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.store-main::-webkit-scrollbar-thumb,
.store-modal-body::-webkit-scrollbar-thumb,
.store-modal-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.light-mode .store-main::-webkit-scrollbar-thumb,
.light-mode .store-modal-body::-webkit-scrollbar-thumb,
.light-mode .store-modal-gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   Premium App Store Redesign Additional CSS Classes
   ========================================================== */
.store-date-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}
.light-mode .store-date-header {
  color: rgba(0, 0, 0, 0.5);
}

.store-discover-sections {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  width: 100%;
}
.store-discover-column {
  flex: 1;
  min-width: 0;
}
.store-cards-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.store-rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.store-rank-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  gap: 14px;
}
.store-rank-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.light-mode .store-rank-row {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.light-mode .store-rank-row:hover {
  background: rgba(0, 0, 0, 0.05);
}
.store-rank-number {
  font-size: 16px;
  font-weight: 800;
  min-width: 20px;
  color: rgba(255, 255, 255, 0.9);
}
.light-mode .store-rank-number {
  color: #1d1d1f;
}
.store-rank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.store-rank-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.light-mode .store-rank-name {
  color: #1d1d1f;
}
.store-rank-category {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}
.light-mode .store-rank-category {
  color: #86868b;
}

.store-category-banner {
  border-radius: 16px;
  padding: 32px 28px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.store-category-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.store-category-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 80%;
  line-height: 1.4;
}

.store-updates-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.store-btn-update-all {
  height: 28px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.store-btn-update-all:hover {
  opacity: 0.9;
}
.store-btn-update-all:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.store-modal-stats-capsules {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.light-mode .store-modal-stats-capsules {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.store-stat-capsule {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 6px;
}
.light-mode .store-stat-capsule {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.store-stat-capsule .label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.light-mode .store-stat-capsule .label {
  color: rgba(0, 0, 0, 0.4);
}
.store-stat-capsule .val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.light-mode .store-stat-capsule .val {
  color: #1d1d1f;
}
.store-stat-capsule .sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.light-mode .store-stat-capsule .sub {
  color: rgba(0, 0, 0, 0.4);
}

.store-modal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}
.light-mode .store-modal-divider {
  background: rgba(0, 0, 0, 0.08);
}

.store-vh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.store-vh-version {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.light-mode .store-vh-version {
  color: rgba(0, 0, 0, 0.5);
}
.store-vh-changelog {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}
.light-mode .store-vh-changelog {
  color: #4b4b4e;
}

.store-detail-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
}
.light-mode .store-detail-section-title {
  color: #1d1d1f;
}
.store-reviews-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
}
.store-reviews-score-block {
  text-align: center;
}
.store-big-score {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.light-mode .store-big-score {
  color: #1d1d1f;
}
.store-out-of {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-top: 4px;
}
.light-mode .store-out-of {
  color: rgba(0, 0, 0, 0.4);
}
.store-stars-visual {
  font-size: 14px;
  color: #ffb700;
  margin-top: 6px;
}
.store-reviews-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.store-reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.light-mode .store-reviews-bar-row {
  color: rgba(0, 0, 0, 0.5);
}
.store-bar-stars {
  min-width: 32px;
  text-align: right;
}
.store-bar-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.light-mode .store-bar-track {
  background: rgba(0, 0, 0, 0.06);
}
.store-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.4);
}
.light-mode .store-bar-fill {
  background: rgba(0, 0, 0, 0.4);
}
.store-bar-pct {
  min-width: 28px;
}
.store-reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.store-review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.light-mode .store-review-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.store-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.store-review-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.light-mode .store-review-title {
  color: #1d1d1f;
}
.store-review-rating {
  color: #ffb700;
  font-size: 10px;
}
.store-review-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.light-mode .store-review-meta {
  color: rgba(0, 0, 0, 0.4);
}
.store-review-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 4px 0 0 0;
}
.light-mode .store-review-text {
  color: #515154;
}

.store-info-grid {
  display: flex;
  flex-direction: column;
}
.store-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.light-mode .store-info-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.store-info-row .label {
  color: rgba(255, 255, 255, 0.4);
}
.light-mode .store-info-row .label {
  color: rgba(0, 0, 0, 0.5);
}
.store-info-row .val {
  color: #fff;
  font-weight: 500;
}
.light-mode .store-info-row .val {
  color: #1d1d1f;
}

/* CSS Mockups Styling */
.mockup-pages {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px !important;
  display: block !important;
  color: #1e293b !important;
}
.mock-doc {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  height: 100%;
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-doc-ruler {
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}
.mock-doc-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}
.mock-doc-line {
  height: 3px;
  background: #e2e8f0;
  border-radius: 1px;
}
.mock-doc-line.long { width: 100%; }
.mock-doc-line.medium { width: 70%; }
.mock-doc-line.short { width: 45%; }
.mock-doc-chart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}
.mock-doc-chart-donut {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid #bf5af2;
  border-top-color: #ff9f0a;
}
.mock-doc-chart-legend {
  font-size: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-doc-chart-legend .leg-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mock-doc-chart-legend .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.mock-doc-chart-legend .dot.purple { background: #bf5af2; }
.mock-doc-chart-legend .dot.orange { background: #ff9f0a; }

.mockup-pages-2 {
  background: #fff8f0;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 14px !important;
  color: #5c3a21 !important;
  display: block !important;
}
.mock-doc-template {
  border: 1px solid #ebd5c1;
  border-radius: 4px;
  padding: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-doc-header {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  color: #3b2314;
}
.mock-doc-meta {
  font-size: 8px;
  color: #8c684e;
}
.mock-doc-divider {
  height: 1px;
  background: #ebd5c1;
  margin: 2px 0;
}

.mockup-numbers {
  background: #ecfdf5;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px !important;
  display: block !important;
  color: #064e3b !important;
}
.mock-sheet {
  background: #fff;
  border-radius: 6px;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mock-sheet-tabs {
  background: #f4f5f6;
  display: flex;
  font-size: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.mock-sheet-tabs .tab {
  padding: 4px 8px;
  color: #64748b;
  border-right: 1px solid #e2e8f0;
}
.mock-sheet-tabs .tab.active {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
}
.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
  text-align: left;
}
.mock-table th, .mock-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.mock-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.mockup-numbers-2 {
  background: #f0fdf4;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px !important;
  display: block !important;
  color: #064e3b !important;
}
.mock-chart-view {
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mock-chart-title {
  font-size: 9px;
  font-weight: 700;
  color: #1e293b;
}
.mock-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  margin-top: 10px;
}
.mock-chart-bars .bar {
  width: 14px;
  background: #a7f3d0;
  border-radius: 2px 2px 0 0;
  transition: height 0.3s;
}
.mock-chart-bars .bar.active {
  background: #10b981;
}

.mockup-keynote {
  background: #1e1b4b;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px !important;
  display: block !important;
}
.mock-slide-editor {
  display: flex;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #0f0d30;
}
.mock-slide-left {
  width: 32px;
  border-right: 1px solid #2e2a5f;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-slide-left .thumb {
  font-size: 5px;
  color: #818cf8;
  border: 1px solid #2e2a5f;
  padding: 2px;
  border-radius: 2px;
}
.mock-slide-left .thumb.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.2);
}
.mock-slide-canvas {
  flex: 1;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px;
  position: relative;
}
.canvas-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.canvas-subtitle {
  font-size: 6px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.canvas-shape {
  width: 16px;
  height: 16px;
  background: #38bdf8;
  border-radius: 4px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  transform: rotate(15deg);
}

.mockup-xcode {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 !important;
  display: block !important;
}
.mock-editor {
  display: flex;
  height: 100%;
}
.mock-editor-sidebar {
  width: 64px;
  border-right: 1px solid #27272a;
  background: #09090b;
  padding: 6px 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mock-editor-sidebar .file-row {
  font-size: 6px;
  color: #a1a1aa;
  padding: 3px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
}
.mock-editor-sidebar .file-row.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.mock-editor-code {
  flex: 1;
  background: #18181b;
  padding: 8px;
  font-family: monospace;
  font-size: 7px;
  line-height: 1.3;
  color: #e4e4e7;
}
.mock-editor-code .code-line span.code-kw { color: #f43f5e; }
.mock-editor-code .code-line span.code-str { color: #34d399; }

.mockup-facetime {
  background: #111827;
  padding: 10px !important;
  display: block !important;
}
.mock-call {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #1f2937, #111827);
  padding: 12px;
}
.mock-call-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mock-call-user .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.mock-call-user .name {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.mock-call-sub {
  font-size: 7px;
  color: rgba(255,255,255,0.5);
}
.mock-call-actions {
  display: flex;
  gap: 10px;
}
.mock-call-actions .btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.mock-call-actions .btn.hangup { background: #ef4444; }

.mockup-quicktime {
  background: #030712;
  padding: 10px !important;
  display: block !important;
}
.mock-player {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border-radius: 6px;
  background: #000;
  border: 1px solid #374151;
  padding: 8px;
}
.player-screen {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgba(255,255,255,0.8);
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 4px 8px;
  border-radius: 4px;
}
.player-controls .btn {
  font-size: 8px;
  cursor: pointer;
  color: #fff;
}
.player-controls .progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
}
.player-controls .progress {
  height: 100%;
  background: #3b82f6;
}

.mockup-stocks {
  background: #09090b;
  padding: 8px !important;
  display: block !important;
}
.mock-stocks-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 8px;
  color: #a1a1aa;
}
.stock-item.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.stock-item .symbol { font-weight: 700; }
.stock-item .pct { padding: 1px 4px; border-radius: 3px; font-weight: 600; }
.stock-item .pct.positive { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.stocks-chart {
  flex: 1;
  border-top: 1px dashed rgba(255,255,255,0.1);
  margin-top: 6px;
  position: relative;
  background: radial-gradient(ellipse at bottom, rgba(16,185,129,0.1), transparent);
}

.mockup-default {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
}
.mockup-default-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.mockup-default-text {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

/* Light mode overrides for App Store Redesign */
.light-mode .store-layout {
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
}
.light-mode .store-sidebar {
  background: rgba(240, 240, 243, 0.75);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.light-mode .store-sidebar-profile {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.light-mode .store-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
}
.light-mode .store-nav-item.active {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}
.light-mode .store-card-premium {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.light-mode .store-card-premium:hover {
  background: #e8e8ed;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.light-mode .store-btn-get {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
}
.light-mode .store-btn-get:hover {
  background: rgba(0, 122, 255, 0.2);
}
.light-mode .store-btn-update-all {
  background: #007aff;
  color: #fff;
}
.light-mode .store-modal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
.light-mode .store-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.light-mode .store-modal-close {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.6);
}
.light-mode .store-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Discover Page Premium Tweaks */
.store-discover-header {
  margin-bottom: 16px;
}
.store-hero-card {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 220px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 24px;
}
.store-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  z-index: 2;
}
.store-hero-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.store-hero-title {
  font-size: 26px;
  font-weight: 800;
  margin: 6px 0;
  letter-spacing: -0.01em;
}
.store-hero-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  max-width: 90%;
  line-height: 1.4;
}
.store-hero-mockup {
  width: 260px;
  height: 160px;
  z-index: 2;
  margin-left: 20px;
  transform: perspective(600px) rotateY(-8deg) rotateX(4deg);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  border-radius: 8px;
  overflow: hidden;
}
.store-hero-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.store-hero-footer-text {
  flex: 1;
}
.store-hero-footer-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.store-hero-footer-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

.store-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}

/* App Store hero containment fixes */
.store-hero-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 24px 24px 66px;
  gap: 18px;
  isolation: isolate;
}
.store-hero-content {
  min-width: 0;
  flex: 1 1 280px;
  max-width: min(52%, 460px);
}
.store-hero-subtitle {
  max-width: 100%;
}
.store-hero-mockup {
  flex: 0 1 clamp(190px, 34%, 280px);
  width: auto;
  max-width: 38%;
  min-width: 180px;
  height: 148px;
  margin-left: 0;
  transform: none;
  box-sizing: border-box;
  pointer-events: none;
  contain: paint;
}
.store-hero-mockup .mock-editor {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
  min-width: 0;
}
.store-hero-mockup .mock-editor-header {
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  white-space: nowrap;
}
.store-hero-mockup .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.store-hero-mockup .dot.red { background: #ff5f57; }
.store-hero-mockup .dot.yellow { background: #ffbd2e; }
.store-hero-mockup .dot.green { background: #28c840; }
.store-hero-mockup .mock-editor-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-hero-mockup .mock-editor-body {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 12px;
  box-sizing: border-box;
  color: rgba(255,255,255,0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(9px, .8vw, 12px);
  line-height: 1.45;
}
.store-hero-mockup .mock-code-line {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-hero-mockup .code-kw {
  color: #ffe08a;
}
.store-hero-footer {
  box-sizing: border-box;
}

@media (max-width: 1120px) {
  .store-hero-content {
    max-width: 58%;
  }
  .store-hero-mockup {
    max-width: 34%;
    min-width: 160px;
  }
}

@media (max-width: 820px) {
  .store-hero-card {
    min-height: 260px;
    align-items: flex-start;
  }
  .store-hero-content {
    max-width: 100%;
  }
  .store-hero-mockup {
    position: absolute;
    right: 18px;
    top: 76px;
    width: 42%;
    min-width: 150px;
    max-width: 220px;
    opacity: .72;
  }
}

/* Re-add fallback styles for standard select options to fix white-on-white text */
select.field option {
  background-color: #2c2c2e;
  color: white;
}
.light-mode select.field option {
  background-color: #ffffff;
  color: black;
}

/* Custom Premium macOS Select Dropdown */
.mac-select {
  position: relative;
  display: inline-block;
  user-select: none;
}
.mac-select-trigger {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.mac-select-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 6px;
  flex: 1;
  text-align: left;
}
.mac-select-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
}
.light-mode .mac-select-trigger {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.light-mode .mac-select-trigger:hover {
  background: rgba(0, 0, 0, 0.07);
}
.mac-select-options {
  position: absolute;
  top: 100%;
  bottom: auto;
  left: 0;
  right: 0;
  margin-top: 4px;
  margin-bottom: 0;
  background: rgba(30, 30, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 2000;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: 100%;
}
.light-mode .mac-select-options {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.mac-select-option {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.1s ease, color 0.1s ease;
}
.light-mode .mac-select-option {
  color: rgba(0, 0, 0, 0.85);
}
.mac-select-option:hover {
  background: #007aff;
  color: white;
}
.mac-select-option.selected::after {
  content: "✓";
  font-weight: 600;
  font-size: 11px;
}

/* Display Scaling Option Buttons */
.scale-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.scale-choice-btn.active {
  border: 2px solid #0a84ff;
  background: rgba(10, 132, 255, 0.1);
}
.scale-choice-btn .scale-label {
  font-size: 11px;
  color: #888;
}
.scale-choice-btn.active .scale-label {
  color: #0a84ff;
  font-weight: 600;
}
.light-mode .scale-choice-btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
}
.light-mode .scale-choice-btn.active {
  border: 2px solid #0a84ff;
  background: rgba(10, 132, 255, 0.08);
}

/* macOS motion pass */
:root {
  --mac-ease: cubic-bezier(.22, 1, .36, 1);
  --mac-spring: cubic-bezier(.18, .89, .32, 1.18);
  --mac-snap: cubic-bezier(.2, .9, .18, 1);
  --mac-fast: cubic-bezier(.16, 1, .3, 1);
}

.window {
  transition:
    opacity .26s var(--mac-fast),
    transform .42s var(--mac-spring),
    box-shadow .28s var(--mac-ease),
    left .38s var(--mac-fast),
    top .38s var(--mac-fast),
    width .38s var(--mac-fast),
    height .38s var(--mac-fast),
    filter .28s var(--mac-ease) !important;
}

.window.opening {
  animation: mac-window-open .46s var(--mac-spring) both !important;
  transform-origin: center center;
}

@keyframes mac-window-open {
  0% {
    opacity: 0;
    transform: translate(var(--open-from-x, 0), var(--open-from-y, 36px)) scale(.12);
    filter: blur(9px) saturate(.78);
  }
  64% {
    opacity: 1;
    transform: translate(0, -2px) scale(1.012);
    filter: blur(0) saturate(1.04);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: saturate(1);
  }
}

.window.minimizing {
  transform:
    translate(var(--min-translate-x, 0), var(--min-translate-y, 0))
    scaleX(calc(var(--min-scale, .12) * 1.34))
    scaleY(var(--min-scale, .12)) !important;
  opacity: 0 !important;
  border-radius: 8px !important;
  filter: blur(2.5px) saturate(.82) !important;
  transition:
    transform .44s var(--mac-fast),
    opacity .32s var(--mac-ease),
    border-radius .44s var(--mac-fast),
    filter .32s var(--mac-ease) !important;
}

.window.closing {
  transform:
    translate(var(--close-translate-x, 0), var(--close-translate-y, 0))
    scale(.065) !important;
  opacity: 0 !important;
  border-radius: 8px !important;
  filter: blur(4px) saturate(.7) !important;
  transition:
    transform .34s var(--mac-fast),
    opacity .24s var(--mac-ease),
    border-radius .34s var(--mac-fast),
    filter .24s var(--mac-ease) !important;
}

.window.genie-active {
  transition: none !important;
}

.dock {
  transition:
    transform .3s var(--mac-spring),
    min-height .22s var(--mac-ease),
    padding .22s var(--mac-ease),
    background .35s var(--mac-ease),
    border-color .35s var(--mac-ease),
    box-shadow .35s var(--mac-ease) !important;
}

.dock-item {
  width: calc(var(--dock-item-size) + var(--dock-width-boost, 0px)) !important;
  transition:
    width .18s var(--mac-snap),
    transform .18s var(--mac-snap),
    opacity .18s var(--mac-ease) !important;
}

.dock-item .dock-icon {
  transition:
    transform .18s var(--mac-snap),
    filter .18s var(--mac-ease) !important;
}

.dock.dock-fisheye-active {
  min-height: 82px;
  max-width: calc(100vw - 8px);
  padding-bottom: 8px;
}

.dock.dock-fisheye-active .dock-item .dock-icon {
  transform:
    translateX(var(--dock-shift-x, 0px))
    translateY(var(--dock-lift, 0px))
    scale(var(--dock-scale, 1)) !important;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.36));
}

.dock-item.bounce .dock-icon {
  animation: mac-dock-bounce .82s var(--mac-spring) both !important;
}

@keyframes mac-dock-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-28px) scale(1.08); }
  48% { transform: translateY(3px) scale(.98); }
  72% { transform: translateY(-11px) scale(1.03); }
}

.menu-pop,
.context-menu,
.control-center,
.notification-center {
  transition:
    opacity .16s var(--mac-ease),
    transform .22s var(--mac-spring),
    filter .18s var(--mac-ease) !important;
}

.menu-pop {
  transform: translateY(-8px) scale(.965) !important;
}

.menu-pop.menu-visible {
  transform: translateY(0) scale(1) !important;
}

.context-menu {
  transform: translateY(-4px) scale(.965) !important;
}

.context-menu.menu-visible {
  transform: translateY(0) scale(1) !important;
}

.mac-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2800;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--mac-ease, ease);
}
.mac-confirm-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.mac-confirm-card {
  width: min(420px, calc(100vw - 48px));
  border-radius: 18px;
  padding: 18px;
  color: var(--text);
  background: rgba(30,32,38,.76);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 28px 80px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(38px) saturate(190%);
  -webkit-backdrop-filter: blur(38px) saturate(190%);
  transform: translateY(10px) scale(.97);
  transition: transform .22s var(--mac-spring, ease), opacity .18s var(--mac-ease, ease);
}
.mac-confirm-overlay.show .mac-confirm-card {
  transform: translateY(0) scale(1);
}
.mac-confirm-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.mac-confirm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}
.mac-confirm-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.mac-confirm-title {
  font-size: 16px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 1px 0 6px;
}
.mac-confirm-message {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.mac-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.mac-confirm-button {
  min-width: 82px;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}
.mac-confirm-button:hover {
  background: rgba(255,255,255,.2);
}
.mac-confirm-button.primary {
  background: var(--accent);
  border-color: rgba(255,255,255,.18);
  color: white;
  box-shadow: 0 6px 16px rgba(10,132,255,.32);
}
.mac-confirm-button.danger {
  background: #ff453a;
  box-shadow: 0 6px 16px rgba(255,69,58,.28);
}
.light-mode .mac-confirm-card {
  color: #1d1d1f;
  background: rgba(246,247,250,.82);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.82);
}
.light-mode .mac-confirm-message {
  color: rgba(0,0,0,.62);
}
.light-mode .mac-confirm-icon,
.light-mode .mac-confirm-button {
  background: rgba(0,0,0,.05);
  border-color: rgba(0,0,0,.08);
  color: #1d1d1f;
}
.light-mode .mac-confirm-button:hover {
  background: rgba(0,0,0,.08);
}
.light-mode .mac-confirm-button.primary,
.light-mode .mac-confirm-button.danger {
  color: white;
}

.control-center,
.notification-center {
  transform: translateY(-10px) scale(.965) !important;
}

.control-center.panel-visible,
.notification-center.panel-visible {
  transform: translateY(0) scale(1) !important;
}

.spotlight {
  transition: opacity .22s var(--mac-ease), backdrop-filter .22s var(--mac-ease) !important;
}

.spotlight-panel {
  transform: translateY(-18px) scale(.955) !important;
  transition:
    transform .3s var(--mac-spring),
    opacity .22s var(--mac-ease) !important;
}

.spotlight.spotlight-visible .spotlight-panel {
  transform: translateY(0) scale(1) !important;
}

.toast {
  animation: mac-toast-in .28s var(--mac-spring) both !important;
}

@keyframes mac-toast-in {
  from { opacity: 0; transform: translateX(34px) scale(.96); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.launchpad,
.mission-control {
  transform: scale(1.075);
  transition:
    opacity .3s var(--mac-ease),
    transform .42s var(--mac-fast),
    backdrop-filter .3s var(--mac-ease),
    background .3s var(--mac-ease) !important;
}

.launchpad.show,
.mission-control.show {
  transform: scale(1);
}

.launch-app {
  animation: mac-launch-in .28s var(--mac-spring) both !important;
  animation-delay: calc(var(--launch-index, 0) * 8ms) !important;
}

@keyframes mac-launch-in {
  0% { opacity: 0; transform: translateY(24px) scale(.86); filter: blur(7px); }
  72% { opacity: 1; transform: translateY(-2px) scale(1.025); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.mission-window {
  animation: mac-mission-card-in .3s var(--mac-spring) both !important;
}

.mission-window:nth-child(2n) { animation-delay: 25ms !important; }
.mission-window:nth-child(3n) { animation-delay: 45ms !important; }

@keyframes mac-mission-card-in {
  from { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

body.launchpad-active #windows,
body.launchpad-active #desktop-icons,
body.launchpad-active #desktop-widgets,
body.mission-active #desktop-icons,
body.mission-active #desktop-widgets,
body.mission-active #dock {
  transform: scale(.945);
  filter: blur(5px) brightness(.76) saturate(.9);
  transition:
    transform .42s var(--mac-fast),
    filter .34s var(--mac-ease) !important;
}

body.launchpad-active #dock {
  transform: translateX(-50%) translateY(16px) scale(.94);
  filter: blur(4px) brightness(.78) saturate(.9);
}

body.mission-active #windows .window:not(.hidden) {
  filter: saturate(.9) brightness(.82);
  transition: filter .3s var(--mac-ease), transform .38s var(--mac-fast) !important;
}

.reduce-motion .window.opening,
.reduce-motion .launch-app,
.reduce-motion .mission-window,
.reduce-motion .toast,
.reduce-motion .dock-item.bounce .dock-icon {
  animation: none !important;
}

/* Window Tiling Popover */
.window-tiling-popover {
  position: absolute;
  background: rgba(30, 30, 30, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.window-tiling-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.tiling-option {
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  border: none;
  width: 100%;
  transition: background 0.15s;
}
.tiling-option:hover {
  background: var(--accent-color, #0a84ff);
}
.mac-sheet {
  display: flex;
}
.mac-sheet.hidden {
  display: none !important;
}
.tag-dot-btn {
  transition: transform 0.15s;
}
.tag-dot-btn:hover {
  transform: scale(1.2);
}

/* Custom Checkboxes */
.mac-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  outline: none;
  vertical-align: middle;
}
.mac-checkbox:checked {
  background: var(--accent-color, #0a84ff);
  border-color: var(--accent-color, #0a84ff);
}
.mac-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 3.5px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.mac-checkbox:hover {
  border-color: rgba(255, 255, 255, 0.55);
}
.mac-checkbox:focus-visible {
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.5);
}

.mac-prompt-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  margin-top: 8px;
}
.mac-prompt-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.25);
}
.light-mode .mac-prompt-input {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.03);
  color: #1d1d1f;
}
.light-mode .mac-prompt-input:focus {
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.15);
}
