/* ../../packages/ui/theme/tokens.css */
:root {
  --sf-bg-primary: #fafaf9;
  --sf-bg-secondary: #f5f5f3;
  --sf-bg-tertiary: #eeeeec;
  --sf-bg-elevated: #fff;
  --sf-bg-hover: #e8e8e6;
  --sf-text-primary: #171717;
  --sf-text-secondary: #525252;
  --sf-text-tertiary: #a3a3a3;
  --sf-text-inverse: #fafafa;
  --sf-border: #00000014;
  --sf-border-subtle: #0000000d;
  --sf-border-strong: #00000026;
  --sf-rail-bg: #1a1a2e;
  --sf-rail-text: #fff9;
  --sf-rail-text-active: #fff;
  --sf-rail-hover: #ffffff14;
  --sf-rail-active: #ffffff1f;
  --sf-accent-migrate: #10b981;
  --sf-accent-migrate-subtle: #10b9811a;
  --sf-accent-pipelines: #3b82f6;
  --sf-accent-pipelines-subtle: #3b82f61a;
  --sf-accent-connect: #8b5cf6;
  --sf-accent-connect-subtle: #8b5cf61a;
  --sf-accent-analyze: #f59e0b;
  --sf-accent-analyze-subtle: #f59e0b1a;
  --sf-accent-admin: #64748b;
  --sf-accent-admin-subtle: #64748b1a;
  --sf-accent: var(--sf-accent-migrate);
  --sf-accent-subtle: var(--sf-accent-migrate-subtle);
  --sf-glass-bg: #ffffffb3;
  --sf-glass-border: #0000000f;
  --sf-glass-blur: 20px;
  --sf-shadow-xs: 0 1px 2px #0000000a;
  --sf-shadow-sm: 0 1px 3px #0000000f, 0 1px 2px #0000000a;
  --sf-shadow-md: 0 4px 6px #0000000a, 0 2px 4px #00000008;
  --sf-shadow-lg: 0 10px 20px #0000000f, 0 2px 6px #0000000a;
  --sf-shadow-glow: 0 0 20px #10b98126;
  --sf-radius-sm: 6px;
  --sf-radius-md: 8px;
  --sf-radius-lg: 12px;
  --sf-radius-xl: 16px;
  --sf-radius-full: 9999px;
  --sf-rail-width: 56px;
  --sf-sidebar-width: 240px;
  --sf-font-sans: "Inter", "Geist Sans", system-ui, -apple-system, sans-serif;
  --sf-font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --sf-success: #10b981;
  --sf-warning: #f59e0b;
  --sf-error: #ef4444;
  --sf-info: #3b82f6;
}

[data-theme="dark"] {
  --sf-bg-primary: #09090b;
  --sf-bg-secondary: #111113;
  --sf-bg-tertiary: #18181b;
  --sf-bg-elevated: #1f1f23;
  --sf-bg-hover: #27272a;
  --sf-text-primary: #fafafa;
  --sf-text-secondary: #a3a3a3;
  --sf-text-tertiary: #525252;
  --sf-text-inverse: #171717;
  --sf-border: #ffffff14;
  --sf-border-subtle: #ffffff0d;
  --sf-border-strong: #ffffff26;
  --sf-rail-bg: #0a0a0f;
  --sf-glass-bg: #0006;
  --sf-glass-border: #ffffff0f;
  --sf-shadow-xs: 0 1px 2px #0003;
  --sf-shadow-sm: 0 1px 3px #0000004d, 0 1px 2px #0003;
  --sf-shadow-md: 0 4px 6px #0000004d, 0 2px 4px #0003;
  --sf-shadow-lg: 0 10px 20px #0006, 0 2px 6px #0000004d;
}

::selection {
  background: var(--sf-accent-subtle);
}

:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
  border-radius: var(--sf-radius-sm);
}

button[class*="-tab"]:focus-visible {
  outline: none;
}

button[class*="sf-rail"]:focus-visible {
  outline: none;
}

button[class*="sf-md-tab"]:focus-visible {
  outline: none;
}

button[class*="sf-pd-tab"]:focus-visible {
  outline: none;
}

button[class*="sf-connect-tab"]:focus-visible {
  outline: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--sf-border);
  border-radius: var(--sf-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sf-border-strong);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--sf-font-sans);
  background: var(--sf-bg-primary);
  color: var(--sf-text-primary);
}

@keyframes sf-wave {
  0%, 100% {
    transform: scaleY(.25);
  }

  50% {
    transform: scaleY(1);
  }
}

.sf-wave-loader {
  display: flex;
  align-items:  center;
  gap: 3px;
  height: 20px;
}

.sf-wave-loader span {
  border-radius: var(--sf-radius-full);
  background: var(--sf-accent);
  animation: sf-wave 1.2s ease-in-out infinite;
  width: 3px;
  height: 100%;
}

.sf-wave-loader span:nth-child(2) {
  animation-delay: .12s;
}

.sf-wave-loader span:nth-child(3) {
  animation-delay: .24s;
}

.sf-wave-loader span:nth-child(4) {
  animation-delay: .36s;
}

.sf-glass {
  background: var(--sf-glass-bg);
  backdrop-filter: blur(var(--sf-glass-blur));
  -webkit-backdrop-filter: blur(var(--sf-glass-blur));
  border: 1px solid var(--sf-glass-border);
}

.sf-transition {
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.sf-transition-fast {
  transition: all .15s;
}

/* styles.css */
:root {
  --brand: #0f4f47;
  --logo-bg: #fff;
  --logo-stroke: #0a0a0a;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111;
  --bg-tertiary: #18181b;
  --bg-hover: #ffffff0d;
  --border-subtle: #ffffff0f;
  --border-primary: #ffffff14;
  --border-secondary: #ffffff26;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;
  --surface-1: #ffffff05;
  --surface-2: #ffffff0a;
  --surface-3: #ffffff14;
  --card-bg: #ffffff08;
  --card-border: #ffffff14;
  --card-hover-border: #ffffff26;
  --card-hover-shadow: #ffffff0d;
  --sidebar-bg: #0a0a0a;
  --sidebar-border: #ffffff0f;
  --sidebar-item-text: #71717a;
  --sidebar-item-active-bg: #ffffff14;
  --sidebar-item-active-text: #fafafa;
  --sidebar-item-hover-bg: #ffffff0d;
  --btn-primary-bg: #fff;
  --btn-primary-text: #0a0a0a;
  --btn-primary-hover: #d4d4d8;
  --btn-primary-shadow: #fff3;
  --btn-outline-text: #a1a1aa;
  --btn-outline-border: #ffffff1a;
  --btn-outline-bg: #ffffff08;
  --btn-outline-hover-bg: #ffffff0f;
  --btn-outline-hover-text: #fafafa;
  --btn-ghost-text: #a1a1aa;
  --btn-ghost-hover-bg: #ffffff0d;
  --btn-ghost-hover-text: #fafafa;
  --input-bg: #ffffff08;
  --input-border: #ffffff1a;
  --input-focus-border: #fff;
  --input-focus-shadow: #fff3;
  --input-placeholder: #71717a;
  --accent-primary: #fff;
  --accent-hover: #d4d4d8;
  --accent-light: #fff;
  --accent-bg: #ffffff14;
  --success: #e4e4e7;
  --warning: #a1a1aa;
  --error: #a1a1aa;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

[data-theme="light"] .integration-choice-button {
  background: #0f4f4708;
  border-color: #0f4f4733;
}

[data-theme="light"] .integration-choice-button:hover {
  background: #0f4f4714;
  border-color: #0f4f478c;
  box-shadow: 0 10px 20px #0f4f471f;
}

[data-theme="light"] .integration-choice-button:hover .integration-choice-title {
  color: #0f4f47;
}

[data-theme="light"] .integration-choice-button:hover .integration-choice-subtitle {
  color: #2a4a47;
}

[data-theme="light"] .integration-choice-button:hover .integration-choice-icon {
  color: #0f4f47;
  background: #0f4f471f;
}

[data-theme="light"] {
  --brand: #0f4f47;
  --logo-bg: #0f4f47;
  --logo-stroke: #fff;
  --bg-primary: #f0f7f6;
  --bg-secondary: #fff;
  --bg-tertiary: #d4ece9;
  --bg-hover: #0f4f470f;
  --border-subtle: #0f4f471f;
  --border-primary: #0f4f4733;
  --border-secondary: #0f4f475c;
  --text-primary: #0a1f1d;
  --text-secondary: #2a4a47;
  --text-tertiary: #5a7a78;
  --text-muted: #8aaba9;
  --surface-1: #0f4f470d;
  --surface-2: #0f4f4717;
  --surface-3: #0f4f4726;
  --card-bg: #fff;
  --card-border: #0f4f472e;
  --card-hover-border: #0f4f475c;
  --card-hover-shadow: #0f4f4714;
  --sidebar-bg: #fff;
  --sidebar-border: #0f4f4729;
  --sidebar-item-text: #5a7a78;
  --sidebar-item-active-bg: #0f4f471a;
  --sidebar-item-active-text: #0f4f47;
  --sidebar-item-hover-bg: #0f4f470f;
  --btn-primary-bg: #0f4f47;
  --btn-primary-text: #fff;
  --btn-primary-hover: #0a3830;
  --btn-primary-shadow: #0f4f474d;
  --btn-outline-text: #0f4f47;
  --btn-outline-border: #0f4f474d;
  --btn-outline-bg: #0f4f470a;
  --btn-outline-hover-bg: #0f4f471a;
  --btn-outline-hover-text: #0a3830;
  --btn-ghost-text: #5a7a78;
  --btn-ghost-hover-bg: #0f4f470f;
  --btn-ghost-hover-text: #0f4f47;
  --input-bg: #fff;
  --input-border: #0f4f4742;
  --input-focus-border: #0f4f47;
  --input-focus-shadow: #0f4f472e;
  --input-placeholder: #8aaba9;
  --accent-primary: #0f4f47;
  --accent-hover: #0a3830;
  --accent-light: #1a6b61;
  --accent-bg: #0f4f4714;
  --success: #166534;
  --warning: #92400e;
  --error: #991b1b;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background .2s, color .2s;
  line-height: 1.6;
}

#root {
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #ffffff1a;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

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

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 8px #ffffff4d;
  }

  50% {
    box-shadow: 0 0 20px #ffffff80;
  }
}

@keyframes idePulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

@keyframes plan-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-progress {
  0% {
    width: 0;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sf-loader-0 {
  0% {
    background-position: 0 100%, 50% 0, 100% 0;
  }

  8%, 42% {
    background-position: 0 0, 50% 0, 100% 0;
  }

  50% {
    background-position: 0 0, 50% 100%, 100% 0;
  }

  58%, 92% {
    background-position: 0 0, 50% 0, 100% 0;
  }

  100% {
    background-position: 0 0, 50% 0, 100% 100%;
  }
}

@keyframes sf-loader-1 {
  100% {
    left: calc(100% - 8px);
  }
}

@keyframes sf-loader-2 {
  100% {
    top: -.1px;
  }
}

@keyframes sf-loader-text {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: 1;
  }
}

.sf-page-loader {
  display: flex;
  user-select: none;
  background: none;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 24px;
  padding: 80px 20px;
}

.sf-page-loader-dots {
  position: relative;
  --c: no-repeat radial-gradient(farthest-side, #ffffffb3 93%, transparent);
  background: var(--c) 0 0, var(--c) 50% 0, var(--c) 100% 0;
  animation: sf-loader-0 1s linear infinite alternate;
  background-size: 10px 10px;
  width: 48px;
  height: 24px;
}

.sf-page-loader-dots:before {
  content: "";
  position: absolute;
  animation: sf-loader-1 1s linear infinite alternate, sf-loader-2 .5s cubic-bezier(0, 200, .8, 200) infinite;
  background: #ffffffe6;
  border-radius: 2px;
  width: 10px;
  height: 14px;
  top: 0;
  left: 0;
}

.sf-page-loader-text {
  letter-spacing: .6px;
  color: #52525b;
  animation: sf-loader-text 2.5s ease-in-out infinite;
  font-size: 13px;
  font-weight: 500;
}

[data-theme="light"] .sf-page-loader-dots {
  --c: no-repeat radial-gradient(farthest-side, #0f4f47a6 93%, transparent);
}

[data-theme="light"] .sf-page-loader-dots:before {
  background: #0f4f47d9;
}

[data-theme="light"] .sf-page-loader-text {
  color: #0f4f47;
  font-weight: 600;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.glass-card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 0 20px var(--card-hover-shadow);
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #fff, #d4d4d8);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.text-glow-cyan {
  text-shadow: 0 0 20px #fff6;
}

.shadow-glow-cyan, .shadow-glow-neon {
  box-shadow: 0 0 20px #ffffff26;
}

.bg-grid-dots {
  background-image: radial-gradient(#ffffff0d 1px, #0000 1px);
  background-size: 24px 24px;
}

.neon-progress {
  background: linear-gradient(90deg, #e4e4e7, #fff);
  box-shadow: 0 0 12px #ffffff4d;
}

.spinner {
  animation: spin .6s linear infinite;
  border: 2px solid #fff3;
  border-top-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

[data-theme="light"] .spinner {
  border-color: #0f4f4740;
  border-top-color: var(--brand);
}

.sf-spinner {
  border-color: #fff #fff3 #fff3;
}

[data-theme="light"] .sf-spinner {
  border-color: #0f4f4740;
  border-top-color: var(--brand);
}

.sf-spinner-dots {
  display: inline-flex;
  align-items:  center;
  gap: 4px;
}

.sf-spinner-dots span {
  display: inline-block;
  background: var(--text-secondary);
  animation: sf-dots 1s ease-in-out infinite;
  border-radius: 999px;
}

.sf-spinner-dots span:nth-child(2) {
  animation-delay: .15s;
}

.sf-spinner-dots span:nth-child(3) {
  animation-delay: .3s;
}

.sf-spinner-dots--sm span {
  width: 4px;
  height: 4px;
}

.sf-spinner-dots--md span {
  width: 6px;
  height: 6px;
}

.sf-spinner-dots--lg span {
  width: 8px;
  height: 8px;
}

@keyframes sf-dots {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

[data-theme="light"] .sf-spinner-dots span {
  background: var(--text-tertiary);
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  position: fixed;
  z-index: 10;
  flex-direction: column;
  width: 220px;
  height: 100vh;
  transition: background .2s, border-color .2s;
  top: 0;
  left: 0;
}

.sidebar-header {
  padding: 20px 16px 16px;
}

.sidebar-header .logo {
  color: var(--text-primary);
  display: flex;
  align-items:  center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}

.sidebar-nav-item {
  display: flex;
  color: var(--sidebar-item-text);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  transition: background .15s, color .15s;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: var(--sidebar-item-hover-bg);
  color: var(--text-secondary);
}

.sidebar-nav-item.active {
  background: var(--sidebar-item-active-bg);
  color: var(--sidebar-item-active-text);
}

.sidebar-nav-label {
  flex: 1;
}

.sidebar-nav-badge {
  background: var(--surface-3);
  color: var(--text-secondary);
  text-align: center;
  border-radius: 6px;
  min-width: 20px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
}

.sidebar-nav-item.active .sidebar-nav-badge {
  background: var(--border-secondary);
  color: var(--text-primary);
}

.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 12px;
}

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

.user-avatar {
  background: var(--surface-3);
  border: 1px solid var(--border-secondary);
  display: flex;
  color: var(--text-primary);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 700;
}

.user-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.user-email {
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.sidebar-logout-btn {
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px;
  transition: all .15s;
}

.sidebar-logout-btn:hover {
  color: #a1a1aa;
}

.app-container {
  display: flex;
  overflow: hidden;
  background: var(--bg-primary);
  height: 100vh;
  transition: background .2s;
}

.main-content {
  overflow-y: auto;
  background: var(--bg-primary);
  flex: 1;
  height: 100vh;
  margin-left: 220px;
  padding: 28px;
  transition: background .2s;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.content-title {
  color: #fafafa;
  font-size: 24px;
  font-weight: 700;
}

.content-subtitle {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 14px;
}

.dashboard-header {
  margin-bottom: 24px;
}

.dashboard-title {
  color: #fafafa;
  font-size: 24px;
  font-weight: 700;
}

.dashboard-subtitle {
  color: var(--text-secondary);
  margin-top: 4px;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  backdrop-filter: blur(8px);
  display: flex;
  z-index: 1000;
  animation: fadeIn .2s ease-out;
  background-color: #000000b3;
  justify-content: center;
  align-items:  center;
  padding: 32px;
  inset: 0;
}

.modal {
  overflow-y: auto;
  animation: slideUp .3s ease-out;
  background: #0a0a0a;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: 0 20px 60px #0009, 0 0 0 1px #ffffff0d;
}

.modal-header {
  display: flex;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items:  center;
  padding: 20px 24px;
}

.modal-title {
  color: #fafafa;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  color: #71717a;
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 4px;
  transition: all .15s;
}

.modal-close:hover {
  color: #fafafa;
  background: #ffffff0d;
}

.modal-body {
  padding: 24px;
}

.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  top: 16px;
  right: 16px;
}

select {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
}

select option {
  color: #fafafa;
  background: #1a1a1a;
}

select option:checked, select option:hover {
  background: #27272a;
}

[data-theme="light"] select {
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
}

[data-theme="light"] select option {
  color: #09090b;
  background: #fff;
}

[data-theme="light"] select option:checked, [data-theme="light"] select option:hover {
  background: #f4f4f5;
}

.toggle-group {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--surface-1);
  border-radius: 10px;
}

.toggle-btn {
  color: #52525b;
  cursor: pointer;
  text-align: center;
  background: none;
  border: none;
  flex: 1;
  padding: 8px 14px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 600;
}

.toggle-btn:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.toggle-btn:hover {
  color: var(--text-secondary);
  background: var(--surface-2);
}

.toggle-btn.active {
  background: var(--surface-3);
  color: var(--text-primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.flex {
  display: flex;
}

.gap-12 {
  gap: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.db-explorer {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  min-height: 500px;
}

.schema-sidebar {
  grid-row: 1 / -1;
  overflow-y: auto;
  background: #ffffff05;
  border-right: 1px solid #ffffff14;
}

.schema-sidebar-title {
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .5px;
  position: sticky;
  z-index: 1;
  background: #ffffff05;
  border-bottom: 1px solid #ffffff14;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  top: 0;
}

.schema-table-item {
  display: flex;
  cursor: pointer;
  color: var(--text-secondary);
  justify-content: space-between;
  align-items:  center;
  padding: 8px 16px;
  transition: all .12s;
  font-size: 13px;
}

.schema-table-item:hover {
  color: var(--text-primary);
  background: #ffffff08;
}

.schema-table-item.active {
  color: #fff;
  background: #ffffff0d;
}

.schema-column-item {
  display: flex;
  color: var(--text-tertiary);
  justify-content: space-between;
  align-items:  center;
  padding: 4px 16px 4px 36px;
  font-size: 12px;
}

.schema-column-type {
  color: var(--text-tertiary);
  font-family: monospace;
  font-size: 11px;
}

.query-panel {
  display: flex;
  border-bottom: 1px solid #ffffff14;
  flex-direction: column;
}

.query-toolbar {
  display: flex;
  background: #ffffff05;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 16px;
}

.query-textarea {
  color: var(--text-primary);
  resize: vertical;
  outline: none;
  background: #0a0a0a;
  border: none;
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  font-family: SFMono-Regular, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.query-textarea::placeholder {
  color: var(--text-tertiary);
}

.results-panel {
  overflow: auto;
}

.results-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.results-table th {
  text-align: left;
  color: var(--text-tertiary);
  position: sticky;
  white-space: nowrap;
  background: #ffffff05;
  border-bottom: 1px solid #ffffff14;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  top: 0;
}

.results-table td {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #ffffff0d;
  max-width: 300px;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 12px;
}

.results-table tr:hover td {
  background: #ffffff05;
}

.results-footer {
  display: flex;
  color: var(--text-tertiary);
  background: #ffffff05;
  border-top: 1px solid #ffffff14;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
}

.jira-project-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jira-project-item {
  display: flex;
  cursor: pointer;
  background: #ffffff05;
  border: 1px solid #ffffff0d;
  border-radius: 8px;
  justify-content: space-between;
  align-items:  center;
  padding: 12px 16px;
  transition: all .12s;
}

.jira-project-item:hover {
  background: #ffffff0d;
  border-color: #ffffff1a;
}

.jira-issue-row {
  display: grid;
  grid-template-columns: 80px 1fr 100px 80px 80px 100px;
  border-bottom: 1px solid #ffffff0d;
  align-items:  center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
}

.jira-issue-row:hover {
  background: #ffffff05;
}

.jira-issue-header {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
}

.pipeline-builder {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--border-primary);
  overflow: hidden;
  background: var(--bg-primary);
  border-radius: 8px;
  min-height: 460px;
}

.pipeline-steps-panel {
  border-right: 1px solid var(--border-primary);
  overflow-y: auto;
  background: var(--surface-1);
  padding: 16px;
}

.pipeline-config-panel {
  overflow-y: auto;
  padding: 20px;
}

.pipeline-step-item {
  display: flex;
  cursor: pointer;
  background: #ffffff05;
  border: 1px solid #0000;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  padding: 8px 10px;
  transition: all .12s;
}

.pipeline-step-item:hover {
  background: #ffffff0a;
  border-color: #ffffff14;
}

.pipeline-step-item.selected {
  background: #ffffff0d;
  border-color: #ffffff4d;
}

.pipeline-step-order {
  display: flex;
  color: var(--text-tertiary);
  background: #ffffff0d;
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: 700;
}

.step-badge {
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.step-badge-extract {
  color: #fff;
  background: #ffffff1a;
}

.step-badge-transform {
  color: #d4d4d8;
  background: #ffffff1a;
}

.step-badge-load {
  color: #e4e4e7;
  background: #ffffff1a;
}

.step-badge-source {
  color: #fff;
  background: #ffffff1a;
}

.step-badge-target {
  color: #e4e4e7;
  background: #ffffff1a;
}

.step-badge-lookup, .step-badge-filter {
  color: #a1a1aa;
  background: #ffffff1a;
}

.step-badge-joiner {
  color: #fff;
  background: #ffffff1a;
}

.pipeline-builder-tabs {
  display: flex;
  background: var(--surface-1);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  gap: 2px;
  width: -moz-fit-content;
  width: fit-content;
  margin-bottom: 16px;
  padding: 4px;
}

.pipeline-builder-tab {
  display: flex;
  cursor: pointer;
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-radius: 6px;
  align-items:  center;
  gap: 6px;
  padding: 6px 14px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 500;
}

.pipeline-builder-tab:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}

.pipeline-builder-tab.active {
  background: var(--surface-3);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--surface-3);
}

.xml-upload-zone {
  display: flex;
  cursor: pointer;
  color: var(--text-tertiary);
  text-align: center;
  background: #ffffff03;
  border: 2px dashed #ffffff1a;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  padding: 32px;
  transition: all .2s;
}

.xml-upload-zone:hover {
  background: #ffffff05;
  border-color: #ffffff4d;
}

.xml-upload-zone.drag-over {
  background: #ffffff0d;
  border-color: #fff;
  box-shadow: 0 0 20px #ffffff1a;
}

.pipeline-dag {
  background: var(--bg-primary);
  overflow: hidden;
}

.pipeline-dag svg {
  display: block;
}

.pipeline-flow {
  width: 100%;
  height: 100%;
}

.pipeline-flow .react-flow__controls {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 16px #00000059;
}

.pipeline-flow .react-flow__controls-button {
  background: var(--bg-secondary);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

.pipeline-flow .react-flow__controls-button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.pipeline-flow .react-flow__handle.pipeline-handle {
  background: #fafafa;
  border: 2px solid #0a0a0a;
  border-radius: 999px;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 2px #ffffff26;
}

.pipeline-flow .react-flow__handle.pipeline-handle:hover {
  transform: scale(1.1);
}

.react-flow__node-cylinder.selected, .react-flow__node-cylinder:focus {
  outline: none;
  box-shadow: none;
}

.react-flow__node-cylinder:focus-visible {
  outline: none;
  box-shadow: none;
}

.code-display {
  background: var(--bg-primary);
}

.code-display pre {
  color: #d4d4d8;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 24px;
  font-family: SFMono-Regular, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.code-display code {
  color: inherit;
}

.artifact-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  background: var(--surface-1);
  flex-shrink: 0;
}

.artifact-tab {
  color: var(--text-tertiary);
  cursor: pointer;
  text-transform: capitalize;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  padding: 10px 16px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 500;
}

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

.artifact-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.artifact-content {
  color: var(--text-secondary);
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.artifact-skeleton {
  display: flex;
  background: var(--surface-1);
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  height: 200px;
  margin: 16px;
}

.md-content {
  color: var(--text-secondary);
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.md-content h1 {
  color: #fafafa;
  border-bottom: 1px solid #ffffff14;
  margin: 20px 0 8px;
  padding-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
}

.md-content h2 {
  color: #fafafa;
  margin: 16px 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.md-content h3 {
  color: var(--text-secondary);
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.md-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 13px;
}

.md-content tr {
  border-bottom: 1px solid #ffffff0d;
}

.md-content tr:first-child {
  background: #ffffff05;
  font-weight: 600;
}

.md-content td {
  padding: 6px 10px;
}

.md-content code {
  color: #fff;
  background: #ffffff0d;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 12px;
}

.md-content pre {
  overflow-x: auto;
  background: #ffffff08;
  border-radius: 6px;
  margin: 8px 0;
  padding: 12px;
}

.md-content pre code {
  color: var(--text-secondary);
  background: none;
  padding: 0;
}

.md-content li {
  margin: 4px 0;
}

.md-content strong {
  color: #fafafa;
  font-weight: 600;
}

.chat-sidebar {
  position: fixed;
  background: var(--bg-secondary);
  z-index: 1000;
  display: flex;
  border-left: 1px solid #ffffff14;
  flex-direction: column;
  width: 380px;
  height: 100vh;
  transition: right .28s, box-shadow .28s;
  top: 0;
  right: -380px;
  box-shadow: -6px 0 36px #00000073;
}

.chat-resize-handle {
  position: absolute;
  cursor: ew-resize;
  background: none;
  width: 6px;
  height: 100%;
  top: 0;
  left: 0;
}

.chat-resize-handle:after {
  content: "";
  position: absolute;
  opacity: 0;
  background: #ffffff14;
  width: 2px;
  height: 100%;
  transition: opacity .2s;
  top: 0;
  left: 2px;
}

.chat-resize-handle:hover:after {
  opacity: 1;
}

.chat-sidebar.open {
  right: 0;
}

.chat-message {
  border-radius: 12px;
  max-width: 88%;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 8px 20px #0000002e;
}

.chat-message.md-content {
  padding: 12px 16px;
}

.chat-message.user {
  color: var(--text-primary);
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-top-right-radius: 6px;
  align-self:  flex-end;
}

.chat-message.assistant {
  color: var(--text-secondary);
  background: #ffffff08;
  border: 1px solid #ffffff0d;
  border-top-left-radius: 6px;
  align-self:  flex-start;
}

.chat-input-row {
  display: flex;
  background: #ffffff05;
  border-top: 1px solid #ffffff14;
  gap: 8px;
  padding: 12px;
}

[data-theme="light"] .md-content h1, [data-theme="light"] .md-content h2 {
  color: var(--text-primary);
  border-bottom-color: var(--border-subtle);
}

[data-theme="light"] .md-content h3, [data-theme="light"] .md-content strong {
  color: var(--text-primary);
}

[data-theme="light"] .md-content code {
  background: var(--surface-2);
  color: var(--text-primary);
}

[data-theme="light"] .md-content pre {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .md-content pre code {
  color: var(--text-primary);
}

[data-theme="light"] .chat-sidebar {
  border-left-color: var(--border-primary);
  box-shadow: -4px 0 32px #0f4f471f;
}

[data-theme="light"] .chat-resize-handle:after {
  background: #0f4f472e;
}

[data-theme="light"] .chat-message.user {
  background: var(--surface-3);
  border-color: var(--border-secondary);
  color: var(--text-primary);
}

[data-theme="light"] .chat-message.assistant {
  background: var(--surface-1);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="light"] .chat-input-row {
  border-top-color: var(--border-primary);
  background: var(--surface-1);
}

.workflow-file-item {
  display: flex;
  background: #ffffff05;
  border: 1px solid #ffffff0d;
  border-radius: 6px;
  justify-content: space-between;
  align-items:  center;
  padding: 10px 12px;
}

.format-badge {
  text-transform: uppercase;
  letter-spacing: .3px;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.format-badge-powercentre {
  color: #a1a1aa;
  background: #ffffff1a;
}

.format-badge-iics {
  color: #fff;
  background: #ffffff1a;
}

.format-badge-json {
  color: #d4d4d8;
  background: #ffffff1a;
}

.format-badge-unknown {
  color: var(--text-tertiary);
  background: #ffffff0d;
}

.export-toolbar {
  display: flex;
  border-top: 1px solid var(--border-primary);
  background: var(--surface-1);
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  padding: 8px 16px;
}

.analyzing-overlay {
  position: absolute;
  z-index: 10;
  backdrop-filter: blur(4px);
  display: flex;
  color: var(--text-secondary);
  background: #00000080;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  gap: 12px;
  font-size: 14px;
  inset: 0;
}

.ide-overlay {
  position: fixed;
  z-index: 999;
  color: #fafafa;
  display: flex;
  -webkit-font-smoothing: antialiased;
  background: #0a0a0a;
  flex-direction: column;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  inset: 0;
}

.ide-header {
  display: flex;
  background: #111;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
}

.ide-header-back {
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  align-items:  center;
  gap: 5px;
  padding: 5px 10px;
  transition: all .2s;
  font-size: 13px;
  font-weight: 500;
}

.ide-header-back:hover {
  color: #fafafa;
  background: #ffffff0d;
  border-color: #ffffff1a;
}

.ide-header-sep {
  color: #ffffff1a;
  user-select: none;
  font-size: 14px;
  font-weight: 300;
}

.ide-header-title {
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}

.ide-header-status {
  text-transform: uppercase;
  letter-spacing: .4px;
  border: 1px solid;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

.ide-header-status.generating {
  color: #a1a1aa;
  background: #ffffff1a;
  border-color: #fff3;
}

.ide-header-status.completed {
  color: #e4e4e7;
  background: #ffffff1a;
  border-color: #fff3;
}

.ide-header-status.approved {
  color: #fff;
  background: #ffffff1a;
  border-color: #fff3;
}

.ide-header-status.failed {
  color: #a1a1aa;
  background: #ffffff1a;
  border-color: #fff3;
}

.ide-header-status.analyzing, .ide-header-status.scanning, .ide-header-status.generating_spec, .ide-header-status.tickets_review, .ide-header-status.spec_review {
  color: #fff;
  background: #ffffff1a;
  border-color: #fff3;
}

.ide-header-right {
  display: flex;
  align-items:  center;
  gap: 8px;
  margin-left: auto;
}

.ide-header-file-count {
  color: #a1a1aa;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
}

.ide-header-steps {
  display: flex;
  align-items:  center;
  gap: 4px;
}

.ide-step-dot {
  background: #ffffff1a;
  border-radius: 9999px;
  width: 6px;
  height: 6px;
  transition: all .3s;
}

.ide-step-dot.completed {
  background: #e4e4e7;
}

.ide-step-dot.active {
  animation: idePulse 2s ease-in-out infinite;
  background: #fff;
}

.ide-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  overflow: hidden;
  flex: 1;
}

.ide-file-tree {
  overflow-y: auto;
  overflow-x: hidden;
  background: #111;
  border-right: 1px solid #ffffff14;
  flex-shrink: 0;
  width: 260px;
}

.ide-file-tree-header {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #71717a;
  position: sticky;
  z-index: 1;
  background: #111;
  border-bottom: 1px solid #ffffff14;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  top: 0;
}

.ide-folder-item {
  display: flex;
  cursor: pointer;
  color: #a1a1aa;
  user-select: none;
  border-radius: 6px;
  align-items:  center;
  gap: 2px;
  margin: 1px 6px;
  padding: 3px 4px;
  transition: all .12s;
  font-size: 13px;
  font-weight: 500;
}

.ide-folder-item:hover {
  color: #fafafa;
  background: #ffffff0d;
}

.ide-folder-chevron {
  display: inline-flex;
  color: #52525b;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 16px;
  height: 16px;
  transition: transform .15s;
}

.ide-folder-chevron.open {
  transform: rotate(90deg);
}

.ide-folder-name {
  font-weight: 500;
}

.ide-file-item {
  display: flex;
  cursor: pointer;
  color: #a1a1aa;
  border-radius: 6px;
  align-items:  center;
  gap: 6px;
  margin: 1px 6px;
  padding: 3px 6px;
  transition: all .12s;
  font-size: 13px;
}

.ide-file-item:hover {
  color: #fafafa;
  background: #ffffff0d;
}

.ide-file-item.active {
  color: #fff;
  background: #ffffff26;
}

[data-theme="light"] .ide-folder-item {
  color: var(--text-secondary);
}

[data-theme="light"] .ide-folder-item:hover {
  background: var(--surface-1);
  color: var(--text-primary);
}

[data-theme="light"] .ide-file-item {
  color: var(--text-secondary);
}

[data-theme="light"] .ide-file-item:hover {
  background: var(--surface-1);
  color: var(--text-primary);
}

[data-theme="light"] .ide-file-item.active {
  background: var(--surface-2);
  color: var(--text-primary);
}

[data-theme="light"] .ide-folder-chevron {
  color: var(--text-tertiary);
}

.ide-file-icon {
  border-radius: 9999px;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.ide-file-icon.python {
  background: #a1a1aa;
}

.ide-file-icon.yaml {
  background: #71717a;
}

.ide-file-icon.markdown {
  background: #d4d4d8;
}

.ide-file-icon.shell {
  background: #e4e4e7;
}

.ide-file-icon.json {
  background: #a1a1aa;
}

.ide-file-icon.docker {
  background: #d4d4d8;
}

.ide-file-icon.sql, .ide-file-icon.default {
  background: #71717a;
}

.ide-file-item.active .ide-file-icon {
  box-shadow: 0 0 0 2px #ffffff4d;
}

.ide-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
}

.ide-editor-area {
  display: flex;
  overflow: hidden;
  background: #0a0a0a;
  flex-direction: column;
  min-width: 0;
}

.ide-tab-bar {
  display: flex;
  overflow-x: auto;
  background: #111;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  align-items: stretch;
  min-height: 36px;
}

.ide-tab-bar::-webkit-scrollbar {
  height: 0;
}

.ide-tab {
  display: inline-flex;
  color: #71717a;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid #0000;
  flex-shrink: 0;
  align-items:  center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  transition: all .15s;
  font-size: 13px;
  font-weight: 500;
}

.ide-tab:hover {
  color: #fafafa;
  background: #ffffff08;
}

.ide-tab.active {
  color: #fafafa;
  background: #0a0a0a;
  border-bottom-color: #fff;
  font-weight: 600;
}

.ide-tab-dot {
  border-radius: 9999px;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.ide-tab-dot.python {
  background: #a1a1aa;
}

.ide-tab-dot.yaml {
  background: #71717a;
}

.ide-tab-dot.markdown {
  background: #d4d4d8;
}

.ide-tab-dot.shell {
  background: #e4e4e7;
}

.ide-tab-dot.json {
  background: #a1a1aa;
}

.ide-tab-dot.docker {
  background: #d4d4d8;
}

.ide-tab-dot.sql, .ide-tab-dot.default {
  background: #71717a;
}

.ide-tab-close {
  display: inline-flex;
  color: #52525b;
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items:  center;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  transition: all .12s;
  font-size: 13px;
  line-height: 1;
}

.ide-tab:hover .ide-tab-close, .ide-tab.active .ide-tab-close {
  opacity: 1;
}

.ide-tab-close:hover {
  color: #fafafa;
  background: #ffffff1a;
}

.ide-editor-panel {
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  flex: 1;
}

.ide-editor-empty {
  display: flex;
  user-select: none;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  height: 100%;
}

.ide-editor-empty-icon {
  color: #ffffff1a;
  font-family: SFMono-Regular, monospace;
  font-size: 32px;
  font-weight: 300;
}

.ide-editor-empty-text {
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
}

.ide-editor-empty-sub {
  color: #52525b;
  font-size: 13px;
}

.ide-markdown-preview {
  overflow-y: auto;
  color: #d4d4d8;
  max-width: 780px;
  height: 100%;
  padding: 40px 56px;
  font-size: 15px;
  line-height: 1.75;
}

.ide-markdown-preview h1 {
  color: #fafafa;
  border-bottom: 1px solid #ffffff14;
  margin: 32px 0 12px;
  padding-bottom: 12px;
  font-size: 26px;
  font-weight: 700;
}

.ide-markdown-preview h2 {
  color: #fafafa;
  margin: 24px 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.ide-markdown-preview h3 {
  color: #fafafa;
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.ide-markdown-preview h4 {
  color: #e4e4e7;
  margin: 14px 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.ide-markdown-preview strong {
  color: #fff;
  font-weight: 600;
}

.ide-markdown-preview p {
  margin: 8px 0;
}

.ide-markdown-preview strong {
  color: #fafafa;
  font-weight: 600;
}

[data-theme="light"] .ide-markdown-preview strong {
  color: #09090b;
}

.ide-markdown-preview code {
  color: #fff;
  background: #ffffff0d;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: SFMono-Regular, monospace;
  font-size: 13px;
}

.ide-markdown-preview ul, .ide-markdown-preview ol {
  margin: 8px 0;
  padding-left: 24px;
}

.ide-markdown-preview li {
  margin: 4px 0;
}

.ide-markdown-preview .md-code-block {
  overflow-x: auto;
  position: relative;
  background: #111;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  margin: 16px 0;
  padding: 16px 20px;
}

.ide-markdown-preview .md-code-block[data-lang]:before {
  content: attr(data-lang);
  position: absolute;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
  top: 8px;
  right: 12px;
}

.ide-markdown-preview .md-code-block code {
  color: #a5d6ff;
  white-space: pre;
  background: none;
  border-radius: 0;
  padding: 0;
  font-family: SFMono-Regular, IBM Plex Mono, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.ide-markdown-preview .md-inline-code {
  color: #a5d6ff;
  background: #a5d6ff1a;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: SFMono-Regular, monospace;
  font-size: 13px;
}

.ide-markdown-preview .md-table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 14px;
}

.ide-markdown-preview .md-table th {
  color: #fafafa;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
}

.ide-markdown-preview .md-table td {
  color: #d4d4d8;
  vertical-align: top;
  border: 1px solid #ffffff0f;
  padding: 9px 14px;
}

.ide-markdown-preview .md-table tr:hover td {
  background: #ffffff05;
}

.ide-markdown-preview blockquote {
  color: #71717a;
  border-left: 3px solid #ffffff26;
  margin: 12px 0;
  padding: 4px 16px;
  font-style: italic;
}

.ide-markdown-preview hr {
  border: none;
  border-top: 1px solid #ffffff14;
  margin: 24px 0;
}

.ide-terminal {
  display: flex;
  background: #111;
  border-top: 1px solid #ffffff14;
  flex-direction: column;
  flex-shrink: 0;
}

.ide-terminal-header {
  display: flex;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 1px;
  justify-content: space-between;
  align-items:  center;
  height: 32px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 600;
}

.ide-terminal-toggle {
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: none;
  border-radius: 6px;
  align-items:  center;
  padding: 2px 6px;
  transition: all .15s;
  font-size: 14px;
}

.ide-terminal-toggle:hover {
  color: #fafafa;
  background: #ffffff0d;
}

.ide-terminal-body {
  overflow-y: auto;
  background: #0a0a0a;
  flex: 1;
  padding: 4px 0;
  font-family: SFMono-Regular, IBM Plex Mono, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.ide-terminal-line {
  display: flex;
  gap: 10px;
  padding: 1px 14px;
}

.ide-terminal-time {
  color: #fff;
  opacity: .5;
  flex-shrink: 0;
  min-width: 72px;
  font-size: 11px;
}

.ide-terminal-line.info .ide-terminal-msg, .ide-terminal-line.warn .ide-terminal-msg {
  color: #a1a1aa;
}

.ide-terminal-line.error .ide-terminal-msg {
  color: #a1a1aa;
  font-weight: 500;
}

.ide-timeline {
  overflow: hidden;
  display: flex;
  background: #111;
  border-left: 1px solid #ffffff14;
  flex-direction: column;
  flex-shrink: 0;
  width: 280px;
  transition: width .2s;
}

.ide-timeline.collapsed {
  border: none;
  width: 0;
}

.ide-timeline-header {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #71717a;
  display: flex;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
}

.ide-timeline-toggle {
  color: #71717a;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 2px 6px;
  transition: all .15s;
  font-size: 13px;
}

.ide-timeline-toggle:hover {
  color: #fafafa;
  background: #ffffff0d;
}

.ide-timeline-steps {
  flex-shrink: 0;
}

.ide-timeline-step {
  position: relative;
  padding: 12px 14px;
}

.ide-timeline-step + .ide-timeline-step {
  border-top: 1px solid #ffffff0d;
}

.ide-timeline-step-clickable {
  cursor: pointer;
  border-radius: 6px;
  margin: 2px 4px;
  padding: 10px;
  transition: background .15s;
}

.ide-timeline-step-clickable:hover {
  background: #ffffff0d;
}

.ide-timeline-step-clickable:hover .ide-timeline-step-label {
  color: #fff;
}

@keyframes stepPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.ide-step-panel {
  overflow-y: auto;
  animation: stepPanelIn .2s ease-out;
  height: 100%;
  padding: 32px 36px;
}

.ide-step-panel-title {
  color: #fafafa;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.ide-step-panel-subtitle {
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;
}

.ide-step-code {
  color: #fff;
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: SFMono-Regular, monospace;
  font-size: 12px;
}

.ide-step-section {
  margin-top: 28px;
}

.ide-step-section-title {
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
}

.ide-step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ide-step-card {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 14px 16px;
}

.ide-step-card-label {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
}

.ide-step-card-value {
  color: #fafafa;
  font-size: 13px;
  font-weight: 600;
}

.ide-step-card-mono {
  color: #fff;
  font-family: SFMono-Regular, monospace;
  font-size: 12px;
}

.ide-step-empty {
  color: var(--text-tertiary);
  text-align: center;
  padding: 32px 0;
  font-size: 13px;
}

.ide-step-scan-count {
  color: #fafafa;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
}

.ide-step-scan-num {
  color: #fff;
}

.ide-step-file-list {
  overflow-y: auto;
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  max-height: 360px;
  margin-top: 4px;
}

.ide-step-file-row {
  display: flex;
  color: var(--text-secondary);
  border-bottom: 1px solid #ffffff0d;
  align-items:  center;
  gap: 8px;
  padding: 8px 14px;
  font-family: SFMono-Regular, monospace;
  font-size: 12px;
}

.ide-step-file-row:last-child {
  border-bottom: none;
}

.ide-step-file-icon {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.ide-step-analysis-files {
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.ide-step-file-chip {
  color: var(--text-tertiary);
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
}

.ide-step-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}

.ide-step-metric {
  text-align: center;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  padding: 16px;
}

.ide-step-metric-label {
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
}

.ide-step-metric-value {
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
}

.ide-step-metric-num {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.ide-step-module {
  background: #ffffff05;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  padding: 12px 14px;
}

.ide-step-module-name {
  color: #fafafa;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.ide-step-module-desc {
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.ide-step-module-files {
  color: var(--text-tertiary);
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
}

.ide-step-spec-box {
  overflow-y: auto;
  color: var(--text-secondary);
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  max-height: 340px;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.7;
}

.ide-step-ticket {
  display: flex;
  background: #ffffff05;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  flex-wrap: wrap;
  align-items:  center;
  gap: 8px;
  padding: 10px 14px;
}

.ide-step-ticket-summary {
  color: #fafafa;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.ide-step-complete-banner {
  display: flex;
  background: #ffffff0f;
  border: 1px solid #fff3;
  border-radius: 10px;
  align-items:  center;
  gap: 14px;
  padding: 16px 20px;
}

.ide-step-complete-check {
  color: #e4e4e7;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
}

.ide-step-gen-row {
  display: flex;
  border-radius: 8px;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  transition: background .12s;
}

.ide-step-gen-row.clickable {
  cursor: pointer;
}

.ide-step-gen-row.clickable:hover {
  background: #ffffff0a;
}

.ide-step-gen-icon {
  flex-shrink: 0;
  font-size: 12px;
}

.ide-step-gen-icon.completed {
  color: #e4e4e7;
}

.ide-step-gen-icon.generating {
  color: #fff;
}

.ide-step-gen-icon.failed {
  color: #a1a1aa;
}

.ide-step-gen-icon.pending {
  color: #52525b;
}

.ide-step-gen-summary {
  color: #fff;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
}

.ide-step-gen-files {
  color: var(--text-tertiary);
  text-align: right;
  margin-left: auto;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
}

.tk-count {
  color: #52525b;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
}

.tk-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tk-epic-group {
  overflow: hidden;
  background: #ffffff05;
  border: 1px solid #ffffff12;
  border-radius: 10px;
}

.tk-epic-header {
  display: flex;
  border-bottom: 1px solid #ffffff0f;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  padding: 12px 16px;
}

.tk-epic-left {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: 8px;
  min-width: 0;
}

.tk-epic-right {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
}

.tk-epic-title {
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}

.tk-task-count {
  color: #71717a;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.tk-badge {
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

.tk-badge.epic {
  color: #a78bfa;
  background: #8b5cf626;
}

.tk-badge.task, .tk-badge.sub-task {
  color: #60a5fa;
  background: #3b82f61f;
}

.tk-badge.story {
  color: #34d399;
  background: #10b9811f;
}

.tk-badge.bug {
  color: #f87171;
  background: #ef44441f;
}

.tk-badge.tasks {
  color: #a1a1aa;
  background: #ffffff0f;
}

.tk-jira-key {
  color: #71717a;
  flex-shrink: 0;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 600;
}

.tk-status {
  text-transform: capitalize;
  white-space: nowrap;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.tk-status.approved {
  color: #e4e4e7;
  background: #ffffff14;
}

.tk-status.pending, .tk-status.pending_review {
  color: #52525b;
  background: #ffffff0a;
}

.tk-status.rejected {
  color: #f87171;
  background: #ef44441a;
}

.tk-gen-status {
  white-space: nowrap;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.tk-gen-status.completed {
  color: #e4e4e7;
  background: #ffffff14;
}

.tk-gen-status.generating {
  color: #60a5fa;
  background: #3b82f61f;
}

.tk-gen-status.failed {
  color: #f87171;
  background: #ef44441a;
}

.tk-tasks {
  display: flex;
  flex-direction: column;
}

.tk-task-row {
  display: flex;
  border-bottom: 1px solid #ffffff0a;
  align-items:  center;
  gap: 8px;
  padding: 8px 16px 8px 20px;
  transition: background .12s;
}

.tk-task-row:last-child {
  border-bottom: none;
}

.tk-task-row.clickable {
  cursor: pointer;
}

.tk-task-row.clickable:hover {
  background: #ffffff08;
}

.tk-task-icon {
  text-align: center;
  flex-shrink: 0;
  width: 16px;
  font-size: 11px;
}

.tk-task-icon.completed {
  color: #e4e4e7;
}

.tk-task-icon.generating {
  color: #60a5fa;
}

.tk-task-icon.failed {
  color: #f87171;
}

.tk-task-icon.pending {
  color: #3f3f46;
}

.tk-task-title {
  color: #a1a1aa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.tk-task-row.clickable:hover .tk-task-title {
  color: #fafafa;
}

.scan-file-badge {
  color: #a1a1aa;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}

.ide-timeline-step:before {
  content: "";
  position: absolute;
  background: #ffffff14;
  width: 1.5px;
  top: 34px;
  bottom: -1px;
  left: 23px;
}

.ide-timeline-step:last-child:before {
  display: none;
}

.ide-timeline-step-header {
  display: flex;
  align-items:  center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.ide-timeline-icon {
  display: inline-flex;
  position: relative;
  z-index: 1;
  border-radius: 9999px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 20px;
  height: 20px;
  transition: all .2s;
  font-size: 10px;
  font-weight: 700;
}

.ide-timeline-icon.pending {
  color: #52525b;
  background: #ffffff08;
  border: 1.5px solid #ffffff1a;
}

.ide-timeline-icon.active {
  color: #fff;
  animation: idePulse 2s ease-in-out infinite;
  background: #ffffff1a;
  border: 1.5px solid #fff3;
}

.ide-timeline-icon.completed {
  color: #e4e4e7;
  background: #ffffff1a;
  border: 1.5px solid #fff3;
}

.ide-timeline-icon.failed {
  color: #a1a1aa;
  background: #ffffff1a;
  border: 1.5px solid #fff3;
}

.ide-timeline-step-label {
  color: #fafafa;
}

.ide-timeline-step-label.pending {
  color: #52525b;
}

.ide-timeline-step-meta {
  color: #71717a;
  margin-top: 3px;
  padding-left: 28px;
  font-size: 12px;
  line-height: 1.4;
}

.ide-timeline-tickets-section {
  display: flex;
  border-top: 1px solid #ffffff14;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ide-timeline-tickets-title {
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 600;
}

.ide-timeline-tickets-list {
  overflow-y: auto;
  flex: 1;
  padding: 2px 6px 12px;
}

.ide-timeline-ticket {
  display: flex;
  border-radius: 6px;
  align-items:  center;
  gap: 8px;
  padding: 5px 8px;
  transition: all .15s;
  font-size: 12px;
}

.ide-timeline-ticket.clickable {
  cursor: pointer;
}

.ide-timeline-ticket.clickable:hover {
  background: #ffffff0d;
}

.ide-timeline-ticket.clickable:active {
  background: #ffffff14;
  transform: scale(.99);
}

.ide-timeline-ticket-icon {
  flex-shrink: 0;
  font-size: 8px;
  line-height: 1;
}

.ide-timeline-ticket-icon.completed {
  color: #e4e4e7;
}

.ide-timeline-ticket-icon.generating, .ide-timeline-ticket-icon.failed {
  color: #a1a1aa;
}

.ide-timeline-ticket-icon.pending {
  color: #ffffff1a;
}

.ide-timeline-ticket-name {
  color: #71717a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ide-timeline-ticket.clickable:hover .ide-timeline-ticket-name {
  color: #fafafa;
}

.ide-timeline-ticket-files {
  color: #a1a1aa;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.btn-open-ide {
  display: inline-flex;
  color: #fafafa;
  cursor: pointer;
  background: #ffffff08;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 6px 14px;
  transition: all .2s;
  font-size: 13px;
  font-weight: 500;
}

.btn-open-ide:hover {
  background: #ffffff0d;
  border-color: #ffffff4d;
}

.ide-resize-handle {
  cursor: ns-resize;
  position: relative;
  background: none;
  height: 4px;
}

.ide-resize-handle:after {
  content: "";
  position: absolute;
  background: none;
  border-radius: 9999px;
  width: 40px;
  height: 3px;
  transition: background .2s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ide-resize-handle:hover:after {
  background: #ffffff1a;
}

.ide-resize-handle:active:after {
  background: #fff;
}

.cs-overlay {
  position: fixed;
  z-index: 999;
  color: #fafafa;
  display: flex;
  background: #0a0a0a;
  flex-direction: column;
  inset: 0;
}

.cs-topbar {
  display: flex;
  background: #111;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  height: 44px;
  padding: 0 14px;
}

.cs-topbar-left {
  display: flex;
  align-items:  center;
  gap: 10px;
  min-width: 0;
}

.cs-topbar-right {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 8px;
}

.cs-topbar-back {
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  align-items:  center;
  gap: 5px;
  padding: 5px 10px;
  transition: all .2s;
  font-size: 13px;
  font-weight: 500;
}

.cs-topbar-back:hover {
  color: #fafafa;
  background: #ffffff0d;
  border-color: #ffffff1a;
}

.cs-topbar-sep {
  color: #ffffff1a;
  user-select: none;
  font-size: 14px;
  font-weight: 300;
}

.cs-topbar-title {
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
}

.cs-topbar-stats {
  color: #a1a1aa;
  white-space: nowrap;
  background: #ffffff1f;
  border: 1px solid #fff3;
  border-radius: 9999px;
  padding: 3px 10px;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 500;
}

.cs-topbar-btn {
  cursor: pointer;
  color: #fafafa;
  background: #ffffff08;
  border: 1px solid #ffffff26;
  border-radius: 8px;
  padding: 5px 14px;
  transition: all .2s;
  font-size: 12px;
  font-weight: 600;
}

.cs-topbar-btn:hover {
  background: #ffffff14;
  border-color: #ffffff40;
}

.cs-topbar-btn.primary {
  color: #0a0a0a;
  background: #fff;
  border-color: #fff;
}

.cs-topbar-btn.primary:hover {
  background: #d4d4d8;
  box-shadow: 0 0 15px #ffffff26;
}

.cs-layout {
  display: grid;
  grid-template-columns: 220px 1fr 45%;
  overflow: hidden;
  flex: 1;
}

.cs-chat-sidebar {
  display: flex;
  overflow: hidden;
  background: #111;
  border-right: 1px solid #ffffff14;
  flex-direction: column;
}

.cs-chat-sidebar-top {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  padding: 10px 10px 6px;
}

.cs-chat-search-input {
  color: #fafafa;
  outline: none;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  width: 100%;
  padding: 6px 10px;
  transition: border-color .15s;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
}

.cs-chat-search-input::placeholder {
  color: #52525b;
}

.cs-chat-search-input:focus {
  border-color: #fff3;
}

.cs-new-chat-btn {
  color: #71717a;
  cursor: pointer;
  text-align: left;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  width: 100%;
  padding: 6px 6px 6px 10px;
  transition: all .15s;
  font-size: 12px;
  font-weight: 500;
}

.cs-new-chat-btn:hover {
  color: #fafafa;
  background: #ffffff0f;
  border-color: #ffffff26;
}

.cs-chat-section-label {
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #52525b;
  flex-shrink: 0;
  padding: 10px 12px 4px;
  font-size: 10px;
  font-weight: 700;
}

.cs-chat-list {
  overflow-y: auto;
  flex: 1;
  padding: 2px 6px;
}

.cs-chat-item {
  display: flex;
  cursor: pointer;
  border-radius: 8px;
  align-items:  flex-start;
  gap: 8px;
  margin-bottom: 1px;
  padding: 8px;
  transition: all .12s;
}

.cs-chat-item:hover {
  background: #ffffff0d;
}

.cs-chat-item.active {
  background: #ffffff14;
}

.cs-chat-dot {
  border-radius: 9999px;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  transition: all .2s;
}

.cs-chat-dot.pending {
  background: #ffffff1a;
}

.cs-chat-dot.active {
  animation: idePulse 2s ease-in-out infinite;
  background: #fff;
}

.cs-chat-dot.completed {
  background: #fff6;
}

.cs-chat-dot.failed {
  background: #71717a;
}

.cs-chat-item-body {
  flex: 1;
  min-width: 0;
}

.cs-chat-item-label {
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}

.cs-chat-item.active .cs-chat-item-label, .cs-chat-item:hover .cs-chat-item-label {
  color: #fafafa;
}

.cs-chat-item-meta {
  color: #52525b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  font-size: 11px;
}

.cs-chat-item-badge {
  color: #71717a;
  display: inline-block;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  margin-top: 4px;
  padding: 1px 7px;
  font-family: SFMono-Regular, monospace;
  font-size: 10px;
  font-weight: 600;
}

.cs-sidebar-tabs {
  display: flex;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  gap: 0;
  padding: 0 10px;
}

.cs-sidebar-tab {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #52525b;
  cursor: pointer;
  display: inline-flex;
  background: none;
  border: none;
  border-bottom: 2px solid #0000;
  flex: 1;
  justify-content: center;
  align-items:  center;
  gap: 5px;
  padding: 7px 0;
  transition: all .15s;
  font-size: 11px;
  font-weight: 600;
}

.cs-sidebar-tab:hover {
  color: #a1a1aa;
}

.cs-sidebar-tab.active {
  color: #fafafa;
  border-bottom-color: #fff;
}

.cs-sidebar-tab-count {
  text-align: center;
  background: #ffffff0f;
  border-radius: 9999px;
  min-width: 16px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
}

[data-theme="light"] .cs-chat-sidebar {
  border-right: 1px solid var(--border-primary);
  background: #fff;
}

[data-theme="light"] .cs-chat-search-input {
  border-color: var(--border-primary);
  color: var(--text-primary);
  background: #fff;
}

[data-theme="light"] .cs-chat-search-input::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .cs-chat-search-input:focus {
  border-color: var(--btn-primary-bg);
}

[data-theme="light"] .cs-sidebar-tabs {
  border-bottom-color: var(--border-primary);
  background: #f7fbfa;
}

[data-theme="light"] .cs-sidebar-tab {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-sidebar-tab:hover {
  color: var(--text-primary);
}

[data-theme="light"] .cs-sidebar-tab.active {
  color: var(--btn-primary-bg);
  border-bottom-color: var(--btn-primary-bg);
}

[data-theme="light"] .cs-sidebar-tab-count {
  background: var(--surface-1);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.cs-files-tree {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.cs-ticket-section {
  display: flex;
  position: relative;
  border-top: 1px solid #ffffff14;
  flex-direction: column;
  flex-shrink: 0;
}

.cs-ticket-section-title {
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #52525b;
  flex-shrink: 0;
  padding: 10px 12px 4px;
  font-size: 10px;
  font-weight: 700;
}

.cs-ticket-list {
  overflow-y: auto;
  flex: 1;
  padding: 2px 6px 8px;
}

.cs-ticket-item {
  display: flex;
  border-radius: 6px;
  align-items:  center;
  gap: 7px;
  padding: 4px 8px;
  transition: all .12s;
  font-size: 12px;
}

.cs-ticket-item.clickable {
  cursor: pointer;
}

.cs-ticket-item.clickable:hover {
  background: #ffffff0d;
}

.cs-ticket-item-icon {
  flex-shrink: 0;
  font-size: 8px;
  line-height: 1;
}

.cs-ticket-item-icon.completed {
  color: #e4e4e7;
}

.cs-ticket-item-icon.generating, .cs-ticket-item-icon.failed {
  color: #a1a1aa;
}

.cs-ticket-item-icon.pending {
  color: #ffffff1a;
}

.cs-ticket-item-name {
  color: #71717a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cs-ticket-item.clickable:hover .cs-ticket-item-name {
  color: #fafafa;
}

.cs-ticket-item-files {
  color: #a1a1aa;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
}

.cs-ticket-resize-handle {
  cursor: ns-resize;
  position: relative;
  border-top: 1px solid #ffffff14;
  flex-shrink: 0;
  height: 6px;
}

.cs-ticket-resize-handle:after {
  content: "";
  position: absolute;
  background: #ffffff14;
  border-radius: 9999px;
  width: 24px;
  height: 3px;
  transition: background .2s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cs-ticket-resize-handle:hover:after {
  background: #fff3;
}

.cs-ticket-resize-handle:active:after {
  background: #fff;
}

.cs-chat-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cs-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}

.cs-chat-msg {
  display: flex;
  align-items:  flex-start;
  gap: 10px;
  max-width: 100%;
}

.cs-chat-msg-avatar {
  display: flex;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 700;
}

.cs-chat-msg.user .cs-chat-msg-avatar {
  color: #fafafa;
  background: #ffffff14;
}

.cs-chat-msg.assistant .cs-chat-msg-avatar {
  color: #a1a1aa;
  background: #ffffff0a;
  border: 1px solid #ffffff1a;
}

.cs-chat-msg-body {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  flex: 0 auto;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 0;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
}

.cs-chat-msg-role {
  color: #71717a;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
}

.cs-chat-msg-content {
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.65;
}

.cs-chat-msg-content strong {
  color: #fafafa;
  font-weight: 600;
}

.cs-chat-msg-content code {
  color: #fff;
  background: #ffffff0d;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: SFMono-Regular, monospace;
  font-size: 12px;
}

.cs-chat-msg.user .cs-chat-msg-body {
  background: #ffffff0f;
  border-color: #ffffff1f;
  margin-left: auto;
}

.cs-chat-msg.assistant .cs-chat-msg-body {
  background: #ffffff05;
  border-color: #ffffff0f;
}

[data-theme="light"] .cs-chat-msg-body {
  background: var(--surface-1);
  border-color: var(--border-subtle);
}

[data-theme="light"] .cs-chat-msg.user .cs-chat-msg-body {
  background: var(--surface-2);
  border-color: var(--border-secondary);
}

[data-theme="light"] .cs-chat-msg.assistant .cs-chat-msg-body {
  border-color: var(--border-subtle);
  background: #fff;
}

[data-theme="light"] .cs-chat-msg-role {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-chat-msg-content {
  color: var(--text-secondary);
}

[data-theme="light"] .cs-chat-msg-content strong {
  color: var(--text-primary);
}

[data-theme="light"] .cs-chat-msg-content code {
  background: var(--surface-2);
  color: var(--text-primary);
}

.cs-bottom-input-active {
  color: #fafafa !important;
  cursor: text !important;
  background: #ffffff0d !important;
  border-color: #ffffff26 !important;
}

.cs-bottom-input-active:focus {
  border-color: #ffffff4d !important;
}

.cs-bottom-input-active::placeholder {
  color: #52525b !important;
}

.cs-chat-send-btn {
  color: #71717a;
  cursor: pointer;
  display: flex;
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  transition: all .15s;
}

.cs-chat-send-btn:hover:not(:disabled) {
  color: #fafafa;
  background: #ffffff1f;
  border-color: #fff3;
}

.cs-chat-send-btn:disabled {
  opacity: .3;
  cursor: default;
}

[data-theme="light"] .cs-bottom-input {
  border-color: var(--border-primary);
  color: var(--text-primary);
  cursor: text;
  background: #fff;
}

[data-theme="light"] .cs-bottom-input::placeholder {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-bottom-input-active {
  border-color: var(--border-secondary) !important;
  color: var(--text-primary) !important;
  background: #fff !important;
}

[data-theme="light"] .cs-bottom-input-active:focus {
  box-shadow: 0 0 0 3px #0f4f471f;
  border-color: var(--brand) !important;
}

[data-theme="light"] .cs-chat-send-btn {
  background: var(--surface-2);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .cs-chat-send-btn:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--text-primary);
  border-color: var(--border-secondary);
}

[data-theme="light"] .cs-conversation {
  border-right-color: var(--border-primary);
}

[data-theme="light"] .cs-editor-panel {
  border-left: 1px solid var(--border-primary);
}

.cs-conversation {
  display: flex;
  overflow: hidden;
  background: none;
  border-right: 1px solid #ffffff14;
  flex-direction: column;
}

.cs-conversation-body {
  overflow-y: auto;
  background: none;
  flex: 1;
  padding: 0;
}

.cs-conv-title {
  color: #fafafa;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.cs-conv-meta-card {
  display: flex;
  color: #71717a;
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  font-size: 12px;
}

.cs-conv-meta-sep {
  background: #ffffff14;
  width: 1px;
  height: 14px;
}

.cs-conv-content .ide-step-panel {
  animation: none;
  overflow: visible;
  height: auto;
  padding: 0;
}

.cs-conv-empty {
  display: flex;
  user-select: none;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  height: 100%;
  padding: 40px;
}

.cs-conv-empty-icon {
  color: #ffffff0f;
  font-family: SFMono-Regular, monospace;
  font-size: 36px;
  font-weight: 300;
}

.cs-conv-empty-text {
  color: #52525b;
  font-size: 15px;
  font-weight: 500;
}

.cs-conv-empty-sub {
  color: #3f3f46;
  text-align: center;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.6;
}

.cs-bottom-bar {
  display: flex;
  background: #111;
  border-top: 1px solid #ffffff14;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 14px;
}

.cs-bottom-stats-row {
  display: flex;
  align-items:  center;
  gap: 8px;
  font-size: 12px;
}

.cs-bottom-check {
  color: #e4e4e7;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.cs-bottom-file-stats {
  color: #a1a1aa;
  background: #ffffff1f;
  border: 1px solid #fff3;
  border-radius: 9999px;
  padding: 2px 8px;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
}

.cs-bottom-review-btn {
  color: #a1a1aa;
  cursor: pointer;
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  margin-left: auto;
  padding: 3px 10px;
  transition: all .15s;
  font-size: 11px;
  font-weight: 600;
}

.cs-bottom-review-btn:hover {
  color: #fafafa;
  background: #ffffff1a;
}

.cs-bottom-input-row {
  display: flex;
  align-items:  center;
  gap: 0;
}

.cs-bottom-input {
  color: #52525b;
  outline: none;
  cursor: default;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
}

.cs-bottom-meta-row {
  display: flex;
  color: #52525b;
  align-items:  center;
  gap: 8px;
  font-size: 11px;
}

.cs-bottom-agent-label {
  color: #71717a;
  font-weight: 600;
}

.cs-bottom-dots {
  display: flex;
  align-items:  center;
  gap: 3px;
  margin-left: 4px;
}

.cs-bottom-dot {
  border-radius: 9999px;
  width: 5px;
  height: 5px;
  transition: all .2s;
}

.cs-bottom-dot.pending {
  background: #ffffff14;
}

.cs-bottom-dot.active {
  animation: idePulse 2s ease-in-out infinite;
  background: #fff;
}

.cs-bottom-dot.completed {
  background: #ffffff4d;
}

.cs-bottom-dot.failed {
  background: #52525b;
}

[data-theme="light"] .cs-bottom-dot {
  border: 1px solid #0f4f474d;
  width: 7px;
  height: 7px;
}

[data-theme="light"] .cs-bottom-dot.pending {
  background: #0f4f474d;
}

[data-theme="light"] .cs-bottom-dot.active {
  background: #0f4f47;
  box-shadow: 0 0 10px #0f4f4780;
}

[data-theme="light"] .cs-bottom-dot.completed {
  background: #0f4f478c;
}

[data-theme="light"] .cs-bottom-dot.failed {
  background: #0f4f4773;
}

.cs-editor-panel {
  display: flex;
  overflow: hidden;
  background: #0a0a0a;
  flex-direction: column;
}

.cs-editor-tab-header {
  display: flex;
  background: #111;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  min-height: 36px;
  padding: 0 6px 0 0;
}

.cs-editor-tabs {
  display: flex;
  overflow-x: auto;
  flex: 1;
  align-items: stretch;
}

.cs-editor-tabs::-webkit-scrollbar {
  height: 0;
}

.cs-editor-tab-path {
  color: #52525b;
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items:  center;
  max-width: 260px;
  padding: 0 10px;
  font-family: SFMono-Regular, monospace;
  font-size: 11px;
}

.cs-show-changes-btn {
  color: #71717a;
  cursor: pointer;
  white-space: nowrap;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px 10px;
  transition: all .15s;
  font-size: 11px;
  font-weight: 500;
}

.cs-show-changes-btn:hover {
  color: #fafafa;
  background: #ffffff0f;
  border-color: #ffffff26;
}

.cs-review-overlay {
  position: fixed;
  z-index: 1000;
  display: flex;
  backdrop-filter: blur(4px);
  background: #000000b3;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.cs-review-modal {
  display: flex;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  flex-direction: column;
  width: 90vw;
  max-width: 900px;
  max-height: 80vh;
  box-shadow: 0 20px 60px #00000080;
}

.cs-review-header {
  display: flex;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items:  center;
  padding: 14px 18px;
}

.cs-review-title {
  color: #fafafa;
  font-size: 14px;
  font-weight: 600;
}

.cs-review-close {
  color: #71717a;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 18px;
}

.cs-review-close:hover {
  color: #fafafa;
}

.cs-review-body {
  overflow-y: auto;
  flex: 1;
}

.cs-review-summary {
  display: flex;
  color: #fafafa;
  background: #ffffff05;
  border-bottom: 1px solid #ffffff0f;
  flex-wrap: wrap;
  align-items:  center;
  gap: 4px;
  padding: 12px 18px;
  font-family: SFMono-Regular, IBM Plex Mono, monospace;
  font-size: 13px;
}

.cs-review-files {
  display: flex;
  flex-direction: column;
}

.cs-review-file {
  border-bottom: 1px solid #ffffff0f;
}

.cs-review-file-header {
  display: flex;
  color: #fafafa;
  background: #ffffff05;
  align-items:  center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 13px;
}

.cs-review-file-status {
  display: flex;
  border-radius: 3px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
}

.cs-review-file-status.added {
  color: #7ee787;
  background: #7ee78726;
}

.cs-review-file-status.removed {
  color: #f87171;
  background: #f8717126;
}

.cs-review-file-status.modified {
  color: #fbbf24;
  background: #fbbf2426;
}

.cs-review-file-status.renamed {
  color: #60a5fa;
  background: #60a5fa26;
}

.cs-review-file-name {
  font-family: SFMono-Regular, IBM Plex Mono, monospace;
  font-size: 12px;
}

.cs-review-patch {
  overflow-x: auto;
  color: #a1a1aa;
  white-space: pre;
  overflow-y: auto;
  background: #09090b;
  max-height: 300px;
  margin: 0;
  padding: 12px 18px;
  font-family: SFMono-Regular, IBM Plex Mono, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.cs-editor-body {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.plan-spin {
  animation: plan-spin 2s linear infinite;
}

.plan-container {
  overflow: hidden;
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 12px;
}

.plan-header {
  display: flex;
  border-bottom: 1px solid #ffffff14;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
}

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

.plan-header-title {
  color: #fafafa;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 13px;
  font-weight: 600;
}

.plan-header-count {
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
}

.plan-progress-bar {
  overflow: hidden;
  background: #ffffff14;
  border-radius: 9999px;
  width: 100%;
  height: 3px;
}

.plan-progress-fill {
  background: linear-gradient(90deg, #fff, #e4e4e7);
  border-radius: 9999px;
  height: 100%;
}

[data-theme="light"] .plan-progress-bar {
  background: #0f4f4733;
}

[data-theme="light"] .plan-progress-fill {
  background: linear-gradient(90deg, #0f4f47, #1a6b61);
}

.plan-tasks {
  padding: 6px;
}

.plan-task {
  overflow: hidden;
  border-radius: 8px;
}

.plan-task + .plan-task {
  margin-top: 2px;
}

.plan-task-row {
  display: flex;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 8px;
  align-items:  center;
  gap: 10px;
  padding: 10px 12px;
  transition: all .15s;
}

.plan-task-row:hover {
  background: #ffffff0a;
  border-color: #ffffff12;
}

.plan-task-row.expanded {
  background: #ffffff05;
  border-color: #ffffff0f;
}

.plan-task-row:hover .plan-task-title {
  color: #fafafa;
}

.plan-task-icon {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
}

.plan-task-content {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: 8px;
  min-width: 0;
}

.plan-task-title {
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
}

.plan-task-title.done {
  color: #71717a;
  text-decoration: line-through;
}

.plan-task-sub-count {
  color: #52525b;
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 500;
}

.plan-task-deps, .plan-task-tools {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.plan-dep-badge, .plan-tool-badge {
  white-space: nowrap;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.plan-dep-badge {
  color: #fff;
  background: #ffffff14;
  border: 1px solid #ffffff26;
}

.plan-tool-badge {
  color: #a1a1aa;
  background: #ffffff08;
  border: 1px solid #ffffff14;
}

.plan-status-badge {
  text-transform: capitalize;
  white-space: nowrap;
  border-radius: 9999px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
}

.plan-status-badge.completed {
  color: #e4e4e7;
  background: #ffffff1a;
}

.plan-status-badge.in-progress {
  color: #fff;
  background: #ffffff1a;
}

.plan-status-badge.pending {
  color: #71717a;
  background: #ffffff0d;
}

.plan-status-badge.failed, .plan-status-badge.need-help {
  color: #a1a1aa;
  background: #ffffff1a;
}

.plan-chevron {
  color: #52525b;
  display: flex;
  flex-shrink: 0;
}

.plan-task-expanded {
  padding: 0 12px 12px 40px;
}

.plan-task-desc {
  color: #71717a;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.plan-subtasks {
  position: relative;
  margin-bottom: 8px;
}

.plan-subtask-line {
  position: absolute;
  background: #ffffff14;
  border-radius: 9999px;
  width: 1.5px;
  top: 4px;
  bottom: 4px;
  left: 6px;
}

.plan-subtask {
  display: flex;
  position: relative;
  align-items:  center;
  gap: 8px;
  padding: 4px 0 4px 18px;
}

.plan-subtask:before {
  content: "";
  position: absolute;
  background: #ffffff14;
  width: 8px;
  height: 1.5px;
  top: 50%;
  left: 6px;
}

.plan-subtask-icon {
  display: flex;
  flex-shrink: 0;
}

.plan-subtask-title {
  color: #a1a1aa;
  font-size: 13px;
}

.plan-subtask-title.done {
  color: #52525b;
  text-decoration: line-through;
}

.plan-task-content-area {
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  margin-top: 8px;
  padding: 12px;
}

.plan-task-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.plan-action-btn {
  display: inline-flex;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 7px 16px;
  transition: all .2s;
  font-size: 13px;
  font-weight: 600;
}

.plan-action-btn.primary {
  color: #0a0a0a;
  background: #fff;
}

.plan-action-btn.primary:hover {
  background: #d4d4d8;
  box-shadow: 0 0 20px #fff3;
}

.plan-action-btn.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.plan-action-btn.danger {
  color: #a1a1aa;
  background: #ffffff1a;
  border: 1px solid #fff3;
}

.plan-action-btn.danger:hover {
  background: #ffffff26;
}

.plan-btn-spinner {
  animation: plan-spin .6s linear infinite;
  border: 2px solid #0a0a0a4d;
  border-top-color: #0a0a0a;
  border-radius: 50%;
  width: 14px;
  height: 14px;
}

.ws-view {
  display: flex;
  background: var(--bg-primary);
  flex-direction: column;
  height: 100vh;
  margin: -32px;
}

.ws-header {
  display: flex;
  background: #0f0f10;
  border: 1px solid #ffffff14;
  border-left: none;
  border-right: none;
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  height: 56px;
  padding: 12px 22px;
  box-shadow: 0 10px 24px #0006;
}

.ws-header-left {
  display: flex;
  flex: 1;
  align-items:  center;
  gap: 12px;
  min-width: 0;
}

.ws-back {
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  background: #161616;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  align-items:  center;
  padding: 6px;
  transition: all .15s;
}

.ws-back:hover {
  color: var(--text-primary);
  background: #1c1c1c;
  border-color: #ffffff2e;
}

.ws-header-title {
  color: var(--text-primary);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
}

.ws-arrow {
  color: var(--text-primary);
  letter-spacing: .02em;
  display: inline-flex;
  background: none;
  border: none;
  border-radius: 0;
  align-items:  center;
  padding: 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.ws-header-left .migration-badge.source-abap {
  margin-left: auto;
}

.ws-header-left .migration-badge.target-pyspark {
  margin-right: auto;
}

.ws-header-right {
  display: flex;
  flex-shrink: 0;
  align-items:  center;
  gap: 10px;
}

.ws-status-pill {
  display: inline-flex;
  text-transform: capitalize;
  border: 1px solid #ffffff1f;
  border-radius: 9999px;
  align-items:  center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
}

.ws-status-pill.draft {
  color: #a1a1aa;
  background: #1a1a1a;
}

.ws-status-pill.scanning, .ws-status-pill.analyzing, .ws-status-pill.generating_spec, .ws-status-pill.generating {
  color: #fff;
  background: #202020;
  border-color: #fff3;
}

.ws-status-pill.analyzed, .ws-status-pill.spec_review, .ws-status-pill.tickets_review {
  color: #18181b;
  background: #e4e4e7;
  border-color: #e4e4e7;
}

.ws-status-pill.approved, .ws-status-pill.completed {
  color: #bbf7d0;
  background: #22c55e2e;
  border-color: #22c55e59;
}

.ws-status-pill.failed {
  color: #fca5a5;
  background: #f871712e;
  border-color: #f8717159;
}

.ws-status-pulse {
  animation: idePulse 2s ease-in-out infinite;
  background: currentColor;
  border-radius: 9999px;
  width: 6px;
  height: 6px;
}

.ws-btn-ide {
  display: inline-flex;
  color: #0a0a0a;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  align-items:  center;
  gap: 5px;
  padding: 6px 14px;
  transition: all .2s;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 16px #00000040;
}

.ws-btn-ide:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

[data-theme="light"] .ws-btn-ide {
  color: #fff;
  background: #0f4f47;
  border-color: #0f4f47;
  box-shadow: 0 8px 18px #0f4f4740;
}

[data-theme="light"] .ws-btn-ide:hover {
  background: #0a3830;
}

.ws-btn-delete {
  color: #f87171;
  cursor: pointer;
  display: flex;
  background: #f871711f;
  border: 1px solid #f8717159;
  border-radius: 8px;
  align-items:  center;
  padding: 6px 8px;
  transition: all .15s;
}

.ws-btn-delete:hover {
  color: #f87171;
  background: #f8717138;
  border-color: #f8717199;
}

.migration-badge {
  display: inline-flex;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #e5e7eb;
  background: #18181b;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  align-items:  center;
  gap: 6px;
  padding: 4px 10px;
  font-family: IBM Plex Sans, Inter, Segoe UI, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.migration-badge:before {
  content: "";
  opacity: .75;
  background: currentColor;
  border-radius: 999px;
  width: 6px;
  height: 6px;
}

.migration-badge.source-abap {
  color: #93c5fd;
  background: #1b1b1f;
  border-color: #93c5fd59;
}

.migration-badge.target-pyspark {
  color: #86efac;
  background: #1b1f1c;
  border-color: #86efac59;
}

[data-theme="light"] .migration-badge {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .migration-badge.source-abap {
  color: #1d4ed8;
  background: #e2e8f0;
  border-color: #94a3b8;
}

[data-theme="light"] .migration-badge.target-pyspark {
  color: #15803d;
  background: #ecfdf3;
  border-color: #86efac;
}

[data-theme="light"] .ws-status-pill.tickets_review {
  color: #334155;
  background: #e5e7eb;
  border-color: #cbd5e1;
}

[data-theme="light"] .ws-header {
  border: 1px solid var(--border-primary);
  background: #fff;
  border-left: none;
  border-right: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px #0f4f471f;
}

[data-theme="light"] .ws-back {
  color: var(--text-secondary);
  background: #f1f5f9;
  border-color: #0f4f472e;
}

[data-theme="light"] .ws-back:hover {
  color: var(--text-primary);
  background: #e2e8f0;
  border-color: #0f4f474d;
}

[data-theme="light"] .ws-arrow {
  color: #0f4f47;
}

[data-theme="light"] .ws-status-pill {
  border-color: #0f4f4733;
}

[data-theme="light"] .ws-status-pill.draft {
  color: var(--text-secondary);
  background: #f1f5f9;
}

[data-theme="light"] .ws-status-pill.scanning, [data-theme="light"] .ws-status-pill.analyzing, [data-theme="light"] .ws-status-pill.generating_spec, [data-theme="light"] .ws-status-pill.generating {
  color: #0f4f47;
  background: #0f4f471f;
  border-color: #0f4f474d;
}

[data-theme="light"] .ws-status-pill.analyzed, [data-theme="light"] .ws-status-pill.spec_review, [data-theme="light"] .ws-status-pill.tickets_review {
  color: #0f4f47;
  background: #e2e8f0;
  border-color: #0f4f4733;
}

[data-theme="light"] .ws-status-pill.approved, [data-theme="light"] .ws-status-pill.completed {
  color: #15803d;
  background: #22c55e29;
  border-color: #22c55e59;
}

[data-theme="light"] .ws-status-pill.failed {
  color: #b91c1c;
  background: #ef44441f;
  border-color: #ef444447;
}

[data-theme="light"] .ws-btn-delete {
  color: #b91c1c;
  background: #ef44441f;
  border-color: #ef444440;
}

[data-theme="light"] .ws-btn-delete:hover {
  color: #991b1b;
  background: #ef444433;
  border-color: #ef444466;
}

.ws-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  overflow: hidden;
  flex: 1;
}

.ws-center {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
}

.ws-log {
  overflow: hidden;
  background: #ffffff05;
  border: 1px solid #ffffff14;
  border-radius: 8px;
}

.ws-log-header {
  display: flex;
  color: var(--text-tertiary);
  border-bottom: 1px solid #ffffff14;
  align-items:  center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}

.ws-log-count {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  margin-left: auto;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
}

.ws-log-body {
  overflow-y: auto;
  max-height: 200px;
  padding: 6px 0;
  font-family: SFMono-Regular, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.ws-log-line {
  display: flex;
  gap: 10px;
  padding: 1px 14px;
}

.ws-log-time {
  color: #fff;
  opacity: .5;
  flex-shrink: 0;
  min-width: 68px;
  font-size: 11px;
}

.ws-log-line.info .ws-log-msg, .ws-log-line.warn .ws-log-msg {
  color: #a1a1aa;
}

.ws-log-line.error .ws-log-msg {
  color: #a1a1aa;
  font-weight: 500;
}

.ws-right {
  overflow-y: auto;
  display: flex;
  background: #111;
  border-left: 1px solid #ffffff14;
  flex-direction: column;
}

.ws-right-header {
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #ffffff14;
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
}

.ws-right-section {
  padding: 8px 0;
}

.ws-right-section-title {
  color: var(--text-tertiary);
  display: flex;
  align-items:  center;
  gap: 6px;
  padding: 4px 16px 6px;
  font-size: 11px;
  font-weight: 600;
}

.ws-right-count {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 9999px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
}

.ws-file-item, .ws-ticket-item {
  display: flex;
  color: var(--text-secondary);
  cursor: default;
  align-items:  center;
  gap: 8px;
  padding: 4px 16px;
  transition: background .12s;
  font-size: 12px;
}

.ws-file-item:hover, .ws-ticket-item:hover {
  background: #ffffff08;
}

.ws-file-dot, .ws-ticket-dot {
  border-radius: 9999px;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.ws-file-dot.completed, .ws-ticket-dot.completed {
  background: #e4e4e7;
}

.ws-file-dot.generating, .ws-ticket-dot.generating {
  background: #fff;
}

.ws-file-dot.pending, .ws-ticket-dot.pending {
  background: #ffffff1a;
}

.ws-file-dot.failed, .ws-ticket-dot.failed {
  background: #a1a1aa;
}

.ws-file-name, .ws-ticket-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.ws-ticket-key {
  color: #fff;
  flex-shrink: 0;
  font-family: SFMono-Regular, monospace;
  font-size: 10px;
  font-weight: 600;
}

.ws-right-empty {
  color: var(--text-tertiary);
  padding: 24px 16px;
  font-size: 12px;
  line-height: 1.6;
}

.ws-footer {
  display: flex;
  background: #111;
  border-top: 1px solid #ffffff14;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  height: 40px;
  padding: 8px 20px;
}

.ws-footer-input {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  flex: 1;
  padding: 5px 12px;
}

.ws-footer-text {
  color: var(--text-tertiary);
  font-size: 12px;
}

.ws-footer-meta {
  display: flex;
  color: var(--text-tertiary);
  align-items:  center;
  gap: 6px;
  margin-left: 12px;
  font-size: 11px;
  font-weight: 500;
}

.ws-footer-dot {
  background: var(--text-tertiary);
  border-radius: 9999px;
  width: 4px;
  height: 4px;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border: none;
}

.btn-primary:hover:not(:disabled) {
  opacity: .9;
}

.btn-outline {
  color: var(--btn-outline-text);
  border: 1px solid var(--btn-outline-border);
  background: var(--btn-outline-bg);
}

.btn-outline:hover:not(:disabled) {
  background: var(--btn-outline-hover-bg);
  color: var(--btn-outline-hover-text);
}

.btn-secondary {
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  background: none;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
}

.btn-ghost {
  color: var(--btn-ghost-text);
  background: none;
  border: 1px solid #0000;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--btn-ghost-hover-bg);
  color: var(--btn-ghost-hover-text);
}

.btn-destructive {
  color: #ef4444;
  border: 1px solid var(--border-subtle);
  background: none;
}

.btn-destructive:hover:not(:disabled) {
  background: #ef44441f;
  border-color: #ef4444;
}

.btn-danger-outline {
  color: var(--btn-outline-text);
  border: 1px solid var(--btn-outline-border);
  background: var(--btn-outline-bg);
}

.btn-danger-outline:hover:not(:disabled) {
  background: var(--btn-outline-hover-bg);
}

.btn-link {
  color: var(--text-primary);
  background: none;
  border: none;
}

.btn-link:hover {
  text-decoration: underline;
}

[data-theme="dark"] .btn-secondary {
  color: var(--text-primary);
  background: none;
  border: 1px solid #ffffff1f;
}

[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
  background: #ffffff0f;
  border-color: #fff3;
}

[data-theme="dark"] .btn-destructive {
  color: #ef4444;
  background: none;
  border: 1px solid #ef444480;
}

[data-theme="dark"] .btn-destructive:hover:not(:disabled) {
  background: #ef444426;
  border-color: #ef4444b3;
}

[data-theme="dark"] .btn-primary {
  background: var(--accent-primary);
  color: var(--btn-primary-text);
  border: none;
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

[data-theme="light"] .btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  box-shadow: 0 4px 14px var(--btn-primary-shadow);
}

[data-theme="light"] .btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  filter: none;
}

[data-theme="light"] .btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  background: none;
}

[data-theme="light"] .btn-secondary:hover:not(:disabled) {
  background: var(--surface-1);
  border-color: var(--border-secondary);
}

.input-field {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s, background .2s;
}

.input-field::placeholder {
  color: var(--input-placeholder);
}

.input-field:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 1px var(--input-focus-shadow);
  outline: none;
}

.theme-toggle-wrap {
  display: flex;
  justify-content: center;
  align-items:  center;
  padding: 10px 12px;
}

.theme-checkbox {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.theme-toggle-label {
  background: var(--surface-3);
  border: 1px solid var(--border-primary);
  position: relative;
  cursor: pointer;
  display: flex;
  border-radius: 50px;
  justify-content: space-between;
  align-items:  center;
  width: 46px;
  height: 24px;
  padding: 0 5px;
  transition: background .2s, border-color .2s;
}

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

.theme-icon.moon {
  color: #a78bfa;
}

.theme-icon.sun {
  color: #fbbf24;
}

.theme-ball {
  background: var(--text-primary);
  position: absolute;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: transform .2s linear, background .2s;
  top: 3px;
  left: 4px;
}

.theme-checkbox:checked + .theme-toggle-label .theme-ball {
  transform: translateX(22px);
}

[data-theme="light"] .border-white\/\[0\.07\] {
  border-color: #00000014 !important;
}

[data-theme="light"] .border-white\/\[0\.15\] {
  border-color: #00000026 !important;
}

[data-theme="light"] .bg-white\/\[0\.025\] {
  background: #fff !important;
}

[data-theme="light"] .bg-white\/\[0\.04\] {
  background: #00000008 !important;
}

[data-theme="light"] .bg-white\/\[0\.06\] {
  background: #0000000a !important;
}

[data-theme="light"] .bg-white\/\[0\.08\] {
  background: #0000000d !important;
}

[data-theme="light"] .text-\[\#FAFAFA\] {
  color: var(--text-primary) !important;
}

[data-theme="light"] .text-\[\#A1A1AA\] {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .text-\[\#71717A\] {
  color: var(--text-tertiary) !important;
}

[data-theme="light"] .text-\[\#52525B\] {
  color: var(--text-muted) !important;
}

[data-theme="light"] .text-\[\#D4D4D8\] {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .bg-\[\#0a0a0a\] {
  background: var(--bg-secondary) !important;
}

[data-theme="light"] .bg-\[\#111111\], [data-theme="light"] .bg-\[\#27272A\] {
  background: var(--bg-tertiary) !important;
}

[data-theme="light"] .border-\[rgba\(255\,255\,255\,0\.05\)\] {
  border-color: var(--border-subtle) !important;
}

[data-theme="light"] .border-\[rgba\(255\,255\,255\,0\.08\)\], [data-theme="light"] .border-\[rgba\(255\,255\,255\,0\.1\)\] {
  border-color: var(--border-primary) !important;
}

[data-theme="light"] .border-\[rgba\(255\,255\,255\,0\.15\)\] {
  border-color: var(--border-secondary) !important;
}

[data-theme="light"] .pipeline-builder {
  background: #fff;
  border-color: #00000017;
}

[data-theme="light"] .pipeline-steps-panel {
  background: #f9fafb;
  border-color: #00000014;
}

[data-theme="light"] .pipeline-dag {
  background: #f8f8f8;
}

[data-theme="light"] .pipeline-flow .react-flow__background {
  fill: #f8f8f8;
}

[data-theme="light"] .react-flow__minimap {
  background: #f4f4f5 !important;
}

[data-theme="light"] .pipeline-builder-tabs, [data-theme="light"] .artifact-tabs {
  background: #f4f4f5;
  border-color: #00000017;
}

[data-theme="light"] .export-toolbar {
  background: #f9fafb;
  border-color: #00000014;
}

[data-theme="light"] .chat-sidebar {
  background: #fff;
  border-left: 1px solid #00000017;
}

[data-theme="light"] .bg-background\/40 {
  background-color: #ffffffd9 !important;
}

[data-theme="light"] .bg-background\/50 {
  background-color: #ffffffeb !important;
}

[data-theme="light"] .bg-background\/60 {
  background-color: #fffffff0 !important;
}

[data-theme="light"] .bg-background\/90 {
  background-color: #fffffffa !important;
}

[data-theme="light"] .bg-muted {
  background-color: #0000001a !important;
}

[data-theme="light"] .bg-white\/5 {
  background-color: #0000000a !important;
}

[data-theme="light"] .bg-white\/10 {
  background-color: #0000000f !important;
}

[data-theme="light"] .bg-white\/15 {
  background-color: #00000012 !important;
}

[data-theme="light"] .bg-white\/20 {
  background-color: #00000014 !important;
}

[data-theme="light"] .from-white\/80 {
  --tw-gradient-from: #0f4f47d9 !important;
}

[data-theme="light"] .to-white\/50 {
  --tw-gradient-to: #0f4f4780 !important;
}

[data-theme="light"] .bg-\[rgba\(255\,255\,255\,0\.02\)\] {
  background-color: #0f4f4714 !important;
}

[data-theme="light"] .border-\[rgba\(255\,255\,255\,0\.06\)\] {
  border-color: #0f4f4733 !important;
}

[data-theme="light"] .border-white\/5 {
  border-color: #0000000f !important;
}

[data-theme="light"] .border-white\/10 {
  border-color: #00000017 !important;
}

[data-theme="light"] .border-white\/15 {
  border-color: #0000001c !important;
}

[data-theme="light"] .border-white\/20 {
  border-color: #00000024 !important;
}

[data-theme="light"] .text-white, [data-theme="light"] .group-hover\:text-primary {
  color: #09090b !important;
}

[data-theme="light"] .hover\:bg-white\/10:hover {
  background-color: #0000000f !important;
}

[data-theme="light"] .hover\:border-white\/20:hover {
  border-color: #00000026 !important;
}

[data-theme="light"] .hover\:text-white:hover {
  color: #09090b !important;
}

[data-theme="light"] .group:hover .group-hover\:opacity-100 {
  opacity: .4 !important;
}

[data-theme="light"] .bg-transparent.border-b {
  border-color: #0000004d !important;
}

[data-theme="light"] .backdrop-blur {
  backdrop-filter: blur(8px);
}

[data-theme="light"] .modal {
  background: #fff;
  border-color: #0000001a;
}

[data-theme="light"] .modal-overlay {
  background: #0006;
}

[data-theme="light"] .dashboard-title, [data-theme="light"] .content-title {
  color: #09090b;
}

[data-theme="light"] .content-subtitle {
  color: #52525b;
}

[data-theme="light"] .ide-markdown-preview {
  color: #27272a;
}

[data-theme="light"] .ide-markdown-preview h1, [data-theme="light"] .ide-markdown-preview h2, [data-theme="light"] .ide-markdown-preview h3, [data-theme="light"] .ide-markdown-preview h4 {
  color: #09090b;
  border-color: #0000001a;
}

[data-theme="light"] .ide-markdown-preview .md-code-block {
  background: #f4f4f5;
  border-color: #0000001a;
}

[data-theme="light"] .ide-markdown-preview .md-code-block code {
  color: #0369a1;
}

[data-theme="light"] .ide-markdown-preview .md-inline-code {
  color: #0369a1;
  background: #0369a11a;
}

[data-theme="light"] .ide-markdown-preview .md-table th {
  color: #09090b;
  background: #0000000a;
  border-color: #0000001a;
}

[data-theme="light"] .ide-markdown-preview .md-table td {
  color: #27272a;
  border-color: #00000012;
}

[data-theme="light"] .ide-markdown-preview blockquote {
  color: #71717a;
  border-color: #00000026;
}

[data-theme="light"] .ide-markdown-preview hr {
  border-color: #0000001a;
}

.card-actions {
  display: flex;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.card-actions .btn {
  white-space: nowrap;
  flex: auto;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .main-content {
    padding: 20px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 16px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

[data-theme="light"] .modal {
  border-color: var(--border-primary);
  background: #fff;
}

[data-theme="light"] .ws-view {
  background: #f0f7f6;
}

[data-theme="light"] .ws-right, [data-theme="light"] .ws-log {
  border-color: var(--border-primary);
  background: #fff;
}

[data-theme="light"] .ws-log-header {
  border-color: var(--border-primary);
}

[data-theme="light"] .cs-overlay {
  color: var(--text-primary);
  background: #f0f7f6;
}

[data-theme="light"] .cs-topbar {
  border-color: var(--border-primary);
  background: #fff;
}

[data-theme="light"] .cs-topbar-back {
  color: var(--text-secondary);
}

[data-theme="light"] .cs-topbar-title {
  color: var(--text-primary);
}

[data-theme="light"] .cs-topbar-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .cs-topbar-btn.primary {
  background: var(--btn-primary-bg);
  color: #fff;
}

[data-theme="light"] .cs-chat-sidebar {
  border-color: var(--border-primary);
  background: #f5fbfa;
}

[data-theme="light"] .cs-chat-sidebar-top {
  border-color: var(--border-primary);
}

[data-theme="light"] .cs-chat-view {
  background: #f5fbfa;
}

[data-theme="light"] .cs-chat-messages {
  background: none;
}

[data-theme="light"] .cs-chat-msg.user .cs-chat-msg-body {
  border: 1px solid var(--border-primary);
  background: #eaf4f2;
}

[data-theme="light"] .cs-chat-msg.assistant .cs-chat-msg-body {
  border: 1px solid var(--border-primary);
  background: #fff;
}

[data-theme="light"] .cs-chat-msg-role {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-chat-msg-content {
  color: var(--text-primary);
}

[data-theme="light"] .cs-new-chat-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .cs-new-chat-btn:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

[data-theme="light"] .cs-search-input {
  background: var(--surface-1);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="light"] .cs-conv-empty {
  background: none;
}

[data-theme="light"] .cs-conv-empty-icon {
  color: var(--text-muted);
}

[data-theme="light"] .cs-conv-empty-text {
  color: var(--text-primary);
}

[data-theme="light"] .cs-conv-empty-sub {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-pipeline-step {
  background: var(--surface-1);
  border-color: var(--border-primary);
}

[data-theme="light"] .cs-pipeline-step:hover {
  background: var(--surface-2);
}

[data-theme="light"] .cs-step-label {
  color: var(--text-primary);
}

[data-theme="light"] .cs-step-meta {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-conversation {
  background: #f0f7f6;
}

[data-theme="light"] .cs-chat-dot.pending {
  background: #0f4f4759;
}

[data-theme="light"] .cs-chat-dot.active {
  background: #0f4f47;
  box-shadow: 0 0 10px #0f4f478c;
}

[data-theme="light"] .cs-chat-dot.completed {
  background: #0f4f4799;
}

[data-theme="light"] .cs-chat-dot.failed {
  background: #0f4f4780;
}

[data-theme="light"] .cs-chat-dot {
  border: 1px solid #0f4f4759;
  width: 9px;
  height: 9px;
}

[data-theme="light"] .cs-conv-title {
  color: var(--text-primary);
}

[data-theme="light"] .cs-conv-meta-card {
  background: var(--surface-1);
  border: 1px solid var(--border-primary);
}

[data-theme="light"] .cs-bottom-bar {
  border-color: var(--border-primary);
  background: #fff;
}

[data-theme="light"] .cs-bottom-input {
  background: var(--surface-1);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

[data-theme="light"] .cs-bottom-input-active {
  border-color: var(--btn-primary-bg);
  background: #fff;
}

[data-theme="light"] .cs-bottom-input::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .cs-bottom-agent-label {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-bottom-file-stats, [data-theme="light"] .cs-topbar-stats {
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  background: #e2ebe9;
}

[data-theme="light"] .cs-bottom-review-btn {
  background: var(--surface-1);
  border: 1px solid var(--border-primary);
  color: var(--btn-primary-bg);
}

[data-theme="light"] .cs-chat-send-btn {
  background: var(--btn-primary-bg);
  color: #fff;
}

[data-theme="light"] .cs-editor-panel {
  background: #f5fbfa;
}

[data-theme="light"] .cs-editor-tab-header {
  border-color: var(--border-primary);
  background: #fff;
}

[data-theme="light"] .ide-tab {
  background: var(--surface-1);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .ide-tab.active {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--btn-primary-bg);
}

[data-theme="light"] .cs-editor-tab-path {
  color: var(--text-tertiary);
}

[data-theme="light"] .cs-show-changes-btn {
  background: var(--surface-1);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .ide-editor-empty {
  color: var(--text-muted);
}

[data-theme="light"] .ide-markdown-preview {
  color: var(--text-primary);
  background: #fff;
}

[data-theme="light"] .ide-terminal {
  border-color: var(--border-primary);
  background: #eff7f6;
}

[data-theme="light"] .ide-terminal-header {
  border-color: var(--border-primary);
  color: var(--text-secondary);
  background: #f7fbfa;
}

[data-theme="light"] .ide-terminal-body {
  background: #eff7f6;
}

[data-theme="light"] .ide-terminal-line {
  color: var(--text-secondary);
}

[data-theme="light"] .ide-terminal-time {
  color: var(--text-muted);
}

[data-theme="light"] .cs-review-overlay {
  background: #0006;
}

[data-theme="light"] .cs-review-modal {
  border-color: var(--border-primary);
  background: #fff;
}

[data-theme="light"] .cs-review-header {
  border-color: var(--border-primary);
}

[data-theme="light"] .cs-review-title {
  color: var(--text-primary);
}

[data-theme="light"] .cs-review-summary {
  background: var(--surface-1);
  border-color: var(--border-primary);
  color: var(--text-primary);
}

[data-theme="light"] .cs-review-file-header {
  background: var(--surface-1);
}

[data-theme="light"] .cs-review-patch {
  color: var(--text-secondary);
  background: #f5fbfa;
}

[data-theme="light"] .projects-primary-button {
  background: var(--btn-primary-bg);
  color: #fff;
  border: 1px solid var(--btn-primary-bg);
  box-shadow: 0 8px 18px #0f4f472e;
}

[data-theme="light"] .projects-primary-button:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  box-shadow: 0 12px 22px #0f4f4738;
}

[data-theme="light"] .project-card:hover {
  border-color: #0f4f4759;
  box-shadow: 0 12px 30px #0f4f472e;
}

[data-theme="light"] .project-card:hover .group-hover\:text-primary {
  color: #0f4f47 !important;
}

[data-theme="light"] .project-card, [data-theme="light"] .projects-summary-card, [data-theme="light"] .projects-summary-card .border-white\/5 {
  border-color: var(--border-primary) !important;
}

[data-theme="light"] .cs-sidebar-tab-btn {
  color: var(--text-tertiary);
  border-color: var(--border-primary);
}

[data-theme="light"] .cs-sidebar-tab-btn.active {
  color: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  background: var(--surface-1);
}

[data-theme="light"] .ws-file-item:hover, [data-theme="light"] .ws-ticket-item:hover {
  background: var(--surface-1);
}

[data-theme="light"] .ws-right-count {
  background: var(--surface-1);
  border-color: var(--border-primary);
}

[data-theme="light"] .ide-step-panel {
  color: var(--text-primary);
  background: #f5fbfa;
}

[data-theme="light"] .content-title {
  color: var(--text-primary) !important;
}

[data-theme="light"] .content-subtitle {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .step-badge-joiner {
  background: var(--surface-3);
  color: var(--text-primary);
}

[data-theme="light"] .step-badge-lookup, [data-theme="light"] .step-badge-filter {
  color: var(--text-secondary);
}

[data-theme="light"] .md-content strong {
  color: var(--text-primary);
}

[data-theme="light"] .xml-upload-zone {
  border-color: var(--border-primary);
  color: var(--text-secondary);
  background: #fff;
  box-shadow: 0 10px 24px #0f4f471f, inset 0 0 0 1px #0f4f4714;
}

[data-theme="light"] .xml-upload-zone:hover {
  border-color: var(--border-secondary);
  background: #fff;
  box-shadow: 0 14px 30px #0f4f4729, inset 0 0 0 1px #0f4f471f;
}

[data-theme="light"] .xml-upload-zone.drag-over {
  background: #fff;
  border-color: #0f4f47;
  box-shadow: 0 18px 36px #0f4f4733, inset 0 0 0 1px #0f4f4733;
}

[data-theme="light"] .workflow-file-item {
  color: var(--text-secondary);
  border-color: var(--border-primary);
  background: #fff;
  box-shadow: 0 10px 22px #0f4f4714;
}

[data-theme="light"] .workflow-file-item:hover {
  border-color: var(--border-secondary);
  background: #fff;
  box-shadow: 0 14px 28px #0f4f471f;
}

[data-theme="light"] .format-badge-powercenter, [data-theme="light"] .format-badge-iics, [data-theme="light"] .format-badge-unknown {
  background: var(--surface-2);
  border-color: var(--border-primary);
  color: var(--text-secondary);
}

[data-theme="light"] .pipeline-steps-panel .text-white {
  color: var(--text-primary) !important;
}

[data-theme="light"] .chat-sidebar {
  border-left: 1px solid var(--border-primary);
  background: #fff;
}

[data-theme="light"] .chat-sidebar .text-\[\#FAFAFA\] {
  color: var(--text-primary) !important;
}

[data-theme="light"] .chat-sidebar .text-\[\#A1A1AA\] {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .chat-message {
  color: var(--text-primary);
}

[data-theme="light"] .chat-message-user {
  background: var(--surface-1);
  border-color: var(--border-primary);
}

[data-theme="light"] .chat-message-ai {
  background: var(--surface-2);
  border-color: var(--border-primary);
}

[data-theme="light"] {
  --border-subtle: #0000001f;
}

[data-theme="dark"] {
  --border-subtle: #ffffff14;
}
