/* ===== Control Center ===== */
.cc {
  position: absolute; top: calc(var(--menubar-h) + 6px); right: 8px; width: 328px;
  padding: 12px; border-radius: 22px; z-index: 3500;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  animation: ccpop .22s var(--ease-out); color: var(--glass-text);
}
@keyframes ccpop { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.cc-tile { border-radius: 16px; padding: 12px; background: rgba(var(--glass-tint), .35); border: .5px solid var(--glass-stroke); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.cc-tile.span2 { grid-column: span 2; }
.cc-row { display: flex; align-items: center; gap: 11px; }
.cc-row + .cc-row { margin-top: 12px; }
.cc-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(120,120,128,.28); color: var(--glass-text); }
.cc-ico.on { background: var(--accent); color: #fff; }
.cc-ico.green.on { background: #34c759; }
.cc-label { font-size: 13px; font-weight: 600; line-height: 1.15; }
.cc-sub { font-size: 11.5px; color: var(--glass-text-dim); }
.cc-slider-tile { display: flex; flex-direction: column; gap: 8px; }
.cc-slider-wrap { position: relative; height: 30px; border-radius: 999px; background: rgba(120,120,128,.24); overflow: hidden; display:flex; align-items:center; padding: 0 4px; cursor: pointer; }
.cc-slider-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.9); border-radius: 999px; box-shadow: 0 0 0 .5px rgba(0,0,0,.05); }
.cc-slider-ico { position: relative; z-index: 1; color: #333; mix-blend-mode: normal; }
.cc-title { font-size: 11px; font-weight: 600; color: var(--glass-text-dim); margin-bottom: 6px; padding-left: 2px; }

/* Notifications */
.notif-stack { position: absolute; top: calc(var(--menubar-h) + 8px); right: 10px; z-index: 3400; display: flex; flex-direction: column; gap: 10px; width: 344px; }
.notif { border-radius: 18px; padding: 12px 14px; display: flex; gap: 11px; color: var(--glass-text); animation: notifin .4s var(--ease-out); }
@keyframes notifin { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.notif.out { animation: notifout .3s var(--ease-out) forwards; }
@keyframes notifout { to { opacity: 0; transform: translateX(30px); } }
.notif-ico { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; }
.notif-msg { font-size: 12.5px; color: var(--glass-text-dim); margin-top: 1px; }
.notif-time { font-size: 11px; color: var(--glass-text-dim); }

/* ===== Spotlight ===== */
.spotlight-scrim { position: absolute; inset: 0; z-index: 5000; display: flex; align-items: flex-start; justify-content: center; padding-top: 16vh; background: rgba(0,0,0,.06); }
.spotlight {
  width: 640px; max-width: 92vw; border-radius: 22px; overflow: hidden; color: var(--glass-text);
  animation: ccpop .18s var(--ease-out);
}
.spot-input-row { display: flex; align-items: center; gap: 12px; padding: 15px 20px; }
.spot-input-row svg { opacity: .5; flex: none; }
.spot-input { flex: 1; background: none; border: none; outline: none; font-size: 24px; font-weight: 400; color: var(--glass-text); }
.spot-input::placeholder { color: var(--glass-text-dim); }
.spot-results { max-height: 52vh; overflow-y: auto; border-top: .5px solid var(--hairline); padding: 6px; }
.spot-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; }
.spot-item.sel { background: var(--accent); color: #fff; }
.spot-item.sel .spot-sub { color: rgba(255,255,255,.8); }
.spot-item .spot-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.spot-name { font-size: 15px; font-weight: 500; }
.spot-sub { font-size: 12px; color: var(--glass-text-dim); }
.spot-cat { font-size: 11px; font-weight: 600; color: var(--glass-text-dim); padding: 8px 12px 4px; }

/* Mission-control-ish app switcher (Cmd-Tab) */
.switcher { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 6000; display: flex; gap: 14px; padding: 20px; border-radius: 26px; color: #fff; }
.switcher-item { width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center; position: relative; }
.switcher-item.sel { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.switcher-item .label { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; opacity: 0; }
.switcher-item.sel .label { opacity: 1; }

/* ===== Launchpad ===== */
.lp { position: absolute; inset: 0; z-index: 4500; display: flex; flex-direction: column; align-items: center;
  padding: 70px 40px 40px; background: rgba(0,0,0,.28); backdrop-filter: blur(40px) saturate(140%); -webkit-backdrop-filter: blur(40px) saturate(140%);
  animation: lpin .24s var(--ease-out); }
@keyframes lpin { from { opacity: 0; } to { opacity: 1; } }
.lp.lp-out { animation: lpout .2s var(--ease-out) forwards; }
@keyframes lpout { to { opacity: 0; } }
.lp-searchwrap { margin-bottom: 40px; }
.lp-search { width: 280px; height: 34px; border-radius: 10px; border: none; outline: none; text-align: center;
  background: rgba(255,255,255,.16); color: #fff; font-size: 14px; backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
.lp-search::placeholder { color: rgba(255,255,255,.7); }
.lp-grid { display: grid; grid-template-columns: repeat(7, 128px); gap: 22px 30px; max-width: 1120px; align-content: start; overflow-y: auto; }
.lp-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: default; animation: lpcell .3s var(--ease-out) both; }
.lp-cell:active { transform: scale(.92); }
.lp-cell img { border-radius: 20px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); transition: transform .15s; }
.lp-cell:hover img { transform: scale(1.06); }
.lp-label { font-size: 13px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); text-align: center; }
@keyframes lpcell { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) { .lp-grid { grid-template-columns: repeat(5, 120px); } }
