:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --primary: #0e2a57;
  --secondary: #456c9c;
  --accent: #ef1b2d;
  --text: #27364a;
  --muted: #6f7f95;
  --border: #d9e3f0;
  --aerostring-blue-primary: #0E2A57;
  --aerostring-blue-secondary: #456C9C;
  --aerostring-blue-support: #6F8FB4;
  --aerostring-blue-light: #A9BBD3;
  --aerostring-turquoise: #1B9AAA;
  --aerostring-red-primary: #EF1B2D;
  --aerostring-red-soft: #D94B5B;
  --aerostring-red-light: #E9A0A9;
  --aerostring-text-primary: #27364A;
  --aerostring-gray-medium: #6F7F95;
  --aerostring-gray-subtitle: #7E8794;
  --aerostring-gray-support: #AEB8C5;
  --aerostring-border: #D9E3F0;
  --aerostring-technical-background: #F4F7FB;
  --aerostring-shadow: rgba(14, 42, 87, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  flex: 1;
  gap: 14px;
  align-items: center;
}

.nav a {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.logout {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.page-head {
  margin-bottom: 22px;
}

h1,
h2 {
  margin: 0;
  color: var(--primary);
}

h1 {
  font-size: 28px;
}

h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

p {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metrics article,
.panel,
.messages,
.grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
}

.metrics strong {
  display: block;
  color: var(--primary);
  font-size: 28px;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
}

button {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
}

.auth-links a,
.logout a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.action-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 150px;
  padding: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.action-card strong {
  color: var(--primary);
  font-size: 15px;
}

.action-card span,
.job-path {
  color: var(--muted);
  font-size: 12px;
}

.action-card button {
  align-self: end;
}

.job-path {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.job-log {
  max-width: 520px;
  max-height: 260px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  background: #101828;
  color: #f5f7fb;
  font-size: 12px;
  white-space: pre-wrap;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.filters label {
  min-width: 260px;
  margin: 0;
}

.message {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #e8f0fa;
  border-left: 4px solid var(--secondary);
}

.message.error {
  background: #fff1f3;
  border-color: var(--accent);
}

.message.success { background: #e8f7ef; border-color: #16834f; }
.primary-link, .button-link { display: inline-block; padding: 10px 14px; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; }
.eyebrow, .muted { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.target-toolbar { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.target-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.target-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 18px 0; }
.table-scroll { overflow-x: auto; }
.mini-table { font-size: 12px; }
.mini-table th, .mini-table td { padding: 7px 8px; white-space: nowrap; }
.mono { font-family: Consolas, monospace; font-size: 11px; }

.login-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--aerostring-technical-background);
}

.login-panel {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--aerostring-border);
  padding: 32px;
  box-shadow: 0 12px 28px var(--aerostring-shadow);
}

.login-panel h1 {
  margin: 0 0 8px;
  color: var(--aerostring-blue-primary);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.login-brand { margin-bottom: 24px; }

.login-panel > p {
  margin: 0 0 20px;
  line-height: 1.4;
}

/* Shared AeroString → LogiVista lockup. The Login variant keeps the product
   on the same horizontal baseline as the mother brand and places the official
   LogiVista descriptor below the complete lockup. */
.brand-lockup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; color: var(--aerostring-blue-primary); }
.brand-lockup__top-row, .brand-lockup__primary { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-lockup__logo { display: block; flex: 0 1 auto; width: clamp(150px, 18vw, 210px); height: auto; }
.brand-lockup__product-wrap { display: flex; align-items: center; min-width: 0; padding-left: 14px; border-left: 1px solid var(--aerostring-border); }
.brand-lockup__product { display: block; color: var(--aerostring-blue-primary); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: .04em; line-height: 1; }
.brand-lockup__tagline, .brand-lockup__descriptor { display: block; min-width: 0; max-width: 100%; color: var(--aerostring-gray-subtitle); font-size: clamp(10px, .9vw, 12px); line-height: 1.25; }
.brand-lockup--login { width: 100%; gap: 12px; }
.brand-lockup--login .brand-lockup__logo { width: min(190px, 54%); }
.brand-lockup--login .brand-lockup__product-wrap { flex: 1 1 auto; }
.brand-lockup--login .brand-lockup__product { font-size: clamp(23px, 3vw, 28px); }
.brand-lockup--login .brand-lockup__descriptor {
  max-width: 100%;
  color: var(--aerostring-blue-secondary);
  font-size: clamp(13.2px, 1.1vw, 14.5px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}

.narrow-panel {
  max-width: 560px;
}

.target-body { display: flex; min-height: 100vh; flex-direction: column; background: var(--aerostring-technical-background); color: var(--aerostring-text-primary); }
.target-topbar { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.35fr) minmax(145px, max-content); align-items: center; gap: 12px 24px; padding: 12px 28px; background: var(--surface); color: var(--aerostring-text-primary); border-bottom: 1px solid var(--aerostring-border); }
.target-brand { display: block; grid-column: 1; min-width: 0; color: var(--aerostring-blue-primary); text-decoration: none; line-height: 1.05; }
.target-brand .brand-lockup { gap: 5px; }
.target-brand .brand-lockup__tagline { width: 100%; }
.brand-lockup--shell .brand-lockup__logo { width: 150px; }
.brand-lockup--shell .brand-lockup__primary { gap: 10px; }
.brand-lockup--shell .brand-lockup__product-wrap { padding-left: 12px; }
.brand-lockup--shell .brand-lockup__product { font-size: 16px; }
.brand-lockup--shell .brand-lockup__tagline, .brand-lockup--shell .brand-lockup__descriptor { width: 100%; max-width: none; font-size: 10px; white-space: nowrap; }
.target-nav { display: flex; grid-column: 2; justify-self: center; width: 100%; min-width: 0; flex-wrap: wrap; gap: 16px 18px; align-items: center; justify-content: center; }
.target-nav-link, .target-nav-group > summary { color: var(--aerostring-blue-primary); font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.target-nav-link { display: inline-block; padding: 4px 0; white-space: nowrap; }
.target-nav-link:hover, .target-nav-link:focus { color: var(--aerostring-blue-secondary); }
.target-nav-link.is-active { border-bottom: 2px solid var(--aerostring-red-primary); }
.target-nav-link:focus-visible, .target-nav-group > summary:focus-visible { outline: 2px solid var(--aerostring-blue-secondary); outline-offset: 4px; }
.target-nav-group { position: relative; }
.target-nav-group > summary { display: inline-block; padding: 4px 17px 4px 0; cursor: pointer; list-style: none; }
.target-nav-group > summary::-webkit-details-marker { display: none; }
.target-nav-group > summary::after { position: absolute; top: 8px; right: 2px; content: "⌄"; font-size: 11px; line-height: 1; }
.target-nav-group[open] > summary::after { content: "⌃"; }
.target-nav-menu { position: absolute; z-index: 10; top: calc(100% + 5px); left: -10px; display: grid; min-width: 150px; padding: 7px; background: var(--surface); border: 1px solid var(--aerostring-border); box-shadow: 0 5px 14px var(--aerostring-shadow); }
.target-nav-menu-link { display: block; padding: 7px 9px; color: var(--aerostring-blue-primary); font-size: 12px; text-decoration: none; white-space: nowrap; }
.target-nav-menu-link.is-active { background: var(--aerostring-technical-background); font-weight: 700; }
.nav-disabled { cursor: not-allowed; color: var(--aerostring-gray-medium); opacity: .75; }
.target-user-menu { display: grid; grid-column: 3; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "role logout"; justify-self: end; justify-items: end; align-items: center; column-gap: 9px; row-gap: 2px; width: 100%; min-width: 145px; max-width: 100%; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.target-user-role { grid-area: role; color: var(--aerostring-blue-secondary); }
.target-user-name { grid-area: name; font-weight: 700; }
.target-user-menu form { grid-area: logout; margin: 0; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--aerostring-blue-primary); font: inherit; cursor: pointer; text-decoration: underline; }
.target-context-bar { display: flex; flex-wrap: wrap; gap: 22px; padding: 9px 28px; background: var(--surface); border-bottom: 1px solid var(--aerostring-border); color: var(--aerostring-gray-medium); font-size: 11px; }
.target-context-bar strong { color: var(--aerostring-blue-primary); }
.target-flashes { max-width: 1420px; margin: 14px auto 0; padding: 0 28px; }
.target-flash { padding: 12px 14px; border: 1px solid var(--aerostring-border); background: var(--surface); color: var(--aerostring-blue-primary); font-size: 13px; }
.target-flash--error { border-left: 4px solid var(--aerostring-red-primary); color: #8e2222; }
.target-flash--success { border-left: 4px solid var(--aerostring-blue-secondary); }
.target-page { width: 100%; max-width: 1420px; flex: 1 0 auto; margin: 0 auto; padding: 30px 28px 48px; }
.target-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 28px 18px; border-top: 1px solid var(--aerostring-border); background: var(--surface); color: var(--aerostring-text-primary); }
.target-footer__identity { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.target-footer__brand { color: var(--aerostring-blue-primary); font-size: 13px; font-weight: 700; line-height: 1.2; }
.target-footer__descriptor { color: var(--aerostring-gray-subtitle); font-size: 11px; line-height: 1.25; }
.target-footer__copyright { color: var(--aerostring-gray-medium); font-size: 11px; line-height: 1.25; text-align: right; }
.target-page-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.target-page-head > div { min-width: 0; }
.target-page-head > div:first-child { flex: 1 1 auto; }
.target-page-head h1 { margin: 0; font-size: 31px; }
.target-page-head p { max-width: 720px; }
.target-eyebrow { margin: 0 0 8px; color: var(--aerostring-blue-secondary); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.target-contract-chip { flex: 0 1 320px; min-width: 250px; padding: 15px 17px; background: var(--aerostring-technical-background); border-left: 4px solid var(--aerostring-red-primary); }
.target-contract-chip span, .target-contract-chip small { display: block; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-contract-chip strong { display: block; margin: 4px 0; color: var(--aerostring-blue-primary); }
.target-filter-form { display: flex; gap: 14px; align-items: end; }
.target-filter-form label { flex: 1; margin: 0; }
.target-state-row { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 16px; margin-bottom: 18px; }
.state-card, .freshness-card { display: flex; flex-direction: column; gap: 6px; padding: 17px; background: var(--surface); border: 1px solid var(--aerostring-border); border-left: 5px solid var(--aerostring-blue-support); }
.state-card strong, .freshness-card strong { color: var(--aerostring-blue-primary); font-size: 19px; }
.state-card span, .freshness-card span { color: var(--aerostring-gray-medium); font-size: 12px; }
.state-kicker { color: var(--aerostring-blue-secondary) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.state-available { border-left-color: var(--aerostring-blue-secondary); }
.state-stale { border-left-color: var(--aerostring-red-soft); }
.state-processing, .state-pending_acquisition { border-left-color: var(--aerostring-blue-support); }
.state-failed { border-left-color: var(--aerostring-red-primary); }
.state-no_data { border-left-color: var(--aerostring-gray-support); }
.target-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.target-metrics article { min-height: 112px; }
.target-profile-grid { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(350px, 1.2fr); gap: 18px; margin-bottom: 18px; }
.profile-sections { display: grid; gap: 8px; padding-left: 20px; color: var(--aerostring-text-primary); }
.target-definition-list { display: grid; grid-template-columns: minmax(140px, .7fr) 1fr; gap: 9px 18px; margin: 0; font-size: 13px; }
.target-definition-list dt { color: var(--aerostring-gray-medium); }
.target-definition-list dd { margin: 0; overflow-wrap: anywhere; color: var(--aerostring-text-primary); font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.target-state-legend { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 18px; }
.state-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.state-pill { padding: 6px 9px; border: 1px solid var(--aerostring-border); background: var(--aerostring-technical-background); color: var(--aerostring-gray-medium); font-size: 11px; }
.state-pill.state-available { border-color: var(--aerostring-blue-light); color: var(--aerostring-blue-primary); }
.state-pill.state-failed { border-color: var(--aerostring-red-light); color: var(--aerostring-red-primary); }
.state-pill.state-stale { border-color: var(--aerostring-red-light); color: var(--aerostring-red-soft); }
.empty-state { color: var(--aerostring-gray-medium); font-size: 13px; }
.target-evidence-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--aerostring-gray-medium); font-size: 11px; }
.secondary-button { background: var(--aerostring-blue-light); color: var(--aerostring-blue-primary); }
.text-link { color: var(--aerostring-blue-secondary); font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus { text-decoration: underline; }
/* Inicio business clarity surface. These rules are scoped to the page so
   domain pages keep their existing presentation until their own review. */
.target-dashboard-page { display: grid; gap: 18px; }
.target-executive-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.target-executive-head h1 { margin: 0; color: var(--aerostring-blue-primary); font-size: 34px; line-height: 1.1; }
.target-executive-subtitle { max-width: 720px; margin: 8px 0 0; color: var(--aerostring-gray-medium); font-size: 16px; }
.target-analytic-badge { flex: 0 1 280px; min-width: 230px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--aerostring-border); border-left: 4px solid var(--aerostring-blue-secondary); }
.target-analytic-badge span, .target-analytic-badge small { display: block; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-analytic-badge strong { display: block; margin: 4px 0; color: var(--aerostring-blue-primary); font-size: 18px; }
.target-executive-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px 14px; background: var(--surface); border: 1px solid var(--aerostring-border); }
.target-executive-filters label { flex: 0 1 250px; min-width: 180px; margin: 0; color: var(--aerostring-blue-primary); font-size: 12px; }
.target-executive-filters select { min-width: 0; margin-top: 4px; padding: 9px 10px; }
.target-executive-filters button { min-height: 39px; padding: 9px 15px; }
.target-status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 13px 16px; background: var(--surface); border: 1px solid var(--aerostring-border); }
.target-status-indicator { display: flex; gap: 10px; align-items: center; min-width: 0; }
.target-status-indicator > div { display: grid; gap: 2px; min-width: 0; }
.target-status-indicator strong { color: var(--aerostring-blue-primary); font-size: 14px; }
.target-status-indicator span:not(.status-dot), .target-status-cutoff span { color: var(--aerostring-gray-medium); font-size: 12px; }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--aerostring-blue-support); }
.status-dot--fresh, .state-available .status-dot { background: var(--aerostring-blue-secondary); }
.state-stale .status-dot { background: var(--aerostring-red-soft); }
.state-failed .status-dot { background: var(--aerostring-red-primary); }
.state-no_data .status-dot { background: var(--aerostring-gray-support); }
.target-status-cutoff { display: grid; gap: 2px; justify-items: end; }
.target-status-cutoff strong { color: var(--aerostring-blue-primary); font-size: 14px; }
.target-dashboard-page .target-executive-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; }
.target-dashboard-page .target-executive-kpis article { display: flex; min-height: 112px; flex-direction: column; justify-content: center; gap: 5px; padding: 16px; }
.target-dashboard-page .target-executive-kpis article > span { order: 2; color: var(--aerostring-gray-medium); font-size: 12px; }
.target-dashboard-page .target-executive-kpis article > strong { order: 1; color: var(--aerostring-blue-primary); font-size: clamp(22px, 2.4vw, 29px); line-height: 1.05; overflow-wrap: anywhere; }
.target-dashboard-page .target-executive-kpis article > small { order: 3; color: var(--aerostring-gray-medium); font-size: 10px; }
.target-executive-reading { border-left: 4px solid var(--aerostring-blue-secondary); }
.target-basis-note { color: var(--aerostring-gray-medium); font-size: 11px; }
.target-reading-summary { max-width: 900px; margin: 0 0 12px; color: var(--aerostring-text-primary); font-size: 16px; line-height: 1.45; }
.target-signal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding-left: 20px; color: var(--aerostring-text-primary); font-size: 13px; }
.target-explore-section { display: grid; gap: 12px; }
.target-explore-section .section-heading { margin-bottom: 0; }
.target-dashboard-page .target-domain-entry-grid--executive { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.target-dashboard-page .domain-entry-card { min-height: 126px; align-content: start; gap: 7px; padding: 16px; background: var(--surface); border-color: var(--aerostring-border); transition: border-color .15s ease, box-shadow .15s ease; }
.target-dashboard-page .domain-entry-card:hover, .target-dashboard-page .domain-entry-card:focus { border-color: var(--aerostring-blue-secondary); box-shadow: 0 5px 14px var(--aerostring-shadow); }
.target-dashboard-page .domain-entry-card strong { font-size: 21px; }
.target-card-cta { margin-top: auto; color: var(--aerostring-blue-secondary) !important; font-weight: 700; }
.target-flow-section { min-width: 0; }
.target-executive-table { min-width: 680px; }
.target-executive-table th, .target-executive-table td { padding: 11px 12px; }
.target-executive-table td > strong, .target-executive-table td > small { display: block; }
.target-executive-table td > small { margin-top: 3px; color: var(--aerostring-gray-medium); font-size: 10px; }
.target-quality-summary, .target-state-details { min-width: 0; }
.target-technical-details > summary, .target-state-details details > summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; cursor: pointer; list-style: none; }
.target-technical-details > summary::-webkit-details-marker, .target-state-details details > summary::-webkit-details-marker { display: none; }
.target-technical-details > summary > span:first-child { display: grid; gap: 2px; }
.target-technical-details > summary strong { color: var(--aerostring-blue-primary); font-size: 18px; }
.target-details-cta { color: var(--aerostring-blue-secondary); font-size: 12px; font-weight: 700; }
.target-quality-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.target-quality-overview > div { display: grid; gap: 4px; padding: 12px; background: var(--aerostring-technical-background); border: 1px solid var(--aerostring-border); }
.target-quality-overview span { color: var(--aerostring-gray-medium); font-size: 11px; }
.target-quality-overview strong { color: var(--aerostring-blue-primary); font-size: 14px; }
.target-technical-list { margin-bottom: 18px; }
.target-technical-performance { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-dashboard-page .target-state-legend { display: block; margin-top: 0; }
.target-dashboard-page .target-state-legend details > summary strong { color: var(--aerostring-blue-primary); font-size: 16px; }
.target-dashboard-page .target-state-legend details > p { margin: 12px 0 8px; }

.domain-filter-form { flex-wrap: wrap; }
.domain-filter-form input, .domain-filter-form select { min-width: 150px; }
.domain-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0; }
.domain-pagination > span { display: flex; gap: 6px; align-items: center; }
.domain-pagination > span a, .page-current { min-width: 30px; padding: 7px 9px; border: 1px solid var(--aerostring-border); text-align: center; text-decoration: none; color: var(--aerostring-blue-secondary); }
.page-current { background: var(--aerostring-blue-primary); color: var(--surface); }
.domain-identity { margin-bottom: 18px; }
.domain-identity h2 { margin-bottom: 5px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.target-domain-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.domain-entry-card { display: grid; gap: 5px; padding: 18px; background: var(--aerostring-technical-background); border: 1px solid var(--aerostring-blue-light); text-decoration: none; }
.domain-entry-card strong { color: var(--aerostring-blue-primary); font-size: 20px; }
.domain-entry-card > span:last-child { color: var(--aerostring-gray-medium); font-size: 13px; }
.company-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.company-role-status { display: inline-block; margin: 0 0 8px; padding: 5px 8px; border: 1px solid var(--aerostring-blue-light); background: var(--aerostring-technical-background); color: var(--aerostring-blue-primary); font-size: 11px; font-weight: 700; }
.company-identity { display: grid; gap: 8px; }
.company-identity h2 { margin: 0; }
.company-identity .target-definition-list { margin-top: 4px; }
.company-signals { margin-top: 8px; }

@media (max-width: 860px) {
  .topbar,
  .nav,
  .logout {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 18px;
  }

  .metrics,
  .grid.two,
  .action-grid,
  .target-grid,
  .target-toolbar {
    grid-template-columns: 1fr;
  }

  .target-actions { align-items: flex-start; flex-direction: column; }
  .target-topbar { display: flex; }
  .target-topbar, .target-nav, .target-user-menu, .target-filter-form, .target-page-head { align-items: flex-start; flex-direction: column; }
  .target-user-menu { justify-items: start; justify-content: start; width: 100%; gap: 2px 9px; }
  .target-nav-group { width: 100%; }
  .target-nav-menu { position: static; min-width: 0; margin-top: 3px; box-shadow: none; }
  .target-topbar, .target-context-bar, .target-page, .target-footer { padding-left: 18px; padding-right: 18px; }
  .target-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .target-footer__copyright { text-align: left; }
  .target-state-row, .target-profile-grid, .detail-columns, .target-domain-entry-grid, .company-kpis { grid-template-columns: 1fr; }
  .opportunity-filter-form, .opportunity-detail-grid { grid-template-columns: 1fr; }
  .opportunity-filter-form button { justify-self: start; }
  .opportunity-detail-status { justify-items: start; }
  .opportunity-cta-card { align-items: flex-start; flex-direction: column; }
  .target-contract-chip { width: 100%; }
  .target-brand { min-width: 0; }
  .brand-lockup--shell .brand-lockup__logo { width: min(150px, 42vw); }
  .brand-lockup--shell .brand-lockup__descriptor { max-width: 180px; }
  .target-user-menu { gap: 5px; }
  .target-state-legend { align-items: flex-start; flex-direction: column; }
  .state-legend { justify-content: flex-start; }
}

@media (max-width: 1180px) and (min-width: 861px) {
  .target-topbar { column-gap: 18px; row-gap: 10px; }
  .target-analysis-link { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media (max-width: 520px) {
  .login-panel { padding: 24px; }
  .brand-lockup--login { gap: 9px; }
  .brand-lockup--login .brand-lockup__primary { gap: 10px; }
  .brand-lockup--login .brand-lockup__logo { width: min(132px, 42vw); }
  .brand-lockup--login .brand-lockup__product-wrap { padding-left: 10px; }
  .brand-lockup--login .brand-lockup__product { font-size: 21px; }
  .brand-lockup--login .brand-lockup__descriptor { max-width: 100%; font-size: 13.2px; }
}

@media (max-width: 360px) {
  .brand-lockup--login .brand-lockup__primary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .brand-lockup--login .brand-lockup__logo { width: min(170px, 72vw); }
  .brand-lockup--login .brand-lockup__product-wrap { width: 100%; padding-top: 8px; padding-left: 0; border-top: 1px solid var(--aerostring-border); border-left: 0; }
}

@media (max-width: 1100px) {
  .target-dashboard-page .target-executive-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .target-dashboard-page .target-executive-head { flex-direction: column; }
  .target-dashboard-page .target-analytic-badge { width: 100%; flex: 0 0 auto; min-height: 0; }
  .target-dashboard-page .target-executive-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-dashboard-page .target-status-strip { grid-template-columns: 1fr; }
  .target-dashboard-page .target-status-cutoff { justify-items: start; }
  .target-dashboard-page .target-signal-list { grid-template-columns: 1fr; }
  .target-dashboard-page .target-domain-entry-grid--executive { grid-template-columns: 1fr; }
  .target-dashboard-page .target-quality-overview { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .target-dashboard-page .target-executive-kpis { grid-template-columns: 1fr; }
  .target-dashboard-page .target-executive-filters { align-items: stretch; flex-direction: column; }
  .target-dashboard-page .target-executive-filters label { width: 100%; }
  .target-dashboard-page .target-executive-filters button { width: 100%; }
  .target-dashboard-page .target-technical-details > summary { align-items: flex-start; flex-direction: column; }
  .target-flashes { padding-left: 18px; padding-right: 18px; }
  .opportunity-form-actions { align-items: stretch; flex-direction: column; }
  .opportunity-form-actions > * { width: 100%; text-align: center; }
}

/* LV-FE-INICIO-R1C: approved AeroString complementary palette, scoped to Inicio. */
.target-customs-home {
  --r1-deep-blue: #04377B;
  --r1-medium-blue: #0A5AA1;
  --r1-light-cyan: #168AD1;
  --r1-main-turquoise: #0C9273;
  --r1-dark-turquoise: #115949;
  --r1-dark-navy: #051C4B;
  --r1-red: #DB2133;
  --r1-slate: #828A9B;
  --r1-access-surface: #EEF1F5;
  gap: 22px;
}
.target-customs-home .target-home-kpi--exports_value { border-top-color: var(--r1-deep-blue); }
.target-customs-home .target-home-kpi--imports_value { border-top-color: var(--r1-main-turquoise); }
.target-customs-home .target-home-kpi--trade_balance { border-top-color: var(--r1-medium-blue); }
.target-customs-home .target-home-kpi--trade_balance.target-home-kpi--negative { border-top-color: var(--r1-red); }
.target-customs-home .target-home-kpi--operations { border-top-color: var(--r1-slate); }
.target-customs-home .target-home-chart-card:nth-child(1) { border-top-color: var(--r1-deep-blue); }
.target-customs-home .target-home-chart-card:nth-child(2) { border-top-color: var(--r1-medium-blue); }
.target-customs-home .target-home-chart-card:nth-child(3) { border-top-color: var(--r1-main-turquoise); }
.target-customs-home .target-home-chart-card:nth-child(4) { border-top-color: var(--r1-dark-turquoise); }
.target-customs-home .target-bar-fill--export,
.target-customs-home .target-bar-segment--export,
.target-customs-home .target-legend-export { background: var(--r1-deep-blue); }
.target-customs-home .target-bar-fill--import,
.target-customs-home .target-bar-segment--import,
.target-customs-home .target-legend-import { background: var(--r1-main-turquoise); }
.target-customs-home .target-domain-entry-grid--executive .domain-entry-card:nth-child(1) { border-top-color: var(--r1-deep-blue); }
.target-customs-home .target-domain-entry-grid--executive .domain-entry-card:nth-child(2) { border-top-color: var(--r1-main-turquoise); }
.target-customs-home .target-domain-entry-grid--executive .domain-entry-card:nth-child(3) { border-top-color: var(--r1-dark-turquoise); }
/* RC-07-R4: sober corporate contrast, scoped to Inicio only. */
.target-customs-home .target-executive-head { margin-bottom: -2px; }
.target-home-provenance { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; color: var(--aerostring-gray-medium); font-size: 12px; }
.target-home-provenance span + span::before { content: "·"; margin-right: 18px; color: var(--aerostring-blue-light); }
.target-home-panorama { display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--aerostring-border); border-top: 3px solid var(--aerostring-blue-secondary); }
.target-home-section-heading { margin-bottom: 0; }
.target-home-section-heading h2, .target-home-chart-card h2, .target-home-change-view h2 { margin: 0; color: var(--aerostring-blue-primary); font-size: 19px; }
.target-home-period-pill { align-self: center; padding: 7px 10px; border: 1px solid var(--aerostring-border); color: var(--aerostring-gray-medium); font-size: 11px; }
.target-home-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.target-home-kpi { display: grid; min-height: 100px; align-content: center; gap: 6px; padding: 15px 16px; border-top: 3px solid var(--aerostring-blue-secondary); background: var(--aerostring-technical-background); }
.target-home-kpi--exports_value { border-top-color: var(--aerostring-blue-primary); }
.target-home-kpi--imports_value { border-top-color: var(--aerostring-turquoise); }
.target-home-kpi--trade_balance { border-top-color: var(--aerostring-blue-secondary); }
.target-home-kpi--trade_balance.target-home-kpi--negative { border-top-color: var(--aerostring-red-primary); }
.target-home-kpi--operations { border-top-color: var(--aerostring-gray-medium); }
.target-home-kpi strong { color: var(--aerostring-blue-primary); font-size: clamp(19px, 2.1vw, 27px); line-height: 1.08; overflow-wrap: anywhere; }
.target-home-kpi span { color: var(--aerostring-gray-medium); font-size: 12px; }
.target-home-kpi small { color: var(--aerostring-gray-medium); font-size: 11px; }
.target-home-mm-definition { margin: -4px 0 0; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-home-empty { padding: 24px; background: var(--surface); border: 1px solid var(--aerostring-border); }
.target-home-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.target-home-chart-card { min-width: 0; min-height: 286px; padding: 16px; border-top: 2px solid var(--aerostring-blue-light); background: var(--surface); }
.target-home-chart-card:nth-child(2) { border-top-color: var(--aerostring-blue-secondary); }
.target-home-chart-card:nth-child(3) { border-top-color: var(--aerostring-turquoise); }
.target-home-chart-card:nth-child(4) { border-top-color: var(--aerostring-blue-support); }
.target-home-chart-card .section-heading { align-items: start; margin-bottom: 12px; }
.target-chart-caption { margin: 4px 0 0; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-chart-plot { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.target-chart-y-scale { position: relative; height: 192px; color: var(--aerostring-gray-medium); font-size: 9px; text-align: right; }
.target-chart-y-scale span { position: absolute; right: 0; transform: translateY(-50%); white-space: nowrap; }
/* The SVG baseline is y=184/200 with 3px top padding: align the zero tick to it. */
.target-chart-y-scale span:last-child { top: 92.13% !important; }
.target-line-chart { height: 192px; padding: 3px 0 0; }
.target-line-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.target-chart-axis { stroke: var(--aerostring-border); stroke-width: .6; vector-effect: non-scaling-stroke; }
.target-chart-x-labels { position: relative; height: 18px; margin: 4px 0 9px 86px; color: var(--aerostring-gray-medium); font-size: 10px; }
.target-chart-x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.target-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-chart-legend span { display: inline-flex; gap: 5px; align-items: center; }
.target-bar-legend { margin: -4px 0 10px; }
.target-chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.target-horizontal-bars { display: grid; gap: 9px; }
.target-bar-row { display: grid; grid-template-columns: minmax(110px, .9fr) minmax(180px, 2fr); gap: 11px; align-items: start; min-width: 0; }
.target-bar-label { min-width: 0; overflow: hidden; color: var(--aerostring-text-primary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.target-bar-label small { display: block; overflow: hidden; color: var(--aerostring-gray-medium); font-size: 9px; text-overflow: ellipsis; }
.target-bar-label .target-bar-components { color: var(--aerostring-blue-secondary); font-size: 9px; white-space: normal; }
.target-bar-pair { display: grid; gap: 5px; min-width: 0; }
.target-flow-bar { display: grid; grid-template-columns: 82px minmax(50px, 1fr) auto; gap: 6px; align-items: center; min-width: 0; }
.target-flow-bar-label { color: var(--aerostring-gray-medium); font-size: 9px; }
.target-bar-track { height: 9px; overflow: hidden; background: var(--aerostring-technical-background); border: 1px solid var(--aerostring-border); }
.target-bar-track--no-data { background: repeating-linear-gradient(135deg, var(--aerostring-technical-background), var(--aerostring-technical-background) 4px, #e2e8f1 4px, #e2e8f1 8px); }
.target-bar-fill { display: block; height: 100%; min-width: 0; overflow: hidden; background: var(--aerostring-blue-secondary); }
.target-bar-segment { display: block; height: 100%; min-width: 0; }
.target-bar-segment--export { background: var(--aerostring-blue-primary); }
.target-bar-segment--import { background: var(--aerostring-turquoise); }
.target-bar-fill--export { background: var(--aerostring-blue-primary); }
.target-bar-fill--import { background: var(--aerostring-turquoise); }
.target-flow-bar strong { min-width: 84px; color: var(--aerostring-blue-primary); font-size: 9px; text-align: right; overflow-wrap: anywhere; }
.target-home-change-view { padding: 16px; border-top: 2px solid var(--aerostring-blue-secondary); }
.target-change-view-copy { margin: 5px 0 0; color: var(--aerostring-gray-medium); font-size: 13px; }
.target-change-view-guidance { margin: 13px 0 0; color: var(--aerostring-gray-medium); font-size: 12px; line-height: 1.45; }
.target-change-view-guidance a { color: var(--aerostring-blue-primary); font-weight: 700; }
.target-home-change-view .target-executive-filters { margin-top: 14px; padding: 0; border: 0; }
.target-home-change-view .target-executive-filters button { background: var(--aerostring-blue-primary); }
.target-home-reset { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 9px 15px; text-decoration: none; }
.target-common-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-common-legend span { display: inline-flex; gap: 5px; align-items: center; }
.target-common-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.target-legend-export { background: var(--aerostring-blue-primary); }
.target-legend-import { background: var(--aerostring-turquoise); }
.target-methodology-note { margin: 0; color: var(--aerostring-gray-medium); font-size: 12px; line-height: 1.5; }
.target-dashboard-page .target-explore-section { padding: 14px; background: var(--aerostring-technical-background); border: 1px solid var(--aerostring-border); }
.target-dashboard-page .target-domain-entry-grid--executive .domain-entry-card { min-height: 150px; background: var(--surface); border-top: 2px solid var(--aerostring-blue-light); }
.target-dashboard-page .target-domain-entry-grid--executive .domain-entry-card:nth-child(2) { border-top-color: var(--aerostring-blue-secondary); }
.target-dashboard-page .target-domain-entry-grid--executive .domain-entry-card:nth-child(3) { border-top-color: var(--aerostring-blue-support); }

/* LV-FE-INICIO-R1E: final owner-review hierarchy, scoped to Inicio. */
.target-customs-home .target-home-chart-card:nth-child(1) { border-top-color: var(--r1-deep-blue); }
.target-customs-home .target-home-chart-card:nth-child(2) { border-top-color: var(--r1-light-cyan); }
.target-customs-home .target-home-chart-card:nth-child(3) { border-top-color: var(--r1-main-turquoise); }
.target-customs-home .target-home-chart-card:nth-child(4) { border-top-color: var(--r1-dark-turquoise); }
.target-customs-home .target-chart-x-labels { font-size: 9px; }
.target-customs-home .target-explore-section {
  margin-top: 4px;
  padding: 18px;
  background: var(--r1-access-surface);
  border: 1px solid color-mix(in srgb, var(--r1-slate) 34%, white);
  border-top: 2px solid var(--r1-slate);
}
.target-customs-home .target-domain-entry-grid--executive .domain-entry-card:nth-child(1) { border-top-color: var(--r1-deep-blue); }
.target-customs-home .target-domain-entry-grid--executive .domain-entry-card:nth-child(2) { border-top-color: var(--r1-main-turquoise); }
.target-customs-home .target-domain-entry-grid--executive .domain-entry-card:nth-child(3) { border-top-color: var(--r1-light-cyan); }

@media (max-width: 1100px) {
  .target-home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .target-home-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .target-home-charts { grid-template-columns: 1fr; }
  .target-home-chart-card { min-height: 0; }
  .target-home-provenance { display: grid; gap: 4px; }
  .target-home-provenance span + span::before { content: ""; margin: 0; }
}

@media (max-width: 520px) {
  .target-home-kpis { grid-template-columns: 1fr; }
  .target-bar-row { grid-template-columns: 1fr; gap: 5px; }
  .target-flow-bar { grid-template-columns: 78px minmax(50px, 1fr) auto; }
  .target-flow-bar strong { min-width: 74px; font-size: 9px; }
  .target-home-change-view { padding: 14px; }
}

/* Mercados executive surface. Kept page-scoped so Products and shared shell
   remain unchanged until their own review. */
.target-market-page { display: grid; gap: 18px; }
.target-market-page .target-page-head { margin-bottom: 0; }
.target-market-page .target-domain-subtitle { max-width: 720px; margin: 8px 0 0; color: var(--aerostring-gray-medium); font-size: 16px; line-height: 1.45; }
.target-market-page .target-analytic-badge { align-self: flex-start; }
.target-market-toolbar { display: block; margin-bottom: 0; padding: 12px 14px; }
.target-market-filter-form { display: grid; grid-template-columns: minmax(200px, 1.45fr) repeat(3, minmax(128px, 1fr)) auto; gap: 12px; align-items: end; }
.target-market-filter-form label { min-width: 0; margin: 0; font-size: 12px; }
.target-market-filter-form input, .target-market-filter-form select { min-width: 0; margin-top: 4px; padding: 9px 10px; }
.target-filter-actions { display: flex; gap: 8px; align-items: end; }
.target-filter-actions button, .target-filter-actions .button-link { min-height: 39px; padding: 10px 12px; white-space: nowrap; }
.target-market-status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: center; padding: 13px 16px; background: var(--surface); border: 1px solid var(--aerostring-border); }
.target-market-status-strip .target-status-indicator { min-width: 0; }
.target-market-status-strip .target-status-cutoff { min-width: 0; }
.target-market-kpis { margin-bottom: 0; }
.target-market-kpis article { display: flex; min-height: 112px; flex-direction: column; justify-content: center; gap: 5px; padding: 16px; }
.target-market-kpis article strong { overflow-wrap: anywhere; line-height: 1.1; }
.target-market-kpis article > span { order: 2; }
.target-market-kpis article > strong { order: 1; }
.target-market-kpis article > small { order: 3; color: var(--aerostring-gray-medium); font-size: 10px; }
.target-market-ranking { min-width: 0; margin-bottom: 0; }
.target-market-ranking .table-scroll { max-width: 100%; }
.target-market-ranking table { min-width: 720px; }
.target-market-ranking .target-table-value { display: block; color: var(--aerostring-blue-primary); font-size: 14px; white-space: nowrap; }
.target-market-reading { margin-bottom: 0; border-left: 4px solid var(--aerostring-blue-secondary); }
.target-market-reading .target-signal-list { margin-bottom: 0; }
.target-market-pagination { margin: 0; flex-wrap: wrap; }
.target-market-pagination .domain-pagination-summary { color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.target-market-page .target-quality-summary { margin-bottom: 0; }
.target-market-page .target-quality-summary .target-technical-details { min-width: 0; }

@media (max-width: 1100px) {
  .target-market-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-market-filter-form label:first-child { grid-column: span 2; }
  .target-filter-actions { grid-column: span 2; }
}

@media (max-width: 860px) {
  .target-market-page .target-page-head { flex-direction: column; }
  .target-market-page .target-analytic-badge { width: 100%; min-width: 0; flex: 0 0 auto; }
  .target-market-filter-form { grid-template-columns: 1fr; }
  .target-market-filter-form label:first-child, .target-filter-actions { grid-column: auto; }
  .target-filter-actions { align-items: stretch; }
  .target-filter-actions > * { flex: 1 1 0; text-align: center; }
  .target-market-status-strip { grid-template-columns: 1fr; }
  .target-market-status-strip .target-status-cutoff { justify-items: start; }
  .target-market-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .target-market-kpis { grid-template-columns: 1fr; }
  .target-market-pagination { justify-content: flex-start; gap: 8px; }
  .target-market-pagination > span:not(.domain-pagination-summary) { order: 3; width: 100%; justify-content: flex-start; }
}

/* Analysis Space MVP.  Page-scoped styles keep the approved shell and domain
   surfaces stable while giving the transversal control a compact layout. */
.target-analysis-link { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; padding: 4px 0; color: var(--aerostring-blue-primary); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.target-analysis-link:hover, .target-analysis-link:focus, .target-analysis-link.is-active { text-decoration: underline; }
.analysis-space-page { display: grid; gap: 18px; }
.analysis-space-head { margin-bottom: 0; }
.analysis-space-intro { max-width: 760px; margin: 8px 0 0; color: var(--aerostring-gray-medium); font-size: 16px; line-height: 1.45; }
.analysis-card { display: grid; gap: 18px; margin-bottom: 0; }
.analysis-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.analysis-card h2 { margin: 2px 0 0; color: var(--aerostring-blue-primary); font-size: 20px; }
.analysis-context-status, .analysis-contract-note, .analysis-success { color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.analysis-control-grid, .analysis-variable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.analysis-variable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analysis-space-form label, .analysis-readonly-control { display: grid; align-content: start; gap: 6px; min-width: 0; color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.analysis-space-form select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--aerostring-border); border-radius: 3px; background: #fff; color: var(--aerostring-blue-primary); font: inherit; font-size: 14px; }
.analysis-space-form select:focus { outline: 3px solid rgba(31, 79, 140, .2); outline-offset: 1px; }
.analysis-space-form small { color: var(--aerostring-gray-medium); font-size: 11px; font-weight: 400; line-height: 1.35; }
.analysis-label { display: block; color: var(--aerostring-gray-medium); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.analysis-readonly-control { padding: 10px 12px; border: 1px solid var(--aerostring-border); background: var(--aerostring-technical-background); }
.analysis-readonly-control strong { color: var(--aerostring-blue-primary); font-size: 14px; }
.analysis-entity-selection { display: grid; gap: 8px; }
.analysis-entity-picker { display: grid; gap: 6px; }
.analysis-entity-picker[hidden], #secondary-variable-wrap[hidden] { display: none; }
.analysis-entity-picker select { min-height: 132px; }
.analysis-empty-inline { margin: 0; padding: 14px; color: var(--aerostring-gray-medium); background: var(--aerostring-technical-background); }
.analysis-variable-cards, .analysis-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analysis-variable-card { padding: 14px; border: 1px solid var(--aerostring-border); background: #fff; }
.analysis-variable-card h3 { margin: 0 0 7px; color: var(--aerostring-blue-primary); font-size: 15px; }
.analysis-variable-card p { margin: 0; color: var(--aerostring-gray-medium); font-size: 13px; line-height: 1.4; }
.analysis-variable-card dl, .analysis-technical-list { display: grid; gap: 7px; margin: 12px 0 0; }
.analysis-variable-card dl div, .analysis-technical-list div { display: flex; justify-content: space-between; gap: 10px; }
.analysis-variable-card dt, .analysis-variable-card dd, .analysis-technical-list dt, .analysis-technical-list dd { margin: 0; font-size: 11px; }
.analysis-variable-card dt, .analysis-technical-list dt { color: var(--aerostring-gray-medium); }
.analysis-variable-card dd, .analysis-technical-list dd { color: var(--aerostring-blue-primary); font-weight: 700; text-align: right; }
.analysis-compatibility { display: grid; gap: 4px; padding: 12px 14px; border-left: 4px solid var(--aerostring-blue-secondary); background: var(--aerostring-technical-background); color: var(--aerostring-blue-primary); }
.analysis-compatibility--conditionally_compatible { border-left-color: #b27519; }
.analysis-compatibility--incompatible { border-left-color: #b72d2d; color: #8e2222; }
.analysis-compatibility span { color: var(--aerostring-gray-medium); font-size: 13px; line-height: 1.4; }
.analysis-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analysis-actions button { min-height: 40px; padding: 10px 16px; border: 0; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.analysis-actions .button-primary { background: var(--aerostring-blue-primary); color: #fff; }
.analysis-actions .button-secondary { border: 1px solid var(--aerostring-blue-primary); background: #fff; color: var(--aerostring-blue-primary); }
.analysis-result-card { min-width: 0; }
.analysis-result-summary { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 12px; }
.analysis-result-summary > div { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 13px; border: 1px solid var(--aerostring-border); }
.analysis-result-summary strong { color: var(--aerostring-blue-primary); overflow-wrap: anywhere; }
.analysis-kpi strong { font-size: 24px; }
.analysis-table-scroll { max-width: 100%; }
.analysis-table { width: 100%; min-width: 580px; border-collapse: collapse; }
.analysis-table th, .analysis-table td { padding: 10px 12px; border-bottom: 1px solid var(--aerostring-border); text-align: left; vertical-align: top; }
.analysis-table th { color: var(--aerostring-blue-primary); background: var(--aerostring-gray-light); font-size: 12px; }
.analysis-table td { color: var(--aerostring-blue-primary); font-size: 13px; }
.analysis-table td small { display: block; margin-top: 3px; color: var(--aerostring-gray-medium); font-size: 10px; }
.analysis-empty-state, .analysis-message { padding: 16px; border: 1px solid var(--aerostring-border); background: var(--aerostring-technical-background); }
.analysis-empty-state strong { color: var(--aerostring-blue-primary); }
.analysis-empty-state p { margin: 5px 0 0; color: var(--aerostring-gray-medium); }
.analysis-message--error { border-left: 4px solid #b72d2d; color: #8e2222; }
.analysis-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analysis-evidence-card { display: grid; align-content: start; gap: 8px; margin: 0; }
.analysis-evidence-card p { margin: 0; color: var(--aerostring-gray-medium); line-height: 1.4; }
.analysis-evidence-card p strong { display: block; margin-top: 3px; color: var(--aerostring-blue-primary); }
.analysis-evidence-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--aerostring-gray-medium); font-size: 13px; line-height: 1.45; }
.analysis-report-formats { font-size: 13px; }
.analysis-technical-list { margin-top: 12px; }

/* Specialized Consulting Workspace MVP.  Narrative fields remain session
   scoped; evidence cards keep origin and limitations visible before report. */
.analysis-consulting-cta-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0; border-left: 4px solid var(--aerostring-blue-secondary); }
.analysis-consulting-cta-card h2 { margin: 0; color: var(--aerostring-blue-primary); font-size: 18px; }
.analysis-consulting-cta-card p:not(.target-eyebrow) { max-width: 740px; margin: 6px 0 0; color: var(--aerostring-gray-medium); line-height: 1.4; }
.analysis-consulting-cta-card form { margin: 0; }
.consulting-page { display: grid; gap: 18px; }
.consulting-head { margin-bottom: 0; }
.consulting-intro { max-width: 780px; margin: 8px 0 0; color: var(--aerostring-gray-medium); font-size: 16px; line-height: 1.45; }
.consulting-card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.consulting-card-heading h2 { margin: 2px 0 0; color: var(--aerostring-blue-primary); font-size: 20px; }
.consulting-status { color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.consulting-current-card, .consulting-form, .consulting-evidence-card, .consulting-report-card { display: grid; gap: 18px; margin: 0; }
.consulting-definition-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.consulting-definition-list div { min-width: 0; padding: 12px; border: 1px solid var(--aerostring-border); background: var(--aerostring-technical-background); }
.consulting-definition-list dt { color: var(--aerostring-gray-medium); font-size: 11px; }
.consulting-definition-list dd { margin: 4px 0 0; color: var(--aerostring-blue-primary); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.consulting-note, .consulting-empty-state { margin: 0; padding: 13px 15px; color: var(--aerostring-gray-medium); background: var(--aerostring-technical-background); line-height: 1.45; }
.consulting-empty-state strong { color: var(--aerostring-blue-primary); }
.consulting-empty-state p { margin: 5px 0 0; }
.consulting-message { padding: 13px 15px; border: 1px solid var(--aerostring-border); background: var(--surface); }
.consulting-message--error { border-left: 4px solid var(--aerostring-red-primary); color: #8e2222; }
.consulting-form label { display: grid; gap: 6px; min-width: 0; color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.consulting-form input, .consulting-form textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--aerostring-border); color: var(--aerostring-text-primary); font: inherit; font-weight: 400; resize: vertical; }
.consulting-form input:focus, .consulting-form textarea:focus { outline: 3px solid rgba(31, 79, 140, .2); outline-offset: 1px; }
.consulting-form small { color: var(--aerostring-gray-medium); font-size: 11px; font-weight: 400; line-height: 1.35; }
.required-mark { color: var(--aerostring-red-primary); }
.consulting-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.consulting-form-actions, .consulting-actions, .consulting-report-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consulting-form-actions button, .consulting-actions button { min-height: 40px; padding: 10px 15px; border: 0; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.consulting-form-actions .button-primary { background: var(--aerostring-blue-primary); color: #fff; }
.consulting-form-actions .button-secondary { border: 1px solid var(--aerostring-blue-primary); background: #fff; color: var(--aerostring-blue-primary); }
.consulting-actions form, .consulting-evidence-summary form { margin: 0; }
.button-danger { border: 1px solid var(--aerostring-red-primary) !important; background: #fff; color: #8e2222; }
.consulting-evidence-list { display: grid; gap: 12px; }
.consulting-evidence-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 15px; border: 1px solid var(--aerostring-border); background: var(--aerostring-technical-background); }
.consulting-evidence-summary h3 { margin: 0; color: var(--aerostring-blue-primary); font-size: 15px; }
.consulting-evidence-summary p { margin: 5px 0 0; color: var(--aerostring-gray-medium); font-size: 12px; line-height: 1.4; }
.consulting-remove { color: var(--aerostring-blue-primary); }
.consulting-evidence-items { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--aerostring-border); }
.consulting-evidence-items p { margin: 0; }
.consulting-report-card { overflow: hidden; }
.consulting-report { display: grid; gap: 18px; color: var(--aerostring-text-primary); }
.consulting-report header { padding-bottom: 8px; border-bottom: 2px solid var(--aerostring-blue-primary); }
.consulting-report h1 { margin: 0; color: var(--aerostring-blue-primary); font-size: 28px; }
.consulting-report h2 { margin: 0 0 8px; color: var(--aerostring-blue-primary); font-size: 19px; }
.consulting-report h3 { margin: 0; color: var(--aerostring-blue-primary); font-size: 15px; }
.consulting-report p { line-height: 1.5; }
.consulting-report ol, .consulting-report ul { padding-left: 20px; line-height: 1.5; }
.consulting-evidence-block { display: grid; gap: 8px; padding: 14px; border-left: 4px solid var(--aerostring-blue-secondary); background: var(--aerostring-technical-background); }
.consulting-evidence-block + .consulting-evidence-block { margin-top: 10px; }
.consulting-evidence-block p { margin: 0; }
.consulting-compatibility { color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.consulting-evidence-item { padding-top: 10px; border-top: 1px solid var(--aerostring-border); }
.consulting-evidence-item:first-of-type { border-top: 0; }
.consulting-evidence-item ul { margin-bottom: 0; }
.consulting-technical-secondary { padding-top: 8px; border-top: 1px solid var(--aerostring-border); }
.consulting-technical-secondary summary { cursor: pointer; color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }

/* Opportunity lifecycle.  The surface is intentionally compact and
   evidence-first; scores and automated decisions are not presented here. */
.opportunity-page { display: grid; gap: 18px; }
.opportunity-head { margin-bottom: 0; }
.opportunity-intro { max-width: 760px; margin: 8px 0 0; color: var(--aerostring-gray-medium); font-size: 16px; line-height: 1.45; }
.opportunity-filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 14px; }
.opportunity-filter-form label, .opportunity-form label, .opportunity-actions-card label { min-width: 0; margin: 0; color: var(--aerostring-blue-primary); font-size: 12px; }
.opportunity-filter-form input, .opportunity-filter-form select, .opportunity-form input, .opportunity-form textarea, .opportunity-actions-card select, .opportunity-actions-card textarea { margin-top: 5px; padding: 10px; border: 1px solid var(--aerostring-border); color: var(--aerostring-text-primary); font: inherit; }
.opportunity-filter-form button { min-height: 40px; padding: 10px 15px; white-space: nowrap; }
.opportunity-list-card, .opportunity-context-card, .opportunity-form, .opportunity-evidence-card, .opportunity-history-card { display: grid; gap: 16px; margin: 0; }
.opportunity-count, .opportunity-history-card .section-heading > span { color: var(--aerostring-gray-medium); font-size: 12px; }
.opportunity-table { min-width: 920px; }
.opportunity-table th, .opportunity-table td { padding: 11px 12px; vertical-align: top; }
.opportunity-table td > small, .opportunity-table td > strong { display: block; }
.opportunity-table td > small { margin-top: 4px; color: var(--aerostring-gray-medium); font-size: 11px; line-height: 1.35; }
.opportunity-status, .opportunity-freshness { display: inline-block; padding: 6px 9px; border: 1px solid var(--aerostring-blue-light); background: var(--aerostring-technical-background); color: var(--aerostring-blue-primary); font-size: 11px; font-weight: 700; white-space: nowrap; }
.opportunity-status--under_review { border-color: #d8b878; color: #805915; }
.opportunity-status--prioritized { border-color: var(--aerostring-blue-secondary); color: var(--aerostring-blue-primary); }
.opportunity-status--discarded, .opportunity-freshness--stale { border-color: var(--aerostring-red-light); color: var(--aerostring-red-soft); }
.opportunity-freshness--partial { border-color: #d8b878; color: #805915; }
.opportunity-detail-status { display: grid; justify-items: end; gap: 8px; }
.opportunity-detail-status small { color: var(--aerostring-gray-medium); }
.opportunity-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap: 18px; }
.opportunity-summary-card, .opportunity-actions-card { display: grid; align-content: start; gap: 14px; margin: 0; }
.opportunity-rationale { margin: 0; color: var(--aerostring-text-primary); font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.opportunity-actions-card form { display: grid; gap: 13px; }
.opportunity-actions-card button { justify-self: start; min-height: 40px; padding: 10px 15px; }
.opportunity-no-delete { margin: 0; color: var(--aerostring-gray-medium); font-size: 11px; }
.opportunity-evidence-table { min-width: 960px; }
.opportunity-evidence-table ul, .opportunity-limitations ul { margin: 0; padding-left: 18px; color: var(--aerostring-gray-medium); font-size: 12px; line-height: 1.4; }
.opportunity-evidence-table td > small { max-width: 210px; overflow-wrap: anywhere; }
.opportunity-technical-details { padding-top: 4px; border-top: 1px solid var(--aerostring-border); }
.opportunity-cta-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0; border-left: 4px solid var(--aerostring-blue-secondary); }
.opportunity-cta-card h2 { margin: 0; color: var(--aerostring-blue-primary); font-size: 18px; }
.opportunity-cta-card p:not(.target-eyebrow) { max-width: 740px; margin: 6px 0 0; color: var(--aerostring-gray-medium); line-height: 1.4; }
.button-link { display: inline-block; padding: 10px 15px; background: var(--aerostring-blue-primary); color: #fff; font-weight: 700; text-decoration: none; }
.button-secondary-link { border: 1px solid var(--aerostring-blue-primary); background: #fff; color: var(--aerostring-blue-primary); }
.opportunity-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.opportunity-context-card .section-heading, .opportunity-evidence-card .section-heading, .opportunity-history-card .section-heading { align-items: center; }
.opportunity-source-list { display: grid; gap: 4px; }
.opportunity-source-list strong { color: var(--aerostring-blue-primary); font-size: 13px; }
.opportunity-limitations { display: grid; gap: 5px; }
.opportunity-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.opportunity-history li { display: grid; gap: 4px; padding: 12px 0 12px 18px; border-left: 2px solid var(--aerostring-blue-light); }
.opportunity-history li + li { border-top: 1px solid var(--aerostring-border); }
.opportunity-history strong { color: var(--aerostring-blue-primary); font-size: 13px; }
.opportunity-history span, .opportunity-history p { color: var(--aerostring-gray-medium); font-size: 11px; }
.opportunity-history p { margin: 0; font-size: 13px; line-height: 1.4; }

/* Knowledge products MVP.  This is a presentation layer over the existing
   TARGET editorial contracts and records; it does not create a parallel
   analytics/catalog surface. */
.knowledge-page { display: grid; gap: 18px; }
.knowledge-head { margin-bottom: 0; }
.knowledge-intro { max-width: 780px; margin: 8px 0 0; color: var(--aerostring-gray-medium); font-size: 16px; line-height: 1.45; }
.knowledge-subnav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 2px 10px; border-bottom: 1px solid var(--aerostring-border); }
.knowledge-subnav-link { padding: 7px 0; color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.knowledge-subnav-link:hover, .knowledge-subnav-link:focus, .knowledge-subnav-link.is-active { text-decoration: underline; text-underline-offset: 3px; }
.knowledge-message, .knowledge-empty-state { padding: 15px; border: 1px solid var(--aerostring-border); background: var(--aerostring-technical-background); color: var(--aerostring-gray-medium); line-height: 1.45; }
.knowledge-message--error { border-left: 4px solid var(--aerostring-red-primary); color: #8e2222; }
.knowledge-panel-grid, .knowledge-panorama-grid, .knowledge-evidence-strip { display: grid; gap: 14px; }
.knowledge-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.knowledge-feature-card { display: grid; align-content: start; gap: 8px; min-height: 180px; margin: 0; }
.knowledge-feature-card--wide { grid-column: span 2; min-height: auto; }
.knowledge-feature-card h2, .knowledge-reading-card h2, .knowledge-library-card h2, .knowledge-publication-card h2 { margin: 0; color: var(--aerostring-blue-primary); font-size: 20px; }
.knowledge-feature-card p:not(.target-eyebrow), .knowledge-reading-card p:not(.target-eyebrow), .knowledge-publication-card p:not(.target-eyebrow) { margin: 0; color: var(--aerostring-gray-medium); line-height: 1.45; }
.knowledge-card-title { margin: 0; color: var(--aerostring-blue-primary); font-size: 14px; font-weight: 700; line-height: 1.4; }
.knowledge-card-meta { margin: 0; color: var(--aerostring-gray-medium); font-size: 12px; line-height: 1.4; }
.knowledge-feature-card .button-link, .knowledge-guidance-card .button-link, .knowledge-reading-card .button-link, .knowledge-record-status .button-link { justify-self: start; margin-top: 5px; }
.knowledge-guidance-card, .knowledge-reading-card, .knowledge-publication-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0; border-left: 4px solid var(--aerostring-blue-secondary); }
.knowledge-guidance-card p:not(.target-eyebrow) { max-width: 780px; margin: 6px 0 0; color: var(--aerostring-gray-medium); line-height: 1.45; }
.knowledge-panorama-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.knowledge-summary-card { display: grid; align-content: center; gap: 5px; min-height: 110px; margin: 0; }
.knowledge-summary-card span, .knowledge-summary-card small { color: var(--aerostring-gray-medium); font-size: 11px; }
.knowledge-summary-card strong { color: var(--aerostring-blue-primary); font-size: 20px; overflow-wrap: anywhere; }
.knowledge-reading-card { display: grid; align-items: start; justify-content: stretch; }
.knowledge-reading-card p:not(.target-eyebrow) { max-width: 800px; }
.knowledge-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.knowledge-library-card { display: grid; gap: 16px; margin: 0; }
.knowledge-library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.knowledge-library-heading > span { color: var(--aerostring-gray-medium); font-size: 12px; }
.knowledge-record-list { display: grid; gap: 0; }
.knowledge-record-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--aerostring-border); }
.knowledge-record-card:first-child { padding-top: 0; border-top: 0; }
.knowledge-record-card h2, .knowledge-record-card h3 { margin: 2px 0 0; color: var(--aerostring-blue-primary); font-size: 17px; }
.knowledge-record-status { display: grid; justify-items: end; gap: 7px; min-width: 180px; }
.knowledge-record-status span, .knowledge-status-pill { padding: 6px 9px; border: 1px solid var(--aerostring-blue-light); background: var(--aerostring-technical-background); color: var(--aerostring-blue-primary); font-size: 11px; font-weight: 700; text-align: center; }
.knowledge-detail-head { align-items: center; }
.knowledge-evidence-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.knowledge-evidence-item { display: grid; align-content: start; gap: 5px; min-width: 0; margin: 0; }
.knowledge-evidence-item span, .knowledge-evidence-item small { color: var(--aerostring-gray-medium); font-size: 11px; }
.knowledge-evidence-item strong { color: var(--aerostring-blue-primary); font-size: 14px; overflow-wrap: anywhere; }
.knowledge-article { margin: 0; overflow: hidden; color: var(--aerostring-text-primary); }
.knowledge-article article { display: grid; gap: 18px; }
.knowledge-article h1 { margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--aerostring-blue-primary); color: var(--aerostring-blue-primary); font-size: 26px; }
.knowledge-article h2 { margin: 0 0 7px; color: var(--aerostring-blue-primary); font-size: 18px; }
.knowledge-article p, .knowledge-article li { line-height: 1.5; }
.knowledge-article section + section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--aerostring-border); }
.knowledge-publication-card { align-items: flex-start; }
.knowledge-publication-card p:not(.target-eyebrow) { max-width: 800px; margin: 6px 0 10px; }
.knowledge-technical-details { margin: 0; }
.knowledge-technical-list { display: grid; gap: 8px; margin: 14px 0 0; }
.knowledge-technical-list div { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; border-top: 1px solid var(--aerostring-border); }
.knowledge-technical-list dt, .knowledge-technical-list dd { margin: 0; font-size: 11px; }
.knowledge-technical-list dt { color: var(--aerostring-gray-medium); }
.knowledge-technical-list dd { color: var(--aerostring-blue-primary); font-weight: 700; text-align: right; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .knowledge-panorama-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-detail-head, .knowledge-guidance-card, .knowledge-publication-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .knowledge-panel-grid, .knowledge-panorama-grid, .knowledge-evidence-strip { grid-template-columns: 1fr; }
  .knowledge-feature-card--wide { grid-column: auto; }
  .knowledge-record-card { align-items: flex-start; flex-direction: column; }
  .knowledge-record-status { justify-items: start; min-width: 0; }
  .knowledge-library-heading { flex-direction: column; }
  .knowledge-actions, .knowledge-guidance-card .button-link, .knowledge-detail-head .button-link { width: 100%; box-sizing: border-box; text-align: center; }
}

@media (max-width: 980px) {
  .analysis-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .target-analysis-link { align-self: flex-start; }
}

@media (max-width: 680px) {
  .analysis-space-head, .analysis-card-heading { flex-direction: column; }
  .analysis-control-grid, .analysis-variable-grid, .analysis-variable-cards, .analysis-evidence-grid, .analysis-result-summary { grid-template-columns: 1fr; }
  .analysis-actions { align-items: stretch; flex-direction: column; }
  .analysis-actions button { width: 100%; }
  .analysis-consulting-cta-card { align-items: flex-start; flex-direction: column; }
  .analysis-consulting-cta-card form, .analysis-consulting-cta-card .button-link { width: 100%; box-sizing: border-box; text-align: center; }
  .consulting-card-heading { flex-direction: column; }
  .consulting-field-grid, .consulting-definition-list { grid-template-columns: 1fr; }
  .consulting-form-actions { align-items: stretch; flex-direction: column; }
  .consulting-form-actions button, .consulting-form-actions .button-link { width: 100%; box-sizing: border-box; text-align: center; }
  .consulting-evidence-summary { grid-template-columns: 1fr; }
  .consulting-evidence-summary form { justify-self: start; }
}

/* RC-03 business navigation and source context. */
.exploration-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--aerostring-border);
}
.exploration-subnav-label { color: var(--aerostring-blue-primary); font-size: 12px; font-weight: 700; }
.exploration-subnav-link { padding: 3px 0; color: var(--aerostring-blue-secondary); font-size: 12px; font-weight: 700; text-decoration: none; }
.exploration-subnav-link:hover, .exploration-subnav-link:focus, .exploration-subnav-link.is-active { color: var(--aerostring-blue-primary); border-bottom: 2px solid var(--aerostring-red-primary); }
.target-source-summary { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 11px 0; color: var(--aerostring-gray-medium); font-size: 11px; }
.target-source-summary strong { color: var(--aerostring-blue-primary); }
.target-business-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.target-business-kpis article { min-height: 96px; }
.target-data-update-line { margin: -8px 0 0; color: var(--aerostring-gray-medium); font-size: 12px; line-height: 1.4; }
.exploration-domain-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 12px 0 0; border-top: 1px solid var(--aerostring-border); }
.exploration-domain-nav a { color: var(--aerostring-blue-secondary); font-size: 12px; font-weight: 700; text-decoration: none; }
.exploration-domain-nav a:hover, .exploration-domain-nav a:focus { color: var(--aerostring-blue-primary); text-decoration: underline; text-underline-offset: 3px; }
.field-help { margin: -2px 0 0; color: var(--aerostring-gray-medium); font-size: 11px; font-weight: 400; line-height: 1.35; }
.opportunity-portfolio-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.opportunity-portfolio-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--aerostring-border); background: var(--surface); }
.opportunity-portfolio-item strong { color: var(--aerostring-blue-primary); font-size: 20px; }
.opportunity-portfolio-item span { color: var(--aerostring-gray-medium); font-size: 11px; line-height: 1.3; }

@media (max-width: 680px) {
  .opportunity-portfolio-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.company-page { display: grid; gap: 18px; }
.company-page .target-page-head, .company-page .target-toolbar { margin-bottom: 0; }

@media (max-width: 860px) {
  .target-nav { width: 100%; gap: 8px 16px; }
}

@media (max-width: 520px) {
  .target-business-kpis { grid-template-columns: 1fr; }
  .exploration-subnav { align-items: flex-start; flex-direction: column; gap: 7px; }
  .brand-lockup--shell .brand-lockup__descriptor { white-space: normal; }
}
