/* ============================================================
   Shell: boot · lock · menubar · dock · windows · spotlight
   control center · notifications · context menu · mission control
   ============================================================ */

.screen {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
#shutdown-screen { flex-direction: column; }
.shutdown-text { color: rgba(255,255,255,0.65); font-size: 14px; }
#sleep-screen { background: #000; cursor: pointer; }

/* ---------- Boot ---------- */
/* authentic Mac boot: logo centered, progress bar right beneath it */
#boot { flex-direction: column; gap: 32px; }
#boot .boot-logo { width: 72px; height: 90px; color: #f5f5f7; opacity: 0; animation: bootfade 1s var(--ease) 0.15s forwards; }
#boot .boot-logo svg { width: 100%; height: 100%; fill: currentColor; }
.boot-bar {
  width: 150px; height: 5px;
  background: rgba(255,255,255,0.22); border-radius: 4px; overflow: hidden;
}
.boot-bar-fill { width: 0%; height: 100%; background: #fff; border-radius: 4px; }
.boot-bar-fill.go { animation: bootbar 2.1s var(--ease) 0.3s forwards; }
@keyframes bootbar { to { width: 100%; } }
@keyframes bootfade { to { opacity: 1; } }

/* ---------- Lock ---------- */
#lock {
  background-size: cover; background-position: center;
  flex-direction: column;
}
#lock::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
}
.lock-top { position: absolute; top: 44px; text-align: center; color: #fff; z-index: 1; text-shadow: 0 2px 14px rgba(0,0,0,0.35); }
.lock-time { font-size: 88px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.lock-date { font-size: 19px; font-weight: 600; margin-top: 6px; }
.lock-user {
  position: absolute; bottom: 15vh; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.55s cubic-bezier(0.32,0.72,0,1), opacity 0.4s;
}
#lock.unlocking .lock-user { transform: translateY(140px) scale(0.9); opacity: 0; }
.lock-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #5ac8fa, #0a84ff);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  color: #fff;
}
.lock-avatar svg { width: 30px; height: 30px; fill: rgba(255,255,255,0.95); }
.lock-name { color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.lock-pass-row {
  display: flex; align-items: center; gap: 4px;
  background: rgba(30,30,32,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 14px; padding: 3px 3px 3px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
#lock-pass {
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 13px; width: 190px;
}
#lock-pass::placeholder { color: rgba(255,255,255,0.65); }
#lock-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.22); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lock-hint { color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 2px; }

/* ---------- Desktop ---------- */
#desktop-wrap { position: fixed; inset: 0; }
#desktop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: background 0.4s;
}
#desktop-icons { position: absolute; top: 34px; left: 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.desk-icon {
  width: 84px; padding: 6px 2px; border-radius: 6px; text-align: center;
}
.desk-icon.sel { background: rgba(10,132,255,0.35); outline: 0.5px solid rgba(10,132,255,0.6); }
.desk-icon .di-img { width: 52px; height: 52px; margin: 0 auto 4px; }
.desk-icon .di-img svg, .desk-icon .di-img img { width: 100%; height: 100%; }
.desk-icon .di-name {
  font-size: 11.5px; color: #fff; line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
  word-break: break-word;
}
.desk-icon .di-name::selection { background: rgba(10,132,255,0.5); }

/* ---------- Menu bar (Liquid Glass — nearly transparent) ---------- */
#menubar {
  position: absolute; top: 0; left: 0; right: 0; height: var(--mb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; z-index: 500;
  /* material provided by .liquid-glass (see css/liquid.css) */
  color: var(--menubar-text);
  font-size: 13px;
}
html[data-theme="dark"] #menubar { background: rgba(30,30,34,0.18); }
/* HIG: 25pt-tall translucent bar · 13pt text · semibold app name ·
   icon-only status items on the right, clock last. Hover = soft
   5pt-rounded highlight, exactly like the system menu bar. */
.mb-left, .mb-right { display: flex; align-items: center; height: 100%; }
.mb-left > button, .mb-left .mb-menu {
  height: 100%; padding: 0 9px; display: flex; align-items: center;
  border-radius: 5px; color: inherit;
}
.mb-left > button:hover, .mb-left .mb-menu:hover,
.mb-left > button.open, .mb-left .mb-menu.open { background: rgba(128,128,132,0.25); }
.mb-apple svg { width: 15px; height: 18px; fill: currentColor; }
.mb-app-name { font-weight: 700; }
/* App menus (File/Edit/View/…) sit on ONE row next to the Apple logo */
#mb-appmenus { display: flex; align-items: center; height: 100%; }
.mb-menu { gap: 0; font-weight: 400; }
.mb-right { gap: 0; }
.mb-stat {
  height: 100%; padding: 0 7px; display: flex; align-items: center; gap: 5px;
  border-radius: 5px; color: inherit; opacity: 0.92;
}
.mb-stat:hover { background: rgba(128,128,132,0.25); opacity: 1; }
.mb-stat svg { width: 16px; height: 16px; fill: currentColor; }
.mb-stat.outline svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.mb-time { font-variant-numeric: tabular-nums; padding: 0 4px 0 8px; }
.mb-cc-btn svg { width: 17px; height: 17px; }
/* Real macOS groups status items with spacing only — no divider lines.
   This invisible spacer separates the Live Activity pill from the
   battery/Wi-Fi cluster the way Tahoe does. */
.mb-sep-gap { width: 8px; flex: none; }

/* dropdown menus */
.menu-drop {
  position: absolute; top: calc(var(--mb-h) + 6px);
  min-width: 220px; max-height: 70vh; overflow-y: auto;
  border-radius: var(--card-radius); padding: 5px; z-index: 600;
  /* material provided by .liquid-glass (see css/liquid.css) */
  animation: menuin 120ms var(--ease);
}
@keyframes menuin { from { opacity: 0; transform: translateY(-4px); } }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 3.5px 10px; border-radius: 5px; font-size: 13px; white-space: nowrap;
}
.menu-item .mi-short { color: var(--text-3); font-size: 12px; }
.menu-item:not(.disabled):hover { background: var(--sel); color: #fff; }
.menu-item:not(.disabled):hover .mi-short { color: rgba(255,255,255,0.75); }
.menu-item.disabled { color: var(--text-3); }
.menu-sep { height: 1px; background: var(--divider); margin: 5px 10px; }
.menu-subhead { padding: 4px 10px 2px; font-size: 11px; color: var(--text-3); }

/* ---------- Dock ---------- */
#dock-wrap {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; z-index: 500;
  pointer-events: none;
  transition: transform 0.35s var(--ease);
}
#dock-wrap.autohide:not(:hover) { transform: translateY(calc(100% - 8px)); }
#dock {
  pointer-events: auto;
  display: flex; align-items: center; gap: calc(var(--dock-size) * 0.25);
  padding: calc(var(--dock-size) * 0.26) calc(var(--dock-size) * 0.24);
  border-radius: calc(var(--dock-size) * 0.42);
  /* Official macOS 27 dock material, measured from Apple's own Figma kit
     (Examples/Dock.svg): 0.5px outer rim, two wide soft inner lights,
     two bright 1px edge hairlines (top stronger than bottom). */
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.25),
    inset 0 14px 16px rgba(255, 255, 255, 0.07),
    inset 0 -14px 16px rgba(255, 255, 255, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    inset 0 -1px 1px rgba(255, 255, 255, 0.32);
  /* material tint/refraction provided by .liquid-glass (css/liquid.css) */
}
.dock-item { position: relative; display: flex; align-items: flex-end; justify-content: center; z-index: 1; }
.dock-icon {
  width: var(--dock-size); height: var(--dock-size);
  transition: transform 0.12s var(--ease);
  transform-origin: bottom center;
}
.dock-icon svg, .dock-icon img { width: 100%; height: 100%; }
.dock-item.bounce .dock-icon { animation: dockbounce 0.55s var(--ease) infinite; }
@keyframes dockbounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
/* The label rides on top of the icon: --icon-rise is set by the
   magnification code so the tip climbs together with the scaled icon. */
.dock-tip {
  position: absolute; bottom: calc(100% + 10px + var(--icon-rise, 0px)); left: 50%; transform: translateX(-50%);
  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid var(--glass-border);
  padding: 3px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.dock-item:hover .dock-tip { opacity: 1; }
.dock-dot {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--menubar-text);
  opacity: 0; transition: opacity 0.2s;
}
.dock-item.running .dock-dot { opacity: 0.85; }
.dock-item.minimized .dock-icon { opacity: 0.85; filter: saturate(0.7); }
.dock-sep { width: 1px; align-self: stretch; background: var(--divider); margin: 4px 3px; }

/* ---------- Windows ---------- */
/* Windows layer must never steal clicks meant for the desktop or its
   icons: the layer itself is transparent to the pointer, only actual
   window elements receive events. */
#windows { position: absolute; inset: 0; z-index: 100; pointer-events: none; }
.window { pointer-events: auto; }
.window {
  position: absolute;
  min-width: 250px; min-height: 200px;
  /* material provided by .liquid-glass (see css/liquid.css) */
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: winopen 0.22s var(--ease-spring);
}
@keyframes winopen { from { opacity: 0; transform: scale(0.92) translateY(14px); } }
.window.closing { animation: winclose 0.16s var(--ease) forwards; }
@keyframes winclose { to { opacity: 0; transform: scale(0.94); } }
.window.maximized {
  left: 0 !important; top: var(--mb-h) !important;
  width: 100% !important; height: calc(100% - var(--mb-h)) !important;
  border-radius: 0;
  transition: all 0.28s var(--ease);
}
.window.resizing { transition: none; }

.win-titlebar {
  position: relative; height: 44px; flex: none;
  display: flex; align-items: center;
  /* transparent — the titlebar IS the window glass (Tahoe look);
     the frosted material comes from .window.liquid-glass */
  border-bottom: 0.5px solid transparent;
  -webkit-user-select: none; user-select: none;
}
/* Terminal has an opaque dark body — match its titlebar so the glass
   seam doesn't show (light theme). */
.window.app-terminal .win-titlebar {
  background: rgba(24, 24, 28, 0.78);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.win-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; color: var(--text);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none;
}
.window.unfocused .win-title { color: var(--text-3); }
.traffic { display: flex; gap: 8px; padding: 0 0 0 13px; z-index: 2; }
.tl {
  width: 12px; height: 12px; border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.tl svg { width: 8px; height: 8px; opacity: 0; transition: opacity 0.12s; }
.tl-close { background: #ff5f57; }
.tl-min { background: #febc2e; }
.tl-zoom { background: #28c840; }
.traffic:hover .tl-close svg, .traffic:hover .tl-min svg, .traffic:hover .tl-zoom svg { opacity: 1; }
.tl-close svg path { stroke: #7d0000; }
.tl-min svg { background: #985d00; }
.tl-zoom svg path { stroke: #006532; }
.window.unfocused .tl { background: var(--traffic-off); border-color: transparent; }

/* App content is SOLID (real macOS: only the titlebar is glass);
   this keeps every app readable regardless of wallpaper or theme. */
.win-body { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--win-solid); }
.win-tools { margin-left: auto; margin-right: 14px; display: flex; gap: 2px; align-items: center; }

/* resize handles */
.rh { position: absolute; z-index: 3; }
.rh-e { right: 0; top: 8px; bottom: 8px; width: 6px; cursor: ew-resize; }
.rh-s { bottom: 0; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.rh-se { right: 0; bottom: 0; width: 14px; height: 14px; cursor: nesw-resize; }

/* window app chrome toolbar */
.appbar {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-bottom: 0.5px solid var(--divider);
  background: color-mix(in srgb, var(--win-solid) 55%, transparent);
}
.appbar .ab-btn {
  width: 26px; height: 24px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.appbar .ab-btn:hover { background: var(--hover-2); }
.appbar .ab-btn svg { width: 15px; height: 15px; }
.appbar .ab-btn.on { color: var(--accent); }

/* generic segmented control */
.seg { display: inline-flex; background: var(--field); border-radius: 6px; padding: 1.5px; }
.seg button { padding: 2px 10px; border-radius: 5px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.seg button.on { background: var(--glass-strong); box-shadow: 0 1px 4px rgba(0,0,0,0.15); color: var(--text); }
.seg button svg { width: 13px; height: 13px; }

/* toolbar icon button */
.tbtn {
  width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.tbtn:hover { background: var(--hover-2); color: var(--text); }
.tbtn.on { color: var(--accent); }
.tbtn svg { width: 16px; height: 16px; }

/* ---------- Spotlight ---------- */
#spotlight {
  /* above CC (750), calendar (760), notifications (800) and context
     menus (850): Spotlight covers everything, like the real Mac */
  position: fixed; inset: 0; z-index: 860;
  background: rgba(0,0,0,0.10);
  display: flex; justify-content: center;
  padding-top: 14vh;
}
.sp-shell {
  width: min(660px, 92vw);
  overflow: hidden;
  /* material provided by .liquid-glass (see css/liquid.css) */
  animation: spawn 0.18s var(--ease-spring);
}
@keyframes spawn { from { opacity: 0; transform: scale(0.96) translateY(-10px); } }
.sp-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.sp-glyph svg { width: 24px; height: 24px; }
#sp-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 24px; font-weight: 400; color: var(--text);
}
#sp-input::placeholder { color: var(--text-3); }
.sp-tabs { display: flex; gap: 4px; padding: 0 14px 10px; }
.sp-tabs button {
  padding: 4px 12px; border-radius: 7px; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center;
}
.sp-tabs button.on { background: var(--hover-2); color: var(--text); font-weight: 600; }
.sp-results { max-height: 46vh; overflow-y: auto; border-top: 0.5px solid var(--divider); padding: 6px; }
.sp-group { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.sp-row {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 10px; border-radius: 8px; cursor: default;
}
.sp-row.sel, .sp-row:hover { background: var(--sel); color: #fff; }
.sp-row .sp-ico { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; }
.sp-row .sp-ico svg, .sp-row .sp-ico img { width: 100%; height: 100%; }
.sp-row .sp-main { flex: 1; min-width: 0; }
.sp-row .sp-name { font-size: 14px; font-weight: 500; }
.sp-row .sp-sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row.sel .sp-sub { color: rgba(255,255,255,0.75); }
.sp-row .sp-hint { font-size: 11px; color: var(--text-3); }
.sp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 8px 10px; }
.sp-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 10px; }
.sp-cell.sel, .sp-cell:hover { background: var(--sel); color: #fff; }
.sp-cell .spc-ico { width: 46px; height: 46px; }
.sp-cell .spc-ico svg, .sp-cell .spc-ico img { width: 100%; height: 100%; }
.sp-cell .spc-name { font-size: 12px; text-align: center; line-height: 1.2; }
.sp-empty { padding: 26px; text-align: center; color: var(--text-3); font-size: 13px; }
.sp-calc { font-size: 15px; font-weight: 600; }

/* ---------- Control Center ---------- */
#cc {
  position: fixed; top: 34px; right: 10px; z-index: 750;
  width: 350px;
  /* material provided by .liquid-glass (see css/liquid.css) */
  animation: ccin 0.22s var(--ease-spring);
  padding: 10px;
  display: flex; flex-direction: column; gap: 10px;
}
@keyframes ccin { from { opacity: 0; transform: scale(0.94) translateY(-8px); transform-origin: top right; } }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-tile {
  border-radius: 12px; padding: 10px;
  background: var(--glass-strong);
  border: 0.5px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 8px;
}
.cc-tile.wide { grid-column: span 2; }
.cc-tile-row { display: flex; align-items: center; gap: 10px; }
.cc-circle {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--field); color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.cc-circle svg { width: 17px; height: 17px; fill: currentColor; }
.cc-circle.on { background: var(--accent); color: #fff; }
.cc-tile-text b { font-size: 12.5px; display: block; }
.cc-tile-text span { font-size: 11px; color: var(--text-3); }
.cc-nowplay { grid-column: span 2; flex-direction: row; align-items: center; gap: 10px; }
.cc-nowplay .ccnp-art { width: 44px; height: 44px; border-radius: 7px; overflow: hidden; flex: none; }
.cc-nowplay .ccnp-art img { width: 100%; height: 100%; object-fit: cover; }
.cc-nowplay .ccnp-txt { flex: 1; min-width: 0; }
.cc-nowplay .ccnp-txt b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-nowplay .ccnp-txt span { font-size: 11px; color: var(--text-3); }
.ccnp-ctrl { display: flex; gap: 2px; }
.ccnp-ctrl button { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ccnp-ctrl button:hover { background: var(--hover-2); }
/* Weather module in Control Center */
.cc-weather { cursor: pointer; }
.cc-weather:hover { background: var(--hover-2); }
.ccnp-ctrl svg { width: 13px; height: 13px; fill: var(--text); }
.cc-slider-row { display: flex; align-items: center; gap: 10px; padding: 2px 2px; }
.cc-slider-row svg { width: 15px; height: 15px; fill: var(--text-2); flex: none; }
.cc-slider {
  flex: 1; height: 24px; border-radius: 12px; position: relative; overflow: hidden;
  background: var(--field); cursor: pointer;
}
.cc-slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0; background: #fff;
  border-radius: 12px;
}
.cc-batt { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.cc-batt .cbb-txt b { font-size: 12.5px; display: block; }
.cc-batt .cbb-txt span { font-size: 11px; color: var(--text-3); }
.cc-edit { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.cc-edit button { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.cc-tile .cc-rm {
  position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(120,120,128,0.55); color: #fff; display: none; align-items: center; justify-content: center; font-size: 10px;
}
#cc.editing .cc-rm { display: flex; }
#cc.editing .cc-tile { position: relative; }
.cc-readd { display: none; gap: 6px; flex-wrap: wrap; padding-top: 4px; }
#cc.editing .cc-readd { display: flex; }
.cc-readd button {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: var(--field); color: var(--text);
}

/* ---------- Notifications ---------- */
#notifs {
  /* top aligned with Control Center / calendar popover: 9px under the bar */
  position: fixed; top: 34px; right: 12px; z-index: 800;
  display: flex; flex-direction: column; gap: 8px; width: 340px;
  pointer-events: none;
}
.notif {
  pointer-events: auto;
  padding: 10px 12px;
  /* material provided by .liquid-glass (see css/liquid.css) */
  display: flex; gap: 10px; align-items: flex-start;
  animation: notifin 0.4s var(--ease-spring);
}
.notif.out { animation: notifout 0.3s var(--ease) forwards; }
@keyframes notifin { from { opacity: 0; transform: translateX(60px) scale(0.92); } }
@keyframes notifout { to { opacity: 0; transform: translateX(60px) scale(0.92); } }
.notif .nf-ico { width: 38px; height: 38px; flex: none; border-radius: 9px; overflow: hidden; }
.notif .nf-ico svg, .notif .nf-ico img { width: 100%; height: 100%; }
.notif .nf-body { flex: 1; min-width: 0; }
.notif .nf-head { display: flex; justify-content: space-between; align-items: baseline; }
.notif .nf-app { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.notif .nf-time { font-size: 11px; color: var(--text-3); }
.notif .nf-title { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.notif .nf-msg { font-size: 13px; color: var(--text-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.notif .nf-x { color: var(--text-3); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.notif .nf-x:hover { background: var(--hover-2); }

/* ---------- Context menu ---------- */
#ctx {
  position: fixed; z-index: 850; min-width: 210px;
  padding: 5px;
  /* material provided by .liquid-glass (see css/liquid.css) */
  animation: menuin 100ms var(--ease);
}

/* ---------- Mission Control ---------- */
#mission-control {
  position: fixed; inset: 0; z-index: 650;
  background: rgba(128,128,132,0.25);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  animation: fadein 0.2s;
}
@keyframes fadein { from { opacity: 0; } }
.mc-empty { color: #fff; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.window.mc { transition: all 0.3s var(--ease); transform-origin: top left; cursor: pointer; }

/* ---------- Calendar popover ---------- */
#cal-pop {
  position: fixed; top: 34px; right: 10px; z-index: 760;
  width: 300px; padding: 12px;
  /* material provided by .liquid-glass (see css/liquid.css) */
  animation: ccin 0.2s var(--ease-spring);
}

/* ---------- Shade (brightness) ---------- */
#shade {
  position: fixed; inset: 0; z-index: 9500; background: #000;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
