:root {
  --bg-base: #07080c;
  --bg-surface: rgba(17, 18, 25, 0.72);
  --bg-surface-hover: rgba(24, 26, 36, 0.86);
  --bg-elevated: rgba(25, 27, 37, 0.92);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(129, 140, 248, 0.65);

  --text-primary: #f4f5f8;
  --text-secondary: #a1a6b8;
  --text-muted: #686d80;

  --accent: #818cf8;
  --accent-2: #c084fc;
  --accent-cyan: #38bdf8;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-card: 0 18px 45px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-command: 0 24px 64px -16px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 3D Canvas & Ambient Glows */
#scene3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
}

.ambient-glow-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: 12%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}

.ambient-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: 8%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Top Utility Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-pill,
.sync-pill,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: rgba(16, 17, 24, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.sync-pill,
.ghost-btn {
  cursor: pointer;
}

.sync-pill:hover,
.ghost-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(26, 28, 38, 0.85);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.8);
}

.brand-name {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sync-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.sync-indicator.synced {
  background: var(--success);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
}

.sync-indicator.syncing {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.65);
  animation: pulse 1.1s infinite ease-in-out;
}

.sync-indicator.offline {
  background: var(--danger);
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 8px;
}

.clock-block {
  text-align: center;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 15%, rgba(203, 213, 225, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.clock-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.meta-sep {
  color: var(--text-muted);
}

/* Raycast Command / Search Bar */
.command-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  perspective: 1000px;
}

.command-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(19, 20, 28, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-command);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

.command-bar:focus-within {
  box-shadow:
    0 28px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 0 1px var(--border-focus),
    0 0 28px -6px rgba(129, 140, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.engine-selector {
  flex-shrink: 0;
  cursor: pointer;
}

.engine-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.22), rgba(56, 189, 248, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #e0e7ff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.engine-selector:hover .engine-badge {
  transform: scale(1.06);
}

.command-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 400;
  padding: 6px 0;
}

.command-input::placeholder {
  color: var(--text-muted);
}

.command-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.clear-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
}

.clear-search-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.search-tips {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
}

.search-tips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Command Palette Dropdown */
.command-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: rgba(18, 19, 27, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.command-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.12s ease;
}

.command-match:hover,
.command-match.active {
  background: rgba(129, 140, 248, 0.16);
}

.command-match-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.command-match-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-match-url {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-match-group {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

/* Bento Grid */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-title-group h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.panel-icon {
  color: var(--accent);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.primary-btn,
.subtle-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.primary-btn {
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.28), rgba(99, 102, 241, 0.2));
  color: #eef2ff;
}

.primary-btn:hover {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.4), rgba(99, 102, 241, 0.3));
  border-color: rgba(165, 180, 252, 0.7);
}

.subtle-btn {
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.subtle-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.danger-btn {
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.danger-btn:hover {
  background: rgba(248, 113, 113, 0.24);
  border-color: rgba(248, 113, 113, 0.6);
}

/* Bookmark Groups & Cards */
.bookmark-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bm-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bm-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.bm-group-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.bm-group:hover .bm-group-actions {
  opacity: 1;
}

.mini-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.mini-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  perspective: 900px;
}

.bm-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: rgba(22, 24, 33, 0.72);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.bm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    180px circle at var(--mx, 50%) var(--my, 50%),
    rgba(129, 140, 248, 0.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.bm-card:hover {
  border-color: rgba(129, 140, 248, 0.42);
  background: var(--bg-surface-hover);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.75);
}

.bm-card:hover::before {
  opacity: 1;
}

.bm-favicon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  overflow: hidden;
  transform: translateZ(10px);
}

.bm-favicon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.bm-info {
  min-width: 0;
  flex: 1;
  transform: translateZ(8px);
}

.bm-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-card-edit {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 15, 21, 0.9);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}

.bm-card:hover .bm-card-edit,
.bm-card:focus-within .bm-card-edit {
  opacity: 1;
}

.bm-card-edit:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.bm-empty {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}

/* To-Do List */
.todo-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.todo-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: rgba(10, 11, 16, 0.65);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease;
}

.todo-input:focus {
  border-color: var(--border-focus);
}

.icon-submit-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.22);
  color: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease;
}

.icon-submit-btn:hover {
  background: rgba(129, 140, 248, 0.36);
}

.todo-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-chip {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  color: var(--text-primary);
}

.filter-chip.active {
  background: rgba(129, 140, 248, 0.18);
  border-color: rgba(129, 140, 248, 0.38);
  color: #e0e7ff;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.todo-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #09090d;
  transition: all 0.16s ease;
}

.todo-item.done .todo-check {
  background: var(--success);
  border-color: var(--success);
}

.todo-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-primary);
  word-break: break-word;
  transition: color 0.16s ease;
}

.todo-item.done .todo-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.todo-delete {
  opacity: 0;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-delete:hover {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
}

/* Scratchpad */
.char-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.scratchpad-textarea {
  width: 100%;
  min-height: 145px;
  resize: vertical;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: rgba(10, 11, 16, 0.6);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.16s ease;
}

.scratchpad-textarea:focus {
  border-color: var(--border-focus);
}

/* Modals */
.modal {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  max-width: 460px;
  width: calc(100% - 28px);
}

.modal::backdrop {
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(17, 18, 26, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-header h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input,
.field select {
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
  background: rgba(9, 10, 15, 0.85);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--border-focus);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-divider {
  height: 1px;
  background: var(--border-hairline);
}

.backup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-label {
  cursor: pointer;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-hairline);
  background: rgba(12, 13, 19, 0.6);
}

.modal-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 22, 32, 0.94);
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.hidden {
  display: none !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 14px 14px 36px;
    gap: 20px;
  }

  .hide-sm {
    display: none;
  }

  .search-tips {
    display: none;
  }

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

  .bm-card-edit,
  .todo-delete,
  .bm-group-actions {
    opacity: 1;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
