:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --panel: #ffffff;
  --surface: #f9fbfd;
  --ink: #172033;
  --muted: #637083;
  --line: #d9e1ea;
  --accent: #087b74;
  --accent-dark: #075f59;
  --accent-blue: #2563eb;
  --accent-amber: #b7791f;
  --warn: #b54708;
  --success: #137333;
  --soft: #e8f5f4;
  --focus: rgba(8, 123, 116, 0.22);
  --shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
  --anchor-offset: 104px;
}

* { 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;
}

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: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2 + 22px));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative;
  width: 54px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  gap: 1px;
  place-items: center;
  align-content: center;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
.brand-mark small { color: #b9c3d3; font-size: 10px; font-weight: 900; letter-spacing: 0; }
.brand-copy { display: grid; gap: 1px; line-height: 1.05; }
.brand-name { font-size: 21px; letter-spacing: 0; }
.brand-tagline { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.topbar nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar nav a, .topbar nav .inline-form button {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  padding: 9px 11px;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.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-chip {
  display: inline-grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  max-width: 210px;
  border: 1px solid var(--line);
  background: #fff;
}
.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: 32px;
  height: 32px;
}
.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; }
button, .primary, .secondary, .button-link {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  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;
}
button:disabled { cursor: not-allowed; opacity: 0.58; }

.primary, button.primary { background: var(--accent); color: white; }
.primary:hover, button.primary:hover { background: var(--accent-dark); text-decoration: none; }
.secondary, .button-link, button.secondary { background: var(--soft); color: var(--accent-dark); }
.secondary:hover, .button-link:hover, button.secondary:hover { background: #dfeee8; text-decoration: none; }
.full { width: 100%; }
.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}
.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: 1180px; 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) minmax(320px, 430px);
  gap: 42px;
  min-height: 0;
  padding: 44px 0 28px;
}
.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; }
.mobile-live-strip { display: none; }

.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(2, 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;
  overflow-wrap: anywhere;
}
.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;
}
.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;
}
.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; }

.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-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);
}
.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; font-weight: 700; }
.field-title { margin: 0; font-weight: 800; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input:focus, textarea:focus { border-color: var(--accent); 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-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(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.stat span { display: block; font-size: 32px; font-weight: 800; }
.stat .stat-text { font-size: 18px; line-height: 1.2; color: var(--accent-blue); }
.stat p { margin: 4px 0 0; color: var(--muted); }

.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; }
.match-list { display: grid; gap: 12px; }
.match-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.score-wrap {
  display: inline-grid;
  justify-items: center;
  align-content: start;
  justify-self: start;
  gap: 6px;
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.score {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.match-card h3 { margin: 0 0 6px; }
.match-card p { margin: 7px 0; }
.match-card h3, .match-card p, .match-card a { overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 14px; }
.reason { color: #36433e; }
.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; }

.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; }

@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;
  }
  .brand { flex: 1 1 auto; min-width: 0; align-self: center; }
  .brand-mark { width: 52px; height: 40px; }
  .brand-copy { min-width: 0; }
  .brand-name { font-size: 20px; }
  .brand-tagline { font-size: 11px; }
  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
  }
  .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;
  }
  .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-chip {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    min-width: 0;
    max-width: none;
    min-height: 48px;
    margin-top: 4px;
    border: 1px solid var(--line);
    background: var(--surface);
    text-align: left;
  }
  .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; }
  .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, .setup-section, .landing-contact, .contact-fields, .support-layout, .account-hero, .account-layout { grid-template-columns: 1fr; }
  .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: 24px; padding: 28px 0 20px; }
  .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-side { order: -1; }
  .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 { grid-template-columns: 1fr; }
  .score-wrap { justify-items: start; grid-template-columns: auto auto; align-items: center; }
  .hero h1, .landing-hero h1 { font-size: 42px; }
  .mobile-live-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
  }
  .mobile-live-strip div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
  }
  .mobile-live-strip dt { color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1; }
  .mobile-live-strip dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
  .hero-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .hero-proof div { padding: 10px; }
  .product-preview { margin-top: 0; box-shadow: none; }
  .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; }
  .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; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 19px; }
  .brand-mark { width: 50px; height: 40px; }
  .menu-toggle { padding: 0 11px; }
}

@media (max-width: 340px) {
  .brand { gap: 9px; }
  .brand-mark { width: 46px; }
  .brand-name { font-size: 17px; }
  .brand-tagline { font-size: 10px; }
  .menu-toggle { min-height: 40px; padding: 0 10px; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions a, .actions button { width: 100%; }
  .mobile-live-strip { grid-template-columns: 1fr; }
}

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