:root {
  color-scheme: light;
  --ink: #12233f;
  --muted: #42526b;
  --subtle: #607089;
  --line: #d9e2ec;
  --surface: #ffffff;
  --canvas: #f6f9fc;
  --violet: #f97316;
  --violet-dark: #c2410c;
  --violet-soft: #fff1e8;
  --cyan: #2563eb;
  --cyan-soft: #eaf2ff;
  --coral: #dc5a4f;
  --coral-soft: #fff0ed;
  --amber: #d78a13;
  --amber-soft: #fff8e8;
  --green: #18a06b;
  --green-soft: #eafaf3;
  --red: #d7475c;
  --red-soft: #fff0f2;
  --shadow: 0 10px 34px rgba(18, 35, 63, .09);
  --shadow-hover: 0 18px 44px rgba(18, 35, 63, .15);
  --radius: 18px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
.ambient { position: fixed; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .4; }
.ambient-one { width: 420px; height: 420px; right: -160px; top: -180px; background: #dad4ff; }
.ambient-two { width: 380px; height: 380px; left: 8%; bottom: -250px; background: #d8f8ff; }

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; position: relative; }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 5; display: flex; flex-direction: column; padding: 26px 18px 22px; background: rgba(255, 255, 255, .92); border-right: 1px solid var(--line); backdrop-filter: blur(22px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font: 800 17px/1.2 Manrope, sans-serif; letter-spacing: -.04em; }
.brand small { margin-top: 2px; color: var(--subtle); font-size: 10px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #7463f4, #4f3fd0); box-shadow: 0 8px 20px rgba(102, 84, 232, .28); }
.brand-mark i { position: absolute; width: 17px; height: 4px; border-radius: 99px; background: #fff; transform: rotate(-25deg); }
.brand-mark i:first-child { margin-top: -12px; margin-left: -7px; }
.brand-mark i:nth-child(2) { width: 21px; }
.brand-mark i:last-child { margin-top: 12px; margin-left: 7px; }
.workspace-card { display: flex; align-items: center; gap: 10px; margin: 28px 0 24px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfe; }
.workspace-card > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.workspace-card small { color: var(--subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-card strong { margin-top: 3px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: #3f3a74; background: linear-gradient(145deg, #e4edff, #ffe5e9); font: 800 10px Manrope, sans-serif; }
.live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.primary-nav { display: flex; flex-direction: column; gap: 5px; }
.primary-nav p { margin: 15px 11px 6px; color: #a5abc0; font: 700 9px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 11px; color: #646d89; text-decoration: none; font-size: 12px; font-weight: 600; transition: .18s ease; }
.primary-nav a span { display: grid; place-items: center; width: 20px; color: #8b93ad; font-size: 16px; }
.primary-nav a:hover { color: #c2410c; background: #fff4ec; }
.primary-nav a.active { color: #9a3412; background: #fff4ec; box-shadow: inset 3px 0 #f97316; }
.primary-nav a.active span { color: #ea580c; }
.sidebar-status { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.status-orb { width: 30px; height: 30px; border-radius: 9px; background: radial-gradient(circle, #4ee7aa 0 18%, #e9fbf4 20% 100%); }
.sidebar-status div { display: flex; flex-direction: column; }
.sidebar-status strong { font-size: 11px; }
.sidebar-status small { margin-top: 2px; color: var(--subtle); font-size: 9px; }

.main-panel { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 4; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid rgba(230, 232, 241, .9); background: rgba(247, 248, 252, .85); backdrop-filter: blur(20px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 600; }
.breadcrumb span { color: var(--violet); }
.breadcrumb b { color: #c3c7d5; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.evidence-badge { display: inline-flex; align-items: center; gap: 8px; max-width: 330px; padding: 7px 12px; border: 1px solid #dfe9e5; border-radius: 999px; color: #4d6f64; background: rgba(255,255,255,.8); font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evidence-badge i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #202943; color: #fff; text-decoration: none; font: 700 10px Manrope, sans-serif; }
.page-wrap { width: min(1440px, 100%); padding: 34px 38px 30px; margin: auto; }
.page-heading { margin: 8px 0 28px; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font: 700 9px Manrope, sans-serif; letter-spacing: .15em; }
.kicker i { width: 15px; height: 2px; border-radius: 2px; background: var(--violet); }
h1, h2, h3 { font-family: Manrope, sans-serif; color: var(--ink); }
h1 { margin: 10px 0 8px; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.environment-chip, .strategy-chip, .source-pill { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: #626b88; background: #fff; box-shadow: 0 4px 12px rgba(36,45,76,.04); font: 700 9px Manrope, sans-serif; letter-spacing: .07em; }
.environment-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.strategy-chip, .source-pill { color: var(--violet); background: var(--violet-soft); border-color: #ddd8ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading > div { min-width: 0; }
.panel-heading h2 { display: inline; margin: 0 0 0 10px; font-size: 18px; letter-spacing: -.025em; }
.panel-heading p { margin: 7px 0 0 38px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.section-index { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font: 800 9px Manrope, sans-serif; }
.safe-badge, .evidence-source { padding: 7px 10px; border-radius: 999px; color: var(--green); background: var(--green-soft); font: 700 8px Manrope, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.evidence-source { color: var(--violet); background: var(--violet-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 0 18px; border: 0; border-radius: 11px; text-decoration: none; cursor: pointer; font: 700 11px Manrope, sans-serif; transition: .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.button-primary { color: #fff; background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 9px 22px rgba(234,88,12,.22); }
.button-ghost, .button-secondary { color: var(--violet); background: #fff; border: 1px solid #ddd9f7; }
.button-dark { width: 100%; color: #fff; background: #202943; }

.hero-card { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; min-height: 320px; padding: 40px 46px; border: 1px solid #dfdcff; border-radius: 24px; background: linear-gradient(118deg, #fff 0%, #f7f5ff 52%, #eefaff 100%); box-shadow: 0 18px 54px rgba(77,67,157,.12); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-card::before { width: 260px; height: 260px; right: -70px; top: -90px; border: 46px solid rgba(102,84,232,.06); }
.hero-card::after { width: 130px; height: 130px; right: 26%; bottom: -80px; background: rgba(0,169,200,.06); }
.hero-copy { position: relative; z-index: 1; }
.hero-label { display: inline-block; padding: 6px 10px; border-radius: 7px; color: var(--violet); background: #e9e5ff; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-copy h2 { margin: 18px 0 12px; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -.04em; }
.hero-copy h2 em { color: var(--violet); font-style: normal; }
.hero-copy p { max-width: 690px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.hero-copy code { color: var(--violet); font-weight: 600; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.signal-visual { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 18px; }
.signal-ring { display: grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: conic-gradient(var(--violet) 0 58%, var(--cyan) 58% 78%, var(--coral) 78% 87%, #e9eaf1 87% 100%); box-shadow: 0 16px 38px rgba(80,67,174,.16); }
.signal-ring::before { content: ""; position: absolute; width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.95); }
.signal-ring span { position: relative; display: flex; flex-direction: column; text-align: center; }
.signal-ring strong { font: 800 24px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.signal-ring small { margin-top: 7px; color: var(--subtle); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.signal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 260px; }
.signal-legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }
.signal-legend i { width: 7px; height: 7px; border-radius: 50%; }
.signal-legend .violet { background: var(--violet); }.signal-legend .cyan { background: var(--cyan); }.signal-legend .coral { background: var(--coral); }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 16px 0 24px; }
.metric-grid-five { grid-template-columns: repeat(5, minmax(0,1fr)); }
.metric-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(51,60,102,.05); }
.metric-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; font-weight: 800; }
.metric-icon.purple { color: var(--violet); background: var(--violet-soft); }.metric-icon.blue { color: var(--cyan); background: var(--cyan-soft); }.metric-icon.pink { color: var(--coral); background: var(--coral-soft); }.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-card div { min-width: 0; }
.metric-card small { display: block; color: var(--subtle); font: 700 8px Manrope, sans-serif; letter-spacing: .09em; }
.metric-card strong { display: block; margin-top: 3px; font: 800 22px Manrope, sans-serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.metric-card p { margin: 1px 0 0; color: var(--muted); font-size: 9px; }
.metric-wide strong { font-size: 16px; }

.analyzer-panel { padding: 26px; }
.analysis-form { display: grid; grid-template-columns: 1.15fr 1fr auto 1fr auto; align-items: end; gap: 12px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafafe; }
.analysis-form label > span { display: block; margin: 0 0 7px 2px; color: var(--subtle); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
input { width: 100%; height: 43px; padding: 0 13px; border: 1px solid #dfe2ec; border-radius: 10px; outline: none; color: var(--ink); background: #fff; font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace; transition: .15s; }
input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.form-arrow { display: grid; place-items: center; height: 43px; color: var(--subtle); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.scenario-form { min-width: 0; }
.scenario-form > input { display: none; }
.scenario-card { width: 100%; min-height: 124px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; text-align: left; color: var(--ink); background: #fff; cursor: pointer; transition: .18s ease; }
.scenario-card:hover { border-color: #d9d2ff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.scenario-card.selected { border-color: #cfc7ff; background: #f8f6ff; box-shadow: inset 0 0 0 1px #e1dcff; }
.scenario-top { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.scenario-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.scenario-card strong { display: block; margin-top: 9px; font-size: 11px; overflow-wrap: anywhere; }
.scenario-card code { display: block; margin-top: 5px; color: var(--violet); font-size: 9px; }
.scenario-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px; }
.insight-card { display: flex; gap: 16px; padding: 22px; }
.insight-number { color: #c9c4ee; font: 800 25px Manrope, sans-serif; }
.insight-card small { color: var(--violet); font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.insight-card h3 { margin: 5px 0; font-size: 14px; }
.insight-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.insight-card a { display: inline-block; margin-top: 12px; color: var(--violet); text-decoration: none; font-size: 10px; font-weight: 700; }

.graph-panel, .sql-panel, .region-table-panel, .timeline-panel, .gate-card { padding: 26px; }
.lineage-graph { display: flex; align-items: stretch; gap: 0; overflow-x: auto; margin-top: 28px; padding: 10px 3px 18px; }
.lineage-node { position: relative; min-width: 175px; max-width: 205px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(43,52,89,.06); }
.lineage-node > span { color: var(--subtle); font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.lineage-node i { width: 9px; height: 9px; margin: 19px 0 9px; border: 2px solid #fff; border-radius: 50%; background: #9fa6bc; box-shadow: 0 0 0 3px #eef0f5; }
.lineage-node strong { font-size: 11px; overflow-wrap: anywhere; }
.lineage-node small { margin-top: 5px; color: var(--subtle); font-size: 8px; overflow-wrap: anywhere; }
.source-node { border-color: #d8d2ff; background: var(--violet-soft); }.source-node i { background: var(--violet); box-shadow: 0 0 0 3px #dcd6ff; }
.critical-node { border-color: #f8d8ac; background: var(--amber-soft); }.critical-node > span { color: var(--amber); }.critical-node i { background: var(--amber); box-shadow: 0 0 0 3px #ffebc6; }
.empty-node { max-width: 360px; min-width: 300px; border-style: dashed; }.empty-node small { font-size: 9px; line-height: 1.5; }
.edge { position: relative; min-width: 42px; display: grid; place-items: center; }
.edge::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: #ced2df; }
.edge::after { content: ""; position: absolute; right: 3px; top: calc(50% - 3px); width: 6px; height: 6px; border-top: 1px solid #a8aec1; border-right: 1px solid #a8aec1; transform: rotate(45deg); }
.edge span { position: relative; z-index: 1; margin-top: -31px; padding: 2px 4px; color: var(--subtle); background: #fff; font-size: 7px; }
.reason-row { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }
.reason-row span { color: #5a6682; font-size: 9px; }
.sql-panel { margin-top: 16px; }
.sql-table { margin-top: 22px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.sql-row { display: grid; grid-template-columns: 2fr .65fr 1.4fr .6fr .75fr; align-items: center; gap: 12px; min-height: 65px; padding: 10px 15px; border-top: 1px solid var(--line); background: #fff; }
.sql-row:first-child { border-top: 0; }
.sql-header { min-height: 36px; color: var(--subtle); background: #f9f9fc; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sql-row > span { min-width: 0; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.sql-row > span:first-child { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 9px; }
.sql-row > span:first-child small { grid-column: 2; color: var(--subtle); font-size: 8px; }
.sql-row strong { color: var(--ink); font-size: 10px; }
.db-icon { display: grid; place-items: center; width: 28px; height: 28px; grid-row: span 2; border-radius: 8px; color: var(--violet); background: var(--violet-soft); font: 800 7px Manrope, sans-serif; }
.sql-row code { color: var(--violet); font-size: 8px; font-weight: 700; }
.sql-row em, .region-row em { color: var(--subtle); font-style: normal; }
.confidence, .review-status, .fix-status { display: inline-flex; padding: 4px 6px; border-radius: 5px; font: 700 7px Manrope, sans-serif; letter-spacing: .05em; }
.confidence-high, .fix-status { color: var(--green); background: var(--green-soft); }.confidence-medium { color: var(--amber); background: var(--amber-soft); }.confidence-low, .review-status { color: var(--red); background: var(--red-soft); }
.empty-state { margin-top: 22px; padding: 26px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }.empty-state p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.plan-preview { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }.plan-preview > div { flex: 1; }.plan-preview small { color: var(--violet); font-size: 7px; font-weight: 700; letter-spacing: .1em; }.plan-preview h2 { margin: 2px 0; font-size: 14px; }.plan-preview p { margin: 0; color: var(--muted); font-size: 9px; }.plan-preview code { padding: 7px 9px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); font-size: 8px; }
.next-step-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 28px 32px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #26314f, #443b82); box-shadow: var(--shadow); }
.next-step-card.coral { background: linear-gradient(120deg, #3a315d, #7a476c); }
.next-step-card span { color: #c2bafc; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }.next-step-card h2 { margin: 5px 0; color: #fff; font-size: 20px; }.next-step-card p { margin: 0; color: #ced2e4; font-size: 10px; }

.region-layout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 14px; }
.map-panel, .exposure-summary { padding: 26px; }
.region-map { position: relative; min-height: 360px; margin-top: 14px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 50% 46%, #fff 0 16%, transparent 17%), linear-gradient(135deg, #f8f7ff, #effaff); }
.region-map::before { content: ""; position: absolute; inset: 22px; border: 1px dashed #d9dced; border-radius: 50%; }
.map-region, .map-center { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.85); box-shadow: 0 12px 30px rgba(49,58,99,.13); }
.map-region { width: 122px; height: 86px; border-radius: 24px; color: #fff; }
.map-region span { font-size: 8px; font-weight: 700; letter-spacing: .08em; }.map-region strong { font: 800 24px Manrope, sans-serif; }.map-region small { font-size: 7px; opacity: .78; }
.map-northeast { right: 9%; top: 14%; }.map-south { right: 17%; bottom: 10%; }.map-midwest { left: 15%; top: 17%; }.map-west { left: 8%; bottom: 12%; }
.map-region.risk-high { background: linear-gradient(145deg, #f27487, #cf4f67); }.map-region.risk-medium { background: linear-gradient(145deg, #7b6af0, #5c4ad6); }.map-region.risk-review { background: linear-gradient(145deg, #e1a53c, #c47a11); }
.map-center { width: 110px; height: 110px; left: calc(50% - 55px); top: calc(50% - 55px); border-radius: 50%; color: var(--ink); background: #fff; }.map-center span { color: var(--violet); font-size: 7px; font-weight: 800; letter-spacing: .1em; }.map-center strong { font: 800 27px Manrope, sans-serif; }.map-center small { color: var(--subtle); font-size: 8px; }
.map-legend { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }.map-legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.risk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }.risk-dot.high { background: var(--coral); }.risk-dot.medium { background: var(--violet); }.risk-dot.review { background: var(--amber); }
.exposure-summary .panel-heading { margin-bottom: 25px; }
.exposure-bar { margin-bottom: 20px; }.exposure-bar > div:first-child { display: flex; align-items: center; justify-content: space-between; }.exposure-bar strong { font-size: 10px; }.exposure-bar span { color: var(--subtle); font-size: 7px; font-weight: 700; }.exposure-bar small { display: block; margin-top: 5px; color: var(--subtle); font-size: 8px; }
.bar-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #eceef4; }.bar-track i { display: block; max-width: 100%; height: 100%; border-radius: inherit; }.bar-high { background: linear-gradient(90deg, #f69aaa, var(--coral)); }.bar-medium { background: linear-gradient(90deg, #aaa0f6, var(--violet)); }.bar-review { background: linear-gradient(90deg, #f5cc82, var(--amber)); }
.region-table-panel { margin-top: 14px; }
.region-table { margin-top: 22px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.region-row { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr 1.2fr 1fr; gap: 12px; align-items: center; min-height: 70px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.region-row:first-child { border-top: 0; }.region-header { min-height: 37px; color: var(--subtle); background: #f9f9fc; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.region-row > span { min-width: 0; color: var(--muted); font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }.region-row:not(.region-header) > span:first-child { display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 7px; }.region-row:not(.region-header) > span:first-child b { grid-column: 2; color: var(--subtle); font-size: 7px; }.region-row strong { color: var(--ink); font-size: 9px; }
.flag-list { display: flex; flex-wrap: wrap; gap: 4px; }.flag-list code { padding: 3px 5px; border-radius: 4px; color: var(--violet); background: var(--violet-soft); font-size: 6px; }

.artifact-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }.artifact-strip a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(51,60,102,.04); transition: .18s; }.artifact-strip a:hover { transform: translateY(-2px); border-color: #d7d1ff; box-shadow: var(--shadow-hover); }.artifact-strip a div { flex: 1; min-width: 0; }.artifact-strip strong { display: block; font-size: 10px; }.artifact-strip small { display: block; margin-top: 3px; color: var(--subtle); font-size: 8px; }.artifact-strip a > b { color: var(--violet); font-size: 13px; }.file-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; font: 800 8px Manrope, sans-serif; }.file-icon.json { color: var(--violet); background: var(--violet-soft); }.file-icon.sql { color: var(--cyan); background: var(--cyan-soft); }.file-icon.fix { color: var(--coral); background: var(--coral-soft); }.file-icon.sarif { color: var(--green); background: var(--green-soft); }
.fix-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px,.65fr); gap: 14px; }.fix-list-panel { padding: 26px; }.fix-tabs { display: flex; gap: 5px; margin: 20px 0 12px; padding: 4px; border-radius: 10px; background: #f4f5f9; }.fix-tabs span { padding: 7px 10px; border-radius: 7px; color: var(--subtle); font-size: 8px; font-weight: 700; }.fix-tabs .active { color: var(--violet); background: #fff; box-shadow: 0 3px 8px rgba(49,58,95,.08); }
.fix-card { overflow: hidden; margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.fix-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }.fix-card > header > div { display: flex; align-items: center; gap: 10px; }.fix-card > header > div > div { display: flex; flex-direction: column; }.fix-card header strong { font-size: 10px; }.fix-card header small { margin-top: 2px; color: var(--subtle); font-size: 7px; }.fix-manual { border-color: #f2d6da; }.code-compare { display: grid; grid-template-columns: 1fr 1fr; }.code-compare > div { min-width: 0; }.code-compare > div + div { border-left: 1px solid var(--line); background: #fbfffd; }.code-compare span { display: block; padding: 9px 13px 0; color: var(--subtle); font-size: 7px; font-weight: 700; letter-spacing: .08em; }.code-compare pre { min-height: 78px; margin: 0; padding: 9px 13px 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: #4f5874; font: 400 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }.fix-card > footer { display: flex; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--subtle); background: #fafafe; font-size: 7px; }.fix-card > footer b { color: var(--violet); }
.fix-sidebar { display: flex; flex-direction: column; gap: 14px; }.ai-card { position: relative; overflow: hidden; padding: 25px; color: #fff; background: linear-gradient(145deg, #202943, #4b3e85); }.ai-card::after { content: "✦"; position: absolute; right: -12px; top: -18px; color: rgba(255,255,255,.06); font-size: 120px; }.sparkle { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.12); }.ai-card > small { color: #bdb8e7; font-size: 7px; font-weight: 700; letter-spacing: .12em; }.ai-card h2 { margin: 7px 0 8px; color: #fff; font-size: 18px; line-height: 1.3; }.ai-card p { color: #ccd0df; font-size: 9px; line-height: 1.65; }.ai-card form { position: relative; z-index: 1; margin-top: 17px; }.ai-card .button-dark { background: #fff; color: #332b68; }.cost-note { display: block; margin-top: 10px; text-align: center; color: #aaa6cc !important; letter-spacing: 0 !important; }.ai-result { position: relative; z-index: 1; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.08); }.ai-result strong { color: #9ff0cb; font-size: 8px; }
.control-card { padding: 20px; }.control-card h3 { display: inline; margin-left: 8px; font-size: 14px; }.control-card a { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-decoration: none; }.control-card a > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--violet); background: var(--violet-soft); }.control-card a div { flex: 1; display: flex; flex-direction: column; }.control-card a strong { font-size: 9px; }.control-card a small { margin-top: 2px; color: var(--subtle); font-size: 7px; }.control-card a > b { color: var(--violet); font-size: 10px; }

.readiness-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 30px; border: 1px solid #dcd7ff; border-radius: 18px; background: linear-gradient(110deg, #fff, #f3f0ff); box-shadow: var(--shadow); }.readiness-banner > div:first-child { display: flex; align-items: center; gap: 17px; }.readiness-score { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--violet); background: var(--violet-soft); box-shadow: inset 0 0 0 9px #fff; font: 800 11px Manrope, sans-serif; }.readiness-banner small { color: var(--violet); font-size: 7px; font-weight: 700; letter-spacing: .1em; }.readiness-banner h2 { margin: 3px 0; font-size: 17px; }.readiness-banner p { margin: 0; color: var(--muted); font-size: 9px; }.readiness-items { display: flex; gap: 15px; }.readiness-items span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }.readiness-items i { width: 7px; height: 7px; border-radius: 50%; }.readiness-items .done { background: var(--green); }.readiness-items .open { background: var(--amber); }
.rollout-layout { display: grid; grid-template-columns: 1.45fr .65fr; gap: 14px; margin-top: 14px; }.release-timeline { margin: 25px 0 0; padding: 0; list-style: none; }.release-timeline li { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; padding: 0 0 25px; }.release-timeline li::before { content: ""; position: absolute; left: 21px; top: 42px; bottom: 2px; width: 1px; background: #dfe1eb; }.release-timeline li:last-child::before { display: none; }.release-timeline li > span { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #d8d2ff; border-radius: 13px; color: var(--violet); background: var(--violet-soft); font: 800 10px Manrope, sans-serif; }.release-timeline li > div { padding-top: 2px; }.release-timeline small { color: var(--violet); font-size: 7px; font-weight: 700; letter-spacing: .1em; }.release-timeline strong { display: block; margin-top: 3px; font-size: 10px; line-height: 1.45; }.release-timeline p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }.release-timeline li > b { margin-top: 4px; color: var(--subtle); font-size: 7px; }.release-timeline li:first-child > b { color: var(--green); }
.rollout-sidebar { display: flex; flex-direction: column; gap: 14px; }.gate-card h3 { display: inline; margin-left: 8px; font-size: 14px; }.gate-card ul { margin: 18px 0; padding: 0; list-style: none; }.gate-card li { display: flex; align-items: center; gap: 9px; margin-top: 11px; }.gate-card li i { display: grid; place-items: center; width: 23px; height: 23px; flex: none; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 8px; font-style: normal; }.gate-card li span { display: flex; flex-direction: column; }.gate-card li strong { font-size: 9px; }.gate-card li small { color: var(--subtle); font-size: 7px; }.gate-card .button { width: 100%; }.rollback-card { padding: 24px; border-color: #f0d8ad; background: var(--amber-soft); }.rollback-card > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--amber); background: #fff1ca; }.rollback-card > small { display: block; margin-top: 16px; color: var(--amber); font-size: 7px; font-weight: 700; letter-spacing: .1em; }.rollback-card h3 { margin: 5px 0; font-size: 14px; }.rollback-card p { margin: 0; color: #806a4d; font-size: 9px; line-height: 1.6; }.rollback-card code { color: #a46605; }.rollback-card a { display: inline-block; margin-top: 13px; color: #a46605; text-decoration: none; font-size: 9px; font-weight: 700; }

.datahub-hero { display: flex; align-items: center; gap: 18px; padding: 25px; border: 1px solid #dcd7ff; border-radius: 18px; background: linear-gradient(110deg, #fff, #f5f2ff); box-shadow: var(--shadow); }.datahub-mark { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #7665f1, #5442d1); font-size: 24px; }.datahub-hero > div:nth-child(2) { flex: 1; }.datahub-hero small { color: var(--violet); font-size: 7px; font-weight: 700; letter-spacing: .12em; }.datahub-hero h2 { margin: 4px 0; font-size: 18px; }.datahub-hero p { margin: 0; color: var(--muted); font-size: 9px; }.approval-lock { padding: 8px 11px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 700; }
.alert { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: 9px; line-height: 1.55; }.alert strong { flex: none; }.alert-warning { color: #886018; border-color: #f0dda9; background: var(--amber-soft); }.alert-error { color: #a62f43; border-color: #f1d0d6; background: var(--red-soft); }.sim-badge { padding: 4px 7px; border-radius: 5px; color: #fff; background: var(--amber); font: 700 7px Manrope, sans-serif; letter-spacing: .08em; }
.result-stack { display: grid; gap: 7px; margin: 14px 0; }.write-result { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.write-result > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }.write-result.success > span { color: var(--green); background: var(--green-soft); }.write-result.failure > span { color: var(--red); background: var(--red-soft); }.write-result div { flex: 1; }.write-result strong { font-size: 9px; }.write-result p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }.write-result > b { color: var(--amber); font-size: 7px; }
.proposal-form { margin-top: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }.proposal-form > input { display: none; }.proposal-toolbar { display: flex; align-items: flex-start; justify-content: space-between; }.proposal-toolbar h2 { display: inline; margin-left: 10px; font-size: 18px; }.proposal-toolbar p { margin: 5px 0 0 38px; color: var(--muted); font-size: 9px; }.proposal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 20px; }.proposal-card { position: relative; display: block; padding: 18px 18px 16px 48px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: .18s; }.proposal-card:hover { border-color: #d8d2ff; box-shadow: var(--shadow-hover); }.proposal-card:has(input:checked) { border-color: #bfb5ff; background: #f9f7ff; box-shadow: inset 0 0 0 1px #d9d2ff; }.proposal-card input { position: absolute; opacity: 0; }.checkmark { position: absolute; left: 16px; top: 18px; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #d6d9e4; border-radius: 6px; color: transparent; background: #fff; font-size: 9px; }.proposal-card input:checked + .checkmark { color: #fff; border-color: var(--violet); background: var(--violet); }.proposal-type { display: inline-block; padding: 4px 6px; border-radius: 5px; color: var(--violet); background: var(--violet-soft); font-size: 7px; font-weight: 700; letter-spacing: .07em; }.proposal-card > strong { display: block; margin-top: 9px; font-size: 11px; }.proposal-card > small { display: block; margin-top: 3px; color: var(--subtle); font-size: 8px; }.proposal-card > p { margin: 11px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.proposal-card details { border-top: 1px solid var(--line); padding-top: 9px; }.proposal-card summary { color: var(--violet); font-size: 8px; font-weight: 700; }.proposal-card pre { max-height: 180px; overflow: auto; padding: 10px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; color: #59627d; background: #f7f8fb; font: 400 8px/1.5 ui-monospace, monospace; }.approval-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.approval-bar > div { display: flex; align-items: center; gap: 10px; }.lock-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--green); background: var(--green-soft); }.approval-bar p { margin: 0; }.approval-bar strong, .approval-bar small { display: block; }.approval-bar strong { font-size: 9px; }.approval-bar small { margin-top: 2px; color: var(--subtle); font-size: 7px; }

.page-wrap > footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 21px 2px 6px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 12px; line-height: 1.5; }
.page-wrap > footer strong { color: var(--ink); }

@media (max-width: 1180px) {
  .metric-grid-five { grid-template-columns: repeat(3, 1fr); }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .region-layout, .fix-grid, .rollout-layout { grid-template-columns: 1fr; }
  .artifact-strip { grid-template-columns: repeat(2,1fr); }
  .readiness-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; height: auto; padding: 12px 18px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-card, .sidebar-status, .primary-nav p { display: none; }
  .primary-nav { flex: 1; flex-direction: row; justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: none; min-height: 36px; padding: 0 9px; font-size: 11px; white-space: nowrap; }
  .primary-nav a span { font-size: 15px; }
  .primary-nav a.active { box-shadow: inset 0 -2px var(--violet); }
  .topbar { top: 63px; padding: 0 22px; }
  .page-wrap { padding: 28px 22px; }
  .hero-card { grid-template-columns: 1fr; }.signal-visual { display: none; }
  .analysis-form { grid-template-columns: 1fr 1fr; }.form-arrow { display: none; }.analysis-form .button { grid-column: 1/-1; }
  .metric-grid, .metric-grid-five { grid-template-columns: repeat(2,1fr); }
  .insight-grid { grid-template-columns: 1fr; }
  .sql-table, .region-table { overflow-x: auto; }.sql-row { min-width: 850px; }.region-row { min-width: 900px; }
}

@media (max-width: 640px) {
  .brand { padding: 0; }.brand > span:last-child { display: none; }.brand-mark { width: 34px; height: 34px; }
  .sidebar { padding: 10px 12px; }.primary-nav a { padding: 0 6px; }.primary-nav a span { width: 18px; }
  .topbar { top: 55px; height: 62px; padding: 0 14px; }.breadcrumb { display: none; }.topbar-actions { width: 100%; justify-content: space-between; }.evidence-badge { max-width: calc(100vw - 90px); }
  .page-wrap { padding: 22px 13px; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  h1 { font-size: 32px; }.page-heading p { font-size: 12px; }
  .hero-card { min-height: 0; padding: 28px 22px; }.hero-copy h2 { font-size: 25px; }.hero-actions { align-items: stretch; flex-direction: column; }
  .metric-grid, .metric-grid-five, .scenario-grid, .artifact-strip, .proposal-grid { grid-template-columns: 1fr; }
  .metric-card { padding: 14px; }
  .analyzer-panel, .graph-panel, .sql-panel, .region-table-panel, .timeline-panel, .gate-card, .fix-list-panel, .proposal-form { padding: 19px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }.panel-heading p { margin-left: 0; }
  .analysis-form { grid-template-columns: 1fr; padding: 14px; }
  .lineage-node { min-width: 165px; }
  .region-map { min-height: 310px; }.map-region { width: 92px; height: 70px; border-radius: 18px; }.map-center { width: 88px; height: 88px; left: calc(50% - 44px); top: calc(50% - 44px); }.map-northeast { right: 4%; }.map-south { right: 7%; }.map-midwest { left: 5%; }.map-west { left: 2%; }
  .code-compare { grid-template-columns: 1fr; }.code-compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .datahub-hero { align-items: flex-start; flex-wrap: wrap; }.approval-lock { margin-left: 71px; }
  .approval-bar, .next-step-card { align-items: stretch; flex-direction: column; }.approval-bar .button, .next-step-card .button { width: 100%; }
  .readiness-items { flex-wrap: wrap; }.page-wrap > footer { align-items: flex-start; flex-direction: column; }
}

/* Readability and navigation refresh: the dashboard should explain itself at a glance. */
body { font-size: 16px; line-height: 1.5; }
.ambient-one { background: #ffe2c7; }
.ambient-two { background: #dbeafe; }
.brand-mark { background: linear-gradient(145deg, #fb923c, #ea580c); box-shadow: 0 8px 20px rgba(234, 88, 12, .25); }
.workspace-icon { color: #1d4ed8; }
.primary-nav p { color: #53647a; font-size: 11px; }
.primary-nav a { color: #42526b; font-size: 14px; min-height: 46px; }
.primary-nav a:hover { color: #c2410c; background: #fff4ec; }
.primary-nav a.active { color: #9a3412; background: #fff4ec; box-shadow: inset 4px 0 #f97316; }
.primary-nav a.active span { color: #ea580c; }
.breadcrumb { font-size: 13px; }
.evidence-badge { font-size: 12px; }
.page-wrap { padding-top: 38px; }
.page-heading { margin-bottom: 32px; }
.kicker { font-size: 11px; color: var(--violet-dark); }
h1 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.035em; }
.page-heading p { color: #42526b; font-size: 16px; line-height: 1.6; }
.environment-chip, .strategy-chip, .source-pill { font-size: 11px; }
.panel-heading h2, .proposal-toolbar h2 { font-size: 22px; }
.panel-heading p, .proposal-toolbar p { color: #42526b; font-size: 14px; line-height: 1.6; }
.section-index { color: var(--violet-dark); }
.safe-badge, .evidence-source { font-size: 11px; }
.button { min-height: 46px; font-size: 14px; }
.button-primary { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 9px 22px rgba(234, 88, 12, .22); }
.button-ghost, .button-secondary { color: #1d4ed8; border-color: #bfdbfe; }
.hero-card { border-color: #fed7aa; background: linear-gradient(118deg, #fff 0%, #fff8f2 52%, #eff6ff 100%); box-shadow: 0 18px 54px rgba(18, 35, 63, .12); }
.hero-card::before { border-color: rgba(249, 115, 22, .09); }
.hero-label { font-size: 11px; color: var(--violet-dark); background: #ffedd5; }
.hero-copy h2 { font-size: clamp(30px, 3vw, 38px); }
.hero-copy p { color: #42526b; font-size: 16px; line-height: 1.7; }
.hero-copy code, .hero-copy h2 em { color: var(--violet-dark); }
.metric-card small { color: #53647a; font-size: 11px; }
.metric-card strong { font-size: 26px; }
.metric-card p { color: #53647a; font-size: 12px; }
.analysis-form label > span { color: #53647a; font-size: 11px; }
input { font-size: 14px; }
.scenario-top { font-size: 10px; }
.scenario-card strong { font-size: 14px; }
.scenario-card code { color: #1d4ed8; font-size: 12px; }
.scenario-card small { color: #53647a; font-size: 12px; }
.insight-card small { font-size: 10px; }
.insight-card h3 { font-size: 17px; }
.insight-card p, .insight-card a { font-size: 13px; }
.lineage-node > span { font-size: 10px; }
.lineage-node strong { font-size: 14px; }
.lineage-node small { font-size: 11px; }
.source-node { border-color: #fed7aa; }
.sql-row code, .plan-preview code { font-size: 11px; }
.sql-row > span { font-size: 12px; }
.plan-preview small { font-size: 10px; }
.plan-preview h2 { font-size: 18px; }
.plan-preview p { font-size: 13px; }
.map-center span { font-size: 10px; }
.map-center strong { font-size: 30px; }
.map-center small { font-size: 10px; }
.region-row > span { font-size: 12px; }
.region-row strong { font-size: 13px; }
.flag-list code { font-size: 9px; }
.artifact-strip strong { font-size: 13px; }
.artifact-strip small { font-size: 11px; }
.fix-tabs span { font-size: 11px; }
.fix-card header strong { font-size: 13px; }
.fix-card header small, .fix-card > footer { font-size: 10px; }
.code-compare span { font-size: 10px; }
.code-compare pre { font-size: 11px; }
.ai-card { background: linear-gradient(145deg, #12233f, #1d4ed8); }
.ai-card > small { color: #bfdbfe; font-size: 10px; }
.ai-card h2 { font-size: 22px; }
.ai-card p { color: #e0ecff; font-size: 13px; }
.ai-card .button-dark { color: #12233f; }
.cost-note { color: #bfdbfe !important; }
.control-card h3, .gate-card h3 { font-size: 17px; }
.control-card a strong { font-size: 12px; }
.control-card a small { font-size: 10px; }
.readiness-banner { border-color: #fed7aa; background: linear-gradient(110deg, #fff, #fff7ed); }
.readiness-banner small { font-size: 10px; }
.readiness-banner h2 { font-size: 20px; }
.readiness-banner p { font-size: 13px; }
.readiness-items span { font-size: 11px; }
.release-timeline small { font-size: 10px; }
.release-timeline strong { font-size: 13px; }
.release-timeline p { font-size: 12px; }
.datahub-hero { border-color: #bfdbfe; background: linear-gradient(110deg, #fff, #eff6ff); }
.datahub-mark { background: linear-gradient(145deg, #fb923c, #ea580c); }
.datahub-hero small { font-size: 10px; }
.datahub-hero h2 { font-size: 22px; }
.datahub-hero p { font-size: 13px; }
.approval-lock { font-size: 11px; }
.alert { font-size: 13px; }
.write-result strong { font-size: 12px; }
.write-result p { font-size: 11px; }
.proposal-card > strong { font-size: 14px; }
.proposal-card > small { font-size: 10px; }
.proposal-card > p { font-size: 12px; }
.proposal-card summary { font-size: 11px; }
.proposal-card pre { font-size: 10px; }
.approval-bar strong { font-size: 12px; }
.approval-bar small { font-size: 10px; }

@media (max-width: 640px) {
  .sidebar, .primary-nav { min-width: 0; }
  .primary-nav { justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { flex: none; min-height: 40px; padding: 0 9px; font-size: 11px; white-space: nowrap; }
  .primary-nav a span { width: 18px; font-size: 14px; }
  .primary-nav a.active { box-shadow: inset 0 -3px #f97316; }
  .page-wrap { padding: 26px 16px; }
  h1 { font-size: 30px; }
  .page-heading p { font-size: 15px; }
  .hero-copy h2 { font-size: 28px; }
  .hero-copy p { font-size: 15px; }
  .panel-heading h2, .proposal-toolbar h2 { font-size: 20px; }
  .panel-heading p, .proposal-toolbar p { font-size: 14px; }
  .metric-card strong { font-size: 23px; }
  .metric-card p, .scenario-card small { font-size: 12px; }
}

.export-panel { margin-top: 22px; padding: 28px; border: 1px solid #bfdbfe; border-radius: 20px; background: linear-gradient(120deg, #fff, #f4f8ff); box-shadow: var(--shadow); }

/* Triage Composer: computed evidence stays readable at 13px or larger. */
.triage-form { padding: 26px; }.triage-input-grid { display: grid; gap: 16px; margin-top: 22px; }.triage-input-grid label, .file-picker { display: grid; gap: 7px; color: #42526b; font-size: 13px; font-weight: 700; }.triage-input-grid input, .triage-input-grid textarea { width: 100%; padding: 12px 13px; border: 1px solid #bfdbfe; border-radius: 10px; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.55; }.triage-input-grid textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.file-row, .triage-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; }.file-row > small, .file-picker small, .ai-boundary { color: var(--subtle); font-size: 13px; font-weight: 400; }.file-picker input { max-width: 320px; color: #1d4ed8; font-size: 13px; }.triage-actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 17px; border-top: 1px solid var(--line); }.ai-boundary { width: 100%; line-height: 1.5; }
.triage-warnings { display: grid; gap: 10px; margin-top: 18px; padding: 18px 20px; border: 1px solid #f0dda9; border-radius: 15px; color: #7a5719; background: var(--amber-soft); }.triage-warnings div { display: grid; gap: 4px; }.triage-warnings strong { font: 800 15px Manrope, sans-serif; }.triage-warnings span, .triage-warnings p { margin: 0; font-size: 13px; line-height: 1.55; }.triage-warnings p { display: flex; gap: 9px; align-items: flex-start; }.triage-warnings p b { display: grid; place-items: center; width: 19px; height: 19px; flex: none; border-radius: 50%; color: #fff; background: var(--amber); }
.triage-overview { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; margin-top: 18px; }.coverage-card, .triage-flow { display: flex; align-items: center; gap: 22px; padding: 23px; }.coverage-ring { display: grid; place-items: center; width: 126px; height: 126px; flex: none; border-radius: 50%; background: conic-gradient(#f97316 0 var(--coverage), #dbeafe var(--coverage) 100%); }.coverage-ring > div { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; }.coverage-ring strong { font: 800 25px/1 Manrope, sans-serif; }.coverage-ring small { margin-top: 5px; color: var(--subtle); font-size: 13px; }.coverage-card h2 { margin: 7px 0; font-size: 21px; }.coverage-card p, .triage-flow p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }.triage-flow { display: block; }.flow-nodes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }.flow-nodes span { padding: 8px 10px; border: 1px solid #bfdbfe; border-radius: 8px; color: #1d4ed8; background: #eff6ff; font-size: 13px; font-weight: 700; }.flow-nodes b { color: #f97316; font-size: 16px; }
.triage-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 14px; margin-top: 14px; }.mapping-panel { min-width: 0; }.mapping-panel, .domain-panel, .explainers, .evidence-timeline, .triage-sql, .triage-ai-result { padding: 24px; }.mapping-table { max-width: 100%; margin-top: 20px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }.mapping-row { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; min-width: 730px; border-top: 1px solid var(--line); }.mapping-row:first-child { border-top: 0; }.mapping-row > span { display: grid; align-content: start; gap: 5px; padding: 14px; color: #42526b; font-size: 13px; line-height: 1.5; }.mapping-row > span + span { border-left: 1px solid var(--line); }.mapping-head { color: #53647a; background: #f8fafc; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.mapping-row b, .mapping-row strong { color: var(--ink); font-size: 14px; }.mapping-row small { color: var(--subtle); font-size: 13px; }.mapping-row p { margin: 0; }.mapping-row code { overflow-wrap: anywhere; color: #1d4ed8; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }.triage-side-stack { display: grid; gap: 14px; }.domain-panel h2 { display: inline; margin-left: 10px; font-size: 20px; }.domain-cards { display: grid; gap: 9px; margin-top: 18px; }.domain-cards > div { display: grid; gap: 3px; padding: 13px; border: 1px solid #bfdbfe; border-radius: 10px; background: linear-gradient(90deg, #fff, #eff6ff); }.domain-cards strong { font-size: 14px; }.domain-cards small { color: var(--muted); font-size: 13px; }.explainers { display: grid; gap: 13px; }.explainers > div { display: grid; gap: 4px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }.explainers > div:last-child { padding: 0; border: 0; }.explainers strong { color: #c2410c; font-size: 14px; }.explainers span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.evidence-timeline { margin-top: 14px; }.evidence-timeline ol { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }.evidence-timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 13px; padding: 0 0 19px; }.evidence-timeline li::before { content: ""; position: absolute; left: 19px; top: 39px; bottom: 0; width: 2px; background: #bfdbfe; }.evidence-timeline li:last-child::before { display: none; }.evidence-timeline li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: #1d4ed8; font: 800 13px Manrope, sans-serif; }.evidence-timeline strong { font-size: 14px; }.evidence-timeline p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.triage-sql { margin-top: 14px; }.triage-sql pre { max-height: 520px; margin: 20px 0 0; overflow: auto; padding: 16px; border-radius: 12px; color: #eff6ff; background: #12233f; }.triage-sql code { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }.triage-ai-result { margin-top: 14px; }.triage-ai-result h2 { margin: 10px 0; font-size: 20px; }.triage-ai-result p, .triage-ai-result li { color: var(--muted); font-size: 13px; line-height: 1.6; }.triage-ai-result h3 { margin: 16px 0 6px; font-size: 15px; }.triage-ai-result ul { margin: 6px 0; padding-left: 20px; }

@media (max-width: 900px) { .triage-overview, .triage-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .triage-form, .mapping-panel, .domain-panel, .explainers, .evidence-timeline, .triage-sql, .triage-ai-result { padding: 18px; }.file-row, .coverage-card { align-items: flex-start; flex-direction: column; }.file-picker input { max-width: 100%; }.triage-actions .button { width: 100%; }.mapping-row { min-width: 650px; }.coverage-ring { width: 112px; height: 112px; }.coverage-ring > div { width: 84px; height: 84px; }.evidence-timeline .evidence-source { white-space: normal; }.triage-sql code { font-size: 13px; } }
@media (max-width: 640px) { .primary-nav { gap: 2px; justify-content: flex-start; overflow-x: auto; }.primary-nav a { min-width: max-content; padding: 0 8px; font-size: 11px; }.primary-nav a span { font-size: 13px; } }

.file-error { min-height: 1.25em; color: #b91c1c; font-size: 13px; font-weight: 700; }
.document-receipt { display: grid; gap: 4px; margin-top: 16px; padding: 15px 17px; border: 1px solid #bbf7d0; border-radius: 13px; color: #166534; background: linear-gradient(120deg, #f0fdf4, #fff); }.document-receipt strong { font-size: 15px; }.document-receipt span, .document-receipt small { color: #42634a; font-size: 13px; line-height: 1.5; }.document-receipt input { display: none; }
.context-graph-panel { margin-top: 20px; padding: 26px; }
.context-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.context-metrics div { padding: 16px; border: 1px solid #dbeafe; border-radius: 14px; background: linear-gradient(145deg, #fff, #f8fbff); }
.context-metrics strong { display: block; color: #1d4ed8; font: 800 26px Manrope, sans-serif; }
.context-metrics small { color: #52647d; font-size: 12px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.capability-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.capability-grid h3 { margin: 12px 0 7px; font-size: 16px; }
.capability-grid p { margin: 0; color: var(--subtle); font-size: 13px; line-height: 1.6; }
.capability-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font: 800 10px Manrope, sans-serif; letter-spacing: .06em; }
.capability-status.active { color: #166534; background: #dcfce7; }
.capability-status.ready { color: #1d4ed8; background: #dbeafe; }
.capability-status.connected { color: #9a3412; background: #ffedd5; }
@media (max-width: 900px) { .sidebar, .primary-nav { min-width: 0; }.primary-nav { justify-content: flex-start; overflow-x: auto; }.primary-nav a { flex: none; min-width: max-content; font-size: 11px; white-space: nowrap; } }
@media (max-width: 900px) { .context-metrics { grid-template-columns: repeat(3, 1fr); }.capability-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .context-graph-panel { padding: 18px; }.context-metrics { grid-template-columns: repeat(2, 1fr); }.context-metrics strong { font-size: 22px; } }
.export-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.export-heading h2 { margin: 7px 0 5px; font-size: 24px; letter-spacing: -.03em; }
.export-heading p { margin: 0; color: #42526b; font-size: 15px; line-height: 1.55; }
.export-bundle { display: flex; gap: 10px; flex: none; }
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.export-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 15px 16px; border: 1px solid #d9e2ec; border-radius: 13px; background: #fff; }
.export-item > div { min-width: 0; }
.export-item strong, .export-item small { display: block; }
.export-item strong { font-size: 14px; }
.export-item small { margin-top: 4px; color: #53647a; font-size: 12px; line-height: 1.35; }
.export-item > span { display: flex; gap: 5px; flex: none; }
.export-item a { padding: 6px 7px; border: 1px solid #bfdbfe; border-radius: 6px; color: #1d4ed8; font-size: 11px; font-weight: 800; text-decoration: none; }
.export-item a:hover { color: #c2410c; border-color: #fdba74; background: #fff7ed; }

/* The content is the product: keep labels, SQL, and evidence readable without zooming. */
.fix-card header strong { font-size: 16px; }
.fix-card header small { font-size: 12px; }
.fix-card > header { padding: 18px 20px; }
.fix-list-panel, .fix-card, .fix-card > header, .fix-card > header > div, .fix-card > header > div > div { min-width: 0; }
.fix-card header strong { overflow-wrap: anywhere; }
.code-compare span { padding: 14px 20px 0; font-size: 12px; }
.code-compare pre { min-height: 112px; padding: 12px 20px 20px; font-size: 14px; line-height: 1.65; }
.fix-card > footer { padding: 13px 20px; font-size: 12px; }
.fix-status, .review-status { font-size: 11px; }
.fix-tabs span { padding: 10px 14px; font-size: 13px; }
.ai-card h2 { font-size: 24px; }
.ai-card p { font-size: 15px; line-height: 1.6; }
.control-card a strong { font-size: 14px; }
.control-card a small { font-size: 12px; }
.sql-row > span { font-size: 13px; }
.sql-row code { font-size: 12px; }

@media (max-width: 900px) {
  .export-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .export-panel { padding: 20px; }
  .export-heading { align-items: stretch; flex-direction: column; }
  .export-heading h2 { font-size: 22px; }
  .export-heading p { font-size: 14px; }
  .export-bundle { flex-direction: column; }
  .export-grid { grid-template-columns: 1fr; }
  .fix-card header strong { font-size: 15px; }
  .code-compare pre { font-size: 13px; }
}
