body {
  margin: 0;
  font-family: var(--kb-font-sans);
  background: var(--hub-runtime-body-bg);
  color: var(--kb-text-main);
}

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

.kb-shell {
  display: flex;
  min-height: 100dvh;
  overflow: hidden;
}

.kb-shell > main {
  flex: 1 1 0%;
  min-width: 0;
  overflow-y: auto;
  background: var(--hub-runtime-main-bg);
  position: relative;
}

.kb-shell > main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 320px at 8% 0%, color-mix(in srgb, var(--ci-highlight) 12%, transparent), transparent),
    radial-gradient(780px 360px at 96% 2%, color-mix(in srgb, var(--ci-accent) 13%, transparent), transparent);
  opacity: 0.8;
}

.kb-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 18rem;
  max-width: 85vw;
  background: var(--hub-sidebar-bg);
  border-right: 1px solid var(--hub-sidebar-border);
  color: var(--hub-sidebar-text);
}

#main-nav {
  display: grid;
  gap: 0.25rem;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--hub-nav-item-bg-hover);
}

.nav-item[aria-current='page'] {
  background: var(--hub-nav-item-bg-active);
  border: 1px solid var(--hub-nav-item-border-active);
}

.kb-shell-header {
  background: var(--hub-header-bg);
  border-bottom-color: var(--hub-header-border);
  box-shadow: var(--hub-header-shadow);
}

.kb-shell-breadcrumb {
  gap: 0.65rem;
}

.kb-shell-breadcrumb__kicker {
  color: var(--hub-header-kicker);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kb-shell-breadcrumb__title {
  color: var(--hub-header-title);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 2.05rem;
  line-height: 1;
}

.kb-shell-breadcrumb__accent {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.75rem;
  background: var(--hub-header-accent);
  box-shadow: var(--hub-header-accent-shadow);
  color: #fff;
}

.kb-shell-header .kb-header-search input {
  background: var(--hub-search-bg);
  border: 1px solid var(--hub-search-border);
  color: var(--kb-text-main);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.kb-shell-header .kb-header-search input:focus {
  border-color: color-mix(in srgb, var(--ci-accent) 54%, transparent);
  box-shadow: var(--hub-search-focus);
}

.kb-shell-header #shell-session-pill {
  border-color: color-mix(in srgb, var(--ci-highlight) 28%, transparent);
  background: color-mix(in srgb, var(--ci-highlight) 10%, transparent);
  color: var(--ci-highlight-strong);
}

.kb-shell-header #shell-logout-button {
  border-color: color-mix(in srgb, var(--ci-accent) 28%, transparent);
  background: color-mix(in srgb, var(--ci-panel-bg) 94%, transparent);
}

.kb-shell-header button[onclick='toggleWizard(true)'] {
  background: var(--hub-primary-gradient);
  color: var(--hub-primary-text);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ci-highlight) 26%, transparent);
}

.kb-sidebar-brand {
  align-items: center;
}

.kb-sidebar-brand__mark {
  background: var(--hub-primary-gradient);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--ci-highlight) 28%, transparent);
}

.kb-sidebar-brand__name {
  font-weight: 900;
  letter-spacing: -0.025em;
}

.install-subtab {
  background: var(--ci-panel-bg-strong);
}

.bg-white,
.kb-panel,
.kb-card,
.kb-consumer,
.kb-build-item,
.kb-source-card,
.kb-stepper,
.kb-wizard__panel,
.kb-package-highlight,
.kb-source-settings,
.kb-table thead,
.install-subtab {
  background: var(--hub-surface-gradient);
  border-color: var(--hub-surface-border);
  box-shadow: var(--hub-surface-shadow);
}

.hover\:bg-indigo-100:hover {
  background-color: color-mix(in srgb, var(--ci-highlight) 15%, transparent) !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
}

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.top-10 { top: 2.5rem; }
.top-1\/2 { top: 50%; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.-left-14 { left: -3.5rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-4\.5 { width: 1.125rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-40 { width: 10rem; }
.w-48 { width: 12rem; }
.w-72 { width: 18rem; }
.w-px { width: 1px; }
.h-full { height: 100%; }
.h-0\.5 { height: 0.125rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-4\.5 { height: 1.125rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-\[1px\] { height: 1px; }
.min-w-0 { min-width: 0; }
.min-w-\[220px\] { min-width: 220px; }
.min-h-dvh { min-height: 100dvh; }
.min-h-\[80px\] { min-height: 80px; }
.min-h-\[90px\] { min-height: 90px; }
.min-h-\[110px\] { min-height: 110px; }
.min-h-\[120px\] { min-height: 120px; }
.min-h-\[240px\] { min-height: 240px; }
.min-h-\[260px\] { min-height: 260px; }
.min-h-\[300px\] { min-height: 300px; }
.min-h-\[400px\] { min-height: 400px; }
.max-w-\[85vw\] { max-width: 85vw; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-\[92vh\] { max-height: 92vh; }
.max-h-\[250px\] { max-height: 250px; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-auto { margin-top: auto; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-\[28px\] { border-radius: 28px; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid transparent; }
.border-2 { border: 2px solid transparent; }
.border-b { border-bottom: 1px solid transparent; }
.border-t { border-top: 1px solid transparent; }
.border-dashed { border-style: dashed; }
.border-transparent { border-color: transparent; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.bg-white { background: #ffffff; }
.bg-white\/5 { background: rgba(255, 255, 255, 0.05); }
.bg-white\/80 { background: rgba(255, 255, 255, 0.8); }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-50\/50 { background: rgba(248, 250, 252, 0.5); }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-200 { background: #e2e8f0; }
.bg-slate-600 { background: #475569; }
.bg-slate-800\/50 { background: rgba(30, 41, 59, 0.5); }
.bg-slate-900 { background: #0f172a; }
.bg-slate-900\/60 { background: rgba(15, 23, 42, 0.6); }
.bg-slate-900\/70 { background: rgba(15, 23, 42, 0.7); }
.bg-slate-950 { background: #020617; }
.bg-slate-950\/50 { background: rgba(2, 6, 23, 0.5); }
.bg-slate-950\/75 { background: rgba(2, 6, 23, 0.75); }
.bg-indigo-50 { background: #fff7ed; }
.bg-indigo-50\/40 { background: rgba(255, 247, 237, 0.82); }
.bg-indigo-50\/60 { background: rgba(255, 247, 237, 0.92); }
.bg-indigo-100 { background: #ffedd5; }
.bg-indigo-600 { background: var(--ci-highlight); }
.bg-amber-50 { background: #fffbeb; }
.bg-amber-100 { background: #fef3c7; }
.bg-green-50 { background: #f0fdf4; }
.bg-green-100 { background: #dcfce7; }
.bg-green-600 { background: #16a34a; }
.bg-red-50 { background: #fef2f2; }
.bg-red-100 { background: #fee2e2; }
.bg-orange-500 { background: var(--ci-highlight); }
.bg-orange-500\/20 { background: rgba(249, 115, 22, 0.2); }
.bg-cyan-400\/10 { background: rgba(34, 211, 238, 0.1); }
.bg-\[radial-gradient\(circle_at_top_left\,_rgba\(251\,146\,60\,0\.24\)\,_transparent_34\%\)\,linear-gradient\(160deg\,_rgba\(15\,23\,42\,0\.98\)\,_rgba\(2\,6\,23\,1\)\)\] { background: radial-gradient(circle at top left, rgba(251,146,60,0.24), transparent 34%), linear-gradient(160deg, rgba(15,23,42,0.98), rgba(2,6,23,1)); }
.text-white { color: #ffffff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-indigo-500, .text-indigo-600, .text-indigo-700, .text-indigo-800 { color: var(--ci-highlight-text); }
.text-indigo-900 { color: #7c2d12; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-green-400 { color: #4ade80; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-orange-200 { color: #fed7aa; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.leading-5 { line-height: 1.25rem; }
.leading-6 { line-height: 1.5rem; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.24em\] { letter-spacing: 0.24em; }
.uppercase { text-transform: uppercase; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-indigo-500\/20 { box-shadow: 0 18px 35px rgba(249, 115, 22, 0.2); }
.ring-1 { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
.ring-white\/10 { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-40 { opacity: 0.4; }
.transition { transition: all 150ms ease; }
.transition-all { transition: all 150ms ease; }
.transition-colors { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.transition-transform { transition: transform 150ms ease; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hover\:bg-slate-50:hover { background: #f8fafc; }
.hover\:bg-slate-100:hover { background: #f1f5f9; }
.hover\:bg-slate-800:hover { background: #1e293b; }
.hover\:bg-indigo-100:hover { background: #ffedd5; }
.hover\:bg-indigo-700:hover { background: #c2410c; }
.hover\:bg-red-100:hover { background: #fee2e2; }
.hover\:bg-green-700:hover { background: #15803d; }
.hover\:bg-orange-400:hover { background: #fb923c; }
.hover\:text-slate-600:hover { color: #475569; }
.hover\:text-slate-700:hover { color: #334155; }
.hover\:text-white:hover { color: #ffffff; }
.focus\:bg-white:focus { background: #ffffff; }
.focus\:border-orange-400:focus { border-color: #fb923c; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18); }
.focus\:ring-indigo-500:focus { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.35); }
.focus\:ring-orange-500\/30:focus { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3); }
.focus\:ring-orange-500\/40:focus { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.4); }
.outline-none { outline: none; }
.disabled\:bg-slate-100:disabled { background: #f1f5f9; }
.disabled\:bg-slate-200:disabled { background: #e2e8f0; }
.disabled\:border-slate-200:disabled { border-color: #e2e8f0; }
.disabled\:text-slate-400:disabled { color: #94a3b8; }
.disabled\:text-slate-500:disabled { color: #64748b; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-nowrap { flex-wrap: nowrap; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:w-auto { width: auto; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-\[minmax\(0\,1fr\)_220px_220px\] { grid-template-columns: minmax(0, 1fr) 220px 220px; }
  .md\:w-64 { width: 16rem; }
}

@media (min-width: 1024px) {
  .lg\:static { position: static; }
  .lg\:hidden { display: none; }
  .lg\:z-auto { z-index: auto; }
  .lg\:w-64 { width: 16rem; }
  .lg\:max-w-none { max-width: none; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:items-start { align-items: flex-start; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1\.15fr_0\.85fr\] { grid-template-columns: 1.15fr 0.85fr; }
  .lg\:h-screen { height: 100vh; }
  .lg\:p-6 { padding: 1.5rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:border-r { border-right: 1px solid #1e293b; }
  .lg\:border-b-0 { border-bottom-width: 0; }
  .lg\:border-slate-800 { border-color: #1e293b; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1280px) {
  .xl\:col-span-2 { grid-column: span 2 / span 2; }
  .xl\:col-span-3 { grid-column: span 3 / span 3; }
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xl\:grid-cols-\[280px_minmax\(0\,1fr\)\] { grid-template-columns: 280px minmax(0, 1fr); }
  .xl\:grid-cols-\[320px_minmax\(0\,1fr\)\] { grid-template-columns: 320px minmax(0, 1fr); }
  .xl\:grid-cols-\[minmax\(0\,1\.2fr\)_320px\] { grid-template-columns: minmax(0, 1.2fr) 320px; }
}

.hub-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--hub-toggle-border);
  background: var(--hub-toggle-bg);
  color: var(--hub-toggle-text);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  box-shadow: var(--hub-toggle-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.hub-theme-toggle:hover,
.hub-theme-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(194, 65, 12, 0.18);
  outline: none;
}

.hub-theme-toggle__icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--hub-toggle-icon-bg);
  font-size: 1rem;
}

.hub-theme-toggle__copy {
  display: grid;
  text-align: left;
  line-height: 1.1;
}

.hub-theme-toggle__label {
  font-size: 0.84rem;
  font-weight: 700;
}

.hub-theme-toggle__meta {
  font-size: 0.7rem;
  color: var(--hub-toggle-meta);
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.install-panel { display: none; }
.install-panel.active { display: block; }
.animate-fade-in { animation: fadeIn 0.3s ease-out; }

.bg-indigo-50 { background-color: #fff7ed !important; }
.bg-indigo-50\/40 { background-color: rgba(255, 247, 237, 0.82) !important; }
.bg-indigo-50\/60 { background-color: rgba(255, 247, 237, 0.92) !important; }
.bg-indigo-100 { background-color: #ffedd5 !important; }
.bg-indigo-600 { background-color: var(--ci-highlight) !important; }

.text-indigo-500,
.text-indigo-600,
.text-indigo-700,
.text-indigo-800 { color: var(--ci-highlight-text) !important; }

.text-indigo-900 { color: #7c2d12 !important; }

.border-indigo-100,
.border-indigo-200,
.border-indigo-300,
.border-indigo-500 { border-color: color-mix(in srgb, var(--ci-highlight) 50%, transparent) !important; }

.hover\:bg-indigo-100:hover { background-color: #ffedd5 !important; }
.hover\:bg-indigo-700:hover { background-color: var(--ci-highlight-strong) !important; }
.focus\:ring-indigo-500:focus { --tw-ring-color: color-mix(in srgb, var(--ci-highlight) 45%, transparent) !important; }
.ring-indigo-500\/10 { --tw-ring-color: color-mix(in srgb, var(--ci-highlight) 14%, transparent) !important; }
.shadow-indigo-500\/20 { --tw-shadow-color: color-mix(in srgb, var(--ci-highlight) 20%, transparent) !important; }

.kb-overlay { display: none; }

body.is-dark {
  background: var(--hub-runtime-body-bg) !important;
  color: #e5eefb !important;
}

body.is-dark .kb-shell > main {
  background: var(--hub-runtime-main-bg);
}

body.is-dark .kb-sidebar {
  box-shadow: inset -1px 0 0 var(--hub-sidebar-border), 12px 0 28px rgba(2, 6, 23, 0.22);
}

body.is-dark .kb-shell-header {
  background: color-mix(in srgb, var(--ci-panel-bg-strong) 80%, transparent);
  border-bottom-color: color-mix(in srgb, var(--ci-border) 72%, transparent);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.35);
}

body.is-dark .kb-shell-breadcrumb__kicker {
  color: color-mix(in srgb, var(--ci-accent) 68%, #dbeafe);
}

body.is-dark .kb-shell-header .kb-header-search input {
  background: color-mix(in srgb, var(--ci-input-bg) 86%, transparent);
  border-color: color-mix(in srgb, var(--ci-border) 78%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.is-dark .bg-slate-100,
body.is-dark .bg-slate-50,
body.is-dark .bg-white,
body.is-dark .bg-indigo-50,
body.is-dark .bg-indigo-50\/40,
body.is-dark .bg-indigo-50\/60,
body.is-dark .bg-indigo-100 {
  background-color: color-mix(in srgb, var(--ci-panel-bg-strong) 88%, transparent) !important;
}

body.is-dark .text-slate-900,
body.is-dark .text-slate-800,
body.is-dark .text-slate-700,
body.is-dark .text-slate-600,
body.is-dark .text-slate-500,
body.is-dark .text-indigo-900,
body.is-dark .text-indigo-800,
body.is-dark .text-indigo-700,
body.is-dark .text-indigo-600,
body.is-dark .text-indigo-500 {
  color: #e5eefb !important;
}

body.is-dark .border-slate-100,
body.is-dark .border-slate-200,
body.is-dark .border-slate-300,
body.is-dark .border-indigo-100,
body.is-dark .border-indigo-200,
body.is-dark .border-indigo-300,
body.is-dark .border-indigo-500 {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

body.is-dark .shadow-sm,
body.is-dark .shadow,
body.is-dark .shadow-lg,
body.is-dark .shadow-xl,
body.is-dark .shadow-2xl {
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38) !important;
}

body.is-dark .ring-1,
body.is-dark .ring-indigo-500\/10 {
  --tw-ring-color: color-mix(in srgb, var(--ci-highlight) 24%, transparent) !important;
}

body.is-dark .hover\:bg-indigo-100:hover {
  background-color: rgba(51, 65, 85, 0.92) !important;
}

body.is-dark .hover\:bg-indigo-700:hover {
  background-color: var(--ci-highlight) !important;
}

body.is-dark .focus\:ring-indigo-500:focus {
  --tw-ring-color: color-mix(in srgb, var(--ci-highlight) 40%, transparent) !important;
}

body.is-dark header,
body.is-dark nav,
body.is-dark aside,
body.is-dark section,
body.is-dark article,
body.is-dark .rounded-2xl,
body.is-dark .rounded-3xl,
body.is-dark .rounded-xl,
body.is-dark .rounded-full {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

body.is-dark input,
body.is-dark textarea,
body.is-dark select {
  background: color-mix(in srgb, var(--ci-input-bg) 90%, transparent) !important;
  color: #e5eefb !important;
  border-color: color-mix(in srgb, var(--ci-border) 72%, transparent) !important;
}

body.is-dark input::placeholder,
body.is-dark textarea::placeholder {
  color: #94a3b8 !important;
}

body.is-dark .hub-theme-toggle {
  background: var(--hub-toggle-bg);
  color: var(--hub-toggle-text);
  border-color: var(--hub-toggle-border);
  box-shadow: var(--hub-toggle-shadow);
}

body.is-dark .hub-theme-toggle__icon {
  background: var(--hub-toggle-icon-bg);
}

body.is-dark .hub-theme-toggle__meta {
  color: var(--hub-toggle-meta);
}

body.is-dark .install-subtab,
body.is-dark .kb-wizard__footer,
body.is-dark .kb-table thead,
body.is-dark .kb-source-settings {
  background: color-mix(in srgb, var(--ci-panel-bg-strong) 90%, transparent) !important;
}

body.is-dark .bg-white,
body.is-dark .kb-panel,
body.is-dark .kb-card,
body.is-dark .kb-consumer,
body.is-dark .kb-build-item,
body.is-dark .kb-source-card,
body.is-dark .kb-stepper,
body.is-dark .kb-wizard__panel,
body.is-dark .kb-package-highlight,
body.is-dark .kb-source-settings,
body.is-dark .kb-table thead,
body.is-dark .install-subtab {
  background: linear-gradient(160deg, color-mix(in srgb, var(--ci-panel-bg-strong) 94%, transparent), color-mix(in srgb, var(--ci-page-bg-alt) 85%, transparent));
  border-color: color-mix(in srgb, var(--ci-border) 78%, transparent);
  box-shadow: 0 20px 42px rgba(2, 6, 23, 0.3);
}

body.is-dark .kb-validation__item,
body.is-dark .kb-build-item,
body.is-dark .kb-toggle-row,
body.is-dark .kb-authoring-node {
  background: color-mix(in srgb, var(--ci-panel-bg) 84%, transparent);
  border-color: color-mix(in srgb, var(--ci-border) 72%, transparent);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .kb-shell {
    min-height: 100dvh;
  }

  .kb-sidebar {
    width: min(20rem, 85vw);
    max-width: 20rem;
  }

  .kb-sidebar[data-open='false'] {
    transform: translateX(-100%);
  }

  .kb-sidebar[data-open='true'] {
    transform: translateX(0);
  }

  .kb-overlay[data-open='true'] {
    display: block;
  }

  .kb-header-search {
    display: none;
  }

  .hub-theme-toggle__meta {
    display: none;
  }

  .kb-shell-breadcrumb__title {
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .kb-sidebar {
    transform: none !important;
  }

  .kb-overlay {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #authoring-tabs,
  #wizard-steps-indicator {
    overflow-x: auto;
  }

  #authoring-tabs > *,
  #wizard-steps-indicator > * {
    flex-shrink: 0;
  }
}
