/* HaloWiFi Loopback — dashboard v3 (standalone; v2 unchanged) */

:root {
  --lb-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lb-bg: #f8fafc;
  --lb-surface: #ffffff;
  --lb-text: #0f172a;
  --lb-muted: #64748b;
  --lb-line: rgba(15, 23, 42, 0.08);
  /* Light sidebar (reference: corporate SaaS) */
  --lb-rail-bg: #f1f5f9;
  --lb-rail-bg2: #eef2f7;
  --lb-rail-text: #475569;
  --lb-rail-active-text: #0f172a;
  --lb-rail-icon-active-bg: #dbeafe;
  --lb-rail-icon-active-fg: #2563eb;
  --lb-blue: #3b82f6;
  --lb-purple: #8b5cf6;
  --lb-teal: #14b8a6;
  --lb-green: #22c55e;
  --lb-red: #ef4444;
  --lb-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --lb-shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.08);
  --lb-radius: 16px;
  --lb-radius-sm: 10px;
  --lb-card-r: 22px;
  --lb-card-r-inner: 16px;
  --lb-header-h: 64px;
  --lb-rail-w: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.dashboard-v3-root {
  height: 100%;
}

html.dashboard-v3-root body.lb-dashboard {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--lb-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--lb-text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(59, 130, 246, 0.06), transparent 55%),
    radial-gradient(900px 600px at 10% 100%, rgba(139, 92, 246, 0.04), transparent 50%),
    var(--lb-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

.lb-dashboard a {
  color: inherit;
  text-decoration: none;
}

/* —— Top header —— */
.lb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--lb-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lb-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 4px 24px rgba(15, 23, 42, 0.04);
}

.lb-header-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lb-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.lb-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.lb-brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--lb-text);
  letter-spacing: -0.02em;
}

.lb-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--lb-muted);
}

.lb-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.lb-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--lb-muted);
  pointer-events: none;
}

.lb-search {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  background: #f8fafc;
  font: inherit;
  color: var(--lb-text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.lb-search::placeholder {
  color: #94a3b8;
}

.lb-search:focus {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.lb-search:focus-visible {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.lb-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

.lb-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--lb-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-icon-btn:hover {
  background: #e2e8f0;
}

.lb-icon-btn:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

.lb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 4px;
  border-radius: 999px;
  cursor: default;
}

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lb-blue), #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--lb-text);
  padding-right: 8px;
}

@media (max-width: 720px) {
  .lb-brand-text,
  .lb-user-name {
    display: none;
  }

  .lb-search-wrap {
    max-width: none;
  }
}

/* Notifications (dropdown) */
.lb-notifications-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow: hidden;
  border-radius: var(--lb-radius);
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  box-shadow: var(--lb-shadow-lg);
  z-index: 50;
}

.lb-notifications-dropdown.show {
  display: flex;
  flex-direction: column;
}

.lb-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--lb-line);
}

.lb-notif-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.lb-notif-header button {
  border: 0;
  background: none;
  color: var(--lb-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 6px;
  margin: -4px -6px;
}

.lb-notif-header button:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

.lb-notif-list {
  overflow-y: auto;
  padding: 8px;
}

.lb-notif-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--lb-radius-sm);
  cursor: pointer;
}

.lb-notif-item:hover {
  background: #f8fafc;
}

.lb-notif-item.unread {
  background: rgba(59, 130, 246, 0.06);
}

.lb-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lb-muted);
}

.lb-notif-content h4 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.lb-notif-content p {
  margin: 0;
  font-size: 12px;
  color: var(--lb-muted);
  line-height: 1.35;
}

.lb-notif-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

/* —— Layout: rail + main —— */
.lb-layout {
  display: flex;
  min-height: calc(100vh - var(--lb-header-h));
  min-height: calc(100dvh - var(--lb-header-h));
}

/* Left rail: light gray (reference screenshot) */
.lb-rail {
  width: var(--lb-rail-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--lb-rail-bg) 0%, var(--lb-rail-bg2) 100%);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lb-sidebar-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 16px 14px 18px;
  gap: 8px;
}

.lb-nav-label {
  margin: 16px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lb-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--lb-rail-text);
  font-weight: 500;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.lb-nav-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--lb-rail-active-text);
}

.lb-nav-item:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

/* Square active icon (width = height) — blue tile, not full-width pill */
.lb-nav-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: inherit;
}

.lb-nav-item.is-active {
  color: var(--lb-rail-active-text);
  font-weight: 600;
}

.lb-nav-item.is-active .lb-nav-icon {
  aspect-ratio: 1;
  width: 40px;
  height: 40px;
  background: var(--lb-rail-icon-active-bg);
  color: var(--lb-rail-icon-active-fg);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.lb-nav-item:not(.is-active) .lb-nav-icon {
  background: transparent;
}

.lb-nav-item:not(.is-active):hover .lb-nav-icon {
  background: rgba(255, 255, 255, 0.65);
}

.lb-nav-text {
  flex: 1;
  min-width: 0;
}

.lb-help {
  flex-shrink: 0;
  margin: 8px 0 0;
  padding: 16px;
  border-radius: var(--lb-radius);
  background: var(--lb-surface);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lb-help p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lb-text);
}

.lb-help .lb-help-btn {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--lb-blue);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, filter 0.15s;
}

.lb-help .lb-help-btn:hover {
  filter: brightness(1.05);
}

.lb-help .lb-help-btn:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

/* Main column */
.lb-main {
  flex: 1;
  min-width: 0;
  padding: 28px 28px 40px;
  overflow-x: hidden;
  overflow-y: auto;
}

.lb-hero {
  margin-bottom: 24px;
}

.lb-welcome {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--lb-text);
}

.lb-welcome span {
  color: var(--lb-blue);
}

.lb-welcome-sub {
  margin: 0;
  font-size: 15px;
  color: var(--lb-muted);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Stat cards — mesh glow + glass icon */
.lb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .lb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .lb-stats {
    grid-template-columns: 1fr;
  }
}

.lb-stat {
  --stat-hue: 217;
  --stat-accent: #3b82f6;
  position: relative;
  min-height: 132px;
  padding: 20px 20px 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 1) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 50px -18px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lb-stat-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 100% -20%, hsla(var(--stat-hue), 90%, 56%, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse 70% 60% at -10% 110%, hsla(var(--stat-hue), 85%, 50%, 0.08) 0%, transparent 48%);
  pointer-events: none;
}

.lb-stat--blue {
  --stat-hue: 217;
  --stat-accent: #3b82f6;
}

.lb-stat--purple {
  --stat-hue: 262;
  --stat-accent: #8b5cf6;
}

.lb-stat--teal {
  --stat-hue: 173;
  --stat-accent: #0d9488;
}

.lb-stat--slate {
  --stat-hue: 215;
  --stat-accent: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .lb-stat {
    transition: none;
  }
}

@media (hover: hover) {
  .lb-stat:hover {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 1) inset,
      0 8px 16px rgba(15, 23, 42, 0.06),
      0 28px 64px -20px rgba(15, 23, 42, 0.14);
  }
}

.lb-stat-meta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lb-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.lb-stat-delta {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.lb-stat-delta.is-up {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.lb-stat-delta.is-down {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.lb-stat-main {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.lb-stat-value {
  font-size: clamp(30px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.lb-stat-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 4px 14px rgba(15, 23, 42, 0.07);
  color: var(--stat-accent);
}

/* Row: Activity chart + Performance (same row) */
.lb-row--chart-perf {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
  min-height: 0;
}

@media (max-width: 1024px) {
  .lb-row--chart-perf {
    grid-template-columns: 1fr;
  }
}

/* Activity chart */
.lb-chart-card {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lb-chart-card-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border-radius: var(--lb-card-r);
  padding: 22px 24px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95) inset,
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 18px 48px -14px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

@media (max-width: 1024px) {
  .lb-chart-card-inner {
    min-height: 320px;
  }
}

.lb-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 8px;
}

.lb-chart-intro {
  min-width: 0;
}

.lb-chart-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.lb-chart-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: -0.01em;
}

.lb-chart-ranges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.lb-range-btn {
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.lb-range-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
}

.lb-range-btn.is-active {
  color: #fff;
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.lb-range-btn:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

.lb-chart-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  margin: 8px -4px 0;
}

.lb-chart-canvas-wrap canvas {
  max-height: 100%;
}

.lb-row--chart-perf .lb-performance {
  margin: 0;
  min-height: 360px;
}

@media (max-width: 1024px) {
  .lb-row--chart-perf .lb-performance {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .lb-chart-ranges {
    width: 100%;
    justify-content: stretch;
  }

  .lb-range-btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 6px;
    font-size: 10px;
  }
}

/* Row: Priority Missions + secondary list */
.lb-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .lb-panels {
    grid-template-columns: 1fr;
  }
}

/* Recent updates feed */
.lb-feed .lb-card-head {
  margin-bottom: 16px;
}

.lb-feed-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lb-feed-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.lb-feed-item:first-child {
  padding-top: 0;
}

.lb-feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lb-feed-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.lb-feed-dot.is-amber {
  background: linear-gradient(145deg, #f59e0b, #d97706);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.lb-feed-dot.is-green {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.lb-feed-body {
  min-width: 0;
}

.lb-feed-text {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.lb-feed-text strong {
  font-weight: 700;
  color: #1e293b;
}

.lb-feed-time {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

/* Sleek surface cards — soft lift, hairline edge, no heavy borders */
.lb-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: var(--lb-card-r);
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 16px 48px -12px rgba(15, 23, 42, 0.08);
  padding: 24px 24px 22px;
  min-height: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .lb-card:not(.lb-performance):hover {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.95) inset,
      0 4px 8px rgba(15, 23, 42, 0.04),
      0 22px 56px -14px rgba(15, 23, 42, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-card {
    transition: none;
  }
}

.lb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.lb-performance .lb-card-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.lb-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.lb-card-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lb-blue);
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.lb-card-link:hover {
  background: rgba(59, 130, 246, 0.14);
  text-decoration: none;
}

.lb-card-link:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

/* Priority missions — stacked inner tiles */
.lb-missions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 0;
}

.lb-missions > .lb-card-head {
  margin-bottom: 0;
}

.lb-mission {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 14px;
  padding: 16px 18px;
  margin: 0;
  border-radius: var(--lb-card-r-inner);
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .lb-mission:hover {
    border-color: rgba(59, 130, 246, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 4px 16px -4px rgba(15, 23, 42, 0.06);
  }
}

.lb-mission-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  color: var(--lb-text);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.lb-mission-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lb-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #64748b;
}

.lb-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  justify-self: end;
  align-self: start;
}

.lb-status.is-progress {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.lb-status.is-review {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.lb-status.is-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.lb-status.is-done {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.lb-mission-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.lb-mission-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.lb-mission-pct {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
  color: var(--lb-muted);
  text-align: right;
}

/* Performance — glassy gradient panel */
.lb-performance {
  padding: 24px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--lb-card-r);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    radial-gradient(80% 60% at 0% 100%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
    linear-gradient(155deg, #1d4ed8 0%, #5b21b6 48%, #4c1d95 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 56px -12px rgba(30, 64, 175, 0.45),
    0 12px 32px -8px rgba(91, 33, 182, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lb-performance .lb-card-head {
  margin-bottom: 0;
  padding-bottom: 16px;
  margin-bottom: 4px;
}

.lb-performance .lb-card-title {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-perf-hero {
  margin: 8px 0 20px;
}

.lb-perf-label {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 4px;
}

.lb-perf-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lb-perf-sub {
  font-size: 12px;
  opacity: 0.82;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lb-perf-rows {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.lb-perf-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
}

.lb-perf-lbl {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.lb-perf-row .lb-pct {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
}

.lb-perf-track {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  overflow: hidden;
}

.lb-perf-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  .lb-rail {
    width: 72px;
  }

  .lb-nav-text,
  .lb-nav-label,
  .lb-help {
    display: none;
  }

  .lb-sidebar-stack {
    padding: 16px 8px;
  }

  .lb-nav-item {
    justify-content: center;
    padding: 8px;
  }

  .lb-nav-item.is-active .lb-nav-icon {
    width: 44px;
    height: 44px;
  }
}
