/* Opt-in compact reading workspaces; retain full evidence, notices and controls. */
body.compact-discovery :is(.sub-shell,.topic-shell,.e2-shell,.co-page,.cx-page) {
  max-width:1480px; padding:16px 24px 80px; margin-inline:auto; box-sizing:border-box;
}
body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) {
  padding:0 0 12px; margin:0 0 12px; background:transparent; border:0;
  border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; gap:12px;
}
body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) h1 {
  font-size:28px; line-height:1.2; margin:2px 0 6px; gap:10px;
}
body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) p {
  max-width:none; font-size:14px; line-height:1.45; margin:4px 0;
}
body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) [class$="-eyebrow"] { font-size:11px; }
body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) .page-icon {
  width:32px; height:32px; border-radius:8px; box-shadow:none;
}
body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) a { font-size:14px; }
body.compact-discovery :is(.sub-notice.warning,.ib-notice) {
  padding:8px 12px; margin:8px 0; font-size:13px; line-height:1.45; border-radius:8px;
}
/* Seven independently labelled metrics, including their original time windows. */
body.compact-discovery #sw-app .sf-tiles {
  grid-template-columns:repeat(7,minmax(0,1fr)); gap:0; margin:10px 0 14px;
  border:1px solid var(--line); border-radius:10px; background:var(--panel); overflow:hidden;
}
body.compact-discovery #sw-app .sf-tiles>div {
  padding:10px 12px; border:0; border-right:1px solid var(--line); border-radius:0;
  min-width:0; box-shadow:none; gap:3px;
}
body.compact-discovery #sw-app .sf-tiles>div:last-child { border-right:0; }
body.compact-discovery #sw-app .sf-tiles strong { font-size:24px; line-height:1.2; }
body.compact-discovery #sw-app .sf-tiles span { font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
body.compact-discovery :is(.sub-filters,#topic-filters) {
  padding:10px 12px; gap:10px; margin:8px 0 12px; border-radius:10px;
}
body.compact-discovery #sw-app .sub-filters { grid-template-columns:1.4fr 1fr 1fr 1.4fr; }
body.compact-discovery main :is(input:not([type=checkbox]):not([type=radio]),select,.btn,.act) {
  min-height:44px; box-sizing:border-box;
}
body.compact-discovery main :is(input:not([type=checkbox]):not([type=radio]),select) { padding:8px 10px; }
body.compact-discovery :is(.sub-filters,#topic-filters) label { font-size:13px; gap:4px; min-width:0; }
body.compact-discovery :is(.sub-surface,.ib-panel) { padding:14px 16px; margin-bottom:12px; border-radius:10px; line-height:1.5; }
body.compact-discovery :is(.sub-surface,.ib-panel) h2 { font-size:18px; margin:0 0 8px; }
body.compact-discovery :is(.sub-surface,.ib-panel) p { margin-block:8px; }
body.compact-discovery .sub-table { margin:10px 0; border-radius:8px; }
body.compact-discovery .sub-table :is(th,td) { padding:10px 12px; }
body.compact-discovery .sf-filters { gap:10px; margin:8px 0; }
body.compact-discovery .topic-layout { grid-template-columns:260px minmax(0,1fr); gap:16px; }
body.compact-discovery .topic-catalog { padding:12px; }
body.compact-discovery .topic-catalog button { padding:8px 10px; min-height:44px; }
body.compact-discovery .topic-workspace h2 { font-size:24px; margin-bottom:6px; }
body.compact-discovery .topic-workspace p { margin-block:8px; line-height:1.45; }
body.compact-discovery .topic-card { padding:14px 16px; margin-bottom:10px; }
body.compact-discovery .topic-card h3 { margin:8px 0; font-size:18px; }
body.compact-discovery .topic-links { margin-top:8px; gap:12px; }
body.compact-discovery .topic-footnote { margin-top:16px; padding:14px 16px; }
body.compact-discovery .roles-grid { gap:12px; margin:12px 0; }
body.compact-discovery .roles-filters { gap:10px; align-items:end; }
body.compact-discovery .roles-filters label { margin:0; gap:4px; }
@media(max-width:1150px) {
  body.compact-discovery #sw-app .sf-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); }
  body.compact-discovery #sw-app .sf-tiles>div { border-bottom:1px solid var(--line); }
}
@media(max-width:760px) {
  body.compact-discovery :is(.sub-shell,.topic-shell,.e2-shell,.co-page,.cx-page) { padding:12px 14px 88px; }
  body.compact-discovery .topic-layout { grid-template-columns:minmax(0,1fr); }
  body.compact-discovery #sw-app .sub-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.compact-discovery #sw-app .sf-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.compact-discovery :is(.sub-hero,.topic-hero,.e2-hero,.cx-hero,.explorer-hero) h1 { font-size:24px; }
}
@media(max-width:420px) {
  body.compact-discovery #sw-app .sub-filters { grid-template-columns:minmax(0,1fr); }
}
/* Company, country and substance discovery: bring search and records up front. */
body.compact-explorer .explorer-shortcuts { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin:8px 0 12px; }
body.compact-explorer .explorer-shortcuts p { margin:0; }
body.compact-explorer .explorer-shortcuts .sub-back { margin:0; }
body.compact-explorer .explorer-shortcuts a { display:inline-flex; align-items:center; min-height:44px; }
body.compact-explorer .co-search { margin-bottom:12px; }
body.compact-explorer .co-combo { max-width:780px; }
body.compact-explorer .co-combo input { font-size:15px; }
body.compact-explorer .co-search .hint { margin:6px 0; }
body.compact-explorer .co-page h2 { font-size:20px; margin:12px 0 8px; }
body.compact-explorer .co-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); margin-bottom:12px; }
body.compact-explorer .co-browse { gap:12px; margin:8px 0; }
body.compact-explorer .co-coverage { margin-top:16px; }
body.compact-explorer .cx-panel { padding:14px 16px; margin:12px 0; border-radius:10px; }
body.compact-explorer .cx-panel h2 { font-size:20px; margin:0 0 8px; }
body.compact-explorer .cx-panel p { margin:8px 0; line-height:1.5; }
body.compact-explorer :is(.cx-filters,.cx-heading,#cx-country-form,.cx-facts) { gap:10px; }
body.compact-explorer .cx-page label { gap:4px; font-size:13px; }
body.compact-explorer #cx-country-form label { flex:1 1 220px; min-width:0; }
body.compact-explorer .cx-facts>div { padding:10px 12px; border-radius:8px; min-width:150px; }
body.compact-explorer .cx-facts strong { font-size:24px; }
body.compact-explorer .cx-tabs { margin:10px 0; gap:6px; }
body.compact-explorer .cx-tabs button { min-height:44px; padding:8px 12px; border-radius:8px; }
body.compact-explorer :is(.cx-results,.cx-source-grid) { gap:12px; }
body.compact-explorer :is(.cx-record,.cx-source-card) { padding:12px 14px; border-radius:10px; }
body.compact-explorer :is(.cx-record,.cx-source-card) p { margin:6px 0; }
body.compact-explorer #cx-clinical,body.compact-explorer #cx-therapy { margin-top:14px; }
body.compact-explorer .sub-stats { gap:16px; }
body.compact-explorer .sub-stats strong { font-size:22px; }
body.compact-explorer .sub-stats span { font-size:12px; }
body.compact-explorer .sub-notice { padding:6px 0; margin:6px 0; }
body.compact-explorer .sub-results { gap:12px; }
body.compact-explorer .sub-card { padding:14px 16px; border-radius:10px; }
body.compact-explorer .sub-card h2 { margin:10px 0 6px; }
body.compact-explorer .sub-alias { min-height:0; margin:6px 0 10px; }
body.compact-explorer .sub-card-counts { gap:12px; padding-top:8px; }
body.compact-explorer .sub-count { margin:10px 0; font-size:18px; }
body.compact-explorer .sub-alphabet { margin:10px 0; }
body.compact-explorer .sub-alphabet button { min-height:44px; min-width:36px; }
body.compact-explorer .sub-scope { margin:14px 0 8px; padding:10px 12px; line-height:1.5; }
@media(max-width:760px) {
  body.compact-explorer #cx-country-form { align-items:stretch; }
  body.compact-explorer .sub-stats { flex-wrap:wrap; gap:10px 18px; }
  body.compact-explorer .cx-filters label { min-width:0; flex-basis:100%; }
}

body.compact-explorer #cx-country-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; }
@media(max-width:760px) { body.compact-explorer #cx-country-form { grid-template-columns:minmax(0,1fr); } body.compact-explorer #cx-country-form>button { justify-self:start; } }
