/* Shared workspace polish. No scroll hijacking or animated layouts. */
html:has(#appShell.workspace-motion-paused:not([hidden])) { scroll-behavior:auto; }
#appShell { --motion-ease: cubic-bezier(.22,1,.36,1); }
#appShell .topbar::after { content:""; position:absolute; inset:auto 0 0; height:2px; background:linear-gradient(90deg,#8271e4,#b8a9ff); transform:scaleX(var(--workspace-reading-progress,0)); transform-origin:left; pointer-events:none; }
#appShell .workspace-view { max-width:1600px; margin-inline:auto; }
#appShell .hero-banner { border:1px solid rgba(188,176,255,.22); }
#appShell .hero-banner h2 { font-size:clamp(32px,3vw,48px); letter-spacing:-.055em; }
#appShell .hero-orbit { opacity:.85; }
#appShell .stats { margin-bottom:16px; }
#appShell .stats button[data-metric-view] { position:relative; overflow:hidden; transition:transform 180ms var(--motion-ease),box-shadow 180ms ease,border-color 180ms ease; }
#appShell .stats button[data-metric-view]:hover { transform:translateY(-3px); border-color:#a59be2; box-shadow:0 18px 36px rgba(49,38,114,.10); }
#appShell .stats button[data-metric-view]:active { transform:translateY(0) scale(.99); }
#appShell #pipelineCountExplanation { margin:0 2px 16px; color:#59627d; line-height:1.7; font-size:12px; }
#appShell .review-monitor { margin:0 0 38px; padding:23px 25px 16px; border:1px solid #dcdced; border-radius:21px; background:linear-gradient(115deg,#faf9ff,#fff 60%); box-shadow:0 12px 32px rgba(28,27,83,.045); }
#appShell .review-monitor-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
#appShell .review-monitor-identity { display:flex; gap:13px; align-items:center; }
#appShell .review-monitor-icon { display:grid; place-items:center; width:44px; height:44px; border:1px solid #d7d0f5; border-radius:14px; background:#eee9ff; color:#6552bd; }
#appShell .review-monitor-icon svg { width:24px; height:24px; }
#appShell .review-monitor h3 { margin:5px 0 0; font-size:18px; letter-spacing:-.025em; color:#252c4d; }
#appShell .review-monitor .eyebrow { font-size:9px; letter-spacing:.14em; }
#appShell .review-state { display:flex; gap:7px; align-items:center; padding:8px 11px; border-radius:30px; background:#e9f5ef; color:#286449; font-size:11px; font-weight:750; white-space:nowrap; }
#appShell .review-state::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
#appShell .review-monitor[data-state="attention"] .review-state { background:#fbf1dc; color:#815c19; }
#appShell .review-monitor[data-state="paused"] .review-state { background:#eeedf3; color:#606078; }
#appShell .review-monitor-chips { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:20px; }
#appShell .review-chip { padding:13px 15px; border-radius:12px; background:#fff; border:1px solid #e7e7f1; }
#appShell .review-chip strong { display:block; color:#333452; font-size:23px; line-height:1.2; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
#appShell .review-chip span { display:block; color:#626a82; font-size:11px; margin-top:6px; }
#appShell .review-chip[data-kind="checking"] { border-color:#c6bceb; background:#f5f2ff; }
#appShell .review-chip[data-kind="checking"] strong { color:#6250b4; }
#appShell .review-monitor-details { margin-top:17px; border-top:1px solid #e8e7f2; padding-top:13px; }
#appShell .review-monitor-details summary { cursor:pointer; color:#555c7a; font-size:11px; font-weight:650; padding:3px 0; }
#appShell .review-monitor-details summary span { float:right; }
#appShell .review-monitor-details p { color:#626a82; font-size:11px; line-height:1.85; margin:12px 0 1px; }
#appShell .pipeline-health-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:16px 0; }
#appShell .pipeline-health-metrics>div { border:1px solid #e6e3f0; background:#f9f8fd; border-radius:12px; padding:14px; }
#appShell .pipeline-health-metrics strong { display:block; color:#46436f; font-size:16px; }
#appShell .pipeline-health-metrics span { display:block; color:#666d86; margin-top:6px; font-size:10px; }
#appShell .health-legacy-note { grid-column:1/-1; }
#appShell .cloud-source-health { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:14px; }
#appShell .cloud-source-row { display:grid; grid-template-columns:1fr auto; align-items:center; gap:7px; border:1px solid #e7e6ef; border-radius:10px; padding:12px; background:#fff; }
#appShell .cloud-source-row strong { font-size:11px; color:#474c69; }
#appShell .cloud-source-row small { font-size:10px; color:#69718a; grid-column:1/-1; }
#appShell .source-health-tag { font-size:9px; font-weight:700; color:#34694e; background:#edf7f1; border-radius:20px; padding:5px 7px; }
#appShell .cloud-source-row:is([data-state="partial"],[data-state="unavailable"],[data-state="save_failed"],[data-state="stale"]) .source-health-tag { color:#815b24; background:#fbf2e3; }
#appShell .government-card { transition:transform 180ms var(--motion-ease),border-color 180ms ease,box-shadow 180ms ease; }
#appShell .government-card:hover { transform:translateY(-2px); border-color:#b5abe2; box-shadow:0 13px 27px rgba(38,30,86,.08); }
#appShell :is(button,input,select,a,summary):focus-visible { outline:2px solid #8271d4; outline-offset:3px; }
#appShell :is(.filters input,.filters select,.opportunity-search-filters input,.opportunity-search-filters select) { transition:border-color 160ms ease,box-shadow 160ms ease; }
#appShell .table-wrap tbody tr { transition:background-color 150ms ease; }
#appShell .workspace-enter { animation:workspace-enter 380ms var(--motion-ease) both; }
@keyframes workspace-enter { from { opacity:.6; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:700px) {
 #appShell .review-monitor { padding:18px 16px 14px; }
 #appShell .review-monitor-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; }
 #appShell .review-monitor-chips { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #appShell .review-chip:last-child { grid-column:1/-1; }
 #appShell .pipeline-health-metrics,#appShell .cloud-source-health { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
 #appShell .workspace-view *,#appShell .workspace-view *::before,#appShell .workspace-view *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
 #appShell :is(.stats button[data-metric-view],.government-card):hover { transform:none; }
}
#appShell.workspace-motion-paused .workspace-view *,#appShell.workspace-motion-paused .workspace-view *::before,#appShell.workspace-motion-paused .workspace-view *::after { animation:none!important; transition:none!important; }
#appShell.workspace-motion-paused :is(.stats button[data-metric-view],.government-card):hover { transform:none; }
