:root {
  --navy-950: #081c2d;
  --navy-900: #0d263a;
  --navy-800: #17384e;
  --ink: #183044;
  --muted: #66798a;
  --line: #dfe7ed;
  --surface: #ffffff;
  --canvas: #f4f7f9;
  --teal: #0b9488;
  --teal-dark: #08766e;
  --teal-soft: #e5f6f3;
  --blue: #2868d7;
  --blue-soft: #eaf1fe;
  --lime: #b6d936;
  --amber: #d98b16;
  --amber-soft: #fff3dc;
  --red: #c64848;
  --red-soft: #fdecec;
  --green: #22875a;
  --green-soft: #e9f7ef;
  --shadow-sm: 0 1px 2px rgba(8, 28, 45, 0.05), 0 4px 14px rgba(8, 28, 45, 0.04);
  --shadow-lg: 0 20px 50px rgba(8, 28, 45, 0.18);
  --radius: 14px;
  --sidebar: 246px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 14px 18px;
  color: #eaf2f6;
  background:
    radial-gradient(circle at 20% 4%, rgba(29, 154, 143, 0.22), transparent 24%),
    linear-gradient(180deg, var(--navy-950), #0b2235 60%, #0a2031);
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; }
.brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: 0.01em; }
.brand small { display: block; margin-top: -2px; color: #8fb6c6; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-mark { position: relative; width: 39px; height: 39px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.07); }
.brand-mark span { position: absolute; width: 8px; height: 20px; top: 9px; border-radius: 3px; background: var(--lime); transform: skewY(-24deg); }
.brand-mark span:nth-child(1) { left: 8px; opacity: .58; }
.brand-mark span:nth-child(2) { left: 15px; }
.brand-mark span:nth-child(3) { left: 22px; opacity: .76; }

.workspace-label { padding: 0 11px 8px; color: #6f93a4; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.workspace-label.secondary { margin-top: 22px; }
#primary-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { position: relative; display: flex; align-items: center; width: 100%; min-height: 42px; padding: 9px 10px; gap: 11px; border: 0; border-radius: 10px; color: #a9c0cb; background: transparent; cursor: pointer; text-align: left; transition: .16s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(18,159,146,.26), rgba(18,159,146,.10)); box-shadow: inset 3px 0 var(--lime); }
.nav-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 auto; }
.nav-icon svg, [data-icon] svg { width: 100%; height: 100%; display: block; }
.nav-pill { margin-left: auto; padding: 2px 6px; color: #d9f1ef; border: 1px solid rgba(87,206,194,.35); border-radius: 5px; font-size: 9px; font-weight: 800; }
.nav-count { margin-left: auto; min-width: 19px; padding: 2px 6px; border-radius: 9px; color: #12293b; background: var(--lime); font-size: 10px; font-weight: 800; text-align: center; }
.optional-label { margin-left: auto; color: #7796a5; font-size: 9px; }
.sidebar-status { margin-top: auto; padding: 16px 10px 0; }
.status-row { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); }
.status-row strong, .status-row small { display: block; }
.status-row strong { color: #dbe9ee; font-size: 10px; }
.status-row small { margin-top: 2px; color: #7195a5; font-size: 9px; }
.status-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #48ca82; box-shadow: 0 0 0 4px rgba(72,202,130,.1); }

.main-column { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 20; height: 73px; display: flex; align-items: center; gap: 18px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.page-heading { min-width: 210px; }
.page-heading small { display: block; color: var(--teal-dark); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-heading h1 { margin: 1px 0 0; color: var(--navy-900); font-size: 20px; line-height: 1.2; }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.global-search { width: min(30vw, 360px); height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; }
.global-search > span { width: 17px; color: #78909e; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.icon-button, .language-toggle, .profile-button { border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: #536b7b; }
.icon-button > span { width: 18px; }
.language-toggle { display: flex; align-items: center; padding: 3px; border-radius: 9px; }
.language-toggle span { padding: 6px 7px; border-radius: 6px; color: #80909b; font-size: 10px; font-weight: 800; }
.language-toggle .language-active { color: #fff; background: var(--navy-800); }
.profile-button { height: 42px; display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 10px; text-align: left; }
.profile-button > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy-800)); font-size: 10px; font-weight: 800; }
.profile-button strong, .profile-button small { display: block; white-space: nowrap; }
.profile-button strong { font-size: 10px; }
.profile-button small { color: var(--muted); font-size: 8px; }
.profile-button > span:last-child { width: 13px; color: #8596a1; }
.menu-button { display: none; }

.demo-banner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 28px; color: #334236; background: linear-gradient(90deg, #eef7cc, #f6fae8); border-bottom: 1px solid #dce9a7; font-size: 10px; }
.demo-banner strong { margin-right: 8px; color: #28381f; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.banner-button { border: 0; padding: 5px 9px; color: #2f4916; background: rgba(255,255,255,.58); border-radius: 6px; font-size: 10px; font-weight: 800; cursor: pointer; }
.banner-actions { display: flex; align-items: center; gap: 6px; }
.feature-checklist-button { color: #fff; background: var(--navy-800); }

#app-content { width: min(1500px, 100%); margin: 0 auto; padding: 26px 28px 50px; outline: none; }
.content-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.content-header h2 { margin: 0; color: var(--navy-900); font-size: 24px; letter-spacing: -.02em; }
.content-header p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.header-actions, .button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 750; cursor: pointer; transition: .15s ease; }
.primary-button { color: #fff; border: 1px solid var(--teal); background: var(--teal); box-shadow: 0 5px 12px rgba(11,148,136,.18); }
.primary-button:hover { background: var(--teal-dark); }
.secondary-button { color: var(--navy-800); border: 1px solid #cfdbe2; background: #fff; }
.secondary-button:hover { border-color: #9fb5c1; background: #f9fbfc; }
.ghost-button { color: var(--teal-dark); border: 0; background: var(--teal-soft); }
.danger-button { color: var(--red); border: 1px solid #f1c9c9; background: var(--red-soft); }
.button-icon { width: 15px; height: 15px; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #b9ddd8; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--lime); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card { position: relative; min-height: 112px; padding: 17px; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; right: -15px; bottom: -25px; width: 70px; height: 70px; border-radius: 50%; background: var(--teal-soft); opacity: .65; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.metric-icon span { width: 15px; }
.metric-value { margin-top: 9px; color: var(--navy-900); font-size: 24px; font-weight: 760; letter-spacing: -.03em; }
.metric-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.metric-meta.positive strong { color: var(--green); }

.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.card { overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.card-header h3 { margin: 0; color: var(--navy-900); font-size: 13px; }
.card-header p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.card-body { padding: 17px; }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quality-stat { padding: 13px; border: 1px solid #e4eaee; border-radius: 11px; background: #fafcfd; }
.quality-stat small { color: var(--muted); font-size: 9px; font-weight: 700; }
.quality-stat strong { display: block; margin: 7px 0 5px; color: var(--navy-900); font-size: 20px; }
.progress { height: 5px; overflow: hidden; border-radius: 10px; background: #e7eef1; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #56c5b4); }
.quality-note { display: flex; gap: 9px; margin-top: 13px; padding: 11px; border-radius: 9px; color: #4c6573; background: #f0f6f8; font-size: 9px; }
.quality-note > span { width: 17px; flex: 0 0 auto; color: var(--teal); }

.activity-list, .source-list { display: flex; flex-direction: column; }
.activity-item, .source-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1f4; }
.activity-item:last-child, .source-item:last-child { border-bottom: 0; }
.activity-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.activity-icon span { width: 14px; }
.activity-item strong, .activity-item small, .source-item strong, .source-item small { display: block; }
.activity-item strong, .source-item strong { color: #294356; font-size: 10px; }
.activity-item small, .source-item small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.activity-time { margin-left: auto; color: #95a3ac; font-size: 8px; white-space: nowrap; }
.source-health { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; }
.source-health.ok { background: #39b875; }
.source-health.warn { background: #e2a13a; }
.source-health.error { background: #df5b5b; }

.toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; flex-wrap: wrap; }
.search-field { min-width: 260px; flex: 1; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search-field span { width: 16px; color: #78909e; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.select-field { height: 40px; min-width: 145px; padding: 0 31px 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #466072; background: #fff; font-size: 10px; outline: none; }
.result-count { margin: 5px 0 12px; color: var(--muted); font-size: 10px; }

.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.company-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); transition: .16s ease; }
.company-card:hover { transform: translateY(-2px); border-color: #b9cbd4; box-shadow: 0 10px 25px rgba(8,28,45,.08); }
.company-select { position: absolute; top: 15px; right: 15px; width: 16px; height: 16px; accent-color: var(--teal); }
.company-head { display: flex; align-items: center; gap: 10px; padding-right: 22px; }
.company-logo { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.company-head h3 { margin: 0; color: var(--navy-900); font-size: 13px; }
.company-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.company-description { min-height: 50px; margin: 13px 0 10px; color: #5b7080; font-size: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 6px; color: #3b596b; background: #eef3f6; font-size: 8px; font-weight: 700; }
.tag.accent { color: var(--teal-dark); background: var(--teal-soft); }
.company-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }
.company-meta div { padding-top: 8px; border-top: 1px solid #edf1f3; }
.company-meta span, .company-meta strong { display: block; }
.company-meta span { color: #8797a1; font-size: 8px; }
.company-meta strong { margin-top: 2px; color: #385266; font-size: 9px; }
.card-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 0; border: 0; color: var(--teal-dark); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.card-link span { width: 12px; }

.tabs { display: flex; gap: 4px; margin-bottom: 15px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: fit-content; }
.tab-button { padding: 7px 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.tab-button.active { color: #fff; background: var(--navy-800); }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.opportunity-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.opportunity-top { min-height: 104px; padding: 17px; color: #fff; background: linear-gradient(135deg, #153d52, #0c776e); }
.opportunity-top.learning { background: linear-gradient(135deg, #2c3b65, #4669a9); }
.opportunity-type { display: inline-flex; padding: 4px 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; background: rgba(255,255,255,.1); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.opportunity-top h3 { margin: 12px 0 5px; font-size: 14px; }
.opportunity-top p { margin: 0; color: rgba(255,255,255,.76); font-size: 9px; }
.opportunity-body { padding: 14px 17px 16px; }
.detail-list { display: grid; gap: 8px; }
.detail-row { display: flex; align-items: center; gap: 7px; color: #536b7b; font-size: 9px; }
.detail-row span { width: 14px; color: var(--teal); }

.matching-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; align-items: start; }
.control-panel { position: sticky; top: 132px; }
.field-group { margin-bottom: 14px; }
.field-group label, .field-label { display: block; margin-bottom: 6px; color: #506878; font-size: 9px; font-weight: 800; }
.field-group select { width: 100%; height: 39px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 10px; }
.selected-subject { padding: 12px; border: 1px solid #dbe6eb; border-radius: 9px; background: #f7fafb; }
.selected-subject strong, .selected-subject small { display: block; }
.selected-subject strong { color: var(--navy-800); font-size: 11px; }
.selected-subject small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.weight-row { margin: 11px 0; }
.weight-head { display: flex; justify-content: space-between; margin-bottom: 5px; color: #5a7180; font-size: 8px; }
.weight-head strong { color: var(--navy-800); }
input[type="range"] { width: 100%; height: 4px; accent-color: var(--teal); }
.matching-note { margin: 13px 0; padding: 10px; border-radius: 8px; color: #596e7a; background: var(--amber-soft); font-size: 8px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 11px; }
.results-head h3 { margin: 0; font-size: 14px; }
.results-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.match-results { display: grid; gap: 10px; }
.match-card { display: grid; grid-template-columns: 70px minmax(0,1fr); border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.score-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 15px 8px; color: var(--navy-900); background: linear-gradient(180deg, #eef9f7, #f7fbfb); }
.score-ring { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--teal) var(--score), #dceae9 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.score-ring strong { position: relative; z-index: 1; font-size: 12px; }
.score-panel small { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.match-content { padding: 14px 16px; }
.match-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.match-title-row h4 { margin: 0; color: var(--navy-900); font-size: 12px; }
.match-title-row p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.confidence { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 7px; font-weight: 800; white-space: nowrap; }
.reason-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 11px 0; }
.reason { display: flex; gap: 6px; padding: 7px; border-radius: 7px; color: #456073; background: #f5f8fa; font-size: 8px; }
.reason > span { width: 13px; flex: 0 0 auto; color: var(--teal); }
.evidence-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; border-top: 1px solid #edf1f3; }
.evidence-links { display: flex; gap: 5px; flex-wrap: wrap; }
.source-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #dbe5ea; border-radius: 6px; color: #526a79; background: #fff; font-size: 7px; }
.source-chip span { width: 10px; color: var(--blue); }
.feedback { display: flex; align-items: center; gap: 4px; }
.feedback button { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #dce5ea; border-radius: 6px; color: #78909e; background: #fff; cursor: pointer; }
.feedback button span { width: 11px; }
.feedback button.active { color: var(--teal-dark); border-color: #9ed8d1; background: var(--teal-soft); }

.pipeline { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; margin-bottom: 17px; }
.pipeline-step { position: relative; min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.pipeline-step:not(:last-child)::after { content: "›"; position: absolute; right: -8px; top: 25px; z-index: 2; color: #9aabb4; background: var(--canvas); font-size: 15px; }
.pipeline-step span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--teal); background: var(--teal-soft); }
.pipeline-step span svg { width: 13px; }
.pipeline-step strong { font-size: 8px; }
.table-card { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 12px; color: #718593; background: #f6f9fa; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #edf1f3; color: #455f71; font-size: 9px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.table-primary { display: flex; align-items: center; gap: 8px; }
.table-primary span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--teal); background: var(--teal-soft); }
.table-primary span svg { width: 13px; }
.table-primary strong, .table-primary small { display: block; }
.table-primary strong { color: var(--navy-800); font-size: 9px; }
.table-primary small { color: var(--muted); font-size: 7px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: 7px; font-weight: 800; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.success { color: var(--green); background: var(--green-soft); }
.status-badge.warning { color: var(--amber); background: var(--amber-soft); }
.status-badge.error { color: var(--red); background: var(--red-soft); }
.row-action { border: 0; padding: 5px 7px; border-radius: 6px; color: var(--teal-dark); background: var(--teal-soft); font-size: 8px; font-weight: 800; cursor: pointer; }
.source-layout { display: grid; grid-template-columns: 1fr 330px; gap: 14px; align-items: start; }
.dropzone { min-height: 150px; display: grid; place-items: center; padding: 24px; border: 1.5px dashed #b9cad3; border-radius: 12px; color: #5f7584; background: #f9fbfc; text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--teal); background: var(--teal-soft); }
.dropzone span { width: 32px; display: block; margin: 0 auto 8px; color: var(--teal); }
.dropzone strong { display: block; color: var(--navy-800); font-size: 11px; }
.dropzone small { font-size: 8px; }
.dropzone input { display: none; }

.review-layout { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 14px; align-items: start; }
.review-list { display: flex; flex-direction: column; max-height: 660px; overflow: auto; }
.review-item { display: flex; gap: 10px; padding: 13px; border: 0; border-bottom: 1px solid #edf1f3; background: #fff; cursor: pointer; text-align: left; }
.review-item:hover, .review-item.active { background: #f4faf9; }
.review-item.active { box-shadow: inset 3px 0 var(--teal); }
.review-item > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.review-item > span svg { width: 14px; }
.review-item strong, .review-item small { display: block; }
.review-item strong { color: var(--navy-800); font-size: 9px; }
.review-item small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.review-item em { display: block; margin-top: 5px; color: var(--amber); font-size: 7px; font-style: normal; font-weight: 800; }
.review-detail { min-height: 430px; }
.change-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; }
.change-box { min-height: 90px; padding: 12px; border-radius: 9px; background: #f6f8fa; }
.change-box.proposed { border: 1px solid #b7ded9; background: #eff9f7; }
.change-box small, .change-box strong { display: block; }
.change-box small { margin-bottom: 7px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.change-box strong { font-size: 11px; }
.review-evidence { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.review-evidence div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.review-evidence span, .review-evidence strong { display: block; }
.review-evidence span { color: var(--muted); font-size: 7px; }
.review-evidence strong { margin-top: 3px; color: var(--navy-800); font-size: 9px; }

.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 14px; }
.ops-card { padding: 16px; }
.ops-card-top { display: flex; align-items: center; justify-content: space-between; }
.ops-card-top span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }
.ops-card-top span svg { width: 15px; }
.ops-card small { color: var(--muted); font-size: 8px; }
.ops-card strong { display: block; margin: 10px 0 2px; color: var(--navy-900); font-size: 19px; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-cell { display: flex; align-items: center; gap: 9px; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--teal), var(--navy-800)); font-size: 8px; font-weight: 800; }
.audit-list { max-height: 310px; overflow: auto; }
.audit-item { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf1f3; }
.audit-item:last-child { border-bottom: 0; }
.audit-dot { width: 7px; height: 7px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.audit-item strong, .audit-item small { display: block; }
.audit-item strong { color: #385367; font-size: 8px; }
.audit-item small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.audit-item time { color: #91a0aa; font-size: 7px; white-space: nowrap; }

.portal-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 23px; border-radius: 15px; color: #fff; background: linear-gradient(115deg, #183d53, #0f6e68); }
.portal-hero h2 { margin: 0; font-size: 22px; }
.portal-hero p { margin: 7px 0 0; color: #cde0e5; font-size: 10px; }
.completeness-ring { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) 86%, rgba(255,255,255,.15) 0); position: relative; }
.completeness-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #19504f; }
.completeness-ring div { position: relative; z-index: 1; text-align: center; }
.completeness-ring strong, .completeness-ring small { display: block; }
.completeness-ring strong { font-size: 18px; }
.completeness-ring small { color: #cde0e5; font-size: 7px; }
.portal-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 14px; margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field label { display: block; margin-bottom: 5px; color: #607787; font-size: 8px; font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; outline: none; color: var(--ink); background: #fff; font-size: 9px; }
.form-field textarea { min-height: 80px; resize: vertical; }
.form-field.full { grid-column: 1 / -1; }
.pending-change { padding: 11px; border: 1px solid #f0d9aa; border-radius: 9px; background: #fff8e9; }
.pending-change strong, .pending-change small { display: block; }
.pending-change strong { color: #775514; font-size: 9px; }
.pending-change small { margin-top: 3px; color: #8b7448; font-size: 7px; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(4,18,28,.45); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; z-index: 51; width: min(520px, 94vw); height: 100vh; overflow-y: auto; padding: 24px; background: #fff; box-shadow: var(--shadow-lg); animation: slide-in .2s ease-out; }
@keyframes slide-in { from { transform: translateX(35px); opacity: .5; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.drawer-close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.drawer-close span { width: 15px; }
.drawer-section { padding: 17px 0; border-bottom: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 10px; font-size: 11px; }
.provenance-item { display: flex; gap: 9px; margin: 8px 0; padding: 10px; border-radius: 8px; background: #f7fafb; }
.provenance-item > span { width: 17px; color: var(--blue); }
.provenance-item strong, .provenance-item small { display: block; }
.provenance-item strong { font-size: 9px; }
.provenance-item small { margin-top: 2px; color: var(--muted); font-size: 7px; }

.modal-backdrop { display: grid; place-items: center; padding: 20px; }
.modal { width: min(650px, 96vw); max-height: 90vh; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.modal-body { padding: 20px; }
.tour-step { display: grid; grid-template-columns: 42px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.tour-step:last-child { border-bottom: 0; }
.tour-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--teal); font-size: 10px; font-weight: 800; }
.tour-step strong, .tour-step small { display: block; }
.tour-step strong { font-size: 10px; }
.tour-step small { margin-top: 3px; color: var(--muted); font-size: 8px; }

#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 270px; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid #b8ddd8; border-radius: 10px; color: #315c57; background: #effaf8; box-shadow: var(--shadow-lg); font-size: 9px; animation: toast-in .2s ease-out; }
.toast > span { width: 16px; color: var(--teal); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.empty-state { min-height: 260px; display: grid; place-items: center; padding: 40px; text-align: center; }
.empty-state span { width: 42px; display: block; margin: 0 auto 10px; color: #9caeb8; }
.empty-state h3 { margin: 0; font-size: 13px; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }

.screen-coverage { margin: -8px 0 16px; border: 1px solid #d9e6eb; border-radius: 10px; background: #f8fbfc; }
.screen-coverage summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #456172; font-size: 9px; font-weight: 800; cursor: pointer; list-style: none; }
.screen-coverage summary::-webkit-details-marker { display: none; }
.screen-coverage summary > span:first-child { width: 15px; color: var(--teal); }
.coverage-count { margin-left: auto; padding: 2px 6px; border-radius: 7px; color: var(--teal-dark); background: var(--teal-soft); font-size: 8px; }
.coverage-chip-list { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 11px; }
.requirement-chip { padding: 4px 7px; border: 1px solid #cbdce3; border-radius: 6px; color: #3f6072; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.requirement-chip:hover { color: var(--teal-dark); border-color: #99d4cc; background: var(--teal-soft); }

.coverage-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 15px; }
.coverage-summary-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.coverage-summary-card small, .coverage-summary-card strong { display: block; }
.coverage-summary-card small { color: var(--muted); font-size: 8px; font-weight: 800; }
.coverage-summary-card strong { margin: 7px 0 2px; color: var(--navy-900); font-size: 24px; }
.coverage-summary-card em { color: var(--muted); font-size: 8px; font-style: normal; }
.coverage-summary-card.demo strong { color: var(--green); }
.coverage-summary-card.partial strong { color: var(--amber); }
.coverage-summary-card.design strong { color: var(--blue); }
.feature-legend { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #5e7482; font-size: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.demo { background: var(--green); }
.legend-dot.partial { background: var(--amber); }
.legend-dot.design { background: var(--blue); }
.feature-group { margin-bottom: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.feature-group summary { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 15px; cursor: pointer; list-style: none; }
.feature-group summary::-webkit-details-marker { display: none; }
.feature-group summary > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.feature-group summary > span:first-child svg { width: 14px; }
.feature-group summary strong, .feature-group summary small { display: block; }
.feature-group summary strong { color: var(--navy-900); font-size: 11px; }
.feature-group summary small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.group-score { margin-left: auto; color: var(--teal-dark); font-size: 9px; font-weight: 800; }
.feature-table { width: 100%; border-collapse: collapse; }
.feature-table th { padding: 8px 12px; color: #778996; background: #f7f9fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 7px; text-align: left; text-transform: uppercase; }
.feature-table td { padding: 10px 12px; border-bottom: 1px solid #edf1f3; color: #496172; font-size: 8px; vertical-align: middle; }
.feature-table tr:last-child td { border-bottom: 0; }
.feature-id { color: var(--navy-800); font-weight: 900; white-space: nowrap; }
.feature-name strong, .feature-name small { display: block; }
.feature-name strong { color: #294558; font-size: 9px; }
.feature-name small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.feature-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: 7px; font-weight: 850; white-space: nowrap; }
.feature-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.feature-status.demo { color: var(--green); background: var(--green-soft); }
.feature-status.partial { color: var(--amber); background: var(--amber-soft); }
.feature-status.design { color: var(--blue); background: var(--blue-soft); }
.feature-location { display: inline-flex; align-items: center; gap: 5px; }
.feature-location span { width: 12px; color: var(--teal); }
.open-feature { min-width: 78px; padding: 5px 8px; border: 1px solid #cad9e0; border-radius: 6px; color: var(--teal-dark); background: #fff; font-size: 7px; font-weight: 850; cursor: pointer; }
.open-feature:hover { border-color: var(--teal); background: var(--teal-soft); }
.feature-focus-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #95d1c9; border-radius: 10px; color: #335f5a; background: #ecf9f7; box-shadow: 0 0 0 3px rgba(11,148,136,.06); }
.feature-focus-banner > span { width: 20px; flex: 0 0 auto; color: var(--teal); }
.feature-focus-banner strong, .feature-focus-banner small { display: block; }
.feature-focus-banner strong { font-size: 9px; }
.feature-focus-banner small { margin-top: 2px; font-size: 8px; }
.feature-focus-banner button { margin-left: auto; border: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-size: 8px; font-weight: 800; }

.assurance-notice { display: flex; gap: 10px; margin-bottom: 15px; padding: 13px 15px; border: 1px solid #b9cfea; border-radius: 11px; color: #345674; background: #eef4fc; font-size: 9px; }
.assurance-notice > span { width: 19px; flex: 0 0 auto; color: var(--blue); }
.architecture-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.architecture-node { position: relative; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfc; text-align: center; }
.architecture-node:not(:last-child)::after { content: "›"; position: absolute; right: -8px; top: 34px; z-index: 2; color: #879ba7; background: #fff; font-size: 16px; }
.architecture-node span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.architecture-node span svg { width: 15px; }
.architecture-node strong { font-size: 8px; }
.architecture-node small { color: var(--muted); font-size: 7px; }
.assurance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 14px; }
.control-list { display: grid; gap: 7px; }
.control-item { display: flex; align-items: flex-start; gap: 8px; padding: 9px; border: 1px solid #e4eaee; border-radius: 8px; background: #fafcfd; }
.control-item > span { width: 15px; flex: 0 0 auto; color: var(--teal); }
.control-item strong, .control-item small { display: block; }
.control-item strong { color: #334f62; font-size: 8px; }
.control-item small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.delivery-timeline { display: grid; gap: 0; }
.timeline-row { display: grid; grid-template-columns: 86px 14px 1fr; gap: 8px; min-height: 53px; }
.timeline-row time { color: var(--teal-dark); font-size: 8px; font-weight: 850; }
.timeline-line { position: relative; }
.timeline-line::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 1px; background: #bfd1d9; }
.timeline-row:last-child .timeline-line::before { display: none; }
.timeline-line::after { content: ""; position: absolute; left: 2px; top: 5px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.timeline-row strong, .timeline-row small { display: block; }
.timeline-row strong { color: #345064; font-size: 8px; }
.timeline-row small { margin-top: 2px; color: var(--muted); font-size: 7px; }

@media (max-width: 1180px) {
  .company-grid, .opportunity-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .pipeline { grid-template-columns: repeat(4,1fr); }
  .pipeline-step:nth-child(4)::after { display: none; }
  .profile-button div, .profile-button > span:last-child { display: none; }
  .global-search { width: min(36vw, 330px); }
  .architecture-flow { grid-template-columns: repeat(3, 1fr); }
  .architecture-node:nth-child(3)::after { display: none; }
}

@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(4,18,28,.45); }
  .main-column { margin-left: 0; }
  .menu-button { display: grid; }
  .dashboard-grid, .matching-layout, .source-layout, .review-layout, .split-grid, .portal-grid { grid-template-columns: 1fr; }
  .assurance-grid { grid-template-columns: 1fr; }
  .control-panel { position: static; }
  .global-search { display: none; }
}

@media (max-width: 650px) {
  .topbar { height: 64px; padding: 0 14px; }
  .page-heading small { display: none; }
  .page-heading h1 { font-size: 17px; }
  .demo-banner { padding: 7px 14px; }
  .demo-banner span { display: none; }
  #app-content { padding: 18px 14px 40px; }
  .metric-grid, .company-grid, .opportunity-grid, .admin-grid, .quality-grid, .form-grid { grid-template-columns: 1fr; }
  .coverage-summary { grid-template-columns: repeat(2, 1fr); }
  .content-header { align-items: flex-start; flex-direction: column; }
  .pipeline { grid-template-columns: repeat(2,1fr); }
  .pipeline-step:nth-child(2n)::after { display: none; }
  .reason-list, .change-comparison, .review-evidence { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 58px minmax(0,1fr); }
  .match-content { padding: 12px; }
  .evidence-row { align-items: flex-start; flex-direction: column; }
  .profile-button { display: none; }
  .feature-table th:nth-child(4), .feature-table td:nth-child(4) { display: none; }
  .architecture-flow { grid-template-columns: repeat(2, 1fr); }
  .architecture-node:nth-child(2n)::after { display: none; }
}

/* Product-quality legibility and interaction pass */
body { font-size: 15px; }
.nav-item { min-height: 46px; font-size: 13px; }
.workspace-label, .page-heading small, .demo-banner, .demo-banner strong, .banner-button,
.language-toggle span, .profile-button strong { font-size: 11px; }
.nav-pill, .optional-label, .status-row small, .profile-button small { font-size: 10px; }
.status-row strong { font-size: 12px; }
.page-heading h1 { font-size: 22px; }
.global-search input { font-size: 13px; }
.content-header { margin-bottom: 18px; }
.content-header h2 { font-size: 28px; }
.content-header p, .hero p { font-size: 14px; line-height: 1.6; }
.primary-button, .secondary-button, .ghost-button, .danger-button { min-height: 40px; padding: 9px 14px; font-size: 12px; }
.card-header h3, .company-head h3 { font-size: 15px; }
.card-header p, .company-head small, .result-count, .metric-label, .metric-meta,
.quality-stat small, .activity-item small, .source-item small, .company-description,
.detail-row, .field-group label, .field-label, .selected-subject small,
.results-head p, .form-field label, .pending-change small { font-size: 11px; }
.activity-item strong, .source-item strong, .card-link, .selected-subject strong,
.field-group select, .search-field input, .select-field, .form-field input,
.form-field textarea, .pending-change strong { font-size: 12px; }
.company-description { line-height: 1.55; }
.tag, .opportunity-type, .confidence, .source-chip, .status-badge, .row-action { font-size: 10px; }
.company-meta span, .weight-head, .matching-note, .score-panel small,
.match-title-row p, .reason, .pipeline-step strong, .review-item small,
.review-item em, .change-box small, .review-evidence span, .ops-card small,
.audit-item small, .audit-item time, .completeness-ring small { font-size: 10px; }
.company-meta strong, .match-title-row h4, .data-table td, .table-primary strong,
.review-item strong, .change-box strong, .review-evidence strong, .audit-item strong { font-size: 12px; }
.data-table th, .table-primary small { font-size: 10px; }
.quality-note, .assurance-notice { font-size: 11px; line-height: 1.55; }
.drawer-head p, .drawer-section h3, .provenance-item strong, .modal-head p { font-size: 12px; }
.provenance-item small, .tour-step small { font-size: 11px; }
.modal-head h2 { font-size: 21px; }
.tour-step strong, .empty-state p { font-size: 12px; }
.empty-state h3 { font-size: 17px; }
.screen-coverage summary, .feature-legend, .feature-focus-banner strong,
.assurance-notice, .group-score { font-size: 11px; }
.coverage-count, .requirement-chip, .coverage-summary-card small,
.coverage-summary-card em, .feature-group summary small, .feature-focus-banner small,
.feature-focus-banner button { font-size: 10px; }
.feature-group summary strong { font-size: 13px; }
.feature-table th, .feature-status, .open-feature { font-size: 10px; }
.feature-table td, .feature-name strong { font-size: 11px; }
.feature-name small { font-size: 10px; line-height: 1.45; }
.architecture-node strong, .control-item strong, .timeline-row time,
.timeline-row strong { font-size: 11px; }
.architecture-node small, .control-item small, .timeline-row small { font-size: 10px; line-height: 1.45; }

.page-guide {
  position: relative;
  margin: 0 0 16px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #cfe1e5;
  border-radius: 14px;
  background: linear-gradient(120deg, #ffffff 0%, #f3faf9 100%);
  box-shadow: 0 8px 24px rgba(8, 28, 45, .05);
}
.page-guide::after { content: ""; position: absolute; width: 160px; height: 160px; right: -90px; top: -105px; border-radius: 50%; background: rgba(11,148,136,.08); }
.page-guide-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.page-guide-head > span { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; padding: 7px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--teal), #0c6f83); box-shadow: 0 6px 14px rgba(11,148,136,.2); }
.page-guide-head strong, .page-guide-head small, .page-guide-step strong, .page-guide-step small { display: block; }
.page-guide-head strong { color: var(--navy-900); font-size: 14px; }
.page-guide-head small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.page-guide-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.page-guide-step { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; padding: 11px; border: 1px solid #e0e9ed; border-radius: 10px; background: rgba(255,255,255,.86); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.page-guide-step:hover { transform: translateY(-2px); border-color: #a9d4d0; box-shadow: var(--shadow-sm); }
.page-guide-step b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.page-guide-step strong { color: #29485b; font-size: 12px; }
.page-guide-step small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.company-card, .opportunity-card, .metric-card, .card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.company-card:hover, .opportunity-card:hover { transform: translateY(-3px); border-color: #bdd6dc; box-shadow: 0 14px 30px rgba(8,28,45,.09); }
.filter-active { color: var(--teal-dark); border-color: #8bc9c1; background: var(--teal-soft); }
.company-empty .empty-state .primary-button { margin-top: 16px; }
.select-field.wide { width: 100%; }
.compact-modal { width: min(520px, 96vw); }
.modal-actions { margin-top: 20px; }

.tour-intro { width: min(760px, 96vw); }
.tour-intro-visual { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #c8e0dd; border-radius: 12px; color: #315463; background: linear-gradient(120deg, #eef9f7, #f8fbfc); }
.tour-intro-visual > span { width: 38px; height: 38px; flex: 0 0 auto; padding: 9px; border-radius: 11px; color: #fff; background: var(--teal); }
.tour-intro-visual strong, .tour-intro-visual small { display: block; }
.tour-intro-visual strong { font-size: 14px; }
.tour-intro-visual small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.tour-route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.tour-route span { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: #486273; font-size: 11px; }
.tour-route b { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; }
.tour-popover { position: fixed; z-index: 100; right: 24px; bottom: 24px; width: min(430px, calc(100vw - 32px)); padding: 20px; border: 1px solid #9ecfc8; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(4,18,28,.28); animation: tour-pop-in .3s cubic-bezier(.2,.75,.2,1); }
.tour-progress { display: flex; align-items: center; justify-content: space-between; color: var(--teal-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tour-progress-track { height: 4px; margin: 9px 0 17px; overflow: hidden; border-radius: 4px; background: #e7eef1; }
.tour-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--lime)); transition: width .3s ease; }
.tour-popover h2 { margin: 0; color: var(--navy-900); font-size: 21px; }
.tour-popover p { margin: 7px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.tour-popover-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.tour-highlight { position: relative; z-index: 40; border-radius: 16px; box-shadow: 0 0 0 5px rgba(182,217,54,.9), 0 18px 60px rgba(8,28,45,.2) !important; animation: tour-pulse 1.8s ease-in-out infinite; }
@keyframes tour-pop-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes tour-pulse { 50% { box-shadow: 0 0 0 9px rgba(182,217,54,.35), 0 18px 60px rgba(8,28,45,.2); } }

@media (max-width: 760px) {
  .page-guide-steps { grid-template-columns: 1fr; }
  .tour-route { grid-template-columns: repeat(2, 1fr); }
  .tour-popover { right: 16px; bottom: 16px; }
  .tour-popover-actions { grid-template-columns: auto 1fr auto; }
  .tour-popover-actions .secondary-button { grid-column: 1 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Connected evaluator proof scenario */
.proof-nav .nav-pill { color: #102b35; border-color: var(--lime); background: var(--lime); }
.secondary-button.on-dark { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.secondary-button.on-dark:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.16); }
.proof-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 230px; gap: 30px; align-items: center; min-height: 285px; padding: 34px 38px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 86% 28%, rgba(182,217,54,.16), transparent 28%), linear-gradient(125deg, #09263a, #0d4a58 62%, #0a756c); box-shadow: var(--shadow-sm); }
.proof-hero::after { content: ""; position: absolute; width: 310px; height: 310px; right: -145px; top: -150px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018); }
.proof-hero-copy { position: relative; z-index: 2; }
.proof-hero h2 { max-width: 720px; margin: 0; font-size: clamp(27px, 3vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.proof-hero p { max-width: 780px; margin: 14px 0 22px; color: #cde0e5; font-size: 14px; line-height: 1.6; }
.proof-run { color: #17361c; border-color: var(--lime); background: var(--lime); box-shadow: 0 8px 22px rgba(182,217,54,.2); }
.proof-run:hover { background: #c7e84d; }
.proof-reset { color: #d7e7eb; background: rgba(255,255,255,.08); }
.proof-hero button:disabled { opacity: .58; cursor: default; }
.proof-score { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; color: #d8e8eb; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.proof-score-ring { --proof-progress: 0%; width: 150px; height: 150px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(circle closest-side, #0b4d58 82%, transparent 83% 99%), conic-gradient(var(--lime) var(--proof-progress), rgba(255,255,255,.14) 0); box-shadow: inset 0 0 30px rgba(0,0,0,.12), 0 14px 40px rgba(0,0,0,.16); }
.proof-score-ring strong { font-size: 31px; line-height: 1; }
.proof-score-ring small { margin-top: 7px; color: #c7dde1; font-size: 9px; }
.proof-stage-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 16px 0; }
.proof-stage { position: relative; min-height: 135px; display: flex; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.proof-stage.complete { border-color: #a9d7c0; background: linear-gradient(145deg, #fff, #f0faf4); }
.proof-stage.current { border-color: #adcbd1; box-shadow: 0 0 0 3px rgba(11,148,136,.08), var(--shadow-sm); }
.proof-stage.waiting { opacity: .67; }
.proof-stage-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.proof-stage-top > span { width: 29px; height: 29px; padding: 7px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); }
.proof-stage.complete .proof-stage-top > span { color: #fff; background: var(--green); }
.proof-stage-top b { color: #9aabb5; font-size: 11px; }
.proof-stage > strong { color: var(--navy-900); font-size: 12px; }
.proof-stage > small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.proof-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 10px; color: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.proof-verified i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(34,135,90,.1); }
.proof-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); gap: 14px; }
.proof-artifact .card-body { min-height: 250px; display: flex; flex-direction: column; justify-content: center; }
.proof-input-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.proof-input-preview > div, .proof-code-block, .entity-candidate { padding: 13px; border: 1px solid #e1e9ed; border-radius: 10px; background: #f9fbfc; }
.proof-input-preview small, .proof-input-preview strong { display: block; }
.proof-input-preview small, .proof-code-block span, .entity-candidate small, .proof-match-result small, .proof-complete-grid small { color: var(--muted); font-size: 10px; }
.proof-input-preview strong { margin-top: 4px; color: #29475a; font-size: 12px; }
.proof-code-block { display: grid; grid-template-columns: 110px 1fr; gap: 9px 15px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.proof-code-block span { color: #718796; }
.proof-code-block strong { color: #24465a; font-size: 11px; }
.entity-resolution { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 12px; align-items: center; }
.entity-candidate strong, .entity-candidate span { display: block; }
.entity-candidate strong { margin-top: 5px; color: #29475a; font-size: 12px; }
.entity-candidate span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.entity-candidate.proposed { border-color: #a8d6cf; background: var(--teal-soft); }
.resolution-score { display: grid; justify-items: center; gap: 4px; text-align: center; }
.resolution-score > strong { color: var(--navy-900); font-size: 28px; }
.resolution-score > small { color: var(--muted); font-size: 9px; }
.proof-factor-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.proof-factor-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: #4b6575; background: #fff; font-size: 10px; }
.proof-factor-list i { width: 7px; height: 7px; border-radius: 50%; }
.proof-factor-list .positive { background: var(--green); }
.proof-factor-list .warning { background: var(--amber); }
.proof-published { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid #a9d7c0; border-radius: 13px; background: var(--green-soft); }
.proof-published > span { width: 48px; height: 48px; flex: 0 0 auto; padding: 11px; border-radius: 50%; color: #fff; background: var(--green); }
.proof-published small, .proof-published strong { display: block; }
.proof-published small { color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.proof-published strong { margin-top: 4px; color: #214b39; font-size: 17px; }
.proof-published p { margin: 6px 0 0; color: #527060; font-size: 11px; }
.proof-match-result { display: grid; grid-template-columns: 78px 1fr; gap: 17px; align-items: center; }
.proof-match-result .score-ring { width: 72px; height: 72px; }
.proof-match-result > div > strong { display: block; margin: 4px 0 11px; color: var(--navy-900); font-size: 17px; }
.proof-complete { text-align: center; }
.proof-complete > span { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto; padding: 12px; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 9px 22px rgba(34,135,90,.2); }
.proof-complete h3 { margin: 12px 0 4px; color: var(--navy-900); font-size: 19px; }
.proof-complete p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 11px; }
.proof-complete-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 17px; }
.proof-complete-grid > div { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfc; }
.proof-complete-grid strong { display: block; margin-top: 3px; color: var(--teal-dark); font-size: 17px; }
.proof-ledger .card-body { max-height: 330px; overflow-y: auto; }
.proof-ledger-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid #e8eef1; }
.proof-ledger-row:last-child { border-bottom: 0; }
.proof-ledger-row strong, .proof-ledger-row small { display: block; }
.proof-ledger-row strong { color: #355164; font-size: 11px; }
.proof-ledger-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.proof-ledger-empty { display: grid; justify-items: center; gap: 7px; padding: 36px 10px; text-align: center; }
.proof-ledger-empty > span { width: 40px; color: #9eb0b9; }
.proof-ledger-empty strong { color: #476172; font-size: 12px; }
.proof-ledger-empty small { max-width: 260px; color: var(--muted); font-size: 10px; }
.proof-disclaimer { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 13px 15px; border: 1px solid #b9cfea; border-radius: 11px; color: #345674; background: #eef4fc; font-size: 11px; line-height: 1.5; }
.proof-disclaimer > span { width: 20px; flex: 0 0 auto; color: var(--blue); }
.proof-disclaimer > div { flex: 1; }

@media (max-width: 1180px) {
  .proof-stage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .proof-hero { grid-template-columns: 1fr; }
  .proof-score { display: none; }
  .proof-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .proof-hero { padding: 26px 22px; }
  .proof-stage-grid { grid-template-columns: repeat(2, 1fr); }
  .entity-resolution { grid-template-columns: 1fr; }
  .proof-input-preview, .proof-complete-grid { grid-template-columns: 1fr; }
  .proof-disclaimer { align-items: flex-start; flex-wrap: wrap; }
}

/* Restrained evaluator theme: conventional enterprise UI with feature-first hierarchy. */
:root {
  --navy-950: #102b3c;
  --navy-900: #173548;
  --navy-800: #244b63;
  --ink: #263b49;
  --muted: #647480;
  --line: #d3dce2;
  --canvas: #eef2f5;
  --teal: #176f60;
  --teal-dark: #12594e;
  --teal-soft: #e8f2ef;
  --lime: #789a43;
  --shadow-sm: 0 1px 2px rgba(18, 41, 55, .06);
  --shadow-lg: 0 8px 28px rgba(18, 41, 55, .18);
  --radius: 5px;
  --sidebar: 238px;
}

body { font-family: Arial, "Segoe UI", sans-serif; background: var(--canvas); }
.sidebar { padding: 19px 12px 16px; background: #153448; }
.brand { padding: 0 9px 21px; }
.brand-mark, .nav-item, .status-row, .icon-button, .language-toggle,
.profile-button, .global-search { border-radius: 4px; }
.brand-mark { background: #21475e; }
.nav-item { min-height: 40px; border-left: 3px solid transparent; transition: background .12s ease, color .12s ease; }
.nav-item.active { border-left-color: #9ab467; color: #fff; background: #244b63; box-shadow: none; }
.nav-item:hover { background: #1e4258; }
.nav-pill, .nav-count, .optional-label { border-radius: 3px; }
.status-row { background: #102c3d; }

.topbar { height: 68px; padding: 0 24px; border-bottom-color: #cbd6dd; background: #fff; backdrop-filter: none; }
.page-heading h1 { font-size: 19px; }
.page-heading small { color: #526b7a; letter-spacing: .09em; }
.utility-button { min-height: 34px; padding: 7px 10px; border: 1px solid #c8d3da; border-radius: 4px; color: #304b5c; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.utility-button:hover { border-color: #8fa4b1; background: #f4f7f9; }
.utility-button.feature-checklist-button { color: #fff; border-color: var(--navy-800); background: var(--navy-800); }
.global-search { background: #fff; }
.profile-button > span:first-child { border-radius: 3px; background: var(--navy-800); }

.demo-banner { min-height: 34px; justify-content: flex-start; padding: 6px 24px; color: #53646f; border-bottom: 1px solid #d5dde2; background: #f7f9fa; }
.demo-banner strong { color: #354b59; }
#app-content { max-width: 1420px; padding: 24px 24px 48px; }
.content-header { margin-bottom: 16px; }
.content-header h2 { font-size: 23px; letter-spacing: -.01em; }
.screen-coverage { margin: 0 0 16px; border-radius: 4px; box-shadow: none; }

.primary-button, .secondary-button, .ghost-button, .danger-button,
.row-action, .open-feature, .banner-button { border-radius: 4px; box-shadow: none; }
.primary-button { background: var(--teal); }
.card, .metric-card, .company-card, .opportunity-card, .feature-group,
.coverage-summary-card, .ops-card { border-radius: 5px; box-shadow: var(--shadow-sm); }
.company-card, .opportunity-card, .metric-card, .card { transition: border-color .12s ease; }
.company-card:hover, .opportunity-card:hover, .page-guide-step:hover { transform: none; border-color: #9fb1bc; box-shadow: var(--shadow-sm); }
.metric-card::after, .proof-hero::after, .page-guide::after { display: none; }

.eyebrow { color: var(--teal-dark); }
.eyebrow::before { background: var(--teal); }
.hero .secondary-button, .secondary-button.on-dark { color: var(--navy-800); border-color: #c9d4db; background: #fff; }
.hero .secondary-button:hover, .secondary-button.on-dark:hover { border-color: #91a6b3; background: #f6f8f9; }
.metric-card { min-height: 103px; }
.quality-stat { border-radius: 4px; background: #f8fafb; }
.progress, .progress span { border-radius: 2px; }
.opportunity-top, .opportunity-top.learning { background: var(--navy-800); }
.company-logo, .activity-icon, .metric-icon, .tag, .tabs, .tab-button,
.status-badge, .source-chip, .confidence { border-radius: 3px; }

.proof-hero { min-height: auto; padding: 26px 29px; border: 1px solid #cad6dd; border-left: 5px solid var(--navy-800); border-radius: 5px; color: var(--ink); background: #fff; }
.proof-hero h2 { color: var(--navy-900); font-size: clamp(25px, 3vw, 35px); }
.proof-hero p { color: var(--muted); }
.proof-score { color: #516774; }
.proof-score-ring { color: #fff; border-radius: 50%; background: radial-gradient(circle closest-side, var(--navy-800) 81%, transparent 82% 99%), conic-gradient(var(--teal) var(--proof-progress), #d9e1e6 0); box-shadow: none; }
.proof-score-ring small { color: #dbe6eb; }
.proof-run { color: #fff; border-color: var(--teal); background: var(--teal); box-shadow: none; }
.proof-reset { color: var(--navy-800); border: 1px solid #c9d4db; background: #fff; }
.proof-stage, .proof-input-preview > div, .proof-code-block, .entity-candidate,
.proof-published, .proof-complete-grid > div, .proof-disclaimer { border-radius: 4px; box-shadow: none; }

.portal-hero { border-radius: 5px; background: var(--navy-800); box-shadow: none; }
.architecture-node, .control-item, .pipeline-step, .dropzone,
.change-box, .pending-change { border-radius: 4px; }
.assurance-notice { border-radius: 4px; }

/* Feature-first guided tour. The spotlight is positioned over the exact DOM target. */
.tour-spotlight {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  border: 3px solid #d7a11f;
  border-radius: 4px;
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 0 0 9999px rgba(8, 24, 34, .48);
}
.tour-spotlight::before {
  content: attr(data-label);
  position: absolute;
  left: -3px;
  bottom: calc(100% + 7px);
  max-width: 320px;
  padding: 5px 8px;
  border-radius: 3px;
  color: #fff;
  background: #9a6b00;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-popover {
  position: fixed;
  z-index: 90;
  bottom: auto;
  width: min(390px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid #aebcc5;
  border-top: 4px solid var(--navy-800);
  border-radius: 5px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: none;
}
.tour-popover-left { left: 20px; right: auto; }
.tour-popover-right { right: 20px; left: auto; }
.tour-progress { color: #526c7c; letter-spacing: .04em; }
.tour-progress-track { height: 3px; margin: 8px 0 15px; border-radius: 0; }
.tour-progress-track i { border-radius: 0; background: var(--teal); }
.tour-popover h2 { font-size: 20px; }
.tour-popover p { margin-bottom: 13px; }
.tour-location { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 10px; border: 1px solid #e2d2a6; border-radius: 3px; color: #66552f; background: #fffaf0; font-size: 11px; }
.tour-location span { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid #d7a11f; }
.tour-popover-actions { grid-template-columns: auto 1fr auto auto; }
.tour-highlight { box-shadow: none !important; animation: none; }

@media (max-width: 1180px) {
  .utility-button.feature-checklist-button { display: none; }
}
@media (max-width: 760px) {
  .utility-button { padding: 6px 8px; font-size: 10px; }
  .tour-popover, .tour-popover-left, .tour-popover-right { left: 16px; right: 16px; top: auto !important; bottom: 16px; width: auto; }
  .tour-spotlight::before { display: none; }
  .tour-popover-actions { grid-template-columns: auto 1fr auto; }
}


/* ============================================================
   Simplified classic shell — evidence bar, build footer,
   compact tables. Keeps the product chrome free of tender
   scaffolding so the demonstrator reads as a working system.
   ============================================================ */

.build-row { padding: 9px 10px; border: 1px solid #244b63; border-radius: 3px; background: #102c3d; }
.build-row span { display: block; color: #cfe0e8; font-size: 10px; font-weight: 700; }
.build-row small { display: block; margin-top: 2px; color: #7d9cad; font-size: 9px; }

.demo-banner { flex-wrap: wrap; row-gap: 4px; }
.demo-banner-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.evidence-bar { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.evidence-label { margin-right: 2px; color: #6a7a85; font-size: 10px; font-weight: 700; }
.evidence-link { padding: 3px 8px; border: 1px solid #c8d3da; border-radius: 3px; color: #2d4859; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.evidence-link:hover { border-color: #8fa4b1; background: #eef3f6; }
.evidence-link em { margin-left: 3px; padding: 0 3px; border-radius: 2px; color: #fff; background: var(--navy-800); font-size: 9px; font-style: normal; }

.data-table.compact th { padding: 7px 12px; }
.data-table.compact td { padding: 8px 12px; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table.compact .source-health { display: inline-block; margin: 0 7px 0 0; vertical-align: middle; }
.card > .data-table { border-top: 0; }

.content-header .header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .evidence-bar { width: 100%; margin-left: 0; }
}

/* Requirement coverage is evaluation scaffolding, not product chrome:
   keep it available on every screen but demote it to a page footnote. */
.screen-coverage { margin: 26px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.screen-coverage summary { padding: 9px 0; color: #6a7a85; font-size: 10px; font-weight: 700; }
.screen-coverage summary span[data-icon] { width: 13px; }
.screen-coverage .coverage-chip-list { padding: 2px 0 10px; }
.screen-coverage .coverage-count { color: #6a7a85; background: transparent; }
.screen-coverage summary > span:first-child { color: #8fa3ae; }

/* The proof panel is a control surface, not a landing page. */
.proof-hero { min-height: 0; padding: 20px 24px; gap: 20px; }
.proof-hero h2 { font-size: 17px !important; letter-spacing: 0; }
.proof-hero p { margin: 6px 0 16px; font-size: 12px; }

/* ------------------------------------------------------------------
   "You are here" strip for the proof scenario. The scenario used to
   emit only reference numbers; this states in plain words what the
   last step did, why it matters and what happens next.
   ------------------------------------------------------------------ */
.proof-status { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: start; margin: 14px 0; padding: 15px 18px; border: 1px solid #cad6dd; border-left: 4px solid var(--navy-800); border-radius: 4px; background: #fff; }
.proof-status.done { border-left-color: var(--teal); background: #f7fbfa; }
.proof-status-marker { display: grid; justify-items: center; gap: 5px; padding-top: 2px; }
.proof-status-marker span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #8fa4b1; }
.proof-status.done .proof-status-marker span { background: var(--teal); }
.proof-status-marker b { color: var(--navy-900); font-size: 13px; letter-spacing: -.01em; }
.proof-status-body > strong { display: block; color: var(--navy-900); font-size: 13px; }
.proof-status-body p { margin: 5px 0 0; color: #44596a; font-size: 12px; line-height: 1.5; }
.proof-status-why, .proof-status-next { display: flex; align-items: flex-start; gap: 7px; }
.proof-status-why span, .proof-status-next span { width: 13px; flex: 0 0 auto; margin-top: 3px; }
.proof-status-why { color: #4c6b5f !important; }
.proof-status-why span { color: var(--teal); }
.proof-status-next { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #d6e0e6; color: #5c6f7c !important; font-weight: 700; }
.proof-status-next span { color: #8fa4b1; }

@media (max-width: 760px) {
  .proof-status { grid-template-columns: 1fr; gap: 10px; }
  .proof-status-marker { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 9px; align-items: center; }
}

/* ------------------------------------------------------------------
   Orientation panel. A first-time visitor lands on Overview with no
   idea what the demonstrator is or where to start; this states both
   and offers three explicit entry points.
   ------------------------------------------------------------------ */
.orientation { margin-bottom: 18px; border: 1px solid #cad6dd; border-left: 4px solid var(--navy-800); border-radius: 4px; background: #fff; }
.orientation-head { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px 12px; }
.orientation-head strong { display: block; color: var(--navy-900); font-size: 14px; }
.orientation-head p { max-width: 80ch; margin: 5px 0 0; color: #44596a; font-size: 12px; line-height: 1.5; }
#hide-orientation { margin-left: auto; padding: 5px 10px; border: 1px solid #c8d3da; border-radius: 3px; color: #4a6072; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
#hide-orientation:hover { border-color: #8fa4b1; background: #f2f6f8; }

.orientation-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 18px 14px; }
.orientation-route { position: relative; display: block; padding: 14px 14px 12px; border: 1px solid #d5dfe5; border-radius: 4px; background: #fafcfd; text-align: left; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.orientation-route:hover { border-color: var(--teal); background: #f4faf8; }
.orientation-step { position: absolute; top: 12px; right: 12px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #64798a; background: #e7edf1; font-size: 10px; font-weight: 800; }
.orientation-icon { display: block; width: 19px; height: 19px; margin-bottom: 9px; color: var(--teal); }
.orientation-route strong { display: block; padding-right: 24px; color: var(--navy-900); font-size: 12px; }
.orientation-route small { display: block; margin-top: 5px; color: #56697a; font-size: 11px; line-height: 1.5; }
.orientation-route em { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--teal-dark); font-size: 11px; font-style: normal; font-weight: 700; }
.orientation-route em span { width: 12px; }

.orientation-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 18px; border-top: 1px solid #e4ebef; color: #56697a; background: #f7fafb; font-size: 11px; }
.orientation-foot > span[data-icon] { width: 14px; color: #8fa4b1; }
#orientation-tour { padding: 4px 9px; border: 1px solid #c8d3da; border-radius: 3px; color: #2d4859; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
#orientation-tour:hover { border-color: var(--teal); color: var(--teal-dark); }

.orientation-reopen { margin-bottom: 16px; }
#show-orientation { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px dashed #c2cfd7; border-radius: 3px; color: #5c6f7c; background: transparent; font-size: 11px; cursor: pointer; }
#show-orientation:hover { border-color: var(--teal); color: var(--teal-dark); background: #f4faf8; }
#show-orientation span { width: 13px; }

@media (max-width: 980px) { .orientation-routes { grid-template-columns: 1fr; } }
/* Keep the three entry-point calls-to-action on one baseline even when
   their descriptions differ in length. */
.orientation-route { display: flex; flex-direction: column; height: 100%; }
.orientation-route em { margin-top: auto; padding-top: 10px; }

/* Hover/focus must stay in the classic teal, not fall back to the
   base theme's lime (higher specificity beat the flat override). */
.proof-run:hover, .proof-run:focus-visible { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); box-shadow: none; }

/* ------------------------------------------------------------------
   MATCH-05 / MATCH-08: comparison reasons carry a tone (conflict vs
   opportunity vs neutral), and feedback accepts a short written
   reason as the specification asks.
   ------------------------------------------------------------------ */
.reason.positive span[data-icon] { color: var(--green); }
.reason.warning { color: #7a5312; background: var(--amber-soft); border-color: #e8d3a6; }
.reason.warning span[data-icon] { color: var(--amber); }
.reason.neutral span[data-icon] { color: #8fa4b1; }

.feedback-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d6e0e6; }
.feedback-note label { display: block; margin-bottom: 5px; color: #5c6f7c; font-size: 10px; font-weight: 700; }
.feedback-note-row { display: flex; gap: 7px; }
.feedback-note-row input { flex: 1; min-width: 0; height: 32px; padding: 0 9px; border: 1px solid #cbd6dd; border-radius: 3px; color: var(--ink); background: #fff; font-size: 11px; }
.feedback-note-row input:focus { outline: 0; border-color: var(--teal); }
.feedback-note-row .secondary-button { min-height: 32px; padding: 6px 12px; }
.feedback-note-saved { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--green); font-size: 10px; font-weight: 700; }
.feedback-note-saved span { width: 12px; }

/* Section B of the compliance matrix is contractual, not product
   behaviour; it gets its own neutral tone so it can never be mistaken
   for a demonstrated feature. */
.coverage-summary-card.contract strong { color: #4a6072; }
.coverage-summary-card.contract { border-left: 3px solid #8fa4b1; }
.legend-dot.contract, .feature-badge.contract { color: #46596a; background: #e7edf1; }
.legend-dot.contract { background: #8fa4b1; }
.feature-badge.contract { border: 1px solid #d3dde3; }

/* PROF-04 / CHANGE-01 actions live on every company card. */
.company-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.company-actions .card-link { margin-top: 0; margin-right: auto; }
.network-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.network-fields span { display: block; color: var(--muted); font-size: 9px; }
.network-fields strong { display: block; color: var(--ink); font-size: 11px; word-break: break-word; }
.network-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tab-button em { margin-left: 4px; padding: 1px 5px; border-radius: 2px; color: #56697a; background: #e7edf1; font-size: 9px; font-style: normal; font-weight: 800; }
.tab-button.active em { color: #fff; background: rgba(255,255,255,.28); }

.company-actions .row-action { padding: 4px 8px; font-size: 10px; white-space: nowrap; }
@media (max-width: 1240px) { .company-actions { flex-wrap: wrap; } }
