/* RFPExperts — Option 1 “Trusted Professional”: navy chrome, light surfaces, sky CTAs. */
:root {
  /* Page & cards */
  --color-bg: #eef2f7;
  --color-bg-elevated: #ffffff;
  --color-bg-subtle: #f4f7fb;
  --color-heading: #0f2744;
  --color-text: #1e293b;
  --color-muted: #475569;
  --color-muted-soft: #64748b;
  /* Sky blue — focus rings / soft accents (not primary button fill) */
  --color-accent: #0ea5e9;
  --color-accent-soft: #38bdf8;
  --color-on-accent: #0f172a;
  --color-accent-dim: rgba(14, 165, 233, 0.12);
  --color-link: #0369a1;
  --color-border: #d8e0ea;
  --color-border-strong: #b8c5d6;
  --color-nav-bg: #0f2744;
  --color-nav-text: #f8fafc;
  --color-nav-link: rgba(248, 250, 252, 0.92);
  --color-table-header: #e2eaf3;
  --color-input-bg: #ffffff;
  --color-input-border: #cbd5e1;
  --color-shadow-card: 0 4px 24px rgba(15, 39, 68, 0.06);
  /* Cards / form panels (distinct from page bg) */
  --color-surface: #ffffff;
  /* Long-form & generated documents — warm paper, comfortable contrast */
  --color-reading-bg: #faf7f1;
  --color-reading-border: #e8e0d4;
  --color-reading-text: #3d3832;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Shared action buttons (Dashboard, Analyze, and app chrome) */
  --btn-radius: 8px;
  --btn-primary-bg: #0f2340;
  --btn-primary-fg: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-fg: #0f2340;
  --btn-secondary-border: #c7cedb;
  --btn-weight: 600;
  --link-color: #0369a1;
}

/* Shared button primitives — use across product surfaces */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--btn-radius);
  font-weight: var(--btn-weight);
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    filter 0.15s ease, transform 0.1s ease;
}

.btn--sm {
  padding: 7px 13px;
  font-size: 12.8px;
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}

.btn--primary:hover:not(:disabled):not([aria-disabled="true"]) {
  filter: brightness(1.08);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--btn-primary-bg);
  outline-offset: 2px;
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border-color: var(--btn-secondary-border);
}

.btn--secondary:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: var(--btn-primary-bg);
}

.btn--secondary:focus-visible {
  outline: 2px solid var(--btn-primary-bg);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.rfp-website-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rfp-website-input-row .rfp-input {
  flex: 1;
}

.rfp-btn-website-save {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  flex-shrink: 0;
}

.rfp-btn-website-save:hover:not(:disabled) {
  filter: brightness(1.08);
}

.rfp-btn-website-save:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-link {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn-link:hover {
  color: var(--btn-primary-bg);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.rfp-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

.rfp-glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 55vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(14, 165, 233, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(15, 39, 68, 0.04), transparent 65%);
}

.rfp-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(15, 39, 68, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 39, 68, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 88%);
}

.rfp-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.15);
  background: var(--color-nav-bg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rfp-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rfp-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-nav-link);
  letter-spacing: -0.01em;
}

.rfp-top-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.rfp-mark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--color-nav-text);
  text-decoration: none;
}

.rfp-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 56rem;
  /* Flex item default min-width:auto lets wide tables blow past the shell. */
  min-width: 0;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.rfp-hero {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
  padding: 0 0.25rem;
}

.rfp-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link);
  margin: 0 0 1rem;
}

.rfp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1.125rem;
  color: var(--color-heading);
}

.rfp-lead {
  margin: 0 0 1.75rem;
  line-height: 1.7;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.rfp-actions {
  margin: 0 0 1rem;
}

.rfp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: var(--btn-weight);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    filter 0.15s ease, transform 0.1s ease;
}

.rfp-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
  box-shadow: none;
}

.rfp-btn-primary:hover {
  filter: brightness(1.08);
  transform: none;
  box-shadow: none;
}

.rfp-btn-primary:focus-visible {
  outline: 2px solid var(--btn-primary-bg);
  outline-offset: 2px;
}

.rfp-micro {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-muted-soft);
  max-width: 40 rem;
  margin-left: auto;
  margin-right: auto;
}

.rfp-benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .rfp-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.rfp-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--color-shadow-card);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rfp-card:hover {
  border-color: rgba(14, 165, 233, 0.45);
  background: var(--color-bg-subtle);
  box-shadow: var(--color-shadow-card);
}

.rfp-card-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.rfp-card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.rfp-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.rfp-foot-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted-soft);
}

.rfp-form-wrap {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 0.25rem;
}

.rfp-form-wrap--narrow {
  max-width: 480px;
}

.rfp-form {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.6rem;
  box-shadow: var(--color-shadow-card);
  margin: 0.75rem auto 1.25rem;
}

@media (min-width: 720px) {
  .rfp-form {
    padding: 2rem 2rem 1.85rem;
  }
}

.rfp-form .rfp-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.rfp-actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.rfp-funnel-intake-form .rfp-actions--stack .rfp-btn {
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.rfp-messages-wrap {
  max-width: 40rem;
  margin: 0 auto 1rem;
}

.rfp-cap-with-alt {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .rfp-cap-with-alt {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .rfp-cap-upload-block {
    flex: 1;
    min-width: 0;
  }

  .rfp-cap-shortcut {
    flex-shrink: 0;
    padding-top: 1.75rem;
    max-width: 14rem;
    text-align: right;
  }
}

.rfp-cap-shortcut {
  margin: 0;
}

.rfp-link-cta {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--rfp-accent, #1e5a8a);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  text-align: inherit;
}

.rfp-link-cta:hover,
.rfp-link-cta:focus-visible {
  text-decoration: none;
}

.rfp-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .rfp-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rfp-field {
  margin-bottom: 1rem;
}

.rfp-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--color-text);
}

.rfp-help {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted-soft);
}

.rfp-form input[type=\"text\"],
.rfp-form input[type=\"email\"],
.rfp-form input[type=\"password\"],
.rfp-form input[type=\"url\"],
.rfp-form input[type=\"number\"],
.rfp-form select,
.rfp-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  color: var(--color-text);
  padding: 0.75rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.rfp-form input[type=\"text\"]:focus,
.rfp-form input[type=\"email\"]:focus,
.rfp-form input[type=\"password\"]:focus,
.rfp-form input[type=\"url\"]:focus,
.rfp-form input[type=\"number\"]:focus,
.rfp-form select:focus,
.rfp-form textarea:focus {
  border-color: var(--color-accent);
}

.rfp-form input::placeholder,
.rfp-form textarea::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.rfp-form input[type=\"file\"],
.rfp-file-input {
  width: 100%;
  color: var(--color-text);
  font-size: 0.9rem;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  box-sizing: border-box;
}

.rfp-file-input:hover {
  border-color: var(--color-accent);
}

.rfp-file-input::file-selector-button {
  background: var(--color-accent-dim);
  color: var(--color-link);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background 0.15s;
}

.rfp-file-input::file-selector-button:hover {
  background: rgba(14, 165, 233, 0.2);
}

.rfp-alert {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-text);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 0 auto 1rem;
  max-width: 56rem;
}

.rfp-alert--success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.rfp-alert--info {
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.08);
}

/* ── Analysis results ───────────────────────────────────────────────────── */

.rfp-optional {
  font-weight: 400;
  color: var(--color-muted-soft);
  font-size: 0.8em;
}

.rfp-field-error {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: #f87171;
}

/* ── Anonymous /analyze/ intake: label + file adjacent, submit states ───── */

.rfp-field--upload-row {
  margin-bottom: 1rem;
}

.rfp-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.rfp-upload-row__meta {
  flex: 1 1 12rem;
  min-width: 0;
}

.rfp-upload-row__meta .rfp-label {
  margin-bottom: 0.35rem;
}

.rfp-upload-row__meta .rfp-help {
  margin-bottom: 0.35rem;
}

.rfp-help--shortcut {
  margin-bottom: 0;
}

.rfp-upload-row__file {
  flex: 1 1 14rem;
  min-width: min(100%, 16rem);
}

.rfp-upload-row__file .rfp-file-input {
  width: 100%;
}

@media (max-width: 719px) {
  .rfp-upload-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.rfp-funnel-intake-form .rfp-intake-submit:disabled {
  background: #94a3b8;
  color: #f8fafc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
  border-radius: var(--radius);
  transition: background .15s;
  box-shadow: 0 1px 3px rgba(184,108,10,.3);
}

.rfp-funnel-intake-form .rfp-intake-submit:disabled:hover {
  transform: none;
  filter: none;
}

.rfp-funnel-intake-form .rfp-intake-submit:not(:disabled) {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}

.rfp-funnel-intake-form .rfp-intake-submit:not(:disabled):hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.rfp-funnel-intake-form .rfp-intake-submit:not(:disabled):focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 3px;
}

/* Spinner for loading state */
.rfp-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(94, 234, 212, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: rfp-spin 0.8s linear infinite;
  margin: 1.5rem auto;
}

@keyframes rfp-spin {
  to { transform: rotate(360deg); }
}

/* Progress stats during cap statement generation */
.rfp-progress-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.rfp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rfp-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
.rfp-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rfp-progress-links {
  max-width: 28rem;
  margin: 1rem auto;
  text-align: left;
}
.rfp-link-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted, #94a3b8);
  max-height: 8rem;
  overflow-y: auto;
}
.rfp-link-list li {
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* Website breakdown cards */
.rfp-breakdown-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}
.rfp-breakdown-card h2,
.rfp-breakdown-card h3 { margin-top: 0; color: var(--color-heading); }
.rfp-breakdown-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.rfp-breakdown-card li { margin-bottom: 0.35rem; }
.rfp-breakdown-card p,
.rfp-breakdown-card li {
  line-height: 1.72;
  color: var(--color-reading-text);
}
.rfp-breakdown-card--good { border-left: 3px solid var(--color-accent); }
.rfp-breakdown-card--missing { border-left: 3px solid #f59e0b; }
.rfp-breakdown-card--tips { border-left: 3px solid #3b82f6; }
.rfp-grade {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.rfp-grade--a, .rfp-grade--b { background: rgba(94,234,212,0.2); color: var(--color-accent); }
.rfp-grade--c { background: rgba(245,158,11,0.2); color: #f59e0b; }
.rfp-grade--d, .rfp-grade--f { background: rgba(239,68,68,0.2); color: #ef4444; }
.rfp-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Decision badge + score row */
.rfp-decision-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.rfp-decision-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rfp-decision-badge--go {
  background: rgba(0, 135, 90, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.rfp-decision-badge--hold {
  background: rgba(183, 121, 31, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.rfp-decision-badge--nogo {
  background: rgba(192, 57, 43, 0.18);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.rfp-decision-badge--market-intel {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.rfp-score-block {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.rfp-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.rfp-score-denom {
  font-size: 1rem;
  color: var(--color-muted);
}

.rfp-pwin-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rfp-pwin-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
}

.rfp-pwin-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

/* Opportunity metadata strip */
.rfp-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--color-bg-subtle);
}

.rfp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rfp-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
}

.rfp-meta-val {
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Results sections */
.rfp-results-section {
  margin-bottom: 2.5rem;
}

.rfp-section-title {
  font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-heading, #1e3a5f);
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-border, #e7e5e4);
}

.rfp-results-prose {
  font-family: var(--font-serif);
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--color-reading-text);
  margin: 0 0 1.15rem;
  max-width: 42rem;
}

.rfp-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .rfp-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rfp-results-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.rfp-results-card--full {
  grid-column: 1 / -1;
}

.rfp-results-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.6rem;
}

.rfp-results-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* Callout boxes */
.rfp-callout {
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.rfp-callout--danger {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #b91c1c;
}

.rfp-callout--warn {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #92400e;
}

/* Funnel score-band thank-you / upsell (RFPExperts_Funnel_TYP_Emails_v1) */
.rfp-typ-upsell {
  margin: 2rem 0 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: linear-gradient(165deg, #fafbfc 0%, #f1f5f9 100%);
}

.rfp-title--typ {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.rfp-lead--typ {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.rfp-typ-upsell__body {
  margin-bottom: 1rem;
}

.rfp-typ-upsell__bullets-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text);
}

.rfp-typ-upsell__bullets {
  margin: 0 0 1.25rem 1.1rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.rfp-typ-upsell__bullets li {
  margin-bottom: 0.35rem;
}

.rfp-typ-upsell__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0;
  align-items: center;
}

.rfp-typ-upsell__quote {
  margin: 1rem 0 0;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.rfp-typ-upsell__quote p {
  margin: 0;
}

.rfp-typ-upsell__closer {
  margin-top: 1rem;
}

/* CTA section */
.rfp-results-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.rfp-cta-card {
  max-width: 32rem;
  margin: 0 auto;
}

.rfp-cta-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.rfp-cta-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

/* ── Seeded-from-analysis welcome banner ─────────────────────────────────── */

.rfp-seeded-banner {
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.rfp-seeded-banner strong {
  color: var(--color-accent);
}

/* ── "Using saved profile" indicator on intake form ─────────────────────── */

.rfp-profile-in-use {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(94,234,212,.08);
  border: 1px solid rgba(94,234,212,.2);
  margin-bottom: 0.5rem;
}

.rfp-profile-in-use-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.rfp-profile-in-use-org {
  font-size: 0.85rem;
  color: var(--color-text);
}

.rfp-profile-in-use-link {
  font-size: 0.78rem;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  margin-left: auto;
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */

.rfp-hero--left,
.rfp-title--left,
.rfp-lead--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.rfp-hero--results .rfp-lead {
  font-family: var(--font-serif);
  line-height: 1.75;
  color: var(--color-reading-text);
  max-width: 42rem;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.rfp-btn--sm {
  padding: 7px 13px;
  font-size: 12.8px;
}

/* ── Profile page ─────────────────────────────────────────────────────────── */

.rfp-profile-status {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.rfp-profile-status--ready    { background: rgba(52,211,153,.1);  color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.rfp-profile-status--building { background: rgba(251,191,36,.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.rfp-profile-status--failed   { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.25); }
.rfp-profile-status--pending  { background: rgba(156,153,176,.08); color: var(--color-muted); border: 1px solid var(--color-border); }

.rfp-profile-grid {
  display: grid;
  /* minmax(0, 1fr) prevents wide tables from expanding past the shell. */
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 860px) {
  .rfp-profile-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.rfp-profile-main {
  min-width: 0;
  max-width: 100%;
}

.rfp-profile-empty {
  color: var(--color-muted-soft);
  font-size: 0.9rem;
  padding: 2rem 0;
}

.rfp-profile-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.rfp-profile-dt-dd {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.rfp-profile-dt-dd dt {
  font-weight: 600;
  color: var(--color-muted);
  width: 5rem;
  flex-shrink: 0;
}

.rfp-profile-dt-dd dd {
  color: var(--color-text);
  margin: 0;
}

.rfp-profile-dt-dd a {
  color: var(--color-accent);
  text-decoration: none;
}

.rfp-alert-detail-dl .rfp-profile-dt-dd dt {
  width: 9.5rem;
}

.rfp-profile-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rfp-profile-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(94,234,212,.1);
  color: var(--color-accent);
  border: 1px solid rgba(94,234,212,.2);
}

.rfp-profile-tag--clearance {
  background: rgba(139,92,246,.12);
  color: #c4b5fd;
  border-color: rgba(139,92,246,.25);
}

/* Sidebar source cards */
.rfp-profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rfp-source-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.rfp-source-card--cta {
  border-color: rgba(94,234,212,.2);
}

.rfp-source-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted-soft);
  margin: 0 0 0.75rem;
}

.rfp-source-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rfp-source-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.rfp-source-filename {
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.rfp-source-date {
  color: var(--color-muted-soft);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.rfp-source-empty {
  color: var(--color-muted-soft);
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
}

.rfp-source-url {
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rfp-source-url a {
  color: var(--color-accent);
  text-decoration: none;
}

.rfp-source-status {
  font-size: 0.75rem;
  margin: 0 0 0.75rem;
}

.rfp-source-status--ready   { color: #34d399; }
.rfp-source-status--failed  { color: #f87171; }
.rfp-source-status--pending,
.rfp-source-status--fetching,
.rfp-source-status--extracting,
.rfp-source-status--summarizing { color: #fbbf24; }

.rfp-source-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.rfp-source-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.rfp-source-file-input {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.rfp-source-url-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  color: var(--color-text);
  padding: 0.5rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
}

/* ── Bid/No-Bid Worksheet ──────────────────────────────────────────────────── */

.rfp-worksheet-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: var(--color-table-header);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.rfp-ws-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.rfp-ws-num {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.rfp-ws-num--favorable  { color: #34d399; }
.rfp-ws-num--unfavorable { color: #f87171; }
.rfp-ws-num--unknown    { color: #fbbf24; }

.rfp-ws-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
}

.rfp-ws-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--color-border);
}

.rfp-ws-stat--pct .rfp-ws-num {
  font-size: 2rem;
  color: var(--color-text);
}

.rfp-ws-recommendation {
  margin-left: auto;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rfp-ws-rec--bid {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.rfp-ws-rec--nextphase {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.rfp-ws-rec--nobid {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.rfp-ws-threshold-note {
  font-size: 0.75rem;
  color: var(--color-muted-soft);
  margin: 0 0 1.5rem;
}

/* Worksheet accordion sections */
.rfp-ws-section {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.rfp-ws-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: var(--color-bg-subtle);
}

.rfp-ws-section-title::-webkit-details-marker { display: none; }

.rfp-ws-section-title::after {
  content: "▸";
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.rfp-ws-section[open] .rfp-ws-section-title::after {
  transform: rotate(90deg);
}

.rfp-ws-question-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.rfp-ws-question {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--color-border);
}

.rfp-ws-q-indicator {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.rfp-ws-q--favorable .rfp-ws-q-indicator {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.rfp-ws-q--unfavorable .rfp-ws-q-indicator {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.rfp-ws-q--unknown .rfp-ws-q-indicator {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.rfp-ws-q-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  min-width: 0;
}

.rfp-ws-q-text {
  font-size: 0.875rem;
  color: var(--color-text);
  flex: 1;
  min-width: 12rem;
}

.rfp-ws-q-answer {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.rfp-ws-q--favorable .rfp-ws-q-answer   { background: rgba(52, 211, 153, 0.1);  color: #047857; }
.rfp-ws-q--unfavorable .rfp-ws-q-answer { background: rgba(248, 113, 113, 0.1); color: #b91c1c; }
.rfp-ws-q--unknown .rfp-ws-q-answer     { background: rgba(251, 191, 36, 0.1);  color: #b45309; }

.rfp-ws-q-note {
  width: 100%;
  font-size: 0.78rem;
  color: var(--color-muted-soft);
  line-height: 1.5;
  margin-top: 0.1rem;
}

/* ── Website presence / site audit ───────────────────────────────────────── */

.rfp-audit-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.rfp-audit-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
  flex-shrink: 0;
  font-family: var(--font-sans);
}

.rfp-audit-grade-letter {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rfp-audit-grade-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.rfp-audit-grade--a {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}
.rfp-audit-grade--b {
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: var(--color-accent);
}
.rfp-audit-grade--c {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}
.rfp-audit-grade--d {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #fb923c;
}
.rfp-audit-grade--f {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.rfp-audit-summary {
  flex: 1;
  min-width: 0;
}

.rfp-audit-summary-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin: 0;
}

/* JS-rendered notice */
.rfp-audit-js-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--color-muted-soft);
  margin-top: 0.5rem;
}

/* Flags list */
.rfp-audit-flags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.rfp-audit-flag {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.85rem;
  align-items: start;
}

.rfp-audit-flag--high {
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.rfp-audit-flag--medium {
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.rfp-audit-flag--low {
  background: rgba(156, 153, 176, 0.06);
  border: 1px solid var(--color-border);
}

.rfp-audit-flag-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.rfp-audit-flag--high .rfp-audit-flag-dot   { background: #f87171; }
.rfp-audit-flag--medium .rfp-audit-flag-dot { background: #fbbf24; }
.rfp-audit-flag--low .rfp-audit-flag-dot    { background: var(--color-muted-soft); }

.rfp-audit-flag-body {
  min-width: 0;
}

.rfp-audit-flag-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.rfp-audit-flag-severity {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rfp-audit-flag--high .rfp-audit-flag-severity   { color: #f87171; }
.rfp-audit-flag--medium .rfp-audit-flag-severity { color: #fbbf24; }
.rfp-audit-flag--low .rfp-audit-flag-severity    { color: var(--color-muted-soft); }

.rfp-audit-flag-category {
  font-size: 0.65rem;
  color: var(--color-muted-soft);
  font-weight: 500;
}

.rfp-audit-flag-issue {
  font-size: 0.875rem;
  color: var(--color-text);
  margin: 0 0 0.3rem;
  line-height: 1.5;
}

.rfp-audit-flag-rec {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* Strengths list */
.rfp-audit-strengths-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rfp-audit-strength-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.rfp-audit-strength-item::before {
  content: "✓";
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Sidebar grade badge (compact) */
.rfp-audit-grade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.rfp-audit-grade-badge--a { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.rfp-audit-grade-badge--b { background: rgba(94,234,212,.1); color: var(--color-accent); border: 1px solid rgba(94,234,212,.25); }
.rfp-audit-grade-badge--c { background: rgba(251,191,36,.1); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.rfp-audit-grade-badge--d { background: rgba(251,146,60,.1); color: #fb923c; border: 1px solid rgba(251,146,60,.25); }
.rfp-audit-grade-badge--f { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.25); }

/* ── Analysis results — 2-column workspace (aligned with /analyze/ intake) ─ */

.rfp-results-layout.rfp-analyze-layout {
  /* inherits grid + sticky rail from .rfp-analyze-layout */
  margin-top: 0.5rem;
}

.rfp-results-head {
  margin-bottom: 1.5rem;
}

.rfp-results-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  max-width: none;
  margin: 0;
}

.rfp-results-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
}

.rfp-results-title-row .rfp-results-title {
  flex: 1 1 14rem;
  min-width: 0;
}

.rfp-results-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.rfp-verdict-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.15rem 0 1rem;
  max-width: 60rem;
}

.rfp-verdict-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--white, #fff);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(30, 58, 95, 0.05);
}

.rfp-verdict-tile-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500, #78716c);
}

.rfp-verdict-tile-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading, #1e3a5f);
  line-height: 1.2;
}

.rfp-verdict-tile-suffix {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500, #78716c);
}

.rfp-verdict-tile--go .rfp-verdict-tile-value { color: #047857; }
.rfp-verdict-tile--hold .rfp-verdict-tile-value { color: #b45309; }
.rfp-verdict-tile--nogo .rfp-verdict-tile-value { color: #b91c1c; }
.rfp-verdict-tile--market-intel .rfp-verdict-tile-value { color: #1d4ed8; }

.rfp-results-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.rfp-results-action-note {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--gray-600, #57534e);
}

.rfp-results-action-form {
  display: inline;
  margin: 0;
}

.rfp-risk-ack {
  flex: 1 0 100%;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.rfp-risk-ack .rfp-results-action-note {
  color: #991b1b;
  margin-bottom: 0.5rem;
}

.rfp-risk-ack-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #991b1b;
  cursor: pointer;
}

.rfp-results-btn-cost {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 0.15rem;
}

.rfp-results-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Results layout: stretch rail so TOC-only sticky has room to pin */
.rfp-analyze-layout.rfp-results-layout {
  align-items: stretch;
}

@media (min-width: 881px) {
  /* Pin TOC under Opportunity — not the whole rail */
  .rfp-results-sidebar.rfp-analyze-rail {
    position: static;
  }

  #rfp-results-toc {
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    z-index: 2;
  }
}

/* --- On this page: vertical nav in the sidebar --- */
.rfp-results-toc-panel {
  padding-bottom: 0.6rem;
}

.rfp-results-toc-details > summary {
  cursor: pointer;
  list-style: none;
}

.rfp-results-toc-details > summary::-webkit-details-marker {
  display: none;
}

.rfp-results-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rfp-results-toc-list li a {
  display: block;
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--gray-700, #44403c);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.rfp-results-toc-list li a:hover {
  background: var(--gray-100, #f5f5f4);
  color: var(--navy, #1e3a5f);
  text-decoration: none;
}

.rfp-results-toc-list li a:focus-visible {
  outline: 2px solid var(--navy, #1e3a5f);
  outline-offset: 2px;
}

.rfp-results-toc-list li a[aria-current="true"] {
  color: var(--navy, #1e3a5f);
  font-weight: 600;
  border-left-color: var(--navy, #1e3a5f);
  background: var(--gray-100, #f5f5f4);
}

.rfp-results-toc-top {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  text-decoration: none;
}

.rfp-results-toc-top:hover {
  color: var(--navy, #1e3a5f);
}

@media (min-width: 881px) {
  .rfp-results-toc-panel summary {
    pointer-events: none;
  }

  .rfp-results-toc-panel summary::-webkit-details-marker,
  .rfp-results-toc-panel summary::marker {
    display: none;
    content: "";
  }
}

@media (max-width: 880px) {
  .rfp-results-toc-panel {
    padding: 0.85rem 1rem;
  }

  #rfp-results-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .rfp-results-toc-panel[open] .rfp-results-toc-list,
  .rfp-results-toc-details[open] .rfp-results-toc-list {
    margin-top: 0.6rem;
  }
}

/* Anchor-jump fix: sticky site header is 64px */
.rfp-section-title,
.rfp-results-title,
#rfp-opp-meta,
#rfp-teaming-meta,
#rfp-teaming-heading,
.rfp-proposal-outline-item {
  scroll-margin-top: 84px;
}

.rfp-results-list {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
  max-width: 42rem;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.03rem;
  line-height: 1.78;
  color: var(--color-reading-text, #292524);
}

.rfp-results-list li {
  margin-bottom: 0.55rem;
}

.rfp-results-list--ordered {
  list-style: decimal;
}

.rfp-outline-opportunity {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text, #1c1917);
}

.rfp-proposal-outline-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.rfp-proposal-outline-item {
  margin-bottom: 1rem;
}

.rfp-proposal-outline-section {
  margin: 0 0 0.35rem;
}

/* Square-ish rounded buttons — match analyze file-selector / CTA chrome */
.rfp-results-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.rfp-analyze-cta.rfp-results-btn {
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.rfp-results-btn--outline {
  background: transparent;
  border: 1px solid var(--color-accent, #0ea5e9);
  color: var(--color-link, #0ea5e9);
}

.rfp-results-btn--outline:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.08);
}

.rfp-results-btn--outline:disabled,
.rfp-results-btn--outline[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.rfp-results-main {
  min-width: 0;
}

/* Sidebar */
.rfp-sidebar-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.rfp-sidebar-card-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
  margin: 0 0 0.85rem;
}

.rfp-sidebar-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rfp-sidebar-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rfp-sidebar-dt {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
}

.rfp-sidebar-dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.45;
}

/* Evaluation approach badge on sidebar */
.rfp-eval-approach {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rfp-eval-approach--lpta {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.rfp-eval-approach--bestvalue {
  background: rgba(94, 234, 212, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.rfp-eval-approach--other {
  background: rgba(156, 153, 176, 0.08);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

/* LPTA flag callout */
.rfp-callout--lpta {
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #92400e;
}

.rfp-callout--lpta strong {
  color: #b45309;
}

/* Sources Sought / RFI — blue */
.rfp-callout--market-intel {
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #1e40af;
}
.rfp-callout--market-intel strong { color: #1d4ed8; }

/* BAA / SBIR — purple */
.rfp-callout--rd {
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #6b21a8;
}
.rfp-callout--rd strong { color: #7e22ce; }

/* Task order — teal */
.rfp-callout--task-order {
  background: rgba(20, 184, 166, 0.07);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #0f766e;
}
.rfp-callout--task-order strong { color: #0d9488; }

/* Market intel action list */
.rfp-mi-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rfp-mi-action-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
}

.rfp-mi-action-item::before {
  content: "→";
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* Wired risk callout variants */
.rfp-callout--wired-high {
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #b91c1c;
}

.rfp-callout--wired-high strong { color: #991b1b; }

.rfp-callout--wired-moderate {
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #92400e;
}

.rfp-callout--wired-moderate strong { color: #b45309; }

/* Matches / Gaps 2-column grid */
.rfp-match-gap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 560px) {
  .rfp-match-gap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rfp-match-card {
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.rfp-match-card--alignment {
  background: var(--gray-50, #fafaf9);
  border: 1px solid var(--gray-300, #d6d3d1);
}

.rfp-match-card--strengths {
  /* legacy alias — prefer --alignment */
  background: var(--gray-50, #fafaf9);
  border: 1px solid var(--gray-300, #d6d3d1);
}

.rfp-match-card--gaps {
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.rfp-match-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.rfp-match-card--alignment .rfp-match-card-title,
.rfp-match-card--strengths .rfp-match-card-title { color: var(--gray-600, #57534e); }
.rfp-match-card--gaps .rfp-match-card-title      { color: #b91c1c; }

.rfp-match-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* Section summary mini-stats inside worksheet accordion headers */
.rfp-ws-section-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.rfp-ws-section-pip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.rfp-ws-section-pip--favorable  { color: #34d399; }
.rfp-ws-section-pip--unfavorable { color: #f87171; }
.rfp-ws-section-pip--unknown    { color: #fbbf24; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.rfp-dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rfp-dash-title {
  margin-bottom: 0 !important;
}

.rfp-dash-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rfp-btn-ghost,
.rfp-btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border: 1px solid var(--btn-secondary-border);
}

.rfp-btn-ghost:hover,
.rfp-btn-secondary:hover {
  color: var(--btn-secondary-fg);
  border-color: var(--btn-primary-bg);
  background: var(--btn-secondary-bg);
  filter: none;
}

.rfp-required {
  color: #f87171;
  font-weight: 400;
}

/* Deadline alert banner */
.rfp-deadline-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
}

.rfp-deadline-alert-icon {
  font-size: 1rem;
  color: #fbbf24;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.rfp-deadline-alert-item {
  display: inline-block;
  margin-left: 1rem;
  color: var(--color-muted);
}

/* Usage stats bar */
.rfp-usage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rfp-usage-stat {
  flex: 1 1 0;
  min-width: 120px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rfp-usage-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
}

.rfp-usage-stat-value--plan {
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
}

.rfp-usage-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Analysis status badges */
.rfp-analysis-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rfp-analysis-status--pending {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.rfp-analysis-status--analyzing {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.rfp-analysis-status--complete {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.rfp-analysis-status--failed {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

/* Section header with title + action */
.rfp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

/* Profile tags in two columns */
.rfp-profile-tags-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .rfp-profile-tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stage summary chips */
.rfp-stage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rfp-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-bg-subtle);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.rfp-stage-chip-count {
  font-weight: 700;
  color: var(--color-text);
}

/* Pipeline table */
.rfp-pipeline-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.rfp-pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rfp-pipeline-table thead {
  background: var(--color-table-header);
}

.rfp-pipeline-table th {
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}

.rfp-pipeline-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s ease;
}

.rfp-pipeline-table tbody tr:last-child {
  border-bottom: none;
}

.rfp-pipeline-table tbody tr:hover {
  background: var(--color-bg-subtle);
}

.rfp-pt-row--urgent {
  background: rgba(251, 191, 36, 0.03);
}

.rfp-pt-row--overdue {
  background: rgba(248, 113, 113, 0.03);
}

.rfp-pipeline-table td {
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
}

.rfp-pt-col-title {
  min-width: 150px;
}

.rfp-pt-col-deadline {
  white-space: nowrap;
  width: 130px;
}

.rfp-pt-col-stage {
  width: 150px;
}

.rfp-pt-col-decision {
  width: 80px;
}

.rfp-pt-col-actions {
  width: auto;
  min-width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}

.rfp-pt-col-score {
  width: 70px;
  text-align: right;
}

.rfp-pt-title-link {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
}

.rfp-pt-title-link:hover {
  color: var(--color-accent);
}

.rfp-pt-agency {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted-soft);
  margin-top: 0.1rem;
}

.rfp-pt-deadline {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text);
}

.rfp-pt-deadline--urgent {
  color: #fbbf24;
}

.rfp-pt-deadline--overdue {
  color: #f87171;
}

.rfp-pt-days {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--color-muted-soft);
  margin-top: 0.1rem;
}

.rfp-pt-days--urgent {
  color: #fbbf24;
  font-weight: 700;
}

.rfp-pt-days--overdue {
  color: #f87171;
  font-weight: 700;
}

.rfp-pt-no-date {
  color: var(--color-muted-soft);
}

.rfp-pt-pending {
  font-size: 0.75rem;
  color: var(--color-muted-soft);
}

.rfp-pt-score {
  font-weight: 700;
  color: var(--color-text);
}

.rfp-pt-score-denom {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-muted-soft);
}

/* Stage select (inline in pipeline table) */
.rfp-pt-stage-select {
  width: 100%;
  max-width: 130px;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-table-header);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: auto;
}

.rfp-pt-stage-select:focus {
  border-color: var(--color-accent);
}

/* Pipeline empty state */
.rfp-pipeline-empty {
  padding: 2rem 0;
  color: var(--color-muted-soft);
  font-size: 0.9rem;
}

.rfp-pipeline-empty-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Pipeline form */
.rfp-pipeline-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 560px) {
  .rfp-pipeline-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1rem;
  }
}

.rfp-pipeline-field--full {
  grid-column: 1 / -1;
}

/* Pipeline form input styling */
.rfp-form .rfp-pipeline-form-grid input[type="text"],
.rfp-form .rfp-pipeline-form-grid input[type="url"],
.rfp-form .rfp-pipeline-form-grid input[type="date"],
.rfp-form .rfp-pipeline-form-grid select,
.rfp-form .rfp-pipeline-form-grid textarea,
.rfp-source-card .rfp-pipeline-form-grid input[type="text"],
.rfp-source-card .rfp-pipeline-form-grid input[type="url"],
.rfp-source-card .rfp-pipeline-form-grid input[type="date"],
.rfp-source-card .rfp-pipeline-form-grid select,
.rfp-source-card .rfp-pipeline-form-grid textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  color: var(--color-text);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  color-scheme: light;
}

.rfp-source-card select,
.rfp-source-card input[type="text"],
.rfp-source-card input[type="url"],
.rfp-source-card input[type="date"],
.rfp-source-card textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  color: var(--color-text);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  color-scheme: light;
}

/* Pipeline detail page */
.rfp-pipeline-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rfp-pipeline-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .rfp-pipeline-detail-grid {
    grid-template-columns: 1fr 280px;
  }
}

.rfp-pipeline-detail-main {}

.rfp-pipeline-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Deadline detail banner */
.rfp-deadline-detail {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.rfp-deadline-detail--urgent {
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.25);
  color: #92400e;
}

.rfp-deadline-detail--overdue {
  background: rgba(248, 113, 113, 0.07);
  border-color: rgba(248, 113, 113, 0.25);
  color: #b91c1c;
}

/* ── Landing — two-path hero ────────────────────────────────────────────────── */

.rfp-hero-paths {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.rfp-hero-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 220px;
}

.rfp-hero-path-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin: 0;
}

.rfp-hero-path-divider {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  font-style: italic;
  flex-shrink: 0;
  align-self: center;
  padding: 0 0.25rem;
}

.rfp-hero-pricing-link {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .rfp-hero-paths {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .rfp-hero-path-divider {
    padding: 0.15rem 0;
  }
}

/* ── Funnel — post-analysis CTA bar & website audit ───────────────────────── */

.rfp-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

.rfp-radio-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.rfp-audit-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--color-text);
}

.rfp-audit-item {
  margin-bottom: 1.25rem;
}

.rfp-audit-item-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.rfp-audit-item-detail {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.55;
}

.rfp-funnel-cta-bar {
  position: sticky;
  bottom: 0;
  margin: 2rem calc(-1 * var(--rfp-page-pad, 1rem)) -2rem;
  padding: 1rem var(--rfp-page-pad, 1rem) 1.25rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 22%);
  border-top: 1px solid var(--color-border);
}

.rfp-funnel-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.rfp-funnel-cta-headline {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.rfp-funnel-cta-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.45;
  max-width: 36rem;
}

.rfp-funnel-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ── Cap statement landing — path cards ────────────────────────────────────── */

.rfp-cap-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 820px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.rfp-cap-path-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.rfp-cap-path-card--primary {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.rfp-cap-path-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  align-self: flex-start;
}

.rfp-cap-path-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.rfp-cap-path-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 0.5rem;
  flex: 1;
}

.rfp-cap-reassurance {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-muted);
  max-width: 500px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

/* ── Cap statement interview form ────────────────────────────────────────────── */

.rfp-hero--compact {
  padding-bottom: 1.5rem;
}

.rfp-interview-form {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.rfp-interview-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

.rfp-field--full {
  grid-column: 1 / -1;
}

.rfp-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.92rem;
  padding: 0.55rem 0.75rem;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.rfp-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.rfp-textarea {
  resize: vertical;
  min-height: 90px;
  font-family: inherit;
  line-height: 1.5;
}

.rfp-label-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.rfp-label-required {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f87171;
  margin-left: 0.25rem;
}

.rfp-field-hint {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0.3rem 0 0;
}

.rfp-field-error {
  font-size: 0.8rem;
  color: #f87171;
  margin: 0.25rem 0 0;
}

.rfp-cert-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.25rem;
}

.rfp-cert-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  cursor: pointer;
}

.rfp-cert-check input[type="checkbox"] {
  accent-color: var(--color-accent);
}

.rfp-interview-email {
  grid-column: 1 / -1;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.rfp-btn--lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .rfp-interview-questions { grid-template-columns: 1fr; }
  .rfp-field--full { grid-column: 1; }
}

/* ── Cap statement result ────────────────────────────────────────────────────── */

.rfp-cap-result-section {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.rfp-cap-result-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

/* Warm “paper” panel for pasted/generated documents — easier long reads */
.rfp-reading,
.rfp-cap-result-text {
  background: var(--color-reading-bg);
  border: 1px solid var(--color-reading-border);
  border-radius: 14px;
  padding: 1.75rem 2.25rem;
  max-width: min(42rem, 100%);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--color-reading-text);
  box-shadow: var(--color-shadow-card);
}

.rfp-cap-result-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.rfp-cap-result-text p {
  margin: 0 0 1em;
}

/* ── Proposal compliance checklist ──────────────────────────────────────────── */

.rfp-checklist-intro {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.rfp-checklist-group {
  margin-bottom: 1.5rem;
}

.rfp-checklist-cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.rfp-checklist-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.rfp-checklist-cat--submission  { background: rgba(99, 102, 241, 0.14); color: #3730a3; }
.rfp-checklist-cat--forms       { background: rgba(234, 179, 8,  0.18); color: #a16207; }
.rfp-checklist-cat--compliance  { background: rgba(239, 68, 68,  0.12); color: #b91c1c; }
.rfp-checklist-cat--evaluation  { background: rgba(20, 184, 166, 0.14); color: #0f766e; }
.rfp-checklist-cat--personnel   { background: rgba(168, 85, 247, 0.14); color: #6b21a8; }
.rfp-checklist-cat--dates       { background: rgba(249, 115, 22, 0.14); color: #c2410c; }

.rfp-checklist-cat-count {
  font-size: 0.72rem;
  color: var(--color-muted-soft);
}

.rfp-checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rfp-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.1s;
}

.rfp-checklist-item:last-child {
  border-bottom: none;
}

.rfp-checklist-item--done {
  background: rgba(94, 234, 212, 0.04);
}

.rfp-checklist-item--optional {
  opacity: 0.75;
}

.rfp-checklist-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.rfp-checklist-toggle:hover {
  border-color: var(--color-accent);
}

.rfp-checklist-toggle--done {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.rfp-checklist-toggle--done .rfp-checklist-box::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #0a0a12;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.rfp-checklist-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.rfp-checklist-text {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.4;
}

.rfp-checklist-item--done .rfp-checklist-text {
  text-decoration: line-through;
  color: var(--color-muted);
}

.rfp-checklist-ref {
  font-size: 0.72rem;
  color: var(--color-muted-soft);
  font-family: ui-monospace, monospace;
}

.rfp-checklist-optional {
  font-size: 0.68rem;
  color: var(--color-muted-soft);
  font-style: italic;
}

.rfp-checklist-detail {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin-top: 0.1rem;
}

/* ── Profile override edit form ──────────────────────────────────────────────── */

.rfp-profile-edit-wrap {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.rfp-profile-edit-notice {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.rfp-profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rfp-edit-fieldset {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  background: var(--color-bg-elevated);
}

.rfp-edit-legend {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding: 0 0.5rem;
}

.rfp-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
  margin-top: 1rem;
}

.rfp-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rfp-edit-field--full {
  grid-column: 1 / -1;
}

.rfp-edit-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rfp-edit-errors {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: #f87171;
}

.rfp-edit-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Editable multi-item lists (NAICS / certs / vehicles) */
.rfp-item-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  min-height: 2.75rem;
}

.rfp-item-list__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.45rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
}

.rfp-item-list__value {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  word-break: break-word;
}

.rfp-item-list__remove {
  flex-shrink: 0;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rfp-item-list__remove:hover,
.rfp-item-list__remove:focus-visible {
  color: var(--color-text);
}

.rfp-item-list__empty {
  margin: 0;
  padding: 0.45rem 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted-soft);
}

.rfp-item-list__add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.rfp-item-list__input {
  flex: 1;
  min-width: 12rem;
}

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

.rfp-kicker-link {
  color: var(--color-muted);
  text-decoration: none;
}

.rfp-kicker-link:hover {
  color: var(--color-accent);
}

/* Suitability score badges */
.rfp-suitability-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rfp-suitability--strong {
  background: #dcfce7;
  color: #166534;
}

.rfp-suitability--marginal {
  background: #fef9c3;
  color: #854d0e;
}

.rfp-suitability--not-recommended {
  background: #fee2e2;
  color: #991b1b;
}

/* ── Pricing page ─────────────────────────────────────────────────────────── */
.rfp-shell.rfp-shell--wide {
  max-width: 76rem;
}

.rfp-pricing-hero {
  margin-bottom: 2rem;
}

.rfp-pricing-banner {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 1.75rem;
}

.rfp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .rfp-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rfp-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

.rfp-pricing-card {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rfp-pricing-card--highlight {
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.12), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rfp-pricing-ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #042f2e;
  background: var(--color-accent);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.rfp-pricing-tier-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rfp-pricing-tagline {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.rfp-pricing-price-block {
  margin-bottom: 0.5rem;
}

.rfp-pricing-price {
  margin: 0;
  line-height: 1.1;
}

.rfp-pricing-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rfp-pricing-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-left: 0.15rem;
}

.rfp-pricing-value {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.4;
}

.rfp-pricing-features {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(242, 240, 250, 0.92);
  flex: 1;
}

.rfp-pricing-features li {
  margin-bottom: 0.45rem;
}

.rfp-pricing-cta {
  margin-top: auto;
}

.rfp-pricing-muted {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--color-muted-soft);
  line-height: 1.45;
}

.rfp-pricing-muted code {
  font-size: 0.68rem;
  word-break: break-all;
}

.rfp-btn--block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.rfp-pricing-footnote {
  max-width: 44rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.rfp-pricing-footnote p {
  margin: 0;
}

/* ── Extracted from templates (no inline styles) ──────────────────────── */

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.hp-field--deep {
  top: -9999px;
}

.rfp-msg-center {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.rfp-notice-panel {
  max-width: 560px;
  margin: 4rem auto;
  text-align: center;
}

.rfp-notice-panel .rfp-h2 {
  margin-bottom: 1rem;
}

.rfp-notice-panel .rfp-body {
  margin-bottom: 2rem;
}

.rfp-container--md {
  max-width: 720px;
}

.rfp-section-title--flush {
  margin: 0;
  border: none;
  padding: 0;
}

.rfp-section-title--flush-spaced {
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.rfp-section-title--tiny {
  font-size: 0.65rem;
}

.rfp-section-title--tiny-mt {
  font-size: 0.65rem;
  margin-top: 1rem;
}

.rfp-section-title--sub {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.rfp-inline-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.rfp-inline-row--gap {
  gap: 0.75rem;
}

.rfp-inline-row--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.rfp-td-muted {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.rfp-block-mb {
  margin-bottom: 1.5rem;
}

.rfp-block-mt {
  margin-top: 1.25rem;
}

.rfp-form-compact {
  margin-bottom: 0.5rem;
}

.rfp-meta-soft {
  font-size: 0.72rem;
  color: var(--color-muted-soft);
}

.rfp-mt {
  margin-top: 1rem;
}

.rfp-mt-sm {
  margin-top: 0.65rem;
}

.rfp-mt-md {
  margin-top: 0.75rem;
}

.rfp-mt-xl {
  margin-top: 1.5rem;
}

.rfp-mt-2xl {
  margin-top: 2rem;
}

.rfp-stack-sm {
  margin-top: 0.6rem;
}

.rfp-actions--after {
  margin-top: 1.5rem;
}

.rfp-pipeline-table--spaced {
  margin-top: 0.5rem;
}

.rfp-pipeline-table--mid {
  max-width: 40rem;
}

.rfp-pipeline-table--wide {
  max-width: 56rem;
}

.rfp-pipeline-table-wrap--spaced {
  margin-top: 1rem;
}

.rfp-sidebar-card--accent {
  border-color: rgba(94, 234, 212, 0.2);
}

.rfp-sidebar-copy {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.rfp-teaming-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.4rem;
}

.rfp-teaming-body {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.rfp-teaming-body--last {
  margin: 0;
}

.rfp-teaming-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-soft);
  margin: 0 0 0.3rem;
}

.rfp-lead--tuck {
  margin-top: -0.5rem;
}

.rfp-score-block {
  margin-bottom: 0.75rem;
}

.rfp-score-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.25rem;
}

.rfp-score-lg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.rfp-score-denom {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.rfp-micro--block {
  margin: 0 0 0.75rem;
}

.rfp-compact-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.rfp-award-line {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.rfp-award-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.rfp-flush {
  margin: 0;
}

.rfp-source-title--danger {
  color: #f87171;
}

.rfp-btn--danger {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.rfp-closure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rfp-closure-col {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 1rem;
}

.rfp-closure-score {
  margin: 0;
  font-size: 0.9rem;
}

.rfp-closure-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.rfp-closure-name {
  margin: 0 0 0.35rem;
}

.rfp-closure-uei {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.rfp-closure-subs {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.rfp-closure-verdict {
  margin: 0;
}

.rfp-closure-summary {
  margin: 0.5rem 0 0;
}

.rfp-gap-roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rfp-gap-roadmap-item {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.rfp-gap-roadmap-item.rfp-keysec-panel {
  padding: 0;
}

.rfp-gap-roadmap-item.rfp-keysec-panel > summary.rfp-gap-title {
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0.9rem 1rem;
}

.rfp-gap-roadmap-item.rfp-keysec-panel > summary.rfp-gap-title::-webkit-details-marker {
  display: none;
}

.rfp-gap-roadmap-item.rfp-keysec-panel > summary.rfp-gap-title::before {
  content: "▶ ";
  font-size: 0.7em;
  color: var(--gray-500, #78716c);
}

.rfp-gap-roadmap-item.rfp-keysec-panel[open] > summary.rfp-gap-title::before {
  content: "▼ ";
}

.rfp-gap-roadmap-body {
  padding: 0 1rem 1rem;
}

.rfp-gap-roadmap-item--compact {
  padding: 0.85rem;
  margin-bottom: 0.5rem;
}

.rfp-gap-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.rfp-gap-title--flush {
  margin: 0;
  font-weight: 600;
}

.rfp-gap-action {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

/* Compliance matrix horizontal scroll */
.rfp-table-scroll-hint {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--gray-500, #78716c);
}

@media (max-width: 720px) {
  .rfp-table-scroll-hint {
    display: block;
  }
}

.rfp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  max-width: 100%;
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
    linear-gradient(to right, rgba(30, 58, 95, 0.12), transparent) left center / 16px 100% no-repeat scroll,
    linear-gradient(to left, rgba(30, 58, 95, 0.12), transparent) right center / 16px 100% no-repeat scroll;
}

.rfp-table-scroll .rfp-pipeline-table {
  margin: 0;
  border: none;
}

.rfp-compliance-col-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--white, #fff);
  box-shadow: 2px 0 4px rgba(30, 58, 95, 0.06);
}

.rfp-compliance-nogo-note {
  margin-bottom: 0.85rem;
}

.rfp-keysec-panel {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.5rem;
  background: var(--white, #fff);
}

.rfp-keysec-panel > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.rfp-micro--muted {
  margin: 0;
  color: var(--color-muted);
}

.rfp-micro--follow {
  margin: 0.5rem 0 0;
}

.rfp-micro--tight {
  margin: 0.25rem 0 0;
}

.rfp-micro--after {
  margin-top: 0.75rem;
}

.rfp-micro--nudge {
  margin-top: -0.35rem;
}

.rfp-teaming-box {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border, #e5e7eb);
}

.rfp-kicker-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.rfp-teaming-text {
  margin: 0;
  font-size: 0.9rem;
}

.rfp-nested-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.rfp-office-fingerprint {
  font-size: 0.72rem;
  color: var(--color-muted);
  max-width: 8rem;
  line-height: 1.3;
}

.rfp-office-fingerprint strong {
  color: var(--color-text);
}

.rfp-alert-meta {
  font-size: 0.9em;
}

.rfp-alert-office-cell {
  white-space: normal;
  max-width: 8rem;
  vertical-align: top;
}

/* Strong Fit alerts: give the table room; keep Track + Delete on screen */
@media (min-width: 860px) {
  .rfp-profile-grid--alerts {
    grid-template-columns: minmax(0, 1fr) 13.5rem;
    gap: 1.25rem;
  }
}

.rfp-profile-grid--alerts .rfp-account-card-actions {
  flex-direction: column;
  align-items: stretch;
}

.rfp-profile-grid--alerts .rfp-account-card-actions .btn {
  width: 100%;
  text-align: center;
}

.rfp-pipeline-table-wrap--alerts {
  overflow-x: hidden;
}

.rfp-pipeline-table--alerts {
  table-layout: fixed;
  width: 100%;
}

.rfp-pipeline-table--alerts th,
.rfp-pipeline-table--alerts td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rfp-pipeline-table--alerts .rfp-pt-col-title {
  width: 28%;
  min-width: 0;
}

.rfp-pipeline-table--alerts th:nth-child(2),
.rfp-pipeline-table--alerts td:nth-child(2) {
  width: 18%;
}

.rfp-pipeline-table--alerts th:nth-child(3),
.rfp-pipeline-table--alerts td:nth-child(3) {
  width: 4.75rem;
}

.rfp-pipeline-table--alerts .rfp-pt-col-deadline {
  width: 6.5rem;
  white-space: nowrap;
}

.rfp-pipeline-table--alerts .rfp-alert-office-cell {
  width: 8.5rem;
  max-width: none;
}

.rfp-pipeline-table--alerts .rfp-office-fingerprint {
  max-width: none;
}

.rfp-pipeline-table--alerts .rfp-pt-col-actions,
.rfp-pipeline-table--alerts .rfp-td-actions {
  width: 6.75rem;
  min-width: 0;
  white-space: normal;
  vertical-align: top;
}

.rfp-pipeline-table--alerts .rfp-td-actions .rfp-form-inline {
  display: block;
  width: 100%;
}

.rfp-pipeline-table--alerts .rfp-td-actions .rfp-form-inline + .rfp-form-inline {
  margin-top: 0.35rem;
}

.rfp-pipeline-table--alerts .rfp-td-actions .btn {
  width: 100%;
  box-sizing: border-box;
}

.rfp-pricing-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .rfp-pricing-tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rfp-pricing-tier-grid .tier-card {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e7e5e4);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  position: relative;
}

.rfp-pricing-tier-grid .tier-card.tier-featured {
  border-color: var(--color-heading, #1e3a5f);
  border-width: 2px;
}

.rfp-pricing-tier-grid .tier-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-heading, #1e3a5f);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.rfp-pricing-tier-grid .tier-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.35rem 0;
}

.rfp-pricing-tier-grid .tier-delivery {
  font-size: 0.85rem;
  color: var(--color-muted-soft, #78716c);
  margin-bottom: 0.85rem;
}

.rfp-td-actions {
  text-align: right;
  white-space: nowrap;
}

.rfp-form-inline {
  display: inline-block;
}

.rfp-form-inline--spaced {
  display: inline-block;
  margin-left: 8px;
}

.rfp-form-inline-toggle {
  display: inline;
}

.rfp-inbox-panel {
  max-width: 900px;
  margin: 0 auto;
}

.rfp-rule {
  margin: 24px 0;
}

.rfp-inbox-status {
  margin-top: 16px;
}

.rfp-filter-form {
  margin-bottom: 16px;
}

.rfp-invite-card {
  max-width: 28rem;
}

.rfp-members-form {
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.rfp-plain-list {
  list-style: none;
  padding: 0;
}

.rfp-plain-list > li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.rfp-plain-list--row > li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.rfp-form-end {
  margin-left: auto;
}

.rfp-results-section--spaced {
  margin-top: 1.5rem;
}

.rfp-results-section--tight {
  margin-top: 1rem;
}

.rfp-loose-list {
  line-height: 1.8;
}

.rfp-key-panel {
  max-width: 640px;
  margin: 0 auto 3rem;
}

.rfp-status-ok {
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.rfp-plain-list--body {
  list-style: none;
  padding: 0;
}

.rfp-form--spaced {
  margin-top: 1.5rem;
}

.rfp-form--danger-zone {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.rfp-funnel-website-recheck-form {
  margin-top: 2rem;
}

.rfp-table-scroll {
  overflow: auto;
}

.rfp-table-scroll .table {
  width: 100%;
}

.rfp-th-actions {
  text-align: right;
}

@media (max-width: 720px) {
  .rfp-closure-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Bid Estimate product ─────────────────────────────────────────────── */

.estimate-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.estimate-hero {
  margin-bottom: 2.5rem;
}

.estimate-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.estimate-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42rem;
}

.estimate-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 1.25rem;
}

.estimate-price--inline {
  font-size: 1.35rem;
}

.estimate-analysis-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  background: var(--gray-50, #fafaf9);
}

.estimate-analysis-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600, #57534e);
}

.estimate-analysis-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy, #1e3a5f);
}

.estimate-actions {
  margin: 0.75rem 0 0;
}

.estimate-report-header .estimate-actions {
  margin-top: 1rem;
}

.estimate-section {
  margin: 2.25rem 0;
}

.estimate-body {
  max-width: 42rem;
  line-height: 1.55;
}

.estimate-lists,
.estimate-disclaimer-list,
.estimate-milestones {
  padding-left: 1.25rem;
  line-height: 1.6;
}

.estimate-disclaimer {
  max-width: 42rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.estimate-form .form-group {
  margin-bottom: 1.25rem;
}

.estimate-hint {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.estimate-meta {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.estimate-cite {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.estimate-cite-section {
  display: inline-block;
  margin-right: 0.4rem;
  font-weight: 600;
  color: var(--color-muted-soft);
}

.estimate-resource-list {
  padding-left: 1.25rem;
  line-height: 1.55;
  margin: 0;
}

.estimate-resource-list li {
  margin-bottom: 0.55rem;
}

.estimate-band {
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.estimate-band-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate-band-range {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.estimate-band-sep {
  margin: 0 0.35rem;
  font-weight: 500;
}

.estimate-band-mid {
  margin: 0.35rem 0 0;
}

.estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.estimate-table th,
.estimate-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--gray-300, #d6d3d1);
  vertical-align: top;
}

.estimate-source {
  font-weight: 600;
}

.estimate-inferred {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.estimate-unmatched td {
  color: var(--gray-500, #78716c);
}

.estimate-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.5rem;
}

.estimate-timeline dt {
  font-size: 0.8rem;
  font-weight: 600;
}

.estimate-timeline dd {
  margin: 0.15rem 0 0;
}

.estimate-generating,
.estimate-failed,
.estimate-received {
  text-align: center;
  padding: 3rem 1rem;
}

.pricing-standalone {
  max-width: 420px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

@media (max-width: 720px) {
  .estimate-timeline {
    grid-template-columns: 1fr;
  }
}

/* ── Logged-in dashboard launcher & settings ──────────────────────────── */

.rfp-credit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 12px;
  background: var(--white, #fff);
}

.rfp-credit-strip-balance {
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: 0.75rem;
}

.rfp-credit-strip-plan {
  font-size: 0.9rem;
  color: var(--gray-500, #78716c);
}

.rfp-credit-strip-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rfp-profile-gate {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 12px;
  background: rgba(200, 146, 42, 0.06);
}

.rfp-profile-gate p {
  margin: 0.35rem 0 0.85rem;
}

/* ── Dashboard hero + quick actions (Tullis-inspired horizontal) ─────────── */
.rfp-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.rfp-hero-text .rfp-kicker {
  margin-bottom: 0.35rem;
}

.rfp-hero-text .rfp-dash-title {
  margin-bottom: 0.35rem;
}

.rfp-hero-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-500, #78716c);
}

.rfp-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}

.rfp-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.rfp-qa-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-size: 14px;
  font-weight: var(--btn-weight);
  padding: 10px 18px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-fg);
  background: var(--btn-secondary-bg);
  white-space: nowrap;
  line-height: 1.2;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.rfp-qa-btn:hover {
  border-color: var(--btn-primary-bg);
}

.rfp-qa-btn--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.rfp-qa-btn--primary:hover {
  filter: brightness(1.08);
}

.rfp-qa-btn--disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.rfp-qa-cost {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-muted-soft);
}

.rfp-qa-btn--primary .rfp-qa-cost {
  color: rgba(255, 255, 255, 0.78);
}

.rfp-qa-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  text-align: right;
  max-width: 28rem;
  line-height: 1.4;
}

.rfp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.rfp-kpi {
  background: rgba(30, 58, 95, 0.04);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 7px;
  padding: 0.45rem 0.6rem;
}

.rfp-kpi--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rfp-kpi--link:hover,
.rfp-kpi--link:focus-visible {
  border-color: var(--color-accent, #0ea5e9);
  background: rgba(30, 58, 95, 0.08);
}

.rfp-kpi-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rfp-kpi-label {
  margin-top: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500, #78716c);
}

@media (max-width: 980px) {
  .rfp-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rfp-hero-actions {
    align-items: flex-start;
    width: 100%;
  }

  .rfp-quick-actions {
    justify-content: flex-start;
  }

  .rfp-qa-hint {
    text-align: left;
  }
}

.rfp-history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  background: var(--white, #fff);
  margin-top: 0.75rem;
}

table.rfp-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}

table.rfp-history th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500, #78716c);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-300, #d6d3d1);
  white-space: nowrap;
  background: rgba(30, 58, 95, 0.03);
}

table.rfp-history th.rfp-history-num,
table.rfp-history td.rfp-history-num {
  text-align: right;
}

table.rfp-history td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-300, #d6d3d1);
  vertical-align: middle;
}

table.rfp-history tbody tr:last-child td {
  border-bottom: none;
}

table.rfp-history tbody tr:hover td {
  background: rgba(30, 58, 95, 0.03);
}

.rfp-history-title {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  display: block;
}

.rfp-history-title:hover {
  color: var(--navy, #1e3a5f);
}

.rfp-history-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  margin-top: 0.15rem;
}

.rfp-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy, #1e3a5f);
}

.rfp-status-pill--analyzing,
.rfp-status-pill--writing {
  background: rgba(200, 146, 42, 0.15);
  color: #8a6114;
}

.rfp-status-pill--analyzed {
  background: rgba(53, 97, 140, 0.12);
  color: #35618c;
}

.rfp-status-pill--failed {
  background: #fee2e2;
  color: #991b1b;
}

.rfp-row-action {
  font-size: 12.8px;
  font-weight: var(--btn-weight);
  padding: 7px 13px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--btn-secondary-border);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

.rfp-row-action:hover {
  border-color: var(--btn-primary-bg);
}

.rfp-row-action--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

.rfp-launcher {
  margin-bottom: 2rem;
}

.rfp-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 1100px) {
  .rfp-launcher-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rfp-launcher-grid {
    grid-template-columns: 1fr;
  }
}

.rfp-launcher-card {
  padding: 1.25rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 12px;
  background: var(--white, #fff);
}

.rfp-launcher-card--featured {
  border-color: var(--gold, #c8922a);
}

.rfp-launcher-card--disabled {
  opacity: 0.72;
}

.rfp-launcher-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.rfp-launcher-cost {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.rfp-launcher-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  min-height: 3.2em;
}

.rfp-writing-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.rfp-writing-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-300, #d6d3d1);
  font-size: 0.92rem;
}

.nav-credits {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.nav-credits-pill {
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--gray-300, #d6d3d1);
  background: rgba(30, 58, 95, 0.06);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-credits-pill:hover {
  border-color: var(--navy, #1e3a5f);
}

.rfp-launcher-afford {
  font-weight: 500;
  color: var(--gray-500, #78716c);
  font-size: 0.85em;
}

.rfp-your-rfps-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white, #fff);
}

.rfp-your-rfp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--gray-300, #d6d3d1);
}

.rfp-your-rfp-row:last-child {
  border-bottom: none;
}

.rfp-your-rfp-title {
  font-weight: 650;
  text-decoration: none;
}

.rfp-your-rfp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--gray-500, #78716c);
}

.rfp-your-rfp-stage {
  font-weight: 600;
  color: var(--navy, #1e3a5f);
}

.rfp-your-rfp-score {
  font-weight: 600;
}

.rfp-your-rfps-more {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.rfp-your-rfps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.rfp-failed-collapse {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(120, 113, 108, 0.06);
  font-size: 0.9rem;
}

.rfp-failed-collapse-summary {
  margin: 0;
}

.rfp-run-log-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.rfp-run-log-filters [aria-current="page"] {
  font-weight: 600;
}

.rfp-failed-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.rfp-failed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--gray-300, #d6d3d1);
}

.rfp-failed-title {
  display: block;
  font-weight: 600;
}

.rfp-failed-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.rfp-failed-reason {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-500, #78716c);
}

.rfp-account-card {
  padding: 1.5rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  background: rgba(30, 58, 95, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 860px) {
  .rfp-account-card {
    position: sticky;
    top: 1.25rem;
  }
}

.rfp-account-card-heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500, #78716c);
  font-family: inherit;
}

.rfp-account-card-credit-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.rfp-account-card-number {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 2.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rfp-account-card-credits-label {
  color: var(--gray-500, #78716c);
  font-size: 0.95rem;
}

.rfp-plan-badge {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a6114;
  background: rgba(200, 146, 42, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
}

.rfp-account-card-balance {
  margin: 0.5rem 0 0.15rem;
  font-size: 1.25rem;
}

.rfp-account-card-plan {
  margin: 0 0 0.85rem;
  color: var(--gray-500, #78716c);
  font-size: 0.9rem;
}

.rfp-account-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rfp-account-card-activity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: var(--gray-500, #78716c);
}

.rfp-account-card-rule {
  border: none;
  border-top: 1px solid var(--gray-300, #d6d3d1);
  margin: 0;
}

.rfp-account-card-profile {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.rfp-account-card-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.rfp-ready-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2e6f52;
  font-weight: 600;
  font-size: 0.85rem;
}

.rfp-ready-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e6f52;
}

.rfp-form-inline {
  display: inline;
  margin: 0;
}

.rfp-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border-bottom: 1px solid var(--color-border, var(--gray-300, #d6d3d1));
}

.rfp-settings-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
  background: transparent;
  color: var(--color-muted, #78716c);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.rfp-settings-tab:hover,
.rfp-settings-tab:focus-visible {
  color: var(--color-text, #1c1917);
  outline: none;
}

.rfp-settings-tab.is-active {
  color: var(--color-text, #1c1917);
  background: var(--color-bg-elevated, #fff);
  border-color: var(--color-border, var(--gray-300, #d6d3d1));
}

.rfp-settings-panels {
  min-height: 12rem;
}

.rfp-settings-panel[hidden],
.rfp-settings-panel:not(.is-active) {
  display: none !important;
}

.rfp-settings-panel.is-active {
  display: block;
}

.rfp-settings-nav a {
  font-size: 0.9rem;
  font-weight: 600;
}

.rfp-settings-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.rfp-documents-profile-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rfp-settings-links {
  padding-left: 1.25rem;
  line-height: 1.8;
}

.rfp-security-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.rfp-security-stack .rfp-edit-fieldset {
  margin: 0;
}

.rfp-security-subhead {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.rfp-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rfp-security-signout {
  margin: 0.25rem 0 0;
}

.rfp-billing-plan-fieldset {
  margin-top: 1.5rem;
}

.rfp-billing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.rfp-billing-plan {
  border: 1px solid var(--color-border, #e5e2dc);
  border-radius: var(--radius, 8px);
  padding: 1rem;
  background: var(--color-bg, #fff);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rfp-billing-plan--current {
  border-color: var(--navy, #0f2340);
  box-shadow: inset 0 0 0 1px var(--navy, #0f2340);
}

.rfp-billing-plan-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.rfp-billing-plan-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy, #0f2340);
}

.rfp-billing-plan-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-500, #78716c);
}

.rfp-billing-plan-credits {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500, #78716c);
}

.rfp-billing-plan-note {
  margin: 0.25rem 0 0.75rem;
}

.rfp-billing-plan-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.rfp-billing-cancel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, #e5e2dc);
}

.rfp-billing-cancel-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.rfp-theme-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rfp-theme-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.rfp-tier-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.rfp-tier-option {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  cursor: pointer;
}

.rfp-tier-option input {
  grid-row: 1 / span 2;
  align-self: center;
}

.rfp-tier-option--selected,
.rfp-tier-option:has(input:checked) {
  border-color: var(--navy, #1e3a5f);
}

.rfp-tier-option-title {
  font-weight: 700;
}

.rfp-tier-option-cost {
  font-weight: 600;
  grid-column: 2;
}

.rfp-tier-option-detail {
  grid-column: 2;
  font-size: 0.85rem;
  color: var(--gray-500, #78716c);
}

.rfp-plans-footnote {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
  font-size: 0.9rem;
}

html[data-theme="dark"],
body.theme-dark {
  color-scheme: dark;
}

body.theme-dark {
  background: #12141a;
  color: #e8e6e1;
}

body.theme-dark .rfp-launcher-card,
body.theme-dark .rfp-credit-strip,
body.theme-dark .rfp-source-card,
body.theme-dark .rfp-your-rfps-list,
body.theme-dark .rfp-history-table-wrap,
body.theme-dark .rfp-account-card,
body.theme-dark .rfp-kpi,
body.theme-dark .rfp-qa-btn,
body.theme-dark .tier-card {
  background: #1a1d26;
  border-color: #2e3340;
}

body.theme-dark .rfp-qa-btn--primary,
body.theme-dark .rfp-row-action--primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

body.theme-dark table.rfp-history th {
  background: #12151c;
}

/* ── Authenticated /analyze/ workspace ───────────────────────────────────── */
.rfp-analyze-head {
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.rfp-analyze-greeting {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading, #1e3a5f);
  text-align: left;
}

.rfp-analyze-lead {
  margin: 0;
  max-width: none;
  width: 80%;
  font-size: 0.95rem;
  color: var(--gray-500, #78716c);
  line-height: 1.5;
}

.rfp-analyze-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.35rem;
  align-items: start;
}

.rfp-analyze-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 880px) {
  .rfp-analyze-layout {
    grid-template-columns: 1fr;
  }
}

.rfp-analyze-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 881px) {
  .rfp-analyze-rail {
    position: sticky;
    top: 1.25rem;
  }
}

.rfp-analyze-panel {
  background: var(--white, #fff);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 1px 2px rgba(30, 58, 95, 0.06);
}

.rfp-analyze-main {
  padding: 1.5rem 1.6rem;
}

.rfp-analyze-rail-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gray-500, #78716c);
  margin-bottom: 0.85rem;
}

.rfp-analyze-credit-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.rfp-analyze-gauge {
  position: relative;
  width: 84px;
  height: 84px;
  flex: none;
}

.rfp-analyze-gauge svg {
  transform: rotate(-90deg);
}

.rfp-analyze-gauge-track {
  stroke: var(--gray-300, #d6d3d1);
  fill: none;
  stroke-width: 10;
}

.rfp-analyze-gauge-seg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: butt;
}

.rfp-analyze-gauge-seg--green {
  stroke: #1c7a52;
}

.rfp-analyze-gauge-seg--yellow {
  stroke: #c8922a;
}

.rfp-analyze-gauge-seg--red {
  stroke: #bf3b2c;
}

.rfp-analyze-gauge-fill {
  stroke: var(--navy, #1e3a5f);
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.rfp-analyze-gauge-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.rfp-analyze-credit-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  line-height: 1.35;
}

.rfp-analyze-credit-legend li {
  position: relative;
  padding-left: 0.9rem;
}

.rfp-analyze-credit-legend li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.rfp-analyze-credit-legend--green::before { background: #1c7a52; }
.rfp-analyze-credit-legend--red::before { background: #bf3b2c; }
.rfp-analyze-credit-legend--yellow::before { background: #c8922a; }

.rfp-analyze-credit-legend strong {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  color: var(--color-heading, #1e3a5f);
}

.rfp-analyze-credit-remaining {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--gray-500, #78716c);
  line-height: 1.4;
}

.rfp-analyze-credit-remaining strong {
  font-family: var(--font-mono, ui-monospace, monospace);
  color: var(--color-heading, #1e3a5f);
}

.rfp-analyze-credit-copy {
  font-size: 0.8rem;
  color: var(--gray-500, #78716c);
  line-height: 1.45;
}

.rfp-analyze-credit-copy strong {
  color: inherit;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  color: var(--color-heading, #1e3a5f);
}

.rfp-analyze-credit-note {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--gray-300, #d6d3d1);
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
}

.rfp-analyze-pct-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.rfp-analyze-pct-row strong {
  font-family: var(--font-mono, ui-monospace, monospace);
}

.rfp-analyze-bar-track {
  height: 7px;
  border-radius: 6px;
  background: var(--gray-300, #d6d3d1);
  overflow: hidden;
}

.rfp-analyze-bar-fill {
  height: 100%;
  background: var(--navy, #1e3a5f);
  border-radius: 6px;
  max-width: 100%;
}

.rfp-analyze-gap-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rfp-analyze-gap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  background: rgba(30, 58, 95, 0.04);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
}

.rfp-analyze-gap-fix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-fg);
  background: var(--btn-secondary-bg);
  font-size: 12.8px;
  font-weight: var(--btn-weight);
  padding: 7px 13px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.rfp-analyze-gap-fix:hover {
  border-color: var(--btn-primary-bg);
}

.rfp-analyze-momentum-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}

.rfp-analyze-momentum-unit {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--gray-500, #78716c);
}

.rfp-analyze-momentum-sub {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
}

.rfp-analyze-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin-top: 0.85rem;
}

.rfp-analyze-spark i {
  flex: 1;
  background: var(--gray-300, #d6d3d1);
  border-radius: 3px 3px 0 0;
  display: block;
  min-height: 4px;
}

.rfp-analyze-spark-now {
  background: var(--navy, #1e3a5f) !important;
}

.rfp-analyze-rfp-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--gray-300, #d6d3d1);
  text-decoration: none;
  color: inherit;
}

.rfp-analyze-rfp-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.rfp-analyze-rfp-text {
  min-width: 0;
  flex: 1;
}

.rfp-analyze-rfp-name {
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rfp-analyze-rfp-meta {
  font-size: 0.7rem;
  color: var(--gray-500, #78716c);
  font-family: var(--font-mono, ui-monospace, monospace);
}

.rfp-analyze-chip {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  flex: none;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy, #1e3a5f);
}

.rfp-analyze-chip--analyzed {
  background: rgba(53, 97, 140, 0.12);
  color: #35618c;
}

.rfp-analyze-chip--writing {
  background: rgba(200, 146, 42, 0.15);
  color: #8a6114;
}

.rfp-analyze-chip--failed {
  background: #fee2e2;
  color: #991b1b;
}

.rfp-analyze-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.rfp-analyze-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.rfp-analyze-main-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font-serif);
}

.rfp-analyze-cost-tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy, #1e3a5f);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.rfp-analyze-org-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0 0 0.9rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gray-200, #e7e5e4);
  border-radius: 0;
}

.rfp-analyze-org-list {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rfp-analyze-org-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  font-size: 0.875rem;
}

.rfp-analyze-org-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--gray-500, #78716c);
}

.rfp-analyze-org-row dd {
  margin: 0;
  font-weight: 600;
  color: inherit;
  overflow-wrap: anywhere;
}

.rfp-analyze-manage {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  padding: 0;
  border: none;
  background: none;
}

.rfp-analyze-manage:hover {
  color: var(--btn-primary-bg);
}

@media (max-width: 640px) {
  .rfp-analyze-org-summary {
    flex-direction: column;
  }

  .rfp-analyze-org-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.rfp-analyze-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .rfp-analyze-grid2 {
    grid-template-columns: 1fr;
  }
}

.rfp-analyze-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.rfp-analyze-profile-tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy, #1e3a5f);
  font-weight: 600;
}

.rfp-analyze-profile-chip a {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
}

.rfp-analyze-drop-field {
  margin-top: 1.1rem;
}

.rfp-analyze-dropzone {
  border: 2px dashed var(--gray-300, #d6d3d1);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: rgba(30, 58, 95, 0.03);
  position: relative;
}

.rfp-analyze-dropzone--drag {
  border-color: var(--navy, #1e3a5f);
  background: rgba(30, 58, 95, 0.08);
}

.rfp-analyze-dropzone--filled {
  border-style: solid;
  border-color: #2e6f52;
  background: rgba(46, 111, 82, 0.08);
}

.rfp-analyze-dz-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.rfp-analyze-dz-sub {
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  margin-top: 0.2rem;
}

.rfp-analyze-dz-file {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.8rem;
  color: #2e6f52;
  margin-top: 0.4rem;
  word-break: break-all;
}

.rfp-analyze-dropzone .rfp-file-input,
.rfp-analyze-dropzone input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.rfp-analyze-dropzone .rfp-file-input::file-selector-button,
.rfp-analyze-dropzone input[type="file"]::file-selector-button {
  background: transparent;
  border: 1px solid var(--color-accent, #0ea5e9);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0.75rem;
  color: var(--color-link, #0ea5e9);
}

.rfp-analyze-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.rfp-analyze-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border: 1px solid var(--btn-primary-bg);
  padding: 10px 18px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: var(--btn-weight);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.rfp-analyze-cta:hover:not(:disabled) {
  filter: brightness(1.08);
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
}

.rfp-analyze-cta:active:not(:disabled) {
  transform: none;
}

.rfp-analyze-cta:focus-visible {
  outline: 2px solid var(--btn-primary-bg);
  outline-offset: 2px;
}

.rfp-analyze-cta:disabled {
  background: var(--btn-secondary-border);
  border-color: var(--btn-secondary-border);
  color: var(--color-muted-soft);
  cursor: not-allowed;
  filter: none;
}

.rfp-analyze-cta-cost {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.85;
}

.rfp-analyze-link-quiet {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rfp-analyze-what {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (max-width: 760px) {
  .rfp-analyze-what {
    grid-template-columns: 1fr;
  }
}

.rfp-analyze-wwc {
  background: rgba(30, 58, 95, 0.04);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}

.rfp-analyze-wwc-h {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rfp-analyze-wwc p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-500, #78716c);
  line-height: 1.4;
}

.rfp-analyze-wwc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.rfp-analyze-wwc-dot--fit { background: var(--navy, #1e3a5f); }
.rfp-analyze-wwc-dot--risk { background: #bf3b2c; }
.rfp-analyze-wwc-dot--gap { background: var(--gold, #c8922a); }

body.theme-dark .rfp-analyze-panel,
body.theme-dark .rfp-analyze-wwc,
body.theme-dark .rfp-analyze-profile-chip,
body.theme-dark .rfp-analyze-dropzone {
  background: #1a1d26;
  border-color: #2e3340;
}

body.theme-dark .rfp-analyze-cta:not(:disabled) {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}

body.theme-light {
  color-scheme: light;
}

/* --- Proposal outline delivery page --- */
.outline-section {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.outline-status {
  margin: 0 0 1.25rem;
  color: var(--gray-600, #57534e);
  font-size: 0.95rem;
}

.outline-wait {
  margin: 1rem 0;
  color: var(--gray-700, #44403c);
  line-height: 1.55;
}

.outline-content.reading-surface {
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem;
  background: var(--white, #fff);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  line-height: 1.6;
  color: var(--gray-900, #1c1917);
  overflow-x: auto;
}

.outline-content > *:first-child {
  margin-top: 0;
}

.outline-content h1,
.outline-content h2,
.outline-content h3,
.outline-content h4 {
  margin: 1.35rem 0 0.55rem;
  line-height: 1.25;
  color: var(--navy, #1e3a5f);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.outline-content h1 { font-size: 1.65rem; }
.outline-content h2 { font-size: 1.35rem; }
.outline-content h3 { font-size: 1.15rem; }

.outline-content p {
  margin: 0 0 0.85rem;
}

.outline-content ul,
.outline-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.outline-content li {
  margin: 0.25rem 0;
}

.outline-content blockquote {
  margin: 0 0 1rem;
  padding: 0.55rem 0.9rem;
  border-left: 3px solid var(--gold, #c8922a);
  background: var(--gray-100, #f5f5f4);
  color: var(--gray-800, #292524);
}

.outline-content pre,
.outline-content code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875em;
}

.outline-content pre {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  background: var(--gray-100, #f5f5f4);
  border-radius: 8px;
}

.outline-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
}

.outline-content th,
.outline-content td {
  border: 1px solid var(--gray-300, #d6d3d1);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.outline-content th {
  background: var(--gray-100, #f5f5f4);
  font-weight: 600;
}

.outline-content hr {
  border: 0;
  border-top: 1px solid var(--gray-300, #d6d3d1);
  margin: 1.25rem 0;
}

/* --- Proposal draft delivery page --- */
.draft-section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.draft-status {
  margin: 0 0 1.25rem;
  color: var(--gray-600, #57534e);
}

.draft-input-callout {
  margin-bottom: 1.5rem;
}

.draft-version {
  margin-top: 1.5rem;
}

.draft-version-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.draft-version-heading h2,
.draft-version-heading p {
  margin: 0;
}

.draft-version-heading p {
  color: var(--gray-600, #57534e);
  font-size: 0.9rem;
}

.draft-download-blocked {
  max-width: 15rem;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

.draft-compliance {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  background: var(--gray-50, #fafaf9);
}

.draft-compliance-warning {
  color: #92400e;
  font-weight: 600;
}

.draft-compliance-items {
  max-height: 18rem;
  overflow-y: auto;
  padding-left: 1.25rem;
}

.draft-content.reading-surface {
  margin: 0 0 2rem;
  padding: 1.5rem 1.65rem;
  background: var(--white, #fff);
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  line-height: 1.65;
  color: var(--gray-900, #1c1917);
  overflow-x: auto;
}

.draft-content > *:first-child {
  margin-top: 0;
}

.draft-content h1,
.draft-content h2,
.draft-content h3,
.draft-content h4 {
  margin: 1.45rem 0 0.6rem;
  line-height: 1.25;
  color: var(--navy, #1e3a5f);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.draft-content h1 { font-size: 1.8rem; }
.draft-content h2 { font-size: 1.45rem; }
.draft-content h3 { font-size: 1.2rem; }

.draft-content p {
  margin: 0 0 0.9rem;
}

.draft-content ul,
.draft-content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.draft-content blockquote {
  margin: 0 0 1rem;
  padding: 0.6rem 0.95rem;
  border-left: 3px solid var(--gold, #c8922a);
  background: var(--gray-100, #f5f5f4);
}

.draft-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
}

.draft-content th,
.draft-content td {
  border: 1px solid var(--gray-300, #d6d3d1);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.draft-content th {
  background: var(--gray-100, #f5f5f4);
}

.draft-content pre,
.draft-content code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.875em;
}

@media (max-width: 640px) {
  .draft-version-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

.upgrade-offer {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  background: var(--gray-50, #fafaf9);
}

.outline-upgrade-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy, #1e3a5f);
}


/* Strong Fit search-in-progress (shown after confirm while SAM scan runs) */
.rfp-recon-search-progress {
  margin-top: 1.25rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--gray-300, #d6d3d1);
  border-radius: 10px;
  background: var(--gray-50, #fafaf9);
}
.rfp-recon-search-progress[hidden] {
  display: none !important;
}
.rfp-recon-search-progress-title {
  margin: 0.5rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy, #1e3a5f);
}
.rfp-recon-search-progress .rfp-spinner {
  margin: 0.25rem auto 0.75rem;
}

/* Write context chooser + contextual write banner */
.rfp-chooser-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.rfp-chooser-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-200, #e7e5e4);
}
.rfp-chooser-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.rfp-chooser-item-title {
  font-weight: 600;
  color: var(--navy, #1e3a5f);
}
.rfp-chooser-item-meta {
  font-size: 0.875rem;
  color: var(--gray-600, #57534e);
}
.rfp-write-context {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--navy, #1e3a5f);
  background: var(--gray-50, #fafaf9);
}
.rfp-write-context-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600, #57534e);
}
.rfp-write-context-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy, #1e3a5f);
}
.rfp-write-context-meta {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-600, #57534e);
}
