@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsiH0C4n.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0C4n.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjr0C4n.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/opensans/v44/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1y4n.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --navy: #29323d;
  --navy-soft: #323d49;
  --coral: #f77008;
  --coral-ink: #ffa834;
  --sand: #202832;
  --surface: #2d3743;
  --surface-raised: #35414e;
  --ink: #edf1f4;
  --heading: #fffaf4;
  --muted: #c9d3dd;
  --blue: #364653;
  --mint: #193f34;
  --variant: #465463;
  --rule: #596674;
  --focus: #ffa834;
  --r-sm: 2px;
  --r-md: 4px;
  --r-full: 50%;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 420ms;
  --shadow: 0 5px 18px rgb(0 0 0 / 22%);
  --shadow-raised: 0 18px 44px rgb(0 0 0 / 34%);
  --font: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font);
  background: var(--sand);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--sand); }
body {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgb(247 112 8 / 4.5%), transparent 60%),
    var(--sand);
  letter-spacing: .25px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(button, input, textarea, a):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.app-shell {
  min-width: 0;
  min-height: 100dvh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.detail-shell { min-width: 0; min-height: 100dvh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

.today-header {
  position: relative;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: linear-gradient(145deg, #35414e, var(--navy));
  border-top: 4px solid var(--coral);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 18px 13px;
}

.header-topline, .detail-topbar, .lead-card-top, .lead-card-footer,
.status-row, .source-row, .contact-actions, .score-row, .section-title-row,
.lead-meta-row, .results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { color: var(--heading); font-weight: 850; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}
.brand-lockup img { display: block; width: auto; height: 32px; }
.brand-divider { width: 1px; height: 23px; background: rgb(255 255 255 / 42%); }
.brand-product { color: var(--coral); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.brand-lockup-card {
  width: fit-content;
  border-radius: var(--r-md);
  background: var(--navy);
  padding: 8px 13px 8px 9px;
}
.today-header h1 {
  display: none;
  margin: 14px 0 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.035em;
}
.today-date { display: none; margin: 7px 0 0; color: rgb(255 255 255 / 76%); font-size: 18px; }
.sync-label {
  width: calc(100% - 166px);
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 9px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  font-weight: 650;
}
.sync-label.stale { color: #ffc17f; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.header-icon-button {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--r-full);
  background: transparent;
  color: #fff;
  font-size: 24px;
}
.header-icon-button span { display: block; transform: rotate(-20deg); }
.header-action-label { display: none !important; transform: none !important; }
.header-icon-button:hover { border-color: rgb(255 255 255 / 50%); background: rgb(255 255 255 / 7%); }
.account-menu { position: relative; }
.account-menu summary {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--r-full);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .08em;
  list-style: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { border-color: var(--coral); background: rgb(255 255 255 / 7%); }
.account-menu[open] summary { border-color: var(--coral); }
.account-menu-panel {
  position: absolute;
  z-index: 35;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  gap: 6px;
  width: max-content;
  min-width: 210px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--ink);
  padding: 12px;
  box-shadow: var(--shadow-raised);
}
.account-menu-panel > span { color: var(--muted); font-size: 12px; }
#local-timezone { border-top: 1px solid var(--rule); padding-top: 7px; font-size: 10px; }
.account-menu-panel .text-button { width: 100%; border-radius: var(--r-sm); color: var(--heading); text-align: left; }
.account-menu-panel .text-button:hover { background: rgb(255 255 255 / 6%); }
.topbar-button, .text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 750;
}
.text-button { padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.today-header :where(button, a):focus-visible,
.detail-topbar :where(button, a):focus-visible {
  outline-color: #fff;
}

.pull-indicator {
  height: 0;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}
.pull-indicator.visible { height: 28px; padding-top: 8px; }
.main-content { width: min(760px, 100%); margin: 0 auto; padding: 0 14px 30px; }
.toolbar {
  position: sticky;
  z-index: 14;
  top: 0;
  display: grid;
  gap: 7px;
  margin: 0 -14px 8px;
  border-bottom: 1px solid rgb(62 74 85 / 55%);
  background: rgb(17 24 32 / 94%);
  padding: 7px 14px;
  box-shadow: 0 9px 24px rgb(0 0 0 / 12%);
  backdrop-filter: blur(18px);
}
.search-box {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0 14px;
  box-shadow: var(--shadow);
}
.app-shell.search-open .search-box,
.app-shell.large-feed .search-box { display: flex; }
.search-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(247 112 8 / 17%); }
.search-icon { flex: none; color: var(--muted); font-size: 24px; transform: rotate(-20deg); }
.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
  font-size: 16px;
}
.search-box input::placeholder { color: #87939d; opacity: 1; }
.pipeline-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; min-width: 0; }
.filter-row {
  position: relative;
  flex: 1;
  display: flex;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 18px 2px 0;
  scroll-padding-right: 24px;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 14px), transparent 100%);
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.desktop-status-filters { display: none; }
.mobile-status-filters { display: flex; align-items: center; gap: 5px; }
.mobile-status-filters > .filter-chip,
.mobile-status-filters > .more-filters > summary { min-width: 0; padding-inline: 10px; font-size: 12px; }
.mobile-status-filters .filter-chip { gap: 5px; }
.filter-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-weight: 750;
}
.filter-chip:hover { border-color: #71808d; color: var(--heading); }
.filter-chip.active { border-color: #71808d; background: var(--variant); color: var(--heading); }
.chip-count {
  display: grid;
  min-width: 22px;
  min-height: 22px;
  place-content: center;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 8%);
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1;
}
.filter-chip.active .chip-count { background: rgb(255 255 255 / 12%); }
.sort-control { flex: none; }
.sort-label { display: none; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.sort-control select {
  min-height: 38px;
  max-width: 94px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--heading);
  padding: 7px 25px 7px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}
.more-filters { position: relative; min-width: 0; }
.more-filters > summary { cursor: pointer; list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filter-menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 7px;
  width: 180px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  padding: 9px;
  box-shadow: var(--shadow-raised);
}
.more-filter-menu .filter-chip { width: 100%; justify-content: space-between; }

.market-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 0 7px;
  padding: 0;
}
.market-toolbar-label { display: none; flex: none; min-width: 0; }
.market-toolbar-label .eyebrow { font-size: 11px; }
.market-toolbar-label > p:last-child { display: none; margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.platform-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 0 8px;
}
.platform-toolbar > .eyebrow { flex: none; font-size: 10px; }
.platform-filter-row {
  flex: 1;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 17px 3px 0;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
  scrollbar-width: none;
}
.platform-filter-row::-webkit-scrollbar { display: none; }
.platform-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 750;
}
.platform-chip:hover { border-color: #71808d; color: var(--heading); }
.platform-chip.active { border-color: var(--coral); background: rgb(247 112 8 / 12%); color: var(--heading); box-shadow: inset 0 -2px 0 var(--coral); }
.country-filter-row {
  flex: 1;
  display: flex;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px 17px 4px 0;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
  scrollbar-width: none;
}
.country-filter-row::-webkit-scrollbar { display: none; }
.country-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
}
.country-chip:hover { border-color: #71808d; color: var(--heading); }
.country-chip.active { border-color: #71808d; background: var(--variant); color: var(--heading); }
.country-chip.active .chip-count { background: rgb(255 255 255 / 12%); }
.active-filter-row { flex: none; }
.active-filter-row:empty { display: none; }
.active-filter-chip {
  min-height: 36px;
  border: 1px solid #71808d;
  border-radius: var(--r-sm);
  background: var(--variant);
  color: var(--heading);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
}

.results-summary { display: none; align-items: flex-start; flex-direction: column; gap: 0; margin: 0 2px 7px; }
.results-summary.filtered { display: flex; }
.results-summary .eyebrow, .results-summary > p { display: none; }
.results-summary h2 { margin: 0; color: var(--heading); font-size: 15px; letter-spacing: -.01em; }
.lead-list { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-items: stretch; gap: 9px; }
.lead-card {
  position: relative;
  align-self: stretch;
  height: 100%;
  height: auto;
  overflow: hidden;
  min-width: 0;
  --platform-accent: #71808d;
  border: 1px solid rgb(255 255 255 / 6%);
  border-top-color: rgb(255 255 255 / 11%);
  border-left: 3px solid var(--platform-accent);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  padding: 0;
  box-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 18%);
  transition: transform var(--t-med) var(--ease-out);
}
.lead-card.platform-sitecore { --platform-accent: #98c8e8; }
.lead-card.platform-optimizely, .lead-card.platform-episerver { --platform-accent: #f4a06a; }
.lead-card.platform-wordpress { --platform-accent: #70b8cf; }
.lead-card.platform-adobe-experience-manager, .lead-card.platform-aem { --platform-accent: #f49a86; }
.lead-card.platform-webflow { --platform-accent: #b5a4f6; }
.lead-card.platform-drupal, .lead-card.platform-contentful, .lead-card.platform-contentstack { --platform-accent: #8ed2b5; }
.lead-card.platform-unknown { --platform-accent: #71808d; }
.lead-card-button {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 44px;
  border: 0;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  color: inherit;
  padding: 13px 14px 11px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast) var(--ease-out);
}
.lead-card-button:focus-visible { outline-offset: -4px; border-radius: var(--r-md); }
.lead-card-grid { display: grid; grid-template-columns: 32px minmax(0, 1fr) 58px; align-items: start; gap: 10px; min-width: 0; flex: 1 1 auto; }
.organisation-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--r-sm);
  background: #eef1f3;
  color: #27333e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}
.organisation-mark img { grid-area: 1 / 1; width: 22px; height: 22px; object-fit: contain; }
.organisation-mark > span { grid-area: 1 / 1; visibility: hidden; }
.organisation-mark.image-failed img, .organisation-mark:not(:has(img)) img { display: none; }
.organisation-mark.image-failed > span, .organisation-mark:not(:has(img)) > span { visibility: visible; }
.lead-card-main { min-width: 0; }
.eyebrow { margin: 0; color: var(--coral-ink); font-size: 13px; font-weight: 850; letter-spacing: 2px; text-transform: uppercase; }
.muted-eyebrow { color: var(--muted); }
.lead-card .muted-eyebrow {
  min-width: 0;
  min-height: 1.3em;
  overflow: hidden;
  color: rgb(255 168 52 / 68%);
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 4px;
  color: var(--heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.018em;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.opportunity {
  margin: 0;
  color: #c2cad0;
  font-size: 17px;
  line-height: 1.38;
}
.lead-card .opportunity {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #d8dfe4;
  font-size: 14px;
  line-height: 1.3;
}
.card-metadata-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-top: 8px; }
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: var(--r-sm);
  background: rgb(17 24 32 / 34%);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 400;
}
.platform-badge span { color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.platform-badge strong { overflow: hidden; color: var(--heading); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.platform-badge.platform-unknown { border-style: dashed; color: var(--muted); }
.platform-badge.platform-unknown strong { color: var(--muted); font-weight: 650; }
.technology-badge { border-color: rgb(169 232 206 / 28%); background: rgb(169 232 206 / 7%); }
.technology-badge span { color: #a9e8ce; }
.tender-deadline-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
  border: 1px solid #a9553b;
  border-left: 3px solid #ff895e;
  border-radius: var(--r-sm);
  background: rgb(247 112 8 / 13%);
  color: #ffe1d4;
  padding: 7px 9px;
}
.tender-deadline-warning.critical, .tender-deadline-warning.overdue {
  border-color: #ff7958;
  background: #5a2b25;
  color: #fff0e9;
}
.tender-deadline-warning > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tender-deadline-warning strong { overflow: hidden; font-size: 11px; font-weight: 750; letter-spacing: .03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tender-deadline-warning small { color: #ffc9b7; font-size: 10px; line-height: 1.25; }
.tender-deadline-icon {
  display: grid;
  flex: none;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: var(--r-full);
  background: #d75e3f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.card-score-column {
  display: grid;
  gap: 6px;
  width: 58px;
  min-width: 58px;
  color: var(--heading);
  text-align: right;
}
.card-score-column > span:first-child { display: flex; justify-content: flex-end; align-items: baseline; gap: 2px; }
.card-score-column strong { font-size: 34px; font-weight: 300; line-height: .9; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.card-score-column small { color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.card-score-column[data-rank-muted="true"] { opacity: .46; }
.card-score-column.exceptional strong { color: #a9e8ce; }
.card-score-column.strong strong { color: #cfe4f4; }
.card-triage-actions { display: none; }
.card-signal-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgb(62 74 85 / 70%); }
.card-signal-line { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.card-signal-age { font-weight: 400; }
.card-signal-age.fresh { color: #a9e8ce; }
.card-signal-age.recent { color: #c3cdd4; }
.card-signal-age.stale, .card-signal-age.unknown { color: #7f8d99; }
.card-endcap { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex: none; }
.card-signal-row .status-pill { flex: none; padding: 4px 7px; font-size: 10px; font-weight: 400; }
.organisation-count { display: inline-flex; align-items: center; margin: 0; border-radius: var(--r-sm); background: var(--variant); color: #dce4e9; padding: 4px 7px; font-size: 9px; font-weight: 400; white-space: nowrap; }
.company-name-ellipsis { white-space: nowrap; }
.swipe-cue { position: absolute; z-index: 1; inset-block: 0; display: grid; place-content: center; width: 88px; color: #fff; font-size: 12px; font-weight: 850; opacity: 0; transition: opacity var(--t-fast) var(--ease-out); }
.swipe-save { right: 0; background: #1d604a; }
.swipe-reject { left: 0; background: #753c36; }
.lead-card[data-swipe="save"] .swipe-save,
.lead-card[data-swipe="reject"] .swipe-reject { opacity: 1; }
.lead-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgb(247 112 8 / 7%), transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.score-badge {
  flex: none;
  display: grid;
  place-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-full);
  background: var(--blue);
  color: var(--heading);
  text-align: center;
}
.score-badge.high { background: var(--mint); }
.score-badge strong { font-size: 20px; line-height: 1; }
.score-badge small { font-size: 11px; opacity: .75; }
.platform-pill, .country-pill, .sector-pill, .confidence-pill, .status-pill, .freshness-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--r-sm);
  font-weight: 750;
}
.platform-pill {
  align-items: flex-start;
  max-width: 100%;
  margin-top: 11px;
  background: var(--blue);
  color: var(--heading);
  padding: 7px 10px;
  font-size: 12px;
}
.platform-pill b { flex: none; color: var(--coral-ink); font-size: 10px; margin: 2px 8px 0 0; }
.platform-pill span {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.freshness-pill {
  flex: none;
  gap: 4px;
  background: #2d363e;
  color: #c7cfd5;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.freshness-pill.new { background: rgb(247 112 8 / 16%); color: #ffb37a; }
.freshness-pill.updated { background: var(--blue); color: #cfe4f4; }
.freshness-pill.active { background: #2d363e; color: #c7cfd5; }
.lead-card-footer { align-items: flex-end; flex-wrap: wrap; padding-top: 18px; }
.card-footer-states { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.status-pill { gap: 7px; padding: 7px 12px; background: var(--blue); color: #d7e5ef; font-size: 13px; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; }
.status-SAVED { background: var(--mint); color: #a9e8ce; }
.status-REJECTED { background: #343d45; color: #d2d8dc; }
.status-CONTACTED { background: #462d1f; color: #ffbe8a; }
.card-score {
  flex: none;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 4%);
  padding: 6px 8px;
}
.card-score strong { color: var(--heading); font-size: 19px; line-height: 1; }
.card-score small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.card-score.exceptional { border-color: #27614f; background: rgb(25 63 52 / 62%); }
.card-score.exceptional strong { color: #a9e8ce; }
.card-score.strong { border-color: #405b70; background: rgb(43 58 71 / 72%); }
.card-score.strong strong { color: #cfe4f4; }
.view-brief { color: var(--muted); font-size: 13px; font-weight: 750; white-space: nowrap; }
.view-brief span { color: var(--coral-ink); font-size: 16px; }
.card-footer-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.empty-card { grid-column: 1 / -1; padding: 54px 30px; text-align: center; color: var(--muted); }
.empty-card h2 { color: var(--heading); }

.bottom-nav {
  position: absolute;
  z-index: 20;
  right: 18px;
  bottom: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 150px;
  min-height: 38px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 7%);
  padding: 3px;
}
.nav-item {
  min-height: 32px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
}
.nav-item:hover { color: var(--heading); }
.nav-item.active { background: var(--variant); color: var(--heading); font-weight: 800; }

.detail-shell { background: var(--sand); }
.detail-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: calc(66px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0;
  background: rgb(24 33 43 / 96%);
  color: #fff;
}
.detail-topbar strong { font-size: 23px; letter-spacing: -.02em; }
.topbar-button { min-width: 72px; padding: 12px 0; }
.topbar-button:last-child { text-align: right; }
.topbar-button:last-child {
  min-width: 104px;
  border-radius: var(--r-sm);
  background: var(--coral);
  color: #15191d;
  padding: 10px 15px;
  text-align: center;
}
.topbar-button:last-child:hover { background: #ffa834; }
.detail-content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px 18px 32px;
  display: grid;
  gap: 14px;
}
.detail-layout, .detail-primary, .detail-secondary { min-width: 0; display: grid; gap: 14px; align-content: start; }
.hero { min-width: 0; background: linear-gradient(145deg, var(--surface-raised), var(--navy)); color: #fff; border: 1px solid #596674; border-radius: var(--r-md); padding: 22px; }
.hero .eyebrow { color: var(--coral); }
.hero h1 {
  margin: 10px 0 3px;
  max-width: 850px;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.1;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.hero .opportunity { max-width: 72ch; color: rgb(255 255 255 / 80%); font-size: 19px; }
.hero .score-badge { float: right; margin-left: 14px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.country-pill { padding: 8px 13px; background: var(--coral); color: #15191d; }
.sector-pill { padding: 8px 13px; background: rgb(255 255 255 / 13%); }
.detail-status { min-width: 0; padding: 2px; }
.detail-action-panel { display: none; }
.action-recipient {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--blue);
  padding: 12px 14px;
}
.action-recipient span { grid-row: 1 / 3; color: #a9c7df; font-size: 10px; font-weight: 850; letter-spacing: .055em; }
.action-recipient strong, .action-recipient small { min-width: 0; overflow-wrap: anywhere; }
.action-recipient strong { color: var(--heading); }
.action-recipient small { color: #b7c5d0; }
.action-panel-status { border-top: 1px solid var(--rule); padding-top: 17px; }
.action-label { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .06em; }
.action-panel-buttons { display: grid; gap: 9px; margin-top: 17px; border-top: 1px solid var(--rule); padding-top: 17px; }
.mobile-action-dock {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid var(--rule);
  background: rgb(24 33 43 / 96%);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgb(59 71 84 / 12%);
  backdrop-filter: blur(18px);
}
.mobile-action-button {
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--heading);
  padding: 6px 4px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
}
.mobile-action-button:hover { border-color: var(--coral-ink); background: #2b3742; }
.mobile-action-button.mobile-action-primary { border-color: var(--coral); background: var(--coral); color: #15191d; }
.mobile-action-button.mobile-action-primary:hover { border-color: #ffa834; background: #ffa834; }
.mobile-action-icon { font-size: 15px; font-weight: 900; line-height: 1; }
.detail-section {
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
}
.detail-section h2 { margin: 6px 0 15px; color: var(--heading); font-size: 24px; letter-spacing: -.018em; }
.detail-section p { max-width: 72ch; line-height: 1.55; overflow-wrap: anywhere; }
.signal-box, .contact-card { border-radius: var(--r-md); padding: 15px; }
.signal-box { margin-top: 16px; background: var(--blue); }
.signal-box strong { color: var(--heading); }
.signal-box p { margin-bottom: 0; }
.confidence-pill { background: var(--blue); color: #d7e5ef; padding: 7px 12px; font-size: 12px; text-transform: uppercase; }
.role-list { list-style: none; margin: 0; padding: 0; }
.role-list li { position: relative; padding-left: 23px; margin: 11px 0; line-height: 1.45; }
.role-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: var(--r-full); background: var(--coral-ink); }
.contact-card { margin-top: 11px; border: 1px solid #3b4853; background: #27323c; }
.contact-card.selected { border-color: var(--coral); background: #342b26; box-shadow: 0 0 0 3px rgb(247 112 8 / 14%); }
.contact-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.contact-card-kicker { margin: 0 0 4px; color: var(--coral-ink); font-size: 10px; font-weight: 850; letter-spacing: .055em; }
.contact-card h3 { margin: 0; color: var(--heading); overflow-wrap: anywhere; }
.contact-card .contact-title { margin: 3px 0; font-weight: 700; }
.contact-card .contact-meta, .state-meta { color: var(--muted); font-size: 13px; }
.verification-line { color: var(--muted); font-size: 12px; }
.contact-use-button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--heading);
  font-weight: 800;
}
.contact-use-button:hover { border-color: var(--coral-ink); background: rgb(255 255 255 / 5%); }
.contact-use-button.selected { border-color: var(--coral); background: var(--coral); color: #15191d; }
.contact-actions { justify-content: flex-start; flex-wrap: wrap; }
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--coral-ink);
  padding: 9px 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { background: rgb(255 255 255 / 6%); }
.outreach-recipient {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--blue);
  padding: 12px 14px;
}
.outreach-recipient span { grid-row: 1 / 3; color: #a9c7df; font-size: 10px; font-weight: 850; letter-spacing: .055em; }
.outreach-recipient strong, .outreach-recipient small { min-width: 0; overflow-wrap: anywhere; }
.outreach-recipient strong { color: var(--heading); }
.outreach-recipient small { color: #b7c5d0; }
.quality-list { display: grid; gap: 10px; }
.quality-warning, .quality-clear {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-radius: var(--r-md);
  padding: 12px;
}
.quality-warning { background: #432720; }
.quality-clear { background: #19392f; }
.quality-warning-icon, .quality-clear > span {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  font-weight: 900;
}
.quality-warning-icon { background: #6a352b; color: #ffd3c7; }
.quality-clear > span { background: #245443; color: #b7efd7; }
.quality-warning strong, .quality-clear strong { color: var(--heading); }
.quality-warning p, .quality-clear p { margin: 3px 0 0; color: #c0c8ce; font-size: 13px; line-height: 1.42; }
.changes-list { display: grid; gap: 11px; }
.change-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  border: 1px solid #40576a;
  border-radius: var(--r-md);
  background: #24323e;
  padding: 13px;
}
.change-icon {
  display: grid;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--blue);
  color: #c8e1f4;
  font-size: 14px;
  font-weight: 900;
}
.change-copy { min-width: 0; }
.change-copy strong { display: block; color: var(--heading); }
.change-copy > p { margin: 4px 0 0; color: #c6d0d8; font-size: 14px; line-height: 1.46; }
.change-copy .change-removed { color: var(--muted); font-style: italic; }
.change-copy details { margin-top: 8px; border-top: 1px solid #40505e; padding-top: 7px; }
.change-copy summary {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #a9cee9;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.change-copy details p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.43; }
.outreach-block + .outreach-block { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 20px; }
.outreach-label { color: var(--muted); font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.primary-button, .secondary-button {
  width: 100%;
  min-height: 46px;
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-weight: 700;
}
.primary-button {
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #fff;
  padding: 20px 34px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.primary-button:hover:not(:disabled) { border-color: var(--coral-ink); background: var(--coral-ink); box-shadow: none; }
.secondary-button { border: 1px solid var(--rule); background: transparent; color: var(--heading); }
.secondary-button:hover:not(:disabled) { border-color: #71808d; background: var(--variant); }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.source-row { align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.source-row:last-child { border-bottom: 0; }
.source-row a {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  color: #c9e2f4;
  text-decoration: underline;
  text-decoration-color: rgb(201 226 244 / 35%);
  text-underline-offset: 3px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.source-row a:hover { text-decoration-color: currentColor; }
.score-item { margin: 14px 0; }
.score-row { margin-bottom: 7px; }
.score-track { height: 9px; overflow: hidden; border-radius: var(--r-sm); background: var(--variant); }
.score-track span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.status-row { justify-content: flex-start; max-width: 100%; overflow-x: auto; padding: 3px 2px 5px; scrollbar-width: none; }
.status-row::-webkit-scrollbar { display: none; }
.status-button {
  flex: none;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 16px;
  font-weight: 750;
}
.status-button:hover { border-color: #71808d; color: var(--heading); }
.status-button.active { border-color: #71808d; background: var(--variant); color: var(--heading); }
.note-input {
  width: 100%;
  min-height: 144px;
  resize: vertical;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--navy);
  padding: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.note-input:focus-visible, .auth-card input:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.state-meta { min-height: 20px; margin: 9px 0; }

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 12%, rgb(247 112 8 / 22%), transparent 28rem),
    linear-gradient(145deg, var(--sand), var(--surface-raised));
}
.auth-card { width: min(460px, 100%); border-radius: var(--r-md); background: var(--surface); padding: 30px; box-shadow: 0 24px 80px rgb(0 0 0 / 24%); }
.auth-card h1 { margin-bottom: 12px; color: var(--heading); font-size: 34px; line-height: 1.08; letter-spacing: -.025em; }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.auth-card form { display: grid; gap: 15px; margin-top: 25px; }
.auth-card label { display: grid; gap: 7px; color: var(--heading); font-weight: 700; }
.auth-card input { min-height: 46px; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 12px 13px; background: var(--navy); color: var(--ink); }
.form-error { min-height: 20px; margin: 0; color: #ff9e8b; }
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 36px);
  border-radius: var(--r-md);
  background: #343b38;
  color: #fff;
  padding: 13px 18px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 24%);
}
.toast { display: flex; align-items: center; gap: 12px; }
.toast-action { min-height: 44px; border: 0; background: transparent; color: var(--coral-ink); padding: 5px; font-weight: 700; letter-spacing: 1px; text-decoration: underline; text-underline-offset: 3px; }
.skeleton-card { min-height: 218px; border-left-color: var(--platform-accent); padding: 16px 17px 14px; pointer-events: none; }
.skeleton-card-grid { display: grid; grid-template-columns: 32px minmax(0, 1fr) 58px; align-items: start; gap: 10px; }
.skeleton-card-copy { min-width: 0; }
.skeleton-card .skeleton { border-radius: var(--r-sm); }
.skeleton-mark { width: 32px; height: 32px; }
.skeleton-score { width: 54px; height: 38px; justify-self: end; }
.skeleton { border-radius: var(--r-md); background: var(--surface-raised); }
.skeleton-kicker { width: 44%; height: 12px; }
.skeleton-title { width: 78%; height: 28px; margin-top: 16px; }
.skeleton-copy { width: 92%; height: 44px; margin-top: 12px; }
.skeleton-meta { width: 42%; height: 26px; margin-top: 12px; }
.skeleton-signal { width: 72%; height: 12px; margin-top: 18px; }

@media (hover: hover) and (pointer: fine) {
  .lead-card:hover { border-color: #71808d; box-shadow: var(--shadow-raised); transform: translateY(-2px); }
  .card-triage-actions {
    position: absolute;
    z-index: 6;
    top: 7px;
    right: 7px;
    display: flex;
    gap: 3px;
    border: 1px solid var(--rule);
    border-radius: var(--r-sm);
    background: var(--navy);
    padding: 3px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  }
  .lead-card:hover .card-triage-actions,
  .lead-card:focus-within .card-triage-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .card-triage-actions button {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    font-size: 19px;
    font-weight: 850;
  }
  .card-triage-actions button:first-child:hover { background: #23463b; color: #a9e8ce; }
  .card-triage-actions button:last-child:hover { background: #4d302d; color: #ffc0b5; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lead-card::after { transition: opacity var(--t-med) var(--ease-out); }
  .lead-card:hover::after { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes card-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes card-out {
    to { opacity: 0; transform: translateX(var(--dir, 48px)) scale(.97); }
  }
  @keyframes status-pop {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.06); }
  }
  @keyframes shimmer {
    to { background-position: -200% 0; }
  }
  .lead-card.entering {
    animation: card-in var(--t-med) var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * var(--t-fast) / 5);
  }
  .lead-card.leaving { animation: card-out var(--t-med) var(--ease-in) forwards; }
  .dock-status-segments.changed,
  .changed-badge { animation: status-pop var(--t-med) var(--ease-out) 1; }
  .skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-raised) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer calc(var(--t-slow) * 3) linear infinite;
  }
  .lead-card img { opacity: 0; transition: opacity var(--t-med) var(--ease-out); }
  .lead-card img.loaded { opacity: 1; }
  :where(button, input, textarea, a):focus-visible { outline-offset: 3px; }
  .secondary-button.done { background: var(--mint); color: var(--ink); }
  ::view-transition-group(lead-title) { animation-duration: var(--t-med); }
}

.hero h1 { view-transition-name: lead-title; }
.market-toolbar.overflowing .country-filter-row { mask-image: linear-gradient(90deg, #000 92%, transparent); }

@media (min-width: 760px) {
  .app-shell { padding-bottom: 44px; }
  .today-header {
    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 0;
    min-height: 88px;
    border-radius: var(--r-md);
    padding: 17px 24px;
  }
  .brand-lockup img { height: 36px; }
  .today-header h1, .today-date { display: none; }
  .sync-label { position: absolute; left: 24px; bottom: 9px; width: auto; min-height: 0; margin: 0; font-size: 11px; }
  .main-content { width: min(1180px, 100%); padding: 20px 24px 44px; }
  .toolbar {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin: 0 0 25px;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .search-box { min-height: 50px; }
  .header-icon-button { display: grid; }
  .app-shell.search-open .toolbar,
  .app-shell.large-feed .toolbar { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 18px; }
  .search-box input { min-height: 48px; }
  .desktop-status-filters { display: flex; justify-content: flex-start; gap: 8px; max-width: 100%; }
  .mobile-status-filters { display: none; }
  .filter-chip { min-height: 44px; padding: 9px 13px; }
  .market-toolbar {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: -2px 0 20px;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: rgb(32 42 52 / 74%);
    padding: 15px 17px;
  }
  .platform-toolbar {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin: -8px 0 20px;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: rgb(32 42 52 / 56%);
    padding: 10px 17px;
  }
  .platform-toolbar > .eyebrow { font-size: 11px; }
  .platform-filter-row { flex-wrap: wrap; overflow: visible; padding: 3px 2px 4px; mask-image: none; }
  .platform-chip { min-height: 44px; padding: 8px 13px; }
  .market-toolbar-label { display: block; }
  .market-toolbar-label .eyebrow { font-size: 13px; }
  .market-toolbar-label > p:last-child { display: block; }
  .country-filter-row { flex-wrap: wrap; overflow: visible; padding: 3px 2px 5px; mask-image: none; }
  .country-chip { min-height: 44px; padding: 8px 13px; }
  .results-summary.filtered { display: flex; align-items: flex-end; flex-direction: row; gap: 12px; margin-bottom: 15px; }
  .results-summary .eyebrow, .results-summary > p { display: block; }
  .results-summary > p { margin-bottom: 2px; text-align: right; }
  .lead-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; align-items: stretch; gap: 17px; }
  .lead-card {
    border: 1px solid rgb(255 255 255 / 6%);
    border-top-color: rgb(255 255 255 / 11%);
    border-left: 3px solid var(--platform-accent);
    border-radius: 2px;
    background: linear-gradient(180deg, var(--surface-raised), var(--surface));
    padding: 0;
    box-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 18%);
  }
  .lead-card-button { background: transparent; padding: 17px 18px 14px; }
  .lead-card:hover { background: linear-gradient(180deg, var(--surface-raised), var(--surface)); }
  .lead-card .opportunity { -webkit-line-clamp: 3; }
  .bottom-nav {
    left: 50%;
    right: auto;
    top: 20px;
    bottom: auto;
    width: 230px;
    min-height: 46px;
    transform: translateX(-50%);
    border-color: rgb(255 255 255 / 20%);
    border-radius: var(--r-md);
    box-shadow: none;
  }
  .nav-item { min-height: 38px; }
  .detail-topbar { padding-inline: max(28px, calc((100vw - 1180px) / 2 + 24px)); }
  .detail-content { width: min(1180px, 100%); padding: 28px 24px 52px; gap: 18px; }
  .detail-layout, .detail-primary, .detail-secondary { gap: 18px; }
  .hero { padding: 29px 30px; }
  .hero h1 { font-size: clamp(38px, 5vw, 52px); }
  .detail-section { padding: 24px; }
  .detail-section h2 { font-size: 27px; }
}

@media (min-width: 920px) {
  .desktop-status-filters { justify-content: flex-end; }
  .lead-card h2 { font-size: 20px; }
  .lead-card .opportunity { font-size: 15px; }
  .card-signal-line, .detail-section p, .contact-card > p:not(.contact-title):not(.contact-meta):not(.verification-line) { font-size: 13px; }
}

@media (min-width: 1040px) {
  .app-shell { padding-bottom: 52px; }
  .today-header, .main-content { width: min(1200px, calc(100% - 64px)); }
  .today-header {
    display: block;
  }
  .header-topline { display: flex; }
  .sync-label {
    left: 32px;
    bottom: 9px;
    margin: 0;
    text-align: left;
  }
  .main-content { padding-inline: 0; }
  .market-toolbar { grid-template-columns: 210px minmax(0, 1fr); }
  .bottom-nav {
    position: absolute;
    top: 20px;
    bottom: auto;
    width: 230px;
    min-height: 50px;
    border-color: rgb(255 255 255 / 24%);
    background: rgb(255 255 255 / 10%);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(10px);
  }
  .nav-item { min-height: 40px; color: rgb(255 255 255 / 72%); }
  .nav-item:hover, .nav-item.active { color: #fff; }
  .nav-item.active { background: rgb(255 255 255 / 12%); }
  .detail-topbar { padding-inline: max(32px, calc((100vw - 1280px) / 2 + 24px)); }
  .detail-content { width: min(1280px, calc(100% - 64px)); padding-inline: 0; }
  .detail-layout { grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr); gap: 22px; }
  .detail-primary, .detail-secondary { gap: 18px; }
  .detail-status-mobile { display: none; }
  .detail-action-panel {
    position: sticky;
    z-index: 5;
    top: calc(84px + env(safe-area-inset-top));
    display: block;
    border-top: 4px solid var(--coral);
    box-shadow: var(--shadow-raised);
  }
  .detail-action-panel .status-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }
  .detail-action-panel .status-button { width: 100%; min-width: 0; padding-inline: 8px; }
  .mobile-action-dock { display: none; }
  .detail-shell { padding-bottom: 52px; }
}

@media (min-width: 1240px) {
  .lead-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .app-shell.search-open .toolbar,
  .app-shell.large-feed .toolbar { grid-template-columns: minmax(340px, .75fr) minmax(0, 1.25fr); }
}

@media (min-width: 1600px) {
  .today-header, .main-content { width: min(1200px, calc(100% - 80px)); }
  .lead-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Decision-first lead brief */
.detail-shell { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.detail-topbar {
  min-height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: var(--navy);
  box-shadow: 0 1px 0 var(--rule), 0 8px 22px rgb(0 0 0 / 20%);
  backdrop-filter: none;
}
.detail-topbar strong { font-size: 17px; }
.detail-topbar .topbar-button { min-width: 64px; min-height: 44px; padding: 8px; border-radius: var(--r-sm); background: transparent; color: var(--heading); }
.lead-pagination { display: flex; gap: 4px; }
.lead-pagination .topbar-button { min-width: 44px; width: 44px; border: 1px solid var(--rule); padding: 0; text-align: center; }
.lead-pagination .topbar-button:hover:not(:disabled) { border-color: #71808d; background: var(--variant); }
.detail-content { width: min(760px, 100%); padding: 12px 14px 28px; gap: 10px; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 128px;
  border-radius: var(--r-md);
  padding: 16px;
}
.hero-copy { min-width: 0; }
.hero-meta { margin: 0; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(34px, 5vw, 58px); font-weight: 400; line-height: .9; letter-spacing: .25px; }
.hero .opportunity { display: block; overflow: visible; max-width: 65ch; margin: 0; color: #d7dee4; font-size: 14px; line-height: 1.42; }
.brief-updated { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.hero-score-details { position: relative; z-index: 8; align-self: start; min-width: 0; }
.hero-score-details > summary {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  min-width: 104px;
  min-height: 58px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgb(255 255 255 / 5%);
  color: var(--heading);
  padding: 8px;
  cursor: pointer;
  list-style: none;
}
.hero-score-details > summary::-webkit-details-marker { display: none; }
.hero-score-details > summary strong { grid-column: 1; font-size: 24px; line-height: .9; }
.hero-score-details > summary span { grid-column: 2; margin: 0; color: var(--muted); font-size: 10px; transform: none; }
.hero-score-details > summary small { grid-column: 1 / -1; max-width: 116px; margin-top: 4px; color: #c5d0d7; font-size: 10px; line-height: 1.25; text-align: right; white-space: normal; }
.crm-sync-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--r-md);
  background: rgb(17 24 32 / 38%);
  padding: 10px 12px;
}
.crm-sync-panel.is-synced { border-color: rgb(169 232 206 / 38%); background: rgb(25 63 52 / 48%); }
.crm-sync-panel.is-failed { border-color: rgb(255 159 143 / 48%); background: rgb(117 60 54 / 28%); }
.crm-sync-copy { display: grid; min-width: 0; gap: 2px; }
.crm-sync-kicker { color: var(--coral-ink); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.crm-sync-copy strong { overflow: hidden; color: var(--heading); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crm-sync-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.crm-sync-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; flex: none; }
.crm-sync-button { width: auto; min-width: 142px; }
.crm-sync-link { display: inline-flex; align-items: center; min-height: 44px; color: #c9e2f4; font-size: 11px; font-weight: 800; text-decoration: none; }
.crm-sync-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crm-sync-badge { display: inline-flex; align-items: center; gap: 3px; border: 1px solid rgb(169 232 206 / 34%); border-radius: var(--r-sm); background: rgb(25 63 52 / 65%); color: #a9e8ce; padding: 3px 6px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.score-breakdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: min(310px, calc(100vw - 44px));
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: var(--shadow-raised);
}
.score-breakdown .score-item { margin: 8px 0; }
.score-breakdown .score-row { margin-bottom: 4px; font-size: 12px; }
.score-breakdown .score-track { height: 5px; background: #3a4650; }
.score-breakdown .score-track span { background: #9eabb5; }
.detail-jump-nav {
  position: sticky;
  z-index: 18;
  top: calc(58px + env(safe-area-inset-top));
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  margin: 0 -6px;
  background: rgb(17 24 32 / 96%);
  padding: 7px 6px;
  box-shadow: 0 8px 16px rgb(0 0 0 / 16%);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}
.detail-jump-nav::-webkit-scrollbar { display: none; }
.detail-jump-nav button { flex: 1; min-width: 76px; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; }
.detail-jump-nav button:hover { border-color: #71808d; color: var(--heading); }
.detail-jump-nav button[aria-current="true"] { border-color: #71808d; background: var(--variant); color: var(--heading); }
.related-opportunities { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.related-opportunities > summary { min-height: 44px; display: flex; align-items: center; padding: 9px 12px; color: #d8e0e5; cursor: pointer; font-size: 11px; font-weight: 800; }
.related-opportunities > div { display: grid; border-top: 1px solid var(--rule); padding: 5px; }
.related-opportunities button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); padding: 7px 9px; text-align: left; }
.related-opportunities button:hover, .related-opportunities button[aria-current="true"] { background: var(--variant); }
.related-opportunities button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-opportunities button small { flex: none; color: var(--muted); font-size: 9px; }
.detail-flow { display: grid; align-items: start; gap: 10px; min-width: 0; }
.detail-section { scroll-margin-top: 118px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); padding: 15px; box-shadow: 0 10px 28px rgb(0 0 0 / 14%); }
.company-section { grid-column: 1 / -1; }
.company-profile-grid { display: grid; gap: 14px; min-width: 0; }
.company-summary { min-width: 0; }
.company-label { margin: 0 0 6px; color: var(--coral-ink); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.company-summary > p:last-child { max-width: 65ch; margin: 0; color: #d8dfe4; font-size: 14px; line-height: 1.5; }
.company-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.company-facts > div { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(0, 1fr); align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding: 9px 0; }
.company-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.company-facts dd { min-width: 0; margin: 0; color: var(--heading); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.company-value.muted { color: var(--muted); font-weight: 400; }
.company-website { color: #c9e2f4; font-size: 12px; font-weight: 750; text-decoration: none; }
.company-website:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.company-sources { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.company-sources h3 { margin-bottom: 4px; }
.detail-section > .eyebrow { display: none; }
.detail-section h2 { margin: 0; font-size: 19px; line-height: 1.15; }
.detail-section h3 { margin: 0 0 9px; color: var(--heading); font-size: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-heading > span { border-radius: var(--r-sm); background: var(--variant); color: var(--muted); padding: 4px 8px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.evidence-signal { border-left: 3px solid #9eabb5; background: var(--blue); padding: 11px 12px; }
.evidence-signal > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.evidence-signal strong { color: var(--heading); font-size: 13px; }
.evidence-signal small { flex: none; color: var(--muted); font-size: 10px; }
.evidence-signal p { max-width: 65ch; margin: 6px 0 0; color: #d5dde3; font-size: 13px; line-height: 1.42; }
.evidence-relevance { max-width: 65ch; margin: 12px 0; color: #d8dfe4; font-size: 14px; line-height: 1.48; }
.evidence-fact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 0; }
.evidence-fact span, .evidence-fact small { color: var(--muted); font-size: 10px; }
.evidence-fact strong { color: var(--heading); font-size: 12px; }
.evidence-disclosure, .fallback-roles { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 9px; }
.evidence-disclosure > summary, .fallback-roles > summary { min-height: 36px; color: #cbd5dc; cursor: pointer; font-size: 12px; font-weight: 750; }
.evidence-disclosure > summary, .fallback-roles > summary { min-height: 44px; display: flex; align-items: center; }
.quality-group, .sources-group { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px; }
.quality-list { gap: 6px; }
.quality-warning, .quality-clear { grid-template-columns: 20px minmax(0, 1fr); gap: 8px; border: 1px solid transparent; border-radius: var(--r-md); padding: 8px 9px; }
.quality-warning.severity-important { border-color: #795244; background: #3b2d28; }
.quality-warning.severity-critical { border-color: #ff7958; background: #5a2b25; }
.quality-warning.severity-attention { border-color: #4b5660; background: #2c343b; }
.quality-warning.severity-info { border-color: transparent; background: transparent; padding-block: 5px; }
.quality-warning-icon, .quality-clear > span { width: 20px; height: 20px; font-size: 11px; }
.quality-warning.severity-critical .quality-warning-icon { background: #d75e3f; color: #fff0e9; }
.quality-warning.severity-info .quality-warning-icon { background: #3b4650; color: #c7d0d6; }
.quality-warning p, .quality-clear p { margin-top: 2px; font-size: 11px; line-height: 1.35; }
.quality-action { display: inline-flex; min-height: 44px; align-items: center; margin-top: 2px; color: #cbdce8; font-size: 11px; font-weight: 750; }
.source-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; border-bottom: 1px solid var(--rule); color: inherit; padding: 7px 3px; text-decoration: none; }
.source-row:last-child { border-bottom: 0; }
.source-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.source-row strong { display: block; overflow: hidden; color: #dce4e9; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.source-row small { color: var(--muted); font-size: 10px; }
.source-row .source-quote { display: block; overflow: hidden; color: #b9c8d2; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.source-row > span:last-child { flex: none; color: var(--muted); }
.contact-card { margin-top: 8px; border-radius: var(--r-md); background: var(--surface-raised); padding: 11px; box-shadow: 0 8px 22px rgb(0 0 0 / 14%); }
.contact-card.selected { border-color: #557266; background: #263732; box-shadow: none; }
.contact-card-kicker { color: var(--muted); }
.contact-card h3 { font-size: 16px; }
.contact-card .contact-title { font-size: 13px; }
.contact-card > p:not(.contact-title):not(.contact-meta):not(.verification-line) { max-width: 65ch; margin: 8px 0; color: #d0d8de; font-size: 12px; line-height: 1.4; }
.contact-card .contact-meta, .verification-line { margin: 3px 0; font-size: 10px; }
.contact-selected { display: inline-flex; align-items: center; gap: 4px; color: #a9e8ce; font-size: 10px; font-weight: 800; }
.contact-use-button { width: auto; min-height: 44px; margin-top: 6px; padding: 7px 11px; font-size: 11px; }
.contact-actions { gap: 2px; margin-top: 4px; }
.link-button { min-height: 44px; padding: 8px; color: #cbdce8; font-size: 11px; text-decoration: none; }
.fallback-roles .role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fallback-roles .role-list li { margin: 5px 0; padding-left: 15px; font-size: 11px; }
.fallback-roles .role-list li::before { width: 5px; height: 5px; background: #9eabb5; }
.detail-disclosure { padding: 0; overflow: hidden; }
.detail-disclosure > summary { display: grid; gap: 5px; min-height: 72px; padding: 14px 15px; cursor: pointer; list-style: none; }
.detail-disclosure > summary::-webkit-details-marker { display: none; }
.detail-disclosure > summary > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.detail-disclosure > summary strong { color: var(--heading); font-size: 18px; }
.detail-disclosure > summary small { color: var(--muted); font-size: 10px; }
.summary-preview { display: -webkit-box; overflow: hidden; color: #bac4cb; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.detail-disclosure[open] > summary { border-bottom: 1px solid var(--rule); }
.disclosure-content { padding: 14px 15px 15px; }
.outreach-angle { max-width: 65ch; margin: 0 0 12px; color: #cbd4da; font-size: 12px; line-height: 1.4; }
.outreach-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 11px; border-radius: var(--r-md); background: var(--navy); padding: 4px; }
.outreach-tabs button { min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font-weight: 750; }
.outreach-tabs button.active { background: var(--variant); color: var(--heading); }
.draft-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.outreach-editor { width: 100%; min-height: 170px; resize: vertical; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--navy); color: var(--ink); padding: 12px; line-height: 1.5; }
.inmail-subject { width: 100%; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--navy); color: var(--ink); padding: 10px 12px; }
.subject-count { display: flex; justify-content: flex-end; margin: 5px 0 10px; color: var(--muted); font-size: 10px; }
.draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.draft-footer > span { color: var(--muted); font-size: 10px; }
.draft-footer > span.over-limit { color: #ff9f8f; font-weight: 800; }
.compact-button { width: auto; min-height: 44px; border-radius: var(--r-sm); padding: 8px 12px; font-size: 11px; }
.note-input { min-height: 96px; }
.rejection-history { border-left: 3px solid #9eabb5; background: var(--blue); padding: 9px 10px; font-size: 11px; }
.detail-action-dock { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, 1fr) 46px; align-items: center; gap: 7px; min-height: 130px; border-top: 1px solid var(--rule); background: var(--navy); padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgb(0 0 0 / 28%); }
.dock-status-segments { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; min-width: 0; border-radius: var(--r-md); background: var(--sand); padding: 4px; }
.dock-status-segments button { min-width: 0; min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); padding: 6px 4px; font-size: 10px; font-weight: 700; }
.dock-status-segments button.active { background: var(--variant); color: var(--heading); box-shadow: inset 0 0 0 1px #71808d; }
.dock-primary { min-width: 0; }
.dock-overflow { position: relative; }
.dock-overflow > summary { display: grid; place-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r-sm); color: var(--heading); cursor: pointer; list-style: none; }
.dock-overflow > summary::-webkit-details-marker { display: none; }
.dock-overflow > div { position: absolute; right: 0; bottom: calc(100% + 9px); display: grid; gap: 4px; width: 170px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface-raised); padding: 6px; box-shadow: var(--shadow-raised); }
.dock-overflow button { min-height: 44px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--heading); padding: 8px 10px; text-align: left; }
.dock-overflow button:hover { background: var(--variant); }
.mobile-action-dock, .detail-action-panel, .detail-status-mobile { display: none !important; }
.rejection-dialog { width: min(430px, calc(100% - 28px)); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface-raised); color: var(--ink); padding: 0; box-shadow: var(--shadow-raised); }
.rejection-dialog::backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: blur(3px); }
.rejection-dialog form { display: grid; gap: 13px; padding: 20px; }
.rejection-dialog h2 { margin: 0; color: var(--heading); font-size: 21px; }
.rejection-dialog p { margin: -5px 0 0; color: var(--muted); font-size: 12px; }
.rejection-dialog label { display: grid; gap: 6px; color: var(--heading); font-size: 12px; font-weight: 700; }
.rejection-dialog select, .rejection-dialog textarea { width: 100%; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--navy); color: var(--ink); padding: 10px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-actions .primary-button, .dialog-actions .secondary-button { min-height: 44px; border-radius: var(--r-sm); }

@media (max-width: 759px) {
  .today-header { display: grid; }
  .sync-label { width: 100%; min-height: 28px; }
  .platform-toolbar { margin-inline: 0; }
  .platform-toolbar > .eyebrow { display: none; }
  .platform-chip { min-height: 44px; }
  .bottom-nav { position: static; width: 100%; min-height: 52px; margin-top: 7px; }
  .pipeline-controls { grid-template-columns: minmax(0, 1fr); }
  .filter-row { width: 100%; padding-right: 20px; }
  .filter-chip { padding-inline: 9px; }
  .sort-control { justify-self: end; }
  .sort-label { display: none; }
  .sort-control select { min-width: 112px; }
  .nav-item,
  .filter-chip,
  .sort-control select,
  .country-chip,
  .active-filter-chip { min-height: 44px; }
  .detail-shell { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .detail-jump-nav { mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 22px), transparent 100%); }
  .crm-sync-panel { align-items: flex-start; flex-direction: column; gap: 8px; }
  .crm-sync-actions { width: 100%; justify-content: flex-start; }
  .crm-sync-button { flex: 1 1 auto; }
}

/* Product polish: clearer hierarchy, stronger affordances and safer responsive spacing. */
.toolbar-heading { display: none; min-width: 0; }
.toolbar-heading .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
.toolbar-heading > p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.organisation-mark { background: var(--blue); color: var(--coral-ink); }
.organisation-mark > span { visibility: visible; }
.organisation-mark img { position: relative; z-index: 1; opacity: 0; transition: opacity var(--t-med) var(--ease-out); }
.organisation-mark img.loaded { opacity: 1; }
.filter-chip.active,
.country-chip.active { box-shadow: inset 0 -2px 0 var(--coral); }
.detail-content { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

@media (min-width: 760px) {
  .results-summary { display: flex; }
  .detail-content { padding-bottom: 124px; }
  .sort-label { display: inline; }
  .toolbar-heading { display: block; }
  .toolbar-heading + .search-box { display: flex; }
  .toolbar { align-items: center; }
  #search-toggle-button { display: none; }
}

@media (min-width: 1040px) {
  .toolbar {
    display: grid;
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 18px;
    margin: 0 0 13px;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: rgb(41 50 61 / 82%);
    padding: 10px 12px;
  }
  .toolbar .search-box { display: flex; min-height: 44px; width: 100%; box-shadow: none; }
  .toolbar .pipeline-controls { width: 100%; }
  .toolbar .sort-control { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
  .header-action-label { display: inline !important; color: var(--heading); font-size: 11px; letter-spacing: .02em; }
  .header-icon-button { width: auto; gap: 7px; padding-inline: 12px; font-size: 20px; }
  .header-icon-button span:first-child { font-size: 20px; }
  #search-toggle-button { display: none; }
  .account-menu summary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; padding-inline: 12px; }
  .results-summary { align-items: flex-end; flex-direction: row; justify-content: space-between; margin-bottom: 12px; }
  .results-summary > p { margin-bottom: 2px; }
}

@media (max-width: 359px) {
  .detail-jump-nav {
    padding-right: 16px;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 18px), transparent 100%);
  }
  .detail-jump-nav button { flex: 0 0 76px; }
}

@media (min-width: 760px) {
  .detail-topbar { padding-inline: max(24px, calc((100vw - 1100px) / 2)); }
  .detail-content { width: min(1100px, 100%); padding: 18px 24px 36px; gap: 12px; }
  .hero { min-height: 138px; padding: 20px 22px; }
  .hero h1 { font-size: clamp(34px, 5vw, 58px); }
  .hero .opportunity { font-size: 15px; }
  .detail-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .evidence-section { grid-column: 1 / -1; }
  .notes-section { grid-column: 1 / -1; }
  .detail-section { padding: 18px; }
  .company-profile-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); align-items: start; gap: 24px; }
  .detail-disclosure { padding: 0; }
  .contacts-section .contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .contacts-section .contact-card > :not(.contact-card-header):not(.contact-actions):not(.contact-use-button) { grid-column: 1 / -1; }
  .contacts-section .contact-card-header { grid-column: 1 / -1; }
  .contacts-section .contact-actions { grid-column: 1; }
  .contacts-section .contact-use-button { grid-column: 2; grid-row: 5; }
  .detail-action-dock { left: 50%; grid-template-columns: minmax(320px, 1.4fr) minmax(250px, .8fr) 46px; width: min(980px, calc(100% - 32px)); min-height: 76px; bottom: 14px; transform: translateX(-50%); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 7px; }
  .dock-status-segments { grid-column: auto; }
  .detail-shell { padding-bottom: 100px; }
}

@media (min-width: 1040px) {
  .detail-content { width: min(1180px, calc(100% - 64px)); padding-inline: 0; }
  .evidence-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px; align-items: start; }
  .evidence-section .section-heading { grid-column: 1 / -1; }
  .evidence-core { grid-column: 1; min-width: 0; }
  .evidence-support { grid-column: 2; min-width: 0; }
  .evidence-support .quality-group { margin-top: 0; border-top: 0; padding-top: 0; }
  .evidence-support .sources-group { margin-top: 12px; }
}

body p:not(.eyebrow):not(.hero-meta),
body li { line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .lead-card img { opacity: 1; }
}

@media print {
  .detail-topbar, .bottom-nav, .mobile-action-dock, .detail-action-panel, .toast { display: none !important; }
  .detail-content { width: 100%; }
  .detail-layout { display: block; }
  .detail-section { break-inside: avoid; margin-bottom: 14px; box-shadow: none; }
}

/* Keep the fixed action dock from covering the final brief section. */
@media (max-width: 759px) {
  .detail-content { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

@media (min-width: 760px) {
  .detail-content { padding-bottom: 124px; }
}

/* Desktop pipeline: keep heading, search and filters on one intentional line. */
@media (min-width: 1040px) {
  .toolbar {
    grid-template-columns: minmax(180px, .4fr) minmax(280px, .9fr) minmax(520px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
  }
  .toolbar-heading { grid-column: 1; grid-row: 1; }
  .toolbar .search-box { grid-column: 2; grid-row: 1; }
  .toolbar .pipeline-controls {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .toolbar .pipeline-controls .filter-row {
    flex: 1 1 auto;
    max-width: none;
    overflow-x: auto;
    padding-right: 0;
    mask-image: none;
  }
  .toolbar .pipeline-controls .sort-control { margin-left: 0; }
}

/* Mobile sort control: make the second row intentional instead of a floating select. */
@media (max-width: 759px) {
  .pipeline-controls .sort-control {
    display: flex;
    grid-column: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 53px;
    margin-top: 4px;
    border-top: 1px solid rgb(89 102 116 / 48%);
    padding: 10px 0 0;
  }
  .pipeline-controls .sort-label {
    display: inline;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .pipeline-controls .sort-control select {
    min-width: 142px;
    max-width: none;
  }
}
