:root {
  --ink: #0b0d14;
  --blue: #0e1ae6;
  --blue-soft: #ecefff;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: #dde1ea;
  --muted: #6a7280;
  --amber: #b7791f;
  --amber-soft: #fdf3e0;
  --red: #c0392b;
  --red-soft: #fbe9e7;
  --green: #176b45;
  --green-soft: #e5f4ed;
  --shadow: 0 18px 55px rgba(11, 13, 20, .18);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .58; }
.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 18px; background: var(--ink); color: white; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; }
.brand strong, .brand span, .profile strong, .profile span { display: block; }
.brand strong { letter-spacing: .14em; font-size: 13px; }
.brand span { color: #aab0be; font-size: 12px; margin-top: 2px; }
.brand-with-logo { align-items: stretch; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.brand-logo { display: block; width: 152px; max-width: 100%; height: auto; margin: 0 auto; border-radius: 9px; background: white; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.brand-with-logo > div { padding: 0 3px; }
nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #303748 transparent; }
.nav-section-label { margin: 8px 10px 2px; color: #6f7788; font-size: 8px; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.nav-section-label:first-child { margin-top: 2px; }
.nav-item { width: 100%; border: 0; color: #c9ced9; background: transparent; border-radius: 8px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; text-align: left; font-size: 13px; font-weight: 650; }
.nav-item span { color: #767e90; font-size: 10px; letter-spacing: .12em; }
.nav-item:hover, .nav-item.active { background: #181c2a; color: white; }
.nav-item.active { box-shadow: inset 3px 0 0 var(--blue); }
.nav-more-toggle { margin-top: 5px; border-top: 1px solid #292f42; border-radius: 0 0 8px 8px; padding-top: 10px; }
.nav-more-toggle b { margin-left: auto; color: #8d96a8; font-size: 14px; transition: transform .18s ease; }
.nav-more-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
.nav-more-menu { margin: 2px 0 6px 18px; padding-left: 8px; border-left: 1px solid #303748; }
.nav-subitem { padding: 9px 10px; font-size: 12px; }
.nav-subitem span { font-size: 9px; }
.sidebar-rule { margin-top: auto; padding: 12px; border: 1px solid #292f42; background: #121621; border-radius: 10px; }
.sidebar-rule small, .eyebrow { color: #717bff; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.sidebar-rule p { margin: 8px 0 0; color: #cbd0db; font-size: 12px; line-height: 1.45; }
.profile { display: flex; gap: 10px; align-items: center; padding: 12px 6px 0; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #252a3c; color: #bfc4ff; font-size: 11px; font-weight: 800; }
.profile strong { font-size: 12px; }.profile span { color: #858c9c; font-size: 11px; margin-top: 2px; }
main { min-width: 0; }
.news-banner { height: 34px; padding: 0 22px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; color: white; background: linear-gradient(90deg, #081020 0%, #172662 52%, #0c45a4 100%); border-bottom: 1px solid rgba(255,255,255,.12); position: sticky; top: 0; z-index: 12; box-shadow: 0 3px 12px rgba(14,29,76,.18); }
.news-banner-label { display: flex; align-items: center; gap: 8px; color: #eef3ff; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.news-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5151; box-shadow: 0 0 0 4px rgba(255,81,81,.14); animation: news-pulse 2s ease-in-out infinite; }
.news-banner-story { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.news-ticker-track { --news-duration: 80s; width: max-content; display: flex; will-change: transform; animation: news-scroll var(--news-duration) linear infinite; }
.news-ticker-track.paused, .news-banner-story:hover .news-ticker-track, .news-banner-story:focus-within .news-ticker-track { animation-play-state: paused; }
.news-ticker-group { display: flex; align-items: center; flex: 0 0 auto; gap: 34px; padding-right: 34px; }
.news-ticker-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.news-ticker-item:after { content: "◆"; margin-left: 25px; color: #7589d7; font-size: 6px; }
.news-ticker-item a { color: #fff; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.news-ticker-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-ticker-source { padding: 3px 6px; color: #bfd0ff; background: rgba(255,255,255,.08); border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.news-ticker-category { padding: 3px 6px; border-radius: 4px; font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.news-ticker-category.global { color: #d9f2ff; background: rgba(63,183,255,.22); }
.news-ticker-category.aviation { color: #dce4ff; background: rgba(129,144,255,.25); }
.news-ticker-category.sports { color: #dcfce7; background: rgba(38,191,111,.24); }
.news-banner-controls { display: flex; align-items: center; gap: 3px; }
.news-banner-controls button { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; color: #dce6ff; background: transparent; border: 0; border-radius: 6px; font-size: 16px; line-height: 1; }
.news-banner-controls button:hover { color: white; background: rgba(255,255,255,.12); }
#news-pause { font-size: 10px; }
@keyframes news-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes news-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .news-ticker-track { animation: none; }.news-banner-story { overflow-x: auto; mask-image: none; } }
.topbar { height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 34px; z-index: 10; backdrop-filter: blur(12px); }
.local-status { min-width: 382px; height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: white; background: linear-gradient(135deg, #111628 0%, #202b52 58%, #173e8f 100%); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; box-shadow: 0 8px 22px rgba(24,35,78,.18); }
.local-status-item { min-width: 0; display: flex; align-items: center; gap: 8px; }
.local-status-item > div { min-width: 0; }
.local-status-item strong, .local-status-item small { display: block; white-space: nowrap; }
.local-status-item strong { font-size: 13px; font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
.local-status-item small { margin-top: 3px; color: #b9c5e6; font-size: 9px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.local-status-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #dce5ff; background: rgba(255,255,255,.09); border-radius: 8px; font-size: 15px; }
.weather-icon { color: #ffd76a; }
.local-status-divider { width: 1px; height: 24px; flex: 0 0 auto; background: rgba(255,255,255,.16); }
.search-wrap { min-width: 240px; max-width: 560px; flex: 1; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 13px; }
.primary-button, .secondary-button, .ghost-button { border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 750; border: 1px solid transparent; }
.primary-button { color: white; background: var(--blue); box-shadow: 0 5px 14px rgba(14, 26, 230, .18); }
.primary-button:hover { background: #0712c5; }
.secondary-button { color: var(--ink); background: white; border-color: var(--line); }
.ghost-button { color: var(--blue); background: var(--blue-soft); }
.danger-button { border: 1px solid #f1b8b2; border-radius: 8px; padding: 10px 14px; color: var(--red); background: var(--red-soft); font-size: 12px; font-weight: 750; }
.danger-button:hover { background: #f7d6d2; }
.quote-button { border: 1px solid #087a4b; border-radius: 8px; padding: 10px 14px; color: white; background: #087a4b; font-size: 12px; font-weight: 800; box-shadow: 0 5px 14px rgba(8,122,75,.18); }
.quote-button:hover { background: #05633d; }
.menu-button { display: none; }
.view-root { padding: 30px 32px 56px; max-width: 1500px; margin: auto; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(25px, 3vw, 36px); margin: 4px 0 0; letter-spacing: -.04em; }
.page-heading p { max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.55; margin: 8px 0 0; }
.as-of { color: var(--muted); font-size: 12px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: relative; overflow: hidden; }
.metric:before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--blue); }
.metric.warn:before { background: var(--amber); }.metric.danger:before { background: var(--red); }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metric-value { display: block; margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.quote-metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.quote-kpi { text-align: left; cursor: pointer; color: inherit; font: inherit; min-width: 0; }
.quote-kpi:hover, .quote-kpi[aria-pressed="true"] { border-color: #64b5f6; box-shadow: 0 0 0 2px #64b5f644; }
.quote-kpi:focus-visible { outline: 3px solid #64b5f6; outline-offset: 3px; }
.quote-kpi .metric-note, .quote-kpi-action { display: block; margin-top: 8px; }
.quote-kpi-action { color: #64b5f6; font-size: 12px; font-weight: 700; }
.quote-kpi .metric-money { font-size: 20px; overflow-wrap: anywhere; }
.quote-queue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0; scroll-margin-top: 20px; }
.metric-note { margin-top: 5px; color: var(--muted); font-size: 11px; }
.command-center-hero { margin-bottom: 18px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; position: relative; color: white; background: radial-gradient(circle at 88% 10%, rgba(81,107,255,.55), transparent 30%), linear-gradient(135deg, #090d1c 0%, #162457 58%, #0d43a1 100%); border-radius: 14px; box-shadow: 0 18px 40px rgba(16,35,92,.19); }
.command-center-hero:after { content: ""; width: 210px; height: 210px; position: absolute; right: -80px; bottom: -135px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 68px rgba(255,255,255,.03); }
.command-hero-copy { min-width: 0; position: relative; z-index: 1; }
.command-live { display: inline-flex; align-items: center; gap: 8px; color: #c7d4ff; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.command-live i { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 0 4px rgba(74,222,128,.13); }
.command-hero-copy h2 { margin: 9px 0 6px; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.035em; }
.command-hero-copy p { max-width: 670px; margin: 0; color: #c4cee8; font-size: 12px; line-height: 1.55; }
.command-hero-actions { display: flex; gap: 9px; flex: 0 0 auto; position: relative; z-index: 1; }
.hero-primary, .hero-secondary { padding: 11px 15px; border-radius: 8px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.hero-primary { color: #10204e; background: white; border: 1px solid white; }
.hero-secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); }
.executive-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.executive-metric-grid .metric { padding: 16px; }
.executive-metric-grid .metric-value { font-size: clamp(22px, 2.2vw, 30px); }
.priority-panel, .pipeline-panel { margin-bottom: 18px; }
.priority-flag { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #344054; background: #eef1f5; font-size: 9px; font-weight: 850; white-space: nowrap; }
.priority-flag.warning { color: #925c09; background: #fff2d7; }
.priority-flag.critical { color: #a42e25; background: #fde7e4; }
.pipeline-strip { padding: 18px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pipeline-stage { min-width: 0; }
.pipeline-stage > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipeline-stage span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.pipeline-stage strong { font-size: 18px; }
.pipeline-bar { height: 5px; margin-top: 9px; overflow: hidden; background: #edf0f5; border-radius: 99px; }
.pipeline-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6270ff); border-radius: inherit; }
.opportunity-list { display: grid; }
.opportunity-row { width: 100%; padding: 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto 62px; align-items: center; gap: 18px; color: var(--ink); background: white; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.opportunity-row:last-child { border-bottom: 0; }
.opportunity-row:hover { background: #f8f9ff; }
.opportunity-row span, .opportunity-row strong, .opportunity-row small { display: block; }
.opportunity-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.opportunity-quantity { text-align: right; }
.opportunity-quantity strong { color: var(--green); font-size: 18px; }
.opportunity-arrow { color: var(--blue); font-size: 10px; font-weight: 850; white-space: nowrap; }
.panel.commercial-pulse { color: white; background: linear-gradient(150deg, #10162a, #1c2f69); border-color: #263b79; }
.commercial-pulse .panel-header { border-color: rgba(255,255,255,.12); }
.commercial-pulse .panel-header p { color: #aebce0; }
.commercial-stat { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.commercial-stat span { color: #b7c3df; font-size: 11px; }
.commercial-stat strong { font-size: 14px; }
.commercial-link { width: 100%; margin-top: 14px; padding: 10px; color: white; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; font-size: 11px; font-weight: 850; }
.readiness-row { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.readiness-row:last-child { border-bottom: 0; }
.readiness-row strong { font-size: 16px; }
.text-danger { color: var(--red); }
.layout-two { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); gap: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-header { min-height: 58px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 14px; margin: 0; }.panel-header p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.panel-body { padding: 18px; }
.status-list { display: grid; gap: 14px; }
.status-row { display: grid; grid-template-columns: 110px 1fr 26px; gap: 10px; align-items: center; font-size: 12px; }
.bar { height: 6px; background: #edf0f5; border-radius: 20px; overflow: hidden; }.bar span { display: block; height: 100%; background: var(--blue); border-radius: 20px; }
.inventory-overview-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.inventory-category-switcher { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.inventory-overview-split button, .inventory-category-switcher button { min-width: 0; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.inventory-overview-split button:hover, .inventory-category-switcher button:hover { border-color: #aeb5ff; box-shadow: 0 8px 22px rgba(11,13,20,.06); }
.inventory-overview-split span, .inventory-category-switcher span { font-size: 12px; font-weight: 850; }
.inventory-overview-split strong, .inventory-category-switcher strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--blue); font-size: 23px; letter-spacing: -.03em; }
.inventory-overview-split small, .inventory-category-switcher small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.inventory-category-switcher { margin: 0 0 16px; }
.inventory-category-switcher button { padding: 18px; background: #f8fafc; }
.inventory-category-switcher button.active { color: white; background: linear-gradient(135deg, #111628 0%, #172662 100%); border-color: #172662; box-shadow: 0 10px 28px rgba(14,26,80,.18); }
.inventory-category-switcher button.active strong { color: #aeb9ff; }
.inventory-category-switcher button.active small { color: #c6cde3; }
.attention-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.attention-item:last-child { border: 0; }.attention-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--amber); }
.attention-item strong, .attention-item span { display: block; font-size: 12px; }.attention-item span { color: var(--muted); margin-top: 3px; }.attention-item button { border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 750; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 7px; padding: 8px 11px; font-size: 11px; font-weight: 750; }
.tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.filter-select { margin-left: auto; border: 1px solid var(--line); padding: 8px 32px 8px 10px; border-radius: 7px; background: white; font-size: 11px; }
.inventory-filter-panel { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.inventory-filter-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; }
.inventory-advanced-filters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; }
.inventory-advanced-filters[hidden] { display: none; }
.inventory-filter-grid .field { margin: 0; }
.inventory-filter-grid label { font-size: 10px; }
.crm-switcher { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.crm-switcher button { border: 1px solid var(--line); background: white; color: var(--ink); padding: 9px 14px; border-radius: 8px; font-weight: 700; }
.crm-switcher button.active { background: var(--navy); border-color: var(--navy); color: white; }
.read-only-chip { margin-left: auto; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.crm-search { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; margin: 0 0 16px; }
.crm-search input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: white; color: var(--ink); }
.compact-actions { margin-top: 12px; }
.table-wrap { overflow: auto; }
.select-column { width: 42px; min-width: 42px; text-align: center; }
.select-column input, .bulk-select-all input, .rfq-select input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
tbody tr.selected { background: #edf6ff; box-shadow: inset 3px 0 #216cac; }
.bulk-selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 14px 0; padding: 11px 14px; border: 1px solid #c7d8e8; border-radius: 10px; background: #f3f8fc; }
.bulk-select-all { display: inline-flex; align-items: center; gap: 8px; color: #24445f; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.bulk-selection-bar > strong { min-width: 82px; color: #173e68; font-size: 12px; }
.bulk-selection-actions { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bulk-selection-actions .filter-select { min-width: 150px; }
.bulk-selection-actions .text-button { padding: 8px 6px; }
.bulk-selection-actions button:disabled, .bulk-selection-actions select:disabled { opacity: .48; cursor: not-allowed; }
.rfq-card-shell { position: relative; padding-top: 30px; border: 1px solid transparent; border-radius: 10px; }
.rfq-card-shell.selected { border-color: #7bb0db; background: #edf6ff; box-shadow: 0 0 0 2px rgba(33,108,172,.1); }
.rfq-card-shell .rfq-card { width: 100%; border: 0; border-radius: 0 0 9px 9px; }
.rfq-select { position: absolute; top: 7px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 820px; }
th { background: var(--ink); color: white; text-align: left; padding: 11px 13px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; position: sticky; top: 0; }
td { padding: 13px; border-bottom: 1px solid #e8ebf1; font-size: 12px; vertical-align: middle; }
tbody tr { background: white; } tbody tr:hover { background: #fafbff; }
.record-link { background: transparent; border: 0; color: var(--blue); padding: 0; font-weight: 800; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 850; letter-spacing: .06em; white-space: nowrap; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }.badge.amber { background: var(--amber-soft); color: var(--amber); }.badge.red { background: var(--red-soft); color: var(--red); }.badge.gray { background: #eef0f4; color: #5d6472; }.badge.green { background: var(--green-soft); color: var(--green); }
.blank-state { padding: 48px 24px; text-align: center; color: var(--muted); }.blank-state strong { color: var(--ink); display: block; margin-bottom: 5px; }
.blank-state.compact { padding: 22px 14px; }
.muted { color: var(--muted); }
.helper-text { font-size: 12px; color: var(--muted); line-height: 1.6; }
.no-margin { margin-top: 0 !important; }
.one-column { grid-template-columns: 1fr !important; }
.view-actions { display: flex; justify-content: flex-end; margin: -8px 0 14px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.segmented button { border: 0; border-radius: 6px; padding: 7px 10px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.segmented button.active { color: white; background: var(--blue); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(260px,1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.kanban.four-columns { grid-template-columns: repeat(4, minmax(245px, 1fr)); }
.kanban-column { min-height: 360px; background: #eceff5; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kanban-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 3px 10px; font-size: 12px; font-weight: 800; }.kanban-head span { color: var(--muted); }
.rfq-card { display: block; width: 100%; color: var(--ink); text-align: left; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.rfq-card:hover { border-color: #aeb5ff; box-shadow: 0 8px 24px rgba(11,13,20,.08); }
.rfq-card .top { display: flex; justify-content: space-between; gap: 10px; }.rfq-card h3 { margin: 8px 0 4px; font-size: 14px; }.rfq-card p { margin: 0; color: var(--muted); font-size: 11px; }.rfq-meta { display: flex; justify-content: space-between; margin-top: 14px; font-size: 10px; color: var(--muted); }
.timeline { position: relative; margin-left: 8px; }.timeline:before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 22px 28px; }.timeline-dot { position: absolute; left: 0; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); border: 3px solid var(--blue-soft); box-sizing: content-box; }
.timeline-item h3 { font-size: 13px; margin: 0; }.timeline-item p { color: var(--muted); font-size: 11px; margin: 5px 0; }.timeline-item time { color: #8c93a1; font-size: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.check-card { border: 1px solid var(--line); border-radius: 8px; padding: 15px; }.check-card small { color: var(--muted); font-weight: 750; }.check-card strong { display: block; font-size: 13px; margin-top: 8px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(11,13,20,.62); padding: 30px; overflow: auto; }
.modal-backdrop[hidden] { display: none; }
.modal { max-width: 820px; margin: 0 auto; background: white; border-radius: 12px; box-shadow: var(--shadow); }
.modal-header, .drawer-header { padding: 20px 22px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); }.modal-header h2, .drawer-header h2 { margin: 5px 0 0; font-size: 22px; }.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: white; font-size: 20px; color: var(--muted); }
.form { padding: 22px; }.form-section { margin-bottom: 22px; }.form-section h3 { font-size: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }.field.full { grid-column: 1 / -1; }.field label { display: block; font-size: 10px; font-weight: 800; color: #4f5665; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #d5d9e3; border-radius: 7px; padding: 10px 11px; outline: none; background: white; font-size: 12px; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }.field textarea { min-height: 80px; resize: vertical; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.gate-box { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 12px; }.gate-box strong { font-size: 12px; }.gate-box ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer { position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(520px, 100%); background: white; box-shadow: var(--shadow); transform: translateX(104%); transition: transform .22s ease; overflow-y: auto; }.drawer.open { transform: translateX(0); }.drawer-content { padding: 22px; }.detail-hero { padding: 16px; background: var(--ink); color: white; border-radius: 10px; margin-bottom: 18px; }.detail-hero h3 { font-size: 19px; margin: 8px 0 4px; }.detail-hero p { margin: 0; color: #aeb4c1; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }.detail { padding: 13px 0; border-bottom: 1px solid var(--line); }.detail:nth-child(odd) { padding-right: 14px; }.detail small, .detail strong { display: block; }.detail small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.detail strong { font-size: 12px; margin-top: 5px; word-break: break-word; }
.drawer-actions { display: flex; gap: 8px; margin-top: 18px; }.drawer-actions.wrap { flex-wrap: wrap; }
.workflow-card { margin: 0 0 18px; padding: 16px; border: 1px solid #cfd8e6; border-radius: 10px; background: #f8fafc; }
.workflow-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.workflow-head h3 { margin: 4px 0 12px; font-size: 16px; }
.workflow-steps { display: grid; gap: 8px; }
.workflow-step { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.workflow-step > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e8edf4; font-size: 11px; font-weight: 700; }
.workflow-step.done { color: var(--ink); }.workflow-step.done > span { background: #d8f3e7; color: #087a4b; }
.workflow-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.invite-list { display: grid; gap: 8px; margin-top: 14px; }
.invite-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.invite-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; border-radius: 8px; padding: 11px 16px; font-size: 12px; box-shadow: var(--shadow); transition: .2s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f241a; }.toast.success { background: #0e6541; }
.toggle-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 750; }
.toggle-label input { width: 16px; height: 16px; accent-color: var(--blue); }
.inline-select { min-width: 110px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; background: white; font-size: 11px; }
.role-copy { max-width: 280px; color: var(--muted); }
.import-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 12px; }
.import-summary > div { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.import-summary strong, .import-summary span { display: block; }
.import-summary strong { font-size: 21px; }
.import-summary span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.import-preview-table { max-height: 340px; border: 1px solid var(--line); border-radius: 8px; }
.import-preview-table table { min-width: 680px; }
.import-error { margin-top: 16px; color: var(--red); background: var(--red-soft); border-radius: 8px; }
.quote-search-shell { padding: 22px; }
.quote-search-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.quote-search-summary > div { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.quote-search-summary small, .quote-search-summary strong { display: block; }
.quote-search-summary small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.quote-search-summary strong { margin-top: 5px; font-size: 13px; word-break: break-word; }
.quote-search-status { position: relative; padding: 14px 14px 14px 43px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #1e3a5f; }
.quote-search-status strong, .quote-search-status p { display: block; margin: 0; }
.quote-search-status p { margin-top: 4px; color: #52657d; font-size: 11px; }
.quote-search-status.success { border-color: #a7e3c9; background: #ecfdf5; color: #075d3b; padding-left: 14px; }
.quote-search-status.notice { border-color: #f1cf82; background: #fff8e7; color: #78510a; padding-left: 14px; }
.quote-search-status.error { border-color: #f1b8b2; background: var(--red-soft); color: var(--red); padding-left: 14px; }
.loading-dot { position: absolute; left: 16px; top: 17px; width: 12px; height: 12px; border: 2px solid #91b6dc; border-top-color: #216cac; border-radius: 50%; animation: quote-spin .8s linear infinite; }
.quote-results { max-height: 430px; margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; }
.quote-results table { min-width: 1050px; }
.quote-results a { color: var(--blue); }
.quote-select-cell { text-align: center; }
.quote-select { width: 17px; height: 17px; accent-color: var(--green); }
.quote-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.quote-selection-bar > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.quote-selection-bar > div { display: flex; gap: 8px; }
.quote-compose-shell, .quote-review-shell { padding: 22px; }
.quote-supplier-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.quote-supplier-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; }
.quote-supplier-list span { color: var(--muted); font-size: 11px; text-align: right; }
.quote-review-warning { margin-bottom: 14px; padding: 14px; border: 1px solid #f1cf82; border-radius: 8px; background: #fff8e7; color: #78510a; }
.quote-review-warning p { margin: 4px 0 0; font-size: 11px; }
.quote-review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quote-review-grid > div, .quote-review-section { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.quote-review-grid small, .quote-review-grid strong, .quote-review-section small { display: block; }
.quote-review-grid small, .quote-review-section small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.quote-review-grid strong { margin-top: 5px; }
.quote-review-section { margin-top: 10px; }
.quote-review-section ul { margin: 8px 0 0; padding-left: 18px; }
.quote-review-section p { margin: 8px 0 0; white-space: pre-wrap; }
.quote-send-confirm { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 13px; border: 1px solid #a7e3c9; border-radius: 8px; background: #ecfdf5; color: #075d3b; font-size: 12px; font-weight: 750; }
.quote-send-confirm input { width: 17px; height: 17px; accent-color: var(--green); }
.quote-send-success { padding: 44px 24px 24px; text-align: center; }
.quote-send-success > span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: #dcfce7; color: var(--green); font-size: 24px; font-weight: 900; }
@keyframes quote-spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2,1fr); }.executive-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.layout-two { grid-template-columns: 1fr; }.pipeline-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }.inventory-filter-grid, .inventory-advanced-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1320px) { .local-status { min-width: 0; padding: 0 10px; }.local-status-item small, .local-status-divider { display: none; }.local-weather { margin-left: -3px; } }
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 40; width: 244px; transform: translateX(-105%); transition: transform .2s ease; }.sidebar.open { transform: translateX(0); }
  .news-banner { padding: 0 12px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; }.news-banner-label { font-size: 0; gap: 0; }.news-banner-label:after { content: "News"; font-size: 9px; }.news-ticker-source { display: none; }.menu-button { display: block; border: 1px solid var(--line); background: white; padding: 8px; border-radius: 6px; }.topbar { padding: 0 16px; }.search-wrap { min-width: 0; }.local-status { display: none; }.secondary-button { display: none; }#import-button { display: inline-flex; }.view-root { padding: 24px 16px 48px; }.metric-grid, .executive-metric-grid { grid-template-columns: 1fr 1fr; }.command-center-hero { align-items: flex-start; flex-direction: column; padding: 22px; }.pipeline-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }.page-heading { align-items: start; flex-direction: column; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.check-grid { grid-template-columns: 1fr; }.import-summary { grid-template-columns: 1fr 1fr; }.inventory-filter-grid, .inventory-advanced-filters { grid-template-columns: 1fr 1fr; }.inventory-overview-split, .inventory-category-switcher { grid-template-columns: 1fr; }.invite-row { grid-template-columns: 1fr; }
  .crm-search { grid-template-columns: 1fr; }.crm-search .secondary-button { display: inline-flex; }.read-only-chip { margin-left: 0; }.quote-search-summary, .quote-review-grid { grid-template-columns: 1fr; }.quote-search-shell .secondary-button, .quote-compose-shell .secondary-button, .quote-review-shell .secondary-button { display: inline-flex; }.quote-selection-bar, .quote-supplier-list li { align-items: stretch; flex-direction: column; }.quote-selection-bar > div { flex-wrap: wrap; }.quote-supplier-list span { text-align: left; }
}
@media (max-width: 470px) { .metric-grid, .executive-metric-grid { grid-template-columns: 1fr; }.command-hero-actions { width: 100%; flex-direction: column; }.pipeline-strip { grid-template-columns: 1fr; }.opportunity-row { grid-template-columns: 1fr auto; }.opportunity-arrow { display: none !important; }.search-wrap input::placeholder { color: transparent; }.primary-button { padding: 10px; }.topbar .primary-button { font-size: 0; }.topbar .primary-button:after { content: "+"; font-size: 18px; } }
/* Secure Supabase sign-in gate */
.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 20%, #173e68 0, #0b2038 42%, #071727 100%); }
.auth-card { width: min(430px, 100%); padding: 38px; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.auth-brand { display: grid; justify-items: center; gap: 10px; color: #102a46; margin-bottom: 28px; text-align: center; }
.auth-brand-logo { display: block; width: min(290px, 100%); height: auto; }
.auth-brand strong { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.auth-card h1 { margin: 8px 0 8px; font-size: 2.15rem; color: #102a46; }
.auth-card > p { color: #617087; line-height: 1.55; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-form label { display: grid; gap: 7px; color: #263a52; font-size: .86rem; font-weight: 700; }
.auth-form input { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 12px 13px; font: inherit; }
.auth-form input:focus { outline: 3px solid rgba(33,108,172,.16); border-color: #216cac; }
.auth-form .primary-button { justify-content: center; margin-top: 4px; }
.text-button { border: 0; background: transparent; color: #216cac; cursor: pointer; font: inherit; font-weight: 700; padding: 9px 0; }
.auth-card > .text-button { width: 100%; margin-top: 8px; }
.auth-card > .text-button.subtle { margin-top: 0; color: #60748a; font-size: .82rem; }
.auth-message { min-height: 24px; margin: 8px 0 0; font-size: .9rem; }
.auth-message.error { color: #b42318; }
.auth-message.success { color: #067647; }
.profile { flex-wrap: wrap; }
.profile .text-button { margin-left: auto; color: #b7d4ec; font-size: .78rem; }
[hidden] { display: none !important; }
.metric-money { font-size: clamp(1.35rem, 2vw, 2rem); }
.compact-filter { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.compact-filter select { min-width: 125px; }
.quote-calculator, .quote-drawer-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.quote-calculator > div, .quote-drawer-totals > div { background: var(--surface-soft, #f8fafc); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; display: grid; gap: .25rem; }
.quote-calculator span, .quote-drawer-totals small { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.quote-calculator strong, .quote-drawer-totals strong { color: var(--ink); font-size: 1rem; }
.quote-drawer-totals { margin: 0 0 1rem; }
@media (max-width: 700px) { .quote-calculator, .quote-drawer-totals { grid-template-columns: 1fr; } }
.market-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0; }
.market-toolbar .segmented { margin: 0; }
.market-search { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 8px; flex: 1; max-width: 720px; }
.market-search input { width: 100%; min-width: 0; }
.market-method-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #c7dced; border-radius: 9px; background: #eff7fd; color: #24445f; }
.market-method-note strong { white-space: nowrap; }
.market-method-note span { color: #526f86; font-size: 12px; line-height: 1.5; }
.market-source-card, .market-research-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; padding: 17px 18px; border: 1px solid #c9d6df; border-radius: 10px; background: linear-gradient(135deg, #f8fbfd, #eef5f8); }
.market-source-card h3 { margin: 4px 0 5px; }
.market-source-card p, .market-research-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.market-source-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; min-width: 220px; }
.market-source-actions span { color: var(--muted); font-size: 10px; text-align: right; }
.market-row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 210px; }
.market-row-actions .secondary-button { padding: 7px 9px; }
.market-research-panel { margin: 0; background: #f8fbfd; }
.market-research-panel > div:first-child { max-width: 560px; }
.rfq-match-metrics { margin: 18px 0; }
.inventory-match-chip { margin: 10px 0 4px; padding: 7px 9px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.inventory-match-chip.exact { color: #17603a; background: #e8f6ee; border: 1px solid #b8dec8; }
.inventory-match-chip.alternate { color: #76510b; background: #fff6dd; border: 1px solid #ead394; }
.inventory-match-chip.none { color: #8a2e2e; background: #fff0f0; border: 1px solid #ecc6c6; }
.inventory-match-chip.checking { color: #526f86; background: #eff7fd; border: 1px solid #c7dced; }
.rfq-inventory-panel { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.rfq-inventory-panel .panel-header { margin: 0; padding: 14px 16px; }
.rfq-inventory-panel .panel-header h3 { margin: 0 0 3px; }
.rfq-inventory-panel .blank-state { border-top: 1px solid var(--line); }
.market-value-action { white-space: nowrap; }
.global-request-notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 18px; padding: 17px 18px; border: 1px solid #c7dced; border-radius: 10px; background: linear-gradient(135deg, #eff7fd, #f8fbfd); }
.global-request-notice strong { display: block; color: #173e68; font-size: 13px; }
.global-request-notice p { max-width: 820px; margin: 5px 0 0; color: #526f86; font-size: 12px; line-height: 1.5; }
.global-view-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.global-view-switcher button { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; text-align: left; }
.global-view-switcher button strong { min-width: 30px; padding: 4px 8px; border-radius: 999px; background: var(--paper); color: var(--ink); text-align: center; }
.global-view-switcher button.active { border-color: #80add2; background: #eff7fd; color: #173e68; box-shadow: inset 0 0 0 1px #bfd8eb; }
.global-filter-panel { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; align-items: end; margin: 0 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.global-filter-panel label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.global-filter-panel select, .global-filter-panel input { width: 100%; min-width: 0; border: 1px solid #d5d9e3; border-radius: 7px; padding: 9px; background: white; font-size: 11px; }
.global-filter-panel .secondary-button { justify-content: center; min-height: 36px; }
.global-request-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 205px; }
.global-request-actions .secondary-button, .global-request-actions .quote-button { padding: 7px 9px; white-space: nowrap; }
.source-link { color: var(--blue); font-size: 10px; font-weight: 750; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.global-request-form .form-section { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.global-request-form .form-section h3 { color: #173e68; }
.global-request-form .rich-request-textarea { min-height: 120px; line-height: 1.55; }
.global-request-form .rich-request-textarea.tall { min-height: 180px; }
@media (max-width: 900px) { .market-toolbar { align-items: stretch; flex-direction: column; }.market-search { max-width: none; }.market-method-note { grid-template-columns: 1fr; }.market-source-card, .market-research-panel { align-items: stretch; flex-direction: column; }.market-source-actions { align-items: stretch; min-width: 0; }.market-source-actions span { text-align: left; }.market-row-actions .secondary-button, .market-source-actions .secondary-button { display: inline-flex; } }
@media (max-width: 620px) { .market-search { grid-template-columns: 1fr; }.market-search .secondary-button { display: inline-flex; }.market-toolbar .segmented { display: grid; grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .global-filter-panel { grid-template-columns: repeat(3, minmax(130px, 1fr)); } }
@media (max-width: 760px) { .global-request-notice { align-items: stretch; flex-direction: column; }.global-view-switcher, .global-filter-panel { grid-template-columns: 1fr; }.global-request-actions .secondary-button, .global-filter-panel .secondary-button { display: inline-flex; } }
@media (max-width: 760px) { .bulk-selection-bar { align-items: stretch; flex-direction: column; }.bulk-selection-actions { margin-left: 0; flex-wrap: wrap; }.bulk-selection-actions .secondary-button { display: inline-flex; }.bulk-selection-actions .filter-select { flex: 1; min-width: 135px; } }
@media (max-width: 760px) { #toggle-inventory-filters, #clear-inventory-filters { display: inline-flex; } }

/* PACE Flight Deck — unified night cockpit */
:root {
  --ink: #f4f7ff;
  --blue: #1769ff;
  --blue-soft: #173d73;
  --paper: #0e1d31;
  --white: #152c49;
  --line: #345474;
  --muted: #a9bbcf;
  --amber: #f4b63f;
  --amber-soft: #332813;
  --red: #ff5964;
  --red-soft: #351820;
  --green: #19d585;
  --green-soft: #0d3328;
  --surface-soft: #10253e;
  --surface-raised: #152c49;
  --surface-strong: #1a385a;
  --shadow: 0 20px 55px rgba(0, 0, 0, .24);
}
html, body { background: var(--paper); color: var(--ink); }
body { color-scheme: dark; }
.app-shell { grid-template-columns: 210px minmax(0, 1fr); background: var(--paper); }
.sidebar { padding: 16px 12px; background: #0a192b; border-right: 1px solid #294967; }
.brand { padding: 0 8px 16px; }
.brand-with-logo { gap: 8px; }
.brand-logo { width: 132px; border-radius: 7px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.brand strong { color: #f6f8ff; font-size: 11px; letter-spacing: .16em; }
.brand span { color: #8da2bb; font-style: italic; }
.nav-section-label { margin: 14px 9px 4px; color: #6f88a4; font-size: 8px; letter-spacing: .17em; }
.nav-item { min-height: 38px; padding: 9px 11px; color: #c6d2e3; border-radius: 7px; font-size: 12px; }
.nav-item:hover { color: white; background: #0d2037; }
.nav-item.active { color: white; background: linear-gradient(90deg, #0d54e8, #1769ff); box-shadow: 0 7px 18px rgba(23,105,255,.25), inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-more-toggle { border-top-color: #17304b; }
.nav-more-menu { border-left-color: #27405d; }
.sidebar-rule { display: none; }
.profile { margin-top: auto; border-top: 1px solid #17304b; padding-top: 14px; }
.avatar, .owner-pill { background: #193c6b; color: #dce9ff; }
main { position: relative; isolation: isolate; background: radial-gradient(circle at 75% -20%, rgba(45,112,190,.22), transparent 44%), #0e1d31; }
main::after {
  content: none;
  display: none;
}
.news-banner { height: 36px; padding: 0 18px; background: #102b49; border-bottom-color: #31597e; box-shadow: 0 3px 12px rgba(4,15,29,.2); }
.news-ticker-source { color: #b8cfff; background: #132e50; }
.topbar { height: 74px; padding: 0 20px; top: 36px; background: rgba(14,29,49,.97); border-bottom-color: #345474; backdrop-filter: blur(18px); }
.search-wrap { min-width: 300px; max-width: 560px; background: #142b47; border-color: #3c6285; border-radius: 9px; }
.search-wrap:focus-within { border-color: #3a82ff; box-shadow: 0 0 0 3px rgba(23,105,255,.15); }
.search-wrap input { color: #eef5ff; }
.search-wrap input::placeholder { color: #7990aa; }
.local-status { min-width: 370px; background: transparent; border: 0; box-shadow: none; }
.local-status-item small { color: #7990aa; }
.local-status-divider { background: #27405b; }
.local-status-icon { background: #10243d; }
.primary-button { color: white; background: #1769ff; border-color: #2878ff; box-shadow: 0 7px 18px rgba(23,105,255,.22); }
.primary-button:hover { background: #2d78ff; }
.secondary-button { color: #dce8f8; background: #0c1a2d; border-color: #29435f; }
.secondary-button:hover { border-color: #4f78a2; background: #10233b; }
.ghost-button { color: #72a6ff; background: #10264a; }
.text-button { color: #78a9ff; }
.view-root { max-width: none; padding: 18px 20px 48px; }
.page-heading h1, .rfq-desk-heading h1 { color: #f7f9ff; }
.page-heading p, .rfq-desk-heading p, .as-of { color: #8fa1b8; }
.eyebrow { color: #6f9fff; }
.panel, .metric, .kanban-column, .inventory-filter-panel, .bulk-selection-bar, .global-filter-panel, .global-view-switcher button, .market-source-card, .market-research-panel, .rfq-inventory-panel { color: var(--ink); background: #152c49; border-color: #345474; box-shadow: 0 8px 24px rgba(2,12,24,.12); }
.panel-header, .detail-grid, .detail, .table-wrap, .blank-state, .rfq-inventory-panel .blank-state { border-color: #345474; }
.metric-label, .metric-note, .muted, .panel-header p { color: #a9bbcf; }
.metric-value, .panel h2, .panel h3 { color: #f7f9ff; }
.metric:before { background: #1769ff; }
.metric.warn:before { background: #f4b63f; }
.metric.danger:before { background: #ff5964; }
.command-center-hero, .detail-hero { background: linear-gradient(135deg, #0d2d60, #0b1730 68%); border: 1px solid #244c7d; }
.command-center-hero p, .detail-hero p { color: #a9bbd3; }
.pipeline-stage, .opportunity-row, .inventory-overview-split button, .readiness-row, .commercial-stat { color: #e5eefb; background: #10253e; border-color: #345474; }
.pipeline-stage small, .opportunity-row small, .inventory-overview-split small, .readiness-row span, .commercial-stat span { color: #8fa1b8; }
.inventory-category-switcher button { color: #b6c7da; background: #122943; border-color: #345474; }
.inventory-category-switcher button.active { color: white; background: #112b5d; border-color: #2f6dcc; }
.segmented, .tabs { background: #10253e; border-color: #345474; }
.segmented button, .tab { color: #9badc3; background: transparent; }
.segmented button.active, .tab.active { color: white; background: #1769ff; }
input, select, textarea, .filter-select, .inline-select { color: #f1f6ff; background: #10253e; border-color: #3c6285; }
input::placeholder, textarea::placeholder { color: #71859e; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23,105,255,.16); border-color: #4284ff; }
table { color: #dbe6f5; }
thead th { color: #b1c4da; background: #10253e; border-color: #345474; }
tbody td { background: #152c49; border-color: #2c4b6a; }
tbody tr:hover td, tbody tr.selected td { background: #1b3a5e; }
.record-link, .source-link { color: #6fa5ff; }
.badge.gray { color: #b5c2d2; background: #1b2a3e; }
.badge.blue { color: #a9c7ff; background: #123665; }
.badge.green { color: #72efb2; background: #0d3a2c; }
.badge.amber { color: #ffd875; background: #3b2b10; }
.badge.red { color: #ff9da3; background: #421923; }
.drawer, .modal { color: var(--ink); background: #0b1829; border-color: #29435f; }
.drawer-header, .modal-header { background: #0b1829; border-color: #203550; }
.workflow-card, .form-section, .quote-calculator > div, .quote-drawer-totals > div, .quote-review-grid > div, .quote-review-section { color: #dce8f8; background: #0a1628; border-color: #203550; }
.toast { background: #13243a; border: 1px solid #29435f; }
.auth-gate { background: radial-gradient(circle at 20% 20%, #143763 0, #07182b 42%, #040b14 100%); }
.auth-card { color: #eaf2ff; background: #0d1a2e; border: 1px solid #29435f; }
.auth-card h1, .auth-brand { color: #f7f9ff; }
.auth-card > p, .auth-form label { color: #a8b8cc; }
.auth-form input { color: white; background: #081525; border-color: #29435f; }
.field input, .field select, .field textarea { color: #eef5ff; background: #0a1628; border-color: #2a425e; }
.field label { color: #9db0c8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #4284ff; box-shadow: 0 0 0 3px rgba(23,105,255,.16); }

.action-center .panel-header { align-items: center; }
.action-filter-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; padding: 12px 16px; border-bottom: 1px solid #203550; background: #091628; }
.action-filter { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; color: #9eb0c6; background: #0d1d31; border: 1px solid #263e59; border-radius: 7px; text-align: left; }
.action-filter:hover { color: white; border-color: #4774a5; }
.action-filter.active { color: white; background: #12366c; border-color: #3e80ec; box-shadow: 0 0 0 2px rgba(23,105,255,.1); }
.action-filter span { overflow: hidden; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.action-filter strong { display: grid; place-items: center; min-width: 22px; height: 22px; color: #f7f9ff; background: rgba(255,255,255,.08); border-radius: 6px; font-size: 10px; }
.action-center-list { display: grid; }
.action-center-row { position: relative; display: grid; grid-template-columns: minmax(260px, 1fr) 120px 120px auto; align-items: center; gap: 18px; min-height: 72px; padding: 11px 16px 11px 21px; border-bottom: 1px solid #1b3049; background: #0d1a2e; }
.action-center-row:last-child { border-bottom: 0; }
.action-center-row:hover { background: #102541; }
.action-severity { position: absolute; inset: 0 auto 0 0; width: 4px; background: #45617e; }
.action-severity.warning { background: #f4b63f; }
.action-severity.critical { background: #ff5964; }
.action-main { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 9px; }
.action-main .priority-flag { grid-row: 1 / span 2; }
.action-main > strong { overflow: hidden; color: #f4f8ff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.action-main > small { overflow: hidden; color: #8198b4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.action-meta { display: grid; gap: 4px; }
.action-meta span { color: #6f88a4; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.action-meta strong { color: #dce8f8; font-size: 10px; }
.form-advanced { margin: 0 0 22px; border: 1px solid #203550; border-radius: 9px; background: #091628; overflow: hidden; }
.form-advanced summary { display: grid; gap: 3px; padding: 13px 16px; color: #dce8f8; cursor: pointer; list-style-position: inside; }
.form-advanced summary span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.form-advanced summary small { padding-left: 18px; color: #7f94ae; font-size: 9px; }
.form-advanced .form-section { margin: 0; padding: 14px 16px 16px; border-top: 1px solid #203550; border-radius: 0; }

.workspace-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.workspace-switcher button { min-height: 58px; display: grid; gap: 4px; align-content: center; padding: 10px 16px; color: #b6c5d8; background: #0b1a2d; border: 1px solid #253e5a; border-radius: 9px; text-align: left; }
.workspace-switcher button:hover { border-color: #4774a5; background: #10233b; }
.workspace-switcher button.active { color: white; background: linear-gradient(100deg, #1057e8, #1769ff); border-color: #4082ff; box-shadow: 0 8px 22px rgba(23,105,255,.2); }
.workspace-switcher strong { font-size: 13px; }
.workspace-switcher span { color: #7f96af; font-size: 10px; }
.workspace-switcher button.active span { color: #d7e5ff; }
.rfq-desk-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 14px; }
.rfq-desk-heading h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.035em; }
.rfq-desk-heading p { margin: 0; font-size: 12px; }
.rfq-desk-actions { display: flex; align-items: center; gap: 8px; }
.rfq-desk-actions > span { margin-right: 4px; color: #8fa1b8; font-size: 11px; }
.rfq-filter-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.rfq-filter-chip { min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 10px 12px; color: #a9bbd1; background: #0b192b; border: 1px solid #203550; border-radius: 8px; text-align: left; }
.rfq-filter-chip:hover { border-color: #4774a5; }
.rfq-filter-chip.active { color: white; background: #102d61; border-color: #2f74e8; }
.rfq-filter-chip span { grid-column: 1 / -1; font-size: 10px; font-weight: 700; }
.rfq-filter-chip strong { color: #f7f9ff; font-size: 18px; }
.rfq-desk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 10px; align-items: start; }
.rfq-desk-main, .rfq-context-panel { min-width: 0; background: #0b1829; border: 1px solid #203550; border-radius: 9px; overflow: hidden; }
.rfq-desk-main .bulk-selection-bar { margin: 0; border: 0; border-bottom: 1px solid #203550; border-radius: 0; background: #0a1628; }
.rfq-desk-table { max-height: calc(100vh - 360px); overflow: auto; }
.rfq-desk-table table { min-width: 1160px; }
.rfq-desk-table thead { position: sticky; top: 0; z-index: 2; }
.rfq-desk-table th { padding: 10px 9px; font-size: 8px; letter-spacing: .06em; }
.rfq-desk-table td { padding: 9px; font-size: 10px; }
.rfq-desk-table td small, .rfq-focus-link small, .match-score strong { display: block; margin-top: 3px; color: #7f94ae; font-size: 9px; }
.rfq-desk-table tr.focus-row td { background: #0e2b52; }
.rfq-focus-link { display: grid; padding: 0; color: #7eaeff; background: none; border: 0; text-align: left; }
.priority-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #4f80b5; }
.priority-dot.urgent { background: #ff5964; box-shadow: 0 0 0 4px rgba(255,89,100,.08); }
.priority-dot.high { background: #f4b63f; }
.priority-dot.normal { background: #19d585; }
.match-score { display: inline-grid; min-width: 58px; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 800; text-align: center; }
.match-score.exact { color: #79f1b8; background: #0d3a2c; }
.match-score.alternate { color: #ffd875; background: #3b2b10; }
.match-score.none { color: #ff9299; background: #421923; }
.match-score strong { color: inherit; }
.owner-pill { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; font-size: 8px; font-weight: 800; }
.due-now { color: #ff6b75 !important; }
.table-action { min-width: 72px; padding: 7px 9px; color: #dce9ff; background: #102640; border: 1px solid #315270; border-radius: 6px; font-size: 9px; font-weight: 750; }
.focus-row .table-action { color: white; background: #1769ff; border-color: #4082ff; }
.rfq-context-panel { position: sticky; top: 128px; max-height: calc(100vh - 146px); padding: 14px; overflow-y: auto; }
.rfq-context-head { display: flex; justify-content: space-between; gap: 10px; }
.rfq-context-head span { color: #f7f9ff; font-size: 15px; font-weight: 800; }
.rfq-context-head h2 { margin: 5px 0 3px; font-size: 14px; }
.rfq-context-head p { margin: 0; color: #8fa1b8; font-size: 10px; }
.rfq-context-tabs { display: flex; gap: 18px; margin: 14px -14px 0; padding: 0 14px 9px; border-bottom: 1px solid #203550; color: #8fa1b8; font-size: 10px; }
.rfq-context-tabs strong { color: #5b98ff; }
.rfq-facts { display: grid; gap: 7px; margin: 13px 0; }
.rfq-facts > div { display: grid; grid-template-columns: 98px 1fr; gap: 8px; }
.rfq-facts dt { color: #8398b1; font-size: 10px; }
.rfq-facts dd { margin: 0; color: #e6eef9; font-size: 10px; font-weight: 650; }
.rfq-context-section { margin: 0 -14px; padding: 12px 14px; border-top: 1px solid #203550; border-bottom: 1px solid #203550; }
.rfq-context-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rfq-context-title h3 { margin: 0; font-size: 12px; }
.rfq-context-title span { color: #78a9ff; font-size: 10px; }
.rfq-side-match { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; color: #dce8f8; background: transparent; border: 0; border-bottom: 1px solid #19314a; text-align: left; }
.rfq-side-match > span { grid-column: 1 / -1; }
.rfq-side-match strong { font-size: 10px; }
.rfq-side-match small { color: #7f94ae; font-size: 9px; }
.rfq-side-match b { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-size: 10px; }
.rfq-side-empty { color: #8fa1b8; font-size: 10px; }
.rfq-market-snapshot { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 12px 0; }
.rfq-market-snapshot span { color: #8fa1b8; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.rfq-market-snapshot strong { font-size: 15px; }
.rfq-market-snapshot small { grid-column: 1 / -1; color: #72eeb3; font-size: 9px; }
.rfq-context-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.rfq-context-actions button { padding: 9px 8px; font-size: 9px; }

@media (max-width: 1180px) {
  .rfq-desk-layout { grid-template-columns: 1fr; }
  .rfq-context-panel { position: static; max-height: none; }
  .rfq-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .action-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .action-center-row { grid-template-columns: minmax(240px, 1fr) 110px auto; }
  .action-center-row .action-meta:nth-of-type(2) { display: none; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: 230px; }
  main::after { inset: 110px 0 0 0; background-size: 118vw auto; opacity: .018; }
  .workspace-switcher { grid-template-columns: 1fr; }
  .workspace-switcher button:not(.active) { display: none; }
  .rfq-desk-heading { align-items: stretch; flex-direction: column; }
  .rfq-desk-actions { flex-wrap: wrap; }
  .rfq-filter-row { display: flex; overflow-x: auto; }
  .rfq-filter-chip { min-width: 130px; }
  .rfq-context-actions { grid-template-columns: 1fr; }
  .action-filter-row { display: flex; overflow-x: auto; }
  .action-filter { min-width: 128px; }
  .action-center-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .action-center-row .action-meta { display: none; }
  .action-main { grid-template-columns: 1fr; }
  .action-main .priority-flag { grid-row: auto; width: max-content; }
}
.incoming-rfq-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.incoming-rfq-summary > div { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(30, 50, 72, .96), rgba(22, 39, 58, .96)); box-shadow: var(--shadow-sm); }
.incoming-rfq-summary span, .incoming-rfq-summary small { display: block; color: var(--muted); }
.incoming-rfq-summary strong { display: block; margin: 8px 0 5px; color: var(--text); font-size: 1.75rem; }
.incoming-rfq-summary .connection-ready { color: #75e6b5; font-size: 1.25rem; }
.incoming-rfq-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 190px; }
.intent-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.intent-chip.offer { color: #75e6b5; border-color: rgba(117, 230, 181, .38); background: rgba(24, 139, 94, .17); }
.intent-chip.request { color: #8fc7ff; border-color: rgba(72, 155, 255, .38); background: rgba(37, 99, 235, .18); }
.intent-chip.review { color: #f4cf75; border-color: rgba(244, 207, 117, .34); background: rgba(176, 118, 16, .16); }
.intake-source-note { margin-bottom: 18px; padding: 14px 16px; border: 1px solid rgba(66, 193, 147, .35); border-radius: 14px; background: rgba(32, 128, 100, .12); }
.intake-source-note strong, .intake-source-note span { display: block; }
.intake-source-note span, .intake-source-note p { color: var(--muted); }
.intake-source-note p { margin: 8px 0 0; }
@media (max-width: 1100px) { .incoming-rfq-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .incoming-rfq-summary { grid-template-columns: 1fr; } }

/* AI sourcing desk */
.ai-control-hero { margin-bottom: 16px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; position: relative; border: 1px solid #2a4f7a; border-radius: 14px; color: #eef7ff; background: radial-gradient(circle at 86% 10%, rgba(49, 182, 255, .28), transparent 34%), linear-gradient(135deg, #071523, #102d4a 62%, #0a4775); box-shadow: 0 18px 40px rgba(2, 11, 22, .28); }
.ai-control-hero h2 { margin: 8px 0 5px; font-size: 24px; }
.ai-control-hero p { margin: 0; color: #a9bfd5; font-size: 12px; }
.ai-agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ai-agent-card { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #203f5f; border-radius: 12px; background: linear-gradient(150deg, #0d1d2f, #0a1727); box-shadow: 0 10px 28px rgba(2, 10, 20, .2); }
.ai-agent-card.working { border-color: #35aee9; box-shadow: 0 0 0 1px rgba(53, 174, 233, .22), 0 12px 30px rgba(4, 80, 125, .25); }
.ai-agent-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ai-agent-head small { color: #69bfe8; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.ai-agent-head h2 { margin: 2px 0 0; color: #f1f7ff; font-size: 16px; }
.ai-agent-orb { width: 32px; height: 32px; border: 1px solid #3bb3eb; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #91e3ff 0 8%, #1d9bd2 26%, #0b3152 64%, #07131f 100%); box-shadow: 0 0 18px rgba(44, 176, 237, .34); }
.ai-agent-card.working .ai-agent-orb { animation: aiPulse 1.2s ease-in-out infinite; }
.ai-agent-card > p { min-height: 34px; margin: 0; color: #9fb2c6; font-size: 11px; line-height: 1.55; }
.ai-agent-metric { color: #fff; font-size: 24px; letter-spacing: -.035em; }
.ai-agent-report { min-height: 32px; color: #83a0bb; font-size: 10px; line-height: 1.5; }
.ai-agent-card .secondary-button { margin-top: auto; }
.ai-error { margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(255, 92, 92, .38); border-radius: 9px; color: #ffb4b4; background: rgba(122, 24, 35, .2); }
.ai-opportunity-panel table { min-width: 1040px; }
@keyframes aiPulse { 50% { transform: scale(1.08); box-shadow: 0 0 26px rgba(76, 203, 255, .72); } }
@media (max-width: 1050px) { .ai-agent-grid { grid-template-columns: 1fr; } .ai-agent-card > p, .ai-agent-report { min-height: 0; } }
@media (max-width: 680px) { .ai-control-hero { align-items: stretch; flex-direction: column; } }

/* Flight Deck Command — selected executive redesign */
:root {
  --paper: #071728;
  --surface-soft: #0a2036;
  --surface-raised: #0d2945;
  --surface-strong: #123759;
  --line: #244a6b;
  --blue: #1476ff;
  --blue-soft: #123d72;
  --muted: #91aac2;
}
.app-shell { grid-template-columns: 200px minmax(0, 1fr); }
.sidebar { padding: 13px 10px; background: linear-gradient(180deg, #061729 0%, #081b2d 100%); border-right-color: #173a58; }
.brand-with-logo { padding-bottom: 10px; }
.brand-logo { width: 122px; background: transparent; box-shadow: none; }
.brand-with-logo > div { text-align: center; }
.brand strong { font-size: 10px; }
.brand span { font-size: 10px; }
.nav-section-label { margin: 11px 9px 3px; color: #58738e; }
.nav-item { min-height: 34px; padding: 7px 10px; border-radius: 6px; font-size: 11px; }
.nav-item.active { background: linear-gradient(90deg, #0d58e9, #137cff); box-shadow: 0 8px 20px rgba(15,103,255,.25); }
.news-banner { height: 34px; background: #09213a; border-bottom-color: #244968; }
.topbar { height: 70px; top: 34px; gap: 8px; background: rgba(6,22,38,.96); border-bottom-color: #244968; }
.local-status { min-width: 354px; }
.view-root { padding: 16px 18px 42px; }
.rfq-desk-heading {
  min-height: 126px;
  margin: -16px -18px 14px;
  padding: 30px 22px 24px;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(5,20,35,.97) 0%, rgba(5,20,35,.88) 42%, rgba(5,20,35,.28) 100%), url("flight-deck-hero-v1.png");
  background-position: center 55%;
  background-size: cover;
  border-bottom: 1px solid #244968;
}
.rfq-desk-heading > * { position: relative; z-index: 1; }
.rfq-desk-heading h1 { font-size: clamp(29px, 3vw, 40px); }
.rfq-desk-heading p { max-width: 590px; color: #a9bdd2; font-size: 13px; }
.rfq-filter-chip { min-height: 70px; background: #091c30; border-color: #1f405e; }
.rfq-filter-chip.active { background: linear-gradient(145deg, #123d7a, #0e2c58); box-shadow: 0 8px 24px rgba(1,12,25,.2); }
.rfq-desk-main, .rfq-context-panel { background: #081a2c; border-color: #1d3b58; }
.rfq-desk-table td { padding-top: 11px; padding-bottom: 11px; }
.rfq-context-panel { width: 100%; }
.rfq-context-actions { position: sticky; bottom: -14px; z-index: 2; margin: 0 -14px -14px; padding: 12px 14px 14px; background: linear-gradient(180deg, rgba(8,26,44,.88), #081a2c 32%); border-top: 1px solid #1d3b58; }
.panel, .metric, .inventory-filter-panel, .bulk-selection-bar { background: #0b2239; border-color: #244a6b; }
.metric { min-height: 104px; padding: 17px; background: linear-gradient(145deg, #0d2945, #091d32); }
.metric-value { font-size: 28px; }
.inventory-category-switcher { gap: 8px; }
.inventory-category-switcher button { min-height: 80px; padding: 14px; background: #091d31; border-color: #244a6b; }
.inventory-category-switcher button:hover { border-color: #3d78aa; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.inventory-category-switcher button.active { background: linear-gradient(145deg, #123d7a, #0c2a53); border-color: #2f78e8; }
.inventory-metric-grid { margin-top: 0; }
.inventory-filter-panel { padding: 14px; }
.inventory-filter-grid { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
.inventory-workspace-table { border-color: #295372; }
.inventory-workspace-table .panel-header { background: linear-gradient(90deg, #0d2945, #0a2036); }
.inventory-workspace-table .table-wrap { max-height: calc(100vh - 420px); }
.inventory-workspace-table table { min-width: 1320px; }
.inventory-workspace-table th { padding: 10px 11px; color: #9fb8ce; background: #071a2c; font-size: 8px; }
.inventory-workspace-table td { padding: 11px; background: #0b2239; font-size: 10px; }
.inventory-workspace-table tbody tr:hover td { background: #0f2d4a; }
.page-heading { min-height: 92px; margin: -16px -18px 14px; padding: 24px 22px 18px; align-items: flex-end; position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(5,20,35,.97), rgba(5,20,35,.68)), url("flight-deck-hero-v1.png") center 48% / cover; border-bottom: 1px solid #244968; }
.page-heading h1 { font-size: clamp(27px, 2.8vw, 36px); }
.page-heading .eyebrow { color: #6fa7ff; }
.toolbar { padding: 10px 12px; background: #081b2e; border: 1px solid #1f405e; border-radius: 8px; }
.bulk-selection-bar { border-color: #295372; }
.form-section { padding: 14px; border: 1px solid #203f5d; border-radius: 9px; background: #08192b; }
.form-section h3 { color: #dfeaff; border-bottom-color: #24445f; }
.modal { max-width: 900px; }
@media (max-width: 1180px) {
  .inventory-filter-grid, .inventory-advanced-filters { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .local-status { min-width: 0; }
}
@media (max-width: 760px) {
  .rfq-desk-heading, .page-heading { margin: -14px -14px 14px; padding: 22px 16px; background-position: 68% center; }
  .inventory-category-switcher { display: flex; overflow-x: auto; }
  .inventory-category-switcher button { min-width: 174px; }
  .inventory-filter-grid, .inventory-advanced-filters { grid-template-columns: 1fr; }
  .inventory-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Persistent team chat */
.team-chat { position: fixed; right: 20px; bottom: 18px; z-index: 80; color: #eaf3ff; }
.team-chat-launcher, .team-chat-header { touch-action: none; cursor: grab; user-select: none; }
.team-chat-dragging, .team-chat-dragging * { cursor: grabbing !important; user-select: none !important; }
.team-chat-dragging .team-chat-launcher { transform: scale(1.015); box-shadow: 0 20px 44px rgba(0, 42, 102, .58); }
.team-chat-header-actions, .team-chat-header-actions * { cursor: pointer; }
.team-chat-launcher { min-width: 142px; height: 46px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #3e83d2; border-radius: 999px; color: white; background: linear-gradient(135deg, #0d58e9, #1688ff); box-shadow: 0 14px 34px rgba(0, 42, 102, .42); font-size: 13px; font-weight: 800; }
.team-chat-launcher:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(0, 42, 102, .5); }
.team-chat-launcher-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); }
.team-chat-unread { min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; color: #0a1830; background: #73e3ae; font-size: 10px; font-weight: 900; }
.team-chat-panel { width: min(410px, calc(100vw - 28px)); height: min(660px, calc(100vh - 40px)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; overflow: hidden; border: 1px solid #2c5c84; border-radius: 17px; background: #071827; box-shadow: 0 26px 80px rgba(0, 8, 18, .62); }
.team-chat-header { min-height: 66px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #1d3f5c; background: linear-gradient(135deg, #0c2945, #0c3a68); }
.team-chat-header strong, .team-chat-header span { display: block; }
.team-chat-header strong { font-size: 15px; letter-spacing: .01em; }
.team-chat-header span { margin-top: 3px; color: #9fc1dd; font-size: 11px; }
.team-chat-header-actions { display: flex; gap: 5px; }
.team-chat-icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #d9ecff; background: rgba(255,255,255,.08); font-size: 17px; }
.team-chat-icon-button:hover { background: rgba(255,255,255,.16); }
.team-chat-search { padding: 9px 12px; border-bottom: 1px solid #183650; background: #091d30; }
.team-chat-search input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid #285274; border-radius: 8px; outline: 0; color: #eff7ff; background: #071624; font-size: 13px; }
.team-chat-search input:focus { border-color: #4395e7; box-shadow: 0 0 0 3px rgba(36, 133, 228, .16); }
.team-chat-channels { display: flex; gap: 4px; overflow-x: auto; padding: 9px 10px; border-bottom: 1px solid #183650; background: #091d30; scrollbar-width: thin; }
.team-chat-channels button { min-height: 30px; padding: 0 10px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 999px; color: #91aac1; background: transparent; font-size: 11px; font-weight: 750; }
.team-chat-channels button:hover { color: #dceeff; background: #102b44; }
.team-chat-channels button.active { color: white; border-color: #337ed0; background: #123f70; }
.team-chat-messages { min-height: 0; overflow-y: auto; padding: 14px 12px 18px; background: radial-gradient(circle at 100% 0, rgba(27, 105, 173, .12), transparent 42%), #071827; scrollbar-color: #315674 transparent; }
.team-chat-empty { min-height: 100%; padding: 34px 20px; display: grid; place-content: center; text-align: center; color: #7996ad; }
.team-chat-empty strong { display: block; margin-bottom: 6px; color: #cfe2f3; font-size: 14px; }
.team-chat-message { margin-bottom: 13px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
.team-chat-message.own { grid-template-columns: minmax(0, 1fr) 30px; }
.team-chat-avatar { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #2f5d7f; border-radius: 9px; color: #bcdcff; background: #102c45; font-size: 10px; font-weight: 900; }
.team-chat-message.own .team-chat-avatar { grid-column: 2; color: #d7e8ff; background: #164b80; }
.team-chat-message.own .team-chat-message-main { grid-column: 1; grid-row: 1; align-items: flex-end; }
.team-chat-message-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.team-chat-message-meta { margin: 0 4px 4px; display: flex; align-items: center; gap: 7px; color: #708da5; font-size: 10px; }
.team-chat-message.own .team-chat-message-meta { flex-direction: row-reverse; }
.team-chat-message-meta strong { color: #bdd4e8; font-size: 11px; }
.team-chat-bubble { max-width: 92%; padding: 9px 11px; border: 1px solid #234965; border-radius: 4px 13px 13px 13px; color: #edf6ff; background: #0c263b; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.team-chat-message.own .team-chat-bubble { border-color: #2a70bc; border-radius: 13px 4px 13px 13px; background: #10477a; }
.team-chat-quoted { max-width: 92%; margin-bottom: 4px; padding: 6px 9px; border-left: 2px solid #4e95d4; border-radius: 5px; color: #8facbf; background: #0a2032; font-size: 10px; line-height: 1.35; }
.team-chat-context-card { max-width: 92%; margin-top: 5px; padding: 7px 9px; border: 1px solid #2c5572; border-radius: 8px; color: #acd1f2; background: #0a2134; font-size: 10px; font-weight: 700; }
.team-chat-actions { max-width: 92%; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; opacity: .72; }
.team-chat-message:hover .team-chat-actions, .team-chat-actions:focus-within { opacity: 1; }
.team-chat-action, .team-chat-reaction { min-height: 24px; padding: 3px 7px; border: 1px solid #274961; border-radius: 999px; color: #94aec2; background: #091c2c; font-size: 10px; }
.team-chat-action:hover, .team-chat-reaction:hover { color: white; border-color: #3e79aa; }
.team-chat-reaction.active { color: #dff7ea; border-color: #2c9a68; background: #123d31; }
.team-chat-reply { padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #1d3e58; color: #9fb8cc; background: #0a2033; font-size: 11px; }
.team-chat-reply strong { color: #e0edf8; }
.team-chat-reply button { border: 0; color: #9eb8cc; background: transparent; font-size: 17px; }
.team-chat-composer { padding: 10px 12px 11px; border-top: 1px solid #1d3e58; background: #091c2d; }
.team-chat-composer textarea { width: 100%; min-height: 48px; max-height: 130px; resize: vertical; padding: 9px 10px; border: 1px solid #2a526e; border-radius: 9px; outline: 0; color: #f0f7ff; background: #061522; font-size: 13px; line-height: 1.4; }
.team-chat-composer textarea:focus { border-color: #4599e8; box-shadow: 0 0 0 3px rgba(33, 132, 225, .15); }
.team-chat-composer-row { min-height: 34px; margin-top: 7px; display: flex; align-items: center; gap: 7px; }
.team-chat-context-button { min-height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; color: #8ba9c1; background: transparent; font-size: 10px; font-weight: 750; }
.team-chat-context-button:hover, .team-chat-context-button[aria-pressed="true"] { color: #cbe4f8; border-color: #285472; background: #0c2941; }
#team-chat-edit-label { margin-left: auto; color: #f0c76b; font-size: 10px; }
.team-chat-send { min-width: 62px; height: 32px; margin-left: auto; border: 0; border-radius: 8px; color: white; background: #176fe5; font-size: 11px; font-weight: 850; }
.team-chat-send:hover { background: #2583f2; }
.team-chat-send:disabled { opacity: .55; }
@media (max-width: 600px) {
  .team-chat { right: 10px; bottom: 10px; }
  .team-chat-panel { width: calc(100vw - 20px); height: min(680px, calc(100vh - 20px)); border-radius: 14px; }
  .team-chat-launcher { height: 44px; }
}

.inventory-review-sort { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.inventory-review-sort .filter-select { min-width: 220px; text-transform: none; letter-spacing: 0; }
.inventory-review-toolbar > div { display: grid; gap: 3px; }
.inventory-review-toolbar > div span { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .inventory-review-sort { width: 100%; margin-left: 0; align-items: stretch; flex-direction: column; }
  .inventory-review-sort .filter-select, .inventory-review-toolbar .filter-select { width: 100%; }
}

/* PACE Pup — branded animated station helper */
.pace-pup-assistant { position: fixed; left: 18px; bottom: 16px; z-index: 79; color: #eaf4ff; }
.pace-pup-launcher { min-width: 184px; height: 62px; padding: 0 15px 0 6px; display: flex; align-items: center; gap: 7px; border: 1px solid #347bc2; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #071b2e, #0d3f70); box-shadow: 0 16px 40px rgba(0, 10, 26, .48); }
.pace-pup-launcher:hover { transform: translateY(-2px); border-color: #65b6ff; box-shadow: 0 20px 44px rgba(0, 28, 68, .55); }
.pace-pup-launcher-copy { display: grid; text-align: left; line-height: 1.15; }
.pace-pup-launcher-copy strong { font-size: 13px; }
.pace-pup-launcher-copy small { margin-top: 3px; color: #9fc7e8; font-size: 9px; font-weight: 700; letter-spacing: .035em; }
.pace-pup-sprite { width: 58px; height: 62px; flex: 0 0 auto; display: block; background-image: url("pace-pup-spritesheet.webp"); background-repeat: no-repeat; background-size: 464px 691.16px; background-position: 0 0; animation: pacePupIdle 3s steps(1, end) infinite; image-rendering: auto; }
.pace-pup-sprite-small { width: 48px; height: 52px; background-size: 384px 572px; animation-name: pacePupIdleSmall; }
.pace-pup-panel { position: absolute; left: 0; bottom: 72px; width: min(360px, calc(100vw - 28px)); overflow: hidden; border: 1px solid #2c658f; border-radius: 17px; background: #071827; box-shadow: 0 28px 80px rgba(0, 8, 18, .68); }
.pace-pup-header { min-height: 70px; padding: 7px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #1d4666; background: linear-gradient(135deg, #0c2945, #0b477d); }
.pace-pup-header > div { min-width: 0; flex: 1; }
.pace-pup-header strong, .pace-pup-header span { display: block; }
.pace-pup-header strong { font-size: 15px; }
.pace-pup-header span { margin-top: 2px; color: #a9cbe7; font-size: 10px; }
.pace-pup-close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #dceeff; background: rgba(255,255,255,.08); font-size: 19px; }
.pace-pup-close:hover { background: rgba(255,255,255,.16); }
.pace-pup-body { padding: 15px; }
.pace-pup-body p { margin: 0 0 14px; color: #aac0d3; font-size: 12px; line-height: 1.5; }
.pace-pup-body label { display: block; margin-bottom: 6px; color: #d8eaff; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pace-pup-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.pace-pup-search-row input { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #2a587a; border-radius: 9px; outline: 0; color: #f1f8ff; background: #061522; font-size: 12px; }
.pace-pup-search-row input:focus { border-color: #49a4ec; box-shadow: 0 0 0 3px rgba(49, 145, 226, .16); }
.pace-pup-search-row button { height: 40px; padding: 0 13px; border: 0; border-radius: 9px; color: white; background: #1778e8; font-size: 11px; font-weight: 850; }
.pace-pup-shortcuts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pace-pup-shortcuts button { min-height: 30px; padding: 0 9px; border: 1px solid #285675; border-radius: 999px; color: #b9d7ee; background: #0b2840; font-size: 10px; font-weight: 750; }
.pace-pup-shortcuts button:hover { color: white; border-color: #438bc3; background: #103a5c; }
@keyframes pacePupIdle {
  0%, 14% { background-position: 0 0; }
  15%, 29% { background-position: -58px 0; }
  30%, 44% { background-position: -116px 0; }
  45%, 59% { background-position: -174px 0; }
  60%, 74% { background-position: -232px 0; }
  75%, 89% { background-position: -290px 0; }
  90%, 100% { background-position: 0 0; }
}
@keyframes pacePupIdleSmall {
  0%, 14% { background-position: 0 0; }
  15%, 29% { background-position: -48px 0; }
  30%, 44% { background-position: -96px 0; }
  45%, 59% { background-position: -144px 0; }
  60%, 74% { background-position: -192px 0; }
  75%, 89% { background-position: -240px 0; }
  90%, 100% { background-position: 0 0; }
}
@media (max-width: 760px) {
  .pace-pup-assistant { left: 10px; bottom: 64px; }
  .pace-pup-launcher { min-width: 64px; width: 64px; padding: 0 3px; }
  .pace-pup-launcher-copy { display: none; }
  .pace-pup-panel { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .pace-pup-sprite { animation: none; } }

/* Email quote intake */
.quote-email-intake { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.email-quote-lanes { display: grid; gap: 18px; padding: 0 18px 18px; }
.email-quote-lane { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%); }
.lane-heading { padding: 14px 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.lane-heading h3 { margin: 3px 0 0; font-size: 15px; }
.lane-heading .eyebrow { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.count-pill { min-width: 32px; height: 26px; padding: 0 9px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 11px; font-weight: 850; }
.email-quote-lane table { min-width: 1020px; }
.email-message-preview { margin-top: 16px; }
.email-message-preview h4 { margin: 0 0 8px; }
.email-message-preview pre { max-height: 340px; margin: 0; padding: 14px; overflow: auto; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--surface-2); font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.inline-alert { margin: 0 18px 14px; padding: 11px 13px; border-radius: 10px; font-size: 12px; }
.inline-alert.error { color: #ffcbc7; border: 1px solid rgba(255, 102, 92, .35); background: rgba(133, 30, 26, .24); }
@media (max-width: 760px) {
  .email-quote-lanes { padding: 0 10px 10px; }
  .quote-email-intake .panel-header { align-items: stretch; }
}

/* Standalone PACE Pup: only the dog occupies the page until clicked. */
.pace-pup-assistant { width: 96px; height: 104px; bottom: auto; }
.pace-pup-launcher, .pace-pup-launcher:hover { width: 96px; min-width: 0; height: 104px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; cursor: grab; touch-action: none; user-select: none; }
.pace-pup-launcher:focus-visible { outline: 2px dashed #65b6ff; outline-offset: 2px; border-radius: 12px; }
.pace-pup-launcher > .pace-pup-sprite { width: 96px; height: 104px; background-size: 768px 1144px; animation: pupIdle 3s steps(1,end) infinite; pointer-events: none; filter: drop-shadow(0 5px 4px #0005); }
.pace-pup-assistant.dragging .pace-pup-launcher { cursor: grabbing; }
.pace-pup-assistant.dragging .pace-pup-launcher > .pace-pup-sprite { animation: none; background-position: -192px -312px; }
.pace-pup-assistant.walking-right .pace-pup-launcher > .pace-pup-sprite { animation: pupWalkRight .8s steps(8,end) infinite; }
.pace-pup-assistant.walking-left .pace-pup-launcher > .pace-pup-sprite { animation: pupWalkLeft .8s steps(8,end) infinite; }
.pace-pup-panel { position: fixed; bottom: auto; max-height: calc(100dvh - 16px); overflow-y: auto; }
@keyframes pupIdle { 0%,100% { background-position: 0 0; } 20% { background-position: -96px 0; } 40% { background-position: -192px 0; } 60% { background-position: -288px 0; } 80% { background-position: -384px 0; } }
@keyframes pupWalkRight { from { background-position: 0 -104px; } to { background-position: -768px -104px; } }
@keyframes pupWalkLeft { from { background-position: 0 -208px; } to { background-position: -768px -208px; } }
@media (prefers-reduced-motion: reduce) { .pace-pup-launcher > .pace-pup-sprite { animation: none !important; } }

.pace-pup-search-row { grid-template-columns: 1fr; }
.pace-pup-search-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.pace-pup-search-actions button { flex: 1; min-height: 38px; padding: 8px 10px; border: 1px solid #347bc2; border-radius: 9px; background: #1778e8; color: #fff; font-size: 12px; font-weight: 700; }
.pace-pup-search-actions button[value="internet"] { background: #0b2840; }
.pace-pup-search-note { display: block; margin-top: 8px; color: #aac0d3; font-size: 11px; line-height: 1.4; }

.stock-check { display: grid; gap: 5px; min-width: 170px; max-width: 240px; padding: 10px; border: 1px solid #64748b; border-radius: 9px; background: #102235; color: #d7e5f3; text-align: left; cursor: pointer; }
.stock-check small { font-size: 11px; line-height: 1.4; font-weight: 400; }
.stock-stock { border-color: #3acb94; color: #95f1c9; background: #10362e; }
.stock-review { border-color: #dfad4b; color: #ffe0a0; background: #352a17; }
.stock-error { border-color: #e37070; color: #ffc4c4; }
.stock-intake-summary .inline-filters { padding: 0 18px 16px; }
.stock-detail { padding: 14px 0; border-bottom: 1px solid #36536e; }
.stock-detail p { margin: 7px 0; }

.incoming-section-nav { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.incoming-section-nav button { display: grid; gap: 5px; padding: 15px 18px; text-align: left; border: 1px solid #345675; border-radius: 12px; color: #dbeafa; background: #10263c; cursor: pointer; }
.incoming-section-nav button[aria-pressed="true"] { border-color: #62b5ff; background: #133d67; box-shadow: inset 0 -3px #62b5ff; }
.incoming-section-nav button span { color: #afc6dc; font-size: 12px; }
@media (max-width: 600px) { .incoming-section-nav { grid-template-columns: 1fr; } }

.quote-batch-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:14px 18px; border-bottom:1px solid #345675; }
.quote-batch-toolbar small { flex-basis:100%; color:#afc6dc; }
.batch-modal { width:min(1100px,96vw); max-width:1100px; }
.batch-common,.batch-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.batch-common { margin:16px 0; align-items:end; }
.batch-quote { border:1px solid #345675; border-radius:12px; padding:16px; margin:14px 0; }
.batch-quote header { display:grid; gap:8px; margin-bottom:14px; }
.batch-fields label,.batch-common label { display:grid; gap:5px; font-size:12px; }
.batch-fields input,.batch-fields select,.batch-common input { min-width:0; width:100%; padding:9px; color:inherit; background:#10263c; border:1px solid #56718b; border-radius:6px; }
.batch-quote pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:240px; overflow:auto; font-size:12px; }
.batch-errors { color:#ffd092; font-size:12px; }
.batch-confirm { display:block; margin:18px 0; }

.batch-record-summary { border: 1px solid var(--border, #dce3eb); border-radius: 12px; padding: 16px; margin: 12px 0; }
.batch-record-summary dl { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.batch-record-summary dt { font-weight: 600; font-size: 12px; }
.batch-record-summary dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.universal-selection small { color: #64748b; }
.timeline-item.selected { background: #edf5ff; }

.incoming-source-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.incoming-source-nav button { display: grid; gap: 4px; flex: 1 1 200px; text-align: left; padding: 14px 18px; border: 1px solid #345675; border-radius: 12px; background: #10263c; color: #dbeafa; cursor: pointer; }
.incoming-source-nav button[aria-pressed="true"] { background: #133d67; border-color: #62b5ff; box-shadow: inset 0 -3px #62b5ff; }
.incoming-source-nav span { font-weight: 600; }
.incoming-source-nav small { color: #afc6dc; overflow-wrap: anywhere; }

/* Keep admin presence visible while the navigation scrolls on shorter displays. */
.sidebar:has(.team-presence:not([hidden])) #main-nav { min-height: 0; overflow-y: auto; flex: 1 1 auto; }
.team-presence { flex: 0 0 auto; margin: 10px 0 6px; padding: 10px; border: 1px solid #274862; border-radius: 10px; background: #0c2438; color: #e8f2fc; }
.team-presence[hidden] { display: none !important; }
.presence-heading { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.presence-heading strong { font-size: 12px; }
.presence-heading small { font-size: 9px; color: #a8c1d5; }
.presence-count, .presence-note { font-size: 10px; color: #a8c1d5; margin: 6px 0; }
.team-presence ul { padding: 0; margin: 8px 0; list-style: none; max-height: 160px; overflow-y: auto; }
.team-presence li { display: flex; gap: 7px; align-items: center; padding: 5px 0; }
.team-presence li strong { font-size: 11px; display: block; overflow-wrap: anywhere; }
.team-presence li small { font-size: 10px; color: #a8c1d5; display: block; margin-top: 2px; }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #7e8fa0; }
.presence-dot.online { background: #3bdd9b; }
.presence-dot.away { background: #f1bd56; }
@media (max-width: 760px) {
  .sidebar:not(.open) .team-presence:not([hidden]) { position: fixed; left: 10px; bottom: 12px; width: 178px; z-index: 90; }
  .sidebar:has(.team-presence:not([hidden])) { transform: none; }
  .sidebar:not(.open):has(.team-presence:not([hidden])) { visibility: hidden; pointer-events: none; }
  .sidebar:not(.open) .team-presence:not([hidden]) { visibility: visible; pointer-events: auto; }
}

.part-category-panel { padding: 18px; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; background: #0b2239; }
.part-category-panel h2 { font-size: 16px; margin: 0 0 12px; }
.part-category-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.part-category-buttons .active { background: var(--blue); color: white; border-color: #153c58; }
.part-category-panel label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.part-category-panel select { max-width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; }
.part-category-panel p { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

.part-type-selectors { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.part-type-selectors .active { background: var(--blue); border-color: var(--blue); color: white; }
.part-type-label { display: inline-block; margin-top: 6px; color: #9dcbff; font-size: 11px; font-weight: 700; }
/* Quote reviewer keeps its evidence and feedback alongside each assessment. */
.ai-review-card { margin-block: 18px; padding: 18px; }
.ai-review-card h3, .ai-review-card td { overflow-wrap: anywhere; }
.ai-review-card textarea { display: block; width: 100%; min-height: 76px; margin-block: 8px 14px; }
.ai-review-card .view-actions { flex-wrap: wrap; }
.ai-review-card details { margin-block: 14px; }

#personal-location { max-width: 112px; padding: 5px; border: 1px solid #27405b; border-radius: 6px; background: #10243d; color: #dce5ff; font: inherit; font-size: 11px; }

/* Pup's small cushion stays at his home position while he wanders. */
.pace-pup-bed { position: fixed; width: 112px; height: 44px; pointer-events: none; border: 6px solid #447294; border-bottom: 9px solid #234861; border-radius: 50%; background: radial-gradient(ellipse, #193c56 35%, #102738 75%); box-shadow: inset 0 4px 7px #0008, 0 5px 8px #0004; z-index: -1; }
.pace-pup-bed span { position: absolute; left: 34px; bottom: -8px; font: 700 8px/10px system-ui; letter-spacing: 2px; color: #d3e8f7; }
.pace-pup-assistant.sleeping .pace-pup-launcher > .pace-pup-sprite { animation: none; background-position: -384px -520px; transform: translate(8px, 5px); }
.pace-pup-assistant.sleeping .pace-pup-launcher::after { content: 'z z'; position: absolute; right: 1px; top: 23px; color: #b7d8ed; font: 700 13px system-ui; letter-spacing: 4px; text-shadow: 0 1px 3px #071827; pointer-events: none; }
.cost-offer { padding: 14px; margin: 12px 0; border: 1px solid var(--border, #dce3ec); border-radius: 10px; }
.cost-offer p { margin: 7px 0; }
.cost-coverage { padding: 0 16px; }
#review-next-cost { margin: 8px 16px; }
#cost-review-error { color: #b42318; }
#quote-followup-panel .table-wrap { max-height: 560px; overflow: auto; }
#quote-followup-panel .table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 230px; max-width: 340px; }
#quote-followup-panel .view-actions { flex-wrap: wrap; }
#quote-followup-panel .view-actions label { display: grid; gap: 5px; }
#followup-save-error { color: #b42318; }

.oneaero-source-panel { padding: 16px; margin: 14px 0; border: 1px solid var(--border, #d9e0e7); border-radius: 12px; background: var(--surface, #fff); }
.oneaero-source-panel h3 { margin: 0 0 8px; }
.oneaero-source-panel p { line-height: 1.5; }
.oneaero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.oneaero-actions a, .market-row-actions a, .market-source-actions a { text-decoration: none; display: inline-flex; align-items: center; }

/* Compact market research toolbar; details expand only when needed. */
.market-sources-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #345474; border-radius: 9px; background: #152c49; }
.market-sources-compact > strong { font-size: 12px; color: var(--muted); }
.market-sources-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.market-sources-buttons .secondary-button { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 11px; text-decoration: none; font-size: 12px; }
.market-source-help { margin-left: auto; font-size: 12px; color: var(--muted); }
.market-source-help summary { cursor: pointer; padding: 7px 0; }
.market-source-help[open] { flex-basis: 100%; margin-left: 0; }
.market-source-help p { margin: 5px 0; line-height: 1.5; }
@media (max-width: 620px) { .market-sources-compact { gap: 8px; }.market-sources-buttons { flex-basis: 100%; }.market-source-help { margin-left: 0; } }
