:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #f4f7f6;
  --ink: #1b282c;
  --muted: #667479;
  --line: #e2e8e6;
  --line-strong: #cdd7d4;
  --nav: #202d30;
  --nav-hover: #2b3b3f;
  --teal: #0f766e;
  --teal-soft: #e4f2ef;
  --blue: #316b9a;
  --blue-soft: #e9f1f7;
  --red: #b33e35;
  --red-soft: #fae9e7;
  --amber: #9d641c;
  --amber-soft: #fbf0df;
  --green: #28784d;
  --green-soft: #e7f3eb;
  --shadow: 0 10px 30px rgba(23, 37, 42, 0.06);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-size: 14px; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #5c9f98; outline-offset: 2px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.portal-shell { min-height: 100vh; }
.portal-rail { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 184px; flex-direction: column; color: #f5f8f7; background: var(--nav); border-right: 1px solid #263a40; }
.portal-brand { display: flex; min-height: 72px; align-items: center; gap: 11px; padding: 14px 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.portal-brand:hover { text-decoration: none; }
.portal-brand-mark { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: #76d0c7; font-size: 12px; font-weight: 800; background: var(--nav); }
.portal-brand strong, .portal-brand small { display: block; }
.portal-brand strong { font-size: 15px; }
.portal-brand small { margin-top: 2px; color: #aab9b9; font-size: 11px; }
.portal-nav { display: grid; gap: 4px; padding: 18px 10px; }
.portal-nav-item { display: flex; min-height: 42px; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 6px; color: #cbd5d4; background: transparent; text-align: left; }
.portal-nav-item span { width: 18px; color: #91aaa8; font-size: 18px; text-align: center; }
.portal-nav-item:hover { color: #fff; background: var(--nav-hover); }
.portal-nav-item.active { color: #fff; background: #315157; box-shadow: inset 3px 0 0 #65c3ba; }
.portal-nav-item.active span { color: #80d3ca; }
.portal-rail-foot { display: grid; grid-template-columns: 8px 1fr; gap: 8px; align-items: center; margin-top: auto; padding: 16px 18px 20px; color: #9fb0af; font-size: 11px; border-top: 1px solid rgba(255,255,255,.08); }
.portal-rail-foot a { grid-column: 2; color: #b9c7c6; }
.verified-dot { width: 7px; height: 7px; border-radius: 50%; background: #64c497; box-shadow: 0 0 0 3px rgba(100,196,151,.12); }

.portal-main { min-height: 100vh; margin-left: 184px; }
.portal-header { position: sticky; top: 0; z-index: 25; display: grid; grid-template-columns: minmax(280px, 620px) auto 46px; gap: 14px; align-items: center; min-height: 72px; padding: 12px clamp(20px, 3vw, 42px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.global-search-wrap { position: relative; }
.global-search-wrap input, .local-search input { width: 100%; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.global-search-wrap input { height: 42px; padding: 0 42px 0 40px; border-radius: 7px; }
.global-search-wrap input:focus { border-color: #6ca9a3; box-shadow: 0 0 0 3px rgba(19,118,110,.08); }
.search-symbol { position: absolute; top: 10px; left: 14px; z-index: 2; color: var(--muted); font-size: 20px; }
.clear-search { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 20px; }
.clear-search:hover { color: var(--ink); background: var(--surface-soft); }
.global-search-results { position: absolute; top: 48px; right: 0; left: 0; z-index: 45; max-height: min(600px, 70vh); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.search-group-label { padding: 9px 10px 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.search-result { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; }
.search-result:hover { background: var(--surface-soft); }
.search-result strong, .search-result small { display: block; }
.search-result small { margin-top: 3px; color: var(--muted); }
.period-control { display: grid; grid-template-columns: auto auto; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.period-control select, .regulation-toolbar select { height: 38px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); }
.inbox-button, .icon-command { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 18px; }
.inbox-button:hover, .icon-command:hover { background: var(--surface-soft); }
.inbox-button b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 9px; color: #fff; background: var(--red); font-size: 10px; line-height: 14px; }
.icon-command.small { width: 30px; height: 30px; font-size: 17px; }

.portal-view { display: none; max-width: 1480px; margin: 0 auto; padding: 30px clamp(20px, 3vw, 42px) 64px; }
.portal-view.active { display: block; }
.view-heading { display: flex; min-height: 76px; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.view-heading h1 { margin: 2px 0 6px; font-size: 28px; line-height: 1.25; }
.kicker, .section-kicker { margin: 0; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.heading-note, .section-meta { margin: 0; color: var(--muted); font-size: 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin: 3px 0 0; font-size: 17px; }

.portal-loading { position: fixed; top: 84px; left: 50%; z-index: 70; display: none; transform: translateX(-50%); padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; box-shadow: var(--shadow); }
.portal-loading.active { display: block; }
.portal-toast { position: fixed; right: 28px; bottom: 28px; z-index: 80; max-width: 380px; padding: 11px 14px; border-radius: 6px; color: #fff; background: var(--nav); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .18s ease; }
.portal-toast.visible { opacity: 1; transform: none; }
.portal-toast.error { background: var(--red); }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.summary-item { min-height: 82px; padding: 16px 18px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item span, .summary-item strong, .summary-item small { display: block; }
.summary-item span { color: var(--muted); font-size: 12px; }
.summary-item strong { margin-top: 7px; font-size: 22px; line-height: 1; }
.summary-item small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.summary-item.alert strong { color: var(--red); }
.home-action-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.home-action-item { position: relative; min-height: 94px; padding: 16px 48px 16px 18px; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: var(--surface); text-align: left; }
.home-action-item:last-child { border-right: 0; }
.home-action-item:hover { background: var(--surface-soft); }
.home-action-item span, .home-action-item strong, .home-action-item small { display: block; }
.home-action-item span { color: var(--muted); font-size: 12px; }
.home-action-item strong { margin-top: 7px; font-size: 24px; line-height: 1; }
.home-action-item small { margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-action-item.alert strong { color: var(--red); }
.home-action-arrow { position: absolute; top: 50%; right: 18px; color: var(--muted); font-size: 18px; transform: translateY(-50%); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 20px; align-items: start; }
.home-primary, .home-aside { display: grid; gap: 20px; }
.content-band, .settings-section { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.text-command { padding: 5px 0; border: 0; color: var(--teal); background: transparent; font-weight: 650; }
.text-command:hover { color: #0c5e58; text-decoration: underline; }
.primary-command, .secondary-command { min-height: 38px; padding: 0 14px; border-radius: 6px; font-weight: 650; }
.primary-command { border: 1px solid var(--teal); color: #fff; background: var(--teal); }
.primary-command:hover { background: #0d655e; }
.secondary-command { border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.secondary-command:hover { background: var(--surface-soft); }
.wide { width: 100%; }

.intelligence-list { display: grid; gap: 0; }
.intel-item { position: relative; display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 13px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.intel-item:first-child { padding-top: 4px; border-top: 0; }
.intel-level { width: 4px; height: 36px; border-radius: 2px; background: var(--blue); }
.intel-item.high .intel-level { background: var(--red); }
.intel-item.medium .intel-level { background: var(--amber); }
.intel-item h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.45; }
.intel-item p { margin: 0; color: var(--muted); line-height: 1.55; }
.intel-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 11px; }
.intel-actions { display: flex; gap: 4px; }
.mini-action { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; }
.mini-action:hover, .mini-action.active { color: var(--teal); background: var(--teal-soft); }
.intel-evidence { grid-column: 2 / -1; margin-top: -3px; padding: 10px 12px; border-left: 2px solid var(--line-strong); color: var(--muted); background: var(--surface-soft); font-size: 12px; line-height: 1.55; }
.fact-label { color: var(--green); font-weight: 750; }
.inference-label { color: var(--amber); font-weight: 750; }
.pending-label { color: var(--muted); font-weight: 750; }
.disclosure-row { display: grid; grid-template-columns: 94px minmax(150px, .8fr) minmax(220px, 1.5fr) 110px; gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); }
.disclosure-row:first-child { border-top: 0; }
.disclosure-row .date { color: var(--muted); font-size: 12px; }
.disclosure-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disclosure-row a { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.status-chip, .type-chip { display: inline-flex; width: fit-content; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 4px; font-size: 11px; }
.status-chip.reviewed { color: var(--green); background: var(--green-soft); }
.status-chip.pending_review { color: var(--amber); background: var(--amber-soft); }
.status-chip.not_collected { color: var(--red); background: var(--red-soft); }
.status-chip.awaiting_window { color: var(--blue); background: var(--blue-soft); }
.type-chip { color: var(--blue); background: var(--blue-soft); }
.followed-list { display: grid; gap: 7px; }
.followed-company { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: var(--surface-soft); cursor: pointer; }
.followed-company:hover { border-color: var(--line-strong); }
.company-monogram { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 11px; font-weight: 800; }
.followed-company strong, .followed-company small { display: block; }
.followed-company strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.followed-company small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.calendar-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.calendar-count { padding: 10px 7px; border-radius: 6px; background: var(--surface-soft); text-align: center; }
.calendar-count strong, .calendar-count span { display: block; }
.calendar-count strong { font-size: 18px; }
.calendar-count span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.calendar-preview { display: grid; gap: 6px; }
.calendar-preview-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.calendar-preview-row strong, .calendar-preview-row small { display: block; }
.calendar-preview-row strong { font-size: 12px; }
.calendar-preview-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.company-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 680px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.company-directory { padding: 16px; border-right: 1px solid var(--line); background: #fbfcfc; }
.local-search { position: relative; display: block; }
.local-search > span { position: absolute; top: 8px; left: 10px; color: var(--muted); font-size: 18px; }
.local-search input { height: 38px; padding: 0 10px 0 34px; border-radius: 6px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.segmented button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 12px; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(23,37,42,.1); }
.company-directory .segmented { display: flex; margin: 12px 0; }
.company-directory .segmented button { flex: 1; }
.company-directory-list { max-height: 590px; overflow-y: auto; padding-right: 3px; }
.directory-company { width: 100%; padding: 10px 9px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; }
.directory-company:hover { background: var(--surface-soft); }
.directory-company.active { color: var(--teal); background: var(--teal-soft); }
.directory-company strong, .directory-company small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-company small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.company-profile { min-width: 0; padding: 24px; }
.profile-hero { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-monogram { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 7px; color: var(--teal); background: var(--teal-soft); font-size: 15px; font-weight: 800; }
.profile-hero h2 { margin: 0 0 4px; font-size: 22px; }
.profile-hero p { margin: 0; color: var(--muted); }
.profile-source { text-align: right; }
.profile-source strong, .profile-source span { display: block; }
.profile-source strong { color: var(--green); font-size: 12px; }
.profile-source span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.profile-tabs { display: flex; gap: 2px; margin: 14px 0 18px; border-bottom: 1px solid var(--line); }
.profile-tabs button { min-height: 38px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; }
.profile-tabs button.active { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.profile-section-body { min-width: 0; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 20px 0; border: 1px solid var(--line); border-radius: 7px; }
.profile-metric { min-height: 108px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-metric:nth-child(3n) { border-right: 0; }
.profile-metric:nth-last-child(-n+3) { border-bottom: 0; }
.profile-metric span, .profile-metric strong, .profile-metric small { display: block; }
.profile-metric span { color: var(--muted); font-size: 11px; }
.profile-metric strong { margin-top: 8px; font-size: 22px; }
.profile-metric small { margin-top: 6px; color: var(--muted); font-size: 10px; }
.profile-sections { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); gap: 20px; }
.profile-panel { min-width: 0; padding-top: 4px; }
.profile-panel h3 { margin: 0 0 12px; font-size: 15px; }
.trend-chart { display: flex; min-height: 190px; align-items: flex-end; gap: 9px; padding: 18px 4px 24px; border-bottom: 1px solid var(--line); }
.trend-point { display: flex; min-width: 26px; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.trend-point strong { font-size: 10px; }
.trend-bar { width: min(26px, 70%); min-height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); }
.trend-point span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.profile-report-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 9px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.profile-report-row:first-of-type { border-top: 0; }
.profile-report-row span { color: var(--muted); font-size: 10px; }
.profile-report-row a { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.profile-table-wrap, .history-table-wrap { max-width: 100%; overflow-x: auto; }
.profile-data-table, .history-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.profile-data-table th, .profile-data-table td, .history-table th, .history-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.profile-data-table th:first-child, .profile-data-table td:first-child, .history-table th:first-child, .history-table td:first-child { text-align: left; }
.profile-data-table th, .history-table th { color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.profile-periods { display: flex; max-width: 58%; gap: 5px; overflow-x: auto; padding-bottom: 3px; }
.profile-periods button { min-width: 68px; min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; }
.profile-periods button.active { border-color: #7eb5af; color: var(--teal); background: var(--teal-soft); }
.profile-wide { margin-bottom: 22px; }
.sales-profile-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.sales-profile-heading h3 { margin: 3px 0 5px; font-size: 20px; }
.sales-profile-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.sales-metric-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; margin-bottom: 28px; }
.sales-metric-group { min-width: 0; padding: 17px 0 20px; border-top: 1px solid var(--line); }
.sales-metric-group > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.sales-metric-group > header h3 { margin: 0; font-size: 14px; }
.sales-metric-group > header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.sales-metric-group > header > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.sales-metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.sales-metric-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sales-metric-group:last-child:nth-child(odd) .sales-metric-grid { grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); }
.sales-metric-group:last-child:nth-child(odd) .sales-metric-card { border-right: 1px solid var(--line); border-bottom: 0; }
.sales-metric-group:last-child:nth-child(odd) .sales-metric-card:last-child { border-right: 0; }
.sales-metric-card { min-width: 0; min-height: 96px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; }
.sales-metric-card:nth-child(2n) { border-right: 0; }
.sales-metric-card:nth-last-child(-n+2) { border-bottom: 0; }
.sales-metric-card:hover { background: var(--surface-soft); text-decoration: none; }
.sales-metric-card span, .sales-metric-card strong, .sales-metric-card small { display: block; }
.sales-metric-card span, .sales-metric-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.sales-metric-card strong { margin: 8px 0 5px; font-size: 17px; }
.sales-profile-grid { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); gap: 28px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.profile-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.profile-panel-heading h3 { margin: 3px 0 0; }
.profile-panel-heading > p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.profile-panel-heading > p strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }
.profile-panel-heading > p span { color: var(--teal); font-weight: 750; }
.channel-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(80px,1.4fr) 50px; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.channel-row:first-of-type { border-top: 0; }
.channel-row span strong, .channel-row span small { display: block; }
.channel-row span small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.channel-row > div { height: 7px; overflow: hidden; border-radius: 4px; background: var(--line); }
.channel-row > div i { display: block; height: 100%; background: var(--teal); }
.channel-row > b { color: var(--muted); font-size: 11px; text-align: right; }
.product-table { border-top: 1px solid var(--line); }
.product-table-head, .product-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 112px; gap: 10px; }
.product-table-head { padding: 8px 0; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.product-table-head span:first-child { text-align: center; }
.product-table-head span:last-child { text-align: right; }
.product-row { align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.product-rank { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 4px; color: var(--teal); background: var(--teal-soft); font-size: 10px; font-weight: 750; }
.product-copy { min-width: 0; }
.product-copy > strong, .product-name-link { display: block; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; white-space: normal; }
.product-name-link:hover { color: var(--teal); text-decoration: underline; }
.product-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.product-meta span { padding: 2px 5px; border-radius: 3px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.product-value { padding-top: 3px; font-size: 11px; text-align: right; white-space: nowrap; }
.line-mix-panel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.empty-state.compact { padding: 26px 12px; }
.anomaly-card { padding: 14px 0; border-top: 1px solid var(--line); }
.anomaly-card:first-of-type { padding-top: 0; border-top: 0; }
.anomaly-card > div:first-child { display: flex; align-items: center; gap: 8px; }
.anomaly-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.anomaly-card .statement-fact b { color: var(--green); }
.anomaly-card .statement-inference b { color: var(--amber); }
.evidence-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.evidence-links a { padding: 5px 7px; border-radius: 4px; background: var(--blue-soft); font-size: 10px; }
.event-row { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }
.event-row:first-of-type { border-top: 0; }
.event-row > span { color: var(--muted); font-size: 10px; }
.event-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-state { padding: 40px 20px; color: var(--muted); text-align: center; }

.compare-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.compare-company-search { width: min(340px, 100%); }
.selection-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.compare-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); min-height: 620px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.compare-selector { padding: 12px; border-right: 1px solid var(--line); background: #fbfcfc; }
.check-list { max-height: 620px; overflow: auto; }
.company-check { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: center; padding: 9px; border-radius: 5px; cursor: pointer; }
.company-check:hover { background: var(--surface-soft); }
.company-check input { width: 16px; height: 16px; accent-color: var(--teal); }
.company-check strong, .company-check small { display: block; }
.company-check strong { font-size: 12px; }
.company-check small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.compare-results { min-width: 0; padding: 20px; }

.analysis-workspace { display: grid; align-items: start; gap: 22px; }
.analysis-workspace.setup-mode { max-width: 1120px; grid-template-columns: 1fr; margin: 0 auto; }
.analysis-workspace.report-mode { grid-template-columns: 320px minmax(0, 1fr); }
.analysis-view-draft .analysis-heading .heading-actions { display: none; }
.analysis-builder { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.report-mode .analysis-builder { position: sticky; top: 94px; max-height: calc(100vh - 116px); overflow-y: auto; }
.analysis-builder-section { border-bottom: 1px solid var(--line); }
.analysis-builder-section:last-child { border-bottom: 0; }
.analysis-builder-main { padding: 0; }
.analysis-setup-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.analysis-setup-intro h2 { margin: 4px 0 0; font-size: 20px; }
.analysis-period-badge { padding: 6px 9px; border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 750; }
.analysis-builder-grid { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.35fr); }
.analysis-company-column, .analysis-peer-column { min-width: 0; padding: 24px; }
.analysis-company-column { border-right: 1px solid var(--line); }
.setup-mode .analysis-builder-grid { grid-template-columns: 1fr; }
.setup-mode .analysis-company-column { display: grid; grid-template-columns: 110px minmax(360px, 500px); align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.setup-mode .analysis-company-column .builder-label { margin: 0; }
.setup-mode .analysis-peer-column { padding-top: 20px; }
.builder-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.builder-label > span { font-size: 13px; font-weight: 750; }
.builder-label > small { color: var(--muted); font-size: 10px; }
.analysis-company-selector { position: relative; }
.analysis-company-trigger { display: grid; width: 100%; min-height: 68px; grid-template-columns: 38px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; text-align: left; }
.analysis-company-trigger:hover, .analysis-company-trigger[aria-expanded="true"] { border-color: #7eb5af; background: var(--teal-soft); }
.analysis-company-trigger strong, .analysis-company-trigger small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-company-trigger strong { font-size: 14px; }
.analysis-company-trigger small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.analysis-company-trigger > b { color: var(--muted); font-size: 16px; }
.analysis-company-picker { position: absolute; top: calc(100% + 7px); left: 0; z-index: 30; width: min(460px, calc(100vw - 64px)); padding: 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; box-shadow: 0 16px 38px rgba(23,37,42,.16); }
.analysis-company-type-tabs { display: flex; width: 100%; margin: 9px 0; }
.analysis-company-type-tabs button { flex: 1; }
.analysis-company-options { max-height: 330px; overflow-y: auto; border-top: 1px solid var(--line); }
.analysis-company-option { display: grid; width: 100%; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 7px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.analysis-company-option:hover, .analysis-company-option.active { background: var(--surface-soft); }
.analysis-company-option.active { box-shadow: inset 3px 0 0 var(--teal); }
.analysis-company-option strong, .analysis-company-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-company-option strong { font-size: 12px; }
.analysis-company-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.analysis-company-option > span:last-child { color: var(--muted); font-size: 9px; }
.analysis-selected-peers { display: flex; min-height: 34px; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.analysis-selected-peer { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 3px 0 9px; border: 1px solid #acd0cc; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 10px; }
.analysis-selected-peer button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 15px; }
.analysis-selected-peer button:hover { color: var(--red); background: #fff; }
.analysis-peer-placeholder { align-self: center; color: var(--muted); font-size: 10px; }
.analysis-recommendation-head, .analysis-peer-search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-recommendation-head strong, .analysis-recommendation-head small { display: block; }
.analysis-recommendation-head strong, .analysis-peer-search-head strong { font-size: 11px; }
.analysis-recommendation-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.analysis-recommendation-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin: 9px 0 20px; }
.setup-mode .analysis-recommendation-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
.analysis-recommendation { display: grid; min-width: 0; grid-template-columns: 32px minmax(0,1fr) 22px; gap: 8px; align-items: center; min-height: 56px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface-soft); text-align: left; }
.analysis-recommendation:hover { border-color: #9fc8c4; background: var(--teal-soft); }
.analysis-recommendation.selected { border-color: #7eb5af; background: var(--teal-soft); }
.analysis-recommendation strong, .analysis-recommendation small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-recommendation strong { font-size: 11px; }
.analysis-recommendation small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.analysis-recommendation > b { color: var(--teal); font-size: 15px; text-align: center; }
.analysis-peer-search-head { padding-top: 15px; border-top: 1px solid var(--line); }
.analysis-peer-search { margin: 8px 0; }
.analysis-peer-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 250px; gap: 3px 8px; overflow-y: auto; }
.setup-mode .analysis-peer-list { grid-template-columns: repeat(3,minmax(0,1fr)); max-height: 220px; }
.analysis-peer-option { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) 24px; gap: 8px; align-items: center; padding: 8px 7px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.analysis-peer-option:hover { background: var(--surface-soft); }
.analysis-peer-option.selected { color: var(--teal); background: var(--teal-soft); }
.analysis-peer-option strong, .analysis-peer-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-peer-option strong { font-size: 11px; }
.analysis-peer-option small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.analysis-peer-option > b { color: var(--teal); font-size: 15px; text-align: center; }
.analysis-builder-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fbfcfc; }
.analysis-builder-actions > span { margin-right: auto; color: var(--muted); font-size: 10px; }
.analysis-builder-actions .primary-command { min-width: 150px; }
.builder-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.builder-caption b { color: var(--ink); font-weight: 600; }
.history-section { padding: 18px 24px; }
.setup-mode .analysis-report { display: none; }
.setup-mode .analysis-history { grid-template-columns: repeat(3,minmax(0,1fr)); }
.report-mode .analysis-setup-intro { padding: 16px 18px; }
.report-mode .analysis-setup-intro h2 { font-size: 15px; }
.report-mode .analysis-builder-grid { display: block; }
.report-mode .analysis-company-column, .report-mode .analysis-peer-column { padding: 18px; }
.report-mode .analysis-company-column { border-right: 0; border-bottom: 1px solid var(--line); }
.report-mode .analysis-company-picker { width: min(420px, calc(100vw - 48px)); }
.report-mode .analysis-recommendation-list, .report-mode .analysis-peer-list { grid-template-columns: 1fr; }
.report-mode .analysis-recommendation-list { margin-bottom: 16px; }
.report-mode .analysis-peer-list { max-height: 220px; }
.report-mode .analysis-builder-actions { display: grid; gap: 8px; padding: 14px 18px; }
.report-mode .analysis-builder-actions > span { margin: 0; }
.report-mode .analysis-builder-actions .primary-command { width: 100%; }
.report-mode .history-section { padding: 16px 18px; }
.analysis-history { display: grid; gap: 5px; }
.analysis-history-item { display: grid; grid-template-columns: minmax(0,1fr) 28px; border-radius: 5px; }
.analysis-history-item:hover, .analysis-history-item.active { background: var(--surface-soft); }
.analysis-history-item.active { box-shadow: inset 3px 0 0 var(--teal); }
.analysis-history-item > button:first-child { min-width: 0; padding: 8px; border: 0; color: var(--ink); background: transparent; text-align: left; }
.analysis-history-item strong, .analysis-history-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-history-item strong { font-size: 11px; }
.analysis-history-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.history-delete { border: 0; color: var(--muted); background: transparent; font-size: 17px; }
.history-delete:hover { color: var(--red); }
.empty-state.compact { padding: 18px 8px; font-size: 11px; }

.analysis-report { min-width: 0; min-height: 720px; padding: clamp(24px, 4vw, 54px); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 28px rgba(23,37,42,.05); }
.analysis-empty { display: grid; min-height: 600px; place-content: center; text-align: center; }
.analysis-empty strong { font-size: 19px; }
.analysis-empty p { max-width: 430px; color: var(--muted); line-height: 1.7; }
.analysis-report-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; padding-bottom: 26px; border-bottom: 2px solid var(--ink); }
.analysis-report-header h2 { margin: 8px 0 6px; font-size: clamp(25px, 3vw, 38px); line-height: 1.2; }
.analysis-report-header p { margin: 0; color: var(--muted); }
.analysis-report-meta { text-align: right; }
.analysis-report-meta span, .analysis-report-meta strong { display: block; }
.analysis-report-meta span { color: var(--muted); font-size: 10px; }
.analysis-report-meta strong { margin-top: 6px; color: var(--teal); font-size: 12px; }
.analysis-report-meta small { display: block; margin-top: 5px; color: var(--muted); font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; }
.shared-banner { margin: -18px -18px 22px; padding: 9px 18px; color: #fff; background: var(--teal); font-size: 10px; text-align: center; }
.analysis-quality { display: grid; grid-template-columns: repeat(4,1fr); margin: 22px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analysis-quality span { padding: 13px 10px; color: var(--muted); font-size: 10px; text-align: center; border-right: 1px solid var(--line); }
.analysis-quality span:last-child { border-right: 0; }
.analysis-quality b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 18px; }
.analysis-findings, .analysis-report-section { padding: 34px 0; border-bottom: 1px solid var(--line-strong); }
.analysis-section-heading { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: start; margin-bottom: 20px; }
.analysis-section-heading > span { color: var(--teal); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.analysis-section-heading small { display: block; color: var(--muted); font-size: 10px; }
.analysis-section-heading h2 { margin: 4px 0 0; font-size: 21px; }
.analysis-statement { margin: 0 0 12px 50px; padding: 16px 18px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; background: #fff; }
.analysis-statement:last-child { margin-bottom: 0; }
.analysis-statement.risk { border-left-color: var(--red); background: #fffafa; }
.analysis-statement.watch { border-left-color: var(--amber); background: #fffdf9; }
.analysis-statement.growth, .analysis-statement.steady { border-left-color: var(--green); }
.analysis-statement.missing { border-left-color: var(--muted); background: var(--surface-soft); }
.analysis-statement.neutral { border-left-color: var(--blue); }
.analysis-statement-title { display: flex; align-items: center; gap: 9px; }
.analysis-statement-title span { padding: 3px 6px; border-radius: 3px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 700; }
.analysis-statement-title h3 { margin: 0; font-size: 14px; }
.finding-favorite { width: 28px; height: 28px; margin-left: auto; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 19px; line-height: 1; cursor: pointer; }
.finding-favorite:hover, .finding-favorite.active { color: #A46D00; background: #FFF6DD; }
.finding-favorite.active { font-size: 0; }
.finding-favorite.active::after { content: "★"; font-size: 18px; }
.executive-findings { display: grid; gap: 8px; margin-left: 50px; }
.executive-finding { position: relative; display: grid; grid-template-columns: 185px minmax(0,1fr) 30px; align-items: center; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.executive-finding:first-child { border-top: 0; }
.executive-finding > div span { color: var(--muted); font-size: 9px; }
.executive-finding h3 { margin: 4px 0 0; font-size: 13px; }
.executive-finding p { margin: 0; font-size: 11px; line-height: 1.55; }
.analysis-statement dl { margin: 12px 0 0; }
.analysis-statement dl > div { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 8px; padding: 6px 0; border-top: 1px solid rgba(220,227,225,.7); }
.analysis-statement dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.analysis-statement dd { margin: 0; font-size: 12px; line-height: 1.65; }
.analysis-evidence-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.analysis-evidence-links a { padding: 4px 7px; border-radius: 4px; background: var(--blue-soft); font-size: 9px; }
.analysis-metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); margin: 0 0 22px 50px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.analysis-metric { min-height: 112px; padding: 14px; border-right: 1px solid var(--line); }
.analysis-metric:last-child { border-right: 0; }
.analysis-metric span, .analysis-metric strong, .analysis-metric small, .analysis-metric a { display: block; }
.analysis-metric span { color: var(--muted); font-size: 10px; }
.analysis-metric strong { margin-top: 9px; font-size: 18px; }
.analysis-metric small { min-height: 26px; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.analysis-metric a { margin-top: 5px; font-size: 9px; }
.analysis-table-wrap { margin: 0 0 22px 50px; overflow-x: auto; }
.analysis-peer-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.analysis-peer-table th, .analysis-peer-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: right; }
.analysis-peer-table th:first-child, .analysis-peer-table td:first-child { position: sticky; left: 0; text-align: left; background: #fff; }
.analysis-peer-table th { color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.analysis-peer-table td strong, .analysis-peer-table td small { display: block; }
.analysis-peer-table td strong { font-size: 11px; }
.analysis-peer-table td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.analysis-peer-table tr.focal td { background: var(--teal-soft); }
.analysis-peer-table tr.focal td:first-child { background: var(--teal-soft); }
.analysis-structure { display: grid; grid-template-columns: repeat(2, minmax(130px,.35fr)) minmax(260px,1fr); gap: 18px; margin: 0 0 22px 50px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.analysis-structure > div > span, .analysis-structure > div > strong, .analysis-structure > div > small { display: block; }
.analysis-structure > div > span { color: var(--muted); font-size: 10px; }
.analysis-structure > div > strong { margin-top: 7px; font-size: 17px; }
.analysis-structure > div > small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.analysis-channel-bars { display: grid; gap: 7px; }
.analysis-channel-bars > div { display: grid; grid-template-columns: 64px minmax(80px,1fr) 45px; gap: 7px; align-items: center; font-size: 9px; }
.analysis-channel-bars i { display: block; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.analysis-channel-bars i b { display: block; height: 100%; background: var(--teal); }
.analysis-channel-bars > div > strong { text-align: right; }
.analysis-events { margin-left: 50px; }
.analysis-events > div { display: grid; grid-template-columns: 84px minmax(0,1fr) auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.analysis-events span { color: var(--muted); font-size: 9px; }
.analysis-events strong { font-size: 11px; }
.analysis-events p { grid-column: 2; margin: -4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.analysis-events a { font-size: 9px; }
.analysis-source-list { margin-left: 50px; }
.analysis-source-list article { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.analysis-source-list article > span { color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.analysis-source-list article strong { font-size: 10px; }
.analysis-source-list blockquote { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.analysis-source-list a { font-size: 9px; white-space: nowrap; }
.analysis-method { padding-top: 22px; }
.analysis-method strong { font-size: 11px; }
.analysis-method p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.analysis-trend { margin: 0 0 22px 50px; }
.analysis-trend figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.analysis-trend figcaption strong { font-size: 12px; }
.analysis-trend figcaption span, .analysis-trend p { color: var(--muted); font-size: 9px; }
.analysis-trend svg { display: block; width: 100%; aspect-ratio: 760 / 220; border-bottom: 1px solid var(--line); overflow: visible; }
.analysis-trend svg text { fill: var(--muted); font-size: 9px; }
.analysis-trend svg circle { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; }
.chart-zero { stroke: var(--amber); stroke-width: 1; stroke-dasharray: 5 4; }
.chart-company, .chart-peer { fill: none; vector-effect: non-scaling-stroke; }
.chart-company { stroke: var(--teal); stroke-width: 2.5; }
.chart-peer { stroke: #899596; stroke-width: 1.5; stroke-dasharray: 7 5; }
.chart-legend { display: flex; gap: 18px; margin-top: 7px; color: var(--muted); font-size: 8px; }
.chart-legend span::before { content: ""; display: inline-block; width: 18px; margin-right: 5px; border-top: 2px solid var(--teal); vertical-align: middle; }
.chart-legend span:last-child::before { border-color: #899596; border-top-style: dashed; }
.analysis-attributions { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 10px; margin: 0 0 20px 50px; }
.analysis-attributions article { padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px; }
.analysis-attributions article.pending { border-left-color: var(--amber); background: #fffdf8; }
.analysis-attributions article > div { display: flex; align-items: center; gap: 8px; }
.analysis-attributions article span { padding: 2px 5px; border-radius: 3px; color: var(--teal); background: var(--teal-soft); font-size: 8px; }
.analysis-attributions article.pending span { color: #845B08; background: #FFF3D1; }
.analysis-attributions article strong { font-size: 11px; }
.analysis-attributions article p { margin: 8px 0 0; font-size: 10px; line-height: 1.55; }
.analysis-attributions article small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.peer-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 22px 50px; }
.peer-gap-list, .peer-divergences { padding: 14px; border-top: 2px solid var(--ink); background: var(--surface-soft); }
.peer-gap-list > strong, .peer-divergences > strong { display: block; margin-bottom: 9px; font-size: 11px; }
.peer-gap-list span { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 9px; }
.peer-gap-list i { font-style: normal; font-weight: 700; }
.peer-gap-list i.up { color: var(--green); }
.peer-gap-list i.down { color: var(--red); }
.peer-divergences p { margin: 6px 0; font-size: 10px; line-height: 1.55; }
.analysis-notes { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.analysis-notes > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.analysis-notes textarea { width: 100%; min-height: 100px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 6px; resize: vertical; font: inherit; }
.analysis-notes button { justify-self: start; }
.share-result { margin: 14px 0; }
.share-link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.share-link input { min-width: 0; }
.share-list { display: grid; gap: 6px; margin-top: 14px; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.share-row b, .share-row small { display: block; }
.share-row b { font-size: 10px; }
.share-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.membership-panel { overflow: hidden; border-top: 3px solid var(--teal); }
.membership-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.membership-heading span { display: block; color: var(--muted); font-size: 9px; }
.membership-heading h2 { margin: 5px 0 0; font-size: 17px; }
.membership-heading b { padding: 4px 7px; border-radius: 4px; color: var(--teal); background: var(--teal-soft); font-size: 9px; }
.membership-panel > p { margin: 12px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.membership-usage { display: grid; grid-template-columns: repeat(3,1fr); margin: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.membership-usage span { padding: 9px 5px; border-right: 1px solid var(--line); text-align: center; font-size: 8px; color: var(--muted); }
.membership-usage span:last-child { border-right: 0; }
.membership-usage b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.membership-feedback-state { display: grid; grid-template-columns: auto auto minmax(0,1fr); gap: 8px 12px; align-items: center; margin: 12px 0; padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.membership-feedback-state span, .membership-feedback-state small { color: var(--muted); font-size: 9px; }
.membership-feedback-state small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.membership-feedback-state strong { font-size: 10px; }
.membership-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.rating-field { padding: 0; border: 0; }
.rating-field legend { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.rating-options { display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.rating-options label { display: grid; height: 38px; place-content: center; border: 1px solid var(--line-strong); border-radius: 5px; cursor: pointer; font-size: 11px; }
.rating-options label:has(input:checked) { color: #fff; border-color: var(--teal); background: var(--teal); }
.rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-dialog textarea { min-height: 120px; resize: vertical; }
.shared-analysis .analysis-builder { display: none; }
.shared-analysis .analysis-workspace { display: block; }
.profile-analysis-command { margin-top: 8px; }
.saved-comparisons { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.saved-set { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.saved-set button { border: 0; color: var(--muted); background: transparent; }
.saved-set .load-set { color: var(--ink); font-size: 11px; }
.metric-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding-bottom: 12px; }
.metric-tab { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; white-space: nowrap; }
.metric-tab.active { border-color: #7eb5af; color: var(--teal); background: var(--teal-soft); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th { color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 650; }
.compare-table td strong, .compare-table td small { display: block; }
.compare-table td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.rank-bar { display: inline-block; width: 72px; height: 5px; margin-left: 8px; overflow: hidden; border-radius: 3px; background: var(--line); vertical-align: middle; }
.rank-bar i { display: block; height: 100%; background: var(--teal); }
.compare-method { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.regulation-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 160px 140px; gap: 10px; margin-bottom: 14px; }
.regulation-layout { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(420px,1.2fr); min-height: 650px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.regulation-list { border-right: 1px solid var(--line); }
.regulation-item { width: 100%; padding: 17px 18px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.regulation-item:hover { background: var(--surface-soft); }
.regulation-item.active { background: var(--teal-soft); }
.regulation-item h3 { margin: 5px 0 7px; font-size: 14px; line-height: 1.45; }
.regulation-item p { margin: 0; color: var(--muted); font-size: 11px; }
.regulation-item-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.regulation-detail { padding: 26px; }
.regulation-detail h2 { margin: 7px 0 12px; font-size: 22px; line-height: 1.45; }
.regulation-detail .document-no { color: var(--muted); }
.regulation-detail .reg-summary { margin: 20px 0; padding: 14px; border-left: 3px solid var(--teal); background: var(--surface-soft); line-height: 1.7; }
.regulation-center-heading { margin-bottom: 14px; }
.regulation-question-bar { display: grid; grid-template-columns: minmax(280px,1fr) 150px auto; gap: 10px; margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.regulation-question-bar label { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.regulation-question-bar input { width: 100%; min-width: 0; height: 38px; border: 0; outline: 0; }
.regulation-question-bar select { height: 40px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.regulation-answer { margin-bottom: 16px; padding: 18px 20px; border: 1px solid #afd6d0; border-left: 4px solid var(--teal); border-radius: 6px; background: #f6fbfa; }
.regulation-answer-head { display: flex; align-items: center; justify-content: space-between; }
.regulation-answer h3 { margin: 10px 0; font-size: 16px; }
.regulation-answer p { margin: 7px 0; color: var(--muted); line-height: 1.65; }
.regulation-answer-evidence { display: grid; gap: 7px; margin-top: 12px; }
.regulation-answer-evidence a { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; }
.regulation-answer-evidence span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.regulation-pane-tabs { width: max-content; margin: 18px 0 12px; }
.regulation-center-pane { display: none; }
.regulation-center-pane.active { display: block; }
.regulation-evidence-note { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--teal-soft); }
.regulation-evidence-note strong { flex: 0 0 auto; font-size: 11px; }
.regulation-evidence-note span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.catalog-state { font-size: 10px; font-weight: 700; }
.catalog-state.reviewed, .catalog-state.citation_ready { color: var(--teal); }
.catalog-state.catalogued, .catalog-state.catalog_only { color: #80704d; }
.pending-source-note { border-left-color: #c99a3a !important; background: #fffaf0 !important; }
.regulation-quality-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.regulation-quality-grid span { padding: 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 11px; }
.regulation-quality-grid b { display: block; margin-bottom: 5px; color: var(--ink); }
.obligation-list { display: grid; gap: 8px; }
.obligation-list article { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.obligation-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.obligation-list p { margin: 7px 0; color: var(--muted); line-height: 1.55; }
.obligation-list small { color: var(--muted); }
.relation-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.relation-row strong { color: var(--teal); font-size: 11px; text-transform: uppercase; }
.regulation-change-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.regulation-change-card { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.regulation-change-card-head, .change-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.regulation-change-card h3 { margin: 12px 0; font-size: 15px; line-height: 1.45; }
.regulation-change-card p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.change-impact-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.change-impact-row span { padding: 4px 7px; border-radius: 4px; color: var(--teal); background: var(--teal-soft); font-size: 10px; }
.change-owner-row { display: grid; grid-template-columns: 68px 1fr; gap: 8px; margin: 10px 0; color: var(--muted); font-size: 11px; }
.change-owner-row b { color: var(--ink); }
.change-checklist { margin: 8px 0 14px; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.change-actions { padding-top: 10px; border-top: 1px solid var(--line); }
.change-actions small { color: var(--muted); }
.reporting-standard-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.reporting-standard-tabs button { min-width: 0; padding: 13px; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.reporting-standard-tabs button:last-child { border-right: 0; }
.reporting-standard-tabs button.active { background: var(--teal-soft); box-shadow: inset 0 -3px 0 var(--teal); }
.reporting-standard-tabs strong, .reporting-standard-tabs span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reporting-standard-tabs span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.reporting-standard-detail { margin-top: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.reporting-standard-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); }
.reporting-standard-detail h2 { margin: 8px 0 5px; font-size: 19px; }
.reporting-standard-detail header p { margin: 0; color: var(--muted); }
.reporting-table-list article { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.reporting-table-list article:last-child { border-bottom: 0; }
.reporting-table-head { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; }
.reporting-table-head > span { color: var(--teal); font-size: 11px; font-weight: 700; }
.reporting-table-head small { color: var(--muted); }
.reporting-table-list article > p { color: var(--muted); font-size: 11px; }
.reporting-field-table { margin-top: 10px; border: 1px solid var(--line); }
.reporting-field-row { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(260px,1.5fr) minmax(150px,.8fr); gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); align-items: center; font-size: 11px; }
.reporting-field-row:last-child { border-bottom: 0; }
.reporting-field-row.header { color: var(--muted); background: var(--surface-soft); font-weight: 700; }
.reporting-field-row small { display: block; margin-top: 2px; color: var(--muted); }
.reporting-field-row code { display: inline-block; margin: 2px 3px 2px 0; padding: 2px 5px; border-radius: 3px; color: var(--teal); background: var(--teal-soft); }
.catalog-empty { padding: 10px; color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.regulatory-impact-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; margin: 4px 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--line-strong); }
.regulatory-impact-head h3 { margin: 4px 0 7px; font-size: 20px; }
.regulatory-impact-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.regulatory-impact-summary { display: grid; grid-template-columns: repeat(3,112px); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.regulatory-impact-summary > div { padding: 13px 12px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.regulatory-impact-summary > div:last-child { border-right: 0; }
.regulatory-impact-summary strong, .regulatory-impact-summary span { display: block; }
.regulatory-impact-summary strong { font-size: 20px; }
.regulatory-impact-summary span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.regulatory-profile-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 30px; }
.regulatory-side-column { display: grid; align-content: start; gap: 28px; }
.obligation-group { margin-top: 18px; }
.obligation-group:first-of-type { margin-top: 0; }
.obligation-group > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-left: 3px solid var(--teal); background: var(--surface-soft); }
.obligation-group > header strong { font-size: 12px; }
.obligation-group > header span { color: var(--muted); font-size: 9px; }
.regulatory-scope-note { margin-top: 22px; padding: 11px 13px; border-left: 3px solid #c99a3a; color: #6f5b31; background: #fffaf0; font-size: 10px; line-height: 1.55; }
.company-obligation, .company-reg-change { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company-obligation:last-child, .company-reg-change:last-child { border-bottom: 0; }
.company-obligation > div, .company-reg-change > div { display: flex; align-items: flex-start; gap: 8px; }
.company-obligation > div > span { flex: 0 0 auto; padding: 3px 6px; border-radius: 3px; color: var(--teal); background: var(--teal-soft); font-size: 9px; font-weight: 700; }
.company-obligation > div > strong, .company-reg-change > div > strong { line-height: 1.45; }
.company-obligation p, .company-reg-change p { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.company-obligation footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 70px; color: var(--muted); font-size: 9px; }
.company-obligation footer span { padding-right: 6px; border-right: 1px solid var(--line); }
.company-obligation footer span:last-of-type { border-right: 0; }
.company-obligation small, .company-reg-change small { display: block; padding-right: 70px; color: var(--muted); }
.company-obligation > a, .company-reg-change > a { position: absolute; right: 0; bottom: 13px; font-size: 10px; }
.company-obligation footer > a { position: absolute; right: 0; bottom: 14px; }
.regulatory-clear-state { padding: 16px; border-left: 3px solid var(--green); background: #f4faf7; }
.regulatory-clear-state strong { color: var(--green); font-size: 12px; }
.regulatory-clear-state p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.reporting-framework { padding: 13px 0; border-top: 1px solid var(--line); }
.reporting-framework:first-of-type { border-top: 0; }
.reporting-framework > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reporting-framework > div strong { font-size: 12px; }
.reporting-framework > div span { color: var(--muted); font-size: 9px; }
.reporting-framework p { margin: 7px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.reporting-framework > a { font-size: 10px; }
.comparability-panel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.comparability-panel p { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.detail-label { margin: 20px 0 9px; color: var(--muted); font-size: 11px; font-weight: 750; }
.topic-row { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-chip { padding: 5px 8px; border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-size: 11px; }
.impact-row { padding: 10px 0; border-top: 1px solid var(--line); }

.mine-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.6fr); gap: 20px; align-items: start; }
.mine-feed { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mine-filter-row { margin-bottom: 10px; }
.mine-settings { display: grid; gap: 16px; }
.subscription-list { display: grid; gap: 6px; margin-bottom: 12px; }
.subscription-row { display: grid; grid-template-columns: 32px 1fr 28px; gap: 8px; align-items: center; padding: 7px; border-radius: 6px; background: var(--surface-soft); }
.subscription-row strong, .subscription-row small { display: block; }
.subscription-row strong { font-size: 12px; }
.subscription-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.subscription-row button { width: 26px; height: 26px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; }
.subscription-row button:hover { color: var(--red); background: var(--red-soft); }
.subscription-type { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 9px; font-weight: 750; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.delivery-settings { margin: 8px 0 12px; }
.delivery-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.delivery-row span strong, .delivery-row span small { display: block; }
.delivery-row span small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.delivery-row input, .reminder-toggle input { width: 17px; height: 17px; accent-color: var(--teal); }
.danger-text { padding: 4px 0; border: 0; color: var(--red); background: transparent; font-size: 11px; text-align: left; }
.preference-summary { display: grid; gap: 8px; margin-bottom: 8px; }
.preference-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.preference-row span { color: var(--muted); }
.digest-card { padding: 13px; border-radius: 6px; background: var(--surface-soft); }
.digest-card strong, .digest-card small { display: block; }
.digest-card small { margin-top: 6px; color: var(--muted); line-height: 1.5; }

.portal-dialog { width: min(640px, calc(100vw - 28px)); max-height: min(820px, calc(100vh - 32px)); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(23,37,42,.25); }
.portal-dialog::backdrop { background: rgba(17,31,35,.52); backdrop-filter: blur(2px); }
.portal-dialog > form, .portal-dialog > div:not(.dialog-heading), .portal-dialog > label { margin-right: 24px; margin-left: 24px; }
.onboarding-dialog form, .save-dialog form { margin: 0; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 3px 0 0; font-size: 20px; }
.onboarding-dialog .dialog-heading { justify-content: flex-start; }
.dialog-close { width: 32px; height: 32px; border: 0; border-radius: 5px; color: var(--muted); background: var(--surface-soft); font-size: 20px; }
.onboarding-step { padding: 20px 24px 0; }
.onboarding-step h3 { margin: 0 0 12px; font-size: 13px; }
.role-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-option { min-height: 42px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.role-option.active { border-color: #6eaaa4; color: var(--teal); background: var(--teal-soft); }
.onboarding-companies, .picker-companies { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 270px; overflow: auto; gap: 6px; margin-top: 10px; }
.onboarding-company, .picker-company { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.onboarding-company input { accent-color: var(--teal); }
.onboarding-company strong, .onboarding-company small, .picker-company strong, .picker-company small { display: block; }
.onboarding-company strong, .picker-company strong { font-size: 12px; }
.onboarding-company small, .picker-company small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.picker-company { grid-template-columns: 1fr auto; }
.picker-company button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--teal); background: #fff; }
.picker-tabs { display: flex; margin-top: 16px; }
.picker-tabs button { flex: 1; }
.picker-controls { display: grid; grid-template-columns: 1fr 120px; gap: 10px; margin-top: 12px; }
.picker-controls select, .calendar-toolbar select { height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 24px; }
.calendar-detail { max-height: 630px; overflow: auto; padding: 18px 24px 24px; }
.calendar-detail-row { display: grid; grid-template-columns: minmax(130px,1fr) minmax(170px,1.2fr) 95px 110px; gap: 10px; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line); }
.calendar-dialog { width: min(980px, calc(100vw - 28px)); }
.calendar-current-row span small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.reminder-toggle { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.calendar-toolbar { display: grid; grid-template-columns: 1fr 150px 190px; gap: 9px; align-items: center; margin-bottom: 12px; }
.calendar-kpis { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; }
.calendar-kpis span { padding: 10px; color: var(--muted); font-size: 10px; text-align: center; }
.calendar-kpis strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 18px; }
.status-chip.within_window { color: var(--green); background: var(--green-soft); }
.status-chip.after_common_window { color: var(--amber); background: var(--amber-soft); }
.status-chip.date_unavailable { color: var(--muted); background: var(--surface-soft); }
.notification-dialog { width: min(720px, calc(100vw - 28px)); }
.notification-list { max-height: 600px; overflow: auto; padding-bottom: 20px; }
.notification-item { display: grid; width: 100%; grid-template-columns: 5px minmax(0,1fr) auto; gap: 12px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: #fff; text-align: left; }
.notification-item:first-child { border-top: 0; }
.notification-item.read { opacity: .68; }
.notification-item p { margin: 4px 0; color: var(--muted); line-height: 1.5; }
.notification-item small { color: var(--muted); font-size: 10px; }
.notification-item > b { color: var(--red); font-size: 10px; }
.notification-priority { width: 4px; height: 34px; border-radius: 2px; background: var(--blue); }
.notification-priority.high { background: var(--red); }
.notification-priority.medium { background: var(--amber); }
.auth-dialog { width: min(480px, calc(100vw - 28px)); }
.auth-dialog > .segmented { display: flex; margin-top: 18px; }
.auth-dialog > .segmented button { flex: 1; }
.auth-form { display: grid; gap: 13px; padding: 18px 0 8px; }
#loginForm[hidden], #registerForm[hidden] { display: none !important; }
.auth-form .form-field { display: grid; gap: 6px; }
.checkbox-row { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; }
.checkbox-row input { accent-color: var(--teal); }
.auth-note { margin: 12px 24px 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.beta-application-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 24px 20px !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.beta-application-entry span { min-width: 0; }
.beta-application-entry button { flex: 0 0 auto; }
.beta-application-dialog { width: min(560px, calc(100vw - 28px)); }
.beta-application-dialog textarea { min-height: 104px; resize: vertical; }
.account-beta-button { margin-top: 10px; }
.calendar-note { margin-bottom: 12px; padding: 10px 12px; color: var(--muted); background: var(--surface-soft); font-size: 11px; line-height: 1.55; }
.save-dialog .form-field { display: grid; gap: 7px; padding: 20px 24px 0; }
.form-field span { color: var(--muted); font-size: 12px; }
.form-field input { height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; }
.mobile-nav { display: none; }

/* Market dashboard */
.market-heading { align-items: flex-start; }
.market-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.market-controls > label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.market-controls select { height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.market-summary { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.market-summary .summary-item { min-width: 0; }
.market-summary .summary-item strong { font-size: 20px; }
.market-conclusions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0 0 22px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.market-conclusion { display: grid; grid-template-columns: auto minmax(0,1fr) 20px; gap: 9px; min-height: 88px; align-items: start; padding: 15px 14px; border-right: 1px solid var(--line); }
.market-conclusion:last-child { border-right: 0; }
.market-conclusion > span { margin-top: 1px; padding: 3px 6px; border-radius: 3px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 750; }
.market-conclusion.inference > span { color: var(--amber); background: var(--amber-soft); }
.market-conclusion.pending > span { color: var(--muted); background: #edf0ef; }
.market-conclusion p { margin: 0; line-height: 1.58; }
.market-conclusion a { text-align: right; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
.market-band { min-width: 0; padding: 24px 0 28px; border-top: 1px solid var(--line-strong); }
.market-wide { margin-top: 2px; }
.market-trend { display: grid; gap: 12px; }
.market-trend-row { display: grid; grid-template-columns: 34px minmax(130px,1fr) minmax(150px,.8fr); gap: 10px; align-items: center; }
.market-trend-row > b { font-size: 11px; }
.market-trend-row > span strong, .market-trend-row > span small { display: block; }
.market-trend-row > span strong { font-size: 12px; }
.market-trend-row > span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.market-trend-bars { display: grid; gap: 4px; }
.market-trend-bars i { display: block; height: 8px; border-radius: 0 3px 3px 0; background: var(--teal); }
.market-trend-bars i.prior { height: 5px; background: #9daaaa; }
.market-chart-legend { display: flex; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: 9px; }
.market-chart-legend span { display: flex; gap: 5px; align-items: center; }
.market-chart-legend i, .solvency-series footer i { width: 16px; height: 5px; background: var(--teal); }
.market-chart-legend i.prior { background: #9daaaa; }
.market-structure-strip { display: flex; height: 18px; overflow: hidden; border: 1px solid rgba(23,37,42,.08); border-radius: 3px; background: var(--line); }
.market-structure-strip i { height: 100%; }
.tone-0 { background: var(--teal); }
.tone-1 { background: var(--blue); }
.tone-2 { background: var(--amber); }
.tone-3 { background: var(--green); }
.tone-4 { background: var(--red); }
.market-structure-list { display: grid; margin-top: 14px; }
.market-structure-list > div { display: grid; grid-template-columns: 8px minmax(110px,1fr) 58px minmax(105px,.8fr); gap: 8px; align-items: center; min-height: 36px; border-bottom: 1px solid var(--line); }
.market-structure-list > div > i { width: 7px; height: 7px; border-radius: 2px; }
.market-structure-list strong { text-align: right; }
.market-structure-list small { color: var(--muted); text-align: right; }
.market-stat-line { display: grid; grid-template-columns: repeat(4, minmax(90px,130px)) minmax(180px,1fr); align-items: center; border-bottom: 1px solid var(--line); }
.market-stat-line > span { padding: 0 16px 14px 0; }
.market-stat-line small, .market-stat-line strong { display: block; }
.market-stat-line small { color: var(--muted); font-size: 10px; }
.market-stat-line strong { margin-top: 4px; font-size: 19px; }
.market-stat-line p { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.market-table-wrap { max-width: 100%; overflow-x: auto; }
.market-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.market-table th, .market-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.market-table th { color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.market-table th:nth-child(2), .market-table td:nth-child(2), .region-table th:first-child, .region-table td:first-child { text-align: left; }
.market-table td strong, .market-table td small { display: block; }
.market-table td small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.market-table .positive { color: var(--green); }
.market-table .negative { color: var(--red); }
.solvency-series { display: grid; gap: 8px; }
.solvency-series > div { display: grid; grid-template-columns: 52px minmax(80px,1fr) 48px minmax(80px,1fr) 48px; gap: 7px; align-items: center; }
.solvency-series > div > span, .solvency-series > div > b { font-size: 10px; }
.solvency-series > div > div { height: 7px; background: var(--line); }
.solvency-series > div i { display: block; height: 100%; background: var(--teal); }
.solvency-series > div i.comprehensive, .solvency-series footer i.comprehensive { background: var(--blue); }
.solvency-series footer { display: flex; justify-content: flex-end; gap: 13px; color: var(--muted); font-size: 9px; }
.solvency-series footer span { display: flex; gap: 5px; align-items: center; }
.sample-distribution { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sample-distribution > span { padding: 13px 12px 13px 0; border-right: 1px solid var(--line); }
.sample-distribution > span:last-child { padding-left: 12px; border-right: 0; }
.sample-distribution small, .sample-distribution strong, .sample-distribution em { display: block; }
.sample-distribution small, .sample-distribution em { color: var(--muted); font-size: 9px; font-style: normal; }
.sample-distribution strong { margin: 5px 0; font-size: 19px; }
.profit-summary { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.profit-summary b { margin-right: 3px; color: var(--ink); }
.funds-total, .channel-headline { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.funds-total span, .funds-total strong, .funds-total small, .channel-headline span, .channel-headline strong, .channel-headline small { display: block; }
.funds-total span, .funds-total small, .channel-headline span, .channel-headline small { color: var(--muted); font-size: 10px; }
.funds-total strong, .channel-headline strong { margin: 5px 0; font-size: 20px; }
.funds-segments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.funds-segments > section { min-width: 0; padding: 14px 18px 14px 0; border-right: 1px solid var(--line); }
.funds-segments > section:last-child { padding-right: 0; padding-left: 18px; border-right: 0; }
.funds-segments header strong, .funds-segments header span { display: block; }
.funds-segments header strong { font-size: 12px; }
.funds-segments header span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.funds-segments .market-bar-list > div { grid-template-columns: minmax(70px,1fr) minmax(48px,.8fr) 44px 44px; gap: 5px; }
.market-bar-list { display: grid; margin-top: 10px; }
.market-bar-list > div { display: grid; grid-template-columns: minmax(80px,1fr) minmax(100px,1.4fr) 54px 52px; gap: 8px; align-items: center; min-height: 34px; }
.market-bar-list > div > span, .market-bar-list > div > b, .market-bar-list > div > small { font-size: 10px; }
.market-bar-list > div > div { height: 7px; overflow: hidden; background: var(--line); }
.market-bar-list > div i { display: block; height: 100%; background: var(--blue); }
.channel-bars > div i { background: var(--teal); }
.market-bar-list > div > b, .market-bar-list > div > small { text-align: right; }
.market-bar-list > div > small { color: var(--muted); }
.market-source-link { display: inline-block; margin-top: 10px; font-size: 10px; }
.market-warning { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.sales-force-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.sales-force-grid > span { min-height: 84px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sales-force-grid > span:nth-child(2n) { border-right: 0; }
.sales-force-grid small, .sales-force-grid strong, .sales-force-grid em { display: block; }
.sales-force-grid small, .sales-force-grid em { color: var(--muted); font-size: 9px; font-style: normal; }
.sales-force-grid strong { margin: 7px 0 5px; font-size: 17px; }
.region-table { min-width: 650px; }
.market-sources { margin-top: 8px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.market-sources summary { padding: 16px 0; color: var(--teal); font-weight: 700; cursor: pointer; }
.market-sources[open] summary { border-bottom: 1px solid var(--line); }
.market-methodology { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding: 16px 0; }
.market-methodology p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.market-methodology strong { display: block; margin-bottom: 4px; color: var(--ink); }
.market-source-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.market-source-list article strong, .market-source-list article small { display: block; }
.market-source-list article small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.market-source-list article > a { font-size: 10px; }

@media (max-width: 1080px) {
  .portal-rail { width: 76px; }
  .portal-brand { justify-content: center; padding: 14px; }
  .portal-brand > span:last-child, .portal-nav-item:not(.active)::after, .portal-rail-foot span:not(.verified-dot), .portal-rail-foot a { display: none; }
  .portal-nav-item { justify-content: center; padding: 0; font-size: 0; }
  .portal-nav-item span { width: auto; font-size: 19px; }
  .portal-rail-foot { display: flex; justify-content: center; }
  .portal-main { margin-left: 76px; }
  .home-layout, .mine-layout { grid-template-columns: 1fr; }
  .home-aside { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-sections { grid-template-columns: 1fr; }
  .analysis-workspace { grid-template-columns: 250px minmax(0,1fr); gap: 14px; }
  .analysis-report { padding: 28px; }
  .analysis-structure { grid-template-columns: repeat(2,1fr); }
  .analysis-channel-bars { grid-column: 1 / -1; }
  .reporting-standard-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reporting-standard-tabs button:nth-child(2) { border-right: 0; }
  .reporting-standard-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .market-conclusions { grid-template-columns: repeat(2,1fr); }
  .market-conclusion:nth-child(2) { border-right: 0; }
  .market-conclusion:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 13px; }
  .portal-rail { display: none; }
  .portal-main { margin-left: 0; padding-bottom: 64px; }
  .portal-header { grid-template-columns: auto 1fr 38px; gap: 9px; min-height: 62px; padding: 10px 12px; }
  .mobile-brand { display: flex; align-items: center; gap: 7px; }
  .mobile-brand .portal-brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .mobile-brand strong { display: none; }
  .global-search-wrap input { height: 38px; padding-left: 34px; font-size: 12px; }
  .search-symbol { top: 8px; left: 11px; }
  .period-control { display: none; }
  .inbox-button { width: 36px; height: 36px; }
  .portal-view { padding: 22px 14px 32px; }
  .view-heading { min-height: auto; margin-bottom: 18px; }
  .view-heading h1 { font-size: 22px; }
  .heading-note { font-size: 11px; line-height: 1.5; }
  .home-heading .icon-command { display: none; }
  .market-heading { display: block; }
  .market-controls { display: grid; grid-template-columns: 1fr; margin-top: 14px; }
  .market-controls > label { justify-content: space-between; }
  .market-controls select { min-width: 170px; }
  .market-controls .segmented { display: flex; width: 100%; }
  .market-controls .segmented button { flex: 1; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .home-action-strip { grid-template-columns: 1fr; }
  .home-action-item { min-height: 78px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-action-item:last-child { border-bottom: 0; }
  .home-aside { grid-template-columns: 1fr; }
  .content-band, .settings-section { padding: 16px; }
  .disclosure-row { grid-template-columns: 82px 1fr auto; }
  .disclosure-row a { grid-column: 2 / -1; }
  .company-workspace, .compare-layout, .regulation-layout, .analysis-workspace { display: block; min-height: 0; overflow: visible; border: 0; background: transparent; }
  .company-directory, .compare-selector { padding: 0 0 12px; border: 0; background: transparent; }
  .company-directory-list, .check-list { display: flex; max-height: none; gap: 6px; overflow-x: auto; padding: 5px 0; }
  .directory-company { width: auto; min-width: 130px; border: 1px solid var(--line); background: #fff; }
  .company-profile, .compare-results { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .profile-hero { grid-template-columns: 44px minmax(0,1fr); }
  .profile-source { grid-column: 1 / -1; text-align: left; }
  .profile-metrics { grid-template-columns: repeat(2,1fr); }
  .profile-metric:nth-child(3n) { border-right: 1px solid var(--line); }
  .profile-metric:nth-child(2n) { border-right: 0; }
  .profile-metric:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .profile-metric:nth-last-child(-n+2) { border-bottom: 0; }
  .profile-tabs { overflow-x: auto; }
  .profile-tabs button { white-space: nowrap; }
  .sales-profile-heading { display: block; }
  .sales-profile-heading .profile-periods { max-width: 100%; margin-top: 14px; }
  .sales-metric-groups { grid-template-columns: 1fr; }
  .sales-metric-group { padding-bottom: 14px; }
  .sales-metric-group:last-child:nth-child(odd) { grid-column: auto; }
  .sales-metric-group:last-child:nth-child(odd) .sales-metric-grid { grid-template-columns: repeat(2,1fr); }
  .sales-metric-group:last-child:nth-child(odd) .sales-metric-card { border-bottom: 1px solid var(--line); }
  .sales-metric-group:last-child:nth-child(odd) .sales-metric-card:nth-child(2n) { border-right: 0; }
  .sales-metric-group:last-child:nth-child(odd) .sales-metric-card:nth-last-child(-n+2) { border-bottom: 0; }
  .sales-profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .sales-metric-grid { grid-template-columns: repeat(2,1fr); }
  .sales-metric-card:nth-child(2n) { border-right: 0; }
  .profile-panel-heading { align-items: flex-start; }
  .profile-panel-heading > p { max-width: 145px; }
  .product-table-head, .product-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; }
  .product-table-head { display: none; }
  .product-value { padding-top: 4px; }
  .regulatory-impact-head { grid-template-columns: 1fr; gap: 16px; }
  .regulatory-impact-summary { grid-template-columns: repeat(3,1fr); }
  .regulatory-profile-layout { grid-template-columns: 1fr; gap: 28px; }
  .company-obligation > div { display: grid; justify-items: start; }
  .company-obligation footer { padding-right: 0; }
  .company-obligation footer > a { position: static; width: 100%; margin-top: 2px; }
  .compare-heading { display: block; }
  .compare-heading .primary-command { margin-top: 12px; }
  .compare-toolbar { flex-wrap: wrap; }
  .compare-company-search { order: 2; width: 100%; }
  .company-check { min-width: 160px; border: 1px solid var(--line); background: #fff; }
  .compare-results { overflow-x: auto; }
  .metric-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .compare-table { min-width: 620px; }
  .analysis-heading { display: block; }
  .analysis-heading .secondary-command { margin-top: 12px; }
  .analysis-builder { position: static; max-height: none; margin-bottom: 14px; }
  .analysis-builder-grid { grid-template-columns: 1fr; }
  .analysis-company-column, .analysis-peer-column { padding: 17px; }
  .analysis-company-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .setup-mode .analysis-company-column { display: block; padding: 17px; }
  .setup-mode .analysis-company-column .builder-label { margin-bottom: 10px; }
  .analysis-company-picker { width: calc(100vw - 62px); }
  .analysis-recommendation-list, .analysis-peer-list, .setup-mode .analysis-recommendation-list, .setup-mode .analysis-peer-list { grid-template-columns: 1fr; }
  .analysis-peer-list { max-height: 280px; }
  .analysis-builder-actions { display: grid; gap: 8px; padding: 14px 17px; }
  .analysis-builder-actions > span { margin: 0; }
  .analysis-builder-actions .primary-command { width: 100%; }
  .analysis-history { display: flex; overflow-x: auto; }
  .analysis-history-item { min-width: 210px; }
  .analysis-report { min-height: 0; padding: 20px 15px; }
  .analysis-empty { min-height: 360px; }
  .analysis-report-header { grid-template-columns: 1fr; }
  .analysis-report-header h2 { font-size: 25px; }
  .analysis-report-meta { text-align: left; }
  .analysis-quality { grid-template-columns: repeat(2,1fr); }
  .analysis-quality span:nth-child(2) { border-right: 0; }
  .analysis-quality span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .analysis-statement, .analysis-metric-grid, .analysis-table-wrap, .analysis-structure, .analysis-events, .analysis-source-list, .executive-findings, .analysis-trend, .analysis-attributions, .peer-insights { margin-left: 0; }
  .executive-finding { grid-template-columns: 1fr 28px; gap: 8px; }
  .executive-finding > p { grid-column: 1 / -1; }
  .peer-insights { grid-template-columns: 1fr; }
  .analysis-metric-grid { grid-template-columns: repeat(2,1fr); }
  .analysis-metric { border-bottom: 1px solid var(--line); }
  .analysis-metric:nth-child(2n) { border-right: 0; }
  .analysis-statement dl > div { grid-template-columns: 46px minmax(0,1fr); }
  .analysis-structure { grid-template-columns: repeat(2,1fr); }
  .analysis-events > div { grid-template-columns: 72px minmax(0,1fr); }
  .analysis-events a { grid-column: 2; }
  .analysis-source-list article { grid-template-columns: 24px minmax(0,1fr); }
  .analysis-source-list article a { grid-column: 2; }
  .regulation-toolbar { grid-template-columns: 1fr 1fr; }
  .regulation-toolbar .local-search { grid-column: 1 / -1; }
  .regulation-list { border: 1px solid var(--line); border-radius: 8px; }
  .regulation-detail { margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .regulation-question-bar { grid-template-columns: 1fr 1fr; }
  .regulation-question-bar label { grid-column: 1 / -1; }
  .regulation-question-bar button { width: 100%; }
  .regulation-pane-tabs { display: flex; width: 100%; overflow-x: auto; }
  .regulation-pane-tabs button { flex: 1; white-space: nowrap; }
  .regulation-change-list { grid-template-columns: 1fr; }
  .regulation-quality-grid { grid-template-columns: 1fr; }
  .regulation-evidence-note { display: block; }
  .regulation-evidence-note span { display: block; margin-top: 4px; }
  .reporting-standard-tabs { grid-template-columns: 1fr; }
  .reporting-standard-tabs button { border-right: 0; border-bottom: 1px solid var(--line); }
  .reporting-standard-tabs button:last-child { border-bottom: 0; }
  .reporting-standard-detail > header { display: block; }
  .reporting-standard-detail > header > a { display: inline-block; margin-top: 10px; }
  .reporting-field-table { overflow-x: auto; }
  .reporting-field-row { min-width: 650px; }
  .regulatory-profile-metrics { grid-template-columns: repeat(2,1fr); }
  .mine-heading { display: block; }
  .mine-heading .secondary-command { margin-top: 12px; }
  .mine-heading .heading-actions { margin-top: 12px; }
  .market-grid { grid-template-columns: 1fr; gap: 0; }
  .market-conclusions { grid-template-columns: 1fr; }
  .market-conclusion, .market-conclusion:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .market-conclusion:last-child { border-bottom: 0; }
  .market-trend-row { grid-template-columns: 30px minmax(95px,1fr) minmax(120px,.9fr); gap: 7px; }
  .market-trend-row > span strong { font-size: 10px; }
  .market-stat-line { grid-template-columns: repeat(2,1fr); }
  .market-stat-line p { grid-column: 1 / -1; }
  .solvency-series > div { grid-template-columns: 42px minmax(55px,1fr) 42px minmax(55px,1fr) 42px; gap: 4px; }
  .sample-distribution { grid-template-columns: 1fr; }
  .sample-distribution > span, .sample-distribution > span:last-child { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sample-distribution > span:last-child { border-bottom: 0; }
  .market-bar-list > div { grid-template-columns: minmax(70px,1fr) minmax(80px,1.2fr) 48px 42px; gap: 6px; }
  .funds-segments { grid-template-columns: 1fr; }
  .funds-segments > section, .funds-segments > section:last-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .funds-segments > section:last-child { border-bottom: 0; }
  .funds-segments .market-bar-list > div { grid-template-columns: minmax(70px,1fr) minmax(80px,1.2fr) 48px 42px; gap: 6px; }
  .market-methodology { grid-template-columns: 1fr; gap: 10px; }
  .market-source-list article { grid-template-columns: auto minmax(0,1fr) auto; }
  .market-source-list article > a:last-child { grid-column: 3; }
  .intel-item { grid-template-columns: 4px minmax(0,1fr); }
  .intel-actions { grid-column: 2; }
  .intel-evidence { grid-column: 2; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; min-height: 58px; overflow-x: auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
  .mobile-nav button { display: flex; min-width: 52px; flex: 1; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
  .mobile-nav button span { font-size: 17px; }
  .mobile-nav button.active { color: var(--teal); }
  .role-options { grid-template-columns: repeat(2,1fr); }
  .onboarding-companies, .picker-companies { grid-template-columns: 1fr; }
  .calendar-detail-row { grid-template-columns: 1fr auto; padding: 10px 0; }
  .calendar-detail-row > :nth-child(2) { grid-row: 2; }
  .calendar-detail-row > :nth-child(3) { grid-row: 2; }
  .calendar-toolbar { grid-template-columns: 1fr 1fr; }
  .calendar-toolbar .segmented { grid-column: 1 / -1; display: flex; }
  .calendar-toolbar .segmented button { flex: 1; }
  .calendar-kpis { grid-template-columns: repeat(2,1fr); }
  .picker-controls { grid-template-columns: 1fr; }
  .picker-tabs { overflow-x: auto; }
  .picker-tabs button { min-width: 76px; white-space: nowrap; }
}

/* Visual system V2 */
body { line-height: 1.5; }
html, body { max-width: 100%; overflow-x: hidden; }
.lucide { width: 18px; height: 18px; stroke-width: 1.8; }
.portal-rail { width: 176px; }
.portal-main { margin-left: 176px; }
.portal-main, .portal-view { min-width: 0; }
.portal-brand { min-height: 68px; justify-content: flex-start; padding: 14px 18px; }
.portal-brand > span:last-child { display: block; }
.portal-nav { gap: 5px; padding: 16px 10px; }
.portal-nav-item { justify-content: flex-start; min-height: 40px; padding: 0 13px; font-size: 14px; }
.portal-nav-item span { display: grid; width: 18px; place-items: center; font-size: 0; }
.portal-rail-foot { display: grid; }
.portal-rail-foot span:not(.verified-dot), .portal-rail-foot a { display: block; }
.portal-header { min-height: 68px; padding: 11px clamp(22px, 3vw, 40px); }
.search-symbol { top: 12px; display: grid; place-items: center; font-size: 0; }
.clear-search { top: 7px; display: grid; place-items: center; font-size: 0; }
.inbox-button, .icon-command { font-size: 0; }
.dialog-close { display: grid; place-items: center; font-size: 0; }
.dialog-close .lucide { width: 17px; height: 17px; }
.local-search > span { top: 10px; display: grid; place-items: center; font-size: 0; }
.local-search > span .lucide { width: 15px; height: 15px; }
.portal-view { max-width: 1380px; padding: 28px clamp(22px, 3vw, 40px) 64px; }
.view-heading { min-height: 68px; margin-bottom: 20px; }
.view-heading h1 { margin-top: 3px; font-size: 27px; }
.kicker, .section-kicker { color: #47635f; font-size: 11px; }
.heading-note, .section-meta { font-size: 13px; }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { font-size: 18px; }
.summary-item strong, .home-action-item strong, .market-kpi strong, .market-table, .market-stat-line strong { font-variant-numeric: tabular-nums; }

.home-action-strip { grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-bottom: 26px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.home-action-item { min-height: 100px; padding: 16px 48px 15px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home-action-item:last-child { border-right: 1px solid var(--line); }
.home-action-item:hover { border-color: var(--line-strong); background: #fff; box-shadow: var(--shadow); }
.home-action-item.primary { border-color: #b9d7d2; background: #f2f9f7; }
.home-action-item.primary:hover { border-color: #8dbcb5; background: #eef7f5; }
.home-action-label { display: flex !important; align-items: center; gap: 7px; color: var(--ink) !important; font-size: 13px !important; font-weight: 700; }
.home-action-label .lucide { width: 16px; height: 16px; color: var(--teal); }
.home-action-item strong { margin-top: 9px; font-size: 25px; }
.home-action-item.primary strong { font-size: 31px; }
.home-action-item small { margin-top: 7px; font-size: 12px; }
.home-action-arrow { right: 16px; display: grid; place-items: center; font-size: 0; }
.home-action-arrow .lucide { width: 17px; height: 17px; }
.home-layout { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .72fr); gap: 28px; }
.home-primary, .home-aside { grid-template-columns: 1fr; gap: 0; }
#homeView .content-band { padding: 22px 0 28px; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
#homeView .home-primary > .content-band:first-child { padding-top: 0; border-top: 0; }
#homeView .home-aside { padding-left: 4px; }
#homeView .home-aside .content-band:first-child { padding-top: 0; border-top: 0; }

.intel-item { grid-template-columns: 4px minmax(0, 1fr) auto; gap: 14px; padding: 17px 0; }
.intel-item:first-child { padding-top: 3px; }
.intel-level { height: 34px; }
.intel-item h3 { margin-bottom: 6px; font-size: 15px; }
.intel-item p { font-size: 13px; line-height: 1.6; }
.intel-meta { gap: 10px; margin-top: 9px; font-size: 12px; }
.intel-actions { position: relative; gap: 5px; }
.mini-action { width: 32px; height: 32px; }
.mini-action .lucide { width: 16px; height: 16px; }
.intel-action-menu { position: relative; }
.intel-action-menu > summary { list-style: none; }
.intel-action-menu > summary::-webkit-details-marker { display: none; }
.intel-action-menu[open] > summary { color: var(--teal); background: var(--teal-soft); }
.intel-action-popover { position: absolute; top: 38px; right: 0; z-index: 12; display: grid; width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.intel-action-popover button { display: flex; min-height: 36px; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; text-align: left; }
.intel-action-popover button:hover, .intel-action-popover button.active { color: var(--teal); background: var(--teal-soft); }
.intel-action-popover .lucide { width: 16px; height: 16px; }
.intel-evidence { grid-column: 2 / -1; margin-top: -3px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.intel-evidence > summary { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; list-style: none; color: var(--teal); font-weight: 650; cursor: pointer; }
.intel-evidence > summary::-webkit-details-marker { display: none; }
.intel-evidence > summary .lucide { width: 14px; height: 14px; transition: transform .15s ease; }
.intel-evidence[open] > summary .lucide { transform: rotate(180deg); }
.intel-evidence-body { margin-top: 7px; padding: 10px 12px; border-left: 2px solid var(--line-strong); background: var(--surface-soft); }
.intel-evidence-body p { margin: 0; font-size: 12px; line-height: 1.6; }
.intel-evidence-body p + p { margin-top: 4px; }
.followed-company { min-height: 51px; padding: 9px; }
.followed-company small, .calendar-count span, .calendar-preview-row small { font-size: 11px; }
.followed-company > span:last-child { display: grid; place-items: center; color: var(--muted); }
.followed-company > span:last-child .lucide { width: 15px; height: 15px; }

.market-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; border: 0; border-radius: 0; background: transparent; }
.market-kpi-group { min-width: 0; padding: 16px 16px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.market-kpi-group > header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.market-kpi-group > header > .lucide { width: 20px; height: 20px; color: var(--blue); }
.market-kpi-group.efficiency > header > .lucide { color: var(--amber); }
.market-kpi-group.capital > header > .lucide { color: var(--green); }
.market-kpi-group > header span, .market-kpi-group > header b, .market-kpi-group > header small { display: block; }
.market-kpi-group > header b { font-size: 14px; }
.market-kpi-group > header small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.market-kpi-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); border-top: 1px solid var(--line); }
.market-kpi { min-width: 0; padding: 12px 10px 3px 0; }
.market-kpi + .market-kpi { padding-left: 11px; border-left: 1px solid var(--line); }
.market-kpi span, .market-kpi strong, .market-kpi small { display: block; }
.market-kpi span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.market-kpi strong { margin-top: 7px; font-size: 21px; line-height: 1.15; }
.market-kpi.primary strong { font-size: 25px; }
.market-kpi small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.market-kpi small.positive { color: var(--green); }
.market-kpi small.negative { color: var(--red); }
.market-conclusions { margin-bottom: 26px; }
.market-conclusion { grid-template-columns: minmax(76px, auto) minmax(0, 1fr) 18px; min-height: 78px; padding: 13px 14px; }
.market-conclusion > span { display: inline-flex; width: fit-content; align-items: center; gap: 5px; margin-top: 0; font-size: 11px; }
.market-conclusion > span .lucide { width: 13px; height: 13px; }
.market-conclusion p { font-size: 12px; line-height: 1.6; }
.market-conclusion > a { display: grid; place-items: center; }
.market-conclusion > a .lucide { width: 15px; height: 15px; }
.market-grid { gap: 28px; }
.market-band { padding: 22px 0 30px; }
.market-table th, .market-table td { padding: 11px 12px; }
.market-table th { font-size: 11px; }
.market-table td { font-size: 12px; }
.market-table td small { font-size: 11px; }
.market-table a .lucide { width: 15px; height: 15px; }
.funds-total span, .funds-total small, .channel-headline span, .channel-headline small { font-size: 11px; }
.funds-segments header strong { font-size: 13px; }
.funds-segments header span, .market-bar-list > div > span, .market-bar-list > div > b, .market-bar-list > div > small { font-size: 11px; }
.market-warning, .market-source-link, .market-methodology p, .market-source-list article > a { font-size: 11px; }
.sales-force-grid small, .sales-force-grid em { font-size: 11px; }
.market-source-list article small { font-size: 11px; }

/* Core workspaces V2 */
.command-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.command-with-icon .lucide { width: 15px; height: 15px; }
.tool-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.tool-panel-heading strong, .tool-panel-heading small { display: block; }
.tool-panel-heading strong { font-size: 14px; }
.tool-panel-heading small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.tool-panel-heading > span { color: var(--muted); font-size: 11px; white-space: nowrap; }

.company-heading { margin-bottom: 16px; }
.company-workspace { grid-template-columns: 252px minmax(0, 1fr); border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(23, 37, 42, .035); }
.company-directory { padding: 18px 16px; background: #fafcfb; }
.company-directory .segmented { margin: 10px 0 12px; }
.company-directory-list { max-height: 660px; }
.directory-company { min-height: 54px; padding: 9px 10px; }
.directory-company strong { font-size: 13px; }
.directory-company small { font-size: 11px; }
.company-profile { padding: 26px 28px 32px; }
.profile-hero { min-height: 76px; padding-bottom: 18px; }
.profile-hero h2 { font-size: 24px; }
.profile-source { min-width: 152px; }
.profile-source strong { font-size: 12px; }
.profile-source span { font-size: 11px; }
.profile-tabs { gap: 8px; margin: 8px 0 20px; }
.profile-tabs button { min-height: 44px; padding: 0 10px; font-size: 13px; }
.profile-metric-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 28px; }
.profile-metric-group { min-width: 0; padding: 15px 15px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.profile-metric-group > header { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; }
.profile-metric-group > header > .lucide { width: 19px; height: 19px; color: var(--green); }
.profile-metric-group.performance > header > .lucide { color: var(--blue); }
.profile-metric-group > header span, .profile-metric-group > header b, .profile-metric-group > header small { display: block; }
.profile-metric-group > header b { font-size: 14px; }
.profile-metric-group > header small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.profile-metric-group .profile-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.profile-metric-group .profile-metric { min-height: 98px; padding: 13px 10px 7px; border-bottom: 0; }
.profile-metric-group .profile-metric:first-child { padding-left: 0; }
.profile-metric-group .profile-metric:last-child { padding-right: 0; border-right: 0; }
.profile-metric-group .profile-metric span { font-size: 11px; }
.profile-metric-group .profile-metric strong { margin-top: 7px; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.profile-metric-group .profile-metric small { font-size: 11px; line-height: 1.45; }
.profile-sections { gap: 28px; }
.profile-panel-heading { align-items: flex-start; }
.profile-panel-heading h3 { font-size: 16px; }
.profile-report-row { min-height: 48px; }
.profile-report-row span { font-size: 11px; }
.trend-point strong, .trend-point span { font-size: 10px; }

.compare-heading { margin-bottom: 16px; }
.compare-layout { grid-template-columns: 250px minmax(0, 1fr); min-height: 660px; border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(23, 37, 42, .035); }
.compare-selector { padding: 18px 16px; background: #fafcfb; }
.compare-selector > .segmented { display: flex; width: 100%; margin-bottom: 10px; }
.compare-selector > .segmented button { flex: 1; }
.compare-company-search { width: 100%; margin-bottom: 10px; }
.check-list { max-height: 560px; }
.company-check { min-height: 52px; padding: 8px 9px; }
.company-check strong { font-size: 13px; }
.company-check small { font-size: 10px; }
.compare-results { padding: 22px 24px 28px; }
.compare-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.compare-result-heading h2 { margin: 3px 0 0; font-size: 20px; }
.compare-selected-companies { display: flex; max-width: 62%; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.compare-selected-companies > span { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; padding: 0 8px; border-radius: 5px; color: var(--teal); background: var(--teal-soft); font-size: 11px; }
.compare-selected-companies .lucide { width: 13px; height: 13px; }
.compare-selected-companies > small { color: var(--muted); font-size: 11px; }
.compare-insight { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-insight-item { display: grid; min-width: 0; min-height: 92px; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; padding: 14px 12px; border-right: 1px solid var(--line); }
.compare-insight-item:last-child { border-right: 0; }
.compare-insight-item > .lucide { width: 18px; height: 18px; color: var(--muted); }
.compare-insight-item.highlight > .lucide { color: var(--green); }
.compare-insight-item span, .compare-insight-item small, .compare-insight-item strong, .compare-insight-item em { display: block; min-width: 0; }
.compare-insight-item small { color: var(--muted); font-size: 11px; }
.compare-insight-item strong { margin-top: 5px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.3; }
.compare-insight-item em { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.compare-metric-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 14px; }
.compare-metric-row > span { padding-top: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.compare-metric-row .metric-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.compare-metric-row .metric-tabs::-webkit-scrollbar { display: none; }
.metric-tab { min-height: 36px; font-size: 12px; }
.compare-table-wrap { max-width: 100%; overflow-x: auto; }
.compare-table { min-width: 720px; }
.compare-table th, .compare-table td { padding: 14px 11px; }
.compare-empty { display: grid; min-height: 270px; place-items: center; align-content: center; padding: 28px; color: var(--muted); text-align: center; }
.compare-empty .lucide { width: 30px; height: 30px; margin-bottom: 12px; color: var(--teal); }
.compare-empty strong { color: var(--ink); font-size: 16px; }
.compare-empty p { max-width: 480px; margin: 7px 0 0; font-size: 12px; }
.saved-comparison-section { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.saved-comparison-section > span { padding-top: 5px; color: var(--muted); font-size: 11px; }
.saved-comparisons { margin: 0; }
.saved-comparisons > small { padding-top: 5px; color: var(--muted); font-size: 11px; }
.saved-set button:last-child { display: grid; place-items: center; }
.saved-set button:last-child .lucide { width: 13px; height: 13px; }

.regulation-center-heading { margin-bottom: 16px; }
.regulation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.regulation-summary-group { min-width: 0; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.regulation-summary-group > header { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.regulation-summary-group > header > .lucide { width: 19px; height: 19px; color: var(--blue); }
.regulation-summary-group.evidence > header > .lucide { color: var(--green); }
.regulation-summary-group.reporting > header > .lucide { color: var(--amber); }
.regulation-summary-group > header span, .regulation-summary-group > header b, .regulation-summary-group > header small { display: block; }
.regulation-summary-group > header b { font-size: 14px; }
.regulation-summary-group > header small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.regulation-summary-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.regulation-summary-group > div > span { padding: 11px 10px 0 0; border-right: 1px solid var(--line); }
.regulation-summary-group > div > span + span { padding-right: 0; padding-left: 11px; border-right: 0; }
.regulation-summary-group strong, .regulation-summary-group small { display: block; }
.regulation-summary-group strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.regulation-summary-group small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.regulation-question-bar { grid-template-columns: 175px minmax(260px, 1fr) 140px auto; gap: 10px; margin: 0 0 18px; padding: 13px; border-color: #bed5d1; background: #f3f8f7; }
.regulation-question-intro { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 0 4px; }
.regulation-question-intro > .lucide { width: 20px; height: 20px; color: var(--teal); }
.regulation-question-intro span, .regulation-question-intro strong, .regulation-question-intro small { display: block; }
.regulation-question-intro strong { font-size: 13px; }
.regulation-question-intro small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.regulation-question-bar label { border-color: var(--line-strong); }
.regulation-pane-tabs { display: flex; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
.regulation-pane-tabs button { min-height: 42px; padding: 0 18px; border-bottom: 2px solid transparent; border-radius: 0; font-size: 13px; }
.regulation-pane-tabs button.active { border-color: var(--teal); color: var(--teal); background: transparent; box-shadow: none; }
.regulation-toolbar { margin-bottom: 11px; }
.regulation-evidence-note { margin-bottom: 11px; padding: 9px 11px; border-left-width: 2px; background: #f2f8f6; }
.regulation-evidence-note strong { font-size: 12px; }
.regulation-evidence-note span { font-size: 11px; }
.regulation-layout { grid-template-columns: minmax(300px, .72fr) minmax(440px, 1.28fr); min-height: 680px; border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(23, 37, 42, .035); }
.regulation-list { max-height: 680px; overflow-y: auto; background: #fafcfb; }
.regulation-item { padding: 15px 17px; background: transparent; }
.regulation-item h3 { font-size: 14px; }
.regulation-item-top { font-size: 11px; }
.regulation-detail { min-width: 0; padding: 28px 30px 34px; }
.regulation-detail h2 { font-size: 23px; }
.regulation-detail .reg-summary { margin: 18px 0 22px; padding: 14px 16px; }
.regulation-detail .command-with-icon { color: var(--teal); font-weight: 650; }
.regulation-quality-grid span { min-height: 78px; padding: 11px; font-size: 11px; }
.obligation-list article { padding: 13px 14px; }

@media (max-width: 1180px) {
  .market-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-kpi-group.capital { grid-column: 1 / -1; }
  .profile-metric-groups { grid-template-columns: 1fr; }
  .compare-insight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-insight-item:nth-child(2) { border-right: 0; }
  .compare-insight-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .regulation-question-bar { grid-template-columns: 160px minmax(240px, 1fr) 130px; }
  .regulation-question-bar > button { grid-column: 3; }
  .regulation-question-bar > select { grid-column: 3; grid-row: 1; }
  .regulation-question-bar > button { grid-row: 2; }
  .regulation-question-intro { grid-row: 1 / span 2; }
  .regulation-question-bar > label { grid-row: 1 / span 2; }
}

@media (max-width: 920px) {
  .portal-rail { display: flex; width: 76px; }
  .portal-brand { justify-content: center; padding: 14px; }
  .portal-brand > span:last-child, .portal-rail-foot span:not(.verified-dot), .portal-rail-foot a { display: none; }
  .portal-nav-item { justify-content: center; padding: 0; font-size: 0; }
  .portal-nav-item span { width: auto; }
  .portal-rail-foot { display: flex; justify-content: center; }
  .portal-main { margin-left: 76px; }
  .home-layout, .mine-layout { grid-template-columns: 1fr; }
  .home-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  #homeView .home-aside { padding-left: 0; }
  #homeView .home-aside .content-band:nth-child(2) { padding-top: 0; border-top: 0; }
  .market-conclusions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-conclusion:nth-child(2) { border-right: 0; }
  .market-conclusion:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .company-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .company-profile { padding: 22px; }
  .profile-metric-group .profile-metric strong { font-size: 18px; }
  .compare-layout { grid-template-columns: 225px minmax(0, 1fr); }
  .regulation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regulation-summary-group.reporting { grid-column: 1 / -1; }
  .regulation-layout { grid-template-columns: minmax(260px, .7fr) minmax(360px, 1.3fr); }
}

@media (max-width: 760px) {
  .portal-rail { display: none; }
  .portal-main { margin-left: 0; }
  .portal-header { min-height: 62px; }
  .search-symbol { top: 10px; }
  .portal-view { padding: 22px 14px 36px; }
  .home-action-strip { grid-template-columns: 1fr; gap: 9px; }
  .home-action-item { min-height: 84px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .home-action-item.primary strong { font-size: 27px; }
  .home-aside { grid-template-columns: 1fr; gap: 0; }
  #homeView .home-aside .content-band:nth-child(2) { padding-top: 22px; border-top: 1px solid var(--line-strong); }
  .intel-item { grid-template-columns: 4px minmax(0, 1fr); }
  .intel-actions, .intel-evidence { grid-column: 2; }
  .intel-actions { margin-top: 2px; }
  .intel-action-popover { right: auto; left: 0; }
  .market-summary { grid-template-columns: 1fr; }
  .market-kpi-group.capital { grid-column: auto; }
  .market-conclusions { grid-template-columns: 1fr; }
  .market-conclusion, .market-conclusion:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .market-conclusion:last-child { border-bottom: 0; }
  .market-kpi strong { font-size: 20px; }
  .company-workspace, .compare-layout, .regulation-layout { display: block; min-height: 0; border: 0; box-shadow: none; }
  .company-directory, .compare-selector { padding: 0 0 16px; border: 0; background: transparent; }
  .company-directory-list, .check-list { display: flex; max-height: none; gap: 7px; overflow-x: auto; padding: 5px 0; scrollbar-width: none; }
  .company-directory-list::-webkit-scrollbar, .check-list::-webkit-scrollbar { display: none; }
  .directory-company, .company-check { min-width: 158px; border: 1px solid var(--line); background: #fff; }
  .company-profile, .compare-results { padding: 17px 0 24px; border: 0; background: transparent; }
  .profile-hero { grid-template-columns: 44px minmax(0, 1fr); }
  .profile-source { grid-column: 1 / -1; text-align: left; }
  .profile-tabs { overflow-x: auto; }
  .profile-tabs button { white-space: nowrap; }
  .profile-metric-groups { grid-template-columns: 1fr; }
  .profile-metric-group .profile-metrics { grid-template-columns: 1fr; }
  .profile-metric-group .profile-metric, .profile-metric-group .profile-metric:first-child, .profile-metric-group .profile-metric:last-child { min-height: 82px; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-metric-group .profile-metric:last-child { border-bottom: 0; }
  .profile-sections { grid-template-columns: 1fr; gap: 24px; }
  .compare-result-heading { display: block; }
  .compare-selected-companies { max-width: none; justify-content: flex-start; margin-top: 10px; }
  .compare-insight { grid-template-columns: 1fr 1fr; }
  .compare-insight-item { min-height: 84px; }
  .compare-metric-row { grid-template-columns: 1fr; gap: 5px; }
  .compare-metric-row > span { padding-top: 0; }
  .saved-comparison-section { grid-template-columns: 1fr; gap: 6px; }
  .regulation-summary { grid-template-columns: 1fr; }
  .regulation-summary-group.reporting { grid-column: auto; }
  .regulation-question-bar { grid-template-columns: 1fr; }
  .regulation-question-intro, .regulation-question-bar > label, .regulation-question-bar > select, .regulation-question-bar > button { grid-column: 1; grid-row: auto; }
  .regulation-question-intro { padding: 2px 0 4px; }
  .regulation-pane-tabs button { min-width: 98px; padding: 0 10px; }
  .regulation-list { max-height: 330px; border: 1px solid var(--line); border-radius: 8px; }
  .regulation-detail { margin-top: 12px; padding: 20px 0 26px; border: 0; background: transparent; }
  .regulation-quality-grid { grid-template-columns: 1fr; }
  .mobile-nav button span { display: grid; place-items: center; font-size: 0; }
  .mobile-nav .lucide { width: 18px; height: 18px; }
}

@media print {
  body { background: #fff; }
  .portal-rail, .portal-header, .mobile-nav, .research-subnav, .analysis-heading, .analysis-builder, .portal-loading, .portal-toast { display: none !important; }
  .portal-main { margin: 0; }
  .portal-view { display: none !important; max-width: none; padding: 0; }
  #analysisView { display: block !important; }
  .analysis-workspace { display: block; }
  .analysis-report { min-height: 0; padding: 0; border: 0; box-shadow: none; }
  .analysis-report-section, .analysis-findings { break-inside: avoid; }
  .analysis-statement, .analysis-metric-grid, .analysis-table-wrap, .analysis-structure { break-inside: avoid; }
  a { color: var(--ink); text-decoration: none; }
}

/* Information architecture V3 */
.portal-header { grid-template-columns: minmax(280px, 720px) 46px; justify-content: space-between; }
.portal-nav-group { display: grid; gap: 3px; }
.portal-nav-parent { display: grid; min-height: 40px; grid-template-columns: 18px minmax(0, 1fr) 15px; gap: 12px; align-items: center; padding: 0 13px; border: 0; border-radius: 6px; color: #cbd5d4; background: transparent; text-align: left; }
.portal-nav-parent > span { display: grid; place-items: center; color: #91aaa8; }
.portal-nav-parent > span .lucide { width: 18px; height: 18px; }
.portal-nav-parent > b { font-size: 14px; font-weight: 500; }
.portal-nav-parent .nav-chevron { width: 14px; height: 14px; transition: transform .16s ease; }
.portal-nav-parent:hover, .portal-nav-group.active > .portal-nav-parent { color: #fff; background: var(--nav-hover); }
.portal-nav-group.active > .portal-nav-parent { box-shadow: inset 3px 0 0 #65c3ba; }
.portal-nav-group.open .nav-chevron { transform: rotate(180deg); }
.portal-subnav { display: none; gap: 2px; padding: 1px 0 5px 42px; }
.portal-nav-group.open .portal-subnav { display: grid; }
.portal-subnav button { min-height: 31px; padding: 0 9px; border: 0; border-radius: 5px; color: #9fb2b1; background: transparent; font-size: 12px; text-align: left; }
.portal-subnav button:hover { color: #fff; background: var(--nav-hover); }
.portal-subnav button.active { color: #8bd8d0; background: rgba(101,195,186,.1); }

.research-subnav { display: flex; width: 100%; gap: 22px; margin: -2px 0 18px; border-bottom: 1px solid var(--line-strong); }
.research-subnav button { min-height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 13px; }
.research-subnav button:hover { color: var(--ink); }
.research-subnav button.active { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.research-period-slot { min-height: 38px; }
.page-period-control { display: flex; min-height: 38px; align-items: center; }
.page-period-control select { min-width: 112px; }
.analysis-view-draft .analysis-heading .heading-actions { display: flex; }
.analysis-view-draft .analysis-heading .heading-actions > button { display: none; }

.market-conclusions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-conclusion:nth-child(3) { border-right: 0; }
.market-boundary { margin: -11px 0 20px; color: var(--muted); font-size: 11px; }
.market-boundary > summary { width: fit-content; padding: 4px 0; color: var(--teal); font-weight: 700; cursor: pointer; }
.market-boundary p { margin: 7px 0 0; padding: 10px 12px; border-left: 2px solid var(--line-strong); background: var(--surface-soft); line-height: 1.65; }
.market-section-nav { position: sticky; top: 68px; z-index: 15; display: flex; gap: 20px; margin: 0 0 6px; padding: 0 2px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); background: rgba(247,249,248,.96); scrollbar-width: none; backdrop-filter: blur(10px); }
.market-section-nav::-webkit-scrollbar { display: none; }
.market-section-nav button { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; white-space: nowrap; }
.market-section-nav button.active { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.market-topic-section { scroll-margin-top: 126px; }
.market-ranking-more { border-top: 1px solid var(--line); }
.market-ranking-more > summary { display: flex; min-height: 42px; align-items: center; justify-content: center; color: var(--teal); font-size: 12px; font-weight: 700; list-style: none; cursor: pointer; }
.market-ranking-more > summary::-webkit-details-marker { display: none; }
.market-ranking-more > summary::after { width: 15px; height: 15px; margin-left: 6px; content: ""; background: currentColor; clip-path: polygon(18% 34%, 50% 66%, 82% 34%, 88% 40%, 50% 78%, 12% 40%); transition: transform .16s ease; }
.market-ranking-more[open] > summary::after { transform: rotate(180deg); }
.market-ranking-more .market-table-wrap { border-top: 1px solid var(--line); }

.company-workspace { display: block; min-height: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.company-picker-panel { margin-bottom: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.company-picker-panel > summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; list-style: none; cursor: pointer; }
.company-picker-panel > summary::-webkit-details-marker, .compare-selector > summary::-webkit-details-marker, .account-settings-disclosure > summary::-webkit-details-marker { display: none; }
.company-picker-panel > summary span, .company-picker-panel > summary small, .company-picker-panel > summary strong { display: block; }
.company-picker-panel > summary small { color: var(--muted); font-size: 10px; }
.company-picker-panel > summary strong { margin-top: 2px; font-size: 14px; }
.picker-summary-action { display: inline-flex !important; align-items: center; gap: 7px; color: var(--teal); font-size: 12px; font-weight: 700; }
.picker-summary-action .lucide { width: 15px; height: 15px; }
.company-picker-panel[open] > summary { border-bottom: 1px solid var(--line); }
.company-picker-panel .company-directory { padding: 16px; border: 0; background: #fafcfb; }
.company-picker-panel .company-directory > .local-search { width: min(420px, 100%); }
.company-picker-panel .company-directory .segmented { display: inline-flex; width: auto; margin: 10px 0 12px; }
.company-picker-panel .company-directory .segmented button { min-width: 76px; }
.company-picker-panel .company-directory-list { display: grid; max-height: 290px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px 8px; overflow-y: auto; }
.company-picker-panel .directory-company { min-height: 50px; border: 1px solid transparent; }
.company-picker-panel .directory-company.active { border-color: #b9d7d2; }
.company-profile { padding: 28px 30px 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.profile-evidence-sections { display: grid; gap: 28px; }

.compare-layout { display: block; min-height: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.compare-selector { margin-bottom: 12px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.compare-selector-summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; list-style: none; cursor: pointer; }
.compare-selector-summary span, .compare-selector-summary small, .compare-selector-summary strong { display: block; }
.compare-selector-summary small { color: var(--muted); font-size: 10px; }
.compare-selector-summary strong { margin-top: 2px; font-size: 14px; }
.compare-selector[open] > summary { border-bottom: 1px solid var(--line); }
.compare-selector-body { display: grid; grid-template-columns: 170px minmax(240px, 420px) 1fr; gap: 10px 14px; padding: 14px 16px 16px; background: #fafcfb; }
.compare-selector-body > .segmented { display: flex; width: 100%; margin: 0; }
.compare-selector-body > .segmented button { flex: 1; }
.compare-selector-body .compare-company-search { margin: 0; }
.compare-selector-body .check-list { grid-column: 1 / -1; display: grid; max-height: 260px; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 6px 8px; overflow-y: auto; }
.compare-selector-body .company-check { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.compare-results { padding: 24px 26px 28px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }

.account-settings-disclosure { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.account-settings-disclosure > summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 10px 13px; list-style: none; cursor: pointer; }
.account-settings-disclosure > summary span, .account-settings-disclosure > summary strong, .account-settings-disclosure > summary small { display: block; }
.account-settings-disclosure > summary strong { font-size: 13px; }
.account-settings-disclosure > summary small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.account-settings-disclosure > summary .lucide { width: 16px; height: 16px; color: var(--muted); transition: transform .16s ease; }
.account-settings-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.account-settings-disclosure[open] > summary .lucide { transform: rotate(180deg); }
.account-settings-body { padding: 0 12px 12px; }
.account-settings-body .settings-section { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.account-settings-body .settings-section:first-child { border-top: 0; }

@media (max-width: 1180px) {
  .company-picker-panel .company-directory-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .portal-nav-group { position: relative; }
  .portal-nav-parent { display: flex; justify-content: center; padding: 0; font-size: 0; }
  .portal-nav-parent > b, .portal-nav-parent .nav-chevron { display: none; }
  .portal-subnav { position: absolute; top: 0; left: 66px; z-index: 35; width: 150px; padding: 7px; border: 1px solid #3b5559; border-radius: 7px; background: var(--nav); box-shadow: 0 14px 28px rgba(0,0,0,.2); }
  .portal-subnav button { min-height: 36px; padding: 0 10px; }
  .market-conclusions { grid-template-columns: 1fr; }
  .market-conclusion, .market-conclusion:nth-child(2), .market-conclusion:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .market-conclusion:last-child { border-bottom: 0; }
  .company-picker-panel .company-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .portal-header { grid-template-columns: auto 1fr 38px; }
  .research-subnav { position: sticky; top: 62px; z-index: 14; gap: 18px; margin-bottom: 14px; overflow-x: auto; background: rgba(247,249,248,.97); scrollbar-width: none; }
  .research-subnav::-webkit-scrollbar { display: none; }
  .research-subnav button { white-space: nowrap; }
  .view-heading .research-period-slot { margin-top: 8px; }
  .page-period-control { justify-content: flex-start; }
  .market-section-nav { top: 62px; }
  .company-picker-panel, .compare-selector { border: 1px solid var(--line-strong); background: #fff; }
  .company-picker-panel .company-directory, .compare-selector-body { padding: 13px; }
  .company-picker-panel .company-directory-list, .compare-selector-body .check-list { display: flex; max-height: none; grid-template-columns: none; overflow-x: auto; }
  .company-picker-panel .directory-company, .compare-selector-body .company-check { min-width: 168px; }
  .company-profile, .compare-results { padding: 18px 0 24px; border: 0; border-radius: 0; background: transparent; }
  .compare-selector-body { display: grid; grid-template-columns: 1fr; }
  .compare-selector-body .check-list { grid-column: 1; }
  .account-settings-disclosure { margin-bottom: 12px; }
}

/* Focused decision surfaces */
@media (min-width: 761px) {
  .research-subnav { display: none; }
}

.home-context-strip { gap: 8px; margin-bottom: 24px; }
.home-context-strip .home-action-item { min-height: 78px; padding: 13px 42px 12px 15px; background: #fbfcfc; }
.home-context-strip .home-action-item.primary { border-color: var(--line); background: #f6faf9; }
.home-context-strip .home-action-item strong,
.home-context-strip .home-action-item.primary strong { margin-top: 6px; font-size: 22px; }
.home-context-strip .home-action-item small { margin-top: 5px; font-size: 10px; }
.home-context-strip .home-action-arrow { right: 13px; }

.priority-action-list { display: grid; gap: 8px; }
.priority-action-card { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 15px; align-items: start; padding: 17px 0; border-top: 1px solid var(--line); }
.priority-action-card:first-child { padding-top: 4px; border-top: 0; }
.priority-order { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); background: var(--surface-soft); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.priority-action-card.high .priority-order { border-color: #e0b8b2; color: var(--red); background: #fff7f5; }
.priority-action-copy { min-width: 0; }
.priority-action-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 10px; }
.priority-action-meta span:first-child { color: var(--teal); font-weight: 700; }
.priority-action-copy h3 { margin: 6px 0 5px; font-size: 15px; line-height: 1.4; }
.priority-action-copy > p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.priority-reason { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; margin-top: 9px; padding: 8px 10px; border-left: 2px solid var(--line-strong); background: var(--surface-soft); font-size: 10px; line-height: 1.55; }
.priority-action-card.high .priority-reason { border-left-color: var(--red); background: #fffafa; }
.priority-reason b { color: var(--ink); }
.priority-reason span { color: var(--muted); }
.priority-action-commands { display: flex; gap: 6px; align-items: center; padding-top: 18px; }
.priority-action-commands .secondary-command { white-space: nowrap; }

.profile-judgment-section { margin: 24px 0 28px; padding: 22px 0 24px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.profile-judgment-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.profile-judgment-heading h3 { margin: 4px 0 0; font-size: 18px; }
.profile-judgment-heading p { max-width: 380px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.profile-judgment-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.profile-judgment-card { min-width: 0; min-height: 156px; padding: 14px; border-right: 1px solid var(--line); background: #fff; }
.profile-judgment-card:last-child { border-right: 0; }
.profile-judgment-card.risk { box-shadow: inset 0 3px 0 var(--red); }
.profile-judgment-card.warning { box-shadow: inset 0 3px 0 var(--amber); }
.profile-judgment-card.positive,
.profile-judgment-card.steady { box-shadow: inset 0 3px 0 var(--teal); }
.profile-judgment-label { display: grid; grid-template-columns: 17px minmax(0, 1fr) 16px; gap: 6px; align-items: center; color: var(--muted); font-size: 10px; }
.profile-judgment-label > .lucide { width: 16px; height: 16px; color: var(--teal); }
.profile-judgment-label a { display: grid; place-items: center; color: var(--muted); }
.profile-judgment-label a .lucide { width: 13px; height: 13px; }
.profile-judgment-card > strong { display: block; margin-top: 15px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.profile-judgment-card > p { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.profile-judgment-card > p b { margin-right: 5px; color: var(--ink); }

@media (max-width: 1180px) {
  .profile-judgment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-judgment-card { border-bottom: 1px solid var(--line); }
  .profile-judgment-card:nth-child(3n) { border-right: 0; }
  .profile-judgment-card:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .home-context-strip { gap: 6px; }
  .home-context-strip .home-action-item { min-height: 70px; }
  .priority-action-card { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 15px 0; }
  .priority-action-copy h3 { font-size: 14px; }
  .priority-reason { grid-template-columns: 1fr; gap: 3px; }
  .priority-action-commands { grid-column: 2; justify-content: flex-start; padding-top: 0; }
  .profile-judgment-heading { display: block; }
  .profile-judgment-heading p { margin-top: 6px; text-align: left; }
  .profile-judgment-grid { grid-template-columns: 1fr; border-right: 0; border-left: 0; border-radius: 0; }
  .profile-judgment-card { min-height: 0; padding: 15px 2px; border-right: 0; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .profile-judgment-card:last-child { border-bottom: 0; }
  .profile-judgment-card > strong { margin-top: 10px; }
}

/* Progressive comparison and analysis controls */
.compare-metric-panel { margin: 0 0 14px; padding: 14px 0 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-metric-group-row,
.compare-metric-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: start; }
.compare-metric-group-row { margin-bottom: 10px; }
.compare-metric-group-row > span,
.compare-metric-row > span { padding-top: 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.compare-metric-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.compare-metric-group { display: grid; min-width: 0; min-height: 42px; grid-template-columns: 17px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; text-align: left; }
.compare-metric-group:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-soft); }
.compare-metric-group.active { border-color: #8fbbb6; color: var(--teal); background: var(--teal-soft); font-weight: 700; }
.compare-metric-group .lucide { width: 16px; height: 16px; }
.compare-metric-group span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-metric-group small { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 3px; color: var(--muted); background: rgba(255,255,255,.75); font-size: 9px; }
.compare-metric-panel .compare-metric-row { margin-bottom: 0; }
.compare-metric-panel .metric-tabs { padding-bottom: 0; }

.analysis-recommendation-list { margin-bottom: 12px; }
.analysis-peer-directory { border-top: 1px solid var(--line); }
.analysis-peer-directory > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 2px; list-style: none; cursor: pointer; }
.analysis-peer-directory > summary::-webkit-details-marker { display: none; }
.analysis-peer-directory > summary span,
.analysis-peer-directory > summary strong,
.analysis-peer-directory > summary small { display: block; }
.analysis-peer-directory > summary strong { font-size: 11px; }
.analysis-peer-directory > summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.analysis-peer-directory > summary .lucide { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); transition: transform .16s ease; }
.analysis-peer-directory[open] > summary .lucide { transform: rotate(180deg); }
.analysis-peer-directory-body { padding: 8px 0 2px; border-top: 1px solid var(--line); }
.analysis-peer-directory .analysis-peer-search-head { padding-top: 0; border-top: 0; }
.report-mode .analysis-peer-directory > summary small { display: none; }

@media (max-width: 920px) {
  .compare-metric-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .compare-metric-group-row,
  .compare-metric-row { grid-template-columns: 1fr; gap: 6px; }
  .compare-metric-group-row > span,
  .compare-metric-row > span { padding-top: 0; }
  .compare-metric-groups { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .compare-metric-groups::-webkit-scrollbar { display: none; }
  .compare-metric-group { min-width: 132px; }
  .analysis-peer-directory > summary { padding-right: 2px; padding-left: 2px; }
}

/* User workflow and mini-program navigation */
.back-command { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.back-command:hover { color: var(--teal); }
.back-command .lucide { width: 15px; height: 15px; }

.intelligence-subnav { display: flex; gap: 8px; margin: -2px 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #eef3f2; }
.intelligence-subnav button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 12px; }
.intelligence-subnav button:hover { color: var(--ink); }
.intelligence-subnav button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(22,43,46,.1); font-weight: 700; }
.intelligence-subnav .lucide { width: 16px; height: 16px; }

.profile-action-bar { position: sticky; top: 64px; z-index: 13; display: flex; justify-content: flex-end; gap: 8px; margin: 0 -8px 20px; padding: 9px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.profile-action-bar .secondary-command.active { border-color: #8fbbb6; color: var(--teal); background: var(--teal-soft); }
.profile-action-bar button { min-width: 112px; }

.disclosure-company { overflow: hidden; padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.disclosure-company:hover { color: var(--teal); }
.disclosure-kind { color: var(--muted); font-size: 10px; white-space: nowrap; }

.account-page-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.account-page-layout .settings-section { min-height: 260px; }
.drawer-close, .drawer-heading { display: none; }

@media (max-width: 1080px) {
  .account-page-layout { grid-template-columns: 1fr 1fr; }
  .account-page-layout .membership-panel { grid-column: 1 / -1; min-height: 0; }
}

@media (max-width: 760px) {
  .intelligence-subnav { position: sticky; top: 62px; z-index: 18; gap: 3px; margin: -4px 0 16px; overflow-x: auto; padding: 3px; border-right: 0; border-left: 0; border-radius: 0; scrollbar-width: none; }
  .intelligence-subnav::-webkit-scrollbar { display: none; }
  .intelligence-subnav button { min-width: max-content; flex: 1; padding: 0 10px; white-space: nowrap; }
  .account-page-layout { grid-template-columns: 1fr; }
  .account-page-layout .membership-panel { grid-column: auto; }
  .account-page-layout .settings-section { min-height: 0; }

  .company-profile { padding-bottom: 72px; }
  .profile-action-bar { position: fixed; top: auto; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); left: 0; z-index: 24; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 7px 8px; border-top: 1px solid var(--line-strong); background: rgba(255,255,255,.98); }
  .profile-action-bar button { min-width: 0; min-height: 46px; flex-direction: column; gap: 3px; padding: 4px 2px; font-size: 9px; line-height: 1.1; }
  .profile-action-bar button .lucide { width: 17px; height: 17px; }
  .profile-action-bar .primary-command { box-shadow: none; }

  .company-picker-panel, .compare-selector { position: relative; }
  .company-picker-panel[open]::before, .compare-selector[open]::before { position: fixed; inset: 0; z-index: 68; content: ""; background: rgba(15,28,30,.42); pointer-events: none; }
  .company-picker-panel[open] .company-directory,
  .compare-selector[open] .compare-selector-body { position: fixed; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); left: 0; z-index: 70; display: block; max-height: min(74vh, 650px); padding: 16px 14px 18px; overflow-y: auto; border-top: 1px solid var(--line-strong); border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 -18px 40px rgba(15,28,30,.2); }
  .drawer-heading, .company-picker-panel .tool-panel-heading { display: grid; min-height: 38px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: 10px; }
  .company-picker-panel .tool-panel-heading > span { display: none; }
  .drawer-close { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); }
  .drawer-close .lucide { width: 17px; height: 17px; }
  .company-picker-panel[open] .company-directory-list,
  .compare-selector[open] .check-list { display: grid; max-height: 44vh; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; overflow-x: hidden; overflow-y: auto; padding: 6px 0; }
  .company-picker-panel[open] .directory-company,
  .compare-selector[open] .company-check { min-width: 0; width: 100%; }
  .compare-selector[open] .compare-company-search { margin: 10px 0 4px; }
  .compare-selector[open] .segmented { width: 100%; }

  .compare-table-wrap { overflow: visible; }
  .compare-table, .compare-table tbody { display: block; width: 100%; }
  .compare-table thead { display: none; }
  .compare-table tr { display: block; margin-bottom: 10px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
  .compare-table td { display: grid; min-height: 42px; grid-template-columns: minmax(108px, 42%) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); text-align: right; }
  .compare-table td:first-child { border-top: 0; }
  .compare-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 600; text-align: left; }
  .compare-table td > strong, .compare-table td > small { grid-column: 2; }
  .compare-table td > small { margin-top: -6px; }
  .compare-table .rank-bar { grid-column: 2; width: 100%; }
  .compare-heading .heading-actions, .analysis-heading .heading-actions { width: 100%; justify-content: flex-start; }
}

@media print {
  .intelligence-subnav, .profile-action-bar { display: none !important; }
}
