:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --surface: #f7f9fb;
  --ink: #111827;
  --muted: #64748b;
  --line: #d8e0ea;
  --accent: #0b766d;
  --accent-dark: #064e48;
  --accent-blue: #2563eb;
  --accent-amber: #b7791f;
  --warn: #b54708;
  --success: #137333;
  --soft: #e7f3f1;
  --focus: rgba(8, 123, 116, 0.22);
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06);
  --anchor-offset: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
[id] { scroll-margin-top: var(--anchor-offset); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: #fff;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(22px, calc((100vw - 1240px) / 2 + 22px));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #145c54 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}
.brand-copy { display: grid; gap: 1px; line-height: 1.05; }
.brand-name { font-size: 20px; letter-spacing: 0; }
.brand-tagline { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.topbar nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}
.public-nav-links {
  margin-left: auto;
}
.topbar nav a, .topbar nav .inline-form button {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 10px;
  font-size: 15px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.topbar nav a:hover, .topbar nav .inline-form button:hover {
  background: var(--soft);
  color: var(--accent-dark);
  text-decoration: none;
}
.topbar nav .nav-cta {
  min-height: 44px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 123, 116, 0.16);
}
.topbar nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.06);
}
.menu-toggle:hover { background: var(--surface); }
.menu-toggle-icon {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 14px;
  place-items: center;
}
.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after,
.menu-toggle-icon span {
  border-radius: 999px;
}
.menu-toggle-icon::before,
.menu-toggle-icon::after,
.menu-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease, top 160ms ease;
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon span { top: 6px; }
.menu-toggle-icon::after { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { top: 6px; transform: rotate(-45deg); }
.inline-form { display: inline; }
.inline-form button { background: transparent; color: var(--accent-dark); padding: 0; min-height: auto; }
.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.account-chip {
  appearance: none;
  display: inline-grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 8px;
  max-width: 178px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
}
.account-avatar,
.account-id-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.account-avatar {
  width: 30px;
  height: 30px;
}
.account-chip-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}
.account-chip-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chip-copy strong { font-size: 13px; }
.account-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.62;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.account-menu.is-account-open .account-chevron {
  transform: translateY(2px) rotate(225deg);
}
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: none;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.14);
}
.account-menu.is-account-open .account-menu-panel { display: grid; }
.topbar nav .account-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 14px;
  text-align: left;
}
.account-menu-form {
  margin: 6px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--line);
}
.topbar nav .account-menu-form button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--warn);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.topbar nav .account-menu-form button:hover {
  background: #fff7ed;
  color: #9a3412;
  transform: none;
}
button, .primary, .secondary, .button-link {
  border: 0;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
button:disabled { cursor: not-allowed; opacity: 0.58; }

.topbar nav .account-chip {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  justify-content: stretch;
  gap: 8px;
  max-width: 178px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.topbar nav .account-chip:hover {
  background: var(--soft);
  color: var(--accent-dark);
  transform: none;
}

.primary, button.primary { background: var(--accent); color: white; box-shadow: 0 10px 20px rgba(11, 118, 109, 0.16); }
.primary:hover, button.primary:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.secondary, .button-link, button.secondary { border: 1px solid var(--line); background: #fff; color: #1f2937; }
.secondary:hover, .button-link:hover, button.secondary:hover { border-color: #b8c5d2; background: var(--surface); color: var(--ink); text-decoration: none; }
.full { width: 100%; }
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}
.status-pill.muted { color: var(--muted); background: var(--surface); }
.status-pill.success { border-color: #b9d6c9; background: #edf8f2; color: var(--success); }
.flash {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 12px 18px;
  border: 1px solid #b9d6c9;
  border-radius: 8px;
  background: #edf8f2;
  color: #164b32;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(22, 75, 50, 0.08);
}
.success { color: var(--success); font-weight: 800; }
.stacked-link { margin-top: 10px; }

main { max-width: 1240px; margin: 0 auto; padding: 34px 22px 64px; }
.hero, .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 36px;
  align-items: center;
  padding: 40px 0;
}
.landing-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  min-height: 0;
  padding: 44px 0 28px;
}
.landing-hero .hero-copy { max-width: 900px; }
.landing-hero h1 { max-width: 920px; }
.landing-hero .hero-lede { max-width: 760px; }
.hero > div:first-child, .hero-copy { max-width: 760px; }
.hero h1, .landing-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.03; margin: 10px 0 18px; }
.hero p { font-size: 20px; color: var(--muted); max-width: 680px; }
.hero-lede { font-size: 18px; color: var(--muted); max-width: 650px; margin: 0; }
.eyebrow { color: var(--accent-dark); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.actions.compact { align-items: flex-start; justify-content: flex-end; }
.hero-summary {
  display: grid;
  gap: 14px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}
.hero-summary div { display: grid; gap: 4px; }
.hero-summary strong { font-size: 26px; }
.hero-summary span { color: var(--muted); font-weight: 700; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
}
.hero-proof div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.hero-proof dt { font-weight: 900; color: var(--ink); }
.hero-proof dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.product-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-bar, .preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.preview-bar strong, .preview-footer strong { color: var(--accent-dark); }
.preview-match {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 20px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.preview-score {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.preview-kicker { margin: 0 0 4px; color: var(--success); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.preview-match h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.12; }
.preview-match p:last-child { margin: 0; color: var(--muted); }
.preview-list { display: grid; }
.preview-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.preview-list span {
  min-width: 38px;
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--soft);
  color: var(--accent-dark);
  text-align: center;
  font-weight: 900;
}
.preview-list p { margin: 0; color: #344155; font-weight: 700; }

.compact-preview { align-self: start; margin-top: 20px; }
.market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.market-stats div {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.market-stats div:last-child { border-right: 0; }
.market-stats strong { color: var(--ink); font-size: 24px; line-height: 1; }
.market-stats span { color: var(--muted); font-size: 12px; font-weight: 800; }
.preview-tenders {
  display: grid;
  border-top: 1px solid var(--line);
}
.preview-tender-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.62fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.preview-tender-row:last-child { border-bottom: 0; }
.preview-tender-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.preview-tender-title span,
.preview-tender-dates dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.preview-tender-title strong {
  color: #273244;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.preview-tender-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  text-align: right;
}
.preview-tender-dates div { min-width: 0; }
.preview-tender-dates dd {
  margin: 2px 0 0;
  color: #273244;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.score-pill {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}
.muted-score { background: var(--soft); color: var(--accent-dark); }
.source-pill {
  display: inline-flex;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}
.quality-pill {
  display: inline-flex;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 8px;
  background: #eef3fb;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 900;
}
.preview-empty {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.preview-note { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.optibid-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(300px, 1.08fr) minmax(260px, 1fr);
  align-self: start;
  margin-top: 0;
  border-color: #cfdbe7;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}
.optibid-preview-bar {
  grid-column: 1 / -1;
  background: #f7fafc;
}
.optibid-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.optibid-scoreboard div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.optibid-scoreboard div:last-child { border-right: 0; }
.optibid-scoreboard span,
.optibid-preview-section > span,
.optibid-preview-draft > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.optibid-scoreboard strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.optibid-scoreboard small {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}
.optibid-preview-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}
.optibid-preview-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.optibid-preview-section li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-weight: 750;
  line-height: 1.35;
}
.optibid-preview-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.optibid-preview-draft {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-top: 0;
  background: #fff;
}
.optibid-preview-draft p {
  margin: 0;
  color: #273244;
  font-weight: 700;
  line-height: 1.48;
}
.optibid-preview .preview-note {
  grid-column: 1 / -1;
}
.market-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.market-proof-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
}
.market-proof-strip div:last-child { border-right: 0; }
.market-proof-strip strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  overflow-wrap: anywhere;
}
.market-proof-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 18px;
}
.value-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}
.value-item span { color: var(--accent-blue); font-weight: 900; }
.value-item h2 { margin: 8px 0 10px; font-size: 22px; }
.value-item p { margin: 0; color: var(--muted); }

.section-intro h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  max-width: 620px;
}
.section-intro p:last-child { margin: 0; color: var(--muted); max-width: 620px; }

.landing-optibid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.optibid-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.optibid-feature-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}
.optibid-feature-grid span {
  width: fit-content;
  border-radius: 8px;
  padding: 5px 8px;
  background: #eef3fb;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 900;
}
.optibid-feature-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}
.optibid-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.landing-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.overview-list {
  display: grid;
  gap: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.overview-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.48fr) 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.overview-list div:last-child { border-bottom: 0; }
.overview-list strong { color: var(--ink); }
.overview-list span { color: var(--muted); }

.setup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0 28px;
}
.setup-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.setup-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: transparent;
}
.setup-steps span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}
.setup-steps strong { display: block; margin-bottom: 4px; }
.setup-steps p { margin: 0; color: var(--muted); }
.landing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 28px;
  align-items: center;
  margin: 38px -22px -64px;
  padding: 34px 22px 42px;
  background: #102f2b;
  color: #fff;
}
.landing-cta .eyebrow { color: #82d8d0; }
.landing-cta h2 {
  max-width: 720px;
  margin: 8px 0 12px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.06;
  color: #fff;
}
.landing-cta p { max-width: 700px; margin: 0; color: #d8e6e3; font-size: 17px; }
.cta-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.cta-proof div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.cta-proof dt { color: #fff; font-size: 18px; font-weight: 900; }
.cta-proof dd { margin: 0; color: #bdd4d0; font-size: 14px; font-weight: 800; }
.cta-action {
  display: grid;
  justify-items: end;
  justify-self: end;
  min-width: 210px;
}
.landing-cta .primary {
  min-height: 70px;
  min-width: 230px;
  padding: 10px 24px;
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.landing-cta .primary:hover { background: #e8f5f4; color: var(--accent-dark); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24); }
.cta-button {
  display: grid;
  gap: 2px;
  text-align: center;
}
.cta-button span { color: var(--accent-dark); font-size: 19px; font-weight: 900; }
.cta-button small { color: #42635f; font-size: 13px; font-weight: 800; }

.landing-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px 0 34px;
}
.contact-form {
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.07);
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.contact-actions .form-note { margin: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.narrow { max-width: 460px; margin: 40px auto; }
.wide { max-width: 960px; margin: 0 auto; }
.error { color: var(--warn); font-weight: 700; }
.muted { color: var(--muted); }
.form-note { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 2px 0 0; }

.auth-layout {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 48px;
  align-items: center;
}
.auth-page { padding: 28px 0 18px; }
.auth-copy { display: grid; gap: 18px; align-content: center; }
.auth-copy h1 { font-size: clamp(40px, 4.5vw, 58px); line-height: 1.02; margin: 0; max-width: 720px; }
.auth-copy > p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.auth-benefits span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #344155;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.035);
}
.auth-preview {
  width: min(100%, 560px);
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 32, 51, 0.08);
}
.auth-preview-head,
.auth-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.auth-preview-head strong { color: var(--accent-dark); }
.auth-preview-score {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.auth-preview-score > span {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}
.auth-preview-score strong { display: block; margin-bottom: 4px; font-size: 18px; }
.auth-preview-score p { margin: 0; color: var(--muted); }
.auth-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
}
.auth-preview-meta div { display: grid; gap: 1px; }
.auth-preview-meta strong { color: var(--ink); font-size: 20px; }
.auth-preview-meta span { color: var(--muted); }
.auth-steps {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.04);
}
.auth-steps li > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
}
.auth-steps strong { display: block; margin-bottom: 2px; }
.auth-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: 0 24px 56px rgba(23, 32, 51, 0.09);
}
.auth-panel-head { display: grid; gap: 5px; }
.auth-panel-head .eyebrow { margin: 0; font-size: 12px; }
.auth-panel h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.auth-panel-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; }
.provider-login { display: grid; gap: 10px; }
.provider-button {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.035);
  font-weight: 800;
}
.provider-button:hover { border-color: #aebdcb; background: var(--surface); box-shadow: 0 12px 24px rgba(23, 32, 51, 0.07); }
.provider-button:disabled { background: var(--surface); }
.provider-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.provider-icon {
  display: block;
  width: 20px;
  height: 20px;
}
.auth-status { min-height: 0; margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.auth-status:not(:empty) {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.auth-status.error {
  color: var(--warn);
  border-color: #f1c5bc;
  background: #fff7f5;
}
.legacy-auth {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.legacy-auth summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  min-height: 34px;
  display: flex;
  align-items: center;
}
.legacy-auth summary:hover { color: var(--accent-dark); }
.legacy-auth form { margin-top: 14px; }

.form-stack, .form-grid { display: grid; gap: 16px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: #334155; font-size: 14px; font-weight: 800; }
.field-title { margin: 0; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfcfd;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
select { min-height: 48px; background: #fff; }
select {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--focus); outline: 0; }
textarea { resize: vertical; }
.profile-limited-textarea {
  resize: none;
  overflow: auto;
  line-height: 1.45;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.field-label-row > span:first-child { min-width: 0; }
.profile-textarea-field .word-counter {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.profile-textarea-field .word-counter[data-limit-reached="true"] { color: var(--warn); }
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  line-height: 1.45;
}
.checkbox-line input { width: auto; margin-top: 4px; }
.checkboxes { display: grid; gap: 10px; align-content: end; }
.checkboxes label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checkboxes input { width: auto; }
.email-settings {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.email-settings legend { font-weight: 800; padding: 0 6px; }
.toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.toggle-row input { width: auto; }
.time-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.time-options label {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 5px;
  font-weight: 700;
}
.time-options input[type="radio"] { width: auto; }
.time-options span { color: var(--muted); font-size: 13px; }
.time-options strong { font-size: 18px; }
.form-actions, .profile-actions { display: flex; justify-content: flex-end; }
.digest-window-note { margin: 0 0 12px; }

.company-lookup {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.company-results {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.company-result {
  display: grid;
  justify-items: start;
  gap: 2px;
  width: 100%;
  min-height: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.company-result:hover { border-color: var(--accent); background: var(--soft); }
.company-result span { color: var(--muted); font-size: 13px; font-weight: 600; }

.country-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.country-picker-head {
  display: grid;
  gap: 2px;
}
.country-picker-head .form-note { text-align: left; }
.country-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.country-option {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 50px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.country-option:hover { border-color: #b9c6d5; background: var(--surface); }
.country-option.is-selected {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px rgba(8, 123, 116, 0.08);
}
.country-option span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}
.country-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.country-option.is-selected small { color: var(--accent-dark); }
.country-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.country-selected[hidden] { display: none; }
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid #b9d6c9;
  border-radius: 999px;
  padding: 6px 8px 6px 10px;
  background: #edf8f2;
  color: #164b32;
  font-size: 13px;
  font-weight: 800;
}
.country-chip button {
  min-height: 20px;
  width: 20px;
  padding: 0;
  border-radius: 50%;
  background: #d7eee3;
  color: var(--accent-dark);
  line-height: 1;
}
.country-empty { margin: 0; color: var(--muted); font-size: 14px; }
.country-search {
  display: grid;
  gap: 8px;
}
.country-search label { color: var(--muted); font-size: 13px; font-weight: 800; }
.country-search input { min-height: 44px; }
.country-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.country-results[hidden] { display: none; }
.country-result {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.country-result:hover { border-color: #b9c6d5; background: var(--surface); }
.country-result.is-selected { border-color: var(--accent); background: var(--soft); }
.country-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.country-result small { color: var(--muted); font-size: 12px; font-weight: 900; }
.country-result.is-selected small { color: var(--accent-dark); }

.cpv-builder {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}
.cpv-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3ebf2;
}
.cpv-builder-head .secondary { min-height: 46px; padding-inline: 18px; }
.cpv-selected, .cpv-suggestions { display: grid; gap: 8px; }
.cpv-chip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cpv-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #b9d6c9;
  border-radius: 8px;
  padding: 9px 10px;
  background: #edf8f2;
  color: #164b32;
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}
.cpv-chip strong { font-size: 13px; }
.cpv-chip span {
  color: #35584c;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.cpv-chip button {
  min-height: 22px;
  width: 22px;
  padding: 0;
  border-radius: 50%;
  background: #d7eee3;
  color: var(--accent-dark);
}
.cpv-empty { margin: 0; color: var(--muted); font-size: 14px; }
.cpv-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.cpv-card strong { display: block; margin-bottom: 2px; }
.cpv-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.cpv-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.cpv-card button { white-space: nowrap; }
.cpv-manual-field {
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding-top: 4px;
}
.cpv-manual-field span { color: var(--muted); font-size: 13px; font-weight: 800; }

.profile-page { display: grid; gap: 20px; }
.profile-mobile-summary { display: none; }
.profile-page-head {
  display: grid;
  gap: 8px;
  max-width: 820px;
}
.profile-page-head h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.06;
}
.profile-error { margin: 0; }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}
.profile-form-stack, .profile-side { display: grid; gap: 16px; }
.profile-side { align-content: start; }
.profile-section { display: grid; gap: 18px; }
.profile-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.profile-section-head h2, .profile-checklist h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.15; }
.profile-intro { margin: 0 0 20px; max-width: 680px; }
.profile-match-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 18px 24px;
  align-items: stretch;
}
.profile-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.profile-match-grid textarea, .profile-match-grid input { font-weight: 600; }
.keyword-field textarea {
  height: 100%;
  min-height: 168px;
  line-height: 1.45;
}
.keyword-field { grid-template-rows: auto minmax(168px, 1fr); }
.score-field {
  grid-template-rows: auto 1fr;
  align-self: stretch;
}
.score-control {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 148px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.score-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
.score-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.score-control input {
  min-height: 38px;
  border: 0;
  padding: 0;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}
.score-control input[type="number"] { appearance: textfield; }
.score-control input::-webkit-outer-spin-button,
.score-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.score-control input:focus { border-color: transparent; box-shadow: none; outline: 0; }
.score-control span { color: var(--muted); font-size: 17px; font-weight: 900; }
.score-range {
  min-height: 28px;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}
.score-range:focus { box-shadow: none; }
.score-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.score-scale span { font-size: inherit; }
.score-control p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.ai-helper-panel {
  display: grid;
  gap: 14px;
  align-self: start;
}
.ai-helper-panel h2 { margin: 0; }
.helper-status {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.helper-status[data-state="ok"] { color: var(--success); font-weight: 700; }
.helper-status[data-state="error"] { color: var(--warn); font-weight: 700; }
.helper-status[data-state="loading"] { color: var(--accent-blue); font-weight: 700; }
.assistant-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b9d6c9;
  border-radius: 8px;
  background: #f6fbf8;
}
.assistant-preview[hidden], .assistant-actions[hidden] { display: none; }
.assistant-preview-head {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7eee3;
}
.assistant-preview-head strong { color: var(--ink); }
.assistant-preview-head span {
  color: #315b43;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.assistant-preview-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.assistant-preview-item span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.assistant-preview-item p {
  max-height: 92px;
  margin: 0;
  overflow: auto;
  color: #273244;
  font-size: 14px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.assistant-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.email-section { gap: 16px; }
.recipient-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.recipient-manager {
  display: grid;
  gap: 12px;
}
.recipient-list {
  display: grid;
  gap: 10px;
}
.recipient-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.recipient-row[hidden] { display: none; }
.recipient-row label { color: var(--muted); font-size: 13px; font-weight: 800; }
.recipient-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.recipient-remove {
  min-height: 40px;
  border: 1px solid #f1c5bc;
  background: #fff7f5;
  color: #9f2e1c;
  font-size: 13px;
  font-weight: 800;
}
.recipient-remove:hover { background: #fdebe7; }
.recipient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.add-recipient-button { gap: 8px; }
.add-recipient-button span[aria-hidden="true"] {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 123, 116, 0.16);
  line-height: 1;
  font-size: 18px;
  font-weight: 900;
}
.add-recipient-button:disabled span[aria-hidden="true"] { background: #dfe7ef; color: var(--muted); }
.time-options label {
  position: relative;
  min-height: 82px;
  background: #fff;
}
.time-options input[type="radio"] {
  justify-self: end;
  margin: 0;
}
.time-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: 0 0 0 1px rgba(8, 123, 116, 0.08);
}
.profile-checklist { display: grid; gap: 14px; }
.profile-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf3;
}
.profile-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.profile-check-list { display: grid; gap: 8px; margin: 0; }
.profile-check-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.profile-check-list dt { font-weight: 800; }
.profile-check-list dd { margin: 0; }
.check-state {
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff4e4;
  color: #8a4b0f;
  font-size: 12px;
  font-weight: 900;
}
.check-state.done { background: #edf8f2; color: #164b32; }

.account-page {
  display: grid;
  gap: 20px;
}
.account-hero {
  max-width: 760px;
}
.account-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 52px);
  line-height: 1.03;
  max-width: 14ch;
}
.account-hero p { max-width: 650px; }
.account-mini-id {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.account-id-avatar {
  width: 48px;
  height: 48px;
  font-size: 15px;
}
.account-mini-id strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.account-mini-id span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}
.account-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.account-side {
  display: grid;
  gap: 16px;
}
.account-section {
  display: grid;
  gap: 16px;
}
.account-section h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}
.account-section .eyebrow { margin: 0; }
.account-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.account-form {
  display: grid;
  gap: 14px;
}
.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-side .account-actions button { width: 100%; }
.account-logout {
  margin-top: -8px;
}
.account-logout button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.subscription-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: normal;
}
.subscription-chip.is-active {
  background: #e4f4eb;
  color: var(--success);
}
.subscription-chip.needs-payment {
  background: #fff4e5;
  color: var(--warn);
}
.account-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.account-facts div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.account-facts div:last-child { border-bottom: 0; }
.account-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.account-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.account-facts.compact div {
  grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
}
.account-payment-actions {
  display: grid;
  gap: 10px;
}

.dashboard-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.dashboard-head h1 { margin: 4px 0 8px; font-size: 36px; }
.dashboard-head p { color: var(--muted); max-width: 760px; }

.run-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: -8px 0 18px;
  padding: 13px 16px;
  border: 1px solid #b9d6c9;
  border-radius: 8px;
  background: #edf8f2;
  color: #164b32;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.04);
}
.run-status strong { display: block; margin-bottom: 2px; }
.run-status p { margin: 0; color: #285c43; }
.run-status span { color: #42635f; font-size: 13px; font-weight: 900; white-space: nowrap; }
.run-status.running { border-color: #bed2f5; background: #eef4ff; color: #1e429f; }
.run-status.running p { color: #475f86; }
.run-status.error { border-color: #f1c5bc; background: #fff7f5; color: #9f2e1c; }
.run-status.error p { color: #8f3d2d; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.stat span { display: block; font-size: 34px; font-weight: 900; letter-spacing: 0; }
.stat .stat-text { font-size: 18px; line-height: 1.2; color: var(--accent-blue); }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title h1, .section-title h2 { margin: 0; }
.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.dashboard-results-title,
.saved-tenders-title {
  align-items: end;
}
.tender-search-form {
  display: grid;
  gap: 7px;
  min-width: min(100%, 430px);
}
.tender-search-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.tender-search-form > div {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.tender-search-form input {
  min-width: 180px;
  font-weight: 800;
}
.tender-search-form .primary,
.tender-search-form .secondary {
  min-height: 46px;
  padding-inline: 16px;
}
.match-list { display: grid; gap: 16px; }
.match-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border: 1px solid #cfdbe6;
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(11, 118, 109, 0.12), rgba(11, 118, 109, 0.035) 16%, rgba(11, 118, 109, 0) 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 250, 252, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0) 72%, rgba(15, 23, 42, 0.035) 100%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(15, 23, 42, 0.035),
    0 10px 24px rgba(15, 23, 42, 0.06);
}
.match-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, #58a38b 100%);
}
.score-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: start;
  justify-self: start;
  gap: 7px;
  width: fit-content;
  min-height: 0;
  border: 1px solid #c3ddd6;
  border-radius: 8px;
  padding: 7px;
  background: #f2fbf8;
  color: #42635f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}
.score {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(145deg, #102f2b 0%, #0b766d 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 13px 24px rgba(7, 78, 72, 0.22);
}
.score-wrap > span {
  line-height: 1;
}
.match-card-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.match-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.match-title-block { display: grid; gap: 7px; min-width: 0; }
.match-card h3 {
  margin: 0;
  color: #12202f;
  font-size: 21px;
  line-height: 1.22;
}
.match-card p { margin: 0; }
.match-card h3, .match-card p, .match-card li, .match-card a { overflow-wrap: anywhere; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #dbe4ec;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: #475569;
}
.notice-badge {
  display: inline-grid;
  gap: 1px;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  min-height: 44px;
  border: 1px solid #bdd8f4;
  border-radius: 999px;
  padding: 6px 12px;
  background: #eef6ff;
  color: #1e429f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: normal;
}
.notice-badge strong {
  color: #466280;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}
.match-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}
.match-facts div {
  min-width: 0;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f8fbfc;
}
.match-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.match-facts dd {
  margin: 3px 0 0;
  color: #273244;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.match-description {
  max-width: 84ch;
}
.match-description .smart-text {
  margin: 0;
}
.reason {
  display: grid;
  gap: 5px;
  border: 1px solid #cfe4df;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f4fbf9;
  color: #264139;
}
.reason strong {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.reason p {
  color: #2d4840;
  font-size: 14px;
  line-height: 1.52;
}
.reason-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #2d4840;
  font-size: 14px;
  line-height: 1.5;
}
.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
}
.match-actions .primary,
.match-actions .secondary {
  min-height: 42px;
}
.inline-action-form {
  display: inline-flex;
  margin: 0;
}
.inline-action-form button {
  min-height: 42px;
}
.saved-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #cfe4df;
  border-radius: 999px;
  padding: 6px 11px;
  background: #f4fbf9;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.tenders-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.tenders-head h1 {
  margin: 0;
}
.tenders-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}
.saved-tenders-panel {
  display: grid;
  gap: 4px;
}
.saved-tender-list {
  display: grid;
  gap: 16px;
}
.saved-tender-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid #cfdbe6;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.saved-tender-score {
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: start;
  width: fit-content;
  border: 1px solid #c3ddd6;
  border-radius: 8px;
  padding: 8px;
  background: #f2fbf8;
  color: #42635f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.saved-tender-score strong {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #102f2b;
  color: #fff;
  font-size: 27px;
  line-height: 1;
}
.saved-tender-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.saved-tender-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.saved-tender-head h3 {
  margin: 7px 0 0;
  color: #12202f;
  font-size: 21px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.smart-text {
  max-width: 82ch;
  margin: 5px 0 2px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.68;
}
.smart-text p {
  margin: 0 0 10px;
}
.smart-text p:last-child {
  margin-bottom: 0;
}
.smart-text-section {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #edf2f7;
}
.smart-text-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.smart-text h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.smart-text h4 span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}
.smart-text ul {
  display: grid;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 0;
}
.smart-text li {
  position: relative;
  list-style: none;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}
.smart-text li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.contract-list { display: grid; gap: 12px; }
.compact-contract-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contract-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff),
    var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.contract-date {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 86px;
  border: 1px solid #cfe4df;
  border-radius: 8px;
  background: #f2fbf8;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.contract-date span {
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}
.contract-card-body { min-width: 0; display: grid; gap: 8px; }
.contract-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.contract-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 150px;
}
.contract-card h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.contract-card p { margin: 0; overflow-wrap: anywhere; }
.contract-note-list {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}
.data-quality, .renewal-text {
  color: #3f4d5d;
  font-size: 14px;
  line-height: 1.45;
}
.contract-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 4px 0;
}
.contract-facts div { min-width: 0; }
.contract-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.contract-facts dd {
  margin: 1px 0 0;
  color: #273244;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.contract-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.contract-open-link { min-height: 38px; padding-inline: 13px; }
.contracts-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.contracts-head h1 { margin: 4px 0 8px; font-size: 40px; line-height: 1.08; }
.contracts-head p { color: var(--muted); max-width: 760px; }
.contracts-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.contracts-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.contracts-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.contracts-summary dt { color: var(--ink); font-size: 30px; font-weight: 900; line-height: 1; }
.contracts-summary dd { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.contracts-filter-panel { margin-bottom: 18px; }
.contracts-filter-title {
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contracts-filter-title .eyebrow,
.contracts-results .eyebrow { margin-bottom: 4px; }
.contracts-filter {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(150px, 180px) minmax(150px, 180px) minmax(200px, 230px) minmax(72px, auto);
  gap: 12px;
  align-items: end;
}
.contracts-filter label {
  min-width: 0;
  min-height: 78px;
  align-content: end;
}
.contracts-search-field input { font-weight: 800; }
.contract-ai-toggle {
  gap: 8px;
  min-width: 0;
  align-self: end;
}
.contract-ai-toggle > span:first-child {
  color: var(--ink);
  font-weight: 700;
}
.contract-ai-toggle .toggle-row {
  margin: 0;
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: #273244;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}
.contract-ai-toggle .toggle-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  box-shadow: none;
  accent-color: var(--accent);
}
.contracts-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
}
.contracts-filter-actions .primary,
.contracts-filter-actions .secondary {
  min-height: 48px;
  padding-inline: 18px;
}
.contracts-filter-actions .primary {
  min-width: 64px;
}
.contracts-filter-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.contracts-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
}
.compact-title { margin-bottom: 12px; }
.timeline-list, .source-quality-list { display: grid; gap: 10px; }
.timeline-row {
  display: grid;
  grid-template-columns: 72px minmax(90px, 1fr) 42px minmax(118px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.timeline-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.timeline-track {
  height: 12px;
  border-radius: 999px;
  background: #edf1f4;
  overflow: hidden;
}
.timeline-track span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--accent);
}
.timeline-row strong { color: var(--ink); font-weight: 900; }
.timeline-row small, .source-quality-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.source-quality-list div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.source-quality-list strong { color: var(--ink); font-weight: 900; }
.source-quality-list span { color: #344155; font-size: 14px; font-weight: 800; }
.contracts-results { display: grid; gap: 0; }
.section-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.bid-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.bid-head h1 { margin: 4px 0 8px; font-size: 40px; line-height: 1.08; }
.bid-head p { color: var(--muted); max-width: 780px; }
.bid-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.bid-proof div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.bid-proof dt { color: var(--ink); font-size: 26px; font-weight: 900; line-height: 1; }
.bid-proof dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.bid-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}
.bid-form {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 98px;
}
.bid-form textarea { min-height: 160px; }
.bid-form.is-processing {
  border-color: #9dccbd;
  box-shadow: 0 18px 42px rgba(8, 123, 116, 0.12);
}
.bid-quota {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfcfb 0%, #f3faf8 100%);
}
.bid-quota-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.bid-quota-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.bid-quota-copy strong { color: var(--ink); font-size: 18px; }
.bid-quota-meter {
  height: 10px;
  border-radius: 999px;
  background: #e7edf2;
  overflow: hidden;
}
.bid-quota-meter span {
  display: block;
  width: var(--usage-percent, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.bid-quota small { color: var(--muted); font-weight: 700; line-height: 1.35; }
.bid-privacy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.bid-privacy-strip span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: #344155;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.profile-readiness {
  display: grid;
  gap: 8px;
  border: 1px solid #f1c5bc;
  border-radius: 8px;
  padding: 12px;
  background: #fff7f5;
  color: #8f3d2d;
}
.profile-readiness strong {
  color: #7c2d12;
  font-weight: 900;
}
.profile-readiness p {
  margin: 0;
  color: #8f3d2d;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}
.profile-readiness .secondary {
  justify-self: start;
  min-height: 38px;
}
.bid-ai-toggle {
  margin-top: 2px;
  justify-content: start;
}
.bid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bid-progress {
  display: grid;
  gap: 10px;
  border: 1px solid #b9d6c9;
  border-radius: 8px;
  padding: 12px;
  background: #edf8f2;
}
.bid-progress.hidden { display: none; }
.bid-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.bid-progress-head strong { color: var(--ink); }
.bid-progress-head span { color: var(--accent-dark); font-weight: 900; }
.bid-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #d7ebe4;
  overflow: hidden;
}
.bid-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms ease;
}
.bid-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bid-progress-steps li {
  min-width: 0;
  border: 1px solid #c9ddd5;
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.bid-progress-steps li.active,
.bid-progress-steps li.done {
  border-color: #8fc4b3;
  color: var(--accent-dark);
}
.bid-results { display: grid; gap: 18px; min-width: 0; }
.bid-decision-panel { order: 1; }
.bid-analysis-panel { order: 2; }
.bid-draft-panel { order: 3; }
.bid-download-form { order: 4; }
.bid-history-panel { order: 5; }
.bid-download-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-color: #b9d6c9;
  background: linear-gradient(135deg, #f6fbf8 0%, #ffffff 68%);
}
.bid-download-form h2 { margin: 2px 0 6px; }
.bid-download-form p { margin: 0; color: var(--muted); }
.bid-download-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  min-width: 330px;
}
.bid-download-options button {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 54px;
  padding: 9px 13px;
  line-height: 1.1;
}
.bid-download-options button span {
  font-weight: 900;
}
.bid-download-options button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.bid-summary {
  margin: 0 0 14px;
  color: #344155;
  font-weight: 700;
}
.bid-result-grid, .bid-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.bid-result-grid h3, .bid-mini-grid h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.bid-list, .bid-compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bid-list li, .bid-compact-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.bid-list strong, .bid-compact-list strong { color: var(--ink); overflow-wrap: anywhere; }
.bid-list span, .bid-compact-list span { color: #344155; overflow-wrap: anywhere; }
.bid-list small {
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.draft-answer {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  color: #273244;
  font-weight: 700;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Professional workspace refinements */
.bid-head, .contracts-head, .dashboard-head, .profile-page-head, .page-head {
  padding-top: 12px;
}
.bid-head {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 32px;
  align-items: center;
  margin: 10px 0 24px;
}
.bid-head h1 {
  max-width: 780px;
  margin: 6px 0 10px;
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}
.bid-head p {
  max-width: 760px;
  margin: 0;
  color: #526175;
  font-size: 18px;
  line-height: 1.55;
}
.bid-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.bid-proof div {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 16px;
  background: transparent;
}
.bid-proof div:last-child { border-right: 0; }
.bid-proof dt { font-size: 30px; }
.bid-proof dd {
  color: #5b6676;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}
.bid-layout {
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
}
.bid-form {
  gap: 16px;
  top: 92px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.bid-form .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 2px;
}
.bid-form .section-title h2,
.bid-results .section-title h2 {
  font-size: 28px;
  line-height: 1.12;
}
.bid-form textarea {
  min-height: 132px;
  line-height: 1.5;
}
.bid-form .bid-source-textarea {
  min-height: 210px;
  padding: 14px 15px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.58;
}
.bid-form .bid-source-textarea.compact {
  min-height: 170px;
}
.bid-form label {
  gap: 9px;
}
.bid-quota {
  gap: 9px;
  border-color: #cfdbe7;
  padding: 14px 15px;
  background: #f8fbfb;
}
.bid-quota-copy span,
.bid-quota small {
  color: #64748b;
}
.bid-quota-copy strong {
  color: #0f172a;
  font-size: 19px;
}
.bid-quota-meter { height: 8px; background: #e5ebf1; }
.bid-privacy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bid-privacy-strip span {
  width: auto;
  border-color: #d6e0ea;
  padding: 7px 10px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  text-align: left;
}
.bid-ai-toggle {
  min-height: 44px;
  border-color: #d6e0ea;
  background: #fbfcfd;
}
.bid-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.bid-actions button { width: 100%; }
.bid-results {
  gap: 16px;
}
.bid-results > .panel,
.bid-download-form {
  box-shadow: var(--shadow-soft);
}
.bid-download-form {
  padding: 18px 20px;
  border-color: #cfe2dc;
  background: #f8fbfa;
}
.bid-download-form h2 {
  font-size: 23px;
}
.bid-result-grid,
.bid-mini-grid {
  gap: 16px;
}
.bid-list li,
.bid-compact-list li {
  border-color: #dde5ee;
  padding: 12px 13px;
  background: #fbfcfd;
}
.bid-list small {
  color: #0b766d;
}
.draft-answer {
  border-left-width: 3px;
  padding: 16px 17px;
  background: #fbfcfd;
  color: #1f2937;
  font-weight: 650;
  line-height: 1.58;
}
.empty-state {
  border-color: #cbd7e3;
  background: #f8fafc;
}
.bid-left-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
  align-self: start;
}
.bid-source-panel {
  display: grid;
  gap: 15px;
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.bid-source-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.bid-source-picker > * {
  min-width: 0;
}
.bid-source-picker > button {
  justify-self: start;
  min-height: 42px;
  white-space: nowrap;
}
.bid-picker {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.bid-picker.is-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.bid-picker-ui {
  position: relative;
  min-width: 0;
}
.bid-picker-ui[hidden],
.bid-picker-popover[hidden],
.bid-picker-option[hidden],
.bid-picker-empty[hidden] {
  display: none;
}
.bid-picker-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  min-height: 58px;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  text-align: left;
  white-space: normal;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.bid-picker-trigger:hover,
.bid-picker.is-open .bid-picker-trigger {
  border-color: #92b5ad;
  background: #fbfefd;
}
.bid-picker-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus);
  outline: 0;
}
.bid-picker-trigger-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.bid-picker-kicker {
  color: #65748a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.bid-picker-trigger strong,
.bid-picker-trigger small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bid-picker-trigger strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}
.bid-picker-trigger small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.bid-picker-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}
.bid-picker.is-open .bid-picker-chevron {
  transform: translateY(2px) rotate(225deg);
}
.bid-picker-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 9px;
  max-height: min(520px, 72vh);
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.bid-picker-search-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.bid-picker-popover input {
  min-height: 44px;
  background: #f8fafc;
}
.bid-picker-results {
  display: grid;
  gap: 4px;
  max-height: 380px;
  overflow: auto;
  padding-right: 2px;
}
.bid-picker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-content: start;
  align-items: start;
  justify-content: stretch;
  width: 100%;
  min-height: 74px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #172033;
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.bid-picker-option:hover,
.bid-picker-option:focus-visible {
  border-color: #9cbeb7;
  background: #f7fbf9;
  outline: 0;
}
.bid-picker-option[aria-selected="true"] {
  border-color: var(--accent);
  background: #eef8f5;
  box-shadow: inset 3px 0 0 var(--accent);
}
.bid-picker-option-title {
  display: -webkit-box;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bid-picker-option-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.bid-picker-option-meta {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}
.bid-picker-option-chips span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bid-picker-option-chips span + span::before {
  content: "·";
  margin: 0 6px;
  color: #94a3b8;
}
.bid-picker-empty {
  margin: 0;
  border: 1px dashed #cad7e3;
  border-radius: 8px;
  padding: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}
.bid-source-picker select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.bid-selected-tender {
  display: grid;
  gap: 7px;
  border: 1px solid #cfe2dc;
  border-radius: 8px;
  padding: 13px 14px;
  background: #f8fbfa;
}
.bid-selected-tender h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}
.bid-selected-tender p,
.bid-selected-tender small {
  margin: 0;
  color: #526175;
  font-weight: 700;
}
.bid-selected-tender a {
  justify-self: start;
  font-weight: 800;
}
.bid-history-panel {
  display: grid;
  gap: 14px;
  border-color: #d7e3df;
  background: #fbfcfd;
}
.bid-history-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bid-history-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  border: 1px solid #dde5ee;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.bid-history-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.bid-history-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.bid-history-meta,
.bid-history-task,
.bid-history-preview {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.bid-history-meta {
  color: #66758a;
  font-size: 13px;
  font-weight: 750;
}
.bid-history-task {
  max-width: 760px;
  color: #3d4a5c;
  font-size: 14px;
  font-weight: 800;
}
.bid-history-preview {
  display: -webkit-box;
  max-width: 820px;
  color: #475569;
  font-size: 14px;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.bid-history-task + .bid-history-preview {
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
}
.bid-history-list a {
  min-height: 38px;
  white-space: nowrap;
}
.bid-history-downloads {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
  justify-content: end;
}
.bid-history-downloads a {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 900;
}

/* Bid assistant uniform surface system */
.bid-head,
.bid-layout {
  --bid-panel-bg: #fff;
  --bid-subtle-bg: #f8fafc;
  --bid-border: #d8e1ea;
  --bid-text: #334155;
  --bid-muted: #64748b;
  --bid-panel-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.bid-head h1 {
  font-size: clamp(40px, 4vw, 52px);
}
.bid-head p {
  color: var(--bid-muted);
}
.bid-proof {
  border-color: var(--bid-border);
  box-shadow: var(--bid-panel-shadow);
}
.bid-proof div {
  padding: 16px;
}
.bid-proof dt {
  font-size: 28px;
}
.bid-proof dd {
  color: var(--bid-muted);
}
.bid-ai-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -6px 0 22px;
}
.bid-ai-intro div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--bid-border);
  border-radius: 8px;
  padding: 14px 15px;
  background: #fff;
  box-shadow: var(--bid-panel-shadow);
}
.bid-ai-intro span {
  color: var(--bid-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.bid-ai-intro strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.2;
}
.bid-ai-intro p {
  margin: 0;
  color: var(--bid-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
}
.bid-left-stack,
.bid-results {
  gap: 18px;
}
.bid-left-stack > .panel,
.bid-results > .panel,
.bid-download-form {
  border-color: var(--bid-border);
  background: var(--bid-panel-bg);
  padding: 24px;
  box-shadow: var(--bid-panel-shadow);
}
.bid-source-panel,
.bid-history-panel {
  gap: 16px;
}
.bid-form {
  gap: 16px;
  border-color: var(--bid-border);
  background: var(--bid-panel-bg);
  box-shadow: var(--bid-panel-shadow);
}
.bid-form .section-title,
.bid-results .section-title,
.bid-source-panel .section-title {
  margin-bottom: 0;
}
.bid-form .section-title h2,
.bid-results .section-title h2,
.bid-source-panel .section-title h2 {
  font-size: 24px;
  line-height: 1.18;
}
.bid-form label,
.bid-source-picker label {
  color: var(--bid-text);
  font-size: 14px;
  font-weight: 800;
}
.bid-form input,
.bid-form select,
.bid-source-picker select,
.bid-form textarea {
  border-color: var(--bid-border);
  background: #fff;
  color: var(--bid-text);
}
.bid-form .bid-source-textarea {
  border-color: var(--bid-border);
  background: #fff;
  color: var(--bid-text);
}
.bid-selected-tender,
.bid-quota,
.bid-progress,
.bid-history-list li,
.bid-list li,
.bid-compact-list li,
.draft-answer,
.bid-layout .empty-state.compact-empty {
  border: 1px solid var(--bid-border);
  border-radius: 8px;
  background: var(--bid-subtle-bg);
  box-shadow: none;
}
.bid-selected-tender,
.bid-quota,
.bid-progress {
  padding: 14px;
}
.bid-selected-tender h3,
.bid-history-title,
.bid-result-grid h3,
.bid-mini-grid h3 {
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}
.bid-selected-tender p,
.bid-selected-tender small,
.bid-summary,
.bid-list span,
.bid-compact-list span,
.bid-history-preview,
.bid-history-task {
  color: var(--bid-text);
  font-weight: 600;
}
.bid-history-meta,
.bid-quota-copy span,
.bid-quota small,
.bid-download-form p,
.bid-layout .form-note {
  color: var(--bid-muted);
}
.bid-quota {
  gap: 10px;
}
.bid-quota-copy strong {
  color: #172033;
  font-size: 17px;
}
.bid-quota-meter,
.bid-progress-bar {
  height: 8px;
  background: #e2e8f0;
}
.bid-privacy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.bid-privacy-strip span {
  border: 1px solid var(--bid-border);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--bid-subtle-bg);
  color: var(--bid-text);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.bid-input-guide {
  display: grid;
  gap: 8px;
  border: 1px solid #cfe2dc;
  border-radius: 8px;
  padding: 13px 14px;
  background: #f7fbf9;
}
.bid-input-guide strong {
  color: #172033;
  font-size: 14px;
  font-weight: 900;
}
.bid-input-guide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bid-input-guide li {
  position: relative;
  padding-left: 18px;
  color: var(--bid-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}
.bid-input-guide li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.bid-ai-toggle {
  border-color: var(--bid-border);
  background: var(--bid-subtle-bg);
}
.bid-progress {
  background: #f8fafc;
}
.bid-progress-steps li {
  border-color: var(--bid-border);
  background: #fff;
  color: var(--bid-muted);
}
.bid-progress-steps li.active,
.bid-progress-steps li.done {
  border-color: #9dccbd;
  background: #eef8f5;
  color: var(--accent-dark);
}
.bid-download-form {
  grid-template-columns: minmax(0, 1fr) auto;
}
.bid-download-options {
  min-width: 350px;
}
.bid-download-form h2 {
  margin: 2px 0 6px;
  color: #172033;
  font-size: 24px;
  line-height: 1.18;
}
.bid-result-preview-panel {
  display: grid;
  gap: 16px;
  order: 1;
  border-color: #cfe2dc;
  background: #f8fbfa;
}
.bid-preview-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.bid-preview-result-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--bid-border);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}
.bid-preview-result-grid span {
  width: fit-content;
  border-radius: 8px;
  padding: 4px 7px;
  background: #eef3fb;
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 900;
}
.bid-preview-result-grid strong {
  color: #172033;
  font-size: 15px;
  line-height: 1.2;
}
.bid-preview-result-grid p {
  margin: 0;
  color: var(--bid-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.bid-decision-panel {
  display: grid;
  gap: 16px;
}
.bid-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bid-decision-block {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--bid-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--bid-subtle-bg);
}
.bid-decision-block span {
  color: var(--bid-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.bid-decision-block strong {
  color: #172033;
  font-size: 26px;
  line-height: 1.05;
}
.bid-decision-block small,
.bid-decision-block p {
  margin: 0;
  color: var(--bid-text);
  font-weight: 650;
  line-height: 1.45;
}
.bid-table-wrap {
  min-width: 0;
  overflow-x: auto;
}
.bid-table-wrap h3,
.bid-decision-panel h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}
.bid-factor-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--bid-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bid-factor-table th,
.bid-factor-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bid-border);
  color: var(--bid-text);
  text-align: left;
  vertical-align: top;
}
.bid-factor-table th {
  background: var(--bid-subtle-bg);
  color: #172033;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.bid-factor-table tr:last-child td {
  border-bottom: 0;
}
.bid-factor-table td:first-child {
  width: 30%;
  font-weight: 750;
}
.bid-factor-table td:nth-child(2) {
  width: 120px;
}
.bid-result-grid,
.bid-mini-grid {
  gap: 14px;
}
.bid-result-grid h3,
.bid-mini-grid h3 {
  margin: 0 0 8px;
}
.bid-list,
.bid-compact-list {
  gap: 8px;
}
.bid-list li,
.bid-compact-list li {
  gap: 4px;
  padding: 12px 13px;
}
.bid-list strong,
.bid-compact-list strong {
  color: #172033;
}
.bid-list small {
  color: #0b766d;
  letter-spacing: 0;
}
.draft-answer {
  border-left: 3px solid var(--accent);
  padding: 16px;
  color: var(--bid-text);
  font-weight: 550;
  line-height: 1.58;
}
.bid-layout .empty-state.compact-empty {
  padding: 18px;
}
.bid-layout .empty-state.compact-empty h3 {
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}
.bid-layout .empty-state.compact-empty p {
  color: var(--bid-muted);
  line-height: 1.45;
}
.muted-box {
  border-color: var(--line);
  background: #fbfcfd;
}
.bid-selected-tender.muted-box {
  border-color: var(--bid-border);
  background: var(--bid-subtle-bg);
}
.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
}
.match-actions .secondary {
  min-height: 40px;
  padding: 8px 12px;
  box-shadow: none;
  color: #334155;
}
.match-actions .secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.empty-state {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px dashed #b8c4d3;
  border-radius: 8px;
  background: var(--surface);
}
.empty-state h2, .empty-state h3 { margin: 0; }
.empty-state p { margin: 0; color: var(--muted); max-width: 720px; }
.compact-empty { justify-items: start; }
.profile-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.profile-list dt { margin-top: 12px; font-weight: 800; }
.profile-list dt:first-child { margin-top: 0; }
.profile-list dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.profile-summary {
  position: relative;
  overflow: hidden;
  border-color: #cfdde6;
  background:
    linear-gradient(180deg, rgba(231, 243, 241, 0.82) 0, rgba(255, 255, 255, 0) 132px),
    #fff;
}
.profile-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-blue) 52%, #d97706 100%);
}
.profile-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}
.profile-summary-head .eyebrow { margin: 0 0 4px; }
.profile-summary-head h2 { margin: 0; }
.profile-score-badge {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 42px;
  border: 1px solid #a7d2cc;
  border-radius: 8px;
  background: #dff3ef;
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.profile-list-premium {
  gap: 10px;
  margin-bottom: 18px;
}
.profile-list-premium dt {
  margin: 0 0 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.profile-list-premium dd { color: var(--ink); }
.profile-list-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.profile-list-row-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.profile-list-row-inline dt { margin: 0; }
.profile-pill,
.profile-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.profile-pill {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}
.profile-pill.is-ready,
.profile-pill.is-on,
.profile-pill.is-active {
  border-color: #abd4bf;
  background: #e8f7ef;
  color: #155534;
}
.profile-pill.is-country {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
}
.profile-pill.is-off {
  border-color: #e7c1b5;
  background: #fff7ed;
  color: #9a3412;
}
.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.profile-tag {
  padding: 6px 9px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}
.profile-cpv-list {
  display: grid;
  gap: 8px;
}
.profile-cpv-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #b7d5d0;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f1fbf9;
}
.profile-cpv-item strong {
  color: #123a36;
  font-size: 14px;
  line-height: 1.25;
}
.profile-cpv-item span {
  color: #52716d;
  font-size: 12px;
  font-weight: 900;
}
.profile-muted {
  color: var(--muted);
  font-weight: 700;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: start;
}
.billing-copy h1 {
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1.02;
  margin: 8px 0 16px;
  max-width: 15ch;
  overflow-wrap: anywhere;
}
.billing-copy p { color: var(--muted); font-size: 19px; max-width: 680px; }
.billing-lede { margin-bottom: 0; }
.billing-status {
  display: inline-grid;
  gap: 4px;
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-blue);
  background: #f1f5f8;
  max-width: 480px;
}
.billing-status span { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.billing-status strong { font-size: 18px; }
.billing-status p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.terms-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.terms-summary div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 188px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.035);
}
.summary-token {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.terms-summary strong { display: block; line-height: 1.2; }
.terms-summary span { color: var(--muted); font-weight: 600; line-height: 1.45; }
.pricing-panel { display: grid; gap: 18px; box-shadow: 0 24px 56px rgba(23, 32, 51, 0.09); }
.pricing-head { display: grid; gap: 7px; }
.pricing-head .eyebrow { margin: 0; }
.price { font-size: 34px; font-weight: 900; line-height: 1.14; }
.price-note { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.45; }
.mode-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  margin: -6px 0 0;
  font-size: 13px;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
}
.mode-badge.test { background: #e4f4eb; color: var(--success); }
.mode-badge.live { background: #fff4e5; color: var(--warn); }
.mode-badge.restricted { background: #eef3fb; color: var(--accent-blue); }
.mode-badge.publishable, .mode-badge.unknown, .mode-badge.missing { background: #f1f3f4; color: var(--muted); }
.feature-list { margin: 0; padding-left: 20px; color: #34413c; }
.feature-list li { margin: 8px 0; }
.active-plan-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #b9d6c9;
  border-radius: 8px;
  background: #edf8f2;
  color: #164b32;
}
.active-plan-card span {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.active-plan-card strong { color: var(--ink); overflow-wrap: anywhere; }
.active-plan-card p { margin: 0; color: #315b43; font-size: 14px; line-height: 1.45; }
.payment-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 14px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: #34413c;
}
.payment-steps li { padding-left: 4px; }
.terms-panel { max-width: 980px; margin: 0 auto; }
.terms-panel h1 { font-size: 42px; line-height: 1.1; margin: 8px 0 12px; }
.terms-meta {
  display: inline-flex;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: #34413c;
  font-weight: 700;
}
.terms-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.terms-highlight div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.terms-highlight strong { line-height: 1.2; }
.terms-highlight span { color: var(--muted); font-weight: 600; line-height: 1.45; }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 24px;
}
.terms-grid section { border-top: 1px solid var(--line); padding-top: 14px; }
.terms-grid h2 { margin: 0 0 8px; font-size: 20px; }
.terms-grid p { color: var(--muted); margin: 0; line-height: 1.55; }
.terms-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.check-row span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.check-row.ok span { background: #e4f4eb; color: var(--success); }
.check-row.warn span { background: #fff4e5; color: var(--warn); }
.check-row p { margin: 3px 0 0; color: var(--muted); }
.dev-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 auto 18px;
}
.page-head h1 { margin: 4px 0 8px; font-size: 40px; line-height: 1.08; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; }
.page-head > .secondary { justify-self: start; }
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}
.support-form-head { display: grid; gap: 4px; }
.support-form-head .eyebrow { margin: 0; }
.support-form-head h2, .support-details h2 { margin: 0; }
.support-form textarea { min-height: 210px; }
.support-sent {
  display: grid;
  gap: 18px;
  align-content: start;
  border-color: #9dccbd;
  background: linear-gradient(135deg, #f6fbf8 0%, #ffffff 58%);
}
.support-sent-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4f4eb;
  color: var(--success);
  font-size: 28px;
  font-weight: 900;
}
.support-sent-copy { display: grid; gap: 6px; }
.support-sent-copy .eyebrow,
.support-sent-copy h2,
.support-sent-copy p { margin: 0; }
.support-sent-copy p {
  color: var(--muted);
  max-width: 560px;
}
.support-sent .secondary { justify-self: start; }
.support-details { display: grid; gap: 16px; }

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}
.admin-head h1 {
  margin: 4px 0 8px;
  font-size: 40px;
  line-height: 1.08;
}
.admin-head p { margin: 0; color: var(--muted); max-width: 720px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.admin-stats div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.admin-stats dt {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.admin-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.84fr) minmax(0, 1.16fr);
  gap: 18px;
  align-items: start;
}
.admin-price-panel,
.admin-users-panel {
  display: grid;
  gap: 18px;
}
.admin-price-panel h2,
.admin-users-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.admin-price-facts,
.admin-user-facts {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.admin-price-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-price-facts div,
.admin-user-facts div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.admin-price-facts div:nth-child(2n),
.admin-user-facts div:nth-child(2n) {
  border-right: 0;
}
.admin-price-facts div:nth-last-child(-n+2),
.admin-user-facts div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.admin-price-facts dt,
.admin-user-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-price-facts dd,
.admin-user-facts dd {
  margin: 4px 0 0;
  color: #273244;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.admin-stripe-link {
  justify-self: start;
}
.admin-price-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-price-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.admin-price-form button,
.admin-reset-form button {
  width: 100%;
}
.admin-reset-form {
  display: grid;
}
.admin-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}
.admin-user-list {
  display: grid;
  gap: 10px;
}
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.admin-user-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.admin-user-main .account-id-avatar {
  width: 42px;
  height: 42px;
}
.admin-user-main h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.admin-user-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.admin-user-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-user-facts div {
  padding: 9px 11px;
}
.admin-access-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  justify-items: stretch;
  min-width: 0;
}
.admin-access-form .toggle-row {
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  background: var(--surface);
}

@media (max-width: 1120px) {
  .topbar { gap: 12px; }
  .brand-tagline { display: none; }
  .topbar nav { gap: 3px; }
  .nav-links { gap: 3px; }
  .topbar nav a, .topbar nav .inline-form button { padding: 8px 7px; font-size: 14px; }
  .account-chip { max-width: 148px; }
  .topbar nav .account-chip { max-width: 148px; }
  .contracts-filter {
    grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(146px, 170px)) minmax(190px, 1fr);
  }
  .contracts-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  :root { --anchor-offset: 82px; }
  .topbar {
    min-height: 64px;
    padding: 10px 12px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    contain: none;
  }
  body { overflow-x: hidden; }
  main, .panel, .bid-head, .bid-ai-intro, .bid-layout, .bid-left-stack, .bid-source-panel, .bid-form, .bid-results { min-width: 0; width: 100%; max-width: 100%; }
  .bid-head > *, .bid-layout > *, .bid-left-stack > *, .bid-form .section-title > *, .section-title > * { min-width: 0; }
  input, textarea, select { min-width: 0; }
  .brand { flex: 1 1 auto; min-width: 0; align-self: center; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy { min-width: 0; }
  .brand-name { font-size: 20px; }
  .brand-tagline { font-size: 10px; }
  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    width: 44px;
    min-height: 42px;
    padding: 0;
  }
  .menu-toggle > span:last-child { display: none; }
  .topbar nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    width: auto;
    min-width: 0;
    max-height: min(calc(100vh - 88px), 420px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }
  .nav-links,
  .public-nav-links {
    display: grid;
    width: 100%;
    gap: 4px;
    margin-left: 0;
  }
  .topbar.is-menu-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
  .topbar nav a, .topbar nav .inline-form button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    border: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.2;
    padding: 0 12px;
    text-align: left;
    white-space: normal;
  }
  .topbar nav .account-menu {
    display: grid;
    width: 100%;
    gap: 4px;
  }
  .topbar nav .account-chip {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-content: stretch;
    min-width: 0;
    max-width: none;
    min-height: 48px;
    margin-top: 4px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: left;
  }
  .topbar nav .account-chevron { display: none; }
  .account-menu-panel {
    position: static;
    min-width: 0;
    padding: 3px 0 0 36px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .topbar nav .account-menu-panel a {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
  }
  .account-menu-form {
    margin: 4px 0 0;
    padding: 6px 0 0;
  }
  .topbar nav .account-menu-form button {
    min-height: 40px;
    padding: 0 12px;
  }
  .account-avatar {
    width: 28px;
    height: 28px;
  }
  .topbar nav .nav-cta {
    min-height: 44px;
    padding: 0 14px;
    justify-content: center;
  }
  main { padding: 24px 16px 48px; }
  .panel { padding: 18px; }
  .admin-head,
  .admin-layout,
  .admin-price-actions,
  .admin-search,
  .admin-user-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .admin-head { align-items: start; }
  .admin-head h1 { font-size: 34px; }
  .admin-head form,
  .admin-head button,
  .admin-search button,
  .admin-search a,
  .admin-price-form button,
  .admin-reset-form button,
  .admin-access-form button {
    width: 100%;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-price-facts,
  .admin-user-facts {
    grid-template-columns: 1fr;
  }
  .admin-price-facts div,
  .admin-user-facts div,
  .admin-price-facts div:nth-child(2n),
  .admin-user-facts div:nth-child(2n),
  .admin-price-facts div:nth-last-child(-n+2),
  .admin-user-facts div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-price-facts div:last-child,
  .admin-user-facts div:last-child {
    border-bottom: 0;
  }
  .admin-user-row {
    align-items: start;
  }
  .admin-access-form {
    grid-template-columns: 1fr;
  }
  .dashboard-head, .content-grid, .form-grid, .hero, .landing-hero, .billing-layout, .auth-layout, .terms-summary, .terms-highlight, .terms-grid, .profile-layout, .value-grid, .landing-overview, .landing-optibid, .optibid-feature-grid, .market-proof-strip, .setup-section, .landing-contact, .contact-fields, .support-layout, .account-hero, .account-layout, .contracts-head, .contracts-filter, .contracts-insight-grid, .compact-contract-list, .bid-head, .bid-ai-intro, .bid-layout, .bid-result-grid, .bid-mini-grid, .bid-decision-grid, .bid-preview-result-grid, .tenders-head, .saved-tender-card, .saved-tender-head { grid-template-columns: 1fr; }
  .dashboard-results-title,
  .saved-tenders-title {
    display: grid;
    align-items: start;
  }
  .tender-search-form {
    width: 100%;
    min-width: 0;
  }
  .tender-search-form > div {
    display: grid;
    grid-template-columns: 1fr;
  }
  .tender-search-form input,
  .tender-search-form .primary,
  .tender-search-form .secondary {
    width: 100%;
  }
  .bid-head h1 { font-size: 34px; line-height: 1.08; }
  .bid-head p { font-size: 16px; line-height: 1.45; }
  .bid-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }
  .bid-proof div {
    min-width: 0;
    border-right: 1px solid var(--bid-border);
    border-bottom: 0;
    padding: 11px 7px;
    overflow: hidden;
  }
  .bid-proof div:last-child {
    border-right: 0;
  }
  .bid-proof dt {
    font-size: 22px;
  }
  .bid-proof dd {
    font-size: 9px;
    line-height: 1.16;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .bid-form {
    position: static;
    top: auto;
  }
  .bid-layout.has-results .bid-results {
    order: -1;
  }
  .bid-layout.has-results .bid-left-stack {
    order: 2;
  }
  .bid-form .section-title,
  .bid-results .section-title,
  .bid-source-panel .section-title {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .bid-source-picker,
  .bid-download-form,
  .bid-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }
  .bid-source-picker label,
  .bid-source-picker select,
  .bid-source-picker > button {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .bid-source-picker > button,
  .bid-actions button {
    width: 100%;
  }
  .bid-download-options {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bid-privacy-strip {
    grid-template-columns: 1fr;
  }
  .bid-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bid-form .bid-source-textarea {
    min-height: 170px;
  }
  .bid-form .bid-source-textarea.compact {
    min-height: 130px;
  }
  .bid-input-guide,
  .bid-result-preview-panel {
    gap: 12px;
  }
  .bid-preview-result-grid div {
    padding: 12px;
  }
  .bid-decision-block strong {
    font-size: 23px;
  }
  .bid-factor-table,
  .bid-factor-table thead,
  .bid-factor-table tbody,
  .bid-factor-table tr,
  .bid-factor-table th,
  .bid-factor-table td {
    display: block;
    width: 100%;
  }
  .bid-factor-table thead {
    display: none;
  }
  .bid-factor-table tr {
    padding: 11px 12px;
    border-bottom: 1px solid var(--bid-border);
  }
  .bid-factor-table tr:last-child {
    border-bottom: 0;
  }
  .bid-factor-table td {
    padding: 2px 0;
    border-bottom: 0;
  }
  .bid-factor-table td:first-child,
  .bid-factor-table td:nth-child(2) {
    width: 100%;
  }
  .bid-factor-table td:first-child {
    color: #172033;
  }
  .bid-factor-table td:nth-child(2)::before {
    content: "Vurdering: ";
    color: var(--bid-muted);
    font-weight: 850;
  }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; }
  .stat span { font-size: 28px; }
  .stat .stat-text { font-size: 15px; }
  .landing-hero { gap: 18px; padding: 28px 0 20px; }
  .landing-hero,
  .landing-hero .hero-copy,
  .landing-preview.optibid-preview,
  .market-proof-strip,
  .landing-optibid {
    width: 100%;
    max-width: calc(100vw - 32px);
    min-width: 0;
  }
  .market-proof-strip { margin-bottom: 22px; }
  .market-proof-strip div {
    gap: 3px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 13px 16px;
  }
  .market-proof-strip div:last-child { border-bottom: 0; }
  .market-proof-strip strong {
    font-size: 22px;
  }
  .market-proof-strip span {
    font-size: 13px;
    line-height: 1.25;
  }
  .landing-optibid { gap: 18px; padding: 26px 0; }
  .optibid-feature-grid article { padding: 16px; }
  .run-status { display: grid; align-items: start; }
  .run-status span { white-space: normal; }
  .profile-page-head h1 { font-size: 36px; }
  .account-hero h1 { font-size: 36px; max-width: none; }
  .account-id-avatar {
    width: 48px;
    height: 48px;
    font-size: 15px;
  }
  .account-section-head { display: grid; }
  .account-actions, .account-logout { justify-content: stretch; justify-self: stretch; }
  .account-actions button, .account-logout button { width: 100%; }
  .account-facts div, .account-facts.compact div { grid-template-columns: 1fr; gap: 4px; }
  .profile-section-head { display: grid; }
  .profile-mobile-summary {
    display: grid;
    gap: 12px;
  }
  .profile-mobile-summary h2,
  .profile-mobile-summary p {
    margin: 0;
  }
  .profile-mobile-summary-copy {
    display: grid;
    gap: 4px;
  }
  .profile-mobile-summary-copy p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
  }
  .score-control input { min-height: 50px; }
  .assistant-actions { grid-template-columns: 1fr; }
  .recipient-row { grid-template-columns: 1fr; }
  .recipient-input-wrap { grid-template-columns: 1fr; }
  .recipient-remove { width: 100%; }
  .time-options { grid-template-columns: 1fr; }
  .inline-search { grid-template-columns: 1fr; }
  .country-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-results { grid-template-columns: 1fr; }
  .country-result span { white-space: normal; }
  .cpv-builder-head, .cpv-card { display: grid; grid-template-columns: 1fr; }
  .cpv-builder-head { align-items: start; }
  .cpv-manual-field { grid-template-columns: 1fr; }
  .cpv-chip-list { grid-template-columns: 1fr; }
  .cpv-chip span { white-space: normal; }
  .cpv-card button { width: 100%; }
  .actions.compact { justify-content: start; }
  .match-card, .contract-card { grid-template-columns: 1fr; }
  .match-card {
    gap: 14px;
    padding: 18px;
  }
  .match-card-head {
    grid-template-columns: 1fr;
  }
  .notice-badge {
    justify-self: start;
    max-width: 100%;
  }
  .match-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: stretch;
  }
  .match-actions .primary,
  .match-actions .secondary {
    width: 100%;
  }
  .inline-action-form,
  .inline-action-form button {
    width: 100%;
  }
  .saved-status {
    justify-content: center;
    width: 100%;
  }
  .contracts-head-actions, .contracts-filter-actions { display: grid; grid-template-columns: 1fr; }
  .contracts-head-actions .secondary, .contracts-filter-actions .primary, .contracts-filter-actions .secondary { width: 100%; }
  .contracts-filter-title { display: grid; }
  .contract-date { justify-items: start; min-height: auto; padding: 12px; }
  .contract-card-head { display: grid; }
  .contract-card-badges { justify-content: flex-start; min-width: 0; }
  .contract-actions .secondary { width: 100%; }
  .contract-facts, .contracts-summary { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr 48px; }
  .timeline-track, .timeline-row small { grid-column: 1 / -1; }
  .bid-form { position: static; }
  .bid-form .section-title { grid-template-columns: 1fr; }
  .bid-source-picker { grid-template-columns: 1fr; }
  .bid-source-picker > button {
    width: 100%;
    white-space: normal;
  }
  .bid-head h1, .bid-head p { max-width: 100%; overflow-wrap: anywhere; }
  .bid-privacy-strip, .bid-progress-steps, .bid-download-form { grid-template-columns: 1fr; }
  .bid-privacy-strip { display: grid; }
  .bid-actions { grid-template-columns: 1fr; }
  .bid-history-list li { grid-template-columns: 1fr; }
  .bid-history-list a { width: 100%; }
  .bid-history-downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .bid-head h1 { font-size: 38px; }
  .bid-quota-copy { display: grid; gap: 2px; }
  .bid-download-options { grid-template-columns: 1fr; min-width: 0; }
  .bid-download-form button { width: 100%; }
  .score-wrap {
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: center;
    align-content: center;
    width: fit-content;
    min-height: 0;
    padding: 7px 10px 7px 7px;
  }
  .hero h1, .landing-hero h1 { font-size: 42px; }
  .landing-hero .hero-copy {
    max-width: 100%;
    min-width: 0;
  }
  .landing-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .landing-hero .hero-lede {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-proof { display: none; }
  .hero-proof div { padding: 10px; }
  .product-preview { margin-top: 0; box-shadow: none; }
  .landing-preview { display: none; }
  .landing-preview.optibid-preview {
    display: block;
    box-shadow: var(--shadow-soft);
  }
  .optibid-preview .preview-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    justify-content: start;
  }
  .optibid-preview .preview-bar strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .optibid-scoreboard,
  .optibid-preview-section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .optibid-scoreboard strong { font-size: 26px; }
  .preview-tender-row { grid-template-columns: 1fr; }
  .preview-tender-dates { text-align: left; }
  .overview-list div { grid-template-columns: 1fr; gap: 4px; }
  .landing-cta, .page-head { display: grid; align-items: start; }
  .landing-contact { gap: 18px; padding: 20px 0 28px; }
  .contact-actions { display: grid; justify-items: stretch; }
  .contact-actions .primary { width: 100%; }
  .landing-cta {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -48px;
    padding: 28px 16px 34px;
  }
  .cta-proof { display: grid; grid-template-columns: 1fr; }
  .cta-proof div { grid-template-columns: auto 1fr; }
  .cta-action { justify-self: stretch; justify-items: stretch; min-width: 0; }
  .landing-cta .primary { width: 100%; }
  .billing-copy h1 { font-size: 40px; }
  .auth-layout { min-height: auto; gap: 24px; align-items: start; }
  .auth-page { padding: 2px 0 0; }
  .auth-copy { gap: 14px; }
  .auth-copy h1, .terms-panel h1, .profile-form-panel h1 { font-size: 34px; }
  .auth-copy > p { font-size: 17px; }
  .auth-preview { box-shadow: none; }
  .auth-preview-score { grid-template-columns: 56px 1fr; }
  .auth-preview-score > span { width: 56px; height: 56px; font-size: 24px; }
  .auth-panel { order: -1; padding: 20px; }
  .auth-panel h2 { font-size: 26px; }
  .provider-button { min-height: 52px; }
  .price { font-size: 30px; line-height: 1.12; overflow-wrap: anywhere; }
  .form-actions, .profile-actions { justify-content: stretch; }
  .form-actions button, .profile-actions button { width: 100%; }
  .flash { margin: 12px 16px 0; }
}

@media (max-width: 420px) {
  :root { --anchor-offset: 118px; }
  main { padding: 20px 12px 42px; }
  .panel { padding: 16px; }
  .landing-cta { margin-left: -12px; margin-right: -12px; margin-bottom: -42px; padding: 26px 12px 32px; }
  .billing-copy h1, .hero h1, .landing-hero h1 { font-size: 36px; }
  .hero-proof { grid-template-columns: 1fr; }
  .preview-match { grid-template-columns: 1fr; }
  .preview-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .market-stats, .preview-tender-dates { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .match-facts { grid-template-columns: 1fr; }
  .market-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .market-stats div:last-child { border-bottom: 0; }
  .check-row { grid-template-columns: 1fr; }
  .auth-preview-score { grid-template-columns: 1fr; }
  .auth-preview-score > span { width: 52px; height: 52px; }
  .auth-preview-meta { grid-template-columns: 1fr; gap: 10px; }
  .auth-steps li { grid-template-columns: 1fr; }
  .bid-proof {
    gap: 6px;
  }
  .bid-proof div {
    padding: 10px 6px;
  }
  .bid-proof dt {
    font-size: 20px;
  }
  .bid-proof dd {
    font-size: 8px;
    line-height: 1.14;
  }
}

@media (max-width: 560px) {
  .brand-name { font-size: 19px; }
  .brand-mark { width: 40px; height: 40px; }
  .menu-toggle { width: 44px; padding: 0; }
  .bid-head h1 {
    font-size: 34px;
    line-height: 1.05;
    max-width: 11.5ch;
  }
  .bid-head p {
    max-width: 36ch;
    font-size: 16px;
  }
  .landing-hero h1 {
    font-size: 34px;
    line-height: 1.07;
    max-width: 13ch;
  }
  .landing-hero .hero-lede {
    font-size: 16px;
    line-height: 1.5;
    max-width: 35ch;
  }
  .bid-ai-intro p,
  .bid-ai-intro strong {
    max-width: 32ch;
    overflow-wrap: anywhere;
  }
  .bid-form .form-note,
  .bid-quota small {
    max-width: 34ch;
  }
}

@media (max-width: 340px) {
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 17px; }
  .brand-tagline { font-size: 10px; }
  .menu-toggle { width: 42px; min-height: 40px; padding: 0; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions a, .actions button { width: 100%; }
  .landing-hero,
  .landing-hero .hero-copy,
  .landing-preview.optibid-preview,
  .market-proof-strip,
  .landing-optibid {
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
