/* ═══════════════════════════════════════════════════════════════
   MemoryVerse Portfolio — Formal Corporate Theme with Dark/Light Mode
   Design System: Enterprise Slate & Sapphire Blue
════════════════════════════════════════════════════════════════ */

:root, [data-theme="dark"] {
  --bg:          #0b0f19;
  --bg-sidebar:  #111827;
  --bg-card:     #1e293b;
  --bg-card-h:   #334155;
  --bg-input:    #0b0f19;
  
  --border:      #1e293b;
  --border-light:#334155;
  --border-focus:#3b82f6;

  --primary:     #2563eb;
  --primary-hover:#1d4ed8;
  --primary-glow:rgba(37,99,235,0.2);

  --accent-cyan: #0284c7;
  --accent-emerald:#059669;
  --accent-amber:#d97706;
  --accent-rose: #e11d48;

  --text-main:   #f8fafc;
  --text-muted:  #94a3b8;
  --text-subtle: #64748b;

  --canvas-bg:   #080c14;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.5);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --sidebar-width: 250px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] {
  --bg:          #f8fafc;
  --bg-sidebar:  #ffffff;
  --bg-card:     #ffffff;
  --bg-card-h:   #f1f5f9;
  --bg-input:    #ffffff;
  
  --border:      #e2e8f0;
  --border-light:#cbd5e1;
  --border-focus:#2563eb;

  --primary:     #2563eb;
  --primary-hover:#1d4ed8;
  --primary-glow:rgba(37,99,235,0.15);

  --accent-cyan: #0284c7;
  --accent-emerald:#059669;
  --accent-amber:#d97706;
  --accent-rose: #dc2626;

  --text-main:   #0f172a;
  --text-muted:  #475569;
  --text-subtle: #64748b;

  --canvas-bg:   #f1f5f9;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 10px 25px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hidden { display: none !important; }

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* ─── AUTH SCREEN ─────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-name .accent {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

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

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.form-error {
  font-size: 0.85rem;
  color: var(--accent-rose);
  background: rgba(225, 29, 72, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

/* ─── MAIN APP LAYOUT ─────────────────────────────────────── */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  min-height: 72px;
}

.sidebar-brand .brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.btn-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.btn-theme-toggle:hover {
  background: var(--bg-card-h);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-theme-toggle svg {
  width: 18px;
  height: 18px;
}

.sidebar-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-card-h);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.nav-svg {
  flex-shrink: 0;
  color: currentColor;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-logout:hover {
  color: var(--accent-rose);
  background: rgba(225, 29, 72, 0.1);
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 32px 40px;
  max-width: 1200px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-header {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.view-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.view-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── DASHBOARD VIEW ─────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.cat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  background: var(--bg-card-h);
}

.cat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.section-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Document List */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.doc-cat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.doc-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.doc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.skill-tag {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.doc-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--bg-card-h);
  color: var(--text-main);
  border-color: var(--border-light);
}

/* ─── UPLOAD VIEW ─────────────────────────────────────────── */
.drop-zone {
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  transition: all 0.2s ease;
  margin-bottom: 24px;
  cursor: pointer;
}

.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(37,99,235,0.06);
}

.drop-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.drop-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.accepted-types {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.type-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.upload-actions {
  text-align: center;
  margin-bottom: 24px;
}

.btn-browse {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-browse:hover {
  background: var(--primary-hover);
}

.upload-hint {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 10px;
}

.upload-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.upload-filename {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.upload-status.processing {
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-amber);
}

.upload-status.ready {
  background: rgba(5, 150, 105, 0.15);
  color: var(--accent-emerald);
}

.upload-status.failed {
  background: rgba(225, 29, 72, 0.15);
  color: var(--accent-rose);
}

/* ─── TIMELINE VIEW ───────────────────────────────────────── */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 20px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 7px;
  width: 2px;
  background: var(--border-light);
}

.timeline-year-group {
  position: relative;
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 14px;
}

.timeline-event {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.event-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  flex: 1;
}

.event-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.event-org {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.event-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ─── KNOWLEDGE GRAPH VIEW ────────────────────────────────── */
.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.graph-canvas {
  width: 100%;
  height: 540px;
  background: var(--canvas-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: block;
}

.graph-tooltip {
  position: fixed;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 1000;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
}

/* ─── SMART SEARCH / CHAT ─────────────────────────────────── */
.chat-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 600px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-welcome {
  text-align: center;
  margin: auto;
  max-width: 440px;
}

.chat-welcome h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.chat-welcome p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.quick-queries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.quick-btn {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.msg-user {
  align-self: flex-end;
  max-width: 75%;
}

.msg-user .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px 12px 2px 12px;
  font-size: 0.88rem;
}

.msg-ai {
  align-self: flex-start;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-ai .msg-bubble {
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: 12px 12px 12px 2px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.msg-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: var(--bg-sidebar);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}

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

.btn-send {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-send:hover {
  background: var(--primary-hover);
}

/* ─── TOAST NOTIFICATIONS ─────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid var(--accent-rose); }
.toast-info { border-left: 4px solid var(--primary); }

/* ─── FOOTER & MODAL ─────────────────────────────────────── */
.app-footer {
  margin-top: 48px;
  padding: 20px 0 10px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.select-input, .text-input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-h);
  border-color: var(--border-light);
}
