
.brand-button{appearance:none;border:0;background:transparent;color:inherit;font:inherit;text-align:left;width:100%;padding:0;cursor:pointer}
.brand-button:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:8px}
:root {
  --ink: #10202f;
  --navy: #0d2235;
  --navy-2: #14344f;
  --sand: #ece5d8;
  --warm: #b89a68;
  --paper: #f7f7f4;
  --white: #ffffff;
  --muted: #6f7a84;
  --line: #dfe3e5;
  --success: #2d6d54;
  --success-bg: #e7f2eb;
  --warning: #9a6b19;
  --warning-bg: #f7edd8;
  --danger: #9c433b;
  --danger-bg: #f7e8e6;
  --shadow: 0 18px 45px rgba(14, 30, 43, 0.09);
  --shadow-sm: 0 8px 24px rgba(14, 30, 43, 0.07);
  --radius: 16px;
  --radius-sm: 11px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--navy); color: #fff;
  font-weight: 850; font-size: 18px; letter-spacing: -0.7px;
  border-radius: 7px;
}
.brand-copy strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.brand-copy span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }

.btn {
  border: 0; border-radius: 9px; min-height: 42px;
  padding: 0 16px; cursor: pointer; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(13,34,53,.17); }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-soft { background: #edf1f4; color: var(--navy); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.public-shell { min-height: 100vh; background: #fff; }
.public-topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 30px; background: #fff;
}
.public-nav { display: flex; gap: 24px; align-items: center; font-size: 13px; font-weight: 650; color: #374755; }
.public-nav .btn { margin-left: 8px; }
.hero {
  max-width: var(--max); margin: 0 auto; padding: 28px 30px 34px;
}
.hero-frame {
  min-height: 610px; border-radius: 24px; overflow: hidden; position: relative;
  background:
    linear-gradient(90deg, rgba(9,24,37,.94) 0%, rgba(9,24,37,.83) 38%, rgba(9,24,37,.18) 68%, rgba(9,24,37,.08) 100%),
    radial-gradient(circle at 72% 30%, rgba(255,255,255,.32), transparent 24%),
    linear-gradient(135deg, #233a49 0 35%, #b69c76 35% 48%, #d6c9b6 48% 56%, #5b6b6b 56% 63%, #1a2a32 63% 100%);
  box-shadow: var(--shadow);
}
.hero-frame::before {
  content: ""; position: absolute; right: 10%; bottom: 0; width: 43%; height: 72%; opacity: .92;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(6,17,24,.7) 7% 9%, transparent 9% 26%, rgba(6,17,24,.7) 26% 28%, transparent 28% 45%, rgba(6,17,24,.7) 45% 47%, transparent 47%),
    linear-gradient(0deg, #1a252a 0 8%, transparent 8% 44%, #252e31 44% 48%, transparent 48%),
    linear-gradient(135deg, transparent 0 39%, #313a3d 39% 43%, #c8b898 43% 46%, transparent 46% 100%);
  border-left: 6px solid rgba(255,255,255,.15);
}
.hero-content { position: relative; z-index: 2; padding: 92px 72px; width: min(610px, 62%); color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; opacity: .72; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(48px, 5.4vw, 82px); line-height: .97; letter-spacing: -0.04em; margin: 18px 0 24px; }
.hero p { font-size: 18px; line-height: 1.55; max-width: 570px; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.hero-actions .btn-primary { background: #fff; color: var(--navy); }
.hero-actions .btn-secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.34); }
.hero-foot { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); color: var(--ink); padding: 18px 34px; gap: 18px; }
.hero-value { display: flex; gap: 12px; align-items: center; }
.value-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--sand); display: grid; place-items: center; font-size: 16px; }
.hero-value strong { font-size: 12px; display: block; }
.hero-value span { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; }

.association-entry { min-height: 100vh; background: #f1efe9; display: grid; place-items: center; padding: 24px; }
.entry-card { width: min(1180px, 100%); background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.entry-head { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); }
.db-logo { display: flex; align-items: center; gap: 12px; }
.citymark { width: 42px; height: 42px; border-radius: 6px; background: linear-gradient(180deg,#305b7c,#0f2940); position: relative; }
.citymark::after { content:""; position:absolute; left:9px; right:9px; bottom:7px; height:22px; border-left:5px solid white; border-right:5px solid white; border-bottom:5px solid white; }
.db-logo strong { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.db-logo span { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.entry-nav { display:flex; gap:22px; font-size:12px; color:#52616c; }
.entry-hero { min-height: 590px; position: relative; padding: 72px; color:#fff; background:
 linear-gradient(90deg,rgba(11,31,46,.88),rgba(11,31,46,.62) 45%,rgba(11,31,46,.08)),
 linear-gradient(135deg,#2f596e 0 32%,#af966d 32% 39%,#d8cdbb 39% 48%,#5f7475 48% 57%,#142934 57% 100%); }
.entry-hero h1 { font-family:Georgia,serif; font-size:64px; line-height:1; font-weight:500; margin:0 0 18px; max-width:500px; }
.entry-hero p { max-width:470px; line-height:1.6; color:rgba(255,255,255,.86); }
.entry-cta { margin-top:30px; background:#e2c36c; color:#19242d; }
.entry-sub { margin-top:14px; font-size:13px; color:rgba(255,255,255,.8); }

.auth-page { min-height: 100vh; display:grid; grid-template-columns: 1.05fr .95fr; background:#fff; }
.auth-visual { padding: 54px; color:#fff; position:relative; background:
 linear-gradient(180deg,rgba(8,26,39,.15),rgba(8,26,39,.88)),
 linear-gradient(135deg,#18374a 0 35%,#a38c69 35% 42%,#d8cfc0 42% 52%,#5b6a6d 52% 60%,#142735 60%); }
.auth-visual .brand-mark { background:#fff; color:var(--navy); }
.auth-visual .brand-copy span { color:rgba(255,255,255,.66); }
.auth-quote { position:absolute; bottom:60px; left:54px; right:54px; }
.auth-quote h2 { font-family:Georgia,serif; font-size:48px; font-weight:500; margin:0 0 14px; }
.auth-quote p { max-width:520px; line-height:1.6; color:rgba(255,255,255,.78); }
.auth-panel { display:grid; place-items:center; padding:40px; }
.auth-card { width:min(440px,100%); }
.auth-card h1 { font-size:34px; letter-spacing:-.04em; margin:22px 0 10px; }
.auth-card > p { color:var(--muted); line-height:1.55; margin:0 0 28px; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:12px; font-weight:750; margin-bottom:7px; color:#41515e; }
.input, .select, .textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:12px 13px; background:#fff; outline:none; color:var(--ink); }
.input:focus, .select:focus, .textarea:focus { border-color:#9aaab5; box-shadow:0 0 0 3px rgba(13,34,53,.06); }
.auth-helper { font-size:11px; color:var(--muted); margin-top:14px; text-align:center; }
.demo-note { margin-top:20px; padding:14px; border-radius:10px; background:#f3f5f6; color:#596773; font-size:12px; line-height:1.5; }
.code-row { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; margin:22px 0; }
.code-cell { height:54px; border:1px solid var(--line); border-radius:9px; display:grid; place-items:center; font-size:22px; background:#fff; }
.member-card { border:1px solid var(--line); border-radius:14px; padding:18px; margin:20px 0; box-shadow:var(--shadow-sm); }
.member-card-top { display:flex; justify-content:space-between; gap:16px; }
.company-logo { width:48px; height:48px; border-radius:50%; background:#f1eee8; display:grid; place-items:center; font-weight:850; color:#a94737; font-size:19px; }
.badge { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:6px 9px; font-size:11px; font-weight:750; }
.badge-success { background:var(--success-bg); color:var(--success); }
.badge-warning { background:var(--warning-bg); color:var(--warning); }
.badge-soft { background:#eef1f3; color:#51616d; }

.app-shell { min-height:100vh; display:grid; grid-template-columns:240px 1fr; background:#f4f5f3; }
.sidebar { background:var(--navy); color:#fff; min-height:100vh; padding:22px 16px; position:sticky; top:0; align-self:start; height:100vh; }
.sidebar .brand-copy span { color:rgba(255,255,255,.52); }
.sidebar .brand-mark { background:#fff; color:var(--navy); }
.side-nav { margin-top:34px; display:grid; gap:6px; }
.side-link { display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:8px; color:rgba(255,255,255,.72); font-size:13px; font-weight:650; cursor:pointer; }
.side-link:hover, .side-link.active { color:#fff; background:rgba(255,255,255,.1); }
.side-icon { width:20px; text-align:center; opacity:.9; }
.sidebar-footer { position:absolute; left:16px; right:16px; bottom:18px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); font-size:11px; color:rgba(255,255,255,.52); }
.app-main { min-width:0; }
.app-topbar { height:72px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:15; }
.top-left { display:flex; align-items:center; gap:10px; }
.mobile-menu { display:none; }
.role-pill { border:1px solid var(--line); background:#fff; border-radius:999px; padding:7px 10px; font-size:11px; color:#5a6872; }
.account { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:700; }
.avatar { width:34px; height:34px; border-radius:50%; background:#c8d1d8; display:grid; place-items:center; font-size:11px; font-weight:850; }
.app-content { padding:30px; max-width:1320px; margin:0 auto; }
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; }
.page-head h1 { margin:0; font-size:30px; letter-spacing:-.04em; }
.page-head p { margin:7px 0 0; color:var(--muted); font-size:13px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
.stat { background:#fff; border:1px solid #e7e9ea; border-radius:13px; padding:18px; box-shadow:0 4px 14px rgba(15,35,51,.035); }
.stat strong { display:block; font-size:30px; letter-spacing:-.04em; }
.stat span { color:var(--muted); font-size:11px; }
.grid-2 { display:grid; grid-template-columns:1.45fr 1fr; gap:18px; }
.card { background:#fff; border:1px solid #e4e7e8; border-radius:14px; padding:20px; box-shadow:0 4px 16px rgba(14,31,44,.04); }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.card-head h3 { margin:0; font-size:15px; }
.card-head a { color:#315d7c; font-size:11px; font-weight:750; }
.activity-list { display:grid; }
.activity { display:grid; grid-template-columns:28px 1fr auto; gap:10px; padding:12px 0; align-items:center; border-bottom:1px solid #eef0f1; font-size:12px; }
.activity:last-child { border-bottom:0; }
.activity-dot { width:26px; height:26px; border-radius:50%; background:#edf1f3; display:grid; place-items:center; font-size:11px; }
.activity time { color:#909aa2; font-size:10px; }
.quick-actions { display:grid; gap:9px; }
.attention { padding:13px 0; border-bottom:1px solid #eef0f1; display:grid; grid-template-columns:5px 1fr auto; gap:10px; }
.attention:last-child { border-bottom:0; }
.attention-bar { width:5px; border-radius:4px; background:#c6a552; }
.attention strong { font-size:12px; }
.attention span { display:block; color:var(--muted); font-size:10px; margin-top:3px; }

.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin:0 0 20px; overflow:auto; }
.tab { border:0; background:none; padding:11px 14px; font-size:12px; font-weight:700; color:#73808a; cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; }
.tab.active { color:var(--navy); border-bottom-color:var(--navy); }

.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.project-card { background:#fff; border:1px solid #e2e6e7; border-radius:14px; overflow:hidden; box-shadow:0 6px 18px rgba(15,34,49,.05); }
.project-image { height:188px; position:relative; background:
 linear-gradient(180deg,rgba(13,34,53,.03),rgba(13,34,53,.42)),
 linear-gradient(135deg,#536f7a 0 35%,#d3bea0 35% 44%,#e7e0d4 44% 56%,#6b7b77 56% 64%,#243841 64% 100%); }
.project-image.alt { background:
 linear-gradient(180deg,rgba(13,34,53,.03),rgba(13,34,53,.4)),
 linear-gradient(145deg,#314959 0 34%,#aa9272 34% 42%,#d7d0c2 42% 52%,#506468 52% 61%,#1d303b 61%); }
.match { position:absolute; top:12px; left:12px; background:rgba(229,245,233,.95); color:#2e6b50; border-radius:999px; padding:7px 10px; font-size:11px; font-weight:850; }
.project-body { padding:16px; }
.project-body h3 { margin:0 0 5px; font-size:16px; }
.meta { display:flex; flex-wrap:wrap; gap:7px; margin:11px 0; }
.meta span { font-size:10px; padding:5px 7px; border-radius:6px; background:#f1f3f4; color:#5d6972; }
.project-body p { color:var(--muted); font-size:11px; line-height:1.5; margin:0 0 13px; }
.project-actions { display:flex; gap:8px; }
.project-actions .btn { flex:1; }

.table-wrap { background:#fff; border:1px solid #e2e6e7; border-radius:14px; overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th { text-align:left; font-size:10px; color:#7d8891; background:#fafbfa; padding:11px 13px; border-bottom:1px solid var(--line); text-transform:uppercase; letter-spacing:.05em; }
td { padding:13px; border-bottom:1px solid #edf0f1; font-size:12px; vertical-align:middle; }
tr:last-child td { border-bottom:0; }
.company-cell { display:flex; align-items:center; gap:9px; font-weight:700; }
.mini-logo { width:30px; height:30px; border-radius:50%; background:#eff2f3; display:grid; place-items:center; font-weight:850; font-size:10px; }

.form-layout { display:grid; grid-template-columns:210px minmax(0,760px); gap:28px; align-items:start; }
.steps { display:grid; gap:12px; position:sticky; top:105px; }
.step { display:flex; align-items:center; gap:10px; font-size:12px; color:#7b8790; }
.step-num { width:28px; height:28px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; font-size:11px; font-weight:800; background:#fff; }
.step.active { color:var(--navy); font-weight:750; }
.step.active .step-num { background:var(--navy); color:#fff; border-color:var(--navy); }
.form-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:24px; }
.form-card h2 { margin:0 0 22px; font-size:21px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.field.full { grid-column:1/-1; }
.form-actions { display:flex; justify-content:flex-end; margin-top:22px; }

.detail-hero { border-radius:16px; min-height:260px; padding:28px; color:#fff; position:relative; overflow:hidden; background:
 linear-gradient(90deg,rgba(12,32,47,.9),rgba(12,32,47,.4)),
 linear-gradient(135deg,#365361 0 34%,#b19b78 34% 42%,#ded6c7 42% 54%,#60716d 54% 63%,#1d333d 63%); }
.detail-hero h1 { font-family:Georgia,serif; font-size:38px; font-weight:500; margin:50px 0 8px; }
.detail-hero p { margin:0; color:rgba(255,255,255,.78); }
.detail-match { position:absolute; top:24px; left:24px; }
.detail-grid { display:grid; grid-template-columns:1.5fr .8fr; gap:18px; margin-top:18px; }
.kv-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; }
.kv { border:1px solid #e8eaeb; border-radius:10px; padding:12px; }
.kv label { display:block; font-size:9px; color:#8c969e; text-transform:uppercase; letter-spacing:.06em; }
.kv strong { font-size:12px; display:block; margin-top:5px; }
.match-reasons { display:grid; gap:9px; }
.reason { display:flex; gap:10px; align-items:flex-start; font-size:12px; }
.check { width:21px; height:21px; border-radius:50%; background:var(--success-bg); color:var(--success); display:grid; place-items:center; flex:0 0 auto; font-weight:900; }

.bid-layout { display:grid; grid-template-columns:1fr 320px; gap:18px; }
.bid-summary { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; }
.summary-row { display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid #edf0f1; font-size:12px; }
.summary-row:last-child { border-bottom:0; }

.team-list { display:grid; gap:10px; }
.team-row { display:grid; grid-template-columns:42px 1fr auto auto; gap:12px; align-items:center; padding:13px 0; border-bottom:1px solid #edf0f1; }
.team-row:last-child { border-bottom:0; }
.team-row strong { display:block; font-size:12px; }
.team-row span { color:var(--muted); font-size:10px; display:block; margin-top:3px; }

.sync-box { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; padding:17px; border:1px solid var(--line); border-radius:12px; background:#fbfcfb; }
.sync-status { display:flex; gap:10px; align-items:center; }
.sync-light { width:9px; height:9px; border-radius:50%; background:#4b946a; box-shadow:0 0 0 4px #e9f3ed; }
.sync-status strong { font-size:12px; }
.sync-status span { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.chart { height:180px; margin-top:12px; position:relative; border-bottom:1px solid #dfe4e6; background:linear-gradient(#eef1f2 1px, transparent 1px); background-size:100% 36px; }
.chart svg { width:100%; height:100%; }
.donut-wrap { display:flex; align-items:center; gap:22px; }
.donut { width:130px; height:130px; border-radius:50%; background:conic-gradient(#1b4b6a 0 26%, #8496a1 26% 97%, #d6c3a1 97%); position:relative; }
.donut::after { content:"1,223\A Total"; white-space:pre; position:absolute; inset:25px; background:#fff; border-radius:50%; display:grid; place-items:center; text-align:center; font-weight:800; font-size:14px; }
.legend { display:grid; gap:9px; font-size:11px; }
.legend-row { display:flex; align-items:center; gap:8px; }
.dot { width:9px; height:9px; border-radius:50%; background:#1b4b6a; }
.dot.gray { background:#8496a1; }
.dot.gold { background:#d6c3a1; }

.toast { position:fixed; right:22px; bottom:22px; z-index:50; background:var(--navy); color:#fff; border-radius:10px; padding:12px 16px; box-shadow:var(--shadow); font-size:12px; animation:fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px);} to {opacity:1; transform:none;} }

.mobile-tabs { display:none; }

@media (max-width: 980px) {
  .public-nav a:not(.btn) { display:none; }
  .hero-frame { min-height:680px; }
  .hero-content { width:100%; padding:70px 34px; }
  .hero-foot { grid-template-columns:repeat(2,1fr); }
  .entry-nav { display:none; }
  .entry-hero { padding:48px 34px; }
  .entry-hero h1 { font-size:52px; }
  .auth-page { grid-template-columns:1fr; }
  .auth-visual { display:none; }
  .app-shell { grid-template-columns:84px 1fr; }
  .sidebar { padding:18px 10px; }
  .sidebar .brand-copy, .side-link span:not(.side-icon), .sidebar-footer { display:none; }
  .sidebar .brand { justify-content:center; }
  .side-link { justify-content:center; padding:12px 8px; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .grid-2, .detail-grid, .bid-layout { grid-template-columns:1fr; }
  .form-layout { grid-template-columns:1fr; }
  .steps { position:static; grid-template-columns:repeat(4,1fr); overflow:auto; }
  .step { gap:5px; font-size:10px; }
}

@media (max-width: 640px) {
  .public-topbar { height:62px; padding:0 16px; }
  .public-topbar .brand-copy { display:none; }
  .public-nav .btn-secondary { display:none; }
  .hero { padding:10px 10px 18px; }
  .hero-frame { min-height:750px; border-radius:16px; }
  .hero-content { padding:58px 24px; }
  .hero h1 { font-size:48px; }
  .hero p { font-size:15px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-foot { grid-template-columns:1fr 1fr; padding:16px; gap:13px; }
  .hero-value span { display:none; }
  .entry-card { border-radius:16px; }
  .entry-head { padding:0 16px; }
  .entry-head .db-logo strong { font-size:15px; }
  .entry-hero { min-height:650px; padding:44px 24px; }
  .entry-hero h1 { font-size:48px; }
  .auth-panel { padding:24px; align-items:start; padding-top:70px; }
  .auth-card h1 { font-size:29px; }
  .app-shell { display:block; padding-bottom:72px; }
  .sidebar { display:none; }
  .app-topbar { height:62px; padding:0 14px; }
  .mobile-menu { display:inline-flex; width:36px; height:36px; border:1px solid var(--line); border-radius:8px; align-items:center; justify-content:center; background:#fff; }
  .role-pill { display:none; }
  .account span { display:none; }
  .app-content { padding:18px 14px; }
  .page-head { align-items:center; }
  .page-head h1 { font-size:25px; }
  .page-head p { font-size:11px; }
  .page-head .btn { min-height:36px; padding:0 11px; font-size:11px; }
  .stat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .stat { padding:14px; }
  .stat strong { font-size:24px; }
  .grid-2 { gap:12px; }
  .card { padding:15px; }
  .project-grid { grid-template-columns:1fr; }
  .project-image { height:168px; }
  .form-grid, .kv-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .form-card { padding:17px; }
  .steps { grid-template-columns:repeat(4, minmax(100px,1fr)); }
  .detail-hero { min-height:230px; padding:20px; }
  .detail-hero h1 { font-size:32px; margin-top:58px; }
  .team-row { grid-template-columns:36px 1fr auto; }
  .team-row .btn { display:none; }
  .donut-wrap { align-items:flex-start; }
  .mobile-tabs { display:grid; grid-template-columns:repeat(5,1fr); position:fixed; bottom:0; left:0; right:0; z-index:30; background:#fff; border-top:1px solid var(--line); padding:7px 4px calc(7px + env(safe-area-inset-bottom)); }
  .mobile-tab { display:grid; place-items:center; gap:3px; font-size:9px; color:#7d8992; background:none; border:0; padding:4px 1px; }
  .mobile-tab.active { color:var(--navy); font-weight:750; }
  .mobile-tab b { font-size:16px; font-weight:500; }
}
.bidroom-lead{color:var(--muted);line-height:1.7;max-width:760px}.step-dot,.status-dot{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eef1f2;color:var(--navy);font-size:11px;flex:0 0 auto}.status-dot{width:9px;height:9px;background:#b9c2c7}.summary-row>div{display:grid;gap:3px}.summary-row small{color:var(--muted);font-weight:400}.card-head p,.form-help{margin:4px 0 0;color:var(--muted);font-size:12px}.document-list,.message-list{display:grid;gap:10px}.document-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px}.doc-icon{width:36px;height:36px;border-radius:8px;background:#eef1f2;display:grid;place-items:center;font-weight:800}.doc-main{display:grid;gap:3px}.doc-main span,.document-row time,.message-meta time{font-size:11px;color:var(--muted)}.message-row{border:1px solid var(--line);border-radius:10px;padding:14px}.message-row.answer{border-left:4px solid #617b68}.message-row.addendum{border-left:4px solid #b18a47}.message-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.message-meta time{margin-left:auto}.message-row p{margin:10px 0 0;line-height:1.6}.loading-row,.empty-state{padding:24px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:10px}
@media(max-width:700px){.document-row{grid-template-columns:36px minmax(0,1fr) auto}.document-row time{display:none}.bidroom-tabs{overflow:auto}.message-meta time{width:100%;margin-left:0}}
.notification-bell{position:relative;width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--navy);font-size:18px}.notification-count{position:absolute;right:-4px;top:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#a94737;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:9px;font-weight:800}.notification-count.hidden{display:none}.notification-panel{padding:0;overflow:hidden}.notification-row{width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:16px 18px;display:grid;grid-template-columns:38px minmax(0,1fr) 10px;gap:12px;text-align:left;cursor:pointer;align-items:start}.notification-row:last-child{border-bottom:0}.notification-row:hover{background:#fafbfa}.notification-row.unread{background:#f7f9fa}.notification-icon{width:36px;height:36px;border-radius:10px;background:#edf1f3;display:grid;place-items:center;color:var(--navy);font-weight:800}.notification-copy{display:grid;gap:4px}.notification-copy strong{font-size:13px}.notification-copy span{font-size:12px;color:var(--muted);line-height:1.5}.notification-copy time{font-size:10px;color:#929ca4}.notification-row i{width:7px;height:7px;border-radius:50%;background:#a94737;margin-top:6px}
.wizard-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:0 0 18px}.wizard-step{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px;display:flex;align-items:center;gap:8px;color:var(--muted);text-align:left;cursor:pointer}.wizard-step span{width:25px;height:25px;border-radius:50%;background:#eef1f2;display:grid;place-items:center;font-size:11px;font-weight:800}.wizard-step b{font-size:11px}.wizard-step.active{border-color:#9daeb8;color:var(--navy);box-shadow:0 5px 18px rgba(20,43,56,.06)}.wizard-step.active span,.wizard-step.done span{background:var(--navy);color:#fff}.wizard-card{max-width:980px;margin:0 auto}.wizard-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.wizard-title h2{margin:4px 0 5px}.wizard-title p{margin:0;color:var(--muted);font-size:13px}.save-state{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:5px 9px;border-radius:999px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice{display:flex;gap:10px;border:1px solid var(--line);border-radius:10px;padding:14px;cursor:pointer}.choice span{display:grid;gap:4px}.choice small{color:var(--muted);line-height:1.4}.package-stack{display:grid;gap:14px}.package-editor{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fbfcfc}.package-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.package-editor-head>div{display:flex;align-items:center;gap:9px}.package-number{width:26px;height:26px;border-radius:7px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.check-row{display:flex;gap:18px;flex-wrap:wrap;padding:11px 0}.check-row label{font-size:12px}.wizard-actions{justify-content:space-between;margin-top:22px}.review-project{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.review-project>div{border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:4px}.review-project label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.review-project span{font-size:11px;color:var(--muted)}.review-packages{display:grid;gap:8px}.review-package{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px}.review-package div{display:grid;gap:3px}.review-package small{color:var(--muted)}.publish-callout{display:grid;gap:5px;background:#f3f6f5;border-radius:10px;padding:15px;margin-top:18px}.publish-callout span{font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:700px){.wizard-progress{display:flex;overflow:auto}.wizard-step{min-width:116px}.choice-grid,.review-project{grid-template-columns:1fr}.wizard-title{align-items:center}.check-row{display:grid;gap:10px}.wizard-card{padding:15px}}

.feed-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}.feed-summary>div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}.feed-summary strong{font-family:Georgia,serif;font-size:26px;display:block}.feed-summary span{font-size:12px;color:var(--muted)}.feed-tabs{overflow:auto;white-space:nowrap}.opportunity-card{position:relative}.eligibility-pill{position:absolute;right:12px;bottom:12px;background:rgba(255,255,255,.94);padding:6px 9px;border-radius:999px;font-size:10px;font-weight:700;color:#245d43}.opportunity-kicker{text-transform:uppercase;letter-spacing:.08em;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:5px}.match-reasons{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:13px 0}.match-reasons strong{font-size:11px}.match-reasons>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.match-reasons span,.profile-tags span{font-size:10px;padding:5px 8px;border-radius:999px;background:var(--soft);color:var(--muted)}.company-profile-hero{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px;margin-bottom:18px}.company-monogram{width:74px;height:74px;border-radius:18px;background:#163e59;color:white;display:grid;place-items:center;font-family:Georgia,serif;font-size:25px}.company-profile-hero h2{font-family:Georgia,serif;font-size:30px;margin:3px 0 7px}.company-profile-hero p{color:var(--muted);max-width:690px}.profile-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.profile-completion{min-width:130px;text-align:right}.profile-completion strong{font-family:Georgia,serif;font-size:28px;display:block}.profile-completion span{font-size:10px;color:var(--muted)}.profile-completion>div{height:6px;background:var(--soft);border-radius:999px;margin-top:8px;overflow:hidden}.profile-completion i{display:block;height:100%;background:#1b4b6a;border-radius:999px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.capability-list>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line)}.capability-list>div:last-child{border-bottom:0}.capability-list strong{font-size:11px}.capability-list span{font-size:12px;color:var(--muted);text-align:right}.qualification-list>div{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.qualification-list>div:last-child{border:0}.qualification-list small{display:block;color:var(--muted);margin-top:3px}.qual-icon{width:24px;height:24px;border-radius:50%;background:#e9f5ee;color:#245d43;display:grid;place-items:center;font-weight:700;flex:0 0 auto}.qual-icon.muted{background:var(--soft);color:var(--muted)}.portfolio-section{margin-top:18px}.portfolio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.portfolio-placeholder,.portfolio-add{min-height:150px;border-radius:14px;padding:16px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(145deg,#d8d2c7,#a9a094);color:#fff}.portfolio-placeholder.alt{background:linear-gradient(145deg,#a9afb0,#6d777a)}.portfolio-placeholder span{font-size:10px;opacity:.85;margin-top:4px}.portfolio-add{background:var(--soft);color:var(--muted);align-items:center;justify-content:center;font-size:26px;cursor:pointer}.portfolio-add span{font-size:10px;margin-top:5px}@media(max-width:760px){.feed-summary{grid-template-columns:repeat(2,1fr)}.company-profile-hero{grid-template-columns:auto 1fr}.profile-completion{grid-column:1/-1;text-align:left}.profile-grid,.portfolio-grid{grid-template-columns:1fr}}
.company-review-head{display:flex;align-items:center;gap:16px}.company-review-head h2{margin:3px 0}.profile-logo{width:58px;height:58px;border-radius:14px;display:grid;place-items:center;background:var(--ink);color:white;font-weight:800;font-size:18px}.review-score{margin-left:auto;text-align:right}.review-score strong{display:block;font-size:28px}.review-score span,.company-cell small{display:block;color:var(--muted);font-size:11px}.qualification-strip,.comparison-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.qualification-strip>div,.comparison-summary>div{border:1px solid var(--line);border-radius:10px;padding:12px}.qualification-strip span,.comparison-summary span{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.qualification-strip strong,.comparison-summary strong{font-size:14px}.tag-row{display:flex;flex-wrap:wrap;gap:7px}.tag-row span{padding:7px 9px;border:1px solid var(--line);border-radius:999px;font-size:11px}.muted-copy{color:var(--muted);line-height:1.6}.review-section{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.review-callout{background:var(--surface-2);border-radius:10px;padding:12px;margin-top:18px}.review-callout strong,.review-callout span{display:block}.review-callout span{font-size:11px;color:var(--muted);margin-top:4px}.comparison-table{overflow-x:auto}.comparison-table table{min-width:1120px}@media(max-width:760px){.qualification-strip,.comparison-summary{grid-template-columns:repeat(2,1fr)}.company-review-head{align-items:flex-start;flex-wrap:wrap}.review-score{margin-left:0;width:100%;text-align:left}}
.demo-launch{min-height:100vh;background:#f5f6f5}.demo-launch-actions{display:flex;align-items:center;gap:10px}.demo-launch-main{max-width:1180px;margin:0 auto;padding:54px 28px 80px}.demo-launch-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:34px;align-items:center;padding:42px 0}.demo-launch-hero h1{font-family:Georgia,serif;font-size:62px;line-height:.98;font-weight:500;margin:12px 0 20px;color:var(--navy)}.demo-launch-hero p{font-size:17px;line-height:1.7;color:var(--muted);max-width:690px}.demo-role-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}.demo-case{background:var(--navy);color:#fff;border-radius:20px;padding:26px;display:grid;gap:8px;box-shadow:0 18px 50px rgba(17,43,57,.14)}.demo-case>strong{font-family:Georgia,serif;font-size:29px;font-weight:500;margin-top:9px}.demo-case>span:not(.badge),.demo-case small{color:#c9d4da;line-height:1.5}.demo-case-match{display:flex;align-items:end;gap:10px;border-top:1px solid rgba(255,255,255,.16);padding-top:18px;margin-top:8px}.demo-case-match b{font-family:Georgia,serif;font-size:46px;font-weight:500;line-height:1}.demo-case-match span{font-size:12px;color:#c9d4da;padding-bottom:5px}.demo-story{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px}.demo-story-head{display:flex;justify-content:space-between;gap:20px;align-items:end;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.demo-story-head h2{font-family:Georgia,serif;font-size:30px;font-weight:500;margin:5px 0 0}.demo-story-head>span{font-size:11px;color:var(--muted)}.demo-story-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:9px}.demo-story-grid article{border:1px solid var(--line);border-radius:12px;padding:14px;min-height:170px}.demo-story-grid i{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-style:normal;font-size:10px;font-weight:800;margin-bottom:14px}.demo-story-grid strong{font-size:12px}.demo-story-grid p{font-size:10px;line-height:1.5;color:var(--muted);margin:7px 0 0}.demo-progress{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:16px;overflow:hidden}.demo-progress-top{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8f9f8;font-size:10px;color:var(--muted)}.demo-progress-top button{border:0;background:none;color:var(--navy);font-size:10px;font-weight:700;cursor:pointer}.demo-progress-steps{display:grid;grid-template-columns:repeat(7,1fr);padding:9px 10px;gap:4px}.demo-progress-steps span{display:flex;align-items:center;gap:5px;font-size:9px;color:#929ba0;white-space:nowrap}.demo-progress-steps i{width:18px;height:18px;border-radius:50%;background:#eef1f2;display:grid;place-items:center;font-style:normal;font-size:8px;font-weight:800}.demo-progress-steps span.done{color:#577365}.demo-progress-steps span.done i{background:#e5f1e9;color:#2d6748}.demo-progress-steps span.active{color:var(--navy);font-weight:800}.demo-progress-steps span.active i{background:var(--navy);color:#fff}@media(max-width:900px){.demo-launch-hero{grid-template-columns:1fr}.demo-story-grid{grid-template-columns:repeat(2,1fr)}.demo-progress-steps{overflow:auto;display:flex}.demo-progress-steps span{min-width:92px}}@media(max-width:640px){.demo-launch-main{padding:26px 14px 90px}.demo-launch-hero{padding:20px 0}.demo-launch-hero h1{font-size:45px}.demo-story{padding:17px}.demo-story-head{display:block}.demo-story-head>span{display:block;margin-top:8px}.demo-story-grid{grid-template-columns:1fr}.demo-story-grid article{min-height:auto;display:grid;grid-template-columns:30px 1fr;gap:10px}.demo-story-grid i{margin:0}.demo-role-actions{display:grid}.demo-role-actions .btn{width:100%}}

/* Consolidated, network-configurable landing copy */
.landing-network-copy{margin-top:28px;max-width:720px}.landing-network-copy h2{margin:0 0 8px;font-size:clamp(1.25rem,2vw,1.7rem)}.landing-network-copy p{margin:0 0 12px}.landing-network-copy strong{display:block;font-size:1.05rem}

.topbar-rbn { display:inline-flex; align-items:center; gap:8px; border:0; background:transparent; padding:0; color:var(--navy); cursor:pointer; font:inherit; }
.topbar-rbn-mark { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 6px; border-radius:8px; background:var(--navy); color:#fff; font-size:10px; font-weight:800; letter-spacing:.04em; }
.topbar-rbn strong { font-size:15px; letter-spacing:.02em; }

.demo-launch-actions .btn{white-space:nowrap;min-width:88px;padding-left:18px;padding-right:18px}
.demo-story-paths{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.demo-story-role{border:1px solid var(--line);border-radius:14px;padding:18px}
.demo-story-role-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.demo-story-role-head h3{margin:0;font-size:18px}
.demo-story-role-head span{font-size:9px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
.demo-story-role .demo-story-grid{grid-template-columns:1fr;gap:0}
.demo-story-role .demo-story-grid article{min-height:auto;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:10px 2px;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:9px}
.demo-story-role .demo-story-grid article:last-child{border-bottom:0}
.demo-story-role .demo-story-grid i{width:24px;height:24px;margin:0;font-size:9px}
.demo-story-role .demo-story-grid strong{font-size:13px}
@media(max-width:700px){.demo-story-paths{grid-template-columns:1fr}.demo-launch-actions .btn{min-width:82px}}

.hero-affiliation{margin:-8px 0 12px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

.opportunity-card{overflow:hidden}
.opportunity-card .project-body{padding:22px}
.opportunity-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.opportunity-card-top h3{margin:5px 0 0;font-size:20px;line-height:1.25}
.opportunity-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.opportunity-builder{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:17px 0}
.opportunity-builder>span{font-size:9px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
.opportunity-builder strong{font-size:13px}
.text-action{border:0;background:transparent;padding:4px 0;color:var(--navy);font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.opportunity-actions{padding-top:4px}
@media(max-width:640px){.opportunity-card-top{display:block}.opportunity-badges{justify-content:flex-start;margin-top:12px}.opportunity-builder{grid-template-columns:1fr auto}.opportunity-builder>span{grid-column:1/-1}}

.landing-title{font-size:clamp(42px,5vw,58px)!important;line-height:1.02!important;letter-spacing:-.025em;max-width:720px}
.landing-title span{display:block;white-space:nowrap}
@media(max-width:560px){.landing-title{font-size:clamp(34px,10vw,44px)!important}.landing-title span{white-space:normal}}

.collection-open-btn{width:112px;min-width:112px;justify-content:center;white-space:nowrap}

.collection-row-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:220px;flex:0 0 220px}
.collection-row-actions .badge{min-width:92px;text-align:center}
.collection-action-btn{width:118px;min-width:118px;height:38px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 12px;flex:0 0 118px}
@media(max-width:640px){.summary-row{align-items:flex-start}.collection-row-actions{min-width:118px;flex-basis:118px;flex-direction:column;align-items:stretch}.collection-row-actions .badge{min-width:0;width:118px}}

.collection-status{width:104px;min-width:104px;min-height:28px;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap}
.collection-row-actions{min-width:242px;flex-basis:242px}
@media(max-width:640px){.collection-status{width:118px;min-width:118px}.collection-row-actions{min-width:118px;flex-basis:118px}}

.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.form-grid label{display:grid;gap:7px;font-size:11px;font-weight:700;color:var(--muted)}
.form-grid .form-span{grid-column:1/-1}
.input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:#fff;padding:11px 12px;font:inherit;color:var(--navy)}
textarea.input{resize:vertical;min-height:96px}
.qualification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.qualification-grid label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);border-radius:9px;font-size:12px;font-weight:650}
@media(max-width:640px){.form-grid,.qualification-grid{grid-template-columns:1fr}.form-grid .form-span{grid-column:auto}}

.profile-logo{width:52px;height:52px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;background:#fff;font-weight:850;font-size:13px;letter-spacing:.04em;flex:0 0 auto}
.profile-affiliation{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 16px}.profile-affiliation small{color:var(--muted)}
.profile-logo-editor{display:grid;grid-template-columns:64px 1fr;gap:16px;align-items:start;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}.profile-logo-editor p{margin:4px 0 10px;color:var(--muted)}
.portfolio-collapse summary{cursor:pointer;font-weight:800;display:flex;justify-content:space-between;align-items:center}.portfolio-collapse summary span{font-size:11px;color:var(--muted)}
.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.portfolio-tile{display:grid;gap:7px}.portfolio-placeholder{aspect-ratio:4/3;border:1px solid var(--line);border-radius:9px;background:#f5f6f6;display:grid;place-items:center;font-size:9px;font-weight:800;letter-spacing:.08em;color:var(--muted)}.portfolio-tile small{color:var(--muted)}
@media(max-width:700px){.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.project-upload-btn{width:142px;min-width:142px;height:38px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 12px}
.document-row .project-upload-btn{margin-left:auto}
.project-step-btn{min-width:168px;height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 16px}
@media(max-width:560px){.project-upload-btn{width:132px;min-width:132px}.project-step-btn{min-width:142px}}

.project-actions{gap:12px;row-gap:12px;margin-top:16px}
.card .project-actions{margin-top:18px}
.btn{min-height:38px;padding:0 15px}
.btn-secondary{padding-left:14px;padding-right:14px}
.compact-primary{min-height:36px!important;padding:0 13px!important;font-size:11px!important}
.back-btn{min-height:32px!important;height:32px;padding:0 10px!important;font-size:10px!important;border-color:transparent!important;background:transparent!important;color:var(--muted)!important}
.back-btn:hover{background:#f3f5f5!important;color:var(--navy)!important}
.project-meta{gap:8px!important;margin:12px 0 14px!important}
.project-meta span{background:#f2f5f4;border:1px solid var(--line);border-radius:999px;padding:6px 10px;color:var(--navy)!important;font-size:11px!important;font-weight:750}
.activity-list{display:grid;gap:4px}.activity{padding:13px 2px!important}.activity+.activity{border-top:1px solid var(--line)}
.summary-row{padding-top:14px;padding-bottom:14px}

/* App-wide visual rhythm */
.demo-content .card{padding:22px}
.demo-content .grid-2,.demo-content .detail-grid{gap:20px}
.demo-content .card h3{margin-bottom:10px}
.demo-content .card p{line-height:1.55}
.demo-content .project-actions .btn{min-height:38px}
.demo-content .project-actions .btn-primary:not(.compact-primary),
.demo-content .project-actions .btn-secondary:not(.back-btn){padding-left:15px;padding-right:15px}
.demo-content .kv-grid{gap:12px}
.demo-content .kv{padding:12px 0}
.demo-content .kv label{font-size:10px;letter-spacing:.035em}
.demo-content .kv strong{font-size:13px;line-height:1.4}
.demo-content .summary-row{gap:18px}
.demo-content .summary-row>div:first-child{min-width:0}
.demo-content .summary-row small{line-height:1.4}
.demo-content .back-btn{width:auto!important;min-width:0!important}
.demo-content .project-meta{display:flex;flex-wrap:wrap}
@media(max-width:640px){.demo-content .card{padding:18px}.demo-content .grid-2,.demo-content .detail-grid{gap:14px}}

/* Shared secondary/card-level action component */
.compact-card-action{min-height:34px!important;height:34px!important;width:auto!important;min-width:116px!important;padding:0 12px!important;font-size:10.5px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap}

.activity-action{width:100%;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:12px}
.activity-action:hover{background:#f7f8f8}
.activity-more{font-size:10px;font-weight:800;color:var(--navy);white-space:nowrap}
.swipe-hint{display:block;margin-top:10px;color:var(--muted);font-size:10px}
@media(max-width:640px){.activity-action{grid-template-columns:auto 1fr auto;touch-action:pan-y}.activity-action time{display:none}.activity-more{grid-column:3}}

.app-topbar{position:relative}
.top-role-switch{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;z-index:2}
.top-role-switch .compact-card-action{min-width:150px!important}
@media(max-width:760px){.top-role-switch{position:static;transform:none;margin-left:auto;margin-right:10px}.top-role-switch .compact-card-action{min-width:128px!important;font-size:9.5px!important}}

/* Universal paired card actions */
.opportunity-actions .compact-card-action{width:124px!important;min-width:124px!important}
.stat-info{cursor:default}
.top-role-switch .compact-card-action{height:40px!important;min-height:40px!important;min-width:172px!important;padding:0 18px!important;font-size:11px!important}
.app-topbar .account{min-width:150px;justify-content:flex-end}
@media(max-width:760px){.top-role-switch .compact-card-action{min-width:145px!important;height:38px!important}.app-topbar .account{min-width:auto}}

/* Unified Builder + Trade Partner surfaces */
.demo-content{background:#f6f7f7}
.demo-content>.page-head{margin-bottom:20px}
.demo-content .card,.demo-content .project-card,.demo-content .table-wrap,.demo-content .detail-hero{background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(20,35,40,.035)}
.demo-content .card,.demo-content .project-card{border-radius:12px}
.demo-content .activity-list{background:transparent}
.demo-content .activity-action,.demo-content .activity{border-radius:8px}
.demo-content .activity-action:hover{background:#f3f5f5}
.demo-content .back-btn{height:36px!important;min-height:36px!important;min-width:0!important;width:auto!important;padding:0 13px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;color:var(--navy)!important;font-size:10.5px!important;font-weight:800!important;box-shadow:0 1px 2px rgba(20,35,40,.04)!important}
.demo-content .back-btn:hover{background:#f2f4f4!important;border-color:#c8d0d0!important}
.demo-content>.project-actions:first-child{margin-top:0;margin-bottom:16px}
@media(max-width:640px){.demo-content .back-btn{height:38px!important;min-height:38px!important;padding:0 14px!important}}

.company-profile-head{padding-bottom:4px}.company-identity{display:flex;align-items:flex-start;gap:16px}.company-identity .profile-logo{width:58px;height:58px;border-radius:13px}.company-identity h1{margin:0 0 4px}.company-identity p{margin:0 0 9px}.company-profile-head .profile-affiliation{margin:0}.company-profile-head+.grid-2 .card{min-height:100%}

.directory-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 16px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}.directory-toolbar label{display:grid;gap:6px;font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.directory-filter{min-width:210px}.directory-toolbar>span{font-size:11px;font-weight:750;color:var(--muted);padding-bottom:10px}@media(max-width:640px){.directory-toolbar{align-items:stretch;flex-direction:column}.directory-filter{min-width:0}.directory-toolbar>span{padding-bottom:0}}

/* Universal dashboard tile + back-control alignment */
.stat-grid{align-items:stretch}
.stat-grid>.stat{height:92px;min-height:92px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px!important}
.stat-grid>.stat strong,.stat-grid>.stat span{text-align:center}
.demo-content .back-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;height:36px!important;min-height:36px!important;padding:0 13px!important;font-size:10.5px!important;line-height:1!important}
.demo-content .back-btn span{display:inline-block;line-height:1}
.summary-row .project-actions{display:flex;align-items:center;justify-content:center;gap:10px}
.summary-row .compact-card-action{width:132px!important;min-width:132px!important;height:36px!important}
@media(max-width:640px){.stat-grid>.stat{height:86px;min-height:86px}.summary-row .compact-card-action{width:124px!important;min-width:124px!important}}

/* RBN universal in-app action system — Builder + Trade Partner */
.demo-content .btn{box-sizing:border-box;min-height:38px;height:38px;padding:0 14px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.1;white-space:nowrap;font-size:11px;font-weight:800}
.demo-content .project-actions,.demo-content .opportunity-actions,.demo-content .form-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}
.demo-content .project-actions .btn:not(.back-btn),.demo-content .opportunity-actions .btn,.demo-content .form-actions .btn{width:140px!important;min-width:140px!important;height:38px!important;min-height:38px!important;padding:0 13px!important;font-size:10.5px!important}
.demo-content .compact-card-action{width:140px!important;min-width:140px!important;height:38px!important;min-height:38px!important}
.demo-content .project-upload-btn{width:140px!important;min-width:140px!important;height:38px!important}
.demo-content .project-step-btn{width:160px!important;min-width:160px!important;height:40px!important}
.demo-content .back-btn{width:auto!important;min-width:112px!important;height:36px!important;min-height:36px!important;padding:0 13px!important;justify-content:center!important}
.demo-content>.project-actions:first-child{justify-content:flex-start}
.demo-content .document-row .project-upload-btn{margin-left:auto}
@media(max-width:560px){
 .demo-content .project-actions .btn:not(.back-btn),.demo-content .opportunity-actions .btn,.demo-content .form-actions .btn,.demo-content .compact-card-action,.demo-content .project-upload-btn{width:132px!important;min-width:132px!important}
 .demo-content .project-step-btn{width:148px!important;min-width:148px!important}
}

/* Stronger navigation + balanced dashboard cards */
.demo-content .back-btn{background:var(--navy)!important;color:#fff!important;border-color:var(--navy)!important;box-shadow:0 5px 12px rgba(13,34,53,.13)!important}
.demo-content .back-btn:hover{background:#18394f!important;color:#fff!important;border-color:#18394f!important;transform:translateY(-1px)}
.demo-content .grid-2>.card{padding-top:24px}
.demo-content .grid-2>.card>.card-head{margin-bottom:16px;padding-top:2px}
.demo-content .grid-2>.card>.project-card{margin-top:4px}
.demo-content .opportunity-card-top{padding-top:4px}

/* Trade opportunity alignment */
.demo-content .opportunity-actions{display:grid!important;grid-template-columns:repeat(2,140px);justify-content:center!important;align-items:center!important;gap:10px!important;padding-top:12px!important}
.demo-content .opportunity-actions .btn{width:140px!important;min-width:140px!important;height:38px!important;min-height:38px!important;margin:0!important}
.demo-content .opportunity-card-top{padding-top:14px!important;align-items:center!important}
.demo-content .opportunity-badges{align-items:center!important}
.demo-content .detail-hero .detail-match{top:28px!important}
@media(max-width:560px){.demo-content .opportunity-actions{grid-template-columns:repeat(2,minmax(0,132px))}.demo-content .opportunity-actions .btn{width:132px!important;min-width:132px!important}}


/* Builder dashboard hierarchy: keep counts secondary and active project lower/right */
.builder-dashboard-main{align-items:start;margin-bottom:22px}
.builder-dashboard-main>section:first-child{grid-column:1}
.builder-active-project{grid-column:2;transform:translateY(12px)}
.builder-dashboard-stats{margin-top:18px;margin-bottom:0}
@media(max-width:900px){
  .builder-dashboard-main{grid-template-columns:1fr}
  .builder-dashboard-main>section:first-child,.builder-active-project{grid-column:1}
  .builder-active-project{transform:none}
}


/* Dashboard card breathing room: keep featured opportunities/projects off section borders */
.demo-content .card > .project-card{margin-top:14px}
.builder-active-project{transform:translateY(28px)}
@media(max-width:900px){
  .builder-active-project{transform:translateY(14px);margin-bottom:14px}
}


/* Flatten nested dashboard feature cards so they do not look like a box inside a box */
.demo-content .card > .dashboard-feature-card{
  margin:14px 0 0;
  border:0;
  box-shadow:none;
  background:var(--soft);
  border-radius:12px;
}
.demo-content .card > .dashboard-feature-card .opportunity-card-top{
  padding:14px 16px 0;
}
.demo-content .card > .dashboard-feature-card .project-body{
  padding:12px 16px 16px;
}


/* Keep peer network metrics visually equal across Builder and Trade Partner views */
.stat-grid{align-items:stretch}
.stat-grid .stat{
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px 14px;
}
.stat-grid .stat strong{
  width:100%;
  margin:0 0 7px;
  line-height:1;
  text-align:center;
}
.stat-grid .stat span{
  width:100%;
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.25;
}
.profile-affiliation{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.profile-affiliation .badge{
  min-height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}


/* Unified RBN navigation controls */
.demo-content > .project-actions:first-child,
.demo-content .detail-nav,
.demo-content .page-navigation{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
}
.demo-content .back-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:112px!important;
  min-height:42px!important;
  height:42px!important;
  padding:0 16px!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--navy)!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1!important;
  box-shadow:0 1px 2px rgba(9,24,37,.04);
}
.demo-content .back-btn:hover{
  background:#f5f7f7!important;
  border-color:#cfd6d8!important;
  color:var(--navy)!important;
}
.demo-content .back-btn:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:2px;
}
.demo-content .project-actions .back-btn{
  flex:0 0 auto!important;
}
@media(max-width:640px){
  .demo-content > .project-actions:first-child,
  .demo-content .detail-nav,
  .demo-content .page-navigation{
    margin-bottom:14px;
  }
  .demo-content .back-btn{
    min-width:104px!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 14px!important;
    font-size:12px!important;
  }
}

.company-website-link{
  color:var(--navy);
  text-decoration:none;
  font-weight:750;
  overflow-wrap:anywhere;
}
.company-website-link:hover{text-decoration:underline}
.company-website-link:focus-visible{outline:2px solid var(--navy);outline-offset:3px;border-radius:3px}


/* Universal RBN demo-data and bid-room navigation system */
.demo-data-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:0 11px!important;
  border-radius:999px!important;
  background:var(--warning-bg)!important;
  color:var(--warning)!important;
  font-size:10px!important;
  font-weight:750!important;
  letter-spacing:.03em!important;
  white-space:nowrap!important;
}
.bidroom-back{
  display:flex;
  justify-content:flex-start;
  margin:0 0 14px;
}
.bidroom-back .back-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:104px!important;
}
.bidroom-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0 0 18px;
  padding:4px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f7f8f8;
  scrollbar-width:none;
}
.bidroom-tabs::-webkit-scrollbar{display:none}
.bidroom-tab{
  flex:0 0 auto;
  min-height:34px;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:10.5px;
  font-weight:750;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}
.bidroom-tab:hover{
  background:#fff;
  color:var(--navy);
}
.bidroom-tab.active{
  background:#fff;
  border-color:var(--line);
  color:var(--navy);
  box-shadow:0 1px 2px rgba(20,35,40,.05);
}
.bidroom-tab:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:1px;
}
@media(max-width:640px){
  .bidroom-back{margin-bottom:12px}
  .bidroom-tabs{margin-bottom:14px}
  .bidroom-tab{min-height:32px;padding:0 11px;font-size:10px}
}


/* Mobile dashboard featured-card spacing: keep kicker and match badge in one clean header row */
@media(max-width:640px){
  .demo-content .card > .dashboard-feature-card .opportunity-card-top{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    padding:14px 16px 12px!important;
  }
  .demo-content .card > .dashboard-feature-card .opportunity-card-top .eyebrow{
    margin:0!important;
    min-width:0;
    line-height:1.2;
  }
  .demo-content .card > .dashboard-feature-card .opportunity-card-top .badge{
    margin:0!important;
    flex:0 0 auto;
  }
  .demo-content .card > .dashboard-feature-card .project-body{
    padding:16px!important;
  }
}


/* My Bids mobile hierarchy: compact navigation, breathable rows, stage-driven actions */
.bid-list-back{display:flex;align-items:center;margin:0 0 18px}
.bid-list-back-btn{
  appearance:none;border:0;background:transparent;color:var(--muted);
  min-height:32px;padding:0 4px;display:inline-flex;align-items:center;gap:5px;
  font:inherit;font-size:12px;font-weight:750;cursor:pointer;
}
.bid-list-back-btn:hover{color:var(--navy)}
.bid-list-back-btn:focus-visible{outline:2px solid var(--navy);outline-offset:2px;border-radius:6px}
.bid-list-row{padding:22px 0;gap:22px}
.bid-list-row:first-child{padding-top:18px}
.bid-list-row:last-child{padding-bottom:18px}
.bid-list-copy{min-width:0;display:flex;flex-direction:column;gap:7px}
.bid-list-copy strong{line-height:1.3}
.bid-list-copy small{line-height:1.35}
.bid-list-actions{gap:10px;align-items:center}
@media(max-width:640px){
  .bid-list-back{margin:0 0 14px!important}
  .demo-content .bid-list-back-btn{
    width:auto!important;min-width:0!important;min-height:30px!important;height:30px!important;
    padding:0 2px!important;font-size:11.5px!important;border:0!important;background:transparent!important;
    box-shadow:none!important;
  }
  .bid-list-head{margin-top:0}
  .bid-list-row{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;column-gap:16px!important;row-gap:14px!important;
    padding:24px 0!important;
  }
  .bid-list-row:first-child{padding-top:20px!important}
  .bid-list-row:last-child{padding-bottom:20px!important}
  .bid-list-copy{gap:8px!important;padding-right:2px}
  .bid-list-actions{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    justify-content:center!important;gap:10px!important;min-width:132px;
  }
  .bid-list-actions .badge{align-self:center}
  .bid-list-actions .compact-card-action{
    width:100%!important;min-width:132px!important;min-height:40px!important;
    padding:0 12px!important;font-size:11px!important;white-space:nowrap;
  }
}


/* Dedicated dashboard feature header — shared by Builder Active Project + Trade Top Opportunity */
.demo-content .dashboard-feature-card .dashboard-feature-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 16px 14px;
  border-bottom:1px solid var(--line);
  min-height:54px;
}
.demo-content .dashboard-feature-card .dashboard-feature-header .eyebrow{
  margin:0;
  line-height:1.15;
}
.demo-content .dashboard-feature-card .dashboard-feature-header .badge{
  position:static;
  margin:0;
  flex:0 0 auto;
}
.demo-content .card > .dashboard-feature-card .dashboard-feature-header + .project-body{
  padding:18px 16px 16px!important;
}
@media(max-width:640px){
  .demo-content .dashboard-feature-card .dashboard-feature-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    padding:16px!important;
    gap:12px!important;
  }
}


/* Shared builder/trade dashboard feature-card readability */
.dashboard-feature-card{background:#fff!important;border:1px solid var(--line)!important;box-shadow:0 6px 18px rgba(14,30,43,.05)!important;overflow:hidden}
.dashboard-feature-header{padding:18px!important;min-height:64px!important;background:#f8faf9}
.dashboard-feature-header .eyebrow{font-size:11px!important;letter-spacing:.12em!important;color:#56636e!important}
.dashboard-feature-header .badge{min-height:30px!important;padding:0 12px!important}
.dashboard-feature-header + .project-body{padding:22px 18px 20px!important}
.dashboard-feature-card .project-body > h3{margin:0 0 14px!important}
.dashboard-feature-card .project-meta{margin:0 0 18px!important}
.dashboard-feature-card .project-body > p{margin:0 0 20px!important;color:#64717c!important}
@media(max-width:640px){.dashboard-feature-card{margin-top:18px!important}.dashboard-feature-header{padding:18px!important;min-height:68px!important}.dashboard-feature-header + .project-body{padding:22px 18px 20px!important}}


/* Builder Bids mobile cleanup */
.builder-bids-back{display:flex;justify-content:flex-start;margin:0 0 8px}
.builder-bids-back-btn{appearance:none;border:0;background:transparent;color:var(--muted);padding:0 2px;min-height:30px;display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:11.5px;font-weight:750;cursor:pointer}
.builder-bids-head{margin-top:0!important}
.builder-bid-copy{min-width:0;display:flex;flex-direction:column;gap:7px}
.builder-bid-actions{margin-top:0!important}
@media(max-width:640px){
  .builder-bids-back{margin-bottom:6px!important}
  .builder-bids-head{margin-bottom:18px!important}
  .builder-bids-head h1{margin-top:0!important}
  .builder-bid-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;padding:22px 0!important;align-items:start!important}
  .builder-bid-copy{gap:7px!important;padding-right:8px}
  .builder-bid-copy strong{line-height:1.28}
  .builder-bid-copy small{line-height:1.35}
  .builder-bid-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;width:100%!important}
  .builder-bid-actions .compact-card-action{width:100%!important;min-width:0!important;min-height:40px!important;height:40px!important}
  .nav-reset{display:none!important}
}


/* Explicit company-logo placeholder used by demo profiles */
.company-identity .profile-logo-placeholder{
  width:72px;height:72px;border:1px solid var(--line);border-radius:16px;
  background:linear-gradient(145deg,#fff,var(--surface-2));color:var(--muted);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  box-shadow:inset 0 0 0 4px #fff;line-height:1;letter-spacing:.06em
}
.profile-logo-placeholder .profile-logo-icon{font-size:18px;line-height:1;margin-bottom:2px}
.profile-logo-placeholder .profile-logo-label{font-size:9px;font-weight:850}
.profile-logo-placeholder .profile-logo-sub{font-size:7px;font-weight:750;letter-spacing:.08em}
@media(max-width:640px){
  .company-identity{gap:14px}
  .company-identity .profile-logo-placeholder{width:72px;height:72px;flex:0 0 72px}
}


/* Mobile header alignment and four-item nav */
@media(max-width:980px){.mobile-tabs{grid-template-columns:repeat(4,1fr)!important}}
@media(max-width:760px){
  .app-topbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;column-gap:10px!important;padding:0 14px!important}
  .top-left{min-width:0!important}
  .top-role-switch{position:static!important;transform:none!important;margin:0!important;justify-self:start!important;align-self:center!important}
  .top-role-switch .compact-card-action{min-width:0!important;width:auto!important;height:38px!important;padding:0 14px!important;font-size:9.5px!important}
  .app-topbar .account{min-width:0!important;justify-self:end!important}
}


/* Universal detail-page back spacing */
.app-back-row{display:flex;align-items:center;justify-content:flex-start;margin:0 0 12px;padding:0}
.app-back-btn{appearance:none;border:0;background:transparent;color:var(--muted);padding:0 2px;min-height:30px;display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:11.5px;font-weight:750;cursor:pointer}
.app-back-row + .page-head,.app-back-row + .detail-hero{margin-top:0!important}
#demo-content>.project-actions:first-child:has(.back-btn),.bidroom-back,.builder-bids-back,.bid-list-back{margin:0 0 12px!important}
#demo-content>.project-actions:first-child:has(.back-btn) .back-btn,.bidroom-back .back-btn{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;padding:0 2px!important;min-height:30px!important;font-size:11.5px!important}
#demo-content>.project-actions:first-child:has(.back-btn)+.page-head,.bidroom-back+.page-head{margin-top:0!important}

/* Builder procurement folders and side-by-side bid comparison */
.bid-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bid-package-folder{appearance:none;text-align:left;border:1px solid var(--line);background:#fff;border-radius:14px;padding:18px;min-height:150px;cursor:pointer;color:var(--ink);font:inherit}
.bid-package-folder:hover{border-color:#aab6c0;transform:translateY(-1px)}
.bid-folder-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}
.bid-folder-icon{font-size:22px;color:var(--muted)}
.bid-package-folder>strong{display:block;font-size:18px;margin-bottom:5px}
.bid-package-folder>small{display:block;color:var(--muted);line-height:1.35}
.bid-folder-link{display:block;margin-top:18px;font-size:12px;font-weight:800}
.bid-compare-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
.bid-compare-table{width:100%;min-width:900px;border-collapse:collapse}
.bid-compare-table th,.bid-compare-table td{padding:16px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);vertical-align:top;text-align:left}
.bid-compare-table thead th{background:var(--surface-2)}
.bid-compare-table thead th strong{display:block;margin-bottom:8px}
.bid-compare-table tbody th{width:130px;background:var(--surface-2);font-size:12px}
.bid-compare-actions td{background:#fff}
@media(max-width:760px){.app-back-row{margin-bottom:10px}.bid-package-grid{grid-template-columns:1fr}.bid-package-folder{min-height:132px}.bid-compare-wrap{margin-left:-2px;margin-right:-2px}}


/* Trade Opportunities: discovery + saved radar */
.opportunity-section{margin-top:24px}
.opportunity-section + .opportunity-section{margin-top:32px}
.opportunity-section-head{margin-bottom:14px}
.opportunity-section-head>div{display:grid;gap:3px}
.opportunity-section-head h3,.opportunity-section-head p{margin:0}
.opportunity-section-head p{color:var(--muted);font-size:11px}
.saved-radar{padding-top:24px;border-top:1px solid var(--line)}
.empty-radar{padding:22px!important}
.empty-radar strong{display:block;margin-bottom:5px}
.empty-radar p{margin:0!important;color:var(--muted)}
@media(max-width:640px){
 .opportunity-section{margin-top:20px}
 .opportunity-section + .opportunity-section{margin-top:26px}
 .saved-radar{padding-top:20px}
 .opportunity-section-head{align-items:flex-end}
}


/* Trade opportunity workflow accordion */
.opportunity-groups{display:grid;gap:12px}
.opportunity-group{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.opportunity-group-toggle{appearance:none;width:100%;border:0;background:#fff;color:var(--ink);padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;font:inherit;cursor:pointer}
.opportunity-group-toggle>span:first-child{display:grid;gap:4px}
.opportunity-group-toggle strong{font-size:16px}
.opportunity-group-toggle small{color:var(--muted);font-size:11px;font-weight:400}
.opportunity-group-right{display:flex;align-items:center;gap:12px}
.opportunity-group-right b{width:20px;text-align:center;font-size:18px;font-weight:500;color:var(--muted)}
.opportunity-group-body{padding:0 20px 20px;border-top:1px solid var(--line)}
.opportunity-group-body>.project-grid,.opportunity-group-body>.card{margin-top:18px}
@media(max-width:640px){
 .opportunity-groups{gap:10px}
 .opportunity-group-toggle{padding:15px 14px}
 .opportunity-group-toggle strong{font-size:14px}
 .opportunity-group-toggle small{font-size:10px}
 .opportunity-group-body{padding:0 14px 14px}
 .opportunity-group-body>.project-grid,.opportunity-group-body>.card{margin-top:14px}
}

.opportunity-update-row{appearance:none;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.opportunity-update-row:last-child{border-bottom:0}
.opportunity-update-row:hover{background:var(--surface-2)}


/* Matching command-center dashboards */
.command-head{margin-bottom:16px}
.command-stats{margin-bottom:16px}
.command-stat{min-height:82px;padding:14px 16px}
.command-stat strong{font-size:22px}
.command-stat span{font-size:11px}
.command-card{padding:0;overflow:hidden;margin-bottom:14px}
.command-card .card-head{padding:16px 18px;margin:0;border-bottom:1px solid var(--line)}
.command-card .card-head h3{margin:0 0 2px}
.command-card .card-head small{color:var(--muted)}
.command-list{display:flex;flex-direction:column}
.command-row{appearance:none;width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.command-row:last-child{border-bottom:0}
.command-row:hover{background:var(--surface-2)}
.command-row strong{display:block;font-size:13px;margin-bottom:3px}
.command-row small{display:block;color:var(--muted);font-size:11px}
.command-row-end{display:flex;align-items:center;gap:10px;flex:0 0 auto}
@media(max-width:760px){
 .command-head{align-items:flex-start}
 .command-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .command-stat{min-height:74px}
 .command-row{padding:13px 14px}
 .command-row-end .badge{font-size:8px}
}


/* Company discovery + network confidence */
.discover-note{display:flex;gap:10px;align-items:center;margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);font-size:11px;color:var(--muted)}
.discover-note strong{color:var(--ink);white-space:nowrap}
.discover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.discover-company{margin:0}
.discover-company-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.discover-company-head h3{margin:4px 0 0}
.match-score{font-size:21px;font-weight:850;text-align:right;line-height:1}
.match-score small{display:block;font-size:8px;color:var(--muted);letter-spacing:.08em;margin-top:4px}
.shared-connections{appearance:none;border:0;background:transparent;padding:6px 0 0;color:var(--muted);font:inherit;font-size:11px;font-weight:750;cursor:pointer;text-align:left}
.shared-connections:hover{text-decoration:underline}
.profile-shared{appearance:none;cursor:pointer;font:inherit}
@media(max-width:760px){.discover-note{align-items:flex-start;flex-direction:column}.discover-grid{grid-template-columns:1fr}.discover-company .project-actions{gap:7px}.discover-company .project-actions .btn{flex:1}}


/* Builder bid activity grouping */
.bid-view-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);margin:0 0 16px}
.bid-view-switch button{appearance:none;border:0;background:transparent;border-radius:7px;padding:8px 13px;color:var(--muted);font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.bid-view-switch button.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.bid-project-group{margin:0 0 22px}
.bid-project-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 10px}
.bid-project-heading h3{margin:3px 0 0}

.trade-bid-group{margin:0 0 20px}
.trade-bid-group .card{padding:0;overflow:hidden}
@media(max-width:560px){.bid-view-switch{display:flex;width:100%}.bid-view-switch button{flex:1;padding:8px 6px}}


/* Partner directory search + sorting */
.partner-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.partner-search{height:38px;min-width:260px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.partner-search span{color:var(--muted)}
.partner-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:12px}
.partner-sort{margin:0}
.partner-results{padding:0;overflow:hidden}
.partner-empty{padding:22px;text-align:center;color:var(--muted);font-size:12px}
@media(max-width:650px){.partner-tools{align-items:stretch;flex-direction:column}.partner-search{min-width:0;width:100%}.partner-sort{width:100%}}


/* Global typography reset — tighter, quieter, more architectural */
:root{--ui-font:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;--display-font:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif}
body{font-family:var(--ui-font);font-size:14px;line-height:1.45;letter-spacing:-.006em}
button,input,select,textarea{font-family:var(--ui-font)}
h1,h2,h3,h4,p{overflow-wrap:break-word}
h1,h2,h3,h4{letter-spacing:-.025em}
.page-head h1{font-size:26px;line-height:1.08;margin-bottom:7px}
.page-head p{font-size:12px;line-height:1.45}
.card h2{font-size:19px}.card h3{font-size:14px}
.btn{min-height:38px;padding:0 14px;font-size:12px}
.btn-sm,.compact-card-action{min-height:32px;font-size:11px}
.eyebrow{font-size:9px;letter-spacing:.14em}
.badge{font-size:9px}
.summary-row strong,.command-row strong{font-size:12px}
.summary-row small,.command-row small{font-size:10.5px;line-height:1.4}
.stat strong,.command-stat strong{font-size:20px}
.stat span,.command-stat span{font-size:10px}

/* Landing page scale */
.public-topbar{height:64px;padding-left:26px;padding-right:26px}
.public-nav{font-size:12px;gap:20px}
.hero{padding:20px 26px 28px}
.hero-frame{min-height:540px;border-radius:20px}
.hero-content{padding:72px 58px;width:min(560px,60%)}
.hero h1{font-family:var(--display-font);font-size:clamp(38px,4.3vw,64px);line-height:1;letter-spacing:-.035em;margin:14px 0 18px}
.hero p{font-size:15px;line-height:1.5;max-width:510px}
.hero-actions{margin-top:24px}
.hero-foot{padding:14px 28px}
.hero-value strong{font-size:11px}.hero-value span{font-size:9px}
.brand-mark{width:40px;height:40px;font-size:16px}
.brand-copy strong{font-size:11px}.brand-copy span{font-size:9px}

/* Entry/auth pages use the same restrained type scale */
.db-logo strong,.entry-hero h1,.auth-quote h2{font-family:var(--display-font)}
.entry-hero{min-height:540px;padding:58px}
.entry-hero h1{font-size:52px}
.entry-hero p{font-size:14px}
.auth-quote h2{font-size:38px}
.auth-card h1{font-size:28px}

@media(max-width:760px){
 body{font-size:13px}
 .page-head h1{font-size:23px}
 .hero{padding:12px}
 .hero-frame{min-height:570px}
 .hero-content{padding:54px 26px;width:100%}
 .hero h1{font-size:clamp(36px,11vw,50px)}
 .hero p{font-size:14px}
 .hero-foot{padding:12px 16px}
 .entry-hero{padding:38px 28px}
 .entry-hero h1{font-size:40px}
}


/* Landing typography v2 — intentionally overrides the older oversized/bold treatment */
.demo-launch-main{padding:40px 28px 64px}
.demo-launch-hero{padding:28px 0 34px}
.demo-launch-hero .eyebrow{font-size:9px;letter-spacing:.12em;font-weight:650}
.demo-launch-hero h1.landing-title{
 font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;
 font-size:clamp(34px,4.1vw,50px)!important;
 line-height:1.04!important;
 letter-spacing:-.045em!important;
 font-weight:400!important;
 max-width:650px;
 margin:10px 0 14px
}
.landing-title span{font-weight:400}
.hero-affiliation{font-size:11px;line-height:1.35;letter-spacing:.015em;margin:0 0 10px;color:#52616c}
.demo-launch-hero p{font-size:14px;line-height:1.45;margin:0;color:#6f7a84}
.demo-role-actions{margin-top:20px}
.demo-story{padding:22px;border-radius:16px}
.demo-story-head{padding-bottom:14px;margin-bottom:14px}
.demo-story-head h2{
 font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
 font-size:22px;
 line-height:1.12;
 letter-spacing:-.035em;
 font-weight:400;
 margin:4px 0 0
}
.demo-story-paths{gap:14px}
.demo-story-role{padding:15px 16px;border-radius:12px}
.demo-story-role-head{margin-bottom:8px}
.demo-story-role-head h3{
 font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
 font-size:15px;
 line-height:1.15;
 letter-spacing:-.02em;
 font-weight:500;
}
.demo-story-role-head span{font-size:8px;font-weight:650;letter-spacing:.12em}
.demo-story-role .demo-story-grid article{padding:8px 1px;grid-template-columns:24px 1fr;gap:8px}
.demo-story-role .demo-story-grid i{
 width:20px;height:20px;
 background:transparent;color:var(--navy);
 border:1px solid #cfd6da;
 font-size:8px;font-weight:600
}
.demo-story-role .demo-story-grid strong{font-size:11px;font-weight:500;letter-spacing:-.005em}
@media(max-width:640px){
 .demo-launch-main{padding:22px 14px 72px}
 .demo-launch-hero{padding:16px 0 24px}
 .demo-launch-hero h1.landing-title{font-size:clamp(30px,9vw,38px)!important;line-height:1.05!important}
 .demo-story{padding:14px}
 .demo-story-head h2{font-size:19px}
 .demo-story-role{padding:13px}
}


/* Landing header stays visible while the public page scrolls */
.demo-launch>.public-topbar{
 position:sticky;
 top:0;
 z-index:100;
 max-width:none;
 width:100%;
 border-bottom:1px solid rgba(223,227,229,.9);
 box-shadow:0 2px 12px rgba(14,30,43,.035);
}


/* Give the Trade Partner dashboard primary action proper breathing room */
.command-head>.compact-card-action[data-page="projects"]{
 min-height:38px;
 padding:0 18px;
 white-space:nowrap;
 flex:0 0 auto;
}
@media(max-width:640px){
 .command-head>.compact-card-action[data-page="projects"]{
  min-height:40px;
  padding:0 16px;
  margin-top:4px;
 }
}


/* Partner directory spacing + grouped navigation */
.partner-results{padding:8px 14px 10px!important}
.partner-results>.summary-row,.partner-group>.summary-row{padding:14px 10px!important;gap:18px}
.partner-row-copy{min-width:0;padding-left:2px}
.partner-row-copy strong{display:block;margin-bottom:4px}
.partner-row-copy small{display:block;line-height:1.45}
.partner-row-actions{padding-right:2px;flex:0 0 auto}
.partner-row-actions .btn,.partner-results .compact-card-action{min-height:34px;padding:0 15px!important}
.partner-group{padding:4px 0 10px}
.partner-group+.partner-group{border-top:8px solid var(--paper);padding-top:14px}
.partner-group-head{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:8px 10px 10px;border-bottom:1px solid var(--line)}
.partner-group-head span{display:block;font-size:8px;letter-spacing:.12em;color:var(--muted);font-weight:700;margin-bottom:3px}
.partner-group-head h3{margin:0;font-size:14px;font-weight:600}
.partner-group-head b{font-size:10px;color:var(--muted);font-weight:600}
.partner-tools{margin-bottom:16px}
.partner-search{height:40px;padding:0 14px}
.partner-sort button{padding-left:14px!important;padding-right:14px!important}
@media(max-width:640px){
 .partner-results{padding:6px 10px 8px!important}
 .partner-results>.summary-row,.partner-group>.summary-row{padding:13px 8px!important;align-items:flex-start}
 .partner-row-actions .btn{padding:0 12px!important}
}


/* Association-wide discovery search */
.directory-search-wrap{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.directory-search{width:min(560px,100%);min-width:0}
.directory-search-wrap>span{font-size:9px;font-weight:700;letter-spacing:.08em;color:var(--muted);white-space:nowrap}
@media(max-width:640px){.directory-search-wrap{align-items:stretch;flex-direction:column;gap:7px}}


/* Collapsible partner directory groups */
button.partner-group-head{width:100%;border:0;background:#f8f9f8;text-align:left;cursor:pointer}
.partner-group-end{display:flex;align-items:center;gap:10px}
.partner-group-end i{width:22px;height:22px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:13px;color:var(--navy);background:#fff}
.partner-group-body{display:block}
.partner-group.collapsed .partner-group-body{display:none}
.partner-group.collapsed{padding-bottom:4px}


/* Association search entry points and directory status */
.dashboard-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.directory-status{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
@media(max-width:640px){.dashboard-head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.dashboard-head-actions .btn{width:100%;padding-left:10px!important;padding-right:10px!important}}


/* Association directory quick filters */
.directory-filter{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#fff}
.directory-filter button{border:0;background:transparent;border-radius:6px;padding:7px 10px;font:inherit;font-size:10px;font-weight:650;color:var(--muted);cursor:pointer;white-space:nowrap}
.directory-filter button.active{background:var(--navy);color:#fff}
@media(max-width:700px){.directory-search-wrap{flex-wrap:wrap}.directory-filter{order:2}.directory-search-wrap>span{order:3}}


/* Dashboard header actions — balanced secondary + primary controls */
.command-head{align-items:center;gap:22px}
.dashboard-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto}
.dashboard-head-actions .compact-card-action{
 min-height:36px!important;
 height:36px;
 padding:0 16px!important;
 border-radius:9px;
 font-size:11px;
 font-weight:600;
 line-height:1;
 letter-spacing:0;
 white-space:nowrap;
 margin:0!important;
}
.dashboard-head-actions .btn-secondary{min-width:136px}
.dashboard-head-actions .btn-primary{min-width:148px}
@media(max-width:700px){
 .command-head{align-items:stretch;gap:15px}
 .dashboard-head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 .dashboard-head-actions .compact-card-action{width:100%;min-width:0;min-height:38px!important;height:38px;padding:0 10px!important;font-size:10.5px}
}
@media(max-width:390px){
 .dashboard-head-actions{grid-template-columns:1fr}
}


/* Low-key indicator that a member has activated their RBN profile */
.directory-name{display:flex;align-items:center;gap:6px}
.network-active-mark{width:15px;height:15px;border-radius:50%;display:inline-grid;place-items:center;background:var(--navy);color:#fff;font-family:var(--ui-font);font-size:9px;font-weight:700;line-height:1;flex:0 0 auto}


/* Dashboard actions v2 — scoped only to the two header controls.
   This neutralizes the earlier broad compact-card overrides without touching the rest of the app. */
.command-head{gap:16px}
.dashboard-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.dashboard-head-actions .dashboard-action{
 width:auto!important;
 min-width:0!important;
 height:auto!important;
 min-height:34px!important;
 padding:0 13px!important;
 margin:0!important;
 border-radius:8px;
 font-size:10.5px;
 font-weight:600;
 line-height:1;
 white-space:nowrap;
}
.dashboard-head-actions .dashboard-action-secondary{min-width:124px!important}
.dashboard-head-actions .dashboard-action-primary{min-width:132px!important}
@media(max-width:700px){
 .command-head{gap:12px}
 .dashboard-head-actions{display:flex;width:100%;gap:7px}
 .dashboard-head-actions .dashboard-action{flex:1 1 0;width:0!important;min-width:0!important;min-height:36px!important;padding:0 8px!important;font-size:10px}
}
@media(max-width:390px){
 .dashboard-head-actions{display:flex!important;grid-template-columns:none!important}
}


/* Dashboard actions v3 — stop forcing two wide buttons into the title row */
.dashboard-head-actions{gap:12px!important}
.dashboard-head-actions .dashboard-action-link{
 appearance:none;
 border:0;
 background:transparent;
 min-width:0!important;
 width:auto!important;
 height:auto!important;
 min-height:0!important;
 padding:6px 2px!important;
 color:var(--navy);
 font-family:var(--ui-font);
 font-size:10.5px;
 font-weight:650;
 line-height:1.2;
 cursor:pointer;
 white-space:nowrap;
}
.dashboard-action-link span{margin-left:4px;font-size:11px}
.dashboard-head-actions .dashboard-action-primary{
 min-width:0!important;
 min-height:34px!important;
 height:34px!important;
 padding:0 13px!important;
}
@media(max-width:700px){
 .dashboard-head-actions,.dashboard-head-actions.trade-dashboard-actions{
  display:flex!important;
  width:100%;
  justify-content:flex-start;
  align-items:center;
  gap:14px!important;
 }
 .dashboard-head-actions .dashboard-action-link{
  flex:0 0 auto!important;
  width:auto!important;
  min-height:0!important;
  padding:5px 0!important;
  font-size:10px;
 }
 .dashboard-head-actions .dashboard-action-primary{
  flex:0 0 auto!important;
  width:auto!important;
  min-height:34px!important;
  padding:0 12px!important;
 }
}


/* Bid comparison: desktop table + obvious mobile proposal review cards */
.bid-review-guide{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin:0 0 14px;border:1px solid var(--line);border-radius:10px;background:#f8f9f8}
.bid-review-guide strong{font-size:11px;white-space:nowrap}
.bid-review-guide span{font-size:10.5px;line-height:1.4;color:var(--muted)}
.bid-mobile-cards{display:none}
@media(max-width:760px){
 .bid-compare-wrap{display:none}
 .bid-mobile-cards{display:grid;gap:10px}
 .bid-review-card{padding:14px!important}
 .bid-review-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:11px;margin-bottom:4px;border-bottom:1px solid var(--line)}
 .bid-review-card-head h3{margin:2px 0 0;font-size:14px}
 .bid-review-card-head>strong{font-size:15px;white-space:nowrap}
 .bid-review-field{display:grid;grid-template-columns:92px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
 .bid-review-field span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
 .bid-review-field b{font-size:11px;font-weight:600}
 .bid-review-card .project-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}
 .bid-review-card .project-actions .btn{width:100%;min-height:36px;padding:0 8px!important;font-size:9.5px}
 .bid-review-guide{display:block}
 .bid-review-guide strong{display:block;margin-bottom:3px}
}
@media(max-width:390px){
 .bid-review-card .project-actions{grid-template-columns:1fr}
}


/* Notification preferences */
.notification-settings{max-width:720px}
.notification-channel,.notification-pref{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 2px;border-bottom:1px solid var(--line)}
.notification-channel div{display:grid;gap:3px}.notification-channel small{font-size:10.5px;color:var(--muted)}
.notification-settings h3{margin:22px 0 2px;font-size:13px}
.notification-pref strong{font-size:11px;font-weight:600}
.notification-pref input{width:17px;height:17px}
.switch input{position:absolute;opacity:0}.switch span{display:block;width:36px;height:20px;border-radius:20px;background:#d7dcdf;position:relative;cursor:pointer}.switch span:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;transition:.15s}.switch input:checked+span{background:var(--navy)}.switch input:checked+span:after{transform:translateX(16px)}
.notification-note{display:grid;gap:4px;padding:13px 14px;margin-top:16px;border-radius:9px;background:#f8f9f8}.notification-note strong{font-size:10px}.notification-note span{font-size:10px;line-height:1.4;color:var(--muted)}


/* Dashboard header reset: one primary action, association search on its own row */
.command-head{align-items:flex-start!important}
.dashboard-head-actions,.dashboard-head-actions.trade-dashboard-actions{
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 justify-content:flex-start!important;
 width:auto!important;
 min-width:150px;
 gap:5px!important;
}
.dashboard-head-actions .dashboard-action-primary{
 width:100%!important;
 min-width:0!important;
 height:36px!important;
 min-height:36px!important;
 padding:0 14px!important;
}
.dashboard-search-association{
 appearance:none;
 border:0;
 background:transparent;
 color:var(--muted);
 font-family:var(--ui-font);
 font-size:9.5px;
 font-weight:600;
 line-height:1.2;
 text-align:center;
 padding:5px 4px;
 cursor:pointer;
 white-space:nowrap;
}
.dashboard-search-association:hover{color:var(--navy)}
@media(max-width:700px){
 .command-head{gap:12px!important}
 .dashboard-head-actions,.dashboard-head-actions.trade-dashboard-actions{
  width:100%!important;
  min-width:0;
 }
 .dashboard-head-actions .dashboard-action-primary{
  width:100%!important;
 }
 .dashboard-search-association{padding:6px 4px}
}


/* Dashboard layout is authoritative; actions adapt to it, never resize it. */
.page-head.command-head{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) auto!important;
 align-items:start!important;
 gap:12px!important;
 width:100%!important;
 min-width:0!important;
}
.page-head.command-head>div:first-child{min-width:0!important}
.page-head.command-head>div:first-child h1,
.page-head.command-head>div:first-child p{max-width:100%;overflow-wrap:break-word}
.page-head.command-head .dashboard-head-actions,
.page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-end!important;
 justify-content:flex-start!important;
 width:auto!important;
 min-width:0!important;
 max-width:160px!important;
 gap:3px!important;
}
.page-head.command-head .dashboard-head-actions .dashboard-action-primary{
 width:auto!important;
 min-width:0!important;
 max-width:160px!important;
 height:32px!important;
 min-height:32px!important;
 padding:0 11px!important;
 font-size:10px!important;
 white-space:nowrap;
}
.page-head.command-head .dashboard-search-association{
 width:auto!important;
 max-width:160px!important;
 padding:4px 2px!important;
 font-size:9px!important;
 text-align:right!important;
}
@media(max-width:640px){
 .page-head.command-head{
  grid-template-columns:minmax(0,1fr)!important;
  gap:10px!important;
 }
 .page-head.command-head .dashboard-head-actions,
 .page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
  align-items:flex-start!important;
  width:auto!important;
  max-width:100%!important;
 }
 .page-head.command-head .dashboard-head-actions .dashboard-action-primary{
  width:auto!important;
  max-width:100%!important;
 }
 .page-head.command-head .dashboard-search-association{text-align:left!important}
}


/* Dashboard header final: preserve page width; two equal actions stay beside title */
.page-head.command-head{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 292px!important;
 align-items:start!important;
 column-gap:16px!important;
 width:100%!important;
 min-width:0!important;
}
.page-head.command-head .dashboard-head-actions,
.page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
 display:grid!important;
 grid-template-columns:1fr 1fr!important;
 flex-direction:initial!important;
 align-items:initial!important;
 width:292px!important;
 min-width:0!important;
 max-width:292px!important;
 gap:7px!important;
}
.page-head.command-head .dashboard-head-actions .dashboard-action{
 width:100%!important;
 min-width:0!important;
 max-width:none!important;
 height:34px!important;
 min-height:34px!important;
 padding:0 8px!important;
 margin:0!important;
 border-radius:8px!important;
 font-size:9.5px!important;
 line-height:1!important;
 white-space:nowrap!important;
}
@media(max-width:700px){
 .page-head.command-head{
  grid-template-columns:minmax(0,1fr) 240px!important;
  column-gap:10px!important;
 }
 .page-head.command-head .dashboard-head-actions,
 .page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  width:240px!important;
  max-width:240px!important;
  align-items:initial!important;
 }
 .page-head.command-head .dashboard-head-actions .dashboard-action{
  width:100%!important;
  font-size:8.5px!important;
  padding:0 5px!important;
 }
}
@media(max-width:540px){
 .page-head.command-head{
  grid-template-columns:minmax(0,1fr) 196px!important;
  column-gap:8px!important;
 }
 .page-head.command-head .dashboard-head-actions,
 .page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
  width:196px!important;
  max-width:196px!important;
  gap:5px!important;
 }
 .page-head.command-head .dashboard-head-actions .dashboard-action{
  height:32px!important;
  min-height:32px!important;
  font-size:7.5px!important;
  padding:0 3px!important;
  letter-spacing:-.01em;
 }
}


/* Dashboard actions: stacked, modestly larger type, still contained beside title */
.page-head.command-head{
 grid-template-columns:minmax(0,1fr) 154px!important;
 column-gap:14px!important;
}
.page-head.command-head .dashboard-head-actions,
.page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
 display:grid!important;
 grid-template-columns:1fr!important;
 width:154px!important;
 max-width:154px!important;
 gap:6px!important;
}
.page-head.command-head .dashboard-head-actions .dashboard-action{
 width:100%!important;
 height:35px!important;
 min-height:35px!important;
 padding:0 10px!important;
 font-size:10.5px!important;
 letter-spacing:0!important;
}
@media(max-width:700px){
 .page-head.command-head{
  grid-template-columns:minmax(0,1fr) 142px!important;
  column-gap:9px!important;
 }
 .page-head.command-head .dashboard-head-actions,
 .page-head.command-head .dashboard-head-actions.trade-dashboard-actions{
  width:142px!important;
  max-width:142px!important;
  grid-template-columns:1fr!important;
 }
 .page-head.command-head .dashboard-head-actions .dashboard-action{
  height:34px!important;
  min-height:34px!important;
  font-size:10px!important;
  padding:0 7px!important;
 }
}


/* Compact, collapsible builder bid packages */
.bid-project-toggle{width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
.bid-group-meta{display:flex;align-items:center;gap:8px}
.bid-group-meta i{width:22px;height:22px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;font-style:normal;font-size:13px;color:var(--navy)}
.bid-project-packages{display:block}
.bid-project-group.collapsed .bid-project-packages{display:none}
.bid-project-group.collapsed{padding-bottom:0}
.compact-bid-package{min-height:0!important;padding:12px!important}
.compact-bid-package .bid-folder-top{margin-bottom:7px}
.compact-bid-package>strong{font-size:12px}
.compact-bid-package>small{font-size:9.5px;line-height:1.3}
.compact-bid-package .bid-folder-link{margin-top:8px;font-size:9.5px}
@media(max-width:640px){
 .bid-project-heading{padding:10px 8px!important}
 .bid-project-heading h3{font-size:12px!important}
 .compact-bid-package{padding:10px!important}
}


/* Association replaces standalone Partners navigation */
.legacy-partners-link{display:none!important}
.connected-directory-filter{white-space:nowrap}
.directory-status .badge-success{font-size:8px}


/* Dashboard workflow signals: intentionally distinct from opportunity cards */
.dashboard-signal{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important}
.dashboard-signal-icon{width:34px;height:34px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center;flex:0 0 34px;font-size:15px;font-weight:800;color:var(--navy)!important}
.dashboard-signal-copy{display:block!important;min-width:0}
.dashboard-signal-copy strong{font-size:23px!important;line-height:1!important;margin-bottom:5px}
.dashboard-signal-copy>span{display:block}
@media(max-width:640px){.dashboard-signal{padding:14px!important;gap:10px!important}.dashboard-signal-icon{width:30px;height:30px;flex-basis:30px}.dashboard-signal-copy strong{font-size:20px!important}}


/* Header/nav cleanup: static top bar, text navigation, exit beside profile */
.app-topbar{position:sticky!important;top:0!important;z-index:60!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.top-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.top-exit{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:11px;font-weight:750;padding:8px 6px;cursor:pointer}
.top-exit:hover{color:var(--navy)}
.mobile-tab b{display:none!important}
.mobile-tab{gap:0!important}
.mobile-tab span{font-size:10px;font-weight:750}
@media(max-width:980px){.mobile-tabs{grid-template-columns:repeat(4,1fr)!important}}
@media(max-width:760px){.app-topbar{position:sticky!important;top:0!important}.top-account-actions{justify-self:end!important;gap:5px}.top-exit{padding:8px 4px;font-size:10px}.app-topbar .account{justify-self:auto!important}}


/* Bid hierarchy: project and deadline lead each record */
.bid-card-project,.bid-row-project{font-size:16px!important;line-height:1.25!important;margin:4px 0 2px!important;color:var(--ink)}
.bid-card-trade,.bid-row-trade{font-size:12px!important;font-weight:750!important;color:var(--muted)}
.bid-card-date,.bid-row-date{display:block;font-size:12px!important;font-weight:800!important;color:var(--navy);margin-top:7px}
.bid-list-copy{align-items:flex-start}
@media(max-width:640px){.bid-card-project,.bid-row-project{font-size:15px!important}.bid-card-date,.bid-row-date{font-size:11.5px!important}.bid-view-switch{overflow-x:auto;justify-content:flex-start}.bid-view-switch button{white-space:nowrap;flex:0 0 auto}}


/* Bid tabs and card spacing consistency */
.bid-view-switch{display:flex!important;align-items:center!important;gap:6px!important;padding:4px!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;border-radius:11px!important;width:max-content;max-width:100%;margin-bottom:18px}
.bid-view-switch button{appearance:none!important;border:0!important;background:transparent!important;color:var(--muted)!important;border-radius:8px!important;padding:9px 13px!important;font:inherit!important;font-size:10.5px!important;font-weight:750!important;cursor:pointer!important}
.bid-view-switch button.active{background:var(--navy)!important;color:#fff!important;box-shadow:0 1px 3px rgba(14,30,43,.12)!important}
.bid-package-folder.compact-bid-package{padding:18px!important;text-align:left!important}
.bid-package-folder .bid-folder-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important}
.bid-trade-corner{font-size:10.5px!important;font-weight:800!important;color:var(--muted)!important;letter-spacing:.02em}
.bid-list-row{padding-left:18px!important;padding-right:18px!important}
.trade-bid-group>.card{overflow:hidden}
.trade-bid-group>.card .bid-list-row{margin-left:0!important;margin-right:0!important}
@media(max-width:640px){
 .bid-view-switch{width:100%!important;overflow-x:auto!important;padding:4px!important}
 .bid-view-switch button{flex:1 0 auto!important;padding:9px 11px!important}
 .bid-package-folder.compact-bid-package{padding:16px!important}
 .bid-list-row{padding:20px 16px!important}
 .bid-list-copy{padding-right:4px!important}
}


/* Dashboard workflow labels: modest readability increase on both roles */
.dashboard-flow-stats.command-stats .command-stat span{
 font-size:11.5px!important;
 line-height:1.25!important;
 font-weight:600!important;
 letter-spacing:0!important;
}
.command-card .command-list .command-row strong{
 font-size:12.5px!important;
 line-height:1.3!important;
 font-weight:650!important;
}
@media(max-width:640px){
 .dashboard-flow-stats.command-stats .command-stat span{font-size:11px!important}
 .command-card .command-list .command-row strong{font-size:12px!important}
}


/* Unified bid views + cleaner bid review count */
.bid-review-count{display:flex;align-items:baseline;gap:7px;width:max-content;margin:-6px 0 18px;padding:0 2px;color:var(--muted)}
.bid-review-count>span{font-size:18px;font-weight:800;color:var(--navy);line-height:1}
.bid-review-count>small{font-size:9px;font-weight:800;letter-spacing:.1em}
.bid-unified-group{margin:0 0 22px}
.bid-unified-group-label{display:flex;align-items:baseline;gap:9px;padding:0 2px 10px;border-bottom:1px solid var(--line);margin-bottom:14px}
.bid-unified-group-label>span{font-size:8.5px;font-weight:850;letter-spacing:.11em;color:var(--muted)}
.bid-unified-group-label>strong{font-size:13px;color:var(--ink)}
.bid-unified-group-label>small{font-size:9.5px;color:var(--muted);margin-left:auto}
.trade-bid-group .bid-project-heading{padding:0 2px 10px!important;margin-bottom:0!important;border-bottom:1px solid var(--line)!important;background:transparent!important}
.trade-bid-group>.card{border-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}
@media(max-width:640px){
 .bid-review-count{margin-top:-3px;margin-bottom:15px}
 .bid-unified-group-label{display:grid;grid-template-columns:auto 1fr auto;gap:7px;padding-bottom:9px}
 .bid-unified-group-label>strong{font-size:12px;line-height:1.25}
 .trade-bid-group .bid-project-heading{padding-left:2px!important;padding-right:2px!important}
}


/* Project-first bid room hierarchy */
.bidroom-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.bidroom-inline-back{appearance:none;border:0;background:transparent;padding:5px 0;color:var(--muted);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.bidroom-inline-back:hover{color:var(--navy)}
.bidroom-label{font-size:10px;font-weight:850;letter-spacing:.12em;color:var(--muted)}
.bidroom-project-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:20px}
.bidroom-project-head h1{font-size:clamp(27px,3vw,38px);line-height:1.08;letter-spacing:-.025em;margin:0 0 7px;color:var(--ink)}
.bidroom-project-head p{margin:0;color:var(--muted);font-size:13px}
.bidroom-project-head>.badge{flex:0 0 auto;margin-top:5px}
@media(max-width:640px){
 .bidroom-topline{margin-bottom:12px}
 .bidroom-project-head{gap:12px;margin-bottom:17px}
 .bidroom-project-head h1{font-size:27px}
 .bidroom-project-head>.badge{font-size:8.5px;padding:5px 7px}
}


/* Profile page balance + clearer mobile navigation */
.account-profile-tools{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:0 0 14px}
.account-profile-tools button{appearance:none;border:0;background:transparent;font:inherit;cursor:pointer;white-space:nowrap}
.account-tool-primary{font-size:11px;font-weight:800;color:var(--navy)}
.account-tool{font-size:10.5px;font-weight:700;color:var(--muted)}
.account-tool:hover,.account-tool-primary:hover{color:var(--navy)}
.company-profile-head{margin-bottom:18px!important}
.company-profile-head+.grid-2{align-items:start}
.company-profile-head+.grid-2>.card{padding:22px!important}
.company-profile-head+.grid-2 .project-actions{margin-top:18px!important}
@media(max-width:640px){
 .account-profile-tools{justify-content:flex-start;gap:18px;margin:-2px 0 15px;padding-bottom:10px;border-bottom:1px solid var(--line)}
 .account-tool-primary{font-size:10.5px}
 .account-tool{font-size:10px}
 .company-profile-head+.grid-2>.card{padding:18px!important}
}
.mobile-tabs{min-height:64px!important}
.mobile-tab{min-height:54px!important;padding:8px 5px!important;border-radius:10px!important}
.mobile-tab span{font-size:11px!important;font-weight:720!important;letter-spacing:0!important}
.mobile-tab.active{background:var(--navy)!important;color:#fff!important}
.mobile-tab.active span{font-weight:850!important;color:#fff!important}
@media(max-width:640px){
 .mobile-tabs{padding:6px 8px max(6px,env(safe-area-inset-bottom))!important;gap:5px!important}
 .mobile-tab{min-height:50px!important}
 .mobile-tab span{font-size:10.5px!important}
}


/* Lead-first dashboard */
.lead-home-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start}
.lead-home-head h1{max-width:680px}
.lead-home-head p{max-width:690px}
.lead-engine{margin:0 0 18px;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}
.lead-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.lead-match-card{appearance:none;border:1px solid var(--line);background:#fff;border-radius:12px;padding:15px;text-align:left;cursor:pointer;display:flex;flex-direction:column;min-height:158px}
.lead-match-card:hover{border-color:#b9c4ca;transform:translateY(-1px)}
.lead-match-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.lead-match-top>div{min-width:0;display:grid;gap:4px}
.lead-match-top strong{font-size:13px;line-height:1.25}
.lead-match-top small{font-size:9.5px;color:var(--muted);line-height:1.35}
.lead-match-top .badge{font-size:8px;white-space:nowrap}
.lead-match-proof{margin-top:14px;padding-top:11px;border-top:1px solid var(--line);font-size:9.5px;line-height:1.45;color:var(--muted)}
.lead-match-action{margin-top:auto;padding-top:12px;font-size:9.5px;font-weight:800;color:var(--navy)}
.profile-social-links{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 20px}
.profile-social-links a{display:inline-flex;align-items:center;min-height:34px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:10px;font-weight:750;color:var(--navy)}
@media(max-width:760px){
 .lead-home-head{grid-template-columns:1fr;gap:12px}
 .lead-home-head .dashboard-head-actions,.lead-home-head .dashboard-head-actions.trade-dashboard-actions{width:100%!important;max-width:none!important}
 .lead-match-grid{grid-template-columns:1fr}
 .lead-match-card{min-height:0}
 .lead-engine{padding:16px}
}


/* Simplified homepage actions + association directory */
.lead-home-actions{display:flex!important;align-items:center!important;gap:8px!important;width:auto!important;max-width:none!important}
.lead-home-action{appearance:none;border:1px solid var(--line);border-radius:9px;min-height:36px;padding:0 12px;font:inherit;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.lead-home-action.secondary{background:#fff;color:var(--navy)}
.lead-home-action.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.directory-filter{display:inline-flex;gap:4px!important}
.directory-filter button{min-width:104px}
@media(max-width:640px){
 .lead-home-actions,.lead-home-head .dashboard-head-actions,.lead-home-head .dashboard-head-actions.trade-dashboard-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
 .lead-home-action{width:100%;min-height:40px;padding:0 9px;font-size:9.5px}
 .directory-filter{width:100%}
 .directory-filter button{flex:1;min-width:0}
}

.company-profile-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important}
.company-profile-tools-inline{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.company-profile-tools-inline .account-tool{min-height:34px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);font-size:9.5px;font-weight:800}
.company-profile-tools-inline .account-tool:hover{background:var(--surface-2)}
@media(max-width:640px){.company-profile-head{display:grid!important;grid-template-columns:1fr!important}.company-profile-tools-inline{width:100%;display:grid;grid-template-columns:1fr 1fr}.company-profile-tools-inline .account-tool{width:100%}}


/* Stable company profile geometry: profile data must never resize/reflow the page shell */
.company-profile-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:16px!important;width:100%!important;min-width:0!important}
.company-profile-head .company-identity{min-width:0!important;max-width:100%!important}
.company-profile-head .company-identity>div:last-child{min-width:0!important}
.company-profile-head h1{font-size:clamp(24px,2.6vw,34px)!important;line-height:1.08!important;overflow-wrap:anywhere}
.profile-affiliation{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;max-width:100%!important}
.profile-affiliation .badge,.profile-affiliation button.badge{flex:0 0 auto!important;white-space:nowrap!important;font-size:8px!important}
.profile-membership-badge{max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.company-profile-tools-inline{display:grid!important;grid-template-columns:1fr 1fr!important;width:270px!important;max-width:270px!important;gap:7px!important}
.company-profile-tools-inline .account-tool{width:100%!important;min-width:0!important;white-space:nowrap!important}
.company-profile-head+.grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important}
.company-profile-head+.grid-2>.card{min-width:0!important;width:100%!important}
@media(max-width:760px){
 .company-profile-head{grid-template-columns:1fr!important;gap:12px!important}
 .company-profile-head .company-identity{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important}
 .company-profile-tools-inline{width:100%!important;max-width:none!important}
 .company-profile-head+.grid-2{grid-template-columns:1fr!important}
 .profile-affiliation{gap:5px!important}
 .profile-affiliation .badge,.profile-affiliation button.badge{font-size:7.5px!important}
}


/* Trade dashboard rhythm + three-state bid navigation */
.trade-dashboard-actions.lead-home-actions{align-self:start}
.dashboard-flow-stats.command-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:18px 0!important}
.dashboard-flow-stats.command-stats .command-stat{width:100%!important;min-width:0!important;min-height:82px!important;padding:14px 12px!important}
.lead-engine,.command-card{width:100%!important;box-sizing:border-box!important}
.lead-engine>.card-head,.command-card>.card-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important}
.section-link{appearance:none;border:0;background:transparent;padding:3px 0;color:var(--muted);font:inherit;font-size:9.5px;font-weight:650;cursor:pointer;white-space:nowrap}
.section-link:hover{color:var(--navy)}
.command-card{margin-top:0!important}
.trade-bid-group{width:100%!important}
@media(max-width:640px){
 .dashboard-flow-stats.command-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:14px 0!important}
 .dashboard-flow-stats.command-stats .command-stat{min-height:72px!important;padding:10px 5px!important}
 .dashboard-flow-stats.command-stats .command-stat strong{font-size:19px!important}
 .dashboard-flow-stats.command-stats .command-stat span{font-size:8.5px!important;line-height:1.15!important}
 .lead-engine>.card-head,.command-card>.card-head{gap:10px!important}
 .section-link{font-size:9px}
}


/* Builder primary project action + single bid-count hierarchy */
.builder-post-project{appearance:none;border:1px solid var(--navy);border-radius:9px;background:var(--navy);color:#fff;min-height:36px;padding:0 14px;font:inherit;font-size:10px;font-weight:750;cursor:pointer;white-space:nowrap;box-shadow:none}
.builder-post-project:hover{opacity:.92}
.bid-list-head{align-items:flex-start!important}
.bid-list-head>.badge{margin-top:5px!important;white-space:nowrap}
.trade-bid-group .bid-project-heading{min-height:auto!important}
@media(max-width:640px){
 .lead-home-actions .builder-post-project{width:100%;min-height:40px}
 .bid-list-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}
 .bid-list-head>div{min-width:0}
 .bid-list-head>.badge{flex:0 0 auto;margin-top:4px!important}
}


/* Unified section actions + Activity status pills */
.section-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:28px!important;padding:0 9px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;color:var(--muted)!important;font-size:9.5px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important}
.section-link:hover{color:var(--navy)!important;background:var(--surface-2)!important}
.command-row-end{min-width:92px;justify-content:flex-end!important}
.command-row-end .badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:66px!important;min-height:24px!important;padding:0 9px!important;line-height:1!important;text-align:center!important;white-space:nowrap!important;box-sizing:border-box!important}
@media(max-width:640px){
 .section-link{min-height:27px!important;padding:0 8px!important;font-size:9px!important}
 .command-row-end{min-width:80px;gap:7px!important}
 .command-row-end .badge{min-width:58px!important;min-height:22px!important;padding:0 7px!important;font-size:8px!important}
}

/* Consolidated trade opportunity filters */
.opportunity-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.opportunity-filters button{appearance:none;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);min-height:32px;padding:0 11px;font:inherit;font-size:10px;font-weight:700;cursor:pointer}
.opportunity-filters button:hover{background:var(--surface-2);color:var(--navy)}
.opportunity-filters button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.opportunity-filters button>span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:var(--surface-2);font-size:8px;font-weight:800;line-height:1;color:var(--muted)}
.opportunity-filters button.active>span{background:rgba(255,255,255,.16);color:#fff}
@media(max-width:640px){.opportunity-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.opportunity-filters button{width:100%;padding:0 7px;font-size:9px}}

/* Profile header balance: use the center space instead of stacking identity copy */
.company-profile-head{grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important}
.company-profile-head .company-identity{display:grid!important;grid-template-columns:auto minmax(280px,1fr) auto!important;align-items:start!important;column-gap:18px!important;width:100%!important;min-width:0!important}
.company-profile-head .company-identity>div:nth-child(2){min-width:0!important;max-width:none!important}
.company-profile-head .company-identity h1{max-width:none!important;margin-right:12px!important}
.company-profile-head .company-identity p{max-width:none!important}
.company-profile-head .profile-affiliation{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:wrap!important;max-width:none!important}
.company-profile-tools-inline{align-self:start!important;margin-left:12px!important}
@media(max-width:900px){
 .company-profile-head .company-identity{grid-template-columns:auto minmax(0,1fr)!important}
 .company-profile-tools-inline{grid-column:1/-1!important;margin-left:0!important;margin-top:12px!important;width:100%!important}
}
@media(max-width:600px){
 .company-profile-head .company-identity{grid-template-columns:1fr!important}
 .company-profile-head .profile-logo{margin-bottom:10px!important}
}

/* Centered, editable portfolio surface */
.portfolio-page{width:min(100%,980px);margin:0 auto}
.portfolio-page .app-back-row{margin-bottom:14px}
.portfolio-page-head{align-items:center!important}
.portfolio-shell{padding:0!important;overflow:hidden}
.portfolio-shell-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;border-bottom:1px solid var(--line)}
.portfolio-shell-head h3{margin:0 0 3px}
.portfolio-shell-head small,.portfolio-shell-head>span{color:var(--muted);font-size:10px}
.portfolio-page .portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px;margin:0}
.portfolio-page .portfolio-tile{display:flex;flex-direction:column;gap:9px;min-width:0;text-align:center}
.portfolio-photo-slot{appearance:none;width:100%;aspect-ratio:4/3;border:1px dashed #cbd2d4;border-radius:11px;background:var(--surface-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:16px;color:var(--muted);font:inherit;cursor:pointer;text-align:center;box-sizing:border-box}
.portfolio-photo-slot:hover{border-color:var(--navy);background:#fff;color:var(--navy)}
.portfolio-photo-plus{width:30px;height:30px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:20px;line-height:1;margin-bottom:3px}
.portfolio-photo-slot strong{font-size:11px;color:var(--ink)}
.portfolio-photo-slot small{font-size:9px;line-height:1.35}
.portfolio-tile-copy{display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 6px}
.portfolio-tile-copy>strong{font-size:12px}
.portfolio-tile-copy>small{font-size:9.5px;color:var(--muted)}
.portfolio-slot-ready{border-style:solid;background:#fff}
.portfolio-new-tile{justify-content:flex-start}
@media(max-width:760px){.portfolio-page .portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}}
@media(max-width:480px){.portfolio-page .portfolio-grid{grid-template-columns:1fr}.portfolio-page{width:100%}}

/* Restore Profile as a full-width app page */
.demo-content>.company-profile-head{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.demo-content>.company-profile-head+.grid-2{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.demo-content>.company-profile-head .company-identity{width:100%!important}

/* Full-page company profile shell */
.company-profile-page{width:100%;max-width:none;margin:0;display:block}
.company-profile-page>.company-profile-head{width:100%!important;max-width:none!important;margin:0 0 22px!important}
.company-profile-page>.company-profile-head .company-identity{width:100%!important;grid-template-columns:72px minmax(0,1fr) auto!important;align-items:center!important;column-gap:20px!important}
.company-profile-page>.company-profile-head .profile-logo{width:72px!important;height:72px!important}
.company-profile-page>.grid-2{width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1.35fr) minmax(340px,.9fr)!important;gap:20px!important;align-items:stretch!important}
.company-profile-page>.grid-2>.card{width:100%;min-width:0;box-sizing:border-box}
.company-profile-page .company-profile-tools-inline{display:flex;align-items:center;justify-content:flex-end;margin-left:0!important}
.profile-source-note{width:100%;box-sizing:border-box;margin:18px 0 0;padding:13px 16px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--muted);background:transparent}
.profile-source-note>div{display:flex;align-items:center;gap:9px;min-width:0}
.profile-source-note strong{font-size:10px;color:var(--ink);white-space:nowrap}
.profile-source-note span,.profile-source-note small{font-size:9.5px;line-height:1.4}
.profile-source-note small{white-space:nowrap}
@media(max-width:900px){
 .company-profile-page>.company-profile-head .company-identity{grid-template-columns:64px minmax(0,1fr)!important;align-items:start!important}
 .company-profile-page>.company-profile-head .profile-logo{width:64px!important;height:64px!important}
 .company-profile-page .company-profile-tools-inline{grid-column:2!important;justify-content:flex-start!important;margin-top:8px!important;width:auto!important}
 .company-profile-page>.grid-2{grid-template-columns:1fr!important}
}
@media(max-width:600px){
 .company-profile-page>.company-profile-head .company-identity{grid-template-columns:1fr!important}
 .company-profile-page .company-profile-tools-inline{grid-column:1!important}
 .profile-source-note{align-items:flex-start;flex-direction:column;gap:5px;padding:12px 2px}
 .profile-source-note>div{align-items:flex-start;flex-direction:column;gap:3px}
}

/* Proposal and RFI attachment controls */
.hidden-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.attachment-box{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px;margin:18px 0;padding:15px 16px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.attachment-box>div{display:grid;gap:3px}.attachment-box small,.attachment-status{font-size:9.5px;color:var(--muted)}
.attachment-status{grid-column:1/-1;padding-top:8px;border-top:1px solid var(--line)}
.rfi-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.attachment-box{grid-template-columns:1fr}.attachment-box .btn{justify-self:start}.rfi-actions{justify-content:flex-start}}

/* Company profile is content on the app canvas, never a second page/sheet */
.company-profile-page{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-height:0!important}
.company-profile-page>.company-profile-head{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 0 18px!important}
.company-profile-page>.grid-2{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
.company-profile-page>.profile-source-note{background:transparent!important;box-shadow:none!important}
.company-profile-page>.project-actions:empty{display:none!important}

/* Company profile v2: one native page, no nested card/page shell */
.company-profile-view{display:block;width:100%;max-width:none;margin:0;padding:0;background:transparent;border:0;box-shadow:none}
.company-profile-nav{min-height:0;margin:0 0 14px}
.company-profile-nav:empty{display:none}
.company-profile-nav .back-btn{border:0!important;background:transparent!important;box-shadow:none!important;padding:0 2px!important;min-height:30px!important;color:var(--muted)!important}
.company-profile-hero{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:20px;width:100%;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--line);background:transparent;box-sizing:border-box}
.company-profile-hero .profile-logo{width:72px;height:72px}
.company-profile-title{min-width:0}
.company-profile-title h1{margin:0 0 5px;font-size:30px;letter-spacing:-.04em}
.company-profile-title p{margin:0 0 10px;color:var(--muted);font-size:13px}
.company-profile-title .profile-affiliation{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap;margin:0}
.company-profile-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:32px;width:100%;margin:0;padding:0;background:transparent}
.company-profile-section{min-width:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.company-profile-section+.company-profile-section{border-left:1px solid var(--line);padding-left:32px}
.company-profile-section h3{margin:0 0 11px;padding-top:22px;font-size:14px}
.company-profile-section h3:first-child{padding-top:0}
.company-profile-section .kv-grid{gap:12px}
.company-profile-section .kv{padding:12px 0}
.company-profile-side .project-actions{margin-top:22px}
.company-profile-view>.profile-source-note{margin-top:28px;padding:14px 0 0;border-top:1px solid var(--line);background:transparent!important}
@media(max-width:900px){
 .company-profile-hero{grid-template-columns:64px minmax(0,1fr);align-items:start}
 .company-profile-hero .profile-logo{width:64px;height:64px}
 .company-profile-tools-inline{grid-column:2;justify-content:flex-start!important;width:auto!important;margin:0!important}
 .company-profile-body{grid-template-columns:1fr;gap:24px}
 .company-profile-section+.company-profile-section{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:24px}
}
@media(max-width:600px){
 .company-profile-hero{grid-template-columns:1fr;gap:12px}
 .company-profile-tools-inline{grid-column:1}
 .company-profile-title h1{font-size:25px}
}

/* Own-profile controls */
.profile-settings-btn{appearance:none;border:1px solid var(--navy);border-radius:10px;background:var(--navy);color:#fff;min-width:126px;padding:9px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;font:inherit;cursor:pointer;box-shadow:0 4px 12px rgba(15,35,51,.12)}
.profile-settings-btn span{font-size:8px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.72}
.profile-settings-btn strong{font-size:10.5px;font-weight:800}
.profile-settings-btn:hover{transform:translateY(-1px)}
.profile-logo-editable{position:relative;cursor:pointer;overflow:hidden;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
.profile-photo-edit{position:absolute;left:6px;right:6px;bottom:5px;padding:3px 4px;border-radius:5px;background:rgba(15,35,51,.86);color:#fff;font-size:7.5px;font-weight:800;text-align:center;letter-spacing:.04em;text-transform:uppercase}
.profile-logo-editable:hover{outline:2px solid rgba(15,35,51,.18);outline-offset:2px}
.profile-logo-editable.has-profile-photo .profile-logo-icon,.profile-logo-editable.has-profile-photo .profile-logo-label,.profile-logo-editable.has-profile-photo .profile-logo-sub{opacity:0}
@media(max-width:600px){.profile-settings-btn{min-width:0;width:auto}}

/* Projects page CTA + Post Project flow */
.projects-post-btn{appearance:none;border:1px solid var(--navy);border-radius:9px;background:var(--navy);color:#fff;min-height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:10.5px;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 3px 10px rgba(15,35,51,.1)}
.projects-post-btn span{display:grid;place-items:center;width:17px;height:17px;border:1px solid rgba(255,255,255,.5);border-radius:50%;font-size:13px;line-height:1}
.projects-post-btn:hover{transform:translateY(-1px)}
.new-project-page{width:100%;max-width:980px;margin:0 auto}
.new-project-page .app-back-row{margin:0 0 14px}
.new-project-page .app-back-btn{appearance:none;border:0;background:transparent;color:var(--muted);padding:5px 1px;display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:10px;font-weight:750;cursor:pointer}
.new-project-page .app-back-btn:hover{color:var(--navy)}
.new-project-head{margin-bottom:14px!important}
.new-project-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 18px}
.new-project-progress>span{min-width:0;min-height:36px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:5px;font-size:8.5px;font-weight:700;text-align:center}
.new-project-progress>span b{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;background:var(--surface-2);font-size:8px}
.new-project-progress>span.active{border-color:var(--navy);color:var(--navy);background:var(--surface-2)}
.new-project-progress>span.active b{background:var(--navy);color:#fff}
@media(max-width:640px){.projects-post-btn{min-height:34px;padding:0 11px}.new-project-progress{grid-template-columns:1fr;gap:4px}.new-project-progress>span{justify-content:flex-start;min-height:30px}}

/* Refined own-profile controls */
.company-profile-hero{grid-template-columns:88px minmax(0,1fr) auto!important;gap:26px!important}
.company-profile-hero .profile-logo{width:88px!important;height:88px!important;border-radius:17px!important}
.profile-logo-editable .profile-photo-edit{left:8px;right:8px;bottom:7px;padding:4px 5px;font-size:8px}
.profile-notification-link{appearance:none;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy);min-height:34px;padding:0 11px;font:inherit;font-size:9.5px;font-weight:750;cursor:pointer;white-space:nowrap}
.profile-notification-link:hover{background:var(--surface-2)}
.company-profile-tools-inline{display:flex!important;width:auto!important;max-width:none!important;align-items:center!important;justify-content:flex-end!important}
.company-profile-side .project-actions{margin-top:28px!important;gap:10px!important}
.company-profile-side .project-actions .btn{min-height:38px!important;padding-left:15px!important;padding-right:15px!important;font-size:10.5px!important}
.association-member-copy{display:flex!important;align-items:baseline!important;gap:5px!important;flex-wrap:wrap!important}
.association-member-copy strong,.association-member-copy small{margin:0!important}
@media(max-width:900px){.company-profile-hero{grid-template-columns:76px minmax(0,1fr)!important;gap:18px!important}.company-profile-hero .profile-logo{width:76px!important;height:76px!important}.company-profile-tools-inline{grid-column:2!important;justify-content:flex-start!important}}
@media(max-width:600px){.company-profile-hero{grid-template-columns:1fr!important}.company-profile-tools-inline{grid-column:1!important}}

/* Simplified primary navigation and account controls */
.mobile-tabs{justify-content:space-around!important}
.mobile-tabs .mobile-tab{flex:1 1 0!important;max-width:180px!important}
.trade-bids-main{margin-bottom:18px!important}
.profile-portfolio-inline{margin:10px 0 20px;display:flex;align-items:center}
.profile-portfolio-inline .btn{min-height:38px;padding:0 15px;font-size:10.5px}
.settings-stack{display:grid;gap:16px;max-width:820px}
.settings-links{padding:0!important;overflow:hidden}
.settings-links>button{appearance:none;width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;color:var(--ink);cursor:pointer}
.settings-links>button:last-child{border-bottom:0}
.settings-links>button:hover{background:var(--surface-2)}
.settings-links>button span{display:grid;gap:3px}.settings-links>button small{color:var(--muted);font-weight:500}.settings-links>button b{font-size:18px;color:var(--muted)}

/* Unified company profile masthead — identical for Builder and Trade Partner */
.company-profile-view .company-profile-hero{display:grid!important;grid-template-columns:112px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;column-gap:30px!important;row-gap:10px!important;min-height:148px!important;width:100%!important;padding:20px 0 24px!important;margin:0 0 26px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.company-profile-view .company-profile-hero .profile-logo{width:112px!important;height:112px!important;min-width:112px!important;border-radius:20px!important;margin:0!important}
.company-profile-view .company-profile-title{align-self:center!important;min-width:0!important;padding:0!important}
.company-profile-view .company-profile-title h1{margin:0 0 7px!important;font-size:34px!important;line-height:1.05!important;letter-spacing:-.04em!important}
.company-profile-view .company-profile-title p{margin:0 0 13px!important;font-size:13px!important;line-height:1.35!important}
.company-profile-view .company-profile-title .profile-affiliation{gap:7px!important;margin:0!important}
.company-profile-view .company-profile-tools-inline{align-self:center!important;justify-self:end!important;grid-column:auto!important;width:auto!important;margin:0!important;padding:0!important}
.company-profile-view .profile-notification-link{min-height:38px!important;padding:0 14px!important;border-radius:9px!important;font-size:10px!important}
.company-profile-view .profile-logo-editable .profile-photo-edit{left:10px!important;right:10px!important;bottom:9px!important;padding:5px!important;font-size:8px!important}
@media(max-width:900px){
 .company-profile-view .company-profile-hero{grid-template-columns:96px minmax(0,1fr) auto!important;column-gap:22px!important;min-height:128px!important}
 .company-profile-view .company-profile-hero .profile-logo{width:96px!important;height:96px!important;min-width:96px!important}
 .company-profile-view .company-profile-title h1{font-size:30px!important}
 .company-profile-view .company-profile-tools-inline{grid-column:3!important;justify-self:end!important}
}
@media(max-width:680px){
 .company-profile-view .company-profile-hero{grid-template-columns:86px minmax(0,1fr)!important;align-items:center!important;gap:16px!important;padding-top:10px!important}
 .company-profile-view .company-profile-hero .profile-logo{width:86px!important;height:86px!important;min-width:86px!important}
 .company-profile-view .company-profile-title h1{font-size:25px!important}
 .company-profile-view .company-profile-tools-inline{grid-column:2!important;justify-self:start!important}
}

/* Three-destination mobile nav: use the full bottom rail */
@media(max-width:980px){
 .mobile-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;left:0!important;right:0!important;gap:8px!important;padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important}
 .mobile-tabs .mobile-tab{width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;padding-left:10px!important;padding-right:10px!important}
}
@media(max-width:640px){
 .mobile-tabs{gap:7px!important;padding-left:10px!important;padding-right:10px!important}
 .mobile-tabs .mobile-tab{min-height:52px!important;font-size:11px!important}
 .mobile-tabs .mobile-tab span{font-size:11px!important}
}

/* Inline trade bid workspace */
.trade-bids-main{margin-bottom:18px!important}
.inline-opportunity-filters{margin:0 0 18px!important}
.inline-opportunity-grid{margin-top:0!important}
.dashboard-workflow-card{margin-top:20px!important}
.dashboard-workflow-card .card-head small{line-height:1.45}

/* Unified Bids views and compact dashboard pipeline */
.trade-bids-main{margin-bottom:18px!important}
.dashboard-status-card{overflow:hidden}
.dashboard-status-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 0 12px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.dashboard-status-strip .stat{border:0!important;border-right:1px solid var(--line)!important;border-radius:0!important;min-height:72px!important;background:var(--surface-2)!important}
.dashboard-status-strip .stat:last-child{border-right:0!important}
.dashboard-status-card .command-list{border-top:1px solid var(--line);padding-top:6px}
@media(max-width:680px){
 .dashboard-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-status-strip .stat:nth-child(2){border-right:0!important}
 .dashboard-status-strip .stat:nth-child(-n+2){border-bottom:1px solid var(--line)!important}
}


/* Activity center — shared RBN page language */
.activity-page-head{align-items:center}
.activity-settings-control{appearance:none;border:0;background:transparent;color:var(--navy);padding:0;display:inline-flex;align-items:center;gap:9px;font:inherit;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.activity-settings-icon{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;font-size:15px;box-shadow:0 2px 8px rgba(14,31,44,.04)}
.activity-settings-control:hover .activity-settings-icon{background:var(--surface-2)}
.activity-center-card{padding:6px 20px!important;overflow:hidden}
.activity-center-item{width:100%;min-height:64px;padding:14px 0!important;border-bottom:1px solid var(--line)!important;border-radius:0}
.activity-center-item:last-child{border-bottom:0!important}
.activity-center-item:hover{background:var(--surface-2)}
.activity-center-item .activity-dot{width:32px;height:32px}
.activity-copy{min-width:0;display:grid;gap:4px;text-align:left}
.activity-copy strong{font-size:12px;line-height:1.35}
.activity-copy small{color:var(--muted);font-size:10.5px;line-height:1.4}
.activity-chevron{color:var(--muted);font-size:20px;line-height:1}
@media(max-width:640px){.activity-page-head{align-items:flex-start}.activity-settings-control>span:last-child{display:none}.activity-center-card{padding:4px 14px!important}.activity-center-item{grid-template-columns:32px minmax(0,1fr) auto!important;gap:10px}.activity-center-item .badge{justify-self:end}.activity-chevron{display:none}}


/* Settings/profile continuity */
.settings-profile-link{padding:0!important;overflow:hidden}
.settings-profile-link>button{appearance:none;width:100%;border:0;background:#fff;padding:15px 16px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;color:var(--ink);cursor:pointer}
.settings-profile-link>button:hover{background:var(--surface-2)}
.settings-profile-avatar{width:38px;height:38px;border-radius:50%;background:#e8edef;display:grid;place-items:center;color:var(--navy);font-size:10px;font-weight:850}
.settings-profile-link button>span:nth-child(2){display:grid;gap:3px}
.settings-profile-link small{color:var(--muted);font-weight:500}
.settings-profile-link b{font-size:18px;color:var(--muted)}


/* Activity notification semantics + unified detail header */
.activity-dot-rfi{font-weight:850}
.activity-dot-award{font-weight:850}
.activity-dot-invite{font-size:15px;font-weight:850}
.activity-dot-update{font-size:13px}
.proposal-review-head{align-items:center}
.proposal-review-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:640px){.proposal-review-head{align-items:flex-start}.proposal-review-actions{justify-content:flex-start}}


/* Activity center empty state */
.activity-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;padding:28px;color:var(--muted)}
.activity-empty strong{color:var(--ink);font-size:14px}
.activity-empty small{max-width:360px;line-height:1.45}


/* Activity center interaction state */
.activity-row-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:stretch;border-bottom:1px solid var(--line)}
.activity-row-shell:last-child{border-bottom:0}
.activity-row-shell .activity-center-item{border-bottom:0!important}
.activity-row-shell.is-unread:before{content:"";position:absolute;left:-10px;top:50%;transform:translateY(-50%);width:5px;height:5px;border-radius:50%;background:var(--navy)}
.activity-row-shell.is-read .activity-center-item{opacity:.72}
.activity-delete{appearance:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:18px;cursor:pointer;display:grid;place-items:center;padding:0}
.activity-delete:hover{color:var(--ink);background:var(--surface-2)}
@media(max-width:640px){.activity-row-shell{grid-template-columns:minmax(0,1fr) 34px}.activity-row-shell.is-unread:before{left:-7px}.activity-delete{font-size:20px}}


/* Activity feed status */
.activity-feed-meta{display:flex;align-items:center;gap:8px;margin:-8px 0 10px;padding:0 2px;color:var(--muted);font-size:10.5px}
.activity-feed-meta strong{color:var(--ink);font-size:10.5px}
.activity-feed-meta span:before{content:"·";margin-right:8px}


/* Dashboard activity mirrors full feed */
.dashboard-activity-empty{padding:18px 14px;display:grid;gap:4px;text-align:center;color:var(--muted)}
.dashboard-activity-empty strong{color:var(--ink);font-size:12px}
.dashboard-activity-empty small{font-size:10.5px}


/* Simplified role dashboards */
.simple-home-head{align-items:center;margin-bottom:16px}
.simple-home-head h1{margin-top:3px}
.home-attention{margin-bottom:14px}
.home-attention .card-head{padding-bottom:10px}
.home-continue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}
.home-primary-card{appearance:none;border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px;text-align:left;color:var(--ink);display:grid;gap:7px;cursor:pointer;min-height:142px}
.home-primary-card:hover{background:var(--surface-2);transform:translateY(-1px)}
.home-primary-card strong{font-size:16px;line-height:1.25}
.home-primary-card small{color:var(--muted);line-height:1.45}
.home-primary-card b{margin-top:auto;color:var(--navy);font-size:11px}
.home-quiet-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.home-quiet-links button{appearance:none;border:1px solid var(--line);border-radius:12px;background:transparent;padding:12px 13px;text-align:left;display:grid;gap:3px;color:var(--ink);cursor:pointer}
.home-quiet-links button:hover{background:var(--surface-2)}
.home-quiet-links strong{font-size:11.5px}
.home-quiet-links small{font-size:9.5px;color:var(--muted)}
@media(max-width:640px){.simple-home-head{align-items:flex-start}.home-continue-grid{grid-template-columns:1fr}.home-primary-card{min-height:120px}.home-quiet-links{grid-template-columns:1fr}.home-quiet-links button{grid-template-columns:1fr auto;align-items:center}.home-quiet-links button small{text-align:right}}


/* Bid cards — make the next action obvious */
.bid-next-step{display:block;margin-top:6px;color:var(--ink);font-size:10.5px;line-height:1.4}
.bid-next-step b{font-weight:800}
.bid-list-actions{align-items:center}
.bid-list-actions .btn{white-space:nowrap}
@media(max-width:640px){.bid-list-row{align-items:flex-start}.bid-list-actions{width:100%;justify-content:space-between}.bid-list-actions .btn{margin-left:auto}}


/* Builder bid packages — decision-first hierarchy */
.builder-next-package{display:grid;align-content:start}
.builder-package-next{display:block;margin-top:9px;padding-top:9px;border-top:1px solid var(--line);color:var(--ink);font-size:10.5px;line-height:1.4}
.builder-package-next b{font-weight:800}
.builder-next-package .bid-folder-link{margin-top:7px;font-weight:800}


/* Opportunity → bid handoff */
.opportunity-next-action{margin-top:14px;padding-top:13px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}
.opportunity-next-action>span{font-size:10.5px;line-height:1.4;color:var(--ink)}
.opportunity-next-action>span b{font-weight:800}
.opportunity-profile-link{margin-top:10px}
@media(max-width:640px){.opportunity-next-action{align-items:stretch;flex-direction:column}.opportunity-next-action .btn{width:100%}.opportunity-profile-link{width:max-content}}


/* Bid Room guidance */
.bidroom-next{margin:12px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.bidroom-next>div{display:grid;gap:3px}
.bidroom-next strong{font-size:12px;line-height:1.35;color:var(--ink)}
@media(max-width:640px){.bidroom-next{align-items:stretch;flex-direction:column}.bidroom-next .btn{width:100%}.bidroom-tabs{overflow-x:auto;scrollbar-width:none}.bidroom-tabs::-webkit-scrollbar{display:none}}


/* Builder Projects — next-action list */
.builder-project-list{display:grid;gap:12px}
.builder-project-card{margin:0}
.builder-project-card .card-head{margin-bottom:7px}
.builder-project-card p{margin:0;color:var(--muted)}
.builder-project-next{margin-top:13px;padding-top:12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}
.builder-project-next>span{font-size:10.5px;line-height:1.4;color:var(--ink)}
.builder-project-next>span b{font-weight:800}
@media(max-width:640px){.builder-project-next{align-items:stretch;flex-direction:column}.builder-project-next .btn{width:100%}}


/* Find Work — simple opportunity list */
.simple-opportunity-grid{margin-top:12px}
.simple-opportunity-card .project-body{display:grid;gap:8px}
.simple-opportunity-card .opportunity-card-top small{display:block;margin-top:4px;color:var(--muted)}
.simple-opportunity-card .opportunity-next-action{margin-top:5px}
.simple-opportunity-filters{margin-bottom:0}
@media(max-width:640px){.simple-opportunity-filters{display:flex;overflow-x:auto;scrollbar-width:none}.simple-opportunity-filters::-webkit-scrollbar{display:none}.simple-opportunity-filters button{white-space:nowrap;flex:0 0 auto}.simple-opportunity-card .opportunity-badges{justify-content:flex-start}}


/* Association search — profile first, network actions second */
.directory-card-actions{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}
.directory-secondary-actions{display:flex;align-items:center;gap:12px}
.directory-secondary-actions .text-action{font-size:10px}
.directory-secondary-actions .text-action:disabled{opacity:.55;cursor:default}
@media(max-width:640px){.directory-card-actions{align-items:stretch;flex-direction:column}.directory-card-actions>.btn{width:100%}.directory-secondary-actions{justify-content:space-between}}


/* Connection requests stay simple and actionable inside the directory */
.directory-request-actions{display:flex;align-items:center;gap:8px}
@media(max-width:640px){.directory-request-actions{width:100%}.directory-request-actions .btn{flex:1}}


/* Directory filter counts */
.directory-filter button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.directory-filter button>span{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--surface-2);font-size:8px;font-weight:800;line-height:1;color:var(--muted)}
.directory-filter button.active>span{background:rgba(255,255,255,.16);color:#fff}
@media(max-width:640px){.directory-filter{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px!important}.directory-filter button{width:100%;min-width:0;padding:7px 5px;font-size:9px}.directory-filter button:first-child{grid-column:1/-1}}

/* Network relationship modes: distinct from generic directory filters */
.network-view-toggle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
.network-mode{min-height:74px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 12px;display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:9px;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(13,17,23,.04);transition:.15s ease}
.network-mode:hover{border-color:var(--navy);transform:translateY(-1px)}
.network-mode.active{border:2px solid var(--navy);padding:10px 11px;box-shadow:0 4px 12px rgba(13,17,23,.10)}
.network-mode-icon{width:28px;height:28px;border-radius:8px;background:var(--surface-2);display:grid;place-items:center;font-weight:850;color:var(--navy)}
.network-mode.active .network-mode-icon{background:var(--navy);color:#fff}
.network-mode>span:nth-child(2){display:grid;gap:2px;min-width:0}.network-mode strong{font-size:11px}.network-mode small{font-size:9px;color:var(--muted);font-weight:600}.network-mode>b{min-width:24px;height:24px;border-radius:999px;background:var(--surface-2);display:grid;place-items:center;font-size:9px}.network-mode.active>b{background:var(--navy);color:#fff}
@media(max-width:640px){.network-view-toggle{grid-template-columns:1fr}.network-mode{min-height:62px}}

/* Directory relationship views */
.directory-relationship-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0 0 12px;padding:7px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}
.directory-relationship-tabs .filter-pill{min-height:40px;border:1px solid transparent;background:transparent;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;font-weight:750;cursor:pointer;color:var(--muted)}
.directory-relationship-tabs .filter-pill:hover{background:#fff;border-color:var(--line);color:var(--navy)}
.directory-relationship-tabs .filter-pill.active{background:#fff;border-color:var(--navy);color:var(--navy);box-shadow:0 2px 7px rgba(13,17,23,.08)}
.directory-relationship-tabs .filter-pill b{min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:8px}
.directory-relationship-tabs .filter-pill.active b{background:var(--navy);border-color:var(--navy);color:#fff}
@media(max-width:700px){.directory-relationship-tabs{display:flex;overflow-x:auto;scrollbar-width:none}.directory-relationship-tabs::-webkit-scrollbar{display:none}.directory-relationship-tabs .filter-pill{flex:0 0 auto;padding:0 12px}}

.network-view-hint{margin:-5px 0 12px;padding:0 2px;font-size:10px;color:var(--muted);font-weight:600}.network-row-signals{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}.network-row-signals .badge{font-size:8px}

.directory-company-signals{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:7px 0}.directory-relationship-panel{margin:9px 0 11px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft,#f8f9fa)}.directory-relationship-panel>small{display:block;margin-bottom:5px;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.directory-relationship-panel .network-row-signals{margin-top:0}
