:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --teal: #0f766e;
  --violet: #7c3aed;
  --amber: #b45309;
  --red: #b42318;
  --green: #067647;
  --ink: #152033;
  --ink-soft: #344054;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --surface: #fff;
  --canvas: #f7f8fa;
  --sidebar: #111827;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .04);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand-letter { font-weight: 850; font-size: 17px; }
.brand-name { font-size: 17px; }
.button { min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; font-weight: 680; font-size: 14px; line-height: 1; cursor: pointer; text-decoration: none; transition: border-color .16s, background .16s, transform .16s, box-shadow .16s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .side-link:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 2px; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.2); }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.button-outline:hover:not(:disabled) { border-color: #98a2b3; background: #fafafa; }
.button-quiet { background: transparent; color: var(--ink-soft); }
.button-quiet:hover:not(:disabled) { background: #f2f4f7; }
.button.compact { min-height: 36px; padding: 0 13px; border-radius: 8px; font-size: 13px; }
.eyebrow, .top-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.inline-link { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* Public landing */
.landing-body { background: #fff; color: var(--ink); }
.landing-nav { height: 70px; max-width: 1180px; padding: 0 24px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.landing-nav nav { display: flex; gap: 28px; }
.landing-nav nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; }
.landing-nav nav a:hover { color: var(--ink); }
.landing-nav > .button { justify-self: end; }
.landing-hero { max-width: 1180px; margin: auto; padding: 96px 24px 88px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.hero-copy h1 { font-size: clamp(49px, 6vw, 76px); line-height: .99; letter-spacing: -.06em; margin: 22px 0 24px; max-width: 720px; }
.hero-copy > p { font-size: 20px; line-height: 1.65; color: var(--muted); max-width: 660px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.proof-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; color: var(--muted); font-size: 12px; font-weight: 650; }
.proof-row span::before { content: "✓"; color: var(--green); margin-right: 6px; }
.hero-visual { position: relative; }
.product-preview { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 22px; box-shadow: 0 32px 80px rgba(16, 24, 40, .14); transform: rotate(1.4deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 16px; font-weight: 760; }
.live-chip { color: var(--green); background: #ecfdf3; border-radius: 99px; padding: 5px 9px; font-size: 11px; }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-metrics > div { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 13px; padding: 14px; display: grid; }
.preview-metrics span, .preview-metrics small { color: var(--muted); font-size: 11px; }
.preview-metrics strong { font-size: 25px; margin: 6px 0 2px; letter-spacing: -.04em; }
.preview-list { margin-top: 12px; display: grid; gap: 8px; }
.preview-list > div { position: relative; padding: 13px 55px 13px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; }
.preview-list span:first-child { color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 800; }
.preview-list > div:nth-child(2) span:first-child { color: var(--amber); }
.preview-list > div:nth-child(3) span:first-child { color: var(--accent); }
.preview-list strong { font-size: 13px; margin: 4px 0 2px; }
.preview-list small { color: var(--muted); font-size: 10px; }
.preview-score { position: absolute; right: 14px; top: 22px; font-size: 15px !important; color: var(--green) !important; }
.preview-score.warn { color: var(--amber) !important; }
.preview-score.info { color: var(--accent) !important; }
.preview-note { position: absolute; right: -18px; bottom: -28px; background: #111827; color: #fff; border-radius: 9px; padding: 9px 12px; font-size: 11px; transform: rotate(-3deg); box-shadow: var(--shadow); }
.landing-section { padding: 88px 24px; }
.landing-section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.tint-section { background: #f4f8ff; border-block: 1px solid #dbeafe; }
.section-lead { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
.section-lead .eyebrow { grid-column: 1 / -1; }
.section-lead h2 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.06; letter-spacing: -.045em; margin: 18px 0 0; }
.section-lead p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 24px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.feature-grid article { background: rgba(255,255,255,.85); border: 1px solid #dbeafe; border-radius: 18px; padding: 28px; }
.feature-number { color: var(--accent); font-size: 12px; font-weight: 800; }
.feature-grid h3 { font-size: 23px; margin: 30px 0 10px; }
.feature-grid p { color: var(--muted); line-height: 1.65; margin: 0; }
.architecture-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; position: relative; }
.architecture-row::before { content: ""; position: absolute; height: 2px; background: #bfdbfe; left: 16%; right: 16%; top: 50%; z-index: 0; }
.architecture-node { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; box-shadow: var(--shadow); }
.architecture-node.primary { border-color: #93c5fd; }
.architecture-node span, .architecture-node small { color: var(--muted); }
.architecture-node strong { font-size: 25px; margin: 8px 0; }
.landing-cta { max-width: 1132px; margin: 40px auto 88px; padding: 60px; border-radius: 26px; background: var(--sidebar); color: #fff; text-align: center; }
.landing-cta h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.05em; max-width: 780px; margin: 18px auto 30px; }
.landing-cta .eyebrow { color: #93c5fd; }
.landing-footer { max-width: 1180px; margin: auto; padding: 30px 24px 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 20px; color: var(--muted); }
.landing-footer p { font-size: 13px; }
.landing-footer > div:last-child { display: flex; gap: 20px; font-size: 13px; }
.section-action { margin-top: 28px; text-align: right; }
.comparison-section { background: #f8fafc; border-block: 1px solid var(--line); }
.comparison-scroll { max-width: 1180px; margin: 52px auto 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.comparison-table { width: 100%; min-width: 1480px; border-collapse: collapse; }
.comparison-table.compact { min-width: 1040px; }
.comparison-table caption { text-align: left; padding: 17px 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.comparison-table th, .comparison-table td { text-align: left; padding: 17px 15px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.comparison-table th { background: #f8fafc; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.comparison-table td { color: var(--ink-soft); font-size: 13px; }
.comparison-table tr.comparison-fast td { background: var(--accent-soft); }
.comparison-name { color: var(--ink); font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.comparison-source { display: inline-flex; color: var(--accent-dark); font-size: 10px; font-weight: 750; text-decoration: none; margin: 0 10px 3px 0; }
.comparison-source:hover { text-decoration: underline; }
.public-page-hero { max-width: 1180px; margin: auto; padding: 86px 24px 58px; }
.public-page-hero h1 { max-width: 940px; margin: 20px 0; font-size: clamp(42px, 6vw, 70px); line-height: 1.03; letter-spacing: -.055em; }
.public-page-hero > p { max-width: 800px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.feature-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.feature-summary span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--muted); font-size: 12px; font-weight: 650; }
.feature-summary strong { color: var(--accent-dark); }
.public-page-section { padding: 64px 24px; }
.feature-catalog { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 235px; padding: 23px; display: flex; flex-direction: column; border: 1px solid #dbeafe; border-radius: 18px; background: rgba(255,255,255,.88); }
.feature-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feature-status, .feature-price { border-radius: 999px; padding: 6px 9px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.feature-status.available { color: var(--green); background: #ecfdf3; }
.feature-status.pilot_ready { color: var(--accent-dark); background: var(--accent-soft); }
.feature-status.contract_ready { color: var(--amber); background: #fffaeb; }
.feature-price { color: var(--accent-dark); background: #fff; border: 1px solid #dbeafe; }
.feature-card h3 { margin: 34px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.public-note { max-width: 1132px; margin: 36px auto 78px; padding: 22px 24px; border: 1px solid #bfdbfe; border-radius: 17px; background: var(--accent-soft); color: var(--muted); line-height: 1.65; }
.comparison-wrap { max-width: 1228px; margin: auto; padding: 0 24px 76px; }
.comparison-wrap .comparison-scroll { margin-top: 12px; }
.comparison-note { margin: 17px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.comparison-conclusion { max-width: 1132px; margin: 0 auto 88px; padding: 52px; border-radius: 24px; background: var(--sidebar); color: #fff; }
.comparison-conclusion .eyebrow { color: #93c5fd; }
.comparison-conclusion h2 { max-width: 850px; margin: 18px 0; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.045em; }
.comparison-conclusion p { max-width: 870px; color: #cbd5e1; line-height: 1.7; margin-bottom: 28px; }

/* Auth */
.auth-body { min-height: 100vh; background: #f7f9fc; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 72px 20px; position: relative; }
.auth-back { position: absolute; top: 26px; left: 28px; color: var(--muted); text-decoration: none; font-size: 14px; }
.auth-card { width: min(100%, 440px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(16,24,40,.1); padding: 36px; }
.auth-card > .brand { margin-bottom: 34px; }
.auth-card h1 { font-size: 31px; letter-spacing: -.04em; line-height: 1.1; margin: 15px 0 12px; }
.auth-card > p { color: var(--muted); line-height: 1.6; }
.auth-card form { display: grid; gap: 9px; margin-top: 25px; }
.auth-card label { font-size: 13px; font-weight: 700; }
.auth-card input { height: 46px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 13px; color: var(--ink); }
.auth-submit { width: 100%; margin-top: 7px; }
.auth-error { background: #fef3f2; border: 1px solid #fecdca; color: var(--red); border-radius: 9px; padding: 10px 12px; font-size: 13px; }
.auth-error p { margin: 0; }
.auth-note { display: grid; grid-template-columns: 7px 1fr; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-note span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-top: 5px; }
.auth-note p { margin: 0; }

/* Application shell */
.app-body { background: var(--canvas); }
.app-frame { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--sidebar); color: #e5e7eb; display: flex; flex-direction: column; z-index: 80; }
.side-head { height: 72px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-head .brand-mark { background: #3b82f6; }
.side-nav { padding: 20px 12px; display: grid; gap: 5px; }
.side-link { height: 43px; border-radius: 9px; display: flex; align-items: center; gap: 12px; padding: 0 12px; text-decoration: none; color: #9ca3af; font-size: 14px; font-weight: 600; }
.side-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-link.active { color: #fff; background: rgba(59,130,246,.18); box-shadow: inset 3px 0 #60a5fa; }
.side-link.active .icon { color: #60a5fa; }
.side-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 16px; }
.user-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.user-summary > div { min-width: 0; display: grid; }
.avatar { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; background: #334155; border-radius: 50%; font-size: 13px; font-weight: 800; }
.user-summary strong, .user-summary span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-summary strong { font-size: 12px; }
.user-summary span { color: #94a3b8; font-size: 10px; }
.text-button { border: 0; background: transparent; color: #94a3b8; font-size: 11px; padding: 10px 44px 0; cursor: pointer; }
.text-button:hover { color: #fff; }
.app-main { min-width: 0; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.top-title { display: flex; align-items: center; gap: 14px; }
.top-title > div { display: grid; gap: 2px; }
.top-title h1 { font-size: 17px; margin: 0; letter-spacing: -.02em; }
.top-eyebrow { font-size: 8px; color: var(--subtle); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-search { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 9px; height: 36px; padding: 0 12px; background: #fff; font-size: 12px; }
.top-search .icon { width: 15px; }
.environment-badge { color: #175cd3; background: #eff8ff; border: 1px solid #b2ddff; padding: 7px 10px; border-radius: 8px; font-size: 10px; font-weight: 750; }
.mobile-menu, .mobile-close { display: none; }
.nav-scrim { display: none; }
.workspace { max-width: 1280px; margin: auto; padding: 32px 30px 60px; display: grid; gap: 22px; }
.workspace-wide { max-width: 1500px; }
.page-intro { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 6px 0 10px; }
.page-intro > div:first-child { max-width: 760px; }
.page-intro h2 { font-size: 31px; line-height: 1.12; letter-spacing: -.04em; margin: 9px 0 8px; }
.page-intro p { color: var(--muted); line-height: 1.6; margin: 0; }
.page-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric-card > div { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.metric-value { font-size: 28px; font-weight: 760; letter-spacing: -.04em; }
.metric-pulse { width: 9px; height: 9px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 5px #eff6ff; }
.metric-pulse.green { background: #12b76a; box-shadow: 0 0 0 5px #ecfdf3; }
.metric-pulse.violet { background: #8b5cf6; box-shadow: 0 0 0 5px #f5f3ff; }
.metric-pulse.amber { background: #f79009; box-shadow: 0 0 0 5px #fffaeb; }
.metric-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; }
.panel, .table-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.panel { padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 17px; }
.section-header h3 { font-size: 16px; letter-spacing: -.02em; margin: 0; }
.section-header p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.trust-list { display: grid; }
.trust-row { padding: 12px 0; border-top: 1px solid #f0f2f5; display: grid; gap: 8px; text-decoration: none; }
.trust-row:first-child { border-top: 0; }
.trust-row:hover strong { color: var(--accent); }
.trust-row-head, .trust-row-body, .trust-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trust-row-head { justify-content: start; }
.trust-row-body > div:first-child { display: grid; gap: 3px; min-width: 0; }
.trust-row-body code { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.trust-row-foot { color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; background: #f2f4f7; color: #475467; font-size: 9px; font-weight: 750; white-space: nowrap; text-transform: none; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #98a2b3; }
.status-badge.good { background: #ecfdf3; color: #027a48; }
.status-badge.good .status-dot { background: #12b76a; }
.status-badge.bad { background: #fef3f2; color: #b42318; }
.status-badge.bad .status-dot { background: #f04438; }
.status-badge.warn { background: #fffaeb; color: #b54708; }
.status-badge.warn .status-dot { background: #f79009; }
.status-badge.info { background: #eff8ff; color: #175cd3; }
.status-badge.info .status-dot { background: #2e90fa; }
.platform-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.platform-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #64748b; font-size: 9px; font-weight: 800; }
.platform-icon.snowflake { background: #29b5e8; }
.platform-icon.fabric { background: linear-gradient(135deg, #59b541, #00a4ef); }
.platform-icon.databricks { background: #ff3621; }
.score-ring { width: 78px; height: 78px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--score-color) var(--score), #eef1f5 0); }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.score-ring span, .score-ring small { position: relative; z-index: 1; }
.score-ring span { font-size: 20px; font-weight: 780; }
.score-ring small { position: absolute; top: 48px; font-size: 8px; color: var(--muted); }
.score-ring.good { --score-color: #12b76a; }
.score-ring.warn { --score-color: #f79009; }
.score-ring.bad { --score-color: #f04438; }
.score-ring.small { width: 49px; height: 49px; }
.score-ring.small::before { inset: 5px; }
.score-ring.small span { font-size: 13px; }
.score-ring.small small { display: none; }
.attention-list, .adapter-list, .work-list, .audit-list { display: grid; }
.attention-row, .adapter-row, .work-row, .audit-row { border-top: 1px solid #f0f2f5; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.attention-row:first-child, .adapter-row:first-child, .work-row:first-child, .audit-row:first-child { border-top: 0; }
.attention-row > div, .adapter-row > div, .work-row > div { display: flex; align-items: center; gap: 10px; }
.attention-row div div, .adapter-row div div, .work-row div div { display: grid; }
.attention-row small, .adapter-row small, .work-row small { color: var(--muted); font-size: 9px; }
.attention-row strong, .adapter-row strong, .work-row strong { font-size: 11px; }
.asset-avatar, .audit-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }
.summary-pair { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; }
.summary-pair div { display: grid; gap: 4px; }
.summary-pair div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.summary-pair span { color: var(--muted); font-size: 9px; }
.summary-pair strong { font-size: 18px; }
.severity { font-size: 9px; font-weight: 780; color: #475467; }
.severity.high, .severity.critical { color: var(--red); }
.severity.medium { color: var(--amber); }
.audit-row { display: grid; grid-template-columns: 30px 1fr auto; justify-content: initial; }
.audit-row p { margin: 0; font-size: 11px; }
.audit-row small { color: var(--muted); font-size: 10px; }
.audit-row time { color: var(--subtle); font-size: 9px; }

/* Catalog */
.catalog-controls { display: grid; gap: 12px; }
.catalog-search { height: 48px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 11px; padding: 0 14px; box-shadow: var(--shadow); }
.catalog-search:focus-within { border-color: #84adff; box-shadow: 0 0 0 3px #eff4ff; }
.catalog-search .icon { color: var(--muted); }
.catalog-search input { border: 0; outline: 0; width: 100%; height: 100%; color: var(--ink); background: transparent; }
.filter-row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.filter-row select { height: 36px; padding: 0 31px 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink-soft); font-size: 12px; }
.result-summary { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.result-summary > div { display: flex; align-items: center; gap: 6px; }
.result-summary strong { color: var(--ink); }
.active-filter { background: #eff4ff; color: #3538cd; border-radius: 7px; padding: 5px 8px; font-size: 10px; }
.table-panel { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 14px; background: #f9fafb; border-bottom: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 9px; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #f0f2f5; font-size: 11px; color: var(--ink-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfd; }
.asset-link { display: grid; gap: 4px; text-decoration: none; min-width: 210px; }
.asset-link strong { color: var(--ink); font-size: 12px; }
.asset-link code { color: var(--muted); font-size: 9px; }
.mini-bar { width: 64px; height: 5px; background: #eaecf0; border-radius: 9px; overflow: hidden; display: inline-block; margin-right: 6px; }
.mini-bar span { height: 100%; display: block; background: #12b76a; border-radius: inherit; }
.person-cell { display: grid; }
.person-cell strong { font-size: 10px; }
.person-cell small { color: var(--muted); font-size: 8px; }
.row-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.row-arrow:hover { background: var(--accent-soft); color: var(--accent); }
.row-arrow .icon { width: 15px; }
.empty-state { min-height: 220px; display: grid; place-items: center; align-content: center; text-align: center; padding: 30px; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin: 10px 0 4px; }
.empty-state p { margin: 0; }
.empty-icon { font-size: 34px; color: var(--accent); }

/* Asset detail */
.breadcrumbs { display: flex; gap: 7px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.asset-hero { background: linear-gradient(135deg, #fff, #f8fbff); border: 1px solid #dbe7f7; border-radius: 17px; box-shadow: var(--shadow); padding: 26px; display: flex; justify-content: space-between; gap: 30px; }
.asset-hero-copy { min-width: 0; }
.asset-title-badges { display: flex; gap: 7px; align-items: center; }
.asset-hero h2 { font-size: 31px; letter-spacing: -.04em; margin: 14px 0 4px; }
.asset-hero code { color: var(--muted); font-size: 11px; }
.asset-hero p { max-width: 780px; color: var(--ink-soft); line-height: 1.6; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #f2f4f7; border: 1px solid #eaecf0; color: #475467; border-radius: 6px; padding: 4px 7px; font-size: 9px; font-weight: 650; }
.asset-score { display: flex; align-items: center; gap: 12px; align-self: center; }
.asset-score > div:last-child { width: 130px; display: grid; }
.asset-score span { font-weight: 750; font-size: 12px; }
.asset-score small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; display: grid; gap: 5px; }
.detail-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; }
.detail-card strong { font-size: 11px; overflow-wrap: anywhere; }
.detail-card small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.definition-list { display: grid; grid-template-columns: 110px 1fr; gap: 13px; margin: 0; }
.definition-list dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.definition-list dd { margin: 0; font-size: 11px; line-height: 1.55; }
.asset-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quality-compact { display: grid; }
.quality-compact-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #f0f2f5; }
.quality-compact-row:first-child { border-top: 0; }
.quality-compact-row > div { display: grid; gap: 3px; }
.quality-compact-row > div:first-child { grid-template-columns: auto 1fr; align-items: center; }
.quality-compact-row > div:first-child small { grid-column: 2; }
.quality-compact-row strong { font-size: 10px; }
.quality-compact-row small { color: var(--muted); font-size: 8px; }
.fields-table td:first-child code { color: var(--accent-dark); font-weight: 700; }
.lineage-neighbours { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 30px; align-items: center; }
.lineage-neighbour-column { display: grid; gap: 8px; }
.lineage-column-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; text-align: center; }
.lineage-mini-node { border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: grid; text-align: center; text-decoration: none; position: relative; background: #fff; }
.lineage-mini-node strong { font-size: 10px; }
.lineage-mini-node small { color: var(--muted); font-size: 8px; }
.lineage-mini-node.current { border-color: #84adff; background: #eff4ff; }
.lineage-neighbour-column:first-child .lineage-mini-node::after { content: "→"; position: absolute; right: -21px; top: 12px; color: var(--subtle); }
.lineage-neighbour-column:nth-child(2) .lineage-mini-node::after { content: "→"; position: absolute; right: -21px; top: 12px; color: var(--subtle); }

/* Lineage graph */
.lineage-filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.graph-toolbar { display: flex; align-items: center; justify-content: space-between; }
.lineage-legend { display: flex; gap: 18px; color: var(--muted); font-size: 10px; }
.legend-line { display: flex; align-items: center; gap: 6px; }
.legend-line::before { content: ""; display: block; width: 20px; border-top: 2px solid #667085; }
.legend-line.query::before { border-color: var(--accent); border-top-style: dashed; }
.legend-line.manual::before { border-color: var(--amber); border-top-style: dotted; }
.graph-count { color: var(--muted); font-size: 10px; }
.lineage-graph { min-height: 560px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 100px; background-color: #fff; background-image: radial-gradient(#d0d5dd 0.7px, transparent .7px); background-size: 18px 18px; border: 1px solid var(--line); border-radius: 16px; padding: 25px; overflow: hidden; }
.lineage-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.lineage-path { fill: none; stroke: #667085; stroke-width: 1.5; opacity: .65; }
.lineage-path.query_history { stroke: var(--accent); stroke-dasharray: 5 4; }
.lineage-path.manual { stroke: var(--amber); stroke-dasharray: 2 5; }
.lineage-path.inferred { stroke: var(--violet); stroke-dasharray: 8 4; }
.lineage-platform-column { z-index: 2; display: flex; flex-direction: column; gap: 13px; align-items: stretch; }
.lineage-platform-label { align-self: center; background: #f2f4f7; color: #475467; border-radius: 99px; padding: 6px 11px; font-size: 10px; font-weight: 750; margin-bottom: 6px; }
.lineage-node { min-height: 75px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: 0 4px 12px rgba(16,24,40,.06); display: grid; gap: 4px; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lineage-node:hover { transform: translateY(-2px); border-color: #84adff; box-shadow: 0 10px 20px rgba(16,24,40,.1); }
.lineage-node.focus { border: 2px solid var(--accent); background: #f5f9ff; }
.lineage-node strong { font-size: 11px; }
.lineage-node small { color: var(--muted); font-size: 9px; }
.node-type { color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-size: 8px; font-weight: 750; }
.lineage-edge-data { display: none; }
.evidence-note { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; background: #fffaeb; border: 1px solid #fedf89; border-radius: 11px; padding: 14px; }
.evidence-note span { color: #b54708; font-weight: 750; font-size: 11px; }
.evidence-note p { margin: 0; color: #7a2e0e; font-size: 10px; line-height: 1.55; }

/* Quality */
.chip-row { display: flex; gap: 7px; }
.filter-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 700; }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quality-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 19px; box-shadow: var(--shadow); }
.quality-card-head { display: flex; justify-content: space-between; align-items: center; }
.quality-card h3 { font-size: 14px; margin: 14px 0 5px; }
.quality-asset { color: var(--accent); text-decoration: none; font-size: 10px; font-weight: 650; }
.quality-score-row { display: flex; align-items: center; justify-content: space-between; border-block: 1px solid #f0f2f5; margin: 16px 0 12px; padding: 13px 0; }
.quality-score-row > div { display: grid; }
.quality-score-row strong { font-size: 22px; letter-spacing: -.03em; }
.quality-score-row small { color: var(--muted); font-size: 9px; }
.sparkline { width: 108px; height: 36px; color: var(--accent); }
.quality-meta { display: flex; gap: 8px; color: var(--muted); font-size: 9px; }
.quality-meta span { background: #f8fafc; border-radius: 5px; padding: 4px 6px; }
.rule-expression { margin-top: 12px; }
.rule-expression summary { color: var(--muted); font-size: 9px; cursor: pointer; }
.rule-expression code { display: block; background: #f8fafc; border-radius: 7px; padding: 9px; font-size: 9px; margin-top: 7px; overflow-wrap: anywhere; }

/* Work */
.queue-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.queue-tab { display: flex; align-items: center; gap: 7px; padding: 10px 13px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 11px; font-weight: 650; }
.queue-tab small { background: #eaecf0; border-radius: 99px; padding: 2px 6px; font-size: 8px; }
.queue-tab.active { color: var(--accent); border-color: var(--accent); }
.queue-tab.active small { background: #dbeafe; }
.queue-toolbar { display: flex; justify-content: space-between; align-items: center; }
.queue-toolbar > div { display: flex; gap: 7px; font-size: 11px; color: var(--muted); }
.queue-toolbar strong { color: var(--ink); }
.work-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.work-card-head { display: flex; justify-content: space-between; }
.work-card-head > div { display: flex; gap: 7px; align-items: center; }
.work-card h3 { font-size: 14px; margin: 14px 0 7px; }
.work-card > p { color: var(--muted); font-size: 10px; line-height: 1.55; min-height: 31px; }
.work-asset { color: var(--accent); font-size: 10px; font-weight: 650; text-decoration: none; }
.work-card-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f0f2f5; margin-top: 14px; padding-top: 13px; }
.work-card-meta > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.work-card-meta > div:last-child { grid-template-columns: 1fr; text-align: right; }
.mini-avatar { grid-row: 1 / 3; width: 29px; height: 29px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 50%; font-size: 9px; font-weight: 800; }
.work-card-meta small { color: var(--muted); font-size: 8px; }
.work-card-meta strong { font-size: 9px; }
.work-card-actions { display: flex; gap: 7px; margin-top: 14px; }

/* Glossary */
.glossary-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.domain-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.domain-summary span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--muted); font-size: 9px; }
.domain-summary strong { color: var(--ink); }
.term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.term-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.term-card > div:first-child, .term-card > div:last-child { display: flex; align-items: center; justify-content: space-between; }
.term-domain { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 800; }
.term-card h3 { font-size: 16px; margin: 18px 0 8px; }
.term-card p { color: var(--ink-soft); line-height: 1.6; font-size: 11px; min-height: 52px; }
.term-card > div:last-child { border-top: 1px solid #f0f2f5; margin-top: 16px; padding-top: 12px; color: var(--muted); font-size: 9px; }

/* Adapters */
.adapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adapter-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.adapter-card-head { display: flex; justify-content: space-between; gap: 12px; }
.adapter-card-head > div { display: flex; gap: 11px; }
.adapter-card h3 { font-size: 13px; margin: 2px 0 4px; }
.adapter-card p { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 0; }
.adapter-logo { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #64748b; border-radius: 9px; font-weight: 800; }
.adapter-logo.snowflake { background: #29b5e8; }
.adapter-logo.fabric { background: linear-gradient(135deg, #59b541, #00a4ef); }
.adapter-logo.databricks { background: #ff3621; }
.adapter-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 17px 0; }
.adapter-metrics div { background: #f8fafc; border-radius: 8px; padding: 9px; display: grid; gap: 4px; }
.adapter-metrics span { color: var(--muted); font-size: 8px; }
.adapter-metrics strong { font-size: 10px; }
.capability-list { border-block: 1px solid #f0f2f5; padding: 10px 0; display: grid; gap: 7px; }
.capability-list > div { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: var(--muted); }
.adapter-actions { display: flex; gap: 7px; margin-top: 14px; }
.security-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.security-grid strong { font-size: 11px; }
.security-grid p { color: var(--muted); font-size: 9px; line-height: 1.5; margin-bottom: 0; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .adapter-grid { grid-template-columns: 1fr; }
  .lineage-graph { gap: 45px; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .landing-nav { grid-template-columns: 1fr auto; }
  .landing-nav nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-visual { width: min(100%, 560px); }
  .section-lead { grid-template-columns: 1fr; }
  .section-lead .eyebrow { grid-column: auto; }
  .feature-grid, .architecture-row { grid-template-columns: 1fr; }
  .feature-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .architecture-row::before { display: none; }
  .landing-cta { margin-inline: 18px; padding: 45px 22px; }
  .sidebar { position: fixed; left: -265px; width: 250px; transition: left .2s ease; }
  .nav-open .sidebar { left: 0; }
  .nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.44); }
  .app-frame { grid-template-columns: 1fr; }
  .mobile-menu { display: block; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
  .mobile-close { display: block; margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 20px; }
  .workspace { padding-inline: 18px; }
  .dashboard-grid, .quality-grid, .work-board, .term-grid { grid-template-columns: 1fr; }
  .lineage-graph { overflow-x: auto; grid-template-columns: repeat(3, 240px); }
  .topbar { padding-inline: 18px; }
}

@media (max-width: 580px) {
  .landing-nav { height: 62px; padding-inline: 16px; }
  .landing-nav .brand-name { font-size: 15px; }
  .landing-nav .button { min-height: 36px; padding-inline: 12px; }
  .landing-hero { padding: 58px 18px 68px; gap: 48px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy > p { font-size: 17px; }
  .preview-note { right: 0; }
  .landing-section { padding: 66px 18px; }
  .landing-footer { flex-direction: column; padding-inline: 18px; }
  .public-page-hero { padding: 62px 18px 45px; }
  .public-page-hero > p { font-size: 17px; }
  .public-page-section, .comparison-wrap { padding-inline: 18px; }
  .feature-catalog { grid-template-columns: 1fr; }
  .comparison-conclusion { margin-inline: 18px; padding: 38px 24px; }
  .auth-card { padding: 28px 22px; }
  .top-search span, .environment-badge { display: none; }
  .workspace { padding: 24px 12px 45px; }
  .page-intro { display: grid; align-items: start; }
  .page-intro h2 { font-size: 26px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 14px; }
  .metric-value { font-size: 23px; }
  .asset-hero { display: grid; padding: 19px; }
  .asset-score { justify-self: start; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .lineage-neighbours { grid-template-columns: 1fr; }
  .lineage-neighbour-column .lineage-mini-node::after { display: none; }
  .definition-list { grid-template-columns: 1fr; gap: 5px; }
  .glossary-search { grid-template-columns: 1fr; }
  .queue-toolbar { display: grid; gap: 10px; }
  .security-grid { grid-template-columns: 1fr; }
  .data-table th:nth-child(3), .data-table td:nth-child(3), .data-table th:nth-child(6), .data-table td:nth-child(6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Governance authoring and operations */
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.product-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.product-card h3 { margin: 14px 0 5px; }
.product-card > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.governance-form { display: grid; gap: 16px; max-width: 920px; }
.governance-form label, .comment-form { display: grid; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 650; }
.governance-form input, .governance-form textarea, .governance-form select, .comment-form textarea, .inline-form input, .inline-form select { width: 100%; border: 1px solid #d7dde6; border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--ink); font: inherit; }
.governance-form textarea, .comment-form textarea { resize: vertical; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-actions, .inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form { flex-wrap: wrap; margin-top: 15px; }
.inline-form input, .inline-form select { width: auto; min-width: 110px; font-size: 9px; }
.check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.check-list legend { padding: 0 5px; font-size: 10px; font-weight: 700; }
.check-row { display: flex !important; align-items: center; gap: 7px !important; font-weight: 500 !important; }
.check-row input { width: auto; }
.admin-list { display: grid; }
.admin-row { min-height: 54px; display: grid; grid-template-columns: minmax(180px,1fr) repeat(3,minmax(90px,auto)); align-items: center; gap: 14px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 10px; }
.admin-row:last-child { border-bottom: 0; }
.admin-row small { color: var(--muted); }
.admin-row > div { display: grid; gap: 3px; }
.comment-list { display: grid; margin-bottom: 16px; }
.comment { border-left: 2px solid #dbeafe; padding: 8px 12px; }
.comment p { margin: 5px 0; color: var(--ink); font-size: 11px; }
.comment small { color: var(--muted); }
.comment-form { gap: 9px; }
.mini-form { display: grid; gap: 6px; min-width: 210px; padding-top: 8px; }
.mini-form input { width: 100%; border: 1px solid #d7dde6; border-radius: 7px; padding: 7px; font: inherit; }
.danger { color: #b42318; }
.pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (max-width: 820px) {
  .product-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 1fr auto; }
}

@media (max-width: 580px) {
  .form-grid, .form-grid.three, .check-list { grid-template-columns: 1fr; }
  .form-actions, .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form input, .inline-form select { width: 100%; }
}
