/* AEGLIX platform frame. Shared identity; existing feature controllers own behavior. */
html.platform-frame {
  --p-bg: #f7f5f0;
  --p-panel: #fffefa;
  --p-raised: #efebe4;
  --p-text: #292722;
  --p-muted: #686256;
  --p-line: #e3ddd2;
  --p-line-strong: #9b8b76;
  --p-accent: #5845d8;
  --p-tint: #ece8fb;
  --p-solid: #6656f5;
  --color-gray-50: #f7f5f0;
  --color-gray-100: #efebe4;
  --color-gray-200: #e3ddd2;
  --color-gray-300: #c9c0b3;
  --color-gray-400: #b1a99c;
  --color-gray-500: #686256;
  --color-gray-600: #514b40;
  --color-gray-700: #514a40;
  --color-gray-800: #38332b;
  --color-gray-900: #1e1c19;
  --color-gray-950: #161513;
  --color-indigo-50: #f0ecfb;
  --color-indigo-100: #e7e0f8;
  --color-indigo-200: #d7cef0;
  --color-indigo-300: #bdb0ed;
  --color-indigo-400: #aba1ff;
  --color-indigo-500: #7b6be4;
  --color-indigo-600: #6656f5;
  --color-indigo-700: #5343bd;
  --color-indigo-800: #41377e;
  --color-indigo-900: #302957;
  --color-indigo-950: #241f39;
}
html.platform-frame.dark {
  --p-bg: #161513;
  --p-panel: #1e1c19;
  --p-raised: #28251f;
  --p-text: #f4f0e8;
  --p-muted: #b1a99c;
  --p-line: #38332b;
  --p-line-strong: #726957;
  --p-accent: #aba1ff;
  --p-tint: #aba1ff14;
}
html.platform-frame body {
  background: var(--p-bg);
  color: var(--p-text);
}
.platform-frame .site-header {
  background: var(--p-bg);
  border-color: var(--p-line);
  backdrop-filter: none;
}
.platform-frame .site-header-row {
  height: 76px;
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-left: 28px;
  padding-right: 28px;
}
.platform-frame .site-brand-name {
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.platform-frame .site-brand {
  gap: 10px;
}
.platform-desktop-navigation {
  display: none;
  align-items: center;
  gap: 30px;
  margin-right: auto;
}
.platform-frame .site-header-products {
  gap: 20px;
}
.platform-frame .site-nav-link {
  height: 76px;
  display: flex;
  align-items: center;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--p-muted);
}
.platform-frame .site-nav-link[aria-current="page"] {
  background: none;
  color: var(--p-text);
  border-bottom-color: var(--p-accent);
}
.platform-frame .site-header-actions {
  gap: 12px;
  flex-shrink: 0;
}
.platform-frame .site-header [data-theme-toggle] {
  border-radius: 4px;
  color: var(--p-muted);
}
.platform-frame .site-header [data-theme-toggle]:hover {
  background: var(--p-raised);
}
.platform-frame .account-signin {
  font-size: 12px;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  padding: 9px 15px;
  color: var(--p-text);
  min-height: 40px;
}
.platform-switcher {
  position: relative;
  color: var(--p-text);
}
.platform-switcher > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 12px;
  font-size: 12px;
  border: 1px solid var(--p-line);
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
  min-height: 40px;
}
.platform-switcher > summary::-webkit-details-marker {
  display: none;
}
.platform-switcher-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 490px;
  max-width: calc(100vw - 40px);
  background: var(--p-panel);
  border: 1px solid var(--p-line-strong);
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 18px 60px #0003;
  z-index: 70;
}
.platform-switcher-panel > p,
.platform-rail > p {
  font: 10px/1.5 monospace;
  letter-spacing: 0.12em;
  color: var(--p-muted);
  margin: 0 0 15px;
}
.platform-switcher-panel nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.platform-switcher-panel nav > a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 3px;
}
.platform-switcher-panel nav > a:hover {
  background: var(--p-tint);
  border-color: var(--p-line);
}
.platform-switcher-panel strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.platform-switcher-panel small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--p-muted);
  margin-top: 3px;
}
.platform-link-index {
  font: 10px/1.5 monospace;
  color: var(--p-muted);
  padding-top: 3px;
}
.platform-resources {
  display: block;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--p-line);
  font-size: 11px;
  color: var(--p-accent);
}
.platform-rail {
  display: none;
}
.platform-frame main h1 {
  font-weight: 500;
  letter-spacing: -0.035em;
}
.platform-frame main :is(.rounded-2xl, .rounded-3xl) {
  border-radius: 6px;
}
.platform-frame main :is(.rounded-full) {
  border-radius: 4px;
}
.platform-frame main h2 {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.platform-frame body > main > section:first-child {
  background-image: none;
  background-color: transparent;
  padding-top: 36px;
  padding-bottom: 28px;
}
.platform-frame .site-footer {
  background: var(--p-bg);
  border-color: var(--p-line);
}
.platform-frame .site-footer a {
  color: var(--p-muted);
}
.platform-frame .site-footer a:hover {
  color: var(--p-accent);
}
.platform-frame .site-footer h2,
.platform-frame .site-footer h3 {
  color: var(--p-text);
}
.platform-frame .navigation-drawer {
  background: var(--p-panel);
  color: var(--p-text);
  border-color: var(--p-line);
}
.platform-frame .drawer-link {
  border-radius: 4px;
}
.platform-frame .drawer-link:hover {
  background: var(--p-tint);
}
.platform-frame .filter-surface,
.platform-frame .platform-search,
.platform-frame .investigation-card,
.platform-frame .news-page {
  border-radius: 5px;
}
html.platform-frame .workspace-shell {
  --ws-bg: var(--p-bg);
  --ws-panel: var(--p-panel);
  --ws-line: var(--p-line);
  --ws-text: var(--p-text);
  --ws-muted: var(--p-muted);
  --ws-accent: var(--p-accent);
  --ws-tint: var(--p-tint);
}
.platform-frame :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 4px;
}
/* Reading and private forms retain their own width, data and permission contracts. */
.platform-frame .information-content {
  line-height: 1.85;
}
.platform-frame .platform-home-hero {
  padding: 36px 28px 46px;
}
.platform-hero-inner {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 40px;
  align-items: center;
}
.platform-eyebrow {
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
  color: var(--p-accent);
  margin-bottom: 22px;
}
.platform-frame .platform-hero-copy h1 {
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0 0 23px;
}
.platform-hero-copy h1 span {
  color: var(--p-muted);
}
.platform-hero-copy > p:not(.platform-eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--p-muted);
  max-width: 450px;
  margin-bottom: 25px;
}
.platform-home-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 7px 6px 14px;
  border: 1px solid var(--p-line-strong);
  border-radius: 4px;
  background: var(--p-panel);
  min-height: 56px;
}
.platform-home-search > svg {
  color: var(--p-muted);
  flex-shrink: 0;
}
.platform-home-search input {
  background: transparent;
  min-width: 0;
  flex: 1;
  padding: 10px 0;
  font-size: 12px;
  color: var(--p-text);
  border: 0;
  outline-offset: 2px;
}
.platform-home-search input::placeholder {
  color: var(--p-muted);
}
.platform-home-search button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--p-solid);
  color: #fff;
  border-radius: 3px;
}
#platform-search-help,
#platform-home-search noscript p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--p-muted);
  margin: 9px 0 0;
}
.platform-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 11px;
}
.platform-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--p-solid);
  border-radius: 4px;
  color: #fff;
  padding: 13px 17px;
  font-weight: 600;
  min-height: 44px;
}
.platform-network {
  border: 1px solid var(--p-line);
  background: var(--p-panel);
  border-radius: 5px;
  overflow: hidden;
  min-width: 0;
}
.platform-network-heading,
.platform-network-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  font: 9px/1.5 monospace;
  letter-spacing: 0.05em;
  color: var(--p-muted);
}
.platform-network-heading {
  border-bottom: 1px solid var(--p-line);
}
.platform-network-heading span {
  border: 1px solid var(--p-line);
  border-radius: 3px;
  padding: 3px 5px;
  font-size: 8px;
}
.platform-network-footer {
  border-top: 1px solid var(--p-line);
}
.platform-network-footer a {
  color: var(--p-accent);
  min-height: 30px;
  display: flex;
  align-items: center;
}
.platform-network > svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--p-muted);
}
.platform-network svg text {
  font: 10px monospace;
  text-anchor: middle;
  fill: var(--p-muted);
}
.platform-network-orbits {
  fill: none;
  stroke: var(--p-line);
  stroke-width: 0.8;
}
.platform-network-lines {
  fill: none;
  stroke: var(--p-accent);
  stroke-width: 0.8;
  opacity: 0.6;
}
.platform-network-nodes circle {
  fill: var(--p-panel);
  stroke: var(--p-line-strong);
}
.platform-network .platform-network-labels text {
  font-size: 9px;
}
.platform-network-center {
  fill: var(--p-tint);
  stroke: var(--p-accent);
  stroke-width: 1.5;
}
.platform-home-products {
  max-width: 1336px;
  padding-left: 28px;
  padding-right: 28px;
}
.platform-home-products #products {
  border-top: 1px solid var(--p-line);
  padding: 32px 0;
}
.platform-home-products #products > p {
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
  color: var(--p-accent);
}
.platform-home-products #products > h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 24px;
}
.platform-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.platform-product-grid article {
  padding: 20px;
  gap: 0;
}
.platform-product-grid h3 {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 600;
}
.platform-product-grid article > span {
  font-size: 9px;
  line-height: 1.5;
  background: none;
  padding: 0;
  color: var(--p-muted);
  border: 0;
}
.platform-product-grid article > p {
  font-size: 11px;
  line-height: 1.85;
}
.platform-product-grid article > a {
  font-size: 11px;
  min-height: 34px;
  display: flex;
  align-items: center;
  font-weight: 500;
}
.platform-frame .platform-home-stats {
  background: transparent;
  border-top: 1px solid var(--p-line);
}
.platform-frame .platform-home > div.max-w-6xl {
  max-width: 1336px;
  padding-left: 28px;
  padding-right: 28px;
}
@media (min-width: 1200px) {
  .platform-desktop-navigation {
    display: flex;
  }
  .platform-frame .platform-rail {
    display: flex;
    position: fixed;
    top: 76px;
    left: 0;
    bottom: 0;
    width: 184px;
    z-index: 20;
    background: var(--p-bg);
    border-right: 1px solid var(--p-line);
    padding: 27px 12px 18px;
    flex-direction: column;
    overflow: auto;
  }
  .platform-rail > p {
    padding: 0 12px;
  }
  .platform-rail nav {
    display: grid;
    gap: 5px;
  }
  .platform-rail nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 10px;
    border-left: 2px solid transparent;
    font-size: 11px;
    color: var(--p-muted);
    min-height: 44px;
  }
  .platform-rail nav strong {
    font-weight: 500;
  }
  .platform-rail nav a[aria-current="page"] {
    border-left-color: var(--p-accent);
    color: var(--p-accent);
    background: var(--p-tint);
  }
  .platform-rail nav a:hover {
    color: var(--p-accent);
    background: var(--p-tint);
  }
  .platform-rail-bottom {
    margin-top: auto;
    padding-top: 20px;
  }
  .platform-rail-bottom > a {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 10px;
  }
  .platform-rail-bottom > div {
    border-top: 1px solid var(--p-line);
    margin-top: 12px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    color: var(--p-muted);
  }
  .platform-rail-bottom small {
    display: block;
    font: 8px/1.8 monospace;
    letter-spacing: 0.1em;
  }
  .platform-frame body > main,
  .platform-frame body > .guardian-toolbar,
  .platform-frame body > nav[aria-label="Breadcrumb"] {
    width: calc(100% - 184px);
    max-width: none;
    margin-left: 184px;
    margin-right: 0;
  }
  .platform-frame body > .site-footer {
    margin-left: 184px;
  }
  .platform-frame body:has(> .workspace-shell) > .platform-rail {
    display: none;
  }
  .platform-frame body:has(> .workspace-shell) > .site-footer {
    margin-left: 0;
  }
  .platform-frame body:has(> .workspace-shell) > nav[aria-label="Breadcrumb"] {
    width: 100%;
    margin-left: 0;
  }
  .platform-frame body > main:not(.platform-home) > .max-w-6xl,
  .platform-frame body > main:not(.platform-home) > section > .max-w-6xl {
    max-width: 1280px;
  }
}
@media (max-width: 1199px) {
  .platform-frame .site-header-row {
    height: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .platform-frame .platform-home-hero {
    padding-top: 35px;
  }
  .platform-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .platform-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .platform-hero-copy {
    max-width: 600px;
  }
  .platform-frame .platform-hero-copy h1 {
    font-size: 44px;
  }
  .platform-network {
    max-width: 600px;
  }
  .platform-network > svg {
    max-height: 310px;
  }
}
@media (max-width: 600px) {
  .platform-frame .site-header-row {
    padding-left: 16px;
    padding-right: 16px;
    gap: 10px;
  }
  .platform-frame .site-header-actions {
    gap: 4px;
  }
  .platform-frame .site-brand-name {
    font-size: 11px;
  }
  .platform-frame .account-signin {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 36px;
  }
  .platform-frame .platform-home-hero {
    padding: 30px 18px 35px;
  }
  .platform-frame .platform-hero-copy h1 {
    font-size: 36px;
  }
  .platform-hero-copy > p:not(.platform-eyebrow) {
    font-size: 12px;
  }
  .platform-eyebrow {
    font-size: 9px;
  }
  .platform-home-search {
    gap: 8px;
    padding-left: 10px;
  }
  .platform-home-search input {
    font-size: 11px;
  }
  .platform-hero-actions {
    font-size: 10px;
    gap: 16px;
  }
  .platform-primary {
    padding: 12px 14px;
    gap: 16px;
    font-size: 11px;
  }
  .platform-network-heading,
  .platform-network-footer {
    font-size: 8px;
    padding: 12px;
  }
  .platform-network-heading span {
    font-size: 7px;
  }
  .platform-network > svg {
    max-height: none;
  }
  .platform-home-products,
  .platform-frame .platform-home > div.max-w-6xl {
    padding-left: 18px;
    padding-right: 18px;
  }
  .platform-product-grid {
    gap: 10px;
  }
  .platform-product-grid article {
    padding: 16px;
  }
  .platform-home-products #products > h2 {
    font-size: 22px;
  }
  .platform-frame body > main > section:first-child {
    padding-top: 28px;
    padding-bottom: 24px;
  }
}
@media (max-width: 374px) {
  .platform-frame .platform-hero-copy h1 {
    font-size: 30px;
  }
  .platform-network-heading {
    font-size: 7px;
  }
  .platform-network-heading span {
    font-size: 6px;
  }
  .platform-primary {
    padding: 12px 10px;
  }
  .platform-hero-actions {
    gap: 12px;
  }
  .platform-product-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  .platform-frame .platform-rail,
  .platform-desktop-navigation,
  .platform-home-search,
  .platform-hero-actions {
    display: none !important;
  }
  .platform-frame body > main,
  .platform-frame body > .site-footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .platform-frame body {
    background: #fff;
    color: #111;
  }
}
@media print {
  html.platform-frame,
  html.platform-frame.dark {
    --p-bg: #fff;
    --p-panel: #fff;
    --p-raised: #fff;
    --p-text: #111;
    --p-muted: #444;
    --p-line: #ccc;
    --p-accent: #111;
    --p-tint: #fff;
  }
}
/* Existing shell styles load later; keep the selected navigation understated. */
html.platform-frame .site-header .site-nav-link[aria-current="page"] {
  background: transparent;
  color: var(--p-text);
  border-bottom-color: var(--p-accent);
}
.platform-network-mark-light {
  display: block;
}
.platform-network-mark-dark {
  display: none;
}
.dark .platform-network-mark-light {
  display: none;
}
.dark .platform-network-mark-dark {
  display: block;
}
@media (min-width: 374px) {
  .platform-frame .site-brand-name {
    display: block;
  }
}

/* Consistent workspace navigation and compact mobile switcher. */
.platform-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-muted);
  flex: none;
  width: 22px;
  min-height: 22px;
}
.platform-frame .platform-rail nav a[aria-current="page"] .platform-link-icon,
.platform-frame
  .platform-switcher-panel
  a[aria-current="page"]
  .platform-link-icon {
  color: var(--p-accent);
}
.platform-frame .navigation-trigger {
  border: 1px solid var(--p-line);
  border-radius: 5px;
  background: var(--p-panel);
}
.platform-frame .navigation-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(430px, calc(100vw - 20px));
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--p-line);
  border-radius: 0;
  background: var(--p-panel);
  color: var(--p-text);
  box-shadow: -20px 0 80px #0004;
}
.platform-frame .navigation-drawer::backdrop {
  background: #080c16a6;
  backdrop-filter: blur(5px);
}
.platform-frame .drawer-top {
  padding: 22px 20px;
  border-bottom: 1px solid var(--p-line);
  gap: 20px;
  background: var(--p-bg);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.platform-frame .drawer-eyebrow {
  font: 9px/1.6 monospace;
  letter-spacing: 0.14em;
  color: var(--p-muted);
  margin: 0 0 2px;
}
.platform-frame .drawer-top h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.platform-frame .drawer-close {
  border: 1px solid var(--p-line);
  border-radius: 5px;
  background: var(--p-panel);
  width: 40px;
  height: 40px;
  color: var(--p-muted);
}
.platform-frame .drawer-content {
  padding: 20px 14px;
  scrollbar-width: thin;
}
.platform-frame .drawer-section-title {
  font: 9px/1.5 monospace;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  padding: 0 12px;
  color: var(--p-muted);
}
.drawer-workspaces {
  display: grid;
  gap: 3px;
}
.drawer-workspaces > a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 3px;
  color: var(--p-text);
}
.drawer-workspaces > a strong {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  display: block;
}
.drawer-workspaces > a:hover {
  background: var(--p-raised);
}
.drawer-workspaces > a[aria-current="page"] {
  background: var(--p-tint);
  color: var(--p-accent);
  border-left-color: var(--p-accent);
}
.drawer-workspaces > a[aria-current="page"] .platform-link-icon {
  color: var(--p-accent);
}
.platform-frame .drawer-information {
  margin-top: 22px;
  padding-top: 20px;
  border-color: var(--p-line);
}
.drawer-resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}
.platform-frame .drawer-resource-grid > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--p-muted);
  padding: 10px 12px;
  border-radius: 3px;
  min-height: 42px;
}
.platform-frame .drawer-resource-grid > a:hover {
  color: var(--p-accent);
  background: var(--p-tint);
}
.platform-frame .drawer-bottom {
  display: block;
  padding: 16px 20px max(16px, env(safe-area-inset-bottom));
  background: var(--p-bg);
  border-color: var(--p-line);
}
.drawer-account-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  min-height: 42px;
  border: 1px solid var(--p-line-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--p-text);
}
.platform-frame .drawer-bottom > p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 13px 0 0;
  font: 9px/1.5 monospace;
  color: var(--p-muted);
}
/* All workspace introductions use one hierarchy instead of legacy marketing heroes. */
.platform-frame body:not([data-workspace="home"]) > main > section:first-child {
  padding-top: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--p-line);
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  > div {
  max-width: 1280px;
  text-align: left;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 850px;
  margin-bottom: 15px;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  h1
  .block {
  display: inline;
  margin: 0;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  h1
  .block:before {
  content: " · ";
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  > div
  > p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 760px;
  margin-left: 0;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  > div
  > :is(span, p):first-child:not(h1) {
  background: transparent;
  border: 0;
  padding: 0;
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
  color: var(--p-accent);
  border-radius: 0;
  margin-bottom: 16px;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  dl {
  gap: 12px;
  margin-top: 24px;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  dl
  > div {
  padding: 18px 20px;
  background: var(--p-panel);
  border: 1px solid var(--p-line);
  border-radius: 5px;
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  dl
  dt {
  font: 10px/1.5 monospace;
  letter-spacing: 0.08em;
  color: var(--p-muted);
}
.platform-frame
  body:not([data-workspace="home"])
  > main
  > section:first-child
  dl
  dd {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
}
/* Guardian keeps its actual scan forms and results; only composition changes. */
.platform-frame
  body[data-workspace="guardian"]
  > main
  > section:first-child
  > div {
  max-width: 980px;
}
.platform-frame body[data-workspace="guardian"] .guardian-tabs {
  justify-content: flex-start;
  background: var(--p-panel);
  padding: 4px;
  border-radius: 5px;
  border: 1px solid var(--p-line);
  max-width: 720px;
  margin-left: 0;
}
.platform-frame body[data-workspace="guardian"] .guardian-tabs button {
  border-radius: 3px;
  box-shadow: none;
  font-size: 12px;
}
.platform-frame body[data-workspace="guardian"] #url-input {
  color: var(--p-text);
  font-size: 14px;
  min-height: 48px;
}
.platform-frame body[data-workspace="guardian"] #check-panel-url {
  max-width: 820px;
}
.platform-frame
  body[data-workspace="guardian"]
  main
  > section:not(:first-child) {
  background: transparent;
  border-top: 1px solid var(--p-line);
  padding-top: 40px;
  padding-bottom: 40px;
}
.platform-frame
  body[data-workspace="guardian"]
  main
  > section:not(:first-child)
  > div {
  max-width: 1280px;
  text-align: left;
}
.platform-frame
  body[data-workspace="guardian"]
  main
  > section:not(:first-child)
  .bg-indigo-50 {
  background: var(--p-panel);
  border: 1px solid var(--p-line);
  border-radius: 5px;
}
.platform-frame
  body[data-workspace="guardian"]
  main
  > section:not(:first-child)
  h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.platform-frame
  body[data-workspace="guardian"]
  main
  > section:not(:first-child)
  > div
  > span:first-child {
  background: transparent;
  color: var(--p-accent);
  padding: 0;
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
}
.platform-frame .guardian-toolbar {
  background: var(--p-panel);
  border-color: var(--p-line);
}
.platform-frame .guardian-toolbar-button {
  border-radius: 4px;
  font-size: 11px;
  border-color: var(--p-line);
}
/* Reading and catalog surfaces share the same restrained component language. */
.platform-frame
  main
  :is(
    .news-card,
    .campaign-card,
    .cve-card,
    .information-content > section,
    .information-content article
  ) {
  background: var(--p-panel);
  border-color: var(--p-line);
  border-radius: 5px;
}
.platform-frame .news-card {
  padding: 22px;
  gap: 0;
}
.platform-frame .news-card h3 {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.platform-frame .news-card .story-description {
  font-size: 13px;
  line-height: 1.9;
}
.platform-frame .blog-body {
  font-size: 16px;
  line-height: 1.95;
}
.platform-frame .platform-search,
.platform-frame .search-field {
  background: var(--p-panel);
  border-color: var(--p-line-strong);
  border-radius: 4px;
}
.platform-frame .filter-surface {
  background: var(--p-panel);
  border-color: var(--p-line);
  border-radius: 5px;
}
.platform-frame .filter-surface :is(input, select, button) {
  border-radius: 4px;
}
.platform-frame .news-page {
  border-color: var(--p-line);
  border-radius: 4px;
  font-size: 12px;
}
.platform-frame .news-page[aria-current="page"] {
  border-color: var(--p-solid);
  background: var(--p-solid);
  color: #fff;
}
@media (max-width: 767px) {
  .platform-frame .site-header-row {
    height: 64px;
  }
  .platform-frame .site-brand-name {
    display: block;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .platform-frame .site-brand img {
    width: 29px;
    height: 33px;
  }
  .platform-frame .site-header-actions {
    gap: 6px;
  }
  .platform-frame .account-signin {
    border: 0;
    padding: 8px 5px;
    min-height: 40px;
  }
  .platform-frame .navigation-trigger {
    width: 42px;
    height: 42px;
  }
  .platform-frame
    body:not([data-workspace="home"])
    > main
    > section:first-child {
    padding: 25px 18px;
  }
  .platform-frame
    body:not([data-workspace="home"])
    > main
    > section:first-child
    h1 {
    font-size: 29px;
    line-height: 1.2;
  }
  .platform-frame
    body:not([data-workspace="home"])
    > main
    > section:first-child
    > div
    > p {
    font-size: 13px;
  }
  .platform-frame
    body:not([data-workspace="home"])
    > main
    > section:first-child
    dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-frame
    body:not([data-workspace="home"])
    > main
    > section:first-child
    dl
    > div {
    padding: 15px;
  }
  .platform-frame
    body:not([data-workspace="home"])
    > main
    > section:first-child
    dl
    dd {
    font-size: 20px;
  }
  .platform-frame body[data-workspace="guardian"] .guardian-tabs {
    margin-top: 24px;
  }
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child) {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child)
    h2 {
    font-size: 24px;
  }
  .platform-frame .news-card {
    padding: 20px;
  }
}
@media (max-width: 359px) {
  .platform-frame .site-brand-name {
    font-size: 10px;
  }
  .platform-frame .site-header-actions {
    gap: 2px;
  }
  .platform-frame .site-header-row {
    padding-left: 12px;
    padding-right: 12px;
    gap: 6px;
  }
  .platform-frame .site-brand {
    gap: 6px;
  }
  .platform-frame .account-signin {
    font-size: 10px;
    padding: 6px 3px;
  }
  .platform-frame .drawer-top {
    padding: 18px 16px;
  }
  .platform-frame .drawer-content {
    padding: 16px 10px;
  }
  .platform-frame .drawer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 767px) {
  .platform-frame .site-header #account-dashboard {
    display: none;
  }
}
.platform-frame .platform-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  font: 10px/1.6 monospace;
  color: var(--p-muted);
  flex-wrap: wrap;
}
.platform-frame main table {
  font-size: 12px;
  border-color: var(--p-line);
}
.platform-frame main table th {
  font: 10px/1.6 monospace;
  letter-spacing: 0.06em;
  color: var(--p-muted);
  background: var(--p-raised);
  padding-top: 14px;
  padding-bottom: 14px;
}
.platform-frame main table tbody td {
  border-color: var(--p-line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.platform-frame main table tbody tr:hover {
  background: var(--p-tint);
}
.platform-frame .mobile-result-table tbody tr {
  border-radius: 5px;
  background: var(--p-panel);
  border-color: var(--p-line);
}
@media (max-width: 767px) {
  .platform-frame .mobile-result-table tbody td {
    padding-top: 0;
    padding-bottom: 0;
  }
  .platform-frame .platform-breadcrumb {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 9px;
  }
  .platform-frame .information-layout {
    padding-top: 24px;
  }
  .platform-frame .information-layout > section {
    padding: 20px;
  }
}
@media (max-width: 767px) {
  .platform-frame .site-header-row {
    padding-left: 18px;
    padding-right: 18px;
  }
}
/* Composite fields own one focus ring; do not draw a second one on the input. */
.platform-frame
  :is(.platform-search, .search-bar, .platform-home-search)
  input:focus,
.platform-frame
  :is(.platform-search, .search-bar, .platform-home-search)
  input:focus-visible {
  outline: none;
  box-shadow: none;
}
.platform-frame
  :is(.platform-search, .search-bar, .platform-home-search):focus-within {
  border-color: var(--p-accent);
  box-shadow: 0 0 0 2px #9690ff33;
}
.platform-frame .site-footer :is(p, small) {
  color: var(--p-muted);
}
/* Keep secondary guidance compact, rather than stacking oversized marketing cards. */
.platform-frame:not(.dark) main .text-gray-400 {
  color: var(--p-muted);
}
.platform-frame body[data-workspace="guardian"] #stats-section h2 {
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--p-muted);
  margin-bottom: 20px;
}
.platform-frame body[data-workspace="guardian"] #stats-section .grid > div {
  padding: 18px;
  text-align: left;
  border-radius: 5px;
  background: var(--p-panel);
  border-color: var(--p-line);
}
.platform-frame
  body[data-workspace="guardian"]
  #stats-section
  .grid
  > div
  > div:first-child {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.platform-frame
  body[data-workspace="guardian"]
  #stats-section
  .grid
  > div
  > div:last-child {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--p-muted);
}
@media (max-width: 767px) {
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child)
    .bg-indigo-50 {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child)
    .bg-indigo-50
    > div:first-child {
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin: 0;
    font-size: 15px;
  }
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child)
    .bg-indigo-50
    > h3 {
    grid-column: 2;
    font-size: 14px;
    margin: 0 0 8px;
  }
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child)
    .bg-indigo-50
    > p {
    grid-column: 2;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform-frame .navigation-drawer[open] {
    animation: none;
  }
}
/* OSINT owns its interactions, while sharing the platform's surface tokens. */
html.platform-frame .osint-workspace {
  --os-surface: var(--p-panel);
  --os-bg: var(--p-bg);
  --os-border: var(--p-line);
  --os-text: var(--p-text);
  --os-muted: var(--p-muted);
  --os-soft: var(--p-raised);
  --os-tint: var(--p-tint);
  --os-accent: var(--p-accent);
}
.platform-frame .osint-container {
  max-width: 1280px;
  padding-left: 28px;
  padding-right: 28px;
}
.platform-frame .osint-local-nav {
  gap: 24px;
  min-height: 48px;
  font-size: 11px;
  font-weight: 500;
}
.platform-frame .osint-hero {
  padding: 30px 0 28px;
  background: transparent;
  border-color: var(--p-line);
}
.platform-frame .osint-hero h1 {
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 14px 0;
}
.platform-frame .osint-eyebrow {
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
  color: var(--p-accent);
}
.platform-frame .osint-lead {
  font-size: 14px;
  line-height: 1.85;
  color: var(--p-muted);
  max-width: 760px;
}
.platform-frame .osint-modes {
  gap: 6px;
  border-radius: 5px;
  padding: 5px;
  background: var(--p-panel);
  border: 1px solid var(--p-line);
  margin-top: 24px;
}
.platform-frame .osint-modes button {
  border-radius: 3px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
}
.platform-frame .osint-modes button[aria-selected="true"] {
  background: var(--p-tint);
  color: var(--p-accent);
  box-shadow: inset 0 -2px var(--p-accent);
}
.platform-frame .osint-search {
  border: 1px solid var(--p-line-strong);
  background: var(--p-panel);
  border-radius: 4px;
  box-shadow: none;
}
.platform-frame .osint-search:focus-within {
  border-color: var(--p-accent);
  box-shadow: 0 0 0 2px #9690ff33;
}
.platform-frame .osint-search input:focus,
.platform-frame .osint-search input:focus-visible {
  outline: none;
  box-shadow: none;
}
.platform-frame .osint-search input {
  font-size: 14px;
}
.platform-frame
  .osint-workspace
  :is(.osint-primary, .osint-secondary, input, select, textarea) {
  border-radius: 4px;
}
.platform-frame
  .osint-workspace
  :is(
    .osint-card,
    .osint-workbench,
    .osint-workbench-tool,
    .osint-evidence-panel,
    .osint-upload
  ) {
  border-radius: 5px;
  background: var(--p-panel);
  border-color: var(--p-line);
  box-shadow: none;
}
.platform-frame .osint-card {
  padding: 22px;
}
.platform-frame .osint-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.platform-frame .osint-card p {
  font-size: 13px;
  line-height: 1.85;
}
.platform-frame .osint-section-heading h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.platform-frame .osint-step {
  font: 11px/1.6 monospace;
  color: var(--p-accent);
}
.platform-frame .osint-provider-grid > div {
  padding: 16px;
  border-color: var(--p-line);
}
.platform-frame .osint-provider-grid h3 {
  font-size: 12px;
  letter-spacing: 0;
}
.platform-frame .osint-provider-grid p {
  font-size: 11px;
  line-height: 1.7;
}
.platform-frame .osint-source-mark {
  border-radius: 4px;
  background: var(--p-tint);
  color: var(--p-accent);
}
.platform-frame .osint-dialog {
  border-radius: 6px;
  padding: 25px;
  background: var(--p-panel);
  border-color: var(--p-line);
  color: var(--p-text);
}
.platform-frame .osint-dialog h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.platform-frame .osint-dialog p:not(.osint-dialog-eyebrow) {
  color: var(--p-muted);
  font-size: 13px;
}
.platform-frame .osint-dialog-eyebrow {
  color: var(--p-accent);
  font: 10px/1.6 monospace;
}
.platform-frame .osint-dialog .osint-secondary {
  background: var(--p-panel);
  border-color: var(--p-line);
  color: var(--p-text);
  border-radius: 4px;
}
@media (max-width: 767px) {
  .platform-frame .osint-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .platform-frame .osint-local-nav {
    gap: 16px;
    font-size: 10px;
    flex-wrap: wrap;
  }
  .platform-frame .osint-hero {
    padding: 24px 0;
  }
  .platform-frame .osint-hero h1 {
    font-size: 29px;
  }
  .platform-frame .osint-lead {
    font-size: 13px;
  }
  .platform-frame .osint-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .platform-frame .osint-modes button {
    font-size: 11px;
    white-space: normal;
    padding: 8px 5px;
  }
  .platform-frame .osint-search input {
    font-size: 13px;
  }
  .platform-frame .osint-card {
    padding: 20px;
  }
  .platform-frame .osint-section-heading h2 {
    font-size: 22px;
  }
  .platform-frame .osint-intro-grid {
    gap: 10px;
  }
  .platform-frame .osint-intro-grid article {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px 12px;
  }
  .platform-frame .osint-intro-grid .osint-step {
    grid-row: 1 / span 2;
    margin: 2px 0 0;
  }
  .platform-frame .osint-intro-grid h3,
  .platform-frame .osint-intro-grid p {
    grid-column: 2;
    margin: 0;
  }
  .platform-frame .osint-intro-grid p {
    font-size: 12px;
  }
}
@media print {
  html.platform-frame .osint-workspace {
    --os-surface: #fff;
    --os-bg: #fff;
    --os-border: #ccc;
    --os-text: #111;
    --os-muted: #444;
    --os-soft: #fff;
    --os-tint: #fff;
    --os-accent: #111;
  }
  .platform-frame .osint-card {
    background: #fff;
    color: #111;
  }
}
/* A full-width desktop frame must not stretch sign-in forms across the workspace. */
.platform-frame main:has(#login-form) > div {
  width: min(100%, 480px);
  margin-left: auto;
  margin-right: auto;
}
.platform-frame main:has(#login-form) {
  padding-top: 36px;
  padding-bottom: 40px;
}
.platform-frame main:has(#login-form) h1 {
  font-size: 30px;
  line-height: 1.25;
}
.platform-frame main:has(#login-form) > div:first-child > p {
  font-size: 13px;
  line-height: 1.8;
}
.platform-frame main:has(#login-form) > div:first-child > p:first-of-type {
  font: 10px/1.6 monospace;
  letter-spacing: 0.12em;
}
.platform-frame main:has(#login-form) :is(input, button) {
  border-radius: 4px;
}
.platform-frame main:has(#login-form) > div:last-child {
  background: var(--p-panel);
  border-color: var(--p-line);
  border-radius: 5px;
}
@media (max-width: 767px) {
  .platform-frame main:has(#login-form) {
    padding: 26px 18px;
  }
  .platform-frame main:has(#login-form) h1 {
    font-size: 27px;
  }
}
/* Text-entry controls stay legible and avoid automatic focus zoom on phones. */
@media (max-width: 767px) {
  .platform-frame
    main
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .platform-frame main select,
  .platform-frame main textarea {
    font-size: 16px;
    min-width: 0;
    max-width: 100%;
  }
}
.platform-frame .dashboard-subtitle {
  color: var(--p-muted);
}
.platform-frame .osint-search button {
  border-radius: 4px;
}
.platform-frame .osint-source-list > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--p-accent);
}
.platform-frame .osint-source-list[open] > summary {
  border-bottom: 1px solid var(--p-line);
  margin-bottom: 16px;
}
.platform-frame .osint-source-directory .osint-provider-grid {
  gap: 12px;
}
.platform-frame .osint-source-directory .osint-provider-grid > div {
  padding: 12px;
  min-height: 0;
}
.platform-frame body[data-workspace="profile"] .workspace-navigation,
.platform-frame body[data-workspace="settings"] .workspace-navigation,
.platform-frame body[data-workspace="dashboard"] .workspace-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--p-line);
  border-radius: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
}
.platform-frame body[data-workspace="profile"] .workspace-navigation a,
.platform-frame body[data-workspace="settings"] .workspace-navigation a,
.platform-frame body[data-workspace="dashboard"] .workspace-navigation a {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--p-muted);
  font-size: 12px;
  font-weight: 500;
}
.platform-frame
  body[data-workspace="profile"]
  .workspace-navigation
  a[aria-current="page"],
.platform-frame
  body[data-workspace="settings"]
  .workspace-navigation
  a[aria-current="page"],
.platform-frame
  body[data-workspace="dashboard"]
  .workspace-navigation
  a[aria-current="page"] {
  border-bottom-color: var(--p-accent);
  color: var(--p-accent);
  background: transparent;
}
.platform-frame .dashboard-primary-action {
  border-radius: 4px;
  background: var(--p-solid);
  font-size: 12px;
  padding: 10px 16px;
  box-shadow: none;
}
.platform-frame .account-form :is(input, select, textarea) {
  border-radius: 4px;
  border-color: var(--p-line);
  background: var(--p-panel);
}
.platform-frame .account-help,
.platform-frame .account-section-heading p {
  color: var(--p-muted);
}
/* A native country selector must not impose its longest option's width on a flex row. */
.platform-frame #heatmap .flex > div {
  min-width: 0;
  max-width: 100%;
}
.platform-frame #country-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.platform-hero-inner {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}
.platform-hero-inner > div {
  min-width: 0;
}
@media (max-width: 900px) {
  .platform-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Neutral legacy surfaces inherit the same warmth; semantic status colors stay intact. */
html.platform-frame
  :is(
    .investigation-card,
    .account-menu,
    .dashboard-dialog,
    .account-delete-dialog,
    .dashboard-menu,
    .auth-oauth
  ) {
  background: var(--p-panel);
  border-color: var(--p-line);
  color: var(--p-text);
}
html.platform-frame .account-menu [role="menuitem"]:hover,
html.platform-frame .account-menu [role="menuitem"]:focus-visible {
  background: var(--p-tint);
  color: var(--p-accent);
}
html.platform-frame .account-menu-divider {
  background: var(--p-line);
}

/* OSINT shares Investigate's rail while retaining its research/report controls. */
html.platform-frame .workspace-main.osint-workspace {
  padding: 0;
}
.platform-frame .osint-dialog {
  border-radius: 5px;
}
.platform-frame .osint-dialog :is(button, input, select, textarea) {
  border-radius: 4px;
}

/* Compact analytical surfaces, using AEGLIX tokens. Screen only; exports keep their paper layout. */
.workspace-quick-search {
  display: none;
}
@media screen {
  .platform-frame body:has(> .workspace-shell) .site-header-row {
    height: 56px;
  }
  .platform-frame body:has(> .workspace-shell) .site-nav-link {
    height: 56px;
  }
  .workspace-shell {
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: start;
  }
  .workspace-shell > .workspace-rail {
    position: sticky;
    top: 56px;
    height: calc(100dvh - 56px);
    overflow-y: auto;
    padding: 18px 8px;
    gap: 20px;
  }
  .workspace-shell .workspace-navigation {
    gap: 3px;
  }
  .workspace-shell .workspace-navigation a {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 4px;
  }
  .workspace-shell .workspace-identity strong {
    font-size: 13px;
  }
  .workspace-shell .workspace-rail-footer {
    font-size: 10px;
    gap: 12px;
  }
  .workspace-shell .workspace-main {
    padding: 20px;
  }
  .workspace-shell .workspace-heading {
    margin-bottom: 16px;
  }
  .workspace-shell .workspace-heading h1 {
    font-size: clamp(23px, 2vw, 28px);
    font-weight: 550;
    letter-spacing: -0.035em;
  }
  .workspace-shell .workspace-toolbar {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 12px;
  }
  .workspace-shell .workspace-toolbar .platform-search {
    border-radius: 4px;
    min-height: 44px;
  }
  .workspace-shell .workspace-toolbar .platform-search-action {
    border-radius: 3px;
  }
  .workspace-shell .workspace-disclosure {
    font-size: 11px;
  }
  .workspace-shell .workspace-inspection {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  .workspace-shell .workspace-inspector {
    padding: 16px;
    border-radius: 5px;
    top: 72px;
  }
  .workspace-shell .investigation-tabs {
    margin-bottom: 16px;
    gap: 4px;
  }
  .workspace-shell .investigation-tabs button {
    font-size: 11px;
    min-height: 40px;
    padding: 10px 12px;
  }
  .workspace-shell .investigation-card {
    padding: 16px;
    border-radius: 5px;
  }
  .workspace-shell .investigation-panel > h2 {
    font-size: 17px;
  }
  .workspace-shell .investigation-table td {
    padding: 11px 12px;
    font-size: 12px;
  }
  .workspace-shell .investigation-table tbody tr:nth-child(even) {
    background: var(--p-raised);
  }
  .workspace-shell .workspace-stats {
    border-radius: 5px;
  }
  .workspace-shell #investigation-empty {
    padding: 30px 20px;
    text-align: left;
  }
  .workspace-shell #investigation-empty h2 {
    font-size: 21px;
  }
  .workspace-shell .investigation-empty-copy {
    max-width: 660px;
    margin-inline: 0;
  }

  /* Keep source context beside the OSINT report, with compact section rows. */
  .workspace-shell .osint-container {
    max-width: none;
    padding-inline: 20px;
  }
  .workspace-shell .osint-hero {
    padding: 20px 0;
  }
  .workspace-shell .osint-hero h1 {
    font-size: clamp(25px, 2.2vw, 32px);
    margin: 8px 0;
  }
  .workspace-shell .osint-lead {
    font-size: 13px;
    margin-bottom: 16px;
  }
  .workspace-shell .osint-modes {
    margin-top: 18px;
    margin-bottom: 20px;
    padding: 3px;
    gap: 3px;
  }
  .workspace-shell .osint-modes button {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 11px;
  }
  .workspace-shell .osint-search {
    max-width: 900px;
  }
  .workspace-shell .osint-content {
    padding-top: 20px;
    padding-bottom: 28px;
  }
  .workspace-shell .osint-section-heading {
    margin-bottom: 16px;
  }
  .workspace-shell .osint-section-heading h2 {
    font-size: 23px;
  }
  .workspace-shell .osint-card {
    padding: 16px;
  }
  .workspace-shell .osint-records {
    gap: 12px;
  }
  .workspace-shell .osint-results-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
  }
  .workspace-shell .osint-results-layout > aside {
    position: sticky;
    top: 72px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  .workspace-shell .osint-card h3 {
    font-size: 16px;
  }
  .workspace-shell .osint-intro-grid article {
    padding: 16px;
  }
  .workspace-shell .osint-workbench-tool {
    padding: 16px;
  }
  .workspace-shell .osint-result-actions {
    gap: 6px;
  }
  .workspace-shell .osint-result-actions :is(a, button) {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }

  /* Case list, evidence records and notebook share one compact listing rhythm. */
  .workspace-shell .research-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
  }
  .workspace-shell .research-sidebar {
    top: 72px;
    padding: 14px;
  }
  .workspace-shell .research-panel {
    padding: 16px;
    border-radius: 5px;
    margin-bottom: 16px;
  }
  .workspace-shell .research-panel-heading {
    margin-bottom: 12px;
  }
  .workspace-shell .research-panel h2 {
    font-size: 17px;
  }
  .workspace-shell .research-case-item {
    padding: 12px 14px;
  }
  .workspace-shell .research-case-item strong {
    font-size: 12px;
  }
  .workspace-shell .research-list-head,
  .workspace-shell .research-evidence-row {
    grid-template-columns: minmax(0, 1fr) 120px 100px 60px;
    gap: 12px;
  }
  .workspace-shell .research-list-head {
    padding: 10px 12px;
    background: var(--p-raised);
    font: 9px/1.6 monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .workspace-shell .research-evidence-row {
    padding: 12px;
    border-bottom: 1px solid var(--p-line);
  }
  .workspace-shell .research-evidence-row:nth-child(even) {
    background: var(--p-raised);
  }
  .workspace-shell .research-evidence-row:hover {
    box-shadow: inset 2px 0 var(--p-accent);
  }
  .workspace-shell .research-evidence-row strong {
    font-size: 12px;
  }
  .workspace-shell .research-evidence-row :is(p, small) {
    font-size: 11px;
    line-height: 1.65;
  }
  .workspace-shell .research-button.primary {
    background: var(--p-solid);
    border-color: var(--p-solid);
  }
  .workspace-record-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-block: 1px solid var(--p-line);
    background: var(--p-panel);
  }
  .workspace-record-filter label {
    font-size: 11px;
    font-weight: 600;
  }
  .workspace-record-filter input {
    min-width: 0;
    flex: 1 1 180px;
    padding: 8px 10px;
    border: 1px solid var(--p-line-strong);
    border-radius: 4px;
    background: var(--p-bg);
    color: var(--p-text);
    font-size: 12px;
  }
  .workspace-record-filter span {
    font: 10px/1.6 monospace;
    color: var(--p-muted);
  }
}
@media screen and (min-width: 1200px) {
  .workspace-quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 340px;
    min-width: 180px;
    padding: 4px 10px;
    border: 1px solid var(--p-line);
    border-radius: 5px;
    color: var(--p-muted);
    background: var(--p-panel);
  }
  .workspace-quick-search input {
    width: 100%;
    min-width: 0;
    height: 28px;
    font-size: 11px;
    background: transparent;
    border: 0;
    color: var(--p-text);
    outline-offset: 2px;
  }
  .workspace-quick-search input::placeholder {
    color: var(--p-muted);
  }
  .workspace-quick-search button {
    font-size: 15px;
    padding: 3px;
    min-width: 24px;
  }
  .workspace-quick-search kbd {
    border-left: 1px solid var(--p-line);
    padding-left: 8px;
    font: 11px monospace;
  }
}
@media screen and (max-width: 1199px) {
  .workspace-shell .workspace-inspection,
  .workspace-shell .osint-results-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-shell .workspace-inspector,
  .workspace-shell .osint-results-layout > aside {
    position: static;
    max-height: none;
  }
  .workspace-shell .research-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .workspace-shell .research-list-head {
    display: none;
  }
  .workspace-shell .research-evidence-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
@media screen and (max-width: 950px) {
  .workspace-shell .research-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-shell .research-sidebar {
    position: static;
  }
}
@media screen and (max-width: 700px) {
  .workspace-shell {
    display: block;
  }
  .workspace-shell > .workspace-rail {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0 12px;
    gap: 0;
  }
  .workspace-shell .workspace-main {
    padding: 16px 12px;
  }
  .workspace-shell .osint-container {
    padding-inline: 16px;
  }
  .workspace-shell .osint-hero {
    padding-block: 18px;
  }
  .workspace-shell .osint-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-shell .osint-modes button {
    min-height: 44px;
    font-size: 12px;
  }
  .workspace-shell .research-evidence-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-shell .research-evidence-row > * {
    grid-column: 1;
    grid-row: auto;
  }
  .workspace-shell .workspace-record-filter input {
    font-size: 16px;
  }
  .workspace-shell .research-panel {
    padding: 14px;
  }
}

@media screen {
  .workspace-shell .workspace-snapshot {
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--p-line);
    color: var(--p-muted);
    font-size: 12px;
  }
  .workspace-shell .workspace-snapshot > summary {
    cursor: pointer;
    padding: 8px 0;
  }
}
@media print {
  .workspace-snapshot {
    display: none;
  }
}

/* Platform-wide analytical density: shared shell, catalogs, reading, accounts and operations. */
@media screen {
  .platform-frame .site-header-row,
  .platform-frame .site-nav-link {
    height: 56px;
  }
  .platform-frame .platform-breadcrumb {
    min-height: 30px;
    padding-block: 6px;
    font-size: 9px;
  }
  .platform-frame .site-footer {
    padding-block: 28px;
  }
  .platform-frame .site-footer .site-footer-list {
    gap: 8px;
  }
  .platform-frame
    body
    > main:not(.platform-home):not(.osint-workspace)
    > section:first-child {
    padding-block: 22px;
  }
  .platform-frame body > main:not(.platform-home) > section:first-child h1 {
    font-size: clamp(25px, 2.4vw, 34px);
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 550;
  }
  .platform-frame body > main:not(.platform-home) > section:first-child p {
    max-width: 820px;
  }
  .platform-frame body > main:not(.platform-home) > section:first-child dl {
    margin-top: 18px;
    gap: 10px;
  }
  .platform-frame
    body
    > main:not(.platform-home)
    > section:first-child
    dl
    > div {
    padding: 12px 14px;
    border-radius: 4px;
  }
  .platform-frame body > main:not(.platform-home) > section:first-child dl dd {
    font-size: 22px;
  }
  .platform-frame .filter-surface {
    padding: 12px;
  }
  .platform-frame .platform-search-block {
    margin-bottom: 16px;
  }
  .platform-frame main table :is(th, td) {
    padding: 10px 12px;
    font-size: 12px;
  }
  .platform-frame main table th {
    font-size: 9px;
  }
  .platform-frame main table tbody tr:nth-child(even) {
    background: var(--p-raised);
  }
  .platform-frame main table tbody tr:hover {
    background: var(--p-tint);
  }
  .platform-frame .information-layout {
    padding-block: 22px;
  }
  .platform-frame .information-layout > :is(section, article) {
    padding: 20px;
    border-radius: 5px;
  }
  .platform-frame .information-layout h2 {
    font-size: 21px;
  }
  .platform-frame .information-layout :is(p, li) {
    overflow-wrap: anywhere;
  }
  .platform-frame .information-layout :is(article, section) > p {
    max-width: 80ch;
  }
  .platform-frame .information-layout article > p.text-base {
    font-size: 16px;
    line-height: 1.85;
  }
  .platform-frame .information-layout article {
    max-width: 100%;
  }
  .platform-frame .information-layout .investigation-card {
    margin-bottom: 16px;
  }
  .platform-frame .blog-start {
    padding: 16px 20px;
    margin-block: 18px;
  }
  .platform-frame .blog-collection > section {
    margin-block: 24px;
  }
  .platform-frame .information-layout .blog-listing {
    padding: 16px 0;
    gap: 16px;
  }
  .platform-frame .information-layout .blog-listing h3 {
    font-size: 18px;
  }
  .platform-frame .blog-topics {
    gap: 6px;
  }
  .platform-frame .blog-body {
    max-width: 80ch;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.85;
  }

  /* Overview: bring tools and current activity closer to the search. */
  .platform-frame .platform-home-hero {
    padding-block: 26px;
  }
  .platform-frame .platform-hero-copy h1 {
    font-size: clamp(34px, 3.7vw, 52px);
  }
  .platform-frame .platform-hero-copy > p:not(.platform-eyebrow) {
    margin-block: 16px;
    font-size: 13px;
  }
  .platform-frame .platform-network > svg {
    max-height: 270px;
  }
  .platform-frame .platform-hero-actions {
    margin-top: 18px;
  }
  .platform-frame .platform-home-products {
    padding-top: 22px;
  }
  .platform-frame .platform-product-grid {
    gap: 10px;
  }
  .platform-frame .platform-product-grid article {
    padding: 16px;
  }
  .platform-frame .platform-product-grid h3 {
    margin-bottom: 8px;
  }
  .platform-frame .platform-product-grid article > p {
    margin-bottom: 10px;
  }
  .platform-frame .platform-home-stats {
    padding-block: 22px;
  }

  /* Feed and campaign entries use aligned rows instead of an expanding card wall. */
  .platform-frame #news-feed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--p-line);
    border-radius: 5px;
    overflow: hidden;
  }
  .platform-frame #news-feed .news-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 6px 24px;
    border: 0;
    border-bottom: 1px solid var(--p-line);
    border-radius: 0;
    padding: 16px 18px;
  }
  .platform-frame #news-feed .news-card:last-child {
    border-bottom: 0;
  }
  .platform-frame #news-feed .news-card:nth-child(even) {
    background: var(--p-raised);
  }
  .platform-frame #news-feed .news-card > div {
    grid-column: 1;
    margin: 0;
    font-size: 10px;
  }
  .platform-frame #news-feed .news-card h3 {
    grid-column: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }
  .platform-frame #news-feed .story-description {
    grid-column: 1;
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
  }
  .platform-frame #news-feed .news-card > p:not(.story-description) {
    grid-column: 2;
    margin: 0;
    font-size: 10px;
  }
  .platform-frame #news-feed .news-card > p:nth-last-child(2) {
    grid-row: 1 / span 2;
  }
  .platform-frame #news-feed .news-card > p:last-child {
    grid-row: 3;
  }
  .platform-frame #campaign-grid {
    gap: 12px;
  }
  .platform-frame #campaign-grid > article {
    padding: 16px;
    border-radius: 5px;
  }
  .platform-frame #campaign-grid h3 {
    font-size: 17px;
    line-height: 1.45;
  }
  .platform-frame #feed,
  .platform-frame #database {
    padding-block: 22px;
  }
  .platform-frame #source-guide {
    padding-bottom: 22px;
  }

  /* URL/message checks retain their focused forms, with less ornamental spacing. */
  .platform-frame
    body[data-workspace="guardian"]
    main
    > section:not(:first-child) {
    padding-block: 22px;
  }
  .platform-frame body[data-workspace="guardian"] main h2 {
    font-size: 22px;
  }
  .platform-frame body[data-workspace="guardian"] .guardian-tabs {
    margin-top: 18px;
  }
  .platform-frame .guardian-toolbar-inner {
    min-height: 40px;
  }
  .platform-frame .guardian-toolbar-button {
    min-height: 34px;
  }

  /* Account and operations surfaces use compact forms while preserving reading size. */
  .platform-frame .dashboard-heading {
    margin-bottom: 18px;
  }
  .platform-frame .dashboard-heading h1,
  .platform-frame .research-heading h1 {
    font-size: 28px;
    font-weight: 550;
  }
  .platform-frame .account-page-grid {
    gap: 16px;
  }
  .platform-frame .account-section,
  .platform-frame .profile-summary {
    padding: 18px;
  }
  .platform-frame .account-section-heading {
    margin-bottom: 14px;
  }
  .platform-frame .account-form {
    gap: 14px;
  }
  .platform-frame .research-dashboard .research-heading {
    padding-block: 4px 16px;
  }
  .platform-frame .research-dashboard .research-metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .platform-frame .research-dashboard .research-metric {
    padding: 14px;
    border-radius: 5px;
  }
  .platform-frame .research-dashboard .research-metric-value {
    font-size: 26px;
  }
  .platform-frame .research-dashboard .research-panel {
    padding: 16px;
    border-radius: 5px;
  }
  .platform-frame .research-dashboard .dashboard-table td {
    padding-block: 11px;
  }
  .platform-frame .research-dashboard .dashboard-table th {
    padding-block: 10px;
  }
  .platform-frame #news-admin-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .platform-frame #news-admin-content[hidden] {
    display: none;
  }
  .platform-frame #news-admin-list {
    display: grid;
    gap: 0;
  }
  .platform-frame #news-admin-list > * {
    margin-top: 0;
    border-bottom: 1px solid var(--p-line);
    padding-block: 12px;
  }
  .platform-frame #news-admin-list h3 {
    font-size: 15px;
    line-height: 1.5;
  }
  .platform-frame #news-admin-list p {
    font-size: 11px;
    margin-block: 6px;
  }
  .platform-frame #news-admin-content .investigation-card {
    padding: 18px;
    margin: 0;
    min-width: 0;
  }
  .platform-frame #news-admin-detail {
    overflow-wrap: anywhere;
  }
}
@media screen and (min-width: 1200px) {
  .platform-frame .platform-rail {
    top: 56px;
    padding-top: 18px;
  }
  .platform-frame .platform-rail nav {
    gap: 3px;
  }
  .platform-frame .platform-rail nav a {
    min-height: 38px;
    padding-block: 9px;
  }
  .platform-frame .platform-switcher-panel {
    top: calc(100% + 8px);
  }
  .platform-frame .workspace-quick-search {
    flex-basis: 300px;
  }
  .platform-frame #news-admin-content {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
    align-items: start;
  }
  .platform-frame #news-admin-detail {
    grid-column: 1 / -1;
  }
}
@media screen and (max-width: 767px) {
  .platform-frame .site-header-row,
  .platform-frame .site-nav-link {
    height: 56px;
  }
  .platform-frame .platform-home-hero {
    padding-block: 22px;
  }
  .platform-frame .platform-hero-copy h1 {
    font-size: 34px;
  }
  .platform-frame .platform-network > svg {
    max-height: none;
  }
  .platform-frame .information-layout > :is(section, article) {
    padding: 16px;
  }
  .platform-frame #news-feed .news-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 7px;
  }
  .platform-frame #news-feed .news-card > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .platform-frame .information-layout .blog-listing h3 {
    font-size: 18px;
  }
  .platform-frame .account-form :is(input, textarea, select) {
    font-size: 16px;
  }
  .platform-frame #news-admin-content {
    display: block;
  }
  .platform-frame #news-admin-content > .investigation-card {
    margin-bottom: 14px;
  }
}
@media screen and (min-width: 1000px) {
  .platform-frame #campaign-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--p-line);
    border-radius: 5px;
    overflow: hidden;
  }
  .platform-frame #campaign-grid > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 6px 24px;
    border: 0;
    border-bottom: 1px solid var(--p-line);
    border-radius: 0;
  }
  .platform-frame #campaign-grid > article:nth-child(even) {
    background: var(--p-raised);
  }
  .platform-frame #campaign-grid > article > div {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .platform-frame #campaign-grid > article > h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 18px;
  }
  .platform-frame #campaign-grid > article > p:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 13px;
  }
  .platform-frame
    #campaign-grid
    > article
    > p:nth-child(n + 4):nth-child(-n + 7) {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
  }
  .platform-frame #campaign-grid > article > p:nth-child(4) {
    grid-row: 1;
  }
  .platform-frame #campaign-grid > article > p:nth-child(5) {
    grid-row: 2;
  }
  .platform-frame #campaign-grid > article > p:nth-child(6) {
    grid-row: 3;
  }
  .platform-frame #campaign-grid > article > p:nth-child(7) {
    grid-row: 4;
  }
  .platform-frame #campaign-grid > article > p:nth-child(8) {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
  }
  .platform-frame #campaign-grid > article > button {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
    font-size: 11px;
    margin-top: 8px;
  }
}
/* Legacy search surfaces and signed-in dashboard tokens must inherit the same theme. */
html.platform-frame .search-field.platform-search {
  background: var(--p-panel);
  border-color: var(--p-line-strong);
  border-radius: 4px;
}
html.platform-frame .platform-search .platform-search-action {
  background: var(--p-solid);
  border-radius: 3px;
  font-size: 12px;
}
html.platform-frame .research-dashboard {
  --rd-bg: var(--p-bg);
  --rd-surface: var(--p-panel);
  --rd-muted: var(--p-raised);
  --rd-border: var(--p-line);
  --rd-text: var(--p-text);
  --rd-secondary: var(--p-muted);
  --rd-accent: var(--p-accent);
}
html.platform-frame .research-dialog {
  --r-bg: var(--p-panel);
  --r-surface: var(--p-bg);
  --r-border: var(--p-line);
  --r-text: var(--p-text);
  --r-muted: var(--p-muted);
  --r-accent: var(--p-accent);
}
html.platform-frame .account-subnav {
  background: var(--p-panel);
  border-color: var(--p-line);
}
html.platform-frame .account-subnav a {
  color: var(--p-muted);
}
html.platform-frame .account-subnav a[aria-current="page"] {
  background: var(--p-tint);
  color: var(--p-accent);
}

/* The site footer is outside the workspace and follows all content, including short pages. */
@media screen {
  html.platform-frame body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }
  html.platform-frame
    body
    > :is(
      .site-header,
      .guardian-toolbar,
      .product-bar,
      .demo-note,
      nav[aria-label="Breadcrumb"]
    ) {
    flex-shrink: 0;
  }
  html.platform-frame body > :is(main, .workspace-shell) {
    flex: 1 0 auto;
    min-width: 0;
  }
  html.platform-frame body > .site-footer {
    flex-shrink: 0;
    width: 100%;
    margin: auto 0 0;
    position: relative;
    z-index: 21;
    background: var(--p-raised);
    border-top: 1px solid var(--p-line-strong);
    padding: 0;
    color: var(--p-muted);
  }
  html.platform-frame .site-footer > :is(.max-w-6xl, .container) {
    max-width: 1400px;
    margin-inline: auto;
    padding: 28px;
  }
  html.platform-frame .site-footer .site-footer-label {
    margin: 0 0 22px;
    font: 10px/1.6 monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p-muted);
  }
  html.platform-frame .site-footer .site-footer-bottom {
    border-top: 1px solid var(--p-line);
    margin-top: 24px;
    padding-top: 16px;
    font-size: 11px;
  }
  html.platform-frame body > .platform-rail {
    bottom: var(--platform-footer-inset, 0px);
  }
  html.platform-frame body > .platform-rail[data-footer-covered] {
    visibility: hidden;
  }
}
@media screen and (max-width: 767px) {
  html.platform-frame .site-footer > :is(.max-w-6xl, .container) {
    padding: 24px 18px;
  }
}
