/* ==========================================================================
   MEMOPOD 2.0 - AI Knowledge Graph & Smart Brain Dump OS
   Design System & Styling (SETUPOD x Obsidian x Reflect Aesthetics)
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-surface: #0f131c;
  --bg-surface-elevated: #161b26;
  --bg-card: rgba(22, 27, 38, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.4);
  --border-glow: rgba(56, 189, 248, 0.3);
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-rose: #f43f5e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* ===== Ambient Tech Background & Effects =====
   독립 메모팟 저장소(네온 라임 테마)에 있던 배경 효과를 셋업팟 색(인디고·스카이)으로 합침 — 2026-10-24.
   원본 네온 라임 스타일시트는 css/themes/neon-lime.css 에 보관. */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.38;
  mask-image: radial-gradient(ellipse at 50% 10%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 10%, #000 35%, transparent 75%);
}
.aur {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
  background: radial-gradient(closest-side, var(--c), transparent);
}
.aur.a { width: 900px; height: 700px; right: -250px; top: -300px; --c: #6366f1; animation: dr1 24s ease-in-out infinite alternate; }
.aur.b { width: 800px; height: 700px; left: -250px; top: 45vh; --c: #38bdf8; opacity: 0.12; animation: dr2 28s ease-in-out infinite alternate; }
@keyframes dr1 { to { transform: translate(-180px, 140px) scale(1.12); } }
@keyframes dr2 { to { transform: translate(220px, -150px) scale(0.92); } }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) { .aur { animation: none; } }

/* Header */
.memo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  letter-spacing: 0.05em;
}

/* View Tabs */
.view-tabs {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-k-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-k-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-accent);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--accent-cyan);
}

/* Primary Action Button (새 메모) */
.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
}

/* Header Ghost Button (스티커 위젯) */
.btn-header-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* Streamlined Spotlight Capture Bar */
.capture-section-minimal {
  padding: 12px 24px 8px;
  background: transparent;
  display: flex;
  justify-content: center;
}

.spotlight-capture-wrap {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 24, 32, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px 10px 6px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-input-box:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 8px 30px rgba(0, 0, 0, 0.35);
}

.spotlight-icon {
  font-size: 15px;
  color: #818cf8;
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  padding: 4px 0;
}

.spotlight-input::placeholder {
  color: #64748b;
  font-size: 12px;
}

.spotlight-type-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  border-radius: 8px;
  padding: 5px 8px;
  outline: none;
  cursor: pointer;
}

.btn-spotlight-voice {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.btn-spotlight-voice:hover {
  color: #38bdf8;
}

.btn-spotlight-submit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-spotlight-submit:hover {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

/* OS Status Strip */
.os-status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 11px;
  color: #64748b;
}

.os-strip-label {
  font-weight: 600;
}

.os-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-strip-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.os-strip-badge.os-highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

/* Apple Notes Sync Button */
/* Mini Quick Memo Pop-out Button */
.btn-mini-popup {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(234, 88, 12, 0.14) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.btn-mini-popup:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(234, 88, 12, 0.25) 100%);
  border-color: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.badge-mini-pop {
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  background: #d97706;
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.btn-mini-popup-window {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-mini-popup-window:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-apple-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.btn-apple-sync:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: #34d399;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

/* Windows & Samsung Notes Sync Button */
.btn-win-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(99, 102, 241, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.25);
  position: relative;
}

.btn-win-sync:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-color: #93c5fd;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

.btn-new-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

/* Sync Mode Button & Folder Checklist */
.sync-mode-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sync-mode-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.sync-mode-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.apple-folder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  cursor: pointer;
}

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

.apple-folder-item input {
  accent-color: #10b981;
}

.btn-apple-open {
  width: 100%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-apple-open:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
  color: #fff;
  transform: translateY(-1px);
}

.btn-obsidian-zip {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-obsidian-zip:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #c084fc;
  color: #fff;
}

.btn-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-accent);
}

/* Quick Brain Dump Capture Bar */
.capture-section {
  padding: 12px 24px;
  background: rgba(15, 19, 28, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 90;
}

.capture-box {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(22, 27, 38, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.capture-box:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.3);
}

/* 0.2s Quick Scratchpad Header Row & 1-Click Presets */
.scratchpad-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.scratchpad-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scratchpad-icon {
  font-size: 14px;
}

.scratchpad-title {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.scratchpad-subtitle {
  font-size: 11.5px;
  color: #64748b;
  margin-left: 2px;
}

.quick-preset-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-guide-label {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.preset-chip:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(56, 189, 248, 0.25);
}

.preset-chip:active {
  transform: translateY(0) scale(0.96);
}

.capture-top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.capture-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  resize: none;
  min-height: 48px;
  max-height: 200px;
}

.capture-textarea::placeholder {
  color: #475569;
}

.capture-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.capture-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* Voice AI Button (AudioPen Mode) */
.btn-voice {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--accent-rose);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-voice:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
}

.btn-voice.recording {
  background: var(--accent-rose);
  color: #fff;
  animation: pulseVoice 1.2s infinite;
}

@keyframes pulseVoice {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
}

.btn-submit-dump {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-dump:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.6);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0891b2 100%);
}

.btn-submit-dump.highlight-pulse {
  animation: magicPulse 1.2s infinite;
}

@keyframes magicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

/* Tag Filter Bar */
.tag-bar-section {
  padding: 8px 24px;
  background: rgba(11, 15, 23, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-bar-section::-webkit-scrollbar {
  display: none;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tag-pill.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--primary);
  color: #c7d2fe;
}

/* Main Workspace */
.workspace-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  height: calc(100vh - 220px);
  min-height: 480px;
}

.view-panel {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.view-panel.active {
  display: block;
}

/* View 1: 60FPS Knowledge Graph View */
#graphCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.4) 0%, rgba(7, 9, 14, 0.95) 100%);
}

#graphCanvas:active {
  cursor: grabbing;
}

.graph-stats-hud {
  position: absolute;
  top: 16px;
  left: 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--text-secondary);
  pointer-events: none;
}

.graph-stat-item strong {
  color: #fff;
  font-family: var(--font-mono);
}

.graph-hud-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
  border-color: var(--border-accent);
}

/* View 2: Cards Grid View */
.cards-scroll-wrap {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
}

.cards-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.memo-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.memo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

.memo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.type-pill.idea { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.type-pill.business { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.type-pill.tech { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.type-pill.link { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.type-pill.note { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.memo-summary-text {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  word-break: keep-all;
}

.memo-todos-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 8px;
}

.todo-item-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.todo-checkbox {
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.memo-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.memo-tag-item {
  font-size: 10px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* View 3: Markdown Pro Editor View */
.editor-split-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

@media (max-width: 900px) {
  .editor-split-wrap {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  background: #090c13;
}

.editor-toolbar {
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.editor-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  outline: none;
  resize: none;
}

.preview-pane {
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: rgba(11, 15, 23, 0.5);
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
}

.preview-pane h1 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 16px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px; }
.preview-pane h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 18px 0 10px; }
.preview-pane p { margin-bottom: 12px; }
.preview-pane ul { margin-left: 20px; margin-bottom: 12px; }
.preview-pane blockquote { border-left: 3px solid var(--primary); padding-left: 12px; color: var(--text-secondary); margin-bottom: 12px; }

/* Slide-out Drawer (Node Detail & Planner Sync) */
.memo-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(15, 19, 28, 0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.7);
  z-index: 500;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.memo-drawer.open {
  right: 0;
}

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

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ai-summary-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #e0e7ff;
}

.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-item-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
  background: rgba(7, 9, 14, 0.5);
}

.btn-planner-sync {
  flex: 1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(56, 189, 248, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-planner-sync:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(56, 189, 248, 0.35) 100%);
  transform: translateY(-1px);
}

/* Cmd + K Command Palette Modal */
.cmd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cmd-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette {
  width: 100%;
  max-width: 620px;
  background: #0f1420;
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cmd-result-item:hover, .cmd-result-item.selected {
  background: rgba(99, 102, 241, 0.15);
}

.cmd-result-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.cmd-result-type {
  font-size: 10px;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0f1420;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* Toast */
.toast-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-accent);
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-bar.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Live Sync Indicator & Toggle */
.btn-live-sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-live-sync:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.btn-live-sync.paused {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveRadarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
}

.btn-live-sync.paused .live-pulse-dot {
  background: #64748b;
  box-shadow: none;
  animation: none;
}

@keyframes liveRadarPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 2px #10b981;
  }
}

/* iOS-Style Toggle Switch */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* ==========================================================================
   10. Action Dashboard & AI Executive Briefing Styles
   ========================================================================== */

.todo-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}

#view-actions {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px 60px;
}

.actions-scroll-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Action Hero Card */
.action-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.action-hero-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.action-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.action-hero-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-sparkle-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.6));
}

.action-hero-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.action-hero-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

.btn-refresh-briefing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-briefing:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #fff;
}

/* Metrics Grid */
.action-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: rgba(15, 20, 32, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-value {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  margin: 6px 0 2px;
}

.metric-desc {
  font-size: 11px;
  color: #64748b;
}

.metric-card.urgent {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.05);
}
.metric-card.urgent .metric-value {
  color: #fb7185;
}

.metric-card.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}
.metric-card.success .metric-value {
  color: #34d399;
}

.completion-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 8px;
  overflow: hidden;
}

.completion-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #10b981 100%);
  transition: width 0.4s ease;
}

/* Briefing Insight Box */
.briefing-insight-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.briefing-headline {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.briefing-bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.briefing-bullets li strong {
  color: #fff;
}

/* Toolbar */
.actions-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.action-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.action-pill.active {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.action-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-search-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: #fff;
  width: 220px;
  outline: none;
}

.action-search-input:focus {
  border-color: var(--primary-accent);
}

.btn-clean-completed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-clean-completed:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-clean-completed.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

.btn-bulk-planner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-bulk-planner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* ========================================================================
   Top 3 Focus Section (오늘의 집중 3대 과제)
   ======================================================================== */
.top3-focus-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top3-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: -0.01em;
}

.top3-progress-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.top3-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.top3-empty-slot {
  border: 1px dashed rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.top3-empty-icon {
  font-size: 16px;
  opacity: 0.6;
}

.top3-card {
  background: rgba(20, 26, 40, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  transition: all 0.2s ease;
}

.top3-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.top3-card.completed {
  opacity: 0.55;
  border-color: rgba(148, 163, 184, 0.2);
}

.top3-card-text {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top3-card.completed .top3-card-text {
  text-decoration: line-through;
  color: #64748b;
}

/* Deadline & Natural Date Badges */
.badge-deadline {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.badge-deadline.urgent {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  animation: pulseUrgent 2s infinite ease-in-out;
}

.badge-deadline.soon {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.badge-deadline.date {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

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

/* Action Button Focus (Star) */
.action-btn-focus {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #94a3b8;
  font-size: 13px;
  padding: 4px 7px;
}

.action-btn-focus:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.action-btn-focus.pinned {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Action Items Grid */
.action-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-card {
  background: rgba(18, 24, 38, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(24, 32, 52, 0.85);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.action-card.completed {
  opacity: 0.55;
  background: rgba(15, 20, 32, 0.35);
  transform: none;
  box-shadow: none;
}

.action-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.action-card-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.action-card-checkbox:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  transform: scale(1.1);
}

.action-card-checkbox.checked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  animation: checkPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.action-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.action-card-text {
  font-size: 14px;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.45;
  word-break: break-word;
  transition: color 0.2s ease;
}

.action-card.completed .action-card-text {
  text-decoration: line-through;
  color: #64748b;
}

.action-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
}

.action-note-link {
  color: #38bdf8;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.action-note-link:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  transform: translateY(-1px);
}

.action-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.action-btn-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 11.5px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.action-btn-sm:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.action-btn-sticky {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.action-btn-sticky:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.action-btn-planner {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.action-btn-planner:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.action-btn-dismiss {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 5px 8px;
  font-weight: 700;
}

.action-btn-dismiss:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

/* ========================================================================
   14. Universal OS Bridge Quick Bar
   ======================================================================== */
.os-quick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.os-quick-bar::-webkit-scrollbar {
  display: none;
}

.os-quick-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  white-space: nowrap;
  letter-spacing: 0.02em;
  margin-right: 4px;
}

.os-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.os-quick-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}

.os-quick-pill.pill-mac:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.os-quick-pill.pill-win {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

.os-quick-pill.pill-win:hover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}

.os-quick-pill.pill-samsung {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
}

.os-quick-pill.pill-samsung:hover {
  border-color: #a78bfa;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}

.os-quick-pill.pill-sample {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(6, 182, 212, 0.18) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.os-quick-pill.pill-sample:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35) 0%, rgba(6, 182, 212, 0.3) 100%);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.os-quick-pill.pill-download {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94a3b8;
}

.os-quick-pill.pill-download:hover {
  border-color: #cbd5e1;
  color: #fff;
}

.pill-cnt {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 800;
}

.pill-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill-badge-hot {
  background: #f43f5e;
  color: #fff;
  font-weight: 800;
  animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.95); }
}

/* ========================================================================
   15. OS Switcher Tabs inside Universal Modal
   ======================================================================== */
.os-switcher-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.os-tab-btn {
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.os-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.os-badge-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-weight: 800;
}

.badge-win-highlight {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* ========================================================================
   16. Windows & Samsung Notes Panel Layout
   ======================================================================== */
.win-hero-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.win-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.win-action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.win-action-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.win-action-card.highlight-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(79, 70, 229, 0.08) 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

.win-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-icon {
  font-size: 20px;
}

.win-card-sub {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.win-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.btn-win-action {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-win-action:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-sample-action {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-sample-action:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5);
}

/* Dropzone */
.win-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.win-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.btn-browse-file {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 14px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-browse-file:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Standalone Download Footer */
.win-download-footer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-win-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-win-download:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Note Cards Windows/Samsung Badges */
.source-tag-win {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

.source-tag-samsung {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

.card-theme-blue { border-top: 3px solid #3b82f6 !important; }
.card-theme-yellow { border-top: 3px solid #eab308 !important; }
.card-theme-purple { border-top: 3px solid #a855f7 !important; }
.card-theme-green { border-top: 3px solid #10b981 !important; }
.card-theme-pink { border-top: 3px solid #ec4899 !important; }

/* ========================================================================
   17. SETUPOD Planner Partner Banner
   ======================================================================== */
.planner-partner-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.planner-partner-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
}

.partner-banner-left {
  flex: 1;
}

.partner-pill-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  letter-spacing: 0.05em;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.partner-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px 0;
}

.partner-banner-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}

.btn-partner-transfer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-partner-transfer:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

/* ========================================================================
   18. Welcome Showcase & Instant Desktop Download Bar (Try-First Hybrid)
   ======================================================================== */
.welcome-showcase-bar {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 27, 75, 0.94) 50%, rgba(15, 23, 42, 0.96) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 16px 24px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideDownFade 0.35s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-showcase-bar.hidden {
  display: none !important;
}

.welcome-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 28px;
  position: relative;
  padding-right: 28px;
}

.welcome-left {
  flex: 1;
}

.welcome-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.welcome-pill-pro {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.welcome-pill-sub {
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
}

.welcome-heading {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.welcome-description {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.welcome-description strong {
  color: #38bdf8;
  font-weight: 600;
}

.welcome-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.welcome-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.btn-mini-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.22) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.btn-mini-hero:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38) 0%, rgba(234, 88, 12, 0.4) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: #fff;
}

.btn-mac-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.24) 100%);
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
}

.btn-mac-hero:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.45) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: #fff;
}

.btn-win-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(99, 102, 241, 0.26) 100%);
  border-color: rgba(96, 165, 250, 0.45);
  color: #60a5fa;
}

.btn-win-hero:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(99, 102, 241, 0.45) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  color: #fff;
}

.dl-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.dl-sub {
  display: block;
  font-size: 10px;
  color: #cbd5e1;
  opacity: 0.85;
  line-height: 1.2;
}

.welcome-micro-note {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-dismiss-welcome {
  position: absolute;
  top: 0px;
  right: 0px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dismiss-welcome:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================================================
   19. macOS Apple Notes Pro Floating App Modal
   ======================================================================== */
.apple-notes-modal-overlay {
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apple-notes-modal-card {
  width: 1060px;
  max-width: 95vw;
  height: 680px;
  max-height: 92vh;
  border-radius: 14px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  animation: macModalDrop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes macModalDrop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================================================
   20. Global Loading Overlay (Import/Export)
   ======================================================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-card {
  text-align: center;
  padding: 40px 50px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.12);
  animation: macModalDrop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-spinner-ring {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.spinner-orbit {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spinnerOrbit 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-orbit-2 {
  inset: 8px;
  border-top-color: #06b6d4;
  animation-duration: 1.4s;
  animation-direction: reverse;
}

.spinner-core {
  position: absolute;
  inset: 18px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent);
  border-radius: 50%;
  animation: spinnerPulse 1.2s ease-in-out infinite;
}

@keyframes spinnerOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinnerPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.loading-status-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.loading-progress-bar {
  width: 200px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

/* ==========================================================================
   휴대폰 화면 (2026-10-22 점검 🟠7) — 375px 에서 화면이 949px 로 넘치던 것
   · 머리글: 줄을 바꾸고, 보기 탭·오른쪽 버튼은 한 줄 가로 스크롤
   · 서랍: 화면 밖(right:-480px)으로 튀어나와 폭을 넓히던 것을 화면 폭 안으로
   · 통계 4칸 → 2칸(좁은 칸에서 글자가 한 글자씩 세로로 꺾이던 것)
   ========================================================================== */
@media (max-width: 720px) {
  body { overflow-x: hidden; }
  html, body { overflow-x: clip; } /* 사파리에서 손가락으로 옆으로 밀리지 않게(clip 은 머리글 sticky 를 깨지 않는다) */
  .memo-header { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .memo-header .brand-group { flex: 1 1 auto; min-width: 0; }
  .memo-header .view-tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .memo-header .view-tabs::-webkit-scrollbar { display: none; }
  .memo-header .header-actions { order: 2; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .memo-header .header-actions::-webkit-scrollbar { display: none; }
  .tab-btn, .header-actions > * { flex: 0 0 auto; white-space: nowrap; }
  .tag-bar-section { flex-wrap: nowrap; overflow-x: auto; }
  .tag-pill { flex: 0 0 auto; }

  .memo-drawer { width: 100vw; max-width: 100vw; right: -100vw; }
  .memo-drawer.open { right: 0; }

  .actions-scroll-wrap { max-width: 100%; }
  .action-hero-card { padding: 18px 16px; }
  .action-hero-header { flex-wrap: wrap; gap: 12px; }
  .action-hero-title-group { min-width: 0; }
  .action-hero-title { font-size: 18px; word-break: keep-all; }
  .action-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .editor-split-wrap { grid-template-columns: 1fr; }
  /* 입력창: 입력칸은 한 줄 전체, 분류·음성·정리 버튼은 아래 줄 */
  .spotlight-input-box { flex-wrap: wrap; row-gap: 10px; }
  .spotlight-input { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .spotlight-type-select { flex: 1 1 auto; min-width: 0; }
  .btn-spotlight-submit { flex: 0 0 auto; }
  .action-toolbar-right { flex-wrap: wrap; justify-content: flex-start; max-width: 100%; }
  .btn-bulk-planner { white-space: normal; }
}
