:root {
  --bg: #f5faff;
  --sidebar-bg: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.8);
  --ink: #0f172a;
  --ink-soft: #475569;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.1);
  --danger: #ef4444;
  --success: #10b981;
  --surface-strong: rgba(255, 255, 255, 0.85);
  --top-grad-a: #ffffff;
  --top-grad-b: #eff4ff;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0f1117;
  --sidebar-bg: #161822;
  --card-bg: rgba(30, 33, 48, 0.75);
  --card-border: rgba(55, 60, 85, 0.5);
  --ink: #e2e8f0;
  --ink-soft: #94a3b8;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-glow: rgba(129, 140, 248, 0.25);
  --danger: #f87171;
  --success: #4ade80;
  --surface-strong: rgba(25, 28, 40, 0.92);
  --top-grad-a: #131726;
  --top-grad-b: #0f1117;
}

/* System preference auto-detect */
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #0f1117;
    --sidebar-bg: #161822;
    --card-bg: rgba(30, 33, 48, 0.75);
    --card-border: rgba(55, 60, 85, 0.5);
    --ink: #e2e8f0;
    --ink-soft: #94a3b8;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-glow: rgba(129, 140, 248, 0.25);
    --danger: #f87171;
    --success: #4ade80;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  gap: 2px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2px;
  margin-left: 8px;
}

.theme-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  border-radius: 8px;
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 14px;
  transition: all 0.15s;
}

.theme-btn:hover {
  color: var(--accent);
}

.theme-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  padding-left: 8px;
}

.brand-orb {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4a6cf7 0%, #a78bfa 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.face-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
}

.face-mini .eye {
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: blink 4s infinite;
}

.brand-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(74, 108, 247, 0.05);
  color: var(--accent);
}

.nav-item.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.sidebar-bottom {
  margin-top: auto;
}

.back-btn {
  color: var(--ink-soft);
  font-size: 14px;
}

.back-btn:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 48px;
  background: radial-gradient(circle at 50% 0%, var(--top-grad-a) 0%, var(--top-grad-b) 80%);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.greeting h1 {
  font-size: 36px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -1px;
}

.greeting p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status {
  background: var(--surface-strong);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 3s infinite;
}

.avatar-account {
  position: relative;
}

.avatar-trigger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: linear-gradient(135deg, #4a6cf7 0%, #a78bfa 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45);
}

.account-menu {
  position: absolute;
  top: 52px;
  right: 0;
  min-width: 260px;
  background: var(--surface-strong);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.account-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-email {
  font-size: 12px;
  color: var(--ink-soft);
}

.account-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 2px 0 4px;
}

.account-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(74, 108, 247, 0.1);
  border: 1px solid rgba(74, 108, 247, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
}

.account-menu-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.account-btn {
  flex: 1;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
}

.account-btn.danger {
  color: var(--danger);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  grid-auto-rows: minmax(100px, auto);
  gap: 24px;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-1 {
  grid-column: span 1;
}

.row-span-2 {
  grid-row: span 2;
}

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

.card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.card-icon {
  font-size: 20px;
  background: white;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: -10px 0 20px;
}

/* Inputs */
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

input,
input,
select {
  font-family: inherit;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

[data-theme="dark"] input,
[data-theme="dark"] select {
  background: rgba(45, 55, 72, 0.4);
}

.bento-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.inline-add {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-bottom: 16px;
}

.card-timeline .inline-add {
  grid-template-columns: 1fr 90px auto;
}

.card-chats .inline-add {
  grid-template-columns: 1fr 100px auto;
}

.card-notes .inline-add {
  grid-template-columns: 1fr auto;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}

button:active {
  transform: scale(0.96);
}

.btn-glow {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a6cf7 0%, #2a4de0 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-solid {
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.btn-solid:hover {
  background: #000;
  transform: translateY(-2px);
}

/* Lists */
.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 250px;
}

.data-list li {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  line-height: 1.5;
  animation: slideUp 0.3s ease forwards;
  opacity: 0;
  word-wrap: break-word;
}

.data-list li:nth-child(1) {
  animation-delay: 0.05s;
}

.data-list li:nth-child(2) {
  animation-delay: 0.1s;
}

.data-list li:nth-child(3) {
  animation-delay: 0.15s;
}

/* Custom Scrollbar for lists */
.data-list::-webkit-scrollbar {
  width: 4px;
}

.data-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {

  0%,
  88%,
  92%,
  100% {
    transform: scaleY(1);
  }

  90% {
    transform: scaleY(0.1);
  }
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

/* ─── Dashboard Sections ───────────────────────────── */
.dashboard-section {
  display: none;
  animation: sectionFadeIn 300ms ease both;
}

.dashboard-section.active {
  display: block;
  animation: section-fade 0.35s ease;
}

@keyframes section-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.section-title p {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ─── Feature Showcase Cards ───────────────────────── */
.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.feature-showcase-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms;
  animation: slideUp 400ms ease both;
}

.feature-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fsc-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fsc-body h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.fsc-body p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 8px;
}

.fsc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fsc-tags span {
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  color: #6366f1;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ─── Site Modes Grid ──────────────────────────────── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.mode-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 200ms;
  animation: slideUp 400ms ease both;
}

.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.12);
}

.mode-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.mode-card p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 10px;
}

.mode-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mode-chips span {
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink-soft);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 150ms, color 150ms;
}

.mode-chips span:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.9));
  color: #fff;
  border-color: transparent;
}

/* ─── Workspace ────────────────────────────────────── */
.ws-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  color: var(--ink-soft);
}

.ws-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-family: "Outfit", sans-serif;
}

.ws-search-bar input::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

.ws-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ws-tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Outfit", sans-serif;
}

.ws-tab:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.2);
}

.ws-tab.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border-color: transparent;
}

.ws-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.ws-stat-glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ws-stat-glass:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.ws-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ws-stat-icon.notes {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.ws-stat-icon.chats {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.ws-stat-icon.timeline {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ws-stat-icon.pages {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ws-stat-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ws-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ws-masonry-wrapper {
  max-height: calc(100vh - 420px);
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 40px;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.ws-content::-webkit-scrollbar {
  width: 6px;
}

.ws-content::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 99px;
}

.ws-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: slideUp 0.5s ease both;
}

.ws-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
}

.ws-card[data-type="summary"] {
  grid-column: span 2;
  border-left: 4px solid #10b981;
}

.ws-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ws-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ws-card-icon.note {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.ws-card-icon.chat {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.ws-card-icon.timeline {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ws-card-icon.summary {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ws-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.ws-card-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  word-break: break-word;
}

.ws-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.ws-card-source {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 99px;
}

.ws-card-meta {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
}

.ws-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-glow {
  font-size: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
  animation: float 3s ease-in-out infinite;
}

.ws-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.ws-empty p {
  color: var(--ink-soft);
  max-width: 400px;
  line-height: 1.6;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ═══════════════════════════════════════════════════
   OVERVIEW SECTION
═══════════════════════════════════════════════════ */
.ov-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.1), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(74, 108, 247, 0.15);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ov-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ov-orb-wrap {
  position: relative;
}

.ov-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a6cf7, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(74, 108, 247, 0.45);
  animation: hero-orb-pulse 3s ease-in-out infinite;
}

@keyframes hero-orb-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(74, 108, 247, 0.4);
  }

  50% {
    box-shadow: 0 0 36px rgba(74, 108, 247, 0.7);
  }
}

.ov-greeting {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.ov-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
  font-weight: 500;
}

.ov-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ov-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ov-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.ov-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.ov-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(74, 108, 247, 0.15);
}

.ov-api-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: dot-blink 2s infinite;
  flex-shrink: 0;
}

.ov-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.ov-col-main,
.ov-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ov-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  animation: card-rise 0.35s ease;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ov-card-fill {
  flex: 1;
  min-height: 220px;
}

.ov-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ov-card-head h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.ov-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ov-card-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

.ov-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ov-fields label,
.ov-fields-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ov-fields input,
.ov-fields-grid input,
.ov-fields-grid select {
  padding: 9px 12px;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.2s;
}

.ov-fields input:focus,
.ov-fields-grid input:focus,
.ov-fields-grid select:focus {
  border-color: var(--accent);
}

.ov-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.ov-btn-primary {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #4a6cf7, #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(74, 108, 247, 0.3);
}

.ov-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(74, 108, 247, 0.4);
}

.ov-activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.ov-activity-empty {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px 0;
  font-style: italic;
}

.ov-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink);
  padding: 10px 12px;
  background: rgba(74, 108, 247, 0.04);
  border-radius: 10px;
  border-left: 3px solid rgba(74, 108, 247, 0.3);
}

.ov-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.ov-qa-btn {
  padding: 11px 14px;
  background: rgba(74, 108, 247, 0.06);
  border: 1.5px solid rgba(74, 108, 247, 0.12);
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}

.ov-qa-btn:hover {
  background: rgba(74, 108, 247, 0.12);
  transform: translateY(-1px);
  border-color: rgba(74, 108, 247, 0.25);
}

/* ═══════════════════════════════════════════════════
   WORKSPACE SECTION
═══════════════════════════════════════════════════ */
.ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ws-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.ws-subtitle {
  font-size: 13px;
  color: var(--ink-soft);
}

.ws-stats-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ws-stat-chip {
  padding: 7px 14px;
  background: rgba(74, 108, 247, 0.07);
  border: 1px solid rgba(74, 108, 247, 0.13);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ws-stat-chip span {
  color: var(--accent);
  font-weight: 800;
}

/* Two-column layout */
.ws-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
  min-height: 500px;
}

/* Main panel */
.ws-main-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
  gap: 10px;
}

.ws-panel-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-tabs-inline {
  display: flex;
  gap: 4px;
  background: rgba(74, 108, 247, 0.06);
  border-radius: 10px;
  padding: 3px;
}

.ws-tabs-inline .ws-tab {
  padding: 5px 12px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.ws-tabs-inline .ws-tab.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 6px rgba(74, 108, 247, 0.15);
}

/* Add form */
.ws-add-form {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  align-items: center;
}

.ws-add-form-sm {
  padding: 10px 16px;
}

.ws-add-form input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.2s;
}

.ws-add-form input:focus {
  border-color: var(--accent);
}

.ws-add-form select {
  padding: 8px 10px;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: var(--card-bg);
  outline: none;
}

.ws-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4a6cf7, #6366f1);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}

.ws-add-btn:hover {
  transform: scale(1.08);
}

/* Feed (chat / note / timeline lists) */
.ws-feed {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
}

.ws-feed-sm {
  max-height: 220px;
  padding: 8px 16px;
}

.ws-feed-empty {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

.ws-feed li:not(.ws-feed-empty) {
  padding: 10px 12px;
  background: rgba(74, 108, 247, 0.04);
  border-radius: 10px;
  border-left: 3px solid rgba(74, 108, 247, 0.25);
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}

/* Side panel */
.ws-side-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ws-side-section {
  padding-bottom: 4px;
}

.ws-side-section .ws-panel-label {
  padding: 16px 16px 10px;
}

.ws-side-divider {
  height: 1px;
  background: var(--card-border);
  margin: 4px 16px;
}

/* Card grid (all/summaries view) */
.ws-card-grid {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ws-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 9px 14px;
  min-width: 240px;
}

.ws-search-bar input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 100%;
}

@media (max-width: 900px) {

  .ov-grid,
  .ws-layout {
    grid-template-columns: 1fr;
  }

  .ov-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
