:root {
  --bg: #17130f;
  --bg-2: #6b5d4c;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.36);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --glass-soft: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.36);
  --accent: #7bd7ff;
  --accent-2: #d39dff;
  --danger: #ff5f57;
  --warning: #ffbd2e;
  --ok: #28c840;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --blur: 26px;
  --dock-height: 72px;
  --menu-height: 28px;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

body {
  user-select: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(123, 215, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(123, 215, 255, 0.16);
}

.hidden {
  display: none !important;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(130, 220, 255, 0.38), transparent 26%),
    radial-gradient(circle at 64% 58%, rgba(210, 125, 255, 0.26), transparent 28%),
    linear-gradient(145deg, #030916, #101b32 58%, #050612);
  transition: opacity 700ms ease, transform 700ms ease;
}

.boot.done {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

.boot-orb {
  width: 104px;
  height: 104px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.1)),
    conic-gradient(from 210deg, #7bd7ff, #b58cff, #ff9bd3, #9bf3ff, #7bd7ff);
  box-shadow:
    inset 0 2px 24px rgba(255, 255, 255, 0.7),
    inset 0 -30px 48px rgba(28, 71, 122, 0.3),
    0 28px 90px rgba(83, 185, 255, 0.35);
  animation: float 2.8s ease-in-out infinite;
}

.boot-title {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.boot-subtitle {
  color: var(--muted);
  font-size: 18px;
}

.boot-bar {
  width: min(360px, 72vw);
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.boot-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #74d9ff, #d58cff);
  transform-origin: left;
  animation: boot 1.6s ease forwards;
}

.desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.wallpaper-aurora,
.wallpaper-depth {
  position: absolute;
  inset: -10%;
  pointer-events: none;
}

.wallpaper-aurora {
  background:
    radial-gradient(ellipse at 54% 4%, rgba(235, 221, 196, 0.74), transparent 30%),
    radial-gradient(ellipse at 70% 34%, rgba(129, 112, 104, 0.62), transparent 34%),
    radial-gradient(ellipse at 38% 72%, rgba(106, 91, 126, 0.42), transparent 42%),
    linear-gradient(150deg, #1b1715 0%, #7c6c58 34%, #3d3947 62%, #171821 100%);
  filter: saturate(1.02);
}

.wallpaper-depth {
  opacity: 0.66;
  background:
    conic-gradient(from 318deg at 65% 3%, transparent 0deg, rgba(255, 255, 255, 0.38) 16deg, transparent 34deg),
    conic-gradient(from 210deg at 43% 16%, transparent 0deg, rgba(255, 255, 255, 0.2) 12deg, transparent 30deg),
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.1), transparent 20%),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 20px);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 88%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
}

.glass-panel,
.glass-button {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.16)),
    rgba(14, 25, 50, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
}

.glass-window {
  position: relative;
  color: #152033;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 241, 250, 0.82) 46%, rgba(255, 255, 255, 0.88)),
    rgba(246, 248, 253, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 22px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
}

.glass-panel::before,
.glass-window::before,
.glass-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 32%, rgba(255, 255, 255, 0.08) 66%, transparent);
  opacity: 0.78;
  mix-blend-mode: screen;
}

.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  height: var(--menu-height);
  padding: 0 14px;
  gap: 4px;
  border-radius: 0;
  border-width: 0 0 1px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(15, 15, 18, 0.3);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.menu-bar button {
  position: relative;
  z-index: 1;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
}

.menu-bar button:hover,
.menu-bar button.active {
  background: rgba(255, 255, 255, 0.16);
}

.menu-apple {
  font-weight: 900;
  font-size: 15px;
}

.menu-app-name {
  font-weight: 750;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu-spacer {
  flex: 1;
}

.menu-chip,
.menu-clock {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.desktop-icons {
  position: absolute;
  top: 50px;
  right: 18px;
  z-index: 15;
  display: grid;
  gap: 18px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 86px;
  padding: 8px 6px;
  border-radius: 16px;
  background: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.desktop-icon:hover,
.desktop-icon:focus {
  background: rgba(255, 255, 255, 0.12);
}

.desktop-icon .app-icon {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

.desktop-icon span:last-child {
  max-width: 82px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.app-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 330px;
  min-height: 280px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--dock-height) - var(--menu-height) - 18px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  resize: both;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
  font-size: 13px;
}

.app-window.focused {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 30px 100px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(123, 215, 255, 0.2);
}

.app-window.minimized {
  opacity: 0;
  transform: translateY(70px) scale(0.86);
  pointer-events: none;
}

.app-window.maximized {
  border-radius: 12px;
}

.window-chrome {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 66px 1fr minmax(40px, auto);
  align-items: center;
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(40, 49, 66, 0.12);
  background: rgba(248, 250, 255, 0.72);
  cursor: grab;
}

.window-chrome:active {
  cursor: grabbing;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.traffic.close {
  background: var(--danger);
}

.traffic.minimize {
  background: var(--warning);
}

.traffic.zoom {
  background: var(--ok);
}

.window-title {
  justify-self: center;
  font-weight: 720;
  font-size: 13px;
  color: rgba(21, 32, 51, 0.78);
}

.window-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tool-button,
.pill-button,
.wide-button,
.icon-button {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.glass-window .tool-button,
.glass-window .pill-button,
.glass-window .wide-button,
.glass-window .icon-button {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(54, 64, 84, 0.12);
  color: rgba(23, 31, 47, 0.78);
}

.glass-window input,
.glass-window textarea,
.glass-window select {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(54, 64, 84, 0.12);
  color: #152033;
}

.tool-button,
.pill-button {
  min-height: 32px;
  padding: 0 12px;
}

.tool-button:hover,
.pill-button:hover,
.wide-button:hover,
.icon-button:hover,
.dock-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.window-body {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: auto;
  padding: 12px;
}

.window-body::-webkit-scrollbar,
.scroll-area::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.window-body::-webkit-scrollbar-thumb,
.scroll-area::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 7000;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  max-width: calc(100vw - 24px);
  min-height: 60px;
  padding: 6px 8px 8px;
  border-radius: 20px;
  transform: translateX(-50%);
}

.dock-item {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 13px;
  background: transparent;
  transition: transform 160ms ease, background 160ms ease;
}

.dock-item:hover {
  transform: translateY(-5px) scale(1.08);
}

.dock-item.running::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.app-icon {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  font-size: 0;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -16px 26px rgba(0, 0, 0, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.app-icon::after {
  content: attr(data-symbol);
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72%;
  height: 72%;
  border-radius: 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

.icon-safari::after,
.icon-photos::after,
.icon-maps::after,
.icon-findmy::after {
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(20, 42, 72, 0.86);
}

.icon-notes::after,
.icon-reminders::after,
.icon-textedit::after,
.icon-clock::after {
  color: rgba(22, 26, 36, 0.86);
  text-shadow: none;
}

.icon-finder { background: linear-gradient(135deg, #67d1ff, #356cff); }
.icon-safari { background: conic-gradient(from 20deg, #ff4f7b, #4ac8ff, #4cf6b7, #ffd35f, #ff4f7b); }
.icon-mail { background: linear-gradient(135deg, #4fc3ff, #2451f5); }
.icon-messages { background: linear-gradient(135deg, #82fb72, #10b85a); }
.icon-facetime { background: linear-gradient(135deg, #72f08b, #02a15d); }
.icon-calendar { background: linear-gradient(180deg, #fff 0 34%, #f34444 34%); color: #111; }
.icon-photos { background: conic-gradient(#ff4f64, #ffb14f, #fff45c, #56e67a, #4ec9ff, #9967ff, #ff4f64); }
.icon-music { background: linear-gradient(135deg, #ff4f8b, #a952ff); }
.icon-tv { background: linear-gradient(135deg, #30394d, #05070b); }
.icon-podcasts { background: linear-gradient(135deg, #d47aff, #7d36ff); }
.icon-news { background: linear-gradient(135deg, #ff6262, #b50021); }
.icon-stocks { background: linear-gradient(135deg, #222, #050505); }
.icon-weather { background: linear-gradient(135deg, #57d8ff, #2c6dff); }
.icon-maps { background: linear-gradient(135deg, #60d47b, #f3ce52 50%, #4ca4ff); }
.icon-notes { background: linear-gradient(180deg, #ffe66d 0 30%, #fff7bd 30%); color: #222; }
.icon-reminders { background: linear-gradient(135deg, #fff, #d8e6ff); color: #336; }
.icon-contacts { background: linear-gradient(135deg, #b97844, #f0c493); }
.icon-clock { background: radial-gradient(circle, #fff 0 58%, #111 59%); color: #111; }
.icon-calculator { background: linear-gradient(135deg, #535a66, #222832); }
.icon-settings { background: linear-gradient(135deg, #ccd3db, #6e7887); }
.icon-appstore { background: linear-gradient(135deg, #6bddff, #2270ff); }
.icon-terminal { background: linear-gradient(135deg, #20252b, #050607); }
.icon-preview { background: linear-gradient(135deg, #b8f1ff, #5a78ff); }
.icon-textedit { background: linear-gradient(135deg, #f8fafc, #98b8ff); color: #223; }
.icon-books { background: linear-gradient(135deg, #ffb23d, #f27521); }
.icon-freeform { background: linear-gradient(135deg, #fff, #d7e6ff); color: #111; }
.icon-home { background: linear-gradient(135deg, #ffce6c, #ff745f); }
.icon-voice { background: linear-gradient(135deg, #ff5a79, #732eff); }
.icon-shortcuts { background: linear-gradient(135deg, #5076ff, #c45cff); }
.icon-passwords { background: linear-gradient(135deg, #4753ff, #59d7ff); }
.icon-journal { background: linear-gradient(135deg, #222638, #845cff); }
.icon-findmy { background: radial-gradient(circle, #39e06f 0 28%, #ffffff 29% 41%, #31b7ff 42%); }
.icon-games { background: linear-gradient(135deg, #ff6a88, #7d5cff); }
.icon-launchpad { background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.15)); }

.popover,
.control-center,
.spotlight {
  position: fixed;
  z-index: 9000;
  border-radius: 24px;
  padding: 10px;
}

.popover {
  top: 54px;
  left: 16px;
  width: 230px;
}

.popover button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  background: transparent;
}

.popover button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.control-center {
  top: 54px;
  right: 14px;
  width: 330px;
}

.cc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-tile {
  min-height: 74px;
  padding: 12px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
}

.cc-tile strong,
.cc-tile span {
  display: block;
}

.cc-tile span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cc-tile.active {
  background: rgba(123, 215, 255, 0.24);
}

.slider-label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.wide-button {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
}

.spotlight {
  top: 15vh;
  left: 50%;
  width: min(720px, calc(100vw - 32px));
  padding: 14px;
  transform: translateX(-50%);
}

.spotlight-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.spotlight-search input {
  flex: 1;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.spotlight-results {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-height: 46vh;
  margin-top: 10px;
  overflow: auto;
}

.result-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: transparent;
}

.result-row:hover,
.result-row.selected {
  background: rgba(255, 255, 255, 0.14);
}

.result-row .app-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
}

.launchpad {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  padding: 72px min(7vw, 92px) 112px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
    rgba(4, 8, 18, 0.58);
  backdrop-filter: blur(52px) saturate(1.4);
  -webkit-backdrop-filter: blur(52px) saturate(1.4);
}

.launchpad h1 {
  display: none;
}

.launchpad-close {
  position: fixed;
  top: 56px;
  right: 26px;
  z-index: 1;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}

.launchpad-search {
  width: min(320px, 90vw);
  height: 30px;
  padding: 0 18px;
  border-radius: 999px;
  text-align: center;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 24px 30px;
  width: min(930px, 100%);
  margin-top: 46px;
  overflow: auto;
}

.launchpad-app {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 20px;
  background: transparent;
}

.launchpad-app .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.launchpad-app:hover {
  background: rgba(255, 255, 255, 0.11);
}

.launchpad-app span:last-child {
  font-size: 12px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.app-shell {
  display: grid;
  height: 100%;
  min-height: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(180px, 250px) 1fr;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.sidebar,
.pane,
.card,
.toolbar,
.list-row,
.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.sidebar,
.pane {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar button,
.list-row,
.card-button {
  width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  text-align: left;
  background: transparent;
  font-size: 13px;
}

.sidebar button:hover,
.sidebar button.active,
.list-row:hover,
.list-row.active,
.card-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 10px;
}

.toolbar input,
.toolbar select {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
}

.toolbar .grow {
  flex: 1;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.glass-card {
  padding: 14px;
}

.card h2,
.card h3,
.pane h2,
.pane h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
}

.tiny {
  color: var(--muted);
  font-size: 12px;
}

.metric {
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 820;
  letter-spacing: -0.07em;
}

.hero-card {
  min-height: 190px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.38), transparent 28%),
    linear-gradient(135deg, rgba(123, 215, 255, 0.28), rgba(211, 157, 255, 0.18)),
    rgba(255, 255, 255, 0.08);
}

.finder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 10px;
}

.finder-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
}

.finder-item span:last-child {
  display: block;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-item:hover {
  background: rgba(255, 255, 255, 0.13);
}

.finder-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 38px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 35%),
    linear-gradient(135deg, rgba(88, 174, 255, .92), rgba(42, 105, 228, .9));
  font-size: 10px;
  font-weight: 800;
}

.message-bubble {
  width: fit-content;
  max-width: 78%;
  margin: 8px 0;
  padding: 10px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
}

.message-bubble.me {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(69, 201, 255, 0.9), rgba(49, 109, 255, 0.9));
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day-cell {
  min-height: 78px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.day-cell.today {
  box-shadow: inset 0 0 0 2px rgba(123, 215, 255, 0.8);
}

.event-pill {
  display: block;
  margin-top: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(123, 215, 255, 0.24);
  font-size: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.photo-tile {
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--photo-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calc {
  display: grid;
  gap: 10px;
  max-width: 340px;
  margin: auto;
}

.calc-display {
  min-height: 80px;
  padding: 18px;
  border-radius: 22px;
  text-align: right;
  font-size: 40px;
  background: rgba(0, 0, 0, 0.18);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.calc-grid button {
  min-height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.calc-grid button.op {
  background: rgba(255, 181, 74, 0.78);
}

.terminal {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.42);
  overflow: hidden;
  font-family: "SF Mono", "Cascadia Mono", ui-monospace, monospace;
}

.terminal-log {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.terminal-input {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-input input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
}

.freeform-canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20px 20px, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(255, 255, 255, 0.06);
  touch-action: none;
}

.map {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(135deg, rgba(79, 197, 128, .32), rgba(73, 144, 255, .22));
}

.map-pin {
  position: absolute;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.26);
  transform: translate(-50%, -50%);
}

.media-player {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.album-art {
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.5), transparent 28%),
    linear-gradient(135deg, #ff4f8b, #7d59ff);
  box-shadow: 0 20px 50px rgba(0,0,0,.34);
}

.progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress, 35%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.switch {
  width: 52px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.switch::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch.on {
  background: rgba(123, 215, 255, 0.72);
}

.switch.on::after {
  transform: translateX(22px);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 112px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 30, 56, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
}

@media (max-width: 760px) {
  :root {
    --dock-height: 74px;
  }

  .menu-actions,
  .menu-chip {
    display: none;
  }

  .desktop-icons {
    display: none;
  }

  .app-window {
    left: 8px !important;
    right: 8px;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 104px);
  }

  .split,
  .media-player {
    grid-template-columns: 1fr;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .dock {
    gap: 4px;
    min-height: 64px;
    padding: 8px;
    overflow-x: auto;
  }

  .dock-item {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
  }

  .app-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 23px;
  }
}

@keyframes boot {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drift {
  from { transform: translate3d(-1%, -1%, 0) rotate(0deg); }
  to { transform: translate3d(1%, 1%, 0) rotate(2deg); }
}
