:root {
  --navy: #0b1d35;
  --navy-2: #102846;
  --navy-3: #173b63;
  --gold: #c69a3b;
  --gold-2: #e0bd68;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe5ec;
  --soft-line: #edf1f5;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ok: #16754d;
  --warn: #9b5a00;
  --danger: #b42318;
  --info: #175cd3;
  --shadow: 0 20px 55px rgba(10, 31, 68, 0.10);
  --shadow-soft: 0 10px 32px rgba(10, 31, 68, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}
* { 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(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: white; padding: 10px 14px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223,229,236,0.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-title { display: block; font-weight: 850; color: var(--navy); letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header .brand-title-short { display: none !important; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 0; }
.nav { display: flex; align-items: center; gap: 18px; color: #344054; font-size: 14px; font-weight: 650; }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  min-height: 42px;
  background: white;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.mobile-nav-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.mobile-nav-panel {
  display: none;
  padding: 0 0 16px;
  border-top: 1px solid rgba(223,229,236,0.8);
}
.mobile-nav-panel:not([hidden]) { display: block; }
.mobile-nav {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}
.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
  color: #344054;
  font-size: 15px;
  font-weight: 700;
}
.mobile-nav-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 17px;
  min-height: 42px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: #07172b; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #101828; }
.btn-outline { background: white; border-color: var(--line); color: var(--navy); }
.btn-light { background: rgba(255,255,255,0.13); color: white; border-color: rgba(255,255,255,0.22); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 12px; min-height: 34px; font-size: 13px; }
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 75% 10%, rgba(198,154,59,0.26), transparent 32%), linear-gradient(135deg, #08172a 0%, #102846 54%, #173b63 100%);
  color: white;
  padding: 78px 0 58px;
}
.hero:before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 78%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #f7dd9d; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 32px; height: 2px; background: var(--gold-2); display: inline-block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .96; letter-spacing: -0.06em; margin: 18px 0 20px; }
.hero-lede { font-size: clamp(18px, 2.1vw, 22px); color: #d9e3ef; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.09); color: #edf5ff; }
.pill.dark { color: var(--navy); background: #f5f7fa; border-color: var(--line); }
.pill.ok { color: #075e3a; background: #eaf8f1; border-color: #c4ead8; }
.pill.warn { color: #7a4100; background: #fff4df; border-color: #f6d794; }
.hero-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 28px;
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}
.hero-card-logo { width: 154px; margin-bottom: 20px; }
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.stat-box { background: #f7f9fc; border: 1px solid var(--soft-line); border-radius: 16px; padding: 14px; }
.stat-box strong { display: block; font-size: 24px; color: var(--navy); letter-spacing: -0.04em; }
.stat-box span { color: var(--muted); font-size: 12px; font-weight: 700; }
.section { padding: 74px 0; }
.section-tight { padding: 46px 0; }
.section-white { background: white; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.section-kicker { color: var(--gold); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 9px; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.045em; color: var(--navy); margin-bottom: 12px; }
.section-lede { color: var(--muted); font-size: 17px; max-width: 780px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card h3 { color: var(--navy); margin-bottom: 8px; letter-spacing: -0.02em; }
.card p, .muted { color: var(--muted); }
.icon-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(198,154,59,.18), rgba(16,40,70,.08));
  border: 1px solid var(--soft-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); font-weight: 900; margin-bottom: 16px;
}
.clean-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.clean-list li { position: relative; padding-left: 20px; color: #344054; }
.clean-list li:before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 99px; background: var(--gold); }
.split-panel {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: stretch;
}
.readiness-panel { background: var(--navy); color: white; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.readiness-panel h2 { color: white; }
.readiness-panel .section-lede { color: #d3e1f2; }
.data-list { display: grid; gap: 10px; margin-top: 22px; }
.data-row { display: grid; grid-template-columns: 190px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.data-row span:first-child { color: #b7c8dc; font-weight: 750; }
.notice-box {
  padding: 16px 18px; border-radius: 16px;
  background: #fff8e8; border: 1px solid #f3d48d; color: #684200;
}
.form-panel { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-row { display: grid; gap: 7px; }
.form-row.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 850; color: #344054; }
input, select, textarea {
  width: 100%; border: 1px solid #cfd8e3; border-radius: 12px; padding: 11px 12px;
  background: #fff; color: var(--ink); outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 108px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(23,59,99,0.12); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.check-card { display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); padding: 10px; border-radius: 12px; color: #344054; font-weight: 650; }
.check-card input { width: auto; }
.footer { background: #07172b; color: #d8e5f5; padding: 36px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; align-items: start; }
.footer a { color: white; font-weight: 700; }
.footer .brand-title { color: white; }
.admin-body { background: #f5f7fa; }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 282px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #07172b; color: #dbe8f5; padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.sidebar .brand { margin-bottom: 22px; min-width: 0; }
.sidebar .brand img { width: 50px; height: 50px; background: rgba(255,255,255,0.92); border-radius: 14px; padding: 4px; }
.sidebar .brand-title { color: white; }
.sidebar .brand-sub { color: #9fb2cb; }
.side-nav { display: grid; gap: 6px; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; color: #dbe8f5; font-weight: 700; font-size: 14px;
}
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,0.10); color: white; }
.main { min-width: 0; }
.topbar {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); padding: 0 28px; position: sticky; top: 0; z-index: 40;
}
.topbar h1 { color: var(--navy); font-size: 26px; line-height: 1.1; margin: 0; letter-spacing: -0.04em; }
.topbar-user { color: var(--muted); font-size: 13px; font-weight: 750; }
.content { padding: 28px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-soft); }
.kpi .num { font-size: 34px; font-weight: 900; letter-spacing: -0.05em; color: var(--navy); }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-soft); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: top; }
th { color: #475467; background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td { font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}
.empty-state strong { display: block; color: var(--navy); }
.empty-state p { margin: 4px 0 0; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 850; background: #eef2f6; color: #344054; white-space: nowrap; }
.status.open, .status.found, .status.reviewing, .status.submitted { background: #eaf1ff; color: #175cd3; }
.status.awarded, .status.active, .status.paid, .status.done, .status.completed, .status.preferred { background: #eaf8f1; color: #067647; }
.status.lost, .status.cancelled, .status.overdue, .status.danger, .status.do-not-use { background: #fff0ee; color: #b42318; }
.status.waiting, .status.pending, .status.due { background: #fff7e6; color: #9b5a00; }
.panel { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.panel h2 { font-size: 24px; margin-bottom: 14px; }
.panel h3 { margin: 0 0 10px; color: var(--navy); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.detail { background: #f8fafc; border: 1px solid var(--soft-line); border-radius: 14px; padding: 12px; }
.detail .label { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.detail .value { margin-top: 4px; color: var(--ink); font-weight: 750; overflow-wrap: anywhere; }
.action-list { display: grid; gap: 10px; }
.action-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px; border: 1px solid var(--soft-line); border-radius: 14px; background: #fbfcfe; }
.action-item strong { color: var(--navy); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 20% 10%, rgba(198,154,59,.22), transparent 35%), linear-gradient(135deg, #07172b, #102846); }
.login-card { width: min(460px, 100%); background: white; border-radius: 24px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.login-logo { width: 130px; margin: 0 auto 18px; }
.alert { border-radius: 14px; padding: 13px 14px; margin-bottom: 16px; font-weight: 700; }
.alert.info { background: #eaf1ff; color: #175cd3; border: 1px solid #c7d7fe; }
.alert.success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.alert.warn { background: #fff7e6; color: #9b5a00; border: 1px solid #fedf89; }
.alert.danger { background: #fff0ee; color: #b42318; border: 1px solid #fecdca; }
.link { color: var(--info); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.mini { font-size: 12px; color: var(--muted); }
.codebox { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: #0b1d35; color: white; border-radius: 12px; padding: 12px; overflow-x: auto; }
.progress-bar { height: 10px; background: #edf1f5; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--gold)); }
.public-thanks { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--bg); }
.public-thanks .card { max-width: 660px; text-align: center; }
@media (max-width: 1040px) {
  .nav { display: none; }
  .header-actions { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .header-inner { gap: 14px; }
  .brand { min-width: 0; }
  .hero-grid, .split-panel { grid-template-columns: 1fr; }
  .grid-4, .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .side-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 66px; gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand-sub { display: none; }
  .brand-copy { max-width: 170px; }
  .brand-title { white-space: normal; overflow: visible; text-overflow: clip; }
  .brand-title-full { display: block; font-size: 14px; line-height: 1.05; }
  .site-header .brand-title-short { display: none !important; }
  .mobile-nav-toggle { padding: 9px 12px; min-height: 38px; font-size: 13px; }
  .mobile-nav-actions .btn { flex: 1 1 150px; }
  .hero { padding: 56px 0 42px; }
  .section { padding: 48px 0; }
  .section-head { display: block; }
  .grid-2, .grid-3, .grid-4, .kpi-grid, .form-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px; }
  .side-nav { grid-template-columns: 1fr; }
  .empty-state { display: grid; }
  .empty-state .btn { width: 100%; }
  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .mobile-command-item, .quick-grid a { min-width: 0; overflow-wrap: anywhere; }
  .mobile-command-item strong, .mobile-command-metric strong { overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .header-inner { min-height: 62px; gap: 6px; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy { max-width: 145px; }
  .brand-title-full { font-size: 12px; line-height: 1.05; }
  .mobile-nav-toggle { padding: 8px 10px; min-height: 36px; font-size: 12px; }
}
@media print {
  .site-header, .sidebar, .topbar, .btn, .toolbar { display: none !important; }
  body, .admin-body { background: white; }
  .portal-shell { display: block; }
  .content { padding: 0; }
  .panel, .card, .table-wrap { box-shadow: none; break-inside: avoid; }
}

/* Phase intelligence import/export workflow */
.phase-panel { border-color: rgba(198,154,59,.35); background: linear-gradient(180deg, #ffffff, #fbfcff); }
.import-box { border: 1px dashed rgba(15, 35, 66, .25); border-radius: 16px; padding: 14px; margin: 12px 0 18px; background: #f8fafc; }
.import-box > summary { list-style: none; }
.import-box > summary::-webkit-details-marker { display: none; }
.phase-tabs { display: grid; gap: 12px; }
.phase-tabs > details { border: 1px solid var(--soft-line); border-radius: 16px; background: #fff; overflow: hidden; }
.phase-tabs > details > summary { cursor: pointer; padding: 14px 16px; font-weight: 900; color: var(--navy); background: #f8fafc; border-bottom: 1px solid var(--soft-line); }
.phase-card { padding: 16px; display: grid; gap: 14px; }
.phase-summary { border: 1px solid rgba(198,154,59,.28); background: #fffaf0; border-radius: 14px; padding: 13px 14px; }
.phase-summary p { margin: 6px 0 0; color: var(--ink); font-weight: 650; }
.phase-grid { align-items: start; }
.phase-mini-block { border: 1px solid var(--soft-line); background: #fbfcfe; border-radius: 14px; padding: 12px; }
.phase-mini-block strong { color: var(--navy); }
.phase-mini-block ul { margin-top: 8px; }
.raw-details { border: 1px solid var(--soft-line); border-radius: 14px; background: #f8fafc; padding: 10px 12px; }
.raw-details summary { cursor: pointer; font-weight: 850; color: var(--navy); }
.raw-details pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; max-height: 420px; overflow: auto; font-size: 12px; }
@media (max-width: 720px) {
  .phase-card { padding: 12px; }
  .phase-panel .toolbar { display: block; }
  .phase-panel .toolbar .btn { margin: 4px 4px 4px 0; }
}

/* v3_23: opportunity detail AI/readability polish */
.phase-panel {
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.phase-panel h2 {
  color: #0f2a54;
}
.phase-ai-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.auto-collapsed-panel {
  margin: 0;
}
.auto-collapsed-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.auto-collapsed-summary::-webkit-details-marker {
  display: none;
}
.auto-collapsed-summary h2,
.auto-collapsed-summary h3 {
  margin: 0;
}
.auto-collapsed-panel[open] .auto-collapsed-summary {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}
@media (max-width: 760px) {
  .phase-ai-status { align-items: flex-start; }
}

/* v3_24: sidebar consolidation / nested sections */
.side-group {
  border-radius: 12px;
  overflow: hidden;
}
.side-group > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbe8f5;
  font-weight: 800;
  font-size: 14px;
  list-style: none;
}
.side-group > summary::-webkit-details-marker { display: none; }
.side-group > summary::after { content: '▾'; opacity: .72; font-size: 11px; }
.side-group:not([open]) > summary::after { content: '▸'; }
.side-group > summary:hover,
.side-group.active > summary { background: rgba(255,255,255,0.10); color: #fff; }
.side-group > div { display: grid; gap: 4px; padding: 4px 0 4px 10px; }
.side-group > div a { font-size: 13px; padding: 8px 10px; border-radius: 10px; color: #c9d7e8; }
.side-group > div a::before { content: '•'; opacity: .6; margin-right: 6px; }
.opportunity-overview-card { border-color: rgba(15, 35, 66, .12); }
.opportunity-overview-card .overview-text { font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 650; }

/* v3_26 compact opportunity layout + clearer embedded parent sections */
.collapsed-panel {
  padding: 0;
  overflow: hidden;
}
.collapsed-panel-summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
}
.collapsed-panel-summary::-webkit-details-marker { display: none; }
.collapsed-panel-summary::after {
  content: 'Open';
  flex: 0 0 auto;
  border: 1px solid rgba(15, 35, 66, .14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  background: #f8fafc;
}
.collapsed-panel[open] > .collapsed-panel-summary::after { content: 'Close'; }
.collapsed-panel-summary h2 {
  margin: 0;
  font-size: 24px;
  color: var(--navy);
}
.collapsed-summary-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.collapsed-panel-body {
  padding: 0 22px 22px;
  border-top: 1px solid rgba(148, 163, 184, .28);
}
.collapsed-panel .inner-panel {
  box-shadow: none;
  margin-bottom: 0;
}
.compact-add-panel .collapsed-panel-summary h2,
.embedded-section > summary {
  font-size: 20px;
  font-weight: 950;
  color: var(--navy);
}
.embedded-section {
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.embedded-section > summary {
  padding: 16px 18px;
  background: #f8fafc;
  border-radius: 14px;
}
.embedded-section[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
}
.phase-panel.collapsed-panel {
  border: 1px solid rgba(37, 99, 235, 0.22);
}
.phase-panel .collapsed-panel-summary h2 {
  color: #0f2a54;
}
.go-no-go-collapsed {
  border-color: rgba(198,154,59,.35);
}
@media (max-width: 720px) {
  .collapsed-panel-summary { padding: 16px; align-items: flex-start; }
  .collapsed-panel-summary h2 { font-size: 20px; }
  .collapsed-summary-note { display: none; }
  .collapsed-panel-body { padding: 0 16px 16px; }
}

/* v3_27: compact settings/system sections, clearer embedded headers, and analytics visuals */
.embedded-section > summary {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.embedded-section .embedded-section-title {
  font-size: 22px;
  font-weight: 950;
}
.analytics-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.analytics-chart {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 35, 66, .06);
}
.analytics-chart h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--navy);
}
.analytics-chart .chart-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 90px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.bar-row .bar-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 850;
}
.bar-track {
  height: 14px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .24);
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f2a54, #2f80ed);
}
.bar-fill.alt {
  background: linear-gradient(90deg, #9a6b12, #d6a63c);
}
.bar-row .bar-value {
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  text-align: right;
}
.money-month {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.money-month:last-child { border-bottom: 0; }
.money-month-title {
  font-size: 13px;
  font-weight: 950;
  color: var(--navy);
  margin-bottom: 6px;
}
.sub-directory-search {
  align-items: end;
}
.sub-directory-search label {
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
}
@media (max-width: 900px) {
  .analytics-visual-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 72px 1fr 76px; }
}

/* v3_29 actual analytics graph rendering */
.chart-svg-wrap {
  width: 100%;
  min-height: 230px;
  margin: 10px 0 12px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
}
.analytics-svg {
  display: block;
  width: 100%;
  height: 260px;
}
.analytics-chart .table-wrap {
  margin-top: 12px;
}
@media (max-width: 900px) {
  .analytics-svg { height: 230px; }
}

/* v1_10: phone/tablet account menu */
.topbar-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.mobile-menu { display:none; position:relative; }
.mobile-menu > summary { list-style:none; cursor:pointer; border:1px solid rgba(10,31,68,0.18); border-radius:999px; padding:10px 14px; font-weight:850; color:var(--navy); background:white; box-shadow:0 8px 22px rgba(15,23,42,0.10); }
.mobile-menu > summary::-webkit-details-marker { display:none; }
.mobile-menu[open] > summary { background:var(--navy); color:white; }
.mobile-menu nav { position:absolute; right:0; top:46px; z-index:50; min-width:245px; max-height:70vh; overflow:auto; display:grid; gap:6px; padding:10px; border-radius:18px; border:1px solid rgba(10,31,68,0.16); background:white; box-shadow:0 22px 60px rgba(15,23,42,0.24); }
.mobile-menu nav a { display:block; padding:11px 12px; border-radius:12px; text-decoration:none; color:var(--navy); font-weight:800; background:#f8fafc; }
.mobile-menu nav a.active, .mobile-menu nav a:hover { background:#eaf1ff; }
@media(max-width:900px){
  .portal-shell{display:block}
  .sidebar{display:none}
  .topbar{position:sticky;top:0;z-index:40;margin:0 -18px 18px;padding:12px 16px;border-radius:0;background:rgba(255,255,255,0.96);backdrop-filter:blur(10px)}
  .topbar h1{font-size:22px}
  .content{padding:18px}
  .mobile-menu{display:block}
  .capability-link{display:none!important}
}

/* v1_12: mobile portal header refinement + scanner intake anchor stability */
.portal-mobile-top-row { display: contents; }
.portal-mobile-brand { display: none; }
.portal-title-row { min-width: 0; }
#scanner-intake-queue { scroll-margin-top: 96px; }
@media(max-width:900px){
  .topbar{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    min-height:auto;
  }
  .portal-mobile-top-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
  }
  .portal-mobile-brand{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    text-decoration:none;
    color:var(--navy);
    font-weight:900;
    font-size:19px;
    letter-spacing:-0.03em;
  }
  .portal-mobile-brand img{
    width:34px;
    height:34px;
    object-fit:contain;
  }
  .portal-title-row{
    width:100%;
  }
  .portal-title-row h1{
    font-size:21px;
  }
  .portal-title-row .topbar-user{
    margin-top:2px;
  }
  .topbar-actions{
    flex:0 0 auto;
  }
  .mobile-menu nav{
    right:0;
  }
  #scanner-intake-queue { scroll-margin-top: 118px; }
}
