/* app.css — RealBid dashboard styles */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #22304a;
  --primary-hover: #1d2433;
  --primary-light: #f1efe7;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --border: #e5e1d6;
  --border-hover: #d7d0c2;
  --text: #1d2433;
  --text-muted: #566071;
  --text-light: #8a93a3;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(29,36,51,0.08), 0 1px 2px rgba(29,36,51,0.04);
  --shadow-lg: 0 8px 24px rgba(29,36,51,0.08);
  --sidebar-w: 240px;
  --header-h: 60px;
}

body {
  font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* RealBid landing */
.realbid-landing-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.realbid-landing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 52px 34px;
}

.realbid-landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
}

.realbid-landing-brand {
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.realbid-landing-brand:hover,
.realbid-landing-links a:hover,
.realbid-landing-links button:hover {
  text-decoration: none;
}

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

.realbid-landing-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.realbid-landing-links a,
.realbid-landing-links button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
}

.realbid-landing-links a:hover,
.realbid-landing-links button:hover {
  color: var(--text);
}

.realbid-landing-links .realbid-nav-cta {
  color: var(--text-muted);
}

.realbid-hero {
  flex: 1;
  min-height: calc(100vh - 210px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: clamp(48px, 8vw, 118px);
  padding: 76px 0 46px;
}

.realbid-hero-copy {
  max-width: 620px;
}

.realbid-hero h1 {
  max-width: 610px;
  font-size: clamp(46px, 5.2vw, 66px);
  line-height: 1.24;
  font-weight: 800;
}

.realbid-hero-text {
  max-width: 570px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1.65;
}

.realbid-command-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.realbid-command-button {
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.realbid-command-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  font-size: 16px;
}

.realbid-command-button:hover {
  background: var(--primary-hover);
}

.realbid-landing-links .realbid-nav-cta:hover {
  color: var(--text);
}

.realbid-command-note {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}

.realbid-source-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 56px;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.realbid-source-line span {
  display: inline-flex;
  align-items: center;
}

.realbid-source-line span::before {
  content: "·";
  padding: 0 6px;
}

.realbid-source-line span:first-child::before {
  content: "";
  padding: 0;
}

.realbid-live-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.realbid-live-label {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.realbid-live-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.realbid-demo-thread {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.realbid-demo-message {
  width: min(92%, 420px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px 14px;
}

.realbid-demo-message.user {
  justify-self: end;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.realbid-demo-message.agent {
  justify-self: start;
  background: var(--surface);
}

.realbid-demo-message.compact {
  padding: 10px 12px;
}

.realbid-demo-message span,
.realbid-demo-card span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.realbid-demo-message.user span {
  color: rgba(255,255,255,0.68);
}

.realbid-demo-message p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.realbid-demo-message.user p {
  color: #fff;
}

.realbid-demo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
  width: min(96%, 460px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.realbid-demo-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.realbid-demo-card p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.realbid-demo-card b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 4px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
}

.realbid-proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 0 18px;
  border-top: 1px solid var(--border);
}

.realbid-proof-band div {
  min-width: 0;
}

.realbid-proof-kicker {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
}

.realbid-proof-band h2 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.realbid-proof-band p {
  max-width: 330px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.realbid-pricing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.realbid-pricing-band p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: right;
}

.realbid-landing-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-light);
  font-size: 14px;
  padding-top: 22px;
}

.realbid-modal-open {
  overflow: hidden;
}

.realbid-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(29,36,51,0.42);
  padding: 22px;
}

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

.realbid-lead-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29,36,51,0.22);
  padding: 32px;
}

.realbid-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.realbid-modal-close:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.realbid-lead-modal h2 {
  margin-top: 10px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.18;
}

.realbid-lead-modal > p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.realbid-lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.realbid-lead-form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.realbid-lead-form label > span:not(.realbid-field-error) {
  color: var(--text-light);
  font-weight: 700;
}

.realbid-lead-wide,
.realbid-lead-actions,
.realbid-lead-status {
  grid-column: 1 / -1;
}

.realbid-lead-form textarea.form-input {
  min-height: 112px;
  resize: vertical;
}

.realbid-lead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.realbid-lead-actions .realbid-command-button {
  min-height: 44px;
}

.realbid-lead-secondary {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
}

.realbid-lead-secondary:hover {
  background: var(--bg);
  border-color: var(--border-hover);
}

.realbid-lead-status {
  min-height: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.realbid-lead-status.success {
  color: #166534;
}

.realbid-lead-status.error {
  color: #991b1b;
}

/* RealBid sign-in gate */
.realbid-signin-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.realbid-signin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.realbid-signin-brand {
  position: fixed;
  top: 28px;
  left: 52px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.realbid-signin-brand span {
  color: var(--text-muted);
}

.realbid-signin-brand:hover {
  text-decoration: none;
}

.realbid-signin-card {
  width: min(100%, 440px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}

.realbid-signin-kicker {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.realbid-signin-card h1 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
}

.realbid-signin-card p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.realbid-signin-form {
  margin-top: 24px;
}

.realbid-signin-form label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  margin: 12px 0 6px;
}

.realbid-auth-status {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.realbid-confirm-form {
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 18px;
}

.realbid-confirm-form[hidden] {
  display: none;
}

.realbid-confirm-form .btn-secondary {
  margin-top: 8px;
}

.realbid-signup-card {
  width: min(100%, 640px);
}

.realbid-signup-form label {
  display: grid;
  gap: 6px;
}

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

.realbid-field-error {
  min-height: 15px;
  color: #991b1b;
  font-size: 11px;
  line-height: 1.35;
}

.realbid-password-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 2px;
}

.realbid-password-rules span {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-light);
  padding: 6px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.realbid-password-rules span.passed {
  border-color: #bbf7d0;
  background: var(--success-light);
  color: #166534;
}

/* Auth Screen */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.auth-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-card p { color: var(--text-muted); margin-bottom: 24px; }

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.btn-primary {
  width: 100%;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  padding: 8px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg); }

.btn-danger {
  padding: 8px 16px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.15s;
}
.btn-danger:hover { background: #dc2626; }

.error-msg {
  background: var(--danger-light);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}

.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-nav {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.nav-logo { font-size: 1.3rem; }

.dashboard-nav nav {
  flex: 1;
  padding: 12px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover, .nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}
.nav-icon { font-size: 1.1rem; }

.nav-footer {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.user-info { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  transition: background 0.15s;
}
.btn-logout:hover { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page Header */
.page-header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.2rem; padding: 4px; }
.page-title { font-size: 1.1rem; font-weight: 600; }
.header-actions { display: flex; gap: 8px; }

/* Page Body */
.page-body { padding: 24px; flex: 1; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.card-title { font-size: 1rem; font-weight: 600; }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-new { background: var(--primary-light); color: var(--primary); }
.badge-parsed { background: var(--success-light); color: var(--success); }
.badge-draft { background: var(--warning-light); color: var(--warning); }
.badge-review { background: #eff6ff; color: #2563eb; }
.badge-final { background: var(--success-light); color: var(--success); }
.badge-proposal { background: #eff6ff; color: #2563eb; }
.badge-boilerplate { background: var(--primary-light); color: var(--primary); }
.badge-capability { background: #f0fdf4; color: #15803d; }

/* AWS-native proof path */
.aws-native-page {
  background: var(--bg);
  min-height: 100vh;
}

.aws-native-shell {
  display: flex;
  min-height: 100vh;
}

.command-center-page .aws-native-shell {
  display: block;
}

.command-center-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgba(251,250,247,0.94);
  border-bottom: 1px solid var(--border);
}

.command-center-brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  flex: 0 0 auto;
}

.command-center-brand span {
  color: var(--text-muted);
}

.command-center-brand:hover,
.command-center-nav a:hover,
.command-center-signout:hover {
  text-decoration: none;
}

.command-center-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.command-center-nav a,
.command-center-signout {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.command-center-nav a.active,
.command-center-nav a:hover,
.command-center-signout:hover {
  background: var(--primary-light);
  color: var(--text);
}

.aws-native-nav {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}

.aws-native-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.aws-native-brand:hover {
  text-decoration: none;
}

.aws-native-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.command-center-main {
  margin-left: 0;
}

.aws-native-header {
  min-height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.aws-native-header h1 {
  font-size: 1.1rem;
  font-weight: 700;
}

.aws-native-header p {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.aws-native-alert {
  margin: 24px 24px 0;
  background: var(--danger-light);
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
}

.command-center-intent {
  margin: 24px 24px 0;
  background: var(--primary-light);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(420px, 2fr);
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.today-feed {
  min-width: 0;
}

.today-feed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.today-feed-header h2 {
  font-size: 20px;
  line-height: 1.2;
}

.today-feed-header p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.today-sync-button,
.opportunity-action,
.assistant-action {
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.today-sync-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
}

.today-sync-button:hover,
.opportunity-action.primary:hover,
.assistant-action.primary:hover {
  background: var(--primary-hover);
}

.today-sync-button:disabled,
.opportunity-action:disabled,
.assistant-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.today-status {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  padding: 14px 16px;
  font-size: 13px;
}

.today-status[hidden] {
  display: none;
}

.today-status.error {
  border-color: #fecaca;
  background: var(--danger-light);
  color: #991b1b;
}

.today-status.success {
  background: var(--primary-light);
  color: var(--text);
}

.today-opportunity-list {
  display: grid;
  gap: 16px;
}

.opportunity-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.opportunity-card.passed {
  opacity: 0.66;
}

.opportunity-card.pursuing {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34,48,74,0.08);
}

.opportunity-card-main {
  min-width: 0;
}

.opportunity-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 23px;
  margin-bottom: 10px;
}

.opportunity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.opportunity-badge.recommended {
  background: var(--text);
  color: #fff;
}

.opportunity-badge.warning {
  background: var(--warning-light);
  color: #92400e;
}

.opportunity-badge.fail {
  background: var(--danger-light);
  color: #991b1b;
}

.opportunity-number {
  color: var(--text-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
}

.opportunity-title {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.opportunity-agency {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
}

.opportunity-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
}

.opportunity-meta strong {
  color: var(--text);
  font-weight: 800;
}

.opportunity-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.opportunity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.opportunity-chip.fail {
  color: #991b1b;
  background: var(--danger-light);
  border-color: #fecaca;
}

.opportunity-chip.good {
  color: #166534;
  background: var(--success-light);
  border-color: #bbf7d0;
}

.opportunity-rationale {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.opportunity-progress {
  margin-top: 10px;
  color: var(--text);
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.opportunity-score {
  align-self: start;
  display: grid;
  place-items: center;
  width: 92px;
  min-height: 104px;
  color: var(--text);
}

.opportunity-score > div {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--primary) calc(var(--fit-score, 0) * 1%), var(--border) 0);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
}

.opportunity-score > div::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(229,225,214,0.72);
}

.opportunity-score-value {
  position: relative;
  z-index: 1;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

.opportunity-score-label {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  color: var(--text-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.opportunity-expanded {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.score-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.score-detail {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--bg);
}

.score-detail span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.score-detail strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.score-breakdown {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.verdict-section {
  min-width: 0;
}

.verdict-section + .verdict-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

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

.verdict-section-title span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.verdict-section-title strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.gate-list {
  display: grid;
  gap: 8px;
}

.gate-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 11px 12px;
}

.gate-status {
  display: inline-flex;
  justify-content: center;
  min-height: 23px;
  border-radius: 999px;
  padding: 5px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.gate-status.pass {
  background: var(--success-light);
  color: #166534;
}

.gate-status.fail {
  background: var(--danger-light);
  color: #991b1b;
}

.gate-status.unknown {
  background: var(--warning-light);
  color: #92400e;
}

.gate-copy {
  min-width: 0;
}

.gate-copy strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.gate-copy p,
.risk-box p,
.verdict-note,
.ev-unavailable p,
.score-factor p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  max-width: 210px;
  min-height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  padding: 0 9px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

a.source-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
  text-decoration: none;
}

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

.ev-grid div,
.ev-unavailable {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 10px;
}

.ev-grid span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ev-grid strong,
.ev-unavailable strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.ev-line {
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.risk-box {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  border-left: 4px solid var(--border-hover);
  background: var(--bg);
  padding: 10px 12px;
}

.risk-box.blocker {
  border-left-color: var(--danger);
  background: var(--danger-light);
}

.risk-box.watch {
  border-left-color: var(--warning);
  background: var(--warning-light);
}

.risk-box.info {
  border-left-color: var(--success);
  background: var(--success-light);
}

.risk-box > span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.risk-box strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.risk-box .source-chip {
  justify-self: start;
  margin-top: 7px;
}

.score-factor-list {
  display: grid;
  gap: 8px;
}

.score-factor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 78px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.score-factor:last-child {
  border-bottom: 0;
}

.score-factor strong {
  color: var(--text);
  font-size: 13px;
}

.score-factor > span {
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.opportunity-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.opportunity-action,
.assistant-action {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.opportunity-action.primary,
.assistant-action.primary {
  background: var(--primary);
  color: #fff;
}

.opportunity-action.secondary,
.assistant-action.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.opportunity-action.secondary:hover,
.assistant-action.secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.today-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.assistant-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.assistant-kicker {
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-body {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.assistant-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.today-chat-card {
  display: grid;
  grid-template-rows: minmax(310px, 1fr) auto;
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.today-chat-thread {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.today-chat-message {
  width: min(92%, 320px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 11px 12px;
}

.today-chat-message.agent {
  justify-self: start;
  background: var(--surface);
}

.today-chat-message.user {
  justify-self: end;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.today-chat-message span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.today-chat-message.user span {
  color: rgba(255,255,255,0.68);
}

.today-chat-message p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.today-chat-message.user p {
  color: #fff;
}

.today-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px;
}

.today-chat-composer input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 13px;
}

.today-chat-composer input:focus {
  outline: 2px solid rgba(34,48,74,0.16);
  border-color: var(--primary);
}

.today-chat-composer button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.pursuit-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.pursuit-card[hidden] {
  display: none;
}

.pursuit-card-header h3 {
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.pursuit-card-header p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.pursuit-current {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 8px 10px;
}

.pursuit-current span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pursuit-current strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.pursuit-timeline {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.pursuit-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
}

.pursuit-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pursuit-step-marker {
  display: inline-flex;
  justify-content: center;
  min-height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  padding: 4px 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.pursuit-step.complete .pursuit-step-marker {
  background: var(--success-light);
  border-color: #bbf7d0;
  color: #166534;
}

.pursuit-step.processing .pursuit-step-marker {
  background: var(--primary-light);
  border-color: var(--border-hover);
  color: var(--text);
}

.pursuit-step.failed .pursuit-step-marker {
  background: var(--danger-light);
  border-color: #fecaca;
  color: #991b1b;
}

.pursuit-step.skipped .pursuit-step-marker {
  background: var(--warning-light);
  border-color: #fde68a;
  color: #92400e;
}

.pursuit-step-copy {
  min-width: 0;
}

.pursuit-step-copy strong {
  display: block;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
}

.pursuit-step-copy p {
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.pursuit-step-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.pursuit-step-result {
  max-width: 86px;
  color: var(--text-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

/* Bid workspace */
.bid-workspace-page {
  min-height: 100vh;
}

.bid-workspace-page .aws-native-shell {
  display: block;
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 2.35fr) minmax(420px, 1.7fr);
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.workspace-shell.list-mode {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-shell.list-mode .workspace-sidebar,
.workspace-shell.list-mode .workspace-rail {
  display: none;
}

.workspace-shell.list-mode .workspace-main {
  width: min(100%, 1120px);
  justify-self: center;
}

.workspace-sidebar,
.workspace-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.workspace-sidebar-title {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-list,
.workspace-section-nav,
.workspace-readiness-legend {
  display: grid;
  gap: 8px;
}

.workspace-list-item,
.workspace-section-nav a {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0 12px;
  text-align: left;
  text-decoration: none;
}

.workspace-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workspace-list-copy,
.workspace-list-facts {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-list-title,
.workspace-list-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-list-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.workspace-list-meta,
.workspace-list-facts span {
  color: var(--text-light);
  font-size: 11px;
  font-weight: 700;
}

.workspace-list-facts {
  justify-items: end;
  text-align: right;
}

.workspace-list-facts strong {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.workspace-list-facts strong.ready {
  color: #166534;
}

.workspace-list-facts strong.no_draft,
.workspace-list-facts strong.drafting {
  color: var(--text-muted);
}

.workspace-list-facts strong.failed,
.workspace-list-facts strong.blocked {
  color: #991b1b;
}

.workspace-list-item.active,
.workspace-section-nav a.active,
.workspace-section-nav a:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  color: var(--text);
  box-shadow: var(--shadow);
}

.workspace-section-nav a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.workspace-readiness-legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.workspace-state-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px;
}

.workspace-state-panel h1 {
  margin-top: 7px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
}

.workspace-state-panel p {
  max-width: 640px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.workspace-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.workspace-state-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-state-actions a:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.workspace-list-skeleton {
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface), var(--primary-light), var(--surface));
  background-size: 220% 100%;
  animation: workspace-loading 1.4s ease-in-out infinite;
}

.workspace-list-skeleton.short {
  min-height: 42px;
  opacity: 0.7;
}

@keyframes workspace-loading {
  0% { background-position: 0 0; }
  100% { background-position: 220% 0; }
}

.workspace-hero,
.workspace-index-hero,
.workspace-panel,
.workspace-section-card,
.workspace-rail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workspace-hero,
.workspace-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.workspace-kicker {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-hero h1,
.workspace-index-hero h1 {
  margin-top: 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
}

.workspace-hero p,
.workspace-index-hero p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 14px;
}

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

.workspace-index-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 18px;
  text-align: left;
}

.workspace-index-card:hover,
.workspace-index-card:focus {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.workspace-index-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.workspace-index-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-index-card small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-index-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.workspace-index-card-footer > span:not(.workspace-section-status) {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.workspace-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-sidebar-back {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.workspace-back-button:hover {
  border-color: var(--border-hover);
  background: var(--primary-light);
}

.workspace-hero.failed {
  border-color: #fecaca;
}

.workspace-hero.no_draft {
  border-color: var(--border-hover);
}

.workspace-status-detail {
  max-width: 680px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.workspace-readiness-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px;
}

.workspace-readiness-card span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-readiness-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.workspace-readiness-card p {
  margin-top: 5px;
  font-size: 12px;
}

.workspace-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.workspace-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.workspace-panel-header h2 {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
}

.workspace-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.workspace-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.workspace-table th,
.workspace-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.workspace-table th {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-table td:first-child {
  color: var(--text);
  font-weight: 700;
}

.workspace-status-pill,
.workspace-section-status {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-status-pill.addressed,
.workspace-section-status.ready {
  background: var(--success-light);
  color: #166534;
}

.workspace-status-pill.needs_review,
.workspace-section-status.drafting {
  background: var(--primary-light);
  color: var(--text);
}

.workspace-status-pill.unmapped,
.workspace-section-status.needs_user {
  background: var(--warning-light);
  color: #92400e;
}

.workspace-status-pill.failed,
.workspace-section-status.blocked {
  background: var(--danger-light);
  color: #991b1b;
}

.workspace-status-pill.no_draft {
  background: var(--primary-light);
  color: var(--text-muted);
}

.workspace-state-inline.failed {
  border-color: #fecaca;
}

.workspace-state-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.workspace-progress-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.workspace-progress-step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 11px 12px 11px 36px;
}

.workspace-progress-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--text-light);
}

.workspace-progress-step.complete::before {
  background: var(--success);
}

.workspace-progress-step.processing::before {
  background: var(--primary);
}

.workspace-progress-step.failed::before {
  background: var(--danger);
}

.workspace-progress-step span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-progress-step strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.workspace-progress-step p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.package-readiness-panel {
  border-color: var(--border-hover);
}

.workspace-package-button {
  min-height: 38px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-package-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.workspace-package-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.workspace-package-metrics div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 10px;
  min-width: 0;
}

.workspace-package-metrics span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-package-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-package-blockers {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Document vault */
.vault-page {
  min-height: 100vh;
}

.vault-page .aws-native-shell {
  display: block;
}

.vault-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(420px, 2fr);
  gap: 24px;
  padding: 24px;
  align-items: start;
}

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

.vault-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.vault-hero,
.vault-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vault-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.vault-hero h1 {
  margin-top: 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
}

.vault-hero p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.vault-scorecard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px;
}

.vault-scorecard span,
.vault-panel label,
.vault-status-word,
.vault-action span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.vault-scorecard strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.vault-scorecard p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.vault-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.vault-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.vault-panel-header h2 {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
}

.vault-checklist,
.vault-documents,
.vault-actions {
  display: grid;
  gap: 0;
}

.vault-check-row,
.vault-doc-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.vault-check-row {
  grid-template-columns: 88px minmax(0, 1fr) minmax(140px, auto);
}

.vault-doc-row {
  grid-template-columns: 62px minmax(0, 1fr) minmax(120px, auto) 90px auto;
}

.vault-check-row:last-child,
.vault-doc-row:last-child {
  border-bottom: 0;
}

.vault-status-word {
  color: var(--text);
}

.vault-check-row.on_file .vault-status-word,
.vault-doc-status.on_file {
  color: #166534;
}

.vault-check-row.expiring .vault-status-word,
.vault-doc-status.expiring {
  color: #92400e;
}

.vault-check-row.expired .vault-status-word,
.vault-check-row.missing .vault-status-word,
.vault-doc-status.expired {
  color: #991b1b;
}

.vault-check-copy,
.vault-doc-copy {
  min-width: 0;
}

.vault-check-copy strong,
.vault-doc-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.vault-check-copy p,
.vault-doc-copy p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vault-check-detail,
.vault-doc-meta,
.vault-doc-status {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.vault-file-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
}

.vault-doc-actions button,
.vault-upload-pick,
.vault-upload-clear {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.vault-doc-actions button:hover,
.vault-upload-pick:hover,
.vault-upload-clear:hover {
  border-color: var(--border-hover);
  background: var(--primary-light);
}

.vault-doc-row.editing {
  background: var(--primary-light);
}

.vault-doc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.vault-dropzone {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 92px;
  margin-top: 18px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 18px;
}

.vault-dropzone.dragging {
  border-color: var(--primary);
  background: var(--primary-light);
}

.vault-dropzone strong {
  color: var(--text);
  font-size: 15px;
}

.vault-dropzone p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vault-dropzone > div {
  flex: 1 1 auto;
  min-width: 0;
}

.vault-upload-panel {
  display: grid;
  gap: 9px;
}

.vault-upload-panel label {
  margin-top: 6px;
}

.vault-action {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.vault-action:last-child {
  border-bottom: 0;
}

.vault-action strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.vault-action p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.vault-action.blocker span {
  color: #991b1b;
}

.vault-action.warning span {
  color: #92400e;
}

/* Past work */
.past-work-page {
  min-height: 100vh;
}

.past-work-page .aws-native-shell {
  display: block;
}

.past-work-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(520px, 2.35fr);
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.past-work-main {
  min-width: 0;
}

.past-work-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.past-work-hero,
.past-work-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.past-work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.past-work-hero h1 {
  margin-top: 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
}

.past-work-hero p,
.past-work-import-copy {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.past-work-scorecard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px;
}

.past-work-scorecard span,
.past-work-contract-number,
.past-work-detail-grid span,
.past-work-price-box span,
.past-work-panel label {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.past-work-scorecard strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.past-work-scorecard p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.past-work-hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.past-work-upload-open {
  width: auto;
  min-height: 0;
  min-width: 112px;
  align-self: start;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.15;
}

.past-work-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.past-work-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.past-work-panel-header h2 {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
}

.past-work-list {
  display: grid;
  gap: 0;
}

.past-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  cursor: pointer;
}

.past-work-row:last-child {
  border-bottom: 0;
}

.past-work-row.active {
  background: var(--primary-light);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
}

.past-work-row-copy {
  min-width: 0;
}

.past-work-row-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.past-work-row-copy p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.past-work-row-copy small {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
}

.past-work-money {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.past-work-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.past-work-row-actions button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.past-work-row-actions button:hover {
  border-color: var(--border-hover);
  background: var(--primary-light);
}

.past-work-detail h2 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.past-work-detail > p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.past-work-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.past-work-detail-grid div,
.past-work-price-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 10px;
  min-width: 0;
}

.past-work-detail-grid strong,
.past-work-price-box strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.past-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.past-work-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.past-work-price-box {
  margin-top: 14px;
}

.past-work-price-box p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.past-work-citations {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.past-work-citation {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  text-decoration: none;
}

.past-work-citation span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.past-work-citation strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.past-work-upload-panel {
  display: grid;
  gap: 10px;
}

.past-work-upload-form {
  display: grid;
  gap: 9px;
}

.past-work-upload-form label {
  display: grid;
  gap: 6px;
}

.past-work-upload-form label span {
  color: var(--text-light);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.past-work-upload-drop {
  display: grid;
  gap: 5px;
  min-height: 92px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 14px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.past-work-upload-drop:hover,
.past-work-upload-drop.dragging,
.past-work-upload-drop.has-file {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-light);
}

.past-work-upload-drop.dragging {
  transform: translateY(-1px);
}

.past-work-upload-drop strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.past-work-upload-drop span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.past-work-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  background: rgba(29, 36, 51, 0.42);
  padding: 22px;
}

.past-work-upload-modal[hidden] {
  display: none;
}

.past-work-upload-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 36, 51, 0.22);
  padding: 24px;
}

.past-work-upload-dialog h2 {
  margin-top: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.past-work-upload-dialog .past-work-upload-form {
  margin-top: 16px;
}

.past-work-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.past-work-modal-close:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg);
}

.past-work-form-panel {
  display: grid;
  gap: 9px;
}

.past-work-form-panel label {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.past-work-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.past-work-form-grid label {
  margin-top: 0;
}

/* Company profile */
.profile-page {
  min-height: 100vh;
}

.profile-page .aws-native-shell {
  display: block;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(340px, 1.45fr);
  gap: 24px;
  padding: 24px;
  align-items: start;
}

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

.profile-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
}

.profile-hero,
.profile-card,
.profile-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.profile-hero h1 {
  margin-top: 5px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
}

.profile-hero p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.profile-scorecard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px;
}

.profile-scorecard span,
.profile-card label,
.profile-section-status,
.profile-readiness-section p,
.profile-warning span,
.profile-panel label {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-scorecard strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.profile-scorecard p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  min-width: 0;
}

.profile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.profile-card-header h2 {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.profile-section-status {
  flex: 0 0 auto;
  color: #92400e;
}

.profile-section-status.ready {
  color: #166534;
}

.profile-section-status.missing {
  color: #991b1b;
}

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

.profile-field-grid label,
.profile-card > label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-address-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 72px minmax(92px, 0.8fr);
}

.profile-card .form-input {
  width: 100%;
  background: var(--bg);
}

.profile-card textarea.form-input {
  min-height: 76px;
  line-height: 1.5;
}

.profile-card-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
}

.profile-card-save {
  width: 132px;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-panel {
  padding: 18px;
  margin-bottom: 0;
}

.profile-save-panel {
  display: grid;
  gap: 10px;
}

.profile-save-panel .btn-primary,
.profile-save-panel .btn-secondary {
  width: 100%;
}

.profile-readiness-section {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.profile-readiness-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-readiness-section > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.profile-readiness-section strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.profile-readiness-section span {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 800;
}

.profile-readiness-section p {
  margin-top: 4px;
  color: #92400e;
}

.profile-readiness-section.ready p {
  color: #166534;
}

.profile-readiness-section.missing p {
  color: #991b1b;
}

.profile-warning {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  padding: 12px 0;
  text-align: left;
}

.profile-warning:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-warning span {
  color: #92400e;
}

.profile-warning.blocker span {
  color: #991b1b;
}

.profile-warning strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.profile-warning p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-warning:hover strong {
  text-decoration: underline;
}

.workspace-sections {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.workspace-section-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
}

.workspace-section-index {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 800;
}

.workspace-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-section-header h2 {
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.workspace-section-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-edit-button {
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-edit-button:hover {
  border-color: var(--border-hover);
  background: var(--primary-light);
}

.workspace-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.workspace-citations span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-light);
  padding: 3px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
}

.workspace-section-excerpt {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.workspace-note {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.workspace-note strong {
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  margin-right: 6px;
  text-transform: uppercase;
}

.workspace-review-note {
  margin-top: 12px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  color: var(--text-muted);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.workspace-review-note.blocker {
  border-left-color: var(--danger);
  background: var(--danger-light);
}

.workspace-review-note strong,
.workspace-review-meta {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-review-note strong {
  margin-right: 6px;
}

.workspace-review-meta {
  margin-top: 10px;
}

.workspace-section-card.editing {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.workspace-editor-form {
  min-width: 0;
}

.workspace-editor-label,
.workspace-editor-grid span {
  display: block;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  margin: 14px 0 6px;
  text-transform: uppercase;
}

.workspace-editor-textarea,
.workspace-editor-small,
.workspace-editor-grid textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.workspace-editor-textarea:focus,
.workspace-editor-small:focus,
.workspace-editor-grid textarea:focus {
  outline: 2px solid rgba(34,48,74,0.18);
  border-color: var(--primary);
}

.workspace-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-status-option {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-status-option.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

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

.workspace-editor-error {
  margin-top: 12px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  background: var(--danger-light);
  color: #991b1b;
  padding: 10px 12px;
  font-size: 13px;
}

.workspace-editor-error[hidden] {
  display: none;
}

.workspace-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.workspace-editor-save,
.workspace-editor-cancel {
  min-height: 38px;
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.workspace-editor-save {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.workspace-editor-cancel {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.workspace-editor-save:disabled,
.workspace-editor-cancel:disabled,
.workspace-status-option:disabled,
.workspace-editor-textarea:disabled,
.workspace-editor-small:disabled,
.workspace-editor-grid textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.workspace-preview {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.workspace-rail {
  display: grid;
  gap: 16px;
}

.workspace-rail-card {
  padding: 16px;
}

.workspace-rail-title {
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.workspace-action {
  border-top: 1px solid var(--border);
  padding: 11px 0;
}

.workspace-action:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.workspace-action strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.workspace-action-type {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-action p,
.workspace-empty {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.workspace-action a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-action a:hover {
  text-decoration: underline;
}

.workspace-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.workspace-action-buttons button {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-action-buttons button:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.workspace-action-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.workspace-artifact {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.workspace-artifact:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.workspace-artifact summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.workspace-artifact summary::-webkit-details-marker {
  display: none;
}

.workspace-artifact summary span {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-artifact summary strong {
  color: var(--text-light);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.workspace-artifact pre {
  max-height: 260px;
  overflow: auto;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.manual-intake-section {
  padding: 0 24px 24px;
}

.manual-intake-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.manual-intake-details summary {
  list-style: none;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.manual-intake-details summary::-webkit-details-marker {
  display: none;
}

.manual-intake-details .aws-native-panel {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.aws-native-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.aws-native-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.aws-native-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.aws-native-panel-header h2 {
  font-size: 15px;
  line-height: 1.3;
}

.aws-native-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.aws-native-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.aws-native-tabs button {
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.aws-native-tabs button:last-child {
  border-right: 0;
}

.aws-native-tabs button.active {
  background: var(--primary-light);
  color: var(--primary);
}

.aws-native-auth-form label,
#aws-native-job-form label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 5px;
}

.aws-native-source-text {
  min-height: 280px;
  resize: vertical;
  line-height: 1.45;
}

.aws-native-job-meta {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.aws-native-job-meta strong {
  color: var(--text);
  margin-right: 6px;
}

.aws-native-job-error {
  color: #991b1b;
}

.aws-native-results {
  padding: 0 24px 24px;
}

.aws-native-result-section {
  margin-top: 18px;
}

.aws-native-result-section:first-child {
  margin-top: 0;
}

.aws-native-result-section h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.aws-native-result-section p,
.aws-native-result-section li,
.aws-native-empty {
  color: var(--text-muted);
  font-size: 13px;
}

.aws-native-result-section ul {
  padding-left: 18px;
}

.aws-native-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.aws-native-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}

.aws-native-table th,
.aws-native-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
}

.aws-native-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.aws-native-table tr:last-child td {
  border-bottom: 0;
}

.aws-native-severity {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--text-muted);
}

.aws-native-severity.critical {
  background: var(--danger-light);
  color: #991b1b;
}

.aws-native-severity.standard {
  background: var(--warning-light);
  color: #92400e;
}

.aws-native-severity.informational {
  background: var(--primary-light);
  color: var(--primary);
}

@media (max-width: 900px) {
  .realbid-landing-shell {
    padding: 18px 20px 26px;
  }

  .realbid-landing-nav {
    align-items: flex-start;
  }

  .realbid-landing-links {
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
  }

  .realbid-landing-links a:not(.realbid-nav-cta),
  .realbid-landing-links button:not(.realbid-nav-cta) {
    display: none;
  }

  .realbid-landing-links .realbid-nav-cta {
    font-size: 15px;
  }

  .realbid-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 0 36px;
  }

  .realbid-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.18;
  }

  .realbid-hero-text {
    font-size: 18px;
    line-height: 1.55;
  }

  .realbid-command-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .realbid-command-button {
    width: 100%;
    justify-content: space-between;
  }

  .realbid-source-line {
    margin-top: 36px;
  }

  .realbid-live-panel {
    min-height: auto;
  }

  .realbid-demo-message,
  .realbid-demo-card {
    width: 100%;
  }

  .realbid-proof-band {
    grid-template-columns: 1fr;
  }

  .realbid-pricing-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .realbid-pricing-band p {
    text-align: left;
  }

  .realbid-landing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .realbid-signin-brand {
    position: static;
    justify-self: start;
    align-self: start;
    margin-bottom: 40px;
  }

  .realbid-signin-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .realbid-signin-card {
    padding: 24px;
  }

  .realbid-signup-grid,
  .realbid-password-rules {
    grid-template-columns: 1fr;
  }

  .realbid-lead-modal {
    padding: 24px;
  }

  .realbid-lead-modal h2 {
    font-size: 25px;
  }

  .realbid-lead-form {
    grid-template-columns: 1fr;
  }

  .realbid-lead-actions .realbid-command-button,
  .realbid-lead-secondary {
    width: 100%;
    justify-content: center;
  }

  .command-center-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .command-center-nav {
    width: 100%;
  }

  .today-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .today-feed-header {
    flex-direction: column;
  }

  .today-sync-button {
    width: 100%;
  }

  .opportunity-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .opportunity-score {
    grid-row: 1;
    width: 86px;
  }

  .score-detail-grid {
    grid-template-columns: 1fr;
  }

  .gate-row,
  .risk-box,
  .score-factor,
  .pursuit-step {
    grid-template-columns: 1fr;
  }

  .source-chip,
  .gate-row .source-chip {
    justify-self: start;
  }

  .ev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-factor > span {
    text-align: left;
  }

  .pursuit-step-result {
    max-width: none;
    text-align: left;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .vault-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .past-work-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .profile-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .workspace-sidebar,
  .workspace-rail,
  .vault-rail,
  .past-work-rail,
  .profile-rail {
    position: static;
  }

  .workspace-hero,
  .workspace-index-hero,
  .workspace-section-card,
  .vault-hero,
  .vault-check-row,
  .vault-doc-row,
  .past-work-hero,
  .past-work-row,
  .profile-hero,
  .profile-form,
  .profile-field-grid,
  .profile-address-grid {
    grid-template-columns: 1fr;
  }

  .vault-check-detail,
  .vault-doc-meta,
  .vault-doc-status,
  .past-work-money {
    text-align: left;
  }

  .past-work-row-actions {
    justify-content: flex-start;
  }

  .past-work-hero-actions {
    flex-wrap: wrap;
  }

  .past-work-upload-open {
    flex: 0 1 128px;
  }

  .past-work-detail-grid,
  .past-work-form-grid,
  .profile-inline-fields {
    grid-template-columns: 1fr;
  }

  .workspace-section-header {
    flex-direction: column;
  }

  .workspace-section-tools {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-editor-grid {
    grid-template-columns: 1fr;
  }

  .workspace-index-grid {
    grid-template-columns: 1fr;
  }

  .workspace-package-metrics {
    grid-template-columns: 1fr;
  }

  .today-rail {
    position: static;
  }

  .manual-intake-section {
    padding: 0 16px 16px;
  }

  .aws-native-nav {
    display: none;
  }

  .aws-native-main {
    margin-left: 0;
  }

  .aws-native-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .aws-native-header {
    padding: 12px 16px;
  }

  .aws-native-results {
    padding: 0 16px 16px;
  }

  .command-center-intent {
    margin: 16px 16px 0;
  }
}

/* Fit Score Badges */
.fit-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  min-width: 36px;
  text-align: center;
}
.fit-green { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.fit-yellow { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.fit-gray { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.table-link { font-weight: 500; }
.table-link:hover { color: var(--primary-hover); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 13px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.form-input-full { width: 100%; }
textarea.form-input { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Buttons */
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

.btn-parse {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s;
}
.btn-parse:hover { background: #1d4ed8; }

.btn-generate {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s;
}
.btn-generate:hover { background: #059669; }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; }

/* Loading */
.loading { text-align: center; padding: 48px; color: var(--text-muted); }
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* Sections */
.section { margin-bottom: 32px; }
.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.req-list { list-style: none; }
.req-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.req-item:last-child { border-bottom: none; }
.req-priority {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
}
.priority-must { background: var(--danger-light); color: var(--danger); }
.priority-should { background: var(--warning-light); color: var(--warning); }
.priority-could { background: var(--primary-light); color: var(--primary); }

.criteria-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.criteria-weight { font-size: 12px; font-weight: 600; color: var(--primary); min-width: 60px; }

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.compliance-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}
.compliance-check.done { background: var(--success); color: white; }
.compliance-check.missing { background: var(--border); color: var(--text-muted); }
.compliance-check.required { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger); }

/* Proposal Editor */
.proposal-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.proposal-editor textarea {
  width: 100%;
  min-height: 500px;
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
}
.proposal-editor textarea:focus { outline: none; border-color: var(--primary); }

/* Guided (section-by-section) review */
.guided-review {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  align-items: start;
}
.gr-rail { position: sticky; top: calc(var(--header-h) + 24px); }
.gr-progress { margin-bottom: 14px; }
.gr-progress-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.gr-progress-bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.gr-progress-fill { height: 100%; background: var(--success); transition: width .25s ease; }
.gr-rail-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; font-size: 13px; line-height: 1.3;
}
.gr-rail-item:hover { background: var(--bg, #f8fafc); }
.gr-rail-item.active { background: var(--primary-light); border-color: var(--primary); }
.gr-rail-item .gr-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.gr-dot.pending  { background: var(--border); color: var(--text-muted); }
.gr-dot.approved { background: var(--success); }
.gr-dot.edited   { background: #2563eb; }
.gr-dot.flagged  { background: var(--warning, #f59e0b); }
.gr-rail-name { flex: 1; }
.gr-assemble-wrap { margin-top: 16px; }

.gr-section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.gr-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.gr-section-title { font-size: 1.15rem; font-weight: 700; }
.gr-status-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: .04em; }
.gr-status-badge.pending  { background: var(--border); color: var(--text-muted); }
.gr-status-badge.approved { background: var(--success-light); color: var(--success); }
.gr-status-badge.edited   { background: #eff6ff; color: #2563eb; }
.gr-status-badge.flagged  { background: var(--warning-light, #fef3c7); color: var(--warning, #b45309); }
.gr-compliance-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.gr-compliance-chip { font-size: 11px; background: var(--success-light); color: var(--success); padding: 2px 8px; border-radius: 10px; }
.gr-body { font-size: 14px; line-height: 1.7; color: var(--text); }
.gr-body h4 { font-size: 1rem; font-weight: 700; margin: 16px 0 6px; }
.gr-body h5 { font-size: .92rem; font-weight: 700; margin: 12px 0 4px; }
.gr-body p { margin: 0 0 10px; }
.gr-body ul { margin: 0 0 10px 20px; }
.gr-body table.gr-md-table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; }
.gr-body table.gr-md-table th, .gr-body table.gr-md-table td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.gr-body table.gr-md-table th { background: var(--bg, #f8fafc); font-weight: 600; }
.gr-edit-area { width: 100%; min-height: 320px; padding: 14px; font-family: 'SF Mono','Fira Code',monospace; font-size: 13px; line-height: 1.6; border: 1px solid var(--border); border-radius: var(--radius); resize: vertical; }
.gr-edit-area:focus { outline: none; border-color: var(--primary); }
.gr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.gr-gap-note { background: var(--warning-light, #fef3c7); border: 1px solid var(--warning, #f59e0b); border-radius: 8px; padding: 10px 14px; margin-top: 14px; font-size: 13px; color: var(--warning, #92400e); }
.gr-citations { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.gr-citations h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 8px; }
.gr-citation { font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.gr-citation .gr-claim { color: var(--text); }
.gr-citation .gr-src { color: var(--text-muted); margin-top: 2px; }
.gr-nav { display: flex; justify-content: space-between; margin-top: 14px; }

@media (max-width: 1100px) { .guided-review { grid-template-columns: 1fr; } .gr-rail { position: static; } }

.proposal-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* KB Page */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kb-card-title { font-weight: 600; margin-bottom: 4px; }
.kb-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.kb-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-zone-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone-text { color: var(--text-muted); font-size: 13px; }
.upload-zone input[type="file"] { display: none; }

/* Opp Detail */
.opp-header { margin-bottom: 24px; }
.opp-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); }
.opp-meta-item { display: flex; align-items: center; gap: 4px; }

/* Markdown render */
.md-content h1 { font-size: 1.4rem; font-weight: 700; margin: 20px 0 12px; }
.md-content h2 { font-size: 1.1rem; font-weight: 600; margin: 16px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.md-content p { margin: 8px 0; line-height: 1.6; }
.md-content ul, .md-content ol { margin: 8px 0 8px 24px; }
.md-content li { margin: 4px 0; }
.md-content strong { font-weight: 600; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }

/* ─── Onboarding ────────────────────────────────────────────────────────── */
.onboarding-wrap {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 80px;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 32px;
}

.onboarding-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.onboarding-logo { font-size: 1.5rem; }

.onboarding-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* Progress */
.onboarding-progress {
  width: 100%;
  max-width: 600px;
  margin-bottom: 28px;
}

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.step-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  transition: color 0.3s;
}
.step-label.active { color: #fbbf24; }
.step-label.done { color: rgba(255,255,255,0.8); }

/* Card */
.onboarding-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.onboarding-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.required { color: var(--danger); }

/* Navigation */
.onboarding-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  width: 100%;
  max-width: 600px;
}

.onboarding-nav .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}
.onboarding-nav .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* NAICS */
.naics-dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
  z-index: 100;
  position: relative;
}

.naics-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.naics-option:hover { background: var(--primary-light); }

.naics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.naics-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.naics-tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}
.naics-tag-remove:hover { opacity: 1; }

/* Cert Chips */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cert-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.cert-chip input { display: none; }
.cert-chip:hover { border-color: var(--primary); }
.cert-chip.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.cert-label { font-weight: 500; }

/* Contract Range */
.contract-range { }
.range-label { font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--text-muted); }
.range-inputs { display: flex; align-items: center; gap: 12px; }
.range-separator { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.range-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.range-hint {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.range-hint:hover { border-color: var(--primary); background: var(--primary-light); }

/* Team Size */
.team-size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.team-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.team-chip input { display: none; }
.team-chip:hover { border-color: var(--primary); }
.team-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Geo Chips */
.geo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.geo-chip {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}
.geo-chip input { display: none; }
.geo-chip:hover { border-color: var(--primary); }
.geo-chip.selected { background: var(--primary); color: white; border-color: var(--primary); }

/* Review */
.review-summary {
  display: grid;
  gap: 12px;
}

.review-section {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.review-section:last-child { border-bottom: none; }

.review-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 140px;
  flex-shrink: 0;
}

.review-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ─── Skeleton Loaders ─────────────────────────────────────────────────── */
.skeleton {
  background: #eef2f6;
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 100%; }
.skeleton-block { height: 120px; margin-bottom: 16px; }
.skeleton-block.sm { height: 80px; }
.skeleton-block.lg { height: 200px; }
.skeleton-card { height: 160px; margin-bottom: 16px; border-radius: var(--radius); }

/* ─── RFP Cards (Opportunities) ──────────────────────────────────────── */
.rfp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.rfp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.rfp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.rfp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #c1c7d0;
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.rfp-card-tier-green::before { background: #10b981; }
.rfp-card-tier-yellow::before { background: #f59e0b; }
.rfp-card-tier-blue::before { background: #2563eb; }

.rfp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.rfp-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  flex: 1;
}

.rfp-card-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.rfp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rfp-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.rfp-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.rfp-card-agency {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.rfp-card-deadline { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.rfp-card-deadline.urgent { color: var(--danger); }
.rfp-card-deadline.soon { color: var(--warning); }
.rfp-card-deadline.normal { color: var(--text-muted); }

.rfp-hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #dc2626;
  color: white;
}

.rfp-fit-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  min-width: 36px;
  text-align: center;
}
.rfp-fit-badge.hot { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.rfp-fit-badge.good { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.rfp-fit-badge.ok { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* ─── Quick Filter Bar ────────────────────────────────────────────────── */
.quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.quick-filter-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.quick-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Search Bar ──────────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); outline: none; }
.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Notification Bell ────────────────────────────────────────────────── */
.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  font-size: 18px;
}
.notif-btn:hover { background: var(--primary-light); color: var(--primary); }

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid white;
}

/* ─── Mobile Bottom Nav ────────────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.15s;
}
.bottom-nav-item .bnav-icon { font-size: 20px; line-height: 1; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item:hover { color: var(--primary); text-decoration: none; }

/* ─── Premium Empty States ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 13px; margin-bottom: 20px; max-width: 320px; margin-left: auto; margin-right: auto; }

/* ─── Toast Overhaul ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 10000;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease-out;
}
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.toast-icon { font-size: 16px; flex-shrink: 0; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Modal Overlay ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(2px);
  padding: 16px;
}
.modal-box {
  background: var(--surface);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(0,0,0,0.2);
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .onboarding-wrap { padding: 24px 12px 80px; }
  .onboarding-card { padding: 24px 20px; }
  .cert-grid { grid-template-columns: 1fr; }
  .range-inputs { flex-direction: column; }
  .range-separator { display: none; }
  .step-label { font-size: 9px; }
  .review-section { flex-direction: column; gap: 4px; }
  .review-label { min-width: unset; }
}
@media (max-width: 768px) {
  .dashboard-nav {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .dashboard-nav.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3, .form-row, .pp-grid { grid-template-columns: 1fr; }
  .proposal-layout { grid-template-columns: 1fr; }
  .proposal-sidebar { position: static; }
  .kb-grid { grid-template-columns: 1fr; }
  .opp-cards-grid { grid-template-columns: 1fr; }
}

/* ─── Opportunity Cards ─────────────────────────────────────────────── */
.opp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.opp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opp-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(37,99,235,0.12);
  transform: translateY(-1px);
}

.opp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.opp-card-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 600;
}
.score-high { background: #ecfdf5; color: #15803d; }
.score-mid  { background: #fffbeb; color: #b45309; }
.score-low  { background: #f1f5f9; color: #64748b; }
.opp-score-num { font-size: 18px; line-height: 1; }
.opp-score-label { font-size: 10px; opacity: 0.7; }

.opp-card-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.opp-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opp-card-agency {
  font-size: 12px;
  color: var(--text-muted);
}

.opp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opp-meta-chip {
  font-size: 11px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}

.opp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.opp-due-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.due-urgent   { background: #fef2f2; color: #dc2626; }
.due-warning { background: #fffbeb; color: #d97706; }
.due-soon    { background: #f0fdf4; color: #16a34a; }
.due-normal  { background: #f1f5f9; color: var(--text-muted); }
.due-expired { background: #f1f5f9; color: var(--text-light); text-decoration: line-through; }
.due-unknown { background: #f1f5f9; color: var(--text-light); }

.opp-sam-tag {
  font-size: 10px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 2px 5px;
}

.opp-cards-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.opp-empty-icon { font-size: 48px; margin-bottom: 12px; }
.opp-empty-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── ✨ Auto-setup banner on onboarding step 1 ─────────────────────────── */
.auto-setup-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 28px;
  background: #eff6ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}
.auto-setup-icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}
.auto-setup-body { flex: 1; min-width: 0; }
.auto-setup-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #1e1b4b;
  margin-bottom: 4px;
}
.auto-setup-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}
.auto-setup-btn { flex-shrink: 0; white-space: nowrap; }

/* ── Auto-setup modal ──────────────────────────────────────────────────── */
.auto-setup-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auto-setup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.auto-setup-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}
.auto-setup-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.auto-setup-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.auto-setup-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.auto-setup-close:hover { background: #f1f5f9; }
.auto-setup-modal-body {
  padding: 20px;
  overflow-y: auto;
}
.auto-setup-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.auto-setup-tips {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}
.auto-setup-tips strong { color: #0f172a; display: block; margin-bottom: 4px; }

/* ── Missing-fields callout on review step ─────────────────────────────── */
.review-missing {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.review-missing-title {
  font-weight: 700;
  font-size: 14px;
  color: #92400e;
  margin-bottom: 6px;
}
.review-missing-list {
  margin: 6px 0 8px 18px;
  padding: 0;
  font-size: 13px;
  color: #78350f;
  line-height: 1.55;
}
.review-missing-hint {
  font-size: 12px;
  color: #92400e;
  font-style: italic;
}

@media (max-width: 640px) {
  .auto-setup-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .auto-setup-btn { width: 100%; }
}
