:root {
  --bg: #0d1117;
  --bg-2: #1a1f2e;
  --bg-3: #232938;
  --fg: #e8eaed;
  --fg-dim: #9ba3b4;
  --accent: #00d4aa;
  --accent-2: #5cf2cf;
  --danger: #ff5b6b;
  --warn: #ffb454;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.16);
  --shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  --tb-h: 44px;
  --titlebar-h: 32px;
  --radius: 10px;
  --radius-sm: 6px;
  font-family: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100vw; height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.hidden { display: none !important; }

button {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

/* ─────────── BOOT ─────────── */
#boot {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, #1a1f2e 0%, #0d1117 80%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  z-index: 9999;
  animation: boot-fade-out 600ms 2.4s forwards;
}
.boot-logo {
  font-size: 64px; font-weight: 700; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.boot-spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(0,212,170,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.boot-msg {
  color: var(--fg-dim);
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes boot-fade-out { to { opacity: 0; pointer-events: none; } }

/* ─────────── DESKTOP ─────────── */
#desktop {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
}
#wallpaper {
  position: absolute; inset: 0;
  z-index: 0;
  transition: background 0.6s ease;
}

#desktop-icons {
  position: absolute; top: 16px; left: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  gap: 8px;
  z-index: 1;
}
.desktop-icon {
  width: 96px; padding: 10px 6px;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background 120ms;
}
.desktop-icon:hover { background: rgba(255,255,255,0.08); }
.desktop-icon.active { background: rgba(0,212,170,0.18); }
.desktop-icon .icon-glyph {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.desktop-icon .icon-label {
  font-size: 12px; line-height: 1.2;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  word-break: break-word;
}

#windows-container {
  position: absolute; inset: 0;
  bottom: var(--tb-h);
  z-index: 2;
  pointer-events: none;
}

/* ─────────── WINDOWS ─────────── */
.window {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  min-width: 200px; min-height: 120px;
  transition: opacity 180ms, transform 180ms;
}
.window.minimized {
  opacity: 0; transform: translateY(20px) scale(0.92);
  pointer-events: none;
}
.window.maximized {
  border-radius: 0;
  border: 0;
}
.window.active .titlebar { background: var(--bg-3); }
.window:not(.active) { box-shadow: 0 4px 16px rgba(0,0,0,0.35); }

.titlebar {
  height: var(--titlebar-h);
  display: flex; align-items: center;
  background: var(--bg-2);
  padding-left: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  cursor: grab;
}
.titlebar:active { cursor: grabbing; }
.titlebar .title-icon { font-size: 14px; margin-right: 8px; }
.titlebar .title-text {
  flex: 1;
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.titlebar .title-extra {
  font-size: 11px; color: var(--fg-dim);
  margin-right: 8px;
}
.titlebar .window-controls { display: flex; }
.titlebar .window-controls button {
  width: 36px; height: var(--titlebar-h);
  font-size: 14px;
  color: var(--fg-dim);
  transition: background 120ms, color 120ms;
}
.titlebar .window-controls button:hover { background: rgba(255,255,255,0.08); color: var(--fg); }
.titlebar .window-controls .ctrl-close:hover { background: var(--danger); color: white; }

.window-body {
  flex: 1;
  position: relative;
  overflow: auto;
  background: var(--bg);
}

.resize-handle {
  position: absolute; right: 0; bottom: 0;
  width: 14px; height: 14px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, var(--fg-dim) 50%, var(--fg-dim) 60%, transparent 60%, transparent 70%, var(--fg-dim) 70%, var(--fg-dim) 80%, transparent 80%);
}

/* ─────────── TASKBAR ─────────── */
#taskbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: var(--tb-h);
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 8px;
  z-index: 100;
  gap: 4px;
}
.taskbar-btn {
  height: 32px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 6px;
  transition: background 120ms;
}
.taskbar-btn:hover { background: rgba(255,255,255,0.08); }
.taskbar-btn.active { background: rgba(0,212,170,0.2); }
.logo-glyph {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0d1117;
  font-weight: 800; font-size: 14px;
  border-radius: 4px;
}
.logo-text { font-weight: 600; font-size: 13px; }

#taskbar-windows {
  flex: 1;
  display: flex; gap: 2px;
  overflow: hidden;
  margin-left: 8px;
}
.taskbar-window {
  height: 32px; padding: 0 12px; max-width: 200px;
  display: flex; align-items: center; gap: 6px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255,255,255,0.04);
  border-bottom: 2px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 120ms;
}
.taskbar-window:hover { background: rgba(255,255,255,0.10); }
.taskbar-window.active {
  background: rgba(0,212,170,0.18);
  border-bottom-color: var(--accent);
}

#taskbar-tray {
  display: flex; align-items: center; gap: 4px;
  padding-left: 8px;
}
.tray-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 14px;
}
.tray-btn:hover { background: rgba(255,255,255,0.08); }
#tray-clock {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  padding: 0 10px;
  color: var(--fg-dim);
  text-align: right;
  line-height: 1.1;
}

/* ─────────── START MENU ─────────── */
#start-menu {
  position: absolute;
  bottom: calc(var(--tb-h) + 8px); left: 8px;
  width: 380px; max-height: 540px;
  background: rgba(26,31,46,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  z-index: 101;
  animation: start-pop 160ms ease-out;
  overflow: hidden;
}
@keyframes start-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.start-search {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.start-search input {
  width: 100%; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
}
.start-search input:focus {
  outline: 0;
  border-color: var(--accent);
  background: rgba(0,212,170,0.06);
}
#start-apps {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.start-app {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  text-align: center;
  transition: background 120ms;
  word-break: break-word;
}
.start-app:hover { background: rgba(255,255,255,0.08); }
.start-app .start-icon { font-size: 28px; }
.start-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.start-power-btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 12px;
}
.start-power-btn:hover { background: var(--danger); color: white; }
.start-user { color: var(--fg-dim); }

/* ─────────── CONTEXT MENU ─────────── */
#context-menu {
  position: absolute;
  background: rgba(26,31,46,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 4px;
  min-width: 200px;
  z-index: 200;
  font-size: 13px;
}
.ctx-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.ctx-item:hover { background: rgba(0,212,170,0.18); }
.ctx-item.disabled { color: var(--fg-dim); cursor: not-allowed; }
.ctx-item.disabled:hover { background: transparent; }
.ctx-sep { height: 1px; background: var(--border); margin: 4px 0; }
.ctx-icon { width: 16px; text-align: center; }
.ctx-shortcut { margin-left: auto; color: var(--fg-dim); font-size: 11px; }

/* ─────────── COMMON UI ─────────── */
.btn-primary {
  height: 32px; padding: 0 14px;
  background: var(--accent);
  color: #0d1117;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: background 120ms;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-secondary {
  height: 32px; padding: 0 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  transition: background 120ms;
}
.btn-secondary:hover { background: rgba(255,255,255,0.10); }

.btn-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-size: 14px;
  color: var(--fg-dim);
}
.btn-icon:hover { background: rgba(255,255,255,0.10); color: var(--fg); }

input[type="text"], input[type="number"], input[type="search"], textarea, select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--accent);
}

/* ─────────── APP-SPECIFIC ─────────── */
.terminal {
  background: #0a0e14;
  color: #d6deeb;
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace;
  font-size: 13px;
  padding: 10px;
  height: 100%;
  overflow-y: auto;
  white-space: pre-wrap;
  user-select: text;
}
.terminal-prompt-line { display: flex; align-items: baseline; gap: 6px; }
.terminal-user { color: var(--accent); }
.terminal-host { color: var(--accent-2); }
.terminal-path { color: var(--warn); }
.terminal-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--fg);
  font: inherit;
  outline: 0;
}
.terminal-output { color: var(--fg-dim); margin-bottom: 4px; user-select: text; }

.calculator {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: var(--bg-2);
}
.calc-display {
  padding: 16px;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 36px;
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  word-break: break-all;
  min-height: 90px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
}
.calc-display .calc-history {
  font-size: 13px;
  color: var(--fg-dim);
  min-height: 18px;
}
.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.calc-key {
  background: var(--bg-3);
  font-size: 18px;
  padding: 16px 0;
  transition: background 120ms;
}
.calc-key:hover { background: rgba(255,255,255,0.08); }
.calc-key.op { color: var(--accent); }
.calc-key.eq { background: var(--accent); color: #0d1117; font-weight: 600; }
.calc-key.eq:hover { background: var(--accent-2); }
.calc-key.fn { color: var(--warn); }
.calc-key.zero { grid-column: span 2; }

.paint-app {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}
.paint-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.paint-tool {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 4px;
  font-size: 16px;
  border: 1px solid transparent;
}
.paint-tool:hover { background: rgba(255,255,255,0.08); }
.paint-tool.active {
  background: rgba(0,212,170,0.18);
  border-color: var(--accent);
}
.paint-color-picker {
  width: 32px; height: 32px;
  border: 0; border-radius: 4px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}
.paint-canvas-wrap {
  background: #2a2f3e;
  display: grid; place-items: center;
  overflow: auto;
  padding: 12px;
}
.paint-canvas {
  background: white;
  cursor: crosshair;
  box-shadow: var(--shadow);
}
.paint-status {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--fg-dim);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex; gap: 12px;
}

.files-app { display: grid; grid-template-columns: 200px 1fr; height: 100%; }
.files-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 8px;
  overflow-y: auto;
}
.files-sidebar-section { color: var(--fg-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 8px 4px; }
.files-sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.files-sidebar-item:hover { background: rgba(255,255,255,0.06); }
.files-sidebar-item.active { background: rgba(0,212,170,0.18); }
.files-main { display: grid; grid-template-rows: auto 1fr auto; }
.files-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.files-path {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: monospace;
  font-size: 12px;
}
.files-grid {
  padding: 12px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  gap: 8px;
  align-content: start;
}
.file-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.file-item:hover { background: rgba(255,255,255,0.06); }
.file-item.selected { background: rgba(0,212,170,0.18); }
.file-item .file-icon { font-size: 36px; }
.file-item .file-name { font-size: 11px; word-break: break-word; }
.files-status {
  padding: 4px 12px;
  font-size: 11px;
  color: var(--fg-dim);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.settings-app { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.settings-nav { background: var(--bg-2); border-right: 1px solid var(--border); padding: 8px; }
.settings-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.settings-nav-item:hover { background: rgba(255,255,255,0.06); }
.settings-nav-item.active { background: rgba(0,212,170,0.18); color: var(--accent); }
.settings-content { padding: 20px; overflow-y: auto; }
.settings-section { margin-bottom: 32px; }
.settings-section h3 { font-size: 14px; margin-bottom: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: 0; }
.settings-label { font-size: 14px; }
.settings-desc { font-size: 12px; color: var(--fg-dim); margin-top: 2px; }
.wallpaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wallpaper-tile {
  aspect-ratio: 16/10;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  background-size: cover; background-position: center;
  position: relative;
  transition: transform 120ms, border-color 120ms;
}
.wallpaper-tile:hover { transform: translateY(-2px); }
.wallpaper-tile.active { border-color: var(--accent); }
.wallpaper-tile .wallpaper-name {
  position: absolute; bottom: 6px; left: 8px;
  font-size: 11px; color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.notes-app { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.notes-sidebar { background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.notes-sidebar-header {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 6px;
}
.notes-list { flex: 1; overflow-y: auto; padding: 6px; }
.notes-item {
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
}
.notes-item:hover { background: rgba(255,255,255,0.04); }
.notes-item.active { background: rgba(0,212,170,0.14); }
.notes-item .note-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-item .note-preview { font-size: 11px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes-editor {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--bg);
}
.notes-title-input {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 18px; font-weight: 600;
}
.notes-textarea {
  border: 0;
  padding: 16px;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.browser-app { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.browser-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 12px;
}
.browser-content { background: white; color: black; overflow-y: auto; }
.browser-content iframe { width: 100%; height: 100%; border: 0; }

.game-canvas-wrap {
  position: relative;
  background: #000;
  height: 100%;
  display: grid; place-items: center;
  overflow: hidden;
}
.game-canvas-wrap canvas { display: block; max-width: 100%; max-height: 100%; }
.game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 8px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.game-hud .hud-stat { display: flex; align-items: center; gap: 6px; }
.game-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  text-align: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}
.game-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  display: grid; place-items: center;
  color: white;
  text-align: center;
  z-index: 5;
}
.game-overlay.hidden { display: none; }
.game-overlay h2 { font-size: 36px; margin-bottom: 12px; }
.game-overlay p { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 20px; max-width: 320px; }

/* ─────────── TIMELINE (Special Feature) ─────────── */
#timeline-overlay {
  position: absolute;
  bottom: calc(var(--tb-h) + 8px); left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 150;
  animation: start-pop 200ms ease-out;
}
.timeline-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.timeline-title {
  font-size: 13px; font-weight: 600;
  color: var(--accent);
}
#timeline-snapshots {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  margin-bottom: 8px;
  min-height: 92px;
}
.snapshot-card {
  flex-shrink: 0;
  width: 132px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 120ms, transform 120ms;
}
.snapshot-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.snapshot-card.scrubbing { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(92,242,207,0.2); }
.snapshot-thumb {
  width: 100%; height: 50px;
  background: var(--bg-3);
  border-radius: 4px;
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background-size: cover; background-position: center;
}
.snapshot-meta { font-size: 10px; color: var(--fg-dim); display: flex; justify-content: space-between; }
.snapshot-time { font-weight: 600; color: var(--fg); }
.timeline-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
}
#timeline-info { color: var(--fg-dim); }
#timeline-slider {
  width: 100%;
  margin-top: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
#timeline-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
#timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  margin-top: -6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  cursor: pointer;
}
#timeline-slider::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}
#timeline-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  cursor: pointer;
}

/* ─────────── SCROLLBAR ─────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.20); }

/* ─────────── MOBILE ─────────── */
@media (max-width: 700px) {
  #desktop-icons { grid-template-columns: repeat(auto-fill, 76px); }
  .desktop-icon { width: 76px; }
  .desktop-icon .icon-glyph { font-size: 30px; }
  #start-menu { width: calc(100vw - 16px); }
  #start-apps { grid-template-columns: repeat(3, 1fr); }
  .files-app, .notes-app, .settings-app { grid-template-columns: 1fr; }
  .files-sidebar, .notes-sidebar, .settings-nav { display: none; }
}
