/* ================= Power / Boot / Login ================= */

#power-screen {
  position: fixed; inset: 0; background: #000; z-index: 6000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
#power-btn {
  width: 90px; height: 110px;
  background: transparent;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: #2a2a2c;
  transition: background-color 0.4s;
}
#power-btn:hover { background-color: #48484a; }
#power-hint { color: #3c3c3e; font-size: 13px; letter-spacing: 0.3px; transition: color 0.4s; }
#power-screen:hover #power-hint { color: #6a6a6e; }

#boot-screen {
  position: fixed; inset: 0; background: #000; z-index: 6000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
#boot-logo {
  width: 78px; height: 96px; background: #e8e8e8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 814 1000'%3E%3Cpath d='M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
#boot-progress {
  width: 220px; height: 5px; border-radius: 3px;
  background: #2c2c2e; margin-top: 90px; overflow: hidden;
}
#boot-progress-fill { height: 100%; width: 0%; border-radius: 3px; background: #d8d8d8; }

#login-screen { position: fixed; inset: 0; z-index: 5900; overflow: hidden; }
#login-wall {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.72) saturate(1.2);
  transform: scale(1.08);
}
#login-screen.sharp #login-wall { transition: filter 0.7s ease; filter: blur(0px) brightness(1); }
#login-clock { position: absolute; top: 9%; width: 100%; text-align: center; color: rgba(255,255,255,0.92); text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
#login-date { font-size: 22px; font-weight: 600; margin-bottom: 2px; }
#login-time { font-size: 86px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
#login-center {
  position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  transition: opacity 0.4s, transform 0.4s;
}
#login-screen.leaving #login-clock, #login-screen.leaving #login-center, #login-screen.leaving #login-footer { opacity: 0; transition: opacity 0.45s; }
#login-avatar {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(160deg, #6ab1f7, #2d63d8);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  position: relative; overflow: hidden;
}
#login-avatar::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 34%, #fff 13px, transparent 13.6px),
    radial-gradient(ellipse 24px 15px at 50% 76%, #fff 98%, transparent 100%);
}
#login-name { color: #fff; font-size: 17px; font-weight: 600; margin: 12px 0 14px; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
#login-form { position: relative; display: flex; align-items: center; }
#login-password {
  width: 196px; height: 30px; border-radius: 15px;
  border: none; outline: none;
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(20px);
  color: #fff; text-align: center; font-size: 13px;
  transition: background 0.2s;
}
#login-password::placeholder { color: rgba(255,255,255,0.68); }
#login-password:focus { background: rgba(255,255,255,0.32); }
#login-form.shake { animation: login-shake 0.4s; }
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-11px); } 40% { transform: translateX(9px); }
  60% { transform: translateX(-7px); } 80% { transform: translateX(5px); }
}
#login-go {
  position: absolute; right: 4px; width: 23px; height: 23px; border-radius: 50%;
  background: rgba(255,255,255,0.4); opacity: 0; transition: opacity 0.2s;
}
#login-go::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 5l7 7-7 7M20 12H4' stroke='%23000' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 5l7 7-7 7M20 12H4' stroke='%23000' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  background: #fff;
}
#login-form.has-text #login-go { opacity: 1; }
#login-hint { color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 14px; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
#login-footer { position: absolute; bottom: 34px; width: 100%; display: flex; justify-content: center; gap: 56px; }
.login-foot-item { color: rgba(255,255,255,0.8); font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.lf-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.22); backdrop-filter: blur(10px); position: relative; }
.login-foot-item:hover .lf-icon { background: rgba(255,255,255,0.32); }
.lf-icon::after { content: ""; position: absolute; inset: 0; background: #fff; }
.lf-power::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v8M6.2 6.2a8 8 0 1 0 11.6 0' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v8M6.2 6.2a8 8 0 1 0 11.6 0' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.lf-restart::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18 2v5h-5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18 2v5h-5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ================= System / wallpaper ================= */

#system { position: fixed; inset: 0; overflow: hidden; }
#system.appearing { animation: sys-in 0.8s ease-out; }
@keyframes sys-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
#wallpaper {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: background-image 0.5s ease;
}
#brightness-overlay { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 8000; transition: opacity 0.25s; }
#nightshift-overlay { position: fixed; inset: 0; background: #ff9329; opacity: 0; pointer-events: none; z-index: 7990; mix-blend-mode: multiply; transition: opacity 1s; }

/* ================= Menu bar ================= */

#menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 25px;
  z-index: 2000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  background: var(--menubar-bg);
  backdrop-filter: blur(46px) saturate(180%);
  -webkit-backdrop-filter: blur(46px) saturate(180%);
  color: var(--menubar-text);
  font-size: 13px;
  transition: opacity 0.25s;
}
#menubar-left, #menubar-right { display: flex; align-items: center; height: 100%; }

.mb-item {
  height: 21px; display: flex; align-items: center;
  padding: 0 10px; border-radius: 4px;
  white-space: nowrap;
  color: var(--menubar-text);
}
.mb-item.mb-apple { padding: 0 11px; }
.mb-item.mb-apple svg { width: 15px; height: 15px; }
.mb-item.mb-appname { font-weight: 700; }
.mb-item.active { background: var(--hover-fill); }
.mb-item.mb-status { padding: 0 7px; }
.mb-item.mb-status svg { width: 16px; height: 16px; }
.mb-item.mb-clock { padding: 0 10px 0 7px; font-variant-numeric: tabular-nums; }
.mb-batt-pct { font-size: 12px; margin-right: 4px; }

/* ================= Desktop icons ================= */

#desktop { position: absolute; inset: 25px 0 0 0; z-index: 1; }
.desk-icon {
  position: absolute; width: 84px;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 2px; border-radius: 5px;
}
.desk-icon .di-img {
  width: 58px; height: 58px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 3px;
}
.desk-icon .di-img svg { width: 52px; height: 52px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.28)); }
.desk-icon .di-label {
  margin-top: 3px; font-size: 12px; line-height: 15px;
  color: #fff; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.4);
  max-width: 84px; padding: 0 4px; border-radius: 3px;
  word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.desk-icon.selected .di-img { background: rgba(0,0,0,0.28); box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset; }
.desk-icon.selected .di-label { background: var(--accent); text-shadow: none; }
.desk-icon input.di-rename {
  margin-top: 3px; width: 82px; font-size: 12px; text-align: center;
  border: none; outline: none; border-radius: 3px;
  background: #fff; color: #000;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent);
}
#marquee {
  position: absolute; z-index: 5; border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.14); pointer-events: none;
}
body.dark #marquee { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); }

/* ================= Dock ================= */

#dock-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  z-index: 2100; pointer-events: none;
  padding-bottom: 5px;
  transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1);
}
#dock-wrap.hidden-dock { transform: translateY(calc(100% + 10px)); }
#dock-wrap.hidden-dock.peek { transform: translateY(0); }
#dock {
  display: flex; align-items: flex-end;
  padding: 3px 3px;
  border-radius: 19px;
  background: var(--dock-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px var(--dock-border) inset, 0 8px 34px rgba(0,0,0,0.28), 0 0 0 0.5px rgba(0,0,0,0.18);
  pointer-events: auto;
}
#dock-apps, #dock-min, #dock-trash { display: flex; align-items: flex-end; }
.dock-sep { width: 1px; align-self: stretch; margin: 6px 2px; background: rgba(0,0,0,0.15); }
body.dark .dock-sep { background: rgba(255,255,255,0.2); }

.dock-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 1px;
}
.dock-item .dock-icon { position: relative; transition: none; }
.dock-item .dock-icon svg, .dock-item .dock-icon .thumb { width: 100%; height: 100%; }
.dock-item .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(0,0,0,0.55);
  margin: 1px 0 0; visibility: hidden; flex: none;
}
body.dark .dock-item .dot { background: rgba(255,255,255,0.75); }
.dock-item.running .dot { visibility: visible; }
.dock-item.bouncing .dock-icon { animation: dock-bounce 0.62s cubic-bezier(0.28, 0, 0.5, 1) infinite alternate; }
@keyframes dock-bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-26px); } }

.dock-item .thumb {
  border-radius: 4px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3);
  background: var(--window-bg);
}
.dock-item .thumb .thumb-clone { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }
.dock-item .thumb .thumb-badge { position: absolute; right: 1px; bottom: 1px; width: 42%; height: 42%; }

/* ================= Spotlight ================= */

#spotlight { position: fixed; inset: 0; z-index: 3000; }
#spotlight-panel {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  width: 640px; border-radius: 14px;
  background: var(--menu-bg);
  backdrop-filter: blur(60px) saturate(190%);
  -webkit-backdrop-filter: blur(60px) saturate(190%);
  box-shadow: var(--shadow-win);
  overflow: hidden;
  animation: spot-in 0.14s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes spot-in { from { opacity: 0; transform: translateX(-50%) scale(0.97); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
#spotlight-bar { display: flex; align-items: center; padding: 11px 14px; gap: 10px; }
#spotlight-glass { width: 22px; height: 22px; flex: none; opacity: 0.55; }
#spotlight-glass svg { width: 100%; height: 100%; }
#spotlight-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 22px; font-weight: 300; color: var(--text);
}
#spotlight-input::placeholder { color: var(--text-3); }
#spotlight-results { border-top: 1px solid var(--menu-sep); max-height: 420px; overflow-y: auto; padding: 6px; }
.spot-section { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 7px 10px 3px; }
.spot-row {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 10px; border-radius: 8px; font-size: 13px; color: var(--text);
}
.spot-row .sr-icon { width: 24px; height: 24px; flex: none; }
.spot-row .sr-icon svg { width: 100%; height: 100%; }
.spot-row .sr-sub { color: var(--text-2); font-size: 12px; margin-left: auto; padding-left: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-row.hl { background: var(--accent); color: #fff; }
.spot-row.hl .sr-sub { color: rgba(255,255,255,0.75); }
.spot-calc { display: flex; flex-direction: column; padding: 10px 12px; }
.spot-calc .sc-expr { font-size: 13px; color: var(--text-2); }
.spot-calc .sc-val { font-size: 30px; font-weight: 300; color: var(--text); }

/* ================= Control Center ================= */

#control-center {
  position: fixed; top: 31px; right: 8px; z-index: 2500;
  width: 316px; border-radius: 16px;
  background: var(--panel-bg);
  backdrop-filter: blur(60px) saturate(190%);
  -webkit-backdrop-filter: blur(60px) saturate(190%);
  box-shadow: var(--shadow-menu);
  padding: 10px;
  color: var(--panel-text);
  animation: cc-in 0.16s ease-out;
}
@keyframes cc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-module {
  background: var(--panel-module);
  border-radius: 13px; padding: 10px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08), 0 1px 6px rgba(0,0,0,0.08);
}
body.dark .cc-module { box-shadow: 0 0 0 0.5px rgba(255,255,255,0.08), 0 1px 6px rgba(0,0,0,0.2); }
.cc-conn { display: flex; flex-direction: column; gap: 9px; }
.cc-row { display: flex; align-items: center; gap: 8px; }
.cc-toggle {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: rgba(120,120,128,0.24);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.cc-toggle svg { width: 15px; height: 15px; }
.cc-toggle.on { background: var(--accent); }
.cc-toggle.on svg { color: #fff; }
.cc-label { display: flex; flex-direction: column; min-width: 0; }
.cc-label b { font-size: 12px; font-weight: 600; }
.cc-label span { font-size: 11px; color: var(--text-2); }
.cc-small { display: flex; align-items: center; gap: 8px; }
.cc-slider-label { font-size: 12px; font-weight: 600; margin-bottom: 7px; display: block; }
.cc-slider { position: relative; height: 22px; border-radius: 11px; background: rgba(120,120,128,0.26); overflow: hidden; }
.cc-slider .fill { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; border-radius: 11px 0 0 11px; }
.cc-slider .cs-icon { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: rgba(80,80,84,0.85); z-index: 2; }
.cc-slider .cs-icon svg { width: 100%; height: 100%; }
.cc-music { display: flex; align-items: center; gap: 9px; }
.cc-art { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, #fa4b6b, #a63bd4); flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff; }
.cc-art svg { width: 18px; height: 18px; }
.cc-music-meta { flex: 1; min-width: 0; }
.cc-music-meta b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-music-meta span { font-size: 11px; color: var(--text-2); }
.cc-play { width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cc-play:hover { background: var(--hover-fill); }
.cc-play svg { width: 13px; height: 13px; }
.cc-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.cc-foot .cc-toggle { width: 24px; height: 24px; }

/* ================= Notification Center ================= */

#notif-center {
  position: fixed; top: 25px; right: 0; bottom: 0; z-index: 2400;
  width: 346px; padding: 12px 14px;
  overflow-y: auto;
  animation: nc-in 0.28s cubic-bezier(0.3, 0.9, 0.3, 1);
}
@keyframes nc-in { from { transform: translateX(360px); } to { transform: translateX(0); } }
#notif-center.leaving { animation: nc-out 0.22s ease-in forwards; }
@keyframes nc-out { to { transform: translateX(360px); } }

.nc-widget {
  border-radius: 16px; padding: 13px 14px; margin-bottom: 11px;
  background: var(--panel-bg);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 6px 22px rgba(0,0,0,0.16), 0 0 0 0.5px rgba(0,0,0,0.12);
  color: var(--panel-text);
}
.nc-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; }
.nc-head b { font-size: 20px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.nc-clear { font-size: 11px; color: #fff; background: rgba(255,255,255,0.25); backdrop-filter: blur(8px); border-radius: 10px; padding: 3px 10px; }
.nc-clear:hover { background: rgba(255,255,255,0.36); }

.notif {
  border-radius: 13px; padding: 10px 12px; margin-bottom: 9px;
  background: var(--panel-bg);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  box-shadow: 0 6px 22px rgba(0,0,0,0.18), 0 0 0 0.5px rgba(0,0,0,0.12);
  color: var(--panel-text);
  display: flex; gap: 10px; align-items: flex-start;
  position: relative;
}
.notif .nf-icon { width: 34px; height: 34px; flex: none; }
.notif .nf-icon svg { width: 100%; height: 100%; }
.notif .nf-body { flex: 1; min-width: 0; }
.notif .nf-title { font-size: 13px; font-weight: 700; }
.notif .nf-msg { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.notif .nf-time { position: absolute; top: 9px; right: 12px; font-size: 11px; color: var(--text-3); }
.notif .nf-close {
  position: absolute; top: -7px; left: -7px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--panel-bg); backdrop-filter: blur(10px);
  box-shadow: 0 1px 5px rgba(0,0,0,0.3), 0 0 0 0.5px rgba(0,0,0,0.15);
  display: none; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text);
}
.notif:hover .nf-close { display: flex; }

#notif-banners { position: fixed; top: 34px; right: 12px; z-index: 2300; display: flex; flex-direction: column; gap: 9px; width: 346px; pointer-events: none; }
#notif-banners .notif { pointer-events: auto; margin: 0; animation: banner-in 0.4s cubic-bezier(0.25, 1, 0.4, 1); }
@keyframes banner-in { from { transform: translateX(370px); } to { transform: translateX(0); } }
#notif-banners .notif.leaving { animation: banner-out 0.3s ease-in forwards; }
@keyframes banner-out { to { transform: translateX(380px); opacity: 0.4; } }

/* ================= Launchpad ================= */

#launchpad {
  position: fixed; inset: 0; z-index: 2600;
  background: rgba(60, 60, 70, 0.25);
  backdrop-filter: blur(46px) saturate(150%);
  -webkit-backdrop-filter: blur(46px) saturate(150%);
  display: flex; flex-direction: column; align-items: center;
  animation: lp-in 0.22s ease-out;
}
@keyframes lp-in { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; } }
#launchpad.leaving { animation: lp-out 0.18s ease-in forwards; }
@keyframes lp-out { to { opacity: 0; } }
#launchpad-search {
  margin-top: 44px; width: 220px; height: 28px;
  border-radius: 7px; border: 0.5px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.16);
  color: #fff; text-align: center; font-size: 13px; outline: none;
}
#launchpad-search::placeholder { color: rgba(255,255,255,0.6); }
#launchpad-grid {
  flex: 1; width: min(980px, 86vw);
  display: grid; grid-template-columns: repeat(7, 1fr);
  align-content: start; gap: 8px 4px;
  margin-top: 46px;
}
.lp-app { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; }
.lp-app .lp-icon { width: 76px; height: 76px; transition: transform 0.12s; }
.lp-app .lp-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3)); }
.lp-app:active .lp-icon { transform: scale(0.92); filter: brightness(0.8); }
.lp-app .lp-name { color: #fff; font-size: 12.5px; margin-top: 6px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
#launchpad-dots { display: flex; gap: 9px; padding: 22px; }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.lp-dot.on { background: rgba(255,255,255,0.9); }

/* ================= Mission Control ================= */

#mission-control { position: fixed; inset: 0; z-index: 2550; }
#mc-top {
  position: absolute; top: 0; left: 0; right: 0; height: 46px;
  display: flex; align-items: center; justify-content: center;
}
#mc-desk-label {
  color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 6px;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(10px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.mc-label {
  position: fixed; z-index: 2560;
  color: #fff; font-size: 12.5px; font-weight: 600;
  text-shadow: 0 1px 5px rgba(0,0,0,0.7);
  display: flex; align-items: center; gap: 6px;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}
.mc-label .mc-ic { width: 22px; height: 22px; }
.mc-label .mc-ic svg { width: 100%; height: 100%; }
body.mc-active #windows-layer .window { transition: transform 0.32s cubic-bezier(0.3, 0.9, 0.35, 1), opacity 0.3s; }
body.mc-active #windows-layer .window .win-body { pointer-events: none; }
body.mc-active #windows-layer .window:hover { outline: 3px solid rgba(255,255,255,0.65); outline-offset: 2px; }
