:root {
  color-scheme: dark;

  --ink: #ffffff;
  --muted: rgba(255,255,255,.66);
  --soft: rgba(255,255,255,.12);

  /* Global Liquid Glass theme */
  --glass-tint: 210, 220, 235;
  --glass-opacity: .055;
  --glass-blur: 10px;
  --glass-saturation: 185%;
  --glass-power: .72;

  /* Glass reflections */
  --glass-rim: rgba(255,255,255,.48);
  --glass-highlight: rgba(255,255,255,.24);
  --glass-shadow: rgba(0,0,0,.24);

  /* Interface */
  --curve: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.22,1.2,.36,1);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: #555;
  font-family: "DM Sans", sans-serif;
  user-select: none;
}

button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

#wallpaperCanvas, .vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#wallpaperCanvas { z-index: 0; }
.vignette {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 35%, transparent 35%, rgba(0,0,0,.16) 100%),
    linear-gradient(90deg, rgba(255,255,255,.05), transparent 28%, rgba(0,0,0,.07));
}

.glass-panel {
  position: relative;
  isolation: isolate;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.24),
      rgba(255,255,255,.035) 45%,
      rgba(var(--glass-tint),.08)
    ),
    rgba(var(--glass-tint),var(--glass-opacity));

  border: 1px solid var(--glass-rim);

  box-shadow:
    0 18px 48px var(--glass-shadow),
    inset 0 1.5px 1px rgba(255,255,255,.65),
    inset 1px 0 1px rgba(255,255,255,.18),
    inset 0 -1px 2px rgba(0,0,0,.16);

  -webkit-backdrop-filter:
    blur(var(--glass-blur)) saturate(var(--glass-saturation));

  backdrop-filter:
    blur(var(--glass-blur)) saturate(var(--glass-saturation));

  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    backdrop-filter .3s ease;
}

.glass-card {
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.20),
      rgba(255,255,255,.035)
    ),
    rgba(var(--glass-tint),calc(var(--glass-opacity) * .8));

  border: 1px solid rgba(255,255,255,.30);

  box-shadow:
    inset 0 1px rgba(255,255,255,.48),
    0 8px 20px rgba(0,0,0,.16);

  -webkit-backdrop-filter:
    blur(var(--glass-blur)) saturate(var(--glass-saturation));

  backdrop-filter:
    blur(var(--glass-blur)) saturate(var(--glass-saturation));

  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

/* Segmented top bar */
.topbar {
  position: fixed;
  z-index: 10001;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.top-island {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  color: #fff;
}

button.top-island, .top-action {
  cursor: pointer;
}

.brand-island {
  border: 1px solid var(--rim);
  font-weight: 800;
  letter-spacing: .02em;
  background-color: rgba(255,255,255,.08);
}

.comet-mark {
  font-size: 17px;
  text-shadow: 0 0 12px rgba(255,255,255,.8);
}

.tiny-chevron { color: var(--muted); font-size: 14px; }
.date-island { font-size: 12px; font-weight: 600; }
.status-dot, .live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f7f7f7;
  box-shadow: 0 0 10px rgba(255,255,255,.8);
}
.island-divider {
  height: 17px;
  width: 1px;
  background: rgba(255,255,255,.3);
}
.controls-island { gap: 15px; }
.connection-icon, .volume-icon { color: rgba(255,255,255,.85); }

.top-action {
  border: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  transition: background .2s ease, transform .2s ease;
}
.top-action:hover { background: rgba(255,255,255,.25); }
.settings-action { font-size: 16px; }

/* Desktop layout */
.desktop-shell {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 76px 18px 18px;
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
  gap: 18px;
}

/* Widget sidebar */
.widget-sidebar {
  position: relative;
  z-index: 5;
  min-height: 0;
  padding: 18px 14px 14px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform .5s var(--curve), opacity .35s ease;
}

.sidebar-heading, .widget-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eyebrow {
  display: block;
  color: rgba(255,255,255,.56);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

.sidebar-heading h2 {
  margin: 4px 0 0;
  font: 700 19px Manrope, sans-serif;
  letter-spacing: -.04em;
}

.live-indicator { width: 6px; height: 6px; }

.clock-widget {
  padding: 13px 10px 10px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(155deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px rgba(255,255,255,.24);
}

.clock-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: rgba(255,255,255,.86);
  font-size: 10px;
  font-weight: 600;
}

.weather-label { color: rgba(255,255,255,.72); }

.analog-clock {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 12px auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.31), transparent 55%),
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(0,0,0,.08));
  border: 1px solid rgba(255,255,255,.64);
  box-shadow:
    0 8px 20px rgba(0,0,0,.18),
    inset 0 1px 2px rgba(255,255,255,.86),
    inset 0 -3px 7px rgba(0,0,0,.2);
}

.clock-ticks, .clock-numbers { position: absolute; inset: 0; }
.clock-tick {
  position: absolute;
  left: calc(50% - 1px);
  top: 7px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,.55);
  transform-origin: 50% 53px;
}
.clock-tick.major {
  top: 6px;
  height: 8px;
  width: 2px;
  background: rgba(255,255,255,.95);
}
.clock-number {
  position: absolute;
  transform: translate(-50%,-50%);
  color: rgba(255,255,255,.92);
  font: 700 8px Manrope, sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 99px;
  transform-origin: 50% 100%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.hour-hand { width: 3px; height: 27px; margin-left: -1.5px; }
.minute-hand { width: 2px; height: 39px; margin-left: -1px; }
.second-hand {
  width: 1px;
  height: 43px;
  margin-left: -.5px;
  background: rgba(255,255,255,.88);
}
.clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 5px rgba(255,255,255,.7);
}
.digital-time {
  font: 600 12px Manrope, sans-serif;
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
}

.sidebar-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
}

.widget-list-heading { align-items: baseline; }
.tray-hint { color: rgba(255,255,255,.48); font-size: 9px; }

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

.tray-card {
  min-height: 50px;
  padding: 8px 9px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 27px 1fr 13px;
  align-items: center;
  gap: 8px;
  color: white;
  transition: transform .2s var(--spring), border-color .2s ease, background .2s ease;
}
.tray-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.tray-card strong { font-size: 11px; font-weight: 600; }
.tray-card small { color: rgba(255,255,255,.55); font-size: 9px; }
.tray-icon { font-size: 15px; text-align: center; }
.drag-grip { color: rgba(255,255,255,.42); font-size: 15px; }

.editing .tray-card {
  cursor: grab;
  border-color: rgba(255,255,255,.56);
  animation: cardFloat 1.8s ease-in-out infinite alternate;
}
.editing .tray-card:active { cursor: grabbing; }
.editing .tray-card:hover { transform: translateY(-2px) scale(1.02); }
@keyframes cardFloat { to { box-shadow: inset 0 1px rgba(255,255,255,.5), 0 10px 24px rgba(0,0,0,.23); } }

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.48);
  font-size: 9px;
}
.footer-orb {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.8);
  box-shadow: 0 0 8px rgba(255,255,255,.8);
}

/* Workspace and desktop items */
.workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.editing .workspace {
  border: 1px dashed rgba(255,255,255,.5);
  box-shadow: inset 0 0 55px rgba(255,255,255,.06);
}
.desktop-icons {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.desktop-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  pointer-events: auto;
  width: 78px;
  min-height: 82px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255,255,255,.92);
  font-size: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  cursor: grab;
  touch-action: none;
}
.desktop-icon:active,
.desktop-icon.desktop-icon-dragging { cursor: grabbing; }
.desktop-icon.desktop-icon-dragging { z-index: 5; }
.desktop-icon:nth-child(2) { top: 118px; }
.desktop-icon:hover {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.11);
}
.folder-icon svg { width: 45px; height: 38px; filter: drop-shadow(0 5px 8px rgba(0,0,0,.28)); }
.bin-icon svg { width: 31px; height: 39px; filter: drop-shadow(0 5px 8px rgba(0,0,0,.28)); }

.welcome-block {
  position: absolute;
  top: 23%;
  left: 50%;
  width: min(680px, 85%);
  text-align: center;
  transform: translateX(-50%);
}
.welcome-kicker {
  margin: 0 0 13px;
  color: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .34em;
}
.welcome-block h1 {
  margin: 0;
  color: rgba(22,22,22,.8);
  font: 800 clamp(54px,7vw,94px) Manrope, sans-serif;
  letter-spacing: -.075em;
  line-height: .98;
  text-shadow: 0 3px 25px rgba(255,255,255,.28);
}
.welcome-subtitle {
  margin: 12px 0 0;
  color: rgba(255,255,255,.84);
  font: 600 12px Manrope, sans-serif;
  letter-spacing: .72em;
  text-transform: uppercase;
  text-shadow: 0 2px 9px rgba(0,0,0,.35);
}
.day-label {
  display: inline-flex;
  margin-top: 21px;
  padding: 7px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.04));
  box-shadow: inset 0 1px rgba(255,255,255,.6), 0 6px 18px rgba(0,0,0,.15);
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
}

.drop-prompt {
  position: absolute;
  left: 50%;
  top: 57%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.0);
  font-size: 11px;
  transform: translate(-50%, -50%);
  transition: color .2s ease;
  pointer-events: none;
}
.editing .drop-prompt { color: rgba(255,255,255,.58); }
.drop-prompt-mark { font-size: 20px; }

.placed-widgets { position: absolute; inset: 0; pointer-events: none; }
.placed-widget {
  position: absolute;
  z-index: 4;
  width: 205px;
  min-height: 112px;
  padding: 14px;
  border-radius: 20px;
  color: #fff;
  pointer-events: auto;
}
.placed-widget h3 {
  margin: 0 0 9px;
  font: 700 13px Manrope, sans-serif;
}
.placed-widget p { margin: 5px 0; color: rgba(255,255,255,.74); font-size: 11px; }
.placed-widget .widget-close {
  position: absolute;
  top: 7px;
  right: 9px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 17px;
}
.editing .placed-widget { cursor: grab; }
.editing .placed-widget:active { cursor: grabbing; }

.task-line { display: flex; gap: 7px; align-items: center; }
.task-dot { width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; }
.mini-chart { width: 100%; height: 38px; margin-top: 7px; }

/* Dock and Comet AI field */
.dock-area {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 24px;
  width: min(760px, 90%);
  transform: translateX(-50%);
}
.dock {
  min-height: 72px;
  padding: 9px 12px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.dock-apps { display: flex; align-items: center; gap: 8px; }
.dock-app {
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
  box-shadow: inset 0 1px rgba(255,255,255,.72), 0 5px 12px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform .25s var(--spring);
}
.dock-app:hover { transform: translateY(-6px) scale(1.06); }
.dock-app > span { font-size: 17px; line-height: 1; }
.dock-app small { font-size: 7px; color: rgba(255,255,255,.82); }
.app-music > span { color: #f3d8e6; }
.app-gallery > span { color: #d9e6ff; }
.app-notes > span { color: #fff1bd; }
.app-browser > span { color: #d7f3ff; }

.comet-search {
  flex: 1;
  min-width: 120px;
  height: 42px;
  padding: 0 10px 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.42);
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.55), inset 0 -1px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-star { color: rgba(255,255,255,.8); font-size: 14px; }
.comet-search input {
  width: 100%;
  min-width: 0;
  color: white;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}
.comet-search input::placeholder { color: rgba(255,255,255,.58); }
.comet-search button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  cursor: pointer;
}
.home-indicator {
  width: 150px;
  height: 4px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* Settings */
.modal-backdrop {
  position: fixed;
  z-index: 10080;
  inset: 0;
  padding: 20px;
  background: rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.modal-backdrop[hidden] { display: none; }
.settings-modal {
  width: min(430px, 100%);
  padding: 22px;
  border-radius: 28px;
  animation: modalIn .3s var(--spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.settings-header h2 {
  margin: 4px 0 0;
  font: 700 22px Manrope, sans-serif;
}
.close-settings {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  font-size: 21px;
}
.setting-row {
  min-height: 63px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.setting-row > span { display: flex; flex-direction: column; gap: 4px; }
.setting-row strong { font-size: 12px; }
.setting-row small, .settings-note { color: rgba(255,255,255,.56); font-size: 10px; }
.setting-row input[type="range"] { width: 130px; accent-color: white; }
.setting-row select {
  max-width: 145px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  color: white;
  background: rgba(35,35,35,.55);
  font-size: 11px;
}
.settings-note { margin: 15px 0 0; }

/* Toast feedback */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 120px;
  max-width: min(420px, 90vw);
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  background: rgba(45,45,45,.55);
  color: white;
  font-size: 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

body.midnight {
  --glass-fill: rgba(15,18,25,.16);
}
body.midnight .vignette {
  background: radial-gradient(ellipse at 50% 35%, transparent 25%, rgba(0,0,0,.45) 100%);
}

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: .01ms !important;
}

@media (max-width: 850px) {
  .desktop-shell {
    grid-template-columns: 190px minmax(0,1fr);
    gap: 10px;
    padding: 70px 10px 10px;
  }
  .widget-sidebar { padding: 14px 10px; }
  .dock-area { width: 94%; bottom: 14px; }
  .dock { gap: 9px; }
  .dock-app { width: 41px; height: 44px; }
  .welcome-subtitle { letter-spacing: .42em; }
}

@media (max-width: 620px) {
  .topbar { top: 9px; left: 9px; right: 9px; gap: 5px; }
  .top-island { min-height: 37px; padding: 0 9px; gap: 7px; }
  .date-island { font-size: 9px; }
  .connection-icon, .volume-icon { display: none; }
  .desktop-shell {
    display: block;
    padding: 60px 8px 8px;
  }
  .widget-sidebar {
    position: absolute;
    top: 68px;
    left: 8px;
    bottom: 100px;
    width: min(225px, 78vw);
    transform: translateX(calc(-100% - 15px));
  }
  .editing .widget-sidebar { transform: translateX(0); }
  .workspace { height: 100%; }
  .welcome-block { top: 25%; }
  .welcome-kicker { font-size: 8px; }
  .welcome-subtitle { font-size: 9px; letter-spacing: .28em; }
  .desktop-icons { top: 12px; right: 8px; }
  .desktop-icon { width: 65px; font-size: 9px; }
  .dock-area { width: 96%; bottom: 12px; }
  .dock { padding: 7px; gap: 7px; min-height: 62px; }
  .dock-apps { gap: 4px; }
  .dock-app { width: 36px; height: 42px; border-radius: 12px; }
  .dock-app small { display: none; }
  .comet-search { min-width: 95px; height: 38px; }
  .settings-modal { padding: 18px; }
}

/* Larger, cleaner dock icons */
.dock { gap: 20px; }
.dock-app {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 17px;
  color: #fff;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease;
}
.dock-app svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock-app:hover {
  transform: translateY(-7px) scale(1.08);
  box-shadow: 0 12px 25px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.8);
}
.dock-app:active { transform: translateY(-2px) scale(.96); }

/* Smooth in-page app windows */
.app-window-backdrop {
  position: fixed;
  z-index: 45;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  /* Keep this overlay clear: a backdrop-filter here blocks the window
     from sampling the actual desktop wallpaper behind it. */
  background: rgba(5,10,20,.13);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.app-window-backdrop[hidden] { display: none; }
.app-window {
  width: min(560px, 94vw);
  min-height: 310px;
  max-height: 78vh;
  overflow: hidden;
  border-radius: 24px;
  animation: windowOpen .38s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes windowOpen {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-window-header {
  height: 48px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.app-window {
  translate: var(--window-drag-x, 0px) var(--window-drag-y, 0px);
}
.app-window-header.is-dragging { cursor: grabbing; }
.app-window-header h2 {
  margin: 0;
  font: 600 12px Manrope, sans-serif;
}
.app-window-header > button {
  justify-self: end;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.window-lights { display: flex; gap: 5px; }
.window-lights i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.72); }
.window-lights i:nth-child(2) { opacity: .65; }
.window-lights i:nth-child(3) { opacity: .4; }
.app-window-content { padding: 22px; overflow: auto; max-height: calc(78vh - 48px); }
.app-empty-state { min-height: 210px; display: grid; justify-items: center; align-content: center; gap: 9px; text-align: center; }
.app-empty-state h3, .browser-form h3 { margin: 0; font: 700 18px Manrope, sans-serif; }
.app-empty-state p, .browser-form p { margin: 0; color: rgba(255,255,255,.65); font-size: 12px; }
.app-large-symbol { font-size: 38px; color: rgba(255,255,255,.85); }
.app-window input[type="file"] { max-width: 100%; color: rgba(255,255,255,.75); font-size: 11px; }
.app-window audio { width: min(360px, 100%); margin-top: 8px; }
.gallery-preview { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; }
.notes-area {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px;
  color: white;
  background: rgba(0,0,0,.12);
  font: 13px/1.6 "DM Sans", sans-serif;
}
.browser-form { display: grid; gap: 12px; max-width: 390px; margin: 30px auto; }
.browser-form input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  background: rgba(0,0,0,.15);
  color: white;
}
.browser-form button {
  justify-self: start;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 11px;
  background: rgba(255,255,255,.17);
  color: white;
  cursor: pointer;
}
.files-view { display: grid; gap: 9px; }
.files-path, .files-note { color: rgba(255,255,255,.58); font-size: 11px; }
.file-row {
  padding: 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: white;
  text-align: left;
}

/* Dock position and single-row layout fix */
.workspace {
  position: relative;
}

.dock-area {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 24px !important;
  left: 50% !important;
  width: min(760px, calc(100% - 36px)) !important;
  transform: translateX(-50%) !important;
  z-index: 10;
}

.dock {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
}

.dock-apps {
  display: flex !important;
  flex: 0 0 auto;
  flex-direction: row !important;
}

.comet-search {
  display: flex !important;
  flex: 1 1 auto;
  width: auto;
  min-width: 150px;
  margin: 0;
}

@media (max-width: 620px) {
  .dock-area {
    bottom: 12px !important;
    width: calc(100% - 16px) !important;
  }
}

.comet-system-menu {
  position: fixed;
  top: 75px;
  left: 20px;
  width: 230px;
  padding: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 18px;
}

.system-menu-heading {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.system-menu-heading small {
  opacity: .6;
}

.comet-system-menu button {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
}

.comet-system-menu button:hover {
  background: rgba(255,255,255,.2);
}

.shutdown-option {
  color: #e66b6b !important;
}

.sleeping::after,
.shutdown-screen::after {
  content: "Wippix Desktop";
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #10131b;
  color: white;
  font-size: 32px;
}

.sleeping::after {
  content: "Sleeping...";
}


/* ==========================================
   DESKTOP — LIQUID GLASS MATERIAL SYSTEM
========================================== */

:root {
  --glass-tint: 210, 225, 245;
  --glass-opacity: .055;
  --glass-blur: 9px;
  --glass-saturation: 190%;
  --glass-rim: rgba(255,255,255,.30);
  --glass-shadow: rgba(0,0,0,.20);
}

/* Main floating glass surfaces */
.glass-panel,
.widget-sidebar,
.dock,
.settings-modal,
.app-window,
.comet-system-menu {
  isolation: auto;

  background:
    radial-gradient(
      130% 150% at 8% 0%,
      rgba(255,255,255,.19),
      transparent 48%
    ),
    linear-gradient(
      155deg,
      rgba(255,255,255,.085),
      rgba(255,255,255,.018) 55%,
      rgba(255,255,255,.045)
    ),
    rgba(var(--glass-tint),.035);

  border: 1px solid var(--glass-rim);

  box-shadow:
    0 16px 42px var(--glass-shadow),
    inset 0 1px 1px rgba(255,255,255,.48),
    inset 0 -1px 1px rgba(255,255,255,.09),
    inset 1px 0 1px rgba(255,255,255,.12);

  -webkit-backdrop-filter:
    blur(var(--glass-blur))
    saturate(var(--glass-saturation));

  backdrop-filter:
    blur(var(--glass-blur))
    saturate(var(--glass-saturation));
}

/* Smaller individual glass elements */
.glass-card,
.clock-widget,
.placed-widget,
.tray-card,
.dock-app,
.comet-search {
  background:
    radial-gradient(
      120% 140% at 12% 0%,
      rgba(255,255,255,.21),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.075),
      rgba(255,255,255,.018) 60%,
      rgba(255,255,255,.045)
    ),
    rgba(var(--glass-tint),.025);

  border: 1px solid rgba(255,255,255,.27);

  box-shadow:
    0 7px 22px rgba(0,0,0,.13),
    inset 0 1px 1px rgba(255,255,255,.48),
    inset 0 -1px 1px rgba(255,255,255,.08);

  -webkit-backdrop-filter:
    blur(var(--glass-blur))
    saturate(var(--glass-saturation));

  backdrop-filter:
    blur(var(--glass-blur))
    saturate(var(--glass-saturation));
}

/* Top bar: individual floating glass islands */
.top-island {
  background:
    radial-gradient(
      120% 150% at 15% 0%,
      rgba(255,255,255,.23),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.025)
    );

  border: 1px solid rgba(255,255,255,.34);

  box-shadow:
    0 7px 24px rgba(0,0,0,.14),
    inset 0 1px 1px rgba(255,255,255,.52),
    inset 0 -1px 1px rgba(255,255,255,.08);

  -webkit-backdrop-filter: blur(12px) saturate(190%);
  backdrop-filter: blur(12px) saturate(190%);
}

/* Correct the brand island's border variable */
.brand-island {
  border-color: var(--glass-rim);
  background-color: transparent;
}

/* App window header should feel connected to its glass body */
.app-window-header {
  background: rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

/* Smooth theme transitions */
.glass-panel,
.glass-card,
.widget-sidebar,
.dock,
.settings-modal,
.app-window,
.comet-system-menu,
.clock-widget,
.placed-widget,
.tray-card,
.dock-app,
.comet-search,
.top-island {
  transition:
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    backdrop-filter .3s ease;
}

/* =====================================
   DESKTOP — LIQUID GLASS DOCK PROTOTYPE
===================================== */

.dock {
  position: relative;
  isolation: isolate;
  overflow: visible;

  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Actual translucent glass surface */
.dock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;

  background:
    radial-gradient(
      ellipse at 18% 0%,
      rgba(255,255,255,.30),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 100%,
      rgba(150,190,255,.09),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,.16),
      rgba(255,255,255,.045) 45%,
      rgba(255,255,255,.085)
    );

  border: 1px solid rgba(255,255,255,.38);

  -webkit-backdrop-filter: blur(22px) saturate(200%);
  backdrop-filter: blur(22px) saturate(200%);

  box-shadow:
    0 18px 45px rgba(0,0,0,.22),
    0 3px 10px rgba(0,0,0,.10),
    inset 0 1px 1px rgba(255,255,255,.65),
    inset 0 -1px 1px rgba(255,255,255,.13);
}

/* Optical reflection */
.dock::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      transparent 15%,
      rgba(255,255,255,.12) 32%,
      transparent 48%
    );

  opacity: .65;
}

/* Keep dock controls above the glass */
.dock > * {
  position: relative;
  z-index: 1;
}

/* Smooth glass interaction */
.dock::before {
  transition:
    background .3s ease,
    box-shadow .3s ease,
    backdrop-filter .3s ease;
}

.dock:hover::before {
  box-shadow:
    0 22px 55px rgba(0,0,0,.25),
    inset 0 1px 1px rgba(255,255,255,.72),
    inset 0 -1px 1px rgba(255,255,255,.16);
}


/* Credits roll-down panels */
.settings-credits { margin-top: 12px; }
.credits-toggle {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  color: inherit;
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.credits-toggle:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.35); }
.credits-toggle > span, .menu-chevron { opacity: .65; transition: transform .28s ease; }
.credits-toggle[aria-expanded="true"] > span,
.comet-system-menu [data-action="credits"][aria-expanded="true"] .menu-chevron { transform: rotate(180deg); }
.credits-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: max-height .42s cubic-bezier(.2,.8,.2,1), opacity .28s ease, transform .28s ease;
}
.credits-panel.is-open { max-height: 340px; opacity: 1; transform: translateY(0); }
.credits-content {
  display: grid;
  gap: 10px;
  padding: 12px 10px 5px;
  color: rgba(255,255,255,.82);
  font-size: 10px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.credits-content p { margin: 0; }
.credits-content strong { color: #fff; font-weight: 700; }
.credits-content p span { color: rgba(255,255,255,.5); }
.credits-content a { color: #b9dcff; text-decoration: none; }
.credits-content a:hover { text-decoration: underline; }
.comet-system-menu .menu-credits-panel { margin: -3px 3px 4px; border-top: 1px solid rgba(255,255,255,.12); }
.comet-system-menu .credits-content { padding: 11px 8px 8px; font-size: 9px; }
.settings-modal {
  width: min(480px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(235,245,255,.72) rgba(255,255,255,.08);
}
.settings-modal::-webkit-scrollbar { width: 11px; }
.settings-modal::-webkit-scrollbar-track {
  margin: 18px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.settings-modal::-webkit-scrollbar-thumb {
  min-height: 38px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(235,245,255,.72);
  background-clip: padding-box;
}
.settings-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.95);
  background-clip: padding-box;
}
.comet-system-menu {
  z-index: 10050;
  pointer-events: auto;
}
#brandButton { position: relative; z-index: 10051; pointer-events: auto; cursor: pointer; }


/* Full-screen Minecraft-style credits page */
.credits-screen {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(42,61,91,.52), transparent 62%),
    rgba(5,8,15,.94);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(34px);
  transition: opacity .42s ease, transform .52s cubic-bezier(.2,.8,.2,1), visibility .42s;
}
.credits-screen.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.credits-screen.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(28px);
}
.credits-screen-inner {
  position: relative;
  width: min(680px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(34px, 7vh, 72px) 24px 34px;
  text-align: center;
  animation: creditsContentRise .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes creditsContentRise {
  from { opacity: 0; transform: translateY(42px); }
  to { opacity: 1; transform: translateY(0); }
}
.credits-screen.is-open .credits-screen-inner {
  animation: creditsContentRise .7s cubic-bezier(.2,.8,.2,1) both;
}
.credits-screen-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.09);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.credits-screen-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.credits-screen-kicker {
  color: rgba(211,228,255,.62);
  font: 700 10px Manrope, sans-serif;
  letter-spacing: .42em;
}
.credits-screen-inner h1 {
  margin: 12px 0 18px;
  font: 800 clamp(34px, 7vw, 58px) Manrope, sans-serif;
  letter-spacing: -.045em;
  text-shadow: 0 5px 32px rgba(137,183,255,.24);
}
.credits-screen-rule {
  width: 74px;
  height: 1px;
  margin: 0 auto 34px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
}
.credits-screen-content {
  display: grid;
  justify-items: center;
  gap: 27px;
  padding: 8px 0 30px;
}
.credits-screen-content p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font: 400 14px/1.8 "DM Sans", sans-serif;
  overflow-wrap: anywhere;
}
.credits-screen-content strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font: 700 11px Manrope, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.credits-screen-content p span {
  color: rgba(255,255,255,.48);
}
.credits-screen-content a {
  color: #b9dcff;
  text-decoration: none;
  transition: color .2s ease;
}
.credits-screen-content a:hover { color: #fff; text-decoration: underline; }
.credits-screen-footer {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.42);
  font: 500 10px Manrope, sans-serif;
  letter-spacing: .12em;
}
body.credits-open { overflow: hidden; }

@media (max-width: 620px) {
  .credits-screen-inner { padding: 64px 10px 26px; }
  .credits-screen-close { top: 14px; right: 14px; }
  .credits-screen-content p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .credits-screen, .credits-screen-inner, .credits-screen-close {
    animation: none;
    transition-duration: .01ms;
  }
}


/* Unified Liquid Glass dock surface */
.dock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(247,252,255,.46);
  background:
    radial-gradient(115% 145% at 12% -18%, rgba(255,255,255,.22), transparent 54%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.025) 58%, rgba(130,195,255,.07)),
    rgba(13,25,42,.22);
  box-shadow:
    0 22px 52px rgba(0,0,0,.30),
    inset 0 1.4px 0 rgba(255,255,255,.62),
    inset 0 -1px 0 rgba(0,0,0,.20),
    inset 1px 0 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(2px) saturate(1.2);
  backdrop-filter: blur(2px) saturate(1.2);
}
.dock > canvas.comet-optical-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dock > :not(canvas) {
  position: relative;
  z-index: 1;
}
.dock-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(248,252,255,.42);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.045) 60%, rgba(126,190,255,.10)),
    rgba(255,255,255,.045);
  box-shadow:
    0 7px 17px rgba(0,0,0,.19),
    inset 0 1px 1px rgba(255,255,255,.58),
    inset 0 -1px 1px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
}
.dock-app:hover {
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 11px 23px rgba(0,0,0,.24), inset 0 1px 1px rgba(255,255,255,.76);
}
.settings-island svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wifi-symbol {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Compact animated Wi-Fi / Bluetooth status island */
.network-status-island {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  max-width: 100px;
  padding: 3px;
  overflow: hidden;
  transition:
    max-width .36s cubic-bezier(.2,.8,.2,1),
    padding .36s cubic-bezier(.2,.8,.2,1),
    opacity .24s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}
.network-status-icon {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  color: rgba(255,255,255,.96);
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition:
    flex-basis .32s cubic-bezier(.2,.8,.2,1),
    width .32s cubic-bezier(.2,.8,.2,1),
    padding .32s ease,
    opacity .2s ease,
    transform .32s cubic-bezier(.2,.8,.2,1),
    background .2s ease;
}
.network-status-icon:hover { background: rgba(255,255,255,.16); }
.network-status-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 19px;
}
.network-status-icon.is-disabled {
  flex-basis: 0;
  width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  transform: scale(.55);
  pointer-events: none;
}
.network-status-island.is-empty {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}


/* Start Menu */
.start-menu {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 9998;
  width: min(430px, calc(100vw - 28px));
  padding: 22px;
  border-radius: 25px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px) scale(.97);
  transform-origin: center bottom;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.85,.25,1), visibility .2s ease;
}
.start-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.start-menu.is-closing {
  opacity: 0;
  visibility: visible;
  transform: translate(-50%, 10px) scale(.98);
  pointer-events: none;
}
.start-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.start-menu-eyebrow {
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}
.start-menu-heading h2 {
  margin: 5px 0 0;
  color: #fff;
  font: 700 23px Manrope, sans-serif;
}
.start-menu-orb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 15px;
  background: linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.06));
  color: #fff;
  font-size: 21px;
}
.start-menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.75);
}
.start-menu-search > span { font-size: 21px; }
.start-menu-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}
.start-menu-search input::placeholder { color: rgba(255,255,255,.58); }
.start-menu-section-title {
  display: flex;
  justify-content: space-between;
  margin: 20px 2px 11px;
  color: #fff;
  font-size: 12px;
}
.start-menu-section-title span { color: rgba(255,255,255,.52); }
.start-menu-apps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
}
.start-menu-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 92px;
  padding: 10px 5px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255,255,255,.055);
  color: #fff;
  font: 500 11px "DM Sans",sans-serif;
  cursor: pointer;
}
.start-menu-app:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.13);
  transform: translateY(-2px);
}
.start-menu-app-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(255,255,255,.3),rgba(255,255,255,.08));
  box-shadow: inset 0 1px rgba(255,255,255,.35),0 5px 12px rgba(0,0,0,.14);
  color: #fff;
  font-size: 21px;
}
.start-menu-app-icon.files { color: #d9e9ff; }
.start-menu-app-icon.browser { color: #bdeaff; }
.start-menu-app-icon.gallery { color: #f6d6ff; }
.start-menu-app-icon.music { color: #ffd8e8; }
.start-menu-app-icon.notes { color: #fff0bb; }
.start-menu-app-icon.settings { color: #e1e7f0; }
.start-menu-app[hidden],.start-menu-empty[hidden] { display: none !important; }
.start-menu-empty {
  margin: 16px 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  text-align: center;
}
.start-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.72);
  font-size: 10px;
}
.start-menu-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.start-menu-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b6e5ff;
  box-shadow: 0 0 10px rgba(182,229,255,.65);
}
.start-menu-launcher svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
@media (max-width: 620px) {
  .start-menu {
    bottom: 98px;
    padding: 17px;
  }
  .start-menu-app { min-height: 82px; }
}


/* Launchpad-style Start Menu: centered, spacious, and clear of the dock. */
.start-menu {
  position: fixed;
  top: 46%;
  left: 50%;
  bottom: auto;
  z-index: 7;
  width: min(1080px, calc(100vw - 80px));
  height: min(700px, calc(100vh - 170px));
  min-height: 430px;
  padding: clamp(26px, 4vw, 54px);
  border-radius: 30px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -47%) scale(.965);
  transform-origin: center center;
  transition: opacity .24s ease, transform .34s cubic-bezier(.2,.85,.25,1), visibility .24s ease;
  overflow: hidden;
  color: #f7faff;
  background:
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.012) 48%,rgba(255,255,255,.035)),
    rgba(255,255,255,.035) !important;
  border: 1px solid rgba(248,252,255,.42) !important;
  box-shadow:
    0 28px 80px rgba(0,0,0,.38),
    inset 0 1px 1px rgba(255,255,255,.56),
    inset 0 -1px 1px rgba(0,0,0,.18) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.2) !important;
  backdrop-filter: blur(12px) saturate(1.2) !important;
}
.start-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.start-menu.is-closing {
  opacity: 0;
  visibility: visible;
  transform: translate(-50%, -48%) scale(.98);
  pointer-events: none;
}
.start-menu-heading { margin-bottom: 24px; }
.start-menu-heading h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.045em; }
.start-menu-search {
  max-width: 520px;
  height: 48px;
  margin: 0 auto;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.start-menu-section-title {
  max-width: 780px;
  margin: 30px auto 18px;
  font-size: 13px;
}
.start-menu-apps {
  max-width: 780px;
  margin: 0 auto;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: clamp(10px, 2vw, 20px);
}
.start-menu-app {
  min-height: 128px;
  gap: 13px;
  border-radius: 19px;
  background: rgba(255,255,255,.045);
  font-size: 12px;
}
.start-menu-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 27px;
}
.start-menu-empty { margin: 30px 0; }
.start-menu-footer {
  position: absolute !important;
  left: clamp(26px, 4vw, 54px);
  right: clamp(26px, 4vw, 54px);
  bottom: 22px;
  margin-top: 0;
}
@media (max-width: 900px) {
  .start-menu-apps { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 560px; }
  .start-menu-app { min-height: 104px; }
  .start-menu-app-icon { width: 48px; height: 48px; }
}
@media (max-width: 620px) {
  .start-menu {
    top: 44%;
    width: calc(100vw - 24px);
    height: min(650px, calc(100vh - 130px));
    min-height: 390px;
    padding: 20px 16px 64px;
    border-radius: 24px;
  }
  .start-menu-heading { margin-bottom: 18px; }
  .start-menu-heading h2 { font-size: 25px; }
  .start-menu-section-title { margin: 22px auto 12px; }
  .start-menu-apps { gap: 7px; }
  .start-menu-app { min-height: 88px; gap: 8px; font-size: 10px; }
  .start-menu-app-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
  .start-menu-footer { left: 16px; right: 16px; bottom: 16px; }
}


/* Refined macOS-inspired dock */
.dock-area {
  width: min(820px, calc(100% - 40px)) !important;
  bottom: 24px !important;
}
.dock {
  min-height: 88px;
  padding: 10px 16px;
  gap: 13px;
  overflow: visible !important;
  border-radius: 30px;
  -webkit-backdrop-filter: blur(20px) saturate(195%) !important;
  backdrop-filter: blur(20px) saturate(195%) !important;
}
.dock::before {
  -webkit-backdrop-filter: blur(24px) saturate(205%);
  backdrop-filter: blur(24px) saturate(205%);
}
.dock-apps { flex: 0 0 auto; align-items: center; gap: 9px; }
.dock-app {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0 !important;
  border-radius: 16px;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), filter .28s ease;
}
.dock-app::before { display: none !important; }
.dock-app svg {
  display: block;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.24));
  transition: filter .28s ease;
}
.dock-app:hover {
  transform: translateY(-9px) scale(1.1);
  border-color: transparent !important;
  box-shadow: none !important;
}
.dock-app:hover svg { filter: drop-shadow(0 9px 10px rgba(0,0,0,.3)) brightness(1.06); }
.dock-app:active { transform: translateY(-3px) scale(.97); }
.dock-divider {
  flex: 0 0 1px;
  height: 43px;
  margin: 0 2px;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 5px rgba(255,255,255,.12);
}
.comet-search {
  flex: 1 1 180px;
  min-width: 145px;
  max-width: 235px;
  height: 46px;
  border-color: rgba(255,255,255,.46);
  background: linear-gradient(145deg,rgba(255,255,255,.19),rgba(255,255,255,.045)),rgba(18,34,54,.18);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  backdrop-filter: blur(18px) saturate(185%);
}
@media (max-width: 850px) {
  .dock-area { width: calc(100% - 24px) !important; bottom: 14px !important; }
  .dock { min-height: 76px; padding: 8px 10px; gap: 9px; }
  .dock-app { flex-basis: 50px; width: 50px; height: 50px; }
  .dock-app svg { width: 50px; height: 50px; }
  .dock-apps { gap: 5px; }
  .comet-search { min-width: 115px; max-width: 190px; }
}
@media (max-width: 620px) {
  .dock-area { width: calc(100% - 16px) !important; bottom: 12px !important; }
  .dock { min-height: 66px; padding: 6px 7px; gap: 5px; border-radius: 23px; }
  .dock-app { flex-basis: 39px; width: 39px; height: 39px; }
  .dock-app svg { width: 39px; height: 39px; }
  .dock-apps { gap: 3px; }
  .dock-divider { height: 30px; margin: 0; }
  .comet-search { min-width: 82px; height: 38px; padding-left: 8px; gap: 5px; }
  .comet-search input { font-size: 9px; }
  .search-star { display: none; }
}


/* Dock sizing and native macOS icon assets */
.dock-area {
  width: max-content !important;
  max-width: calc(100% - 32px) !important;
}
.dock {
  width: max-content;
  max-width: 100%;
  gap: 12px;
}
.dock-app {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}
.dock-app img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.24));
  transition: filter .28s ease;
}
.dock-app:hover img {
  filter: drop-shadow(0 9px 10px rgba(0,0,0,.3)) brightness(1.06);
}
.comet-search {
  flex: 0 0 250px;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: 46px;
}
@media (max-width: 850px) {
  .dock-area { width: max-content !important; }
  .dock-app { flex-basis: 50px; width: 50px; height: 50px; }
  .dock-app img { width: 50px; height: 50px; }
  .comet-search { flex-basis: 190px; width: 190px; min-width: 190px; max-width: 190px; }
}
@media (max-width: 620px) {
  .dock-area { width: max-content !important; max-width: calc(100% - 16px) !important; }
  .dock { width: 100%; gap: 5px; }
  .dock-app { flex-basis: 39px; width: 39px; height: 39px; }
  .dock-app img { width: 39px; height: 39px; }
  .comet-search { flex: 1 1 110px; width: auto; min-width: 110px; max-width: 100%; }
}


/* Stable dock sizing: its glass canvas is an overlay, not part of the flex layout. */
.dock-area {
  left: 50%;
  bottom: 24px !important;
  width: max-content !important;
  max-width: calc(100vw - 32px) !important;
}
.dock {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 12px;
}
.dock-apps {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.dock-app {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  padding: 0;
}
.dock-app img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.comet-search {
  flex: 0 0 250px;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: 46px;
}
@media (max-width: 850px) {
  .dock-area { max-width: calc(100vw - 24px) !important; bottom: 14px !important; }
  .dock-app { flex-basis: 50px; width: 50px; height: 50px; }
  .dock-app img { width: 50px; height: 50px; }
  .comet-search {
    flex-basis: 190px;
    width: 190px;
    min-width: 190px;
    max-width: 190px;
  }
}
@media (max-width: 620px) {
  .dock-area { max-width: calc(100vw - 16px) !important; bottom: 12px !important; }
  .dock { gap: 5px; }
  .dock-app { flex-basis: 39px; width: 39px; height: 39px; }
  .dock-app img { width: 39px; height: 39px; }
  .comet-search {
    flex-basis: 110px;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }
}


/* Freely movable desktop shortcuts */
.desktop-icons {
  inset: 0;
  display: block;
  pointer-events: none;
}
.desktop-icon {
  position: absolute;
  right: auto;
  pointer-events: auto;
  cursor: grab;
  -webkit-user-drag: element;
}
.desktop-icon:nth-child(1) { top: 20px; right: 20px; }
.desktop-icon:nth-child(2) { top: 118px; right: 20px; }
.desktop-icon:active,
.desktop-icon.desktop-icon-dragging { cursor: grabbing; }

/* Desktop lock screen — based on Daniel's notebook layout. */
.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(69,155,255,.72), transparent 43%),
    radial-gradient(ellipse at 82% 78%, rgba(100,83,220,.48), transparent 48%),
    linear-gradient(145deg,#0a2b65 0%,#1252a0 48%,#091b48 100%);
  transition: opacity .42s ease, visibility .42s ease;
  isolation: isolate;
}
.lock-screen.is-visible { opacity:1; visibility:visible; pointer-events:auto; }
.lock-screen-wallpaper {
  position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(ellipse at 50% 35%,rgba(255,255,255,.12),transparent 38%),
    linear-gradient(120deg,transparent 20%,rgba(255,255,255,.045) 48%,transparent 72%);
}
.lock-screen::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg,rgba(3,12,34,.2),transparent 34%,rgba(3,10,28,.3));
}
.lock-screen-top {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:20px; padding:24px clamp(22px,4vw,64px); color:rgba(255,255,255,.86);
  font-size:13px; letter-spacing:.02em;
}
.lock-brand {display:flex;align-items:center;gap:9px;font-weight:700;letter-spacing:.08em}
.lock-brand .comet-mark {font-size:21px}
.lock-status {justify-self:end;display:flex;gap:12px;font-size:16px}
.lock-main {
  width:min(100%,1040px); min-height:0; min-width:0; margin:0 auto;
  padding:clamp(8px,2.2vh,24px) 28px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:clamp(10px,2vh,22px); overflow:hidden;
}
.lock-clock-block {text-align:center; position:relative; padding:8px 24px 0}
.lock-date {font-size:clamp(15px,2vw,20px);font-weight:600;letter-spacing:.045em;color:rgba(255,255,255,.88)}
.lock-time {
  font-family:Manrope,"DM Sans",sans-serif;
  font-size:clamp(84px,15vw,164px);line-height:.98;font-weight:500;
  letter-spacing:-.085em;text-shadow:0 12px 42px rgba(0,0,0,.22);
  font-variant-numeric:tabular-nums;
}
.lock-greeting {font-size:clamp(17px,2vw,23px);font-weight:600;letter-spacing:.015em;margin-top:14px}
.lock-depth-off .lock-time {text-shadow:none}
.lock-widgets {display:flex;justify-content:center;flex-wrap:wrap;gap:12px;width:min(100%,760px)}
.lock-widget {
  min-width:175px;min-height:82px;padding:14px 18px;display:flex;align-items:center;gap:13px;
  border:1px solid rgba(255,255,255,.22);border-radius:20px;
  background:rgba(255,255,255,.12);backdrop-filter:blur(22px) saturate(145%);
  box-shadow:0 12px 30px rgba(0,0,0,.10),inset 0 1px rgba(255,255,255,.2);
}
.lock-widget-icon {font-size:26px;color:#fff}
.lock-widget strong,.lock-widget small {display:block}
.lock-widget strong {font-size:17px}
.lock-widget small {font-size:12px;color:rgba(255,255,255,.72);margin-top:3px}
.lock-account-area {position:relative}
.lock-account {
  display:flex;align-items:center;gap:12px;padding:9px 17px 9px 9px;
  border:1px solid rgba(255,255,255,.25);border-radius:999px;color:#fff;
  background:rgba(255,255,255,.12);backdrop-filter:blur(20px);text-align:left;cursor:pointer;
}
.lock-avatar {width:43px;height:43px;border-radius:50%;display:grid;place-items:center;
  font-size:19px;font-weight:700;background:linear-gradient(145deg,#dceeff,#7caee7);color:#18365f}
.lock-account strong,.lock-account small {display:block}
.lock-account strong {font-size:14px}.lock-account small {font-size:11px;color:rgba(255,255,255,.7);margin-top:2px}
.lock-account-chevron {margin-left:14px}
.lock-account-menu {position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);
  min-width:180px;padding:7px;border:1px solid rgba(255,255,255,.2);border-radius:14px;
  background:rgba(13,30,59,.88);backdrop-filter:blur(20px);z-index:3}
.lock-account-menu button {display:block;width:100%;padding:10px;border:0;border-radius:9px;background:transparent;color:white;text-align:left;cursor:pointer}
.lock-account-menu button:hover {background:rgba(255,255,255,.12)}
.lock-notifications {width:min(100%,540px);display:flex;flex-direction:column;gap:9px}
.lock-notifications-heading {display:flex;justify-content:space-between;align-items:center;
  font-size:10px;font-weight:700;letter-spacing:.14em;color:rgba(255,255,255,.7);padding:0 5px}
.lock-notifications-heading button {border:0;background:transparent;color:rgba(255,255,255,.8);cursor:pointer;font-size:11px}
.lock-notification {display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid rgba(255,255,255,.17);
  border-radius:16px;background:rgba(255,255,255,.13);backdrop-filter:blur(22px)}
.notification-app-icon {width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.2)}
.lock-notification strong {font-size:12px}.lock-notification p {margin:3px 0;font-size:13px;color:rgba(255,255,255,.9)}
.lock-notification small {font-size:10px;color:rgba(255,255,255,.62)}
.lock-empty-notifications {text-align:center;color:rgba(255,255,255,.7);font-size:13px}
.lock-screen-footer {display:flex;align-items:center;justify-content:space-between;padding:18px clamp(22px,4vw,64px) 25px}
.lock-screen-footer button {border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:white;border-radius:999px;cursor:pointer}
#lockQuickSettings,#lockPowerButton {width:42px;height:42px;font-size:18px}
.lock-unlock-button {padding:12px 20px;font-size:13px;backdrop-filter:blur(14px)}
.lock-unlock-button span {margin-left:12px;font-size:17px}
.lock-quick-bar {position:absolute;left:18px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:8px}
.lock-quick-bar button {display:flex;align-items:center;gap:9px;padding:11px 13px;border:1px solid rgba(255,255,255,.2);
  border-radius:14px;background:rgba(255,255,255,.12);color:white;cursor:pointer;backdrop-filter:blur(18px)}
.lock-quick-bar button span {font-size:11px}.lock-quick-bar button.is-active {background:rgba(74,195,145,.32)}
.lock-pin-panel {position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:13px;background:rgba(5,16,39,.72);backdrop-filter:blur(28px)}
.lock-pin-panel[hidden] {display:none}
.lock-pin-back {position:absolute;top:28px;left:30px;border:0;background:transparent;color:white;font-size:14px;cursor:pointer}
.lock-pin-avatar {width:74px;height:74px;font-size:30px}
.lock-pin-panel h2 {margin:0;font-size:22px}.lock-pin-panel p {margin:0;color:rgba(255,255,255,.72);font-size:13px}
#lockPinEntry {width:220px;padding:13px 16px;border:1px solid rgba(255,255,255,.35);border-radius:13px;
  background:rgba(255,255,255,.12);color:white;text-align:center;font-size:20px;letter-spacing:.3em;outline:none}
#lockPinEntry::placeholder {color:rgba(255,255,255,.6);letter-spacing:.1em}
#lockPinSubmit {padding:11px 28px;border:0;border-radius:999px;background:#fff;color:#17345d;font-weight:700;cursor:pointer}
#lockPinError {min-height:16px;color:#ffd3d3;font-size:12px}
.lock-settings-group {margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
.lock-pin-settings {padding:16px 0 5px}
.lock-pin-settings > div:first-child strong,.lock-pin-settings > div:first-child small {display:block}
.lock-pin-settings > div:first-child small {font-size:11px;color:var(--muted,#aab5c5);margin-top:4px}
.lock-pin-actions {display:flex;gap:7px;margin:12px 0;flex-wrap:wrap}
.lock-pin-actions input {min-width:130px;flex:1;padding:9px 11px;border-radius:9px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:inherit}
.lock-pin-actions button {padding:9px 13px;border-radius:9px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:inherit;cursor:pointer}
.settings-modal {max-height:min(86vh,820px);overflow:auto}
.lock-settings-group .setting-row input[type="text"] {max-width:190px;padding:8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:inherit}
@media(max-width:700px) {
  .lock-screen-top {padding:16px;grid-template-columns:1fr auto}.lock-screen-top > span:nth-child(2) {display:none}
  .lock-main {padding:18px 16px 30px;gap:18px}.lock-time {font-size:clamp(78px,20vw,130px)}
  .lock-widgets {gap:8px}.lock-widget {min-width:calc(50% - 8px);flex:1;padding:11px}
  .lock-quick-bar {position:static;transform:none;flex-direction:row;justify-content:center;padding:0 10px}
  .lock-quick-bar button {padding:8px 10px}.lock-screen-footer {padding:12px 16px 18px}
}


.lock-widgets[hidden], .lock-notifications[hidden], .lock-account-menu[hidden] { display:none !important; }

/* Lock-screen account manager */
.lock-account-settings { padding:14px 0 5px; border-top:1px solid rgba(255,255,255,.10); }
.lock-account-settings > div:first-child strong,
.lock-account-settings > div:first-child small { display:block; }
.lock-account-settings > div:first-child small { margin-top:4px; color:var(--muted,#aab5c5); font-size:11px; }
.lock-account-add { display:flex; gap:8px; margin:10px 0; }
.lock-account-add input { min-width:0; flex:1; padding:9px 11px; border:1px solid rgba(255,255,255,.18); border-radius:9px; background:rgba(255,255,255,.07); color:inherit; }
.lock-account-add button,
.lock-account-row button { padding:8px 11px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:rgba(255,255,255,.1); color:inherit; cursor:pointer; }
.lock-account-list { display:grid; gap:6px; }
.lock-account-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 9px; border:1px solid rgba(255,255,255,.09); border-radius:10px; font-size:12px; }
.lock-account-menu { max-height:260px; overflow:auto; }
.lock-screen .lock-clock-block { position:relative; isolation:isolate; }
.lock-screen .lock-time { position:relative; z-index:1; }
.lock-screen.lock-depth-off .lock-time { text-shadow:none; }
.lock-screen-wallpaper { transition:background .35s ease,filter .35s ease; }
.lock-wallpaper-comet .lock-screen-wallpaper {
  background: #071a35 url("assets/lockscreen-aurora-default.svg") center center / cover no-repeat;
}
.lock-wallpaper-moonlit .lock-screen-wallpaper {
  background: #061a38 url("assets/lockscreen-moonlit.svg") center center / cover no-repeat;
}
.lock-wallpaper-midnight .lock-screen-wallpaper {
  background: radial-gradient(ellipse at 50% 18%,rgba(69,111,188,.55),transparent 48%),linear-gradient(145deg,#07152d 0%,#102b56 48%,#050b1a 100%);
}
.lock-wallpaper-aurora .lock-screen-wallpaper {
  background: radial-gradient(ellipse at 18% 30%,rgba(43,205,176,.38),transparent 42%),radial-gradient(ellipse at 78% 18%,rgba(106,119,255,.45),transparent 45%),linear-gradient(145deg,#081b35,#102b4b 55%,#061322);
}
.lock-wallpaper-blue .lock-screen-wallpaper {
  background: radial-gradient(ellipse at 50% 12%,rgba(100,164,255,.38),transparent 48%),linear-gradient(145deg,#102c59,#15549a 52%,#071b3d);
}
@media(max-width:700px) {
  .lock-account-add { flex-wrap:wrap; }
  .lock-account-add input { flex-basis:100%; }
}


/* Lock-screen photo controls */
.lock-wallpaper-reset-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:8px 0 4px; color:var(--muted,#aab5c5); font-size:11px;
}
.lock-wallpaper-reset-row button {
  border:1px solid rgba(255,255,255,.16); border-radius:9px;
  padding:8px 11px; color:inherit; background:rgba(255,255,255,.08); cursor:pointer;
}
#lockWallpaperUpload { max-width:210px; min-width:0; color:inherit; font-size:11px; }


/* Desktop lock screen: compact, non-scrolling layout with real Liquid Glass. */
html, body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.desktop-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.lock-screen {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: pan-x;
}
.lock-screen-top,
.lock-widget,
.lock-account,
.lock-notification,
.lock-quick-bar button,
.lock-screen-footer button,
.lock-pin-panel,
.lock-pin-panel input,
.lock-pin-panel button {
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(1.06);
  backdrop-filter: blur(24px) saturate(190%) contrast(1.06);
}
.lock-widget,
.lock-account,
.lock-notification,
.lock-quick-bar button,
.lock-screen-footer button,
.lock-pin-panel {
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.24),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.14),rgba(255,255,255,.025) 48%,rgba(100,175,255,.07)),
    rgba(15,28,47,.25);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 12px 34px rgba(0,0,0,.22),inset 0 1px 1px rgba(255,255,255,.42),inset 0 -1px 0 rgba(0,0,0,.16);
}
.lock-screen-footer { min-height:68px; padding-top:10px; padding-bottom:14px; }
.lock-screen-footer button { min-height:42px; min-width:42px; }
.lock-screen-footer .lock-unlock-button { min-width:0; padding:12px 20px; }
.lock-notification { flex:0 1 auto; }
@media (max-height: 780px) {
  .lock-screen-top { padding-top:10px; padding-bottom:8px; }
  .lock-main { gap:10px; padding-top:4px; padding-bottom:4px; }
  .lock-time { font-size:clamp(68px,11vh,112px); }
  .lock-date { font-size:14px; }
  .lock-greeting { margin-top:5px; font-size:16px; }
  .lock-widget { min-height:58px; padding:8px 12px; }
  .lock-widget-icon { font-size:21px; }
  .lock-widget strong { font-size:14px; }
  .lock-widget small { font-size:10px; }
  .lock-notifications { gap:6px; }
  .lock-notification { padding:8px 11px; }
  .lock-screen-footer { min-height:56px; padding-top:5px; padding-bottom:8px; }
}
@media (max-height: 620px) {
  .lock-widgets { display:none; }
  .lock-notifications .lock-notification:nth-of-type(n+3) { display:none; }
  .lock-quick-bar { top:auto; bottom:68px; transform:none; }
}


/* Refined Desktop lock screen — same desktop wallpaper and the same Liquid Glass language. */
.lock-screen-wallpaper {
  z-index:-2;
  background-color:#071426;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.lock-screen-top {
  width:calc(100% - 44px);
  min-height:58px;
  margin:16px 22px 0;
  padding:9px 24px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:22px;
  background:
    radial-gradient(120% 180% at 10% -45%,rgba(255,255,255,.34),transparent 55%),
    linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.035) 48%,rgba(100,175,255,.08)),
    rgba(15,28,47,.30);
  -webkit-backdrop-filter:blur(28px) saturate(190%) contrast(1.06);
  backdrop-filter:blur(28px) saturate(190%) contrast(1.06);
  box-shadow:0 16px 44px rgba(0,0,0,.24),inset 0 1px 1px rgba(255,255,255,.52),inset 0 -1px 0 rgba(0,0,0,.18);
}
.lock-screen-top::before {
  content:"";position:absolute;inset:1px;border-radius:inherit;pointer-events:none;
  background:linear-gradient(112deg,rgba(255,255,255,.18),transparent 26%,transparent 74%,rgba(133,193,255,.12));
}
.lock-main {
  width:min(100%,980px);
  padding:clamp(8px,1.6vh,16px) 24px;
  gap:clamp(8px,1.25vh,13px);
  justify-content:center;
}
.lock-clock-block {padding:0 20px;text-shadow:0 8px 36px rgba(0,0,0,.18)}
.lock-date {font-size:clamp(13px,1.4vw,17px);letter-spacing:.07em}
.lock-time {font-size:clamp(76px,12.5vh,138px);font-weight:550;letter-spacing:-.075em;line-height:.92}
.lock-greeting {font-size:clamp(16px,1.6vw,21px);margin-top:7px}
.lock-widgets {gap:12px;width:min(100%,740px)}
.lock-widget {
  min-width:175px;min-height:76px;padding:13px 17px;border-radius:20px;
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.30),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.025) 48%,rgba(100,175,255,.08)),
    rgba(15,28,47,.28) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  -webkit-backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  box-shadow:0 15px 38px rgba(0,0,0,.22),inset 0 1px 1px rgba(255,255,255,.48),inset 0 -1px 0 rgba(0,0,0,.16) !important;
}
.lock-account {
  min-height:70px;padding:9px 20px 9px 10px;border-radius:24px;
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.34),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,.025) 48%,rgba(100,175,255,.09)),
    rgba(15,28,47,.30) !important;
  border:1px solid rgba(255,255,255,.34) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.25),inset 0 1.3px 0 rgba(255,255,255,.55),inset 0 -1px 0 rgba(0,0,0,.18) !important;
}
.lock-notifications {width:min(100%,600px);gap:8px}
.lock-notification {
  padding:11px 14px;border-radius:17px;
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.30),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.025) 48%,rgba(100,175,255,.08)),
    rgba(15,28,47,.30) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  -webkit-backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 1px rgba(255,255,255,.46) !important;
}
.lock-notifications-heading {text-shadow:0 2px 8px rgba(0,0,0,.35)}
.lock-quick-bar button {
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.30),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.025) 48%,rgba(100,175,255,.08)),
    rgba(15,28,47,.30) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  -webkit-backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 1px rgba(255,255,255,.46) !important;
}
.lock-screen-footer {padding:8px 26px 15px}
.lock-screen-footer button {
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.30),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.025) 48%,rgba(100,175,255,.08)),
    rgba(15,28,47,.30) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  -webkit-backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  backdrop-filter:blur(28px) saturate(190%) contrast(1.06) !important;
  box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 1px rgba(255,255,255,.46) !important;
}
.lock-customize-panel {
  position:absolute;z-index:8;right:26px;top:88px;width:min(360px,calc(100vw - 32px));
  max-height:calc(100dvh - 170px);overflow:auto;padding:19px;border-radius:24px;
  color:#f4f7ff;
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.34),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.17),rgba(255,255,255,.035) 48%,rgba(100,175,255,.10)),
    rgba(12,27,50,.76);
  border:1px solid rgba(255,255,255,.34);
  -webkit-backdrop-filter:blur(34px) saturate(195%) contrast(1.08);
  backdrop-filter:blur(34px) saturate(195%) contrast(1.08);
  box-shadow:0 24px 70px rgba(0,0,0,.38),inset 0 1px 1px rgba(255,255,255,.52);
}
.lock-customize-panel[hidden] {display:none !important}
.lock-customize-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.lock-customize-heading h2 {margin:4px 0 0;font:700 21px Manrope,sans-serif;letter-spacing:-.04em}
.lock-customize-heading > button {width:32px;height:32px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.12);color:white;font-size:21px;cursor:pointer}
.lock-customize-section {padding:13px 0;border-top:1px solid rgba(255,255,255,.13)}
.lock-customize-section > strong,.lock-customize-greeting > strong {display:block;font-size:12px;margin-bottom:11px}
.lock-wallpaper-choices {display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.lock-wallpaper-choices button {min-width:0;padding:4px;border:1px solid transparent;border-radius:12px;background:transparent;color:white;cursor:pointer}
.lock-wallpaper-choices button.selected {border-color:rgba(190,225,255,.95);background:rgba(255,255,255,.12)}
.wallpaper-swatch {display:block;height:48px;border-radius:8px;border:1px solid rgba(255,255,255,.2)}
.wallpaper-swatch-desktop {background:radial-gradient(ellipse at 75% 55%,#2876e8,#10285c 50%,#07152d)}
.wallpaper-swatch-moonlit {background:linear-gradient(145deg,#0a2447,#2376a3 55%,#020b20)}
.wallpaper-swatch-midnight {background:linear-gradient(145deg,#07152d,#102b56 55%,#050b1a)}
.wallpaper-swatch-aurora {background:radial-gradient(ellipse at 20% 30%,#20a88f,transparent 50%),linear-gradient(145deg,#081b35,#182f70)}
.lock-wallpaper-choices small {display:block;margin-top:5px;font-size:10px}
.lock-photo-choice {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:11px;color:rgba(239,246,255,.84)}
.lock-photo-choice input {max-width:170px;font-size:10px}
.lock-customize-toggles {display:grid;gap:13px}
.lock-customize-toggles label {display:flex;align-items:center;justify-content:space-between;gap:10px}
.lock-customize-toggles strong,.lock-customize-toggles small {display:block}
.lock-customize-toggles strong {font-size:12px}
.lock-customize-toggles small {font-size:10px;color:rgba(231,239,255,.64);margin-top:2px}
.lock-customize-greeting {display:block;padding:13px 0;border-top:1px solid rgba(255,255,255,.13)}
.lock-customize-greeting input {display:block;width:100%;padding:10px 12px;border:1px solid rgba(255,255,255,.2);border-radius:11px;background:rgba(255,255,255,.09);color:white;outline:none}
.lock-customize-done {width:100%;padding:11px;border:1px solid rgba(255,255,255,.3);border-radius:12px;background:linear-gradient(120deg,rgba(65,136,255,.8),rgba(30,86,190,.85));color:white;font-weight:700;cursor:pointer;box-shadow:inset 0 1px rgba(255,255,255,.34),0 8px 24px rgba(0,0,0,.18)}
@media(max-height:760px) {
 .lock-time {font-size:clamp(70px,10vh,110px)}
 .lock-widget {min-height:62px;padding:9px 12px}
 .lock-notification {padding:8px 11px}
 .lock-screen-footer {padding-bottom:9px}
}
@media(max-width:700px) {
 .lock-screen-top {width:calc(100% - 24px);margin:10px 12px 0;padding:8px 14px;border-radius:18px}
 .lock-customize-panel {right:12px;top:74px}
 .lock-main {padding:8px 12px;gap:9px}
 .lock-time {font-size:clamp(72px,17vw,112px)}
}


/* Desktop lock-screen refinement: match the desktop's exact Liquid Glass material. */
#settingsBackdrop {
  position:fixed !important;
  inset:0 !important;
  z-index:10120 !important;
  display:grid !important;
  place-items:center !important;
  padding:clamp(12px,2.5vw,28px) !important;
  box-sizing:border-box !important;
  transform:none !important;
}
#settingsBackdrop[hidden] {display:none !important}
#settingsBackdrop .settings-modal {
  position:relative !important;
  inset:auto !important;
  left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;
  margin:auto !important;
  width:min(520px,calc(100vw - 32px)) !important;
  max-width:100% !important;
  max-height:calc(100dvh - 32px) !important;
  box-sizing:border-box !important;
}
.lock-screen .liquid-surface {
  background:
    radial-gradient(130% 180% at 12% -35%,rgba(255,255,255,.32),transparent 52%),
    linear-gradient(145deg,rgba(255,255,255,.15),rgba(255,255,255,.025) 48%,rgba(100,175,255,.075)),
    rgba(15,28,47,.28) !important;
  border:1px solid rgba(255,255,255,.30) !important;
  box-shadow:0 18px 42px rgba(0,0,0,.26),0 3px 9px rgba(0,0,0,.12),inset 0 1.3px 0 rgba(255,255,255,.52),inset 0 -1px 0 rgba(0,0,0,.18),inset 1px 0 0 rgba(255,255,255,.10) !important;
  -webkit-backdrop-filter:blur(24px) saturate(190%) contrast(1.06) !important;
  backdrop-filter:blur(24px) saturate(190%) contrast(1.06) !important;
}
.lock-screen .liquid-surface::before {
  background:linear-gradient(112deg,rgba(255,255,255,.16),transparent 22%,transparent 72%,rgba(133,193,255,.08)),linear-gradient(180deg,rgba(255,255,255,.12),transparent 30%) !important;
  opacity:.85 !important;
}
.lock-screen-wallpaper {transition:background-image .45s ease,filter .45s ease;will-change:background-position}
.lock-screen.is-visible .lock-screen-wallpaper {animation:lockWallpaperDrift 32s ease-in-out infinite alternate}
.lock-screen.is-visible .lock-screen-top {animation:lockHeaderIn .7s cubic-bezier(.2,.8,.2,1) both}
.lock-screen.is-visible .lock-clock-block {animation:lockClockIn .9s cubic-bezier(.18,1,.32,1) .08s both}
.lock-screen.is-visible .lock-time {
  transform:scale(var(--lock-clock-scale,1));
  transform-origin:center;
  text-shadow:0 1px 0 rgba(255,255,255,.48),0 5px 18px rgba(5,18,42,.22),0 18px 46px rgba(0,0,0,.30),0 0 34px rgba(164,218,255,.12);
  animation:lockTimeDepth 5.8s ease-in-out .8s infinite alternate;
}
.lock-screen.is-visible .lock-widget {animation:lockCardIn .7s cubic-bezier(.2,.8,.2,1) both}
.lock-screen.is-visible .lock-widget:nth-child(2) {animation-delay:.12s}
.lock-screen.is-visible .lock-widget:nth-child(3) {animation-delay:.2s}
.lock-screen.is-visible .lock-account {animation:lockCardIn .7s cubic-bezier(.2,.8,.2,1) .22s both}
.lock-screen.is-visible .lock-notification {animation:lockCardIn .72s cubic-bezier(.2,.8,.2,1) both}
.lock-screen.is-visible .lock-notification:nth-of-type(2) {animation-delay:.12s}
.lock-screen.is-visible .lock-quick-bar button {animation:lockQuickIn .65s cubic-bezier(.2,.8,.2,1) both}
.lock-screen.is-visible .lock-quick-bar button:nth-child(2) {animation-delay:.1s}
.lock-screen .lock-widget,
.lock-screen .lock-account,
.lock-screen .lock-notification,
.lock-screen .lock-quick-bar button,
.lock-screen .lock-screen-footer button {transition:transform .28s cubic-bezier(.2,.8,.2,1),border-color .25s ease,box-shadow .25s ease}
.lock-screen .lock-widget:hover,
.lock-screen .lock-account:hover,
.lock-screen .lock-notification:hover,
.lock-screen .lock-quick-bar button:hover,
.lock-screen .lock-screen-footer button:hover {transform:translateY(-2px);border-color:rgba(255,255,255,.48)!important}
.lock-customize-panel {
  right:clamp(14px,3vw,34px) !important;
  top:clamp(78px,11vh,104px) !important;
  width:min(390px,calc(100vw - 28px)) !important;
  max-height:calc(100dvh - 120px) !important;
  overflow:auto;
  box-sizing:border-box;
}
.lock-customize-panel,
.lock-pin-panel {z-index:10130}
.lock-clock-customize {display:grid;gap:13px}
.lock-clock-customize > label {display:flex;align-items:center;justify-content:space-between;gap:12px}
.lock-clock-customize label strong,.lock-clock-customize label small {display:block}
.lock-clock-customize label strong {font-size:12px}
.lock-clock-customize label small {font-size:10px;color:rgba(231,239,255,.64);margin-top:3px}
.lock-clock-customize select {max-width:120px;padding:8px 10px;border:1px solid rgba(255,255,255,.22);border-radius:10px;color:white;background:rgba(255,255,255,.12)}
.lock-clock-customize input[type="range"] {width:116px;accent-color:#e7f4ff}
.lock-clock-customize input[type="checkbox"] {accent-color:#dceeff}
.lock-screen.lock-animations-off *,
.lock-screen.lock-animations-off *::before,
.lock-screen.lock-animations-off *::after {animation:none !important;scroll-behavior:auto !important}
@keyframes lockWallpaperDrift {from{background-position:48% 48%}to{background-position:52% 52%}}
@keyframes lockHeaderIn {from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
@keyframes lockClockIn {from{opacity:0;transform:translateY(24px) scale(.96);filter:blur(8px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes lockCardIn {from{opacity:0;transform:translateY(18px) scale(.97);filter:blur(5px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes lockQuickIn {from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
@keyframes lockTimeDepth {from{text-shadow:0 1px 0 rgba(255,255,255,.42),0 8px 24px rgba(0,0,0,.22),0 0 24px rgba(164,218,255,.10)}to{text-shadow:0 2px 0 rgba(255,255,255,.60),0 16px 42px rgba(0,0,0,.34),0 0 42px rgba(164,218,255,.20)}}
@media(prefers-reduced-motion:reduce) {
  .lock-screen.is-visible *,
  .lock-screen.is-visible *::before,
  .lock-screen.is-visible *::after {animation:none !important;transition:none !important}
}
@media(max-width:700px) {
  .lock-customize-panel {right:12px !important;top:72px !important}
}

.lock-quick-bar[hidden] {display:none !important}


/* Lock screen: compact shared status controls, user-first unlock, expandable glass notifications. */
.lock-screen-top {
  display:flex !important;align-items:center;justify-content:flex-end !important;
  width:auto !important;min-height:0 !important;margin:14px 22px 0 auto !important;
  padding:0 !important;border:0 !important;background:transparent !important;
  box-shadow:none !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
}
.lock-screen-top > #lockTopDate {margin-right:12px;font-size:11px;color:rgba(255,255,255,.76)}
.lock-status-bar {
  display:flex;align-items:center;gap:3px;padding:5px;border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(145deg,rgba(255,255,255,.20),rgba(255,255,255,.045)),rgba(18,32,52,.25);
  box-shadow:0 9px 28px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.42);
  -webkit-backdrop-filter:blur(25px) saturate(190%);backdrop-filter:blur(25px) saturate(190%);
  overflow:hidden;max-width:120px;transition:max-width .35s cubic-bezier(.2,.8,.2,1),padding .35s ease,opacity .25s ease;
}
.lock-status-toggle {width:30px;height:28px;border:0;border-radius:999px;background:transparent;color:rgba(255,255,255,.62);display:grid;place-items:center;cursor:pointer;transition:background .25s,color .25s,transform .25s}
.lock-status-toggle svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lock-status-toggle.active {color:#fff;background:rgba(255,255,255,.19);box-shadow:inset 0 1px rgba(255,255,255,.25)}
.lock-status-bar.is-empty {max-width:0;padding-left:0;padding-right:0;border-color:transparent;opacity:0;pointer-events:none}
.lock-quick-bar {left:22px;top:24px;transform:none;display:flex;flex-direction:row;gap:7px;z-index:4}
.lock-quick-bar[hidden],.lock-quick-bar button[hidden] {display:none !important}
.lock-quick-bar button {width:34px;height:34px;padding:0;justify-content:center;border-radius:50%;font-size:14px;animation:lockQuickIn .35s ease both}
.lock-account {min-height:0 !important;padding:6px 12px 6px 6px !important;gap:9px !important;border-radius:999px !important}
.lock-avatar {width:34px !important;height:34px !important;font-size:15px !important}
.lock-account strong {font-size:12px !important}
.lock-account small {font-size:10px !important}
.lock-account-chevron {margin-left:5px !important}
.lock-account-area {cursor:pointer}
.lock-account-area::after {content:"";display:block;position:absolute;inset:-7px;border-radius:999px;pointer-events:none}
.lock-notifications {position:relative;width:min(100%,520px);gap:0 !important;isolation:isolate}
.lock-notifications-heading {margin-bottom:8px}
.lock-notifications-heading > span {display:flex;gap:12px}
.lock-notifications:not(.notifications-expanded) .lock-notification {position:relative;transform-origin:center top;transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .25s ease}
.lock-notifications:not(.notifications-expanded) .lock-notification:nth-of-type(2) {transform:translateY(-5px) scale(.985);z-index:-1;opacity:.82}
.lock-notifications:not(.notifications-expanded) .lock-notification:nth-of-type(n+3) {display:none}
.lock-notifications:not(.notifications-expanded) .lock-notification:first-of-type {z-index:2}
.lock-notifications.notifications-expanded {gap:7px !important}
.lock-notifications.notifications-expanded .lock-notification {transform:none;opacity:1;z-index:auto;animation:lockCardIn .35s ease both}
.lock-screen-footer {justify-content:center !important;gap:12px}
#lockQuickSettings,#lockPowerButton {flex:none}
.lock-screen-footer #lockQuickSettings {position:absolute;left:24px;bottom:22px;z-index:8}
.lock-screen-footer #lockPowerButton {position:absolute;right:24px;bottom:22px;z-index:8}
.lock-unlock-button {display:none !important}
.lock-widget-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 0}
.lock-widget-choices label {display:flex;align-items:center;gap:6px;font-size:11px;color:rgba(255,255,255,.82)}
.lock-widget-choices input {accent-color:#e7f4ff}
.lock-widget[hidden] {display:none !important}
#lockCustomizePanel {z-index:10140 !important}
#lockQuickSettings {pointer-events:auto !important}
@media(max-width:700px) {
 .lock-screen-top {margin:10px 12px 0 auto !important}
 .lock-quick-bar {left:12px;top:12px}
 .lock-screen-footer #lockQuickSettings {left:12px;bottom:12px}
 .lock-screen-footer #lockPowerButton {right:12px;bottom:12px}
}

.lock-status-bar.one-active .lock-status-toggle {width:25px;height:25px}
.lock-status-bar.one-active .lock-status-toggle:not(.active) {opacity:.45;transform:scale(.88)}
.lock-status-toggle:not(.active) {opacity:.48}


/* iOS-inspired Desktop unlock transition: reveal the desktop as the glass lock screen lifts away. */
.lock-screen {transform:translate3d(0,0,0) scale(1);transform-origin:50% 42%;transition:opacity .72s cubic-bezier(.22,.75,.22,1),transform .82s cubic-bezier(.18,.88,.22,1),filter .82s cubic-bezier(.18,.88,.22,1),visibility .72s}
.lock-screen.is-visible {transform:translate3d(0,0,0) scale(1);filter:blur(0)}
.lock-screen.is-visible .lock-screen-wallpaper {animation:lockWallpaperDrift 28s ease-in-out infinite alternate,lockScreenReveal .95s cubic-bezier(.16,1,.3,1) both}
.lock-screen.is-unlocking {opacity:0 !important;visibility:hidden !important;pointer-events:none !important;transform:translate3d(0,-7vh,0) scale(1.065) !important;filter:blur(18px) saturate(1.35) !important;transition:opacity .72s cubic-bezier(.22,.75,.22,1),transform .82s cubic-bezier(.18,.88,.22,1),filter .82s cubic-bezier(.18,.88,.22,1),visibility .72s}
.lock-screen.is-unlocking .lock-clock-block {animation:unlockClockFloat .72s cubic-bezier(.18,.88,.22,1) both}
.lock-screen.is-unlocking .lock-account,
.lock-screen.is-unlocking .lock-notification,
.lock-screen.is-unlocking .lock-widget {animation:unlockGlassDissolve .65s cubic-bezier(.18,.88,.22,1) both}
.lock-screen.is-unlocking .lock-screen-top,
.lock-screen.is-unlocking .lock-screen-footer {opacity:0;transform:translateY(-12px);transition:opacity .35s ease,transform .45s ease}
.lock-screen.is-unlocking .lock-screen-wallpaper {transform:scale(1.09);filter:brightness(1.2) blur(3px);transition:transform .82s cubic-bezier(.18,.88,.22,1),filter .82s ease}
.lock-notifications {gap:0 !important}
.lock-notifications:not(.notifications-expanded) .lock-notification {margin-top:-7px;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.20),inset 0 1px rgba(255,255,255,.38)}
.lock-notifications:not(.notifications-expanded) .lock-notification:first-of-type {margin-top:0}
.lock-notifications:not(.notifications-expanded) .lock-notification:nth-of-type(2) {transform:translateY(-4px) scale(.975)}
.lock-notifications.notifications-expanded .lock-notification {margin-top:0}
.lock-notification {transition:margin .34s cubic-bezier(.2,.8,.2,1),transform .34s cubic-bezier(.2,.8,.2,1),opacity .25s ease,box-shadow .25s ease}
.lock-notification:hover {box-shadow:0 18px 40px rgba(0,0,0,.26),inset 0 1px rgba(255,255,255,.48)}
@keyframes lockScreenReveal {from{transform:scale(1.055);filter:brightness(1.16)}to{transform:scale(1);filter:brightness(1)}}
@keyframes unlockClockFloat {0%{transform:translateY(0) scale(1);opacity:1;filter:blur(0)}100%{transform:translateY(-38px) scale(1.16);opacity:0;filter:blur(12px)}}
@keyframes unlockGlassDissolve {0%{transform:translateY(0) scale(1);opacity:1;filter:blur(0)}100%{transform:translateY(-24px) scale(.92);opacity:0;filter:blur(9px)}}
@media(prefers-reduced-motion:reduce) {
 .lock-screen,.lock-screen.is-unlocking {transition:opacity .12s linear !important;transform:none !important;filter:none !important}
 .lock-screen.is-unlocking * {animation:none !important}
}

/* Keep lock-screen personalisation fully visible and centred on every display. */
.lock-screen:has(#lockCustomizePanel:not([hidden])) {overflow:visible}
#lockCustomizePanel {
  position:fixed !important;
  left:50% !important;
  top:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  width:min(520px,calc(100vw - 32px)) !important;
  max-width:calc(100vw - 32px) !important;
  max-height:calc(100dvh - 32px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  box-sizing:border-box;
  z-index:10140 !important;
}
@media(max-width:700px) {
  #lockCustomizePanel {
    left:50% !important;
    top:50% !important;
    right:auto !important;
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}


/* Compact top-left Desktop menu button; other top-bar islands stay unchanged. */
.topbar .top-cluster > .brand-island {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  gap: 7px;
  border-radius: 999px;
  font-size: 12px;
}
.topbar .brand-island .comet-mark {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar .brand-island .comet-mark svg {
  width: 13px;
  height: 13px;
}
.topbar .brand-island .tiny-chevron {
  font-size: 11px;
}
@media (max-width: 620px) {
  .topbar .top-cluster > .brand-island {
    min-height: 29px;
    height: 29px;
    padding: 0 8px;
    gap: 5px;
    font-size: 11px;
  }
  .topbar .brand-island .comet-mark,
  .topbar .brand-island .comet-mark svg {
    width: 12px;
    height: 12px;
  }
}


/* Finder-style Files window and desktop app pinning context menu. */
.pinned-desktop-app .pinned-app-art {
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 9px rgba(0,0,0,.28));
}
.pinned-desktop-app .pinned-app-art svg { width: 44px; height: 44px; }
.icon-context-menu {
  position: fixed;
  z-index: 12000;
  min-width: 178px;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.06)),rgba(20,31,48,.78);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 18px 48px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.36);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}
.icon-context-menu button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  text-align: left;
  font: 500 12px "DM Sans",sans-serif;
  cursor: pointer;
}
.icon-context-menu button:hover { background: rgba(255,255,255,.16); }
.finder-toolbar {
  display:flex;align-items:center;gap:10px;min-height:42px;margin-bottom:14px;
  padding:7px 9px;border:1px solid rgba(255,255,255,.15);border-radius:13px;
  background:rgba(255,255,255,.07);
}
.finder-toolbar button {
  border:0;border-radius:8px;padding:7px 9px;background:rgba(255,255,255,.10);
  color:white;font:500 11px "DM Sans",sans-serif;cursor:pointer;
}
.finder-toolbar button:disabled {opacity:.35;cursor:default}
.finder-breadcrumbs {display:flex;align-items:center;gap:6px;min-width:0;flex:1;overflow:auto;white-space:nowrap}
.finder-breadcrumbs span {opacity:.45;font-size:11px}
.finder-breadcrumbs button {padding:5px 7px;background:transparent}
.finder-new-folder {white-space:nowrap}
.finder-content {display:grid;grid-template-columns:155px minmax(0,1fr);gap:14px;min-height:230px}
.finder-sidebar {
  display:flex;flex-direction:column;gap:5px;padding:10px;
  border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(0,0,0,.10);
}
.finder-sidebar strong {padding:3px 7px 7px;color:rgba(255,255,255,.58);font-size:10px;text-transform:uppercase;letter-spacing:.1em}
.finder-sidebar button {
  border:0;border-radius:8px;padding:8px;text-align:left;color:rgba(255,255,255,.88);
  background:transparent;font:500 11px "DM Sans",sans-serif;cursor:pointer;
}
.finder-sidebar button:hover {background:rgba(255,255,255,.12)}
.finder-items {display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));align-content:start;gap:10px;padding:5px}
.finder-folder {
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  min-height:102px;padding:10px 5px;border:1px solid transparent;border-radius:12px;
  background:transparent;color:white;font:500 11px "DM Sans",sans-serif;cursor:pointer;
}
.finder-folder:hover {background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.16)}
.finder-folder-icon svg {width:49px;height:42px;filter:drop-shadow(0 5px 7px rgba(0,0,0,.25))}
.finder-empty {grid-column:1/-1;display:grid;place-content:center;justify-items:center;gap:7px;min-height:190px;color:rgba(255,255,255,.72)}
.finder-empty span {font-size:30px;opacity:.7}
.finder-empty strong {font-size:12px}
.finder-empty small,.finder-status {font-size:10px;color:rgba(255,255,255,.48)}
.finder-status {padding-top:10px;margin-top:10px;border-top:1px solid rgba(255,255,255,.12)}
@media(max-width:560px) {
  .finder-content {grid-template-columns:1fr}
  .finder-sidebar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .finder-sidebar strong {grid-column:1/-1}
  .finder-toolbar {gap:5px}
  .finder-new-folder {font-size:10px!important}
}


/* App windows — real Liquid Glass.
   The backdrop overlay above must stay unfiltered so this window can refract
   the desktop wallpaper rather than a pre-blurred dark overlay. */
.app-window.glass-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 27px;
  background:
    radial-gradient(115% 90% at 0% 0%, rgba(255,255,255,.38), transparent 52%),
    radial-gradient(75% 85% at 100% 100%, rgba(104,171,255,.19), transparent 62%),
    radial-gradient(70% 60% at 50% -10%, rgba(255,255,255,.19), transparent 80%),
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.075) 48%, rgba(255,255,255,.15)),
    rgba(24,37,58,.25);
  -webkit-backdrop-filter: blur(34px) saturate(190%) contrast(112%);
  backdrop-filter: blur(34px) saturate(190%) contrast(112%);
  box-shadow:
    0 30px 90px rgba(0,0,0,.34),
    0 10px 28px rgba(0,0,0,.20),
    inset 0 1.5px 1px rgba(255,255,255,.78),
    inset 1px 0 1px rgba(255,255,255,.30),
    inset -1px 0 1px rgba(255,255,255,.20),
    inset 0 -1px 2px rgba(255,255,255,.22);
}

/* Broad surface reflections and a bright refracted rim. */
.app-window.glass-panel::before,
.app-window.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.app-window.glass-panel::before {
  background:
    linear-gradient(112deg,
      rgba(255,255,255,.28) 0%,
      rgba(255,255,255,.08) 18%,
      transparent 38%,
      transparent 72%,
      rgba(255,255,255,.10) 100%),
    radial-gradient(90% 35% at 50% 0%,
      rgba(255,255,255,.24),
      transparent 100%);
  opacity: .95;
}
.app-window.glass-panel::after {
  inset: 1px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 24% 78%, rgba(255,255,255,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.08);
}

.app-window-header,
.app-window-content {
  position: relative;
  z-index: 1;
}
.app-window-header {
  height: 54px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.095) 72%, rgba(255,255,255,.055));
  border-bottom: 1px solid rgba(255,255,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 1px 0 rgba(15,25,40,.08);
}
.app-window-header h2 {
  color: rgba(255,255,255,.98);
  text-shadow: 0 1px 12px rgba(0,0,0,.24);
  letter-spacing: .015em;
}
.app-window-content {
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.025) 48%, rgba(255,255,255,.065));
  max-height: calc(78vh - 54px);
}
.app-window .notes-area,
.app-window .browser-form input {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.34);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.28),
    0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
}
.app-window .file-row,
.app-window .finder-toolbar,
.app-window .finder-sidebar,
.app-window .finder-folder {
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
}
.app-window .finder-toolbar,
.app-window .finder-sidebar {
  border-color: rgba(255,255,255,.28);
  background-color: rgba(255,255,255,.10);
}
.app-window .finder-folder:hover,
.app-window .file-row:hover {
  background-color: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.38);
}
.app-window .window-control {
  box-shadow:
    inset 0 1px rgba(255,255,255,.65),
    0 1px 5px rgba(0,0,0,.20);
}
@media (prefers-reduced-transparency: reduce) {
  .app-window.glass-panel {
    background: rgba(35,47,65,.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
