:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --popover: #ffffff;
  --popover-foreground: #09090b;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #18181b;
  --radius: 0.625rem;
  --sidebar: #ffffff;
  --sidebar-foreground: #18181b;
  --sidebar-muted: #71717a;
  --canvas-grid: rgba(24, 24, 27, 0.055);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-xs: 0 1px 1px 0 rgb(0 0 0 / 0.03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(228, 228, 231, 0.88), transparent 32rem),
    var(--background);
  padding: 24px;
}

.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.auth-panel {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 28px;
}

.auth-copy-panel {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 560px;
}

.auth-copy-panel h1 {
  max-width: 680px;
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.auth-copy-panel > p {
  max-width: 560px;
  margin-top: 14px;
  font-size: 16px;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-feature-grid article,
.auth-status,
.auth-meta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 12px;
}

.auth-feature-grid p {
  color: var(--muted-foreground);
}

.login-card {
  display: grid;
  align-content: center;
  gap: 18px;
}

#login-button,
.button {
  min-height: 44px;
}

.mobile-shell-header,
.mobile-nav-backdrop {
  display: none;
}

.data-provenance {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 10px 12px;
  font-size: 13px;
}

.login-card h2 {
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.login-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 22px;
  font-weight: 800;
}

.auth-status {
  color: var(--muted-foreground);
}

.auth-meta {
  display: grid;
  gap: 8px;
  color: var(--muted-foreground);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 12px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

main:focus,
.page-view:focus,
.workspace-section:focus,
section:focus {
  outline: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.showcase-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--background);
}

.preset-sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  color: var(--sidebar-foreground);
  background: var(--sidebar);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-header,
.preset-item,
.status-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}

.sidebar-brand {
  display: grid;
  gap: 2px;
}

.sidebar-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
}

.sidebar-icon {
  color: var(--sidebar-muted);
  font-size: 18px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: calc(var(--radius) - 2px);
  padding: 8px 10px;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-item span {
  color: var(--foreground);
  font-weight: 500;
}

.context-card p {
  color: var(--muted-foreground);
}

.nav-item.active,
.nav-item:hover {
  background: var(--accent);
  color: var(--foreground);
}

.nav-item.active {
  box-shadow: none;
  font-weight: 600;
}

.nav-item.active span:not(.nav-icon) {
  font-weight: 650;
}

.nav-icon {
  width: 18px;
  min-width: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--foreground);
  line-height: 1;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group-label {
  padding: 8px 10px 4px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
}

.nav-separator {
  height: 1px;
  margin: 6px 0;
  background: var(--border);
}

.context-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  padding: 12px;
}

.preset-list,
.sidebar-actions,
.sidebar-user-card,
.stack,
.form-stack,
.goal-stack,
.action-summary,
.summary-box {
  display: grid;
  gap: 10px;
}

.preset-item {
  display: grid;
  gap: 2px;
  padding: 12px;
}

.preset-item.active {
  background: rgba(255, 255, 255, 0.055);
}

.preset-label,
.mini-label,
.eyebrow {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
}

.preset-item .preset-label {
  color: var(--sidebar-muted);
}

.preset-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.sidebar-user-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  padding: 12px;
}

.sidebar-user-card p {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.status-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 12px;
}

.status-card p {
  color: var(--sidebar-muted);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #facc15;
}

.online .dot {
  background: #22c55e;
}

.showcase-content {
  min-width: 0;
  display: grid;
  gap: 20px;
  padding: 0 0 32px;
}

.hero-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 2px 0;
}

.hero-banner h1 {
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted-foreground);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero-tags,
.card-header,
.mini-card-row,
.threshold-row,
.slider-row,
.summary-row,
.tab-strip,
.canvas-toolbar,
.panel-title-row,
.node-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-bar,
.preview-toolbar,
.command-copy,
.command-actions,
.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-bar {
  position: sticky;
  top: 16px;
  z-index: 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  padding: 10px 12px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
}

.command-copy {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted-foreground);
}

.separator {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.online-dot {
  margin: 0;
  background: #22c55e;
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  background: transparent;
}

.designer-card-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.8fr;
  gap: 16px;
  padding: 0;
  background: transparent;
}

.bottom-grid {
  grid-template-columns: 1.45fr 1fr;
}

#admin.card {
  margin: 0;
}

.card,
.mini-card,
.compact-panel,
.list-item,
.palette-group,
.node-card,
.service-card {
  color: var(--card-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
}

.card {
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.card:hover,
.node-card:hover {
  border-color: #d4d4d8;
}

.chart-card,
.form-card,
.goal-card,
.action-card,
.composer-card,
.balance-card,
.canvas-card,
.transaction-card,
.support-card,
#admin.card {
  padding: 16px;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h3,
.composer-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-header p,
.composer-card p {
  margin-top: 2px;
}

.button,
.tab-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  height: 36px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.button-dark {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-xs);
}

.button-dark:hover {
  background: #27272a;
}

.button-light,
.button-ghost,
.tab-button,
.icon-button {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.button-ghost {
  color: var(--foreground);
  background: var(--background);
  border-color: var(--border);
}

.button-light:hover,
.button-ghost:hover,
.tab-button:hover,
.icon-button:hover {
  background: var(--secondary);
}

.full-width {
  width: 100%;
}

.pill,
.chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 500;
}

.chip.ready,
.chip.passing,
.chip.succeeded,
.chip.healthy,
.chip.active,
.status-badge {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.chip.running,
.chip.medium,
.chip.monitoring {
  background: #fefce8;
  border-color: #fde68a;
  color: #854d0e;
}

.chip.degraded,
.chip.high {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.chip.planned,
.chip.draft {
  background: var(--secondary);
  color: var(--muted-foreground);
}

.bar-chart {
  height: 176px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 4px;
}

.bar-chart .metric {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
}

.bar-chart .metric strong {
  width: 100%;
  max-width: 42px;
  height: 96px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 8px;
  border-radius: 7px 7px 0 0;
  background: #737373;
  color: transparent;
  font-size: 0;
}

.bar-chart .metric:nth-child(2) strong,
.bar-chart .metric:nth-child(5) strong {
  height: 128px;
}

.bar-chart .metric:nth-child(3) strong {
  height: 104px;
}

.bar-chart .metric:nth-child(4) strong,
.bar-chart .metric:nth-child(6) strong {
  height: 150px;
}

.bar-chart .metric span {
  color: #52525b;
  font-size: 12px;
  text-transform: capitalize;
  white-space: nowrap;
}

.mini-card-row {
  margin-top: 18px;
}

.mini-card {
  flex: 1;
  padding: 12px;
  background: var(--muted);
  border-color: transparent;
}

.mini-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.field-block {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.field-block small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.runbook-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 18px;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.compact-release-list {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.release-action-row {
  margin-top: 10px;
}

.release-overflow {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 12px;
}

.release-overflow summary {
  cursor: pointer;
  font-weight: 700;
}

.cicd-visibility-panel {
  display: grid;
  gap: 16px;
}

.cicd-summary-strip {
  padding: 0;
}

.cicd-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) minmax(320px, 1.1fr) minmax(320px, 1.1fr);
  gap: 14px;
}

.cicd-card,
.cicd-selected-card,
.cicd-airflow-evidence {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--background);
  padding: 12px;
}

.cicd-card {
  min-width: 0;
}

.cicd-card h4 {
  margin-bottom: 10px;
}

.cicd-scroll-list {
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.cicd-row,
.cicd-job-row {
  border-left: 3px solid var(--border);
}

.cicd-row.selected,
.cicd-job-row.selected {
  border-color: var(--ring);
  background: var(--accent);
}

.cicd-actions {
  margin-top: 10px;
}

.evidence-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.evidence-meta span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  padding: 8px;
  overflow-wrap: anywhere;
  color: var(--muted-foreground);
  font-size: 12px;
}

.evidence-meta strong {
  color: var(--foreground);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cicd-airflow-evidence {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  background: var(--muted);
}

.compact-history {
  display: none !important;
}

.fake-select,
textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  padding: 8px 10px;
  font-weight: 400;
}

textarea {
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.goal-stack .service-card {
  padding: 12px;
  background: var(--muted);
  border: 0;
}

.service-card .section-head,
.list-item .section-head,
.card .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-card p,
.list-item p,
.card p {
  margin-top: 6px;
}

.action-summary,
.summary-box {
  padding: 12px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  margin-bottom: 16px;
}

.summary-row {
  padding: 4px 0;
}

.composer-card {
  min-height: 246px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.composer-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--muted);
  font-size: 18px;
}

.balance-card {
  min-height: 246px;
}

.balance-value {
  margin-top: 8px;
  font-size: 50px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 650;
}

.balance-status {
  margin: 12px 0 16px;
}

.full-span {
  grid-column: span 1;
}

.canvas-card {
  grid-column: span 1;
}

.canvas-shell {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(360px, 1fr) minmax(220px, 260px);
  gap: 12px;
}

.compact-panel {
  padding: 12px;
  background: var(--background);
}

.palette-group {
  padding: 10px;
  background: var(--muted);
  border: 0;
}

.palette-group h4 {
  font-size: 13px;
  margin-bottom: 8px;
}

.palette-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.palette-item {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--background);
  font-size: 11px;
}

.pipeline-canvas {
  position: relative;
  min-height: 320px;
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(var(--canvas-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--canvas-grid) 1px, transparent 1px),
    #fafafa;
  background-size: 22px 22px, 22px 22px, auto;
}

.node-card {
  position: absolute;
  width: 156px;
  padding: 10px;
  background: var(--background);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.node-card.selected {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.node-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  width: 20px;
  height: 1px;
  background: #a1a1aa;
}

.node-card:last-child::after {
  display: none;
}

.node-title strong {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-meta {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.node-card > p {
  margin-top: 4px;
  font-size: 12px;
}

.node-properties-grid {
  display: grid;
  gap: 8px;
}

.property-row {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
}

.tab-panels {
  margin-top: 12px;
}

.preview-toolbar {
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: var(--background);
  padding: 12px;
}

.search-control input {
  width: min(240px, 100%);
  height: 36px;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  color: var(--foreground);
  padding: 0 10px;
}

.tab-button {
  height: 32px;
  padding-inline: 12px;
  color: var(--muted-foreground);
}

.tab-button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.tab-panel {
  display: none;
}

.tab-panel[hidden],
[data-custom-build-ui][hidden] {
  display: none !important;
}

.tab-panel.active {
  display: block;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background);
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
}

.bottom-grid .card {
  min-height: 260px;
}

.support-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-user-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.9fr) minmax(240px, 0.8fr);
  gap: 14px;
}

.admin-users-card .connection-item {
  width: 100%;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-row .button {
  flex: 0 0 auto;
}

.button-danger {
  border-color: #b42318;
  background: #fff;
  color: #b42318;
}

.button-danger:hover:not(:disabled),
.button-danger:focus-visible:not(:disabled) {
  background: #fff1f0;
}

@media (max-width: 1180px) {
  .admin-user-layout {
    grid-template-columns: 1fr;
  }
}

.support-grid h4 {
  margin-bottom: 8px;
}

.list-item,
.card .card {
  padding: 10px;
  background: var(--background);
}

#modules-grid .card {
  padding: 12px;
  background: var(--muted);
  border: 0;
}

.metric {
  border-radius: var(--radius);
}

.ops-shell {
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
  height: auto;
  overflow: visible;
  min-height: 0;
  transition: grid-template-columns 0.2s ease;
}

.menu-collapsed .ops-shell {
  grid-template-columns: 82px minmax(0, 1fr);
}

.ops-sidebar {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.ops-sidebar.collapsed {
  align-items: stretch;
}

.ops-sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 10px;
}

.ops-sidebar.collapsed .sidebar-brand,
.ops-sidebar.collapsed .collapsible-content,
.ops-sidebar.collapsed .nav-group-label,
.ops-sidebar.collapsed .nav-separator {
  display: none;
}

.ops-sidebar.collapsed .nav-item {
  min-height: 46px;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.ops-sidebar.collapsed .nav-item span:not(.nav-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ops-sidebar.collapsed .nav-icon {
  width: 24px;
  min-width: 24px;
  font-size: 20px;
}

.ops-sidebar.collapsed .nav-group {
  gap: 6px;
}

.ops-sidebar.collapsed .preset-list {
  gap: 6px;
}

.ops-sidebar.collapsed .nav-item {
  position: relative;
}

.ops-sidebar.collapsed .nav-item span {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-sidebar select,
.inline-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  color: var(--foreground);
  padding: 8px 10px;
}

.role-switcher {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--background);
  padding: 12px;
}

.role-switcher label,
.section-title h2 {
  font-weight: 700;
}

.ops-content {
  gap: 20px;
  min-height: calc(100vh - 40px);
  height: auto;
  overflow: visible;
  min-height: 0;
  scroll-behavior: smooth;
}

.page-view {
  display: none;
  gap: 20px;
  min-width: 0;
  min-height: 0;
  min-height: 100%;
}

.page-view.active {
  display: grid;
  animation: pageFade 0.16s ease;
}

.page-view[hidden] {
  display: none !important;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.ops-kpi-grid,
.ops-dashboard-grid,
.orchestration-grid,
.template-grid,
.coverage-grid,
.release-grid,
.preview-debug-grid {
  display: grid;
  gap: 16px;
}

.ops-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ops-dashboard-grid.two-one {
  grid-template-columns: 1.35fr 0.65fr;
}

.orchestration-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.orchestration-hero-card,
.orchestration-action-card {
  min-height: 100%;
}

.endpoint-card,
.orchestration-run-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.orchestration-run-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orchestration-run-summary p {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  padding: 12px;
}

.orchestration-run-summary strong,
.endpoint-card strong {
  overflow-wrap: anywhere;
}

.kpi-card,
.template-card,
.coverage-card,
.designer-side,
.designer-canvas,
.designer-bottom,
.dataset-card,
.workflow-node,
.execution-detail {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  padding: 14px;
}

.kpi-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.kpi-card.danger,
.danger-pill,
.chip.failed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.kpi-card.success,
.success-pill {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.workspace-section {
  display: grid;
  gap: 18px;
  align-content: start;
  scroll-margin-top: 96px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 2px 2px;
}

.section-title h2 {
  margin-top: 2px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.ops-card {
  padding: 20px;
}

.template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-card.selected,
.flow-node.selected {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.template-card h3,
.dataset-card h3 {
  margin: 6px 0;
}

.designer-frame {
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 300px;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.designer-side,
.designer-canvas,
.designer-bottom {
  background: var(--background);
}

.build-actions,
.canvas-toolbar,
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.build-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.canvas-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.canvas-zoom-controls .button {
  min-height: 30px;
  padding: 5px 9px;
}

.canvas-zoom-controls strong {
  min-width: 48px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 12px;
}

.designer-side,
.designer-canvas {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 14px;
  min-width: 0;
  min-height: 0;
}

.designer-side {
  max-height: min(52vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.designer-side > .stack {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.property-summary-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  padding: 12px;
}

.property-summary-card h4 {
  margin: 0;
  font-size: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0.52);
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
}

.property-modal {
  width: min(1080px, 100%);
  max-height: min(88vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--background);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.24);
}

.property-modal-header,
.property-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.property-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.property-modal-header h3 {
  margin: 2px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.property-modal-body {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 18px 20px;
}

.property-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
}

.property-section h4 {
  margin: 0;
}

.property-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.property-field textarea {
  min-height: 96px;
}

.property-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.property-reference-grid p {
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  padding: 10px;
}

.designer-canvas {
  display: flex;
  flex-direction: column;
  max-height: min(52vh, 560px);
  overflow: hidden;
}

.panel-title-row {
  margin-bottom: 12px;
}

.palette-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
  font-size: 12px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.palette-items,
.metric-stack {
  display: grid;
  gap: 8px;
}

.palette-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  color: var(--foreground);
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.palette-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.palette-copy strong,
.palette-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  background: var(--muted);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.group-icon {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.drag-handle {
  color: var(--muted-foreground);
  font-size: 14px;
  letter-spacing: -4px;
}

.palette-item.dragging {
  opacity: 0.55;
  background: var(--accent);
}

.palette-item small {
  color: var(--muted-foreground);
  font-size: 11px;
}

.palette-item:hover,
.palette-item:focus-visible,
.flow-node:hover,
.flow-node:focus-visible {
  background: var(--accent);
  outline: 2px solid transparent;
}

.flow-canvas {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 420px;
  max-height: 100%;
  margin-top: 0;
  overflow: auto;
  border: 1px solid #b8c1cc;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background:
    radial-gradient(circle at 12px 12px, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    #edf0f4;
  background-size: 24px 24px, auto;
}

.flow-viewport {
  position: relative;
  width: 1160px;
  height: 620px;
  min-width: 1160px;
  min-height: 620px;
  transform: scale(var(--zoom, 1));
  transform-origin: 0 0;
}

.flow-canvas.drop-ready {
  border-color: #1d4ed8;
  background:
    radial-gradient(circle at 12px 12px, rgba(29, 78, 216, 0.16) 1px, transparent 1px),
    #e8f0ff;
  background-size: 24px 24px, auto;
}

.flow-node {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  width: 150px;
  display: grid;
  justify-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--foreground);
  padding: 6px 8px 8px;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.flow-node.dragging-node {
  opacity: 0.74;
  cursor: grabbing;
}

.flow-edge {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  color: #243447;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  z-index: 0;
}

.edge-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.edge-route polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 #ffffff);
}

.edge-arrow {
  fill: currentColor;
  stroke: #ffffff;
  stroke-width: 1.2;
  paint-order: stroke fill;
  filter: drop-shadow(0 1px 0 #ffffff);
}

.flow-edge.branch .edge-route polyline,
.flow-edge.condition .edge-route polyline {
  stroke-dasharray: 9 7;
}

.flow-edge.condition {
  color: var(--ring);
}

.flow-edge.reject,
.flow-edge.error {
  color: var(--destructive);
}

.flow-edge.disabled {
  color: var(--muted-foreground);
  opacity: 0.46;
}

.flow-edge.selected .edge-label,
.flow-edge:focus-visible .edge-label {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent);
}

.flow-edge.branch {
  color: var(--ring);
}

.edge-label {
  position: absolute;
  left: calc(var(--label-x) * 1px);
  top: calc(var(--label-y) * 1px);
  transform: translate(-50%, calc(-100% - 8px));
  border: 1px solid #c9d2df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.edge-label strong {
  color: var(--foreground);
  font-weight: 650;
}

.edge-label small {
  color: var(--muted-foreground);
  font-size: 10px;
}

.flow-node::after {
  display: none;
}

.flow-node span:last-child {
  color: var(--muted-foreground);
  font-size: 11px;
}

.flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-title .component-icon {
  width: 24px;
  height: 24px;
}

.hop-designer-shell {
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
}

.hop-designer-shell .designer-frame {
  gap: 0;
}

.hop-designer-shell .designer-side {
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  background: #ffffff;
}

.hop-designer-shell .designer-canvas {
  background: #f1f5f9;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
}

.hop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 1px solid #b8c1cc;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#f9fbfd, #e6ebf1);
  color: #0f172a;
  padding: 5px 8px;
  box-shadow: inset 0 1px #ffffff;
}

.hop-toolbar-left,
.hop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hop-tab-label {
  border: 1px solid #aeb8c5;
  border-bottom-color: #f9fbfd;
  border-radius: 5px 5px 0 0;
  background: #ffffff;
  padding: 6px 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hop-tool-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aeb8c5;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #dfe6ee);
  color: #1e293b;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px #ffffff;
}

.hop-tool-button:hover,
.hop-tool-button:focus-visible {
  border-color: #2563eb;
  color: #1d4ed8;
  outline: 0;
}

.hop-tool-button.run { color: #15803d; }
.hop-tool-button.pause { color: #b45309; }
.hop-tool-button.stop { color: #b91c1c; }

.hop-toolbar-separator {
  width: 1px;
  height: 24px;
  background: #b8c1cc;
  margin: 0 4px;
}

.hop-zoom-label {
  min-width: 42px;
  border: 1px solid #aeb8c5;
  border-radius: 4px;
  background: #ffffff;
  padding: 4px 6px;
  font-size: 12px;
  text-align: center;
}

.hop-unit-test {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}

.hop-unit-test select {
  height: 28px;
  border: 1px solid #aeb8c5;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
}

.hop-canvas-title {
  position: absolute;
  left: 16px;
  top: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  padding: 4px 10px;
  font-size: 12px;
}

.hop-node.selected,
.hop-node:focus-visible,
.hop-node:hover {
  background: rgba(219, 234, 254, 0.76);
  border-color: #2563eb;
  outline: 0;
}

.hop-node-icon.component-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #7aa4d8;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 52%, #bfdbfe 100%);
  color: #1d4ed8;
  font-size: 14px;
  box-shadow: 0 1px 0 #ffffff, 0 2px 4px rgba(15, 23, 42, 0.18);
}

.hop-check {
  position: absolute;
  right: 44px;
  top: 1px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
}

.hop-node-name {
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.hop-node-meta,
.hop-node-step {
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #475569;
  font-size: 10px;
  white-space: nowrap;
}

.designer-bottom {
  margin-top: 0;
  border: 1px solid #b8c1cc;
  border-radius: 0;
  padding: 8px;
  min-height: 230px;
  overflow: visible;
  background: #f8fafc;
}

.preview-debug-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  min-height: 0;
  align-items: stretch;
}

.preview-debug-grid > div {
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  padding: 10px;
  overscroll-behavior: contain;
}

.hop-results-tabs {
  justify-content: flex-start;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0;
}

.hop-results-tabs .tab-button {
  border-radius: 4px 4px 0 0;
}

.hop-results-panel #schema-diff {
  grid-column: span 2;
}

.hop-table-wrap {
  overflow: auto;
  border: 1px solid #cbd5e1;
}

.hop-metrics-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.hop-metrics-table th,
.hop-metrics-table td {
  border: 1px solid #d7dee8;
  padding: 5px 7px;
  text-align: right;
  white-space: nowrap;
}

.hop-metrics-table th {
  background: linear-gradient(#f8fafc, #e2e8f0);
  color: #334155;
  font-weight: 700;
}

.hop-metrics-table th:first-child,
.hop-metrics-table td:first-child {
  min-width: 220px;
  text-align: left;
}

.hop-metrics-table tbody tr:hover {
  background: #f8fafc;
}

.hop-table-transform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-weight: 650;
}

.hop-table-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
}

.hop-log-line {
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 0;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.hop-web-panel {
  display: none;
  gap: 14px;
}

.hop-web-panel.active {
  display: grid;
}

.hop-web-embed-shell {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--muted);
}

.hop-web-embed-shell iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.hop-web-fallback {
  position: absolute;
  inset: 16px;
  z-index: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.build-status.healthy {
  border-color: #bbf7d0;
  color: #166534;
}

.build-status.running {
  border-color: #fde68a;
  color: #92400e;
}

details {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  padding: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.workflow-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.workflow-flow {
  display: grid;
  gap: 10px;
}

.workflow-node {
  position: relative;
  background: var(--background);
}

.workflow-node:not(:last-child)::after,
.lineage-arrow {
  display: block;
  color: var(--muted-foreground);
  text-align: center;
}

.workflow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  height: 16px;
  border-left: 1px solid var(--muted-foreground);
}

.step-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.connect-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 20px;
}

.connect-layout .ops-card:nth-child(3) {
  grid-column: span 2;
}

.compact-input {
  max-width: 240px;
}

.connection-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: var(--card);
  color: var(--foreground);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.connection-item:hover,
.connection-item.selected {
  background: var(--accent);
}

.connection-item span:first-child,
.detail-grid > div,
.schema-row {
  display: grid;
  gap: 6px;
}

.connection-item small {
  color: var(--muted-foreground);
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid > div,
.connection-result,
.schema-row,
.empty-state {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  padding: 12px;
}

.chip-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connection-result {
  color: var(--muted-foreground);
}

.hop-workspace-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.hop-crumb {
  padding: 4px 8px;
  font-size: 13px;
}

.hop-crumb[aria-current="true"] {
  border-color: var(--ring);
  color: var(--foreground);
  font-weight: 600;
}

.hop-crumb-separator {
  color: var(--muted-foreground);
}

.hop-workspace .stack {
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hop-workspace-item {
  display: block;
}

.hop-workspace-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 13px;
}

.hop-workspace-selected {
  border-color: var(--ring);
  box-shadow: var(--shadow-xs);
}

.hop-workspace-plain {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--muted);
  padding: 8px 12px;
  color: var(--muted-foreground);
}


.schema-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.schema-row {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.schema-row span {
  color: var(--muted-foreground);
  font-size: 12px;
}

.schema-row.discovered {
  border-color: color-mix(in srgb, #16a34a 35%, var(--border));
}

.execution-detail pre {
  overflow: auto;
  border-radius: calc(var(--radius) - 2px);
  background: #18181b;
  color: #fafafa;
  padding: 12px;
}

.lineage-view {
  display: grid;
  gap: 8px;
}

.lineage-node {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.release-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coverage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coverage-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background);
}

.coverage-card span,
.success-text {
  color: #166534;
}

.warning-text {
  color: #854d0e;
}

.compact-density {
  font-size: 13px;
}

.compact-density .ops-card,
.compact-density .kpi-card,
.compact-density .template-card,
.compact-density .list-item {
  padding: 10px;
}

.compact-density .button,
.compact-density .tab-button {
  height: 32px;
}

@media (max-width: 1500px) {
  .top-grid,
  .designer-card-grid,
  .bottom-grid,
  .ops-kpi-grid,
  .ops-dashboard-grid,
  .orchestration-grid,
  .cicd-grid,
  .operate-summary-strip,
  .operate-cockpit-grid,
  .template-grid,
  .coverage-grid,
  .release-grid,
  .preview-debug-grid,
  .designer-frame,
  .workflow-view {
    gap: 18px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-kpi-grid,
  .ops-dashboard-grid,
  .orchestration-grid,
  .operate-summary-strip,
  .operate-cockpit-grid,
  .template-grid,
  .coverage-grid,
  .release-grid,
  .preview-debug-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .designer-frame,
  .workflow-view,
  .orchestration-run-summary,
  .operate-cockpit-grid.two-one,
  .ops-dashboard-grid.two-one {
    grid-template-columns: 1fr;
  }

  .designer-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .showcase-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding-top: 76px;
  }

  .menu-collapsed .ops-shell {
    grid-template-columns: 1fr;
  }

  .preset-sidebar {
    position: fixed;
    z-index: 42;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, calc(100vw - 48px));
    height: 100dvh;
    border-radius: 0 16px 16px 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    visibility: hidden;
  }

  .mobile-nav-open .preset-sidebar {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-shell-header {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    padding: 8px 14px;
  }

  .mobile-shell-header > div {
    display: grid;
  }

  .mobile-nav-backdrop {
    position: fixed;
    z-index: 41;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(9, 9, 11, 0.42);
  }

  .mobile-nav-open .mobile-nav-backdrop {
    display: block;
  }

  .mobile-nav-open {
    overflow: hidden;
  }

  .ops-content {
    height: auto;
    overflow: visible;
  }

  .designer-frame {
    overflow: visible;
  }

  .designer-side,
  .designer-canvas {
    max-height: none;
  }

  .designer-side > .stack {
    max-height: 420px;
  }

  .property-grid,
  .property-reference-grid {
    grid-template-columns: 1fr;
  }

  .property-modal-header,
  .property-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-sidebar.collapsed .sidebar-brand,
  .ops-sidebar.collapsed .collapsible-content,
  .ops-sidebar.collapsed .nav-group-label,
  .ops-sidebar.collapsed .nav-separator {
    display: grid;
  }

  .ops-sidebar.collapsed .nav-item {
    justify-content: flex-start;
    text-align: left;
  }

  .ops-sidebar.collapsed .nav-item span:not(.nav-icon) {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
  }

  .ops-sidebar.collapsed .nav-item span {
    max-width: none;
  }

  .preset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-grid,
  .designer-card-grid,
  .bottom-grid,
  .canvas-shell,
  .support-grid,
  .cards-grid,
  .ops-kpi-grid,
  .ops-dashboard-grid,
  .orchestration-grid,
  .cicd-grid,
  .operate-summary-strip,
  .operate-cockpit-grid,
  .template-grid,
  .coverage-grid,
  .release-grid,
  .preview-debug-grid,
  .designer-frame,
  .workflow-view,
  .orchestration-run-summary,
  .operate-cockpit-grid.two-one,
  .connect-layout {
    grid-template-columns: 1fr;
  }

  .connect-layout .ops-card:nth-child(3) {
    grid-column: auto;
  }

  .command-bar,
  .hero-banner,
  .preview-toolbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .command-actions,
  .toolbar-actions {
    width: 100%;
  }

  .command-actions .button,
  .toolbar-actions .button,
  .search-control,
  .search-control input,
  .compact-input {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .auth-shell,
  .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-copy-panel {
    min-height: auto;
  }

  .auth-shell {
    display: flex;
    flex-direction: column;
  }

  .login-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .auth-body {
    display: block;
    padding: 12px;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-copy-panel {
    gap: 16px;
  }

  .auth-copy-panel h1 {
    font-size: 34px;
  }

  .auth-feature-grid {
    display: none;
  }

  .showcase-shell {
    padding: 12px;
    padding-top: 76px;
  }

  .preset-list,
  .mini-card-row,
  .hero-tags,
  .tab-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .balance-value {
    font-size: 40px;
  }

  .card-header,
  .panel-title-row,
  .summary-row,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
