:root {
  --text: #14202d;
  --muted: #5d6875;
  --text-primary: #14202d;
  --text-secondary: #5d6875;
  --text-soft: rgba(20, 32, 45, 0.58);
  --panel: rgba(255, 250, 241, 0.88);
  --panel-solid: #fffaf1;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-hover: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.52);
  --accent: #226a78;
  --accent-soft: rgba(34, 106, 120, 0.14);
  --danger: #bf3f38;
  --danger-soft: rgba(191, 63, 56, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-deep: rgba(24, 40, 48, 0.34);
  --glass-border: rgba(255, 255, 255, 0.34);
  --shadow-soft: 0 16px 38px rgba(19, 34, 43, 0.16);
  --shadow-window: 0 30px 78px rgba(18, 32, 43, 0.3);
  --shadow-window-focus: 0 34px 88px rgba(18, 32, 43, 0.36);
  --shadow-card: 0 18px 42px rgba(19, 34, 43, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --font-xs: 11px;
  --font-sm: 12px;
  --font-md: 13px;
  --font-base: 14px;
  --font-lg: 18px;
  --font-xl: 22px;
  --ease: 170ms ease;
  --shadow: var(--shadow-window);
  --bar-glass: rgba(24, 40, 48, 0.3);
  --bar-glass-light: rgba(255, 255, 255, 0.18);
  --bar-border: var(--glass-border);
  --bar-radius: var(--radius-pill);
  --bar-shadow: 0 16px 48px rgba(19, 34, 43, 0.2);
  --bar-inner: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  --bar-blur: blur(24px) saturate(170%);
  --desktop-brightness: 1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: url("cursor.svg") 4 3, auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 225, 0.98), transparent 28%),
    radial-gradient(circle at 72% 64%, rgba(91, 148, 160, 0.55), transparent 31%),
    linear-gradient(135deg, #9fbca9 0%, #ecd99f 52%, #d98463 100%);
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 58px;
  background: #000;
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.boot-screen img {
  width: min(285px, 58vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.14));
  animation: boot-logo-in 760ms ease both;
}

.boot-loader {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: 8px;
}

.boot-loader::before,
.boot-loader span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.boot-loader::before {
  border: 3px solid rgba(255, 255, 255, 0.16);
}

.boot-loader span {
  border: 3px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.92);
  animation: boot-spin 880ms linear infinite;
}

body.boot-complete .boot-screen {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  overflow: hidden;
  color: #fff;
  background: inherit;
  isolation: isolate;
  transition:
    opacity 520ms cubic-bezier(0.2, 0.85, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.85, 0.2, 1),
    visibility 520ms ease;
}

.lock-screen-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 9, 13, 0.18), rgba(4, 9, 13, 0.52)),
    radial-gradient(circle at 50% 108%, rgba(255, 255, 255, 0.18), transparent 28%);
  backdrop-filter: blur(10px) saturate(1.08);
}

.lock-screen-content {
  display: grid;
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 56px) 46px;
  align-content: space-between;
}

.lock-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(760px, calc(100vw - 36px));
  justify-self: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(14, 23, 30, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(24px) saturate(165%);
  font-size: var(--font-base);
  font-weight: 850;
}

.lock-status-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.92;
}

.lock-status-icons svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.lock-clock-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 5vh;
  text-align: center;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.lock-time {
  font-size: clamp(76px, 14vw, 164px);
  font-weight: 850;
  line-height: 0.86;
  letter-spacing: 0;
}

.lock-date {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 760;
}

.lock-unlock {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px 0 24px;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(14, 23, 30, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(26px) saturate(170%);
  font-size: var(--font-base);
  font-weight: 850;
}

.lock-unlock svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.5;
}

.lock-unlock:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
    rgba(14, 23, 30, 0.34);
  transform: translateY(-1px);
}

body.lock-dismissed .lock-screen {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-18px) scale(1.015);
  pointer-events: none;
}

.notification-layer {
  position: fixed;
  right: 22px;
  bottom: 116px;
  z-index: 4200;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.vibe-notification {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: rgba(255, 250, 241, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(15, 27, 34, 0.78);
  box-shadow:
    0 22px 48px rgba(8, 16, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px) saturate(150%);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.vibe-notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notification-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(255, 250, 241, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(63, 152, 238, 0.92), rgba(33, 197, 162, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.vibe-notification strong,
.vibe-notification p {
  margin: 0;
}

.vibe-notification strong {
  display: block;
  margin-bottom: 3px;
  font-size: var(--font-sm);
  font-weight: 880;
}

.vibe-notification p {
  color: rgba(255, 250, 241, 0.72);
  font-size: var(--font-sm);
  font-weight: 650;
  line-height: 1.35;
}

.vibe-notification button {
  min-height: 34px;
  padding: 0 12px;
  color: rgba(20, 32, 45, 0.92);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 241, 0.92);
  font-size: var(--font-xs);
  font-weight: 850;
}

button {
  border: 0;
  font: inherit;
  cursor: url("cursor-pointer.svg") 5 3, pointer;
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    color var(--ease),
    opacity var(--ease),
    transform var(--ease);
}

button:focus-visible {
  outline: 3px solid rgba(255, 250, 241, 0.78);
  outline-offset: 3px;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 80, 92, 0.5) rgba(255, 255, 255, 0.16);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    rgba(35, 80, 92, 0.56);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(34, 106, 120, 0.78);
  background-clip: padding-box;
}

.desktop {
  position: relative;
  height: 100vh;
  padding-top: 80px;
}

.desktop.wordmark-hidden .bg-wordmark {
  opacity: 0;
}

.desktop.icons-hidden .desktop-icons,
.desktop.icons-hidden .desktop-files {
  display: none;
}

.bg-wordmark,
.desktop-icons,
.desktop-files,
.widget-layer,
.window {
  filter: brightness(var(--desktop-brightness));
}

body.battery-saver .bg-wordmark {
  opacity: 0.42;
}

body.battery-saver .window,
body.battery-saver .widget {
  box-shadow: var(--shadow-soft);
}

.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(0deg, rgba(18, 36, 44, 0.2), transparent 46%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 92px
    );
}

.bg-wordmark {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(920px, 92vw);
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  user-select: none;
  color: rgba(255, 250, 241, 0.58);
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: clamp(92px, 18vw, 230px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 46px rgba(29, 50, 58, 0.24),
    -8px 8px 0 rgba(34, 106, 120, 0.1);
}

.bg-wordmark::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 14%;
  top: 59%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.42), transparent);
  filter: blur(1px);
}

.top-island {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 1000;
  display: grid;
  grid-template-columns: max-content minmax(180px, 1fr) max-content;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  width: min(740px, calc(100% - 36px));
  min-height: 52px;
  padding: 7px 14px;
  transform: translateX(-50%);
  color: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--bar-border);
  border-radius: var(--bar-radius);
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, var(--bar-glass-light), rgba(255, 255, 255, 0.04)),
    var(--bar-glass);
  box-shadow:
    var(--bar-shadow),
    var(--bar-inner),
    inset 0 -1px 0 rgba(12, 25, 32, 0.12);
  backdrop-filter: var(--bar-blur);
  transition: box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.top-island::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 1px;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.top-island::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 25%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  opacity: 0.28;
}

.brand-chip,
.system-cluster {
  height: 36px;
  border-radius: var(--bar-radius);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  padding: 0 6px 0 10px;
  color: rgba(255, 250, 241, 0.9);
  background: transparent;
}

.brand-name {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.app-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 36px;
  padding: 0 2px;
  border-radius: 999px;
  transition:
    gap 220ms ease,
    padding 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.app-switcher:empty {
  pointer-events: none;
}

.app-switcher.has-minimized {
  padding: 3px 0;
}

.app-switcher.has-minimized:hover {
  gap: 8px;
  padding-inline: 10px;
}

.dock-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  z-index: 1;
  animation: dock-icon-in 190ms ease both;
  transition:
    margin 220ms ease,
    transform 170ms ease,
    opacity 170ms ease;
}

.app-switcher.has-minimized:not(:hover) .dock-icon + .dock-icon {
  margin-left: -20px;
}

.app-switcher.has-minimized .dock-icon:nth-child(1) {
  z-index: 6;
}

.app-switcher.has-minimized .dock-icon:nth-child(2) {
  z-index: 5;
}

.app-switcher.has-minimized .dock-icon:nth-child(3) {
  z-index: 4;
}

.app-switcher.has-minimized .dock-icon:nth-child(4) {
  z-index: 3;
}

.app-switcher.has-minimized .dock-icon:nth-child(5) {
  z-index: 2;
}

.dock-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 8px 14px rgba(10, 22, 28, 0.22));
}

.text-dock-icon {
  color: rgba(255, 250, 241, 0.96);
  font-size: 18px;
  font-weight: 900;
  background: transparent;
  filter: drop-shadow(0 8px 14px rgba(10, 22, 28, 0.22));
}

.dock-icon:hover {
  transform: translateY(-2px) scale(1.08);
}

.app-switcher.has-minimized:hover .dock-icon {
  animation:
    dock-icon-in 190ms ease both,
    dock-hover-float 1050ms ease-in-out 700ms infinite;
}

.app-switcher.has-minimized:hover .dock-icon:nth-child(2) {
  animation-delay: 0ms, 780ms;
}

.app-switcher.has-minimized:hover .dock-icon:nth-child(3) {
  animation-delay: 0ms, 860ms;
}

.app-switcher.has-minimized:hover .dock-icon:nth-child(4) {
  animation-delay: 0ms, 940ms;
}

.dock-icon:active {
  transform: translateY(0) scale(0.98);
}

.dock-icon.pending {
  opacity: 0;
  pointer-events: none;
}

.dock-icon.restoring {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px) scale(0.72);
}

.system-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px 0 6px;
  color: rgba(255, 250, 241, 0.82);
  background: transparent;
}

.clock {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  min-width: 66px;
  text-align: right;
  letter-spacing: 0;
}

.desktop-icons {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.desktop-files {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
}

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

.widget {
  position: absolute;
  width: 210px;
  min-height: 128px;
  min-width: 160px;
  max-width: 420px;
  max-height: 420px;
  padding: 16px;
  overflow: hidden;
  resize: both;
  overflow: auto;
  color: rgba(255, 250, 241, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(23, 39, 46, 0.34);
  box-shadow:
    0 18px 38px rgba(19, 34, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px) saturate(155%);
  pointer-events: auto;
  user-select: none;
  animation: widget-in 180ms ease both;
}

.widget.size-small {
  width: 170px;
  min-height: 116px;
}

.widget.size-medium {
  width: 230px;
  min-height: 150px;
}

.widget.size-large {
  width: 310px;
  min-height: 220px;
}

body.placement-mode .desktop {
  cursor: crosshair;
}

.placement-hint {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 3900;
  display: none;
  padding: 10px 14px;
  color: rgba(255, 250, 241, 0.94);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(20, 34, 42, 0.72);
  box-shadow: 0 14px 32px rgba(10, 22, 28, 0.24);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

body.placement-mode .placement-hint {
  display: block;
  animation: menu-in 150ms ease both;
}

.clock-display {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock-date {
  margin: 0;
  color: rgba(255, 250, 241, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.analog-clock-face {
  position: relative;
  width: min(142px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 241, 0.98) 0 4px, transparent 5px),
    radial-gradient(circle at 40% 26%, rgba(255, 255, 255, 0.48), transparent 30%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.26), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 2px 14px rgba(255, 255, 255, 0.2),
    inset 0 -12px 24px rgba(8, 20, 28, 0.14),
    0 18px 32px rgba(10, 22, 28, 0.13);
}

.analog-clock-face::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: 50%;
}

.clock-tick {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 241, 0.7);
  transform: translateX(-50%) rotate(var(--tick-rotate)) translateY(0);
  transform-origin: 50% 66px;
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 241, 0.92);
  transform-origin: 50% 100%;
}

.clock-hand.hour {
  height: 34px;
  transform: translateX(-50%) rotate(var(--hour-rotation, 0deg));
}

.clock-hand.minute {
  height: 48px;
  width: 2.5px;
  transform: translateX(-50%) rotate(var(--minute-rotation, 0deg));
}

.clock-hand.second {
  height: 52px;
  width: 1.5px;
  background: #f5c05c;
  transform: translateX(-50%) rotate(var(--second-rotation, 0deg));
}

.calendar-month {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 850;
}

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

.calendar-grid span {
  display: grid;
  height: 20px;
  place-items: center;
  color: rgba(255, 250, 241, 0.78);
  font-size: 10px;
  font-weight: 750;
  border-radius: 7px;
}

.calendar-grid .today {
  color: #17303a;
  background: rgba(255, 250, 241, 0.88);
}

.widget.size-small .calendar-grid span {
  height: 17px;
  font-size: 9px;
}

.widget.size-large .calendar-grid span {
  height: 25px;
}

.context-menu {
  position: fixed;
  z-index: 4000;
  display: none;
  width: 248px;
  padding: 6px;
  color: #1d2832;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  background: rgba(246, 248, 250, 0.88);
  box-shadow: 0 18px 42px rgba(10, 22, 28, 0.22);
  backdrop-filter: blur(22px) saturate(165%);
}

.context-menu.open {
  display: block;
  animation: menu-in 120ms ease both;
}

.context-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  border-radius: 6px;
  background: transparent;
}

.context-menu button:hover {
  color: #fff;
  background: #2878d7;
}

.context-menu button:disabled {
  cursor: not-allowed;
  color: rgba(29, 40, 50, 0.42);
}

.context-menu button:disabled:hover {
  color: rgba(29, 40, 50, 0.42);
  background: transparent;
}

.widget-menu {
  width: 190px;
}

.file-menu,
.app-menu {
  width: 178px;
}

.widget-menu .danger,
.file-menu .danger,
.app-menu .danger {
  color: #b42318;
}

.widget-menu .danger:hover,
.file-menu .danger:hover,
.app-menu .danger:hover {
  color: #fff;
  background: #d92d20;
}

.context-menu kbd {
  color: rgba(29, 40, 50, 0.48);
  font: inherit;
}

.context-menu button:hover kbd {
  color: rgba(255, 255, 255, 0.82);
}

.context-line {
  height: 1px;
  margin: 5px 6px;
  background: rgba(29, 40, 50, 0.12);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3900;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(14, 24, 30, 0.26);
  backdrop-filter: blur(10px);
}

.modal-backdrop.open {
  display: grid;
  animation: menu-in 150ms ease both;
}

.customize-modal {
  width: min(700px, calc(100vw - 32px));
  color: #172431;
  border: 1px solid rgba(20, 32, 45, 0.12);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 28px 80px rgba(10, 22, 28, 0.28);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid rgba(20, 32, 45, 0.08);
}

.modal-header p,
.modal-header h2,
.modal-panel h3,
.modal-panel p {
  margin: 0;
}

.modal-header p {
  margin-bottom: 4px;
  color: rgba(23, 36, 49, 0.5);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.modal-header h2 {
  font-size: 28px;
  line-height: 1.1;
}

.modal-close {
  width: 34px;
  height: 34px;
  color: rgba(23, 36, 49, 0.72);
  border-radius: 50%;
  background: rgba(20, 32, 45, 0.08);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 95, 87, 0.82);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.modal-panel {
  min-height: 205px;
  padding: 18px;
  border: 1px solid rgba(20, 32, 45, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.modal-panel h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.modal-panel p {
  margin-bottom: 18px;
  color: rgba(23, 36, 49, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

.modal-actions button {
  height: 38px;
  padding: 0 12px;
  color: #172431;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  border-radius: 12px;
  background: rgba(20, 32, 45, 0.06);
}

.modal-actions button:hover {
  background: rgba(40, 120, 215, 0.12);
}

.text-icon {
  color: rgba(255, 250, 241, 0.96);
  font-size: 24px;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(34, 106, 120, 0.92), rgba(20, 35, 45, 0.86));
}

.app-textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  color: var(--text);
  border: 1px solid rgba(20, 32, 45, 0.12);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.72);
}

.surf-window {
  min-width: 520px;
  min-height: 420px;
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 250, 251, 0.86)),
    rgba(255, 255, 255, 0.64);
}

.surf-window .title-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.34)),
    rgba(246, 250, 251, 0.52);
  backdrop-filter: blur(18px) saturate(150%);
}

.surf-title-logo {
  display: grid;
  place-items: center;
}

.surf-title-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 7px 10px rgba(31, 43, 55, 0.14));
  transition: opacity 160ms ease, transform 160ms ease;
}

.surf-title-logo:hover img {
  opacity: 1;
  transform: translateY(-1px);
}

.surf-body {
  display: grid;
  grid-template-rows: auto auto 2px minmax(0, 1fr);
  height: 516px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 248, 249, 0.95)),
    #f8fafc;
}

.surf-tabbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    rgba(240, 248, 250, 0.56);
}

.surf-tab-list {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
}

.surf-tab,
.surf-new-tab {
  min-height: 34px;
  color: rgba(20, 32, 45, 0.62);
  border: 1px solid transparent;
  border-radius: 14px 14px 6px 6px;
  background: rgba(31, 43, 55, 0.045);
}

.surf-tab {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 18px;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  max-width: 210px;
  padding: 0 8px 0 12px;
  text-align: left;
}

.surf-tab.active {
  color: rgba(20, 32, 45, 0.9);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 10px 22px rgba(31, 43, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.surf-tab span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--font-sm);
  font-weight: 750;
}

.surf-tab-close {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: rgba(20, 32, 45, 0.44);
  font-size: 13px;
  line-height: 1;
}

.surf-tab-close:hover {
  color: rgba(20, 32, 45, 0.9);
  background: rgba(31, 43, 55, 0.08);
}

.surf-new-tab {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.surf-new-tab svg {
  width: 16px;
  height: 16px;
}

.window.fullscreen .surf-body {
  height: calc(100vh - 138px);
}

.surf-toolbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(31, 43, 55, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56)),
    rgba(240, 248, 250, 0.56);
  backdrop-filter: blur(18px) saturate(145%);
}

.surf-nav {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(31, 43, 55, 0.05);
  border-radius: var(--radius-pill);
  background: rgba(31, 43, 55, 0.035);
}

.surf-nav button,
.surf-go {
  display: grid;
  place-items: center;
  color: rgba(20, 32, 45, 0.7);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.46);
  transition:
    background 170ms ease,
    border-color 170ms ease,
    color 170ms ease,
    transform 170ms ease,
    box-shadow 170ms ease;
}

.surf-nav button {
  width: 32px;
  height: 32px;
}

.surf-nav button:disabled {
  opacity: 0.36;
  transform: none;
}

.surf-nav svg,
.surf-go svg,
.surf-address svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.surf-address {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  color: rgba(20, 32, 45, 0.46);
  border: 1px solid rgba(31, 43, 55, 0.075);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(31, 43, 55, 0.035);
}

.surf-address:focus-within {
  border-color: rgba(31, 122, 140, 0.34);
  box-shadow:
    0 0 0 3px rgba(31, 122, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.surf-address input {
  width: 100%;
  min-width: 0;
  color: rgba(20, 32, 45, 0.84);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--font-md);
  font-weight: 650;
}

.surf-go {
  width: 40px;
  height: 40px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    #1f7a8c;
  box-shadow: 0 10px 20px rgba(31, 122, 140, 0.22);
}

.surf-nav button:hover,
.surf-tab:hover,
.surf-new-tab:hover {
  color: rgba(20, 32, 45, 0.9);
  border-color: rgba(31, 122, 140, 0.12);
  background: rgba(31, 122, 140, 0.1);
  transform: translateY(-1px);
}

.surf-go:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    #167d8f;
}

.surf-progress {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.surf-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, #1f7a8c, #68c2d0);
  opacity: 0;
  transform: translateX(-100%);
}

.surf-progress.loading::before {
  opacity: 1;
  animation: surf-loading 1100ms ease-in-out infinite;
}

.surf-frame-shell {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  margin: 12px;
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, #fffdf8, #eef8fb 56%, #f8fbfc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 42px rgba(31, 43, 55, 0.08);
}

.surf-status {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  color: rgba(20, 32, 45, 0.64);
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(31, 43, 55, 0.08);
  font-size: var(--font-xs);
  font-weight: 750;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.surf-status.show {
  opacity: 1;
  transform: translateY(0);
}

.surf-start-page,
.surf-error-state {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.surf-start-page {
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 18%, rgba(31, 122, 140, 0.12), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(238, 195, 116, 0.13), transparent 28%),
    linear-gradient(135deg, #fffdf8, #eef8fb 62%, #f8fbfc);
  transition: opacity 190ms ease, transform 190ms ease;
}

.surf-start-page.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.99);
}

.surf-bg-glow {
  position: absolute;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.22;
}

.surf-bg-glow.one {
  left: 8%;
  bottom: 10%;
  background: #80c7d2;
}

.surf-bg-glow.two {
  right: 10%;
  top: 12%;
  background: #f1d28d;
}

.surf-start-center {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(620px, 100%);
  justify-items: center;
  gap: 16px;
}

.surf-start-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(31, 43, 55, 0.16));
}

.surf-start-center h2 {
  margin: 0 0 2px;
  color: rgba(20, 32, 45, 0.9);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
}

.surf-start-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  width: min(540px, 100%);
  min-height: 54px;
  padding: 7px 8px 7px 16px;
  color: rgba(20, 32, 45, 0.42);
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 20px 42px rgba(31, 43, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.surf-start-search input {
  width: 100%;
  min-width: 0;
  color: rgba(20, 32, 45, 0.86);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--font-base);
  font-weight: 650;
}

.surf-start-search button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #1f7a8c;
}

.surf-start-search svg {
  width: 18px;
  height: 18px;
}

.surf-error-state {
  display: none;
  place-items: center;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(31, 122, 140, 0.12), transparent 30%),
    linear-gradient(135deg, #fffdf8, #f1f8fa);
}

.surf-error-state.show {
  display: grid;
}

.surf-error-state img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 14px 22px rgba(31, 43, 55, 0.14));
}

.surf-error-state h2 {
  margin: 0 0 8px;
  color: rgba(20, 32, 45, 0.9);
  font-size: 24px;
  font-weight: 850;
}

.surf-error-state p {
  max-width: 380px;
  margin: 0 auto 18px;
  color: rgba(20, 32, 45, 0.58);
  font-size: var(--font-base);
  font-weight: 600;
  line-height: 1.45;
}

.surf-error-state div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.surf-error-state button {
  min-height: 36px;
  padding: 0 14px;
  color: rgba(20, 32, 45, 0.84);
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

.surf-error-state button:first-child {
  color: #ffffff;
  background: #1f7a8c;
}

@keyframes surf-loading {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(230%);
  }
}

.surf-frame-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
  opacity: 0;
  transform: scale(0.996);
  transition: opacity 190ms ease, transform 190ms ease;
}

.surf-frame-shell iframe.show {
  opacity: 1;
  transform: scale(1);
}

.surf-frame-shell iframe.loading {
  opacity: 0.28;
}

.vibestore-window {
  min-width: 560px;
  min-height: 430px;
}

.vibestore-window .title-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.3)),
    rgba(246, 244, 255, 0.5);
}

.vibestore-title-logo {
  display: grid;
  place-items: center;
}

.vibestore-title-logo img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(64, 54, 120, 0.16));
}

.calculator-title-logo {
  display: grid;
  place-items: center;
}

.calculator-title-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(31, 43, 55, 0.12));
}

.vibestore-body {
  display: block;
  height: 516px;
  min-height: 0;
  padding: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 82% 10%, rgba(48, 139, 163, 0.12), transparent 30%),
    linear-gradient(135deg, #fffaf4, #f5f7f5 58%, #f8fbff);
}

.window.fullscreen .vibestore-body {
  height: calc(100vh - 138px);
}

.store-simple {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.store-simple-hero,
.store-app-card {
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(31, 43, 55, 0.08);
}

.store-simple-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.store-simple-hero img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(64, 54, 120, 0.16));
}

.store-simple-hero p,
.store-simple-hero h2,
.store-simple-hero span,
.store-app-card strong,
.store-app-card span {
  margin: 0;
}

.store-simple-hero p {
  margin-bottom: 6px;
  color: rgba(20, 32, 45, 0.5);
  font-size: var(--font-xs);
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-simple-hero h2 {
  max-width: 520px;
  margin-bottom: 8px;
  color: rgba(20, 32, 45, 0.92);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 860;
  line-height: 1.06;
}

.store-simple-hero span {
  color: rgba(20, 32, 45, 0.58);
  font-size: var(--font-base);
  font-weight: 650;
}

.store-app-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  transition:
    border-color var(--ease),
    background var(--ease),
    transform var(--ease);
}

.store-app-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 10px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(45, 111, 133, 0), rgba(45, 111, 133, 0.78), rgba(45, 111, 133, 0));
  opacity: 0;
  transform: translateX(-72%);
  pointer-events: none;
}

.store-app-card:hover {
  border-color: rgba(31, 43, 55, 0.12);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.store-app-card.installing {
  border-color: rgba(45, 111, 133, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.store-app-card.installing::after {
  opacity: 1;
  animation: store-install-progress 1.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.store-app-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(31, 43, 55, 0.12));
}

.store-app-card strong {
  display: block;
  color: rgba(20, 32, 45, 0.92);
  font-size: var(--font-lg);
  font-weight: 850;
}

.store-app-card span {
  display: block;
  margin-top: 3px;
  color: rgba(20, 32, 45, 0.55);
  font-size: var(--font-sm);
  font-weight: 650;
}

.store-app-card button {
  min-width: 92px;
  height: 38px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c8aa1, #2d6f85);
  box-shadow: 0 12px 24px rgba(45, 111, 133, 0.22);
  font-weight: 850;
  transition:
    filter var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}

.store-app-card button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(45, 111, 133, 0.26);
}

.store-app-card button:disabled {
  cursor: wait;
  filter: none;
  transform: none;
  opacity: 0.84;
}

.store-app-card button[data-installed="true"] {
  color: rgba(20, 32, 45, 0.78);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(31, 43, 55, 0.08);
}

.calculator-window {
  min-width: 300px;
}

.calculator-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(145deg, #f8f4ea, #eef4f2);
}

.calculator-display {
  display: block;
  min-height: 74px;
  padding: 18px 16px;
  overflow: hidden;
  color: rgba(20, 32, 45, 0.94);
  border: 1px solid rgba(31, 43, 55, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: 36px;
  font-weight: 780;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calculator-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calculator-keys button {
  height: 54px;
  color: rgba(20, 32, 45, 0.86);
  border: 1px solid rgba(31, 43, 55, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(31, 43, 55, 0.06);
  font-size: 18px;
  font-weight: 800;
  transition:
    background var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}

.calculator-keys button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(31, 43, 55, 0.08);
}

.calculator-keys button:active {
  transform: scale(0.97);
}

.calculator-keys .operator {
  color: #fff;
  background: linear-gradient(135deg, #7e9d79, #2c8aa1);
}

.calculator-keys .operator:hover {
  color: #fff;
  background: linear-gradient(135deg, #6e8d65, #1f778d);
  box-shadow: 0 14px 26px rgba(44, 138, 161, 0.24);
}

.calculator-keys .equals {
  color: #fff;
  background: linear-gradient(135deg, #253141, #2d6f85);
}

.calculator-keys .equals:hover {
  color: #fff;
  background: linear-gradient(135deg, #172231, #245f72);
  box-shadow: 0 14px 28px rgba(23, 34, 49, 0.24);
}

.calculator-keys .wide {
  grid-column: span 2;
}

.window.fullscreen .calculator-body {
  grid-template-rows: minmax(92px, 24vh) minmax(0, 1fr);
  height: calc(100vh - 138px);
}

.window.fullscreen .calculator-display {
  display: grid;
  align-items: end;
  font-size: clamp(38px, 7vw, 76px);
}

.window.fullscreen .calculator-keys {
  grid-auto-rows: minmax(58px, 1fr);
}

.window.fullscreen .calculator-keys button {
  height: auto;
  min-height: 58px;
  font-size: clamp(18px, 2.2vw, 28px);
}

@keyframes store-install-progress {
  0% {
    transform: translateX(-78%);
  }

  55% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(78%);
  }
}

.store-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 12px;
  border-right: 1px solid rgba(31, 43, 55, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(18px);
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 6px;
}

.store-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(64, 54, 120, 0.16));
}

.store-brand strong,
.store-brand span {
  display: block;
}

.store-brand strong {
  color: rgba(20, 32, 45, 0.92);
  font-size: var(--font-base);
  font-weight: 850;
}

.store-brand span {
  color: rgba(20, 32, 45, 0.5);
  font-size: var(--font-xs);
  font-weight: 650;
}

.store-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  color: rgba(20, 32, 45, 0.68);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: var(--font-md);
  font-weight: 750;
}

.store-sidebar button svg {
  width: 17px;
  height: 17px;
}

.store-sidebar button:hover,
.store-sidebar button.active {
  color: rgba(20, 32, 45, 0.92);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(64, 54, 120, 0.08);
}

.store-main {
  min-width: 0;
  overflow: auto;
  padding: 22px;
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: center;
  gap: 18px;
  min-height: 178px;
  padding: 26px;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #7257d8, #2b95b6 62%, #1f7a8c);
  box-shadow:
    0 24px 52px rgba(64, 54, 120, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.store-hero p,
.store-hero h2,
.store-hero span,
.store-section-title h3,
.store-section-title span,
.store-empty h3,
.store-empty p {
  margin: 0;
}

.store-hero p {
  margin-bottom: 8px;
  font-size: var(--font-xs);
  font-weight: 850;
  text-transform: uppercase;
  opacity: 0.76;
}

.store-hero h2 {
  max-width: 430px;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 880;
  line-height: 1.02;
}

.store-hero span {
  display: block;
  max-width: 420px;
  font-size: var(--font-base);
  font-weight: 650;
  line-height: 1.45;
  opacity: 0.82;
}

.store-hero img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 20px 24px rgba(20, 32, 45, 0.22));
}

.store-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}

.store-section-title h3 {
  color: rgba(20, 32, 45, 0.88);
  font-size: var(--font-xl);
  font-weight: 850;
}

.store-section-title span {
  color: rgba(20, 32, 45, 0.48);
  font-size: var(--font-sm);
  font-weight: 700;
}

.store-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-collection-grid article {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid rgba(31, 43, 55, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(64, 54, 120, 0.08);
}

.store-collection-grid svg {
  width: 24px;
  height: 24px;
  color: #7257d8;
}

.store-collection-grid strong {
  color: rgba(20, 32, 45, 0.9);
  font-size: var(--font-lg);
  font-weight: 850;
}

.store-collection-grid span {
  color: rgba(20, 32, 45, 0.56);
  font-size: var(--font-sm);
  font-weight: 650;
  line-height: 1.45;
}

.store-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 26px;
  text-align: center;
  border: 1px dashed rgba(31, 43, 55, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
}

.store-empty img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.store-empty h3 {
  color: rgba(20, 32, 45, 0.86);
  font-size: var(--font-lg);
  font-weight: 850;
}

.store-empty p {
  max-width: 460px;
  color: rgba(20, 32, 45, 0.54);
  font-size: var(--font-base);
  font-weight: 650;
  line-height: 1.5;
}

.app-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.notes-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 360px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.notepad-menu,
.notepad-toolbar,
.notepad-status {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #20242a;
  border-bottom: 1px solid rgba(22, 29, 37, 0.08);
  background: #fbfbfb;
}

.notepad-menu {
  min-height: 34px;
  padding: 3px 8px;
}

.notepad-menu button {
  height: 27px;
  padding: 0 10px;
  color: #20242a;
  font-size: 12px;
  border-radius: 5px;
  background: transparent;
}

.notepad-menu button:hover,
.notepad-menu button.active {
  background: rgba(0, 95, 184, 0.1);
}

.notepad-toolbar {
  justify-content: space-between;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(32, 36, 42, 0.68);
  font-size: 12px;
}

.notepad-toolbar span:first-child {
  color: #20242a;
  font-weight: 700;
}

.notepad-editor {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px 18px;
  resize: none;
  color: #111827;
  border: 0;
  outline: 0;
  background: #ffffff;
  font: 14px/1.55 Consolas, "Courier New", monospace;
  tab-size: 2;
}

.notepad-editor.no-wrap {
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
}

.notepad-status {
  justify-content: flex-end;
  gap: 0;
  min-height: 28px;
  border-top: 1px solid rgba(22, 29, 37, 0.08);
  border-bottom: 0;
  color: rgba(32, 36, 42, 0.68);
  font-size: 12px;
}

.notepad-status span {
  min-width: 86px;
  padding: 0 12px;
  border-left: 1px solid rgba(22, 29, 37, 0.08);
  text-align: center;
}

.files-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  background: #f8f8f5;
}

.files-sidebar {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 18px 12px;
  border-right: 1px solid rgba(31, 43, 55, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28)),
    rgba(230, 233, 229, 0.66);
}

.files-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 11px;
  color: rgba(20, 32, 45, 0.74);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  border-radius: 8px;
  background: transparent;
}

.files-sidebar button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2;
}

.files-sidebar button:hover,
.files-sidebar button.active {
  color: #15212c;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(31, 43, 55, 0.04);
}

.files-main {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(139, 184, 202, 0.08), transparent 30%),
    #fdfbf7;
}

.files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 13px;
  border-bottom: 1px solid rgba(31, 43, 55, 0.07);
  background: rgba(255, 255, 255, 0.68);
}

.files-toolbar h3,
.files-toolbar p {
  margin: 0;
}

.files-toolbar h3 {
  font-size: 21px;
  font-weight: 850;
  line-height: 1.1;
}

.files-toolbar p {
  margin-top: 3px;
  color: rgba(20, 32, 45, 0.48);
  font-size: 12px;
  font-weight: 750;
}

.files-actions {
  display: flex;
  gap: 8px;
}

.files-actions button {
  height: 32px;
  padding: 0 13px;
  color: #172431;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(31, 43, 55, 0.055);
  transition: background 160ms ease, transform 160ms ease;
}

.files-actions button:hover {
  background: rgba(83, 139, 160, 0.16);
  transform: translateY(-1px);
}

.files-actions button:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.files-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 9px 22px;
  color: rgba(31, 43, 55, 0.64);
  border-bottom: 1px solid rgba(31, 43, 55, 0.06);
  background: rgba(251, 250, 246, 0.86);
}

.files-selection-bar span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-selection-bar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.files-selection-bar button {
  height: 28px;
  padding: 0 11px;
  color: #1f2b37;
  font-size: 12px;
  font-weight: 800;
  border-radius: 9px;
  background: rgba(31, 43, 55, 0.055);
}

.files-selection-bar button:hover {
  background: rgba(83, 139, 160, 0.15);
}

.files-selection-bar button:disabled {
  opacity: 0.34;
  pointer-events: none;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  align-content: start;
  gap: 18px 14px;
  padding: 24px 22px;
  overflow: auto;
}

.file-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 102px;
  padding: 10px 8px;
  color: #172431;
  border-radius: 14px;
  background: transparent;
  transition: background 150ms ease, transform 150ms ease;
}

.file-item:hover,
.file-item.selected {
  background: rgba(96, 145, 161, 0.11);
}

.file-item:hover {
  transform: translateY(-1px);
}

.file-icon {
  display: grid;
  width: 50px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  border-radius: 13px;
  box-shadow: 0 10px 18px rgba(31, 43, 55, 0.11);
}

.file-icon.folder {
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.file-icon.folder::before {
  display: none;
}

.file-icon.folder img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(31, 43, 55, 0.16));
}

.file-icon.file {
  color: #527e98;
  background:
    linear-gradient(135deg, transparent 0 78%, rgba(82, 126, 152, 0.2) 78%),
    #ffffff;
  border: 1px solid rgba(82, 126, 152, 0.18);
}

.file-glyph {
  position: relative;
  display: grid;
  width: 28px;
  height: 34px;
  align-content: center;
  gap: 4px;
  padding: 8px 6px 6px;
  border: 1.5px solid rgba(82, 126, 152, 0.45);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f2f7f8);
  box-shadow: 0 5px 10px rgba(31, 43, 55, 0.08);
}

.file-glyph::after {
  content: "";
  position: absolute;
  top: -1.5px;
  right: -1.5px;
  width: 10px;
  height: 10px;
  border-left: 1.5px solid rgba(82, 126, 152, 0.45);
  border-bottom: 1.5px solid rgba(82, 126, 152, 0.45);
  border-radius: 0 6px 0 4px;
  background: #e4eef2;
}

.file-glyph span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(82, 126, 152, 0.54);
}

.file-name {
  width: 100%;
  min-height: 28px;
  color: rgba(20, 32, 45, 0.82);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: anywhere;
}

.rename-input {
  display: block;
  min-height: 24px;
  padding: 3px 5px;
  color: #172431;
  border: 1px solid rgba(45, 118, 189, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(45, 118, 189, 0.12);
  font: inherit;
  outline: 0;
}

.files-empty {
  grid-column: 1 / -1;
  margin-top: 52px;
  color: rgba(20, 32, 45, 0.46);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.desktop-icon,
.desktop-file-icon {
  width: 84px;
  padding: 6px 0;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.desktop-icon,
.desktop-file-icon {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
}

.desktop-icon.dragging-icon,
.desktop-file-icon.dragging-file {
  z-index: 30;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 28px rgba(23, 37, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px) saturate(135%);
  transform: scale(1.03);
}

.desktop-icon:hover,
.desktop-file-icon:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.11)),
    rgba(83, 129, 145, 0.1);
  box-shadow:
    0 10px 24px rgba(23, 37, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px) saturate(130%);
}

.desktop-icon:hover .icon-frame,
.desktop-file-icon:hover .file-icon {
  transform: translateY(-2px);
}

.desktop-file-icon.selected {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.13)),
    rgba(83, 129, 145, 0.12);
  box-shadow:
    0 10px 24px rgba(23, 37, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px) saturate(130%);
}

.desktop-file-icon .file-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 7px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  transition: transform 160ms ease;
}

.desktop-file-icon .file-icon.folder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  filter: drop-shadow(0 10px 16px rgba(23, 37, 52, 0.18));
}

.desktop-file-icon .file-icon.file .file-glyph {
  width: 32px;
  height: 38px;
}

.icon-frame {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 7px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.desktop-icon.app-open .icon-frame {
  box-shadow: none;
}

.icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: drop-shadow(0 10px 18px rgba(23, 37, 52, 0.24));
}

.file-app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.file-app-icon img {
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 12px 18px rgba(23, 37, 52, 0.2));
}

.notes-app-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 5px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.notes-app-icon img {
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 10px 16px rgba(23, 37, 52, 0.18));
}

.logo-app-icon {
  overflow: visible;
  background: transparent;
}

.logo-app-icon img {
  object-fit: cover;
  border-radius: 14px;
  filter: drop-shadow(0 10px 18px rgba(23, 37, 52, 0.22));
}

.vibestore-app-icon {
  overflow: visible;
  background: transparent;
}

.vibestore-app-icon img {
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 10px 16px rgba(64, 54, 120, 0.18));
}

.calculator-app-icon {
  overflow: visible;
  background: transparent;
}

.calculator-app-icon img {
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 10px 16px rgba(31, 43, 55, 0.18));
}

.desktop-icon[hidden] {
  display: none;
}

.desktop-icon strong,
.desktop-file-icon strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  overflow-wrap: anywhere;
  line-height: 1.2;
  max-height: 30px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

.window {
  position: absolute;
  z-index: 1;
  display: none;
  min-width: 290px;
  min-height: 220px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
  transform-origin: center center;
  will-change: transform, opacity, clip-path;
}

.window.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.window.closing {
  display: block;
  pointer-events: none;
  animation: window-out 150ms ease both;
}

.window.focused {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 30px 74px rgba(19, 34, 43, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.window.fullscreen {
  max-width: none;
  border-radius: 20px;
  resize: none;
}

.window.fullscreening {
  transition:
    left 280ms cubic-bezier(0.22, 1, 0.36, 1),
    top 280ms cubic-bezier(0.22, 1, 0.36, 1),
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 280ms ease,
    box-shadow 280ms ease;
  will-change: left, top, width, height;
}

.window.fullscreen .window-body {
  height: calc(100vh - 138px);
  min-height: 0;
}

.window.fullscreen .files-body {
  min-height: 0;
  height: calc(100vh - 138px);
}

.window.fullscreen .notes-body {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: calc(100vh - 138px);
  min-height: 0;
}

.window.minimizing,
.window.restoring {
  pointer-events: none;
}

.window-resize-handle {
  position: absolute;
  z-index: 5;
  opacity: 0;
  pointer-events: auto;
}

.resize-n,
.resize-s {
  left: 12px;
  right: 12px;
  height: 10px;
  cursor: ns-resize;
}

.resize-n { top: -2px; }
.resize-s { bottom: -2px; }

.resize-e,
.resize-w {
  top: 12px;
  bottom: 12px;
  width: 10px;
  cursor: ew-resize;
}

.resize-e { right: -2px; }
.resize-w { left: -2px; }

.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
  width: 16px;
  height: 16px;
}

.resize-ne { top: -2px; right: -2px; cursor: nesw-resize; }
.resize-nw { top: -2px; left: -2px; cursor: nwse-resize; }
.resize-se { right: -2px; bottom: -2px; cursor: nwse-resize; }
.resize-sw { left: -2px; bottom: -2px; cursor: nesw-resize; }

.window.fullscreen .window-resize-handle {
  display: none;
}

.resizing-window,
.resizing-window * {
  cursor: inherit;
  user-select: none;
}

.title-bar {
  height: 42px;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  padding: 0 10px;
  color: rgba(20, 32, 45, 0.76);
  border-bottom: 1px solid rgba(34, 106, 120, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
    rgba(255, 250, 241, 0.4);
  cursor: grab;
  user-select: none;
}

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

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

.light:hover {
  filter: brightness(0.94);
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #28c840;
}

.window-title {
  justify-self: center;
  font-size: 13px;
  font-weight: 800;
}

.title-spacer {
  display: block;
}

.window-body {
  height: calc(100% - 42px);
  padding: 18px;
  overflow: auto;
  background: var(--panel-solid);
}

.dragging,
.dragging .title-bar {
  cursor: grabbing;
}

@keyframes window-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes window-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.975);
  }
}

@keyframes boot-logo-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dock-icon-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.78);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dock-hover-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@keyframes widget-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes liquid-panel-pop {
  from {
    opacity: 0.84;
    transform: translateY(-6px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-liquid-expand {
  from {
    opacity: 0.78;
    transform: translateY(5px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.top-island {
  min-height: 54px;
  padding: 7px 16px;
  gap: clamp(14px, 3.4vw, 52px);
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(25, 42, 50, 0.32);
  box-shadow:
    var(--bar-shadow),
    var(--bar-inner),
    inset 0 -1px 0 rgba(12, 25, 32, 0.14);
}

.top-island:hover {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.21), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(25, 42, 50, 0.33);
  box-shadow:
    var(--bar-shadow),
    var(--bar-inner);
}

.brand-chip {
  padding-inline: 12px 8px;
}

.brand-name {
  font-size: var(--font-md);
  font-weight: 800;
}

.system-cluster {
  gap: 10px;
  min-width: 74px;
  padding-inline: 8px 12px;
}

.system-dock {
  position: fixed;
  top: 17px;
  right: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(24, 40, 48, 0.3);
  box-shadow:
    0 14px 38px rgba(19, 34, 43, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(24px) saturate(165%);
}

.system-dock:hover {
  transform: none;
}

.system-indicators {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  transition:
    background var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.system-dock:hover .system-indicators {
  background: transparent;
}

.status-button {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: rgba(255, 250, 241, 0.84);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
}

.status-button svg,
.system-toggle svg,
.brightness-control svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.25;
}

.status-button:hover {
  color: rgba(255, 250, 241, 0.96);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.status-button.active {
  color: rgba(255, 250, 241, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(18, 31, 38, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-button:active:not(:disabled) {
  transform: none;
}

.status-button.offline {
  opacity: 0.46;
}

.status-icon {
  position: relative;
  display: inline-block;
  color: rgba(255, 250, 241, 0.86);
  flex: 0 0 auto;
}

.wifi-icon {
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-color: currentColor transparent transparent transparent;
  border-radius: 50% 50% 0 0;
}

.wifi-icon::before,
.wifi-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid currentColor;
  border-color: currentColor transparent transparent transparent;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.wifi-icon::before {
  top: 3px;
  width: 10px;
  height: 7px;
}

.wifi-icon::after {
  top: 8px;
  width: 3px;
  height: 3px;
  border: 0;
  background: currentColor;
  border-radius: 50%;
}

.battery-icon {
  width: 19px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
}

.battery-icon::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 2px 2px 0;
}

.battery-icon::after {
  content: "";
  position: absolute;
  inset: 2px 5px 2px 2px;
  background: currentColor;
  border-radius: 2px;
}

.control-icon {
  width: 16px;
  height: 16px;
}

.control-icon::before,
.control-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  height: 4px;
  border: 1.6px solid currentColor;
  border-radius: var(--radius-pill);
}

.control-icon::before {
  top: 2px;
}

.control-icon::after {
  bottom: 2px;
}

.system-panel {
  position: fixed;
  top: 78px;
  right: 22px;
  z-index: 1001;
  display: grid;
  width: min(300px, calc(100vw - 28px));
  gap: 10px;
  padding: 12px;
  color: rgba(255, 252, 246, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)),
    rgba(23, 38, 46, 0.54);
  box-shadow:
    0 24px 60px rgba(10, 22, 28, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(30px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.system-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.system-panel.morphing {
  animation: liquid-panel-pop 190ms ease-out both;
}

.system-panel-header {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 2px;
}

.system-back {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: rgba(255, 252, 246, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
}

.system-back svg {
  width: 15px;
  height: 15px;
}

.system-panel:not([data-mode="control"]) .system-back {
  opacity: 1;
  pointer-events: auto;
}

.system-panel[data-mode="control"] .system-panel-header {
  grid-template-columns: 0 1fr;
}

.system-panel[data-mode="control"] .system-back {
  transform: scale(0.75);
}

.system-panel-header strong {
  display: block;
  font-size: var(--font-base);
  font-weight: 850;
}

.system-panel-header span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 252, 246, 0.58);
  font-size: var(--font-xs);
  font-weight: 650;
}

.system-toggle,
.brightness-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
}

.system-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition:
    min-height 360ms cubic-bezier(0.2, 1.18, 0.34, 1),
    transform 360ms cubic-bezier(0.2, 1.18, 0.34, 1),
    opacity 180ms ease,
    background var(--ease);
}

.wifi-card {
  display: grid;
  gap: 10px;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.battery-card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.wifi-card::before {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(118, 203, 219, 0.18), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.wifi-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.battery-card .system-toggle {
  position: relative;
  z-index: 1;
  width: 100%;
}

.battery-card .system-toggle {
  margin-bottom: 12px;
}

.wifi-card .system-toggle {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 26px rgba(10, 22, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.wifi-readout-card {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  padding: 16px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 26px rgba(10, 22, 28, 0.1);
}

.system-card .system-toggle {
  cursor: url("cursor-pointer.svg") 5 3, pointer;
}

.network-readout,
.battery-readout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 0 3px 2px;
}

.network-readout strong,
.battery-readout strong {
  color: rgba(255, 252, 246, 0.96);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.network-readout span,
.battery-readout span {
  color: rgba(255, 252, 246, 0.68);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.35;
}

.system-panel[data-mode="wifi"] .battery-card,
.system-panel[data-mode="wifi"] .brightness-control {
  display: none;
}

.system-panel[data-mode="battery"] .wifi-card,
.system-panel[data-mode="battery"] .brightness-control {
  display: none;
}

.system-panel[data-mode="wifi"] .wifi-card,
.system-panel[data-mode="battery"] .battery-card {
  min-height: 188px;
  animation: card-liquid-expand 210ms ease-out both;
}

.system-panel[data-mode="wifi"] {
  width: min(340px, calc(100vw - 28px));
}

.system-panel[data-mode="wifi"] .wifi-card {
  min-height: 224px;
}

.system-panel[data-mode="wifi"] .wifi-graph {
  opacity: 0.54;
}

.system-panel[data-mode="wifi"] .network-readout {
  padding-top: 22px;
}

.system-panel[data-mode="control"] .network-readout,
.system-panel[data-mode="control"] .battery-readout {
  max-height: 90px;
  padding-top: 0;
  padding-bottom: 4px;
  opacity: 1;
  overflow: hidden;
}

.system-panel[data-mode="control"] .wifi-graph {
  opacity: 0.34;
}

.system-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.system-toggle.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
}

.system-toggle span,
.brightness-control span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--font-sm);
  font-weight: 750;
}

.system-toggle strong {
  color: rgba(255, 252, 246, 0.58);
  font-size: var(--font-xs);
  font-weight: 800;
}

.brightness-control {
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  padding: 13px 14px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(10, 22, 28, 0.08);
}

.brightness-control input {
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: url("cursor-pointer.svg") 5 3, pointer;
}

.brightness-control input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(118, 203, 219, 0.95), rgba(255, 252, 246, 0.9)),
    rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 2px rgba(10, 22, 28, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.26);
}

.brightness-control input::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #c8f0f5 45%, #2c8aa1);
  box-shadow:
    0 7px 16px rgba(10, 22, 28, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-appearance: none;
}

.brightness-control input::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(118, 203, 219, 0.95), rgba(255, 252, 246, 0.9)),
    rgba(255, 255, 255, 0.18);
}

.brightness-control input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #c8f0f5;
  box-shadow: 0 7px 16px rgba(10, 22, 28, 0.24);
}

.clock {
  min-width: 70px;
  font-size: var(--font-md);
  font-weight: 750;
}

.desktop-icons,
.desktop-files {
  gap: 16px;
}

.desktop-icon,
.desktop-file-icon {
  min-height: 92px;
  padding: 7px 4px;
  border: 1px solid transparent;
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.desktop-file-icon.selected {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.13)),
    rgba(83, 129, 145, 0.12);
  box-shadow:
    0 10px 24px rgba(23, 37, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px) saturate(130%);
}

.desktop-icon:hover,
.desktop-file-icon:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.11)),
    rgba(83, 129, 145, 0.1);
  box-shadow:
    0 10px 24px rgba(23, 37, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px) saturate(130%);
}

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

.desktop-icon strong,
.desktop-file-icon strong {
  color: rgba(20, 32, 45, 0.86);
  font-size: var(--font-sm);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.window {
  border-color: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 241, 0.78)),
    var(--panel);
  box-shadow: var(--shadow-window);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    opacity var(--ease),
    filter var(--ease);
}

.window.open:not(.focused) {
  opacity: 0.97;
}

.window.focused {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-window-focus);
}

.window.focused .title-bar {
  color: rgba(20, 32, 45, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28)),
    rgba(255, 250, 241, 0.52);
}

.title-bar {
  height: 44px;
  padding-inline: 12px;
  border-bottom-color: rgba(20, 32, 45, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
    rgba(255, 250, 241, 0.42);
  backdrop-filter: blur(20px) saturate(145%);
}

.window-title {
  color: inherit;
  font-size: var(--font-md);
  font-weight: 800;
}

.traffic-lights {
  gap: 8px;
}

.light {
  width: 12px;
  height: 12px;
  transition:
    filter var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}

.light:hover {
  filter: brightness(1.03) saturate(1.12);
  transform: scale(1.08);
}

.window-body {
  color: var(--text-primary);
  background: var(--surface);
}

.window-body.files-body,
.window-body.notes-body,
.window-body.vibestore-body {
  padding: 0;
}

.window-body.surf-body {
  padding: 0;
}

.surf-window .window-title {
  display: grid;
  place-items: center;
}

.surf-window .window-title img {
  width: 26px;
  height: 26px;
}

.files-body {
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 390px;
  background: #f6f4ee;
}

.files-sidebar {
  gap: 7px;
  padding: 18px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.32)),
    rgba(226, 233, 229, 0.7);
}

.files-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  color: rgba(20, 32, 45, 0.72);
  font-size: var(--font-md);
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.files-sidebar button:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.46);
}

.files-sidebar button.active {
  color: #14202d;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(31, 43, 55, 0.08);
}

.files-main {
  background:
    radial-gradient(circle at 92% 8%, rgba(139, 184, 202, 0.1), transparent 28%),
    #fdfbf7;
}

.files-toolbar {
  padding: 20px 24px 14px;
  background: rgba(255, 255, 255, 0.62);
}

.files-toolbar h3 {
  font-size: var(--font-xl);
  font-weight: 800;
}

.files-toolbar p {
  color: var(--text-soft);
  font-size: var(--font-sm);
  font-weight: 600;
}

.files-actions button,
.files-selection-bar button,
.modal-actions button,
.notepad-menu button {
  border: 1px solid rgba(31, 43, 55, 0.06);
  border-radius: var(--radius-pill);
  background: rgba(31, 43, 55, 0.055);
}

.files-actions button:hover,
.files-selection-bar button:hover,
.modal-actions button:hover,
.notepad-menu button:hover {
  background: rgba(34, 106, 120, 0.13);
  border-color: rgba(34, 106, 120, 0.12);
}

.files-actions button:disabled,
.files-selection-bar button:disabled {
  color: rgba(31, 43, 55, 0.34);
  background: rgba(31, 43, 55, 0.035);
  border-color: transparent;
  opacity: 1;
}

.files-selection-bar {
  min-height: 50px;
  background: rgba(255, 252, 246, 0.82);
}

.files-selection-bar span {
  font-weight: 750;
}

.files-selection-bar button[data-file-action="delete-selected"]:hover,
.file-menu .danger:hover,
.widget-menu .danger:hover {
  color: #fff;
  background: var(--danger);
}

.files-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 18px;
  padding: 24px;
}

.file-item {
  min-height: 110px;
  padding: 12px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition:
    background var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(31, 43, 55, 0.08);
}

.file-item.selected {
  background: rgba(34, 106, 120, 0.12);
  border-color: rgba(34, 106, 120, 0.18);
  box-shadow:
    0 12px 28px rgba(34, 106, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.file-icon {
  width: 52px;
  height: 48px;
  border-radius: var(--radius-lg);
}

.file-name {
  color: rgba(20, 32, 45, 0.86);
  font-size: var(--font-sm);
  font-weight: 700;
}

.notepad-menu {
  min-height: 42px;
  gap: 8px;
  padding: 7px 12px;
  background: #fbfaf7;
}

.notepad-menu button {
  height: 28px;
  padding: 0 12px;
  color: rgba(32, 36, 42, 0.82);
  font-size: var(--font-sm);
  font-weight: 650;
}

.notepad-menu button.active {
  color: #17303a;
  background: rgba(34, 106, 120, 0.16);
  border-color: rgba(34, 106, 120, 0.16);
}

.notepad-toolbar {
  min-height: 40px;
  padding-inline: 16px;
  background: #fffdfa;
}

.notepad-editor {
  padding: 20px 22px;
  background: #fffefb;
  font: 14px/1.62 Consolas, "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
}

.notepad-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(34, 106, 120, 0.08);
}

.notepad-status {
  min-height: 30px;
  background: #fbfaf7;
}

.notepad-status span {
  color: rgba(32, 36, 42, 0.62);
  font-size: var(--font-sm);
}

.widget {
  padding: 16px;
  color: rgba(255, 252, 246, 0.96);
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(25, 42, 50, 0.38);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition:
    box-shadow var(--ease),
    transform var(--ease),
    border-color var(--ease);
}

.widget:hover {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: none;
}

.widget.locked:hover {
  transform: none;
}

.clock-display {
  margin-bottom: 10px;
  font-size: 40px;
  font-weight: 850;
}

.clock-date {
  color: rgba(255, 252, 246, 0.72);
  font-weight: 650;
}

.calendar-month {
  font-size: var(--font-lg);
  font-weight: 850;
}

.calendar-grid {
  gap: 5px;
}

.calendar-grid span {
  height: 22px;
  color: rgba(255, 252, 246, 0.82);
  font-size: var(--font-xs);
  font-weight: 700;
}

.calendar-grid .weekday {
  height: 16px;
  color: rgba(255, 252, 246, 0.52);
  font-size: 9px;
  text-transform: uppercase;
}

.calendar-grid .calendar-empty {
  opacity: 0;
}

.calendar-grid .today {
  color: #17303a;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 8px 16px rgba(10, 22, 28, 0.14);
}

.context-menu {
  border-color: rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 250, 0.92);
}

.context-menu button {
  border-radius: var(--radius-sm);
  font-weight: 550;
}

.context-menu button:hover {
  background: var(--accent);
}

.customize-modal,
.modal-panel {
  border-radius: var(--radius-xl);
}

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

.app-copy {
  color: var(--text-secondary);
  font-size: var(--font-base);
}

@media (max-width: 1100px) {
  .system-dock {
    top: 76px;
    right: 14px;
  }

  .system-panel {
    top: 134px;
    right: 14px;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .desktop {
    min-height: 100vh;
    padding-top: 82px;
  }

  .top-island {
    grid-template-columns: max-content 1fr max-content;
    gap: 10px;
    width: calc(100% - 20px);
    min-height: 50px;
    padding: 6px 9px;
  }

  .brand-chip {
    padding-left: 8px;
  }

  .brand-name {
    font-size: 12px;
  }

  .dock-icon {
    width: 34px;
    height: 34px;
  }

  .clock {
    min-width: 56px;
    font-size: 12px;
  }

  .system-cluster {
    min-width: 74px;
    padding-inline: 4px 8px;
  }

  .system-dock {
    top: 76px;
    right: 10px;
    min-height: 42px;
    padding: 6px;
  }

  .system-indicators {
    display: inline-flex;
    gap: 4px;
    height: 28px;
    padding-inline: 4px;
  }

  .status-button {
    width: 26px;
    height: 26px;
  }

  .system-panel {
    top: 126px;
    right: 10px;
  }
  

  .desktop-icons,
  .desktop-files {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 20px 14px 12px;
    pointer-events: auto;
  }

  .desktop-icon,
  .desktop-file-icon {
    position: static;
  }

  .desktop-files {
    padding-top: 0;
  }

  .files-body {
    grid-template-columns: 1fr;
  }

  .files-sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 43, 55, 0.08);
  }

  .files-sidebar button {
    flex: 0 0 auto;
  }

  .files-toolbar,
  .files-selection-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .files-actions,
  .files-selection-bar div {
    width: 100%;
    justify-content: flex-start;
  }

  .files-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    padding: 18px;
  }

  body,
  button {
    cursor: auto;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .bg-wordmark {
    top: 43%;
    font-size: clamp(76px, 24vw, 128px);
  }

  .window,
  .window.open {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: calc(100% - 28px) !important;
    max-height: none;
    margin: 0 14px 16px;
  }

  .window.fullscreen {
    height: auto !important;
  }

  .widget {
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 980px) {
  .widget-layer {
    z-index: 1;
  }

  .widget {
    max-width: min(360px, calc(100vw - 32px));
  }

  .window {
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 760px) {
  .surf-window,
  .vibestore-window {
    min-width: 0;
  }

  .surf-toolbar {
    grid-template-columns: 1fr 40px;
    gap: 8px;
  }

  .surf-nav {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .surf-tab {
    min-width: 124px;
  }

  .surf-start-page {
    padding: 22px 16px;
  }

  .surf-start-logo {
    width: 58px;
    height: 58px;
  }

  .vibestore-body {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 43, 55, 0.08);
  }

  .store-brand {
    min-width: 168px;
    margin-bottom: 0;
  }

  .store-sidebar button {
    flex: 0 0 auto;
  }

  .store-hero {
    grid-template-columns: 1fr;
  }

  .store-hero img {
    justify-self: start;
    width: 82px;
    height: 82px;
  }

  .store-collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .surf-frame-shell {
    margin: 8px;
    border-radius: 18px;
  }

  .store-main {
    padding: 14px;
  }
}

body[data-background="meadow"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 225, 0.98), transparent 28%),
    radial-gradient(circle at 72% 64%, rgba(91, 148, 160, 0.55), transparent 31%),
    linear-gradient(135deg, #9fbca9 0%, #ecd99f 52%, #d98463 100%);
}

body[data-background="aurora"] {
  background:
    radial-gradient(circle at 18% 16%, rgba(162, 234, 206, 0.78), transparent 26%),
    radial-gradient(circle at 78% 14%, rgba(172, 128, 236, 0.58), transparent 30%),
    radial-gradient(circle at 58% 78%, rgba(255, 216, 130, 0.55), transparent 34%),
    linear-gradient(135deg, #0d4c5b, #132845 54%, #371c4b);
}

body[data-background="ocean"] {
  background:
    radial-gradient(circle at 22% 18%, rgba(184, 239, 255, 0.82), transparent 28%),
    radial-gradient(circle at 72% 66%, rgba(44, 136, 164, 0.62), transparent 32%),
    linear-gradient(135deg, #dff8f8, #6fb0be 48%, #244d66 100%);
}

body[data-background="sunset"] {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 240, 170, 0.86), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(174, 78, 103, 0.62), transparent 34%),
    linear-gradient(135deg, #f7bd6c, #d36e65 48%, #432d5f 100%);
}

body[data-background="graphite"] {
  background:
    radial-gradient(circle at 22% 16%, rgba(114, 133, 150, 0.5), transparent 27%),
    radial-gradient(circle at 80% 72%, rgba(66, 90, 96, 0.48), transparent 34%),
    linear-gradient(135deg, #1f2933, #374151 48%, #111827 100%);
}

body[data-background="custom"] {
  background:
    linear-gradient(0deg, rgba(8, 16, 21, 0.18), rgba(8, 16, 21, 0.18)),
    var(--custom-bg-image) center / cover fixed no-repeat,
    linear-gradient(135deg, #9fbca9, #d98463);
}

body[data-background="background1"] {
  background:
    linear-gradient(0deg, rgba(16, 28, 35, 0.12), rgba(16, 28, 35, 0.12)),
    url("assets/background1.jpg") center / cover fixed no-repeat;
}

body[data-background="background2"] {
  background:
    linear-gradient(0deg, rgba(16, 28, 35, 0.14), rgba(16, 28, 35, 0.14)),
    url("assets/background2.jpg") center / cover fixed no-repeat;
}

body.theme-dark {
  --text: #f3f7f8;
  --muted: #aebbc2;
  --text-primary: #f3f7f8;
  --text-secondary: #aebbc2;
  --text-soft: rgba(243, 247, 248, 0.64);
  --panel: rgba(16, 23, 29, 0.82);
  --panel-solid: #121a21;
  --surface: rgba(17, 25, 32, 0.88);
  --surface-hover: rgba(31, 43, 55, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(8, 16, 22, 0.34);
  --glass-deep: rgba(7, 13, 18, 0.58);
  --glass-border: rgba(255, 255, 255, 0.18);
  --bar-glass: rgba(7, 14, 20, 0.54);
  --bar-glass-light: rgba(255, 255, 255, 0.1);
  --bar-border: rgba(255, 255, 255, 0.2);
  --shadow-window: 0 30px 82px rgba(0, 0, 0, 0.44);
  --shadow-window-focus: 0 34px 92px rgba(0, 0, 0, 0.54);
  background:
    linear-gradient(135deg, rgba(18, 25, 32, 0.88), rgba(24, 20, 34, 0.74)),
    linear-gradient(145deg, #172331 0%, #223244 42%, #4b2e45 72%, #141820 100%);
}

body.theme-dark[data-background="meadow"] {
  background:
    linear-gradient(135deg, rgba(11, 18, 24, 0.82), rgba(24, 20, 34, 0.72)),
    linear-gradient(145deg, #111c27 0%, #203145 38%, #5b3447 70%, #0e141d 100%);
}

body.theme-dark[data-background="aurora"] {
  background:
    linear-gradient(0deg, rgba(4, 10, 15, 0.58), rgba(4, 10, 15, 0.58)),
    radial-gradient(circle at 16% 14%, rgba(91, 224, 174, 0.52), transparent 25%),
    radial-gradient(circle at 78% 12%, rgba(125, 91, 205, 0.46), transparent 29%),
    linear-gradient(135deg, #062a34, #101c33 54%, #231431);
}

body.theme-dark[data-background="ocean"] {
  background:
    linear-gradient(0deg, rgba(4, 12, 18, 0.56), rgba(4, 12, 18, 0.56)),
    radial-gradient(circle at 22% 18%, rgba(116, 206, 220, 0.48), transparent 28%),
    radial-gradient(circle at 72% 66%, rgba(24, 104, 138, 0.52), transparent 32%),
    linear-gradient(135deg, #082435, #17465b 48%, #071722 100%);
}

body.theme-dark[data-background="sunset"] {
  background:
    linear-gradient(0deg, rgba(8, 10, 18, 0.52), rgba(8, 10, 18, 0.52)),
    radial-gradient(circle at 22% 18%, rgba(255, 181, 91, 0.52), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(145, 58, 91, 0.58), transparent 34%),
    linear-gradient(135deg, #3a2434, #4e273f 48%, #111827 100%);
}

body.theme-dark[data-background="graphite"] {
  background:
    radial-gradient(circle at 22% 16%, rgba(86, 106, 125, 0.32), transparent 27%),
    radial-gradient(circle at 80% 72%, rgba(36, 64, 72, 0.36), transparent 34%),
    linear-gradient(135deg, #0d141c, #1a2430 48%, #070b11 100%);
}

body.theme-dark[data-background="custom"] {
  background:
    linear-gradient(0deg, rgba(5, 10, 14, 0.54), rgba(5, 10, 14, 0.54)),
    var(--custom-bg-image) center / cover fixed no-repeat,
    linear-gradient(145deg, #111c27 0%, #203145 38%, #5b3447 70%, #0e141d 100%);
}

body.theme-dark[data-background="background1"] {
  background:
    linear-gradient(0deg, rgba(5, 10, 14, 0.48), rgba(5, 10, 14, 0.48)),
    url("assets/background1.jpg") center / cover fixed no-repeat;
}

body.theme-dark[data-background="background2"] {
  background:
    linear-gradient(0deg, rgba(5, 10, 14, 0.48), rgba(5, 10, 14, 0.48)),
    url("assets/background2.jpg") center / cover fixed no-repeat;
}

body.dark-reveal::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  background:
    linear-gradient(145deg, #111c27 0%, #203145 38%, #5b3447 70%, #0e141d 100%);
  clip-path: circle(0% at 50% 100%);
  animation: dark-background-reveal 740ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

body.wallpaper-reveal::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2999;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.28), transparent 32%),
    rgba(9, 16, 21, 0.32);
  clip-path: circle(0% at 50% 100%);
  animation: wallpaper-background-reveal 600ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

@keyframes dark-background-reveal {
  0% {
    clip-path: circle(0% at 50% 100%);
    opacity: 0.96;
  }

  68% {
    clip-path: circle(132% at 50% 100%);
    opacity: 0.7;
  }

  100% {
    clip-path: circle(160% at 50% 100%);
    opacity: 0;
  }
}

@keyframes wallpaper-background-reveal {
  0% {
    clip-path: circle(0% at 50% 100%);
    opacity: 0.8;
  }

  72% {
    clip-path: circle(124% at 50% 100%);
    opacity: 0.44;
  }

  100% {
    clip-path: circle(160% at 50% 100%);
    opacity: 0;
  }
}

body.theme-dark .desktop::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 92px);
}

body.theme-dark .bg-wordmark {
  color: rgba(231, 246, 250, 0.28);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

body.theme-dark .surf-bg-glow,
body.theme-dark .wifi-card::before {
  display: none;
}

body.theme-dark .desktop-icon strong,
body.theme-dark .desktop-file-icon strong {
  color: rgba(243, 247, 248, 0.9);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.7),
    0 8px 18px rgba(0, 0, 0, 0.42);
}

body.theme-dark .title-bar,
body.theme-dark .vibestore-window .title-bar,
body.theme-dark .surf-window .title-bar {
  color: rgba(243, 247, 248, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(35, 43, 50, 0.96), rgba(20, 27, 34, 0.94)),
    #151c23;
}

body.theme-dark .window-title,
body.theme-dark .surf-window .window-title {
  color: rgba(243, 247, 248, 0.94);
}

body.theme-dark .main-dock {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.045) 42%, rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(8, 14, 20, 0.48);
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.14) inset,
    0 -18px 34px rgba(255, 255, 255, 0.045) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

body.theme-dark .main-dock-icon {
  background: transparent;
  box-shadow: none;
}

.main-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  align-items: end;
  gap: 13px;
  min-height: 82px;
  max-width: calc(100vw - 28px);
  padding: 13px 18px 15px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 32px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(28, 38, 46, 0.36);
  box-shadow:
    0 28px 76px rgba(8, 16, 22, 0.36),
    0 2px 0 rgba(255, 255, 255, 0.2) inset,
    0 -16px 34px rgba(255, 255, 255, 0.09) inset,
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  backdrop-filter: blur(34px) saturate(210%) contrast(108%);
  transform: translateX(-50%);
}

.main-dock::-webkit-scrollbar {
  display: none;
}

.main-dock-icon {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  transition:
    transform 240ms cubic-bezier(0.18, 1.25, 0.32, 1),
    filter 240ms ease,
    opacity 180ms ease;
}

.main-dock-icon:hover {
  transform: translateY(-18px) scale(1.28);
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.28));
}

.main-dock:hover .main-dock-icon:not(:hover) {
  transform: translateY(-3px) scale(0.96);
  opacity: 0.82;
}

.main-dock:hover .main-dock-icon:hover + .main-dock-icon,
.main-dock:hover .main-dock-icon:has(+ .main-dock-icon:hover) {
  transform: translateY(-10px) scale(1.12);
  opacity: 0.95;
}

.main-dock-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
}

.main-dock-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 2.25;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28));
}

.main-dock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.88);
  opacity: 0;
  transform: translateX(-50%);
  transition:
    width 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.main-dock-icon.active::after,
.main-dock-icon.minimized::after {
  opacity: 1;
}

.main-dock-icon:hover::after {
  width: 18px;
  transform: translateX(-50%) translateY(2px);
}

.main-dock-icon.minimized {
  opacity: 0.72;
}

body[data-dock-size="compact"] .main-dock {
  min-height: 64px;
  gap: 9px;
  padding: 10px 12px 12px;
}

body[data-dock-size="compact"] .main-dock-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

body[data-dock-size="compact"] .main-dock-icon img {
  width: 35px;
  height: 35px;
}

body[data-dock-size="large"] .main-dock {
  min-height: 88px;
  gap: 14px;
}

body[data-dock-size="large"] .main-dock-icon {
  width: 66px;
  height: 66px;
  border-radius: 20px;
}

body[data-dock-size="large"] .main-dock-icon img {
  width: 48px;
  height: 48px;
}

.generated-app-icon,
.store-generated-icon {
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 24px rgba(16, 28, 36, 0.15);
}

.generated-app-icon svg,
.store-generated-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.15;
}

.icon-frame.focus-app-icon,
.icon-frame.weather-app-icon {
  background: transparent;
  box-shadow: none;
}

.icon-frame.focus-app-icon img,
.icon-frame.weather-app-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 12px 18px rgba(31, 43, 55, 0.16));
}

.terminal-app-icon {
  background: linear-gradient(145deg, #101820, #1d6f68);
}

.guide-app-icon {
  background: linear-gradient(145deg, #5d7f4f, #d9a441);
}

.store-app-grid {
  display: grid;
  gap: 14px;
}

.store-generated-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.app-title-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-title-logo img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.settings-window {
  min-width: 650px;
  min-height: 480px;
}

.settings-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  height: 526px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 6%, rgba(123, 205, 219, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.94), rgba(245, 248, 248, 0.92));
}

.settings-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 10px;
  border-right: 1px solid rgba(31, 43, 55, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

.settings-sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  color: rgba(20, 32, 45, 0.68);
  border-radius: 12px;
  background: transparent;
  font-size: var(--font-sm);
  font-weight: 790;
  text-align: left;
}

.settings-sidebar button svg {
  width: 17px;
  height: 17px;
}

.settings-sidebar button:hover,
.settings-sidebar button.active {
  color: rgba(20, 32, 45, 0.94);
  background: rgba(255, 255, 255, 0.78);
}

.settings-main {
  min-height: 0;
  padding: 22px;
  overflow: auto;
}

.settings-section {
  display: none;
  gap: 14px;
}

.settings-section.active {
  display: grid;
}

.settings-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: var(--font-xs);
  font-weight: 860;
  text-transform: uppercase;
}

.settings-heading h2 {
  margin: 0;
  color: rgba(20, 32, 45, 0.94);
  font-size: 34px;
  line-height: 1;
}

.setting-card,
.about-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(31, 43, 55, 0.06);
}

.setting-card strong,
.about-grid strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(20, 32, 45, 0.92);
  font-size: var(--font-base);
  font-weight: 850;
}

.setting-card p,
.about-grid span {
  margin: 0;
  color: rgba(20, 32, 45, 0.56);
  font-size: var(--font-sm);
  font-weight: 650;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(31, 43, 55, 0.07);
}

.segmented-control button,
.setting-action,
.custom-background-input button {
  min-height: 34px;
  padding: 0 14px;
  color: rgba(20, 32, 45, 0.75);
  border-radius: 11px;
  background: transparent;
  font-size: var(--font-sm);
  font-weight: 830;
}

.segmented-control button.active,
.segmented-control button:hover,
.setting-action,
.custom-background-input button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.accent-grid {
  display: flex;
  gap: 8px;
}

.accent-dot {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(31, 43, 55, 0.12);
}

.accent-dot.active {
  outline: 2px solid rgba(20, 32, 45, 0.35);
  outline-offset: 2px;
}

.accent-dot.teal { background: #226a78; }
.accent-dot.grape { background: #6f5cc4; }
.accent-dot.coral { background: #c25b45; }
.accent-dot.moss { background: #5d7f4f; }

.background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.background-swatch {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 16px 30px rgba(31, 43, 55, 0.12);
  text-align: left;
}

.background-swatch span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-weight: 850;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.background-swatch.active {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: -6px;
}

.background-swatch.meadow {
  background: linear-gradient(135deg, #9fbca9, #ecd99f 52%, #d98463);
}

.background-swatch.aurora {
  background: linear-gradient(135deg, #0d4c5b, #7edfc7 34%, #815ac7 74%, #371c4b);
}

.background-swatch.ocean {
  background: linear-gradient(135deg, #dff8f8, #6fb0be 48%, #244d66);
}

.background-swatch.sunset {
  background: linear-gradient(135deg, #f7bd6c, #d36e65 48%, #432d5f);
}

.background-swatch.graphite {
  background: linear-gradient(135deg, #1f2933, #4b5563 48%, #111827);
}

.background-swatch.background-one {
  background:
    linear-gradient(0deg, rgba(16, 28, 35, 0.12), rgba(16, 28, 35, 0.12)),
    url("assets/background1.jpg") center / cover no-repeat;
}

.background-swatch.background-two {
  background:
    linear-gradient(0deg, rgba(16, 28, 35, 0.14), rgba(16, 28, 35, 0.14)),
    url("assets/background2.jpg") center / cover no-repeat;
}

.custom-background-card {
  grid-template-columns: 1fr;
}

.custom-background-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.custom-background-input input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(31, 43, 55, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
}

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

.about-brand {
  display: grid;
  justify-items: start;
  padding: 18px;
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(34, 106, 120, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(31, 43, 55, 0.06);
}

.about-brand img {
  width: min(280px, 72%);
  height: auto;
  object-fit: contain;
}

.about-grid div {
  grid-template-columns: 1fr;
}

.focus-body,
.weather-body,
.terminal-body,
.guide-body {
  padding: 18px;
}

.focus-body {
  display: grid;
  justify-items: center;
  gap: 18px;
  background: linear-gradient(145deg, #f8f5ff, #eef9fb);
}

.focus-ring {
  --focus-progress: 0deg;
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 55%, transparent 56%),
    conic-gradient(var(--accent) var(--focus-progress), rgba(31, 43, 55, 0.09) 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 20px 40px rgba(31, 43, 55, 0.12);
}

.focus-ring strong {
  color: rgba(20, 32, 45, 0.95);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
}

.focus-ring span {
  color: rgba(20, 32, 45, 0.58);
  font-size: var(--font-sm);
  font-weight: 800;
}

.focus-actions {
  display: flex;
  gap: 10px;
}

.focus-actions button {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 850;
}

.weather-body {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  background: linear-gradient(145deg, #e9fbff, #fff5d8);
}

.weather-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 7px 6px 13px;
  color: rgba(20, 32, 45, 0.54);
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.weather-search input {
  min-width: 0;
  color: rgba(20, 32, 45, 0.86);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--font-sm);
  font-weight: 750;
}

.weather-search button {
  min-height: 32px;
  padding: 0 14px;
  color: #fff;
  border-radius: var(--radius-pill);
  background: var(--accent);
  font-size: var(--font-sm);
  font-weight: 850;
}

.weather-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 180px;
  padding: 22px;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 244, 180, 0.96), transparent 20%),
    linear-gradient(145deg, #4bb4d2, #2e7d9f 52%, #27506b);
  box-shadow: 0 20px 40px rgba(41, 96, 120, 0.22);
}

.weather-hero > i,
.weather-hero > svg {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  opacity: 0.94;
  filter: drop-shadow(0 16px 26px rgba(7, 23, 34, 0.2));
}

.weather-hero span,
.weather-hero p {
  margin: 0;
  font-weight: 760;
}

.weather-hero strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 64px;
  line-height: 1;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.weather-metrics article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.weather-metrics span,
.weather-status,
.weather-strip small {
  color: rgba(20, 32, 45, 0.55);
  font-size: var(--font-xs);
  font-weight: 760;
}

.weather-metrics strong {
  color: rgba(20, 32, 45, 0.9);
  font-size: var(--font-base);
  font-weight: 850;
}

.weather-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.weather-strip article {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.weather-strip svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.weather-strip strong {
  font-size: var(--font-lg);
}

.weather-strip span {
  color: rgba(20, 32, 45, 0.55);
  font-size: var(--font-xs);
  font-weight: 780;
}

.weather-status {
  margin: 0;
}

.terminal-window {
  min-width: 440px;
  min-height: 320px;
}

.terminal-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  height: calc(100% - 42px);
  min-height: 300px;
  color: #c9f7dc;
  background:
    radial-gradient(circle at 82% 0%, rgba(48, 176, 137, 0.14), transparent 28%),
    linear-gradient(145deg, #070d0f, #10191d);
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
}

.terminal-output {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(133, 255, 199, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 13px;
  line-height: 1.5;
}

.terminal-line.command {
  color: #75d6ff;
}

.terminal-input-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(133, 255, 199, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
}

.terminal-input-line span {
  color: #75d6ff;
  white-space: nowrap;
}

.terminal-input-line input {
  min-width: 0;
  color: #f5fff8;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.guide-window {
  min-width: 620px;
  min-height: 390px;
}

.guide-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  height: calc(100% - 42px);
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 9%, rgba(76, 166, 221, 0.16), transparent 30%),
    radial-gradient(circle at 24% 92%, rgba(68, 190, 145, 0.16), transparent 32%),
    linear-gradient(145deg, #fffaf1, #eef8f3);
}

.guide-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 12px;
  border-right: 1px solid rgba(31, 43, 55, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(235, 245, 240, 0.62);
}

.guide-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(20, 32, 45, 0.66);
  border-radius: 12px;
  background: transparent;
  font-size: var(--font-sm);
  font-weight: 820;
  text-align: left;
}

.guide-nav button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 2.2;
}

.guide-nav button:hover,
.guide-nav button.active {
  color: rgba(20, 32, 45, 0.94);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(31, 43, 55, 0.06),
    0 10px 24px rgba(31, 43, 55, 0.08);
}

.guide-content {
  min-height: 0;
  overflow: auto;
  padding: 28px;
}

.guide-panel {
  display: none;
  max-width: 720px;
}

.guide-panel.active {
  display: grid;
  gap: 18px;
}

.guide-hero {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 12%, rgba(30, 130, 190, 0.16), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(242, 250, 246, 0.72));
  box-shadow:
    0 22px 52px rgba(31, 43, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.guide-kicker {
  width: fit-content;
  padding: 7px 11px;
  color: rgba(20, 32, 45, 0.78);
  border: 1px solid rgba(20, 32, 45, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.56);
  font-size: var(--font-xs);
  font-weight: 850;
  letter-spacing: 0;
}

.guide-panel h2 {
  margin: 0;
  color: rgba(20, 32, 45, 0.94);
  font-size: 34px;
  line-height: 1.05;
}

.guide-panel p,
.guide-panel li {
  color: rgba(20, 32, 45, 0.62);
  font-size: var(--font-base);
  font-weight: 650;
  line-height: 1.55;
}

.guide-panel p,
.guide-panel ul {
  margin: 0;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-card-grid article {
  display: grid;
  gap: 9px;
  min-height: 136px;
  padding: 16px;
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 32px rgba(31, 43, 55, 0.07);
}

.guide-card-grid svg {
  width: 24px;
  height: 24px;
  color: #1f7f99;
  stroke-width: 2.1;
}

.guide-card-grid strong {
  color: rgba(20, 32, 45, 0.92);
  font-size: var(--font-md);
  font-weight: 880;
}

.guide-card-grid span {
  color: rgba(20, 32, 45, 0.62);
  font-size: var(--font-sm);
  font-weight: 650;
  line-height: 1.45;
}

.guide-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-strip span {
  padding: 9px 12px;
  color: rgba(20, 32, 45, 0.78);
  border: 1px solid rgba(31, 43, 55, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  font-size: var(--font-sm);
  font-weight: 820;
}

body.theme-dark .window-body,
body.theme-dark .settings-body,
body.theme-dark .vibestore-body,
body.theme-dark .calculator-body,
body.theme-dark .focus-body,
body.theme-dark .weather-body,
body.theme-dark .guide-body {
  color: var(--text);
  background: linear-gradient(145deg, rgba(19, 29, 37, 0.96), rgba(12, 20, 27, 0.94));
}

body.theme-dark .setting-card,
body.theme-dark .about-grid div,
body.theme-dark .about-brand,
body.theme-dark .store-simple-hero,
body.theme-dark .store-app-card,
body.theme-dark .weather-strip article,
body.theme-dark .weather-metrics article,
body.theme-dark .weather-search,
body.theme-dark .calculator-display,
body.theme-dark .calculator-keys button,
body.theme-dark .files-selection-bar,
body.theme-dark .files-toolbar,
body.theme-dark .notepad-menu,
body.theme-dark .notepad-toolbar,
body.theme-dark .notepad-status,
body.theme-dark .notepad-editor {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 30, 38, 0.78);
}

body.theme-dark .settings-heading h2,
body.theme-dark .setting-card strong,
body.theme-dark .about-grid strong,
body.theme-dark .store-app-card strong,
body.theme-dark .store-simple-hero h2,
body.theme-dark .focus-ring strong,
body.theme-dark .weather-metrics strong,
body.theme-dark .guide-panel h2 {
  color: rgba(246, 250, 251, 0.96);
}

body.theme-dark .setting-card p,
body.theme-dark .about-grid span,
body.theme-dark .store-app-card span,
body.theme-dark .store-simple-hero span,
body.theme-dark .weather-strip span,
body.theme-dark .weather-strip small,
body.theme-dark .weather-metrics span,
body.theme-dark .weather-status,
body.theme-dark .focus-ring span,
body.theme-dark .guide-panel p,
body.theme-dark .guide-panel li {
  color: rgba(218, 230, 234, 0.62);
}

body.theme-dark .settings-sidebar {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(9, 16, 22, 0.42);
}

body.theme-dark .guide-nav {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(9, 16, 22, 0.42);
}

body.theme-dark .settings-sidebar button {
  color: rgba(230, 240, 243, 0.68);
}

body.theme-dark .guide-nav button {
  color: rgba(230, 240, 243, 0.68);
}

body.theme-dark .guide-hero {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 90% 12%, rgba(86, 177, 210, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(16, 27, 35, 0.92), rgba(12, 20, 28, 0.78));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark .guide-kicker {
  color: rgba(240, 247, 248, 0.84);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .guide-card-grid article,
body.theme-dark .guide-strip span {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

body.theme-dark .guide-card-grid svg {
  color: #68c6dc;
}

body.theme-dark .guide-card-grid strong {
  color: rgba(246, 250, 251, 0.94);
}

body.theme-dark .guide-card-grid span,
body.theme-dark .guide-strip span {
  color: rgba(218, 230, 234, 0.7);
}

body.theme-dark .settings-sidebar button:hover,
body.theme-dark .settings-sidebar button.active,
body.theme-dark .guide-nav button:hover,
body.theme-dark .guide-nav button.active {
  color: rgba(246, 250, 251, 0.96);
  background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .segmented-control {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .segmented-control button {
  color: rgba(230, 240, 243, 0.72);
}

body.theme-dark .custom-background-input input {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 22, 0.58);
}

body.theme-dark .weather-search input {
  color: rgba(246, 250, 251, 0.96);
}

body.theme-dark .focus-ring {
  background:
    radial-gradient(circle, rgba(15, 24, 32, 0.94) 0 55%, transparent 56%),
    conic-gradient(var(--accent) var(--focus-progress), rgba(255, 255, 255, 0.12) 0);
}

@media (max-width: 760px) {
  .main-dock {
    bottom: 10px;
    width: calc(100vw - 18px);
    min-height: 64px;
    justify-content: flex-start;
    padding: 10px 12px 12px;
    border-radius: 24px;
  }

  .main-dock-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .desktop {
    padding-bottom: 116px;
  }

  .window,
  .window.open {
    margin-bottom: 92px;
  }

  .files-sidebar {
    padding: 10px;
  }

  .files-sidebar button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: var(--font-sm);
    white-space: nowrap;
  }

  .settings-window,
  .focus-window,
  .weather-window,
  .terminal-window,
  .guide-window {
    min-width: 0;
  }

  .settings-body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .settings-sidebar {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 43, 55, 0.08);
  }

  .guide-body {
    grid-template-columns: 1fr;
  }

  .guide-nav {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 43, 55, 0.08);
  }

  .setting-card,
  .custom-background-input {
    grid-template-columns: 1fr;
  }

  .background-grid,
  .weather-strip,
  .weather-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .weather-hero {
    align-items: flex-start;
  }

  .weather-hero > i,
  .weather-hero > svg {
    width: 58px;
    height: 58px;
  }
}

body.theme-dark .window {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 17, 23, 0.72);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.5);
}

body.theme-dark .window.focused {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.58);
}

body.theme-dark .window .title-bar,
body.theme-dark .window.focused .title-bar,
body.theme-dark .surf-window .title-bar,
body.theme-dark .vibestore-window .title-bar {
  color: rgba(243, 247, 248, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(30, 39, 47, 0.98), rgba(13, 21, 28, 0.96)),
    #111922 !important;
}

body.theme-dark .window-title,
body.theme-dark .surf-window .window-title {
  color: rgba(245, 249, 250, 0.95);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.46);
}

body.theme-dark .window-body,
body.theme-dark .settings-body,
body.theme-dark .vibestore-body,
body.theme-dark .calculator-body,
body.theme-dark .focus-body,
body.theme-dark .weather-body,
body.theme-dark .guide-body,
body.theme-dark .files-body,
body.theme-dark .notes-body,
body.theme-dark .surf-body {
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(18, 28, 36, 0.98), rgba(9, 15, 21, 0.96)),
    #0f171f;
}

body.theme-dark .files-sidebar,
body.theme-dark .settings-sidebar,
body.theme-dark .guide-nav,
body.theme-dark .store-sidebar {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 15, 21, 0.58);
}

body.theme-dark .files-main,
body.theme-dark .settings-main,
body.theme-dark .store-main {
  color: var(--text);
  background: rgba(13, 21, 28, 0.78);
}

body.theme-dark .files-toolbar,
body.theme-dark .files-selection-bar,
body.theme-dark .notepad-menu,
body.theme-dark .notepad-toolbar,
body.theme-dark .notepad-status,
body.theme-dark .notepad-editor,
body.theme-dark .calculator-display,
body.theme-dark .calculator-keys button,
body.theme-dark .setting-card,
body.theme-dark .about-grid div,
body.theme-dark .about-brand,
body.theme-dark .store-simple-hero,
body.theme-dark .store-app-card,
body.theme-dark .store-empty,
body.theme-dark .weather-strip article,
body.theme-dark .weather-metrics article,
body.theme-dark .weather-search {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 29, 37, 0.8);
  box-shadow: none;
}

body.theme-dark .notepad-editor {
  caret-color: var(--accent);
}

body.theme-dark .files-toolbar h3,
body.theme-dark .settings-heading h2,
body.theme-dark .setting-card strong,
body.theme-dark .about-grid strong,
body.theme-dark .store-simple-hero h2,
body.theme-dark .store-app-card strong,
body.theme-dark .store-empty h3,
body.theme-dark .focus-ring strong,
body.theme-dark .weather-strip strong,
body.theme-dark .weather-metrics strong,
body.theme-dark .guide-panel h2,
body.theme-dark .notepad-toolbar span:first-child {
  color: rgba(246, 250, 251, 0.96);
}

body.theme-dark .files-toolbar p,
body.theme-dark .files-selection-bar,
body.theme-dark .settings-heading span,
body.theme-dark .setting-card p,
body.theme-dark .about-grid span,
body.theme-dark .store-simple-hero p,
body.theme-dark .store-simple-hero span,
body.theme-dark .store-app-card span,
body.theme-dark .store-empty p,
body.theme-dark .weather-strip span,
body.theme-dark .weather-strip small,
body.theme-dark .weather-metrics span,
body.theme-dark .weather-status,
body.theme-dark .focus-ring span,
body.theme-dark .guide-panel p,
body.theme-dark .guide-panel li,
body.theme-dark .notepad-toolbar,
body.theme-dark .notepad-status {
  color: rgba(218, 230, 234, 0.66);
}

body.theme-dark .files-sidebar button,
body.theme-dark .settings-sidebar button,
body.theme-dark .guide-nav button,
body.theme-dark .store-sidebar button,
body.theme-dark .notepad-menu button,
body.theme-dark .files-actions button,
body.theme-dark .files-selection-bar button,
body.theme-dark .segmented-control button,
body.theme-dark .setting-action,
body.theme-dark .custom-background-input button {
  color: rgba(232, 240, 243, 0.82);
  background: transparent;
  box-shadow: none;
}

body.theme-dark .files-sidebar button:hover,
body.theme-dark .files-sidebar button.active,
body.theme-dark .settings-sidebar button:hover,
body.theme-dark .settings-sidebar button.active,
body.theme-dark .guide-nav button:hover,
body.theme-dark .guide-nav button.active,
body.theme-dark .store-sidebar button:hover,
body.theme-dark .store-sidebar button.active,
body.theme-dark .notepad-menu button:hover,
body.theme-dark .notepad-menu button.active,
body.theme-dark .files-actions button:hover,
body.theme-dark .files-selection-bar button:hover {
  color: rgba(248, 251, 252, 0.96);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

body.theme-dark .segmented-control {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .segmented-control button.active,
body.theme-dark .segmented-control button:hover,
body.theme-dark .setting-action,
body.theme-dark .custom-background-input button,
body.theme-dark .focus-actions button {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

body.theme-dark .custom-background-input input,
body.theme-dark .weather-search input,
body.theme-dark .rename-input {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 13, 18, 0.72);
  box-shadow: none;
}

body.theme-dark .file-item {
  color: var(--text);
}

body.theme-dark .file-item:hover,
body.theme-dark .file-item.selected {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .file-name,
body.theme-dark .files-empty {
  color: rgba(232, 240, 243, 0.82);
}

body.theme-dark .file-icon.file {
  color: rgba(177, 215, 232, 0.92);
  border-color: rgba(177, 215, 232, 0.16);
  background:
    linear-gradient(135deg, transparent 0 78%, rgba(177, 215, 232, 0.18) 78%),
    #17232d;
}

body.theme-dark .file-glyph {
  border-color: rgba(177, 215, 232, 0.34);
  background: linear-gradient(180deg, #f9fdff, #e9f2f4);
}

body.theme-dark .file-glyph::after {
  border-color: rgba(177, 215, 232, 0.34);
  background: #d8e9ef;
}

body.theme-dark .calculator-keys .operator,
body.theme-dark .calculator-keys .operator:hover,
body.theme-dark .calculator-keys .equals,
body.theme-dark .calculator-keys .equals:hover {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 74%, #111922), var(--accent));
  box-shadow: none;
}

body.theme-dark .focus-ring {
  background:
    radial-gradient(circle, rgba(15, 24, 32, 0.96) 0 55%, transparent 56%),
    conic-gradient(var(--accent) var(--focus-progress), rgba(255, 255, 255, 0.12) 0);
  box-shadow: none;
}

body.theme-dark .weather-hero,
body.theme-dark .album-art {
  box-shadow: none;
}

body.theme-dark .store-app-card:hover,
body.theme-dark .store-app-card.installing {
  background: rgba(24, 37, 47, 0.86);
}

body.theme-dark .store-app-card button[data-installed="true"] {
  color: rgba(232, 240, 243, 0.88);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.theme-dark .background-swatch.active {
  outline-color: rgba(255, 255, 255, 0.92);
}

body.theme-dark .desktop-icon strong,
body.theme-dark .desktop-file-icon strong {
  color: rgba(243, 247, 248, 0.93);
}

body.theme-dark .surf-window {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(10, 17, 23, 0.74);
}

body.theme-dark .surf-tabbar,
body.theme-dark .surf-toolbar {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(21, 31, 39, 0.94), rgba(12, 20, 27, 0.92)),
    #0f171f;
}

body.theme-dark .surf-tab,
body.theme-dark .surf-new-tab,
body.theme-dark .surf-nav,
body.theme-dark .surf-nav button {
  color: rgba(224, 234, 237, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.theme-dark .surf-tab.active {
  color: rgba(248, 251, 252, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

body.theme-dark .surf-tab:hover,
body.theme-dark .surf-new-tab:hover,
body.theme-dark .surf-nav button:hover {
  color: rgba(248, 251, 252, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .surf-address,
body.theme-dark .surf-start-search,
body.theme-dark .surf-status,
body.theme-dark .surf-error-state button {
  color: rgba(218, 230, 234, 0.68);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 15, 21, 0.72);
  box-shadow: none;
}

body.theme-dark .surf-address:focus-within {
  border-color: color-mix(in srgb, var(--accent) 52%, rgba(255, 255, 255, 0.12));
  box-shadow: none;
}

body.theme-dark .surf-address input,
body.theme-dark .surf-start-search input {
  color: rgba(246, 250, 251, 0.94);
}

body.theme-dark .surf-address input::placeholder,
body.theme-dark .surf-start-search input::placeholder {
  color: rgba(218, 230, 234, 0.52);
}

body.theme-dark .surf-go,
body.theme-dark .surf-start-search button,
body.theme-dark .surf-error-state button:first-child {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
  box-shadow: none;
}

body.theme-dark .surf-frame-shell,
body.theme-dark .surf-start-page,
body.theme-dark .surf-error-state {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18% 18%, rgba(31, 122, 140, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(18, 29, 37, 0.98), rgba(8, 15, 21, 0.96));
  box-shadow: none;
}

body.theme-dark .surf-start-center h2,
body.theme-dark .surf-error-state h2 {
  color: rgba(246, 250, 251, 0.96);
}

body.theme-dark .surf-error-state p {
  color: rgba(218, 230, 234, 0.66);
}

body.theme-dark .surf-start-logo,
body.theme-dark .surf-error-state img {
  filter: none;
}

body[data-background="custom"] .bg-wordmark,
body[data-background="background1"] .bg-wordmark,
body[data-background="background2"] .bg-wordmark {
  opacity: 0;
}

body[data-background="custom"] .desktop::before,
body[data-background="background1"] .desktop::before,
body[data-background="background2"] .desktop::before {
  background:
    linear-gradient(180deg, rgba(5, 10, 14, 0.08), rgba(5, 10, 14, 0.16));
}

.vibestore-body,
.settings-main,
.files-grid,
.notepad-editor,
.surf-tab-list,
.surf-start-page,
.surf-error-state,
.store-main {
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 80, 92, 0.42) rgba(255, 255, 255, 0.18);
}

.vibestore-body::-webkit-scrollbar,
.settings-main::-webkit-scrollbar,
.files-grid::-webkit-scrollbar,
.notepad-editor::-webkit-scrollbar,
.surf-tab-list::-webkit-scrollbar,
.surf-start-page::-webkit-scrollbar,
.surf-error-state::-webkit-scrollbar,
.store-main::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.vibestore-body::-webkit-scrollbar-track,
.settings-main::-webkit-scrollbar-track,
.files-grid::-webkit-scrollbar-track,
.notepad-editor::-webkit-scrollbar-track,
.surf-tab-list::-webkit-scrollbar-track,
.surf-start-page::-webkit-scrollbar-track,
.surf-error-state::-webkit-scrollbar-track,
.store-main::-webkit-scrollbar-track {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
}

.vibestore-body::-webkit-scrollbar-thumb,
.settings-main::-webkit-scrollbar-thumb,
.files-grid::-webkit-scrollbar-thumb,
.notepad-editor::-webkit-scrollbar-thumb,
.surf-tab-list::-webkit-scrollbar-thumb,
.surf-start-page::-webkit-scrollbar-thumb,
.surf-error-state::-webkit-scrollbar-thumb,
.store-main::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(35, 80, 92, 0.54);
  background-clip: padding-box;
}

.vibestore-body::-webkit-scrollbar-thumb:hover,
.settings-main::-webkit-scrollbar-thumb:hover,
.files-grid::-webkit-scrollbar-thumb:hover,
.notepad-editor::-webkit-scrollbar-thumb:hover,
.surf-tab-list::-webkit-scrollbar-thumb:hover,
.surf-start-page::-webkit-scrollbar-thumb:hover,
.surf-error-state::-webkit-scrollbar-thumb:hover,
.store-main::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)),
    rgba(34, 106, 120, 0.7);
  background-clip: padding-box;
}

body.theme-dark .vibestore-body,
body.theme-dark .settings-main,
body.theme-dark .files-grid,
body.theme-dark .notepad-editor,
body.theme-dark .surf-tab-list,
body.theme-dark .surf-start-page,
body.theme-dark .surf-error-state,
body.theme-dark .store-main {
  scrollbar-color: rgba(121, 165, 176, 0.5) rgba(255, 255, 255, 0.06);
}

body.theme-dark .vibestore-body::-webkit-scrollbar-track,
body.theme-dark .settings-main::-webkit-scrollbar-track,
body.theme-dark .files-grid::-webkit-scrollbar-track,
body.theme-dark .notepad-editor::-webkit-scrollbar-track,
body.theme-dark .surf-tab-list::-webkit-scrollbar-track,
body.theme-dark .surf-start-page::-webkit-scrollbar-track,
body.theme-dark .surf-error-state::-webkit-scrollbar-track,
body.theme-dark .store-main::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .vibestore-body::-webkit-scrollbar-thumb,
body.theme-dark .settings-main::-webkit-scrollbar-thumb,
body.theme-dark .files-grid::-webkit-scrollbar-thumb,
body.theme-dark .notepad-editor::-webkit-scrollbar-thumb,
body.theme-dark .surf-tab-list::-webkit-scrollbar-thumb,
body.theme-dark .surf-start-page::-webkit-scrollbar-thumb,
body.theme-dark .surf-error-state::-webkit-scrollbar-thumb,
body.theme-dark .store-main::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(121, 165, 176, 0.42);
  background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
  .lock-screen,
  .lock-unlock {
    transition: none;
  }
}
