.tp-macos { background: linear-gradient(135deg, #e8e8e8 0%, #ffffff 50%, #007aff 100%); }

[data-theme="macos"] body { font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; }
[data-theme="macos"] .macos-menubar { display: flex; }
[data-theme="macos"] .taskbar {
  transition: transform 0.4s cubic-bezier(.32,0,.67,0), opacity 0.4s ease;
  bottom: 0 !important; padding-bottom: 14px !important;
  background: transparent; border: none; box-shadow: none;
  height: 84px; padding: 0 0 8px;
  align-items: flex-end; justify-content: center; gap: 8px;
}
[data-theme="macos"] .taskbar.dock-autohide { transform: translateY(110%); opacity: 0; pointer-events: none; }
[data-theme="macos"] .taskbar-sep-v { display: none; }
/* Clock, chat & notifications already in the top menubar — hide from dock tray */
[data-theme="macos"] #tray-clock     { display: none !important; }
[data-theme="macos"] .tray-chat-btn  { display: none !important; }
[data-theme="macos"] .tray-notif-btn { display: none !important; }
[data-theme="macos"] .tray-dev-btn   { display: none !important; }
[data-theme="macos"] .taskbar-tray {
  position: absolute; right: 12px; bottom: 0; height: 100%;
  display: flex; align-items: flex-end; padding-bottom: 10px;
  border-left: none; gap: 0;
}
/* User button gets its own glass pill matching the dock panes */
[data-theme="macos"] .tray-user {
  color: rgba(255,255,255,.9); padding: 6px 10px;
  background: rgba(215,215,230,.28) !important;
  backdrop-filter: blur(32px) saturate(2.2) !important; -webkit-backdrop-filter: blur(32px) saturate(2.2) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.28);
  border-radius: 20px !important;
}
[data-theme="macos"] .tray-user:hover { background: rgba(215,215,230,.4) !important; border-color: rgba(255,255,255,.6) !important; }
[data-theme="macos"] .tray-user-name { color: rgba(255,255,255,.9); font-size: 12px; }
[data-theme="macos"] .taskbar-left {
  display: flex; align-items: flex-end; padding: 6px 8px 10px;
  border-radius: 20px; background: rgba(215,215,230,.28);
  backdrop-filter: blur(32px) saturate(2.2); -webkit-backdrop-filter: blur(32px) saturate(2.2);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 8px 28px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.28);
  flex: none; margin-right: 0;
}
[data-theme="macos"] .taskbar-launcher-btn {
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(145deg, #2b7de9 0%, #0750cc 100%);
  border: none; padding: 0; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,60,200,.35), 0 1px 3px rgba(0,0,0,.18);
  transition: transform .12s ease, box-shadow .12s ease; overflow: visible;
}
[data-theme="macos"] .taskbar-launcher-btn:hover { transform: scale(1.2) translateY(-10px); box-shadow: 0 8px 20px rgba(0,70,210,.45), 0 2px 6px rgba(0,0,0,.2); }
[data-theme="macos"] .taskbar-launcher-btn.active { transform: scale(.93); }
[data-theme="macos"] .taskbar-launcher-btn svg { display: block; color: rgba(255,255,255,.92); width: 22px; height: 22px; }
[data-theme="macos"] .taskbar-windows {
  display: flex; align-items: flex-end; gap: 5px; padding: 6px 14px 10px;
  border-radius: 20px; background: rgba(215,215,230,.28);
  backdrop-filter: blur(32px) saturate(2.2); -webkit-backdrop-filter: blur(32px) saturate(2.2);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 8px 28px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.28);
  overflow: visible; min-width: 0; flex: none;
}
[data-theme="macos"] .taskbar-windows:empty { display: none; }
[data-theme="macos"] .taskbar-windows::-webkit-scrollbar { display: none; }
[data-theme="macos"] .taskbar-entry {
  min-width: 48px; max-width: 48px; width: 48px; height: 48px;
  padding: 0; border-radius: 12px; background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08); justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.14); overflow: visible; position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
}
[data-theme="macos"] .taskbar-entry:hover { transform: scale(1.28) translateY(-14px); box-shadow: 0 10px 24px rgba(0,0,0,.28); background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.06); color: inherit; z-index: 10; }
[data-theme="macos"] .taskbar-entry.active { background: rgba(255,255,255,.88); border-color: rgba(0,0,0,.07); }
[data-theme="macos"] .taskbar-entry.minimized { opacity: .5; }
[data-theme="macos"] .te-title { display: none; }
[data-theme="macos"] .te-icon  { font-size: 26px; }
[data-theme="macos"] .te-icon .wos-icon-app { width: 32px; height: 32px; }
[data-theme="macos"] .te-indicator { bottom: -7px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: rgba(0,0,0,.65); }
[data-theme="macos"] .taskbar-entry.active .te-indicator,
[data-theme="macos"] .taskbar-entry:hover  .te-indicator { width: 4px; }
[data-theme="macos"] .wm-container,
[data-theme="macos"] .desktop-icons { top: 28px; bottom: 84px; }
[data-theme="macos"] .window { border: 1px solid rgba(0,0,0,.18); box-shadow: 0 4px 20px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.08); }
[data-theme="macos"] .window-titlebar { height: 28px; padding: 0 8px; background: linear-gradient(to bottom, #f0f0f0, #e8e8e8); border-bottom: 1px solid #c8c8c8; border-radius: var(--window-radius) var(--window-radius) 0 0; }
[data-theme="macos"] .window-title { justify-content: center; font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: #1a1a1a; }
[data-theme="macos"] .window-icon { display: none; }
[data-theme="macos"] .wbtn { width: 13px; height: 13px; border-radius: 50%; }
[data-theme="macos"] .wbtn-close { background: #ff5f57; box-shadow: 0 0 0 1px rgba(200,40,40,.25); }
[data-theme="macos"] .wbtn-min   { background: #febc2e; box-shadow: 0 0 0 1px rgba(180,130,0,.25); }
[data-theme="macos"] .wbtn-max   { background: #28c840; box-shadow: 0 0 0 1px rgba(0,140,40,.25); }
[data-theme="macos"] .window-controls:hover .wbtn { font-size: 8.5px; color: rgba(0,0,0,.6); }
[data-theme="macos"] .wbtn:hover { filter: brightness(1.1); }
[data-theme="macos"] .app-launcher {
  position: fixed; inset: 0; left: 0 !important; right: 0; top: 0; bottom: 0;
  width: 100vw !important; max-height: 100vh !important;
  border-radius: 0; border: none; background: rgba(28,28,45,.68);
  backdrop-filter: blur(48px) saturate(1.7); -webkit-backdrop-filter: blur(48px) saturate(1.7);
  box-shadow: none; padding: 40px 80px 110px; animation: macosLauncherIn .22s ease; justify-content: flex-start;
}
@keyframes macosLauncherIn { from { opacity: 0; } to { opacity: 1; } }
[data-theme="macos"] .launcher-search { order: -1; width: 340px; align-self: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); color: #fff; border-radius: 12px; font-size: 14px; margin: 0 auto 20px; }
[data-theme="macos"] .launcher-search::placeholder { color: rgba(255,255,255,.55); }
[data-theme="macos"] .launcher-search:focus { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 3px rgba(255,255,255,.15); outline: none; }
/* Keep logout/settings buttons; hide the avatar hero row itself */
[data-theme="macos"] .launcher-user-hero { background: transparent !important; padding: 0 !important; position: absolute !important; top: 12px !important; right: 20px !important; width: auto !important; gap: 8px !important; }
[data-theme="macos"] .launcher-user-hero .luh-avatar,
[data-theme="macos"] .launcher-user-hero .luh-details { display: none !important; }
/* Buttons must be visible on the dark launcher overlay */
[data-theme="macos"] .luh-settings-btn,
[data-theme="macos"] .luh-logout-btn { color: rgba(255,255,255,.75) !important; }
[data-theme="macos"] .luh-settings-btn:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
[data-theme="macos"] .luh-logout-btn:hover  { background: rgba(220,60,60,.25) !important; color: #ff7070 !important; }
[data-theme="macos"] .la-section-hdr { color: rgba(255,255,255,.5); }
[data-theme="macos"] .la-name { color: #fff; font-size: 11px; text-shadow: 0 1px 4px rgba(0,0,0,.55); }
[data-theme="macos"] .launcher-app { width: 90px; padding: 10px 6px; transition: transform .1s ease, background .1s; }
[data-theme="macos"] .launcher-app:hover { background: rgba(255,255,255,.1); transform: scale(1.1); }
[data-theme="macos"] .la-icon { width: 56px; height: 56px; font-size: 36px; color: rgba(255,255,255,.92); }
[data-theme="macos"] .la-icon .wos-icon-app { width: 46px; height: 46px; color: rgba(255,255,255,.92); }
[data-theme="macos"] .launcher-app:hover .la-icon,
[data-theme="macos"] .launcher-app:hover .la-icon .wos-icon-app { color: #fff; }
[data-theme="macos"] .la-all-apps-btn { color: rgba(255,255,255,.7); }
[data-theme="macos"] .la-all-apps-btn:hover { color: #fff; text-decoration: none; }
[data-theme="macos"] .la-back-btn { color: rgba(255,255,255,.6); }
[data-theme="macos"] .la-empty { color: rgba(255,255,255,.55); }
