.bid-pipeline {
  max-width: 1480px;
  margin: auto;
  padding: clamp(18px, 3vw, 46px);
  min-height: 72vh;
}
.bid-workspace,
.bid-bottom,
.bid-pipeline {
  min-width: 0;
}
.bid-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 38px);
  background:
    linear-gradient(105deg, rgba(248, 245, 236, 0.97), rgba(246, 242, 230, 0.89)),
    url(klamath-topography-detail.svg) 70% 50% / cover;
  border: 1px solid #d6d4c9;
  border-top: 4px solid var(--cyan);
}
.bid-hero h1 {
  font-family: inherit;
  font-size: clamp(1.8rem, 3.3vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 12px 0 6px;
  color: var(--deep);
}
.bid-hero p,
.bid-panel > p {
  color: #486071;
  line-height: 1.5;
  margin: 0.55rem 0;
}
.bid-hero-end {
  display: grid;
  justify-items: end;
  gap: 18px;
}
.bid-back,
.bid-actions,
.bid-section-head,
.bid-card-top,
.bid-card-end,
.bid-pct,
.bid-row-head,
.bid-row-foot,
.bid-citation,
.bid-revision {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.bid-back {
  width: max-content;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--link);
}
.bid-actions {
  flex-wrap: wrap;
}
.bid-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.bid-stat {
  position: relative;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--link);
  background: #fff;
  min-height: 100px;
}
.bid-stat svg {
  position: absolute;
  right: 13px;
  top: 12px;
  color: #6c8793;
}
.bid-stat strong {
  font-size: clamp(1.35rem, 2.3vw, 2.65rem);
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  color: var(--deep);
  overflow-wrap: anywhere;
}
.bid-stat span,
.bid-card-top > span:first-child,
.bid-pct,
.bid-facts dt,
.bid-table thead th,
.bid-verified-basis span {
  font-size: 0.71rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  font-weight: 700;
  color: #496171;
}
.bid-panel {
  padding: clamp(14px, 1.8vw, 24px);
  margin: 0 0 16px;
  min-width: 0;
}
.bid-panel h2,
.bid-panel h3,
dialog [data-bid-work] legend {
  color: var(--deep);
}
.bid-section-head {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.bid-section-head h2 {
  font-size: 1.18rem;
  margin: 0;
}
.bid-filters,
.bid-search {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bid-filters {
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.bid-search {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 9px;
  color: var(--muted);
}
.bid-search input,
.bid-filters select {
  min-height: 38px;
}
.bid-search input {
  border: none;
  min-width: 0;
  max-width: 190px;
  background: transparent;
}
.bid-filters select {
  max-width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 6px;
}
.bid-filters [data-filter-count] {
  margin-left: auto;
  color: #486071;
  font-size: 0.8rem;
}
.bid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: 12px;
}
.bid-project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  background: linear-gradient(125deg, #fff, #fafaf6);
  border: 1px solid var(--line);
  border-top: 3px solid #6e8a96;
  transition: border-color 0.15s;
}
.bid-project-card:hover,
.bid-project-card:focus-visible {
  border-color: var(--link);
}
.bid-card-top,
.bid-pct,
.bid-row-head,
.bid-row-foot {
  justify-content: space-between;
}
.bid-project-card > strong {
  font-size: 1.15rem;
  color: var(--deep);
  margin-top: 8px;
}
.bid-project-card > p {
  font-size: 0.86rem;
  color: #4e6372;
  margin: 0 0 12px;
}
.bid-pct {
  margin-top: auto;
}
.bid-project-card progress {
  width: 100%;
  height: 6px;
  accent-color: var(--link);
}
.bid-card-end {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
.bid-card-end svg:last-child {
  margin-left: auto;
}
.bid-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.bid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
.bid-table td,
.bid-table th {
  padding: 10px 9px;
  border-bottom: 1px solid #e2e7e6;
}
.bid-table td .btn {
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 7px 11px;
}
.bid-table td:nth-child(3),
.bid-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bid-table small,
.bid-revision small,
.bid-totals small,
.bid-history small {
  display: block;
  margin-top: 4px;
  color: #526978;
  font-size: 0.77rem;
}
.bid-line-link {
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 700;
  color: var(--link);
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bid-division th {
  background: #f0f3f1;
  color: var(--deep);
  font-size: 0.73rem;
  letter-spacing: 0.045em;
}
.bid-division th span {
  color: #4a6473;
  margin-left: 8px;
  text-transform: uppercase;
}
.bid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}
.bid-readiness {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.84rem;
}
.bid-readiness > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #476273;
}
.bid-readiness strong {
  text-align: right;
}
.bid-revision {
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.bid-revision span {
  flex: 1;
}
.bid-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
}
.bid-grand {
  background: var(--deep);
  color: white;
  font-size: 1.1rem;
}
.bid-subtotal {
  background: #f2f4ee;
}
.bid-totals,
.bid-cost-row,
.bid-facts,
.bid-check-line,
.bid-issues {
  margin: 10px 0 16px;
}
.bid-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  font-size: 0.87rem;
}
.bid-facts dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.bid-part,
.bid-cost-row,
.bid-select-list {
  padding: 14px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  min-width: 0;
}
.bid-citation {
  flex-wrap: wrap;
  color: #3c596b;
  font-size: 0.85rem;
}
.bid-check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bid-verified-basis {
  display: grid;
  padding: 13px;
  background: #eef4ef;
  gap: 5px;
}
.bid-panel > summary,
.bid-issues > summary {
  cursor: pointer;
  font-weight: 700;
}
.bid-issues li,
.bid-history li {
  padding: 4px 0;
}
.bid-workspace [hidden],
.bid-pipeline [hidden],
dialog [data-bid-work] [hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .bid-bottom {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .bid-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .bid-hero-end {
    justify-items: start;
    gap: 9px;
  }
  .bid-stats {
    gap: 8px;
  }
  .bid-stat svg {
    display: none;
  }
}
@media (max-width: 600px) {
  .bid-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bid-stat {
    min-height: 76px;
    padding: 10px;
  }
  .bid-filters select {
    max-width: 160px;
  }
  .bid-search input {
    max-width: 135px;
  }
  .bid-section-head {
    align-items: flex-start;
  }
  .bid-row-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .bid-pipeline {
    padding: 12px;
  }
  .bid-hero .btn {
    font-size: 0.74rem;
  }
}

.bid-training-files {
  margin: 0 0 18px;
  color: var(--link);
  font-weight: 700;
}
.bid-training-files summary {
  cursor: pointer;
}
.bid-training-files .bid-actions {
  margin-top: 10px;
}
