:root {
  --menubar-h: 24px;
  --dock-base: 48px;
  --blue: #0a84ff;
  --blue-dim: #419cff;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.55);
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #000; color: var(--text); font-family: var(--font);
  user-select: none; -webkit-font-smoothing: antialiased;
  cursor: default;
}
button, input { font: inherit; color: inherit; outline: none; }
button { cursor: default; background: none; border: 0; }
::selection { background: rgba(10,132,255,.42); }

/* boot — black + apple */
#boot {
  position: fixed; inset: 0; z-index: 12000;
  display: grid; place-items: center; background: #000;
  transition: opacity .5s ease, visibility .5s;
}
#boot.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-logo { width: 56px; height: 68px; color: #fff; margin: 0 auto 36px; }
.boot-logo svg { width: 56px; height: 68px; display: block; }
.boot-bar {
  width: 148px; height: 4px; margin: 0 auto; border-radius: 99px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.boot-bar i {
  display: block; height: 100%; width: 0; background: #fff; border-radius: 99px;
  animation: load 1.15s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes load { to { width: 100%; } }

#desktop { position: fixed; inset: 0; }
#wallpaper {
  position: absolute; inset: 0;
  background: url("../assets/wallpaper.jpg") center / cover no-repeat;
}

/* menu bar — 24px, full-height hover */
#menubar {
  position: absolute; inset: 0 0 auto; height: var(--menubar-h);
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 12px 0 10px;
  background: rgba(30,30,32,.28);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  font-size: 13px; letter-spacing: -.015em; z-index: 9000;
  color: rgba(255,255,255,.94);
}
.menu-left, .menu-right { display: flex; align-items: stretch; }
.menu-right { gap: 0; font-variant-numeric: tabular-nums; }
#menubar button {
  display: flex; align-items: center;
  padding: 0 11px; margin: 0; border-radius: 0;
  height: 100%;
}
#menubar button:hover, #menubar button.open {
  background: rgba(255,255,255,.14);
}
#apple { padding: 0 12px; }
#apple svg { display: block; }
.menu-item.bold { font-weight: 600; }
.mb-ico { width: 30px; padding: 0 !important; justify-content: center; }
.mb-ico svg { width: 14px; height: 14px; display: block; }
#clock { padding: 0 10px; display: flex; align-items: center; }
#clock:hover { background: rgba(255,255,255,.14); }

.dropdown {
  position: absolute; top: var(--menubar-h);
  min-width: 248px; padding: 5px;
  background: rgba(46,46,49,.78);
  backdrop-filter: blur(50px) saturate(190%);
  -webkit-backdrop-filter: blur(50px) saturate(190%);
  border: .5px solid rgba(255,255,255,.18);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.38), 0 0 0 .5px rgba(0,0,0,.2);
  z-index: 9500;
}
.dropdown.hidden { display: none; }
.dropdown button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  text-align: left; padding: 3px 10px 3px 22px; border-radius: 5px;
  font-size: 13px; line-height: 1.55; color: #fff;
}
.dropdown button:hover { background: var(--blue); }
.dropdown button .kbd { color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .02em; }
.dropdown button:hover .kbd { color: rgba(255,255,255,.86); }
.dropdown hr { border: 0; border-top: .5px solid rgba(255,255,255,.12); margin: 4px 10px; }

/* desktop */
#desktop-icons {
  position: absolute; top: 108px; right: 16px;
  display: flex; flex-direction: column; gap: 18px; z-index: 3;
}
.desk-icon { width: 76px; color: #fff; text-align: center; padding: 2px; }
.desk-icon .glyph {
  width: 52px; height: 52px; margin: 0 auto 3px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
}
.desk-icon .glyph .app-icon { width: 52px; height: 52px; }
.desk-icon span {
  display: inline-block; max-width: 74px;
  padding: 0 5px 1px; border-radius: 4px;
  font-size: 12px; line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
}
.desk-icon.selected span { background: var(--blue); text-shadow: none; }

/* windows */
#windows { position: absolute; inset: 0; z-index: 20; }
.window {
  position: absolute; min-width: 380px; min-height: 240px;
  display: flex; flex-direction: column;
  background: rgba(42,42,46,.82);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: .5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.25),
    0 18px 60px rgba(0,0,0,.42),
    0 2px 8px rgba(0,0,0,.2);
  overflow: hidden; color: var(--text);
  animation: winIn .2s cubic-bezier(.2,.85,.2,1);
}
@keyframes winIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
.window.focused { box-shadow: 0 0 0 .5px rgba(255,255,255,.14), 0 24px 80px rgba(0,0,0,.5); }
.window.maximized { border-radius: 0; }
.window.closing { animation: winOut .14s ease forwards; }
@keyframes winOut { to { opacity: 0; transform: scale(.97); } }
.window.genie {
  transition: transform .32s cubic-bezier(.45,0,1,.45), opacity .28s ease;
  transform: scale(.06);
  opacity: 0;
}

.titlebar {
  height: 52px; flex: 0 0 52px;
  display: grid; grid-template-columns: 78px 1fr 78px; align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  border-bottom: .5px solid rgba(255,255,255,.06);
}
.traffic { display: flex; gap: 8px; align-items: center; }
.tl {
  width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0;
  position: relative;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.22);
}
.tl.close { background: #ff5f57; }
.tl.min { background: #febc2e; }
.tl.max { background: #28c840; }
.window:not(.focused) .tl { background: #545456; box-shadow: none; }
.tl svg {
  position: absolute; inset: 1px; width: 10px; height: 10px;
  opacity: 0; color: rgba(0,0,0,.62);
}
.traffic:hover .tl svg { opacity: 1; }
.window:not(.focused) .traffic:hover .tl svg { opacity: 0; }
.wtitle {
  text-align: center; font-size: 13px; font-weight: 590;
  color: rgba(255,255,255,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.resize { position: absolute; z-index: 6; }
.resize.n { top: -2px; left: 16px; right: 16px; height: 6px; cursor: ns-resize; }
.resize.s { bottom: -2px; left: 16px; right: 16px; height: 6px; cursor: ns-resize; }
.resize.e { right: -2px; top: 16px; bottom: 16px; width: 6px; cursor: ew-resize; }
.resize.w { left: -2px; top: 16px; bottom: 16px; width: 6px; cursor: ew-resize; }
.resize.se { right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; }

.window.finder-win .titlebar {
  position: absolute; left: 0; right: 0; top: 0; height: 52px;
  background: none; border: 0; pointer-events: none; z-index: 5;
}
.window.finder-win .titlebar .traffic { pointer-events: auto; }
.window.finder-win .wtitle { opacity: 0; }

/* dock */
#dock {
  position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 3px;
  padding: 4px 6px 4px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: .5px solid rgba(255,255,255,.22);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2);
  z-index: 8000;
}
.dock-item {
  position: relative; width: var(--dock-base); height: var(--dock-base);
  padding: 0; display: grid; place-items: end center;
  will-change: width, height;
}
.dock-item .icon {
  width: 100%; height: 100%;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.35));
}
.dock-item .icon .app-icon {
  width: 100%; height: 100%;
  border-radius: 22%;
  overflow: hidden;
}
.dock-item .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: rgba(48,48,50,.82); backdrop-filter: blur(20px);
  border: .5px solid rgba(255,255,255,.16);
  font-size: 12px; padding: 2px 8px 3px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none; color: #fff;
}
.dock-item .tip::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: rgba(48,48,50,.82);
}
.dock-item:hover .tip { opacity: 1; }
.dock-dot {
  position: absolute; bottom: -3px; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,.78); opacity: 0;
}
.dock-item.open .dock-dot { opacity: 1; }
.dock-sep {
  width: 1px; height: 32px; margin: 0 5px 10px;
  background: rgba(255,255,255,.28); align-self: flex-end;
}
.dock-item.bounce .icon { animation: bounce .65s cubic-bezier(.28,1.45,.36,1); }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  30% { transform: translateY(-16px); }
  55% { transform: translateY(0); }
  72% { transform: translateY(-6px); }
}
.app-icon, .app-icon svg { width: 100%; height: 100%; display: block; }

/* finder */
.finder { display: grid; grid-template-columns: 200px 1fr; height: 100%; }
.sidebar {
  background: rgba(255,255,255,.04);
  border-right: .5px solid rgba(255,255,255,.07);
  padding: 52px 10px 12px; overflow: auto;
}
.side-label {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.38);
  padding: 8px 8px 4px;
}
.side-item {
  width: 100%; display: flex; align-items: center; gap: 7px;
  padding: 4px 8px; border-radius: 6px; font-size: 13px; color: #fff; text-align: left;
}
.side-item .mini { width: 16px; height: 16px; flex: 0 0 16px; }
.side-item .mini svg { width: 16px; height: 16px; display: block; }
.side-item:hover { background: rgba(255,255,255,.07); }
.side-item.active { background: rgba(255,255,255,.14); }
.window.focused .side-item.active { background: var(--blue); }
.finder-main { display: flex; flex-direction: column; min-width: 0; background: rgba(28,28,30,.55); }
.finder-toolbar {
  height: 52px; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 14px 0 78px; gap: 8px;
  border-bottom: .5px solid rgba(255,255,255,.06);
}
.seg {
  display: flex; background: rgba(255,255,255,.08); border-radius: 7px; padding: 2px;
}
.tool-btn {
  width: 28px; height: 22px; border-radius: 5px; color: rgba(255,255,255,.85);
  display: grid; place-items: center;
}
.tool-btn.on { background: rgba(255,255,255,.18); color: #fff; }
#finder-search {
  width: 176px; height: 24px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.1); padding: 0 8px 0 26px; font-size: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='rgba(255,255,255,.45)' stroke-width='1.5'><circle cx='6.6' cy='6.6' r='4.2'/><path d='M10 10 L13.5 13.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: 7px 50%; background-size: 12px;
}
#finder-search::placeholder { color: rgba(255,255,255,.38); }
.file-grid {
  padding: 18px 14px 16px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px 4px; overflow: auto; align-content: start; flex: 1;
}
.file-grid.list { grid-template-columns: 1fr; gap: 0; padding: 0; }
.file { color: #fff; text-align: center; padding: 6px 4px; border-radius: 6px; }
.file .icon { width: 48px; height: 48px; margin: 0 auto 5px; }
.file .name { font-size: 12px; line-height: 1.2; }
.file .namecell { display: block; }
.file .meta, .file .kind { display: none; }
.file.sel { background: rgba(255,255,255,.1); }
.window.focused .file.sel { background: var(--blue); }
.list-head, .file-grid.list .file {
  display: grid; grid-template-columns: minmax(180px,1.4fr) 160px 72px; gap: 8px; align-items: center;
  padding: 4px 16px 4px 12px; text-align: left;
}
.list-head {
  font-size: 11px; color: rgba(255,255,255,.4); border-bottom: .5px solid rgba(255,255,255,.08);
}
.file-grid.list .file { border-radius: 0; padding: 3px 16px 3px 12px; }
.file-grid.list .namecell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-grid.list .file .icon { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; }
.file-grid.list .file .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-grid.list .file .meta, .file-grid.list .file .kind { display: block; font-size: 12px; color: var(--muted); text-align: left; }
.finder-status {
  height: 23px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,.42);
  border-top: .5px solid rgba(255,255,255,.06);
}

/* about / cards */
.about {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 20px 28px 24px; text-align: center;
}
.about-ava {
  width: 80px; height: 80px; border-radius: 18px; object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.3); overflow: hidden;
}
.about .os { margin: 12px 0 2px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.about h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; font-weight: 620; }
.about .handle { color: var(--muted); margin: 4px 0 12px; font-size: 12.5px; }
.about p { margin: 0 0 16px; line-height: 1.5; max-width: 380px; font-size: 13px; color: rgba(255,255,255,.82); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.btn {
  border-radius: 6px; padding: 4px 12px; font-size: 13px;
  background: rgba(255,255,255,.12);
}
.btn.primary { background: var(--blue); }
.btn.ghost { background: transparent; border: .5px solid rgba(255,255,255,.18); }

.card { padding: 24px 26px; overflow: auto; height: 100%; }
.card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.card-top .icon { width: 56px; height: 56px; flex: 0 0 56px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); }
.card h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.02em; }
.alias { color: var(--muted); font-size: 12.5px; margin: 0; }
.pitch { font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.why { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); }
.chip.status { background: rgba(48,209,88,.16); color: #86efac; }

/* safari */
.safari-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 0 10px; height: 52px;
}
.nav-btn {
  width: 22px; height: 22px; border-radius: 5px; color: rgba(255,255,255,.8);
}
.nav-btn:disabled { opacity: .28; }
.omni {
  flex: 1; height: 28px; border-radius: 8px; border: 0;
  background: rgba(0,0,0,.28); color: var(--text);
  padding: 0 12px; font-size: 12px; text-align: center;
}
.omni:focus { text-align: left; }
.bookmarks {
  display: flex; gap: 2px; padding: 0 10px 7px; overflow-x: auto;
}
.bookmarks button {
  color: rgba(255,255,255,.72); font-size: 11.5px; padding: 2px 8px; border-radius: 5px; white-space: nowrap;
}
.bookmarks button:hover { background: rgba(255,255,255,.1); color: #fff; }
.safari-frame { flex: 1; min-height: 0; background: #111; position: relative; }
.safari-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.iframe-wait {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #1c1c1e; color: var(--muted); font-size: 13px; z-index: 1;
}
.interstitial {
  height: 100%; display: grid; place-items: center; padding: 36px; text-align: center;
}
.interstitial .app-icon { width: 72px; height: 72px; margin: 0 auto 14px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); }
.interstitial h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.hint {
  font-size: 11px; color: rgba(255,255,255,.34);
  padding: 4px 12px; border-top: .5px solid rgba(255,255,255,.06);
}

.term {
  height: 100%; background: #1e1e1e; color: #d6d6d6;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 11.5px; padding: 10px 12px; overflow: auto; line-height: 1.5;
}
.term .out { white-space: pre-wrap; }
.term-line { display: flex; gap: 8px; }
.term-line input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; }
.prompt { color: #32d74b; }

.note { padding: 22px 26px; line-height: 1.6; font-size: 13.5px; }
.note h3 { margin: 0 0 8px; font-weight: 600; }
.note kbd {
  font: 11px/1 ui-monospace, Menlo, monospace;
  background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px;
}

/* notifications */
#notifications {
  position: absolute; top: 34px; right: 14px; width: 344px;
  display: flex; flex-direction: column; gap: 8px; z-index: 8600; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center;
  background: rgba(44,44,48,.72); backdrop-filter: blur(30px);
  border: .5px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: 10px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.28);
  animation: toastIn .28s ease;
}
@keyframes toastIn { from { transform: translateX(16px); opacity: 0; } }
.toast .icon { width: 32px; height: 32px; }
.toast b { display: block; font-size: 13px; }
.toast span { font-size: 12px; color: var(--muted); }

/* overlays */
#spotlight, #launchpad, #switcher, #control, #ncenter { position: absolute; inset: 0; z-index: 9200; }
#spotlight {
  display: grid; align-content: start; justify-items: center;
  padding-top: 16vh; background: rgba(0,0,0,.18);
}
.hidden { display: none !important; }
.spot-box {
  width: min(680px, 90vw);
  background: rgba(44,44,48,.8); backdrop-filter: blur(50px) saturate(180%);
  border: .5px solid rgba(255,255,255,.16); border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.45);
}
.spot-field { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: rgba(255,255,255,.5); }
.spot-field input {
  flex: 1; border: 0; background: transparent; color: #fff;
  font-size: 22px; font-weight: 400; padding: 0; outline: none;
}
.spot-list { max-height: 360px; overflow: auto; border-top: .5px solid rgba(255,255,255,.06); }
.spot-item {
  width: 100%; display: grid; grid-template-columns: 32px 1fr auto;
  gap: 10px; align-items: center; padding: 7px 14px; color: #fff; text-align: left;
}
.spot-item .icon { width: 28px; height: 28px; }
.spot-item small { color: var(--muted); }
.spot-item.active, .spot-item:hover { background: var(--blue); }
.spot-item.active small, .spot-item:hover small { color: rgba(255,255,255,.88); }

#launchpad {
  background: rgba(8,8,10,.35);
  backdrop-filter: blur(36px) saturate(130%);
  display: flex; flex-direction: column; padding: 52px 48px 100px;
}
.lp-search {
  width: min(240px, 56vw); margin: 0 auto 32px; height: 28px;
  border-radius: 8px; border: 0; padding: 0 12px;
  background: rgba(255,255,255,.18); color: #fff; text-align: center; font-size: 13px;
}
.lp-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 28px 8px; overflow: auto; max-width: 880px; width: 100%; margin: 0 auto;
}
.lp-app { color: #fff; }
.lp-app .icon { width: 68px; height: 68px; margin: 0 auto 7px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.lp-app span {
  font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

#switcher { display: grid; place-items: center; background: rgba(0,0,0,.16); }
.switch-box {
  display: flex; gap: 14px; padding: 16px 20px;
  background: rgba(44,44,48,.75); backdrop-filter: blur(28px);
  border: .5px solid rgba(255,255,255,.16); border-radius: 16px;
}
.sw { width: 80px; text-align: center; color: #fff; font-size: 11px; }
.sw .icon { width: 50px; height: 50px; margin: 0 auto 5px; }
.sw.on { outline: 2px solid #fff; border-radius: 12px; padding: 6px; }

#control { display: flex; justify-content: flex-end; padding: 32px 12px 0; pointer-events: none; }
.cc {
  width: 300px; pointer-events: auto;
  background: rgba(44,44,48,.7); backdrop-filter: blur(40px);
  border: .5px solid rgba(255,255,255,.16); border-radius: 16px;
  padding: 10px; box-shadow: 0 16px 48px rgba(0,0,0,.32);
}
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-tile {
  background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 10px 8px;
  min-height: 74px; color: #fff; text-align: left;
}
.cc-tile b { display: block; font-size: 12.5px; margin-top: 6px; }
.cc-tile span { font-size: 11px; color: var(--muted); }
.cc-tile.on { background: var(--blue); }
.cc-tile.on span { color: rgba(255,255,255,.84); }
.cc-glyph {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.cc-slider {
  margin-top: 8px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 12px 10px;
  font-size: 11px; color: var(--muted);
}
.cc-slider i {
  display: block; height: 5px; margin-top: 7px; border-radius: 99px;
  background: linear-gradient(90deg, #fff 72%, rgba(255,255,255,.16) 72%);
}
.cc-slider i.mid { background: linear-gradient(90deg, #fff 44%, rgba(255,255,255,.16) 44%); }

#ncenter { display: flex; justify-content: flex-end; padding: 32px 12px 0; pointer-events: none; }
.nc {
  width: 344px; pointer-events: auto;
  background: rgba(44,44,48,.62); backdrop-filter: blur(36px);
  border: .5px solid rgba(255,255,255,.14); border-radius: 16px;
  padding: 10px; max-height: 70vh; overflow: auto;
}
.nc h4 { margin: 2px 8px 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.nc .toast { animation: none; margin-bottom: 8px; }

#ctx {
  position: fixed; z-index: 9800; min-width: 196px; padding: 5px;
  background: rgba(46,46,49,.82); backdrop-filter: blur(28px);
  border: .5px solid rgba(255,255,255,.16); border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,.38);
}
#ctx button {
  width: 100%; text-align: left; color: #fff; padding: 4px 12px 4px 20px;
  border-radius: 5px; font-size: 13px;
}
#ctx button:hover { background: var(--blue); }

@media (max-width: 780px) {
  .window { min-width: 0 !important; left: 4px !important; right: 4px !important; width: auto !important; }
  #dock { transform: translateX(-50%) scale(.76); transform-origin: bottom center; }
  #desktop-icons { display: none; }
  .finder { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .window.finder-win .titlebar { pointer-events: auto; }
  .window.finder-win .wtitle { opacity: 1; }
  .lp-grid { grid-template-columns: repeat(4, 1fr); }
}
