:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --paper: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0066cc;
  --accent-soft: #edf5ff;
  --accent-ink: #0063c6;
  --line: #e4e5e9;
  --line-soft: #eeeff2;
  --amber: #8b5b12;
  --font: 'SF Pro Text', 'SF Pro Display', 'PingFang SC', 'Segoe UI', sans-serif;
  --display: 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;
  --shadow: 0 3px 16px #1d1d1f04, 0 1px 2px #1d1d1f03;
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
button, a, input, textarea, select { transition: color .18s, background-color .18s, border-color .18s, box-shadow .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #0071e380; outline-offset: 3px; }
::selection { background: #0071e324; color: var(--ink); }
.skip { position: fixed; top: -80px; left: 15px; z-index: 100; border-radius: 12px; background: var(--accent); color: #fff; padding: 12px 18px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); }

/* The original workspace layout stays in place; shared tokens own the visual theme. */
.sidebar { width: 244px; background: #fbfbfddd; border-right: 1px solid #dedfe680; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 32px 20px; z-index: 5; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 13px; margin: 0 8px 30px; font: 650 26px/1.2 var(--display); letter-spacing: -1.1px; }
.brand-symbol { display: block; width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; background: #fff; border-radius: 10px; }
.brand-suffix { font-weight: 400; color: #86868b; }
.brand small { display: block; font: 7px/1.5 var(--mono); letter-spacing: 1px; margin-top: 6px; color: var(--subtle); }
.workspace { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 11px; font-weight: 600; font-size: 12px; box-shadow: var(--shadow); }
.workspace small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
.workspace-mark { height: 30px; width: 30px; display: grid; place-items: center; border: 1px solid #dde9f7; border-radius: 9px; color: var(--accent-ink); background: var(--accent-soft); }
.local-dot { display: inline-block; width: 6px; height: 6px; background: #24865c; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px #24865c0a; }
.workspace .local-dot { margin-left: auto; }
.nav-label { margin: 29px 10px 11px; color: var(--subtle); font-size: 10px; display: flex; align-items: center; gap: 9px; letter-spacing: .6px; }
.nav-label span { font: 8px var(--mono); color: var(--subtle); letter-spacing: .6px; }
.nav-item { display: flex; width: 100%; gap: 11px; align-items: center; text-align: left; min-height: 46px; padding: 11px 12px; margin: 5px 0; border: 1px solid transparent; background: transparent; border-radius: 12px; color: #64646a; font-size: 12px; font-weight: 500; }
.nav-item svg { width: 17px; height: 17px; }
.nav-item.active { background: #e9f2ff; color: var(--accent-ink); border-color: #dbeaff; box-shadow: inset 0 1px 0 #ffffffb3; }
.nav-item:hover:not(.active) { background: #ececf1; color: var(--ink); }
.nav-item > span:nth-child(2) { flex: 1; }
.nav-count { font: 10px var(--mono); background: #ffffffc9; border: 1px solid #cfe2fb; padding: 2px 6px; border-radius: 5px; }
.soon { font-size: 9px; background: #eaeaf0; color: #73737b; padding: 2px 6px; border-radius: 5px; }
.small-icon svg { width: 12px; height: 12px; }
.second { margin-top: 30px; }
.sidebar-note { margin-top: auto; margin-bottom: 26px; padding: 23px 12px 0; border-top: 1px solid var(--line); }
.sidebar-note > span:first-child { display: block; color: var(--accent); margin-bottom: 9px; }
.sidebar-note strong { font-size: 12px; font-weight: 600; }
.sidebar-note p { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 9px 0 14px; }
.sidebar-note .mono { font-size: 8px; color: var(--subtle); letter-spacing: .5px; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 0 11px; color: #626269; font-size: 10px; }
.sidebar-footer small { display: block; color: var(--subtle); font-size: 9px; }
.sidebar-footer > span:last-child { margin-left: auto; color: var(--subtle); }
.sidebar-footer svg { width: 14px; height: 14px; }
.shell { margin-left: 244px; }
.topbar { height: 76px; border-bottom: 1px solid #e1e2e780; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: #fbfbfdc9; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.breadcrumb { font-size: 12px; color: var(--subtle); display: flex; align-items: center; gap: 15px; }
.breadcrumb strong { font-weight: 500; color: #424248; }
.breadcrumb span { color: #a6a6ad; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.local-pill { display: flex; align-items: center; gap: 8px; font: 9px var(--mono); letter-spacing: 1.3px; color: var(--subtle); }
.avatar { height: 31px; width: 31px; display: grid; place-items: center; border: 1px solid #dce7f5; background: linear-gradient(145deg, #f6faff, #e5eefb); color: #426584; border-radius: 50%; font: 10px var(--mono); }
main { padding: 37px 40px 40px; max-width: 1600px; margin: 0 auto; min-height: calc(100vh - 130px); }
.page-heading { display: flex; justify-content: space-between; gap: 26px; align-items: center; margin-bottom: 28px; }
.eyebrow { font: 9px/1.6 var(--mono); color: #66778e; letter-spacing: 1.8px; display: block; margin-bottom: 10px; }
.eyebrow .live-small { display: inline-block; vertical-align: middle; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #0071e30a; margin-right: 8px; }
h1 { font: 650 34px/1.35 var(--display); letter-spacing: -1.2px; margin: 0 0 11px; text-wrap: balance; }
h2 { font: 620 25px/1.4 var(--display); letter-spacing: -.6px; margin: 0 0 11px; }
h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.25px; }
.heading-description { margin: 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.heading-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.primary-button, .secondary-button { border-radius: 999px; min-height: 39px; padding: 9px 17px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.primary-button { background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: 0 4px 10px #0071e312, inset 0 1px 0 #ffffff14; }
.primary-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 5px 15px #0071e326; }
.secondary-button { background: #ffffffb3; border: 1px solid #d8d9df; color: #45454c; }
.secondary-button:hover { background: #fff; border-color: #b9c7db; color: var(--accent-ink); }
.primary-button svg, .secondary-button svg { width: 14px; height: 14px; }
.text-button { background: transparent; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent-ink); }
.text-button:hover { color: var(--accent-hover); }
.text-button svg { width: 13px; height: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 23px; }
.stat { background: var(--paper); border: 1px solid #e6e7ec; border-radius: var(--radius); padding: 19px 20px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.stat-top { display: flex; justify-content: space-between; gap: 8px; color: #68686f; font-size: 11px; }
.stat-top svg { width: 16px; height: 16px; color: #828d9d; }
.stat-value { display: flex; align-items: baseline; gap: 9px; margin: 9px 0 5px; }
.stat-value strong { font: 600 34px/1.2 var(--display); letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.stat-value span { font: 8px var(--mono); color: var(--subtle); letter-spacing: .4px; }
.stat-foot { font-size: 10px; color: var(--subtle); }
.stat:nth-child(3) { background: linear-gradient(135deg, #fff 5%, #edf5ff); border-color: #d7e7fc; }
.stat:nth-child(3) .stat-value strong { color: var(--accent-ink); }
.research-note { border: 1px solid #dce8f8; background: #edf4fe; display: flex; align-items: center; gap: 13px; border-radius: 14px; padding: 15px 18px; margin-bottom: 29px; }
.research-note .note-symbol { flex-shrink: 0; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #deebff; color: var(--accent); }
.research-note strong { font-size: 12px; font-weight: 600; color: #264a76; }
.research-note p { font-size: 11px; color: #566d88; line-height: 1.8; margin: 4px 0 0; }
.research-note .text-button { margin-left: auto; white-space: nowrap; flex-shrink: 0; font-size: 11px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.collection-title { display: flex; gap: 9px; align-items: center; font-size: 16px; font-weight: 600; letter-spacing: -.25px; }
.collection-title .number { font: 10px var(--mono); background: #e8ecf3; color: #56667a; border-radius: 6px; padding: 3px 7px; }
.view-hint { font: 9px var(--mono); color: var(--subtle); letter-spacing: .7px; text-align: right; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; flex-wrap: wrap; }
.filters { display: flex; gap: 3px; align-items: center; border: 1px solid #e0e1e6; background: #eaeaf0; padding: 4px; border-radius: 11px; }
.filter { padding: 6px 11px; background: transparent; border: 0; border-radius: 8px; font-size: 11px; color: #696970; white-space: nowrap; }
.filter.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #18283d14; font-weight: 600; }
.filter:hover:not(.active) { color: var(--ink); background: #ffffff52; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe0e6; background: #ffffffd9; border-radius: 10px; padding: 9px 11px; margin-left: auto; width: 185px; }
.search:focus-within { border-color: #89bafa; box-shadow: 0 0 0 3px #0071e312; }
.search svg { width: 14px; height: 14px; color: #7d8796; flex-shrink: 0; }
.search input { border: 0; outline: none; width: 100%; font-size: 11px; background: transparent; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--subtle); }
.toolbar select { height: 37px; font-size: 11px; color: #5b5b63; background: #fff; border: 1px solid #dfe0e6; border-radius: 10px; padding: 0 10px; }
.category-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; align-items: center; }
.category-filter{margin:0 0 18px;color:var(--muted);font-size:11px}.category-filter>summary{cursor:pointer;padding:7px 0;width:fit-content}.category-filter[open]>.category-row{margin:10px 0 0}
.category { padding: 4px 9px; border: 1px solid transparent; font-size: 11px; color: var(--muted); background: transparent; border-radius: 7px; }
.category.active { border-color: #cee2fc; background: #eaf3ff; color: var(--accent-ink); }
.category:hover:not(.active) { background: #e9e9ef; color: var(--ink); }
.project-source-row { display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line-soft);padding:12px 0;margin:0 0 10px;font-size:11px;color:var(--muted); }
.project-source-row>.category { border-color:#dce2ed;background:#fff; }
.project-source-row>.category.active { border-color:#cee2fc;background:#eaf3ff; }
.project-source-row>small { flex:1 1 100%;font-size:10px;line-height:1.8; }
.mapped-project-context { border:1px solid #dce8f8;background:#f4f8ff;border-radius:12px;padding:12px 14px; }
.mapped-project-source { display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:10px;color:var(--accent-ink); }
.mapped-project-source>span { font-weight:600; }
.mapped-project-source>small { font-size:9px;color:var(--muted); }
.mapped-project-scores { display:flex;gap:22px;flex-wrap:wrap;margin-top:11px; }
.mapped-project-scores>div { min-width:110px;flex:1; }
.mapped-project-scores>div>span { display:block;font-size:10px;color:var(--muted); }
.mapped-project-scores strong { display:block;font:600 20px var(--display);color:#2c3f59;margin-top:3px; }
.mapped-project-scores strong small { font:400 9px var(--mono);color:var(--muted);margin-left:4px; }
.mapped-project-context>p { margin:9px 0 0;font-size:9px;line-height:1.8;color:var(--muted); }
.mapped-project-context .source-audit { overflow-wrap:anywhere; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { background: var(--paper); border: 1px solid #e2e4ea; border-radius: 20px; padding: 23px 23px 0; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; display: flex; flex-direction: column; min-width: 0; }
.project-card:hover { border-color: #c4d8f2; box-shadow: 0 10px 28px #1d35570b, 0 2px 5px #1d355705; transform: translateY(-2px); }
.project-card.selected { border-color: #bdd8fa; box-shadow: 0 0 0 1px #e9f3ff, var(--shadow); }
.card-top { display: flex; gap: 12px; align-items: center; }
.project-icon { width: 43px; height: 43px; border-radius: 12px; color: #fff; display: grid; place-items: center; font: 600 16px var(--display); letter-spacing: -.7px; box-shadow: inset 0 1px 1px #ffffff48, inset 0 0 0 1px #ffffff20, 0 3px 8px #1d1d1f0c; flex-shrink: 0; }
.project-title { flex: 1; min-width: 0; }
.project-title button { padding: 0; background: transparent; border: 0; text-align: left; font-size: 17px; font-weight: 600; letter-spacing: -.45px; overflow-wrap: anywhere; }
.project-title button:hover { color: var(--accent-ink); }
.domain { font: 10px var(--mono); color: var(--subtle); display: flex; gap: 5px; align-items: center; margin-top: 4px; overflow-wrap: anywhere; }
.domain:hover { color: var(--accent-ink); }
.domain svg { width: 10px; height: 10px; flex-shrink: 0; }
.status { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; line-height: 1.5; border-radius: 6px; padding: 4px 8px; white-space: nowrap; background: #f0f1f5; color: #676771; }
.status svg { width: 11px; height: 11px; }
.status.selected { background: #e9f3ff; color: var(--accent-ink); }
.status.passed { background: #fbf1e4; color: var(--amber); }
.status.active-job { background: #eaf4ff; color: #29649f; }
.score { font: 600 25px/1 var(--display); letter-spacing: -.9px; text-align: right; font-variant-numeric: tabular-nums; }
.score small { display: block; color: var(--subtle); font-size: 9px; font-weight: 400; letter-spacing: .15px; margin-top: 6px; }
.score.unknown { font-size: 20px; color: #7f7f86; }
.card-description { font-size: 13px; color: #66666d; line-height: 1.85; min-height: 44px; margin: 17px 0 16px; }
.company-introduction { color: #454a54; margin-bottom: 12px; }
.company-intro-label { display: block; color: #70829a; font-size: 9px; font-weight: 600; letter-spacing: .12em; margin-bottom: 5px; }
.card-company { margin: 0 0 17px; padding: 5px 12px 0; border: 1px solid #e6ebf3; border-radius: 11px; background: #fafbfe; }
.company-fact { display: grid; grid-template-columns: 74px minmax(0,1fr) 12px; width: 100%; gap: 9px; align-items: start; text-align: left; padding: 9px 0; border: 0; border-bottom: 1px solid #edf0f5; background: transparent; font-size: 10px; line-height: 1.8; color: #5c6574; }
.company-fact > span:first-child { color: #71819a; font-weight: 500; }
.company-fact > span:nth-child(2) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.company-fact svg { width: 11px; height: 11px; margin-top: 4px; color: #849aba; }
.company-fact:hover { color: var(--accent-ink); }
.company-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 9px; color: #8a93a3; padding: 8px 0; }
.company-card-foot .text-button { font-size: 9px; }
.company-detail-intro { font-size: 14px !important; color: #303c4d !important; }
.company-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; margin: 20px 0; }
.company-detail-row h4,.company-funding-events h4 { font-size: 11px; font-weight: 600; color: #627795; margin: 0; }
.company-detail-row p { margin: 5px 0 0; }
.company-fact-refs a { white-space: nowrap; color: var(--accent-ink); font-size: 10px; }
.company-extra { border-top: 1px solid var(--line-soft); margin-top: 15px; padding-top: 13px; }
.company-extra > summary { cursor: pointer; font-size: 11px; color: #617591; line-height: 1.8; }
.company-extra p,.company-extra li { font-size: 12px; line-height: 1.9; color: #657082; overflow-wrap: anywhere; }
@media(max-width:640px) { .company-detail-grid { grid-template-columns: 1fr; } .company-fact { grid-template-columns: 66px minmax(0,1fr) 12px; } }
.revenue-box { background: #f6f7fa; border: 1px solid #ebedf3; border-radius: 12px; padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.revenue-box > div:first-child { min-width: 0; }
.revenue-label { font-size: 10px; color: #71717a; margin-bottom: 5px; line-height: 1.6; }
.revenue-value { font: 600 20px/1.4 var(--display); letter-spacing: -.5px; color: #252a33; }
.revenue-value.unknown { font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.metric-tag { font: 9px var(--mono); color: #5c6c80; border: 1px solid #dce2ed; background: #fff; padding: 3px 5px; border-radius: 5px; margin-left: 7px; white-space: nowrap; }
.revenue-date { font: 9px/1.7 var(--mono); color: var(--subtle); margin-top: 5px; display: block; overflow-wrap: anywhere; }
.revenue-source { font-size: 10px; color: var(--muted); text-align: right; max-width: 92px; flex-shrink: 0; }
.revenue-source .text-button { font-size: 10px; margin-top: 5px; }
.card-quality { margin-top: 12px; }
.quality-reason { font-size: 10px; color: var(--subtle); line-height: 1.8; margin: 6px 0 0; }
.attributes { display: flex; gap: 6px; margin: 14px 0 13px; flex-wrap: wrap; }
.attribute { font-size: 10px; line-height: 1.7; border: 1px solid #e7e8ed; border-radius: 6px; color: #707079; padding: 3px 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attribute.coupling { color: #47627f; background: #f4f7fc; border-color: #e5ecf6; }
.recommendation { font-size: 11px; line-height: 1.85; color: #75757d; display: flex; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 13px; margin-bottom: 18px; }
.recommendation svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 3px; color: #5885bb; }
.recommendation strong { color: #3d536f; font-weight: 500; }
.card-business { border-top: 1px solid var(--line-soft); padding: 8px 0 14px; }
.card-business-summary { display: grid; grid-template-columns: 76px minmax(0, 1fr) 12px; gap: 9px; width: 100%; padding: 10px 7px; border: 0; border-radius: 9px; background: transparent; text-align: left; align-items: start; font-size: 11px; line-height: 1.8; }
.card-business-label { color: var(--accent-ink); font-weight: 500; }
.card-business-copy { color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.card-business-summary > svg { width: 12px; height: 12px; color: #8da0b8; margin-top: 4px; }
.card-business-summary:hover { background: var(--accent-soft); }
.card-business-summary:hover .card-business-label { text-decoration: underline; text-underline-offset: 3px; }
.card-actions { border-top: 1px solid var(--line-soft); padding: 16px 0; display: flex; gap: 8px; margin-top: auto; align-items: center; }
.select-button, .pass-button, .analysis-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 999px; font-size: 11px; min-height: 33px; padding: 7px 13px; white-space: nowrap; }
.select-button { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.select-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.select-button.chosen { background: #eaf3ff; color: var(--accent-ink); border-color: #d1e5ff; opacity: 1; }
.pass-button { background: #fff; border: 1px solid #dedfe5; color: #65656d; }
.pass-button:hover { background: #fbf4eb; color: var(--amber); border-color: #e9d8bd; }
.analysis-button { margin-left: auto; border: 0; background: transparent; color: var(--accent-ink); padding: 7px 1px; }
.analysis-button:hover { color: var(--accent-hover); }
.card-actions svg { width: 12px; height: 12px; }
.card-job { padding: 0 0 14px; font-size: 10px; color: var(--muted); }
.card-job button { font-size: 10px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; }
.empty { padding: 70px 20px; text-align: center; border: 1px dashed #d6dce6; border-radius: var(--radius); color: #74849b; grid-column: 1/-1; background: #ffffff80; }
.empty h3 { color: #455973; margin: 13px 0 6px; }
.empty p { font-size: 12px; color: var(--muted); }
.collection-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0 0; font-size: 10px; color: var(--subtle); }
.page-footer { font-size: 10px; color: var(--subtle); border-top: 1px solid var(--line); margin: 0 40px; display: flex; justify-content: space-between; gap: 15px; padding: 21px 0; }
.page-footer strong { font-weight: 400; font-family: var(--mono); }
.footer-divider { margin: 0 8px; color: #a7a7af; }
.loading { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 300px; color: var(--muted); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid #dce8f8; border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Detail and research panels share the same surface and text hierarchy. */
dialog { color: var(--ink); background: #fff; border: 1px solid #ffffffad; box-shadow: 0 32px 90px #0c162f33, 0 3px 15px #0c162f0a; padding: 0; }
dialog::backdrop { background: #19243b50; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.detail-dialog { width: min(720px, calc(100vw - 24px)); max-height: 92vh; border-radius: 24px; }
.detail-dialog #detail-content { padding: 30px 34px; }
.standard-dialog { width: min(690px, calc(100vw - 24px)); padding: 29px 32px; max-height: 88vh; border-radius: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dialog-head .eyebrow { margin: 0; }
.icon-button { background: #f3f3f6; border: 0; border-radius: 50%; padding: 6px; color: #7a7a83; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: #e9eef7; color: var(--accent-ink); }
.detail-title { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.detail-title .project-icon { width: 49px; height: 49px; font-size: 20px; border-radius: 14px; }
.detail-title h2 { margin-bottom: 2px; }
.detail-title .status { margin-left: auto; }
.detail-section { padding-top: 21px; margin-top: 23px; border-top: 1px solid var(--line); }
.detail-section > h3 { font-size: 13px; font-weight: 600; display: flex; gap: 7px; align-items: center; margin-bottom: 11px; color: #3f526d; }
.detail-section > h3 .mono { font-size: 10px; color: var(--subtle); font-weight: 400; }
.detail-section p { font-size: 13px; color: #5f5f68; line-height: 1.95; margin: 9px 0; overflow-wrap: anywhere; }
.detail-section ul { list-style: none; padding: 0; margin: 11px 0; }
.detail-section li { font-size: 12px; color: #64646c; line-height: 1.95; margin: 6px 0; display: flex; gap: 9px; overflow-wrap: anywhere; }
.detail-section li::before { content: '·'; color: #6e8fb7; }
.section-note { background: #f1f6fe; border: 1px solid #e0eafa; border-radius: 10px; padding: 12px 14px; }
.source-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: #385f91; font-size: 12px; }
.source-item:last-child { border-bottom: 0; }
.source-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.source-item small { display: block; font-size: 10px; color: var(--subtle); margin-top: 4px; }
.source-item svg { width: 13px; height: 13px; margin-top: 3px; flex-shrink: 0; }
.source-item:hover { color: var(--accent-ink); }
.factor-row { display: grid; grid-template-columns: 100px 1fr 35px; gap: 10px; align-items: center; font-size: 11px; color: var(--muted); margin: 12px 0; }
.factor-track { height: 5px; background: #eaf0f9; border-radius: 3px; overflow: hidden; }
.factor-fill { height: 100%; background: linear-gradient(90deg, #0071e3, #59a9f7); border-radius: 3px; }
.opportunity-summary { background: #f7faff; border: 1px solid #e1eaf7; border-radius: 11px; padding: 12px; margin-top: 12px; }
.opportunity-summary.historical, .opportunity-summary.pending { background: #fafbfd; border-color: #e7eaf0; }
.opportunity-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #3f526d; font-size: 11px; font-weight: 500; }
.opportunity-heading > strong { white-space: nowrap; font: 600 20px var(--display); font-variant-numeric: tabular-nums; }
.opportunity-heading > strong small { margin-left: 2px; font: 9px var(--mono); color: var(--subtle); }
.opportunity-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; margin-top: 10px; }
.opportunity-dimension { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e8eef7; font-size: 10px; line-height: 1.6; }
.opportunity-dimension > span { color: #5d6f87; }
.opportunity-dimension small { color: var(--subtle); white-space: nowrap; }
.opportunity-dimension > strong { font: 10px var(--mono); white-space: nowrap; color: #3f526d; }
.opportunity-pending { font: 12px var(--font); color: var(--muted); }
.opportunity-summary p.opportunity-reassessment, .detail-section p.opportunity-reassessment { font-size: 10px; color: #69788c; margin: 10px 0 0; line-height: 1.7; }
.opportunity-summary p.opportunity-explanation { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 9px 0 0; }
.opportunity-analysis .opportunity-heading { font-size: 13px; }
.opportunity-analysis .opportunity-dimension { font-size: 12px; padding: 10px 0; }
.opportunity-analysis .opportunity-dimension > strong { font-size: 11px; }
.detail-section p.opportunity-explanation, .detail-section p.opportunity-evidence { font-size: 12px; }
@media (max-width: 420px) { .opportunity-dimensions { grid-template-columns: 1fr; } }
.detail-actions { display: flex; gap: 9px; margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.detail-actions .analysis-button { margin-left: auto; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.9; }
.guide-grid { display: grid; gap: 13px; margin: 21px 0; }
.guide-item { border: 1px solid var(--line); padding: 17px; border-radius: 13px; background: #fafbfe; }
.guide-item h3 { font-size: 14px; color: #3c5676; }
.guide-item p { font-size: 12px; color: var(--muted); margin: 8px 0 11px; }
.guide-item a { font-size: 11px; color: var(--accent-ink); }
.notes-input { width: 100%; resize: vertical; border: 1px solid #dce1ea; border-radius: 11px; padding: 12px; font-size: 12px; color: var(--ink); min-height: 90px; background: #fafbfe; }
.notes-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.notes-footer span { font-size: 10px; color: var(--subtle); }
.job-box { background: #f7f9fc; border: 1px solid #e2e9f4; border-radius: 13px; padding: 16px; margin: 12px 0; }
.job-heading { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 500; color: #3f5c80; }
.job-heading .mono { font-size: 10px; color: var(--subtle); margin-left: auto; }
.job-box p { font-size: 12px; }
.job-result { padding: 12px 0; border-top: 1px solid #e0e8f3; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.job-result strong { font-weight: 500; color: #435c7c; }
.job-result small { font: 10px/1.8 var(--mono); display: block; color: var(--subtle); }
.job-result a { font-size: 11px; display: inline-flex; align-items: center; gap: 3px; color: var(--accent-ink); }
.job-result a svg { width: 11px; height: 11px; }
.job-meta { font-size: 10px; color: var(--subtle); }
.scope-banner { background: linear-gradient(120deg, #eef4ff, #fafcff); border: 1px solid #d9e5f9; border-radius: var(--radius); padding: 21px 24px; display: flex; gap: 15px; margin: 26px 0; }
.scope-banner svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.scope-banner strong { font-size: 14px; color: #304e78; }
.scope-banner p { margin: 7px 0 0; color: #62748e; font-size: 12px; line-height: 1.9; }
.queue-row { padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 15px; display: flex; gap: 14px; align-items: center; margin: 13px 0; box-shadow: var(--shadow); }
.queue-row h3 { font-size: 15px; }
.queue-row p { font-size: 11px; color: var(--muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.queue-row .status { margin-left: auto; }
.queue-row .text-button { margin-left: 15px; font-size: 11px; }
form label { display: block; font-size: 12px; color: #555560; margin: 21px 0; }
form input { display: block; margin-top: 8px; width: 100%; background: #fafbfe; border: 1px solid #dce1ea; border-radius: 11px; padding: 12px; font-size: 13px; color: var(--ink); }
.form-error { color: #a13e2b; font-size: 12px; }
.form-error:empty { display: none; }
#toast { position: fixed; bottom: 28px; left: calc(50% + 100px); transform: translate(-50%, 20px); z-index: 50; border-radius: 14px; background: #202632ed; backdrop-filter: blur(20px); color: #fff; padding: 13px 21px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 24px); box-shadow: 0 8px 32px #10182829; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.undo-button { margin-left: 9px; border: 0; background: none; color: #94c9ff; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; pointer-events: auto; }
.fatal-error { padding: 45px; color: #953b2c; background: #fff5f1; border: 1px solid #f0d9d1; border-radius: var(--radius); }

/* Source discovery keeps its original card, table and history structure. */
.schedule-panel { display: flex; align-items: center; gap: 28px; border: 1px solid #28374a; background: radial-gradient(ellipse at 100% 0%, #194a7b 0, transparent 58%), linear-gradient(115deg, #161e2c, #202e43); border-radius: 20px; padding: 25px 27px; margin-bottom: 20px; box-shadow: inset 0 1px 0 #ffffff12, 0 8px 25px #1223380d; }
.schedule-clock { display: grid; grid-template-columns: 24px 1fr; gap: 4px 11px; min-width: 160px; color: #9ac9ff; }
.schedule-clock > svg { grid-row: 1/3; margin-top: 7px; }
.schedule-clock strong { font: 500 35px/1.25 var(--mono); letter-spacing: -1.5px; color: #fff; }
.schedule-clock > span { font-size: 11px; color: #bcc8da; }
.schedule-rule { border-left: 1px solid #ffffff24; padding-left: 27px; }
.schedule-rule > strong { font-size: 13px; font-weight: 600; color: #f3f7ff; }
.schedule-rule > strong > span { margin: 0 11px; color: #82b7f2; }
.schedule-rule p { font-size: 11px; color: #c0cce0; line-height: 1.9; margin: 7px 0 10px; }
.schedule-rule .status { background: #ffffff12; color: #bddeff; border: 1px solid #ffffff12; }
.schedule-id { font-size: 9px; color: #adbbd0; margin-left: 9px; overflow-wrap: anywhere; }
.source-stats { display: flex; gap: 24px; flex-wrap: wrap; padding: 15px 0 25px; color: var(--muted); font-size: 11px; }
.source-stats strong { font: 500 18px var(--mono); color: #2c3f59; margin-right: 6px; letter-spacing: -.6px; }
.quality-policy { margin: 0 0 23px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.source-card { background: #fff; border: 1px solid #e2e4ea; border-radius: 20px; padding: 23px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.source-card:hover { border-color: #c8d8ee; box-shadow: 0 7px 24px #21334f09; }
.source-top { display: flex; gap: 12px; align-items: center; }
.source-top > div { min-width: 0; flex: 1; }
.source-top h3 { font-size: 16px; }
.source-method { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
.source-enable { width: 34px; height: 21px; position: relative; flex-shrink: 0; }
.source-enable input { position: absolute; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.source-enable > span { display: block; width: 34px; height: 21px; border-radius: 12px; background: #d8dbe2; transition: background .2s; }
.source-enable > span::after { content: ''; position: absolute; width: 15px; height: 15px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #1d1d1f1f; transition: left .2s; }
.source-enable input:checked + span { background: var(--accent); }
.source-enable input:checked + span::after { left: 16px; }
.source-enable input:focus-visible + span { outline: 3px solid #0071e380; outline-offset: 3px; }
.source-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.source-budget { font-size: 10px; color: var(--subtle); text-align: right; }
.source-note { font-size: 12px; line-height: 1.9; color: #65656f; margin: 15px 0; min-height: 40px; overflow-wrap: anywhere; }
.keyword-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 17px; }
.keyword-list > span { font-size: 10px; color: #626d7d; background: #f5f7fb; border: 1px solid #e7ebf2; border-radius: 6px; padding: 4px 8px; overflow-wrap: anywhere; }
.source-footnote { font-size: 10px; color: var(--muted); margin-top: auto; }
.source-footnote a { color: var(--accent-ink); }
.source-footnote svg { width: 11px; height: 11px; }
.source-footnote small { font-size: 9px; color: var(--subtle); display: block; margin: 5px 0 17px; }
.source-actions { display: flex; gap: 11px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.source-actions .secondary-button { font-size: 11px; min-height: 33px; padding: 7px 11px; }
.source-actions .text-button { font-size: 11px; }
.source-actions button:last-child { margin-left: auto; }
.source-disclosure { font-size: 11px; line-height: 1.95; color: var(--muted); margin: 20px 0 32px; }
.discovery-section { margin: 30px 0; }
.run-row { display: flex; width: 100%; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 17px 19px; border-radius: 13px; text-align: left; margin: 11px 0; color: #3e4e66; font-size: 12px; box-shadow: var(--shadow); }
.run-row:hover { background: #fafcff; border-color: #bcd7fb; }
.run-row > span:nth-child(2) { flex: 1; min-width: 0; }
.run-row small { display: block; font-size: 10px; line-height: 1.8; color: var(--muted); margin-top: 4px; }
.run-date { font: 10px var(--mono); color: #6b7a90; white-space: nowrap; }
.run-metric { text-align: center; font-family: var(--mono); font-size: 12px; white-space: nowrap; color: #3d5e8a; }
.run-metric small { font-family: var(--font); }
.run-row > svg { width: 13px; height: 13px; color: #8798b0; flex-shrink: 0; }
.history-empty { padding: 32px; text-align: center; border: 1px dashed #d6dfeD; border-radius: 13px; color: var(--muted); font-size: 12px; }
.history-toolbar { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.history-toolbar .search { margin-left: 0; flex: 1; max-width: 350px; }
.history-toolbar select { border: 1px solid #dce1ea; border-radius: 9px; padding: 9px; color: #62626d; background: #fff; font-size: 11px; }
.history-toolbar button { min-height: 34px; padding: 7px 12px; font-size: 11px; }
.history-table { border: 1px solid #e2e5ec; border-radius: 14px; background: #fff; overflow: hidden; }
.history-row, .history-header { display: grid; grid-template-columns: 2fr 1fr 1.2fr 90px; gap: 15px; align-items: center; width: 100%; padding: 15px 17px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); color: #687387; font-size: 12px; }
.history-row:hover { background: #f6f9fe; }
.history-row:last-child { border-bottom: 0; }
.history-header { font-size: 10px; color: #6c788c; background: #f6f8fc; }
.history-row strong { display: block; font-weight: 500; color: #344961; }
.history-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; font: 9px/1.6 var(--mono); color: var(--subtle); margin-top: 4px; }
.history-time { font-size: 10px; color: var(--subtle); }
.history-source { font-size: 11px; color: #68768b; }
.history-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 15px; font-size: 10px; color: var(--muted); }
.history-pagination button { font-size: 11px; color: var(--accent-ink); }
.history-pagination button:disabled { opacity: .45; }
.project-pagination { flex-wrap: wrap; }
.run-analysis { grid-template-columns: 1fr 70px 80px 14px; }
.run-analysis svg { width: 12px; height: 12px; }
.followup-row, .followup-header { grid-template-columns: 1.4fr 1.7fr .85fr 85px; }
.followup-reason { font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.history-row > .status { white-space: normal; justify-self: start; }
.followup-row > .status { white-space: nowrap; }

@media (min-width: 1650px) {
  main { padding-left: 55px; padding-right: 55px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .sidebar { width: 210px; padding: 25px 15px; }
  .shell { margin-left: 210px; }
  .brand { margin-left: 5px; font-size: 25px; gap: 10px; }
  .brand small { font-size: 6px; }
  .nav-item { gap: 8px; padding: 10px; font-size: 11px; }
  .nav-item svg { width: 15px; }
  .topbar { padding: 0 26px; }
  main { padding: 29px 26px; }
  .page-footer { margin: 0 26px; }
  .heading-actions { gap: 7px; }
  .heading-actions .secondary-button span:not([data-icon]) { display: none; }
  .project-grid, .source-grid { gap: 16px; }
  .project-card, .source-card { padding: 19px; }
  .project-card { padding-bottom: 0; }
  .card-actions { gap: 7px; }
  .select-button, .pass-button { padding: 7px 10px; font-size: 10px; }
  .analysis-button { font-size: 10px; }
  .project-title button { font-size: 16px; }
  .score { font-size: 23px; }
  h1 { font-size: 29px; }
  .stats { gap: 12px; }
  .stat { padding: 16px; }
  .stat-value span { font-size: 7px; }
  .toolbar .search { width: 160px; }
  .filters .filter { padding: 6px 8px; }
}
@media (max-width: 1100px) {
  .schedule-panel { gap: 20px; padding: 22px; }
  .schedule-clock { min-width: 125px; }
  .schedule-rule { padding-left: 20px; }
  .schedule-rule > strong { font-size: 12px; }
  .schedule-rule > strong > span { margin: 0 5px; }
  .source-actions { gap: 9px; }
  .source-actions .text-button { font-size: 10px; }
  .source-method { font-size: 9px; }
  .source-stats { gap: 17px; }
  .run-row { gap: 12px; }
  .run-metric { font-size: 11px; }
  .history-row, .history-header { grid-template-columns: 1.6fr 1fr 1.1fr 80px; gap: 10px; }
  .run-analysis { grid-template-columns: 1fr 65px 75px 14px; }
  .followup-row, .followup-header { grid-template-columns: 1.4fr 1.7fr .85fr 85px; }
}
@media (max-width: 920px) {
  .sidebar { width: 190px; padding: 25px 12px; }
  .shell { margin-left: 190px; }
  .brand { font-size: 24px; gap: 9px; }
  .brand-symbol { width: 39px; height: 39px; }
  .brand small { letter-spacing: .4px; }
  .nav-label span { display: none; }
  .nav-item { font-size: 10px; }
  .nav-item svg { width: 14px; }
  .workspace { font-size: 10px; padding: 11px 8px; }
  .workspace small { font-size: 9px; }
  .workspace-mark { width: 25px; height: 25px; }
  .project-grid, .source-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-value span { font-size: 8px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { flex-direction: column; align-items: stretch; }
  .research-note { align-items: flex-start; }
  .research-note .text-button { display: none; }
  .toolbar .search { margin-left: 0; flex: 1; min-width: 160px; }
  .card-actions .analysis-button { font-size: 11px; }
  .project-title button { font-size: 18px; }
  .select-button, .pass-button { font-size: 11px; padding: 7px 14px; }
  .card-description { min-height: 0; }
  .revenue-source { max-width: 150px; }
  .sidebar-note { padding-left: 7px; padding-right: 7px; }
  .sidebar-footer { padding: 0 4px; }
  .breadcrumb { font-size: 11px; }
  .schedule-panel { display: block; }
  .schedule-clock { margin-bottom: 19px; }
  .schedule-rule { border-left: 0; border-top: 1px solid #ffffff24; padding: 19px 0 0; }
  .source-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .run-metric { display: none; }
  .history-row, .history-header { grid-template-columns: 1.5fr 1fr 80px; }
  .history-time, .history-header span:nth-child(3) { display: none; }
  .history-toolbar .search { width: 160px; }
  .source-actions .text-button { font-size: 11px; }
  .run-analysis { grid-template-columns: 1fr 65px 75px 14px; }
  .followup-row, .followup-header { grid-template-columns: 1.3fr 1.5fr 85px; }
}
@media (max-width: 640px) {
  .sidebar { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 16px 13px; }
  .brand { margin: 0 0 16px; font-size: 24px; gap: 10px; }
  .brand-symbol { width: 35px; height: 35px; border-radius: 8px; }
  .brand small { font-size: 7px; letter-spacing: .8px; margin-top: 4px; }
  .workspace, .nav-label, .second, .sidebar-note, .sidebar-footer, .sidebar > .nav-item { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .sidebar nav > .nav-item { flex-basis: 45%; justify-content: flex-start; padding-left: 13px; }
  .nav-item { width: auto; flex: 1; min-height: 40px; font-size: 11px; gap: 7px; padding: 7px 9px; margin: 0; border-radius: 10px; }
  .nav-item > span:nth-child(2) { flex: 0; white-space: nowrap; }
  .nav-item svg { width: 14px; height: 14px; }
  .soon, .nav-count { display: none; }
  .shell { margin-left: 0; }
  .topbar { height: 46px; padding: 0 19px; }
  .topbar-right { gap: 10px; }
  .avatar { height: 25px; width: 25px; font-size: 9px; }
  .local-pill { font-size: 8px; }
  .breadcrumb { gap: 9px; font-size: 10px; }
  main { padding: 27px 18px; }
  h1 { font-size: 27px; letter-spacing: -.85px; }
  .page-heading { display: block; margin-bottom: 23px; }
  .heading-description { font-size: 12px; }
  .heading-actions { flex-direction: row; margin-top: 17px; justify-content: flex-start; }
  .heading-actions .secondary-button span:not([data-icon]) { display: inline; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .stats { gap: 11px; margin-bottom: 19px; }
  .stat { padding: 14px 15px; border-radius: 15px; }
  .stat-value strong { font-size: 30px; }
  .stat-value span { font-size: 7px; }
  .stat-top, .stat-foot { font-size: 10px; }
  .research-note { margin-bottom: 23px; padding: 14px; }
  .research-note strong { font-size: 11px; }
  .research-note p { font-size: 10px; }
  .research-note .note-symbol { width: 28px; height: 28px; border-radius: 9px; }
  .research-note .note-symbol svg { width: 16px; }
  .collection-title { font-size: 14px; }
  .view-hint { font-size: 8px; max-width: 45%; }
  .toolbar { gap: 10px; }
  .filters { width: 100%; justify-content: space-between; gap: 2px; }
  .filter { flex: 1; font-size: 10px; padding: 6px 5px; }
  .search { flex: 1; width: auto; }
  .toolbar select { max-width: 150px; }
  .category-row { gap: 4px; }
  .category { font-size: 10px; padding: 4px 7px; }
  .project-card { padding: 20px 18px 0; border-radius: 18px; }
  .card-description { font-size: 12px; }
  .revenue-box { padding: 12px; gap: 8px; }
  .revenue-source { max-width: 80px; }
  .revenue-value { font-size: 19px; }
  .revenue-label { font-size: 9px; }
  .card-actions .analysis-button { font-size: 10px; }
  .select-button, .pass-button { padding: 7px 11px; }
  .page-footer { margin: 0 18px; gap: 15px; font-size: 9px; }
  .page-footer span:last-child { white-space: nowrap; }
  .detail-dialog #detail-content { padding: 25px 20px; }
  .standard-dialog { padding: 25px 20px; }
  .detail-dialog, .standard-dialog { border-radius: 20px; }
  .detail-title .status { font-size: 9px; }
  .detail-title h2 { font-size: 22px; }
  .detail-actions { gap: 7px; }
  .detail-actions .select-button, .detail-actions .pass-button { padding: 7px 10px; font-size: 10px; }
  .detail-actions .analysis-button { font-size: 10px; }
  #toast { left: 50%; font-size: 11px; }
  .queue-row { padding: 15px; gap: 10px; }
  .queue-row .text-button { margin-left: 4px; font-size: 10px; }
  .queue-row .project-icon { width: 33px; height: 33px; font-size: 13px; border-radius: 10px; }
  .queue-row .status { display: none; }
  .factor-row { grid-template-columns: 90px 1fr 35px; }
  .scope-banner { padding: 18px; gap: 12px; }
  .scope-banner p { font-size: 11px; }
  .source-grid { gap: 16px; }
  .schedule-panel { padding: 22px; }
  .schedule-rule > strong { font-size: 12px; }
  .schedule-rule p { font-size: 11px; }
  .schedule-id { display: block; margin: 8px 0 0; }
  .source-stats { font-size: 10px; }
  .source-stats strong { font-size: 17px; }
  .source-card { padding: 20px; border-radius: 18px; }
  .source-disclosure { font-size: 10px; }
  .source-actions { gap: 10px; }
  .history-row, .history-header { grid-template-columns: 1fr 75px; gap: 9px; padding: 14px; }
  .history-source, .history-header span:nth-child(2) { display: none; }
  .history-row small { max-width: 200px; }
  .history-toolbar { flex-wrap: wrap; }
  .history-toolbar .search { max-width: none; min-width: 200px; }
  .run-row { gap: 10px; padding: 14px; }
  .run-row > .status { font-size: 9px; }
  .run-date { font-size: 9px; }
  .run-row > span:nth-child(2) { font-size: 11px; }
  .run-analysis { grid-template-columns: 1fr 45px 65px 10px; }
  .followup-row, .followup-header { grid-template-columns: 1fr 85px; }
  .followup-row .followup-reason { grid-column: 1/-1; grid-row: 2; }
  .followup-row .status { grid-column: 2; grid-row: 1; }
  .followup-header span:nth-child(2) { display: none; }
  .followup-reason { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-card:hover { transform: none; }
}

/* Structured business research uses the retained detail layout and palette. */
.business-block{border-top:1px solid var(--line,#dce2e8);padding:16px 0}.business-block summary{cursor:pointer;font-weight:600;line-height:1.6}.business-block summary span{font-weight:400;color:var(--muted,#6e7783);font-size:12px;margin-left:10px}.business-block p{overflow-wrap:anywhere}.business-step{border:1px solid var(--line,#dce2e8);border-radius:14px;padding:14px 18px;margin:14px 0}.business-step h4{margin:0 0 10px}.business-analysis>.muted{font-size:13px}.business-analysis .source-item small{display:block}.card-quality>.status{margin:0 6px 6px 0}

.open-source-analysis{overflow-wrap:anywhere}.open-source-analysis .source-item small{display:block}

.source-group{scroll-margin-top:32px;margin-top:28px}.source-group-nav{margin:22px 0;gap:12px;flex-wrap:wrap}.source-extra-links{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;margin-top:12px}.source-extra-links a{display:inline-flex;align-items:center;gap:5px}.source-extra-links svg{width:13px;height:13px}.source-group>.muted{margin-bottom:18px}
.investor-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px 25px;margin:26px 0;border:1px solid #dce8f8;border-radius:16px;background:linear-gradient(115deg,#f2f7ff,#fbfdfd)}.investor-entry .eyebrow{font-size:9px;margin-bottom:8px}.investor-entry h2{font-size:18px;margin:0 0 8px;letter-spacing:-.4px}.investor-entry p{max-width:760px;font-size:12px;line-height:1.9;color:var(--muted);margin:0}.investor-entry .muted{font-size:10px;margin-top:8px}.investor-entry>.primary-button{flex-shrink:0}.investor-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.investor-stats>div{background:#f5f8fc;border:1px solid var(--line-soft);border-radius:10px;padding:13px}.investor-stats span{font-size:10px;color:var(--muted);display:block;line-height:1.6}.investor-stats strong{font:500 24px var(--mono);color:#385273;display:block;margin-top:7px}.investor-coverage-status{font-size:11px;line-height:1.9;color:var(--muted)}.investor-institution{border:1px solid var(--line-soft);border-radius:14px;padding:18px;margin:13px 0}.investor-institution-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.investor-institution-title h3{font-size:15px;margin:0 0 8px}.investor-institution-title .secondary-button{font-size:11px}.investor-counts{display:flex;gap:10px 20px;flex-wrap:wrap;margin:15px 0;font-size:11px;color:var(--muted)}.investor-counts strong{font-weight:500;color:#426082;margin-left:4px}.investor-institution .source-actions,.investor-assessment .source-actions{flex-wrap:wrap;gap:12px 18px;font-size:11px}.investor-institution a svg,.investor-assessment a svg{width:12px;height:12px;vertical-align:middle}.investor-assessment .opportunity-summary{margin-bottom:15px}
.investor-project-context{margin:12px 0;padding:11px 13px;border:1px solid #e0eafa;border-radius:10px;background:#f8fbff}.investor-project-context>p{font-size:10px;line-height:1.8;color:var(--muted);margin:7px 0 0}.investor-project-context .source-audit{font-size:11px;margin-top:10px}
.investor-inventory,.investor-previous .mono{font-size:10px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:650px){.investor-entry{align-items:flex-start;flex-direction:column;padding:20px;gap:17px}.investor-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.investor-institution{padding:15px}.investor-institution-title{align-items:flex-start;flex-wrap:wrap}.investor-stats strong{font-size:22px}}

.investor-entry-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px;flex-shrink:0}.investor-entry-actions .primary-button,.investor-entry-actions .secondary-button{justify-content:center}.investor-entry .investor-pool-counts{margin-top:10px;font-weight:500;color:var(--accent-ink)}.investor-pool-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;margin:12px 0 18px;border:1px solid #dce8f8;border-radius:13px;background:linear-gradient(115deg,#f2f7ff,#fbfdfd)}.investor-pool-entry strong{font-size:13px;font-weight:500}.investor-pool-entry p{font-size:11px;color:var(--muted);line-height:1.9;margin:6px 0 0}.investor-pool-entry .investor-entry-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.investor-pool-entry .secondary-button,.investor-pool-entry .text-button{font-size:11px;white-space:nowrap}@media(max-width:760px){.investor-pool-entry{align-items:flex-start;flex-direction:column;gap:12px}.investor-entry-actions{max-width:100%;flex-shrink:1}}
.source-card .source-actions{flex-wrap:wrap}
.source-audit{border-top:1px solid var(--line-soft);margin-top:16px;padding-top:12px;color:var(--muted);font-size:11px}
.source-audit summary{cursor:pointer;line-height:1.8}
.source-audit summary:focus-visible{outline:2px solid #0071e3;outline-offset:4px;border-radius:4px}
.source-audit-method,.source-audit .source-note{font-size:11px;line-height:1.9;margin:10px 0 0;min-height:0;overflow-wrap:anywhere}
.source-geography{display:grid;gap:3px;margin:0 0 14px;color:var(--muted);font-size:10px;line-height:1.7;overflow-wrap:anywhere}
.source-lead>h3{flex-wrap:wrap}.source-lead .source-lead-meta{font-size:11px;line-height:1.7}.source-lead-claim{background:var(--accent-soft);border-radius:12px;padding:13px 15px;margin:13px 0;color:#3f526d}.source-lead-claim>strong{font-size:11px;color:var(--accent-ink)}.source-lead-claim p{margin:6px 0;font-size:13px;color:var(--ink);white-space:pre-line}.source-lead-claim small{font-size:10px;line-height:1.8;display:block;overflow-wrap:anywhere}.source-lead .source-actions{flex-wrap:wrap;font-size:11px}.source-lead-evidence p{white-space:pre-line}.source-lead-evidence .source-item small{line-height:1.8}.source-lead-evidence .source-item small span{font-size:10px}
.source-toolbar{flex-wrap:wrap;margin:18px 0 10px}.source-toolbar .search{flex:1 1 240px}.source-toolbar select{max-width:100%;min-width:170px}.source-filter-note{font-size:11px;line-height:1.8}.source-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line-soft);padding:12px 0}.source-pagination>.muted{font-size:12px}.source-pagination>div{display:flex;gap:18px}.source-pagination button:disabled{opacity:.35;cursor:default}
.mapped-assessments-dialog{width:min(960px,calc(100vw - 24px))}.assessment-intro .section-note{margin-bottom:14px}.assessment-coverage{font-size:13px;line-height:1.8}.assessment-coverage strong{color:var(--accent-ink)}.assessment-intro>.muted{font-size:11px;line-height:1.8}.assessment-filters{flex-wrap:wrap;gap:8px;margin:20px 0 10px}.assessment-filters .filter{font-size:11px;padding:7px 11px}.assessment-toolbar select{min-width:150px;flex:1 1 150px}.assessment-toolbar .search{flex:1 1 100%}.assessment-methodology{margin-bottom:18px;overflow-wrap:anywhere}.assessment-methodology p,.assessment-methodology li{line-height:1.8}.assessment-methodology .mono{font-size:10px}.assessment-version-list{display:grid;gap:8px}.assessment-version-list .text-button{text-align:left;justify-content:flex-start;white-space:normal}.assessment-version-list button:disabled{opacity:.6;cursor:default}.assessment-row{border:1px solid var(--line-soft);border-radius:16px;padding:20px;margin:16px 0;overflow-wrap:anywhere}.assessment-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.assessment-heading h3{font-size:17px;line-height:1.5;margin:0}.assessment-heading .muted{font-size:11px;margin:4px 0 0}.assessment-official{font-size:11px;flex-shrink:0;padding-top:3px}.assessment-official svg{width:12px;height:12px;vertical-align:middle}.assessment-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 10px}.assessment-scores>div{background:#f5f7fa;border-radius:10px;padding:12px 14px}.assessment-scores>div.assessment-opportunity{background:var(--accent-soft)}.assessment-scores span{display:block;color:var(--muted);font-size:10px;line-height:1.5}.assessment-scores strong{display:block;font:500 24px var(--mono);margin-top:6px;color:#2c3f59}.assessment-scores small{font-size:10px;color:var(--muted);margin-left:4px}.assessment-scores .assessment-score-unknown{font:500 16px var(--font);color:var(--muted);line-height:1.8}.assessment-confidence{font-size:10px;line-height:1.8;color:var(--muted)}.assessment-summary{font-size:13px;line-height:1.9;margin:12px 0}.assessment-reason,.assessment-dimension-reasons p{font-size:11px;line-height:1.9;margin:8px 0}.assessment-reason strong,.assessment-dimension-reasons strong{color:#45546b;margin-right:6px}.assessment-commercial{display:grid;gap:8px;margin:14px 0 0;font-size:11px;line-height:1.8}.assessment-commercial>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px}.assessment-commercial dt{color:var(--muted)}.assessment-commercial dd{margin:0;min-width:0}.assessment-details h4{margin:18px 0 8px;font-size:11px}.assessment-details p,.assessment-details li{line-height:1.8}.assessment-details a svg{width:12px;height:12px;vertical-align:middle}.assessment-details .mono{font-size:10px}.assessment-list+.history-pagination{gap:12px}.assessment-list+.history-pagination>span{font-size:10px;text-align:center;color:var(--muted)}
@media(max-width:600px){.assessment-row{padding:16px}.assessment-heading{flex-wrap:wrap;gap:8px}.assessment-official{flex-shrink:1;padding-top:0}.assessment-scores{gap:6px}.assessment-scores>div{padding:10px 8px}.assessment-scores strong{font-size:22px}.assessment-scores span{font-size:9px}.assessment-commercial>div{grid-template-columns:54px minmax(0,1fr);gap:8px}.assessment-list+.history-pagination>span{display:none}}
