
/* Always respect the HTML hidden attribute. Author display rules such as
   .auth-shell { display: grid } otherwise override the browser default. */
[hidden] { display: none !important; }
:root {
  --ink: #14213d;
  --muted: #667085;
  --line: #e7e9ee;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --accent: #1f6feb;
  --accent-dark: #1559bd;
  --good: #127a55;
  --warn: #a15c00;
  --bad: #a83232;
  --shadow: 0 14px 42px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--soft); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--ink); color: white; }
.status { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16a36f; }

main { max-width: 1180px; margin: 0 auto; padding: 52px 24px 80px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 42px; }
.hero > div { max-width: 790px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .09em; font-size: 12px; font-weight: 800; color: var(--accent); margin: 0 0 10px; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; margin: 0 0 20px; letter-spacing: -.045em; }
.hero p { max-width: 730px; font-size: 19px; color: var(--muted); line-height: 1.55; margin: 0; }

.primary, .secondary, .ghost { border-radius: 10px; padding: 12px 18px; border: 1px solid transparent; font-weight: 750; }
.primary { background: var(--accent); color: white; box-shadow: 0 5px 15px rgba(31,111,235,.18); }
.primary:hover { background: var(--accent-dark); }
.secondary { background: white; color: var(--ink); border-color: var(--line); }
.ghost { background: transparent; color: var(--accent); border-color: #cfe0ff; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 12px 16px; border-radius: 10px; font-weight: 750; }
.tab.active { background: var(--paper); color: var(--ink); box-shadow: 0 3px 12px rgba(20,33,61,.06); }

.panel { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.panel.active { display: block; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.025em; }
.muted { color: var(--muted); margin: 0; line-height: 1.5; }

.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
input, textarea, select { width: 100%; margin-top: 8px; padding: 12px 13px; border: 1px solid #d8dde6; border-radius: 9px; background: white; color: var(--ink); outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,235,.1); }
small { color: var(--muted); font-weight: 500; }
label small { display: block; margin-top: 6px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }

.results-heading { align-items: center; }
.scan-controls { display: flex; gap: 8px; align-items: center; }
.scan-controls select { margin: 0; width: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stats div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.stats span { display: block; font-size: 25px; font-weight: 850; letter-spacing: -.03em; }
.stats small { display: block; margin-top: 4px; }
.source-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.source-pill { font-size: 12px; padding: 7px 10px; border-radius: 100px; background: #f1f4f8; color: var(--muted); }

.loading { padding: 55px 0; text-align: center; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 4px solid #e4ebf8; border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-list { display: grid; gap: 14px; }
.result-card { display: grid; grid-template-columns: 88px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: white; }
.score-ring { width: 72px; height: 72px; border: 7px solid #d9e7ff; border-radius: 50%; display: grid; place-items: center; align-content: center; }
.score-ring strong { font-size: 22px; line-height: 1; }
.score-ring small { font-size:11px; }
.result-topline { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.recommendation, .source { font-size: 11px; border-radius: 100px; padding: 5px 8px; font-weight: 800; }
.recommendation.review { background: #e7f7f0; color: var(--good); }
.recommendation.possible { background: #fff3df; color: var(--warn); }
.recommendation.skip { background: #f8e8e8; color: var(--bad); }
.source { background: #f2f4f7; color: var(--muted); }
.result-card h3 { margin: 0 0 6px; font-size: 21px; }
.match-detail-title { appearance: none; border: 0; padding: 0; margin: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.match-detail-title:hover, .match-detail-title:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.match-detail-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fbfcfe; }
.match-detail-panel h4 { margin: 0 0 12px; font-size: 15px; }
.match-score-breakdown { display: grid; gap: 9px; }
.match-score-row { display: grid; grid-template-columns: minmax(160px, .9fr) auto minmax(220px, 1.4fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.match-score-row:first-child { border-top: 0; padding-top: 0; }
.match-score-row strong { font-size: 13px; }
.match-score-points { font-weight: 800; white-space: nowrap; }
.match-score-detail { color: var(--muted); font-size: 13px; line-height: 1.45; }
.match-detail-summary { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .match-score-row { grid-template-columns: 1fr; gap: 4px; } }
.buyer { color: var(--muted); margin: 0 0 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.meta span { font-size: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; }
.description { line-height: 1.55; color: #3d485c; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.analysis-grid > div { background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.analysis-grid h4 { margin: 0 0 8px; font-size: 13px; }
.analysis-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card-actions { display: flex; gap: 8px; margin-top: 16px; }
a.link { text-decoration: none; display: inline-block; }

.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: white; padding: 13px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 380px; }

@media (max-width: 760px) {
  .hero, .panel-heading, .results-heading { display: block; }
  .hero .primary, .panel-heading > .secondary { margin-top: 18px; }
  .grid.two, .analysis-grid, .stats { grid-template-columns: 1fr; }
  .scan-controls { margin-top: 16px; }
  .result-card { grid-template-columns: 1fr; }
  .score-ring { width: 64px; height: 64px; }
}

/* v0.2 customer accounts, billing and automation */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--soft); }
.auth-copy { padding: 9vh 7vw; display: flex; flex-direction: column; justify-content: center; }
.auth-copy h1 { max-width: 760px; }
.auth-copy > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.auth-brand { margin-bottom: 60px; }
.auth-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.auth-points span { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--muted); font-size: 13px; }
.auth-card { align-self: center; margin: 40px 7vw 40px 20px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); max-width: 470px; width: calc(100% - 40px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { border: 0; background: transparent; border-radius: 8px; padding: 10px; color: var(--muted); font-weight: 750; }
.auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(20,33,61,.08); }
.auth-form h2 { font-size: 25px; }
.full { width: 100%; }
.form-error { background: #fff1f1; color: var(--bad); border: 1px solid #f2cccc; padding: 11px 13px; border-radius: 9px; font-size: 13px; }
.account-bar { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 7px; font-weight: 750; }
.compact-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.plan-badge { padding: 9px 12px; border-radius: 999px; background: #eef4ff; color: var(--accent); font-size: 13px; font-weight: 800; }
.automation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setting-card { border: 1px solid var(--line); border-radius: 15px; padding: 22px; background: #fbfcfe; }
.setting-card h3 { margin: 3px 0 9px; }
.setting-card > p:not(.kicker) { color: var(--muted); line-height: 1.5; }
.price-line { display: flex; gap: 10px; align-items: baseline; }
.price-line strong { font-size: 42px; letter-spacing: -.04em; }
.price-line span, .monthly-line { color: var(--muted); }
.monthly-line { font-weight: 750; margin: -4px 0 18px; }
.toggle-row { display: flex; align-items: center; gap: 9px; margin: 20px 0; }
.toggle-row input { width: 18px; height: 18px; margin: 0; }
.small-message { font-size: 12px; min-height: 18px; }
.readiness-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); }
.readiness-card > div { padding: 16px 18px; display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; row-gap: 3px; align-items: center; }
.readiness-card > div + div { border-left: 1px solid var(--line); }
.readiness-card small { grid-column: 2; }
.readiness-dot { width: 9px; height: 9px; border-radius: 50%; background: #c8ced8; }
.readiness-dot.ready { background: #16a36f; }
button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { padding: 52px 24px 12px; }
  .auth-copy h1 { font-size: 48px; }
  .auth-brand { margin-bottom: 34px; }
  .auth-card { margin: 24px auto 50px; }
  .automation-grid, .readiness-card { grid-template-columns: 1fr; }
  .readiness-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* v0.3 sellable checkout and owner controls */
.auth-offer { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; display: grid; gap: 4px; max-width: 430px; }
.auth-offer strong { font-size: 16px; }
.auth-offer span { color: var(--ink); font-weight: 750; }
.auth-offer small { margin-top: 4px; }
.access-message { margin-top: 12px !important; font-size: 13px !important; font-weight: 750; color: var(--accent) !important; }
.billing-manage { margin-top: 9px; }
.owner-setup { margin-top: 16px; background: #fffdf7; }
.secret-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; margin-top: 14px; }
.secret-row input { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.customer-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
.customer-table th, .customer-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.customer-table th { color: var(--muted); background: #fafbfc; font-size: 12px; }
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-table td:nth-child(3), .customer-table td:nth-child(4) { font-weight: 750; }

@media (max-width: 760px) {
  .secret-row { grid-template-columns: 1fr; }
}

/* v0.4 hosted beta launch checks */
.launch-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; margin-bottom: 18px; }
.launch-summary > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fbfcfe; display: grid; gap: 3px; }
.launch-summary strong { font-size: 28px; }
.launch-summary span { color: var(--muted); font-size: 12px; }
.launch-checks { display: grid; gap: 10px; margin-bottom: 18px; }
.launch-check { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 14px 190px 1fr; gap: 10px; align-items: center; }
.launch-check .check-dot { width: 10px; height: 10px; border-radius: 50%; background: #c8ced8; }
.launch-check.ready .check-dot { background: #16a36f; }
.launch-check strong { font-size: 13px; }
.launch-check span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.launch-next { margin-top: 16px; }
.code-line { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .launch-summary, .launch-grid { grid-template-columns: 1fr; }
  .launch-check { grid-template-columns: 14px 1fr; }
  .launch-check span { grid-column: 2; }
}

/* v0.4.2 password recovery */
.auth-help { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.auth-link { border: 0; background: transparent; color: var(--accent); padding: 0; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-explainer { font-size: 14px; line-height: 1.5; margin-top: -4px; }
.form-success { background: #edf9f3; color: var(--good); border: 1px solid #ccebdd; padding: 11px 13px; border-radius: 9px; font-size: 13px; }


/* v0.5 Bid Pack generator */
.bidpack-layout { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.bidpack-sidebar { position: sticky; top: 92px; }
.bidpack-list { display: grid; gap: 10px; }
.bidpack-list-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 20px; color: var(--muted); display: grid; gap: 7px; font-size: 13px; }
.bidpack-list-card { width: 100%; text-align: left; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 14px; color: var(--ink); display: grid; gap: 5px; cursor: pointer; }
.bidpack-list-card:hover, .bidpack-list-card.active { border-color: #a9c7ff; box-shadow: 0 4px 14px rgba(31,111,235,.08); }
.bidpack-list-card b { line-height: 1.35; }
.bidpack-list-card > span:not(.bidpack-list-top), .bidpack-list-card small { color: var(--muted); font-size: 12px; }
.bidpack-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bidpack-list-top strong { color: var(--accent); font-size: 13px; }
.bidpack-list-top em { font-style: normal; font-size:11px; background: #f2f4f7; color: var(--muted); border-radius: 999px; padding: 4px 7px; }
.bidpack-detail { min-width: 0; }
.bidpack-empty { min-height: 420px; border: 1px dashed var(--line); border-radius: 16px; display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; color: var(--muted); }
.bidpack-empty h3 { color: var(--ink); margin: 12px 0 4px; }
.bidpack-empty p { max-width: 430px; line-height: 1.5; }
.bidpack-empty-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: white; font-weight: 900; font-size: 22px; }
.bidpack-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.bidpack-header h2 { margin: 3px 0 5px; font-size: 28px; }
.bidpack-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bidpack-decision { margin: 18px 0; display: grid; grid-template-columns: 95px 1fr; gap: 16px; align-items: center; background: #f5f8ff; border: 1px solid #dce8ff; border-radius: 14px; padding: 16px; }
.bidpack-decision p { color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
.bidpack-score { border-right: 1px solid #dce8ff; display: grid; gap: 2px; }
.bidpack-score strong { color: var(--accent); font-size: 30px; }
.bidpack-score span { color: var(--muted); font-size: 11px; }
.bidpack-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 22px; }
.bidpack-overview > div { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: grid; gap: 5px; }
.bidpack-overview span { color: var(--muted); font-size: 11px; }
.bidpack-overview strong { font-size: 13px; overflow-wrap: anywhere; }
.bidpack-section { padding: 20px 0; border-top: 1px solid var(--line); }
.bidpack-section h3 { margin: 0 0 12px; font-size: 17px; }
.bidpack-items { display: grid; gap: 9px; }
.bidpack-info-item { border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; background: #fbfcfe; }
.bidpack-info-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bidpack-info-heading strong { font-size: 13px; }
.bidpack-info-heading span { flex: 0 0 auto; font-size:11px; color: var(--muted); background: #eef1f5; border-radius: 999px; padding: 4px 7px; }
.bidpack-info-item p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bidpack-checklist { display: grid; gap: 8px; }
.bidpack-checklist label { margin: 0; display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.bidpack-checklist input { width: 17px; height: 17px; margin: 1px 0 0; }
.bidpack-checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.bidpack-limitations { margin-top: 18px; padding: 15px 17px; border: 1px solid #f0dfad; border-radius: 12px; background: #fffaf0; }
.bidpack-limitations strong { font-size: 13px; }
.bidpack-limitations ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 900px) {
  .bidpack-layout { grid-template-columns: 1fr; }
  .bidpack-sidebar { position: static; }
  .bidpack-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bidpack-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bidpack-list, .bidpack-overview { grid-template-columns: 1fr; }
  .bidpack-header { display: block; }
  .bidpack-actions { justify-content: flex-start; margin-top: 14px; }
  .bidpack-decision { grid-template-columns: 1fr; }
  .bidpack-score { border-right: 0; border-bottom: 1px solid #dce8ff; padding-bottom: 10px; }
}

@media print {
  body { background: white; }
  .topbar, .hero, .tabs, .bidpack-sidebar, .panel-heading, #profile, #results, #automation, #admin, #launch, .bidpack-actions, .toast { display: none !important; }
  main, .panel, #bidpacks { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  #bidpacks { display: block !important; }
  .bidpack-layout { display: block; }
  .bidpack-detail { display: block; }
  .bidpack-info-item, .bidpack-limitations, .bidpack-decision { break-inside: avoid; }
}

/* v0.5.1 source-enriched Bid Packs */
.bidpack-metadata { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: -8px 0 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; color: var(--muted); font-size: 11px; }
.bidpack-info-tools { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.bidpack-info-tools > span { flex: 0 0 auto; font-size:11px; color: var(--muted); background: #eef1f5; border-radius: 999px; padding: 4px 7px; }
.bidpack-source-link { flex: 0 0 auto; font-size:11px; font-weight: 750; color: var(--accent); text-decoration: none; border: 1px solid #cfe0ff; border-radius: 999px; padding: 4px 7px; background: white; }
.bidpack-source-link:hover { text-decoration: underline; }
.bidpack-source-label { display: block; margin-top: 7px; font-size:11px; color: var(--muted); }

@media print {
  .bidpack-metadata { border-color: #ddd; background: white; }
  .bidpack-source-link { color: #000; border-color: #aaa; text-decoration: underline; }
  .bidpack-info-tools { break-inside: avoid; }
}

/* v0.6.0 interactive bid workspace */
.bid-workspace { padding-top: 22px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.workspace-heading h3 { margin-bottom: 4px; }
.workspace-heading p { margin: 0; font-size: 12px; }
.workspace-readiness { min-width: 92px; text-align: right; display: grid; gap: 1px; }
.workspace-readiness strong { color: var(--accent); font-size: 27px; line-height: 1; }
.workspace-readiness span { color: var(--muted); font-size:11px; }
.workspace-progress { height: 8px; background: #edf1f6; border-radius: 999px; overflow: hidden; margin: 12px 0 17px; }
.workspace-progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .2s ease; }
.workspace-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fff; display: grid; gap: 13px; }
.workspace-overall { background: #fbfcfe; }
.workspace-card h4, .workspace-card h5 { margin: 0; }
.workspace-card h4 { font-size: 15px; }
.workspace-card h5 { font-size: 14px; }
.workspace-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.workspace-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workspace-badge { flex: 0 0 auto; font-size:11px; color: var(--muted); background: #eef1f5; border-radius: 999px; padding: 5px 8px; }
.workspace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workspace-field { display: grid; gap: 5px; margin: 0; }
.workspace-field > span { color: var(--muted); font-size:11px; font-weight: 700; }
.workspace-field input, .workspace-field select, .workspace-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 9px 10px; font: inherit; font-size: 12px; }
.workspace-field textarea { resize: vertical; line-height: 1.45; min-height: 74px; }
.workspace-field-wide { width: 100%; }
.workspace-field-grow { flex: 1 1 320px; }
.workspace-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.workspace-subheading h4 { margin: 0; font-size: 15px; }
.workspace-subheading span { color: var(--muted); font-size:11px; }
.workspace-stack { display: grid; gap: 11px; }
.workspace-evidence-row { display: flex; gap: 9px; align-items: end; flex-wrap: wrap; }
.workspace-save { justify-self: start; white-space: nowrap; }
.workspace-attachments { border-top: 1px dashed var(--line); padding-top: 11px; display: grid; gap: 8px; }
.workspace-attachments > strong { font-size: 11px; }
.workspace-attachment { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f7f9fc; border-radius: 8px; padding: 8px 9px; }
.workspace-attachment a { min-width: 0; overflow-wrap: anywhere; font-size: 11px; color: var(--accent); font-weight: 700; }
.workspace-remove { border: 0; background: transparent; color: var(--muted); font-size:11px; cursor: pointer; padding: 3px 4px; }
.workspace-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.workspace-upload input[type=file] { max-width: 360px; font-size: 11px; }
.workspace-draft { min-height: 180px !important; }

@media (max-width: 820px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-heading, .workspace-card-head, .workspace-subheading { align-items: flex-start; }
}

@media print {
  .bid-workspace button, .workspace-upload, .workspace-remove { display: none !important; }
  .workspace-field input, .workspace-field select, .workspace-field textarea { border-color: #ddd; background: white; }
  .workspace-card { break-inside: avoid; }
}

/* v0.6.1 clean PDF exports */
.workspace-print-summary { display: none; }
.workspace-print-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.workspace-print-heading h3 { margin: 0 0 4px; }
.workspace-print-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.workspace-print-readiness { min-width: 88px; text-align: right; display: grid; gap: 1px; }
.workspace-print-readiness strong { color: var(--accent); font-size: 25px; line-height: 1; }
.workspace-print-readiness span { color: var(--muted); font-size:11px; }
.workspace-print-group { display: grid; gap: 9px; margin-top: 16px; }
.workspace-print-group > h3 { margin: 0 0 2px; font-size: 15px; }
.workspace-print-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; background: #fff; display: grid; gap: 9px; }
.workspace-print-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.workspace-print-card-head h4 { margin: 0; font-size: 13px; }
.workspace-print-card-head span { flex: 0 0 auto; font-size:11px; color: var(--muted); background: #eef1f5; border-radius: 999px; padding: 3px 6px; }
.workspace-print-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 12px; }
.workspace-print-field { display: grid; gap: 2px; min-width: 0; }
.workspace-print-field span { color: var(--muted); font-size:11px; font-weight: 700; }
.workspace-print-field strong, .workspace-print-field a { color: var(--ink); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.workspace-print-field a { color: var(--accent); }
.workspace-print-text { display: grid; gap: 3px; }
.workspace-print-text > strong { font-size:11px; color: var(--muted); }
.workspace-print-text p { margin: 0; font-size: 11px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

@media print {
  .bid-workspace { display: none !important; }
  .workspace-print-summary { display: none !important; }
  body.print-bidpack .workspace-print-bidpack { display: block !important; }
  body.print-workspace .workspace-print-workspace { display: block !important; }
  body.print-bidpack .workspace-print-empty { display: none !important; }
  body.print-workspace .bidpack-detail > .bidpack-section:not(.workspace-print-workspace):not(.bidpack-checklist-section) { display: none !important; }
  body.print-workspace .bidpack-limitations { display: none !important; }
  body.print-workspace .bidpack-decision { margin-bottom: 14px; }
  body.print-workspace .bidpack-overview { margin-bottom: 14px; }
  .workspace-print-card { break-inside: avoid; padding: 9px 10px; }
  .workspace-print-group { break-before: auto; }
  .workspace-print-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace-print-field a { color: #000; text-decoration: underline; }
}


/* v0.6.2 PDF pagination and live draft export */
@media print {
  .bidpack-section > h3,
  .workspace-print-group > h3 {
    break-after: avoid-page;
    page-break-after: avoid;
  }
  .bidpack-section > h3 + .bidpack-items,
  .workspace-print-group > h3 + .workspace-print-card {
    break-before: avoid-page;
    page-break-before: avoid;
  }
  .bidpack-section-keep,
  .bidpack-checklist-section {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
}

/* v0.7.0 tender pipeline */
.tabs { flex-wrap: wrap; }
.pipeline-heading { align-items: center; }
.pipeline-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pipeline-stats > div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.pipeline-stats span { display: block; font-size: 25px; font-weight: 850; letter-spacing: -.03em; }
.pipeline-stats small { display: block; margin-top: 4px; }
.pipeline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pipeline-filter { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 12px; }
.pipeline-filter select { width: auto; min-width: 140px; margin: 0; padding: 8px 10px; font-size: 12px; }
.pipeline-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 285px); gap: 12px; overflow-x: auto; padding: 2px 2px 14px; align-items: start; scroll-snap-type: x proximity; }
.pipeline-column { border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; min-height: 260px; scroll-snap-align: start; overflow: hidden; }
.pipeline-column-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: white; }
.pipeline-column-header h3 { margin: 0; font-size: 14px; }
.pipeline-column-header span { min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: #eef1f5; color: var(--muted); font-size: 11px; font-weight: 800; }
.pipeline-stack { display: grid; gap: 10px; padding: 10px; }
.pipeline-column-empty { margin: 8px; text-align: center; color: var(--muted); font-size: 11px; }
.pipeline-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 9px; box-shadow: 0 4px 14px rgba(20,33,61,.04); }
.pipeline-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipeline-score, .pipeline-readiness-label { font-size:11px; font-weight: 800; border-radius: 999px; padding: 4px 7px; }
.pipeline-score { background: #eef4ff; color: var(--accent); }
.pipeline-score.review { background: #e7f7f0; color: var(--good); }
.pipeline-score.possible { background: #fff3df; color: var(--warn); }
.pipeline-score.skip { background: #f8e8e8; color: var(--bad); }
.pipeline-readiness-label { background: #f1f4f8; color: var(--muted); }
.pipeline-card h4 { margin: 0; font-size: 14px; line-height: 1.35; }
.pipeline-buyer { margin: -3px 0 0; color: var(--muted); font-size: 11px; }
.pipeline-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline-card-meta span { font-size:11px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; color: #3d485c; }
.pipeline-deadline.soon { border-color: #f2d49a; background: #fff8eb; color: var(--warn); }
.pipeline-deadline.urgent, .pipeline-deadline.overdue { border-color: #efc5c5; background: #fff1f1; color: var(--bad); }
.pipeline-readiness-bar { height: 6px; border-radius: 999px; overflow: hidden; background: #edf1f6; }
.pipeline-readiness-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pipeline-owner { margin: 0; color: var(--muted); font-size:11px; }
.pipeline-stage-control { display: grid; gap: 4px; margin: 0; }
.pipeline-stage-control > span { color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pipeline-stage-control select { margin: 0; padding: 8px 9px; font-size: 11px; }
.pipeline-card-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 2px; }
.pipeline-card-actions .secondary, .pipeline-card-actions .ghost { padding: 7px 9px; border-radius: 8px; font-size:11px; }
.pipeline-remove-button { border: 0; background: transparent; color: var(--muted); padding: 7px 5px; font-size:11px; font-weight: 700; }
.pipeline-remove-button:hover { color: var(--bad); }
.pipeline-empty { grid-column: 1 / -1; min-width: 100%; border: 1px dashed var(--line); border-radius: 14px; padding: 36px; text-align: center; color: var(--muted); display: grid; gap: 6px; }
.pipeline-empty strong { color: var(--ink); }
.stage-won .pipeline-column-header { border-top: 3px solid var(--good); }
.stage-lost .pipeline-column-header, .stage-no-bid .pipeline-column-header { border-top: 3px solid #b7bec9; }
.stage-submitted .pipeline-column-header, .stage-in-progress .pipeline-column-header { border-top: 3px solid var(--accent); }

@media (max-width: 760px) {
  .pipeline-stats { grid-template-columns: 1fr 1fr; }
  .pipeline-toolbar { align-items: stretch; flex-direction: column; }
  .pipeline-filter { justify-content: space-between; }
  .pipeline-board { grid-auto-columns: minmax(82vw, 300px); }
}

/* v0.8.0 deadline automation and drag-and-drop pipeline */
.automation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pipeline-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.attention-dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.attention-panel { border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; padding: 16px; min-width: 0; }
.attention-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.attention-panel-heading h3 { margin: 2px 0 0; font-size: 16px; }
.attention-panel-heading .kicker { margin-bottom: 0; }
.attention-count { min-width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 999px; background: #eef4ff; color: var(--accent); font-size: 12px; font-weight: 850; }
.attention-list { display: grid; gap: 8px; }
.attention-empty { padding: 16px 10px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.attention-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; background: white; }
.attention-item-body { display: grid; gap: 4px; min-width: 0; }
.attention-item-body strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.attention-item-body small { color: var(--muted); font-size:11px; line-height: 1.4; }
.attention-item-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.attention-badge { font-size:11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; padding: 3px 6px; border-radius: 999px; background: #eef1f5; color: var(--muted); }
.attention-label { font-size:11px; color: var(--muted); font-weight: 750; }
.attention-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.attention-actions button { padding: 7px 8px; border-radius: 8px; font-size:11px; }
.attention-item.urgency-overdue, .attention-item.urgency-critical { border-left-color: var(--bad); }
.attention-item.urgency-overdue .attention-badge, .attention-item.urgency-critical .attention-badge { background: #fff1f1; color: var(--bad); }
.attention-item.urgency-high, .attention-item.urgency-soon { border-left-color: var(--warn); }
.attention-item.urgency-high .attention-badge, .attention-item.urgency-soon .attention-badge { background: #fff8eb; color: var(--warn); }
.attention-item.urgency-changed { border-left-color: var(--accent); }
.attention-item.urgency-changed .attention-badge { background: #eef4ff; color: var(--accent); }
.pipeline-card[draggable="true"] { cursor: grab; user-select: none; }
.pipeline-card[draggable="true"]:active { cursor: grabbing; }
.pipeline-card.dragging { opacity: .45; transform: rotate(1deg) scale(.985); box-shadow: none; }
.pipeline-column.drag-over { border-color: var(--accent); background: #eef4ff; box-shadow: inset 0 0 0 2px rgba(31,111,235,.12); }
.pipeline-column.drag-over .pipeline-stack { min-height: 180px; }
.pipeline-card.has-change { border-color: #bfd4ff; box-shadow: 0 4px 16px rgba(31,111,235,.10); }
.pipeline-change-banner { padding: 7px 8px; border-radius: 8px; background: #eef4ff; color: var(--accent); font-size:11px; font-weight: 750; line-height: 1.35; }
.pipeline-card.pipeline-focus { outline: 3px solid rgba(31,111,235,.28); outline-offset: 3px; }

@media (max-width: 1180px) {
  .automation-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .automation-grid { grid-template-columns: 1fr; }
  .attention-dashboard { grid-template-columns: 1fr; }
  .attention-item { align-items: flex-start; flex-direction: column; }
  .attention-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .pipeline-stats { grid-template-columns: 1fr 1fr; }
}

/* v0.9.0 dedicated scheduler and launch operations */
.launch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.launch-job-actions { margin-top: 12px; }
.launch-job-actions button { font-size: 11px; }
#lastDailyJob { margin: 10px 0 0; font-size: 12px; line-height: 1.45; }

@media (max-width: 1020px) {
  .launch-grid { grid-template-columns: 1fr; }
}

/* v1.0.0 UK-wide public, private and supply-chain coverage */
.coverage-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.match-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 14px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.match-filters label { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.match-filters select { min-width: 180px; margin: 0; padding: 9px 10px; font-size: 12px; }
.match-filters input[type="search"] { min-width: 280px; margin: 0; padding: 9px 10px; font-size: 12px; }
.match-count { margin-left: auto; align-self: center; color: var(--muted); font-size: 11px; line-height: 1.4; }
.result-topline { flex-wrap: wrap; }
.sector-badge, .service-sector-badge, .opportunity-badge, .access-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 7px; font-size:11px; line-height: 1; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
.sector-badge { border: 1px solid transparent; }
.service-sector-badge { background: #edf8f7; color: #1f6b65; border: 1px solid #c6e5e1; }
.sector-public { background: #eaf2ff; color: #1959ad; border-color: #c9dcfa; }
.sector-private { background: #f1eafe; color: #6841ad; border-color: #dbcaf7; }
.sector-third-sector { background: #e9f8f0; color: #21754a; border-color: #c8ead8; }
.sector-other, .sector-unknown { background: #f1f3f6; color: #596477; border-color: #dfe3e8; }
.opportunity-badge { background: #f5f7fa; color: #3f4b5f; border: 1px solid var(--line); }
.access-badge { background: #fff6e8; color: #8a5a00; border: 1px solid #efd8a9; }
.source-pill.connected { border-color: #c9e9d8; background: #f0fbf5; }
.source-pill.source-warning { border-color: #f1d7ae; background: #fff9ef; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.results-empty { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.coverage-summary { margin-bottom: 14px; padding: 13px 15px; border-radius: 12px; background: #eef4ff; color: #355176; font-size: 12px; }
.source-registry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.source-card { border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; padding: 15px; display: grid; gap: 9px; }
.source-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.source-card h3 { margin: 0; font-size: 14px; }
.source-card p { margin: 0; font-size: 11px; line-height: 1.5; }
.source-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.source-card-meta span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #536075; font-size:11px; }
.source-last-scan { color: var(--muted); line-height: 1.4; }
.coverage-badge { flex: 0 0 auto; border-radius: 999px; padding: 4px 7px; font-size:11px; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.coverage-connected { color: var(--good); background: #eaf8f1; }
.coverage-partial { color: var(--warn); background: #fff6e8; }
.coverage-portal { color: var(--muted); background: #eef1f5; }
.private-import-card { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.compact-heading { margin-bottom: 12px; }
.private-import-card h3 { margin: 2px 0 5px; }
.loading-inline { color: var(--muted); padding: 18px; }
.pipeline-card-meta .sector-badge, .pipeline-card-meta .service-sector-badge, .pipeline-card-meta .opportunity-badge { font-size:11px; padding: 4px 6px; }

@media (max-width: 1020px) {
  .coverage-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .coverage-stats { grid-template-columns: 1fr 1fr; }
  .match-filters { align-items: stretch; flex-direction: column; }
  .match-filters select, .match-filters input[type="search"] { width: 100%; min-width: 0; }
  .match-count { margin-left: 0; }
  .source-registry { grid-template-columns: 1fr; }
}

/* v1.0.2 Sell2Wales hybrid source diagnostics */
.source-last-scan-detail { color: #6b7280; line-height: 1.45; }


/* v1.0.8 match ranking and workflow guidance */
.match-ranking-summary { margin: 4px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pipeline-next-action { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px; background: #f5f8fc; border: 1px solid var(--line); font-size:11px; line-height: 1.3; }
.pipeline-next-action strong { color: var(--accent); font-size:11px; text-transform: uppercase; letter-spacing: .05em; }
.pipeline-next-action span { color: var(--ink); font-weight: 700; }


/* v1.0.9 opportunity quality controls and pipeline usability */
.match-visibility-toggle { border: 0; background: transparent; color: var(--muted); padding: 8px 6px; font-size:11px; font-weight: 750; }
.match-visibility-toggle:hover { color: var(--bad); }
.match-visibility-toggle.restore { color: var(--accent); }
.match-visibility-toggle.restore:hover { color: var(--accent); text-decoration: underline; }
.pipeline-toolbar { align-items: flex-end; }
.pipeline-toolbar-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pipeline-search, .pipeline-filter { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pipeline-search input { min-width: 260px; margin: 0; padding: 8px 10px; font-size: 12px; }
.pipeline-toolbar-summary { display: grid; gap: 3px; justify-items: end; text-align: right; font-size:11px; }
#pipelineVisibleCount { color: var(--ink); font-weight: 800; }
@media (max-width: 760px) {
  .pipeline-toolbar-controls { align-items: stretch; flex-direction: column; }
  .pipeline-search input, .pipeline-filter select { width: 100%; min-width: 0; }
  .pipeline-toolbar-summary { justify-items: start; text-align: left; }
}

/* v1.1.0 Match review workflow and opportunity prioritisation */
.review-state-badge, .priority-badge, .pipeline-priority {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  font-size:11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.review-state-badge.reviewed { background: #eaf8f1; color: var(--good); border-color: #c9e9d8; }
.review-state-badge.unreviewed { background: #f5f7fa; color: #596477; }
.priority-badge.priority-high, .pipeline-priority.priority-high { background: #fff1f1; color: var(--bad); border-color: #efc5c5; }
.priority-badge.priority-normal, .pipeline-priority.priority-normal { background: #eef4ff; color: var(--accent); border-color: #c9dcfa; }
.priority-badge.priority-low, .pipeline-priority.priority-low { background: #f5f7fa; color: var(--muted); }
.card-actions { flex-wrap: wrap; align-items: end; }
.match-priority-control { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.match-priority-control select { margin: 0; min-width: 92px; padding: 8px 9px; font-size: 11px; }
.pipeline-card-top { flex-wrap: wrap; }
.pipeline-priority { font-size:11px; padding: 4px 6px; }
.pipeline-priority-control { display: grid; gap: 4px; margin: 0; }
.pipeline-priority-control > span { color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pipeline-priority-control select { margin: 0; padding: 8px 9px; font-size: 11px; }


/* v1.1.1 Review queue efficiency and tender decision support */
.decision-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; font-size:11px; font-weight: 800; white-space: nowrap; }
.decision-badge.decision-bid { background: #eaf8f1; color: var(--good); border-color: #c9e9d8; }
.decision-badge.decision-maybe { background: #fff3df; color: var(--warn); border-color: #f1d3a2; }
.decision-badge.decision-no-bid { background: #f8e8e8; color: var(--bad); border-color: #efc5c5; }
.decision-badge.decision-undecided { background: #f5f7fa; color: var(--muted); }
.match-decision-control, .pipeline-decision-control { display: grid; gap: 3px; margin: 0; color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.match-decision-control select { margin: 0; min-width: 108px; padding: 8px 9px; font-size: 11px; }
.pipeline-decision-control { margin-top: 10px; }
.pipeline-decision-control select { margin: 0; width: 100%; padding: 8px 9px; font-size: 11px; }
.match-review-next { align-self: end; margin: 0; padding: 9px 12px; white-space: nowrap; }
.card-actions { flex-wrap: wrap; align-items: end; }


/* v1.1.2 Decision notes and review history */
.match-decision-note,
.match-review-history,
.pipeline-decision-note,
.pipeline-review-history {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft, #f8fafc);
}
.match-decision-note label,
.pipeline-decision-note label {
  display: grid;
  gap: 6px;
}
.match-decision-note textarea,
.pipeline-decision-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
}
.match-decision-note button,
.pipeline-decision-note button {
  margin-top: 8px;
}
.pipeline-review-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.review-history-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.review-history-entry {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.review-history-entry:first-child {
  border-top: 0;
  padding-top: 0;
}
.review-history-entry-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}
.review-history-entry-top span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.review-history-entry small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.review-history-note {
  margin: 7px 0 0;
  white-space: pre-wrap;
}
@media (max-width: 700px) {
  .review-history-entry-top {
    display: grid;
    gap: 3px;
  }
}

/* v1.1.3 UI simplification and review workflow cleanup */
.match-filters {
  display: grid;
  gap: 10px;
  align-items: stretch;
}
.match-filter-primary,
.match-filter-secondary {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.match-filter-primary { width: 100%; }
.match-filter-secondary {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.match-filter-primary .match-search-label { flex: 1 1 300px; }
.match-filter-primary .match-search-label input { width: 100%; min-width: 240px; }
.match-filter-primary label:not(.match-search-label) select { min-width: 145px; }
.match-filter-secondary label select { min-width: 145px; }
.match-more-filters-toggle { align-self: end; white-space: nowrap; }
.match-more-filters-toggle.has-active-filters {
  border-color: #bfd4ff;
  background: #eef4ff;
  color: var(--accent);
}
.match-count {
  margin-left: 0;
  padding-top: 2px;
  font-size:11px;
}
.result-topline { row-gap: 6px; }
.match-primary-actions { align-items: center; }
.match-review-controls {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.match-review-controls-grid {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}
.match-review-controls .match-visibility-toggle { margin-left: auto; }
.match-review-controls-toggle[aria-expanded="true"] {
  background: #eef4ff;
  border-color: #bfd4ff;
  color: var(--accent);
}
.pipeline-manage-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.pipeline-manage-panel .pipeline-priority-control,
.pipeline-manage-panel .pipeline-decision-control,
.pipeline-manage-panel .pipeline-stage-control { margin: 0; }
.pipeline-manage-panel .pipeline-review-meta-actions { margin-top: 0; }
.pipeline-manage-panel .pipeline-remove-button {
  justify-self: start;
  margin-top: 2px;
}
.pipeline-card-actions button[aria-expanded="true"] {
  background: #eef4ff;
  border-color: #bfd4ff;
  color: var(--accent);
}

@media (max-width: 900px) {
  .match-filter-primary,
  .match-filter-secondary { align-items: stretch; }
  .match-filter-primary .match-search-label { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .match-filter-primary,
  .match-filter-secondary { flex-direction: column; }
  .match-filter-primary label,
  .match-filter-secondary label,
  .match-filter-primary select,
  .match-filter-secondary select,
  .match-filter-primary input[type="search"] { width: 100%; min-width: 0; }
  .match-review-controls-grid { align-items: stretch; flex-direction: column; }
  .match-review-controls .match-visibility-toggle { margin-left: 0; text-align: left; }
}
.panel-heading-actions { display: flex; align-items: center; gap: 8px; }
.match-analysis { margin-top: 12px; }
@media (max-width: 760px) {
  .panel-heading-actions { margin-top: 16px; align-items: stretch; flex-direction: column; }
}


/* v1.1.4 saved views and faster tender triage */
.match-saved-view-label select { min-width: 150px; }
.saved-view-actions { display: flex; align-items: end; gap: 8px; margin-left: auto; }
.saved-view-actions button { white-space: nowrap; }
.match-review-next.triage-active { border-color: #bfd4ff; background: #eef4ff; color: var(--accent); }
.match-quick-decisions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.match-quick-decisions > span { margin-right: 2px; color: var(--muted); font-size:11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.match-quick-decision { padding: 7px 10px; font-size:11px; }
.match-quick-decision.active { border-color: #bfd4ff; background: #eef4ff; color: var(--accent); }
@media (max-width: 900px) { .saved-view-actions { margin-left: 0; } }
@media (max-width: 760px) {
  .saved-view-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .saved-view-actions button { width: 100%; }
  .match-quick-decisions { align-items: stretch; }
  .match-quick-decisions > span { flex-basis: 100%; }
}


/* v1.1.5 public website transition */
.auth-brand-link, .app-brand-link { color: inherit; text-decoration: none; }
.auth-brand-link:hover, .app-brand-link:hover { color: var(--accent); }

/* v1.1.6 automation preferences */
.automation-status { margin: 12px 0 0; color: var(--muted); font-size: 11px; min-height: 16px; }
.automation-preferences { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.automation-preferences summary { cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 800; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.automation-preferences summary::-webkit-details-marker { display: none; }
.automation-preferences summary::after { content: '+'; color: var(--muted); font-size: 18px; line-height: 1; font-weight: 500; }
.automation-preferences[open] summary::after { content: '−'; }
.automation-preferences[open] summary { margin-bottom: 14px; }
.automation-field { display: grid; gap: 6px; margin-bottom: 8px; }
.automation-field > span, .automation-option-group > strong { font-size: 11px; color: var(--muted); font-weight: 800; }
.automation-field select { margin: 0; }
.automation-preferences > small { display: block; color: var(--muted); line-height: 1.45; }
.automation-option-group { display: grid; gap: 8px; margin-bottom: 14px; }
.automation-option-group label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; line-height: 1.35; }
.automation-option-group input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }

/* v1.1.7 UX, mobile and accessibility polish */
html { scroll-padding-top: 84px; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(31,111,235,.45);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .62; }
.tabs { scrollbar-width: thin; }
.tab { scroll-snap-align: center; }
.tab[aria-selected="true"] { color: var(--ink); }
.result-card,
.pipeline-card,
.setting-card,
.bidpack-list-card { overflow-wrap: anywhere; }

@media (pointer: coarse) {
  .primary, .secondary, .ghost, .tab, .text-button { min-height: 44px; }
}

@media (max-width: 760px) {
  .topbar {
    height: 60px;
    padding: 0 14px;
    gap: 12px;
  }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; }
  .account-bar { gap: 5px; min-width: 0; }
  #accountLabel {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .text-button { padding-inline: 8px; white-space: nowrap; }
  main { padding: 28px 14px 60px; }
  .compact-hero { margin-bottom: 24px; }
  .compact-hero h1 { font-size: clamp(34px, 11vw, 46px); margin-bottom: 14px; }
  .hero p { font-size: 16px; line-height: 1.5; }
  .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    margin: 0 0 12px;
    padding: 2px 0 8px;
  }
  .tab { flex: 0 0 auto; padding: 10px 12px; white-space: nowrap; }
  .panel { padding: 20px 15px; border-radius: 15px; }
  .panel-heading { margin-bottom: 22px; }
  h2 { font-size: 26px; }
  .scan-controls { align-items: stretch; flex-direction: column; }
  .scan-controls select, .scan-controls button { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats div { padding: 13px; }
  .stats span { font-size: 21px; }
  .result-card { padding: 16px; gap: 12px; border-radius: 13px; }
  .result-card h3 { font-size: 18px; line-height: 1.3; }
  .meta { gap: 6px; }
  .card-actions.match-primary-actions > * { flex: 1 1 135px; text-align: center; }
  .pipeline-board { margin-inline: -4px; padding-inline: 4px; }
  .pipeline-filter { align-items: stretch; flex-direction: column; }
  .pipeline-filter select { width: 100%; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { padding: 40px 20px 18px; }
  .auth-copy h1 { font-size: clamp(40px, 13vw, 58px); }
  .auth-brand { margin-bottom: 32px; }
  .auth-card { margin: 18px auto 40px; width: calc(100% - 28px); padding: 22px 18px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .panel { padding-inline: 13px; }
  .result-card { padding: 14px; }
  .match-quick-decision { flex: 1 1 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* v1.2.0 launch readiness */
.terms-check{display:flex!important;align-items:flex-start;gap:9px;font-size:12px;line-height:1.45;color:var(--muted)}.terms-check input{width:auto!important;margin-top:3px;flex:0 0 auto}.terms-check a{color:var(--accent);font-weight:750}.launch-check:not(.ready) strong{color:#8a2d2d}.launch-check:not(.ready) .check-dot{box-shadow:0 0 0 5px rgba(185,55,55,.08)}

.boot-shell { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-weight: 700; letter-spacing: .01em; }

/* v1.3.0 customer onboarding, evidence bank, owner ops and bid intelligence */
.onboarding-panel { margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg,#fff,#f8fbff); }
.onboarding-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.onboarding-head h2 { margin: 2px 0 0; font-size: 18px; }
.onboarding-progress { display:grid; text-align:right; }
.onboarding-progress strong { font-size:20px; }
.onboarding-progress span { color:var(--muted); font-size:11px; text-transform:uppercase; font-weight:800; }
.onboarding-meter { height:7px; border-radius:999px; background:#e9eef5; overflow:hidden; margin:14px 0; }
.onboarding-meter span { display:block; width:0; height:100%; background:var(--accent); transition:width .2s ease; }
.onboarding-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.onboarding-step { display:flex; align-items:center; gap:8px; text-align:left; border:1px solid var(--line); background:#fff; border-radius:10px; padding:10px; color:var(--ink); }
.onboarding-step span { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:#eef3f8; color:var(--muted); flex:0 0 auto; }
.onboarding-step strong { font-size:11px; line-height:1.25; }
.onboarding-step.ready { background:#f2fbf6; border-color:#cdebd9; }
.onboarding-step.ready span { background:#ddf5e7; color:var(--good); }

.evidence-bank { margin:0 0 18px; border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }
.evidence-bank > summary { cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px 16px; list-style:none; background:#f8fafc; }
.evidence-bank > summary::-webkit-details-marker { display:none; }
.evidence-bank > summary span:first-child { display:grid; gap:3px; }
.evidence-bank > summary small { color:var(--muted); font-weight:500; }
#evidenceCount { font-size:11px; font-weight:800; color:var(--accent); }
.evidence-bank-body { padding:16px; }
.evidence-form { border-bottom:1px solid var(--line); padding-bottom:15px; margin-bottom:15px; }
.evidence-form .grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.evidence-form .span-two { grid-column:span 2; }
.evidence-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.evidence-card { border:1px solid var(--line); border-radius:12px; padding:12px; }
.evidence-card.evidence-expired { border-style:dashed; background:#fffaf7; }
.evidence-card-head { display:flex; justify-content:space-between; gap:10px; }
.evidence-card-head > div { display:grid; gap:2px; }
.evidence-card-head span { font-size:11px; color:var(--accent); font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.evidence-card p { margin:7px 0 0; font-size:11px; line-height:1.45; }
.evidence-card-actions, .evidence-form-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.evidence-card-actions { justify-content:flex-end; }
.evidence-form-actions { margin-top:10px; }
.evidence-search-controls { display:grid; grid-template-columns:minmax(0,2fr) minmax(180px,1fr); gap:10px; margin:10px 0 12px; }
.evidence-search-controls label, .case-study-fields label { display:grid; gap:5px; font-size:11px; font-weight:750; }
.case-study-fields { margin:10px 0; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--panel-soft); }
.case-study-fields[hidden] { display:none; }
.case-study-card-details { display:grid; gap:6px; margin-top:8px; }
.case-study-card-details .simple-intel-row { margin:0; }
@media (max-width: 680px) {
  .evidence-search-controls { grid-template-columns:1fr; }
}
.evidence-form input[type="file"] { min-height:38px; padding:7px 9px; }
.evidence-empty { grid-column:1/-1; }

.bid-intelligence { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.bid-intelligence-card { border:1px solid var(--line); border-radius:14px; padding:14px; background:#fff; }
.bid-intelligence-card h3 { margin:4px 0 10px; font-size:15px; }
.decision-points-score { display:flex; align-items:baseline; gap:3px; }
.decision-points-score strong { font-size:34px; line-height:1; color:var(--accent); }
.decision-points-score span { color:var(--muted); }
.decision-point-list { display:grid; gap:8px; margin-top:12px; }
.decision-point-list > div { display:grid; grid-template-columns:1fr auto; gap:2px 8px; border-top:1px solid var(--line); padding-top:7px; }
.decision-point-list span,.decision-point-list strong { font-size:11px; }
.decision-point-list small { grid-column:1/-1; color:var(--muted); line-height:1.35; }
.response-flags { display:flex; flex-wrap:wrap; gap:6px; }
.response-flags span { border:1px solid var(--line); border-radius:999px; padding:5px 7px; font-size:11px; color:var(--muted); }
.response-flags span.flagged { background:#eef7ff; border-color:#cfe2f6; color:var(--accent); font-weight:800; }
.intel-evidence-list { display:grid; gap:7px; }
.intel-evidence-list > div { display:grid; gap:2px; padding:8px 0; border-top:1px solid var(--line); }
.intel-evidence-list > div:first-child { border-top:0; }
.intel-evidence-list strong { font-size:11px; }
.intel-evidence-list small { color:var(--muted); }
.review-wizard { margin-top:14px; }
.review-wizard-steps { display:grid; gap:8px; }
.review-wizard-steps article { display:grid; grid-template-columns:28px 1fr auto; align-items:start; gap:10px; border:1px solid var(--line); border-radius:11px; padding:10px; }
.review-wizard-steps article > span { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:#eef4ff; color:var(--accent); font-weight:900; font-size:11px; }
.review-wizard-steps p { margin:3px 0 0; color:var(--muted); font-size:11px; line-height:1.4; }
.review-wizard-steps em { font-style:normal; font-size:11px; font-weight:850; color:var(--accent); text-transform:uppercase; white-space:nowrap; }

#adminStats { grid-template-columns:repeat(6,minmax(0,1fr)); }
.customer-table td { vertical-align:top; }
.customer-table td strong,.customer-table td small { display:block; }
.customer-table td small { color:var(--muted); margin-top:3px; }
.customer-table tr.upsell-row { background:#fffaf1; }
.owner-controls { display:grid; gap:5px; min-width:145px; }
.owner-controls input,.owner-controls select { margin:0; min-width:0; padding:7px 8px; font-size:11px; }
.owner-controls button { padding:7px 8px; font-size:11px; }

@media (max-width: 980px) {
  .onboarding-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .evidence-list,.bid-intelligence { grid-template-columns:1fr; }
  #adminStats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .onboarding-head { flex-direction:column; }
  .onboarding-progress { text-align:left; }
  .onboarding-steps { grid-template-columns:1fr; }
  .evidence-form .grid.three { grid-template-columns:1fr; }
  .evidence-form .span-two { grid-column:auto; }
  #adminStats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .review-wizard-steps article { grid-template-columns:26px 1fr; }
  .review-wizard-steps em { grid-column:2; }
}

/* v1.4.0 roadmap: daily workspace, left navigation and pre-launch intelligence */
@media (min-width: 901px) {
  #appMain {
    max-width: 1380px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 24px;
    row-gap: 16px;
    align-items: start;
  }
  #appMain > .workspace-header,
  #appMain > .onboarding-panel { grid-column: 1 / -1; }
  #appMain > .tabs {
    grid-column: 1;
    grid-row: 3;
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 26px rgba(20,33,61,.05);
  }
  #appMain > .tabs .tab {
    width: 100%;
    text-align: left;
    padding: 11px 12px;
  }
  #appMain > .tabs .tab.active {
    background: #eef4ff;
    color: var(--accent);
    box-shadow: none;
  }
  #appMain > .tab-panel {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
  }
}

.dashboard-panel { padding: 26px; }
.dashboard-heading { align-items: center; }
.dashboard-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.dashboard-score-card,.dashboard-stat-card,.dashboard-card,.source-audit-card { border:1px solid var(--line); border-radius:15px; background:#fff; padding:16px; }
.dashboard-score-card { background:linear-gradient(180deg,#fff,#f7fbff); }
.dashboard-score { display:flex; gap:4px; align-items:baseline; margin:2px 0 4px; }
.dashboard-score strong { font-size:44px; line-height:1; color:var(--accent); letter-spacing:-.04em; }
.dashboard-score span { color:var(--muted); font-weight:800; }
.dashboard-score-card h3,.dashboard-stat-card h3 { margin:0 0 8px; }
.dashboard-meter { height:8px; border-radius:999px; background:#e9eef5; overflow:hidden; margin:12px 0 8px; }
.dashboard-meter span { display:block; height:100%; width:0; border-radius:inherit; background:var(--accent); transition:width .2s ease; }
.dashboard-stat-card { display:flex; flex-direction:column; align-items:flex-start; }
.dashboard-stat-card > strong { font-size:34px; line-height:1; letter-spacing:-.03em; }
.dashboard-stat-card > span { font-size:12px; font-weight:800; margin-top:5px; }
.dashboard-stat-card > small { display:block; margin:10px 0 14px; line-height:1.45; }
.dashboard-link { margin-top:auto; padding:8px 10px; font-size:11px; }
.dashboard-actions { display:grid; gap:7px; margin-top:10px; }
.dashboard-action-row { display:flex; justify-content:space-between; gap:10px; align-items:center; padding-top:7px; border-top:1px solid var(--line); }
.dashboard-action-row > div { display:grid; gap:2px; min-width:0; }
.dashboard-action-row strong { font-size:11px; }
.dashboard-action-row small { font-size:11px; line-height:1.35; }
.dashboard-action-link { border:0; background:transparent; color:var(--accent); font-weight:800; font-size:11px; padding:4px; }
.dashboard-ready-copy { color:var(--good); font-size:11px; font-weight:750; margin:8px 0 0; }
.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.dashboard-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.dashboard-card-heading h3 { margin:2px 0 0; font-size:17px; }
.count-badge { min-width:30px; height:30px; display:grid; place-items:center; border-radius:999px; background:#eef4ff; color:var(--accent); font-size:11px; font-weight:900; }
.compact-copy { font-size:11px; margin:-3px 0 10px; }
.dashboard-list { display:grid; gap:7px; }
.dashboard-list-item { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding-top:9px; }
.dashboard-list-item:first-child { border-top:0; padding-top:0; }
.dashboard-list-item > div { display:grid; gap:3px; min-width:0; }
.dashboard-list-item strong { font-size:11px; line-height:1.35; }
.dashboard-list-item small { font-size:11px; line-height:1.4; color:var(--muted); }
.dashboard-list-item .ghost { padding:7px 9px; font-size:11px; flex:0 0 auto; }
.dashboard-empty { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.dashboard-item-top { display:flex!important; flex-direction:row!important; flex-wrap:wrap; gap:5px!important; }
.intel-chip,.timing-badge,.viability-badge { display:inline-flex; align-items:center; width:max-content; border-radius:999px; padding:4px 7px; font-size:11px; font-weight:850; background:#eef4ff; color:var(--accent); }
.intel-chip.subtle { background:#f2f4f7; color:var(--muted); }
.timing-badge.timing-act-now,.intel-chip.timing-act-now { background:#fff0e6; color:#9a4b00; }
.timing-badge.timing-prepare,.intel-chip.timing-prepare { background:#eef4ff; color:var(--accent); }
.timing-badge.timing-watch,.intel-chip.timing-watch { background:#f2f4f7; color:var(--muted); }
.timing-badge.timing-closed,.intel-chip.timing-closed { background:#f8e8e8; color:var(--bad); }
.viability-badge.viability-strong { background:#e7f7f0; color:var(--good); }
.viability-badge.viability-check { background:#fff3df; color:var(--warn); }
.viability-badge.viability-weak { background:#f8e8e8; color:var(--bad); }
.result-topline { flex-wrap:wrap; }
.missed-audit-card { margin-top:12px; }
.missed-audit-layout { display:grid; grid-template-columns:1.35fr .65fr; gap:18px; }
.missed-audit-layout h4 { margin:0 0 8px; font-size:12px; }
.gap-list { display:grid; gap:6px; }
.gap-row { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid var(--line); font-size:11px; }
.gap-row:first-child { border-top:0; }
.gap-row strong { color:var(--accent); }
.source-audit-card { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:0 0 14px; background:#fbfcfe; }
.source-audit-card h3 { margin:0 0 6px; font-size:16px; }
.source-audit-gaps { display:grid; gap:5px; }
.source-audit-gaps > div { display:grid; gap:1px; padding:6px 0; border-top:1px solid var(--line); }
.source-audit-gaps > div:first-child { border-top:0; }
.source-audit-gaps strong { font-size:11px; }
.source-audit-gaps small { font-size:11px; line-height:1.35; }
.bid-intelligence { grid-template-columns:repeat(2,minmax(0,1fr)); }
.roadmap-intel-metrics { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.roadmap-intel-metrics > div { border:1px solid var(--line); border-radius:9px; padding:8px; display:grid; gap:2px; }
.roadmap-intel-metrics span { color:var(--muted); font-size:11px; }
.roadmap-intel-metrics strong { font-size:11px; }
.intel-gap-list { display:grid; gap:5px; margin-top:9px; }
.intel-gap-list > div { display:grid; gap:2px; padding-top:6px; border-top:1px solid var(--line); }
.intel-gap-list strong { font-size:11px; }
.intel-gap-list small { font-size:11px; }

@media (max-width: 900px) {
  #appMain { display:block; }
  #appMain > .tabs { position:static; flex-direction:row; }
  .dashboard-summary-grid,.dashboard-grid,.missed-audit-layout,.source-audit-card { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .dashboard-panel { padding:18px 14px; }
  .dashboard-score strong { font-size:38px; }
  .roadmap-intel-metrics { grid-template-columns:1fr; }
}

/* v2.0.0 complete roadmap: growth, benchmarking, delivery, renewal and owner GTM */
.growth-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.growth-strategy-card { min-width:0; }
.compact-heading { margin-bottom:10px; }
.growth-metrics { margin-top:14px; }
.ladder-list { display:grid; gap:9px; }
.ladder-rung { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:start; gap:10px; border:1px solid var(--line); border-radius:12px; padding:11px; background:#fff; }
.ladder-rung > span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#eef4ff; color:var(--accent); font-weight:900; font-size:11px; }
.ladder-rung > div { display:grid; gap:3px; }
.ladder-rung strong { font-size:11px; }
.ladder-rung p { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.ladder-rung .text-button { align-self:center; border:0; background:transparent; color:var(--accent); font-size:11px; font-weight:850; padding:5px; }
.ladder-gaps { margin-top:5px; border-top:1px solid var(--line); padding-top:12px; }
.ladder-gaps h4 { margin:0 0 5px; font-size:11px; }
.ladder-gaps > div { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:7px 0; border-top:1px solid var(--line); font-size:11px; }
.ladder-gaps > div:first-of-type { border-top:0; }
.ladder-gaps span { color:var(--ink); }
.ladder-gaps strong { color:var(--accent); text-align:right; font-size:11px; }
.inline-roadmap-form { display:grid; grid-template-columns:1.2fr .8fr .9fr .8fr 1.2fr auto; gap:8px; align-items:end; margin:10px 0 14px; }
.inline-roadmap-form input,.inline-roadmap-form select { margin:0; min-width:0; }
.inline-roadmap-form button { white-space:nowrap; }
.accreditation-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.accreditation-item { display:flex; justify-content:space-between; gap:12px; border:1px solid var(--line); border-radius:12px; padding:11px; background:#fff; }
.accreditation-item > div:first-child { display:grid; gap:3px; min-width:0; }
.accreditation-item strong { font-size:11px; }
.accreditation-item small { color:var(--muted); font-size:11px; }
.accreditation-item p { margin:3px 0 0; font-size:11px; line-height:1.45; color:var(--ink); }
.benchmark-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.benchmark-metric { border:1px solid var(--line); border-radius:11px; padding:11px; display:grid; gap:2px; background:#fff; }
.benchmark-metric span { color:var(--muted); font-size:11px; font-weight:750; }
.benchmark-metric strong { font-size:18px; line-height:1.1; }
.benchmark-metric small { color:var(--muted); font-size:11px; line-height:1.35; }
.benchmark-note { grid-column:1/-1; margin:3px 0 0; font-size:11px; }
.bid-agent-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:9px; }
.bid-agent-card { border:1px solid var(--line); border-radius:11px; padding:11px; background:#fbfcfe; }
.bid-agent-head { display:flex; justify-content:space-between; gap:8px; align-items:flex-start; }
.bid-agent-card h4 { margin:0; font-size:11px; }
.bid-agent-card p { margin:5px 0 7px; font-size:11px; color:var(--muted); line-height:1.4; }
.bid-agent-card > small { display:block; margin:4px 0; font-size:11px; line-height:1.4; }
.bid-agent-card ul { margin:7px 0 0; padding-left:16px; font-size:11px; line-height:1.45; }
.bid-agent-status { flex:0 0 auto; border-radius:999px; padding:4px 6px; background:#eef4ff; color:var(--accent); font-size:11px; font-weight:900; text-transform:uppercase; }
.delivery-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:14px; margin-top:14px; }
.delivery-list-card { align-self:start; position:sticky; top:84px; }
.delivery-contract-list { display:grid; gap:7px; }
.delivery-contract-button { width:100%; text-align:left; display:grid; gap:3px; border:1px solid var(--line); border-radius:10px; background:#fff; padding:10px; color:var(--ink); }
.delivery-contract-button strong { font-size:11px; line-height:1.35; }
.delivery-contract-button small { font-size:11px; color:var(--muted); }
.delivery-contract-button.active { border-color:#b7cdee; background:#eef4ff; }
.delivery-detail { min-width:0; }
.delivery-detail-head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:12px; }
.delivery-detail-head h3 { margin:2px 0 0; font-size:18px; }
.delivery-contract-form { margin:14px 0; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fbfcfe; }
.renewal-metrics { margin:10px 0 0; }
.renewal-actions { margin:12px 0; border:1px solid #d9e7f8; border-radius:12px; padding:12px 14px; background:#f6faff; }
.renewal-actions h4 { margin:0 0 7px; font-size:11px; }
.renewal-actions ul { margin:0; padding-left:17px; font-size:11px; line-height:1.5; }
.promise-section { margin-top:17px; padding-top:15px; border-top:1px solid var(--line); }
.promise-add-form { grid-template-columns:1.4fr .8fr .8fr 1fr 1fr auto; }
.promise-list { display:grid; gap:10px; }
.promise-card { border:1px solid var(--line); border-radius:12px; padding:12px; background:#fff; }
.promise-top { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:8px; margin-bottom:8px; }
.promise-top input { font-weight:800; }
.promise-card label { margin-top:8px; }
.promise-card textarea { resize:vertical; }
.promise-meta { margin:7px 0 0; font-size:11px; color:var(--muted); text-transform:uppercase; font-weight:800; letter-spacing:.03em; }
.owner-growth-ops { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.compact-stats { grid-template-columns:repeat(5,minmax(0,1fr)); margin-bottom:14px; }
.owner-growth-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.admin-growth-list,.admin-feedback-list { display:grid; gap:7px; margin-top:12px; }
.admin-growth-list article,.admin-feedback-list article { border-top:1px solid var(--line); padding-top:9px; display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.admin-growth-list article:first-child,.admin-feedback-list article:first-child { border-top:0; }
.admin-growth-list article > div,.admin-feedback-list article > div { display:grid; gap:2px; min-width:0; }
.admin-growth-list strong,.admin-feedback-list strong { font-size:11px; }
.admin-growth-list small,.admin-feedback-list small { font-size:11px; color:var(--muted); line-height:1.4; }
.admin-feedback-list article { display:block; }
.admin-feedback-list p { margin:5px 0 0; font-size:11px; line-height:1.45; }
.roadmap-dashboard-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.roadmap-dashboard-strip > div { border:1px solid var(--line); border-radius:12px; padding:12px; background:#fbfcfe; display:grid; gap:3px; }
.roadmap-dashboard-strip span { color:var(--muted); font-size:11px; font-weight:750; }
.roadmap-dashboard-strip strong { font-size:15px; }

@media (max-width: 1120px) {
  .roadmap-dashboard-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inline-roadmap-form,.promise-add-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .inline-roadmap-form button,.promise-add-form button { min-height:40px; }
  .delivery-layout { grid-template-columns:240px minmax(0,1fr); }
}
@media (max-width: 900px) {
  .growth-grid,.owner-growth-grid,.delivery-layout { grid-template-columns:1fr; }
  .delivery-list-card { position:static; }
  .compact-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .accreditation-list,.benchmark-grid,.bid-agent-grid,.roadmap-dashboard-strip { grid-template-columns:1fr; }
  .inline-roadmap-form,.promise-add-form { grid-template-columns:1fr; }
  .promise-top { grid-template-columns:1fr; }
  .compact-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ladder-rung { grid-template-columns:30px minmax(0,1fr); }
  .ladder-rung .text-button { grid-column:2; justify-self:start; }
}

/* v2.0.2 security, mobile layout and UX hardening */
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(20,33,61,.045);
}
.workspace-header > div { min-width: 0; }
.workspace-header .eyebrow { margin-bottom: 5px; font-size:11px; }
.workspace-header h1 { margin: 0 0 5px; font-size: clamp(24px, 3vw, 31px); line-height: 1.05; letter-spacing: -.03em; }
.workspace-header #workspaceSummary { margin: 0; max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.workspace-header .access-message { flex: 0 0 auto; margin: 0 !important; padding: 7px 10px; border-radius: 999px; background: #eef4ff; font-size:11px !important; white-space: nowrap; }
.mobile-app-nav, .mobile-tab-group, .match-mobile-filter-toggle { display: none; }
.tab-panel { scroll-margin-top: 82px; }

@media (min-width: 901px) {
  #appMain > .workspace-header,
  #appMain > .onboarding-panel { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .workspace-header { align-items: flex-start; flex-direction: column; margin-bottom: 14px; padding: 15px 16px; }
  .workspace-header .access-message { white-space: normal; }
  .mobile-app-nav { display: block; margin-bottom: 12px; }
  .mobile-app-menu-toggle { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; text-align: left; }
  .mobile-app-menu-toggle > span { color: var(--muted); font-size: 11px; }
  .mobile-app-menu-toggle > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #appMain > .tabs { display: none; position: static; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin: -4px 0 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 24px rgba(20,33,61,.05); }
  #appMain > .tabs.mobile-open { display: grid; }
  #appMain > .tabs .mobile-tab-group { display: block; grid-column: 1 / -1; margin: 7px 4px 1px; color: var(--muted); font-size:11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  #appMain > .tabs .mobile-tab-group:first-child { margin-top: 1px; }
  #appMain > .tabs .tab { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; text-align: left; white-space: normal; }
  #appMain > .tabs .tab.active { background: #eef4ff; color: var(--accent); box-shadow: none; }
}

.match-filters,
.match-filter-primary,
.match-filter-secondary,
.match-filter-primary > *,
.match-filter-secondary > * { min-width: 0; max-width: 100%; }
.match-filters input,
.match-filters select,
.match-filters button { box-sizing: border-box; max-width: 100%; }

@media (max-width: 760px) {
  main { overflow-x: clip; }
  .match-filters { width: 100%; overflow: hidden; padding: 10px; }
  .match-mobile-filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; }
  .match-mobile-filter-toggle::after { content: '+'; font-size: 17px; font-weight: 500; }
  .match-mobile-filter-toggle[aria-expanded="true"]::after { content: '−'; }
  .match-filter-primary { width: 100%; flex-wrap: nowrap; }
  .match-filter-secondary { flex-wrap: nowrap; }
  .match-filter-primary .match-search-label,
  .match-filter-primary .match-sort-label { display: block; width: 100%; }
  .match-filter-primary .match-mobile-extra,
  .match-filter-primary .match-desktop-more-filters { display: none; }
  .match-filters.mobile-filters-open .match-filter-primary .match-mobile-extra { display: block; width: 100%; }
  .match-filters.mobile-filters-open .match-filter-secondary { display: flex; width: 100%; }
  .match-filter-secondary label,
  .match-filter-secondary .saved-view-actions { width: 100%; }
  .match-filter-primary input,
  .match-filter-primary select,
  .match-filter-secondary input,
  .match-filter-secondary select,
  .saved-view-actions,
  .saved-view-actions button { width: 100%; min-width: 0; }
  .match-count { overflow-wrap: anywhere; }
}

@media (max-width: 520px) {
  #appMain > .tabs { grid-template-columns: 1fr; }
  .workspace-header h1 { font-size: 24px; }
}

@media (pointer: coarse) {
  .pipeline-remove-button,
  .dashboard-action-link,
  .match-visibility-toggle,
  .owner-controls button,
  .delivery-contract-button,
  .ladder-rung .text-button,
  .match-detail-title { min-height: 44px; min-width: 44px; }
  .pipeline-remove-button,
  .dashboard-action-link,
  .ladder-rung .text-button { padding: 10px 8px; }
}


/* v2.1.0 pre-launch customer lifecycle, onboarding and owner growth controls */
.onboarding-next { margin-top:12px; padding:11px 12px; border:1px solid #cfe0ff; background:#f6f9ff; border-radius:11px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.onboarding-next > div { display:grid; gap:2px; min-width:0; }
.onboarding-next span { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.onboarding-next strong { font-size:11px; line-height:1.4; }
.owner-lifecycle-stats { margin-top:12px; margin-bottom:16px; }
.owner-next-action { display:block; margin-top:5px; max-width:240px; line-height:1.35; }
.owner-controls .owner-nudge { white-space:normal; line-height:1.25; }
.customer-table tr.at-risk-row td:first-child { box-shadow: inset 3px 0 0 #b54708; }
.customer-table tr.upsell-row:not(.at-risk-row) td:first-child { box-shadow: inset 3px 0 0 #175cd3; }
@media (max-width: 760px) {
  .onboarding-next { align-items:flex-start; flex-direction:column; }
  .onboarding-next button { width:100%; min-height:44px; }
  .owner-lifecycle-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* v2.1.1 accessibility and design-system hardening */
:root {
  --accent-text:#1559bd;
  --muted-strong:#475467;
  --control-min:36px;
  --touch-min:44px;
}

#accessMessage,
#appMain > .tabs .tab.active,
#planBadge,
#evidenceCount {
  color:var(--accent-text) !important;
}

.coverage-portal {
  color:#475467 !important;
  background:#e4e7ec !important;
}

.tab-panel,
.workspace-header {
  font-size:14px;
}

.tab-panel small,
.onboarding-step small,
.dashboard-list-item small,
.source-card small,
.source-card p,
.source-card-meta span,
.pipeline-card-meta span,
.pipeline-buyer,
.pipeline-next-action,
.bidpack-metadata,
.bidpack-source-label,
.workspace-field > span,
.workspace-subheading span,
.evidence-card p,
.evidence-card-head span,
.review-wizard-steps p,
.review-wizard-steps em,
.owner-next-action,
.owner-controls input,
.owner-controls select,
.owner-controls button,
.dashboard-ready-copy,
.dashboard-action-row small,
.dashboard-action-link,
.dashboard-list-item .ghost,
.roadmap-intel-metrics span,
.intel-gap-list small,
.ladder-rung p,
.ladder-rung .text-button,
.accreditation-item small,
.accreditation-item p,
.benchmark-metric span,
.benchmark-metric small,
.benchmark-note,
.bid-agent-card p,
.bid-agent-card ul,
.delivery-contract-button small {
  font-size:12px !important;
  line-height:1.45;
}

.kicker,
.onboarding-progress span,
.onboarding-next span,
.match-filters label,
.pipeline-search,
.pipeline-filter,
.pipeline-stage-control > span,
.match-priority-control,
.match-decision-control,
.pipeline-priority-control > span,
.pipeline-decision-control,
.workspace-readiness span,
.workspace-badge,
.bidpack-info-heading span,
.bidpack-score span,
.bidpack-overview span {
  font-size:12px !important;
}

.review-state-badge,
.priority-badge,
.pipeline-priority,
.decision-badge,
.attention-badge,
.attention-label,
.sector-badge,
.opportunity-badge,
.access-badge,
.coverage-badge,
.intel-chip,
.timing-badge,
.viability-badge,
.bid-agent-status {
  font-size:11px !important;
  line-height:1.2 !important;
}

button,
.button,
.text-button,
.ghost,
.secondary,
.primary {
  min-height:var(--control-min);
}

.dashboard-action-link,
.dashboard-list-item .ghost,
.ladder-rung .text-button,
.match-visibility-toggle,
.owner-controls button {
  min-height:36px;
  padding:8px 10px;
}

.automation-preferences > summary,
.evidence-bank > summary,
.strategic-intelligence > summary,
.growth-assumptions > summary {
  min-height:44px;
  display:flex;
  align-items:center;
  cursor:pointer;
}

.toggle-row,
.automation-option-group label,
.bidpack-checklist label {
  min-height:44px;
  display:flex;
  align-items:center;
  gap:10px;
}

.toggle-row input[type="checkbox"],
.automation-option-group input[type="checkbox"],
.bidpack-checklist input[type="checkbox"] {
  width:20px;
  height:20px;
  flex:0 0 20px;
}

.strategic-intelligence {
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--paper);
  overflow:hidden;
}

.strategic-intelligence > summary {
  padding:14px 16px;
  list-style:none;
}

.strategic-intelligence > summary::-webkit-details-marker { display:none; }
.strategic-intelligence > summary span { display:grid; gap:3px; }
.strategic-intelligence > summary strong { font-size:15px; }
.strategic-intelligence > summary small { color:var(--muted-strong); }
.strategic-intelligence[open] > summary { border-bottom:1px solid var(--line); }

.strategic-intelligence-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:14px;
  background:#f8fafc;
}

.strategic-intelligence-grid .dashboard-card { margin:0; }

.private-inbox-card {
  margin:16px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}

.private-inbox-status {
  min-width:260px;
  display:grid;
  gap:5px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
}
.private-inbox-status strong { font-size:14px; }
.private-inbox-status span { font-size:14px; color:var(--accent-text); font-weight:750; overflow-wrap:anywhere; }
.private-inbox-status small { color:var(--muted-strong); }

.growth-assumptions {
  margin:12px 0 16px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px 12px;
  background:#f8fafc;
}
.growth-assumptions > summary {
  font-weight:800;
  color:var(--ink);
}
.growth-assumptions > p { margin-top:0; }

.commercial-stress-card { grid-column:1 / -1; }
.commercial-stress-details {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.commercial-stress-details .dashboard-list-item {
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}

@media (min-width:901px) {
  #appMain > .tabs .app-tab-group {
    display:block !important;
    margin:12px 8px 3px;
    padding-top:8px;
    border-top:1px solid var(--line);
    color:var(--muted-strong);
    font-size:11px;
    font-weight:850;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  #appMain > .tabs .app-tab-group:first-child {
    margin-top:2px;
    padding-top:0;
    border-top:0;
  }
}

@media (max-width:900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size:16px !important;
  }

  button,
  .button,
  .text-button,
  .ghost,
  .secondary,
  .primary,
  .dashboard-action-link,
  .dashboard-list-item .ghost,
  .ladder-rung .text-button,
  .match-visibility-toggle,
  .owner-controls button {
    min-height:44px;
  }

  .strategic-intelligence-grid,
  .commercial-stress-details {
    grid-template-columns:1fr;
  }

  .private-inbox-card {
    flex-direction:column;
  }
  .private-inbox-status { width:100%; min-width:0; }
}

@media (pointer:coarse) {
  a:not(.brand):not(.app-brand-link) {
    min-height:24px;
  }
}


/* v2.1.1 final mobile owner-control correction */
@media (max-width:900px){
  .owner-controls input,
  .owner-controls select,
  .owner-controls textarea{
    font-size:16px!important;
  }
}


/* v2.1.2 Phase 1: daily workspace intelligence */
.readiness-dimensions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }
.readiness-dimension { min-width:0; border:1px solid var(--line); border-radius:10px; padding:10px; background:#fff; display:grid; gap:6px; }
.readiness-dimension-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.readiness-dimension-heading strong,.readiness-dimension-heading span { font-size:12px; }
.readiness-dimension-heading span { color:var(--accent); font-weight:850; }
.readiness-dimension small { color:var(--muted); font-size:12px; line-height:1.4; }
.readiness-dimension .dashboard-action-link { justify-self:start; }
.readiness-dimension-meter { height:6px; overflow:hidden; border-radius:999px; background:#eef1f5; }
.readiness-dimension-meter > span { display:block; height:100%; background:var(--accent); border-radius:inherit; }
.opportunity-unlocker-card { min-width:0; }
.unlocker-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:12px 0; }
.unlocker-summary-grid > div { border:1px solid var(--line); border-radius:10px; padding:10px; background:#fbfcfe; display:grid; gap:3px; }
.unlocker-summary-grid span { color:var(--muted); font-size:12px; line-height:1.35; }
.unlocker-summary-grid strong { font-size:16px; line-height:1.2; }
.unlocker-gap-section { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.unlocker-gap-section h4 { margin:0 0 8px; font-size:13px; }
.unlocker-gap-list { display:grid; gap:7px; }
.unlocker-gap-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; border-top:1px solid var(--line); padding:9px 0; }
.unlocker-gap-row:first-child { border-top:0; }
.unlocker-gap-row > div { min-width:0; display:grid; gap:2px; }
.unlocker-gap-row > div strong,.unlocker-gap-value { font-size:12px; }
.unlocker-gap-row small { color:var(--muted); font-size:12px; line-height:1.35; }
.unlocker-gap-value { white-space:nowrap; color:var(--accent); }
@media (max-width:620px) {
  .readiness-dimensions,.unlocker-summary-grid { grid-template-columns:1fr; }
  .unlocker-gap-row { grid-template-columns:minmax(0,1fr) auto; }
  .unlocker-gap-row .dashboard-action-link { grid-column:1 / -1; justify-self:start; }
}


/* v2.1.3 Phase 2, Commercial Qualification and Bid Decision */
.commercial-decision-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 16px;
  background: var(--surface-subtle, #f8fafc);
}

.commercial-decision-head,
.commercial-decision-dimension > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.commercial-decision-head h4,
.commercial-decision-dimension strong {
  margin: 0;
}

.commercial-decision-score {
  text-align: right;
  white-space: nowrap;
}

.commercial-decision-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.commercial-decision-dimension {
  display: grid;
  gap: .4rem;
  padding: .8rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.commercial-decision-dimension small {
  color: var(--muted, #667085);
}

.commercial-decision-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}

.commercial-decision-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  opacity: .65;
}

.commercial-decision-panel h5 {
  margin: 1rem 0 .4rem;
}

.commercial-decision-questions {
  margin: 0;
  padding-left: 1.2rem;
}

.commercial-decision-questions li + li {
  margin-top: .35rem;
}

.commercial-decision-note {
  margin: .9rem 0 0;
}

@media (max-width: 720px) {
  .commercial-decision-dimensions {
    grid-template-columns: 1fr;
  }

  .commercial-decision-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .commercial-decision-score {
    text-align: left;
    white-space: normal;
  }
}


/* v2.1.5 Phase 4, Evidence Readiness and Reuse */
.evidence-health-summary {
  margin-bottom: .75rem;
}

.evidence-health-gaps {
  margin-bottom: 1rem;
}

.evidence-quality-gaps {
  display: block;
  margin-top: .55rem;
  color: var(--muted, #667085);
}

.evidence-readiness-card {
  grid-column: 1 / -1;
}

.evidence-coverage-matrix {
  display: grid;
  gap: .55rem;
  margin-top: 1rem;
}

.evidence-coverage-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.evidence-coverage-row > div {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.evidence-coverage-row small {
  color: var(--muted, #667085);
}

.evidence-coverage-row > span {
  flex: 0 0 auto;
  font-weight: 700;
}

.truth-section-checks {
  display: grid;
  gap: .55rem;
}

.evidence-readiness-card h4 {
  margin: 1rem 0 .55rem;
}

@media (max-width: 720px) {
  .evidence-coverage-row {
    flex-direction: column;
  }
}


/* v2.1.6 Phase 5, Live Tender Guard and Clarifications */
.pipeline-guard-workspace {
  margin-top: .9rem;
  padding: 1rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 16px;
  background: var(--surface-subtle, #f8fafc);
}

.guard-workspace-head,
.guard-section-head,
.clarification-card-head,
.guard-change-event > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.guard-workspace-head strong {
  display: block;
  margin-top: .15rem;
}

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

.guard-workspace-grid > section {
  min-width: 0;
}

.guard-workspace-grid h5 {
  margin: 0 0 .65rem;
}

.guard-change-event,
.clarification-card {
  display: grid;
  gap: .65rem;
  margin-top: .65rem;
  padding: .8rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.guard-change-event.severity-high {
  border-width: 2px;
}

.guard-change-event > div:first-child span,
.guard-field-row small,
.clarification-meta,
.guard-section-head span {
  color: var(--muted, #667085);
  font-size: .82rem;
}

.guard-field-row {
  display: grid;
  gap: .25rem;
}

.guard-field-row > div {
  display: grid;
  gap: .15rem;
}

.guard-field-row span {
  overflow-wrap: anywhere;
}

.clarification-open-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: .76rem;
  font-weight: 700;
}

.clarification-suggestion {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .55rem;
  padding: .7rem;
  border: 1px dashed var(--border, #d9e2ec);
  border-radius: 10px;
}

.clarification-suggestion span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.clarification-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
}

.clarification-card textarea,
.clarification-manual textarea {
  width: 100%;
}

.clarification-manual {
  display: grid;
  gap: .55rem;
  margin-top: .8rem;
}

@media (max-width: 760px) {
  .guard-workspace-grid {
    grid-template-columns: 1fr;
  }

  .guard-workspace-head,
  .clarification-card-head,
  .clarification-suggestion {
    align-items: stretch;
    flex-direction: column;
  }

  .clarification-meta {
    grid-template-columns: 1fr;
  }
}


/* v2.1.7 Phase 6, Margin Protection */
.pipeline-margin-workspace {
  margin-top: .9rem;
  padding: 1rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 16px;
  background: var(--surface-subtle, #f8fafc);
}

.margin-workspace-head,
.margin-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.margin-workspace-head strong,
.margin-review-head strong {
  display: block;
}

.margin-review-head small {
  display: block;
  margin-top: .2rem;
  color: var(--muted, #667085);
}

.margin-review-metrics {
  margin-top: .9rem;
}

.margin-review-list {
  display: grid;
  gap: .7rem;
  margin-top: .9rem;
}

.margin-review-item {
  display: grid;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.margin-review-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .55rem;
}

.margin-review-item textarea,
.margin-manual-add input {
  width: 100%;
}

.margin-manual-add {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) auto;
  gap: .55rem;
  margin-top: .9rem;
}

@media (max-width: 760px) {
  .margin-workspace-head,
  .margin-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  .margin-review-fields,
  .margin-manual-add {
    grid-template-columns: 1fr;
  }
}


/* Phase 7, Similar Business Benchmark and Peer Context */
.peer-context-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 16px;
  background: var(--surface-subtle, #f8fafc);
}

.peer-context-heading h4 {
  margin: .2rem 0 .7rem;
}

.peer-context-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
}

.peer-context-metrics > div {
  display: grid;
  gap: .2rem;
  padding: .7rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.peer-context-metrics span,
.peer-context-note {
  color: var(--muted, #667085);
  font-size: .82rem;
}

.peer-context-details {
  display: grid;
  gap: .55rem;
  margin-top: .8rem;
}

.benchmark-peer-heading {
  grid-column: 1 / -1;
  margin-top: .7rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border, #d9e2ec);
}

@media (max-width: 900px) {
  .peer-context-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .peer-context-metrics {
    grid-template-columns: 1fr;
  }
}


/* Phase 8, Incumbent Weakness Radar */
.incumbent-radar-card {
  min-width: 0;
}

.incumbent-radar-list {
  display: grid;
  gap: .7rem;
}

.incumbent-signal-card {
  display: grid;
  gap: .6rem;
  padding: .8rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.incumbent-signal-card.severity-high {
  border-width: 2px;
}

.incumbent-signal-top {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.incumbent-signal-top > div {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.incumbent-signal-top a,
.incumbent-related-opportunity a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.incumbent-signal-top small,
.incumbent-related-opportunity span,
.incumbent-radar-note {
  color: var(--muted, #667085);
  font-size: .82rem;
}

.incumbent-signal-badge {
  flex: 0 0 auto;
  padding: .2rem .45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: .75rem;
  font-weight: 700;
}

.incumbent-related-opportunity {
  display: grid;
  gap: .15rem;
  padding-top: .45rem;
  border-top: 1px solid var(--border, #d9e2ec);
}

@media (max-width: 560px) {
  .incumbent-signal-top {
    flex-direction: column;
  }
}


/* Phase 9, Procurement Change Radar */
.procurement-radar-list {
  display: grid;
  gap: .7rem;
}

.procurement-journey-card {
  display: grid;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.procurement-journey-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.procurement-journey-head span,
.procurement-event-list span,
.procurement-event-list small,
.procurement-live-opportunity span,
.procurement-radar-note {
  color: var(--muted, #667085);
  font-size: .82rem;
}

.procurement-stage-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.procurement-stage-flow span {
  padding: .2rem .45rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  font-size: .75rem;
  font-weight: 700;
}

.procurement-event-list {
  display: grid;
  gap: .45rem;
}

.procurement-event-list > div,
.procurement-live-opportunity {
  display: grid;
  gap: .12rem;
  padding-top: .45rem;
  border-top: 1px solid var(--border, #d9e2ec);
}

.procurement-event-list a,
.procurement-live-opportunity a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .procurement-journey-head {
    flex-direction: column;
  }
}


/* Phase 10, Opportunity Timing Score */
.opportunity-timing-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 16px;
  background: var(--surface-subtle, #f8fafc);
}

.opportunity-timing-head,
.opportunity-timing-radar-item > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.opportunity-timing-head h4 {
  margin: .2rem 0 .65rem;
}

.opportunity-timing-score {
  white-space: nowrap;
}

.opportunity-timing-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.opportunity-timing-dimensions > div {
  display: grid;
  gap: .4rem;
}

.opportunity-timing-dimensions > div > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .85rem;
}

.opportunity-timing-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .1);
}

.opportunity-timing-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.opportunity-timing-details,
.opportunity-timing-radar-list {
  display: grid;
  gap: .55rem;
  margin-top: .8rem;
}

.opportunity-timing-radar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .8rem;
}

.opportunity-timing-radar-summary > div {
  display: grid;
  gap: .15rem;
  padding: .65rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.opportunity-timing-radar-item {
  display: grid;
  gap: .35rem;
  padding: .7rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 10px;
  background: var(--surface, #fff);
}

.opportunity-timing-radar-item small,
.opportunity-timing-note {
  color: var(--muted, #667085);
}

.opportunity-timing-radar-item p {
  margin: 0;
}

@media (max-width: 620px) {
  .opportunity-timing-head,
  .opportunity-timing-radar-item > div:first-child {
    align-items: stretch;
    flex-direction: column;
  }

  .opportunity-timing-dimensions,
  .opportunity-timing-radar-summary {
    grid-template-columns: 1fr;
  }
}


/* Phase 11, BidSift Daily 3 */
.daily-three-item {
  align-items: flex-start;
  gap: 0.9rem;
}

.daily-three-rank {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  flex: 0 0 auto;
}

.daily-three-body {
  min-width: 0;
  flex: 1;
}

.daily-three-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.daily-three-title {
  display: block;
  margin-bottom: 0.15rem;
}

.daily-three-buyer {
  display: block;
  margin-bottom: 0.75rem;
}

.daily-three-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
}

.daily-three-details div {
  min-width: 0;
}

.daily-three-details dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.daily-three-details dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.daily-three-details div:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .daily-three-item {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .daily-three-item > button {
    grid-column: 2;
    justify-self: start;
  }

  .daily-three-details {
    grid-template-columns: 1fr;
  }

  .daily-three-details div:last-child {
    grid-column: auto;
  }
}


/* Phase 12, Missed Opportunity Audit */
.missed-audit-summary {
  margin: 1rem 0 0.6rem;
}

.missed-audit-insights {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.missed-audit-insights h4,
.missed-audit-layout h4 {
  margin: 0 0 0.55rem;
}

.missed-item .dashboard-item-top {
  margin-bottom: 0.35rem;
}

#missedAuditNote {
  margin-top: 0.9rem;
}

@media (max-width: 820px) {
  .missed-audit-layout {
    grid-template-columns: 1fr;
  }
}


/* Phase 13, Future Opportunity Audit */
.future-audit-horizons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.future-audit-horizons > div {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.65rem;
}

.future-audit-horizons span,
.future-audit-horizons strong {
  display: block;
}

.future-audit-horizons span {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.future-audit-item {
  align-items: flex-start;
}

.future-audit-action {
  display: block;
  margin-top: 0.45rem;
}

.future-audit-card h4 {
  margin: 0.9rem 0 0.5rem;
}

@media (max-width: 900px) {
  .future-audit-horizons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Phase 14, Accreditation ROI */
.accreditation-roi-item {
  align-items: flex-start;
  gap: 1rem;
}

.accreditation-roi-body {
  min-width: 0;
  flex: 1;
}

.accreditation-roi-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.accreditation-roi-top > div > strong,
.accreditation-roi-top > div > small {
  display: block;
}

.accreditation-recommendation {
  margin: 0.75rem 0;
}

.accreditation-recommendation strong,
.accreditation-recommendation span {
  display: block;
}

.accreditation-recommendation span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.accreditation-roi-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.accreditation-roi-metrics > div {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.65rem;
}

.accreditation-roi-metrics span,
.accreditation-roi-metrics strong,
.accreditation-roi-metrics small {
  display: block;
}

.accreditation-roi-metrics span,
.accreditation-roi-metrics small {
  color: var(--muted);
  font-size: 0.75rem;
}

.accreditation-roi-examples {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.accreditation-roi-examples > div {
  border-top: 1px solid var(--border);
  padding-top: 0.45rem;
}

.accreditation-roi-examples strong,
.accreditation-roi-examples small {
  display: block;
}

.accreditation-roi-note,
.accreditation-roi-global-note {
  display: block;
  margin-top: 0.7rem;
}

@media (max-width: 820px) {
  .accreditation-roi-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accreditation-roi-top {
    flex-direction: column;
  }
}


/* Phase 15, Contract Ambition Planner */
.contract-ambition-view {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contract-ambition-empty {
  border: 1px dashed var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
}

.contract-ambition-empty p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.contract-ambition-statement {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid currentColor;
  background: var(--surface-soft);
  border-radius: 0.35rem 0.7rem 0.7rem 0.35rem;
  font-weight: 600;
}

.contract-ambition-metrics {
  margin: 0;
}

.contract-ambition-section {
  min-width: 0;
}

.contract-ambition-section h4 {
  margin: 0 0 0.6rem;
}

.contract-ambition-checklist {
  display: grid;
  gap: 0.45rem;
}

.contract-ambition-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.65rem;
}

.contract-ambition-check > div strong,
.contract-ambition-check > div small {
  display: block;
}

.contract-ambition-check > div small {
  color: var(--muted);
  margin-top: 0.15rem;
}

.contract-ambition-state {
  min-width: 3.7rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.contract-ambition-check.ready .contract-ambition-state {
  font-weight: 700;
}

.contract-ambition-gaps,
.contract-ambition-opportunities {
  margin-top: 0;
}

.contract-ambition-note {
  margin: 0;
}

@media (max-width: 720px) {
  .contract-ambition-check {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contract-ambition-check > button {
    grid-column: 2;
    justify-self: start;
  }
}


/* Phase 16, Private Tender Inbox */
.private-inbox-card {
  align-items: stretch;
  gap: 1.25rem;
}

.private-inbox-copy {
  min-width: 0;
  flex: 1;
}

.private-inbox-steps {
  margin: 0.9rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.private-inbox-steps li + li {
  margin-top: 0.4rem;
}

.private-inbox-status {
  min-width: min(100%, 21rem);
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.private-inbox-state-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.private-inbox-address-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

#privateInboxAddress {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.private-inbox-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.private-inbox-metrics div {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.65rem;
}

.private-inbox-metrics span,
.private-inbox-metrics strong {
  display: block;
}

.private-inbox-metrics span {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .private-inbox-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .private-inbox-status {
    min-width: 0;
  }
}


/* Phase 17A, product navigation foundation */
@media (min-width: 901px) {
  #appMain > .tabs {
    gap: 2px;
    padding: 12px 10px 14px;
    overflow: hidden;
  }

  #appMain > .tabs .app-tab-group {
    display: block;
    margin: 13px 10px 5px;
    color: var(--muted);
    font-size:11px;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  #appMain > .tabs .app-tab-group:first-child {
    margin-top: 4px;
  }

  #appMain > .tabs .owner-nav-group {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
  }

  #appMain > .tabs .tab {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    color: #4e596d;
    font-size: 13px;
    line-height: 1.25;
  }

  #appMain > .tabs .tab:hover {
    background: #f6f8fb;
    color: var(--ink);
  }

  #appMain > .tabs .tab.active {
    background: #eef4ff;
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  #appMain > .tabs .tab:focus-visible {
    outline: 3px solid rgba(31,111,235,.2);
    outline-offset: 1px;
  }
}

@media (max-width: 900px) {
  #appMain > .tabs .app-tab-group {
    font-weight: 850;
  }

  #appMain > .tabs .tab.active {
    box-shadow: inset 3px 0 0 var(--accent);
  }
}


/* Phase 17B, signed-in account identity */
.account-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.account-avatar {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.account-copy strong {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.account-copy small {
  max-width: 290px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size:11px;
}

.account-plan-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #dbe7fb;
  border-radius: 999px;
  background: #f6f9ff;
  color: var(--accent);
  font-size:11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

@media (max-width: 760px) {
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-copy,
  .account-plan-badge {
    display: none;
  }

  .account-bar {
    gap: 8px;
  }
}


/* Phase 18, truth checked bid writing */
.workspace-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.truth-check-result {
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

.truth-check-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.truth-check-summary > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
}

.truth-check-summary span,
.truth-check-summary strong {
  display: block;
}

.truth-check-summary span {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.truth-check-statements {
  display: grid;
  gap: 0.65rem;
}

.truth-check-statement {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
}

.truth-check-statement > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.truth-check-statement p {
  margin: 0 0 0.35rem;
}

.truth-check-status {
  font-weight: 700;
  font-size: 0.78rem;
}

.truth-check-evidence {
  display: block;
  margin-top: 0.45rem;
}

.truth-check-rule {
  margin-top: 0.8rem;
}

@media (max-width: 720px) {
  .truth-check-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.response-provenance, .response-approval-state { display:grid; gap:6px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel-soft); }
.response-provenance-row { display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:11px; }
.response-provenance-row a { white-space:nowrap; }
.response-approval-state small { color:var(--muted); }
.clarification-question-edit { width:100%; min-width:0; resize:vertical; }
.clarification-analysis-applied { display:block; margin-top:7px; color:var(--accent); font-weight:750; }
.clarification-deadline { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:9px 10px; margin:7px 0 10px; border:1px solid var(--line); border-radius:9px; background:var(--panel-soft); font-size:11px; }
.clarification-suggestion > div { display:grid; gap:5px; min-width:0; flex:1; }
.clarification-suggestion textarea { width:100%; resize:vertical; }

.truth-check-history {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 0.65rem;
}

.truth-check-history strong,
.truth-check-history small {
  display: block;
}

.truth-check-history.stale strong {
  text-decoration: underline;
}


/* Phase 19, BidSift Flywheel */
.flywheel-card {
  margin: 1rem 0;
}

.flywheel-stages {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.flywheel-stage {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.flywheel-stage > div {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
}

.flywheel-stage-number {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
}

.flywheel-stage-status {
  font-size: 0.7rem;
  color: var(--muted);
}

.flywheel-stage.complete .flywheel-stage-status {
  font-weight: 700;
}

.flywheel-stage small {
  flex: 1;
  line-height: 1.35;
}

.flywheel-stage .dashboard-action-link {
  align-self: flex-start;
}

.flywheel-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.flywheel-next-action > div {
  display: grid;
  gap: 0.2rem;
}

.flywheel-next-action span {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .flywheel-stages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .flywheel-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flywheel-next-action {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .flywheel-stages {
    grid-template-columns: 1fr;
  }
}


/* Phase 20A, final interaction and accessibility hardening */
:where(
  button,
  a,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.28);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (pointer: coarse) {
  button,
  input,
  select,
  .tab,
  .primary,
  .secondary,
  .ghost,
  .dashboard-action-link,
  .workspace-header button {
    min-height: 44px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    min-height: auto;
  }
}


.pipeline-management-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:12px 0;
}
.pipeline-management-fields label{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.pipeline-management-fields label:nth-child(3),
.pipeline-management-fields label:nth-child(4),
.pipeline-management-fields .secondary{
  grid-column:1/-1;
}
.pipeline-management-fields textarea{
  resize:vertical;
}
.gap-row.is-clickable{
  cursor:pointer;
}
.gap-row.is-clickable:focus{
  outline:2px solid currentColor;
  outline-offset:2px;
}
@media (max-width:720px){
  .pipeline-management-fields{grid-template-columns:1fr}
  .pipeline-management-fields label:nth-child(3),
  .pipeline-management-fields label:nth-child(4),
  .pipeline-management-fields .secondary{grid-column:auto}
}


/* Phase 22K, amendment impacts and margin-source review */
.guard-change-impact {
  display: block;
  padding-top: .35rem;
  border-top: 1px solid var(--border, #d9e2ec);
  color: var(--muted, #667085);
  font-weight: 700;
}

.workspace-change-review,
.margin-unpriced-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.65rem;
  padding: .2rem .5rem;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 750;
}

.checklist-change-review {
  border-width: 2px !important;
}

.checklist-change-review span small {
  display: block;
  margin-top: .2rem;
  color: var(--muted, #667085);
  font-weight: 700;
  text-decoration: none;
}

.margin-source-evidence {
  display: grid;
  gap: .4rem;
}

.margin-source-evidence > div {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  align-items: flex-start;
  padding-top: .4rem;
  border-top: 1px solid var(--border, #d9e2ec);
}

.margin-source-evidence small {
  color: var(--muted, #667085);
  overflow-wrap: anywhere;
}

.margin-source-evidence a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.revenue-goal-note {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 640px) {
  .margin-source-evidence > div {
    display: grid;
  }
}


/* Phase 22L growth planning */
.growth-action-summary { font-size:11px; font-weight:800; color:var(--muted); text-align:right; }
.growth-action-list { display:grid; gap:10px; }
.growth-action-item { border:1px solid var(--line); border-radius:12px; padding:12px; display:grid; gap:9px; }
.growth-action-item.complete { opacity:.75; }
.growth-action-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.growth-action-top > div { display:grid; gap:2px; }
.growth-action-top small { color:var(--muted); font-size:11px; }
.growth-action-top strong { font-size:12px; }
.growth-action-item > p { margin:0; font-size:11px; line-height:1.45; color:var(--muted); }
.growth-action-controls { display:grid; grid-template-columns:150px 150px minmax(180px,1fr); gap:8px; }
.growth-action-controls label { display:grid; gap:4px; font-size:11px; color:var(--muted); }
.ladder-progress { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; }
.ladder-progress span { font-weight:900; color:var(--accent); }
.ladder-stepping-stones { display:grid; gap:8px; margin-bottom:12px; }
.ladder-step { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:9px; align-items:start; padding:9px 0; border-bottom:1px solid var(--line); }
.ladder-step:last-child { border-bottom:0; }
.ladder-step.complete { opacity:.72; }
.ladder-step div { display:grid; gap:3px; }
.ladder-step p { margin:0; color:var(--muted); font-size:11px; line-height:1.4; }
@media (max-width: 760px) {
  .growth-action-controls { grid-template-columns:1fr; }
  .growth-action-summary { text-align:left; }
  .ladder-step { grid-template-columns:auto minmax(0,1fr); }
  .ladder-step .text-button { grid-column:2; justify-self:start; }
}


/* Phase 22M award and peer intelligence */
.award-intelligence-card { display:grid; gap:14px; }
.award-intelligence-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.award-intelligence-grid > section { min-width:0; }
.award-intelligence-grid h4, .award-observed-characteristics h4 { margin:0 0 8px; font-size:11px; }
.award-observed-characteristics { border-top:1px solid var(--line); padding-top:12px; }
.award-observed-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.benchmark-winner-list { display:grid; gap:8px; grid-column:1/-1; }
.benchmark-peer-heading { grid-column:1/-1; margin-top:8px; }
.benchmark-note { grid-column:1/-1; }
@media (max-width: 900px) {
  .award-intelligence-grid { grid-template-columns:1fr; }
  .award-observed-grid { grid-template-columns:1fr; }
}


/* Phase 22N private opportunity and radar context */
.private-opportunity-badge { display:inline-flex; align-items:center; padding:3px 7px; border:1px solid var(--line); border-radius:999px; font-size:11px; font-weight:800; }
.pipeline-private-files { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:8px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; }
.pipeline-private-files strong { font-size:11px; margin-right:2px; }
.pipeline-private-files a { font-size:11px; overflow-wrap:anywhere; }
.private-import-card input[type="file"] { padding:8px; }
.private-import-card label > small { display:block; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.4; }


/* Phase 22O Memory and readiness points */
.readiness-points-panel { margin-top:10px; border-top:1px solid var(--line); padding-top:9px; }
.readiness-points-panel summary { cursor:pointer; font-size:11px; font-weight:800; }
.readiness-points-list { display:grid; gap:7px; margin-top:8px; }
.readiness-point-row { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; padding:7px 0; border-bottom:1px solid var(--line); }
.readiness-point-row:last-child { border-bottom:0; }
.readiness-point-row > div { display:grid; gap:2px; }
.readiness-point-row strong { font-size:11px; }
.readiness-point-row small { color:var(--muted); font-size:11px; line-height:1.35; }
.readiness-point-row > span { font-weight:900; white-space:nowrap; }
.memory-preferences { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; display:grid; gap:8px; }
.memory-preferences-heading { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.memory-preference-list { display:grid; gap:7px; }
.memory-preference-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:7px; align-items:center; }
.memory-preference-row.inactive { opacity:.65; }
.memory-preference-row input[type="text"], .memory-preference-row > input { min-width:0; }
.memory-toggle { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--muted); }
.memory-preference-form { display:grid; grid-template-columns:140px minmax(0,1fr) auto; gap:7px; }
@media (max-width:760px) {
  .memory-preference-row { grid-template-columns:1fr; }
  .memory-preference-form { grid-template-columns:1fr; }
}


/* Phase 22P Promise Register and Delivery dashboard */
.delivery-dashboard-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.delivery-dashboard-summary > div { border:1px solid var(--line); border-radius:10px; padding:10px; display:grid; gap:3px; }
.delivery-dashboard-summary span { color:var(--muted); font-size:11px; }
.delivery-dashboard-summary strong { font-size:16px; }
.bid-promise-register { margin-top:16px; }
.promise-readiness { padding:9px 11px; border-radius:9px; font-size:11px; }
.promise-readiness.ready { border:1px solid var(--line); }
.promise-readiness.warning { border:1px solid var(--line); font-weight:700; }
.bid-promise-list, .delivery-action-list { display:grid; gap:10px; margin-top:10px; }
.bid-promise-card, .delivery-action-card { display:grid; gap:9px; }
.delivery-action-section { margin-top:16px; }
.delivery-action-card { border:1px solid var(--line); border-radius:11px; padding:11px; }
.delivery-action-card.overdue { border-width:2px; }
.delivery-action-top { display:flex; gap:8px; align-items:center; }
.delivery-action-card > p { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
@media (max-width:760px) {
  .delivery-dashboard-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* Phase 22Q renewal defence, KPI dashboard and navigation */
.dashboard-kpi-card { margin-bottom:12px; }
.dashboard-kpi-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.dashboard-kpi-tile { min-width:0; border:1px solid var(--line); border-radius:11px; background:#fff; padding:10px; text-align:left; display:grid; gap:3px; color:var(--ink); }
.dashboard-kpi-tile:hover,.dashboard-kpi-tile:focus-visible { border-color:#b7cdee; background:#f7faff; }
.dashboard-kpi-tile span { color:var(--muted); font-size:11px; font-weight:750; }
.dashboard-kpi-tile strong { font-size:15px; line-height:1.2; overflow-wrap:anywhere; }
.renewal-review-panel { margin:12px 0; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.renewal-review-panel > h4 { margin:0 0 8px; font-size:11px; }
.renewal-review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:10px; }
.renewal-review-item { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; align-items:start; border:1px solid var(--line); border-radius:10px; padding:9px; }
.renewal-review-item > span { border-radius:999px; padding:3px 6px; background:#fff4dd; font-size:11px; font-weight:850; }
.renewal-review-item.ready > span { background:#eaf7ee; }
.renewal-review-item > div { display:grid; gap:2px; }
.renewal-review-item strong { font-size:11px; }
.renewal-review-item small { color:var(--muted); font-size:11px; line-height:1.4; }
@media (max-width: 1050px) {
  .dashboard-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .dashboard-kpi-grid,.renewal-review-grid { grid-template-columns:1fr; }
}


/* Phase 22R, launch-quality UX, responsive and accessibility gate */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-control: 10px;
  --radius-card: 14px;
  --focus-ring: 0 0 0 3px rgba(31,111,235,.24);
  --control-min: 40px;
  --touch-min: 44px;
}
html, body { max-width: 100%; overflow-x: clip; }
#appView, #appMain, #appMain > *, .panel, .setting-card, .dashboard-card,
.result-card, .bidpack-layout, .bidpack-detail, .delivery-layout, .delivery-detail,
.pipeline-toolbar, .pipeline-toolbar-controls, .workspace-header, .topbar { min-width: 0; }
#appView img, #appView svg { max-width: 100%; height: auto; }
#appView :is(span, small, em, p, li, dt, dd, label, button, input, select, textarea, a) {
  font-size: max(12px, 1em);
}
#appView :is(input, select, textarea, button) { min-height: var(--control-min); }
#appView :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(168,50,50,.12);
}
.field-error {
  display: block;
  margin-top: 6px;
  color: var(--bad);
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.4;
}
.form-validation-summary {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e5bcbc;
  border-radius: var(--radius-control);
  background: #fff4f4;
  color: #842626;
  font-size: 13px;
  line-height: 1.45;
}
.form-validation-summary:focus { outline: 3px solid rgba(31,111,235,.32); outline-offset: 2px; }
.status-ready, .status-complete, .status-success { border-left: 3px solid var(--good); }
.status-review, .status-warning, .status-attention { border-left: 3px solid var(--warn); }
.status-error, .status-overdue, .status-blocked { border-left: 3px solid var(--bad); }
.pipeline-remove-button, .danger-button {
  color: var(--bad);
  border: 1px solid #efc5c5;
  background: #fff7f7;
  border-radius: var(--radius-control);
  font-weight: 750;
}
.pipeline-remove-button:hover, .danger-button:hover { background: #fff0f0; color: #842626; }
.toast[data-status="success"] { border-left: 4px solid #7fe0bb; }
.toast[data-status="error"] { border-left: 4px solid #ff9c9c; }
.toast[data-status="info"] { border-left: 4px solid #9dc1ff; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.customer-table { margin: 0; }
.panel-heading-actions, .card-actions, .form-actions, .pipeline-card-actions, .bidpack-actions {
  flex-wrap: wrap;
}
button, [role="button"], a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [role="tab"]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
[aria-current="page"] { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dashboard-empty, .results-empty, .bidpack-empty, .pipeline-empty {
  overflow-wrap: anywhere;
}
.description, .muted, .compact-copy, .dashboard-list-item small, .source-card p,
.bid-agent-card p, .renewal-review-item small { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  #appMain { width: 100%; max-width: 100%; }
  .topbar { height: auto; min-height: 64px; padding: 10px 16px; gap: 10px; }
  .account-bar { min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
  .account-identity { min-width: 0; }
  .account-copy { min-width: 0; }
  .account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel { padding: 20px; }
  .workspace-header { gap: 12px; }
  .bidpack-layout, .delivery-layout { grid-template-columns: 1fr; }
  .bidpack-sidebar, .delivery-list-card { position: static; }
  .match-filters, .pipeline-toolbar, .pipeline-toolbar-controls { width: 100%; }
}

@media (max-width: 640px) {
  #appMain { padding-left: 12px; padding-right: 12px; }
  .topbar { align-items: flex-start; }
  .brand { flex: 0 0 auto; }
  .account-bar { gap: 6px; align-items: flex-start; }
  .account-plan-badge { display: none; }
  #logout { min-height: var(--touch-min); padding-inline: 8px; }
  .workspace-header { padding-top: 20px; }
  .workspace-header h1 { font-size: clamp(28px, 10vw, 36px); }
  .panel { padding: 16px 12px; border-radius: 14px; }
  .setting-card, .dashboard-card, .attention-panel { padding: 14px; }
  .panel-heading, .panel-heading-actions, .scan-controls, .form-actions, .card-actions {
    align-items: stretch;
  }
  .panel-heading-actions, .scan-controls, .form-actions { width: 100%; }
  .panel-heading-actions > button, .scan-controls > *, .form-actions > button { flex: 1 1 auto; }
  .grid.two, .grid.three, .stats, .pipeline-stats, .coverage-stats,
  .compact-stats, .roadmap-intel-metrics, .dashboard-summary-grid,
  .dashboard-kpi-grid, .renewal-review-grid { grid-template-columns: 1fr; }
  .pipeline-toolbar-controls, .pipeline-search, .pipeline-filter { width: 100%; }
  .pipeline-filter { display: grid; grid-template-columns: 1fr; }
  .pipeline-filter select, .pipeline-search input { width: 100%; min-width: 0; }
  .pipeline-board {
    grid-auto-flow: row;
    grid-template-columns: minmax(0,1fr);
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .pipeline-column { min-height: 0; width: 100%; }
  .pipeline-column:has(.pipeline-column-empty) { display: none; }
  .result-card { padding: 14px; gap: 12px; }
  .result-card .card-actions > * { flex: 1 1 100%; text-align: center; }
  .bidpack-header, .delivery-detail-head { display: grid; grid-template-columns: 1fr; }
  .bidpack-actions { justify-content: flex-start; }
  .customer-table { min-width: 680px; }
  #appView :is(input, select, textarea) { font-size: 16px; }
}

@media (max-width: 360px) {
  #appMain { padding-left: 8px; padding-right: 8px; }
  .topbar { padding-inline: 10px; }
  .brand span:last-child { display: none; }
  .account-avatar { display: none; }
  .account-copy strong { max-width: 130px; }
  .panel { padding: 14px 10px; }
  .mobile-app-menu-toggle { width: 100%; }
  .primary, .secondary, .ghost { padding-inline: 12px; }
}

@media (pointer: coarse) {
  #appView :is(button, [role="button"], a.dashboard-action-link, .text-button, summary) {
    min-height: var(--touch-min);
    min-width: var(--touch-min);
  }
}


/* v2.1.48 full UX/UI review */
:root{
  --surface:#ffffff;
  --surface-subtle:#f8fafc;
  --surface-accent:#f3f7ff;
  --line-strong:#d8dee8;
  --shadow-xs:0 1px 2px rgba(20,33,61,.04);
  --shadow-sm:0 8px 24px rgba(20,33,61,.055);
  --shadow-md:0 16px 44px rgba(20,33,61,.08);
}
body{background:#f7f9fc}
.topbar{
  min-height:68px;
  height:auto;
  background:rgba(255,255,255,.96);
  box-shadow:0 1px 0 rgba(20,33,61,.03);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.app-brand-link{text-decoration:none;color:var(--ink)}
.app-brand-link:hover .brand-mark{transform:translateY(-1px)}
.brand-mark{transition:transform .16s ease}
.account-identity{padding:5px 7px;border-radius:11px}
.account-identity:hover{background:var(--surface-subtle)}
#logout{border-radius:9px}
#logout:hover{background:#f2f5f9;color:var(--accent-dark)}

#appMain{
  width:min(100%,1440px);
  max-width:1440px;
  padding-top:30px;
}
.workspace-header{
  padding:20px 22px;
  border-color:#e3e7ee;
  box-shadow:var(--shadow-xs);
}
.workspace-header h1{font-size:clamp(27px,3vw,34px)}
.workspace-header #workspaceSummary{font-size:14px;max-width:820px}
.workspace-header .access-message{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  color:var(--accent-text);
  border:1px solid #dbe7fb;
}

.panel{
  border-color:#e3e7ee;
  border-radius:18px;
  box-shadow:var(--shadow-xs);
}
.panel.active{animation:panel-in .14s ease-out}
@keyframes panel-in{from{opacity:.72;transform:translateY(2px)}to{opacity:1;transform:none}}
.panel-heading{margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #edf0f4}
.panel-heading.compact-heading{padding-bottom:10px;margin-bottom:12px}
.panel-heading h2{font-size:clamp(26px,2.5vw,32px)}
.panel-heading h3{line-height:1.2}
.kicker{color:var(--accent-text);letter-spacing:.075em}

.primary,.secondary,.ghost,.text-button{
  transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.primary:hover:not(:disabled){box-shadow:0 7px 20px rgba(31,111,235,.22);transform:translateY(-1px)}
.secondary:hover:not(:disabled){background:#f8fafc;border-color:#cfd6e2}
.ghost:hover:not(:disabled){background:#f4f8ff;border-color:#bfd3f6}
.primary:active:not(:disabled),.secondary:active:not(:disabled),.ghost:active:not(:disabled){transform:translateY(0)}

input,textarea,select{
  min-height:44px;
  border-color:#d5dbe5;
  background:#fff;
  transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease;
}
textarea{min-height:96px}
input:hover:not(:disabled),textarea:hover:not(:disabled),select:hover:not(:disabled){border-color:#bfc8d5}
input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(31,111,235,.14)}
label{color:#27364f}
label>small{color:var(--muted-strong);font-weight:500;line-height:1.45}
.form-actions{gap:9px}
.form-validation-summary{
  border-left:4px solid var(--bad);
  padding:14px 16px;
}
.form-validation-summary-title{display:block;font-size:15px;margin-bottom:3px;color:#842626}
.form-validation-summary-copy{display:block;color:#842626;margin-bottom:8px}
.form-validation-summary ul{margin:0;padding-left:20px;display:grid;gap:5px}
.form-validation-summary a{color:#842626;font-weight:750;text-underline-offset:2px}
.form-validation-summary a:hover{text-decoration-thickness:2px}

.setting-card,.dashboard-card,.dashboard-score-card,.dashboard-stat-card,.source-audit-card{
  border-color:#e1e6ed;
  box-shadow:var(--shadow-xs);
}
.setting-card{background:#fff}
.dashboard-card,.dashboard-score-card,.dashboard-stat-card{background:#fff}
.dashboard-score-card{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.dashboard-card-heading{gap:16px}
.dashboard-kpi-tile{
  border-color:#e1e6ed;
  background:#fff;
  transition:border-color .14s ease,background-color .14s ease,transform .14s ease;
}
.dashboard-kpi-tile:hover{border-color:#bfd3f6;background:#fbfdff;transform:translateY(-1px)}
.roadmap-dashboard-strip>div{background:#fff;border-color:#e1e6ed}

.results-list{gap:12px}
.result-card{
  position:relative;
  border-color:#e1e6ed;
  border-radius:15px;
  padding:20px;
  box-shadow:var(--shadow-xs);
  transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.result-card:hover{border-color:#cdd6e3;box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.result-card:has(.recommendation.review){border-left:4px solid #42a47c}
.result-card:has(.recommendation.possible){border-left:4px solid #d89b3c}
.result-card:has(.recommendation.skip){border-left:4px solid #c7cdd6}
.result-card h3{font-size:20px;line-height:1.28}
.score-ring{
  width:68px;
  height:68px;
  border-width:6px;
  background:#fbfdff;
}
.meta{gap:6px;margin-bottom:12px}
.meta span{background:#fbfcfe}
.description{max-width:900px;line-height:1.6}
.card-actions{gap:7px}
.match-primary-actions{padding-top:3px}
.match-detail-panel{background:#f8fafc}
.match-filters{
  gap:10px;
  padding:12px 13px;
  background:#f8fafc;
  border-color:#e0e5ec;
}
.match-filters label{color:#536075}
.match-count{font-weight:700}
.stats div,.pipeline-stats>div{background:#fff;border-color:#e1e6ed;box-shadow:var(--shadow-xs)}
.source-pill{border:1px solid #e1e6ed;background:#fff}
.results-empty,.dashboard-empty,.bidpack-empty,.pipeline-empty{
  min-height:120px;
  display:grid;
  place-items:center;
  padding:28px;
  background:#fbfcfe;
  border:1px dashed #cfd6df;
  border-radius:14px;
  color:var(--muted-strong);
  text-align:center;
}
.loading{
  min-height:190px;
  display:grid;
  align-content:center;
  justify-items:center;
  padding:38px 18px;
  border:1px dashed #d6deea;
  border-radius:14px;
  background:#fbfcfe;
}
.loading p{margin:0;max-width:460px;line-height:1.5}

.pipeline-column{border-color:#e1e6ed;background:#f8fafc}
.pipeline-card{border-color:#e1e6ed;box-shadow:var(--shadow-xs)}
.pipeline-card:hover{border-color:#c9d4e3}
.bidpack-list-card,.evidence-card,.promise-card{border-color:#e1e6ed;box-shadow:var(--shadow-xs)}

.toast{
  right:max(18px,env(safe-area-inset-right));
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:120;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  box-shadow:0 18px 48px rgba(20,33,61,.24);
  line-height:1.45;
}

.table-wrap{border:1px solid #e1e6ed;border-radius:12px;background:#fff}
.customer-table tr:hover{background:#fafcff}
.customer-table th{background:#f8fafc;color:#526075}

@media (min-width:901px){
  #appMain{
    grid-template-columns:236px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:22px;
    row-gap:14px;
  }
  #appMain>.workspace-header{grid-column:2;grid-row:1}
  #appMain>.onboarding-panel{grid-column:2;grid-row:2}
  #appMain>.tabs{
    grid-column:1;
    grid-row:1 / span 3;
    top:86px;
    align-self:start;
    max-height:calc(100vh - 106px);
    overflow-y:auto;
    padding:14px 10px 16px;
    border-color:#e1e6ed;
    background:rgba(255,255,255,.97);
    box-shadow:var(--shadow-sm);
    scrollbar-width:thin;
  }
  #appMain>.tabs .app-tab-group{
    margin:15px 10px 5px;
    padding-top:11px;
    border-top:1px solid #edf0f4;
    color:#667085;
    font-size:12px!important;
    letter-spacing:.075em;
  }
  #appMain>.tabs .app-tab-group:first-child{margin-top:2px;padding-top:0;border-top:0}
  #appMain>.tabs .tab{
    min-height:44px;
    padding:10px 12px 10px 14px;
    border-radius:9px;
    color:#475467;
    font-size:13px;
  }
  #appMain>.tabs .tab:hover{background:#f6f8fb;color:var(--ink)}
  #appMain>.tabs .tab.active{
    background:#edf4ff;
    color:#1559bd;
    box-shadow:inset 3px 0 0 #1f6feb;
    font-weight:850;
  }
  #appMain>.tab-panel{grid-column:2;grid-row:3}
}

@media (max-width:1100px) and (min-width:901px){
  #appMain{grid-template-columns:210px minmax(0,1fr);column-gap:16px;padding-inline:18px}
  .dashboard-summary-grid{grid-template-columns:1fr 1fr}
  .dashboard-score-card{grid-column:1/-1}
}

@media (max-width:900px){
  #appMain{display:block;padding-top:20px}
  .workspace-header{margin-bottom:12px}
  #appMain>.tabs{max-height:none}
  #appMain>.tabs .tab.active{box-shadow:inset 3px 0 0 var(--accent)}
  .panel-heading{padding-bottom:14px}
  .account-avatar{width:34px;height:34px}
}

@media (max-width:640px){
  #appMain{padding-left:12px;padding-right:12px;padding-bottom:72px}
  .panel{border-radius:14px;padding:16px 13px}
  .panel-heading{gap:12px;margin-bottom:18px}
  .workspace-header{padding:17px 15px}
  .workspace-header .eyebrow{font-size:11px}
  .workspace-header #workspaceSummary{font-size:13px}
  .scan-controls,.form-actions,.card-actions{gap:8px}
  .form-actions{flex-direction:column-reverse}
  .form-actions>*,.scan-controls>*{width:100%}
  .result-card{grid-template-columns:58px minmax(0,1fr);gap:12px;padding:15px 13px}
  .score-ring{width:54px;height:54px;border-width:5px}
  .score-ring strong{font-size:18px}
  .result-card h3{font-size:17px}
  .result-card .description{font-size:14px}
  .match-primary-actions{grid-column:1/-1}
  .card-actions{flex-wrap:wrap}
  .card-actions>*{flex:1 1 150px}
  .toast{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:none}
}

@media (prefers-reduced-motion:reduce){
  .panel.active,.result-card,.dashboard-kpi-tile,.primary,.secondary,.ghost{animation:none!important;transition:none!important;transform:none!important}
}


/* v2.1.48 auth polish */
.auth-shell{background:#f7f9fc}
.auth-copy{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#f9fbff 0%,#eef4ff 100%);
  border-right:1px solid #dfe6f1;
}
.auth-copy::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-150px;
  bottom:-150px;
  border-radius:50%;
  background:rgba(31,111,235,.07);
  pointer-events:none;
}
.auth-copy>*{position:relative;z-index:1}
.auth-copy .eyebrow{color:var(--accent-text)}
.auth-points span{background:rgba(255,255,255,.78);border-color:#dbe4f0;color:#536075}
.auth-offer{
  max-width:520px;
  margin-top:22px;
  padding:16px 18px;
  border:1px solid #cfddf2;
  border-radius:14px;
  background:rgba(255,255,255,.72);
}
.auth-card{
  border-color:#dfe5ed;
  box-shadow:var(--shadow-md);
}
.auth-tabs{background:#f3f5f8}
.auth-tabs button{min-height:44px}
.auth-tabs button.active{box-shadow:var(--shadow-xs)}
.auth-form label{margin-bottom:16px}
.workspace-header .eyebrow{font-size:11px}
@media(max-width:900px){
  .auth-copy{border-right:0;border-bottom:1px solid #dfe6f1}
}


/* v2.1.50 business profile website import */
.profile-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.profile-field>label{
  margin:0;
  font-weight:750;
  color:#27364f;
}
.website-import-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:stretch;
}
.website-import-input input{min-width:0}
.website-import-input .secondary{
  white-space:nowrap;
  min-height:44px;
}
.website-import-field .field-help{
  display:block;
  color:var(--muted-strong);
  line-height:1.45;
}
.website-import-panel{
  margin:4px 0 22px;
  padding:20px;
  border:1px solid #cfe0f7;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);
  box-shadow:var(--shadow-xs);
}
.website-import-heading{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding-bottom:16px;
  border-bottom:1px solid #dfe9f6;
}
.website-import-heading h3{
  margin:3px 0 6px;
  font-size:21px;
}
.website-import-heading p{margin-bottom:0}
.website-import-summary{
  margin:14px 0;
  color:#536075;
  font-size:13px;
  font-weight:650;
}
.website-import-suggestions{
  display:grid;
  gap:10px;
}
.website-import-suggestion{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(220px,.9fr) minmax(170px,.55fr);
  gap:16px;
  align-items:start;
  padding:16px;
  border:1px solid #dfe5ed;
  border-radius:13px;
  background:#fff;
}
.website-import-suggestion-head{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.website-import-proposed{
  margin:8px 0 0;
  color:var(--ink);
  line-height:1.55;
  font-weight:650;
  white-space:pre-line;
}
.website-import-confidence{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.website-import-confidence.high{
  background:#eaf8f1;
  color:#23664d;
  border:1px solid #c6ead9;
}
.website-import-confidence.medium{
  background:#fff7e8;
  color:#855d17;
  border:1px solid #f1dfb5;
}
.website-import-confidence.low{
  background:#f4f5f7;
  color:#5d6675;
  border:1px solid #dfe3e8;
}
.website-import-current{
  margin-top:10px;
  padding:9px 11px;
  border-left:3px solid #d7dde6;
  background:#f8fafc;
  border-radius:0 8px 8px 0;
}
.website-import-current span,
.website-import-evidence>span:first-child{
  display:block;
  margin-bottom:3px;
  color:#667085;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.website-import-current p{
  margin:0;
  color:#536075;
  font-size:13px;
  line-height:1.45;
  white-space:pre-line;
}
.website-import-evidence{
  min-width:0;
  font-size:13px;
  line-height:1.45;
}
.website-import-evidence a{
  display:inline-block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  color:var(--accent-text);
  font-weight:750;
  white-space:nowrap;
}
.website-import-evidence small{
  display:block;
  margin-top:7px;
  color:#667085;
  line-height:1.45;
}
.website-import-control label{
  display:grid;
  gap:6px;
  margin:0;
  color:#536075;
  font-size:12px;
  font-weight:750;
}
.website-import-control select{
  width:100%;
  min-width:0;
}
.website-import-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #dfe9f6;
}
.website-import-empty{
  padding:22px;
  border:1px dashed #c9d6e7;
  border-radius:12px;
  background:#fff;
  text-align:center;
}
.website-import-empty p{
  max-width:620px;
  margin:7px auto 0;
  color:#667085;
  line-height:1.5;
}

@media(max-width:1050px){
  .website-import-suggestion{
    grid-template-columns:minmax(0,1fr) minmax(200px,.8fr);
  }
  .website-import-control{grid-column:1/-1}
  .website-import-control label{
    grid-template-columns:auto minmax(180px,260px);
    align-items:center;
    justify-content:start;
  }
}

@media(max-width:700px){
  .website-import-input{grid-template-columns:1fr}
  .website-import-input .secondary{width:100%}
  .website-import-panel{padding:15px 12px}
  .website-import-heading{display:grid}
  .website-import-suggestion{
    grid-template-columns:1fr;
    gap:12px;
    padding:14px 12px;
  }
  .website-import-control{grid-column:auto}
  .website-import-control label{grid-template-columns:1fr}
  .website-import-actions{display:grid}
  .website-import-actions>*{width:100%}
  .website-import-suggestion-head{align-items:flex-start}
}


/* v2.1.52 customer workspace branding */
#appView {
  --brand-primary: #14213d;
  --brand-primary-contrast: #ffffff;
  --brand-primary-soft: #f1f3f6;
  --brand-primary-text: #14213d;
  --brand-accent: #1f6feb;
  --brand-accent-contrast: #ffffff;
  --brand-accent-soft: #edf4ff;
  --brand-accent-dark: #1559bd;
  --brand-accent-text: #1559bd;
}
.app-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}
.app-brand-copy strong {
  font-size: 18px;
  color: inherit;
}
.app-brand-copy small {
  font-size:11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .02em;
}
.app-brand-logo {
  display: block;
  width: auto;
  max-width: 128px;
  height: 38px;
  object-fit: contain;
}
#appView.branding-enabled .topbar {
  border-bottom: 3px solid var(--brand-primary);
}
#appView.branding-enabled .app-brand-link,
#appView.branding-enabled .app-brand-link:hover {
  color: var(--brand-primary-text);
}
#appView.branding-enabled .brand-mark {
  background: var(--brand-primary);
  color: var(--brand-primary-contrast);
}
#appView.branding-enabled .account-avatar {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}
#appView.branding-enabled .workspace-header {
  border-top: 3px solid var(--brand-primary);
}
#appView.branding-enabled .workspace-header .eyebrow,
#appView.branding-enabled .panel .kicker {
  color: var(--brand-accent-text);
}
#appView.branding-enabled .primary {
  background: var(--brand-accent);
  color: var(--brand-accent-contrast);
  box-shadow: none;
}
#appView.branding-enabled .primary:hover:not(:disabled) {
  background: var(--brand-accent-dark);
  color: var(--brand-accent-contrast);
}
#appView.branding-enabled .ghost {
  color: var(--brand-accent-dark);
  border-color: var(--brand-accent-soft);
}
#appView.branding-enabled #appMain > .tabs .tab.active {
  background: var(--brand-accent-soft);
  color: var(--brand-accent-text);
  box-shadow: inset 3px 0 0 var(--brand-accent);
}
#appView.branding-enabled input:focus,
#appView.branding-enabled textarea:focus,
#appView.branding-enabled select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--brand-accent-soft);
}
#appView.branding-enabled :is(button,a,input,select,textarea,summary,[role="tab"]):focus-visible {
  outline-color: var(--brand-accent);
}

.workspace-branding-card {
  margin: 2px 0 22px;
  padding: 20px;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
}
.workspace-branding-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8ebf0;
}
.workspace-branding-heading h3 {
  margin: 3px 0 6px;
  font-size: 21px;
}
.workspace-branding-heading p:last-child {
  max-width: 780px;
  margin-bottom: 0;
}
.branding-settings-grid {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(190px,.48fr) minmax(250px,.72fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}
.branding-copy-fields {
  min-width: 0;
}
.branding-copy-fields > label {
  margin-bottom: 12px;
}
.branding-colour-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.brand-colour-field {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  background: #fff;
}
.brand-colour-field > label {
  margin: 0 0 8px;
}
.brand-colour-field small {
  display: block;
  margin-top: 7px;
  line-height: 1.4;
}
.brand-colour-input {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-colour-input input[type="color"] {
  width: 54px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 3px;
  cursor: pointer;
}
.brand-colour-input code {
  min-width: 84px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f5f7fa;
  color: #344054;
  font-size: 12px;
  text-align: center;
}
.branding-logo-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  background: #fff;
}
.branding-field-label {
  margin-bottom: 9px;
  color: #27364f;
  font-size: 14px;
  font-weight: 750;
}
.branding-logo-preview-shell {
  display: grid;
  place-items: center;
  min-height: 96px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px dashed #cfd6df;
  border-radius: 10px;
  background: #fbfcfe;
}
.branding-logo-preview {
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
}
.branding-logo-fallback {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #14213d;
  color: #fff;
  font-size: 23px;
  font-weight: 850;
}
.branding-logo-field input[type="file"] {
  min-height: 40px;
  margin: 0 0 8px;
  padding: 7px;
  font-size: 12px;
}
.branding-logo-field small {
  line-height: 1.4;
}
.branding-remove-logo {
  align-self: flex-start;
  margin-top: 10px;
}
.branding-live-preview {
  --brand-primary: #14213d;
  --brand-primary-contrast: #fff;
  --brand-primary-soft: #f1f3f6;
  --brand-primary-text: #14213d;
  --brand-accent: #1f6feb;
  --brand-accent-contrast: #fff;
  --brand-accent-soft: #edf4ff;
  --brand-accent-dark: #1559bd;
  --brand-accent-text: #1559bd;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  background: #fff;
}
.branding-preview-topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 3px solid var(--brand-primary);
  background: #fff;
}
.branding-preview-topbar > div {
  min-width: 0;
  display: grid;
}
.branding-preview-topbar strong {
  overflow: hidden;
  color: var(--brand-primary-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.branding-preview-topbar small {
  font-size:11px;
}
.branding-preview-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-primary);
  color: var(--brand-primary-contrast);
  font-weight: 850;
}
.branding-preview-logo {
  max-width: 96px;
  max-height: 38px;
  object-fit: contain;
}
.branding-live-preview > p {
  min-height: 64px;
  margin: 0;
  padding: 16px 13px 8px;
  color: #536075;
  font-size: 12px;
  line-height: 1.45;
}
.branding-live-preview > button {
  margin: 4px 13px 14px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}
.branding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8ebf0;
}
.branding-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.branding-actions p {
  max-width: 560px;
  text-align: right;
}

@media(max-width:1100px) {
  .branding-settings-grid {
    grid-template-columns: minmax(0,1fr) minmax(190px,.45fr);
  }
  .branding-live-preview {
    grid-column: 1 / -1;
  }
}
@media(max-width:700px) {
  .workspace-branding-card {
    padding: 15px 12px;
  }
  .workspace-branding-heading,
  .branding-settings-grid,
  .branding-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .branding-colour-grid {
    grid-template-columns: 1fr;
  }
  .branding-actions p {
    text-align: left;
  }
  .branding-actions > div {
    display: grid;
  }
  .branding-actions button {
    width: 100%;
  }
  .app-brand-logo {
    max-width: 94px;
    height: 32px;
  }
}


/* v2.1.52 UI/UX simplification: clearer hierarchy, progressive disclosure and calmer task flows */
:root {
  --ui-radius: 14px;
  --ui-radius-large: 18px;
  --ui-shadow: 0 8px 28px rgba(20,33,61,.06);
  --ui-shadow-soft: 0 3px 14px rgba(20,33,61,.045);
}

button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .primary, .secondary, .ghost, .tab { min-height: 42px; }
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input, select { min-height: 44px; }
textarea { min-height: 88px; }
label { line-height: 1.35; }
small, .muted { line-height: 1.55; }

.topbar {
  height: 64px;
  padding-inline: clamp(18px,4vw,52px);
  box-shadow: none;
}
.account-copy small { gap: 5px; }
.account-plan-badge { white-space: nowrap; }

.workspace-header {
  padding: 4px 2px 2px;
}
.workspace-header h1 { font-size: clamp(30px,4vw,42px); margin-bottom: 7px; }
.workspace-header p { max-width: 760px; }

.panel {
  border-radius: var(--ui-radius-large);
  box-shadow: var(--ui-shadow-soft);
  padding: 24px;
}
.panel-heading { margin-bottom: 22px; }
.panel-heading h2 { max-width: 760px; }
.panel-heading .muted { max-width: 760px; }
.panel-heading-actions { display:flex; flex-wrap:wrap; gap:8px; }

/* Keep the default view task-led instead of exposing every tool at once. */
@media (min-width: 901px) {
  #appMain {
    grid-template-columns: 196px minmax(0,1fr);
    column-gap: 20px;
  }
  #appMain > .tabs {
    padding: 8px;
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow-soft);
    gap: 3px;
  }
  #appMain > .tabs .tab {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 13px;
  }
}

.app-nav-label {
  display:block;
  padding: 6px 11px 5px;
  color: var(--muted);
  font-size:11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.app-nav-disclosure {
  border-top: 1px solid var(--line);
  margin-top: 5px;
  padding-top: 5px;
}
.app-nav-disclosure > summary {
  min-height: 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor:pointer;
  list-style:none;
}
.app-nav-disclosure > summary::-webkit-details-marker { display:none; }
.app-nav-disclosure > summary::after {
  content: "›";
  font-size: 18px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .16s ease;
}
.app-nav-disclosure[open] > summary::after { transform: rotate(-90deg); }
.app-nav-disclosure > summary:hover { background:#f7f9fc; color:var(--ink); }
.app-nav-disclosure-body { display:grid; gap:2px; padding:2px 0 3px 5px; }
.app-nav-disclosure-body .tab { font-weight:700; }
.app-nav-disclosure:has(.tab.active) > summary {
  color: var(--accent);
  background: #f7faff;
}

/* Dashboard: the first screen is action-oriented; secondary intelligence is opt-in. */
.dashboard-panel { padding: 24px; }
.dashboard-summary-grid {
  grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(160px,.65fr));
  gap: 10px;
  margin-bottom: 10px;
}
.dashboard-score-card,
.dashboard-stat-card,
.dashboard-card,
.source-audit-card {
  border-radius: var(--ui-radius);
  box-shadow: none;
}
.dashboard-score-card { padding: 15px; }
.dashboard-stat-card { padding: 15px; }
.dashboard-stat-card > strong { font-size: 30px; }
.dashboard-daily-focus {
  margin: 0 0 10px;
  border-color: #cddcf7;
  background: linear-gradient(180deg,#fff,#f9fbff);
}
.dashboard-daily-focus .dashboard-card-heading { margin-bottom: 8px; }
.dashboard-daily-focus .dashboard-card-heading h3 { font-size: 18px; }
.dashboard-more-disclosure,
.section-disclosure,
.profile-disclosure {
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: #fbfcfe;
  overflow: clip;
}
.dashboard-more-disclosure > summary,
.section-disclosure > summary,
.profile-disclosure > summary {
  min-height: 58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 16px;
  cursor:pointer;
  list-style:none;
}
.dashboard-more-disclosure > summary::-webkit-details-marker,
.section-disclosure > summary::-webkit-details-marker,
.profile-disclosure > summary::-webkit-details-marker { display:none; }
.dashboard-more-disclosure > summary span,
.section-disclosure > summary span,
.profile-disclosure > summary span { display:grid; gap:2px; }
.dashboard-more-disclosure > summary strong,
.section-disclosure > summary strong,
.profile-disclosure > summary strong { font-size:14px; }
.dashboard-more-disclosure > summary small,
.section-disclosure > summary small,
.profile-disclosure > summary small { font-size:11px; }
.dashboard-more-disclosure > summary::after,
.section-disclosure > summary::after,
.profile-disclosure > summary::after {
  content:"+";
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#eef4ff;
  color:var(--accent);
  font-size:18px;
  font-weight:700;
}
.dashboard-more-disclosure[open] > summary::after,
.section-disclosure[open] > summary::after,
.profile-disclosure[open] > summary::after { content:"–"; }
.dashboard-more-disclosure[open] > summary,
.section-disclosure[open] > summary,
.profile-disclosure[open] > summary {
  background:#fff;
  border-bottom:1px solid var(--line);
}
.dashboard-more-body,
.section-disclosure-body {
  display:grid;
  gap:12px;
  padding:14px;
}
.dashboard-more-body > * { margin-bottom:0 !important; }

/* Results: make the shortlist and search visually dominant, stats secondary. */
.coverage-stats {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:12px;
}
.coverage-stats div {
  flex:0 1 auto;
  min-width:92px;
  padding:9px 11px;
  border-radius:10px;
  background:#f8fafc;
}
.coverage-stats span { font-size:18px; }
.coverage-stats small { font-size:11px; }
.match-filters {
  border:1px solid var(--line);
  border-radius:var(--ui-radius);
  background:#fbfcfe;
  padding:12px;
}
.match-filter-primary { gap:8px; }
.match-search-label { min-width:min(360px,100%); }
.match-filter-primary label { margin-bottom:0; }
.match-filter-primary input,
.match-filter-primary select { margin-top:5px; }
.match-more-filters-toggle { white-space:nowrap; }
.source-status { margin: 10px 0 14px; }

/* Pipeline: reduce dashboard chrome while keeping all operational information. */
.pipeline-stats {
  gap:8px;
  margin-bottom:12px;
}
.pipeline-stats > div {
  padding:11px 12px;
  border-radius:10px;
  background:#fafbfc;
}
.pipeline-stats span { font-size:19px; }
.pipeline-toolbar {
  border-radius:var(--ui-radius);
  padding:11px 12px;
  margin-bottom:12px;
}
.pipeline-toolbar label { margin-bottom:0; }
.pipeline-toolbar-summary .muted { font-size:11px; }

/* Profile: core tender matching stays visible; optional identity/context is quieter. */
.workspace-branding-disclosure { margin: 4px 0 18px; }
.workspace-branding-disclosure .workspace-branding-card {
  margin:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#fff;
}
.profile-context { margin-top:12px; }
.form-actions {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  align-items:center;
  padding: 12px;
  margin: 18px -8px -8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 26px rgba(20,33,61,.08);
  backdrop-filter:blur(10px);
}

/* Sources and Growth: advanced tools remain available without competing with the core task. */
.private-tools-disclosure { margin-top:14px; }
.private-tools-disclosure .private-inbox-card,
.private-tools-disclosure .private-import-card { margin:0; }
.private-tools-disclosure .private-import-card { margin-top:12px; }
.growth-advanced-disclosure { margin-top:14px; }
.growth-advanced-disclosure .setting-card { margin:0; }
.growth-advanced-disclosure .growth-grid,
.growth-advanced-disclosure .intelligence-growth-grid { margin:0; }

/* Bid Packs: make the working pack primary; evidence library is an optional utility. */
.evidence-bank { margin-bottom:12px; }
.evidence-bank > summary { min-height:54px; }
.bidpack-layout { gap:12px; }

/* Automation and owner surfaces use quieter cards and clearer action weight. */
.automation-grid,
.admin-grid,
.launch-grid { gap:12px; }
.setting-card { box-shadow:none; }
.setting-card .primary + .secondary,
.setting-card .secondary + .ghost { margin-top:6px; }
.support-contact-links { gap:8px; }

/* Reduce repeated uppercase noise; preserve kickers where they help orientation. */
.kicker, .eyebrow { letter-spacing:.075em; }
.dashboard-card .kicker,
.setting-card .kicker { margin-bottom:6px; }

/* Mobile: one-column task flow, large touch targets and no hidden focus targets. */
@media (max-width: 900px) {
  #appMain { padding-inline: 14px; }
  .topbar { padding-inline:14px; }
  .account-plan-badge { display:none; }
  #appTabs { padding:8px; }
  #appTabs .tab,
  .app-nav-disclosure > summary { min-height:46px; }
  .app-nav-label { padding-top:10px; }
  .dashboard-summary-grid { grid-template-columns:1fr; }
  .dashboard-score-card,
  .dashboard-stat-card { min-height:auto; }
  .dashboard-more-disclosure > summary,
  .section-disclosure > summary,
  .profile-disclosure > summary { min-height:62px; }
  .form-actions {
    position:static;
    margin:18px 0 0;
    padding:12px 0 0;
    border-width:1px 0 0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
  }
  .form-actions .primary,
  .form-actions .secondary { flex:1 1 100%; }
  .coverage-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .coverage-stats div { min-width:0; }
}

@media (max-width: 620px) {
  .panel { padding:18px 14px; border-radius:14px; }
  .workspace-header { padding-inline:2px; }
  .workspace-header h1 { font-size:30px; }
  .panel-heading { gap:12px; }
  .panel-heading-actions,
  .scan-controls { width:100%; }
  .panel-heading-actions button,
  .scan-controls button { flex:1; }
  .scan-controls select { flex:1; min-width:0; }
  .coverage-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-more-body,
  .section-disclosure-body { padding:10px; }
  .card-actions { flex-wrap:wrap; }
  .card-actions > * { flex:1 1 auto; }
}

/* Prefer the dynamic viewport on mobile browsers while retaining the 100vh fallback above. */
.auth-shell,.boot-shell{min-height:100dvh}


/* v2.1.56 tiered subscription selector */
.subscription-card{display:grid;align-content:start}
.subscription-card h3{margin:2px 0 14px;font-size:24px}
.subscription-choice-grid{gap:10px;margin-bottom:16px}
.subscription-choice-grid label{margin:0;font-size:12px;font-weight:800;color:var(--muted)}
.subscription-choice-grid select{margin-top:6px;background:#fff}
.subscription-card .price-line{margin-top:2px}
.subscription-card .monthly-line{min-height:22px;color:var(--muted);font-size:12px;line-height:1.45}
.subscription-card #checkoutPlanSummary{min-height:46px}
@media(max-width:620px){
  .subscription-choice-grid{grid-template-columns:1fr}
}


/* v2.1.56 plan-aware dashboard layout */
#appView.plan-level-0 .dashboard-summary-grid,
#appView.plan-level-1 .dashboard-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(max-width:900px){
  #appView.plan-level-0 .dashboard-summary-grid,
  #appView.plan-level-1 .dashboard-summary-grid{
    grid-template-columns:1fr;
  }
}


/* v2.1.58 form typography */
form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
form textarea,
form select,
form option{
  font-weight:400;
}
form input::placeholder,
form textarea::placeholder{
  font-weight:400;
}
form label,
form legend,
.form-title,
.auth-form h2,
.panel form h2,
.panel form h3{
  font-weight:700;
}


/* v2.1.58 website-assisted workspace branding */
.workspace-branding-card{
  margin:18px 0 22px;
}
.branding-detect-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:-2px 0 18px;
  padding:16px 18px;
  border:1px solid #cfe0fb;
  border-radius:12px;
  background:#f7faff;
}
.branding-detect-bar>div{
  display:grid;
  gap:4px;
  min-width:0;
}
.branding-detect-bar strong{
  font-size:14px;
}
.branding-detect-bar small{
  max-width:720px;
  line-height:1.45;
}
#websiteBrandStatus{
  margin:-8px 0 16px;
}
@media(max-width:700px){
  .branding-detect-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .branding-detect-bar .button,
  .branding-detect-bar button{
    width:100%;
  }
}


/* v2.1.60 customer-app joy pass */
#dashboard > .panel-heading,
#results > .panel-heading,
#sources > .panel-heading,
#pipeline > .panel-heading,
#bidpacks > .panel-heading,
#growth > .panel-heading,
#delivery > .panel-heading,
#profile > .panel-heading,
#automation > .panel-heading{
  margin-bottom:16px;
  padding-bottom:0;
}
#dashboard > .panel-heading > div,
#sources > .panel-heading > div,
#pipeline > .panel-heading > div,
#bidpacks > .panel-heading > div,
#growth > .panel-heading > div,
#delivery > .panel-heading > div,
#profile > .panel-heading > div,
#automation > .panel-heading > div{
  display:none;
}
#results > .panel-heading > div{
  min-width:0;
}
#results > .panel-heading h2{
  font-size:19px;
  margin:0 0 3px;
}
#results > .panel-heading .muted{
  font-size:11px;
}
#profile > .panel-heading{display:none}
#dashboard > .panel-heading,
#sources > .panel-heading,
#pipeline > .panel-heading,
#bidpacks > .panel-heading,
#growth > .panel-heading,
#delivery > .panel-heading,
#automation > .panel-heading{
  justify-content:flex-end;
}
.feature-name{
  margin-left:6px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  text-transform:none;
  letter-spacing:0;
}
.plan-locked-tab{
  position:relative;
  padding-right:64px!important;
  color:#697589!important;
}
.plan-locked-tab::after{
  content:attr(data-locked-plan);
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  padding:3px 6px;
  border-radius:999px;
  background:#f2f4f7;
  color:#68758a;
  font-size:9px;
  font-weight:850;
  letter-spacing:.02em;
}
.plan-locked-tab:hover{
  background:#f8fafc!important;
  color:var(--ink)!important;
}

.match-filter-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
}
.triage-status{
  max-width:620px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.match-primary-actions{
  align-items:center;
}
.match-secondary-actions{
  position:relative;
}
.match-secondary-actions > summary{
  list-style:none;
  cursor:pointer;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  background:#fff;
}
.match-secondary-actions > summary::-webkit-details-marker{display:none}
.match-secondary-actions > summary::after{content:" ···";letter-spacing:1px}
.match-secondary-actions[open] > div{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  z-index:8;
  min-width:180px;
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  box-shadow:0 14px 34px rgba(20,33,61,.13);
}
.match-secondary-actions[open] button{width:100%;text-align:left}
.match-review-controls{
  margin-top:14px;
  padding:14px;
  border:1px solid #cfe0ff;
  border-radius:12px;
  background:#f8fbff;
}
.match-quick-decisions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:10px;
}
.match-quick-decisions > span{
  margin-right:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.match-quick-decision.active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.decision-brief{
  margin:0 0 20px;
  padding:18px;
  border:1px solid #cfe0ff;
  border-radius:14px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.decision-brief-heading h4{
  margin:3px 0 5px;
  font-size:21px;
}
.decision-brief-heading p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.decision-brief-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.decision-brief-grid article{
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.decision-brief-grid h5{
  margin:0 0 8px;
  font-size:12px;
}
.decision-brief-grid ul{
  margin:0;
  padding-left:17px;
  color:#40506a;
  font-size:12px;
  line-height:1.55;
}
.decision-brief-source-note{
  margin:12px 0 0;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.results-empty{
  display:grid;
  gap:5px;
  padding:28px;
  border:1px dashed var(--line);
  border-radius:14px;
  text-align:center;
  color:var(--muted);
}
.results-empty strong{color:var(--ink);font-size:15px}

.profile-section-heading{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:22px 0 14px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.profile-section-heading:first-child{margin-top:0;padding-top:0;border-top:0}
.profile-section-heading > span{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#eef4ff;
  color:var(--accent);
  font-size:11px;
  font-weight:900;
}
.profile-section-heading > div{display:grid;gap:2px}
.profile-section-heading strong{font-size:14px}
.profile-section-heading small{font-size:11px;line-height:1.4}
#profile .workspace-branding-card{
  margin-top:0;
}
#profile .branding-detect-bar{
  background:#fbfcfe;
}

.pipeline-secondary-stat{display:none!important}
#pipelineOverview:not([hidden]){
  margin-bottom:14px;
}
.attention-dashboard{
  border:1px solid #cfe0ff;
  background:#f8fbff;
}

.bidpack-next-actions{
  margin:14px 0;
  padding:16px;
  border:1px solid #cfe0ff;
  border-radius:13px;
  background:#f8fbff;
}
.bidpack-next-actions > div:first-child{
  display:grid;
  gap:3px;
}
.bidpack-next-actions > div:first-child strong{
  font-size:16px;
}
.bidpack-next-action-list{
  display:grid;
  gap:7px;
  margin-top:12px;
}
.bidpack-next-action-list > div{
  display:grid;
  grid-template-columns:24px 1fr;
  gap:9px;
  align-items:start;
}
.bidpack-next-action-list span{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid #cfe0ff;
  color:var(--accent);
  font-size:10px;
  font-weight:900;
}
.bidpack-next-action-list p{
  margin:2px 0 0;
  color:#40506a;
  font-size:12px;
  line-height:1.45;
}
.bidpack-joy-nav{
  position:sticky;
  top:74px;
  z-index:7;
  display:flex;
  gap:5px;
  overflow-x:auto;
  margin:12px 0 14px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  box-shadow:0 6px 18px rgba(20,33,61,.05);
}
.bidpack-joy-nav button{
  flex:0 0 auto;
  border:0;
  border-radius:8px;
  padding:8px 10px;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.bidpack-joy-nav button.active,
.bidpack-joy-nav button:hover{
  background:#eef4ff;
  color:var(--accent);
}
.bidpack-section,
.workspace-submission{
  scroll-margin-top:138px;
}

@media(max-width:900px){
  #dashboard > .panel-heading,
  #sources > .panel-heading,
  #pipeline > .panel-heading,
  #bidpacks > .panel-heading,
  #growth > .panel-heading,
  #delivery > .panel-heading,
  #automation > .panel-heading{
    justify-content:flex-start;
  }
  .decision-brief-grid{grid-template-columns:1fr}
  .bidpack-joy-nav{top:10px}
}
@media(max-width:700px){
  .match-filter-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .match-primary-actions{
    display:grid;
    grid-template-columns:1fr auto;
    gap:7px;
  }
  .match-primary-actions .match-review-controls-toggle{
    grid-column:1/-1;
    width:100%;
  }
  .match-primary-actions .match-detail-open{
    width:100%;
  }
  .match-primary-actions a.link{
    white-space:nowrap;
  }
  .match-secondary-actions{
    grid-column:1/-1;
  }
  .match-secondary-actions > summary{
    width:100%;
    text-align:center;
  }
  .match-secondary-actions[open] > div{
    position:static;
    margin-top:6px;
    box-shadow:none;
  }
  .match-review-controls-grid{
    grid-template-columns:1fr!important;
  }
  .bidpack-next-actions{padding:14px}
}


/* v2.1.61 master app UX/UI system
   Final authority for signed-in application styling. This intentionally
   normalises earlier feature-specific layers without removing functionality. */
:root{
  --app-bg:#f4f6f8;
  --app-surface:#ffffff;
  --app-surface-subtle:#f8fafc;
  --app-surface-accent:#f5f8ff;
  --app-border:#dfe4eb;
  --app-border-strong:#cbd3df;
  --app-text:#17233b;
  --app-text-soft:#596579;
  --app-text-faint:#7b8798;
  --app-accent:#1f6feb;
  --app-accent-hover:#175cc6;
  --app-accent-soft:#eaf2ff;
  --app-good:#087a55;
  --app-warn:#9a5700;
  --app-bad:#a83232;
  --app-radius-sm:9px;
  --app-radius:13px;
  --app-radius-lg:17px;
  --app-shadow-xs:0 1px 2px rgba(20,33,61,.04);
  --app-shadow-sm:0 7px 24px rgba(20,33,61,.06);
  --app-focus:0 0 0 3px rgba(31,111,235,.22);
  --app-control:44px;
}

#appView{
  min-height:100vh;
  color:var(--app-text);
  background:var(--app-bg);
}
#appView .muted,
#appView small{
  color:var(--app-text-soft);
}
#appView a{
  text-underline-offset:2px;
}
#appView .topbar{
  height:72px;
  padding:0 clamp(18px,3vw,44px);
  border-bottom:1px solid var(--app-border);
  background:rgba(255,255,255,.97);
  box-shadow:0 1px 0 rgba(20,33,61,.02);
  backdrop-filter:saturate(150%) blur(10px);
}
#appView .app-brand-link{
  min-width:0;
  gap:10px;
}
#appView .brand-mark{
  width:36px;
  height:36px;
  border-radius:10px;
  background:var(--app-text);
}
#appView .app-brand-copy{
  min-width:0;
  display:grid;
  line-height:1.15;
}
#appView .app-brand-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#appView .app-brand-copy small{
  margin-top:2px;
  font-size:10px!important;
}
#appView .account-bar{
  gap:10px;
}
#appView .account-identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 9px;
  border:1px solid var(--app-border);
  border-radius:12px;
  background:var(--app-surface-subtle);
}
#appView .account-avatar{
  width:30px;
  height:30px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:var(--app-accent-soft);
  color:var(--app-accent);
  font-size:12px;
  font-weight:850;
}
#appView .account-copy{
  min-width:0;
  display:grid;
}
#appView .account-copy strong{
  max-width:210px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
#appView .account-copy small{
  max-width:230px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px!important;
}
#appView .account-plan-badge{
  flex:0 0 auto;
  padding:4px 7px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--app-border);
  color:var(--app-text-soft);
  font-size:10px;
  font-weight:800;
}
#appView #logout{
  min-height:40px;
  padding:8px 10px;
  border-radius:9px;
}

#appMain{
  max-width:1440px;
  padding:30px clamp(16px,2.4vw,34px) 76px;
}
#appMain > .workspace-header{
  border:0;
  border-radius:0;
  padding:2px 2px 8px;
  background:transparent;
  box-shadow:none;
}
#appMain > .workspace-header .eyebrow{
  margin-bottom:5px;
  color:var(--app-accent);
  font-size:10px!important;
  letter-spacing:.08em;
}
#appMain > .workspace-header h1{
  margin:0 0 5px;
  font-size:clamp(26px,2.6vw,34px);
  line-height:1.08;
  color:var(--app-text);
  letter-spacing:-.035em;
}
#appMain > .workspace-header #workspaceSummary{
  max-width:820px;
  color:var(--app-text-soft);
  font-size:13px;
  line-height:1.5;
}
#appMain > .workspace-header .access-message{
  min-height:32px;
  display:flex;
  align-items:center;
  padding:6px 10px;
  border:1px solid #cfe0ff;
  border-radius:999px;
  background:var(--app-accent-soft);
  color:#1559bd!important;
  font-size:11px!important;
  font-weight:750;
}

@media(min-width:901px){
  #appMain{
    grid-template-columns:236px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    column-gap:22px;
    row-gap:14px;
    align-items:start;
  }
  #appMain > .tabs{
    grid-column:1;
    grid-row:1 / span 3;
    position:sticky;
    top:90px;
    max-height:calc(100vh - 110px);
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:3px;
    margin:0;
    padding:10px;
    border:1px solid var(--app-border);
    border-radius:var(--app-radius-lg);
    background:var(--app-surface);
    box-shadow:var(--app-shadow-xs);
  }
  #appMain > .workspace-header{
    grid-column:2;
    grid-row:1;
  }
  #appMain > .onboarding-panel{
    grid-column:2;
    grid-row:2;
  }
  #appMain > .tab-panel{
    grid-column:2;
    grid-row:3;
  }
}
#appMain > .tabs .app-nav-label{
  padding:7px 10px 6px;
  color:var(--app-text-faint);
  font-size:10px;
  letter-spacing:.09em;
}
#appMain > .tabs .tab{
  position:relative;
  min-height:42px;
  width:100%;
  display:flex;
  align-items:center;
  padding:9px 11px;
  border-radius:10px;
  color:var(--app-text-soft);
  font-size:13px;
  font-weight:700;
  text-align:left;
  transition:background .14s ease,color .14s ease,border-color .14s ease;
}
#appMain > .tabs .tab:hover{
  background:var(--app-surface-subtle);
  color:var(--app-text);
}
#appMain > .tabs .tab.active,
#appMain > .tabs .tab[aria-current="page"]{
  background:var(--app-accent-soft);
  color:var(--app-accent)!important;
  box-shadow:none;
}
#appMain > .tabs .tab.active::before,
#appMain > .tabs .tab[aria-current="page"]::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background:var(--app-accent);
}
#appMain > .tabs .plan-locked-tab{
  padding-right:62px!important;
}
#appMain > .tabs .plan-locked-tab::after{
  right:8px;
  padding:3px 6px;
  background:#eef1f5;
  color:#667085;
  font-size:9px;
}
#appMain > .tabs .app-nav-disclosure{
  margin-top:5px;
  padding-top:5px;
  border-top:1px solid #edf0f4;
}
#appMain > .tabs .app-nav-disclosure > summary{
  min-height:40px;
  padding:8px 10px;
  border-radius:9px;
  color:var(--app-text-soft);
  font-size:12px;
  font-weight:750;
}
#appMain > .tabs .app-nav-disclosure > summary:hover{
  background:var(--app-surface-subtle);
  color:var(--app-text);
}
#appMain > .tabs .app-nav-disclosure:has(.tab.active) > summary{
  color:var(--app-accent);
  background:#f7faff;
}
#appMain > .tabs .app-nav-disclosure-body{
  gap:2px;
  padding:3px 0 4px 7px;
}

#appView .panel{
  border:1px solid var(--app-border);
  border-radius:var(--app-radius-lg);
  padding:26px;
  background:var(--app-surface);
  box-shadow:var(--app-shadow-xs);
}
#appView .panel-heading{
  gap:14px;
  margin-bottom:18px;
}
#appView .panel-heading h2{
  margin-bottom:5px;
  font-size:23px;
  line-height:1.18;
}
#appView .panel-heading .muted{
  font-size:12.5px;
}
#appView .panel-heading-actions{
  gap:8px;
}
#appView .panel-heading-actions,
#appView .scan-controls{
  flex-wrap:wrap;
}
#appView #dashboard > .panel-heading,
#appView #sources > .panel-heading,
#appView #pipeline > .panel-heading,
#appView #bidpacks > .panel-heading,
#appView #growth > .panel-heading,
#appView #delivery > .panel-heading,
#appView #automation > .panel-heading{
  min-height:0;
  margin:0 0 14px;
}

#appView .primary,
#appView .secondary,
#appView .ghost{
  min-height:var(--app-control);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:10px;
  padding:10px 15px;
  font-size:13px;
  font-weight:750;
  line-height:1.2;
  transition:background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease;
}
#appView .primary{
  border-color:var(--app-accent);
  background:var(--app-accent);
  color:#fff;
  box-shadow:none;
}
#appView .primary:hover{
  border-color:var(--app-accent-hover);
  background:var(--app-accent-hover);
}
#appView .secondary{
  border-color:var(--app-border-strong);
  background:#fff;
  color:var(--app-text);
}
#appView .secondary:hover{
  border-color:#b6c0cf;
  background:var(--app-surface-subtle);
}
#appView .ghost{
  border-color:#c8dbff;
  background:#fff;
  color:var(--app-accent);
}
#appView .ghost:hover{
  border-color:#aac9ff;
  background:var(--app-accent-soft);
}
#appView .text-button{
  min-height:38px;
  border-radius:9px;
  font-size:12px;
  font-weight:750;
}
#appView button:disabled{
  opacity:.52;
  cursor:not-allowed;
}
#appView :is(button,a,summary,input,select,textarea):focus-visible{
  outline:3px solid var(--app-accent);
  outline-offset:2px;
  box-shadow:0 0 0 1px #fff;
}

#appView label{
  color:#27364f;
  font-size:13px;
  font-weight:700;
}
#appView input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
#appView select,
#appView textarea{
  min-height:var(--app-control);
  margin-top:7px;
  padding:10px 12px;
  border:1px solid var(--app-border-strong);
  border-radius:10px;
  background:#fff;
  color:var(--app-text);
  font-size:14px;
  line-height:1.4;
  box-shadow:none;
}
#appView textarea{
  min-height:100px;
}
#appView input:hover,
#appView select:hover,
#appView textarea:hover{
  border-color:#aeb9c8;
}
#appView input:focus,
#appView select:focus,
#appView textarea:focus{
  border-color:var(--app-accent);
  box-shadow:var(--app-focus);
}
#appView input::placeholder,
#appView textarea::placeholder{
  color:#8a95a5;
}
#appView label small,
#appView .field-help{
  margin-top:6px;
  color:var(--app-text-soft);
  font-size:11.5px!important;
  line-height:1.45;
}
#appView .form-actions{
  gap:8px;
  margin-top:12px;
  padding-top:18px;
  border-color:var(--app-border);
}
#appView .field-error{
  margin-top:6px;
  font-size:11.5px!important;
}

#appView .dashboard-score-card,
#appView .dashboard-stat-card,
#appView .dashboard-card,
#appView .source-card,
#appView .source-audit-card,
#appView .setting-card,
#appView .result-card,
#appView .pipeline-card,
#appView .pipeline-column,
#appView .bidpack-list-card,
#appView .bidpack-next-actions,
#appView .decision-brief,
#appView .website-import-panel,
#appView .attention-dashboard{
  border-color:var(--app-border);
  border-radius:var(--app-radius);
  box-shadow:none;
}
#appView .dashboard-card,
#appView .setting-card,
#appView .source-card{
  background:#fff;
}
#appView .dashboard-score-card{
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
}
#appView .dashboard-summary-grid{
  gap:12px;
  margin-bottom:12px;
}
#appView .dashboard-score-card,
#appView .dashboard-stat-card,
#appView .dashboard-card{
  padding:17px;
}
#appView .dashboard-stat-card > strong{
  font-size:31px;
}
#appView .dashboard-card-heading{
  margin-bottom:11px;
}
#appView .dashboard-card-heading h3{
  font-size:17px;
  line-height:1.3;
}
#appView .dashboard-list{
  gap:0;
}
#appView .dashboard-list-item{
  min-height:52px;
  gap:12px;
  padding:10px 0;
  border-top-color:#edf0f4;
}
#appView .dashboard-list-item strong{
  font-size:12.5px!important;
}
#appView .dashboard-list-item small,
#appView .dashboard-action-row small,
#appView .compact-copy,
#appView .dashboard-empty{
  font-size:12px!important;
  line-height:1.5;
}
#appView .dashboard-list-item .ghost{
  min-height:36px;
  padding:7px 10px;
  font-size:11.5px!important;
}
#appView .dashboard-more-disclosure,
#appView .section-disclosure,
#appView .profile-disclosure{
  border-color:var(--app-border);
  border-radius:var(--app-radius);
  background:var(--app-surface-subtle);
}
#appView .dashboard-more-disclosure > summary,
#appView .section-disclosure > summary,
#appView .profile-disclosure > summary{
  min-height:48px;
  padding:12px 14px;
  color:var(--app-text);
}

#appView .match-filters,
#appView .pipeline-toolbar,
#appView .scan-controls{
  border-radius:12px;
}
#appView .match-filter-primary,
#appView .match-filter-secondary,
#appView .pipeline-toolbar{
  gap:10px;
}
#appView .match-filter-footer{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #edf0f4;
}
#appView .triage-status{
  font-size:12px;
}
#appView .result-card{
  position:relative;
  gap:18px;
  padding:19px;
  background:#fff;
  transition:border-color .14s ease,box-shadow .14s ease,background .14s ease;
}
#appView .result-card:hover{
  border-color:#c3cfdf;
  box-shadow:0 8px 22px rgba(20,33,61,.05);
}
#appView .result-card h3{
  font-size:17px;
  line-height:1.35;
}
#appView .score-ring{
  width:68px;
  height:68px;
  border-width:6px;
  background:#fbfdff;
}
#appView .score-ring strong{
  font-size:20px;
}
#appView .meta{
  gap:6px;
}
#appView .meta span,
#appView .intel-chip,
#appView .timing-badge,
#appView .viability-badge,
#appView .review-state-badge,
#appView .priority-badge,
#appView .decision-badge,
#appView .attention-badge{
  border-radius:999px;
  font-size:10.5px!important;
  font-weight:800;
}
#appView .match-review-controls{
  margin-top:13px;
  padding:13px;
  border-color:#cfe0ff;
  border-radius:12px;
  background:#f8fbff;
}
#appView .match-secondary-actions > summary{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 11px;
  border-color:var(--app-border-strong);
  border-radius:10px;
}
#appView .decision-brief{
  padding:16px;
  background:var(--app-surface-accent);
}
#appView .decision-brief-grid article{
  border-color:var(--app-border);
  border-radius:10px;
}
#appView .results-empty,
#appView .pipeline-empty,
#appView .bidpack-list-empty,
#appView .bidpack-empty{
  border-color:#cbd5e1;
  background:#fbfcfe;
}

#appView .pipeline-board{
  gap:12px;
  padding:2px 2px 12px;
}
#appView .pipeline-column{
  min-height:280px;
  border-color:var(--app-border);
  background:#f8fafc;
}
#appView .pipeline-column-header{
  min-height:48px;
  padding:12px 13px;
  border-bottom-color:var(--app-border);
  background:#fff;
}
#appView .pipeline-column-header h3{
  font-size:13px;
}
#appView .pipeline-stack{
  gap:9px;
  padding:9px;
}
#appView .pipeline-card{
  gap:9px;
  padding:12px;
  background:#fff;
}
#appView .pipeline-card h4{
  font-size:13.5px;
}
#appView .pipeline-card-meta span{
  border-color:#e2e7ee;
  background:#fbfcfe;
}
#appView .pipeline-card-actions{
  padding-top:4px;
}
#appView .pipeline-card-actions .secondary,
#appView .pipeline-card-actions .ghost{
  min-height:36px;
  padding:7px 9px;
}

#appView .bidpack-list-card{
  padding:13px;
  background:#fff;
}
#appView .bidpack-list-card:hover,
#appView .bidpack-list-card.active{
  border-color:#9fc1ff;
  background:#fbfdff;
  box-shadow:0 6px 18px rgba(31,111,235,.06);
}
#appView .bidpack-header{
  padding-bottom:16px;
  border-bottom-color:var(--app-border);
}
#appView .bidpack-header h2{
  font-size:24px;
}
#appView .bidpack-next-actions{
  background:var(--app-surface-accent);
}
#appView .bidpack-joy-nav{
  top:88px;
  margin:12px 0 16px;
  padding:6px;
  border-color:var(--app-border);
  border-radius:11px;
  background:rgba(255,255,255,.98);
  box-shadow:var(--app-shadow-xs);
}
#appView .bidpack-joy-nav button{
  min-height:36px;
  padding:7px 10px;
  font-size:11px;
}
#appView .bidpack-joy-nav button.active{
  background:var(--app-accent-soft);
  color:var(--app-accent);
}

#appView .profile-section-heading{
  gap:11px;
  margin:24px 0 14px;
  padding-top:20px;
  border-top-color:var(--app-border);
}
#appView .profile-section-heading > span{
  width:28px;
  height:28px;
  background:var(--app-accent-soft);
  color:var(--app-accent);
}
#appView .profile-section-heading strong{
  font-size:14px;
}
#appView .profile-section-heading small{
  font-size:11.5px!important;
}
#appView .website-import-panel{
  padding:18px;
  background:linear-gradient(180deg,#f8fbff,#fff);
}
#appView .website-import-suggestion{
  border-color:var(--app-border);
  border-radius:12px;
}
#appView .branding-detect-bar{
  border-color:#cfe0fb;
  border-radius:12px;
  background:var(--app-surface-accent);
}

#appView .onboarding-panel{
  border:1px solid #cfe0fb;
  border-radius:var(--app-radius-lg);
  background:linear-gradient(180deg,#f8fbff,#fff);
  box-shadow:none;
}
#appView .onboarding-next{
  border-radius:12px;
}
#appView .toast{
  border:1px solid var(--app-border);
  border-radius:12px;
  box-shadow:0 14px 34px rgba(20,33,61,.14);
}
#appView .toast[data-status="success"]{
  border-color:#b9dfd0;
}
#appView .toast[data-status="error"]{
  border-color:#e5bcbc;
}

#appView table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:12px;
}
#appView th{
  padding:10px 12px;
  border-bottom:1px solid var(--app-border-strong);
  background:#f8fafc;
  color:var(--app-text-soft);
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.035em;
  text-align:left;
  text-transform:uppercase;
}
#appView td{
  padding:11px 12px;
  border-bottom:1px solid #edf0f4;
  vertical-align:top;
}
#appView tbody tr:hover td{
  background:#fbfcfe;
}

@media(max-width:1100px) and (min-width:901px){
  #appMain{
    grid-template-columns:208px minmax(0,1fr);
    column-gap:16px;
  }
  #appMain > .tabs .tab{
    font-size:12.5px;
  }
  #appView .dashboard-summary-grid{
    grid-template-columns:1fr 1fr;
  }
  #appView .dashboard-score-card{
    grid-column:1 / -1;
  }
}

@media(max-width:900px){
  #appMain{
    display:block;
    max-width:820px;
    padding:18px 14px 64px;
  }
  #appMain > .workspace-header{
    margin:0 0 10px;
    padding:3px 2px 8px;
  }
  #appMain > .workspace-header .access-message{
    width:max-content;
    max-width:100%;
  }
  #appView .mobile-app-nav{
    display:block;
    position:sticky;
    top:68px;
    z-index:9;
    margin:0 0 10px;
    padding:6px 0;
    background:linear-gradient(180deg,var(--app-bg) 70%,rgba(244,246,248,0));
  }
  #appView .mobile-app-menu-toggle{
    min-height:48px;
    border-color:var(--app-border-strong);
    border-radius:12px;
    background:#fff;
    box-shadow:var(--app-shadow-xs);
  }
  #appMain > .tabs{
    display:none;
    margin:0 0 12px;
    padding:8px;
    border:1px solid var(--app-border);
    border-radius:14px;
    background:#fff;
    box-shadow:var(--app-shadow-sm);
  }
  #appMain > .tabs.mobile-open{
    display:flex;
    flex-direction:column;
    gap:3px;
  }
  #appMain > .tabs .tab{
    min-height:44px;
  }
  #appMain > .tabs .app-nav-disclosure{
    width:100%;
  }
  #appView .panel{
    padding:20px;
    border-radius:15px;
  }
  #appView .dashboard-summary-grid{
    grid-template-columns:1fr;
  }
  #appView .dashboard-score-card{
    grid-column:auto;
  }
  #appView .bidpack-joy-nav{
    top:74px;
  }
}

@media(max-width:700px){
  #appView .topbar{
    height:64px;
    padding:0 12px;
  }
  #appView .app-brand-copy small,
  #appView .account-plan-badge{
    display:none!important;
  }
  #appView .account-identity{
    padding:5px 7px;
    border:0;
    background:transparent;
  }
  #appView .account-copy strong{
    max-width:120px;
  }
  #appView .account-copy small{
    max-width:120px;
  }
  #appView #logout{
    padding-inline:7px;
  }
  #appView .mobile-app-nav{
    top:60px;
  }
  #appMain > .workspace-header h1{
    font-size:27px;
  }
  #appView .panel{
    padding:16px;
    border-radius:14px;
  }
  #appView .panel-heading{
    align-items:stretch;
    flex-direction:column;
  }
  #appView .panel-heading-actions,
  #appView .scan-controls{
    width:100%;
  }
  #appView .panel-heading-actions > *,
  #appView .scan-controls > *{
    flex:1 1 100%;
    width:100%;
  }
  #appView .result-card{
    grid-template-columns:1fr;
    padding:16px;
  }
  #appView .score-ring{
    width:62px;
    height:62px;
  }
  #appView .match-primary-actions{
    grid-template-columns:1fr;
  }
  #appView .match-primary-actions .match-review-controls-toggle,
  #appView .match-primary-actions .match-detail-open,
  #appView .match-primary-actions a.link{
    grid-column:1;
    width:100%;
  }
  #appView .match-secondary-actions{
    grid-column:1;
  }
  #appView .dashboard-list-item{
    align-items:flex-start;
    flex-direction:column;
  }
  #appView .dashboard-list-item .ghost{
    width:100%;
  }
  #appView .pipeline-board{
    grid-auto-columns:minmax(84vw,1fr);
  }
  #appView .bidpack-header{
    gap:12px;
  }
  #appView .bidpack-actions{
    width:100%;
  }
  #appView .bidpack-actions > *{
    flex:1 1 130px;
  }
  #appView .website-import-input{
    grid-template-columns:1fr;
  }
  #appView .website-import-input .secondary{
    width:100%;
  }
}

@media(max-width:430px){
  #appView .account-avatar{
    display:none;
  }
  #appView .account-copy strong{
    max-width:96px;
  }
  #appView .account-copy small{
    display:none;
  }
  #appView .panel{
    padding:14px;
  }
  #appView .primary,
  #appView .secondary,
  #appView .ghost{
    width:100%;
  }
  #appView .match-secondary-actions > summary{
    width:100%;
  }
}

@media(prefers-contrast:more){
  #appView .panel,
  #appView .dashboard-card,
  #appView .result-card,
  #appView .pipeline-card,
  #appView .source-card,
  #appView .setting-card,
  #appMain > .tabs{
    border-color:#aab4c3;
  }
  #appView .muted,
  #appView small{
    color:#445066;
  }
}


/* v2.1.61 consistency pass: page toolbars, metrics and dense work areas */
#appView #results > .panel-heading{
  align-items:center;
  justify-content:space-between;
  min-height:46px;
  padding:0 0 12px;
  border-bottom:1px solid #edf0f4;
}
#appView #results > .panel-heading > div{
  display:block;
  margin-right:auto;
}
#appView #results > .panel-heading .kicker,
#appView #results > .panel-heading #resultsTitle{
  display:none;
}
#appView #results > .panel-heading #generatedAt{
  display:block;
  font-size:11.5px;
  font-weight:650;
}
#appView #automation > .panel-heading > .plan-badge{
  display:inline-flex;
  min-height:32px;
  align-items:center;
  padding:6px 10px;
  border:1px solid #cfe0ff;
  border-radius:999px;
  background:var(--app-accent-soft);
  color:var(--app-accent);
  font-size:11px;
  font-weight:800;
}
#appView .stats,
#appView .pipeline-stats,
#appView .delivery-dashboard-summary{
  gap:10px;
  margin-bottom:14px;
}
#appView .stats > div,
#appView .pipeline-stats > div,
#appView .delivery-dashboard-summary > div,
#appView .roadmap-intel-metrics > div{
  min-width:0;
  padding:13px 14px;
  border:1px solid var(--app-border);
  border-radius:11px;
  background:var(--app-surface-subtle);
}
#appView .stats > div span,
#appView .pipeline-stats > div span,
#appView .delivery-dashboard-summary > div span,
#appView .roadmap-intel-metrics > div span{
  color:var(--app-text-soft);
}
#appView .stats > div > span:first-child,
#appView .pipeline-stats > div > span:first-child{
  color:var(--app-text);
}
#appView .pipeline-stats > div > span,
#appView .stats > div > span{
  font-size:22px;
  line-height:1.1;
}
#appView .stats small,
#appView .pipeline-stats small,
#appView .delivery-dashboard-summary span{
  margin-top:4px;
  font-size:10.5px!important;
  font-weight:700;
}
#appView .pipeline-toolbar{
  margin-bottom:14px;
  padding:10px;
  border:1px solid var(--app-border);
  background:var(--app-surface-subtle);
}
#appView .pipeline-toolbar-controls{
  gap:9px;
}
#appView .pipeline-search,
#appView .pipeline-filter,
#appView .match-search-label,
#appView .match-filter-primary label,
#appView .match-filter-secondary label{
  margin-bottom:0;
}
#appView .automation-grid,
#appView .growth-grid{
  gap:14px;
}
#appView .setting-card{
  padding:17px;
}
#appView .setting-card > .kicker:first-child{
  margin-bottom:7px;
}
#appView .setting-card > h3{
  margin-top:0;
  line-height:1.3;
}
#appView .source-registry{
  gap:12px;
}
#appView .source-card{
  padding:16px;
}
#appView .source-card h3{
  font-size:15px;
  line-height:1.3;
}
#appView .coverage-summary{
  gap:10px;
  margin-bottom:14px;
}
#appView .attention-dashboard{
  gap:12px;
  margin-bottom:14px;
  padding:12px;
}
#appView .attention-panel{
  border-radius:11px;
}
#appView .evidence-bank{
  border-color:var(--app-border);
  border-radius:var(--app-radius);
}
#appView .evidence-bank > summary{
  min-height:52px;
  padding:12px 14px;
}
#appView .delivery-layout{
  gap:14px;
}
#appView .delivery-list-card,
#appView .delivery-detail{
  min-width:0;
}
#appView .small-message{
  line-height:1.45;
}
#appView :is(.primary,.secondary,.ghost,.text-button,.tab,summary){
  -webkit-tap-highlight-color:transparent;
}
@media(max-width:900px){
  #appView #results > .panel-heading{
    align-items:stretch;
    flex-direction:column;
  }
  #appView #results > .panel-heading > div{
    width:100%;
  }
  #appView #results > .panel-heading .scan-controls{
    width:100%;
  }
}


/* Keep customer branding authoritative inside the master UX layer. */
#appView.branding-enabled #appMain > .tabs .tab.active::before,
#appView.branding-enabled #appMain > .tabs .tab[aria-current="page"]::before{
  background:var(--brand-accent);
}
#appView.branding-enabled :is(button,a,summary,input,select,textarea):focus-visible{
  outline-color:var(--brand-accent);
}


/* v2.1.62 header and navigation polish */
#appView .topbar{
  height:68px;
  border-bottom:1px solid var(--app-border);
  box-shadow:none;
}
#appView.branding-enabled .topbar{
  border-bottom:1px solid var(--app-border);
}
#appView .account-bar{
  gap:12px;
}
#appView .account-identity{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
#appView .account-avatar{
  width:32px;
  height:32px;
  border-radius:9px;
}
#appView .account-plan-badge{
  padding:4px 8px;
  border-color:var(--app-border);
  background:var(--app-surface-subtle);
  color:var(--app-text-soft);
}
#appView #logout{
  color:var(--app-text-soft);
}
#appView #logout:hover{
  background:var(--app-surface-subtle);
  color:var(--app-text);
}

#appMain{
  padding-top:24px;
}
#appMain > .workspace-header{
  min-height:112px;
  padding:18px 20px;
  border:1px solid var(--app-border);
  border-radius:var(--app-radius-lg);
  background:var(--app-surface);
  box-shadow:var(--app-shadow-xs);
}
#appView.branding-enabled .workspace-header{
  border:1px solid var(--app-border);
}
#appMain > .workspace-header .eyebrow{
  margin-bottom:6px;
  letter-spacing:.06em;
}
#appMain > .workspace-header h1{
  margin-bottom:6px;
  font-size:clamp(25px,2.35vw,32px);
  line-height:1.1;
}
#appMain > .workspace-header #workspaceSummary{
  font-size:13px;
  line-height:1.45;
}
#appMain > .workspace-header .access-message{
  min-height:32px;
  border-color:var(--app-border);
  background:var(--app-surface-subtle);
  color:var(--app-text-soft)!important;
  font-weight:700;
}

@media(min-width:901px){
  #appMain{
    grid-template-columns:226px minmax(0,1fr);
    column-gap:20px;
    row-gap:12px;
  }
  #appMain > .tabs{
    top:84px;
    padding:8px;
    border-radius:14px;
    box-shadow:none;
  }
}

#appMain > .tabs .app-nav-label{
  padding:8px 10px 7px;
  color:#7a8595;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
#appMain > .tabs .tab{
  min-height:40px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:9px;
  color:#566174;
  font-weight:700;
}
#appMain > .tabs .tab:hover{
  border-color:#edf0f4;
  background:#f8f9fb;
  color:var(--app-text);
}
#appMain > .tabs .tab.active,
#appMain > .tabs .tab[aria-current="page"]{
  border-color:#e1e6ed;
  background:#f3f5f8;
  color:var(--app-text)!important;
  font-weight:800;
  box-shadow:0 1px 2px rgba(20,33,61,.03);
}
#appMain > .tabs .tab.active::before,
#appMain > .tabs .tab[aria-current="page"]::before{
  display:none;
}
#appView.branding-enabled #appMain > .tabs .tab.active,
#appView.branding-enabled #appMain > .tabs .tab[aria-current="page"]{
  border-color:#e1e6ed;
  background:#f3f5f8;
  color:var(--app-text)!important;
  box-shadow:0 1px 2px rgba(20,33,61,.03);
}
#appView.branding-enabled #appMain > .tabs .tab.active::before,
#appView.branding-enabled #appMain > .tabs .tab[aria-current="page"]::before{
  display:none;
}
#appMain > .tabs .app-nav-disclosure{
  margin-top:4px;
  padding-top:4px;
  border-top-color:#edf0f4;
}
#appMain > .tabs .app-nav-disclosure > summary{
  min-height:38px;
  padding:8px 10px;
  color:#667085;
  font-weight:700;
}
#appMain > .tabs .app-nav-disclosure:has(.tab.active) > summary{
  background:transparent;
  color:var(--app-text);
  font-weight:800;
}
#appMain > .tabs .app-nav-disclosure-body{
  padding:3px 0 3px 5px;
}

@media(max-width:900px){
  #appView .topbar{
    height:64px;
  }
  #appMain{
    padding-top:16px;
  }
  #appMain > .workspace-header{
    min-height:0;
    margin-bottom:10px;
    padding:16px;
    border-radius:14px;
  }
  #appView .mobile-app-nav{
    top:60px;
  }
}


/* v2.1.63 standalone Workspace branding page */
#appView .branding-panel > .panel-heading{
  margin-bottom:14px;
}
#appView .branding-panel > .panel-heading h2{
  margin-bottom:5px;
}
#appView .branding-page-form{
  margin:0;
}
#appView .branding-panel .workspace-branding-card{
  margin:0;
  padding:20px;
  border-color:var(--app-border);
  border-radius:14px;
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
  box-shadow:none;
}
#appView .branding-panel .branding-detect-bar{
  margin-bottom:14px;
  padding:13px 14px;
  border:1px solid #d8e4f5;
  border-radius:11px;
  background:#f7faff;
}
#appView .branding-panel .workspace-branding-heading{
  padding-bottom:14px;
}
#appView .branding-panel .branding-settings-grid{
  margin-top:16px;
}
#appView .branding-panel .branding-actions{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--app-border);
}
@media(max-width:900px){
  #appView .branding-panel .branding-settings-grid{
    grid-template-columns:1fr;
  }
  #appView .branding-panel .branding-detect-bar{
    align-items:stretch;
    flex-direction:column;
  }
  #appView .branding-panel #detectWebsiteBrand{
    width:100%;
  }
}


/* v2.1.64 Matches decision journey */
.result-card {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 14px;
}
.score-ring {
  width: 62px;
  height: 62px;
  border-width: 5px;
}
.score-ring strong { font-size: 20px; }
.result-topline {
  min-height: 26px;
  margin-bottom: 5px;
  gap: 10px;
  flex-wrap: wrap;
}
.result-topline .recommendation {
  padding: 5px 9px;
  font-size: 11px;
}
.match-state-summary {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.result-card h3 {
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.3;
}
.match-buyer-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.match-buyer-line .buyer {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
.match-buyer-line .source {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.match-source-divider { color: #a5adba; }
.result-card .meta {
  gap: 12px;
  margin-bottom: 10px;
}
.result-card .meta span {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.result-card .meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: #a5adba;
}
.result-card .description {
  max-width: 880px;
  margin: 0;
  color: #465268;
  font-size: 14px;
  line-height: 1.5;
}
.match-primary-actions {
  margin-top: 14px;
  gap: 7px;
  flex-wrap: wrap;
}
.match-primary-actions > .primary,
.match-primary-actions > .secondary,
.match-primary-actions > .link,
.match-primary-actions > details > summary {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.match-analysis {
  margin-top: 14px;
}
.match-review-controls {
  margin-top: 12px;
}
.match-detail-panel {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .result-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .score-ring {
    width: 50px;
    height: 50px;
    border-width: 4px;
  }
  .score-ring strong { font-size: 17px; }
  .score-ring small { font-size: 10px; }
  .result-card h3 { font-size: 18px; }
  .match-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .match-primary-actions > details { grid-column: 1 / -1; }
  .match-primary-actions > .primary,
  .match-primary-actions > .secondary,
  .match-primary-actions > .link {
    width: 100%;
    text-align: center;
  }
}


/* v2.1.65 Matches filters, scan controls and card consistency */
#results .results-heading {
  align-items: flex-end;
}
#results .scan-controls {
  margin-left: auto;
  justify-content: flex-end;
  align-items: flex-end;
  flex: 0 0 auto;
}
#results .scan-period-control {
  margin: 0;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
#results .scan-period-control > span {
  display: block;
  margin-bottom: 6px;
}
#results .scan-period-control select {
  min-width: 150px;
  margin: 0;
}
#results #scanAgain {
  min-width: 110px;
}

#results .source-status {
  margin: -8px 0 14px;
}

#results .match-filters {
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e1e6ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
#results .match-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}
#results .match-filter-heading > div {
  display: grid;
  gap: 2px;
}
#results .match-filter-heading strong {
  color: var(--ink);
  font-size: 14px;
}
#results .match-filter-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
#results .match-filter-primary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 190px) minmax(150px, 190px) auto auto;
  align-items: end;
  gap: 10px;
}
#results .match-filter-primary label,
#results .match-filter-secondary label {
  margin: 0;
  color: #536075;
  font-size: 12px;
  font-weight: 750;
}
#results .match-filter-primary input,
#results .match-filter-primary select,
#results .match-filter-secondary select {
  margin-top: 6px;
}
#results .match-filter-primary .match-search-label {
  min-width: 0;
}
#results .match-filter-primary .match-search-label input {
  min-width: 0;
}
#results .match-filter-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid #edf0f4;
}
#results .match-filter-secondary .saved-view-actions {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-top: 4px;
}
#results .match-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
}
#results .match-count {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
#results .match-more-filters-toggle {
  white-space: nowrap;
}
#results .match-mobile-filter-toggle {
  display: none;
}

#results .match-hero-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
#results .match-hero-stats > div {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
#results .match-hero-stats span {
  font-size: 22px;
}
#results .match-hero-stats small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

#results .result-card,
#results .result-card:has(.recommendation.review),
#results .result-card:has(.recommendation.possible),
#results .result-card:has(.recommendation.skip) {
  border: 1px solid #e1e6ed;
}
#results .result-card:hover {
  border-color: #cdd6e3;
}

@media (max-width: 1180px) {
  #results .match-filter-primary {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 180px) minmax(150px, 180px);
  }
  #results .match-review-next,
  #results .match-desktop-more-filters {
    justify-self: start;
  }
  #results .match-filter-secondary {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
  #results .match-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #results .results-heading {
    align-items: stretch;
  }
  #results .scan-controls {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  #results .scan-period-control,
  #results .scan-period-control select {
    width: 100%;
    min-width: 0;
  }
  #results .scan-controls #scanAgain {
    width: auto;
    min-width: 104px;
  }
  #results .source-status {
    margin-top: -2px;
  }
  #results .match-filter-heading {
    align-items: flex-start;
  }
  #results .match-mobile-filter-toggle {
    display: inline-flex;
  }
  #results .match-filter-primary {
    grid-template-columns: 1fr;
  }
  #results .match-filter-secondary {
    grid-template-columns: 1fr;
  }
  #results .match-filter-secondary .saved-view-actions {
    grid-column: auto;
  }
  #results .match-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v2.1.66 Matches page, task-led redesign */
#results.matches-page {
  --match-border: #e2e7ee;
  --match-border-strong: #cfd7e2;
  --match-subtle: #f8fafc;
  --match-muted: #667085;
  padding: 26px;
}

#results .matches-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

#results .matches-page-intro {
  min-width: 0;
}

#results .matches-page-intro .kicker {
  margin-bottom: 5px;
}

#results .matches-page-intro h2 {
  max-width: 780px;
  margin-bottom: 6px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.15;
}

#results .matches-page-intro .muted {
  font-size: 13px;
}

#results .matches-scan-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

#results .scan-period-control {
  min-width: 148px;
  margin: 0;
  color: var(--match-muted);
  font-size: 11px;
  font-weight: 800;
}

#results .scan-period-control > span {
  display: block;
  margin-bottom: 6px;
}

#results .scan-period-control select {
  width: 148px;
  min-height: 40px;
  margin: 0;
  padding-block: 8px;
}

#results #scanAgain {
  min-width: 104px;
  min-height: 40px;
  padding-block: 8px;
}

#results .match-source-health {
  margin: 0 0 14px;
  border: 0;
}

#results .match-source-health > summary {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 0;
  padding: 0;
  color: var(--match-muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

#results .match-source-health > summary::-webkit-details-marker {
  display: none;
}

#results .match-source-health > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--good);
}

#results .match-source-health > summary::after {
  content: "›";
  margin-left: 2px;
  font-size: 15px;
  line-height: 1;
  transform: rotate(90deg);
}

#results .match-source-health[open] > summary::after {
  transform: rotate(-90deg);
}

#results .match-source-health > summary span {
  color: #465268;
}

#results .match-source-health > summary small {
  font-size: 11px;
}

#results .match-source-health .source-status {
  margin: 10px 0 0;
  padding: 10px 0 2px;
}

#results .match-command-bar {
  display: grid;
  gap: 11px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--match-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20,33,61,.025);
}

#results .match-command-main {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(145px, 180px) auto auto;
  align-items: end;
  gap: 9px;
}

#results .match-command-main label,
#results .match-filter-grid label {
  min-width: 0;
  margin: 0;
  color: #526078;
  font-size: 11px;
  font-weight: 800;
}

#results .match-command-main label > span {
  display: block;
  margin-bottom: 5px;
}

#results .match-command-main input,
#results .match-command-main select,
#results .match-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding-block: 8px;
}

#results .match-command-main button {
  min-height: 40px;
  white-space: nowrap;
}

#results .match-mobile-filter-toggle {
  display: none;
}

#results .match-quick-views {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: thin;
}

#results .match-quick-view {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #59667a;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

#results .match-quick-view:hover {
  background: #f6f8fb;
  color: var(--ink);
}

#results .match-quick-view.active {
  border-color: #d3e1f8;
  background: #eef5ff;
  color: var(--accent-text);
}

#results .match-filter-secondary {
  display: block;
  margin-top: 2px;
  padding: 14px 0 0;
  border-top: 1px solid #edf0f4;
}

#results .match-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 10px;
}

#results .match-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf0f4;
}

#results .match-filter-actions .saved-view-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

#results .match-reset-filters {
  min-height: 34px;
  color: var(--match-muted);
  font-size: 12px;
}

#results .match-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
  gap: 12px;
}

#results .match-count,
#results .triage-status {
  color: var(--match-muted);
  font-size: 11px;
  font-weight: 650;
}

#results .match-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--match-border);
  border-radius: 13px;
  background: #fff;
}

#results .match-summary-strip > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 16px;
}

#results .match-summary-strip > div + div {
  border-left: 1px solid #edf0f4;
}

#results .match-summary-strip small {
  color: var(--match-muted);
  font-size: 11px;
  font-weight: 650;
}

#results .match-summary-strip strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

#results .matches-list {
  gap: 10px;
}

#results .result-card.match-card,
#results .result-card.match-card:has(.recommendation.review),
#results .result-card.match-card:has(.recommendation.possible),
#results .result-card.match-card:has(.recommendation.skip) {
  display: block;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--match-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

#results .result-card.match-card:hover {
  border-color: var(--match-border-strong);
  box-shadow: 0 5px 18px rgba(20,33,61,.045);
  transform: none;
}

#results .match-card-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(150px, 190px);
  gap: 17px;
  align-items: start;
  padding: 18px 18px 14px;
}

#results .match-score-block {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 62px;
  min-height: 62px;
  padding: 8px 5px;
  border: 1px solid #d8e4f5;
  border-radius: 12px;
  background: #f5f9ff;
  color: var(--accent-text);
}

#results .match-score-block strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.03em;
}

#results .match-score-block span {
  margin-top: 3px;
  color: #738099;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

#results .match-card-copy {
  min-width: 0;
}

#results .result-topline {
  min-height: 22px;
  margin-bottom: 5px;
  gap: 7px;
}

#results .result-topline .recommendation {
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#results .match-state-summary {
  color: var(--match-muted);
  font-size: 11px;
  font-weight: 700;
}

#results .match-card h3 {
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.3;
}

#results .match-detail-title {
  line-height: inherit;
}

#results .match-buyer-line {
  margin: 0 0 9px;
  color: var(--match-muted);
  font-size: 12px;
}

#results .match-buyer-line .buyer {
  color: #364258;
  font-weight: 750;
}

#results .match-buyer-line .source {
  padding: 0;
  background: transparent;
  color: var(--match-muted);
  font-size: 12px;
  font-weight: 500;
}

#results .match-card .description {
  display: -webkit-box;
  max-width: 900px;
  margin: 0;
  overflow: hidden;
  color: #536075;
  font-size: 13px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#results .match-card-facts {
  display: grid;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid #edf0f4;
}

#results .match-card-facts > div {
  display: grid;
  gap: 3px;
}

#results .match-card-facts span {
  color: var(--match-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

#results .match-card-facts strong {
  color: #303d54;
  font-size: 13px;
  line-height: 1.35;
}

#results .match-primary-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid #edf0f4;
  background: #fbfcfe;
  border-radius: 0 0 13px 13px;
}

#results .match-primary-actions > button,
#results .match-primary-actions > a,
#results .match-primary-actions > details > summary {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

#results .match-primary-actions .match-open-notice {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

#results .match-primary-actions .match-open-notice:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#results .match-secondary-actions {
  position: relative;
}

#results .match-secondary-actions > summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--match-muted);
  font-weight: 750;
  list-style: none;
}

#results .match-secondary-actions > summary::-webkit-details-marker {
  display: none;
}

#results .match-secondary-actions[open] > div {
  right: 0;
  left: auto;
  min-width: 170px;
}

#results .match-review-controls,
#results .match-decision-note,
#results .match-review-history,
#results .match-detail-panel {
  margin: 0 18px 16px 90px;
}

#results .match-review-controls {
  padding: 13px;
  border-color: var(--match-border);
  background: var(--match-subtle);
}

#results .match-quick-decisions {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

#results .match-detail-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

#results .decision-brief {
  padding: 16px;
  border: 1px solid var(--match-border);
  border-radius: 12px;
  background: #fff;
}

#results .decision-brief-heading {
  margin-bottom: 12px;
}

#results .decision-brief-heading h4 {
  margin-bottom: 3px;
  font-size: 16px;
}

#results .decision-brief-heading p {
  margin: 0;
  color: var(--match-muted);
  font-size: 12px;
}

#results .decision-brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

#results .decision-brief-grid > article {
  padding: 12px;
  border: 1px solid #e7ebf0;
  border-radius: 10px;
  background: #fafbfd;
}

#results .decision-brief-grid h5 {
  margin-bottom: 7px;
  font-size: 12px;
}

#results .decision-brief-grid ul {
  font-size: 12px;
  line-height: 1.45;
}

#results .match-readiness-summary {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--match-border);
  border-radius: 12px;
  background: #fff;
}

#results .match-detail-section-heading h4 {
  margin: 0;
  font-size: 14px;
}

#results .match-detail-section-heading p {
  margin: 3px 0 0;
  color: var(--match-muted);
  font-size: 11px;
}

#results .match-readiness-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

#results .match-readiness-card {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e8ecf1;
  border-radius: 9px;
  background: #fafbfd;
}

#results .match-readiness-card > span {
  color: var(--match-muted);
  font-size: 10px;
  font-weight: 700;
}

#results .match-readiness-card > strong {
  color: #344157;
  font-size: 13px;
}

#results .match-readiness-card > small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--match-muted);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#results .match-deep-dive {
  margin-top: 12px;
  border: 1px solid var(--match-border);
  border-radius: 12px;
  background: #fff;
}

#results .match-deep-dive > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}

#results .match-deep-dive > summary::-webkit-details-marker {
  display: none;
}

#results .match-deep-dive > summary::after {
  content: "+";
  color: var(--match-muted);
  font-size: 18px;
}

#results .match-deep-dive[open] > summary::after {
  content: "−";
}

#results .match-deep-dive > summary span {
  display: grid;
  gap: 2px;
}

#results .match-deep-dive > summary strong {
  font-size: 13px;
}

#results .match-deep-dive > summary small {
  color: var(--match-muted);
  font-size: 11px;
}

#results .match-deep-dive-body {
  display: grid;
  gap: 16px;
  padding: 0 15px 15px;
  border-top: 1px solid #edf0f4;
}

#results .match-deep-section {
  padding-top: 15px;
}

#results .match-score-row {
  grid-template-columns: minmax(130px, .7fr) auto minmax(220px, 1.5fr);
}

#results .load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

@media (max-width: 1100px) {
  #results .match-command-main {
    grid-template-columns: minmax(260px, 1fr) minmax(140px, 170px) auto;
  }

  #results .match-review-next {
    grid-column: 3;
  }

  #results .match-filter-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  #results .match-card-top {
    grid-template-columns: 66px minmax(0, 1fr) minmax(135px, 165px);
  }

  #results .match-readiness-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #results.matches-page {
    padding: 16px 12px;
  }

  #results .matches-page-header {
    display: grid;
    gap: 16px;
  }

  #results .matches-scan-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    margin-left: 0;
  }

  #results .scan-period-control,
  #results .scan-period-control select {
    width: 100%;
    min-width: 0;
  }

  #results .match-command-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #results .match-search-label {
    grid-column: 1 / -1;
  }

  #results .match-sort-label {
    min-width: 0;
  }

  #results .match-more-filters-toggle,
  #results .match-review-next {
    display: none;
  }

  #results .match-mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #results .match-quick-views {
    margin-inline: -2px;
  }

  #results .match-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  #results .match-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #results .match-filter-actions .saved-view-actions {
    width: 100%;
  }

  #results .match-filter-actions .saved-view-actions > * {
    flex: 1;
  }

  #results .match-summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  #results .match-summary-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #edf0f4;
  }

  #results .match-summary-strip > div:nth-child(4) {
    border-top: 1px solid #edf0f4;
  }

  #results .match-card-top {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 14px 12px;
  }

  #results .match-score-block {
    width: 52px;
    min-height: 52px;
    border-radius: 10px;
  }

  #results .match-score-block strong {
    font-size: 17px;
  }

  #results .match-card h3 {
    font-size: 17px;
  }

  #results .match-card-facts {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #edf0f4;
    border-left: 0;
  }

  #results .match-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 10px 14px;
  }

  #results .match-primary-actions .match-open-notice {
    justify-content: center;
    margin-left: 0;
    min-height: 36px;
  }

  #results .match-secondary-actions {
    grid-column: 1 / -1;
  }

  #results .match-review-controls,
  #results .match-decision-note,
  #results .match-review-history,
  #results .match-detail-panel {
    margin: 0 14px 14px;
  }

  #results .decision-brief-grid,
  #results .match-readiness-grid {
    grid-template-columns: 1fr;
  }

  #results .match-score-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  #results .match-filter-grid {
    grid-template-columns: 1fr;
  }

  #results .match-command-main {
    grid-template-columns: 1fr;
  }

  #results .match-search-label {
    grid-column: auto;
  }

  #results .match-mobile-filter-toggle {
    width: 100%;
  }

  #results .match-primary-actions {
    grid-template-columns: 1fr;
  }

  #results .match-summary-strip strong {
    font-size: 19px;
  }
}


/* v2.1.66 Matches clarity refinements */
#results .match-source-health.has-warning > summary::before {
  background: var(--warn);
}
#results .match-reason-label {
  display: block;
  margin: 0 0 3px;
  color: #7a8598;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* v2.1.67 Match score progress, card actions and simplified review */
#results .match-score-ring {
  --match-score-angle: 0deg;
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  align-content: center;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--match-score-angle), #e7edf5 0);
  box-shadow: inset 0 0 0 1px rgba(20,33,61,.03);
}

#results .match-score-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

#results .match-score-ring strong,
#results .match-score-ring span {
  position: relative;
  z-index: 1;
}

#results .match-score-ring strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.03em;
}

#results .match-score-ring span {
  margin-top: 2px;
  color: var(--match-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#results .match-primary-actions .bidpack {
  white-space: nowrap;
}

#results .match-primary-actions .match-open-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

#results .match-primary-actions .match-open-notice:hover {
  border-color: #cfd6e2;
  background: #f8fafc;
  color: var(--ink);
  text-decoration: none;
}

#results .match-detail-panel {
  margin: 0 18px 16px;
}

#results .match-review-summary {
  overflow: hidden;
  border: 1px solid var(--match-border);
  border-radius: 12px;
  background: #fff;
}

#results .match-review-summary-heading {
  padding: 16px 17px 14px;
  border-bottom: 1px solid #edf0f4;
}

#results .match-review-summary-heading .kicker {
  display: block;
  margin-bottom: 4px;
}

#results .match-review-summary-heading h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

#results .match-review-summary-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--match-muted);
  font-size: 12px;
  line-height: 1.5;
}

#results .match-review-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 0;
}

#results .match-review-main > article {
  padding: 16px 17px;
}

#results .match-review-main > article + article {
  border-left: 1px solid #edf0f4;
}

#results .match-review-summary h5 {
  margin: 0 0 9px;
  color: #334057;
  font-size: 12px;
}

#results .match-review-reasons ul,
#results .match-review-checks ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #465268;
  font-size: 12px;
  line-height: 1.5;
}

#results .match-review-reasons li::marker {
  color: var(--accent);
}

#results .match-review-fact-grid {
  display: grid;
  gap: 8px;
}

#results .match-review-fact-grid > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

#results .match-review-fact-grid span {
  color: var(--match-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#results .match-review-fact-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #354158;
  font-size: 12px;
  line-height: 1.4;
}

#results .match-review-checks,
#results .match-review-signals {
  padding: 15px 17px;
  border-top: 1px solid #edf0f4;
}

#results .match-review-checks {
  background: #fbfcfe;
}

#results .match-review-section-title {
  margin-bottom: 9px;
}

#results .match-review-section-title h5 {
  margin-bottom: 2px;
}

#results .match-review-section-title p {
  margin: 0;
  color: var(--match-muted);
  font-size: 11px;
  line-height: 1.45;
}

#results .match-review-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#results .match-review-signal {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e7ebf0;
  border-radius: 9px;
  background: #fafbfd;
}

#results .match-review-signal > span {
  color: var(--match-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#results .match-review-signal > strong {
  color: #344157;
  font-size: 13px;
}

#results .match-review-signal > small {
  display: -webkit-box;
  margin-top: 1px;
  overflow: hidden;
  color: var(--match-muted);
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#results .match-review-scoring {
  border-top: 1px solid #edf0f4;
}

#results .match-review-scoring > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 17px;
  cursor: pointer;
  list-style: none;
}

#results .match-review-scoring > summary::-webkit-details-marker {
  display: none;
}

#results .match-review-scoring > summary::after {
  content: "+";
  color: var(--match-muted);
  font-size: 17px;
}

#results .match-review-scoring[open] > summary::after {
  content: "−";
}

#results .match-review-scoring > summary span {
  display: grid;
  gap: 2px;
}

#results .match-review-scoring > summary strong {
  color: #354158;
  font-size: 12px;
}

#results .match-review-scoring > summary small {
  color: var(--match-muted);
  font-size: 10px;
}

#results .match-review-scoring-body {
  display: grid;
  padding: 0 17px 14px;
}

#results .match-review-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid #edf0f4;
}

#results .match-review-score-row > div {
  display: grid;
  gap: 2px;
}

#results .match-review-score-row strong {
  color: #3b475c;
  font-size: 11px;
}

#results .match-review-score-row small {
  color: var(--match-muted);
  font-size: 10px;
  line-height: 1.4;
}

#results .match-review-score-row > span {
  color: #344157;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#results .match-review-source-note {
  margin: 0;
  padding: 10px 17px 12px;
  border-top: 1px solid #edf0f4;
  color: #7a8598;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  #results .match-review-main {
    grid-template-columns: 1fr;
  }

  #results .match-review-main > article + article {
    border-top: 1px solid #edf0f4;
    border-left: 0;
  }

  #results .match-review-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #results .match-score-ring {
    width: 52px;
    height: 52px;
  }

  #results .match-score-ring::before {
    inset: 4px;
  }

  #results .match-score-ring strong {
    font-size: 16px;
  }

  #results .match-primary-actions {
    grid-template-columns: 1fr 1fr;
  }

  #results .match-primary-actions .match-open-notice {
    margin-left: 0;
  }

  #results .match-detail-panel {
    margin: 0 14px 14px;
  }
}

@media (max-width: 460px) {
  #results .match-review-signal-grid {
    grid-template-columns: 1fr;
  }

  #results .match-primary-actions {
    grid-template-columns: 1fr;
  }
}


/* v2.1.68 signed-in header refinement */
#appView .topbar {
  height: 66px;
  padding-inline: clamp(18px, 3vw, 40px);
}

#appView .account-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fafbfd;
}

#appView .account-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 3px 7px 3px 3px;
  border: 0;
  background: transparent;
}

#appView .account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e4f6;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--app-accent);
  font-size: 13px;
  font-weight: 850;
}

#appView .account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#appView .account-company-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

#appView .account-copy strong {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appView .account-copy small {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: #758095;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appView .account-plan-badge {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid #d7e3f4;
  border-radius: 999px;
  background: #f3f7fd;
  color: #52647e;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: none;
}

#appView .account-plan-badge.owner-plan {
  border-color: #cfe0fb;
  background: #eef5ff;
  color: var(--app-accent);
}

#appView .account-plan-badge.free-plan {
  border-color: #e1e5eb;
  background: #f7f8fa;
  color: #6f7a8d;
}

#appView #logout.account-signout {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

#appView #logout.account-signout:hover {
  border-color: #e1e6ed;
  background: #fff;
  color: var(--app-text);
}

@media (max-width: 700px) {
  #appView .topbar {
    height: 62px;
    padding-inline: 12px;
  }

  #appView .account-bar {
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #appView .account-identity {
    padding: 2px 4px;
  }

  #appView .account-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 12px;
  }

  #appView .account-company-line {
    gap: 5px;
  }

  #appView .account-copy strong {
    max-width: 126px;
    font-size: 12px;
  }

  #appView .account-copy small {
    max-width: 126px;
    font-size: 10px;
  }

  #appView .account-plan-badge {
    display: none !important;
  }

  #appView #logout.account-signout {
    min-height: 32px;
    padding-inline: 7px;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 430px) {
  #appView .account-avatar {
    display: none;
  }

  #appView .account-copy strong {
    max-width: 104px;
  }

  #appView .account-copy small {
    display: none;
  }
}


/* v2.2.0 Win Engine */
.win-engine,
.submission-guardian {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce8ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}
.win-engine-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:15px; }
.win-engine-heading h3 { margin:3px 0 4px; font-size:20px; }
.win-engine-heading p { margin:0; line-height:1.45; }
.win-engine-score { min-width:98px; display:grid; justify-items:end; gap:2px; }
.win-engine-score strong { color:var(--accent); font-size:34px; line-height:1; letter-spacing:-.04em; }
.win-engine-score span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.win-engine-dimensions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.win-engine-dimensions article { display:grid; gap:7px; min-width:0; padding:11px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.win-engine-dimensions article > div:first-child { display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.win-engine-dimensions span,.guardian-metrics span { color:var(--muted); font-size:10px; font-weight:750; }
.win-engine-dimensions strong { font-size:13px; }
.win-engine-dimensions small,.guardian-metrics small { color:var(--muted); font-size:10px; line-height:1.35; }
.win-engine-meter { height:5px; overflow:hidden; border-radius:999px; background:#e9eef5; }
.win-engine-meter span { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.win-engine-body { display:grid; grid-template-columns:1fr 1fr; gap:11px; margin-top:11px; }
.win-engine-panel,.win-engine-actions,.guardian-issues { padding:13px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.win-engine-panel h4,.win-engine-actions h4,.guardian-issues h4 { margin:0 0 9px; font-size:13px; }
.win-engine-list { display:grid; gap:7px; }
.win-engine-actions { margin-top:11px; }
.win-engine-actions .bidpack-next-action-list > div { align-items:flex-start; }
.win-engine-actions .bidpack-next-action-list > div > div { display:grid; gap:2px; }
.win-engine-actions .bidpack-next-action-list strong { font-size:11px; }
.win-engine-actions .bidpack-next-action-list p { margin:0; }

.guardian-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:11px; }
.guardian-metrics > div { display:grid; gap:3px; padding:11px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.guardian-metrics strong { font-size:18px; }
.guardian-issues { display:grid; gap:7px; }
.guardian-issue { display:grid; grid-template-columns:auto 1fr; gap:9px; align-items:start; padding-top:8px; border-top:1px solid var(--line); }
.guardian-issue:first-of-type { border-top:0; padding-top:0; }
.guardian-issue > span { min-width:55px; padding:4px 6px; border-radius:999px; background:#eef1f5; color:var(--muted); font-size:9px; font-weight:850; text-align:center; text-transform:uppercase; }
.guardian-critical > span,.guardian-high > span { background:#fff0f0; color:var(--bad); }
.guardian-issue strong { font-size:11px; }
.guardian-issue p { margin:2px 0 0; color:var(--muted); font-size:11px; line-height:1.4; }

#results .match-win-plan { padding:15px 17px; border-top:1px solid #dce8ff; background:#f7faff; }
#results .match-win-plan-heading { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
#results .match-win-plan-heading h5 { margin:2px 0 3px; font-size:14px; }
#results .match-win-plan-heading p { margin:0; color:var(--match-muted); font-size:11px; line-height:1.4; }
#results .match-win-plan-heading > strong { color:var(--accent); font-size:28px; line-height:1; }
#results .match-win-plan-dimensions { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; margin-top:11px; }
#results .match-win-plan-dimensions > div { display:grid; gap:2px; padding:8px; border:1px solid #e1e9f7; border-radius:8px; background:#fff; }
#results .match-win-plan-dimensions span { color:var(--match-muted); font-size:9px; font-weight:750; }
#results .match-win-plan-dimensions strong { font-size:12px; }
#results .match-win-plan-next { margin-top:9px; padding-top:9px; border-top:1px solid #e1e9f7; }
#results .match-win-plan-next strong { font-size:11px; }
#results .match-win-plan-next p { margin:3px 0 0; color:var(--match-muted); font-size:11px; line-height:1.4; }

.evaluator-result { margin-top:10px; padding:12px; border:1px solid #dce8ff; border-radius:12px; background:#f8fbff; }
.evaluator-head { display:flex; gap:14px; align-items:center; padding-bottom:10px; border-bottom:1px solid var(--line); }
.evaluator-score { min-width:92px; display:grid; gap:2px; }
.evaluator-score strong { color:var(--accent); font-size:25px; line-height:1; }
.evaluator-score span,.evaluator-head small { color:var(--muted); font-size:10px; }
.evaluator-head > div:last-child { display:grid; gap:3px; }
.evaluator-criteria { display:grid; margin-top:9px; }
.evaluator-criteria article { display:grid; grid-template-columns:1fr auto; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.evaluator-criteria article:first-child { border-top:0; }
.evaluator-criteria article > div { display:grid; gap:2px; }
.evaluator-criteria strong { font-size:11px; }
.evaluator-criteria small { color:var(--muted); font-size:10px; line-height:1.35; }
.evaluator-criteria article > span { color:var(--accent); font-size:10px; font-weight:800; white-space:nowrap; }
.evaluator-improvements { margin-top:9px; padding-top:9px; border-top:1px solid var(--line); }
.evaluator-improvements > strong { font-size:11px; }
.evaluator-improvements ul { margin:6px 0 0; padding-left:18px; color:var(--muted); font-size:11px; line-height:1.45; }

@media (max-width:900px) {
  .win-engine-dimensions,.guardian-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #results .match-win-plan-dimensions { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .win-engine,.submission-guardian { padding:14px; }
  .win-engine-heading,.evaluator-head { display:grid; }
  .win-engine-score { justify-items:start; }
  .win-engine-body,.win-engine-dimensions,.guardian-metrics,#results .match-win-plan-dimensions { grid-template-columns:1fr; }
}


/* v2.2.1 Matches decision panel redesign */
#results .match-review-controls {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  background: #fbfcfe;
}

#results .match-review-controls[hidden] {
  display: none;
}

#results .match-decision-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

#results .match-decision-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.015em;
}

#results .match-decision-heading p {
  margin: 5px 0 0;
  color: var(--match-muted);
  font-size: 12px;
  line-height: 1.45;
}

#results .match-quick-decisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ccd7e6;
  border-radius: 13px;
  background: #fff;
}

#results .match-quick-decision {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid #dbe3ee;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

#results .match-quick-decision:last-child {
  border-right: 0;
}

#results .match-quick-decision::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1.5px solid #aebbd0;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

#results .match-quick-decision:hover {
  background: #f8faff;
}

#results .match-quick-decision.active {
  background: #eef4ff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

#results .match-quick-decision.active::before {
  border-color: var(--accent);
  background: var(--accent);
}

#results .match-review-controls-grid {
  display: grid;
  grid-template-columns: minmax(155px, .85fr) minmax(145px, .75fr) minmax(175px, .9fr) minmax(260px, 1.55fr);
  gap: 12px;
  align-items: end;
}

#results .match-reviewed-control,
#results .match-note-control,
#results .match-priority-control,
#results .match-decision-control {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

#results .match-reviewed-control > span,
#results .match-note-control > span,
#results .match-priority-control > span,
#results .match-decision-control > span {
  color: #55627a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

#results .match-reviewed-toggle,
#results .match-note-toggle,
#results .match-priority-select,
#results .match-decision-select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  border: 1px solid #cbd6e5;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

#results .match-priority-select,
#results .match-decision-select {
  padding: 0 38px 0 13px;
}

#results .match-reviewed-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 13px;
  text-align: left;
}

#results .match-reviewed-toggle::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid #9facbf;
  border-radius: 4px;
  background: #fff;
}

#results .match-reviewed-toggle.is-reviewed {
  border-color: #b9d2ff;
  background: #f3f7ff;
  color: var(--accent);
}

#results .match-reviewed-toggle.is-reviewed::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #f3f7ff;
}

#results .match-note-toggle {
  display: block;
  padding: 0 14px;
  overflow: hidden;
  color: #7a879c;
  font-weight: 650;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#results .match-note-toggle:hover,
#results .match-note-toggle[aria-expanded="true"] {
  border-color: #9fc0fb;
  background: #f8fbff;
  color: var(--accent);
}

#results .match-note-toggle.has-note {
  color: var(--ink);
}

#results .match-decision-note {
  margin: -2px 0 0;
  padding: 14px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #fff;
}

#results .match-decision-note label {
  display: grid;
  gap: 7px;
}

#results .match-decision-note label > span {
  color: #55627a;
  font-size: 11px;
  font-weight: 800;
}

#results .match-decision-note textarea {
  min-height: 84px;
  margin: 0;
  padding: 12px 13px;
  border-radius: 10px;
}

#results .match-decision-note-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

#results .match-decision-note-save {
  min-height: 38px;
  margin: 0;
  padding: 8px 13px;
}

#results .match-decision-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #e1e7f0;
}

#results .match-history-toggle {
  min-height: 42px;
  margin: 0;
  padding: 9px 13px;
}

#results .match-history-toggle::before {
  content: "↶";
  margin-right: 7px;
  font-size: 15px;
  font-weight: 700;
}

#results .match-visibility-toggle {
  min-height: auto;
  margin: 0;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: #6f7b91;
  font-size: 11px;
  font-weight: 800;
}

#results .match-visibility-toggle:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
}

#results .match-review-history {
  margin: -2px 0 0;
  padding: 14px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1050px) {
  #results .match-review-controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #results .match-review-controls {
    gap: 15px;
    padding: 17px;
    border-radius: 14px;
  }

  #results .match-review-controls-grid {
    grid-template-columns: 1fr;
  }

  #results .match-quick-decision {
    min-height: 48px;
    padding-inline: 9px;
    font-size: 12px;
  }

  #results .match-quick-decision::before {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }

  #results .match-decision-footer {
    align-items: stretch;
  }

  #results .match-history-toggle {
    flex: 0 1 auto;
  }
}


/* v2.3.0 USP platform */
button,
input,
select,
textarea,
a.primary,
a.secondary,
a.ghost {
  font-size: 15px !important;
}

.opportunity-compare-tray {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 30px rgba(20,33,61,.08);
}

.opportunity-compare-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.opportunity-compare-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.opportunity-compare-bar span {
  color: var(--muted);
  font-size: 12px;
}

.opportunity-compare-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.opportunity-compare-results {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.opportunity-compare-heading h3 {
  margin: 0 0 4px;
}

.opportunity-compare-heading p {
  margin: 0 0 14px;
}

.opportunity-compare-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.opportunity-compare-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.opportunity-compare-card.recommended {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.opportunity-compare-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.opportunity-compare-card h4 {
  margin: 3px 0;
  font-size: 14px;
}

.opportunity-compare-card p {
  margin: 0;
}

.opportunity-compare-score {
  color: var(--accent);
  font-size: 22px;
  white-space: nowrap;
}

.opportunity-compare-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
  margin: 12px 0;
}

.opportunity-compare-metrics > div {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft, #f6f8fb);
}

.opportunity-compare-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.opportunity-compare-metrics strong {
  font-size: 12px;
}

.match-compare-toggle.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft, #eef5ff);
}

.match-market-context {
  padding: 15px 17px;
  border-top: 1px solid var(--line);
}

.match-market-context-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.match-market-context-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.match-market-context-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-market-context-card-top > span {
  color: var(--match-muted, var(--muted));
  font-size: 10px;
  font-weight: 800;
}

.match-market-context-card-top > small {
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.match-market-context-card-top > small[data-confidence="high"] {
  background: #e9f8ef;
  color: #176b3a;
}

.match-market-context-card-top > small[data-confidence="medium"] {
  background: #fff6dc;
  color: #775b08;
}

.match-market-context-card-top > small[data-confidence="low"] {
  background: #fff0e8;
  color: #93400d;
}

.match-market-context-card > strong {
  font-size: 11px;
  line-height: 1.45;
}

.match-market-context-basis,
.match-market-context-note {
  color: var(--match-muted, var(--muted));
  font-size: 10px;
  line-height: 1.45;
}

.match-market-context-sources{
  display:grid;
  gap:4px;
  padding-top:3px;
}

.match-market-context-sources>small{
  color:var(--match-muted,var(--muted));
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.match-market-context-source{
  width:max-content;
  max-width:100%;
  font-size:10px;
  line-height:1.35;
}

.match-market-context-note {
  margin: 10px 0 0;
}

.usp-feature-section {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.usp-feature-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.usp-feature-heading h3 {
  margin: 3px 0 4px;
  font-size: 19px;
}

.usp-feature-heading p {
  margin: 0;
  line-height: 1.45;
}

.usp-coach {
  border-color: #dce8ff;
  background: linear-gradient(180deg,#fbfdff,#f7faff);
}

.usp-coach-actions {
  display: grid;
  gap: 8px;
}

.usp-coach-action {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.usp-coach-action > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.usp-coach-action > div {
  display: grid;
  gap: 3px;
}

.usp-coach-action > div > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.usp-coach-action small,
.usp-feature-card small,
.usp-answer-list span,
.usp-social-recommendations small,
.usp-social-commitments small,
.usp-shredder-documents small,
.usp-red-team-score span,
.usp-red-team-heatmap small {
  color: var(--muted);
  font-size: 11px;
}

.usp-coach-action p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.usp-feature-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft, #f8fafc);
}

.usp-feature-card h4 {
  margin: 3px 0 10px;
  font-size: 14px;
}

.usp-mini-metrics,
.usp-shredder-metrics,
.usp-compliance-summary,
.usp-learning-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 8px;
}

.usp-metric {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.usp-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.usp-metric strong {
  font-size: 13px;
  line-height: 1.35;
}

.usp-metric small {
  color: var(--muted);
  font-size: 10px;
}

.usp-compact-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.usp-empty {
  margin: 0;
  font-size: 12px;
}

.usp-shredder-upload {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  background: var(--soft, #f8fafc);
}

.usp-shredder-upload small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.usp-shredder-documents {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.usp-shredder-documents > div,
.usp-social-commitments > article,
.usp-social-recommendations > article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.usp-shredder-documents > div > div,
.usp-social-commitments > article > div,
.usp-social-recommendations > article > div {
  display: grid;
  gap: 2px;
}

.usp-shredder-findings {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin-top: 12px;
}

.usp-shredder-findings article {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.usp-shredder-findings h4 {
  margin: 0 0 7px;
  font-size: 12px;
}

.usp-shredder-findings p {
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.4;
}

.usp-shredder-findings p:first-of-type {
  border-top: 0;
}

.usp-compliance-summary {
  margin-bottom: 10px;
}

.usp-compliance-table {
  display: grid;
  gap: 5px;
}

.usp-compliance-row {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.usp-compliance-row > div {
  display: grid;
  gap: 2px;
}

.usp-compliance-row > a {
  font-size: 12px;
}

.usp-status {
  display: inline-flex;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.usp-status-satisfied {
  background: #eef9f2;
  color: #167249;
}

.usp-status-not-met {
  background: #fff0f0;
  color: var(--bad);
}

.usp-status-needs-evidence {
  background: #fff8e8;
  color: #8a5d00;
}

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

.usp-answer-list article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft, #f8fafc);
}

.usp-answer-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.usp-answer-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.usp-red-team-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.usp-red-team-score {
  display: grid;
  gap: 2px;
}

.usp-red-team-score strong {
  font-size: 25px;
  color: var(--accent);
}

.usp-red-team-heatmap {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.usp-red-team-heatmap article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #c7ced8;
  border-radius: 9px;
}

.usp-red-team-heatmap article > div {
  display: grid;
  gap: 2px;
}

.usp-red-team-heatmap .usp-heat-green {
  border-left-color: #198754;
}
.usp-red-team-heatmap .usp-heat-amber {
  border-left-color: #b57a00;
}
.usp-red-team-heatmap .usp-heat-red {
  border-left-color: var(--bad);
}

.usp-social-recommendations,
.usp-social-commitments {
  display: grid;
  gap: 0;
}

.usp-social-value > h4 {
  margin: 16px 0 3px;
}

.usp-outcome-form {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.usp-outcome-form .workspace-field-wide {
  grid-column: span 2;
}

.usp-outcome-form > button {
  align-self: end;
}

@media (max-width: 1100px) {
  .match-market-context-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .usp-market-grid {
    grid-template-columns: 1fr;
  }
  .usp-outcome-form {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 700px) {
  .opportunity-compare-bar,
  .usp-red-team-controls {
    display: grid;
  }
  .opportunity-compare-actions {
    width: 100%;
  }
  .opportunity-compare-actions button {
    flex: 1;
  }
  .opportunity-compare-metrics,
  .match-market-context-grid,
  .usp-shredder-findings,
  .usp-outcome-form {
    grid-template-columns: 1fr;
  }
  .usp-outcome-form .workspace-field-wide {
    grid-column: auto;
  }
  .usp-shredder-upload {
    grid-template-columns: 1fr;
  }
  .usp-shredder-upload small {
    grid-column: auto;
  }
  .usp-compliance-row {
    grid-template-columns: 1fr;
  }
}


/* v2.4.0 tender intelligence priority */
.usp-market-intelligence{
  border-color:color-mix(in srgb,var(--brand-accent,#1f6feb) 35%,var(--border,#d9e2ec));
  background:linear-gradient(180deg,color-mix(in srgb,var(--brand-accent,#1f6feb) 5%,#fff),#fff 34%);
}
.usp-market-intelligence>.usp-feature-heading .kicker,
.usp-market-intelligence .usp-feature-card>.kicker{color:var(--brand-accent-text,var(--brand-accent,#1f6feb))}
.usp-market-intelligence .usp-feature-card{box-shadow:0 8px 24px rgba(20,33,61,.055)}
.usp-coach{background:color-mix(in srgb,var(--brand-primary,#14213d) 3%,#fff)}
.usp-coach-action{min-height:64px}
.usp-coach-action>span{font-variant-numeric:tabular-nums}
.bidpack-next-actions{border-left:4px solid var(--brand-accent,#1f6feb)}
.bidpack-joy-nav button:first-child,
.bidpack-joy-nav button:nth-child(2){font-weight:750}
@media(max-width:760px){
  .usp-market-intelligence .usp-market-grid{grid-template-columns:1fr}
}


/* Unreleased tender intelligence hardening */
.usp-intelligence-confidence{display:grid;gap:5px;margin:12px 0 16px;padding:10px 12px;border:1px solid var(--border,#d9e2ec);border-radius:10px;background:#f8fafc}
.usp-intelligence-confidence strong{width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#334155;font-size:12px;line-height:1.2}
.usp-intelligence-confidence strong[data-confidence="high"]{background:#e9f8ef;color:#176b3a}
.usp-intelligence-confidence strong[data-confidence="medium"]{background:#fff6dc;color:#775b08}
.usp-intelligence-confidence strong[data-confidence="low"]{background:#fff0e8;color:#93400d}
.usp-intelligence-confidence small{color:var(--muted,#64748b);line-height:1.45}

.opportunity-compare-intelligence{display:grid;gap:6px;margin-top:12px;padding:11px 12px;border:1px solid var(--border,#d9e2ec);border-radius:10px;background:#f8fafc}
.opportunity-compare-intelligence strong{width:max-content;max-width:100%;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#334155;font-size:12px}
.opportunity-compare-intelligence strong[data-confidence="high"]{background:#e9f8ef;color:#176b3a}
.opportunity-compare-intelligence strong[data-confidence="medium"]{background:#fff6dc;color:#775b08}
.opportunity-compare-intelligence strong[data-confidence="low"]{background:#fff0e8;color:#93400d}
.opportunity-compare-intelligence span{color:var(--muted,#64748b);font-size:13px;line-height:1.45}


/* Unreleased tender intelligence source traceability */
.intel-source-link,
.match-market-context-source {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.intel-source-link:hover,
.match-market-context-source:hover {
  text-decoration: underline;
}

.usp-source-heading {
  display: block;
  margin-top: 12px;
  font-size: 11px;
}

.usp-source-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.match-market-context-source {
  margin-top: 2px;
}


/* Unreleased intelligence evidence freshness */
.usp-intelligence-freshness,
.match-market-context-freshness {
  color: var(--muted,#64748b);
  font-size: 10px;
  line-height: 1.4;
}
.match-market-context-freshness {
  padding-top: 2px;
  border-top: 1px solid var(--line,#e2e8f0);
}


/* Unreleased beta funnel */
.analytics-subheading {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line,#e2e8f0);
}
.intelligence-funnel-row strong {
  color: var(--brand-primary,#14213d);
}


/* v2.4.1 actionable bid learning and quality tools */
.usp-answer-summary {
  margin-bottom: 10px;
}

.usp-answer-relevance {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent) !important;
  font-weight: 800;
  white-space: nowrap;
}

.usp-answer-meta {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 5px !important;
  margin-top: 8px;
}

.usp-answer-meta small,
.usp-social-signals span,
.usp-social-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.usp-answer-evidence,
.usp-social-evidence {
  margin-top: 7px !important;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--ink) !important;
}

.usp-red-team-heading {
  margin: 16px 0 7px;
  font-size: 13px;
}

.usp-red-team-challenges {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.usp-red-team-challenges > h4 {
  margin: 0 0 2px;
  font-size: 13px;
}

.usp-red-team-challenges > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.usp-red-team-challenges > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.usp-red-team-challenges p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.usp-social-recommendations {
  gap: 9px;
}

.usp-social-recommendations > .usp-social-recommendation {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft, #f8fafc);
}

.usp-social-recommendation > div:first-child {
  display: grid;
  gap: 3px;
}

.usp-social-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.usp-social-signals span {
  background: #eef9f2;
  color: #167249;
}

.usp-social-signals span[data-state="gap"] {
  background: #fff8e8;
  color: #8a5d00;
}

.usp-social-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.usp-social-editor[hidden] {
  display: none;
}

.usp-social-editor .workspace-field-wide {
  grid-column: span 3;
}

.usp-social-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.usp-social-title-line {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 7px !important;
}

.usp-social-status {
  background: #eef4ff;
  color: var(--accent);
}

.usp-outcome-history {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.usp-outcome-history > h4 {
  margin: 0 0 2px;
  font-size: 13px;
}

.usp-outcome-history article {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft, #f8fafc);
}

.usp-outcome-history article > div {
  display: grid;
  gap: 3px;
}

.usp-outcome-history small {
  color: var(--muted);
  font-size: 11px;
}

.usp-outcome-history p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .usp-social-editor {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .usp-social-editor .workspace-field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .usp-answer-list article > div:first-child,
  .usp-social-recommendations > .usp-social-recommendation {
    grid-template-columns: 1fr;
  }

  .usp-answer-list article > div:first-child {
    display: grid;
  }

  .usp-answer-relevance {
    justify-self: start;
  }

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

  .usp-social-editor .workspace-field-wide,
  .usp-social-editor-actions {
    grid-column: auto;
  }
}


/* v2.4.1 tender extraction traceability */
.usp-shredder-warning {
  color: #8a5d00 !important;
  font-weight: 700;
}

.usp-shredder-finding {
  display: grid;
  gap: 2px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.usp-shredder-finding:first-of-type {
  border-top: 0;
}

.usp-shredder-findings .usp-shredder-finding p {
  padding: 0;
  border-top: 0;
}

.usp-shredder-finding small,
.usp-shredder-more {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.usp-shredder-more {
  display: block;
  margin-top: 7px;
  font-weight: 700;
}

.usp-compliance-evidence {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.usp-compliance-evidence[data-state="ready"] {
  background: #eef9f2;
  color: #167249;
}

.usp-compliance-evidence[data-state="needed"] {
  background: #fff8e8;
  color: #8a5d00;
}

.usp-compliance-source-label {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}


/* v2.4.1 portal ready submission pack */
.usp-submission-metrics {
  margin-bottom: 12px;
}

.usp-submission-status {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #b57a00;
  border-radius: 10px;
  background: #fff;
}

.usp-submission-status[data-state="ready"] {
  border-left-color: #198754;
  background: #f7fcf9;
}

.usp-submission-status > div {
  display: grid;
  gap: 3px;
}

.usp-submission-status p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.usp-submission-contents,
.usp-submission-open-checks {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.usp-submission-contents > h4,
.usp-submission-open-checks > h4 {
  margin: 0 0 2px;
  font-size: 13px;
}

.usp-submission-contents > div,
.usp-submission-open-checks > div {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft, #f8fafc);
}

.usp-submission-contents > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef9f2;
  color: #167249;
  font-size: 11px;
  font-weight: 800;
}

.usp-submission-contents > div > div,
.usp-submission-open-checks > div > div {
  display: grid;
  gap: 2px;
}

.usp-submission-contents small,
.usp-submission-open-checks small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.usp-submission-open-checks > div > span {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5d00;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .usp-submission-status {
    grid-template-columns: 1fr;
  }

  .usp-submission-status > a {
    justify-self: start;
  }
}


/* Plan entitlement preview */

.checkout-plan-features {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft, #f6f8fb);
}

.checkout-plan-features > strong {
  font-size: 12px;
}

.checkout-plan-features ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-plan-features li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}

.checkout-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}


/* v2.4.1 application usability audit */

#appView :is(
  button,
  .primary,
  .secondary,
  .ghost,
  .text-button,
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea
) {
  font-size: 13px;
}

#appView .actionable-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

#appView .actionable-empty > .primary,
#appView .actionable-empty > .secondary {
  margin-top: 4px;
}

#appView .pipeline-empty.actionable-empty {
  min-height: 220px;
  align-content: center;
  padding: 30px;
  border: 1px dashed var(--app-border-strong);
  border-radius: var(--app-radius);
  background: var(--app-surface-subtle);
  color: var(--app-text-soft);
}

#appView .pipeline-empty.actionable-empty strong {
  color: var(--app-text);
  font-size: 15px;
}

#appView .bidpack-list-empty.actionable-empty {
  justify-items: stretch;
  text-align: left;
}

#appView .bidpack-list-empty.actionable-empty > .primary {
  justify-self: start;
}

#appView .plan-access-copy {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-subtle);
}

#appView .plan-locked-form .workspace-branding-card {
  position: relative;
}

#appView .plan-locked-form :is(input, button):disabled {
  cursor: not-allowed;
}

#appView .plan-locked-form .branding-live-preview {
  opacity: .72;
}

#appView #brandingUpgradeButton {
  min-width: 110px;
}

@media (max-width: 900px) {
  #appView :is(
    button,
    .primary,
    .secondary,
    .ghost,
    .text-button,
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea
  ) {
    font-size: 16px !important;
  }

  #appView .actionable-empty > .primary,
  #appView .actionable-empty > .secondary {
    width: 100%;
  }
}


/* Revenue Twin Phase 1 */
.revenue-twin-card{
  margin-bottom:14px;
  display:grid;
  gap:16px;
}
.revenue-twin-card .panel-heading{ margin-bottom:0; }
.revenue-twin-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.revenue-twin-grid > div{
  min-width:0;
  padding:14px;
  border:1px solid var(--app-border,var(--line));
  border-radius:11px;
  background:var(--app-surface-subtle,#fbfcfe);
  display:grid;
  gap:4px;
}
.revenue-twin-grid span{
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.revenue-twin-grid strong{
  font-size:20px;
  line-height:1.15;
}
.revenue-twin-progress{
  display:grid;
  gap:6px;
}
.revenue-twin-progress-track{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:var(--line);
}
.revenue-twin-progress-track > span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .2s ease;
}
.revenue-twin-progress small{
  color:var(--muted);
  font-size:11px;
}
.revenue-twin-detail{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.85fr);
  gap:14px;
  align-items:start;
}
.revenue-twin-detail h4{
  margin:0 0 4px;
}
.revenue-twin-section-heading p{
  margin:0 0 9px;
}
.revenue-twin-stages{
  border-top:1px solid var(--line);
}
.revenue-twin-stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 64px 110px;
  gap:10px;
  align-items:center;
  padding:9px 0;
  border-bottom:1px solid var(--line);
}
.revenue-twin-stage > div{
  min-width:0;
  display:grid;
  gap:2px;
}
.revenue-twin-stage > div strong,
.revenue-twin-stage > div small{
  overflow:hidden;
  text-overflow:ellipsis;
}
.revenue-twin-stage > div small{
  color:var(--muted);
  font-size:11px;
}
.revenue-twin-probability{
  justify-self:end;
  padding:4px 7px;
  border-radius:999px;
  background:var(--app-surface-subtle,#f5f7fa);
  border:1px solid var(--line);
  font-size:11px;
  font-weight:800;
}
.revenue-twin-weighted{
  justify-self:end;
  font-size:12px;
}
.revenue-twin-action{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:var(--app-surface-subtle,#fbfcfe);
  display:grid;
  gap:9px;
}
.revenue-twin-action > strong{
  font-size:14px;
  line-height:1.4;
}
.revenue-twin-context{
  display:grid;
}
.revenue-twin-context > div{
  display:grid;
  gap:2px;
  padding:8px 0;
  border-top:1px solid var(--line);
}
.revenue-twin-context span{
  color:var(--muted);
  font-size:11px;
}
.revenue-twin-context strong{
  font-size:11px;
  line-height:1.4;
}
@media (max-width:900px){
  .revenue-twin-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .revenue-twin-detail{ grid-template-columns:1fr; }
}
@media (max-width:620px){
  .revenue-twin-grid{ grid-template-columns:1fr; }
  .revenue-twin-stage{ grid-template-columns:minmax(0,1fr) auto; }
  .revenue-twin-weighted{ grid-column:1 / -1; justify-self:start; }
}


/* Procurement Access Passport Phase 1 */
.access-passport-card{
  margin-bottom:14px;
  display:grid;
  gap:16px;
}
.access-passport-card .panel-heading{ margin-bottom:0; }
.access-passport-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.access-passport-grid > div{
  min-width:0;
  padding:14px;
  border:1px solid var(--app-border,var(--line));
  border-radius:11px;
  background:var(--app-surface-subtle,#fbfcfe);
  display:grid;
  gap:4px;
}
.access-passport-grid span{
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.access-passport-grid strong{
  font-size:20px;
  line-height:1.15;
}
.access-passport-progress{
  display:grid;
  gap:6px;
}
.access-passport-progress-track{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:var(--line);
}
.access-passport-progress-track > span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .2s ease;
}
.access-passport-progress small{
  color:var(--muted);
  font-size:11px;
}
.access-passport-layout{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);
  gap:14px;
  align-items:start;
}
.access-passport-section-heading h4{
  margin:0 0 4px;
}
.access-passport-section-heading p{
  margin:0 0 9px;
}
.access-passport-routes{
  display:grid;
  gap:9px;
}
.access-route-card{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fff;
  display:grid;
  gap:9px;
}
.access-route-access-not-recorded{
  border-left:4px solid #d89b3c;
}
.access-route-review-access{
  border-left:4px solid #7b8fa8;
}
.access-route-access-recorded{
  border-left:4px solid #42a47c;
}
.access-route-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.access-route-head > div{
  min-width:0;
  display:grid;
  gap:2px;
}
.access-route-head strong{
  font-size:13px;
  line-height:1.35;
}
.access-route-head small{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.access-route-status{
  flex:0 0 auto;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--app-surface-subtle,#f7f9fb);
  font-size:11px;
  font-weight:800;
}
.access-route-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.access-route-metrics span,
.access-route-blockers small{
  padding:4px 7px;
  border-radius:999px;
  background:var(--app-surface-subtle,#f5f7fa);
  border:1px solid var(--line);
  font-size:11px;
}
.access-route-blockers{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.access-route-blockers > span{
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.access-route-card p{
  margin:0;
}
.access-passport-action{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:var(--app-surface-subtle,#fbfcfe);
  display:grid;
  gap:9px;
}
.access-passport-action > strong{
  font-size:14px;
  line-height:1.4;
}
.access-passport-empty{
  border:1px dashed var(--line);
  border-radius:12px;
  padding:14px;
}
.access-passport-empty p{
  margin:5px 0 0;
}
@media (max-width:900px){
  .access-passport-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .access-passport-layout{ grid-template-columns:1fr; }
}
@media (max-width:620px){
  .access-passport-grid{ grid-template-columns:1fr; }
  .access-route-head{ display:grid; }
  .access-route-status{ justify-self:start; }
}


/* Supplier Passport and Compliance Autopilot */
.supplier-passport-card{
  margin-bottom:14px;
  display:grid;
  gap:16px;
}
.supplier-passport-card .panel-heading{ margin-bottom:0; }
.supplier-passport-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.supplier-passport-grid > div{
  min-width:0;
  padding:14px;
  border:1px solid var(--app-border,var(--line));
  border-radius:11px;
  background:var(--app-surface-subtle,#fbfcfe);
  display:grid;
  gap:4px;
}
.supplier-passport-grid span{
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.supplier-passport-grid strong{
  font-size:20px;
  line-height:1.15;
}
.supplier-passport-progress{
  display:grid;
  gap:6px;
}
.supplier-passport-progress-track{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:var(--line);
}
.supplier-passport-progress-track > span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .2s ease;
}
.supplier-passport-progress small{
  color:var(--muted);
  font-size:11px;
}
.supplier-passport-layout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(270px,.75fr);
  gap:14px;
  align-items:start;
}
.supplier-passport-section-heading h4{
  margin:0 0 4px;
}
.supplier-passport-section-heading p{
  margin:0 0 9px;
}
.supplier-passport-categories{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.supplier-passport-category{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fff;
  display:grid;
  gap:6px;
}
.supplier-passport-category > div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.supplier-passport-category > div strong{
  font-size:12px;
}
.supplier-passport-category > div span{
  flex:0 0 auto;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:10px;
  font-weight:800;
}
.supplier-passport-category small{
  font-size:11px;
  line-height:1.4;
}
.supplier-status-expired{border-left:4px solid #c84a4a}
.supplier-status-gap{border-left:4px solid #d89b3c}
.supplier-status-attention{border-left:4px solid #d89b3c}
.supplier-status-not-recorded{border-left:4px solid #7b8fa8}
.supplier-status-ready{border-left:4px solid #42a47c}
.compliance-autopilot{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:var(--app-surface-subtle,#fbfcfe);
  display:grid;
  gap:9px;
}
.compliance-autopilot > strong{
  font-size:14px;
  line-height:1.4;
}
.compliance-autopilot-actions{
  display:grid;
  gap:7px;
}
.compliance-autopilot-action{
  width:100%;
  text-align:left;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  padding:9px 10px;
  display:grid;
  gap:3px;
}
.compliance-autopilot-action span{
  font-size:11px;
  font-weight:850;
}
.compliance-autopilot-action small{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
@media (max-width:900px){
  .supplier-passport-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .supplier-passport-layout{grid-template-columns:1fr}
}
@media (max-width:620px){
  .supplier-passport-grid,.supplier-passport-categories{grid-template-columns:1fr}
  .supplier-passport-category > div{display:grid}
  .supplier-passport-category > div span{justify-self:start}
}


/* v2.5.0 Bid Investment Governor */
#results .bid-investment-governor {
  padding: 16px 17px;
  border-top: 1px solid #dce8ff;
  background: #fbfcfe;
}

#results .bid-investment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#results .bid-investment-heading h5 {
  margin: 2px 0 3px;
  font-size: 14px;
}

#results .bid-investment-heading p {
  margin: 0;
  color: var(--match-muted);
  font-size: 11px;
  line-height: 1.4;
}

#results .bid-investment-score {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

#results .bid-investment-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

#results .bid-investment-metrics > div {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

#results .bid-investment-metrics span {
  color: var(--match-muted);
  font-size: 9px;
  font-weight: 750;
}

#results .bid-investment-metrics strong {
  font-size: 12px;
  line-height: 1.35;
}

#results .bid-investment-recommendation,
#results .bid-investment-guardrails {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

#results .bid-investment-recommendation > strong,
#results .bid-investment-guardrails > strong {
  font-size: 11px;
}

#results .bid-investment-recommendation p,
#results .bid-investment-note {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

#results .bid-investment-guardrails ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--match-muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  #results .bid-investment-metrics {
    grid-template-columns: 1fr;
  }

  #results .bid-investment-heading {
    display: grid;
  }
}

.contract-performance-shield{margin:0 0 16px;padding:16px;border:1px solid #dce8ff;border-radius:14px;background:#f8fbff}
.contract-performance-shield-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.contract-performance-shield-head h3{margin:2px 0 4px;font-size:18px}
.contract-performance-shield-head p{margin:0}
.contract-performance-shield-score{color:var(--accent);font-size:30px;line-height:1}
.contract-performance-shield-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.contract-performance-shield-dimension{display:grid;gap:5px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.contract-performance-shield-dimension>div:first-child{display:flex;justify-content:space-between;gap:8px}
.contract-performance-shield-dimension small{color:var(--muted);font-size:10px;line-height:1.4}
.contract-performance-shield-meter{height:6px;overflow:hidden;border-radius:999px;background:#eef1f5}
.contract-performance-shield-meter>span{display:block;height:100%;border-radius:inherit;background:var(--accent)}
.contract-performance-shield-next,.contract-performance-shield-risks{margin-top:12px;padding-top:11px;border-top:1px solid var(--line)}
.contract-performance-shield-next p{margin:3px 0 0;font-size:11px;line-height:1.45}
.contract-performance-shield-risks{display:grid;gap:7px}
.contract-performance-shield-risks>article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start}
.contract-performance-shield-risks>article>span{min-width:54px;padding:3px 6px;border-radius:999px;background:#eef1f5;color:var(--muted);font-size:9px;font-weight:850;text-align:center}
.contract-performance-shield-risks>article>div{display:grid;gap:2px}
.contract-performance-shield-risks>article small{color:var(--muted);font-size:10px;line-height:1.4}
.contract-performance-shield-proof{margin-top:12px}
@media(max-width:760px){.contract-performance-shield-grid{grid-template-columns:1fr}.contract-performance-shield-head{display:grid}}

.command-centre{margin-bottom:16px;border-color:#d8e5fb;background:#fbfdff}
.command-centre-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.command-centre-heading h3{margin:3px 0 5px;font-size:21px}
.command-centre-heading p{margin:0}
.command-centre-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.command-centre-metric{display:grid;gap:3px;min-width:0;padding:11px;text-align:left;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.command-centre-metric:hover,.command-centre-metric:focus-visible{border-color:#b7cdee;background:#f7faff}
.command-centre-metric span,.command-centre-metric small{color:var(--muted);font-size:10px}
.command-centre-metric strong{font-size:16px;line-height:1.25}
.command-centre-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:15px}
.command-centre-layout>section,.command-centre-contracts-section{min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.command-centre-section-heading{display:grid;gap:2px;margin-bottom:8px}
.command-centre-section-heading strong{font-size:12px}
.command-centre-section-heading small{color:var(--muted);font-size:10px}
.command-centre-actions,.command-centre-investments,.command-centre-contracts{display:grid;gap:7px}
.command-centre-action{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:start;padding:9px 0;border-top:1px solid var(--line)}
.command-centre-action:first-child,.command-centre-investment:first-child,.command-centre-contract:first-child{border-top:0}
.command-centre-priority{min-width:50px;padding:3px 6px;border-radius:999px;background:#eef1f5;color:var(--muted);font-size:9px;font-weight:850;text-align:center}
.command-centre-priority[data-priority="critical"],.command-centre-priority[data-priority="high"]{background:#fff0f0;color:var(--bad)}
.command-centre-priority[data-priority="medium"]{background:#fff6dc;color:#775b08}
.command-centre-action>div,.command-centre-investment>div,.command-centre-contract>div{display:grid;gap:2px;min-width:0}
.command-centre-action small,.command-centre-investment small,.command-centre-contract small{color:var(--muted);font-size:10px;line-height:1.4}
.command-centre-action strong,.command-centre-investment strong,.command-centre-contract strong{font-size:11px}
.command-centre-action p,.command-centre-investment p,.command-centre-contract p{margin:1px 0 0;color:var(--muted);font-size:10px;line-height:1.4}
.command-centre-investment{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:start;padding:9px 0;border-top:1px solid var(--line)}
.command-centre-rank{width:23px;height:23px;display:grid;place-items:center;border-radius:999px;background:var(--accent);color:#fff;font-size:10px;font-weight:850}
.command-centre-investment-top{display:flex!important;align-items:flex-start;justify-content:space-between;gap:8px}
.command-centre-investment-top>span{color:var(--accent);font-size:11px;font-weight:850;white-space:nowrap}
.command-centre-contracts-section{margin-top:14px}
.command-centre-contract{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:start;padding:9px 0;border-top:1px solid var(--line)}
.command-centre-note{margin:12px 0 0}
@media(max-width:900px){.command-centre-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.command-centre-layout{grid-template-columns:1fr}}
@media(max-width:620px){.command-centre-heading{display:grid}.command-centre-metrics{grid-template-columns:1fr}.command-centre-action,.command-centre-investment,.command-centre-contract{grid-template-columns:1fr}.command-centre-priority,.command-centre-rank{justify-self:start}}

/* Final workflow consolidation */
.dashboard-readiness-detail{margin:0}
.bid-lifecycle{
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 0 18px;
  padding:0 2px 12px;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch
}
.bid-lifecycle-step{
  position:relative;
  scroll-snap-align:center;
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  min-height:30px;
  padding:3px 18px 3px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  white-space:nowrap
}
.bid-lifecycle-step:not(:last-child)::after{
  content:"›";
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  color:#a2adbd;
  font-size:18px;
  font-weight:700
}
.bid-lifecycle-step span{
  color:#8090a8;
  font-size:9px;
  font-weight:900;
  letter-spacing:.05em
}
.bid-lifecycle-step strong{font-size:11px}
.bid-lifecycle-step:hover,.bid-lifecycle-step:focus-visible{color:var(--ink)}
.bid-lifecycle-step.active{color:var(--accent)}
.bid-lifecycle-step.active span{color:var(--accent)}
.journey-nav-label{margin-top:8px}
.journey-nav-tab{font-weight:800}
@media(max-width:760px){
  .dashboard-summary-grid{grid-template-columns:1fr}
  .bid-lifecycle{gap:14px;margin-inline:0}
  .bid-lifecycle-step{padding-right:16px}
}

/* Final page consolidation: Bid Packs, Growth and Delivery */
.bidpack-support-heading{margin:22px 0 10px;padding-top:18px;border-top:1px solid var(--line)}
.bidpack-support-heading h3{margin:2px 0 4px;font-size:16px}
.bidpack-support-heading p{margin:0}
.delivery-primary-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
.delivery-secondary-summary{margin:0 0 14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;overflow:hidden}
.delivery-secondary-summary>summary,.delivery-contract-setup-disclosure>summary,.delivery-renewal-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;cursor:pointer;list-style:none}
.delivery-secondary-summary>summary::-webkit-details-marker,.delivery-contract-setup-disclosure>summary::-webkit-details-marker,.delivery-renewal-disclosure>summary::-webkit-details-marker{display:none}
.delivery-secondary-summary>summary span,.delivery-contract-setup-disclosure>summary span,.delivery-renewal-disclosure>summary span{display:grid;gap:2px}
.delivery-secondary-summary>summary strong,.delivery-contract-setup-disclosure>summary strong,.delivery-renewal-disclosure>summary strong{font-size:11px}
.delivery-secondary-summary>summary small,.delivery-contract-setup-disclosure>summary small,.delivery-renewal-disclosure>summary small{color:var(--muted);font-size:10px}
.delivery-secondary-summary>summary::after,.delivery-contract-setup-disclosure>summary::after,.delivery-renewal-disclosure>summary::after{content:"+";width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:#eef4ff;color:var(--accent);font-weight:900}
.delivery-secondary-summary[open]>summary::after,.delivery-contract-setup-disclosure[open]>summary::after,.delivery-renewal-disclosure[open]>summary::after{content:"–"}
.delivery-secondary-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 12px 12px}
.delivery-secondary-summary-grid>div{display:grid;gap:3px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#fff}
.delivery-secondary-summary-grid span{color:var(--muted);font-size:10px}
.delivery-secondary-summary-grid strong{font-size:14px}
.delivery-contract-setup-disclosure,.delivery-renewal-disclosure{margin:12px 0;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;overflow:hidden}
.delivery-contract-setup-disclosure .delivery-contract-form{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:#fff}
.delivery-renewal-body{padding:0 12px 12px;border-top:1px solid var(--line);background:#fff}
.delivery-renewal-body .renewal-metrics{margin-top:12px}
.delivery-renewal-body .renewal-review-panel{margin-bottom:0}
@media(max-width:900px){.delivery-primary-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.delivery-secondary-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.delivery-primary-summary,.delivery-secondary-summary-grid{grid-template-columns:1fr}}


/* Final app consistency layer */
:root{
  --app-control-font-size:13px;
  --app-control-height:44px;
}

#appMain .dashboard-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

#appMain button,
#appMain input,
#appMain select,
#appMain textarea{
  font-size:var(--app-control-font-size) !important;
}

#appMain button,
#appMain .primary,
#appMain .secondary,
#appMain .ghost,
#appMain input:not([type="checkbox"]):not([type="radio"]),
#appMain select{
  min-height:var(--app-control-height);
}

#appMain input:not([type="checkbox"]):not([type="radio"]),
#appMain select,
#appMain textarea{
  border-radius:10px;
}

#appMain .primary,
#appMain .secondary,
#appMain .ghost{
  padding:10px 14px;
  line-height:1.25;
}

#appMain .panel-heading h2,
#appMain .matches-page-header h2{
  font-size:28px;
  line-height:1.15;
}

#appMain .setting-card > h3,
#appMain .dashboard-card-heading h3,
#appMain .workspace-heading h3{
  line-height:1.25;
}

#appMain .actionable-empty,
#appMain .pipeline-empty,
#appMain .results-empty,
#appMain .attention-empty,
#appMain .dashboard-empty{
  border:1px dashed var(--line);
  border-radius:12px;
  background:#fbfcfe;
  color:var(--muted);
}

#appMain .actionable-empty,
#appMain .pipeline-empty,
#appMain .results-empty{
  padding:18px;
}

#appMain .actionable-empty strong,
#appMain .pipeline-empty strong,
#appMain .results-empty strong{
  color:var(--ink);
}

#appMain .actionable-empty{
  gap:7px;
}

#appMain .actionable-empty .primary{
  justify-self:start;
}

#appMain .tab-panel,
#appMain .setting-card,
#appMain .dashboard-card,
#appMain .bidpack-section,
#appMain .delivery-detail{
  min-width:0;
}

#appMain input,
#appMain select,
#appMain textarea,
#appMain button{
  max-width:100%;
}

@media(max-width:760px){
  #appMain .dashboard-summary-grid{
    grid-template-columns:1fr;
  }

  #appMain .panel,
  #appMain .dashboard-panel{
    padding:18px 14px;
  }

  #appMain .panel-heading,
  #appMain .matches-page-header{
    gap:12px;
  }

  #appMain .panel-heading-actions,
  #appMain .scan-controls,
  #appMain .card-actions{
    width:100%;
  }

  #appMain .panel-heading-actions > button,
  #appMain .scan-controls > button{
    flex:1 1 auto;
  }
}


/* v2.5.0 first customer onboarding audit */
#appView .onboarding-steps{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
#appView .onboarding-step{
  min-height:88px;
  align-items:flex-start;
  gap:10px;
  padding:12px;
}
#appView .onboarding-step.next{
  border-color:#a9c8f5;
  background:#f7faff;
  box-shadow:0 0 0 2px rgba(31,111,235,.06);
}
#appView .onboarding-step-status{
  margin-top:1px;
}
#appView .onboarding-step-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
#appView .onboarding-step-copy strong{
  font-size:12px;
  line-height:1.3;
}
#appView .onboarding-step-copy small{
  font-size:11px;
  line-height:1.4;
  color:var(--muted);
}
#appView .profile-first-scan-guide{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);
  gap:18px;
  align-items:center;
  margin:0 0 20px;
  padding:15px 16px;
  border:1px solid #d9e2ee;
  border-radius:14px;
  background:#f8fafc;
}
#appView .profile-first-scan-guide.ready{
  border-color:#c9e6d5;
  background:#f5fbf7;
}
#appView .profile-first-scan-guide strong{
  display:block;
  margin:3px 0 4px;
  font-size:16px;
}
#appView .profile-first-scan-checks{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
#appView .profile-first-scan-checks span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid #dfe4eb;
  border-radius:999px;
  background:#fff;
  color:#667085;
  font-size:11px;
  font-weight:750;
}
#appView .profile-first-scan-checks span::before{
  content:"○";
  font-size:13px;
}
#appView .profile-first-scan-checks span.ready{
  border-color:#c9e6d5;
  color:#23664d;
  background:#f4fbf7;
}
#appView .profile-first-scan-checks span.ready::before{
  content:"✓";
}
#appView #profileScanButton:disabled{
  cursor:not-allowed;
  opacity:.62;
}
@media(max-width:760px){
  #appView .profile-first-scan-guide{
    grid-template-columns:1fr;
  }
  #appView .profile-first-scan-checks{
    justify-content:flex-start;
  }
  #appView .onboarding-steps{
    grid-template-columns:1fr;
  }
}


/* v2.5.0 contextual customer feedback */
#appView .context-feedback-host{
  margin:14px 0 18px;
}
#appView .context-feedback{
  display:grid;
  gap:10px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfcfe;
}
#appView .context-feedback.submitted{
  background:#f7faf8;
}
#appView .context-feedback-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
#appView .context-feedback-top > strong{
  font-size:12px;
  line-height:1.4;
}
#appView .context-feedback-actions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}
#appView .context-feedback-button{
  min-height:34px !important;
  padding:6px 10px !important;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:11px !important;
  font-weight:700;
}
#appView .context-feedback-button:hover,
#appView .context-feedback-button.active{
  border-color:var(--brand-accent);
  background:var(--brand-accent-soft);
  color:var(--brand-accent-text);
}
#appView .context-feedback-editor{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:end;
}
#appView .context-feedback-editor textarea{
  min-height:64px;
  resize:vertical;
}
#appView .context-feedback-editor[hidden]{
  display:none;
}
#appView .context-feedback-status{
  min-height:16px;
  color:var(--muted);
}
#appView .admin-feedback-context{
  color:var(--muted);
  line-height:1.4;
}
#appView .admin-feedback-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid var(--line);
}
#appView .admin-feedback-status > span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2f4f7;
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
@media(max-width:760px){
  #appView .context-feedback-top{
    align-items:flex-start;
    flex-direction:column;
  }
  #appView .context-feedback-actions{
    justify-content:flex-start;
  }
  #appView .context-feedback-editor{
    grid-template-columns:1fr;
  }
}


/* Post v2.5 cross-device final review */
#appView .table-wrap{
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
#appView .customer-table{
  min-width:820px;
}
#appView .owner-growth-grid > *,
#appView .launch-grid > *,
#appView .command-centre-layout > *,
#appView .delivery-layout > *{
  min-width:0;
}
#appView .admin-growth-list article,
#appView .admin-feedback-list article{
  overflow-wrap:anywhere;
}

@media(max-width:1100px) and (min-width:901px){
  #appView #adminStats,
  #appView .compact-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #appView .owner-growth-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:900px){
  #appView .mobile-app-nav{
    top:64px;
  }
  #appView .bidpack-joy-nav{
    top:124px;
  }
  #appView .owner-growth-grid,
  #appView .launch-grid{
    grid-template-columns:1fr;
  }
  #appView .launch-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  #appMain button,
  #appMain input,
  #appMain select,
  #appMain textarea{
    font-size:16px !important;
  }
  #appView #adminStats,
  #appView .compact-stats,
  #appView .launch-summary{
    grid-template-columns:1fr;
  }
  #appView .admin-growth-list article{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
  }
  #appView .admin-feedback-status{
    align-items:flex-start;
    flex-direction:column;
  }
  #appView .table-wrap{
    margin-inline:-4px;
    border-radius:10px;
  }
  #appView .customer-table{
    min-width:760px;
  }
  #appView .owner-controls{
    min-width:0;
  }
}

@media(max-width:430px){
  #appView .topbar{
    gap:6px;
    padding-inline:10px;
  }
  #appView .account-bar,
  #appView .account-identity{
    min-width:0;
  }
  #appView .account-bar{
    gap:4px;
  }
  #appView .account-copy strong{
    max-width:82px;
  }
  #appView .mobile-app-menu-toggle{
    width:100%;
  }
}


/* Post v2.5 flywheel proof */
#appView .validation-flywheel-proof{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:13px;
  border:1px solid var(--app-border,var(--line));
  border-radius:12px;
  background:#fbfcfe;
}
#appView .validation-flywheel-proof[hidden]{
  display:none;
}
#appView .validation-flywheel-proof-summary,
#appView .validation-flywheel-cycle-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
#appView .validation-flywheel-proof-summary>div,
#appView .validation-flywheel-cycle-head>div{
  min-width:0;
  display:grid;
  gap:3px;
}
#appView .validation-flywheel-proof-summary small,
#appView .validation-flywheel-cycle-head small{
  color:var(--muted);
  line-height:1.4;
}
#appView .validation-flywheel-proof-flow{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
#appView .validation-flywheel-proof-flow span{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
}
#appView .validation-flywheel-proof-flow span.observed{
  border-color:#c8e6d7;
  background:#f5fbf7;
  color:#23664d;
}
#appView .validation-flywheel-cycle-list{
  display:grid;
  gap:9px;
}
#appView .validation-flywheel-cycle{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
#appView .validation-flywheel-chain{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
}
#appView .validation-flywheel-chain>div{
  min-width:0;
  display:grid;
  gap:2px;
  padding:8px;
  border:1px solid #edf0f4;
  border-radius:8px;
  background:#fbfcfe;
}
#appView .validation-flywheel-chain span{
  color:var(--muted);
  font-size:9px;
  font-weight:750;
}
#appView .validation-flywheel-chain strong{
  overflow-wrap:anywhere;
  font-size:11px;
  line-height:1.35;
}
#appView .validation-flywheel-integrity-note{
  margin:0;
  padding-top:8px;
  border-top:1px solid var(--line);
}
@media(max-width:900px){
  #appView .validation-flywheel-chain{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:620px){
  #appView .validation-flywheel-proof-summary,
  #appView .validation-flywheel-cycle-head{
    display:grid;
  }
  #appView .validation-flywheel-chain{
    grid-template-columns:1fr;
  }
}


/* Application simplification audit, Matches */
#appMain .match-primary-actions .match-review-only-action{display:none}
#appMain .match-card.review-open .match-primary-actions .match-review-only-action{display:inline-flex}
#appMain .match-review-deeper{margin-top:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
#appMain .match-review-deeper>summary{cursor:pointer;padding:16px 18px;list-style:none}
#appMain .match-review-deeper>summary::-webkit-details-marker{display:none}
#appMain .match-review-deeper>summary span{display:grid;gap:3px}
#appMain .match-review-deeper>summary strong{font-size:14px}
#appMain .match-review-deeper>summary small{color:var(--muted);font-size:12px}
#appMain .match-review-deeper-body{display:grid;gap:14px;padding:0 14px 14px}
#appMain .match-review-controls-grid .match-decision-control{display:none}
#appMain .match-source-health[hidden]{display:none!important}


/* Application simplification audit, Pipeline and Bid Packs */
#appMain .pipeline-card-actions .pipeline-advanced-action{display:none}
#appMain .pipeline-manage-panel:not([hidden])~.pipeline-card-actions .pipeline-advanced-action{display:inline-flex}
#appMain .bidpack-support-disclosure{margin-top:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
#appMain .bidpack-support-disclosure>summary,
#appMain .bidpack-advanced-intelligence>summary{cursor:pointer;padding:16px 18px;list-style:none}
#appMain .bidpack-support-disclosure>summary::-webkit-details-marker,
#appMain .bidpack-advanced-intelligence>summary::-webkit-details-marker{display:none}
#appMain .bidpack-support-disclosure>summary span,
#appMain .bidpack-advanced-intelligence>summary span{display:grid;gap:3px}
#appMain .bidpack-support-disclosure>summary small,
#appMain .bidpack-advanced-intelligence>summary small{color:var(--muted)}
#appMain .bidpack-support-disclosure-body{padding:0 16px 16px}
#appMain .bidpack-advanced-intelligence{margin-top:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
#appMain .bidpack-advanced-intelligence-body{display:grid;gap:16px;padding:0 14px 14px}


/* Application simplification audit, Business Profile */
#appView .profile-shortcut-disclosure,
#appView .profile-optional-targeting,
#appView .profile-context{
  margin-top:14px;
  border:1px solid var(--app-border);
  border-radius:13px;
  background:var(--app-surface-subtle);
}
#appView .profile-shortcut-disclosure>summary,
#appView .profile-optional-targeting>summary,
#appView .profile-context>summary{
  min-height:56px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
}
#appView .profile-shortcut-disclosure>summary::-webkit-details-marker,
#appView .profile-optional-targeting>summary::-webkit-details-marker,
#appView .profile-context>summary::-webkit-details-marker{display:none}
#appView .profile-shortcut-disclosure>summary span,
#appView .profile-optional-targeting>summary span,
#appView .profile-context>summary span{display:grid;gap:3px}
#appView .profile-shortcut-disclosure>summary small,
#appView .profile-optional-targeting>summary small,
#appView .profile-context>summary small{
  color:var(--app-text-soft);
  font-weight:500;
}
#appView .profile-shortcut-body,
#appView .profile-optional-body{padding:0 16px 16px}
#appView .profile-context>p,
#appView .profile-context>.grid{
  margin-left:16px;
  margin-right:16px;
}
#appView .profile-context>.grid{margin-bottom:16px}
#appView .profile-ready-note{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-top:16px;
  padding:12px 14px;
  border:1px solid #c9e6d5;
  border-radius:12px;
  background:#f5fbf7;
}
#appView .profile-ready-note span{
  color:var(--app-text-soft);
  font-size:12px;
}
@media(max-width:700px){
  #appView .profile-ready-note{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
}


/* Application simplification audit, Growth */
#appView .growth-plan-disclosure,#appView .growth-access-disclosure,#appView .growth-advanced-disclosure{margin-top:14px}
#appView .growth-plan-disclosure>summary,#appView .growth-access-disclosure>summary,#appView .growth-advanced-disclosure>summary{min-height:58px;border:1px solid var(--app-border);border-radius:13px;background:var(--app-surface-subtle)}
#appView .growth-plan-disclosure[open]>summary,#appView .growth-access-disclosure[open]>summary,#appView .growth-advanced-disclosure[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
#appView .growth-plan-disclosure>.section-disclosure-body,#appView .growth-access-disclosure>.section-disclosure-body,#appView .growth-advanced-disclosure>.section-disclosure-body{border:1px solid var(--app-border);border-top:0;border-radius:0 0 13px 13px;background:var(--app-surface)}
#appView .revenue-twin-card{margin-bottom:0}
#appView .growth-plan-disclosure .growth-grid{margin-top:0}


/* Application simplification audit, Delivery */
#appView .delivery-primary-summary{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
#appView .delivery-priority-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:12px 0 14px;
}
#appView .delivery-priority-summary>div{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid var(--app-border);
  border-radius:12px;
  background:var(--app-surface-subtle);
}
#appView .delivery-priority-summary span{
  color:var(--app-text-soft);
  font-size:11px;
  font-weight:700;
}
#appView .delivery-priority-summary strong{
  font-size:14px;
  line-height:1.4;
}
#appView .delivery-performance-disclosure,
#appView .delivery-contract-setup-disclosure,
#appView .delivery-promise-disclosure,
#appView .delivery-renewal-disclosure{
  margin-top:12px;
  border:1px solid var(--app-border);
  border-radius:13px;
  background:var(--app-surface-subtle);
}
#appView .delivery-performance-disclosure>summary,
#appView .delivery-contract-setup-disclosure>summary,
#appView .delivery-promise-disclosure>summary,
#appView .delivery-renewal-disclosure>summary{
  min-height:56px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
}
#appView .delivery-performance-disclosure>summary::-webkit-details-marker,
#appView .delivery-contract-setup-disclosure>summary::-webkit-details-marker,
#appView .delivery-promise-disclosure>summary::-webkit-details-marker,
#appView .delivery-renewal-disclosure>summary::-webkit-details-marker{display:none}
#appView .delivery-performance-disclosure>summary span,
#appView .delivery-contract-setup-disclosure>summary span,
#appView .delivery-promise-disclosure>summary span,
#appView .delivery-renewal-disclosure>summary span{display:grid;gap:3px}
#appView .delivery-performance-disclosure>summary small,
#appView .delivery-contract-setup-disclosure>summary small,
#appView .delivery-promise-disclosure>summary small,
#appView .delivery-renewal-disclosure>summary small{color:var(--app-text-soft)}
#appView .delivery-performance-disclosure>.contract-performance-shield,
#appView .delivery-contract-setup-disclosure>.delivery-contract-form,
#appView .delivery-promise-disclosure>.promise-section,
#appView .delivery-renewal-disclosure>.delivery-renewal-body{
  margin:0 14px 14px;
}
#appView .delivery-handover-card[hidden]{display:none!important}
@media(max-width:800px){
  #appView .delivery-primary-summary,
  #appView .delivery-priority-summary{grid-template-columns:1fr}
}


/* Application simplification audit, Automation and Billing */
#appView .automation-section{
  display:grid;
  gap:12px;
  margin-top:16px;
}
#appView .automation-section:first-of-type{margin-top:0}
#appView .automation-section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
#appView .automation-section-heading h3{
  margin:2px 0 4px;
  font-size:18px;
}
#appView .automation-section-heading p{margin-bottom:0}
#appView .automation-plan-section .subscription-card{
  max-width:760px;
}
#appView .automation-notification-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#appView .automation-compact-card{
  max-width:760px;
}
#appView .owner-automation-tools{
  display:grid;
  gap:12px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--app-border);
}
#appView .owner-automation-tools[hidden]{display:none!important}
#appView .owner-automation-heading{
  padding:12px 14px;
  border:1px solid #ead9b8;
  border-radius:12px;
  background:#fffaf0;
}
#appView #ownerSystemReadiness{
  margin-top:0;
}
@media(max-width:800px){
  #appView .automation-notification-grid{grid-template-columns:1fr}
}


/* Application simplification audit, Cross-device and accessibility */
#appView :is(
  button,
  .primary,
  .secondary,
  .ghost,
  .text-button,
  summary,
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select
){
  min-height:44px;
}
#appView textarea{
  min-height:88px;
}
#appView :is(button,a,summary,input,select,textarea,[role="tab"],[role="button"]):focus-visible{
  outline:3px solid var(--app-accent);
  outline-offset:3px;
  box-shadow:none;
}
#appView.branding-enabled :is(button,a,summary,input,select,textarea,[role="tab"],[role="button"]):focus-visible{
  outline-color:var(--brand-accent);
}
#appView :is(button,summary,.tab,.bid-lifecycle-step){
  touch-action:manipulation;
}
#appView :is(input[type="checkbox"],input[type="radio"]){
  min-width:20px;
  min-height:20px;
}
#appView :is(
  .panel,
  .setting-card,
  .dashboard-card,
  .result-card,
  .pipeline-card,
  .bidpack-section,
  .delivery-detail
) :is(p,strong,small,label,a){
  overflow-wrap:anywhere;
}
#appView :is(
  .card-actions,
  .panel-heading-actions,
  .bidpack-actions,
  .evidence-card-actions,
  .evidence-form-actions,
  .support-contact-links,
  .workspace-response-actions
){
  flex-wrap:wrap;
}
#appView :is(.bid-lifecycle,.bidpack-joy-nav,.table-wrap){
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
#appView .bid-lifecycle,
#appView .bidpack-joy-nav{
  scrollbar-width:thin;
}
#appView [aria-busy="true"]{
  cursor:progress;
}
#appView button:disabled,
#appView [aria-disabled="true"]{
  cursor:not-allowed;
}
#appView .toast{
  max-width:min(420px,calc(100vw - 28px));
}
@media(max-width:900px){
  #appView .mobile-app-nav{
    z-index:12;
  }
  #appView #appTabs.mobile-open{
    max-height:calc(100dvh - 132px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  #appView .bid-lifecycle{
    scroll-snap-type:x proximity;
  }
  #appView .bid-lifecycle-step{
    min-height:44px;
    scroll-snap-align:start;
  }
  #appView .bidpack-joy-nav button{
    min-height:44px;
  }
}
@media(max-width:700px){
  #appView :is(input[type="checkbox"],input[type="radio"]){
    min-width:22px;
    min-height:22px;
  }
  #appView .toast{
    left:14px;
    right:14px;
    bottom:14px;
    max-width:none;
  }
  #appView .topbar{
    overflow:hidden;
  }
  #appView .account-bar{
    flex:0 1 auto;
  }
  #appView .app-brand-link{
    flex:1 1 auto;
    overflow:hidden;
  }
  #appView .app-brand-copy{
    overflow:hidden;
  }
}
@media(max-width:430px){
  #appView #logout{
    min-width:70px;
  }
  #appView .bidpack-actions > *,
  #appView .card-actions > *,
  #appView .support-contact-links > *{
    flex:1 1 100%;
    width:100%;
  }
}


/* 2026-10-06 Today six-stage control centre */
.dashboard-journey-centre{
  margin:0 0 16px;
  padding:18px;
  border:1px solid #d8e5fb;
  border-radius:16px;
  background:#fbfdff
}
.dashboard-journey-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:13px}
.dashboard-journey-heading h3{margin:3px 0 0;font-size:19px;line-height:1.25}
.dashboard-journey-heading>small{color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}
.dashboard-journey-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.dashboard-journey-stage{
  min-width:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:9px;
  align-items:start;
  padding:12px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:var(--ink);
  text-align:left
}
.dashboard-journey-stage:hover,.dashboard-journey-stage:focus-visible{border-color:#b7cdee;background:#f7faff}
.dashboard-journey-number{padding-top:2px;color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.05em}
.dashboard-journey-copy{display:grid;gap:3px;min-width:0}
.dashboard-journey-copy strong{font-size:12px}
.dashboard-journey-copy em{font-style:normal;color:var(--accent-text);font-size:10px;font-weight:850;line-height:1.35}
.dashboard-journey-copy small{color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:1100px){.dashboard-journey-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){
  .dashboard-journey-heading{display:grid;gap:5px}
  .dashboard-journey-heading>small{white-space:normal}
  .dashboard-journey-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){.dashboard-journey-grid{grid-template-columns:1fr}}


/* 2026-10-06 journey plan access and renewal focus */
.dashboard-journey-stage{position:relative}
.dashboard-journey-stage.plan-locked-stage{padding-right:48px}
.dashboard-journey-stage.plan-locked-stage::after{
  content:attr(data-plan-label);
  position:absolute;
  right:8px;
  top:8px;
  padding:3px 5px;
  border-radius:999px;
  background:#f1f4f8;
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  letter-spacing:.03em
}
#delivery[data-journey-stage="renew"] .delivery-renewal-disclosure{
  border-color:#bfd4fb;
  background:#f8fbff
}
#delivery[data-journey-stage="renew"] .delivery-renewal-disclosure[open]>summary{
  border-bottom:1px solid #d8e5fb
}


/* 2026-10-06 customer-first six-stage usability pass */
#appMain .match-card:not(.review-open) .pipeline-track,
#appMain .match-card:not(.review-open) .bidpack{
  display:none!important;
}
#results[data-journey-stage="find"] .match-card.review-open .match-review-controls-toggle,
#results[data-journey-stage="find"] .match-card.review-open .match-compare-toggle{
  display:none!important;
}
#results[data-journey-stage="review"] .match-card.review-open .match-review-controls-toggle,
#results[data-journey-stage="review"] .match-card.review-open .match-compare-toggle{
  display:inline-flex
}
#results[data-journey-stage="review"] .match-card.review-open{
  border-color:#bfd4fb;
  background:#fbfdff
}
#appView .pipeline-card-actions .primary{
  order:-2
}
#appView .pipeline-card-actions .secondary{
  order:-1
}
#appView .pipeline-card-actions .ghost,
#appView .pipeline-card-actions .pipeline-remove-button{
  order:2
}
#appView .bidpack-actions{
  align-items:center
}
#appView .bidpack-more-actions{
  position:relative
}
#appView .bidpack-more-actions>summary{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border:1px solid var(--app-border-strong);
  border-radius:10px;
  background:#fff;
  color:var(--app-text-soft);
  cursor:pointer;
  font-size:13px;
  font-weight:750;
  list-style:none
}
#appView .bidpack-more-actions>summary::-webkit-details-marker{display:none}
#appView .bidpack-more-actions>summary::after{content:"···";margin-left:7px;letter-spacing:2px}
#appView .bidpack-more-actions-body{
  position:absolute;
  right:0;
  top:calc(100% + 7px);
  z-index:20;
  min-width:220px;
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid var(--app-border);
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 34px rgba(20,33,61,.14)
}
#appView .bidpack-more-actions:not([open]) .bidpack-more-actions-body{display:none}
#appView .bidpack-more-actions-body>*{
  width:100%;
  justify-content:flex-start;
  text-align:left
}
#delivery[data-journey-stage="renew"] .delivery-handover-card{
  display:none!important
}
#delivery[data-journey-stage="renew"] .delivery-secondary-summary{
  margin-top:4px
}
@media(max-width:700px){
  #appView .bidpack-more-actions{width:100%}
  #appView .bidpack-more-actions>summary{width:100%;justify-content:center}
  #appView .bidpack-more-actions-body{
    position:static;
    margin-top:7px;
    box-shadow:none
  }
}


/* v2.5.0 first customer readiness pass */
#appView .workspace-access{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}
#appView .workspace-access-action{
  min-height:34px;
  padding:7px 10px;
  white-space:nowrap;
}
#appView .first-customer-plan-context{
  display:grid;
  gap:5px;
  margin:0 0 14px;
  padding:14px 15px;
  border:1px solid #cfe0ff;
  border-radius:12px;
  background:#f6f9ff;
}
#appView .first-customer-plan-context[hidden]{
  display:none;
}
#appView .first-customer-plan-context > span{
  color:var(--brand-accent-text,var(--accent));
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#appView .first-customer-plan-context > strong{
  font-size:14px;
  line-height:1.35;
}
#appView .first-customer-plan-context > p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
#appView .results-empty.actionable-empty{
  min-height:190px;
  align-content:center;
}
@media(max-width:900px){
  #appView .workspace-access{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  #appView .workspace-access-action{
    width:auto;
  }
}
