/* reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* design tokens — settings will change these */
:root {
  --bg-topbar: rgba(0, 0, 0, 0.45);
  --bg-window: rgba(28, 28, 28, 0.92);
  --bg-window-header: rgba(255,255,255,0.06);
  --bg-window-body: rgba(20, 20, 22, 0.85);
  --bg-card: #1e1e1e;
  --text-primary: #fff;
  --text-secondary: #aaa;
  --text-muted: #888;
  --border-subtle: rgba(255,255,255,0.08);
  --close-btn: #ff5f57;
  --minimize-btn: #ffbd2e;
  --maximize-btn: #28c840;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  height: 100vh;
  overflow: hidden;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  user-select: none;
}

.gochi-hand-regular {
  font-family: 'Gochi Hand', cursive;
}

.caveat {
  font-family: 'Caveat', cursive;
}

/* top bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  padding: 0 20px;
  backdrop-filter: blur(8px);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 9999;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}

.topbar-app-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.topbar-center {
  font-size: 15px;
  margin: 0;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.topbar-time {
  margin: 0;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* desktop — free canvas for icons */
#desktopApps {
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 42px;
  overflow: hidden;
  z-index: 1;
}

/* these become unused once JS flattens the icons, but kept for safety */
#appIconsRow {
  display: contents;
}

#webShortcutsArea {
  display: contents;
}

.app-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  padding: 8px 6px;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.app-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.app-icon.selected {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.5);
}

.app-icon.dragging {
  opacity: 0.88;
  transform: scale(1.1) !important;
  cursor: grabbing;
  transition: none;
  z-index: 9000;
}

.icon-img-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.icon-label {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  text-align: center;
  line-height: 1.2;
}

/* windows */
.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(6px);
  background: var(--bg-window);
  min-width: 280px;
}

.windowheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-window-header);
  border-bottom: 1px solid var(--border-subtle);
  cursor: grab;
  flex-shrink: 0;
}

.windowheader:active {
  cursor: grabbing;
}

.closebutton {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--close-btn);
  cursor: pointer;
  flex-shrink: 0;
}

.closebutton:hover {
  filter: brightness(1.2);
}

.minimizebutton {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--minimize-btn);
  cursor: pointer;
  flex-shrink: 0;
}

.minimizebutton:hover {
  filter: brightness(1.2);
}

.maximizebutton {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--maximize-btn);
  cursor: pointer;
  flex-shrink: 0;
}

.maximizebutton:hover {
  filter: brightness(1.2);
}

.window-controls {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}

.window-controls-spacer {
  width: 56px;
  flex-shrink: 0;
}

/* maximized window fills the screen below topbar and above taskbar */
.window-maximized {
  top: 44px !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 44px - 42px) !important;
  border-radius: 0 !important;
}

/* smooth animation when maximizing or restoring */
.window-maximizing {
  transition: top    0.24s cubic-bezier(0.4, 0, 0.2, 1),
              left   0.24s cubic-bezier(0.4, 0, 0.2, 1),
              width  0.24s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.24s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* make ALL inner content fill the maximized window —
   targets every direct child that isn't the header */
.window-maximized > *:not(.windowheader) {
  flex: 1 1 0 !important;
  width:      100% !important;
  height:     auto !important;
  min-height: 0    !important;
  max-height: none !important;
  max-width:  none !important;
  border-radius: 0 !important;
  box-sizing: border-box;
}

/* inner scrollable areas — let them fill and scroll */
.window-maximized .garage-shell,
.window-maximized .projects-body,
.window-maximized .files-body,
.window-maximized .settings-body,
.window-maximized .window-body {
  overflow-y: auto;
}

/* quick notes textarea stretches to fill */
.window-maximized .quicknotes-body {
  padding: 0 !important;
}
.window-maximized .quicknotes-textarea {
  width:  100% !important;
  height: 100% !important;
}

/* files app inner panels fill properly */
.window-maximized .files-body {
  display: flex;
  flex-direction: column;
}
.window-maximized #filesList,
.window-maximized #fileEditor {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.window-maximized #fileEditor .file-content-input {
  flex: 1;
  height: auto !important;
}

/* hide scrollbar in maximized garage/projects — looks cleaner full-screen */
.window-maximized .garage-shell::-webkit-scrollbar,
.window-maximized .projects-body::-webkit-scrollbar { width: 4px; }


.headertext {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: center;
  flex: 1;
}

.window-body {
  background: var(--bg-window-body);
  padding: 20px;
  overflow: hidden;
}

/* welcome */
.welcome-title {
  font-size: 26px;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.2;
}

.welcome-sub {
  font-size: 13px;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.75);
}

.welcome-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  font-style: italic;
}

/* garage log */
.garage-shell {
  width: 460px;
  height: 440px;
  background: #0e0e0e;
  overflow-y: auto;
  padding: 22px 24px;
  font-family: 'Inter', sans-serif;
  color: #666;
  font-size: 13px;
}

.garage-shell::-webkit-scrollbar { width: 3px; }
.garage-shell::-webkit-scrollbar-thumb { background: #222; }

/* overview — car console */

.gc-car {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #aaa;
  margin: 0 0 4px;
}

.gc-km {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gc-lastdrive {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #3a3a3a;
  margin: 0;
  letter-spacing: 0.06em;
}

.gc-lastdrive span { color: #666; }

.gc-rule {
  border: none;
  border-top: 1px solid #1c1c1c;
  margin: 16px 0;
}

.gc-stats {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #3a3a3a;
  letter-spacing: 0.08em;
  line-height: 2;
}

.gc-stats strong { color: #888; font-weight: 700; }

.gc-label {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.18em;
  color: #2e2e2e;
  margin: 0 0 6px;
}

.gc-recent-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
  cursor: pointer;
  border-bottom: 1px solid #141414;
}

.gc-recent-item:hover .gc-recent-title { color: #ccc; }

.gc-recent-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #333;
  flex-shrink: 0;
}

.gc-recent-title {
  font-size: 12px;
  color: #666;
}

.gc-recent-type {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: #2a2a2a;
  margin-left: auto;
  flex-shrink: 0;
}

.gc-nextup {
  font-size: 14px;
  color: #4a4a4a;
  margin: 0;
}

/* entry view */

.ge-back {
  display: inline-block;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #333;
  cursor: pointer;
  margin: 0 0 18px;
  letter-spacing: 0.06em;
}

.ge-back:hover { color: #777; }

.ge-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ddd;
  margin: 0 0 6px;
  font-family: 'JetBrains Mono', monospace;
}

.ge-rule {
  border: none;
  border-top: 1px solid #1c1c1c;
  margin: 6px 0;
}

.ge-meta {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #3a3a3a;
  margin: 4px 0 14px;
  letter-spacing: 0.04em;
}

.ge-body {
  font-size: 13px;
  line-height: 1.8;
  color: #bbb;
}

.ge-body p { margin: 0 0 10px; }

.ge-body ul {
  padding-left: 16px;
  margin: 0 0 10px;
  line-height: 2.1;
}

.ge-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #181818;
}

.ge-footer-label {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  color: #2e2e2e;
  margin: 0 0 4px;
}

.ge-footer-note {
  font-size: 14px;
  color: #4a4a4a;
  margin: 0;
}

/* selected icon */
.app-icon.selected .icon-img-wrapper {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

/* projects */
.projects-body {
  background-color: var(--bg-card);
  padding: 20px;
  width: 460px;
  height: 420px;
  overflow-y: auto;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.projects-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 18px;
}

.project-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.project-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: bold;
}

.project-card-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.project-card-tech {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}


/* taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 4px;
  z-index: 9999;
}

.taskbar:empty {
  display: none;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s ease;
}

.taskbar-item:hover {
  background: rgba(255,255,255,0.08);
}

.taskbar-item-active {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.taskbar-icon {
  font-size: 14px;
  line-height: 1;
}

.taskbar-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* ---- files app ---- */

.files-body {
  width: 400px;
  height: 360px;
  overflow-y: auto;
}

.files-toolbar {
  margin-bottom: 12px;
}

.files-new-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ccc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
}

.files-new-btn:hover {
  background: rgba(255,255,255,0.14);
}

.files-empty {
  color: #444;
  font-size: 13px;
  font-style: italic;
  margin: 0;
  padding-top: 40px;
  text-align: center;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
}

.file-item:hover .file-item-name {
  color: #fff;
}

.file-item-name {
  font-size: 13px;
  color: #bbb;
}

.file-item-date {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #444;
}

.files-back {
  display: inline-block;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #444;
  cursor: pointer;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.files-back:hover { color: #888; }

.file-name-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.file-name-input:focus {
  border-color: rgba(255,255,255,0.25);
}

.file-content-input {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ccc;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  resize: none;
  outline: none;
  line-height: 1.7;
}

.file-content-input:focus {
  border-color: rgba(255,255,255,0.2);
}

.file-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.file-save-btn, .file-delete-btn {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  border: 1px solid;
}

.file-save-btn {
  background: rgba(40, 200, 64, 0.15);
  border-color: rgba(40, 200, 64, 0.3);
  color: #6fdf6f;
}

.file-save-btn:hover {
  background: rgba(40, 200, 64, 0.25);
}

.file-delete-btn {
  background: rgba(255, 95, 87, 0.1);
  border-color: rgba(255, 95, 87, 0.25);
  color: #ff8a84;
}

.file-delete-btn:hover {
  background: rgba(255, 95, 87, 0.2);
}

/* ---- settings app ---- */

.settings-body {
  width: 400px;
  height: 420px;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 18px;
}

.settings-label {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  color: #555;
  margin: 0 0 6px;
}

.settings-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  outline: none;
  cursor: pointer;
}

.settings-select option {
  background: #1a1a1a;
  color: #ccc;
}

.shortcut-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
  padding: 5px 0;
  cursor: pointer;
}

.shortcut-toggle input[type="checkbox"] {
  accent-color: #28c840;
  cursor: pointer;
}

/* ---- terminal ---- */

.terminal-body {
  width: 480px;
  height: 320px;
  background: #0e0e0e !important;
  color: #00ff00;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 12px !important;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 8px;
}

.terminal-output::-webkit-scrollbar { width: 4px; }
.terminal-output::-webkit-scrollbar-thumb { background: #333; }

.terminal-line {
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-all;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.terminal-prompt {
  color: #28c840;
  margin-right: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  padding: 0;
}

/* ---- quick notes ---- */

.quicknotes-body {
  width: 300px;
  height: 260px;
  padding: 0 !important;
}

.quicknotes-textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 14px;
  font-family: 'Caveat', cursive;
  padding: 16px;
  resize: none;
  outline: none;
  line-height: 1.8;
}

/* ---- command center ---- */

.command-center {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  z-index: 10000;
}

.command-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.command-box {
  position: relative;
  width: 420px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.command-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.command-input::placeholder {
  color: #555;
}

.command-results {
  max-height: 280px;
  overflow-y: auto;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
}

.command-item:hover, .command-item-selected {
  background: rgba(255,255,255,0.06);
}

.command-item-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.command-item-name {
  font-size: 13px;
  color: #ccc;
}

.command-item-tag {
  margin-left: auto;
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: #444;
  letter-spacing: 0.08em;
}

/* ---- web shortcuts ---- */

.settings-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  outline: none;
  margin-bottom: 6px;
}

.settings-input:focus {
  border-color: rgba(255,255,255,0.25);
}

.settings-input::placeholder {
  color: #444;
}

.web-shortcut-form {
  margin-bottom: 12px;
}

.web-shortcut-add-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ccc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  margin-top: 2px;
}

.web-shortcut-add-btn:hover {
  background: rgba(255,255,255,0.14);
}

.web-shortcut-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.web-shortcut-entry-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aaa;
  min-width: 0;
}

.web-shortcut-entry-info img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.web-shortcut-entry-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-shortcut-remove {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.web-shortcut-remove:hover {
  color: #ff5f57;
}

/* web shortcut desktop icons */
.web-shortcut-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  padding: 8px 6px;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.web-shortcut-icon.dragging {
  opacity: 0.88;
  transform: scale(1.1) !important;
  cursor: grabbing;
  transition: none;
  z-index: 9000;
}

.web-shortcut-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.04);
}

.web-shortcut-favicon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-shortcut-favicon img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

/* snap-to-grid landing animation */
.icon-snapping {
  transition: left 0.18s cubic-bezier(0.25, 1.4, 0.5, 1),
              top  0.18s cubic-bezier(0.25, 1.4, 0.5, 1) !important;
}

/* ---- wallpaper picker grid ---- */

.wp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px 0 4px;
}

.wp-grid::-webkit-scrollbar { width: 3px; }
.wp-grid::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.wp-auto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 56px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  gap: 2px;
  flex-shrink: 0;
}

.wp-auto-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.wp-auto-card.wp-active {
  border-color: #28c840;
  background: rgba(40,200,64,0.1);
}

.wp-auto-icon { font-size: 18px; }
.wp-auto-label { font-size: 9px; font-weight: 600; color: #ccc; letter-spacing: 0.04em; }
.wp-auto-sub   { font-size: 8px; color: #555; }

.wp-thumb {
  width: 76px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, transform 0.12s;
}

.wp-thumb:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.3);
}

.wp-thumb.wp-active {
  border-color: #28c840;
}

.wp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  font-size: 7px;
  color: #ddd;
  text-align: center;
  padding: 2px 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.15s;
}

.wp-thumb:hover .wp-thumb-label { opacity: 1; }

/* wallpaper fade-in on load / change */
@keyframes wpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.wp-fade-in {
  animation: wpFadeIn 0.5s ease forwards;
}


/* --- loader --- */

.tash-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  animation: loaderFadeIn 0.5s ease;
}

.tash-loader.loader-hiding {
  animation: loaderFadeOut 0.45s ease forwards;
}

@keyframes loaderFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes loaderFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* background noise/texture layer */
.loader-bg-blur {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.015) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.012) 0%, transparent 55%);
  pointer-events: none;
}

/* top strip */
.loader-topstrip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #1a1a1a;
}

.loader-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.loader-version {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #333;
  letter-spacing: 0.04em;
}

/* slide container */
.loader-slides {
  width: 560px;
  max-width: 94vw;
  position: relative;
  min-height: 360px;
}

/* individual slides */
.loader-slide {
  position: absolute;
  inset: 0;
  padding: 10px 0 20px;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.loader-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.loader-slide.exiting {
  opacity: 0;
  transform: translateX(-32px);
  position: absolute;
}

/* slide content elements */

.ls-eyebrow {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.12em;
  color: #3a3a3a;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ls-headline {
  font-family: 'Gochi Hand', cursive;
  font-size: 34px;
  color: #e8e8e8;
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: normal;
}

.ls-body {
  font-size: 14px;
  color: #888;
  line-height: 1.75;
  margin: 0;
}

.ls-body strong { color: #ccc; }

.ls-hint {
  font-size: 12px;
  color: #3a3a3a;
  margin-top: 14px;
  font-style: italic;
}

/* tech tag row */
.ls-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ls-tag {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #555;
  background: #141414;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

/* icon demo block */
.ls-demo-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0 14px;
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  padding: 16px 20px;
}

.ls-demo-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 28px;
  line-height: 1;
}

.ls-demo-icon span {
  font-size: 10px;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
}

.ls-demo-arrow {
  font-size: 11px;
  color: #2a2a2a;
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

/* window controls demo */
.ls-controls-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  padding: 14px 20px;
}

.ls-ctrl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ls-controls-demo span {
  font-size: 11px;
  color: #444;
  font-family: 'JetBrains Mono', monospace;
  margin-right: 10px;
}

/* command center preview */
.ls-kbd {
  display: inline-block;
  background: #1e1e1e;
  border: 1px solid #333;
  border-bottom: 2px solid #3a3a3a;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: #bbb;
}

.ls-cmd-preview {
  margin: 18px 0 14px;
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
}

.ls-cmd-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #161616;
}

.ls-cmd-cursor {
  color: #555;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.ls-cmd-placeholder {
  font-size: 12px;
  color: #2e2e2e;
  font-family: 'JetBrains Mono', monospace;
}

.ls-cmd-item {
  padding: 8px 14px;
  font-size: 12px;
  color: #555;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid #121212;
}

.ls-cmd-item:last-child { border-bottom: none; }

.ls-cmd-selected {
  background: #1a1a1a;
  color: #ccc;
}

/* settings list */
.ls-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.ls-list li {
  font-size: 13px;
  color: #777;
  padding: 8px 0;
  border-bottom: 1px solid #181818;
  line-height: 1.5;
}

.ls-list li:last-child { border-bottom: none; }
.ls-list li strong { color: #bbb; }

/* web shortcut demo */
.ls-shortcut-demo {
  margin: 18px 0 14px;
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ls-shortcut-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-sf-label {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #333;
  width: 32px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

.ls-sf-val {
  font-size: 13px;
  color: #666;
  font-family: 'JetBrains Mono', monospace;
  background: #0e0e0e;
  border: 1px solid #1c1c1c;
  border-radius: 5px;
  padding: 5px 10px;
  flex: 1;
}

.ls-shortcut-add {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: #28c840;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* app grid (slide 7) */
.ls-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ls-app-card {
  background: #111;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  padding: 14px;
}

.ls-app-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.ls-app-name {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin: 0 0 4px;
}

.ls-app-desc {
  font-size: 11px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* CTA button (last slide) */
.ls-cta {
  margin-top: 22px;
  background: #e8e8e8;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ls-cta:hover {
  background: #fff;
  transform: scale(1.02);
}

.ls-cta:active {
  transform: scale(0.98);
}

/* bottom navigation */
.loader-nav {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loader-nav-btn {
  background: none;
  border: 1px solid #222;
  color: #555;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

.loader-nav-btn:hover:not(:disabled) {
  border-color: #444;
  color: #aaa;
}

.loader-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* progress dots */
.loader-dots {
  display: flex;
  gap: 7px;
  align-items:  center;
}

.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #222;
  transition: background 0.25s ease, transform 0.25s ease;
}

.loader-dot.ld-active {
  background: #888;
  transform: scale(1.35);
}

.loader-dot.ld-done {
  background: #3a3a3a;
}

/* skip button */
.loader-skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: none;
  border: none;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #2a2a2a;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: color 0.15s ease;
}

.loader-skip:hover {
  color: #666;
}



