:root {
  --eco-primary: #16a085;
  --eco-primary-dark: #0f766e;
  --eco-primary-soft: #eaf8f4;
  --eco-ink: #172033;
  --eco-muted: #667085;
  --eco-border: #e5eaf1;
  --eco-bg: #f5f7fa;
  --eco-sidebar: #111827;
  --eco-sidebar-muted: #94a3b8;
  --eco-blue: #3b82f6;
  --eco-amber: #f59e0b;
  --eco-violet: #8b5cf6;
  --eco-red: #ef4444;
  --eco-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--eco-ink); background: var(--eco-bg); }
body { margin: 0; min-width: 320px; background: var(--eco-bg); font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.hidden { display: none !important; }

.prototype-banner { height: 30px; background: #fef3c7; color: #92400e; border-bottom: 1px solid #fde68a; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; position: fixed; inset: 0 0 auto 0; z-index: 100; }
.app-shell { min-height: 100vh; padding-top: 30px; display: flex; }
.sidebar { position: fixed; top: 30px; bottom: 0; left: 0; width: 256px; z-index: 40; display: flex; flex-direction: column; background: var(--eco-sidebar); color: white; border-right: 1px solid rgba(255,255,255,.04); transition: transform .25s ease; }
.brand { height: 76px; padding: 14px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { width: 48px; height: 42px; object-fit: contain; background: white; border-radius: 10px; padding: 4px; }
.brand > div { min-width: 0; display: grid; }
.brand strong { font-size: 18px; letter-spacing: -.3px; }
.brand span { color: var(--eco-sidebar-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.sidebar-close { display: none !important; margin-left: auto; color: white !important; }
.side-nav { padding: 18px 12px; overflow: auto; flex: 1; }
.nav-label { color: #64748b; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 10px 8px; }
.nav-label-spaced { margin-top: 24px; }
.nav-item { width: 100%; min-height: 44px; border: 0; border-radius: 9px; padding: 0 12px; display: flex; align-items: center; gap: 12px; background: transparent; color: #cbd5e1; text-align: left; transition: .18s ease; }
.nav-item > i:first-child { width: 20px; font-size: 19px; color: #94a3b8; }
.nav-item span:not(.nav-pill) { flex: 1; font-weight: 500; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { background: rgba(22,160,133,.15); color: #6ee7b7; }
.nav-item.active > i:first-child { color: #6ee7b7; }
.nav-chevron { transition: transform .2s ease; }
.nav-group:not(.open) .nav-chevron { transform: rotate(-90deg); }
.nav-group:not(.open) .nav-children { display: none; }
.nav-children { margin: 4px 0 8px 28px; padding-left: 13px; border-left: 1px solid rgba(255,255,255,.12); }
.nav-child { width: 100%; min-height: 54px; color: #cbd5e1; background: transparent; border: 0; border-radius: 8px; display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; text-align: left; }
.nav-child:hover, .nav-child.active { background: rgba(255,255,255,.06); color: white; }
.nav-child > span:nth-child(2) { display: grid; }
.nav-child strong { font-size: 13px; }
.nav-child small { color: #64748b; font-size: 11px; }
.version-dot { width: 7px; height: 7px; border-radius: 50%; }
.version-dot.legacy { background: #94a3b8; }
.version-dot.target { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.1); }
.nav-count { color: #64748b; font-size: 11px; font-weight: 700; }
.nav-count.accent { color: #6ee7b7; }
.nav-pill { margin-left: auto; min-width: 25px; height: 20px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); color: #94a3b8; font-size: 10px; font-weight: 700; }
.sidebar-runtime { margin: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 12px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.runtime-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #6ee7b7; background: rgba(16,185,129,.12); font-size: 18px; }
.sidebar-runtime > div:nth-child(2) { display: grid; }
.sidebar-runtime span { color: #64748b; font-size: 10px; }
.sidebar-runtime strong { color: white; font-size: 13px; }
.runtime-ready { color: #6ee7b7 !important; font-weight: 700; }

.main-shell { margin-left: 256px; width: calc(100% - 256px); min-height: calc(100vh - 30px); }
.topbar { height: 76px; position: sticky; top: 30px; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--eco-border); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu { display: none !important; }
.environment-switch { min-width: 250px; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 10px; }
.env-indicator { width: 9px; height: 9px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px #dcfce7; }
.environment-switch > div { display: grid; }
.environment-switch small { color: var(--eco-muted); font-size: 10px; }
.environment-switch strong { font-size: 13px; }
.global-search { width: min(370px, 28vw); height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--eco-border); background: #f8fafc; border-radius: 9px; }
.global-search > i { color: #98a2b3; font-size: 17px; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--eco-ink); font-size: 12px; }
.global-search kbd { border: 1px solid #d0d5dd; background: white; color: #98a2b3; border-radius: 5px; padding: 2px 5px; font-size: 9px; white-space: nowrap; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--eco-border); background: white; color: #667085; border-radius: 9px; display: inline-grid; place-items: center; transition: .18s ease; }
.icon-button:hover { color: var(--eco-primary); border-color: #b7e4d9; background: var(--eco-primary-soft); }
.notification-button { position: relative; }
.notification-button > span { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; background: #ef4444; border: 1px solid white; border-radius: 50%; }
.user-menu { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 3px 0 3px 4px; color: var(--eco-ink); }
.avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #d1fae5; color: #047857; font-size: 11px; font-weight: 800; }
.user-menu > span:nth-child(2) { display: grid; text-align: left; }
.user-menu strong { font-size: 12px; }
.user-menu small { color: var(--eco-muted); font-size: 9px; }

.page-content { padding: 28px; max-width: 1800px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; color: #98a2b3; font-size: 11px; margin-bottom: 7px; }
.breadcrumbs strong { color: var(--eco-primary-dark); }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.8px; line-height: 1.15; }
.page-heading p { margin: 0; color: var(--eco-muted); font-size: 13px; }
.heading-actions { display: flex; gap: 10px; }
.kt-btn { gap: 8px; border-radius: 9px !important; font-size: 12px !important; font-weight: 650 !important; min-height: 39px; }
.kt-btn-primary { background: var(--eco-primary) !important; border-color: var(--eco-primary) !important; }
.kt-btn-primary:hover { background: var(--eco-primary-dark) !important; }
.kt-btn-light { background: white !important; border: 1px solid var(--eco-border) !important; color: #475467 !important; }

.notice-card { min-height: 66px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid #bfe8dd; border-radius: 12px; background: linear-gradient(90deg, #f0fdf9, #f8fffd); display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; }
.notice-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--eco-primary-dark); background: #d9f5ed; font-size: 19px; }
.notice-card strong { font-size: 13px; }
.notice-card p { margin: 3px 0 0; color: #667085; font-size: 11px; }
.notice-card code { color: var(--eco-primary-dark); font-weight: 650; }
.text-button { border: 0; background: transparent; color: var(--eco-primary-dark); font-weight: 650; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 112px; padding: 18px; border: 1px solid var(--eco-border); border-radius: 13px; background: white; box-shadow: var(--eco-shadow); display: flex; align-items: center; gap: 14px; }
.metric-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-size: 20px; }
.metric-icon.blue { background: #eff6ff; color: var(--eco-blue); }
.metric-icon.green { background: #ecfdf3; color: #16a34a; }
.metric-icon.amber { background: #fffbeb; color: var(--eco-amber); }
.metric-icon.violet { background: #f5f3ff; color: var(--eco-violet); }
.metric-card > div:last-child { display: grid; min-width: 0; }
.metric-card span { color: var(--eco-muted); font-size: 11px; font-weight: 600; }
.metric-card strong { font-size: 25px; line-height: 1.15; margin: 2px 0; letter-spacing: -.5px; }
.metric-card small { color: #98a2b3; font-size: 10px; }
.metric-card small.positive { color: #16a34a; }

.legacy-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.legacy-summary article { padding: 18px; min-height: 94px; background: white; border: 1px solid var(--eco-border); border-radius: 13px; display: flex; align-items: center; gap: 14px; }
.legacy-summary i { width: 42px; height: 42px; display: grid; place-items: center; color: var(--eco-primary); background: var(--eco-primary-soft); border-radius: 11px; font-size: 19px; }
.legacy-summary div { display: grid; }
.legacy-summary span { color: var(--eco-muted); font-size: 11px; }
.legacy-summary strong { font-size: 21px; }

.pipeline-card, .customer-card, .side-panel, .activity-card { background: white; border: 1px solid var(--eco-border); border-radius: 13px; box-shadow: var(--eco-shadow); }
.pipeline-card { padding: 20px; margin-bottom: 18px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { display: block; color: var(--eco-primary-dark); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .9px; margin-bottom: 3px; }
.section-title-row h2, .customer-card-header h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.blueprint-source { padding: 7px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--eco-border); color: var(--eco-muted); font-size: 10px; display: inline-flex; align-items: center; gap: 6px; }
.blueprint-source strong { color: var(--eco-ink); }
.pipeline { display: flex; align-items: center; margin-top: 22px; }
.pipeline-step { min-width: 112px; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0; text-align: left; color: #98a2b3; }
.step-number { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d0d5dd; border-radius: 50%; background: white; color: #98a2b3; }
.pipeline-step > span:last-child { display: grid; }
.pipeline-step small { font-size: 8px; font-weight: 800; letter-spacing: .8px; color: #98a2b3; }
.pipeline-step strong { color: #475467; font-size: 11px; }
.pipeline-step em { font-style: normal; font-size: 9px; color: #98a2b3; white-space: nowrap; }
.pipeline-step.complete .step-number { color: white; background: var(--eco-primary); border-color: var(--eco-primary); }
.pipeline-step.active .step-number { color: var(--eco-primary-dark); border: 2px solid var(--eco-primary); background: var(--eco-primary-soft); box-shadow: 0 0 0 4px #f0fdf9; }
.pipeline-step.active strong { color: var(--eco-primary-dark); }
.pipeline-line { height: 1px; flex: 1; min-width: 18px; background: #e4e7ec; margin: 0 10px; }
.pipeline-line.complete { background: var(--eco-primary); }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 18px; align-items: start; }
.customer-card { min-width: 0; overflow: hidden; }
.customer-card-header { min-height: 76px; padding: 17px 18px; border-bottom: 1px solid var(--eco-border); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.table-tools { display: flex; gap: 8px; }
.table-search { width: 220px; height: 38px; border: 1px solid var(--eco-border); background: #f8fafc; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.table-search i { color: #98a2b3; }
.table-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.filter-bar { padding: 10px 18px; display: flex; gap: 8px; border-bottom: 1px solid var(--eco-border); background: #fbfcfd; }
.filter-chip { min-height: 29px; padding: 0 10px; border: 1px solid var(--eco-border); background: white; border-radius: 15px; color: #667085; font-size: 10px; font-weight: 600; }
.filter-chip span { margin-left: 4px; color: #98a2b3; }
.filter-chip.active { border-color: #9edccc; background: var(--eco-primary-soft); color: var(--eco-primary-dark); }
.selection-bar { padding: 9px 18px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #effaf7; border-bottom: 1px solid #cdeee5; color: var(--eco-primary-dark); font-size: 11px; font-weight: 700; }
.selection-actions { display: flex; gap: 6px; }
.selection-actions button { min-height: 29px; padding: 0 9px; display: flex; align-items: center; gap: 5px; background: white; border: 1px solid #bfe5da; border-radius: 7px; color: var(--eco-primary-dark); font-size: 9px; font-weight: 650; }
.selection-actions button.primary { background: var(--eco-primary); color: white; border-color: var(--eco-primary); }
.table-wrap { overflow-x: auto; }
.customer-table { width: 100%; border-collapse: collapse; min-width: 1030px; }
.customer-table th { height: 48px; padding: 0 11px; background: #fbfcfd; border-bottom: 1px solid var(--eco-border); color: #667085; font-size: 9px; font-weight: 750; letter-spacing: .4px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.customer-table td { height: 64px; padding: 8px 11px; border-bottom: 1px solid #edf0f4; color: #344054; font-size: 11px; vertical-align: middle; white-space: nowrap; }
.customer-table tbody tr { transition: background .15s ease; }
.customer-table tbody tr:hover { background: #fbfefd; }
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--eco-primary); }
.checkbox-cell { width: 34px; text-align: center !important; }
.customer-name { display: grid; }
.customer-name strong { color: #101828; font-size: 11px; }
.customer-name span { color: #98a2b3; font-size: 9px; margin-top: 3px; }
.deployment-cell { display: grid; gap: 3px; }
.deployment-cell code { color: #475467; font-size: 9px; }
.deployment-cell span { color: #98a2b3; font-size: 9px; }
.db-cell { display: grid; gap: 4px; }
.db-cell code { color: #475467; font-size: 9px; }
.db-cell span { color: #98a2b3; font-size: 9px; }
.destination-cell { display: grid; gap: 3px; }
.destination-cell strong { color: var(--eco-primary-dark); font-size: 10px; }
.destination-cell code { color: #98a2b3; font-size: 8px; }
.readiness { display: grid; grid-template-columns: repeat(4, 20px); gap: 3px; }
.readiness span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: #f2f4f7; color: #98a2b3; font-size: 10px; }
.readiness span.done { background: #e8f8f3; color: var(--eco-primary-dark); }
.readiness span.warn { background: #fff7e6; color: #d97706; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 8px; border-radius: 12px; font-size: 9px; font-weight: 700; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.ready, .status-badge.success { color: #15803d; background: #ecfdf3; }
.status-badge.attention { color: #b45309; background: #fffbeb; }
.status-badge.progress { color: #2563eb; background: #eff6ff; }
.row-action { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--eco-border); border-radius: 7px; background: white; color: #667085; }
.row-action:hover { color: var(--eco-primary-dark); border-color: #a8ded1; }
.actions-cell { width: 45px; text-align: right !important; }
.table-footer { min-height: 58px; padding: 0 18px; border-top: 1px solid var(--eco-border); display: flex; align-items: center; justify-content: space-between; color: #98a2b3; font-size: 10px; }
.pagination { display: flex; gap: 4px; align-items: center; }
.pagination button { width: 28px; height: 28px; border: 1px solid var(--eco-border); background: white; color: #667085; border-radius: 6px; font-size: 9px; }
.pagination button.active { color: white; background: var(--eco-primary); border-color: var(--eco-primary); }
.pagination button:disabled { opacity: .5; cursor: default; }

.side-panel { padding: 18px; }
.side-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--eco-border); }
.side-panel h3 { margin: 0; font-size: 14px; }
.config-list { margin: 0; }
.config-list > div { padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.config-list dt { color: #98a2b3; font-size: 9px; margin-bottom: 5px; }
.config-list dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.config-list code { color: #475467; font-size: 9px; overflow-wrap: anywhere; }
.config-list i { color: #16a34a; }
.env-preview { margin-top: 15px; border: 1px solid var(--eco-border); border-radius: 9px; overflow: hidden; }
.env-preview > div { height: 36px; padding: 0 10px; background: #f8fafc; border-bottom: 1px solid var(--eco-border); display: flex; align-items: center; justify-content: space-between; color: #667085; font-size: 9px; font-weight: 700; }
.env-preview button { border: 0; background: transparent; color: #667085; }
.env-preview pre { margin: 0; padding: 11px; background: #101828; color: #d0d5dd; font-size: 8px; line-height: 1.75; overflow: auto; }
.env-preview pre span { color: #6ee7b7; }
.config-footnote { margin-top: 13px; display: flex; gap: 9px; color: #667085; font-size: 9px; line-height: 1.45; }
.config-footnote i { color: var(--eco-primary); font-size: 16px; }

.activity-card { margin-top: 18px; padding: 18px; }
.activity-list { margin-top: 14px; }
.activity-row { min-height: 62px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid #edf0f4; }
.activity-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.activity-icon.success { background: #ecfdf3; color: #16a34a; }
.activity-icon.blue { background: #eff6ff; color: var(--eco-blue); }
.activity-icon.amber { background: #fffbeb; color: var(--eco-amber); }
.activity-row strong { font-size: 11px; }
.activity-row p { margin: 3px 0 0; color: #98a2b3; font-size: 9px; }
.activity-row > span:last-child { color: #98a2b3; font-size: 9px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); z-index: 80; }
.customer-drawer { position: fixed; top: 30px; right: 0; bottom: 0; width: min(430px, 100vw); background: white; z-index: 90; box-shadow: -20px 0 50px rgba(15,23,42,.18); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.customer-drawer.open { transform: translateX(0); }
.drawer-header { padding: 22px; border-bottom: 1px solid var(--eco-border); display: flex; justify-content: space-between; gap: 14px; }
.drawer-header h2 { margin: 0; font-size: 19px; }
.drawer-header p { margin: 4px 0 0; color: #98a2b3; font-size: 10px; }
.drawer-body { padding: 20px 22px; overflow: auto; flex: 1; }
.drawer-status { display: flex; align-items: center; justify-content: space-between; color: #98a2b3; font-size: 9px; }
.drawer-progress { margin: 20px 0 24px; }
.drawer-progress > div:first-child, .run-progress > div:first-child { display: flex; justify-content: space-between; color: #667085; font-size: 10px; margin-bottom: 8px; }
.progress-track { height: 7px; background: #edf0f4; border-radius: 4px; overflow: hidden; }
.progress-track span { height: 100%; display: block; background: linear-gradient(90deg, var(--eco-primary), #34d399); border-radius: inherit; transition: width .35s ease; }
.drawer-body h3 { margin: 20px 0 10px; font-size: 12px; }
.drawer-stages { border: 1px solid var(--eco-border); border-radius: 10px; overflow: hidden; }
.drawer-stage { min-height: 54px; padding: 9px 11px; display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; border-bottom: 1px solid #edf0f4; }
.drawer-stage:last-child { border-bottom: 0; }
.drawer-stage > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #f2f4f7; color: #667085; }
.drawer-stage.done > i { background: #e8f8f3; color: var(--eco-primary-dark); }
.drawer-stage.warn > i { background: #fffbeb; color: #d97706; }
.drawer-stage div { display: grid; }
.drawer-stage strong { font-size: 10px; }
.drawer-stage small { color: #98a2b3; font-size: 8px; }
.drawer-stage > span { color: #98a2b3; font-size: 8px; }
.drawer-config { margin: 0; border: 1px solid var(--eco-border); border-radius: 10px; }
.drawer-config div { min-height: 43px; padding: 8px 11px; display: grid; grid-template-columns: 80px 1fr; align-items: center; border-bottom: 1px solid #edf0f4; }
.drawer-config div:last-child { border-bottom: 0; }
.drawer-config dt { color: #98a2b3; font-size: 9px; }
.drawer-config dd { margin: 0; color: #475467; font: 9px "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.drawer-warning { margin-top: 16px; padding: 11px; border-radius: 9px; background: #f0fdf9; color: #667085; display: flex; gap: 9px; font-size: 9px; line-height: 1.5; }
.drawer-warning i { color: var(--eco-primary); font-size: 17px; }
.drawer-footer { padding: 15px 22px; border-top: 1px solid var(--eco-border); display: flex; justify-content: flex-end; gap: 9px; }

.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.migration-modal { width: min(610px, 100%); max-height: calc(100vh - 70px); overflow: auto; background: white; border-radius: 15px; box-shadow: 0 24px 70px rgba(15,23,42,.25); }
.modal-header { padding: 20px; display: grid; grid-template-columns: 42px 1fr 38px; gap: 12px; align-items: start; border-bottom: 1px solid var(--eco-border); }
.modal-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--eco-primary-soft); color: var(--eco-primary-dark); font-size: 20px; }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-header p { margin: 4px 0 0; color: #98a2b3; font-size: 10px; }
.modal-body { padding: 18px 20px; }
.modal-selection { min-height: 42px; padding: 0 12px; border-radius: 9px; background: #f8fafc; display: flex; align-items: center; justify-content: space-between; color: #667085; font-size: 10px; }
.modal-selection strong { color: var(--eco-ink); }
.migration-checklist { margin-top: 13px; border: 1px solid var(--eco-border); border-radius: 10px; overflow: hidden; }
.migration-checklist label { min-height: 62px; padding: 10px 12px; display: grid; grid-template-columns: 17px 1fr; gap: 11px; align-items: center; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.migration-checklist label:last-child { border-bottom: 0; }
.migration-checklist input { width: 15px; height: 15px; accent-color: var(--eco-primary); }
.migration-checklist label > span { display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 8px; }
.migration-checklist i { width: 24px; height: 24px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 6px; background: #f2f4f7; color: #667085; }
.migration-checklist strong { font-size: 10px; }
.migration-checklist small { color: #98a2b3; font-size: 8px; }
.confirmation-box { margin-top: 13px; padding: 11px; border: 1px solid #bfe8dd; border-radius: 9px; background: #f0fdf9; display: flex; gap: 10px; color: #667085; }
.confirmation-box i { color: var(--eco-primary); font-size: 18px; }
.confirmation-box p { margin: 0; font-size: 9px; line-height: 1.5; }
.run-progress { margin-top: 16px; padding: 13px; border: 1px solid var(--eco-border); border-radius: 9px; }
.run-progress p { margin: 8px 0 0; color: #98a2b3; font-size: 8px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--eco-border); display: flex; justify-content: flex-end; gap: 8px; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 9px; }
.toast { min-width: 280px; max-width: 380px; padding: 12px 14px; background: #101828; color: white; border-radius: 10px; box-shadow: 0 12px 35px rgba(15,23,42,.22); display: flex; align-items: center; gap: 10px; animation: toastIn .25s ease; font-size: 10px; }
.toast i { color: #6ee7b7; font-size: 17px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1280px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .side-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .side-panel-header { grid-column: 1 / -1; }
  .config-footnote { align-self: end; }
  .pipeline-step { min-width: 94px; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-105%); }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 20px 0 55px rgba(15,23,42,.3); }
  .sidebar-close, .mobile-menu { display: inline-grid !important; }
  .main-shell { margin-left: 0; width: 100%; }
  .stats-grid, .legacy-summary { grid-template-columns: repeat(2, 1fr); }
  .global-search { width: 300px; }
  .user-menu > span:nth-child(2), .user-menu > i { display: none; }
}

@media (max-width: 760px) {
  .prototype-banner { padding: 0 10px; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar { padding: 0 14px; height: 64px; }
  .environment-switch { min-width: 0; }
  .environment-switch small, .environment-switch > i { display: none; }
  .global-search { display: none; }
  .page-content { padding: 18px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .kt-btn { flex: 1; }
  .notice-card { grid-template-columns: 38px 1fr; }
  .notice-card .text-button { grid-column: 2; justify-self: start; }
  .stats-grid, .legacy-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 96px; padding: 13px; }
  .metric-icon { width: 38px; height: 38px; }
  .metric-card strong { font-size: 21px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .pipeline { overflow-x: auto; padding-bottom: 10px; }
  .pipeline-line { flex: 0 0 28px; }
  .customer-card-header { align-items: flex-start; flex-direction: column; }
  .table-tools, .table-search { width: 100%; }
  .selection-bar { align-items: flex-start; flex-direction: column; }
  .selection-actions { width: 100%; overflow-x: auto; }
  .selection-actions button { white-space: nowrap; }
  .side-panel { display: block; }
  .activity-row { grid-template-columns: 34px 1fr; }
  .activity-row > span:last-child { grid-column: 2; }
}

@media (max-width: 480px) {
  .stats-grid, .legacy-summary { grid-template-columns: 1fr; }
  .page-heading h1 { font-size: 24px; }
  .heading-actions { flex-direction: column; }
  .blueprint-source { max-width: 100%; overflow: hidden; }
  .side-panel { padding: 15px; }
  .table-footer { align-items: flex-start; flex-direction: column; padding: 13px 16px; gap: 10px; }
  .modal-header { grid-template-columns: 36px 1fr 34px; padding: 16px; }
  .modal-icon { width: 36px; height: 36px; }
  .modal-body { padding: 14px 16px; }
}
