/* styles.css */
:root {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f0;
  --bg-tertiary: #e8e8e8;
  --text-primary: #0a0a0a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #d0d0d0;
  --accent: #0a0a0a;
  --accent-light: #333333;
  --cause: #2563eb;
  --effect: #dc2626;
  --strong: #059669;
  --weak: #d97706;
  --break: #dc2626;
  --verified: #7c3aed;
  --surface: #ffffff;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --hover-bg: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --text-primary: #fafafa;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666666;
  --border: #2a2a2a;
  --accent: #fafafa;
  --accent-light: #e0e0e0;
  --cause: #3b82f6;
  --effect: #ef4444;
  --strong: #10b981;
  --weak: #f59e0b;
  --break: #ef4444;
  --verified: #a78bfa;
  --surface: #111111;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --hover-bg: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.font-mono {
  font-family: "IBM Plex Mono", monospace;
}
#app-shell {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
#main-header {
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  position: relative;
  flex-shrink: 0;
}
#brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
#logo-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
#brand-text {
  display: flex;
  flex-direction: column;
}
#brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
}
#brand-tagline {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
#header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.header-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-btn:hover {
  background: var(--hover-bg);
}
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  background: var(--hover-bg);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-ghost {
  border: none;
  background: transparent;
}

/* Create Button */
#create-btn {
  font-weight: 600;
  gap: 6px;
}
#create-btn:hover {
  border-color: var(--text-secondary);
}

/* Sidebar Nav */
#app-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}
#side-nav {
  width: 240px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  z-index: 50;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#side-nav::-webkit-scrollbar {
  display: none;
}
#side-nav.collapsed {
  width: 64px;
  padding: 16px 0;
}
#side-nav.collapsed .nav-label,
#side-nav.collapsed .nav-item span:not(.nav-icon),
#side-nav.collapsed .nav-section-title-text {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}
#side-nav.collapsed .nav-item {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}
#side-nav.collapsed .nav-section {
  padding: 0 12px;
}
#sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  transition: all 0.2s;
  flex-shrink: 0;
}
#sidebar-toggle:hover {
  background: var(--hover-bg);
}
#side-nav.collapsed #sidebar-toggle {
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: center;
    align-items: center;
  transform: rotate(180deg);
}
.nav-section {
  padding: 0 16px;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
  margin-bottom: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  margin-bottom: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.active {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.nav-item.active {
  font-weight: 600;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-country {
  border-left: 3px solid #3b82f6;
}
.cat-finance {
  border-left: 3px solid #10b981;
}
.cat-sports {
  border-left: 3px solid #f59e0b;
}
.cat-studies {
  border-left: 3px solid #8b5cf6;
}
.cat-medical {
  border-left: 3px solid #ef4444;
}
.cat-global {
  border-left: 3px solid #6b7280;
}

/*This is for pulse page
/* Dual Sliding Navigation Containers */
.slider-container { 
    display: flex; 
    flex-wrap: nowrap; 
    align-items: center;
    gap: 12px; 
    overflow-x: auto; 
    overflow-y: visible;
    height: auto;
    min-height: 48px; 
    padding: 6px 4px;
    margin-bottom: 8px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.slider-container::-webkit-scrollbar { 
    display: none; 
} 

/* Individual Interactive Filter Pills */
.filter-pill { 
    flex: 0 0 auto;
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 36px; 
    padding: 0 18px; 
    border-radius: 18px; 
    background: var(--surface); 
    border: 1px solid var(--border); 
    white-space: nowrap; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500; 
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.filter-pill:hover { 
    background: var(--hover-bg); 
}

.filter-pill.active { 
    background: var(--accent); 
    color: var(--bg-primary) !important; 
    border-color: var(--accent); 
}
/* Latest Cards Grid */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.latest-card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 24px; 
    cursor: pointer; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    text-decoration: none; 
    color: inherit; 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
}
.latest-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}
.latest-card:hover { 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-4px); 
}

/* Main Content Area */
#main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-primary);
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}
.hidden {
  display: none !important;
}

/* Modals & Overlays */
#mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 90;
  display: none;
  backdrop-filter: blur(2px);
}
#mobile-overlay.active {
  display: block;
}
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
#auth-modal.active {
  display: flex;
}
#auth-container {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
#auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  color: var(--text-tertiary);
}
.auth-tab.active {
  border-bottom-color: var(--accent);
  color: var(--text-primary);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  transition: all 0.2s;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

/* Component Classes (Refactored from inline styles) */
.page-container {
  padding: 40px;
}
.category-card,
.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card:hover,
.topic-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  #side-nav {
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100% - 60px);
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    width: 240px !important;
  }
  #side-nav.active {
    transform: translateX(0);
  }
  #side-nav.collapsed {
    width: 240px !important;
  }
  #side-nav.collapsed .nav-label,
  #side-nav.collapsed .nav-item span:not(.nav-icon),
  #side-nav.collapsed .nav-section-title-text {
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
  }
  #side-nav.collapsed .nav-item {
    justify-content: flex-start !important;
    padding: 10px 12px !important;
  }
}

/* Additions to styles.css for Page Cleanups */

/* Standardized Content Container Layouts */
.ledger-view-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.ledger-fullscreen-container {
    padding: 40px;
    width: 100%;
}
.page-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Card Section Groupings */
.settings-section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.settings-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
    border-bottom: none;
}
.settings-meta-text {
    font-size: 14px;
    font-weight: 500;
}
.settings-sub-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Toggle Switch Styling */
.switch-wrapper {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}
.switch-wrapper input:checked + .switch-slider {
    background: var(--strong);
}

/* Search Dashboard Page UI */
.search-bar-box {
    position: relative;
    margin-bottom: 32px;
    max-width: 700px;
}
.search-icon-inline {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}
.search-input-field {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s;
}
.search-input-field:focus {
    outline: none;
    border-color: var(--accent);
}
.inline-node-result {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.inline-node-result:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Form Node Types Badges (Append Node Page) */
.type-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.append-cause { background: rgba(37, 99, 235, 0.1); color: var(--cause); }
.append-effect { background: rgba(220, 38, 38, 0.1); color: var(--effect); }
.parent-node-blockquote {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid var(--text-tertiary);
}

/* =========================================================
   NEW: Home Stream Feed Dashboard Styles
   ========================================================= */

/* Feed Canvas */
.feed-canvas {
  padding: 24px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sticky Filter Header */
.feed-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary);
  padding-top: 16px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.feed-header.scrolled {
  border-bottom-color: var(--border);
}

/* Live Status Bar */
.live-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--strong);
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--strong);
  opacity: 0.4;
  animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}
.live-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.live-stats {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'IBM Plex Mono', monospace;
}
.dot-separator {
  margin: 0 8px;
  opacity: 0.5;
}

/* Category Badges */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-finance { background: rgba(16, 185, 129, 0.12); color: var(--strong); }
.badge-global { background: rgba(59, 130, 246, 0.12); color: var(--cause); }
.badge-medical { background: rgba(239, 68, 68, 0.12); color: var(--break); }
.badge-country { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.badge-sports { background: rgba(245, 158, 11, 0.12); color: var(--weak); }
.badge-studies { background: rgba(139, 92, 246, 0.12); color: #a78bfa; }
.badge-tech { background: rgba(6, 182, 212, 0.12); color: #22d3ee; }
.badge-climate { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.badge-energy { background: rgba(249, 115, 22, 0.12); color: #fb923c; }

/* Card Top Accent Line */
.latest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.latest-card[data-category="finance"]::before { background: var(--strong); opacity: 0.8; }
.latest-card[data-category="global"]::before { background: var(--cause); opacity: 0.8; }
.latest-card[data-category="medical"]::before { background: var(--break); opacity: 0.8; }
.latest-card[data-category="country"]::before { background: #60a5fa; opacity: 0.8; }
.latest-card[data-category="sports"]::before { background: var(--weak); opacity: 0.8; }
.latest-card[data-category="studies"]::before { background: #a78bfa; opacity: 0.8; }
.latest-card[data-category="tech"]::before { background: #22d3ee; opacity: 0.8; }
.latest-card[data-category="climate"]::before { background: #4ade80; opacity: 0.8; }
.latest-card[data-category="energy"]::before { background: #fb923c; opacity: 0.8; }

/* Card Internal Layout */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.card-timestamp {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.consensus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--verified);
}
.consensus-badge svg {
  width: 14px;
  height: 14px;
}
.hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--effect);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.link-count {
  color: var(--text-tertiary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.view-chain {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s;
}
.latest-card:hover .view-chain {
  color: var(--text-primary);
}

/* Feed Footer */
.feed-footer {
  text-align: center;
  margin-top: 48px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.btn-load-more {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}
.feed-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'IBM Plex Mono', monospace;
}

/* Dark Theme Enhancements */
[data-theme="dark"] .latest-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .feed-header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .feed-header {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Responsive Feed */
@media (max-width: 768px) {
  .feed-canvas { padding: 16px; }
  .latest-grid { grid-template-columns: 1fr; }
  .live-status-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  #create-btn span { display: none; }
  #create-btn { padding: 8px; }
}
@media (max-width: 1024px) {
  .latest-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}