/* ==========================================================================
   IQ4U8 RECON — LAYOUT & STRUCTURAL GRID
   Clean, Minimal, High-Craft Editorial Layout (Zero Clutter)
   ========================================================================== */

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle background texture */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header & Nav */
.app-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(12, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}

[data-theme="light"] .app-header {
  background-color: rgba(244, 239, 230, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge:hover {
  transform: translateY(-1px);
}

.brand-badge.active .brand-icon {
  box-shadow: 0 0 14px var(--accent-primary);
  border-color: #f0b347;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #d49228, #8a5712);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #120e08;
  font-family: var(--font-display);
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(212, 146, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap;
}

/* Center Navigation Tabs (Dashboard vs Demo) */
.header-nav {
  display: flex;
  align-items: center;
  background: var(--surface-inset);
  border: 1px solid var(--border-medium);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 3px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 15px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.active {
  background: var(--surface-card-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  border-color: var(--border-strong);
}

.nav-tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-tab.active .nav-tab-indicator {
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.header-ops {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.kiro-header-pill {
  background: #ffffff;
  color: #09090b;
  font-family: var(--font-display), -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.kiro-header-pill:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
}

/* Compact & Smart Language Selector */
.lang-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 6px 0 8px;
  height: 32px;
  transition: var(--transition-fast);
}

.lang-selector-wrap:hover,
.lang-selector-wrap:focus-within {
  border-color: var(--accent-primary);
}

.lang-selector-wrap .clean-select {
  border: none;
  background: transparent;
  padding: 6px 2px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  width: auto;
}

.lang-icon {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--accent-primary);
}

/* Modern Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0;
  width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.theme-icon {
  display: block;
  transition: transform var(--transition-fast);
}

.theme-toggle-btn:hover .theme-icon {
  transform: rotate(15deg);
}

/* Dark theme active: show sun icon in warm amber */
[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
  color: #e5a138;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Light theme active: show moon icon in dark slate */
[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
  color: #2b303c;
}

/* Form Controls */
.clean-select {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.clean-select:focus {
  border-color: var(--accent-primary);
}

/* Option high-contrast styling for dropdowns */
select option,
.clean-select option {
  background-color: #161922 !important;
  color: #f2eee6 !important;
  padding: 8px 12px;
  font-size: 0.82rem;
}

[data-theme="light"] select option,
[data-theme="light"] .clean-select option {
  background-color: #ffffff !important;
  color: #1c1917 !important;
}

.clean-input {
  background: var(--surface-inset);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  width: 190px;
  transition: var(--transition-fast);
}

.clean-input:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.clean-textarea {
  width: 100%;
  background: var(--surface-inset);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.clean-textarea:focus {
  border-color: var(--accent-primary);
}

/* KPI Summary Bar (4 Crisp Cards) */
.kpi-section {
  margin: var(--space-lg) 0;
}

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

/* Ingestion Dropzones (Compact & Refined) */
.ingestion-section {
  margin-bottom: var(--space-lg);
}

.dropzones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Ledgers & Controls */
.ledger-section {
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ledger-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Dual Comparative Ledger Layout */
.dual-ledger-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  position: relative;
}

.ledger-pane {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ledger-pane-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

[data-theme="light"] .ledger-pane-header {
  background: rgba(0, 0, 0, 0.02);
}

.ledger-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.ledger-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 540px;
  overscroll-behavior-y: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  position: relative;
}

.ledger-table-wrap .ledger-table {
  min-width: 520px;
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  background: var(--surface-card);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-content {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-card);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dual-ledger-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 0 var(--space-md);
  }
  .dropzones-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .ledger-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Workspace Entrance Animation */
@keyframes workspaceEnter {
  0% {
    opacity: 0.2;
    transform: translateY(6px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.workspace-enter {
  animation: workspaceEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Demo Mode Compliance Disclaimer */
.demo-disclaimer-banner {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  background: rgba(212, 146, 40, 0.05);
  border: 1px dashed rgba(212, 146, 40, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.disclaimer-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.disclaimer-content strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-primary);
  margin-bottom: 3px;
  font-weight: 700;
}

.disclaimer-content p {
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Clean, subtle workspace tip notice */
.workspace-tip-bar {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.tip-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tip-formats {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-canvas-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* =========================================================================
   KIRO-STYLE LANDING EXPERIENCE: High-Impact Developer & Auditor Showpiece
   ========================================================================= */
.kiro-landing {
  min-height: calc(100vh - 58px);
  width: 100%;
  background: #000000;
  color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  scroll-behavior: smooth;
}

.kiro-landing::-webkit-scrollbar {
  width: 8px;
}

.kiro-landing::-webkit-scrollbar-track {
  background: #09090b;
}

.kiro-landing::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

.kiro-landing::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.kiro-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 1. Two-Column Hero Row */
.kiro-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 36px;
}

.kiro-hero-left {
  flex: 1.5;
  max-width: 820px;
}

.kiro-hero-heading {
  font-family: var(--font-display), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 20px 0;
}

.kiro-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0 0 32px 0;
  max-width: 680px;
}

/* Vibrant Rounded CTA Buttons */
.kiro-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kiro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #8b5cf6;
  color: #ffffff;
  font-family: var(--font-display), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}

.kiro-btn:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.5);
}

.kiro-btn .btn-arrow {
  font-size: 0.9rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.kiro-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Right Column: "■ WHAT'S NEW" Widget */
.kiro-whats-new {
  flex: 1;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whats-new-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #a1a1aa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.whats-new-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.whats-new-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wn-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: #ffffff;
}

.wn-head strong {
  font-weight: 700;
}

.wn-arrow {
  color: #a1a1aa;
  font-size: 0.82rem;
  margin-left: auto;
}

.wn-desc {
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.45;
  margin: 0;
}

/* 2. Massive macOS App Window Mockup inside Lavender/Purple Curved Bezel */
.kiro-app-bezel {
  background: #a855f7;
  border-radius: 28px 28px 0 0;
  padding: 24px 24px 0 24px;
  box-shadow: 0 25px 80px rgba(168, 85, 247, 0.35);
  margin-top: 10px;
}

.kiro-macos-window {
  background: #0d0e12;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* macOS Titlebar */
.macos-titlebar {
  background: #16171d;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macos-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.macos-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.macos-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 2px 10px;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ca56d;
  box-shadow: 0 0 6px #2ca56d;
}

.macos-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 16px;
  font-size: 0.76rem;
  color: #71717a;
  width: 360px;
  justify-content: center;
}

.macos-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.m-pill-action {
  background: rgba(212, 146, 40, 0.15);
  color: #f0b347;
  border: 1px solid rgba(212, 146, 40, 0.35);
}

.m-pill-success {
  background: rgba(44, 165, 109, 0.15);
  color: #2ca56d;
  border: 1px solid rgba(44, 165, 109, 0.35);
}

/* App Body: Sidebar + Workspace */
.macos-app-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 480px;
}

/* Sidebar */
.macos-sidebar {
  background: #111218;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.ms-btn-new {
  font-size: 0.72rem;
  font-weight: 700;
  background: #8b5cf6;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.ms-search {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.72rem;
  color: #52525b;
}

.ms-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #52525b;
  text-transform: uppercase;
}

.ms-session-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s ease;
}

.ms-session-card.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.4);
}

.msc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.64rem;
}

.msc-badge {
  color: #8b5cf6;
  font-family: var(--font-mono);
  font-weight: 700;
}

.msc-time {
  color: #52525b;
}

.msc-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
}

.msc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #71717a;
}

.msc-tag.tag-done {
  color: #2ca56d;
}

.msc-tag.tag-pending {
  color: #eab308;
}

.ms-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.72rem;
  color: #d4d4d8;
}

.src-name {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.src-status {
  color: #2ca56d;
  font-weight: 800;
}

/* Workspace Preview */
.macos-workspace {
  background: #090a0f;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.mw-tabs-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.mw-tab {
  font-size: 0.75rem;
  font-weight: 700;
  color: #71717a;
  padding: 5px 12px;
  border-radius: 4px;
}

.mw-tab.active {
  background: rgba(139, 92, 246, 0.15);
  color: #a855f7;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Ledger Preview Table */
.mw-ledger-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mw-table-head {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a1a1aa;
}

.th-status {
  text-align: center;
}

.mw-table-row {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
}

.mw-table-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.td-cb, .td-bk {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-ref {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 3px;
}

.t-desc {
  font-size: 0.76rem;
  color: #e4e4e7;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-txt {
  color: #71717a;
  font-style: italic;
}

.t-amt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.amt-pos { color: #2ca56d; }
.amt-neg { color: #f87171; }
.amt-muted { color: #71717a; }

.td-status {
  display: flex;
  justify-content: center;
}

.badge-matched {
  font-size: 0.66rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(44, 165, 109, 0.15);
  color: #2ca56d;
  border: 1px solid rgba(44, 165, 109, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-transit {
  font-size: 0.66rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-charges {
  font-size: 0.66rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Floating BRS Audit Certificate Pill */
.mw-brs-card {
  background: linear-gradient(135deg, rgba(44, 165, 109, 0.15), rgba(22, 23, 30, 0.95));
  border: 1px solid rgba(44, 165, 109, 0.4);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brs-pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brs-cert-icon {
  font-size: 1.4rem;
}

.brs-cert-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.brs-cert-math {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #a1a1aa;
}

.brs-pill-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.brs-var-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #71717a;
  letter-spacing: 0.06em;
}

.brs-var-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #2ca56d;
}

/* 3. Universal Ecosystem Bar */
.kiro-ecosystem-bar {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eco-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #71717a;
  text-transform: uppercase;
}

.eco-logos-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eco-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d4d4d8;
  transition: all 0.2s ease;
}

.eco-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* 4. Footer Dock */
.kiro-footer {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #71717a;
}

.kfooter-left {
  font-size: 0.74rem;
}

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

.creator-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 600;
}

.kfooter-link {
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 600;
}

.kfooter-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.kfooter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kfooter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: #ffffff;
}

/* Responsive */
@media (max-width: 960px) {
  .kiro-hero-row {
    flex-direction: column;
  }
  .kiro-hero-heading {
    font-size: 2.4rem;
  }
  .macos-app-body {
    grid-template-columns: 1fr;
  }
  .macos-sidebar {
    display: none;
  }
}


