/* ============== DESIGN TOKENS — synced with Figma EGLE Design System ============== */
:root {
  /* Brand */
  --primary: #9b6cf5;
  --primary-end: #d9c4ff;
  --primary-hover: #ac82f7;
  --primary-active: #845cd9;
  --primary-light: #c084fc;
  --primary-muted-bg: #1c1538;
  --primary-subtle: rgba(155, 108, 245, 0.12);
  --primary-ring: rgba(155, 108, 245, 0.35);

  /* Backgrounds */
  --bg-deep: #000000;
  --bg-base: #18181b;
  --bg-surface: #1f1f22;
  --bg-elevated: #27272a;
  --bg-hover: #2a2a2e;
  --bg-interactive: #3f3f47;
  --bg-sidebar: #18181b;
  --bg-sidebar-hover: #1f1f22;
  --bg-overlay: rgba(24, 24, 27, 0.80);
  --bg-scrim: rgba(0, 0, 0, 0.60);

  /* Borders */
  --border: #27272a;
  --border-strong: #3f3f47;
  --border-input: #4a4a51;
  --border-row: #1f1f22;
  --border-accent: rgba(155, 108, 245, 0.30);

  /* Text */
  --text-heading: #fafafa;
  --text-primary: #e5e5e5;
  --text-secondary: #d4d4d8;
  --text-tertiary: #a3a3a3;
  --text-quaternary: #71717a;
  --text-muted: #52525c;
  --text-placeholder: rgba(229, 229, 229, 0.50);
  --text-on-primary: #ffffff;

  /* Status — Success */
  --success-bg: #052e16;
  --success-fg: #4ade80;
  --success-border: #14532d;
  --success-ring: rgba(74, 222, 128, 0.22);

  /* Status — Warning */
  --warning-bg: #1c1400;
  --warning-fg: #fbbf24;
  --warning-border: #3f2e00;

  /* Status — Queue */
  --queue-bg: #0f172a;
  --queue-fg: #7dd3fc;
  --queue-border: #1e293b;

  /* Status — Error */
  --error-bg: #1f0a0a;
  --error-fg: #f87171;
  --error-border: #3f1010;
  --error-ring: rgba(248, 113, 113, 0.22);

  /* Status — Purple */
  --purple-bg: #1a0a3e;
  --purple-fg: #c084fc;
  --purple-border: #2e1065;

  /* Status — Info */
  --info-bg: #0c1a2e;
  --info-fg: #d9c4ff;
  --info-border: #1e3a5f;
  --info-ring: rgba(147, 197, 253, 0.22);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Typography sizes */
  --font-size-2xs: 10px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;

  /* Hero banner fade-to-bg (matches --bg-deep) */
  --hero-fade-rgb: 0, 0, 0;

  /* Legacy */
  --section-label: #494847;
}

/* ============== LIGHT THEME OVERRIDES ============== */
:root[data-theme="light"] {
  /* Brand */
  --primary: #9b6cf5;
  --primary-end: #845cd9;
  --primary-hover: #845cd9;
  --primary-active: #6f48c0;
  --primary-light: #d9c4ff;
  --primary-muted-bg: #f4eefe;
  --primary-subtle: rgba(155, 108, 245, 0.08);
  --primary-ring: rgba(155, 108, 245, 0.25);

  /* Backgrounds */
  --bg-deep: #fafafa;
  --bg-base: #ffffff;
  --bg-surface: #f7f7f8;
  --bg-elevated: #ffffff;
  --bg-hover: #f4f4f5;
  --bg-interactive: #e4e4e7;
  --bg-sidebar: #fafafa;
  --bg-sidebar-hover: #f4f4f5;
  --bg-overlay: rgba(255, 255, 255, 0.85);
  --bg-scrim: rgba(24, 24, 27, 0.40);

  /* Borders */
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --border-input: #d4d4d8;
  --border-row: #f4f4f5;
  --border-accent: rgba(155, 108, 245, 0.25);

  /* Text */
  --text-heading: #09090b;
  --text-primary: #18181b;
  --text-secondary: #27272a;
  --text-tertiary: #52525c;
  --text-quaternary: #71717a;
  --text-muted: #a3a3a3;
  --text-placeholder: rgba(82, 82, 92, 0.60);
  --text-on-primary: #ffffff;

  /* Status — Success */
  --success-bg: #ecfdf5;
  --success-fg: #059669;
  --success-border: #a7f3d0;
  --success-ring: rgba(5, 150, 105, 0.18);

  /* Status — Warning */
  --warning-bg: #fffbeb;
  --warning-fg: #b45309;
  --warning-border: #fde68a;

  /* Status — Queue */
  --queue-bg: #eff6ff;
  --queue-fg: #0369a1;
  --queue-border: #bfdbfe;

  /* Status — Error */
  --error-bg: #fef2f2;
  --error-fg: #dc2626;
  --error-border: #fecaca;
  --error-ring: rgba(220, 38, 38, 0.18);

  /* Status — Purple */
  --purple-bg: #faf5ff;
  --purple-fg: #7e22ce;
  --purple-border: #e9d5ff;

  /* Status — Info */
  --info-bg: #eff6ff;
  --info-fg: #1d4ed8;
  --info-border: #bfdbfe;
  --info-ring: rgba(29, 78, 216, 0.18);

  /* Hero banner fade-to-bg (matches --bg-deep #fafafa) */
  --hero-fade-rgb: 250, 250, 250;
}

html, body { background: var(--bg-deep); color: var(--text-heading); }

/* ============== RESET ============== */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-heading);
  font-size: 14px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; border: none; outline: none; background: none; color: inherit; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ============== APP LAYOUT ============== */
.app {
  display: flex;
  height: 100vh;
  width: 100%;
  background: var(--bg-deep);
  overflow: hidden;
}

/* ============== SIDEBAR ============== */
.sidebar {
  position: sticky;
  top: 0;
  width: 256px;
  height: 100vh;
  max-height: 100vh;
  padding: 24px;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 3;
  transition: width 0.2s ease, padding 0.2s ease;
  overflow-y: auto;
}
.sidebar-inner { display: flex; flex-direction: column; gap: 40px; }

/* Logo row (logo on left, collapse button on right) */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 6px;
  height: 29px;
}
.logo-mark { width: 30px; height: 30px; }
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
  content: url('logo-owle.svg');
}
:root[data-theme="light"] .logo-img {
  content: url('logo-owle-light.svg');
}

/* Mobile-only logo in topbar (hidden on desktop) */
.topbar-logo { display: none; }

/* Mobile-only nav group inside sidebar drawer */
.nav-group.mobile-only { display: none; }
@media (max-width: 900px) {
  .nav-group.mobile-only { display: flex; }
}
.nav-item-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.nav-item-danger { color: var(--error-fg) !important; }
.nav-item-danger .icon { color: var(--error-fg) !important; }
.nav-item-danger:hover { background: var(--error-bg) !important; }
.topbar-logo .logo-img-sm {
  height: 26px;
  width: auto;
  display: block;
  content: url('logo-owle.svg');
}
:root[data-theme="light"] .topbar-logo .logo-img-sm {
  content: url('logo-owle-light.svg');
}

/* Collapse button (lives in sidebar, top-right of logo row) */
.sidebar-collapse {
  margin-left: auto;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-quaternary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidebar-collapse:hover {
  background: var(--bg-elevated);
  color: var(--text-heading);
  border-color: var(--border-strong);
}
.sidebar-collapse svg { width: 14px; height: 14px; transition: transform 0.2s; }
.sidebar.collapsed .sidebar-collapse svg { transform: rotate(180deg); }

/* Collapsed state */
.sidebar.collapsed { width: 88px; padding: 24px 16px; }
.sidebar.collapsed .logo {
  padding-left: 0;
  justify-content: center;
  gap: 0;
  flex-direction: column;
  height: auto;
}
.sidebar.collapsed .sidebar-collapse {
  margin-left: 0;
  margin-top: 12px;
}
.sidebar.collapsed .logo-img {
  height: 28px;
  width: 28px;
  object-fit: cover;
  object-position: left center;
}
.sidebar.collapsed .nav-section { display: none; }
.sidebar.collapsed .nav-group { padding-top: 12px; gap: 6px; }
.sidebar.collapsed .nav-item {
  width: 56px;
  height: 56px;
  padding: 0;
  justify-content: center;
  gap: 0;
  border-radius: 16px;
  margin: 0 auto;
}
.sidebar.collapsed .nav-item span { display: none; }
.sidebar.collapsed .gpu-widget { display: none; }
.sidebar.collapsed .sidebar-inner { gap: 28px; }

/* Nav */
.nav { display: flex; flex-direction: column; gap: 8px; }
.nav-group { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.nav-group:first-child { padding-top: 0; }
.nav-section {
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 1px;
  color: var(--section-label);
  text-transform: uppercase;
  padding: 0 16px 4px 16px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 208px;
  height: 40px;
  border-radius: 100px;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.03); }
.nav-item.active {
  background: var(--primary-muted-bg);
  color: var(--text-heading);
  font-weight: 500;
}
.nav-item.active .icon { color: var(--primary); }
.nav-item .icon { width: 24px; height: 24px; transition: color 0.15s; }

/* GPU Widget */
/* Theme toggle — icon button in topbar (matches notifications bell style) */
.theme-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-icon-btn:hover { background: var(--bg-elevated); color: var(--text-heading); }
.theme-icon-btn svg { width: 16px; height: 16px; }
/* Show sun in dark mode, moon in light */
.theme-icon-btn .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-btn .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-btn .theme-icon-moon { display: block; }

.gpu-widget {
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.gpu-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gpu-widget-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 15px;
  color: var(--text-heading);
  text-transform: uppercase;
}
.gpu-widget-pct {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-heading);
}
.gpu-progress {
  height: 4px;
  width: 100%;
  background: var(--bg-hover);
  border-radius: 9999px;
  overflow: hidden;
}
.gpu-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
}
.gpu-widget-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
}
.gpu-widget-mins { display: flex; align-items: baseline; gap: 4px; }
.gpu-widget-mins-num {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--text-heading);
}
.gpu-widget-mins-total {
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  color: var(--text-tertiary);
}
.gpu-widget-upgrade {
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  color: var(--primary);
}

/* ============== MAIN ============== */
.main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  position: relative;
}

/* ============== TOP BAR ============== */
.topbar {
  position: sticky;
  top: 0;
  height: 64px;
  padding: 16px 20px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }

/* Workspace breadcrumb — tenant selector + page title combined */
.topbar-crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-crumb-sep {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-crumb-sep svg { width: 16px; height: 16px; opacity: 0.6; }
.topbar-crumb .topbar-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Standalone topbar-title (no crumb wrapper) keeps the larger size */
.topbar-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-heading);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  background: var(--bg-base);
  border-radius: 9999px;
  width: 320px;
  height: 36px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.search:focus-within { border-color: var(--primary); }
.search-icon { width: 14px; height: 14px; color: var(--text-quaternary); flex-shrink: 0; }
.search input {
  flex: 1;
  font-size: 13px;
  color: var(--text-heading);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}
.search input::placeholder { color: var(--text-quaternary); }
.search-submit {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--text-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.15s;
  border: none;
}
.search-submit:hover { filter: brightness(1.1); }
.search-submit svg { width: 12px; height: 12px; }

/* Tenant (organization) selector */
.tenant-wrap { position: relative; flex-shrink: 0; }
.tenant-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 3px 12px 3px 4px;
  border-radius: 9999px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-heading);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-family: inherit;
}
.tenant-trigger:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.tenant-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #7c3aed;
}
.tenant-avatar.is-nova { background: #f59e0b; }
.tenant-avatar.is-pulse { background: #10b981; }
.tenant-avatar.is-orbit { background: #ec4899; }
.tenant-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}
.tenant-chev {
  width: 12px;
  height: 12px;
  color: var(--text-quaternary);
  transition: transform 0.18s;
  flex-shrink: 0;
}
.tenant-wrap.open .tenant-chev { transform: rotate(180deg); }

.tenant-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.tenant-wrap.open .tenant-menu { display: flex; }
.tenant-menu-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px 6px;
}
.tenant-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
  color: var(--text-heading);
  background: transparent;
  border: none;
  font-family: inherit;
  width: 100%;
}
.tenant-item:hover { background: var(--bg-elevated); }
.tenant-item .tenant-avatar { width: 32px; height: 32px; font-size: 13px; }
.tenant-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tenant-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}
.tenant-item-meta {
  font-size: 11px;
  color: var(--text-quaternary);
  line-height: 1.2;
}
.tenant-item .tenant-check {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
  display: none;
}
.tenant-item.is-current .tenant-check { display: block; }
.tenant-item.is-action {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 10px 12px;
}
.tenant-item.is-action svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.tenant-item.is-action:hover { color: var(--text-heading); }
.tenant-item.is-action:hover svg { color: var(--text-heading); }
.tenant-divider {
  height: 1px;
  background: var(--border);
  margin: 4px -2px;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.1); }
.btn-primary { background: var(--primary); color: var(--text-on-primary); }
.btn-dark {
  background: var(--primary);
  color: var(--text-on-primary);
  height: 36px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 12px;
}

/* Back button (used on detail pages, sits before breadcrumb) */
.back-btn {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
}
.back-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-heading);
}
.back-btn svg { width: 16px; height: 16px; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
}
.icon-btn svg { width: 16px; height: 20px; }

/* New Job dropdown */
.new-job-wrap { position: relative; }
.new-job-trigger {
  gap: 6px;
}
.new-job-trigger .chev {
  width: 14px; height: 14px;
  transition: transform 0.18s;
}
.new-job-wrap.open .new-job-trigger .chev { transform: rotate(180deg); }

.new-job-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.new-job-wrap.open .new-job-menu { display: flex; }

.new-job-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.new-job-item:hover {
  background: var(--bg-elevated);
  color: var(--text-heading);
}
.new-job-item-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}
.new-job-item:hover .new-job-item-icon {
  background: var(--primary-subtle);
  color: var(--primary);
}
.new-job-item-icon svg { width: 16px; height: 16px; }
.new-job-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.new-job-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.2;
}
.new-job-item-sub {
  font-size: 12px;
  color: var(--text-quaternary);
  line-height: 1.2;
}

/* Avatar */
.avatar {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: #34d399;
  border: 1px solid rgba(73,72,71,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #064e3b;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  outline: none;
}
.avatar:focus-visible { box-shadow: 0 0 0 2px var(--primary-ring); }

/* Profile dropdown */
.profile-wrap { position: relative; }

/* Profile trigger as a tenant pill (combined workspace + profile entry point) */
.profile-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 4px 14px 4px 4px;
  border-radius: 9999px;
  background: var(--bg-base);
  border: none;
  color: var(--text-heading);
  cursor: pointer;
  transition: background 0.12s;
  font-family: inherit;
}
.profile-trigger-pill:hover {
  background: var(--bg-elevated);
}
.profile-wrap.open .profile-trigger-pill .tenant-chev { transform: rotate(180deg); }

/* Dual-avatar stack: large user avatar with tenant badge bottom-right */
.trigger-avatars {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.trigger-avatar-user {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
}
.trigger-avatar-tenant {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--bg-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: #7c3aed;
}
.profile-trigger-pill:hover .trigger-avatar-tenant { border-color: var(--bg-elevated); }
.trigger-avatar-tenant.is-nova { background: #f59e0b; }
.trigger-avatar-tenant.is-pulse { background: #10b981; }
.trigger-avatar-tenant.is-orbit { background: #ec4899; }

/* Two-row label: user name on top, organization below */
.trigger-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}
.trigger-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trigger-text .tenant-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
  line-height: 1.2;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 320px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* User header inside profile menu */
.profile-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
}
.profile-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-user-email {
  font-size: 11px;
  color: var(--text-quaternary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section label inside profile menu (mirrors tenant-menu-label) */
.profile-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px 6px;
}
.profile-wrap.open .profile-menu { display: flex; }
.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.profile-item:hover {
  background: var(--bg-elevated);
  color: var(--text-heading);
}
.profile-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-quaternary); }
.profile-item:hover svg { color: var(--text-heading); }
.profile-item.is-danger { color: var(--error-fg); }
.profile-item.is-danger svg { color: var(--error-fg); }
.profile-item.is-danger:hover { background: var(--error-bg); color: var(--error-fg); }
.profile-item.is-danger:hover svg { color: var(--error-fg); }
.profile-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 2px;
}

/* ============== BODY ============== */
.body {
  flex: 1;
  padding: 16px 32px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top-left-radius: 30px;
  overflow: visible;
  min-width: 0;
}

/* ============== CARDS ============== */
.card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 17px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-heading);
  margin: 0;
}

/* ============== TOP ROW ============== */
.top-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 280px;
  align-items: stretch;
}
.top-row > .chart-card { grid-column: span 2; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
.stat-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 136px;
}
a.stat-card-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
a.stat-card-link:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}
a.stat-card-link:hover .stat-arrow {
  color: var(--text-heading);
  transform: translateX(2px);
}
.stat-arrow {
  width: 18px; height: 18px;
  color: var(--text-quaternary);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.stat-icon-wrap .icon { width: 16px; height: 16px; }
.stat-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-quaternary);
}
.stat-label-wrap { display: flex; flex-direction: column; gap: 2px; }
.stat-sub-label {
  font-size: 10px;
  color: var(--text-muted);
}
.stat-body { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.stat-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-heading);
  letter-spacing: -0.3px;
}
.stat-delta {
  font-size: 12px;
  font-weight: 400;
  color: var(--success-fg);
}
.stat-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-quaternary);
  line-height: 1;
}
.stat-link {
  font-size: 11px;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

/* Flags in stat card */
.stat-body-flags {
  flex-direction: row;
  align-items: center;
  padding-top: 4px;
  display: flex;
}
.stat-body-flags .flag {
  width: 32px; height: 32px;
  margin-left: -8px;
  border: 2px solid var(--bg-base);
  box-shadow: none;
}
.stat-body-flags .flag:first-child { margin-left: 0; }
.flag {
  width: 24px; height: 24px;
  border-radius: 100px;
  border: 1px solid #fafafa;
  overflow: hidden;
  flex-shrink: 0;
  background: #fafafa;
}
.flag svg { width: 100%; height: 100%; display: block; }

/* Drop zone */
.drop-zone {
  flex: 1;
  min-width: 0;
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-base);
}
.drop-icon {
  width: 56px; height: 56px;
  border-radius: 9999px;
  background: rgba(155, 108, 245,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.drop-icon svg { width: 28px; height: 20px; }
.drop-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 8px 0;
  line-height: 1;
}
.drop-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  max-width: 400px;
  line-height: 1.4;
}

/* ============== TABLE — borderless wrapper, each row in its own card ============== */
.table-card {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin: 16px 0;
}
.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px;
  margin-bottom: 0;
}
.link-primary {
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
}

.table { display: flex; flex-direction: column; gap: 8px; }
.table-row {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(120px, 1fr) 80px minmax(90px, 1fr) minmax(90px, 1fr) minmax(110px, 130px) minmax(100px, 120px);
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.table-row:not(.table-row-head):hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.table-row-head {
  cursor: default;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 16px 8px;
}
.table-row-head:hover { background: transparent; }
.table-row-head .col {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.col { font-size: 14px; color: var(--text-tertiary); line-height: 1; }
.col-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
}
.thumb {
  width: 74px; height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-1 { background-image: url('https://picsum.photos/seed/marketing-keynote/296/208'); }
.thumb-2 { background-image: url('https://picsum.photos/seed/podcast-studio/296/208'); }
.thumb-3 { background-image: url('https://picsum.photos/seed/interview-speaker/296/208'); }
.thumb-4 { background-image: url('https://picsum.photos/seed/conference-stage/296/208'); }
.thumb-5 { background-image: url('https://picsum.photos/seed/tutorial-screen/296/208'); }
.thumb-doc {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-doc::after { display: none; }
.thumb-doc svg { width: 32px; height: 32px; color: var(--text-muted); opacity: 0.6; }
.thumb-doc .thumb-doc-ext { display: none; }

/* File name + type tag wrapper */
.file-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-type-tag { font-size: 10px; color: var(--text-muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.file-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Lang pair */
.lang-pair { display: flex; align-items: center; gap: 4px; }
.flag-sm {
  width: 18px; height: 18px;
  border-radius: 100px;
  border: 1px solid #fafafa;
  overflow: hidden;
  flex-shrink: 0;
  background: #fafafa;
}
.flag-sm svg { width: 100%; height: 100%; display: block; }
.lang-arrow { width: 12px; height: 12px; flex-shrink: 0; }

/* ============== BADGES — DS Badge component (node 27:27) ============== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  border: none;
}
.badge svg { width: 11px; height: 11px; }
.badge-primary { background: var(--primary-ring); color: var(--primary-light); }
.badge-success { background: var(--success-bg); color: var(--success-fg); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge-queue   { background: var(--queue-bg);   color: var(--queue-fg); }
.badge-error   { background: var(--error-bg);   color: var(--error-fg); }
.badge-purple  { background: var(--purple-bg);  color: var(--purple-fg); }
.badge-info    { background: var(--info-bg);    color: var(--info-fg); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-tertiary); }

/* Actions */
.col-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.progress-ring {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.progress-ring svg { display: block; }
.ring-pct {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-heading);
}
.dots-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-quaternary);
  border-radius: 9999px;
}
.dots-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-tertiary); }
.dots-btn svg { width: 18px; height: 18px; }

/* ============== BOTTOM ROW ============== */
.bottom-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
  min-height: 232px;
}
.chart-card {
  flex: 1;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chart-range {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.chart-range-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-quaternary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chart-range-btn:hover { color: var(--text-secondary); }
.chart-range-btn[aria-pressed="true"] {
  background: var(--bg-base);
  color: var(--text-heading);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.chart {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 8px 0 8px;
  min-height: 130px;
}
.bar {
  width: 8px;
  flex: 0 0 8px;
  min-width: 0;
  background: var(--bg-elevated);
  border-radius: 2px 2px 0 0;
  position: relative;
  overflow: hidden;
  align-self: flex-end;
}
.bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  border-radius: 0;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 16px 8px 0 8px;
  border-top: 1px solid var(--bg-elevated);
  margin-top: 10px;
}
.chart-axis span {
  width: 8px;
  flex: 0 0 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: 0.3px;
}

/* Tools card (replaces Activity) */
.tools-card {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
}
.tools-card .card-title { padding: 0 4px; flex-shrink: 0; }
.tools-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at bottom right, rgba(99, 130, 195, 0.22) 0%, rgba(99, 130, 195, 0.08) 35%, transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative;
}
.tool-item:hover {
  background:
    radial-gradient(circle at bottom right, rgba(99, 130, 195, 0.3) 0%, rgba(99, 130, 195, 0.12) 35%, transparent 70%),
    var(--bg-hover);
  border-color: var(--border-strong);
}
:root[data-theme="light"] .tool-item {
  background:
    radial-gradient(circle at bottom right, rgba(99, 130, 195, 0.18) 0%, rgba(99, 130, 195, 0.05) 35%, transparent 70%),
    var(--bg-elevated);
}
:root[data-theme="light"] .tool-item:hover {
  background:
    radial-gradient(circle at bottom right, rgba(99, 130, 195, 0.24) 0%, rgba(99, 130, 195, 0.08) 35%, transparent 70%),
    var(--bg-hover);
}
.tool-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.18s;
}
.tool-item:hover .tool-item-img {
  transform: translateY(-2px) scale(1.04);
}
.tool-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tool-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}
.tool-item-sub {
  font-size: 12px;
  color: var(--text-quaternary);
  line-height: 1.4;
}
.tool-item-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 16px; height: 16px;
  color: var(--text-quaternary);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}
.tool-item:hover .tool-item-arrow {
  color: var(--text-heading);
  transform: translateX(2px);
}

/* Activity */
.activity-card {
  width: 42%;
  max-width: 614px;
  min-width: 400px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-item {
  display: grid;
  grid-template-columns: 52px 8px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 6px 0;
}
.activity-time {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-quaternary);
  line-height: 1.3;
  padding-top: 2px;
}
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.dot-active {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.dot-success { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.dot-error   { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.18); }
.activity-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.activity-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.3;
}
.activity-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-quaternary);
  line-height: 1.3;
}

/* ============== FAB ============== */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25), 0 8px 10px -6px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 50;
  transition: transform 0.15s;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 20px; height: 20px; }

/* ============== SCROLL ============== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============== RESPONSIVE TWEAKS ============== */
@media (max-width: 1280px) {
  .table-row {
    grid-template-columns: minmax(220px, 1.6fr) minmax(100px, 1fr) 72px 86px 86px 110px 100px;
    gap: 8px;
  }
  .file-name { font-size: 14px; }
  .thumb { width: 60px; height: 44px; }
}
@media (max-width: 1100px) {
  .top-row {
    grid-template-columns: 1fr;
    height: auto;
  }
  .top-row > .chart-card { grid-column: auto; }
  .stats-grid { width: 100%; }
  .drop-zone { min-height: 220px; }
  .bottom-row { flex-direction: column; }
  .activity-card { width: 100%; max-width: none; }
  .tools-card { width: 100%; max-width: none; }
  .tools-list { grid-template-columns: 1fr; }
}

/* ============== MOBILE NAV CHROME ============== */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sidebar-backdrop.open {
  display: block;
  opacity: 1;
}
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-tertiary);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-btn svg { width: 16px; height: 16px; }
.sidebar-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  align-items: center;
  justify-content: center;
}
.sidebar-close svg { width: 14px; height: 14px; }

/* ============== TABLET (≤900px) ============== */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    background: var(--bg-base);
    border-right: 1px solid var(--border);
    overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
  .sidebar-collapse { display: none; }

  .main { width: 100%; }
  .topbar { padding: 12px 16px; gap: 8px; }
  .topbar-title { font-size: 18px; }
  .search { width: 200px; }
  .tenant-name { max-width: 100px; }

  .body { padding: 12px 16px 80px 16px; }
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 6px;
}
.filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.filters-btn:hover { background: var(--bg-elevated); }
.filters-btn.has-filters { border-color: var(--primary); }
.filters-btn-icon { width: 14px; height: 14px; color: var(--text-tertiary); }
.filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
/* backdrop */
.filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
}
.filters-backdrop.is-open { display: block; }
/* Drawer */
.filters-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: var(--bg-deep);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
}
.filters-drawer.is-open { transform: translateX(0); }
.filters-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filters-drawer-title { font-size: 16px; font-weight:700; color:var(--text-heading); margin:0; }
.filters-drawer-head-right { display:flex; align-items:center; gap:12px; }
.filters-reset { font-size:12px; font-weight:500; color:var(--text-quaternary); background:transparent; border:none; cursor:pointer; padding:4px 0; transition:color 0.15s; }
.filters-reset:hover { color:var(--text-heading); }
.filters-drawer-close { width:32px; height:32px; border-radius:8px; background:var(--bg-elevated); border:1px solid var(--border-strong); color:var(--text-tertiary); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background 0.15s,color 0.15s; }
.filters-drawer-close:hover { background:var(--bg-hover); color:var(--text-heading); }
.filters-drawer-close svg { width:14px; height:14px; }
.filters-drawer-body { flex:1; overflow-y:auto; }
.filters-drawer-foot { padding:16px 24px; border-top:1px solid var(--border); flex-shrink:0; }
.filters-apply { width:100%; height:42px; border-radius:12px; background:var(--primary); color:#fff; font-size:14px; font-weight:600; border:none; cursor:pointer; transition:filter 0.15s; }
.filters-apply:hover { filter:brightness(1.1); }
/* Filter sections */
.fd-section { padding:20px 24px; border-bottom:1px solid var(--border); }
.fd-section-title { font-size:11px; font-weight:700; color:var(--text-quaternary); text-transform:uppercase; letter-spacing:0.7px; margin-bottom:10px; }
.fd-options { display:flex; flex-direction:column; gap:2px; }
.fd-option { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; cursor:pointer; font-size: 14px; color:var(--text-tertiary); transition:background 0.13s,color 0.13s; }
.fd-option:hover { background:var(--bg-elevated); color:var(--text-heading); }
.fd-option.active { color:var(--text-heading); }
.fd-radio { width:16px; height:16px; border-radius:50%; border:2px solid var(--border-strong); flex-shrink:0; transition:border-color 0.13s; display:flex; align-items:center; justify-content:center; }
.fd-option.active .fd-radio { border-color:var(--primary); background:var(--primary); }
.fd-option.active .fd-radio::after { content:''; width:6px; height:6px; border-radius:50%; background:#fff; }
.fd-option-count { margin-left:auto; font-size:11px; color:var(--text-muted); font-weight:500; }
/* Language picker inside filter drawer */
.fd-section-lang { padding-bottom: 12px; }
.fdl-search-wrap { position:relative; margin-bottom:10px; }
.fdl-search-wrap svg { position:absolute; left:11px; top:50%; transform:translateY(-50%); width:13px; height:13px; color:var(--text-quaternary); pointer-events:none; }
.fdl-search { width:100%; height:36px; padding:0 12px 0 32px; border-radius:9px; background:var(--bg-deep); border:1px solid var(--border); font-size: 14px; color:var(--text-heading); transition:border-color 0.15s; }
.fdl-search::placeholder { color:var(--text-quaternary); }
.fdl-search:focus { outline:none; border-color:var(--primary); }
.fdl-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; max-height:220px; overflow-y:auto; scrollbar-width:thin; }
.fdl-grid::-webkit-scrollbar { width:4px; }
.fdl-grid::-webkit-scrollbar-track { background:transparent; }
.fdl-grid::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:9999px; }
.fdl-item { display:flex; align-items:center; gap:7px; padding:7px 8px; border-radius:10px; background:var(--bg-deep); border:1.5px solid var(--border); cursor:pointer; transition:border-color 0.13s,background 0.13s; position:relative; min-width:0; user-select:none; }
.fdl-item:hover { border-color:var(--border-strong); }
.fdl-item.active { border-color:var(--primary); background:var(--primary-subtle); }
.fdl-flag { width:22px; height:22px; border-radius:50%; background:var(--bg-elevated); border:1px solid rgba(255,255,255,0.07); display:inline-flex; align-items:center; justify-content:center; font-size:0; line-height:1; flex-shrink:0; overflow:hidden; padding:0; }
.fdl-flag svg { width:100%; height:100%; display:block; }
.fdl-name { flex:1; min-width:0; font-size:12px; font-weight:500; color:var(--text-heading); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fdl-check { position:absolute; top:4px; right:4px; width:12px; height:12px; border-radius:50%; background:var(--primary); display:none; align-items:center; justify-content:center; }
.fdl-item.active .fdl-check { display:flex; }
.fdl-item.active .fdl-check::after { content:''; width:3px; height:5px; border:1.5px solid #fff; border-top:none; border-left:none; transform:rotate(45deg) translateY(-1px); display:block; }
.fdl-empty { grid-column:1/-1; padding:20px 8px; text-align:center; font-size:12px; color:var(--text-quaternary); }
/* hide old filter-row and filter-pill */
.filter-section { display: none; }
.filter-row { display: none !important; }
.filter-pill { display: none; }

/* ============== MOBILE (≤640px) ============== */
@media (max-width: 640px) {
  body { font-size: 14px; }

  /* Topbar: ONLY logo (left) + hamburger (right) — everything else in drawer */
  .topbar {
    height: auto;
    flex-wrap: nowrap;
    padding: 10px 12px;
    gap: 8px;
    row-gap: 0;
    align-items: center;
    justify-content: space-between;
  }
  .topbar-left {
    flex: 1;
    min-width: 0;
    gap: 8px;
    align-items: center;
    display: flex;
  }
  .topbar-title { display: none; }
  .topbar-left .ud-breadcrumb,
  .topbar-left .jd-breadcrumb { display: none; }
  .search { display: none; }
  .tenant-wrap { display: none; }

  /* Show mobile logo, push hamburger to far right of topbar-left */
  .topbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    height: 30px;
    order: 1;
  }
  .topbar-logo img {
    height: 26px;
    width: auto;
    display: block;
  }
  .topbar-left .back-btn {
    width: 32px;
    height: 32px;
    order: 2;
  }
  .topbar-left .mobile-menu-btn {
    order: 99;
    margin-left: auto;
  }

  /* Hide right-side icons (theme, bell, profile) — moved to drawer */
  .topbar-right > .theme-icon-btn,
  .topbar-right > .icon-btn,
  .topbar-right > .profile-wrap {
    display: none !important;
  }
  /* Keep .topbar-right rendered so .new-job-wrap (FAB) inside still works.
     Strip its layout so it doesn't take topbar space. */
  .topbar-right {
    display: contents;
  }

  /* Keep hamburger visible */
  .mobile-menu-btn { display: inline-flex; }

  .btn-primary {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 14px; height: 18px; }

  /* === FAB: New Job becomes floating action button (Overview/Jobs only) === */
  .new-job-wrap {
    position: fixed !important;
    bottom: 24px;
    right: 16px;
    z-index: 60;
  }
  .new-job-trigger {
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    box-shadow: 0 8px 24px rgba(155, 108, 245, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .new-job-trigger > span,
  .new-job-trigger .chev { display: none !important; }
  .new-job-trigger::before {
    content: '';
    width: 24px; height: 24px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
  }
  .new-job-menu {
    bottom: calc(100% + 12px) !important;
    top: auto !important;
    right: 0 !important;
    min-width: 260px;
  }
  /* Make existing FAB (.fab) hide on Overview/Jobs to avoid conflict */
  .new-job-wrap ~ .fab,
  body:has(.new-job-wrap) .fab { display: none; }

  .body {
    padding: 12px 12px 96px 12px;
    border-top-left-radius: 0;
    gap: 12px;
  }

  /* Stats: 2-up still, tighter */
  .stats-grid {
    gap: 8px;
  }
  .stat-card {
    padding: 14px;
    min-height: 112px;
    border-radius: 20px;
  }
  .stat-icon-wrap { width: 32px; height: 32px; }
  .stat-icon-wrap .icon { width: 16px; height: 16px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 11px; }

  /* Drop zone */
  .drop-zone {
    padding: 20px 16px;
    border-radius: 20px;
    min-height: 200px;
  }
  .drop-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .drop-icon svg { width: 22px; height: 16px; }
  .drop-title { font-size: 16px; }
  .drop-sub { font-size: 14px; margin-bottom: 16px; }

  /* Cards */
  .card { padding: 14px; border-radius: 20px; }
  .card-title { font-size: 16px; }

  /* Table → stacked cards */
  .table-row-head { display: none !important; }
  .table-card .table-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "file    actions"
      "langs   actions"
      "meta    badge";
    column-gap: 12px;
    row-gap: 8px;
    padding: 14px 14px;
    align-items: center;
  }
  .table-card .table-row .col {
    font-size: 14px;
    line-height: 1.2;
  }
  .table-card .table-row > .col-file {
    grid-area: file;
    padding-right: 0;
    min-width: 0;
  }
  .table-card .table-row > .col-file .thumb {
    width: 48px;
    height: 36px;
    border-radius: 10px;
  }
  .table-card .table-row > .col-file .file-name {
    font-size: 14px;
  }
  .table-card .table-row > .col-actions {
    grid-area: actions;
    justify-self: end;
    align-self: start;
  }
  .progress-ring { width: 36px; height: 36px; }
  .progress-ring svg { width: 36px; height: 36px; }
  .ring-pct { font-size: 10px; }

  /* Wrap meta cells (cols 2-6) into a flex strip via display:contents trick won't work,
     so position each cell explicitly. */

  /* index.html (Overview) — cols: file/langs/dur/size/id/badge/actions */
  .table-card:not(.jobs-table-card) .table-row > .col:nth-child(2) {
    grid-area: langs;
    justify-self: start;
    display: inline-flex;
    align-items: center;
  }
  /* Pack duration + size + id into the meta area as a single flex strip via
     a wrapping pseudo-strip — instead, give each its own sub-position with a
     custom inline grid */
  .table-card:not(.jobs-table-card) .table-row > .col:nth-child(3),
  .table-card:not(.jobs-table-card) .table-row > .col:nth-child(4),
  .table-card:not(.jobs-table-card) .table-row > .col:nth-child(5) {
    grid-area: meta;
    color: var(--text-quaternary);
    font-size: 12px;
    align-items: center;
    white-space: nowrap;
    display: none; /* Hide secondary metadata on mobile to keep it clean */
  }
  /* Show only duration (3rd col) on mobile */
  .table-card:not(.jobs-table-card) .table-row > .col:nth-child(3) {
    display: inline-flex;
    justify-self: start;
  }
  .table-card:not(.jobs-table-card) .table-row > .col:nth-child(6) {
    grid-area: badge;
    justify-self: end;
    align-self: center;
  }

  /* Jobs page — cols: file/langs/dur/size/id/badge/actions */
  .jobs-body { padding: 12px 12px 96px 12px; }
  .jobs-table .table-row {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "file    actions"
      "langs   actions"
      "meta    badge" !important;
    padding: 14px 14px !important;
    gap: 8px !important;
  }
  .jobs-table .table-row > .col:nth-child(1) { grid-area: file; }
  .jobs-table .table-row > .col:nth-child(2) {
    grid-area: langs;
    justify-self: start;
    display: inline-flex;
    align-items: center;
  }
  .jobs-table .table-row > .col:nth-child(3) {
    grid-area: meta;
    color: var(--text-quaternary);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    white-space: nowrap;
  }
  .jobs-table .table-row > .col:nth-child(4),
  .jobs-table .table-row > .col:nth-child(5) {
    display: none;
  }
  .jobs-table .table-row > .col:nth-child(6) {
    grid-area: badge;
    justify-self: end;
    align-self: center;
  }
  .jobs-table .table-row > .col:nth-child(7) { grid-area: actions; justify-self: end; }
  /* Mobile: error row matches the regular row layout (same padding/radius/border) */
  .jobs-table .table-row.is-error {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 14px 14px !important;
    background: var(--bg-base) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }
  .jobs-table .table-row.is-error .retry-btn {
    width: 28px;
    height: 28px;
  }
  .jobs-table .table-row.is-error .retry-btn svg { width: 14px; height: 14px; }

  /* Tabs and filters: horizontal scroll */
  .tabs {
    align-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }

  /* Mobile: collapse filter pills behind a single Filters button */
  .filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 100px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
  }
  .filters-btn .filters-btn-icon {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
  }
  .filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
  }

  .filter-row {
    display: none;
  }
  .filter-row.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    background: var(--bg-base);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-top: 1px solid var(--border);
    z-index: 60;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    animation: filter-sheet-up 0.22s ease;
  }
  @keyframes filter-sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .filter-row.is-open .filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  .filter-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1;
  }
  .filter-modal-close {
    display: flex;
    width: 32px;
    height: 32px;
    border-radius: 100px;
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    align-items: center;
    justify-content: center;
  }
  .filter-modal-close svg { width: 14px; height: 14px; }
  .filter-row.is-open .filter-pill {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    justify-content: flex-start;
    flex-shrink: 0;
  }
  .filter-row.is-open .filter-pill .chev {
    margin-left: auto;
  }

  /* Chart tighter */
  .chart-card { padding: 14px; gap: 16px; }
  .chart-bars { gap: 12px; }

  /* Activity */
  .activity-item {
    grid-template-columns: 46px 8px 1fr;
    gap: 10px;
  }
  .activity-title { font-size: 14px; }
  .activity-sub { font-size: 11px; }

  /* Pagination: simplify */
  .pagination {
    padding: 16px 0 4px;
    gap: 10px;
  }
  .pagination-info { font-size: 12px; }
  .pagination-right { gap: 10px; }
  .page-list { gap: 2px; }
  .page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 12px;
  }
  /* Hide middle pages on small screens, keep active + arrows + neighbors */
  .page-btn:nth-child(n+5):not(.arrow) { display: none; }
  .rows-select span { display: none; }

  /* FAB */
  .fab {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ============== SMALL PHONES (≤380px) ============== */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .stat-card { min-height: 92px; }
  .search { display: none; }
}

/* ============== JOBS PAGE ============== */
.jobs-body {
  flex: 1;
  padding: 8px 32px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top-left-radius: 30px;
  overflow: visible;
  min-width: 0;
}

/* Tabs */
.tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-base);
  border-radius: 100px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-heading); }
.tab.active {
  background: var(--bg-elevated);
  color: var(--text-heading);
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--bg-hover);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.tab.active .tab-count {
  background: var(--primary);
  color: #fff;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-tertiary);
  transition: border-color 0.15s, background 0.15s;
}
.filter-pill:hover { border-color: var(--border-strong); }
.filter-pill .filter-label {
  color: var(--text-quaternary);
  font-weight: 400;
}
.filter-pill .filter-value {
  color: var(--text-heading);
  font-weight: 500;
}
.filter-pill .chev {
  width: 14px; height: 14px;
  color: var(--text-quaternary);
  flex-shrink: 0;
}

/* Jobs table card — tweaks from the dashboard table */
.jobs-table-card {
  padding: 0 17px;
}
.jobs-table .table-row {
  /* inherits grid-template-columns from .table-row — same columns as Overview */
  padding: 14px 16px;
}
.jobs-table .table-row-head {
  padding: 18px 16px 14px;
}
/* Error rows look normal by default; turn red on hover */
.jobs-table .table-row.is-error {
  background: var(--bg-base);
  border-color: var(--border);
}
.jobs-table .table-row.is-error:hover {
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.5);
}

/* Retry button (visible only when hovering an error row) */
.retry-btn {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: var(--error-fg);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: filter 0.15s, opacity 0.15s;
  opacity: 0;
  pointer-events: none;
}
.jobs-table .table-row.is-error:hover .retry-btn {
  opacity: 1;
  pointer-events: auto;
}
.retry-btn:hover { filter: brightness(1.08); }
.retry-btn svg { width: 16px; height: 16px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px 4px;
  gap: 16px;
  flex-wrap: wrap;
}
.pagination-info {
  font-size: 14px;
  color: var(--text-quaternary);
}
.pagination-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rows-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-tertiary);
}
.rows-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 100px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 500;
}
.rows-select-btn .chev { width: 12px; height: 12px; color: var(--text-quaternary); }
.page-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: background 0.15s, color 0.15s;
}
.page-btn:hover { background: var(--bg-base); color: var(--text-heading); }
.page-btn.active { background: var(--primary); color: #fff; }
.page-btn.arrow { color: var(--text-quaternary); }
.page-btn.arrow svg { width: 14px; height: 14px; }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

@media (min-width: 641px) and (max-width: 1280px) {
  .jobs-table .table-row {
    /* inherits grid-template-columns from .table-row responsive rule — stays in sync */
    gap: 8px;
  }
}

