:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --surface-muted: #f2f4f7;
  --nav: #101828;
  --nav-raised: #1d2939;
  --nav-text: #f9fafb;
  --nav-muted: #98a2b3;
  --text: #101828;
  --muted: #475467;
  --subtle: #667085;
  --line: #d0d5dd;
  --line-soft: #eaecf0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --success: #067647;
  --success-bg: #ecfdf3;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.16);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-logo.small { width: 40px; height: 40px; }
.brand-kicker { display: block; font-size: 10px; font-weight: 750; letter-spacing: 0.16em; }
.eyebrow { margin: 0 0 4px; color: var(--subtle); font-size: 11px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 42%) minmax(0, 1fr); }
.login-brand-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: var(--nav-text);
  background: radial-gradient(circle at 14% 12%, rgba(47, 128, 237, 0.3), transparent 34%), linear-gradient(155deg, #101828 0%, #18243a 62%, #0b1220 100%);
}
.login-brand-lockup, .side-brand { display: flex; align-items: center; gap: 12px; }
.login-brand-lockup strong { display: block; margin-top: 1px; font-size: 18px; }
.login-brand-lockup .brand-kicker { color: #d0d5dd; }
.login-value-proposition { max-width: 480px; padding-bottom: 8vh; }
.login-value-proposition p { margin: 0 0 16px; color: #84adff; font-size: 11px; font-weight: 750; letter-spacing: 0.16em; }
.login-value-proposition h2 { margin: 0; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.18; letter-spacing: -0.045em; }
.login-value-proposition span { display: block; margin-top: 24px; color: #d0d5dd; font-size: 15px; line-height: 1.8; }
.login-surface { min-width: 0; min-height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface); }
.login-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line-soft); color: var(--subtle); font-size: 12px; }
.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-panel { width: min(100%, 420px); }
.login-panel h1 { margin: 0; font-size: 30px; letter-spacing: -0.035em; }
.login-copy { margin: 10px 0 28px; color: var(--subtle); line-height: 1.65; }
.login-form { display: grid; gap: 16px; }
.login-form label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 650; }
.login-form input, .search-field input { width: 100%; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--text); background: #fff; transition: border-color 0.18s, box-shadow 0.18s; }
.login-form input { height: 46px; padding: 0 13px; }
.login-form input:focus, .search-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.login-form .primary-button { width: 100%; margin-top: 4px; }
.form-error { margin: 0; color: var(--danger); font-size: 13px; }

.primary-button, .secondary-button { min-height: 44px; border-radius: 6px; font-weight: 700; }
.primary-button { border: 0; color: #fff; background: var(--brand); }
.primary-button:hover { background: var(--brand-dark); }
.primary-button:disabled { cursor: progress; opacity: 0.65; }
.secondary-button { padding: 0 16px; border: 1px solid var(--line); color: var(--text); background: #fff; }

.app-shell { min-height: 100vh; }
.side-navigation { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 240px; display: flex; flex-direction: column; padding: 24px 16px 16px; color: var(--nav-text); background: var(--nav); overflow-y: auto; }
.side-brand { min-height: 48px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.side-brand strong { display: block; margin-top: 1px; font-size: 15px; }
.side-brand .brand-kicker { color: var(--nav-muted); }
.primary-nav { display: grid; gap: 4px; padding-top: 18px; }
.nav-section-label { margin: 14px 10px 6px; color: var(--nav-muted); font-size: 10px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-section-label:first-child { margin-top: 0; }
.primary-nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 6px; color: #d0d5dd; font-size: 13px; font-weight: 650; text-decoration: none; }
.primary-nav a svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.primary-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.primary-nav a.active { color: #fff; background: var(--nav-raised); box-shadow: inset 3px 0 0 #84adff; }
.nav-release-summary { margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--nav-muted); font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.navigation-backdrop { display: none; }
.shell-body { min-height: 100vh; display: flex; flex-direction: column; margin-left: 240px; }

.topbar { position: sticky; z-index: 20; top: 0; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); }
.page-identity, .topbar-actions, .release-context, .operator-menu { display: flex; align-items: center; }
.page-identity { min-width: 0; gap: 12px; }
.page-identity h1 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -0.025em; }
.page-description { margin: 3px 0 0; color: var(--subtle); font-size: 12px; }
.topbar-actions { flex: none; gap: 8px; }
.release-context { min-height: 40px; gap: 7px; padding: 0 10px; border-right: 1px solid var(--line-soft); }
.environment-badge, .release-badge, .count-badge, .section-state, .status-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; font-size: 11px; font-weight: 700; }
.environment-badge { min-height: 26px; padding: 0 9px; color: var(--info); background: var(--info-bg); text-transform: uppercase; }
.release-badge { max-width: 160px; min-height: 26px; padding: 0 9px; overflow: hidden; color: var(--muted); background: var(--surface-muted); text-overflow: ellipsis; white-space: nowrap; }
.operator-menu { min-height: 44px; gap: 8px; padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.operator-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #344054; font-size: 9px; letter-spacing: 0.04em; }
.navigation-toggle { display: none !important; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; }
.icon-button:hover { border-color: var(--line-soft); background: var(--surface-soft); }
.icon-button.bordered { border-color: var(--line); background: #fff; }
.icon-button svg, .search-field svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.loading svg { animation: spin 0.9s linear infinite; }
.icon-button:focus-visible, .primary-nav a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .lineage-canvas:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.workspace { flex: 1; width: min(100%, 1440px); margin: 0 auto; padding: 32px 24px 64px; }
.workspace-view { min-width: 0; }
.platform-footer { width: 100%; padding: 16px 24px; color: var(--subtle); font-size: 11px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.login-footer { border-top: 1px solid var(--line-soft); }
.dashboard-footer { border-top: 1px solid var(--line-soft); background: var(--surface); }
.page-heading, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading { margin-bottom: 24px; }
.page-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; }
.updated-at { color: var(--subtle); font-size: 12px; }
.state-panel { padding: 30px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--subtle); background: var(--surface); box-shadow: var(--shadow-sm); }
.state-panel.error { display: grid; justify-items: start; gap: 8px; color: var(--danger); }

.summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.summary-card { min-height: 112px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.summary-card .label { color: var(--subtle); font-size: 12px; }
.summary-card .value { margin-top: 10px; font-size: 26px; font-weight: 750; letter-spacing: -0.035em; }
.summary-card .hint { margin-top: 5px; color: var(--subtle); font-size: 11px; }
.summary-card.status-card .value { font-size: 18px; }
.warning-section, .content-section { margin-top: 20px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.warning-section { border-color: #fedf89; background: #fffcf5; }
.section-heading { align-items: center; margin-bottom: 16px; }
.section-heading h3 { margin: 0; font-size: 16px; letter-spacing: -0.015em; }
.subsection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 20px 0 10px; }
.subsection-heading h4 { margin: 0; font-size: 13px; }
.subsection-heading span { color: var(--subtle); font-size: 11px; }
.count-badge { min-height: 24px; padding: 0 8px; color: var(--warning); background: var(--warning-bg); }
.warning-list { display: grid; gap: 8px; }
.warning-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px; border: 1px solid #fedf89; border-radius: 6px; background: var(--warning-bg); }
.warning-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #f79009; }
.warning-item strong { display: block; font-size: 13px; }
.warning-item p { margin: 3px 0 0; color: #7a2e0e; font-size: 12px; line-height: 1.5; }

.section-nav { display: flex; gap: 8px; margin: 20px 0 0; padding: 0; overflow-x: auto; scrollbar-width: thin; }
.section-nav a { flex: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 650; text-decoration: none; }
.section-nav a:hover { color: var(--brand); border-color: #84adff; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card { padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-soft); }
.product-card strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.product-card span { display: inline-block; margin-top: 7px; color: var(--subtle); font-size: 12px; }
.section-state { min-height: 24px; padding: 0 8px; color: var(--success); background: var(--success-bg); }
.section-state.unavailable { color: var(--subtle); background: var(--surface-muted); }
.table-frame { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 8px; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td { padding: 12px 13px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.data-table td { overflow-wrap: anywhere; font-size: 12px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfd; }
.muted { color: var(--subtle); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.status-pill { min-height: 23px; padding: 0 8px; color: var(--muted); background: var(--surface-muted); text-transform: uppercase; }
.status-pill.success, .status-pill.pass, .status-pill.active, .status-pill.healthy { color: var(--success); background: var(--success-bg); }
.status-pill.failed, .status-pill.fail, .status-pill.invalidated { color: var(--danger); background: var(--danger-bg); }
.status-pill.warn, .status-pill.attention, .status-pill.running { color: var(--warning); background: var(--warning-bg); }
.status-pill.partial { color: var(--muted); background: var(--surface-muted); }
.empty-state { padding: 30px 16px; color: var(--subtle); text-align: center; font-size: 13px; }
.catalog-heading { align-items: center; }
.search-field { position: relative; width: min(100%, 280px); color: var(--subtle); }
.search-field svg { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); pointer-events: none; }
.search-field input { height: 40px; padding: 0 12px 0 36px; }

.workspace-heading { margin-bottom: 20px; }
.compact-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; }
.compact-summary .summary-card { min-height: 96px; }
.operations-section { margin-top: 0; }
.operations-toolbar, .lineage-controls { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.operations-toolbar .wide-search { flex: 1; width: auto; min-width: 240px; }
.select-field { display: grid; gap: 5px; min-width: 126px; color: var(--subtle); font-size: 10px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.select-field select { height: 40px; padding: 0 31px 0 11px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--text); background: #fff; font-size: 12px; font-weight: 600; text-transform: none; }
.select-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.inline-heading { margin-bottom: 12px; }
.inline-state { padding: 28px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--subtle); text-align: center; font-size: 13px; }
.inline-state.error { color: var(--danger); border-color: #fecdca; background: var(--danger-bg); }
.inline-state.warning { color: var(--warning); border-color: #fedf89; background: var(--warning-bg); }
.table-link { width: 100%; padding: 0; border: 0; color: var(--info); background: transparent; font: inherit; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.table-link:hover { text-decoration: underline; }
.metric-stack { display: grid; gap: 3px; }
.metric-stack strong { font-size: 12px; }
.metric-stack span { color: var(--subtle); font-size: 10px; }

.detail-drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); border-left: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.detail-drawer.fullscreen { inset: 12px; width: auto; border: 1px solid var(--line); border-radius: 12px; }
.drawer-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.drawer-header h2 { margin: 0; font-size: 20px; letter-spacing: -0.025em; }
.drawer-actions { display: flex; gap: 8px; }
.drawer-body { height: calc(100% - 77px); padding: 20px; overflow: auto; }
.drawer-section + .drawer-section { margin-top: 24px; }
.drawer-section h3 { margin: 0 0 10px; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.detail-item { min-height: 72px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-soft); }
.detail-item span { display: block; color: var(--subtle); font-size: 10px; font-weight: 700; }
.detail-item strong { display: block; margin-top: 7px; overflow-wrap: anywhere; font-size: 12px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; padding-bottom: 15px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; top: 18px; bottom: 0; left: 7px; width: 1px; background: var(--line-soft); }
.timeline-dot { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 2px; border: 3px solid #fff; border-radius: 50%; background: #98a2b3; box-shadow: 0 0 0 1px var(--line); }
.timeline-dot.success { background: var(--success); }
.timeline-dot.failed { background: var(--danger); }
.timeline-dot.running { background: #f79009; }
.timeline-content { min-width: 0; }
.timeline-content strong { display: block; font-size: 12px; }
.timeline-content p { margin: 4px 0 0; color: var(--subtle); font-size: 11px; line-height: 1.5; }
.drawer-primary-action { width: 100%; margin-top: 12px; }

.lineage-workbench { margin-top: 0; padding: 16px; }
.lineage-controls { align-items: flex-end; margin-bottom: 14px; }
.segmented-control { display: flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.segmented-control button { height: 34px; padding: 0 12px; border: 0; border-radius: 4px; color: var(--subtle); background: transparent; font-size: 12px; font-weight: 700; }
.segmented-control button.active { color: var(--info); background: #fff; box-shadow: var(--shadow-sm); }
.lineage-focus-field { flex: 1; width: auto; min-width: 230px; }
.compact-button { min-height: 44px; padding: 0 18px; }
.lineage-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.lineage-legend { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-soft); }
.layer-filter-group, .lineage-semantics, .lineage-path-actions { display: flex; align-items: center; gap: 6px; }
.layer-filter-group button, .lineage-path-actions button { min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; color: var(--subtle); background: transparent; font-size: 10px; font-weight: 750; white-space: nowrap; }
.layer-filter-group button.active, .lineage-path-actions button.active { border-color: #b2ccff; color: var(--info); background: #fff; box-shadow: var(--shadow-sm); }
.layer-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 999px; background: #98a2b3; }
.layer-dot.ods { background: #1570ef; }
.layer-dot.dwd { background: #7f56d9; }
.layer-dot.dws { background: #dc6803; }
.layer-dot.ads { background: #039855; }
.lineage-semantics { color: var(--muted); font-size: 9px; white-space: nowrap; }
.lineage-semantics span { display: inline-flex; align-items: center; gap: 4px; }
.kind-key, .edge-key { display: inline-block; width: 14px; height: 8px; border-radius: 2px; }
.kind-key.dataset { border-left: 3px solid var(--brand); background: #fff; }
.kind-key.execution { border-left: 3px solid #7f56d9; background: #fff; }
.edge-key { height: 2px; background: #98a2b3; }
.edge-key.observed { background: var(--success); }
.lineage-path-actions { margin: -2px 0 12px; padding: 7px 10px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); color: var(--subtle); font-size: 10px; }
.lineage-path-actions > span { flex: none; font-weight: 800; }
.lineage-graph-shell { position: relative; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--canvas); }
.lineage-graph-shell.fullscreen { position: fixed; z-index: 45; inset: 10px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.graph-toolbar { position: absolute; z-index: 8; top: 12px; right: 12px; left: 12px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.graph-toolbar-group { display: flex; gap: 6px; pointer-events: auto; }
.graph-toolbar .icon-button { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-sm); }
.lineage-canvas { position: relative; height: 620px; overflow: hidden; outline: none; cursor: grab; background-image: radial-gradient(#d0d5dd 1px, transparent 1px); background-size: 22px 22px; }
.lineage-canvas:active { cursor: grabbing; }
.lineage-scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.execution-rail { fill: rgba(127, 86, 217, 0.045); stroke: rgba(127, 86, 217, 0.28); stroke-dasharray: 5 4; }
.execution-rail-title { fill: #6941c6; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; }
.lineage-lane rect { stroke-width: 1; }
.lineage-lane.ods rect { fill: rgba(21, 112, 239, 0.045); stroke: rgba(21, 112, 239, 0.26); }
.lineage-lane.dwd rect { fill: rgba(127, 86, 217, 0.045); stroke: rgba(127, 86, 217, 0.26); }
.lineage-lane.dws rect { fill: rgba(220, 104, 3, 0.045); stroke: rgba(220, 104, 3, 0.26); }
.lineage-lane.ads rect { fill: rgba(3, 152, 85, 0.045); stroke: rgba(3, 152, 85, 0.26); }
.lineage-lane-title { fill: var(--text); font-size: 12px; font-weight: 850; }
.lineage-lane-description { fill: var(--subtle); font-size: 10px; }
.lineage-edges { pointer-events: none; }
.lineage-edge { fill: none; stroke: #98a2b3; stroke-width: 1.6; }
.lineage-edge.input, .lineage-edge.output { stroke: #528bff; }
.lineage-edge.read, .lineage-edge.reference { stroke-dasharray: 6 5; }
.lineage-edge.observed { stroke: var(--success); stroke-width: 2; }
.lineage-edge.path-dimmed { opacity: 0.1; }
.lineage-edge.layer-filtered { opacity: 0.14; }
.lineage-edge.transition-skip { stroke-dasharray: 8 4; }
.lineage-edge.transition-backward { stroke: var(--danger); stroke-dasharray: 5 4; }
.lineage-edge-label { fill: var(--subtle); font-size: 10px; paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; stroke-linejoin: round; }
.lineage-node-slot { overflow: visible; }
.lineage-node { width: 100%; height: 100%; padding: 13px; border: 1px solid var(--line); border-left: 4px solid #7d8ca2; border-radius: 8px; color: var(--text); background: rgba(255, 255, 255, 0.98); box-shadow: 0 7px 22px rgba(16, 24, 40, 0.08); text-align: left; transition: opacity 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
.lineage-node:hover, .lineage-node.selected { border-color: #84adff; box-shadow: 0 11px 28px rgba(37, 99, 235, 0.14); transform: translateY(-2px); }
.lineage-node.dataset { border-left-color: var(--brand); }
.lineage-node.pipeline { border-left-color: #7f56d9; }
.lineage-node.step { border-left-color: #dc6803; }
.lineage-node.run { border-left-color: #475467; }
.lineage-node.materialization { border-left-color: var(--success); }
.lineage-node.path-dimmed { opacity: 0.14; }
.lineage-node.layer-filtered { opacity: 0.2; }
.node-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.node-semantics { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.node-kind { color: var(--subtle); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lineage-node strong { display: block; margin-top: 8px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lineage-node > span { display: block; margin-top: 4px; overflow: hidden; color: var(--subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lineage-node > .node-heading { display: flex; margin-top: 0; overflow: visible; }
.layer-badge, .execution-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: 0.04em; white-space: nowrap; }
.layer-badge.ods { color: #175cd3; background: #eff8ff; }
.layer-badge.dwd { color: #6941c6; background: #f4f3ff; }
.layer-badge.dws { color: #b54708; background: #fffaeb; }
.layer-badge.ads { color: #027a48; background: #ecfdf3; }
.execution-badge { color: #475467; background: #f2f4f7; }
.node-metrics { display: flex; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 9px; }
.graph-state { position: absolute; z-index: 7; inset: 0; display: grid; place-items: center; padding: 30px; color: var(--subtle); background: rgba(248, 250, 252, 0.92); text-align: center; }
.lineage-list-panel { margin-top: 14px; }

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-badge, .operator-label { display: none; }
  .lineage-controls { flex-wrap: wrap; }
  .lineage-focus-field { min-width: min(100%, 280px); }
}

@media (max-width: 480px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; padding: 24px 20px; }
  .login-value-proposition { display: none; }
  .login-brand-lockup .brand-logo { width: 42px; height: 42px; }
  .login-topbar { min-height: 60px; padding: 0 16px; }
  .login-main { padding: 36px 20px; align-items: start; }
  .login-panel { padding-top: 4vh; }
  .login-panel h1 { font-size: 26px; }
  .login-footer { text-align: left; }

  .side-navigation { width: min(320px, calc(100vw - 48px)); transform: translateX(-102%); transition: transform 0.2s ease; box-shadow: var(--shadow-lg); }
  .app-shell.navigation-open .side-navigation { transform: translateX(0); }
  .navigation-backdrop { position: fixed; z-index: 25; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: rgba(16, 24, 40, 0.48); }
  .shell-body { margin-left: 0; }
  .topbar { min-height: 104px; align-items: flex-start; gap: 8px; padding: 10px 12px; backdrop-filter: none; }
  .navigation-toggle { display: grid !important; }
  .page-identity { gap: 6px; }
  .page-identity h1 { max-width: 132px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .page-identity .eyebrow, .page-description, .operator-menu { display: none; }
  .topbar-actions { display: grid; grid-template-columns: 44px 44px; gap: 2px; }
  .release-context { grid-column: 1 / -1; grid-row: 2; min-height: 28px; display: flex; justify-content: flex-end; gap: 5px; padding: 0; border: 0; }
  .release-badge { display: inline-flex; max-width: 104px; }
  .workspace { padding: 24px 14px 44px; }
  .platform-footer { padding: 14px; text-align: left; }
  .page-heading { align-items: flex-start; gap: 12px; }
  .page-heading h2 { font-size: 24px; }
  .updated-at { max-width: 132px; text-align: right; }
  .summary-grid, .compact-summary, .lineage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card { min-height: 100px; padding: 14px; }
  .summary-card.status-card { grid-column: 1 / -1; }
  .warning-section, .content-section { padding: 14px; }
  .section-nav { margin-right: -14px; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .table-frame { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 680px; }
  .operations-toolbar { align-items: stretch; flex-wrap: wrap; }
  .operations-toolbar .wide-search { flex-basis: 100%; min-width: 0; }
  .operations-toolbar .select-field { flex: 1; }
  .lineage-controls { align-items: stretch; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; }
  .lineage-focus-field { flex-basis: 100%; min-width: 0; }
  .lineage-controls .select-field { flex: 1; min-width: 100px; }
  .lineage-controls .compact-button { flex: 1; }
  .lineage-legend { align-items: flex-start; flex-direction: column; overflow: hidden; }
  .layer-filter-group, .lineage-semantics { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .lineage-canvas { height: 540px; }
  .graph-toolbar { top: 8px; right: 8px; left: 8px; }
  .graph-toolbar .icon-button { width: 44px; height: 44px; }
  .detail-drawer, .detail-drawer.fullscreen { inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
  .detail-grid { grid-template-columns: 1fr; }
}
