:root {
  --bg: #f5f5f7;
  --bg-elevated: #fbfbfd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #f8f8fa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.10);
  --indigo: #5856d6;
  --green: #1d9a55;
  --amber: #b7791f;
  --red: #d92d20;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --max: 1220px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(0, 113, 227, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(88, 86, 214, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34%, #f2f2f4 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0,0,0,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(#000, transparent 70%);
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { appearance: none; }
.shell { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.page { padding: 34px 0 66px; position: relative; z-index: 2; }

.aurora, .mesh-bg { display: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - min(var(--max), calc(100vw - 36px))) / -2) auto;
  height: 72px;
  background: rgba(245, 245, 247, 0.76);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: -1;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 8px 18px rgba(0, 113, 227, .14)); }
.brand strong { display: block; font-size: .98rem; letter-spacing: .12em; line-height: 1.05; }
.brand small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-xs); backdrop-filter: blur(18px); }
.nav a, .nav-form button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: .9rem; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav a:hover, .nav-form button:hover { color: var(--text); background: rgba(0,0,0,.045); }
.nav a:focus-visible, .nav-form button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 113, 227, .22); outline-offset: 2px; }
.nav img { width: 15px; height: 15px; opacity: .78; filter: saturate(.75); }
.nav-form { margin: 0; }

h1, h2, h3, h4 { color: var(--text); letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 4.9rem); line-height: .96; margin: 0; font-weight: 720; }
h2 { margin: 0 0 14px; font-size: 1.18rem; font-weight: 680; }
h3 { margin: 16px 0 8px; font-size: 1rem; font-weight: 680; }
h4 { margin: 18px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.28rem); max-width: 760px; margin: 24px 0; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 760; margin: 0 0 12px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(0, 113, 227, .10); }

.card, .feature-card, .stat-card, .hero-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}
.card { padding: 24px; }
.card.subtle { background: rgba(255,255,255,.58); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.card-head a { color: var(--blue); font-weight: 600; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 28px; align-items: center; min-height: 610px; padding: 18px 0 30px; }
.hero-copy { max-width: 780px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.hero-visual { min-height: 460px; position: relative; overflow: hidden; }
.hero-card { padding: 34px; background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,248,250,.74)); }
.hologram-card { display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: linear-gradient(145deg, rgba(255,255,255,.90), rgba(245,248,255,.72)); }
.hologram-card::before { content: ""; position: absolute; inset: 20px; border-radius: 30px; border: 1px solid rgba(0, 113, 227, .10); background: linear-gradient(135deg, rgba(0, 113, 227, .08), transparent 55%); pointer-events: none; }
.hologram-logo { width: 92px; height: 92px; z-index: 2; margin: auto; filter: drop-shadow(0 18px 28px rgba(0, 113, 227, .16)); }
.orbit { display: none; }
.signal-card { position: relative; z-index: 3; width: min(100%, 250px); padding: 15px 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.78); box-shadow: var(--shadow-xs); }
.signal-card span { display:block; color: var(--muted); font-size: .78rem; }
.signal-card strong { font-size: 1.12rem; }
.signal-card.one { align-self: flex-start; }
.signal-card.two { align-self: flex-end; }
.signal-card.three { align-self: flex-start; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.feature-card { padding: 22px; min-height: 218px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover, .deal-card:hover, .connector-card:hover { transform: translateY(-2px); border-color: rgba(0, 113, 227, .24); box-shadow: var(--shadow); }
.feature-card img { width: 38px; height: 38px; margin-bottom: 18px; filter: saturate(.86); }
.feature-card p { color: var(--muted); }
.process-card { padding: 26px; overflow: hidden; }
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.timeline span { text-align: center; padding: 11px 10px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 26px; margin: 8px 0 26px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 3.8rem); max-width: 940px; }
.page-heading .muted { max-width: 780px; margin-top: 12px; }

.btn { border: 1px solid var(--line-strong); padding: 10px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; color: var(--text); background: rgba(255,255,255,.76); font-weight: 610; }
.btn:hover { transform: translateY(-1px); border-color: rgba(0,113,227,.35); box-shadow: var(--shadow-xs); }
.btn img { width: 16px; height: 16px; }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.primary:hover { background: #000; }
.btn.secondary { background: var(--blue-soft); color: var(--blue); border-color: rgba(0,113,227,.18); }
.btn.ghost { background: rgba(255,255,255,.50); color: var(--text); }
.btn.danger { color: var(--red); background: rgba(217,45,32,.08); border-color: rgba(217,45,32,.20); }
.btn.mini { min-height: 34px; padding: 7px 11px; font-size: .82rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.stat-card { padding: 18px; min-height: 104px; background: rgba(255,255,255,.78); }
.stat-card span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { display: block; margin-top: 9px; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -.055em; font-weight: 730; word-break: break-word; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0; }

.row-link, .match-row, .message-row, .contact-card, .audit-line, .response-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.row-link:first-of-type, .match-row:first-of-type, .message-row:first-of-type, .audit-line:first-of-type, .contact-card:first-of-type { border-top: 0; }
.row-link strong, .message-row strong { display: block; }
.row-link small, .match-row small, .message-row small, .audit-line small, .contact-card small { display:block; color: var(--muted-2); }
.row-link em, .match-row em { color: var(--muted); font-style: normal; }
.score { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 15px; display: grid; place-items:center; background: #f1f6ff; color: var(--blue); font-weight: 780; border: 1px solid rgba(0,113,227,.12); }
.score.big { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.25rem; border-radius: 19px; }

.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 220px 180px auto; gap: 10px; align-items: center; padding: 12px; margin-bottom: 18px; }
.filter-bar.compact { grid-template-columns: minmax(0, 1fr) auto; }
.filter-bar.deal-filter { grid-template-columns: minmax(0, 1fr) 220px auto; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.86); color: var(--text); border-radius: 16px; padding: 11px 13px; min-height: 42px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(0,0,0,.16); }
input:focus, select:focus, textarea:focus { border-color: rgba(0,113,227,.38); box-shadow: 0 0 0 4px rgba(0,113,227,.10); background: #fff; outline: 0; }
input[type="checkbox"] { width: auto; min-height: auto; accent-color: var(--blue); box-shadow: none; }
input[type="file"] { padding: 10px; }
.form-card { max-width: 760px; }
.form-card.wide { max-width: none; }
.form-card p { margin: 0 0 14px; }
.form-card label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; font-weight: 590; }
.helptext { color: var(--muted-2); font-size: .78rem; display:block; margin-top: 5px; }
.errorlist { color: var(--red); padding-left: 18px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: stretch; margin-top: 56px; }

.table-card { overflow-x: auto; padding: 8px 14px; }
.mia-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.mia-table th { color: var(--muted); font-size: .72rem; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-weight: 690; }
.mia-table th, .mia-table td { padding: 15px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mia-table tr:last-child td { border-bottom: 0; }
.mia-table td a strong { display:block; }
.mia-table small { color: var(--muted-2); }
.pill, .chip { display: inline-flex; align-items:center; gap: 6px; border-radius: 999px; padding: 5px 10px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.72); font-size: .78rem; font-style: normal; white-space: nowrap; }
.pill.ok, .chip.ok { color: var(--green); border-color: rgba(29,154,85,.20); background: rgba(29,154,85,.08); }
.pill.danger, .chip.danger { color: var(--red); border-color: rgba(217,45,32,.22); background: rgba(217,45,32,.08); }
.pill.blue, .chip.blue { color: var(--blue); border-color: rgba(0,113,227,.20); background: var(--blue-soft); }

.details { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 11px 16px; }
.details dt { color: var(--muted-2); }
.details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-cloud span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.62); font-size: .8rem; }
.clean-list { padding-left: 19px; color: var(--muted); margin-top: 8px; }
.clean-list li + li { margin-top: 6px; }

.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deal-card { display: flex; flex-direction: column; min-height: 224px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.deal-card h2 { margin-top: 18px; font-size: 1.36rem; }
.deal-card p { color: var(--muted); }
.deal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; color: var(--muted-2); font-size: .82rem; }
.deal-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; background: rgba(255,255,255,.66); }

.connector-grid, .capability-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:14px; }
.connector-card, .capability-grid > div, .semantic-chip, .source-card { border:1px solid var(--line); border-radius:22px; padding:18px; background:rgba(255,255,255,.62); position:relative; overflow:hidden; }
.connector-card { display:block; min-height: 150px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.connector-card strong, .capability-grid strong { display:block; margin-bottom:5px; }
.connector-card small, .capability-grid p { color:var(--muted); margin:0; }
.connector-orb { width:34px; height:34px; border-radius:12px; display:block; margin-bottom:12px; background: linear-gradient(135deg, #f7f7f8, #eaf2ff); border: 1px solid rgba(0,113,227,.14); }

.semantic-grid { display:grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap:16px; }
.semantic-chip { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:9px 0; }
.semantic-chip small { color:var(--muted-2); display:block; }
.source-list { display:grid; gap:10px; }
.source-card small { color:var(--muted); display:block; }
.secret-note { color:var(--amber); font-size:.85rem; }

.mail-preview { white-space: pre-wrap; color: var(--text); background: #f7f7f8; border: 1px solid var(--line); padding: 16px; border-radius: 18px; max-height: 520px; overflow:auto; }
.block-code { display:block; white-space:pre-wrap; padding:14px; border-radius:16px; border:1px solid var(--line); background:#f7f7f8; color: var(--text); overflow:auto; }
.empty-state { text-align: center; padding: 34px; color: var(--muted); }
.empty-state h3 { color: var(--text); margin-top: 0; }
.empty-orb { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 16px; background: linear-gradient(135deg, #ffffff, #eaf2ff); border: 1px solid rgba(0,113,227,.13); }
.messages { margin-bottom: 18px; }
.message { padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.82); margin-bottom: 8px; box-shadow: var(--shadow-xs); }
.message.success { border-color: rgba(29,154,85,.26); color: var(--green); }
.message.error { border-color: rgba(217,45,32,.30); color: var(--red); }
.footer { display:flex; justify-content:space-between; gap:20px; color: var(--muted-2); font-size:.82rem; padding: 26px 0 40px; border-top: 1px solid var(--line); position:relative; z-index:2; }

.breakdown-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; margin:12px 0 16px; }
.breakdown-grid span { border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.66); padding:10px 11px; display:flex; justify-content:space-between; gap:10px; align-items:center; }
.breakdown-grid em { font-size:.66rem; color:var(--muted); font-style:normal; text-transform:uppercase; letter-spacing:.04em; }
.breakdown-grid strong { font-size:.88rem; }
.semantic-panel { background: linear-gradient(135deg, rgba(0,113,227,.06), rgba(255,255,255,.80)); }
.mini-card h3 { margin:.34rem 0 .2rem; }
.mini-card p { margin:.2rem 0 0; }

.matching-system-card { border-color: rgba(0, 113, 227, 0.16); }
.match-system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.match-system-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.match-system-grid strong { display:block; margin-bottom: 6px; color: var(--text); }
.match-system-grid p { margin:0; color: var(--muted); font-size: .92rem; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.match-grid.upgraded { gap: 18px; }
.match-card { border: 1px solid var(--line); border-radius: 22px; padding: 18px; background: rgba(255,255,255,.62); }
.match-card-v3 { position: relative; overflow: hidden; }
.match-card-v3::before { content:""; position:absolute; inset:0 0 auto; height:3px; background: var(--blue); opacity:.88; }
.match-top { display: flex; align-items: center; gap: 14px; }
.match-top h3 { margin: 0; }
.match-top p, .angle { color: var(--muted); margin: 4px 0 12px; }
.match-card ul { padding-left: 18px; color: var(--muted); }
.risk-list li { color: var(--amber); }
.match-actions { display:flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.status-line { color: var(--muted-2); display: block; }
.match-rank-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:5px; }
.rank-pill, .tier-pill, .status-pill { display:inline-flex; align-items:center; gap:4px; padding:4px 8px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.68); color:var(--muted); font-size:.70rem; text-transform:uppercase; letter-spacing:.05em; }
.tier-pill { color: var(--blue); border-color: rgba(0,113,227,.20); }
.tier-prime::before { background: var(--green); }
.tier-prime .tier-pill { color: var(--green); border-color: rgba(29,154,85,.28); }
.tier-strong::before { background: var(--blue); }
.tier-review::before, .tier-blocked::before { background: var(--amber); }
.tier-review .tier-pill, .tier-blocked .tier-pill { color: var(--amber); border-color: rgba(183,121,31,.28); }
.match-predictive-strip { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:8px; margin:14px 0; }
.match-predictive-strip span { padding:10px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.64); min-width: 0; }
.match-predictive-strip em { display:block; color:var(--muted-2); font-size:.68rem; font-style:normal; text-transform:uppercase; letter-spacing:.06em; }
.match-predictive-strip strong { display:block; margin-top:3px; color:var(--text); font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.contact-reason { padding:11px 13px; border-left:3px solid var(--blue); border-radius:12px; background:var(--blue-soft); color:var(--muted); }
.breakdown-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.breakdown-grid.compact span { min-height: 56px; }
.rule-list { display:flex; flex-direction:column; gap:8px; }
.rule { display:block; border:1px solid var(--line); border-radius:14px; padding:9px 10px; color:var(--muted); background:rgba(255,255,255,.62); font-size:.88rem; }
.rule strong { display:inline-block; min-width:62px; margin-right:8px; color:var(--text); text-transform:uppercase; font-size:.72rem; letter-spacing:.05em; }
.rule-pass strong { color: var(--green); }
.rule-warn strong, .rule-review strong { color: var(--amber); }
.rule-block strong { color: var(--red); }
.semantic-evidence-list { display:flex; flex-direction:column; gap:9px; }
.semantic-evidence-list article { border:1px solid var(--line); border-radius:16px; padding:10px 12px; background:rgba(255,255,255,.62); }
.semantic-evidence-list strong { display:block; }
.semantic-evidence-list small { display:block; color:var(--muted-2); margin:2px 0 6px; }
.semantic-evidence-list p { margin:0; color:var(--muted); font-size:.88rem; }
.quality-tags { margin-top:12px; }
.quality-tags span { border-color:rgba(183,121,31,.26); color:var(--amber); }

@media (max-width: 1040px) {
  .hero, .two-col, .auth-grid, .semantic-grid { grid-template-columns: 1fr; }
  .feature-grid, .connector-grid, .capability-grid, .deal-grid, .match-grid, .match-system-grid, .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar, .filter-bar.deal-filter { grid-template-columns: 1fr 1fr; }
  .page-heading { flex-direction: column; }
  .nav { border-radius: 24px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 24px, var(--max)); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; width: 100%; }
  .feature-grid, .connector-grid, .capability-grid, .deal-grid, .match-grid, .match-system-grid, .stats-grid, .filter-bar, .filter-bar.deal-filter, .three-col, .timeline, .match-predictive-strip { grid-template-columns: 1fr; }
  .page { padding-top: 22px; }
  h1 { font-size: 2.35rem; }
  .details { grid-template-columns: 1fr; }
  .row-link, .match-row, .message-row, .contact-card, .audit-line, .response-card { align-items: flex-start; flex-direction: column; }
  .footer { flex-direction: column; }
}

.feature-grid > *, .capability-grid > *, .connector-grid > *, .deal-grid > *, .match-grid > *, .semantic-grid > *, .two-col > * { margin-bottom: 0; }

/* Productive background-job and high-volume matching UX */
.hidden { display: none !important; }
.progress-shell { width: 100%; height: 10px; border-radius: 999px; background: #e8e8ed; overflow: hidden; border: 1px solid rgba(0,0,0,.04); }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #5ac8fa); transition: width .35s ease; }
.job-card { max-width: 920px; margin-inline: auto; }
.job-meta-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.job-meta-grid > div { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.62); }
.job-meta-grid span { display:block; color: var(--muted-2); font-size:.72rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.job-result { margin-top: 22px; padding: 18px; border-radius: 20px; border: 1px solid rgba(0,113,227,.14); background: var(--blue-soft); }
.job-result h3 { margin-top: 0; }
.live-work-card { border-color: rgba(0,113,227,.14); }
.job-list-inline { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.job-inline { display:block; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.66); transition: transform .18s ease, box-shadow .18s ease; }
.job-inline:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.job-inline strong { display:block; margin: 8px 0 2px; }
.job-inline small { color: var(--muted); }
.progress-mini { display:block; height: 6px; border-radius: 999px; background:#e8e8ed; overflow:hidden; }
.progress-mini em { display:block; height:100%; background: var(--blue); border-radius: inherit; }

.match-queue-card { padding-bottom: 18px; }
.match-filter { grid-template-columns: minmax(220px, 1fr) 160px 145px 110px 190px auto; align-items: center; }
.bulk-toolbar { display:flex; flex-wrap: wrap; align-items:center; gap: 10px; padding: 12px; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.62); }
.bulk-toolbar select { width: 210px; }
.bulk-toolbar input[type="number"] { width: 110px; }
.select-all { display:inline-flex; align-items:center; gap: 8px; color: var(--muted); font-weight: 590; }
.match-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.66); }
.match-table { min-width: 1120px; }
.match-table th:first-child, .match-table td:first-child { width: 42px; }
.match-row-table td { vertical-align: top; }
.compact-score { width: 40px; height: 40px; border-radius: 13px; display:inline-grid; margin-bottom: 5px; }
.mini-pill-row { display:flex; flex-wrap:wrap; gap:5px; margin-top: 8px; }
.match-details summary { cursor:pointer; color: var(--blue); font-weight: 650; list-style: none; white-space: nowrap; }
.match-details summary::-webkit-details-marker { display:none; }
.match-detail-panel { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fbfbfd; min-width: min(820px, 78vw); box-shadow: var(--shadow-sm); }
.three-col { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.three-col.tight h4 { margin: 0 0 8px; }
.inline-actions { margin-top: 12px; }
.pagination { display:flex; align-items:center; justify-content:center; gap: 10px; margin-top: 18px; }
.tier-row-prime td:first-child { border-left: 3px solid var(--green); }
.tier-row-strong td:first-child { border-left: 3px solid var(--blue); }
.tier-row-review td:first-child, .tier-row-blocked td:first-child { border-left: 3px solid var(--amber); }

@media (max-width: 980px) {
  .match-filter { grid-template-columns: 1fr 1fr; }
  .job-meta-grid, .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .match-filter { grid-template-columns: 1fr; }
  .bulk-toolbar { align-items: stretch; }
  .bulk-toolbar select, .bulk-toolbar input[type="number"], .bulk-toolbar .btn { width: 100%; }
}
.workspace-switcher select{max-width:170px;border:1px solid var(--line,#d9d9df);border-radius:10px;background:rgba(255,255,255,.8);padding:.55rem .7rem;font:inherit;color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.inline-form{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.inline-form input,.inline-form select{min-width:190px}.compact-panel{max-width:820px}.status-pill{text-transform:capitalize}
/* MIA Phase 2 · AI-native Deal OS */
.mia-copilot-launch{position:fixed;right:24px;bottom:24px;z-index:80;border:0;border-radius:999px;padding:12px 18px;background:#111;color:#fff;box-shadow:0 14px 38px rgba(0,0,0,.22);font:600 14px/1.2 inherit;cursor:pointer;display:flex;gap:8px;align-items:center}.mia-copilot-launch span{font-size:18px}.mia-copilot-drawer{position:fixed;top:0;right:0;bottom:0;width:min(480px,96vw);background:rgba(250,250,252,.98);backdrop-filter:blur(24px);z-index:100;transform:translateX(105%);transition:transform .28s ease;box-shadow:-20px 0 60px rgba(0,0,0,.16);border-left:1px solid rgba(0,0,0,.08)}.mia-copilot-drawer.open{transform:translateX(0)}.copilot-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.18);z-index:90;opacity:0;pointer-events:none;transition:.2s}.copilot-backdrop.open{opacity:1;pointer-events:auto}.copilot-panel-inner{height:100%;display:flex;flex-direction:column}.copilot-head{display:flex;justify-content:space-between;gap:20px;padding:28px 28px 18px;border-bottom:1px solid #e5e5e7}.copilot-head h2{margin:3px 0}.copilot-head p{margin:0;color:#6e6e73}.copilot-close{border:0;background:#e9e9ec;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer}.copilot-messages{flex:1;overflow:auto;padding:22px}.copilot-message{padding:15px 17px;border-radius:18px;margin-bottom:14px;background:#fff;border:1px solid #e7e7ea}.copilot-message.user{margin-left:48px;background:#111;color:#fff}.copilot-message p{line-height:1.55;margin:6px 0}.copilot-message details{margin-top:10px}.copilot-message small{display:block;margin:6px 0;color:#6e6e73}.copilot-empty{text-align:center;padding:48px 16px}.copilot-empty button{border:1px solid #ddd;background:#fff;border-radius:999px;padding:9px 13px;margin:5px;cursor:pointer}#copilot-form{padding:18px 22px 24px;border-top:1px solid #e5e5e7;background:#fff}#copilot-form textarea{width:100%;resize:none;border:1px solid #d7d7da;border-radius:16px;padding:13px 14px;font:inherit;margin-bottom:10px}.copilot-loading{padding:40px;color:#6e6e73}.intel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.intel-grid .span-2{grid-column:1/-1}.intelligence-hero h2{font-size:clamp(24px,3vw,40px);line-height:1.12;max-width:980px}.intelligence-hero p{font-size:18px;line-height:1.6;color:#52525a;max-width:900px}.clean-list{list-style:none;padding:0;margin:0}.clean-list li{padding:12px 0;border-bottom:1px solid #ececef;line-height:1.45}.clean-list.numbered{counter-reset:item}.clean-list.numbered li{counter-increment:item;display:flex;gap:12px}.clean-list.numbered li:before{content:counter(item);display:grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#111;color:#fff;font-size:12px}.action-roadmap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.action-roadmap>div{padding:18px;border-radius:18px;background:#f5f5f7}.action-roadmap span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#111;color:white}.evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.evidence-grid article{border:1px solid #e5e5e7;border-radius:18px;padding:16px;background:#fff}.evidence-grid small{display:block;color:#6e6e73;margin:6px 0}.graph-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.graph-list>div{display:grid;grid-template-columns:150px 1fr auto;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:#f5f5f7}.graph-relation{font-size:11px;font-weight:700;letter-spacing:.05em;color:#6e6e73}.phase2-shortcut{margin-left:auto}@media(max-width:780px){.intel-grid,.evidence-grid,.graph-list,.action-roadmap{grid-template-columns:1fr}.intel-grid .span-2{grid-column:auto}.graph-list>div{grid-template-columns:1fr}.mia-copilot-launch{right:14px;bottom:14px}.mia-copilot-drawer{width:100vw}.evidence-grid{grid-template-columns:1fr}}
/* MIA Phase 3 · Enterprise orchestration and diligence */
.phase3-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.phase3-grid>article{padding:20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.72)}.phase3-grid h3{margin-top:0}.task-line{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.task-line small{color:var(--muted)}details>summary{cursor:pointer;color:var(--blue);font-weight:650;margin:12px 0}.workflow-template{padding:16px 0;border-bottom:1px solid var(--line)}.workflow-template small{display:block;color:var(--muted);margin-top:4px}.workflow-status{max-width:980px}.workflow-timeline{position:relative;margin:8px 0}.workflow-timeline article{position:relative;display:grid;grid-template-columns:24px 1fr;gap:14px;padding:0 0 24px}.workflow-timeline article:before{content:"";position:absolute;left:7px;top:20px;bottom:0;width:1px;background:var(--line)}.workflow-timeline article:last-child:before{display:none}.workflow-dot{width:15px;height:15px;border-radius:50%;margin-top:3px;background:#c7c7cc;box-shadow:0 0 0 5px #fff}.workflow-dot.succeeded{background:var(--green)}.workflow-dot.waiting{background:var(--amber)}.workflow-dot.failed{background:#ff3b30}.workflow-timeline small{display:block;color:var(--muted);margin-top:3px}.dataroom-layout{align-items:start}.stacked-form p{display:grid;gap:6px}.document-list{margin-top:20px}.document-list article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.document-list small{display:block;color:var(--muted);margin-top:4px}.copilot-inline{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.copilot-inline textarea{width:100%;min-height:90px}.qa-card{padding:20px 0;border-top:1px solid var(--line)}.qa-card h3{margin:0 0 10px}.incident{padding:14px;border-radius:16px;background:#f5f5f7;margin-bottom:10px}.incident.error,.incident.critical{background:#fff0ef}.incident.warning{background:#fff8e7}.incident small{display:block;color:var(--muted);margin-top:4px}.signature-control{margin-bottom:18px}.risk-text{color:#b42318}.row-link.compact{padding:10px 0}
@media(max-width:780px){.phase3-grid,.copilot-inline{grid-template-columns:1fr}.document-list article,.task-line{align-items:flex-start;flex-direction:column}}

/* MIA V1.0 · simplified navigation and guided Deal Journey */
.nav-v1 a.active,
.nav-v1 .nav-form button.active {
  color: var(--text);
  background: rgba(0, 0, 0, .06);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.nav-v1 .compact-switcher { margin-left: 4px; }
.nav-v1 .compact-switcher select { max-width: 154px; min-height: 34px; padding: 7px 10px; border-radius: 999px; font-size: .84rem; }

.deal-journey-card { margin: 0 0 22px; padding: 26px; overflow: hidden; }
.journey-head { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; align-items: start; }
.journey-head h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); margin-bottom: 6px; letter-spacing: -.045em; }
.journey-progress-panel { border: 1px solid var(--line); border-radius: 24px; padding: 18px; background: rgba(255,255,255,.74); text-align: right; }
.journey-progress-panel span { display:block; font-size: 2.1rem; font-weight: 760; letter-spacing: -.06em; line-height: 1; }
.journey-progress-panel small { display:block; color: var(--muted); margin: 6px 0 12px; }
.progress-mini.large { height: 8px; }

.journey-rail { position: relative; display: grid; grid-template-columns: repeat(12, minmax(72px, 1fr)); gap: 8px; margin: 24px 0; overflow-x: auto; padding-bottom: 4px; }
.journey-rail::before { content: ""; position: absolute; left: 18px; right: 18px; top: 16px; height: 2px; background: #e5e5e8; z-index: 0; }
.journey-step { position: relative; z-index: 1; min-width: 72px; display:flex; flex-direction: column; align-items:center; gap: 5px; text-align:center; color: var(--muted); }
.journey-dot { width: 34px; height: 34px; border-radius: 50%; display:grid; place-items:center; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); }
.journey-dot::after { content:""; width: 10px; height: 10px; border-radius: inherit; background: #c7c7cc; }
.journey-step strong { font-size: .72rem; white-space: nowrap; }
.journey-step small { font-size: .68rem; color: var(--muted-2); }
.journey-step.complete .journey-dot { border-color: rgba(29,154,85,.28); background: rgba(29,154,85,.08); }
.journey-step.complete .journey-dot::after { background: var(--green); }
.journey-step.completed .journey-dot { border-color: rgba(29,154,85,.28); background: rgba(29,154,85,.08); }
.journey-step.completed .journey-dot::after { background: var(--green); }
.journey-step.pending .journey-dot::after { background: #c7c7cc; }
.journey-dot.completed::after { background: var(--green); }
.journey-dot.pending::after { background: #c7c7cc; }

.journey-step.current .journey-dot { border-color: rgba(0,113,227,.32); box-shadow: 0 0 0 6px rgba(0,113,227,.10); }
.journey-step.current .journey-dot::after { background: var(--blue); }
.journey-step.attention .journey-dot { border-color: rgba(217,45,32,.28); background: rgba(217,45,32,.06); }
.journey-step.attention .journey-dot::after { background: var(--red); }
.journey-step.locked { opacity: .62; }
.journey-dot.current::after, .journey-dot.complete::after { background: var(--blue); }
.journey-dot.attention::after { background: var(--red); }
.journey-dot.locked::after { background: #c7c7cc; }

.next-action-card { display:flex; justify-content: space-between; gap: 18px; align-items:center; padding: 18px; border: 1px solid rgba(0,113,227,.14); background: linear-gradient(135deg, rgba(0,113,227,.08), rgba(255,255,255,.72)); border-radius: 24px; }
.next-action-card h3 { margin: 8px 0 5px; font-size: 1.24rem; }

.journey-current-grid { display:grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr); gap: 16px; align-items:start; margin-top: 18px; }
.journey-phase-main, .journey-phase-list { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.66); padding: 20px; }
.journey-phase-main .card-head { align-items:flex-start; }
.journey-checklist { list-style:none; padding:0; margin: 14px 0 0; display:grid; gap: 10px; }
.journey-checklist li { display:grid; grid-template-columns: 34px 1fr; gap: 12px; align-items:flex-start; padding: 13px; border-radius: 18px; border: 1px solid var(--line); background:#fff; }
.journey-checklist li span { width: 30px; height: 30px; border-radius: 50%; display:grid; place-items:center; font-weight: 780; background:#f2f2f5; color: var(--muted); }
.journey-checklist li.done span { background: rgba(29,154,85,.10); color: var(--green); }
.journey-checklist li.blocked span { background: rgba(217,45,32,.10); color: var(--red); }
.journey-checklist li.attention span { background: rgba(183,121,31,.10); color: var(--amber); }
.journey-checklist strong { display:block; }
.journey-checklist small { display:block; color: var(--muted); margin-top: 3px; }
.journey-blocker-box { margin-top: 16px; padding: 16px; border-radius: 20px; border: 1px solid rgba(217,45,32,.18); background: rgba(217,45,32,.06); }
.journey-blocker-box .inline-form { margin-top: 12px; }
.journey-blocker-box input { min-width: 260px; }

.journey-phase-list { max-height: 680px; overflow:auto; }
.journey-phase-list details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.journey-phase-list details:last-child { border-bottom: 0; }
.journey-phase-list summary { display:grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items:center; color: var(--text); margin: 0; }
.journey-phase-list summary .journey-dot { width: 22px; height: 22px; }
.journey-phase-list summary .journey-dot::after { width: 7px; height: 7px; }
.journey-phase-list summary em { color: var(--muted); font-size: .72rem; font-style: normal; text-transform: capitalize; }
.mini-checklist { list-style:none; padding: 0; margin: 10px 0; display:grid; gap: 6px; }
.mini-checklist li { color: var(--muted); font-size: .84rem; padding-left: 18px; position: relative; }
.mini-checklist li::before { content:""; position:absolute; left:0; top:.56em; width:7px; height:7px; border-radius:50%; background:#c7c7cc; }
.mini-checklist li.done { color: var(--text); }
.mini-checklist li.done::before { background: var(--green); }

.metric-row { display:flex; justify-content:space-between; align-items:center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.metric-row:first-of-type { border-top: 0; }
.metric-row span { color: var(--muted); text-transform: capitalize; }
.metric-row strong { font-size: 1.12rem; }
.compact-stats { margin-top: 16px; }

@media (max-width: 1120px) {
  .topbar { align-items:flex-start; flex-direction:column; }
  .nav { width:100%; overflow-x:auto; justify-content:flex-start; border-radius: 22px; }
  .journey-rail { grid-template-columns: repeat(12, 86px); }
  .journey-current-grid, .journey-head { grid-template-columns: 1fr; }
  .journey-progress-panel { text-align:left; }
}
@media (max-width: 720px) {
  .deal-journey-card { padding: 18px; }
  .next-action-card { align-items:flex-start; flex-direction:column; }
  .journey-current-grid { grid-template-columns: 1fr; }
  .journey-blocker-box .inline-form, .next-action-card .actions { width: 100%; }
  .journey-blocker-box input, .next-action-card .btn, .next-action-card form { width: 100%; }
}

/* MIA v1.0 · Deal list guided cards */
.journey-filter { grid-template-columns: minmax(0, 1fr) 220px 180px auto; }
.compact-head { margin-bottom: 10px; }
.compact-head small { color: var(--muted); font-weight: 650; }
.journey-deal-card .progress-mini { margin: 12px 0; }
.journey-mini-roadmap { display:flex; align-items:center; gap: 6px; margin: 8px 0 14px; }
.journey-mini-roadmap span { width: 10px; height: 10px; border-radius: 50%; background: #c7c7cc; box-shadow: 0 0 0 3px rgba(0,0,0,.025); }
.journey-mini-roadmap span.completed { background: var(--green); }
.journey-mini-roadmap span.current { background: var(--blue); }
.journey-mini-roadmap span.attention { background: var(--red); }
.journey-mini-roadmap em { color: var(--muted-2); font-size: .75rem; font-style: normal; }
.deal-next-action { margin: 10px 0 14px; padding: 12px 13px; border: 1px solid rgba(0,113,227,.14); border-radius: 18px; background: var(--blue-soft); }
.deal-next-action strong { display:block; margin-bottom: 3px; }
.deal-next-action small { color: var(--muted); }
@media (max-width: 820px) { .journey-filter { grid-template-columns: 1fr; } }
.product-nav a.active { color: var(--text); background: rgba(0,0,0,.06); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.insight-bar-row { display:grid; grid-template-columns: minmax(120px, .8fr) 1fr 42px; gap:12px; align-items:center; padding:11px 0; border-top:1px solid var(--line); }
.insight-bar-row:first-of-type { border-top:0; }
.insight-bar-row span { color:var(--muted); text-transform:capitalize; }
.insight-bar-row div { height:8px; border-radius:999px; background:#e8e8ed; overflow:hidden; }
.insight-bar-row em { display:block; height:100%; border-radius:inherit; background:var(--blue); min-width:10px; }
.insight-bar-row strong { text-align:right; }

/* MIA v1.0 · Product navigation and guided Deal Journey */
.product-nav a.active { color: var(--text); background: rgba(0,0,0,.065); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.product-nav .workspace-switcher { margin-left: 4px; }
.product-nav .nav-form button { color: var(--muted-2); }
button[disabled], .btn[disabled] { opacity: .48; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.deal-hero-heading { align-items: center; }
.deal-journey-card { overflow: hidden; position: relative; }
.journey-head { align-items: flex-start; }
.journey-progress { height: 8px; border-radius: 999px; background: #e8e8ed; overflow: hidden; margin: 10px 0 20px; }
.journey-progress em { display:block; height:100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--indigo)); }
.journey-progress.mini { height: 6px; min-width: 120px; margin: 8px 0 0; display:block; }
.journey-rail { display: grid; grid-template-columns: repeat(12, minmax(84px, 1fr)); gap: 8px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.journey-phase { min-width: 84px; scroll-snap-align: start; }
.journey-phase form { margin: 0; }
.journey-phase button { width: 100%; min-height: 86px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.66); color: var(--muted); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 12px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; text-align: left; }
.journey-phase button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(0,113,227,.28); box-shadow: var(--shadow-xs); color: var(--text); }
.journey-phase strong { font-size: .82rem; letter-spacing: -.01em; }
.journey-phase small { color: var(--muted-2); }
.phase-dot { width: 12px; height: 12px; border-radius: 50%; background: #c7c7cc; box-shadow: 0 0 0 5px rgba(199,199,204,.18); }
.journey-phase.completed .phase-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(29,154,85,.12); }
.journey-phase.current .phase-dot { background: var(--blue); box-shadow: 0 0 0 5px rgba(0,113,227,.14); }
.journey-phase.attention .phase-dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(183,121,31,.14); }
.journey-phase.blocked .phase-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(217,45,32,.12); }
.journey-phase.completed button { background: rgba(29,154,85,.08); border-color: rgba(29,154,85,.20); color: #176f42; }
.journey-phase.current button, .journey-phase.attention button { background: #fff; border-color: rgba(0,113,227,.24); box-shadow: 0 12px 34px rgba(0,113,227,.08); color: var(--text); }
.journey-phase.attention button { border-color: rgba(183,121,31,.30); }
.guided-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 18px; margin-top: 10px; }
.guided-current, .guided-checklist { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.70); padding: 22px; }
.guided-current h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); margin: 10px 0; }
.phase-action-stack { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items:center; }
.phase-action-stack form { margin: 0; }
.guided-checklist ul { list-style: none; padding: 0; margin: 0; }
.guided-checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.guided-checklist li:first-child { border-top: 0; }
.guided-checklist li > span { width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; border: 1px solid #c7c7cc; background: #fff; }
.guided-checklist li.done > span { border-color: rgba(29,154,85,.30); background: var(--green); box-shadow: inset 0 0 0 4px #fff; }
.guided-checklist li.open > span { border-color: rgba(183,121,31,.36); background: rgba(183,121,31,.18); }
.guided-checklist strong { display:block; }
.guided-checklist small { color: var(--muted); display:block; margin-top: 3px; }
.deal-subnav { position: sticky; top: 82px; z-index: 8; display: flex; gap: 6px; overflow-x: auto; margin: 18px 0; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); backdrop-filter: blur(18px); box-shadow: var(--shadow-xs); }
.deal-subnav a { padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.deal-subnav a:hover { color: var(--text); background: rgba(0,0,0,.045); }
.compact-actions { margin-top: 16px; }
.deal-list-v1 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.deal-card-v1 { padding: 0; overflow: hidden; }
.deal-card-main { display:flex; justify-content:space-between; gap: 18px; padding: 22px 22px 14px; }
.deal-card-main h2 { margin: 14px 0 8px; font-size: 1.45rem; }
.deal-card-main p { color: var(--muted); }
.deal-card-progress { min-width: 150px; text-align: right; }
.deal-card-progress strong { display:block; font-size: 2rem; letter-spacing: -.06em; }
.deal-mini-journey { display:flex; gap: 6px; padding: 0 22px 16px; align-items:center; }
.deal-mini-journey span { height: 7px; flex: 1 1 14px; border-radius: 999px; background: #dcdce1; }
.deal-mini-journey span.completed { background: var(--green); }
.deal-mini-journey span.current { background: var(--blue); }
.deal-mini-journey span.attention { background: var(--amber); }
.deal-mini-journey span.blocked { background: var(--red); }
.deal-mini-journey em { color: var(--muted-2); font-style: normal; font-size: .8rem; }
.deal-card-footer { display:flex; justify-content:space-between; align-items:center; gap: 12px; padding: 14px 22px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.54); }
.deal-card-footer small { color: var(--muted); }
.v1-deal-filter { grid-template-columns: minmax(0,1fr) 190px 190px auto; }
.insight-bar-row { display:grid; grid-template-columns: 150px 1fr 36px; gap: 12px; align-items:center; padding: 12px 0; border-top:1px solid var(--line); }
.insight-bar-row:first-of-type { border-top: 0; }
.insight-bar-row span { text-transform: capitalize; color: var(--muted); }
.insight-bar-row div { height: 8px; border-radius: 999px; background: #e8e8ed; overflow: hidden; }
.insight-bar-row em { display:block; height:100%; max-width: 100%; background: var(--blue); border-radius: inherit; }
.insight-bar-row strong { text-align:right; }
.mia-hub-grid .connector-card { min-height: 164px; }
@media(max-width:1100px){.journey-rail{grid-template-columns:repeat(12,110px)}.guided-panel,.deal-list-v1{grid-template-columns:1fr}.deal-card-progress{text-align:left}.v1-deal-filter{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.deal-hero-heading{align-items:flex-start}.journey-rail{grid-template-columns:repeat(12,104px)}.deal-subnav{top:118px;border-radius:22px}.deal-card-main,.deal-card-footer{flex-direction:column;align-items:flex-start}.v1-deal-filter{grid-template-columns:1fr}.guided-panel{grid-template-columns:1fr}}
.btn.disabled,
.btn[disabled] {
  opacity: .48;
  cursor: not-allowed;
  pointer-events: none;
}

/* MIA v1.0.5 · Enterprise Network importer */
.import-layout { align-items: start; }
.import-assurance { display: grid; gap: 4px; margin: 8px 0 18px; padding: 14px 16px; border: 1px solid rgba(0,113,227,.14); border-radius: 18px; background: var(--blue-soft); }
.import-assurance span, .compact-copy { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.import-guide { position: sticky; top: 96px; }
.mapping-example { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin: 16px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mapping-example span, .mapping-example strong { padding: 11px 13px; border-top: 1px solid var(--line); }
.mapping-example span:nth-child(-n+2), .mapping-example strong:nth-child(-n+2) { border-top: 0; }
.mapping-example span { color: var(--muted); background: rgba(0,0,0,.018); }
.mapping-example strong { font-weight: 680; }
.mapping-report { max-height: 560px; overflow: auto; }
.import-stats { grid-template-columns: repeat(6, minmax(120px,1fr)); }
.import-error { border-color: rgba(217,45,32,.22); background: rgba(217,45,32,.055); }
.warning-list { max-height: 520px; overflow: auto; border-top: 1px solid var(--line); }
.warning-list p { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media(max-width:1050px){.import-stats{grid-template-columns:repeat(3,minmax(120px,1fr))}.import-guide{position:static}}
@media(max-width:650px){.import-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mapping-example{grid-template-columns:1fr}.mapping-example span,.mapping-example strong{border-top:1px solid var(--line)}.mapping-example span:first-child{border-top:0}}
