/**
 * layout.css — Disposición espacial premium: Shell SaaS Empresarial KOVE
 * Sidebar con branding, Topbar con command palette, Footer con telemetría
 */

/* ══════════════════════════════════════════════
   APP SHELL
   ══════════════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* ══════════════════════════════════════════════
   SIDEBAR — Navegación Premium
   ══════════════════════════════════════════════ */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  box-shadow:
    4px 0 32px rgba(0, 0, 0, 0.5),
    inset -1px 0 0 rgba(50, 166, 170, 0.08);
  transition: box-shadow var(--transition-base);
}
.app-sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(50,166,170,0.25) 30%,
    rgba(50,166,170,0.40) 60%,
    transparent 100%
  );
  pointer-events: none;
}

/* Sidebar Header / Brand */
.sidebar-header {
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(50, 166, 170, 0.06) 0%, transparent 100%);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo-z {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(50,166,170,0.15);
  display: inline-block;
  animation: floatY var(--dur-float) ease-in-out infinite;
  animation-delay: -1200ms;
}

.brand-badge {
  background: var(--accent-gradient);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  padding: 2px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
  line-height: 1.2;
  box-shadow: 0 0 16px var(--accent-glow);
}

.brand-badge span {
  display: inline-block;
}

.brand-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1;
}

.brand-tagline {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.7;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-section-title {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding: var(--space-3) var(--space-3) var(--space-1);
  margin-top: var(--space-2);
}

.nav-section-title:first-child {
  margin-top: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-3);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(50,166,170,0.08);
}
.nav-link:hover .nav-icon {
  animation: iconPop 0.38s var(--easing) both;
  color: var(--accent-light);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(50, 166, 170, 0.18) 0%, rgba(50, 166, 170, 0.04) 100%);
  color: var(--accent-light);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent), 0 0 4px var(--accent);
  animation: borderGlow 2.2s ease-in-out infinite;
}

.nav-link.active .nav-icon {
  filter: drop-shadow(0 0 6px var(--accent-glow));
  color: var(--accent-lighter);
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  font-size: 1.05rem;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--status-red);
  color: #fff;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0 5px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  animation: breatheBadge 2.2s ease-in-out infinite;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: rgba(6, 8, 16, 0.5);
}

.sidebar-promo {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
  min-height: 110px;
}

/* Líneas de velocidad en promo */
.sidebar-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(50,166,170,0.10) 100%),
    repeating-linear-gradient(
      -52deg,
      transparent,
      transparent 10px,
      rgba(50,166,170,0.04) 10px,
      rgba(50,166,170,0.04) 11px
    );
  pointer-events: none;
}

/* Logo KOVE como watermark */
.sidebar-promo::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 72px;
  height: 72px;
  background: url('img/kove-logo.png') center/contain no-repeat;
  opacity: 0.06;
  filter: brightness(2) saturate(0);
  pointer-events: none;
}

.sidebar-promo:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-cyan);
}

.sidebar-promo-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-promo-text span {
  display: block;
  font-family: var(--font-condensed);
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  margin-top: var(--space-1);
  text-transform: uppercase;
}

.sidebar-promo-arrow {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  align-self: flex-end;
  box-shadow: 0 0 12px var(--accent-glow);
}

.sidebar-promo:hover .sidebar-promo-arrow {
  transform: translateX(3px);
  box-shadow: 0 0 18px var(--accent-glow-strong);
}

.system-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
  animation: statusPulseLive 2.4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   APP MAIN AREA
   ══════════════════════════════════════════════ */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ══════════════════════════════════════════════
   TOPBAR — Command Center
   ══════════════════════════════════════════════ */
.app-topbar {
  height: var(--topbar-height);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(50,166,170,0.25) 20%,
    rgba(50,166,170,0.55) 50%,
    rgba(50,166,170,0.25) 80%,
    transparent 100%
  );
  pointer-events: none;
  animation: borderGlow 3s ease-in-out infinite;
}

/* Breadcrumbs */
.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.topbar-crumb-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

/* Search Bar — Command Palette Style */
.topbar-search-wrapper {
  position: relative;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  width: 320px;
  transition: all var(--transition-base);
}

.topbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(50,166,170,0.2), var(--shadow-cyan);
  width: 380px;
  background: rgba(255, 255, 255, 0.06);
}

.topbar-search-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.topbar-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
}

.topbar-search-input::placeholder {
  color: var(--text-muted);
}

.topbar-search-key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Search Dropdown */
.topbar-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(50, 166, 170, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-2);
}

.search-result-group {
  margin-bottom: var(--space-2);
}

.search-result-group:last-child {
  margin-bottom: 0;
}

.search-group-title {
  font-size: 0.65rem;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 6px 10px 4px;
  font-weight: 700;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.search-result-item:hover, .search-result-item.selected {
  background: var(--accent-subtle);
  border-left: 2px solid var(--accent);
}

.search-item-icon {
  font-size: 1rem;
  opacity: 0.8;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.search-no-results {
  padding: var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Topbar Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Telemetry Clock */
.telemetry-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.telemetry-clock .clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 6px var(--status-green);
  display: inline-block;
}

.telemetry-clock span {
  color: var(--accent-light);
  font-weight: 600;
}

/* Topbar Icon Buttons */
.topbar-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  font-size: 1.1rem;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.topbar-icon-btn .notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--status-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  border: 2px solid var(--bg-secondary);
}

/* User Profile (Topbar) */
.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 4px 4px 4px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.topbar-user:hover {
  border-color: rgba(50,166,170,0.30);
  background: rgba(50,166,170,0.04);
  box-shadow: var(--glow-accent-xs);
}

.topbar-user-info {
  text-align: right;
}

.topbar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.topbar-user-role {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.topbar-user-chevron {
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-left: -4px;
}

/* Role Switcher (legacy, kept for compatibility) */
.role-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  transition: all var(--transition-fast);
}

.role-switcher:hover {
  border-color: var(--border-strong);
}

.role-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-family: var(--font-condensed);
}

.role-select {
  background: transparent;
  border: none;
  color: var(--accent-light);
  font-weight: 700;
  font-family: var(--font-condensed);
  letter-spacing: 0.04em;
  cursor: pointer;
  outline: none;
  font-size: 0.82rem;
}

.role-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════
   MAIN CONTENT VIEW
   ══════════════════════════════════════════════ */
.app-view {
  flex: 1;
  padding: var(--space-6) var(--space-6) var(--space-4);
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
}

/* La clase se añade/quita por JS en cada navigate para re-disparar la animación */
.app-view.page-entering {
  animation: viewFadeIn 220ms var(--easing-decelerate) both;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(1px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

@media (prefers-reduced-motion: reduce) {
  .app-view.page-entering { animation: none; }
}

/* Page Header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.page-title-group h1 {
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 600px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════
   HERO BANNER — Editorial full-bleed
   ══════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8);
  margin-bottom: var(--space-6);
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Líneas de velocidad: efecto pit-lane */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--bg-secondary) 0%, rgba(50,166,170,0.05) 55%, transparent 100%),
    repeating-linear-gradient(
      -52deg,
      transparent,
      transparent 18px,
      rgba(50,166,170,0.025) 18px,
      rgba(50,166,170,0.025) 19px
    );
  pointer-events: none;
}

/* Spotlight reactivo al cursor */
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--hx, 55%) var(--hy, 40%),
    rgba(50,166,170,0.12) 0%,
    rgba(50,166,170,0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  transition: background 0.1s linear;
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-banner-tagline {
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-2);
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
  text-shadow: 0 0 40px rgba(50,166,170,0.12);
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
}

/* Panel visual derecho del hero */
.hero-banner-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.hero-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  opacity: 0.18;
  filter: brightness(2) saturate(0.3) contrast(1.4);
  mix-blend-mode: luminosity;
  pointer-events: none;
  display: block;
}

.hero-slogan-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
}

.hero-slogan-main {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 800;
}

.hero-slogan-model {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-slogan-model::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* Stagger de entrada para tarjetas KPI */
@keyframes kpiEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kpi-stagger > * {
  animation: kpiEnter 320ms var(--easing) both;
}
.kpi-stagger > *:nth-child(1) { animation-delay: 0ms; }
.kpi-stagger > *:nth-child(2) { animation-delay: var(--dur-stagger); }
.kpi-stagger > *:nth-child(3) { animation-delay: calc(var(--dur-stagger) * 2); }
.kpi-stagger > *:nth-child(4) { animation-delay: calc(var(--dur-stagger) * 3); }

/* ══════════════════════════════════════════════
   GRID SYSTEMS
   ══════════════════════════════════════════════ */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ══════════════════════════════════════════════
   INBOX 3-COLUMN LAYOUT
   ══════════════════════════════════════════════ */
.inbox-container {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: calc(100vh - var(--topbar-height) - 130px);
  min-height: 590px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.inbox-list {
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.inbox-chat {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inbox-context {
  background: var(--bg-secondary);
  overflow-y: auto;
  padding: var(--space-4);
  border-left: 1px solid var(--border-subtle);
}

/* ══════════════════════════════════════════════
   KANBAN BOARD
   ══════════════════════════════════════════════ */
.kanban-board {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  min-height: calc(100vh - 220px);
  align-items: flex-start;
}

.kanban-column {
  width: 290px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 230px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.kanban-col-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.kanban-col-cards {
  padding: var(--space-2);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-height: 140px;
  transition: background-color var(--transition-fast);
}

/* ══════════════════════════════════════════════
   FOOTER BAR — Telemetry Strip
   ══════════════════════════════════════════════ */
.app-footer {
  height: var(--footer-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.app-footer a {
  color: var(--text-muted);
  margin: 0 var(--space-3);
  transition: color var(--transition-fast);
}

.app-footer a:hover {
  color: var(--accent-light);
  text-shadow: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-sep {
  color: var(--text-disabled);
  margin: 0 var(--space-2);
}
