:root {
  --navy-950: #03142d;
  --navy-900: #061b37;
  --navy-800: #0b2749;
  --ink: #081124;
  --muted: #5b6678;
  --line: #dce3ed;
  --surface: #ffffff;
  --page: #f6f9fc;
  --orange: #ff8a13;
  --orange-dark: #f06a00;
  --green: #087a1b;
  --blue: #064b94;
  --violet: #6d3edb;
  --shadow: 0 18px 40px rgba(8, 17, 36, 0.12);
  --soft-shadow: 0 8px 24px rgba(8, 17, 36, 0.1);
  --radius: 8px;
  font-family: "Trebuchet MS", "Aptos", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0 410px, var(--page) 410px),
    var(--page);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 96px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  padding: 0 44px;
  color: #fff;
  background: var(--navy-950);
}

.brand,
.mobile-menu,
.top-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  width: max-content;
}

.brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--navy-950), inset 0 0 0 8px rgba(255,255,255,0.72);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  inset: 9px;
  border: 2px solid var(--orange);
}

.brand-mark::after {
  inset: 18px;
  background: var(--orange);
}

.brand-mark span {
  width: 7px;
  height: 7px;
  right: 7px;
  top: 15px;
  border: 2px solid #fff;
}

.brand-text {
  display: grid;
  font-size: 25px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--orange);
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-weight: 700;
  font-size: 16px;
}

.desktop-nav a {
  position: relative;
  padding: 38px 0 32px;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 3px;
  background: var(--orange);
}

.top-actions {
  justify-content: flex-end;
  gap: 20px;
}

.icon-button,
.mobile-menu,
.avatar {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 4px;
}

.icon-button svg {
  width: 100%;
  height: 100%;
}

.alert-button span {
  position: absolute;
  right: -6px;
  top: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 13px;
  font-weight: 800;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #31425e;
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 460px;
  padding: 64px 46px 86px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(3,20,45,0.98) 0%, rgba(3,20,45,0.93) 36%, rgba(3,20,45,0.56) 67%, rgba(3,20,45,0.78) 100%),
    url("assets/contract-radar-hero.png") center right / cover;
}

.hero-copy {
  max-width: 820px;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 820px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 900;
}

.hero p {
  margin: 4px 0;
  max-width: 540px;
  font-size: 24px;
  line-height: 1.38;
  font-weight: 700;
}

.hero p strong {
  color: var(--orange);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 34px;
}

.primary-button,
.watch-button,
.details-button,
.match-panel button,
.sidebar-alert button {
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 66px;
  padding: 0 26px;
  color: #fff;
  background: linear-gradient(180deg, #ff9a20, #ff7d08);
  box-shadow: 0 9px 18px rgba(255, 138, 19, 0.25);
  font-size: 19px;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 18px;
}

.watch-button span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.watch-button svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: none;
  transform: translateX(1px);
}

.hero-callout {
  position: absolute;
  right: 58px;
  bottom: 74px;
  display: flex;
  gap: 18px;
  width: 380px;
  padding: 28px;
  color: var(--ink);
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.shield {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
}

.shield svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
  stroke: currentColor;
}

.hero-callout h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.hero-callout p {
  margin: 0;
  color: #0d1729;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.source-rail {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: calc(100% - 92px);
  max-width: 1168px;
  margin: -46px auto 44px;
  padding: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.source-rail article {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  border-right: 1px solid var(--line);
}

.source-rail article:last-child {
  border-right: 0;
}

.source-rail svg {
  width: 42px;
  height: 42px;
  color: var(--navy-800);
}

.source-rail span {
  display: grid;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
}

.source-rail strong {
  color: var(--ink);
  font-size: 18px;
}

.dashboard-wrap {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 52px;
}

.sidebar {
  min-height: 770px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(8, 17, 36, 0.04);
}

.sidebar nav {
  display: grid;
  padding: 0 0 22px;
}

.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 20px;
  color: #1b263a;
  font-weight: 700;
}

.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(255,138,19,0.08), rgba(255,255,255,0));
}

.sidebar nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
}

.sidebar nav svg {
  width: 20px;
  height: 20px;
}

.sidebar nav span {
  margin-left: auto;
  padding: 3px 7px;
  color: var(--orange-dark);
  background: #fff1df;
  border-radius: 8px;
  font-size: 12px;
}

.sidebar-alert {
  margin: 48px 20px 0;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-alert svg {
  width: 25px;
  height: 25px;
}

.sidebar-alert h3 {
  margin: 12px 0 10px;
  font-size: 15px;
}

.sidebar-alert p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-alert button {
  width: 100%;
  height: 46px;
  border: 1px solid #8793a6;
  color: var(--ink);
  background: #fff;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 4px 0 28px;
}

.dashboard-heading h2,
.section-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.dashboard-heading p {
  display: none;
  margin: 8px 0 0;
  color: #333f52;
  font-size: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.stat-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  min-height: 154px;
  padding: 26px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(8, 17, 36, 0.04);
}

.stat-card span {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
}

.stat-card span svg {
  width: 28px;
  height: 28px;
}

.stat-card strong {
  font-size: 36px;
  line-height: 1;
}

.stat-card p {
  margin: 6px 0 0;
  font-weight: 700;
  line-height: 1.35;
}

.stat-card a {
  grid-column: 2;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 900;
}

.stat-card.green span { color: var(--green); background: #dbf4df; }
.stat-card.orange span { color: var(--orange-dark); background: #ffecd8; }
.stat-card.blue span { color: var(--blue); background: #e4f0ff; }
.stat-card.violet span { color: var(--violet); background: #f0e8ff; }
.stat-card.green a { color: var(--green); }
.stat-card.orange a { color: var(--orange-dark); }
.stat-card.blue a { color: var(--blue); }
.stat-card.violet a { color: var(--violet); }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title a {
  color: var(--blue);
  font-weight: 900;
}

.mobile-label {
  display: none;
}

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

.opportunity-card {
  position: relative;
  padding: 20px 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 14px rgba(8, 17, 36, 0.07);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.score-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-line strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 40px;
  color: var(--green);
  background: #e4f8e5;
  border: 1px solid #8bd28d;
  border-radius: var(--radius);
  font-size: 20px;
}

.score-line span {
  font-size: 13px;
  font-weight: 700;
}

.card-top button {
  width: 26px;
  height: 32px;
  padding: 3px;
  color: #29354a;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.opportunity-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.agency {
  margin: 0 0 20px;
  color: #2d394c;
  font-size: 14px;
  font-weight: 700;
}

.value-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.value-row small,
.mobile-card-row small {
  display: block;
  margin-bottom: 6px;
  color: #2f3b4d;
  font-size: 12px;
}

.value-row strong {
  color: var(--green);
  font-size: 16px;
}

.value-row div:last-child strong {
  color: var(--orange-dark);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 18px 1fr 1.2fr;
  align-items: center;
  gap: 10px;
}

.detail-list svg {
  width: 16px;
  height: 16px;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.detail-list dt {
  color: #3a4658;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.tags span {
  padding: 7px 9px;
  color: #075f17;
  background: #dff2e1;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
}

.details-button {
  width: 100%;
  height: 46px;
  color: #fff;
  background: var(--navy-950);
  border: 0;
  box-shadow: 0 7px 12px rgba(3,20,45,0.18);
}

.details-button.secondary {
  width: auto;
  min-width: 180px;
  padding: 0 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8793a6;
  box-shadow: none;
}

.card-actions {
  display: flex;
}

.empty-state-card {
  display: grid;
  gap: 16px;
  padding: 30px 24px;
}

.empty-state-card h3,
.empty-state-card p {
  margin: 0;
}

.empty-state-card p {
  color: var(--muted);
  line-height: 1.5;
}

.opportunity-placeholder {
  min-height: 240px;
}

.skeleton-line,
.skeleton-chip {
  background: linear-gradient(90deg, #e7edf4 25%, #f3f7fb 50%, #e7edf4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

.skeleton-line {
  height: 18px;
  margin-bottom: 14px;
}

.skeleton-line.long { width: 80%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.short { width: 45%; }

.skeleton-grid {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.skeleton-chip {
  width: 96px;
  height: 28px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 20, 45, 0.54);
}

.detail-panel {
  position: relative;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf2f8;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-right: 44px;
}

.detail-eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-head h3 {
  margin: 0 0 8px;
  font-size: 30px;
}

.detail-agency,
.detail-score,
.detail-summary,
.detail-group h4,
.detail-grid span,
.detail-grid strong,
.detail-list-bullets,
.detail-documents {
  margin: 0;
}

.detail-agency {
  color: var(--muted);
  font-size: 18px;
}

.detail-score {
  align-self: start;
  padding: 12px 16px;
  color: var(--green);
  background: #e4f8e5;
  border: 1px solid #8bd28d;
  border-radius: var(--radius);
  font-weight: 900;
}

.detail-body {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.detail-group {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.detail-group h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.detail-summary {
  color: #263247;
  line-height: 1.55;
}

.detail-list-bullets,
.detail-documents {
  padding-left: 20px;
  color: #263247;
  line-height: 1.7;
}

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

.detail-grid > div {
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid strong {
  font-size: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 32px 72px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.admin-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-nav-button {
  min-width: 174px;
}

.admin-stats {
  margin-bottom: 28px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(8, 17, 36, 0.04);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.6fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-row strong,
.admin-row span {
  display: block;
}

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

.admin-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 88px;
  padding: 7px 10px;
  color: var(--ink);
  background: #edf2f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.admin-pill.active {
  color: var(--green);
  background: #dff2e1;
}

.admin-pill.idle {
  color: #68758c;
}

.admin-pill.warning {
  color: var(--orange-dark);
  background: #ffe9d3;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

.mobile-deadline,
.mobile-card-row,
.mobile-dots {
  display: none;
}

.match-panel {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  padding: 30px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(8, 17, 36, 0.07);
}

.target-icon svg {
  width: 76px;
  height: 76px;
  color: var(--navy-950);
  stroke-width: 2.6;
}

.match-panel h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.match-panel p {
  margin: 0;
  color: #263247;
  line-height: 1.45;
}

.match-panel button {
  min-width: 184px;
  height: 48px;
  color: #fff;
  background: var(--navy-950);
  border: 0;
}

.match-panel a {
  font-weight: 900;
}

.bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  body {
    background: #fff;
  }

  .topbar {
    position: relative;
    height: 104px;
    grid-template-columns: 48px 1fr 48px;
    padding: 0 28px;
  }

  .desktop-nav,
  .top-actions .icon-button:first-child,
  .avatar {
    display: none;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    gap: 12px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    font-size: 25px;
  }

  .mobile-menu {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
  }

  .top-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .mobile-menu svg,
  .top-actions svg {
    width: 32px;
    height: 32px;
  }

  .top-actions {
    justify-content: end;
  }

  .hero {
    min-height: 458px;
    padding: 34px 34px 88px;
    background:
      linear-gradient(90deg, rgba(3,20,45,0.98) 0%, rgba(3,20,45,0.84) 52%, rgba(3,20,45,0.42) 100%),
      url("assets/contract-radar-hero.png") 58% center / cover;
  }

  .hero h1 {
    max-width: 620px;
    font-size: 41px;
    line-height: 1.18;
  }

  .hero p {
    max-width: 470px;
    font-size: 23px;
    line-height: 1.42;
  }

  .hero-actions {
    gap: 18px;
    margin-top: 28px;
  }

  .primary-button {
    min-width: 280px;
    min-height: 64px;
    font-size: 21px;
  }

  .watch-button {
    min-width: 256px;
    min-height: 64px;
    justify-content: center;
    padding: 0 20px;
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 19px;
  }

  .hero-callout {
    display: none;
  }

  .source-rail {
    grid-template-columns: repeat(4, 1fr);
    width: calc(100% - 64px);
    margin-top: -50px;
    margin-bottom: 42px;
    padding: 18px 0;
  }

  .desktop-only-source {
    display: none !important;
  }

  .source-rail article {
    min-height: 82px;
    gap: 10px;
    padding: 0 10px;
  }

  .source-rail svg {
    width: 42px;
    height: 42px;
  }

  .source-rail strong {
    font-size: 21px;
  }

  .source-rail span {
    font-size: 18px;
  }

  .dashboard-wrap {
    display: block;
    max-width: none;
    padding: 0 32px 122px;
  }

  .sidebar {
    display: none;
  }

  .dashboard-heading {
    margin-bottom: 24px;
  }

  .dashboard-heading h2 {
    font-size: 30px;
  }

  .dashboard-heading p {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }

  .stat-card {
    display: flex;
    min-height: 194px;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    text-align: center;
  }

  .stat-card span {
    width: 58px;
    height: 58px;
  }

  .stat-card strong {
    margin-top: -48px;
    margin-left: 74px;
    font-size: 36px;
  }

  .stat-card p {
    margin: 20px 0 0;
    font-size: 18px;
  }

  .stat-card a {
    margin-top: auto;
    font-size: 18px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 27px;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .opportunity-grid {
    display: block;
  }

  .desktop-card {
    display: none;
  }

  .opportunity-card {
    padding: 18px 24px 22px;
  }

  .card-top {
    margin-bottom: 14px;
  }

  .score-line strong {
    width: 58px;
    height: 58px;
    font-size: 25px;
  }

  .score-line span {
    font-size: 18px;
  }

  .mobile-deadline {
    position: absolute;
    right: 26px;
    top: 94px;
    display: block;
    color: var(--orange-dark);
    font-size: 22px;
    font-weight: 900;
  }

  .opportunity-card h3 {
    margin-top: 10px;
    font-size: 25px;
  }

  .agency {
    font-size: 20px;
  }

  .value-row,
  .detail-list,
  .tags,
  .details-button {
    display: none;
  }

  .mobile-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
  }

  .mobile-card-row div {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    column-gap: 12px;
  }

  .mobile-card-row div::before {
    content: "";
    grid-row: span 2;
    width: 24px;
    height: 24px;
    border: 2px solid var(--navy-800);
    border-radius: 5px;
  }

  .mobile-card-row small {
    font-size: 18px;
  }

  .mobile-card-row strong {
    color: var(--green);
    font-size: 22px;
  }

  .mobile-card-row span {
    width: max-content;
    padding: 7px 12px;
    color: var(--green);
    background: #dff2e1;
    border-radius: var(--radius);
    font-weight: 900;
  }

  .mobile-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 28px 0 26px;
  }

  .mobile-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccd5df;
  }

  .mobile-dots span:first-child {
    background: var(--blue);
  }

  .match-panel {
    grid-template-columns: 82px 1fr auto;
    gap: 18px;
    margin-top: 0;
    padding: 28px 12px 26px 12px;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
  }

  .target-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    color: var(--blue);
    background: #e6f2ff;
  }

  .target-icon svg {
    width: 34px;
    height: 34px;
  }

  .match-panel h2 {
    font-size: 24px;
  }

  .match-panel p {
    font-size: 19px;
  }

  .match-panel button {
    min-width: 196px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #8793a6;
    font-size: 17px;
  }

  .match-panel a {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 88px;
    padding: 8px 18px 12px;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px rgba(8,17,36,0.08);
  }

  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: #3b4658;
    font-size: 14px;
    font-weight: 800;
  }

  .bottom-nav svg {
    width: 30px;
    height: 30px;
  }

  .bottom-nav a.active {
    color: var(--orange-dark);
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 88px;
    padding: 0 16px;
    grid-template-columns: 44px 1fr 44px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text {
    font-size: 20px;
    letter-spacing: 1.4px;
  }

  .mobile-menu,
  .top-actions .icon-button {
    width: 40px;
    height: 40px;
  }

  .mobile-menu svg,
  .top-actions svg {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: 420px;
    padding: 34px 22px 88px;
  }

  .hero h1 {
    max-width: 390px;
    font-size: 30px;
  }

  .hero p {
    max-width: 370px;
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 360px;
    gap: 12px;
  }

  .primary-button,
  .watch-button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    font-size: 15px;
    padding: 0 10px;
  }

  .watch-button {
    gap: 8px;
  }

  .watch-button span {
    width: 32px;
    height: 32px;
  }

  .source-rail {
    width: calc(100% - 28px);
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .source-rail article {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
  }

  .source-rail svg {
    width: 32px;
    height: 32px;
  }

  .source-rail strong {
    font-size: 14px;
  }

  .source-rail span {
    font-size: 12px;
  }

  .dashboard-wrap {
    padding: 0 16px 112px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-card {
    min-height: 164px;
  }

  .stat-card p,
  .stat-card a {
    font-size: 15px;
  }

  .opportunity-card h3 {
    padding-right: 90px;
    font-size: 22px;
  }

  .agency,
  .mobile-card-row small,
  .mobile-card-row strong,
  .match-panel p {
    font-size: 16px;
  }

  .mobile-deadline {
    top: 104px;
    font-size: 17px;
  }

  .mobile-card-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .match-panel {
    grid-template-columns: 58px 1fr;
  }

  .match-panel button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
