:root {
  color-scheme: dark;
  --page-bg: #070707;
  --text: #f7f2e8;
  --muted: rgba(247, 242, 232, 0.68);
  --wallpaper-accent: #ebc334;
  --wallpaper-accent-rgb: 235, 195, 52;
  --sticky-note-bg-1: 255, 244, 151;
  --sticky-note-bg-2: 238, 199, 63;
  --sticky-note-ink: 43, 35, 12;
  --sticky-note-shadow: 125, 88, 8;
  --clock-feature: var(--wallpaper-accent);
  --dock-icon-size: clamp(39px, 4.6vw, 53px);
  --webos-wallpaper: url("Indexfolder/webbg-1440.webp");
  --lockscreen-wallpaper: url("Indexfolder/webbg-lock-1440.webp");
}

@media (min-width: 3000px),
  (min-width: 2400px) and (min-resolution: 1.4dppx),
  (min-width: 1800px) and (min-resolution: 1.9dppx) {
  :root {
    --webos-wallpaper: url("Indexfolder/webbg.webp");
    --lockscreen-wallpaper: url("Indexfolder/webbg-lock-4k.webp");
  }
}

@font-face {
  font-family: "Desktop Digital Clock";
  src: url("Indexfolder/clock_font.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wallpaper-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.64)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62)),
    var(--webos-wallpaper) center / cover no-repeat,
    var(--page-bg);
  transition: background-image 180ms ease;
}

body:not(.is-authenticated) .wallpaper-stage,
body:not(.is-authenticated) .app-dock,
body:not(.is-authenticated) .desktop-folder,
body:not(.is-authenticated) .notebook-desktop,
body:not(.is-authenticated) .screenshot-desktop,
body:not(.is-authenticated) .sticky-notes,
body:not(.is-authenticated) .server-stack,
body:not(.is-authenticated) .landing {
  display: none;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  background: var(--page-bg);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lock-screen::before,
.lock-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lock-screen::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.64)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62)),
    var(--lockscreen-wallpaper) center / cover no-repeat,
    var(--page-bg);
}

.lock-screen::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.66)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    rgba(7, 7, 7, 0.16);
}

body.is-authenticated .lock-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-authenticated .login-card {
  opacity: 0;
  transform: translateY(-72vh) scale(0.985);
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(360px, calc(100vw - 48px));
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(8, 10, 12, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
  text-align: center;
  transform-origin: center top;
  will-change: transform, opacity;
}

body.is-locking .login-card {
  animation: loginDrop 680ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

body.is-unlocking .login-card {
  animation: loginExit 320ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

@keyframes loginDrop {
  0% {
    opacity: 0;
    transform: translateY(-80vh) scale(0.98);
  }
  58% {
    opacity: 1;
    transform: translateY(12px) scale(1);
  }
  74% {
    transform: translateY(-6px);
  }
  88% {
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-72vh) scale(0.985);
  }
}

.login-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(145deg, rgba(235, 195, 52, 0.82), rgba(95, 72, 6, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 36px rgba(0, 0, 0, 0.26);
  color: rgba(10, 10, 8, 0.78);
  font-size: 34px;
  font-weight: 800;
}

.login-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 740;
  letter-spacing: 0;
}

.login-subtitle {
  min-height: 18px;
  margin: -8px 0 0;
  color: rgba(247, 242, 232, 0.64);
  font-size: 13px;
  line-height: 1.35;
}

.login-form {
  width: 100%;
  display: grid;
  gap: 10px;
}

.login-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-input::placeholder {
  color: rgba(247, 242, 232, 0.46);
}

.login-input:focus {
  border-color: rgba(235, 195, 52, 0.72);
  box-shadow:
    0 0 0 3px rgba(235, 195, 52, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.login-button {
  min-height: 44px;
  border: 1px solid rgba(var(--wallpaper-accent-rgb), 0.55);
  border-radius: 999px;
  padding: 0 18px;
  background:
    linear-gradient(180deg, rgba(var(--wallpaper-accent-rgb), 0.96), rgba(var(--wallpaper-accent-rgb), 0.62));
  color: rgba(10, 10, 8, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.login-button:disabled {
  cursor: default;
  opacity: 0.66;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: rgba(255, 154, 137, 0.95);
  font-size: 13px;
  line-height: 1.35;
}

.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.app-dock {
  position: fixed;
  top: clamp(14px, 2.4vh, 28px);
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: end;
  gap: clamp(7px, 1.04vw, 13px);
  padding: 9px 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -18px 34px rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  transform: translateX(-50%);
}

.app-dock::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34%, rgba(255, 255, 255, 0.08));
  mask: linear-gradient(#000, transparent 58%);
}

.dock-icon {
  --scale: 1;
  position: relative;
  display: grid;
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  place-items: center;
  border-radius: 15px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 760;
  line-height: 1;
  transform: translateY(calc((1 - var(--scale)) * 15px)) scale(var(--scale));
  transform-origin: bottom center;
  transition:
    transform 95ms ease-out,
    filter 95ms ease-out,
    box-shadow 95ms ease-out;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -12px 22px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.28);
  will-change: transform;
}

.dock-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.dock-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.dock-icon.qb-status-ok::after,
.dock-icon.qb-status-error::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(13, 14, 15, 0.86);
  border-radius: 50%;
}

.dock-icon.qb-status-ok::after {
  background: rgba(54, 211, 116, 0.96);
  box-shadow: 0 0 16px rgba(54, 211, 116, 0.45);
}

.dock-icon.qb-status-error::after {
  background: rgba(255, 69, 58, 0.96);
  box-shadow: 0 0 16px rgba(255, 69, 58, 0.45);
}

.qb-popover {
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    rgba(13, 14, 16, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 22px 56px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  color: rgba(247, 242, 232, 0.82);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 120ms ease, transform 120ms ease;
}

.qb-popover.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.qb-popover__header,
.qb-popover__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qb-popover__title {
  color: rgba(247, 242, 232, 0.96);
  font-size: 13px;
  font-weight: 760;
}

.qb-popover__status {
  color: rgba(247, 242, 232, 0.46);
  font-size: 11px;
}

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

.qb-popover__speed,
.qb-popover__stat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.qb-popover__label {
  color: rgba(247, 242, 232, 0.46);
  font-size: 10px;
  font-weight: 680;
  text-transform: uppercase;
}

.qb-popover__value {
  margin-top: 3px;
  color: rgba(247, 242, 232, 0.95);
  font-size: 16px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.qb-popover__stats {
  align-items: stretch;
}

.qb-popover__stat {
  flex: 1;
  text-align: center;
  padding: 7px;
}

.qb-popover__stat .qb-popover__value {
  font-size: 14px;
}

.qb-popover__section {
  display: grid;
  gap: 7px;
}

.qb-popover__section-title {
  color: rgba(247, 242, 232, 0.54);
  font-size: 11px;
  font-weight: 740;
}

.qb-popover__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qb-popover__item {
  min-width: 0;
  display: grid;
  gap: 2px;
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(0, 0, 0, 0.17);
}

.qb-popover__item-name {
  overflow: hidden;
  color: rgba(247, 242, 232, 0.86);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qb-popover__item-meta {
  color: rgba(247, 242, 232, 0.45);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.qb-popover__empty {
  color: rgba(247, 242, 232, 0.42);
  font-size: 12px;
}

.desktop-folder {
  position: fixed;
  left: 360px;
  top: 122px;
  z-index: 18;
  width: 86px;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 242, 232, 0.7);
  cursor: grab;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
  user-select: none;
  touch-action: none;
}

.desktop-folder.dragging {
  cursor: grabbing;
}

.desktop-folder:focus-visible {
  outline: 2px solid rgba(var(--wallpaper-accent-rgb), 0.88);
  outline-offset: 6px;
  border-radius: 10px;
}

.desktop-folder__icon {
  position: relative;
  width: 66px;
  height: 52px;
  border-radius: 10px;
  background: url("Indexfolder/folder.webp") center / contain no-repeat;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.3);
}

.desktop-folder__icon::before {
  content: none;
}

.desktop-folder.drop-ready .desktop-folder__icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 3px rgba(var(--wallpaper-accent-rgb), 0.28),
    0 0 34px rgba(var(--wallpaper-accent-rgb), 0.34);
}

.desktop-folder__label {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.notebook-desktop {
  position: fixed;
  left: 462px;
  top: 122px;
  z-index: 18;
  width: 86px;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 242, 232, 0.7);
  cursor: grab;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
  user-select: none;
  touch-action: none;
}

.notebook-desktop.dragging {
  cursor: grabbing;
}

.notebook-desktop:focus-visible {
  outline: 2px solid rgba(var(--wallpaper-accent-rgb), 0.88);
  outline-offset: 6px;
  border-radius: 10px;
}

.notebook-desktop__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: url("Indexfolder/notebook.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34));
}

.notebook-desktop__label {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.screenshot-desktop {
  position: fixed;
  left: 564px;
  top: 122px;
  z-index: 18;
  width: 86px;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(247, 242, 232, 0.7);
  cursor: grab;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
  user-select: none;
  touch-action: none;
}

.screenshot-desktop.dragging {
  cursor: grabbing;
}

.screenshot-desktop:focus-visible {
  outline: 2px solid rgba(var(--wallpaper-accent-rgb), 0.88);
  outline-offset: 6px;
  border-radius: 10px;
}

.screenshot-desktop__icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: url("Indexfolder/screenshot.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34));
}

.screenshot-badge {
  position: absolute;
  right: 2px;
  top: 1px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(13, 14, 15, 0.88);
  border-radius: 999px;
  padding: 0 5px;
  background: rgba(255, 69, 58, 0.96);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.48);
}

.screenshot-badge.hidden {
  display: none;
}

.screenshot-desktop__label {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

#screenshot-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.screenshot-card {
  --screenshot-window-width: min(920px, calc(100vw - 48px));
  --screenshot-window-height: min(620px, calc(100vh - 64px));
  width: var(--screenshot-window-width);
  height: var(--screenshot-window-height);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(43, 45, 47, 0.94), rgba(18, 19, 21, 0.93)),
    rgba(18, 20, 22, 0.92);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: rgba(247, 242, 232, 0.88);
  transform: translate(var(--screenshot-window-x, 0px), var(--screenshot-window-y, 0px));
}

.screenshot-titlebar {
  height: 38px;
  display: grid;
  grid-template-columns: 94px 1fr 94px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
}

.screenshot-card.dragging .screenshot-titlebar {
  cursor: grabbing;
}

.screenshot-titlebar__title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 760;
}

.screenshot-titlebar__icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: url("Indexfolder/screenshot.webp") center / contain no-repeat;
}

.screenshot-window {
  height: calc(100% - 38px);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.screenshot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-status {
  color: rgba(247, 242, 232, 0.5);
  font-size: 12px;
}

.screenshot-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.18);
}

.screenshot-tab {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: rgba(247, 242, 232, 0.54);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.screenshot-tab.active {
  background: rgba(235, 195, 52, 0.18);
  color: rgba(247, 242, 232, 0.92);
  box-shadow: inset 0 0 0 1px rgba(235, 195, 52, 0.22);
}

.screenshot-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.screenshot-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.screenshot-item:hover {
  border-color: rgba(235, 195, 52, 0.28);
  background: rgba(235, 195, 52, 0.08);
}

.screenshot-item__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
}

.screenshot-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 690;
}

.screenshot-item__meta {
  color: rgba(247, 242, 232, 0.48);
  font-size: 11px;
}

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

.screenshot-action {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 242, 232, 0.8);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
}

.screenshot-action.approve {
  border-color: rgba(54, 211, 116, 0.28);
  background: rgba(54, 211, 116, 0.12);
}

.screenshot-action.deny {
  border-color: rgba(255, 69, 58, 0.28);
  background: rgba(255, 69, 58, 0.1);
}

.screenshot-action:hover {
  filter: brightness(1.15);
}

.screenshot-item.is-approving {
  opacity: 0.45;
  pointer-events: none;
}

.screenshot-portal-ghost {
  position: fixed;
  z-index: 10002;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(54, 211, 116, 0.22);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.screenshot-portal-ghost img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.screenshot-portal-ring {
  position: fixed;
  z-index: 10001;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(54, 211, 116, 0.68);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(247, 242, 232, 0.14),
    0 0 28px rgba(54, 211, 116, 0.42),
    inset 0 0 18px rgba(54, 211, 116, 0.28);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  will-change: transform, opacity, filter;
}

.screenshot-empty {
  place-self: center;
  color: rgba(247, 242, 232, 0.48);
  font-size: 13px;
}

.sticky-notes {
  position: fixed;
  inset: 0;
  z-index: 17;
  pointer-events: none;
}

.sticky-note {
  position: fixed;
  left: 392px;
  top: 238px;
  z-index: 17;
  width: clamp(220px, 18vw, 280px);
  height: clamp(220px, 19vw, 300px);
  display: grid;
  grid-template-rows: 38px 1fr;
  overflow: hidden;
  border: 1px solid rgba(var(--sticky-note-shadow), 0.32);
  border-radius: 4px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 84% 78%, rgba(var(--sticky-note-shadow), 0.12), transparent 28%),
    linear-gradient(96deg, rgba(255, 255, 255, 0.12), transparent 32%, rgba(var(--sticky-note-shadow), 0.08) 100%),
    linear-gradient(155deg, rgba(var(--sticky-note-bg-1), 0.98), rgba(var(--sticky-note-bg-2), 0.96)),
    rgb(var(--sticky-note-bg-2));
  box-shadow:
    -8px 10px 18px rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset -16px -18px 28px rgba(var(--sticky-note-shadow), 0.1);
  color: rgba(var(--sticky-note-ink), 0.9);
  transform: rotate(-1deg);
  transform-origin: center;
  pointer-events: auto;
}

.sticky-note::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.sticky-note::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(2deg, transparent 0 72%, rgba(var(--sticky-note-shadow), 0.05) 73%, transparent 78%),
    radial-gradient(circle at 18% 72%, rgba(var(--sticky-note-shadow), 0.07), transparent 20%),
    radial-gradient(circle at 70% 34%, rgba(255, 255, 255, 0.12), transparent 18%);
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.sticky-note.dragging {
  cursor: grabbing;
  transform: rotate(0deg);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.sticky-note__handle {
  position: relative;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(96deg, rgba(var(--sticky-note-shadow), 0.12), transparent 28%, rgba(255, 255, 255, 0.1)),
    rgba(var(--sticky-note-shadow), 0.18);
  border-bottom: 1px solid rgba(var(--sticky-note-shadow), 0.15);
}

.sticky-note__handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 17px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: rgba(var(--sticky-note-shadow), 0.2);
  transform: translateX(-50%);
}

.sticky-note.dragging .sticky-note__handle {
  cursor: grabbing;
}

.sticky-note__textarea {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  padding: 14px 18px 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--sticky-note-shadow), 0.08), transparent 20%),
    repeating-linear-gradient(
      transparent 0 32px,
      rgba(var(--sticky-note-shadow), 0.12) 33px,
      transparent 34px
    );
  color: inherit;
  font-family: "Indie Flower", cursive;
  font-size: 27px;
  line-height: 1.24;
  letter-spacing: 0;
  overflow: auto;
  scrollbar-color: rgba(var(--sticky-note-shadow), 0.28) transparent;
  scrollbar-width: thin;
}

.sticky-note__textarea::placeholder {
  color: rgba(var(--sticky-note-ink), 0.44);
}

.sticky-note__textarea::-webkit-scrollbar {
  width: 7px;
}

.sticky-note__textarea::-webkit-scrollbar-track {
  background: transparent;
}

.sticky-note__textarea::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(var(--sticky-note-shadow), 0.28);
  background-clip: padding-box;
}

.sticky-note__textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--sticky-note-shadow), 0.42);
  background-clip: padding-box;
}

#file-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.file-card {
  --file-window-width: min(920px, 94vw);
  --file-window-height: min(620px, calc(100vh - 64px));
  --file-sidebar-width: 176px;
  position: relative;
  width: var(--file-window-width);
  height: var(--file-window-height);
  overflow: hidden;
  padding: 0;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(43, 45, 47, 0.92), rgba(20, 22, 24, 0.9)),
    rgba(18, 20, 22, 0.92);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  will-change: transform;
}

.file-card.dragging {
  user-select: none;
}

.file-card.resizing {
  user-select: none;
}

.file-titlebar {
  height: 38px;
  display: grid;
  grid-template-columns: 94px 1fr 94px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
}

.file-card.dragging .file-titlebar {
  cursor: grabbing;
}

.file-window-controls {
  display: flex;
  gap: 8px;
}

.file-window-button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.file-window-button.close {
  background: #ff5f57;
}

.file-window-button.minimize {
  background: #ffbd2e;
  pointer-events: none;
}

.file-window-button.zoom {
  background: #28c840;
  pointer-events: none;
}

.file-titlebar__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: rgba(247, 242, 232, 0.88);
  font-size: 13px;
  font-weight: 680;
}

.file-titlebar__icon {
  width: 20px;
  height: 16px;
  background: url("Indexfolder/folder.webp") center / contain no-repeat;
  flex: 0 0 auto;
}

.file-window {
  display: grid;
  grid-template-columns: var(--file-sidebar-width) 6px minmax(0, 1fr);
  height: calc(100% - 38px);
  min-height: 0;
}

.file-sidebar {
  padding: 16px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  overflow: auto;
}

.file-sidebar-resizer {
  width: 6px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  background: rgba(0, 0, 0, 0.12);
  cursor: col-resize;
}

.file-sidebar-resizer:hover,
.file-sidebar-resizer.dragging {
  background: rgba(235, 195, 52, 0.18);
}

.file-sidebar__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border: 0;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 242, 232, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  text-align: left;
}

.file-sidebar__item.depth-0 {
  padding-left: 10px;
}

.file-sidebar__item.depth-1 {
  padding-left: 20px;
}

.file-sidebar__item.depth-2 {
  padding-left: 32px;
}

.file-sidebar__item.depth-3 {
  padding-left: 44px;
}

.file-sidebar__item.depth-deep {
  padding-left: 56px;
}

.file-sidebar__toggle {
  width: 14px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: rgba(247, 242, 232, 0.48);
  font-size: 11px;
  line-height: 1;
}

.file-sidebar__toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  transition: transform 120ms ease;
}

.file-sidebar__toggle.expanded::before {
  transform: rotate(90deg);
}

.file-sidebar__toggle.empty::before {
  opacity: 0;
}

.file-sidebar__list {
  display: grid;
  gap: 4px;
}

.file-sidebar__item:hover {
  background: rgba(247, 242, 232, 0.08);
  color: rgba(247, 242, 232, 0.9);
}

.file-sidebar__item.active {
  background: rgba(235, 195, 52, 0.14);
  color: rgba(247, 242, 232, 0.94);
}

.file-sidebar__item.drop-target {
  background: rgba(235, 195, 52, 0.22);
  color: rgba(247, 242, 232, 0.98);
  box-shadow: inset 0 0 0 1px rgba(235, 195, 52, 0.32);
}

.file-sidebar__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-sidebar__glyph {
  width: 16px;
  height: 13px;
  background: url("Indexfolder/folder.webp") center / contain no-repeat;
  flex: 0 0 auto;
}

.file-main {
  min-width: 0;
  min-height: 0;
  display: grid;
}

.file-resize-handle {
  position: absolute;
  z-index: 12;
  width: 30px;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
}

.file-resize-handle::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0.72;
}

.file-resize-handle.se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.file-resize-handle.se::before {
  right: 6px;
  bottom: 6px;
  border-right: 2px solid rgba(247, 242, 232, 0.32);
  border-bottom: 2px solid rgba(247, 242, 232, 0.32);
}

.file-drop-zone {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: rgba(8, 10, 12, 0.34);
  box-shadow: none;
}

.file-drop-zone__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 22px;
}

.file-breadcrumb {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.64);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.file-breadcrumb__button {
  border: 0;
  padding: 2px 5px;
  border-radius: 6px;
  background: transparent;
  color: rgba(247, 242, 232, 0.68);
  cursor: pointer;
  font: inherit;
}

.file-breadcrumb__button:hover {
  background: rgba(247, 242, 232, 0.08);
  color: rgba(247, 242, 232, 0.94);
}

.file-breadcrumb__sep {
  color: rgba(247, 242, 232, 0.34);
}

.file-status {
  min-height: 16px;
  color: rgba(247, 242, 232, 0.54);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.file-top-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  min-width: 0;
}

.file-view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.file-view-button {
  position: relative;
  width: 24px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: rgba(247, 242, 232, 0.6);
  cursor: pointer;
}

.file-view-button.active {
  background: rgba(235, 195, 52, 0.18);
  color: rgba(247, 242, 232, 0.94);
}

.file-view-button::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  box-shadow:
    6px 0 0 currentColor,
    0 6px 0 currentColor,
    6px 6px 0 currentColor;
}

.file-view-button.list::before {
  left: 6px;
  top: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  box-shadow:
    0 5px 0 currentColor,
    0 10px 0 currentColor;
}

.file-drop-zone.drop-ready {
  border-color: rgba(235, 195, 52, 0.58);
  box-shadow:
    inset 0 0 28px rgba(235, 195, 52, 0.08),
    0 0 24px rgba(235, 195, 52, 0.14);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  align-content: start;
  gap: 16px 12px;
  min-height: 0;
  overflow: auto;
}

.file-list {
  display: grid;
  align-content: start;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.12);
}

.file-list.hidden {
  display: none;
}

.file-list-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) minmax(90px, 0.7fr) minmax(86px, 0.5fr) minmax(132px, 0.8fr);
  align-items: center;
  gap: 14px;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  padding: 0 12px;
  background: transparent;
  color: rgba(247, 242, 232, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.file-list-row:hover {
  background: rgba(235, 195, 52, 0.1);
  color: rgba(247, 242, 232, 0.94);
}

.file-list-row.header {
  min-height: 30px;
  color: rgba(247, 242, 232, 0.46);
  cursor: default;
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.file-list-row.dragging,
.file-item.dragging {
  opacity: 0.42;
}

.file-list-row.drop-target,
.file-item.drop-target {
  background: rgba(235, 195, 52, 0.18);
  box-shadow: inset 0 0 0 1px rgba(235, 195, 52, 0.34);
}

.file-list-row.header:hover {
  background: transparent;
  color: rgba(247, 242, 232, 0.46);
}

.file-list-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-sort-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

.file-sort-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0;
}

.file-sort-button.active::after {
  opacity: 0.8;
}

.file-sort-button.asc::after {
  border-bottom: 5px solid currentColor;
}

.file-sort-button.desc::after {
  border-top: 5px solid currentColor;
}

.file-list-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.file-list-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(235, 195, 52, 0.28) 73%),
    rgba(247, 242, 232, 0.1);
  box-shadow: inset 0 0 0 1px rgba(247, 242, 232, 0.18);
}

.file-list-icon.folder {
  width: 20px;
  background: url("Indexfolder/folder.webp") center / contain no-repeat;
  box-shadow: none;
}

.file-item {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 10px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 242, 232, 0.84);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  box-shadow: none;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.file-item:hover {
  border-color: rgba(235, 195, 52, 0.2);
  background: rgba(235, 195, 52, 0.1);
  transform: none;
}

.file-item__icon {
  width: 38px;
  height: 48px;
  border: 1px solid rgba(247, 242, 232, 0.26);
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 76%, rgba(235, 195, 52, 0.28) 77%),
    rgba(247, 242, 232, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.file-item__thumb {
  width: 72px;
  height: 58px;
  display: block;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(247, 242, 232, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.file-item__folder {
  width: 68px;
  height: 54px;
  display: block;
  background: url("Indexfolder/folder.webp") center / contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.file-item__name {
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.file-item__meta,
.file-empty {
  color: rgba(247, 242, 232, 0.54);
  font-size: 12px;
  line-height: 1.35;
}

.file-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

.file-folder-summary {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 232, 0.48);
  font-size: 12px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.file-context-menu {
  position: fixed;
  z-index: 90;
  min-width: 178px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(45, 47, 50, 0.96), rgba(22, 24, 27, 0.96)),
    rgba(20, 22, 24, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.file-context-menu.hidden {
  display: none;
}

.file-context-menu__button {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: rgba(247, 242, 232, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.file-context-menu__button:hover {
  background: rgba(235, 195, 52, 0.14);
}

.file-context-menu__button.danger {
  color: #ff8b8b;
}

.file-context-menu__separator {
  height: 1px;
  margin: 5px 6px;
  background: rgba(255, 255, 255, 0.12);
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.image-preview.hidden {
  display: none;
}

.image-preview__bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 22, 0.7);
}

.image-preview__meta {
  min-width: 0;
  flex: 1;
}

.image-preview__name {
  color: rgba(247, 242, 232, 0.92);
  font-size: 14px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview__detail {
  margin-top: 3px;
  color: rgba(247, 242, 232, 0.54);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.image-preview__download {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.image-preview__delete {
  min-width: 86px;
}

.image-preview__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 28px 76px;
}

.image-preview__image {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

.image-preview__nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 232, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 0;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
  transition:
    background 120ms ease,
    opacity 120ms ease;
  user-select: none;
}

.image-preview__nav::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 2px solid rgba(247, 242, 232, 0.9);
  border-right: 2px solid rgba(247, 242, 232, 0.9);
  transform-origin: center;
}

.image-preview__nav.prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.image-preview__nav.next::before {
  transform: translateX(-2px) rotate(45deg);
}

.image-preview__nav:hover {
  background: rgba(235, 195, 52, 0.16);
}

.image-preview__nav:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.image-preview__nav.prev {
  left: 18px;
}

.image-preview__nav.next {
  right: 18px;
}

.text-preview {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(0, 0, 0, 0.88);
  color: rgba(247, 242, 232, 0.9);
}

.text-preview.hidden {
  display: none;
}

.text-preview__bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 22, 0.7);
}

.text-preview__name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.92);
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-preview__download {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.text-preview__content {
  margin: 0;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(235, 195, 52, 0.05), transparent 1px) 0 0 / 54px 100%,
    rgba(7, 8, 10, 0.98);
  color: rgba(247, 242, 232, 0.86);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.text-preview__content code {
  display: block;
  min-width: min-content;
  padding: 0 0 0 12px;
  background: transparent;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text-preview__content .hljs {
  background: transparent;
}

.model-preview {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(0, 0, 0, 0.88);
  color: rgba(247, 242, 232, 0.9);
}

.model-preview.hidden {
  display: none;
}

.model-preview__bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 22, 0.72);
}

.model-preview__meta {
  min-width: 0;
  flex: 1;
}

.model-preview__name {
  overflow: hidden;
  color: rgba(247, 242, 232, 0.92);
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-preview__detail {
  margin-top: 3px;
  color: rgba(247, 242, 232, 0.54);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.model-preview__button,
.model-preview__download {
  min-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.model-preview__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 30%, rgba(235, 195, 52, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(18, 20, 22, 0.98), rgba(6, 8, 10, 0.98));
}

.model-preview__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.model-preview__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(247, 242, 232, 0.72);
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.pdf-preview {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(0, 0, 0, 0.86);
  color: rgba(247, 242, 232, 0.9);
}

.pdf-preview.hidden {
  display: none;
}

.pdf-preview__bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 22, 0.74);
}

.pdf-preview__name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.92);
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-preview__download {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.pdf-preview__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(7, 8, 10, 0.98);
}

.server-stack {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 12;
  width: min(300px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
}

.server-panel {
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.server-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.server-panel__title {
  margin: 0;
  color: rgba(247, 242, 232, 0.58);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0;
}

.server-panel__status {
  color: rgba(247, 242, 232, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.server-metrics {
  display: grid;
  gap: 11px;
}

.server-metric {
  display: grid;
  gap: 7px;
}

.server-metric__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.server-metric__label {
  color: rgba(247, 242, 232, 0.58);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-metric__value {
  min-width: 0;
  color: rgba(247, 242, 232, 0.58);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(var(--wallpaper-accent-rgb), 0.1), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
}

.server-meter__bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--wallpaper-accent-rgb), 0.76), rgba(247, 242, 232, 0.82));
  box-shadow: 0 0 12px rgba(var(--wallpaper-accent-rgb), 0.24);
  transition: width 260ms ease;
}

.clock-wrap {
  width: min(440px, calc(100vw - 48px));
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-25vh);
  border: 0;
  border-radius: 4px;
  padding: 20px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.clock-wrap:focus-visible {
  outline: 2px solid rgba(235, 195, 52, 0.9);
  outline-offset: 8px;
}

.desktop-clock {
  color: rgba(247, 242, 232, 0.92);
  font-family: "Desktop Digital Clock", monospace;
  font-size: 180px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
  user-select: none;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.overlay.hidden {
  display: none;
}

#notebook-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.notebook-card {
  --notebook-window-width: min(1180px, calc(100vw - 48px));
  --notebook-window-height: min(760px, calc(100vh - 64px));
  width: var(--notebook-window-width);
  height: var(--notebook-window-height);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(55, 56, 58, 0.98), rgba(20, 21, 23, 0.98));
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 232, 0.88);
}

.notebook-card.dragging {
  cursor: grabbing;
}

.notebook-card.resizing {
  user-select: none;
}

.notebook-titlebar {
  height: 38px;
  display: grid;
  grid-template-columns: 94px 1fr 94px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
}

.notebook-titlebar__title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 760;
}

.notebook-titlebar__icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: url("Indexfolder/notebook.webp") center / contain no-repeat;
}

.notebook-window {
  height: calc(100% - 38px);
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 0;
}

.notebook-sidebar {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 14px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(13, 14, 16, 0.54);
}

.notebook-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.notebook-sidebar-nav {
  min-height: 34px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.notebook-sidebar-back {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: transparent;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  text-indent: -999px;
}

.notebook-sidebar-back::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 2px solid rgba(247, 242, 232, 0.84);
  border-bottom: 2px solid rgba(247, 242, 232, 0.84);
  border-radius: 1px;
  transform: translate(-38%, -50%) rotate(45deg);
}

.notebook-sidebar-back:hover {
  border-color: rgba(235, 195, 52, 0.42);
  background: rgba(235, 195, 52, 0.12);
}

.notebook-sidebar-back.hidden {
  visibility: hidden;
  pointer-events: none;
}

.notebook-sidebar-title {
  min-width: 0;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.72);
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notebook-input,
.notebook-select {
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 242, 232, 0.9);
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.notebook-input:focus,
.notebook-select:focus {
  border-color: rgba(235, 195, 52, 0.74);
  box-shadow: 0 0 0 3px rgba(235, 195, 52, 0.13);
}

.notebook-select option {
  background: #202124;
  color: rgba(247, 242, 232, 0.94);
}

.notebook-button {
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 232, 0.9);
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.notebook-button:hover {
  border-color: rgba(235, 195, 52, 0.52);
  background: rgba(235, 195, 52, 0.13);
}

.notebook-button.danger:hover {
  border-color: rgba(255, 95, 87, 0.56);
  background: rgba(255, 95, 87, 0.14);
}

.notebook-button:disabled {
  cursor: default;
  opacity: 0.46;
}

.notebook-notes {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 7px;
  padding-right: 2px;
}

.notebook-notes.slide-from-right {
  animation: notebookSlideFromRight 180ms ease both;
}

.notebook-notes.slide-from-left {
  animation: notebookSlideFromLeft 180ms ease both;
}

@keyframes notebookSlideFromRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notebookSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notebook-note {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notebook-note:hover,
.notebook-note.is-active {
  border-color: rgba(235, 195, 52, 0.16);
  background: rgba(235, 195, 52, 0.12);
}

.notebook-category {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
}

.notebook-category .notebook-note__meta {
  grid-column: 1 / -1;
}

.notebook-category__count {
  color: rgba(247, 242, 232, 0.45);
  font-size: 12px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.notebook-note__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 760;
}

.notebook-note__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(247, 242, 232, 0.54);
  font-size: 11px;
  line-height: 1.35;
}

.notebook-empty {
  padding: 12px 10px;
  color: rgba(247, 242, 232, 0.48);
  font-size: 13px;
}

.notebook-editor-pane {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
}

.notebook-meta {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.notebook-actions {
  position: relative;
  justify-self: end;
}

.notebook-actions__button {
  min-width: 92px;
}

.notebook-actions__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  width: 240px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(20, 21, 23, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.notebook-actions__menu.hidden {
  display: none;
}

.notebook-actions__menu .notebook-button,
.notebook-actions__menu .notebook-toggle,
.notebook-actions__menu .notebook-select {
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px;
}

.notebook-actions__section {
  display: grid;
  gap: 6px;
}

.notebook-actions__section + .notebook-actions__section {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.notebook-actions__label {
  color: rgba(247, 242, 232, 0.48);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notebook-actions__menu .notebook-button {
  height: 34px;
}

.notebook-actions__menu .notebook-button.danger {
  color: rgba(255, 172, 166, 0.95);
}

.notebook-toggle {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: rgba(247, 242, 232, 0.72);
  font-size: 12px;
  white-space: nowrap;
}

.notebook-toggle input {
  accent-color: #ebc334;
}

.notebook-editor-wrap {
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 9, 11, 0.62);
}

.notebook-welcome {
  position: absolute;
  inset: 64px 16px 54px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(247, 242, 232, 0.52);
  font-size: 13px;
  pointer-events: none;
}

.notebook-welcome.hidden {
  display: none;
}

.notebook-editor-wrap .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
}

.notebook-editor-wrap .ql-toolbar.ql-snow .ql-picker,
.notebook-editor-wrap .ql-toolbar.ql-snow .ql-stroke {
  color: rgba(247, 242, 232, 0.82);
  stroke: rgba(247, 242, 232, 0.82);
}

.notebook-editor-wrap .ql-toolbar.ql-snow .ql-fill {
  fill: rgba(247, 242, 232, 0.82);
}

.notebook-editor-wrap .ql-container.ql-snow {
  min-height: 0;
  height: auto;
  border: 0;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.9);
  font: 15px/1.62 Inter, ui-sans-serif, system-ui, sans-serif;
}

.notebook-editor-wrap .ql-picker-options {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(31, 32, 34, 0.98);
  color: rgba(247, 242, 232, 0.9);
}

.notebook-editor-wrap .ql-editor {
  min-height: 0;
  height: 100%;
  padding: 18px;
  overflow: auto;
}

.notebook-editor-wrap .ql-editor .ql-checklist-unchecked,
.notebook-editor-wrap .ql-editor .ql-checklist-checked {
  position: relative;
  padding-left: 30px;
}

.notebook-editor-wrap .ql-editor .ql-checklist-unchecked::before,
.notebook-editor-wrap .ql-editor .ql-checklist-checked::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(235, 195, 52, 0.78);
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.92);
}

.notebook-editor-wrap .ql-editor .ql-checklist-checked {
  color: rgba(247, 242, 232, 0.68);
}

.notebook-editor-wrap .ql-editor .ql-checklist-checked::before {
  background: rgba(235, 195, 52, 0.16);
}

.notebook-editor-wrap .ql-editor .ql-checklist-checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.38em;
  width: 4px;
  height: 8px;
  border: solid rgba(235, 195, 52, 0.9);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.notebook-editor-wrap .ql-editor.ql-blank::before {
  color: rgba(247, 242, 232, 0.36);
  font-style: normal;
}

.notebook-privacy-shield {
  display: none;
  position: absolute;
  inset: 42px 0 0;
  z-index: 3;
  place-items: center;
  background: linear-gradient(135deg, rgba(14, 15, 17, 0.86), rgba(14, 15, 17, 0.76));
  color: rgba(247, 242, 232, 0.72);
  font-weight: 760;
  letter-spacing: 0;
}

.notebook-card.is-private .notebook-privacy-shield {
  display: grid;
}

.notebook-card.is-private .ql-editor {
  filter: blur(5px);
  user-select: none;
}

.notebook-status {
  min-height: 18px;
  color: rgba(247, 242, 232, 0.5);
  font-size: 12px;
}

.clock-card {
  width: min(860px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(10, 12, 15, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  padding: clamp(18px, 3vw, 28px);
}

.app-card {
  width: min(940px, 94vw);
}

.clock-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.clock-card__title {
  margin: 0;
  color: rgba(247, 242, 232, 0.92);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 720;
  letter-spacing: 0;
}

.clock-close,
.clock-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(247, 242, 232, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.clock-close {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  color: transparent;
  overflow: hidden;
}

.clock-close::before,
.clock-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.92);
  transform-origin: center;
}

.clock-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.clock-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.clock-btn {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.clock-close:hover,
.clock-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.clock-close:active,
.clock-btn:active {
  transform: translateY(1px);
}

.clock-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

.clock-panel {
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.clock-panel h3 {
  margin: 0;
  color: rgba(247, 242, 232, 0.88);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.clock-input,
.clock-number {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(247, 242, 232, 0.94);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 0 11px;
}

.clock-input:focus,
.clock-number:focus {
  border-color: rgba(235, 195, 52, 0.84);
  box-shadow: 0 0 0 3px rgba(235, 195, 52, 0.18);
}

.clock-number {
  width: 78px;
}

.clock-display {
  color: rgba(247, 242, 232, 0.96);
  font-size: clamp(24px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0;
}

.clock-status {
  min-height: 18px;
  color: rgba(247, 242, 232, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.placeholder-copy {
  margin: 0;
  color: rgba(247, 242, 232, 0.64);
  font-size: 15px;
  line-height: 1.55;
}

.clipboard-card {
  width: min(760px, 94vw);
}

.clipboard-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.clipboard-input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(247, 242, 232, 0.92);
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.clipboard-input:focus {
  border-color: rgba(235, 195, 52, 0.62);
  box-shadow: 0 0 0 3px rgba(235, 195, 52, 0.12);
}

.clipboard-list {
  display: grid;
  gap: 8px;
  max-height: min(460px, 56vh);
  overflow: auto;
  padding-right: 4px;
}

.clipboard-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.clipboard-text {
  min-width: 0;
  color: rgba(247, 242, 232, 0.88);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.clipboard-meta {
  margin-top: 4px;
  color: rgba(247, 242, 232, 0.42);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.clipboard-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: end;
}

.clipboard-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: rgba(247, 242, 232, 0.48);
  font-size: 13px;
  text-align: center;
}

.clipboard-status {
  min-height: 18px;
  margin-top: 12px;
  color: rgba(247, 242, 232, 0.52);
  font-size: 12px;
  line-height: 1.35;
}

.calculator-card {
  width: min(342px, calc(100vw - 36px));
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(50, 50, 54, 0.98), rgba(8, 8, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}

.calculator-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 26px;
  margin-bottom: 6px;
}

.calculator-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: transparent;
  cursor: pointer;
  position: relative;
}

.calculator-close::before,
.calculator-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  transform-origin: center;
}

.calculator-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.calculator-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.calculator-display {
  min-height: 92px;
  display: grid;
  align-content: end;
  justify-items: end;
  gap: 6px;
  padding: 4px 4px 18px;
  text-align: right;
}

.calculator-expression {
  min-height: 18px;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculator-value {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 58px;
  font-weight: 280;
  letter-spacing: 0;
  line-height: 0.96;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.calculator-key {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: #333336;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  font-weight: 520;
  letter-spacing: 0;
  transition: filter 90ms ease, transform 90ms ease, background 90ms ease;
}

.calculator-key:hover {
  filter: brightness(1.16);
}

.calculator-key:active {
  transform: scale(0.96);
  filter: brightness(1.32);
}

.calculator-key.utility {
  background: #a5a5a5;
  color: #101010;
}

.calculator-key.operator {
  background: #ff9f0a;
  color: #fff;
}

.calculator-key.operator.active {
  background: #fff;
  color: #ff9f0a;
}

.calculator-key.zero {
  grid-column: span 2;
  aspect-ratio: auto;
  border-radius: 999px;
  text-align: left;
  padding-left: 27px;
}

.color-card {
  --picker-hue-color: #00ff40;
  --picker-current-color: #32a852;
  --picker-saturation: 70%;
  --picker-value: 66%;
  width: min(650px, 94vw);
  padding-bottom: 18px;
}

.color-picker {
  display: grid;
  gap: 14px;
}

.color-field-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  background: rgba(0, 0, 0, 0.18);
}

.color-preview {
  background: var(--picker-current-color);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.1);
}

.color-field {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), #000),
    linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)),
    var(--picker-hue-color);
  cursor: crosshair;
  touch-action: none;
}

.color-field__handle {
  position: absolute;
  left: var(--picker-saturation);
  top: calc(100% - var(--picker-value));
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.48),
    0 3px 10px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.color-hue {
  width: calc(100% - 40px);
  height: 18px;
  justify-self: center;
  accent-color: var(--picker-current-color);
  cursor: pointer;
}

.color-hue::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2a2a, #ffff2a, #2aff2a, #2affff, #2a2aff, #ff2aff, #ff2a2a);
}

.color-hue::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: var(--picker-current-color);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.38);
  appearance: none;
}

.color-hue::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2a2a, #ffff2a, #2aff2a, #2affff, #2a2aff, #ff2aff, #ff2a2a);
}

.color-hue::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: var(--picker-current-color);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.38);
}

.color-output-main,
.color-output-grid {
  padding: 0 20px;
}

.color-output-main {
  display: grid;
  gap: 6px;
}

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

.color-value {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 242, 232, 0.92);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.color-value:hover {
  border-color: rgba(var(--wallpaper-accent-rgb), 0.42);
  background: rgba(var(--wallpaper-accent-rgb), 0.08);
}

.color-value__label {
  color: rgba(247, 242, 232, 0.58);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.color-value__text {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-status {
  min-height: 17px;
  padding: 0 20px;
  color: rgba(247, 242, 232, 0.48);
  font-size: 12px;
}

.color-palette {
  display: grid;
  gap: 10px;
  padding: 0 20px;
}

.color-palette__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.color-palette__title {
  color: rgba(247, 242, 232, 0.58);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.color-palette__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.color-swatch {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 242, 232, 0.78);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.color-swatch:hover {
  border-color: rgba(var(--wallpaper-accent-rgb), 0.44);
  background: rgba(var(--wallpaper-accent-rgb), 0.08);
}

.color-swatch__chip {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--swatch-color, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

.color-swatch__text {
  min-width: 0;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.88);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-swatch.empty {
  cursor: default;
  opacity: 0.58;
}

.color-swatch.empty .color-swatch__chip {
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.12) 46% 54%, transparent 55%),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wallpaper-card {
  width: min(880px, 94vw);
}

.wallpaper-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(247, 242, 232, 0.58);
  font-size: 13px;
  line-height: 1.35;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: min(560px, 62vh);
  overflow: auto;
  padding-right: 4px;
}

.wallpaper-option {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 242, 232, 0.78);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    transform 120ms ease;
}

.wallpaper-option:hover,
.wallpaper-option.selected {
  border-color: rgba(235, 195, 52, 0.48);
  background: rgba(235, 195, 52, 0.1);
}

.wallpaper-option:active {
  transform: scale(0.985);
}

.wallpaper-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wallpaper-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.wallpaper-name {
  overflow: hidden;
  color: rgba(247, 242, 232, 0.9);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallpaper-meta {
  color: rgba(247, 242, 232, 0.46);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.wallpaper-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: rgba(247, 242, 232, 0.5);
  font-size: 13px;
  text-align: center;
}

.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start center;
  padding: 23vh 18px 18px;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px) saturate(1.18);
  -webkit-backdrop-filter: blur(10px) saturate(1.18);
}

.spotlight-overlay.hidden {
  display: none;
}

.spotlight-panel {
  width: min(680px, 94vw);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(12, 14, 17, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 26px 78px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(28px) saturate(1.75);
  -webkit-backdrop-filter: blur(28px) saturate(1.75);
}

.spotlight-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
}

.spotlight-icon {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(247, 242, 232, 0.72);
  border-radius: 50%;
  position: relative;
}

.spotlight-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.72);
  transform: rotate(45deg);
  transform-origin: center;
}

.spotlight-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(247, 242, 232, 0.96);
  font: inherit;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 520;
  letter-spacing: 0;
}

.spotlight-input::placeholder {
  color: rgba(247, 242, 232, 0.42);
}

.spotlight-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(247, 242, 232, 0.22);
  border-radius: 50%;
  color: rgba(247, 242, 232, 0.46);
  cursor: help;
  outline: 0;
}

.spotlight-help:focus-visible {
  border-color: rgba(235, 195, 52, 0.78);
  color: rgba(247, 242, 232, 0.9);
  box-shadow: 0 0 0 3px rgba(235, 195, 52, 0.14);
}

.spotlight-help__glyph {
  font-family: ui-serif, Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.spotlight-help__bubble {
  position: absolute;
  right: -2px;
  top: calc(100% + 12px);
  z-index: 3;
  width: min(320px, calc(100vw - 44px));
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(14, 15, 17, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  color: rgba(247, 242, 232, 0.72);
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.spotlight-help__bubble::before {
  content: "";
  position: absolute;
  right: 11px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(31, 32, 34, 0.94);
  transform: rotate(45deg);
}

.spotlight-help:hover .spotlight-help__bubble,
.spotlight-help:focus-visible .spotlight-help__bubble,
.spotlight-help:focus-within .spotlight-help__bubble {
  opacity: 1;
  transform: translateY(0);
}

.spotlight-help__bubble strong {
  color: rgba(247, 242, 232, 0.94);
  font-size: 12px;
}

.spotlight-help__bubble span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-help__bubble kbd {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(247, 242, 232, 0.9);
  font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.spotlight-results {
  display: grid;
  gap: 4px;
  max-height: min(360px, 42vh);
  overflow: auto;
  padding: 0 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-results.hidden {
  display: none;
}

.spotlight-result {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  background: transparent;
  color: rgba(247, 242, 232, 0.84);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.spotlight-result.active,
.spotlight-result:hover {
  background: rgba(235, 195, 52, 0.14);
  color: rgba(247, 242, 232, 0.96);
}

.spotlight-result__icon {
  width: 26px;
  height: 22px;
  background: url("Indexfolder/folder.webp") center / contain no-repeat;
}

.spotlight-result__icon.file {
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 66%, rgba(235, 195, 52, 0.38) 67%),
    rgba(255, 255, 255, 0.08);
}

.spotlight-result__icon.command {
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 195, 52, 0.22);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(235, 195, 52, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  color: rgba(247, 242, 232, 0.9);
  font-size: 14px;
  font-weight: 760;
}

.spotlight-result__main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.spotlight-result__name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-result__path,
.spotlight-result__meta {
  color: rgba(247, 242, 232, 0.48);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.spotlight-result__path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aim-card {
  width: min(1080px, 94vw);
}

.aim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.aim-status {
  color: rgba(247, 242, 232, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.trainer-tabs {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.trainer-tab {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: rgba(247, 242, 232, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition:
    background 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.trainer-tab.active {
  background: rgba(235, 195, 52, 0.18);
  color: rgba(247, 242, 232, 0.98);
  box-shadow: inset 0 0 0 1px rgba(235, 195, 52, 0.34);
}

.trainer-panel.hidden {
  display: none;
}

.speed-box {
  height: min(640px, 68vh);
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.speed-box.waiting {
  border-color: rgba(235, 195, 52, 0.55);
  background: rgba(235, 195, 52, 0.12);
  box-shadow: 0 0 22px rgba(235, 195, 52, 0.18);
}

.speed-box.ready {
  border-color: rgba(247, 242, 232, 0.9);
  background: rgba(247, 242, 232, 0.13);
  box-shadow: 0 0 30px rgba(247, 242, 232, 0.34);
}

.speed-box.early {
  border-color: rgba(255, 84, 90, 0.85);
  background: rgba(255, 84, 90, 0.13);
  box-shadow: 0 0 24px rgba(255, 84, 90, 0.42);
  animation: alphabet-shake 0.22s linear;
}

.speed-readout {
  color: rgba(247, 242, 232, 0.92);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.aim-stage {
  position: relative;
  height: min(640px, 68vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
  cursor: crosshair;
  user-select: none;
}

.aim-target {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #ff545a;
  box-shadow: 0 0 18px rgba(255, 84, 90, 0.62);
  cursor: crosshair;
  transform: translate(-50%, -50%);
}

.aim-target.hidden {
  display: none;
}

.steady-stage {
  position: relative;
  height: min(640px, 68vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
  cursor: crosshair;
}

.steady-target {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(235, 195, 52, 0.22);
  box-shadow: 0 0 24px rgba(235, 195, 52, 0.38);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.steady-target.hidden {
  display: none;
}

.timing-stage {
  min-height: min(640px, 68vh);
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.06);
}

.timing-track {
  position: relative;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.timing-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 8%;
  background: rgba(235, 195, 52, 0.18);
  box-shadow: 0 0 24px rgba(235, 195, 52, 0.34);
}

.timing-marker {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 8px;
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.92);
  box-shadow: 0 0 20px rgba(247, 242, 232, 0.5);
  transform: translateX(-50%);
}

.timing-result {
  min-height: 28px;
  color: rgba(247, 242, 232, 0.82);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 760;
  text-align: center;
}

.timing-result.perfect {
  color: var(--clock-feature);
}

.timing-result.good {
  color: rgba(247, 242, 232, 0.9);
}

.timing-result.miss {
  color: #ff8b8b;
}

.audio-card {
  width: min(780px, 94vw);
  position: relative;
  will-change: transform;
}

.audio-card .clock-card__header {
  cursor: grab;
  user-select: none;
}

.audio-card.dragging .clock-card__header {
  cursor: grabbing;
}

.audio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.audio-tabs {
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.audio-tab {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: rgba(247, 242, 232, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition:
    background 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.audio-tab.active {
  background: rgba(235, 195, 52, 0.18);
  color: rgba(247, 242, 232, 0.98);
  box-shadow: inset 0 0 0 1px rgba(235, 195, 52, 0.34);
}

.audio-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247, 242, 232, 0.62);
  font-size: 13px;
  white-space: nowrap;
}

.audio-volume input {
  width: 130px;
  accent-color: var(--clock-feature);
}

.audio-panel.hidden {
  display: none;
}

.audio-game {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.055);
}

.audio-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audio-slider {
  width: 100%;
  accent-color: var(--clock-feature);
}

.audio-readout {
  color: rgba(247, 242, 232, 0.86);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.audio-visualizer-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(235, 195, 52, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 38% 50%, rgba(109, 255, 191, 0.12), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(235, 195, 52, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 0 28px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(235, 195, 52, 0.08);
}

.audio-visualizer {
  width: 100%;
  height: 260px;
  display: block;
}

.audio-final-score {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(235, 195, 52, 0.13), transparent 42%),
    rgba(0, 0, 0, 0.48);
  opacity: 1;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.audio-final-score.hidden {
  display: none;
}

.audio-final-score__inner {
  text-align: center;
}

.audio-final-score__label {
  margin-bottom: 8px;
  color: rgba(247, 242, 232, 0.58);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audio-final-score__value {
  color: rgba(247, 242, 232, 0.96);
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.audio-hold {
  width: 96px;
  min-height: 44px;
  justify-self: center;
  border: 1px solid rgba(235, 195, 52, 0.34);
  border-radius: 999px;
  background: rgba(235, 195, 52, 0.12);
  color: rgba(247, 242, 232, 0.94);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(235, 195, 52, 0.16);
  transition:
    transform 90ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
  touch-action: none;
  user-select: none;
}

.audio-hold:active,
.audio-hold.holding {
  transform: scale(0.99);
  background: rgba(235, 195, 52, 0.2);
  box-shadow:
    inset 0 0 38px rgba(255, 255, 255, 0.08),
    0 0 34px rgba(235, 195, 52, 0.28);
}

.audio-hold:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.audio-result {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.audio-result__item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.audio-result__label {
  margin-bottom: 6px;
  color: rgba(247, 242, 232, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audio-result__value {
  color: rgba(247, 242, 232, 0.92);
  font-size: 17px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.alphabet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alphabet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.alphabet-stat,
.alphabet-leaderboard {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.alphabet-stat {
  padding: 13px 15px;
}

.alphabet-label,
.alphabet-leaderboard-title {
  color: rgba(247, 242, 232, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alphabet-label {
  margin-bottom: 7px;
}

.alphabet-value {
  color: rgba(247, 242, 232, 0.96);
  font-size: clamp(22px, 2.8vw, 32px);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: 0;
}

.alphabet-modes {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.alphabet-mode {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: transparent;
  color: rgba(247, 242, 232, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition:
    background 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.alphabet-mode.active {
  background: rgba(235, 195, 52, 0.18);
  color: rgba(247, 242, 232, 0.98);
  box-shadow: inset 0 0 0 1px rgba(235, 195, 52, 0.34);
}

.alphabet-row {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  gap: 6px;
}

.alphabet-letter {
  min-width: 0;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 242, 232, 0.66);
  box-shadow: 0 0 10px rgba(247, 242, 232, 0.08);
  font-size: clamp(10px, 1.25vw, 15px);
  font-weight: 760;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}

.alphabet-letter.done {
  border-color: rgba(235, 195, 52, 0.62);
  background: rgba(235, 195, 52, 0.12);
  color: rgba(247, 242, 232, 0.95);
  box-shadow: 0 0 18px rgba(235, 195, 52, 0.2);
}

.alphabet-letter.current {
  border-color: rgba(235, 195, 52, 0.96);
  background: rgba(235, 195, 52, 0.2);
  color: #fff;
  box-shadow: 0 0 24px rgba(235, 195, 52, 0.42);
}

.alphabet-letter.error {
  border-color: rgba(255, 84, 90, 0.95);
  background: rgba(255, 84, 90, 0.13);
  color: #ffd2d2;
  box-shadow: 0 0 20px rgba(255, 84, 90, 0.5);
  animation: alphabet-shake 0.22s linear;
}

.alphabet-row.finish-glitch .alphabet-letter {
  animation: alphabet-glitch 0.52s steps(2, end);
}

.alphabet-row.finish-glitch .alphabet-letter:nth-child(3n) {
  animation-delay: 0.03s;
}

.alphabet-row.finish-glitch .alphabet-letter:nth-child(4n) {
  animation-delay: 0.06s;
}

.alphabet-status {
  min-height: 20px;
  margin-top: 15px;
  color: rgba(247, 242, 232, 0.62);
  font-size: 14px;
  line-height: 1.35;
}

.alphabet-score-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 15px;
}

.alphabet-score-form.hidden {
  display: none;
}

.alphabet-name {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(247, 242, 232, 0.94);
  font: inherit;
  font-size: 14px;
  outline: none;
  padding: 0 12px;
}

.alphabet-name:focus {
  border-color: rgba(235, 195, 52, 0.84);
  box-shadow: 0 0 0 3px rgba(235, 195, 52, 0.18);
}

.alphabet-leaderboards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.alphabet-leaderboard {
  min-width: 0;
  padding: 14px 16px;
}

.alphabet-leaderboard-title {
  margin-bottom: 10px;
}

.alphabet-scores {
  list-style: decimal-leading-zero;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 28px;
  color: rgba(247, 242, 232, 0.82);
  font-size: 13px;
}

.alphabet-score {
  padding-left: 4px;
}

.alphabet-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.alphabet-score-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alphabet-score-time {
  font-variant-numeric: tabular-nums;
  font-weight: 720;
}

.alphabet-score-errors {
  color: rgba(247, 242, 232, 0.54);
  white-space: nowrap;
}

.alphabet-score-errors.perfect {
  color: var(--clock-feature);
}

@keyframes alphabet-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@keyframes alphabet-glitch {
  0% {
    transform: translate(0, 0);
    filter: none;
  }
  18% {
    transform: translate(-2px, 1px);
    color: #fff;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.62), 2px 0 0 rgba(255, 84, 90, 0.7);
  }
  36% {
    transform: translate(2px, -1px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.7), -2px 0 0 rgba(235, 195, 52, 0.7);
  }
  58% {
    transform: translate(-1px, -1px);
    background: rgba(255, 255, 255, 0.2);
  }
  100% {
    transform: translate(0, 0);
    filter: none;
  }
}

@media (max-width: 780px) {
  body {
    overflow: auto;
    background-attachment: scroll;
  }

  .landing {
    place-items: center;
  }

  .clock-wrap {
    width: min(320px, calc(100vw - 36px));
    min-height: 120px;
  }

  .desktop-clock {
    font-size: 116px;
  }

  .app-dock {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 22px;
  }

  .server-stack {
    position: relative;
    left: auto;
    top: auto;
    width: min(340px, calc(100vw - 36px));
    margin: 86px auto 0;
    transform: none;
  }

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

  .clock-card {
    max-height: calc(100vh - 48px);
    overflow: auto;
  }

  .file-card {
    width: min(var(--file-window-width), 94vw);
    height: min(var(--file-window-height), calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
  }

  .file-window {
    grid-template-columns: 1fr;
  }

  .file-sidebar {
    display: none;
  }

  .file-sidebar-resizer {
    display: none;
  }

  .notebook-card {
    width: calc(100vw - 20px);
    height: calc(100vh - 28px);
  }

  .notebook-window {
    grid-template-columns: 1fr;
  }

  .notebook-sidebar {
    max-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .notebook-meta {
    grid-template-columns: 1fr;
  }

  .notebook-editor-wrap .ql-editor {
    min-height: 300px;
  }

  .aim-card {
    width: min(94vw, 720px);
  }

  .speed-box,
  .aim-stage,
  .steady-stage {
    height: min(520px, 58vh);
  }

  .timing-stage {
    min-height: min(520px, 58vh);
  }

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

  .alphabet-stats,
  .alphabet-leaderboards {
    grid-template-columns: 1fr;
  }

  .alphabet-row {
    grid-template-columns: repeat(13, minmax(0, 1fr));
  }

  .alphabet-score-form {
    grid-template-columns: 1fr;
  }

  .alphabet-score-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .alphabet-score-errors {
    display: none;
  }
}
