:root {
  --bg-top: #fbf5ed;
  --bg-bottom: #eadfcb;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(246, 248, 251, 0.78);
  --surface-dark: rgba(14, 31, 58, 0.96);
  --line: rgba(16, 38, 68, 0.1);
  --line-strong: rgba(255, 255, 255, 0.12);
  --ink: #10213a;
  --ink-soft: rgba(16, 33, 58, 0.7);
  --ink-faint: rgba(16, 33, 58, 0.5);
  --ink-inverse: rgba(247, 249, 252, 0.92);
  --brand: #006cb7;
  --brand-strong: #00528d;
  --brand-bright: #41b5e6;
  --accent: #ae028c;
  --teal: #0f7a72;
  --amber: #cb7a34;
  --shadow-xl: 0 32px 90px rgba(16, 33, 58, 0.12);
  --shadow-lg: 0 20px 56px rgba(16, 33, 58, 0.12);
  --shadow-md: 0 14px 34px rgba(16, 33, 58, 0.09);
  --shadow-sm: 0 6px 18px rgba(16, 33, 58, 0.06);
  --radius-xxl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body[data-ui-mode="dark"] {
  --bg-top: #091321;
  --bg-bottom: #0f1d31;
  --surface: rgba(18, 31, 50, 0.78);
  --surface-strong: rgba(20, 35, 56, 0.92);
  --surface-soft: rgba(17, 30, 48, 0.82);
  --line: rgba(171, 203, 242, 0.14);
  --ink: #edf4ff;
  --ink-soft: rgba(237, 244, 255, 0.76);
  --ink-faint: rgba(237, 244, 255, 0.56);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 108, 183, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.16), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(174, 2, 140, 0.08), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body[data-ui-mode="dark"] {
  background:
    radial-gradient(circle at top left, rgba(0, 108, 183, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.14), transparent 26%),
    radial-gradient(circle at 72% 18%, rgba(174, 2, 140, 0.1), transparent 18%),
    linear-gradient(180deg, #091321 0%, #0f1d31 100%);
}

body.drawer-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 78%);
  opacity: 0.42;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing-shell,
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1600px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.landing-topbar,
.app-topbar,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.landing-topbar-actions,
.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.brand-home-link:hover .brand-name,
.brand-home-link:focus-visible .brand-name {
  color: var(--brand-strong);
}

.brand-home-link:focus-visible {
  outline: 2px solid rgba(0, 108, 183, 0.32);
  outline-offset: 6px;
  border-radius: 14px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.98) 0 11%, transparent 12%),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.98) 0 11%, transparent 12%),
    linear-gradient(135deg, transparent 34%, rgba(255, 255, 255, 0.96) 35% 48%, transparent 49% 51%, rgba(255, 255, 255, 0.96) 52% 65%, transparent 66%),
    linear-gradient(145deg, var(--brand-strong), var(--brand) 42%, var(--brand-bright) 72%, var(--accent));
  box-shadow:
    0 0 0 8px rgba(0, 108, 183, 0.08),
    0 10px 18px rgba(16, 33, 58, 0.12);
}

body[data-ui-mode="dark"] .brand-mark {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 8px rgba(65, 181, 230, 0.08),
    0 10px 18px rgba(4, 10, 18, 0.34);
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.app-page .brand-subtitle,
.app-page .section-kicker {
  display: none;
}

.landing-main {
  display: grid;
  gap: 22px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  min-height: 72svh;
  padding: 34px 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 248, 244, 0.9) 42%, rgba(233, 243, 249, 0.95) 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(250, 246, 240, 0.995) 0%, rgba(249, 245, 239, 0.985) 24%, rgba(247, 243, 238, 0.92) 40%, rgba(241, 238, 234, 0.62) 52%, rgba(10, 24, 45, 0.62) 100%),
    radial-gradient(circle at right top, rgba(65, 181, 230, 0.22), rgba(65, 181, 230, 0) 34%);
}

.landing-hero-copy,
.landing-proof {
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  align-self: center;
  max-width: 42rem;
  padding: 18px 22px 20px 8px;
}

.landing-hero-copy::before {
  content: "";
  position: absolute;
  inset: -18px -18px -18px -20px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(251, 248, 244, 0.96), rgba(250, 246, 241, 0.92) 58%, rgba(249, 245, 239, 0.46) 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 40px rgba(10, 24, 45, 0.12);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.landing-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
  color: var(--brand-strong);
}

.landing-note {
  max-width: 44ch;
  margin: 16px 0 0;
  color: rgba(16, 33, 58, 0.96);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.58;
}

.landing-actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.landing-support {
  max-width: 52ch;
  margin: 0;
  color: rgba(16, 33, 58, 0.74);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.landing-cta.primary {
  width: fit-content;
  background: linear-gradient(135deg, var(--accent), #7f0e89);
  color: white;
  box-shadow: 0 18px 34px rgba(174, 2, 140, 0.28);
}

.landing-cta-main {
  min-height: 64px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-cta.ghost,
.app-nav-link,
.workspace-nav-link {
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
}

body[data-ui-mode="dark"] .landing-cta.ghost,
body[data-ui-mode="dark"] .workspace-nav-link {
  border-color: rgba(171, 203, 242, 0.12);
  background: rgba(17, 30, 48, 0.78);
  color: var(--ink-soft);
}

.workspace-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(16, 38, 68, 0.08);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.nav-count.is-empty {
  background: rgba(16, 38, 68, 0.06);
  color: rgba(16, 38, 68, 0.46);
}

.workspace-nav-link.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  border-color: rgba(0, 108, 183, 0.35);
  color: white;
  box-shadow: 0 10px 22px rgba(0, 108, 183, 0.18);
}

.workspace-nav-link.active .nav-count {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.landing-proof {
  align-self: start;
  justify-self: end;
  width: min(100%, 34rem);
}

.landing-proof-card {
  padding: 24px 26px;
  border-radius: 28px;
  background: rgba(249, 245, 239, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.landing-proof-card h2 {
  margin: 0;
  max-width: 16ch;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.landing-proof-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.landing-proof-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.landing-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.landing-rail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.landing-panel {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.84));
  box-shadow: var(--shadow-lg);
}

.landing-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-panel-grid h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.landing-panel-grid p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.landing-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: var(--ink-soft);
  font-weight: 700;
}

.landing-coverage-summary {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.app-topbar {
  margin-bottom: 10px;
}

.app-workspace {
  margin-top: 0;
}

.theme-switcher,
.coverage-pills,
.state-toggle,
.prompt-row,
.intent-bar,
.detail-chips,
.result-tags,
.result-actions,
.selected-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-pill,
.scope-pill,
 .state-pill,
.rail-pill,
.prompt-chip,
.signal-chip,
.detail-chip,
.meta-pill,
.rank-badge,
.scope-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.theme-switcher {
  gap: 8px;
}

.theme-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.theme-mode-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 108, 183, 0.18);
  color: var(--ink);
}

.theme-mode-toggle-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
}

.theme-mode-toggle[data-mode="light"] .theme-mode-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1.5px dashed rgba(0, 108, 183, 0.4);
}

.theme-mode-toggle[data-mode="dark"] .theme-mode-toggle-icon {
  border-color: transparent;
  background: currentColor;
  box-shadow: inset -5px 0 0 rgba(9, 19, 33, 1);
}

.theme-mode-toggle-sidebar {
  margin-top: 12px;
}

body[data-ui-mode="dark"] .theme-mode-toggle {
  background: rgba(17, 30, 48, 0.82);
  border-color: rgba(171, 203, 242, 0.14);
  color: var(--ink-soft);
}

body[data-ui-mode="dark"] .theme-mode-toggle:hover {
  border-color: rgba(65, 181, 230, 0.24);
  color: var(--ink);
}

.theme-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.theme-pill.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: white;
}

.hero-panel,
.rail-panel,
.search-stage,
.evidence-stage,
.analysis-context-stage,
.analysis-stage,
.results-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 248, 244, 0.84) 44%, rgba(236, 241, 247, 0.92) 100%);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(251, 246, 238, 0.94) 0%, rgba(247, 242, 235, 0.78) 38%, rgba(16, 38, 68, 0.18) 100%),
    radial-gradient(circle at right top, rgba(73, 123, 194, 0.18), rgba(73, 123, 194, 0) 34%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 36%;
  bottom: -130px;
  width: 380px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 122, 114, 0.12), rgba(15, 122, 114, 0));
}

body[data-theme="photo"] .hero-panel::before {
  background:
    linear-gradient(102deg, rgba(249, 244, 237, 0.99) 0%, rgba(247, 242, 236, 0.96) 18%, rgba(243, 239, 233, 0.9) 32%, rgba(238, 234, 229, 0.72) 44%, rgba(14, 31, 58, 0.5) 100%),
    radial-gradient(circle at right top, rgba(73, 123, 194, 0.18), rgba(73, 123, 194, 0) 34%);
}

body[data-theme="photo"] .hero-panel {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.9s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(98deg, rgba(8, 22, 43, 0.46) 0%, rgba(8, 22, 43, 0.24) 28%, rgba(8, 22, 43, 0.08) 42%, rgba(8, 22, 43, 0.44) 100%),
    radial-gradient(circle at 82% 18%, rgba(65, 181, 230, 0.24), rgba(65, 181, 230, 0) 32%);
}

body[data-theme="glass"] .hero-media {
  display: none;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 31rem;
  padding: 6px 8px 10px 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -12px -14px -12px -16px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(249, 244, 237, 0.84), rgba(249, 244, 237, 0.52) 58%, rgba(249, 244, 237, 0.08) 100%);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.hero-photo-meta {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
}

.hero-photo-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 108, 183, 0.78);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(14px);
}

.eyebrow,
.section-kicker,
.metric-label {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 10.5ch;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(2.45rem, 3.7vw, 4.2rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-note {
  max-width: 47ch;
  margin: 12px 0 0;
  color: rgba(16, 33, 58, 0.82);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-side {
  display: grid;
  align-content: start;
}

.hero-proof {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(249, 245, 239, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.hero-proof .section-kicker {
  margin-bottom: 0;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-proof-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-proof-item {
  display: grid;
  gap: 5px;
}

.hero-proof-item strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.scope-pill {
  min-height: 30px;
  padding: 0 12px;
  background: rgba(16, 38, 68, 0.08);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.scope-count {
  min-height: 30px;
  padding: 0 12px;
  background: rgba(65, 181, 230, 0.14);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-top: 2px;
}

.hero-domain-item {
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.workspace {
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}

.control-rail {
  align-self: start;
}

.rail-panel {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(0, 82, 141, 0.98), rgba(0, 108, 183, 0.96) 72%, rgba(0, 92, 156, 0.98));
  color: var(--ink-inverse);
  box-shadow: var(--shadow-lg);
}

.rail-panel > .rail-head {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.rail-head,
.results-head,
.stage-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.rail-head {
  margin-bottom: 18px;
}

.rail-head h2,
.results-head h2,
.stage-head h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.rail-head h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.1;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: rgba(247, 249, 252, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.query-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.field input {
  min-height: 48px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.state-pill {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.state-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.state-pill:hover,
.theme-pill:hover,
.prompt-chip:hover,
.locality-item button:hover,
.primary-button:hover,
.result-link:hover,
.copy-button:hover,
.save-button:hover,
.tray-button:hover,
.remove-tray-item:hover {
  transform: translateY(-1px);
}

.state-pill.active {
  background: white;
  color: var(--brand-strong);
}

.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}

.rail-pill {
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-inverse);
  font-size: 0.82rem;
  font-weight: 800;
}

.ghost-button {
  border: 0;
  background: transparent;
  color: var(--ink-inverse);
  cursor: pointer;
  font-weight: 700;
}

.rail-shelf {
  display: grid;
  gap: 14px;
}

.rail-block {
  display: grid;
  gap: 10px;
}

.rail-block-light {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rail-block-light .section-kicker {
  margin-bottom: 8px;
}

.rail-block-light .rail-pill {
  background: rgba(16, 38, 68, 0.08);
  color: var(--brand);
}

.locality-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.browse-button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 999px;
  background: rgba(0, 108, 183, 0.06);
  color: var(--brand);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.rail-block-light .rail-head {
  margin-bottom: 6px;
}

.selected-stack {
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.selected-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.selected-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
}

.locality-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.picker-state {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px dashed rgba(16, 38, 68, 0.12);
  border-radius: 16px;
  background: rgba(0, 108, 183, 0.03);
}

.picker-state strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.picker-state span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.picker-state-subtle {
  border-style: solid;
  background: rgba(16, 38, 68, 0.04);
}

.locality-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 38, 68, 0.07);
  box-shadow: var(--shadow-sm);
}

.locality-item button {
  width: 100%;
  padding: 12px 13px;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}

.content-stage {
  display: grid;
  gap: 18px;
  align-self: start;
  align-content: start;
}

.search-stage,
.evidence-stage,
.analysis-context-stage,
.analysis-stage,
.results-stage {
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 252, 0.88));
}

.search-stage::before,
.evidence-stage::before,
.analysis-context-stage::before,
.analysis-stage::before,
.results-stage::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 280px;
  height: 180px;
  background: radial-gradient(circle, rgba(65, 181, 230, 0.16), rgba(65, 181, 230, 0));
  pointer-events: none;
}

.stage-head {
  margin-bottom: 16px;
}

.query-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search-form {
  margin-bottom: 14px;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.query-input {
  min-height: 68px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(16, 38, 68, 0.08);
  color: var(--ink);
  font-size: 1.08rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 24px rgba(16, 33, 58, 0.06);
}

.query-input::placeholder {
  color: var(--ink-faint);
}

.primary-button,
.result-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.primary-button {
  min-width: 134px;
  min-height: 68px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #7f0e89);
  color: white;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(174, 2, 140, 0.22);
}

.prompt-row {
  gap: 8px;
}

.prompt-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.intent-bar {
  margin-top: 16px;
}

.signal-chip,
.detail-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.signal-chip {
  background: rgba(65, 181, 230, 0.14);
  color: var(--brand);
  font-weight: 800;
}

.detail-chip {
  background: rgba(16, 38, 68, 0.06);
  color: var(--ink-soft);
  font-weight: 700;
}

.details-block {
  margin-top: 12px;
  border-top: 1px solid rgba(16, 38, 68, 0.08);
  padding-top: 12px;
}

.details-block summary {
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-chips {
  margin-top: 12px;
}

.results-head {
  align-items: center;
  margin-bottom: 16px;
}

.evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.analysis-context-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analysis-context-copy h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.analysis-context-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 60ch;
}

.analysis-context-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.handoff-cta {
  min-height: 46px;
}

.evidence-head h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.evidence-actions,
.tray-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.results-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.results-head-actions .tray-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.evidence-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(65, 181, 230, 0.14);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
}

.tray-button,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(16, 38, 68, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ghost-tray-button {
  background: rgba(0, 108, 183, 0.06);
}

.tray-button:disabled {
  opacity: 0.48;
  cursor: default;
  transform: none;
}

.tray-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tray-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.tray-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tray-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tray-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.analysis-list {
  display: grid;
  gap: 14px;
}

.comparison-stage {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 38, 68, 0.08);
}

.comparison-head {
  margin-bottom: 0;
}

.comparison-card {
  background: rgba(252, 253, 255, 0.9);
}

.workspace-visual-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.workspace-visual-sort {
  min-width: 220px;
}

.workspace-visual-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.workspace-visual-format {
  min-width: 110px;
}

.workspace-visual-format select {
  min-width: 110px;
}

.workspace-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.workspace-visual-card {
  gap: 16px;
}

.workspace-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.workspace-visual-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.08;
}

.workspace-chart-shell {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 108, 183, 0.1);
  background: rgba(244, 249, 253, 0.92);
  padding: 16px;
}

.workspace-chart-svg {
  width: 100%;
  height: auto;
  color: var(--ink);
  display: block;
}

.workspace-trend-table-wrap {
  margin-top: 2px;
}

.analysis-card,
.analysis-alert {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.analysis-card h3,
.analysis-alert strong {
  margin: 0 0 6px;
  font-size: 1.04rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.analysis-card p,
.analysis-alert span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.analysis-note {
  font-weight: 600;
}

.analysis-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.analysis-toolbar-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.analysis-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.analysis-toolbar-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.analysis-toolbar-slim {
  gap: 14px;
  padding-bottom: 2px;
}

.analysis-toolbar-main-slim {
  justify-content: flex-end;
  flex: 1 1 520px;
}

.analysis-toolbar-actions-slim {
  margin-left: auto;
}

.packet-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) auto minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.analysis-filter,
.analysis-sort {
  display: grid;
  gap: 6px;
}

.analysis-filter span,
.analysis-sort span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-filter input,
.analysis-sort select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.analysis-sort-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.analysis-sort-inline span {
  flex: 0 0 auto;
  margin: 0;
}

.analysis-sort-inline select {
  min-width: 180px;
}

.analysis-highlights {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.warning-highlights {
  margin-top: -2px;
}

.warning-chip {
  background: rgba(174, 2, 140, 0.1);
  color: #7f1668;
}

.diagnostic-highlights {
  margin-top: -2px;
}

.diagnostic-chip {
  background: rgba(0, 108, 183, 0.08);
  color: #0a5f9c;
}

.analysis-error-detail {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.analysis-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 108, 183, 0.1);
  background: rgba(244, 249, 253, 0.92);
}

.benchmark-section,
.analysis-benchmark-block {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.benchmark-section-meta,
.analysis-benchmark-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.analysis-benchmark-head h4 {
  margin: 0;
  font-size: 1rem;
}

.analysis-benchmark-head p,
.benchmark-section-note {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.benchmark-table-wrap {
  border-color: rgba(174, 2, 140, 0.16);
  background: linear-gradient(180deg, rgba(251, 247, 252, 0.94), rgba(244, 249, 253, 0.92));
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.analysis-table th,
.analysis-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 38, 68, 0.08);
  text-align: left;
}

.analysis-table th {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-table td {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.analysis-table tbody tr:last-child td {
  border-bottom: 0;
}

.analysis-table tr.benchmark-row td,
.data-table tr.benchmark-row td,
.comparison-table tr.benchmark-row td {
  background: rgba(0, 130, 215, 0.06);
  color: #0b69b9;
  font-weight: 800;
}

.analysis-table tr.benchmark-row td:first-child,
.data-table tr.benchmark-row td:first-child,
.comparison-table tr.benchmark-row td:first-child {
  color: #0a4f8f;
}

.analysis-alerts {
  display: grid;
  gap: 10px;
}

.analysis-alert-actions,
.empty-state-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.analysis-alert-actions {
  justify-content: flex-start;
}

.tray-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.remove-tray-item {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 38, 68, 0.08);
  color: var(--brand);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.results-summary {
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 700;
}

.results-shell {
  display: grid;
  gap: 14px;
}

.results-preview-slot[hidden] {
  display: none;
}

.results-preview-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(236, 246, 253, 0.9), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-sm);
}

.results-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.results-preview-title {
  display: grid;
  gap: 6px;
}

.results-preview-title h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.result-card,
.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 22px;
}

.results-primary {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(238, 247, 253, 0.96));
  box-shadow: var(--shadow-sm);
}

.results-primary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-bright));
}

.results-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.results-secondary-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.result-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.result-kicker {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-kicker-alt {
  color: var(--accent);
}

.result-meta-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-signal {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(16, 38, 68, 0.06);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.result-signal-latest,
.result-signal-recent {
  background: rgba(65, 181, 230, 0.14);
  color: var(--brand);
}

.result-signal-older {
  background: rgba(174, 2, 140, 0.1);
  color: #7f1668;
}

.result-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 38, 68, 0.34);
}

.result-header {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: flex-start;
}

.result-title {
  display: grid;
  gap: 4px;
}

.result-title h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 26ch;
}

.result-source {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.meta-pill {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(16, 38, 68, 0.05);
  color: var(--ink-soft);
  font-size: 0.81rem;
  font-weight: 700;
}

.result-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.result-actions {
  gap: 10px;
  align-items: center;
}

.preview-link-button {
  border: 0;
  cursor: pointer;
}

.detail-button {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}

.result-link {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand-strong);
  box-shadow: none;
}

.result-action-primary {
  background: linear-gradient(135deg, var(--accent), #7f0e89);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(174, 2, 140, 0.14);
}

.copy-button {
  border: 1px solid rgba(16, 38, 68, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: var(--brand);
  cursor: pointer;
}

.save-button {
  min-height: 44px;
  background: rgba(0, 108, 183, 0.06);
  color: var(--brand);
}

.save-button.saved {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  border-color: rgba(0, 108, 183, 0.35);
  color: white;
}

.result-save-button {
  margin-left: auto;
}

.result-action-compact {
  min-height: 40px;
  padding: 0 12px;
}

.empty-state {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.empty-state span {
  max-width: 46ch;
  line-height: 1.5;
}

.empty-state-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.empty-state-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.guide-shell {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.guide-shell h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4.4vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.guide-hero,
.guide-flow,
.guide-example,
.guide-map,
.guide-notes,
.guide-ops,
.guide-coverage,
.guide-block,
.guide-card {
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.guide-hero,
.guide-flow,
.guide-example,
.guide-map,
.guide-notes,
.guide-ops,
.guide-coverage {
  padding: 22px 24px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 236, 0.82));
}

.guide-hero-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.guide-hero-intro {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.guide-hero-actions,
.guide-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-hero-rail {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.7);
  align-self: start;
}

.guide-hero-stat {
  display: grid;
  gap: 4px;
}

.guide-hero-stat-label,
.guide-step-number,
.guide-sequence-label,
.guide-coverage-head span {
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-hero-stat strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.guide-checklist,
.guide-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.guide-flow,
.guide-map,
.guide-notes,
.guide-ops,
.guide-coverage {
  display: grid;
  gap: 16px;
}

.guide-step-grid,
.guide-map-grid,
.guide-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-step,
.guide-map-item,
.guide-note,
.guide-coverage-domain {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.guide-step h3,
.guide-map-item h3,
.guide-note h3,
.guide-example h2,
.guide-coverage-domain h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.12;
}

.guide-step p,
.guide-map-item p,
.guide-note p,
.guide-example p,
.guide-coverage-summary {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.guide-example {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(0, 108, 183, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 246, 242, 0.82));
}

.guide-example-copy {
  display: grid;
  gap: 12px;
}

.guide-example-sequence {
  display: grid;
  gap: 10px;
  align-content: start;
}

.guide-sequence-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.guide-sequence-item strong {
  font-size: 0.98rem;
}

.guide-sequence-item span:last-child,
.guide-coverage-head,
.guide-coverage-summary {
  color: var(--ink-soft);
}

.guide-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 800;
}

.guide-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-coverage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.guide-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 108, 183, 0.06);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.result-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(8, 22, 43, 0.34);
  backdrop-filter: blur(6px);
}

.result-detail-drawer {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: min(520px, calc(100vw - 28px));
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 253, 0.94));
  box-shadow: var(--shadow-xl);
}

.result-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.result-detail-head h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.result-detail-body {
  display: grid;
  gap: 14px;
}

.result-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.result-detail-section {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.result-detail-section h3 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.result-detail-section p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.result-detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.result-detail-list li {
  line-height: 1.55;
}

.result-detail-actions {
  margin-top: 4px;
}

.result-preview-section {
  gap: 12px;
}

.result-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.preview-actions {
  justify-content: flex-end;
}

.preview-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.preview-table-wrap {
  background: rgba(244, 249, 253, 0.98);
}

.result-detail-footnote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.subtle-result-link {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(16, 38, 68, 0.08);
}

.compact-empty {
  padding: 18px 16px;
}

@media (max-width: 1320px) {
  .landing-hero,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .landing-proof {
    justify-self: stretch;
    width: 100%;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 1180px) {
  .landing-rail,
  .workspace {
    grid-template-columns: 1fr;
  }

  .control-rail {
    order: 2;
  }

  .content-stage {
    order: 1;
  }
}

@media (max-width: 900px) {
  .landing-shell,
  .page-shell {
    width: min(100vw - 24px, 1600px);
  }

  .landing-topbar,
    .app-topbar,
    .topbar,
    .results-head,
    .evidence-head,
    .analysis-context-copy,
    .result-header,
    .result-label-row,
    .stage-head {
      flex-direction: column;
      align-items: stretch;
    }

  .hero-side,
  .hero-proof-grid,
  .coverage-footnote-list,
    .tray-list,
    .results-secondary-grid {
      grid-template-columns: 1fr;
    }

    .result-title h3 {
      max-width: none;
    }

    .result-save-button {
      margin-left: 0;
    }

  .coverage-footnote-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-panel-grid,
  .landing-domain-grid {
    grid-template-columns: 1fr;
  }

  .analysis-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-toolbar-main {
    grid-template-columns: 1fr;
  }

  .packet-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .landing-shell,
  .page-shell {
    padding-top: 16px;
  }

  .landing-hero,
  .hero-panel,
  .rail-panel,
  .search-stage,
  .evidence-stage,
  .analysis-stage,
  .results-stage {
    padding: 18px;
    border-radius: 24px;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .hero-photo-meta {
    right: 18px;
    bottom: 18px;
  }

  .query-row {
    grid-template-columns: 1fr;
  }

  .primary-button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  .app-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-detail-drawer {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .analysis-toolbar {
    grid-template-columns: 1fr;
  }

  .packet-toolbar {
    grid-template-columns: 1fr;
  }
}

.directory-page {
  background:
    radial-gradient(circle at top left, rgba(0, 108, 183, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.14), transparent 26%),
    linear-gradient(180deg, #f8f5ef 0%, #ebe1d0 100%);
}

.directory-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.directory-sidebar {
  padding: 26px 22px;
  border-right: 1px solid rgba(16, 38, 68, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 244, 238, 0.68));
  backdrop-filter: blur(18px);
}

.directory-sidebar .brand-lockup {
  margin-bottom: 26px;
}

.directory-nav {
  display: grid;
  gap: 8px;
}

.directory-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.directory-nav-link:hover,
.directory-nav-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
}

.directory-nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  box-shadow: var(--shadow-sm);
}

.directory-sidebar-panel {
  margin-top: 26px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.directory-sidebar-panel h2,
.directory-section-head h2,
.indicator-source-spotlight h2,
.indicator-scope-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.directory-sidebar-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.sidebar-cta {
  margin-top: 16px;
}

.directory-sidebar-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.directory-sidebar-field span {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.directory-sidebar-field select,
.directory-filter input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.directory-main {
  padding: 28px 34px 40px;
}

.directory-hero {
  max-width: 76rem;
  padding: 8px 0 28px;
}

.directory-hero-compact {
  padding-bottom: 20px;
}

.directory-hero h1,
.indicator-hero h1 {
  margin: 8px 0 0;
  max-width: 13ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.directory-hero-catalog h1,
.directory-hero-compact h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 3.2vw, 3.6rem);
  line-height: 0.98;
}

.directory-intro {
  max-width: 56rem;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.directory-summary-line {
  margin: 14px 0 0;
  color: var(--ink-faint);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.directory-metrics > div {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.directory-metrics span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.directory-metrics small {
  color: var(--ink-soft);
}

.directory-section {
  max-width: 76rem;
}

.directory-section + .directory-section {
  margin-top: 30px;
}

.directory-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.domain-card,
.indicator-directory-card,
.indicator-source-card,
.indicator-panel-shell,
.indicator-spotlight {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 239, 0.78));
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.domain-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.domain-card:hover,
.domain-card:focus-visible,
.indicator-directory-card:hover,
.indicator-directory-card:focus-within,
a.indicator-directory-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(65, 181, 230, 0.42);
}

.domain-card-top,
.indicator-directory-meta,
.indicator-source-meta,
.indicator-latest-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.domain-card-kicker,
.domain-card h2,
.indicator-directory-card h2,
.indicator-source-card h3 {
  margin: 0;
}

.domain-card-kicker {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
}

.indicator-directory-card h2,
.indicator-source-card h3 {
  font-size: 1.3rem;
  line-height: 1.1;
}

.domain-card p,
.indicator-directory-card p,
.indicator-source-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.domain-card-stat,
.indicator-capability-badge,
.directory-scope-tab,
.domain-card-summary span,
.indicator-directory-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 108, 183, 0.1);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.8rem;
}

.domain-card-tags,
.indicator-directory-badges,
.indicator-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-card-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domain-card-foot,
.indicator-directory-foot,
.indicator-source-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.indicator-directory-link {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 800;
}

.indicator-directory-card {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
}

a.indicator-directory-card {
  text-decoration: none;
  color: inherit;
}

.indicator-directory-card-disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.indicator-directory-card-disabled .indicator-directory-link {
  color: var(--ink-faint);
}

.directory-filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.directory-preset-strip {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 244, 238, 0.72));
  box-shadow: var(--shadow-sm);
}

.directory-preset-strip-attention {
  animation: regionGatePulse 900ms ease;
}

.directory-preset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.directory-preset-label {
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-link-button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0;
}

.directory-link-button:hover,
.directory-link-button:focus-visible {
  color: var(--accent);
}

.directory-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-preset-pill {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.directory-preset-pill:hover,
.directory-preset-pill:focus-visible {
  border-color: rgba(0, 108, 183, 0.24);
  color: var(--ink);
  transform: translateY(-1px);
}

.directory-preset-pill.active {
  border-color: rgba(174, 2, 140, 0.28);
  background: linear-gradient(135deg, rgba(174, 2, 140, 0.94), rgba(127, 14, 137, 0.96));
  color: white;
  box-shadow: 0 12px 24px rgba(174, 2, 140, 0.18);
}

.directory-preset-summary {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-weight: 700;
}

.directory-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(174, 2, 140, 0.18);
  background: rgba(174, 2, 140, 0.08);
  color: #641654;
  font-size: 0.88rem;
  font-weight: 700;
}

.directory-feedback strong {
  color: #641654;
}

.directory-feedback span {
  color: var(--ink-soft);
}

@keyframes regionGatePulse {
  0% {
    box-shadow: var(--shadow-sm);
  }

  35% {
    box-shadow:
      0 0 0 3px rgba(174, 2, 140, 0.2),
      0 0 0 10px rgba(174, 2, 140, 0.08),
      var(--shadow-sm);
  }

  100% {
    box-shadow: var(--shadow-sm);
  }
}

.directory-filter {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.directory-filter span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.directory-filter select,
.indicator-trend-controls select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.directory-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 700;
}

.directory-chip.active {
  color: white;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.directory-filter-wide {
  min-width: min(420px, 100%);
}

.directory-filter-bar-domain {
  justify-content: flex-start;
}

.indicator-directory-list,
.indicator-source-list {
  display: grid;
  gap: 16px;
}

.indicator-directory-card,
.indicator-source-card {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
}

.indicator-hero {
  max-width: 76rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 22px;
}

.indicator-spotlight {
  max-width: 76rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 22px;
  margin-bottom: 28px;
}

.indicator-source-spotlight,
.indicator-scope-panel {
  display: grid;
  gap: 10px;
}

.analysis-summary-shell {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 239, 0.78));
  box-shadow: var(--shadow-sm);
}

.analysis-workspace-note {
  margin-top: 10px;
  max-width: 54rem;
}

.indicator-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-scope-tab {
  border: 0;
  cursor: pointer;
  background: rgba(0, 108, 183, 0.08);
}

.directory-scope-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.indicator-section {
  max-width: 76rem;
  margin-bottom: 28px;
}

.indicator-panel-shell {
  padding: 20px 22px;
}

.indicator-trend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.loading-state {
  padding: 16px 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.table-shell {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 38, 68, 0.08);
  text-align: left;
}

.data-table th {
  color: var(--ink-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  font-weight: 600;
  color: var(--ink);
}

.data-table tr.benchmark-row td {
  background: rgba(0, 130, 215, 0.06);
  color: #0b69b9;
  font-weight: 800;
}

.empty-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
}

.directory-sidebar-analysis {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0;
}

.directory-sidebar-panel-strong {
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(0, 108, 183, 0.86), rgba(65, 181, 230, 0.74));
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(0, 108, 183, 0.16);
}

.directory-sidebar-panel-strong .section-kicker,
.directory-sidebar-panel-strong h2,
.directory-sidebar-panel-strong h3,
.directory-sidebar-panel-strong .field span,
.directory-sidebar-panel-strong .rail-pill,
.directory-sidebar-panel-strong .directory-sidebar-note {
  color: white;
}

.directory-sidebar-panel-strong .field input,
.directory-sidebar-panel-strong .browse-button,
.directory-sidebar-panel-strong .ghost-button,
.directory-sidebar-panel-strong .rail-block,
.directory-sidebar-panel-strong .rail-block-light {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}

.directory-sidebar-panel-strong .field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.directory-sidebar-panel-strong .locality-list {
  background: rgba(255, 255, 255, 0.08);
}

.content-stage-analysis {
  display: grid;
  gap: 24px;
}

@media (max-width: 1180px) {
  .directory-shell {
    grid-template-columns: 1fr;
  }

  .directory-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(16, 38, 68, 0.08);
  }

  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .indicator-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .directory-main {
    padding: 22px 18px 34px;
  }

  .directory-hero h1,
  .indicator-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .directory-filter-bar,
  .indicator-hero,
  .domain-card-foot,
  .indicator-directory-foot,
  .indicator-source-foot {
    display: grid;
  }

  .directory-preset-head {
    align-items: start;
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }
}

/* Portal polish pass */

.landing-page .landing-shell {
  width: min(1460px, calc(100vw - 40px));
  padding: 22px 0 40px;
}

.landing-page .landing-topbar {
  margin-bottom: 10px;
  padding: 0 4px;
}

.landing-page .landing-hero {
  grid-template-columns: 1fr;
  min-height: 30svh;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 26px;
}

.landing-page .landing-hero-copy {
  max-width: 31rem;
  padding: 2px 4px 4px 0;
}

.landing-page .landing-hero-copy::before {
  inset: -8px -10px -8px -10px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(251, 248, 244, 0.86), rgba(250, 246, 241, 0.76) 58%, rgba(249, 245, 239, 0.22) 100%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px rgba(10, 24, 45, 0.08);
  backdrop-filter: blur(7px);
}

.landing-page .landing-hero-copy h1 {
  max-width: 8.6ch;
  font-size: clamp(2.15rem, 2.75vw, 3.2rem);
  line-height: 0.93;
}

.landing-page .landing-note {
  max-width: 52ch;
  margin-top: 8px;
  font-size: 0.88rem;
  line-height: 1.42;
}

.landing-page .landing-support {
  max-width: 56ch;
  font-size: 0.78rem;
  line-height: 1.36;
}

.landing-page .landing-cta-main {
  min-height: 56px;
  padding: 0 24px;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
}

.landing-page .landing-rail {
  gap: 12px;
}

.landing-page .landing-actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
}

.landing-page .landing-panel {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.landing-page .landing-panel-grid {
  gap: 14px;
}

.landing-page .landing-panel-grid h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.landing-page .landing-panel-grid p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
}

.landing-page .eyebrow,
.landing-page .section-kicker {
  margin-bottom: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.directory-page {
  background:
    radial-gradient(circle at top left, rgba(0, 108, 183, 0.1), transparent 20%),
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f3ed 0%, #ece3d4 100%);
}

.directory-page::before {
  opacity: 0.24;
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 82%);
}

.directory-shell {
  grid-template-columns: 252px minmax(0, 1fr);
}

.directory-sidebar {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 18px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 245, 240, 0.74));
  backdrop-filter: blur(18px);
}

.directory-sidebar-top {
  display: grid;
  gap: 0;
}

.directory-sidebar .brand-lockup {
  margin-bottom: 0;
}

.directory-nav {
  gap: 6px;
}

.directory-nav-link {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.directory-nav-link:hover,
.directory-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(16, 38, 68, 0.08);
}

.directory-nav-link.active {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  border-color: rgba(0, 108, 183, 0.18);
  box-shadow: 0 12px 28px rgba(0, 108, 183, 0.16);
}

.directory-main {
  padding: 34px 40px 48px;
}

.directory-main > .directory-hero,
.directory-main > .indicator-hero,
.directory-main > .indicator-spotlight,
.directory-main > .indicator-section,
.directory-main > .directory-section,
.directory-main > .content-stage {
  max-width: 1180px;
}

.directory-hero,
.indicator-hero {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 244, 238, 0.72));
  box-shadow: 0 10px 24px rgba(16, 33, 58, 0.05);
}

.directory-hero h1,
.indicator-hero h1 {
  max-width: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 1.8vw, 1.95rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-domains .directory-hero h1 {
  max-width: none;
}

.directory-intro {
  max-width: 58ch;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.52;
}

.directory-summary-line {
  margin-top: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.directory-intro-compact {
  max-width: 44rem;
}

.page-workspace .directory-hero,
.page-guide .directory-hero,
.page-domains .directory-hero,
.page-indicators .directory-hero {
  margin-bottom: 2px;
}

.directory-filter-bar {
  align-items: flex-end;
  gap: 14px;
}

.directory-filter,
.analysis-filter,
.analysis-sort {
  gap: 7px;
}

.directory-filter span,
.analysis-filter span,
.analysis-sort span {
  color: var(--ink-faint);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.directory-filter input,
.directory-filter select,
.analysis-filter input,
.analysis-sort select,
.indicator-trend-controls select {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(16, 38, 68, 0.09);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.directory-preset-strip {
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.directory-preset-head {
  align-items: center;
}

.directory-preset-label {
  letter-spacing: 0.12em;
}

.directory-preset-summary {
  font-size: 0.84rem;
}

.directory-chip-group {
  gap: 10px;
}

.directory-chip {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border-color: rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.directory-chip.active {
  box-shadow: 0 10px 22px rgba(0, 108, 183, 0.14);
}

.domain-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.domain-card,
.indicator-directory-card,
.indicator-source-card,
.indicator-panel-shell,
.indicator-source-spotlight,
.indicator-scope-panel,
.analysis-summary-shell,
.evidence-stage,
.analysis-context-stage,
.analysis-stage,
.guide-block,
.guide-card {
  border-radius: 22px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 246, 242, 0.78));
  box-shadow: 0 14px 32px rgba(16, 33, 58, 0.08);
}

.domain-card {
  position: relative;
  gap: 14px;
  padding: 20px 20px 18px;
  border: 2px solid rgba(91, 155, 219, 0.24);
  box-shadow:
    0 0 0 1px rgba(65, 181, 230, 0.12),
    0 16px 34px rgba(10, 24, 45, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.domain-card-accent {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
}

.domain-card-kicker {
  font-size: 1.34rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.domain-card p {
  font-size: 0.94rem;
  line-height: 1.58;
}

.domain-card-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.domain-card-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.domain-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 108, 183, 0.42);
}

.domain-card-summary span,
.indicator-directory-badges span,
.indicator-capability-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 38, 68, 0.05);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.domain-card-link,
.indicator-directory-link {
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.domain-card:hover,
.domain-card:focus-visible {
  border-color: rgba(65, 181, 230, 0.52);
  box-shadow:
    0 0 0 1px rgba(65, 181, 230, 0.22),
    0 0 0 6px rgba(65, 181, 230, 0.08),
    0 18px 38px rgba(10, 24, 45, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.indicator-directory-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.indicator-directory-card {
  gap: 12px;
  padding: 20px;
}

.indicator-directory-meta,
.indicator-source-meta,
.indicator-latest-meta {
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.table-locality-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 16px;
}

.analysis-toolbar .table-locality-picker {
  margin: 0;
}

.analysis-toolbar .table-locality-picker-label,
.analysis-toolbar .analysis-sort span {
  font-size: 0.72rem;
}

.table-locality-picker-label {
  color: var(--ink-faint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-locality-picker-menu {
  min-width: 240px;
}

.table-locality-picker-menu[open] {
  position: relative;
}

.table-locality-picker-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.table-locality-picker-trigger::-webkit-details-marker {
  display: none;
}

.table-locality-picker-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, 70vw);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(252, 252, 252, 0.98);
  box-shadow: 0 24px 48px rgba(16, 38, 68, 0.14);
}

.table-locality-picker-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.table-locality-picker-search span {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-locality-picker-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.table-locality-picker-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.table-locality-picker-action {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 38, 68, 0.1);
  background: rgba(0, 108, 183, 0.08);
  color: var(--brand-strong);
  font-weight: 700;
  cursor: pointer;
}

.table-locality-picker-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.table-locality-picker-empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 2px;
}

.table-locality-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.table-locality-picker-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.indicator-directory-card h2 {
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.indicator-directory-card p {
  font-size: 0.93rem;
  line-height: 1.56;
}

.indicator-directory-foot {
  align-items: flex-end;
}

.indicator-directory-stack {
  display: grid;
  gap: 10px;
}

.indicator-directory-source {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.indicator-directory-badges {
  gap: 6px;
}

.indicator-hero {
  align-items: center;
  gap: 14px;
}

.indicator-title-row {
  align-items: baseline;
}

.indicator-capabilities {
  justify-content: flex-end;
}

.indicator-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  padding: 0;
  margin-bottom: 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.indicator-source-spotlight,
.indicator-scope-panel,
.indicator-panel-shell {
  padding: 20px 22px;
}

.indicator-source-spotlight h2,
.indicator-scope-head h2,
.directory-section-head h2,
.results-head h2,
.evidence-head h2 {
  font-size: 1.14rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.indicator-section {
  margin-bottom: 24px;
}

.indicator-section .directory-section-head {
  margin-bottom: 12px;
}

.indicator-trend-controls {
  gap: 12px;
}

.indicator-panel-shell .data-table th,
.analysis-table th,
.comparison-table th {
  color: var(--ink-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.indicator-panel-shell .data-table td,
.analysis-table td,
.comparison-table td {
  font-size: 0.92rem;
}

.page-workspace .directory-hero {
  margin-bottom: 6px;
}

.page-workspace .directory-hero h1 {
  max-width: none;
}

.content-stage-analysis {
  gap: 16px;
}

.analysis-summary-shell,
.evidence-stage,
.analysis-context-stage,
.analysis-stage {
  padding: 16px 20px;
}

.analysis-summary-shell .directory-section-head,
.evidence-head,
.results-head {
  margin-bottom: 8px;
}

.analysis-summary-shell .directory-section-head {
  align-items: center;
}

.analysis-workspace-note {
  margin: 6px 0 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.workspace-context-copy {
  display: grid;
  gap: 4px;
}

.workspace-context-copy h2 {
  font-size: 1rem;
  line-height: 1.15;
}

.analysis-summary-shell .indicator-action-row {
  align-items: center;
}

.workspace-summary-actions {
  justify-content: flex-end;
}

.workspace-source-select {
  min-width: 260px;
}

.workspace-source-select select {
  min-width: 260px;
}

.icon-tray-button {
  min-width: 40px;
  padding: 0 12px;
  font-size: 1rem;
}

.analysis-summary-shell .tray-button,
.analysis-summary-shell .landing-cta.ghost {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
}

.packet-toolbar {
  grid-template-columns: minmax(240px, 1.2fr) auto minmax(220px, 1fr) auto auto;
  gap: 12px;
}

.tray-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.evidence-stage .tray-list {
  grid-template-columns: 1fr;
}

.workspace-source-card {
  max-width: 720px;
}

.tray-card,
.analysis-card,
.comparison-card {
  border-radius: 20px;
  border: 1px solid rgba(16, 38, 68, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(16, 33, 58, 0.06);
}

.tray-button,
.save-button,
.copy-button,
.result-link {
  min-height: 40px;
  border-radius: 14px;
  font-weight: 800;
}

.guide-shell {
  max-width: 1180px;
}

.guide-shell h1 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(2.3rem, 3vw, 3.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

@media (max-width: 1180px) {
  .landing-page .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .directory-sidebar {
    position: static;
    min-height: auto;
  }

  .indicator-directory-list,
  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .directory-shell {
    grid-template-columns: 1fr;
  }

  .directory-sidebar {
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 38, 68, 0.08);
  }

  .directory-main {
    padding: 26px 20px 36px;
  }

  .directory-filter-bar,
  .indicator-hero,
  .indicator-spotlight,
  .evidence-head,
  .results-head {
    display: grid;
  }

  .analysis-toolbar,
  .analysis-toolbar-main {
    grid-template-columns: 1fr;
  }

  .indicator-directory-list,
  .domain-grid {
    grid-template-columns: 1fr;
  }
}

body[data-ui-mode="dark"] .landing-panel,
body[data-ui-mode="dark"] .directory-sidebar,
body[data-ui-mode="dark"] .directory-hero,
body[data-ui-mode="dark"] .indicator-hero,
body[data-ui-mode="dark"] .indicator-spotlight,
body[data-ui-mode="dark"] .indicator-panel-shell,
body[data-ui-mode="dark"] .indicator-source-spotlight,
body[data-ui-mode="dark"] .indicator-scope-panel,
body[data-ui-mode="dark"] .directory-section,
body[data-ui-mode="dark"] .guide-hero,
body[data-ui-mode="dark"] .guide-flow,
body[data-ui-mode="dark"] .guide-example,
body[data-ui-mode="dark"] .guide-map,
body[data-ui-mode="dark"] .guide-notes,
body[data-ui-mode="dark"] .guide-ops,
body[data-ui-mode="dark"] .guide-coverage,
body[data-ui-mode="dark"] .guide-block,
body[data-ui-mode="dark"] .guide-card,
body[data-ui-mode="dark"] .analysis-summary-shell,
body[data-ui-mode="dark"] .evidence-stage,
body[data-ui-mode="dark"] .analysis-context-stage,
body[data-ui-mode="dark"] .analysis-stage,
body[data-ui-mode="dark"] .comparison-stage,
body[data-ui-mode="dark"] .directory-preset-strip,
body[data-ui-mode="dark"] .domain-card,
body[data-ui-mode="dark"] .indicator-directory-card,
body[data-ui-mode="dark"] .indicator-source-card,
body[data-ui-mode="dark"] .tray-card,
body[data-ui-mode="dark"] .analysis-card,
body[data-ui-mode="dark"] .comparison-card {
  background: linear-gradient(180deg, rgba(21, 34, 54, 0.96), rgba(17, 29, 46, 0.92));
  border-color: rgba(171, 203, 242, 0.12);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(4, 10, 18, 0.28);
}

body[data-ui-mode="dark"] .landing-panel {
  background: linear-gradient(180deg, rgba(21, 34, 54, 0.98), rgba(17, 29, 46, 0.95));
}

body[data-ui-mode="dark"] .guide-hero {
  background:
    radial-gradient(circle at top right, rgba(65, 181, 230, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(21, 34, 54, 0.98), rgba(17, 29, 46, 0.95));
}

body[data-ui-mode="dark"] .guide-example {
  background:
    linear-gradient(135deg, rgba(0, 108, 183, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(21, 34, 54, 0.98), rgba(17, 29, 46, 0.95));
}

body[data-ui-mode="dark"] .guide-step,
body[data-ui-mode="dark"] .guide-map-item,
body[data-ui-mode="dark"] .guide-note,
body[data-ui-mode="dark"] .guide-coverage-domain,
body[data-ui-mode="dark"] .guide-sequence-item,
body[data-ui-mode="dark"] .guide-hero-rail,
body[data-ui-mode="dark"] .guide-link-chip {
  background: rgba(18, 30, 48, 0.82);
  border-color: rgba(171, 203, 242, 0.12);
}

body[data-ui-mode="dark"] .guide-link-chip {
  color: var(--brand-bright);
}

body[data-ui-mode="dark"] .guide-pill {
  background: rgba(65, 181, 230, 0.12);
  color: #b8e6ff;
}

body[data-ui-mode="dark"] .directory-sidebar {
  background:
    linear-gradient(180deg, rgba(14, 25, 41, 0.98), rgba(12, 22, 36, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-color: rgba(171, 203, 242, 0.1);
}

body[data-ui-mode="dark"] .directory-nav-link,
body[data-ui-mode="dark"] .directory-chip,
body[data-ui-mode="dark"] .directory-link-button,
body[data-ui-mode="dark"] .directory-preset-chip,
body[data-ui-mode="dark"] .tray-button,
body[data-ui-mode="dark"] .save-button,
body[data-ui-mode="dark"] .copy-button,
body[data-ui-mode="dark"] .result-link,
body[data-ui-mode="dark"] .landing-cta.ghost,
body[data-ui-mode="dark"] .workspace-nav-link {
  background: rgba(18, 30, 47, 0.82);
  border-color: rgba(171, 203, 242, 0.12);
  color: var(--ink-soft);
}

body[data-ui-mode="dark"] .directory-nav-link:hover,
body[data-ui-mode="dark"] .directory-nav-link:focus-visible,
body[data-ui-mode="dark"] .directory-chip:hover,
body[data-ui-mode="dark"] .directory-preset-chip:hover,
body[data-ui-mode="dark"] .tray-button:hover,
body[data-ui-mode="dark"] .landing-cta.ghost:hover {
  background: rgba(27, 43, 66, 0.92);
  border-color: rgba(65, 181, 230, 0.22);
  color: var(--ink);
}

body[data-ui-mode="dark"] .directory-nav-link.active,
body[data-ui-mode="dark"] .directory-chip.active,
body[data-ui-mode="dark"] .directory-preset-chip.active,
body[data-ui-mode="dark"] .landing-cta.primary {
  color: white;
}

body[data-ui-mode="dark"] .directory-filter input,
body[data-ui-mode="dark"] .directory-filter select,
body[data-ui-mode="dark"] .analysis-filter input,
body[data-ui-mode="dark"] .analysis-sort select,
body[data-ui-mode="dark"] .indicator-trend-controls select,
body[data-ui-mode="dark"] .packet-name-input,
body[data-ui-mode="dark"] .packet-select,
body[data-ui-mode="dark"] .analysis-table-wrap,
body[data-ui-mode="dark"] .workspace-chart-shell,
body[data-ui-mode="dark"] .preview-table-wrap,
body[data-ui-mode="dark"] .table-shell {
  background: rgba(11, 20, 33, 0.82);
  border-color: rgba(171, 203, 242, 0.12);
  color: var(--ink);
}

body[data-ui-mode="dark"] .benchmark-table-wrap {
  background: linear-gradient(180deg, rgba(24, 15, 36, 0.88), rgba(11, 20, 33, 0.84));
  border-color: rgba(177, 0, 144, 0.28);
}

body[data-ui-mode="dark"] .analysis-table th,
body[data-ui-mode="dark"] .analysis-table td,
body[data-ui-mode="dark"] .data-table th,
body[data-ui-mode="dark"] .data-table td,
body[data-ui-mode="dark"] .comparison-table th,
body[data-ui-mode="dark"] .comparison-table td {
  border-bottom-color: rgba(171, 203, 242, 0.1);
}

body[data-ui-mode="dark"] .analysis-table th,
body[data-ui-mode="dark"] .data-table th,
body[data-ui-mode="dark"] .comparison-table th {
  color: rgba(237, 244, 255, 0.58);
}

body[data-ui-mode="dark"] .analysis-table td,
body[data-ui-mode="dark"] .data-table td,
body[data-ui-mode="dark"] .comparison-table td {
  color: rgba(237, 244, 255, 0.92);
}

body[data-ui-mode="dark"] .analysis-table tr.benchmark-row td,
body[data-ui-mode="dark"] .data-table tr.benchmark-row td,
body[data-ui-mode="dark"] .comparison-table tr.benchmark-row td {
  background: rgba(0, 130, 215, 0.1);
  color: #8fd1ff;
}

body[data-ui-mode="dark"] .table-locality-picker-label {
  color: rgba(237, 244, 255, 0.6);
}

body[data-ui-mode="dark"] .table-locality-picker-trigger,
body[data-ui-mode="dark"] .table-locality-picker-panel {
  background: rgba(11, 20, 33, 0.96);
  border-color: rgba(171, 203, 242, 0.12);
  color: rgba(237, 244, 255, 0.92);
}

body[data-ui-mode="dark"] .table-locality-picker-panel {
  box-shadow: 0 24px 48px rgba(2, 8, 18, 0.5);
}

body[data-ui-mode="dark"] .table-locality-picker-search span,
body[data-ui-mode="dark"] .table-locality-picker-empty {
  color: rgba(237, 244, 255, 0.68);
}

body[data-ui-mode="dark"] .table-locality-picker-search input {
  background: rgba(15, 26, 41, 0.94);
  border-color: rgba(171, 203, 242, 0.14);
  color: rgba(237, 244, 255, 0.92);
}

body[data-ui-mode="dark"] .table-locality-picker-action {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(171, 203, 242, 0.12);
  color: rgba(237, 244, 255, 0.84);
}

body[data-ui-mode="dark"] .table-locality-picker-option {
  color: rgba(237, 244, 255, 0.9);
}

body[data-ui-mode="dark"] .workspace-inline-toggle {
  border-color: rgba(125, 160, 213, 0.18);
  background: rgba(23, 34, 55, 0.86);
}

body[data-ui-mode="dark"] .landing-note,
body[data-ui-mode="dark"] .landing-support,
body[data-ui-mode="dark"] .directory-intro,
body[data-ui-mode="dark"] .directory-sidebar-note,
body[data-ui-mode="dark"] .analysis-workspace-note,
body[data-ui-mode="dark"] .results-summary,
body[data-ui-mode="dark"] .landing-panel-grid p,
body[data-ui-mode="dark"] .guide-list,
body[data-ui-mode="dark"] .guide-block p,
body[data-ui-mode="dark"] .tray-card p,
body[data-ui-mode="dark"] .analysis-card p,
body[data-ui-mode="dark"] .indicator-source-card p,
body[data-ui-mode="dark"] .indicator-directory-card p,
body[data-ui-mode="dark"] .domain-card p {
  color: var(--ink-soft);
}

body[data-ui-mode="dark"] .domain-card {
  border-color: rgba(65, 181, 230, 0.28);
  box-shadow:
    0 0 0 1px rgba(65, 181, 230, 0.14),
    0 18px 36px rgba(2, 8, 18, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-ui-mode="dark"] .domain-card:hover,
body[data-ui-mode="dark"] .domain-card:focus-visible {
  border-color: rgba(65, 181, 230, 0.56);
  box-shadow:
    0 0 0 1px rgba(65, 181, 230, 0.24),
    0 0 0 6px rgba(65, 181, 230, 0.09),
    0 20px 40px rgba(2, 8, 18, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-ui-mode="dark"] .landing-panel-grid h3,
body[data-ui-mode="dark"] .landing-coverage-summary,
body[data-ui-mode="dark"] .landing-domain-grid span,
body[data-ui-mode="dark"] .directory-preset-strip h2,
body[data-ui-mode="dark"] .directory-preset-strip strong {
  color: rgba(237, 244, 255, 0.92);
}

body[data-ui-mode="dark"] .directory-preset-summary,
body[data-ui-mode="dark"] .directory-preset-label,
body[data-ui-mode="dark"] .directory-summary-line {
  color: rgba(237, 244, 255, 0.68);
}

body[data-ui-mode="dark"] .directory-preset-strip {
  background: linear-gradient(180deg, rgba(21, 34, 54, 0.98), rgba(17, 29, 46, 0.95));
}

body[data-ui-mode="dark"] .directory-feedback {
  background: rgba(216, 91, 189, 0.14);
  border-color: rgba(216, 91, 189, 0.3);
  color: rgba(255, 222, 247, 0.95);
}

body[data-ui-mode="dark"] .directory-feedback strong {
  color: rgba(255, 222, 247, 0.98);
}

body[data-ui-mode="dark"] .directory-feedback span {
  color: rgba(237, 244, 255, 0.78);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(171, 203, 242, 0.14);
  color: rgba(237, 244, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-chip:hover,
body[data-ui-mode="dark"] .directory-preset-strip .directory-chip:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(65, 181, 230, 0.3);
  color: rgba(237, 244, 255, 0.94);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-chip.active {
  background: linear-gradient(135deg, rgba(174, 2, 140, 0.94), rgba(127, 14, 137, 0.96));
  border-color: rgba(216, 91, 189, 0.34);
  color: white;
  box-shadow: 0 12px 24px rgba(174, 2, 140, 0.2);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-link-button {
  color: rgba(237, 244, 255, 0.76);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-link-button:hover,
body[data-ui-mode="dark"] .directory-preset-strip .directory-link-button:focus-visible {
  color: rgba(237, 244, 255, 0.96);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-preset-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(171, 203, 242, 0.14);
  color: rgba(237, 244, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-preset-pill:hover,
body[data-ui-mode="dark"] .directory-preset-strip .directory-preset-pill:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(65, 181, 230, 0.3);
  color: rgba(237, 244, 255, 0.94);
}

body[data-ui-mode="dark"] .directory-preset-strip .directory-preset-pill.active {
  background: linear-gradient(135deg, rgba(174, 2, 140, 0.94), rgba(127, 14, 137, 0.96));
  border-color: rgba(216, 91, 189, 0.34);
  color: white;
  box-shadow: 0 12px 24px rgba(174, 2, 140, 0.2);
}

body[data-ui-mode="dark"] .empty-state,
body[data-ui-mode="dark"] .compact-empty,
body[data-ui-mode="dark"] .analysis-alert {
  background: linear-gradient(180deg, rgba(25, 40, 61, 0.98), rgba(20, 33, 52, 0.95));
  border-color: rgba(171, 203, 242, 0.12);
  color: rgba(237, 244, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body[data-ui-mode="dark"] .empty-state strong,
body[data-ui-mode="dark"] .analysis-alert strong {
  color: rgba(237, 244, 255, 0.94);
}

body[data-ui-mode="dark"] .empty-state span,
body[data-ui-mode="dark"] .analysis-alert span {
  color: rgba(237, 244, 255, 0.74);
}

body[data-ui-mode="dark"] .diagnostic-chip {
  background: rgba(65, 181, 230, 0.12);
  color: rgba(172, 221, 245, 0.94);
}

body[data-ui-mode="dark"] .warning-chip {
  background: rgba(216, 91, 189, 0.16);
  color: rgba(255, 193, 240, 0.95);
}

body[data-ui-mode="dark"] .analysis-error-detail {
  color: rgba(237, 244, 255, 0.68);
}

body[data-ui-mode="dark"] .tray-button:disabled,
body[data-ui-mode="dark"] .save-button:disabled,
body[data-ui-mode="dark"] .copy-button:disabled,
body[data-ui-mode="dark"] .result-link:disabled,
body[data-ui-mode="dark"] button:disabled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(171, 203, 242, 0.1);
  color: rgba(237, 244, 255, 0.34);
  opacity: 1;
  box-shadow: none;
}

/* Thin header pass */

.directory-main {
  padding: 28px 34px 40px;
}

.directory-hero,
.indicator-hero {
  gap: 4px;
  padding: 8px 14px;
  border-radius: 18px;
}

.directory-hero h1,
.indicator-hero h1 {
  font-size: clamp(1.2rem, 1.55vw, 1.7rem);
  line-height: 1.03;
}

.directory-intro,
.analysis-workspace-note,
.directory-sidebar-note {
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.directory-section-head,
.results-head,
.evidence-head,
.workspace-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.directory-section-head,
.results-head,
.evidence-head {
  margin-bottom: 6px;
}

.directory-section-head h2,
.results-head h2,
.evidence-head h2,
.indicator-source-spotlight h2,
.indicator-scope-head h2,
.workspace-visual-head h3,
.analysis-toolbar-title,
.workspace-context-copy h2 {
  font-size: 0.98rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.section-kicker,
.table-locality-picker-label,
.analysis-sort span,
.directory-filter span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.indicator-spotlight {
  gap: 12px;
  margin-bottom: 18px;
}

.indicator-source-spotlight,
.indicator-scope-panel,
.indicator-panel-shell,
.analysis-summary-shell,
.evidence-stage,
.analysis-context-stage,
.analysis-stage,
.comparison-stage,
.analysis-card,
.tray-card {
  padding: 14px 16px;
  border-radius: 18px;
}

.comparison-stage {
  margin-top: 12px;
  padding-top: 12px;
}

.indicator-section {
  margin-bottom: 18px;
}

.workspace-visual-card {
  gap: 10px;
}

.workspace-visual-head p {
  display: none;
}

.workspace-chart-shell {
  padding: 12px;
}

.tray-button,
.save-button,
.copy-button,
.result-link,
.landing-cta.ghost {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
}

.indicator-action-row .primary-button {
  min-height: 40px;
  min-width: 0;
  padding: 0 16px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(174, 2, 140, 0.18);
}

.workspace-summary-actions,
.workspace-visual-actions,
.evidence-actions {
  gap: 8px;
}

.results-summary,
.meta-pill,
.detail-chip,
.signal-chip {
  min-height: 30px;
  font-size: 0.78rem;
}

body[data-ui-mode="dark"] .directory-hero,
body[data-ui-mode="dark"] .indicator-hero,
body[data-ui-mode="dark"] .analysis-summary-shell,
body[data-ui-mode="dark"] .analysis-card,
body[data-ui-mode="dark"] .tray-card,
body[data-ui-mode="dark"] .indicator-source-spotlight,
body[data-ui-mode="dark"] .indicator-scope-panel,
body[data-ui-mode="dark"] .indicator-panel-shell {
  border-color: rgba(171, 203, 242, 0.1);
}

body[data-ui-mode="dark"] .directory-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(171, 203, 242, 0.14);
  color: rgba(237, 244, 255, 0.78);
}

body[data-ui-mode="dark"] .directory-chip:hover,
body[data-ui-mode="dark"] .directory-chip:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(65, 181, 230, 0.24);
  color: rgba(237, 244, 255, 0.94);
}

body.landing-page[data-ui-mode="dark"] .landing-panel {
  background: linear-gradient(180deg, rgba(21, 34, 54, 0.985), rgba(17, 29, 46, 0.965)) !important;
  border-color: rgba(171, 203, 242, 0.14) !important;
  box-shadow: 0 18px 40px rgba(4, 10, 18, 0.3) !important;
}

body.landing-page[data-ui-mode="dark"] .landing-panel-grid h3,
body.landing-page[data-ui-mode="dark"] .landing-coverage-summary,
body.landing-page[data-ui-mode="dark"] .landing-domain-grid span {
  color: rgba(237, 244, 255, 0.94) !important;
}

body.landing-page[data-ui-mode="dark"] .landing-panel-grid p {
  color: rgba(237, 244, 255, 0.72) !important;
}

body.landing-page[data-ui-mode="dark"] .landing-panel .section-kicker {
  color: rgba(129, 207, 240, 0.94) !important;
}
