@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/outfit-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/outfit-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/outfit-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/static/fonts/outfit-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f3f2ed;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --ink: #171715;
  --ink-soft: #42423e;
  --muted: #62635d;
  --quiet: #6d6d67;
  --line: rgba(23, 23, 21, 0.13);
  --line-strong: rgba(23, 23, 21, 0.24);
  --accent: #4055e8;
  --accent-dark: #2638bf;
  --accent-soft: #e3e7ff;
  --positive: #237c5b;
  --positive-soft: #dff3e9;
  --warning: #9c671f;
  --warning-soft: #f5e9d6;
  --danger: #9a413a;
  --danger-soft: #f4dfdc;
  --sidebar: #191a18;
  --sidebar-soft: #2b2c29;
  --sidebar-text: #f5f4ef;
  --display-font: "Outfit", "Aptos Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body-font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sidebar-width: 236px;
  --topbar-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 24px 70px rgba(54, 52, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 74% 3%, rgba(64, 85, 232, 0.06), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(64, 85, 232, 0.42);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 100;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: top 180ms var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* Global application frame */

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 22px 22px;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.brand-mark {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--accent);
  color: #fff;
}

.brand-symbol svg {
  width: 23px;
  height: 23px;
}

.brand-mark strong {
  display: block;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-mark small {
  display: block;
  margin-top: 1px;
  color: rgba(245, 244, 239, 0.48);
  font-family: var(--mono-font);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.side-navigation {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  margin-top: 42px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--sidebar-soft) transparent;
}

.side-nav-primary,
.side-nav-group {
  display: grid;
  gap: 3px;
}

.side-nav-primary a,
.side-nav-group a {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(245, 244, 239, 0.64);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.side-nav-primary a:hover,
.side-nav-group a:hover {
  background: var(--sidebar-soft);
  color: var(--sidebar-text);
  transform: translateX(2px);
}

.side-nav-primary a.active,
.side-nav-group a.active {
  background: #f4f3ed;
  color: var(--ink);
}

.side-nav-primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.side-nav-group p {
  margin: 0 0 5px 12px;
  color: rgba(245, 244, 239, 0.33);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.side-nav-group a {
  min-height: 37px;
  padding-block: 6px;
}

.side-nav-system {
  margin-top: auto;
}

.side-runtime {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 12px 1px;
  border-top: 1px solid rgba(245, 244, 239, 0.09);
}

.runtime-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #54c99a;
  box-shadow: 0 0 0 5px rgba(84, 201, 154, 0.11);
}

.runtime-dot-neutral {
  background: #8b8b84;
  box-shadow: 0 0 0 5px rgba(139, 139, 132, 0.11);
}

.side-runtime strong,
.side-runtime small {
  display: block;
}

.side-runtime strong {
  font-size: 12px;
  font-weight: 500;
}

.side-runtime small {
  color: rgba(245, 244, 239, 0.42);
  font-size: 10px;
}

.app-topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar-width);
  z-index: 35;
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  gap: 24px;
  padding: 12px 48px;
  border-bottom: 1px solid rgba(23, 23, 21, 0.08);
  background: rgba(243, 242, 237, 0.9);
  backdrop-filter: blur(18px);
}

.mobile-menu {
  display: none;
}

.mobile-menu-trigger {
  min-width: 38px;
  cursor: pointer;
  list-style: none;
}

.mobile-menu-trigger::-webkit-details-marker {
  display: none;
}

.mobile-menu-trigger .brand-symbol {
  width: 38px;
  height: 38px;
}

.mobile-menu-trigger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.mobile-menu-panel {
  position: fixed;
  inset: var(--topbar-height) 0 70px;
  z-index: 45;
  padding: 26px 22px 32px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.985);
  box-shadow: 0 30px 80px rgba(23, 23, 21, 0.18);
  overscroll-behavior: contain;
}

.mobile-menu-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.mobile-menu-heading strong,
.mobile-menu-heading span {
  display: block;
}

.mobile-menu-heading strong {
  font-family: var(--display-font);
  font-size: 18px;
  letter-spacing: 0.05em;
}

.mobile-menu-heading span,
.mobile-menu-heading small {
  color: var(--muted);
  font-size: 10px;
}

.mobile-menu-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 18px;
  padding-top: 24px;
}

.mobile-menu-groups section {
  display: grid;
  align-content: start;
  gap: 2px;
}

.mobile-menu-groups p {
  margin: 0 0 7px 12px;
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.mobile-menu-groups a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 13px;
}

.mobile-menu-groups a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.command-search {
  display: flex;
  width: min(100%, 620px);
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 21, 0.1);
  transition: background 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.command-search:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 35px rgba(64, 85, 232, 0.08);
}

.command-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.command-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.command-search input::placeholder {
  color: var(--quiet);
}

.command-search kbd {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 11px;
}

.topbar-status {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.mobile-bottom-nav {
  display: none;
}

/* Authenticated management workspace */
.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(62, 94, 255, 0.08), transparent 32rem),
    var(--paper);
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(100%, 430px);
  padding: clamp(30px, 6vw, 52px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(20, 20, 18, 0.09);
}

.admin-login-card h1 {
  margin: 14px 0 8px;
  font-size: clamp(32px, 8vw, 54px);
}

.admin-login-card form {
  display: grid;
  gap: 18px;
  margin: 30px 0 22px;
}

.admin-login-card label,
.admin-project-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-card input,
.admin-project-search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  padding: 12px 0;
}

.admin-login-card button,
.admin-project-row button,
.admin-logout-form button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
}

.admin-login-error {
  margin-top: 18px;
  border-left: 2px solid #c8452d;
  color: #9d2d1d;
  padding: 10px 14px;
}

.admin-sidebar {
  border-color: rgba(62, 94, 255, 0.22);
}

.admin-logout-form button {
  width: 100%;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.admin-shell {
  padding-bottom: 80px;
}

.admin-stats a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.admin-action-grid {
  display: grid;
  margin: 34px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-action-grid a {
  min-height: 190px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 24px;
  text-decoration: none;
}

.admin-action-grid span,
.admin-project-main small {
  color: var(--muted);
  font-size: 12px;
}

.admin-action-grid strong {
  display: block;
  margin: 34px 0 10px;
  font-size: 20px;
}

.admin-action-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-project-search {
  margin: 28px 0;
}

.admin-project-list {
  display: grid;
}

.admin-project-row {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 24px;
}

.admin-project-main {
  display: flex;
  min-width: 0;
  align-items: center;
  color: var(--ink);
  gap: 16px;
  text-decoration: none;
}

.admin-project-main span:not(.project-icon) {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.admin-project-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-project-row form {
  display: flex;
  gap: 8px;
}

.admin-project-row select {
  min-width: 120px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
}

.admin-mobile-brand,
.admin-mobile-nav {
  display: none;
}

.admin-target-list {
  display: grid;
}

.admin-target-row {
  display: grid;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr);
  padding: 20px 24px;
}

.admin-target-row > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.admin-target-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-target-row dl {
  display: grid;
  margin: 0;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-target-row dt {
  color: var(--muted);
  font-size: 11px;
}

.admin-target-row dd {
  margin: 5px 0 0;
}

.admin-target-row .source-error {
  grid-column: 1 / -1;
}

.admin-healthy-targets {
  padding: 18px 24px;
}

.admin-healthy-targets > summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-healthy-targets .admin-target-list {
  margin: 18px -24px -18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .admin-mobile-brand,
  .admin-mobile-nav {
    display: flex;
  }

  .admin-mobile-brand {
    color: var(--ink);
    font-size: 12px;
    text-decoration: none;
  }

  .admin-mobile-nav {
    overflow-x: auto;
    align-items: center;
    gap: 14px;
    scrollbar-width: none;
  }

  .admin-mobile-nav a {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
  }

  .admin-topbar .topbar-status {
    display: none;
  }

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

  .admin-project-row,
  .admin-target-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-project-row form {
    width: 100%;
  }

  .admin-project-row select {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .admin-mobile-brand {
    display: none;
  }

  .admin-mobile-nav {
    width: 100%;
    justify-content: space-between;
  }

  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-target-row dl {
    grid-template-columns: 1fr;
  }
}

/* Shared page structure */

.shell {
  width: calc(100% - var(--sidebar-width));
  max-width: 1640px;
  min-height: 100dvh;
  margin-left: var(--sidebar-width);
  padding: 112px 48px 88px;
}

.masthead,
.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
  padding: 38px 0 68px;
}

.masthead h1,
.page-intro h1,
.project-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(3.6rem, 6.4vw, 6.9rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-wrap: balance;
}

.masthead h1 em,
.page-intro h1 em {
  color: var(--accent);
  font-style: normal;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.lede {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.pulse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.pulse span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 5px rgba(35, 124, 91, 0.1);
}

.intro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  border-top: 1px solid var(--line-strong);
}

.intro-metrics > div {
  min-height: 94px;
  padding: 18px 14px 10px 0;
}

.intro-metrics strong,
.intro-metrics span {
  display: block;
}

.intro-metrics strong {
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.intro-metrics span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.intro-metrics > a {
  grid-column: 1 / -1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.intro-metrics > a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.section-heading,
.board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.section-heading h2,
.board-head h2,
.evidence-pulse h2,
.empty h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 2.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-heading p,
.section-heading span,
.section-heading a,
.board-head p,
.board-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.section-heading .section-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
}

.board {
  margin-top: 32px;
  padding: 30px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0 0 36px;
  border-block: 1px solid var(--line);
}

.stats article {
  min-height: 104px;
  padding: 21px 24px 18px 0;
}

.stats article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: var(--display-font);
  font-size: 2.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stats span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

/* Dashboard */

.featured-section {
  padding-top: 4px;
}

.project-card {
  color: inherit;
}

.project-card[data-variant="featured"] {
  position: relative;
  display: grid;
  min-height: 390px;
  grid-template-columns: 68px minmax(0, 1fr) 176px;
  gap: 24px;
  align-items: start;
  padding: clamp(30px, 4vw, 54px);
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  border-radius: 26px 4px 26px 4px;
  box-shadow: 0 30px 90px rgba(64, 85, 232, 0.2);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out), background 450ms var(--ease-out);
}

.project-card[data-variant="featured"]::after {
  position: absolute;
  right: -68px;
  bottom: -86px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.045), 0 0 0 104px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.project-card[data-variant="featured"]:hover {
  background: var(--accent-dark);
  box-shadow: 0 38px 110px rgba(38, 56, 191, 0.25);
  transform: translateY(-5px);
}

.project-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--paper-strong);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(23, 23, 21, 0.11);
}

.feature-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 28, 110, 0.22);
}

.project-icon-fallback {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
}

.project-card[data-variant="featured"] .project-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.feature-title-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.feature-title-line > span:last-child {
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.project-card[data-variant="featured"] h3 {
  max-width: 850px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.feature-description {
  max-width: 760px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.75;
}

.feature-activity,
.feature-summary {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.feature-activity strong {
  margin-right: 9px;
  color: #fff;
  font-weight: 600;
}

.feature-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.feature-facts {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.feature-facts span {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.feature-facts strong {
  padding: 3px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-participate {
  background: var(--positive-soft);
  color: var(--positive);
}

.tag-early {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tag-watch {
  background: var(--warning-soft);
  color: var(--warning);
}

.tag-ignore {
  background: #e8e7e2;
  color: var(--muted);
}

.project-card[data-variant="featured"] .tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.78fr);
  gap: clamp(32px, 5vw, 76px);
  margin-top: 78px;
}

.compact-heading {
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.project-list {
  display: grid;
}

.project-row {
  display: grid;
  min-height: 126px;
  grid-template-columns: 34px 52px minmax(0, 1fr) 118px 24px;
  gap: 18px;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.project-row:hover {
  background: rgba(255, 255, 255, 0.62);
  transform: translateX(4px);
}

.row-index,
.candidate-rank {
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.project-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-line h3,
.project-row h3,
.candidate-card h3,
.discovery-card h3,
.funding-card h3,
.timeline-item h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.project-row .project-copy {
  min-width: 0;
}

.project-row .project-copy > p {
  display: -webkit-box;
  max-width: 720px;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-row small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.project-row-fact {
  text-align: right;
}

.project-row-fact span,
.project-row-fact strong {
  display: block;
}

.project-row-fact span {
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 9px;
}

.project-row-fact strong {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
}

.arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform 180ms var(--ease-out);
}

.project-row:hover .arrow {
  transform: translate(3px, -3px);
}

.evidence-pulse {
  align-self: start;
  padding: 29px;
  background: var(--ink);
  color: #f8f7f2;
  border-radius: 4px 24px 4px 24px;
  box-shadow: 0 25px 70px rgba(23, 23, 21, 0.14);
}

.evidence-pulse .section-kicker {
  color: #8fa0ff;
}

.evidence-pulse h2 {
  color: #fff;
}

.evidence-pulse-head > p:last-child {
  margin: 14px 0 0;
  color: rgba(248, 247, 242, 0.56);
  font-size: 12px;
  line-height: 1.7;
}

.evidence-pulse-list {
  display: grid;
  gap: 0;
  margin: 28px 0 23px;
  padding: 0;
  list-style: none;
}

.evidence-pulse-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid rgba(248, 247, 242, 0.13);
}

.evidence-pulse-list time {
  color: rgba(248, 247, 242, 0.4);
  font-family: var(--mono-font);
  font-size: 10px;
}

.evidence-pulse-list strong {
  font-size: 13px;
  font-weight: 600;
}

.evidence-pulse-list p {
  margin: 5px 0 0;
  color: rgba(248, 247, 242, 0.58);
  font-size: 11px;
  line-height: 1.55;
}

.text-link,
.detail-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.evidence-pulse .text-link {
  color: #aab5ff;
}

/* Candidate inbox */

.candidate-intro {
  padding-bottom: 56px;
}

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

.candidate-metrics > div {
  border-bottom: 1px solid var(--line);
}

.candidate-board {
  margin-top: 8px;
}

.candidate-board-heading {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.candidate-table-head,
.candidate-summary-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 132px 168px 150px;
  gap: 22px;
  align-items: center;
}

.candidate-table-head {
  padding: 12px 16px 12px 72px;
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.candidate-card {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
  transition: background 240ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.candidate-card:last-child {
  border-bottom: 1px solid var(--line);
}

.candidate-card:hover {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 50px rgba(54, 52, 45, 0.07);
  transform: translateY(-2px);
}

.my-project-groups {
  display: grid;
  gap: 48px;
}

.my-project-list {
  border-top: 1px solid var(--line-strong);
}

.my-project-card {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
  transition: background 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.my-project-card:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
}

.my-project-card .candidate-rank {
  align-self: start;
  margin-top: 8px;
}

.my-project-card .project-copy p {
  max-width: 850px;
  margin: 7px 0 5px;
  color: var(--ink-soft);
}

.my-project-card .project-copy small {
  color: var(--muted);
}

.my-project-open {
  color: var(--accent);
  font-size: 24px;
}

.activity-merge-note {
  color: var(--accent-dark);
  font-size: 12px;
}

.candidate-summary-row {
  position: relative;
  min-height: 108px;
  padding: 20px 16px 20px 72px;
}

.candidate-summary-row > .candidate-rank {
  position: absolute;
  left: 17px;
  top: 31px;
}

.project-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.project-identity > div {
  min-width: 0;
}

.project-identity h3 a {
  transition: color 180ms var(--ease-out);
}

.project-identity h3 a:hover {
  color: var(--accent);
}

.project-identity small,
.candidate-verdict small,
.candidate-funding span,
.candidate-updated time {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.candidate-identity small,
.project-identity small {
  margin-top: 4px;
}

.candidate-verdict {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.candidate-funding strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.candidate-updated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.candidate-updated time {
  font-family: var(--mono-font);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.candidate-updated a {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.candidate-updated a:hover {
  background: var(--accent);
  transform: translate(2px, -2px);
}

.candidate-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.35fr);
  gap: clamp(28px, 5vw, 78px);
  padding: 0 72px 26px;
}

.product-profile,
.summary-block,
.activity-profile {
  min-width: 0;
}

.product-profile > strong,
.summary-block > strong,
.activity-profile > strong,
.funding-profile > strong,
.evidence-grid > div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.product-profile p,
.summary-block p,
.activity-profile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.product-profile a,
.funding-profile a,
.activity-profile a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.translation-status {
  display: block;
  margin-top: 8px;
  color: var(--warning);
  font-size: 11px;
}

.candidate-analysis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ai-summary-block {
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

.candidate-evidence {
  margin: 0 72px;
  border-top: 1px solid var(--line);
}

.candidate-evidence > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.candidate-evidence > summary::-webkit-details-marker,
.source-runtime-collapsible > summary::-webkit-details-marker,
.original-message > summary::-webkit-details-marker,
.signal-lineage > summary::-webkit-details-marker {
  display: none;
}

.candidate-evidence > summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 18px;
}

.candidate-evidence[open] > summary::after {
  content: "−";
}

.candidate-evidence > summary small {
  margin-left: auto;
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 9px;
}

.candidate-evidence-body {
  padding: 14px 0 32px;
}

.candidate-signal-origin {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.activity-profile {
  margin-top: 22px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 24px;
}

.signal-list,
.gap-list,
.risk-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  list-style: none;
}

.signal-list li {
  position: relative;
  padding-left: 15px;
}

.signal-list li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.risk-list li::before {
  background: var(--warning);
}

.clear-state {
  margin: 0;
  color: var(--positive);
  font-size: 12px;
}

.candidate-source-actions,
.source-links,
.source-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.candidate-source-actions a,
.source-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.potential-card .product-profile > strong:not(:first-child) {
  margin-top: 22px;
}

.potential-actions {
  margin: 0 72px;
  padding: 0 0 28px;
  border-top: 1px solid var(--line);
}

.potential-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}

.potential-pagination a:last-child {
  justify-self: end;
}

.potential-pagination strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Detail, timelines and source surfaces */

.detail-shell {
  max-width: 1450px;
}

.back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.back:hover {
  color: var(--accent);
  transform: translateX(-3px);
}

.project-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 12px 0 58px;
  border-bottom: 1px solid var(--line-strong);
}

.project-icon-large {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}

.project-hero h1 {
  font-size: clamp(3.4rem, 6vw, 6.3rem);
}

.project-hero p:last-child {
  grid-column: 2;
  max-width: 920px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.product-profile-detail,
.funding-profile {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.product-profile-detail > strong,
.funding-profile > strong {
  color: var(--accent);
}

.product-profile-detail p {
  max-width: 940px;
  font-size: 15px;
}

.project-times,
.funding-facts,
.discovery-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.project-times > div,
.funding-facts > div,
.discovery-facts > div {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--line);
}

.project-times dt,
.project-times dd,
.funding-facts dt,
.funding-facts dd,
.discovery-facts dt,
.discovery-facts dd {
  margin: 0;
}

.project-times dt,
.funding-facts dt,
.discovery-facts dt {
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.project-times dd,
.funding-facts dd,
.discovery-facts dd {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.detail-times {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.detail-times > span {
  grid-column: 1 / -1;
  padding-top: 12px;
  color: var(--quiet);
  font-size: 11px;
}

.signal-lineage-list,
.constraint-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.signal-lineage,
.constraint-list > article {
  background: var(--paper);
}

.signal-lineage > summary {
  min-height: 56px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}

.signal-lineage-observations,
.constraint-list > article {
  padding: 20px;
}

.signal-observation {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.summary-panel,
.status-panel {
  margin-top: 32px;
  padding: 30px;
  background: var(--paper);
  border-radius: 4px 22px 4px 22px;
  box-shadow: var(--shadow-soft);
}

.summary-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.summary-heading strong {
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 600;
}

.summary-heading span {
  color: var(--quiet);
  font-size: 11px;
}

.summary-panel > p {
  max-width: 950px;
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.summary-panel .ai-summary-block {
  margin-top: 24px;
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: #fff;
}

.status-panel span,
.status-panel strong {
  display: block;
}

.status-panel span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.status-panel strong {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
}

.status-panel form {
  display: flex;
  gap: 10px;
}

select,
button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
}

select {
  min-width: 130px;
  padding: 0 38px 0 13px;
  background: #fff;
  color: var(--ink);
}

button {
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

button:hover {
  background: #5367ef;
}

button:active {
  transform: translateY(1px) scale(0.98);
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 15px;
  padding: 24px 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline-item time {
  color: var(--quiet);
  font-family: var(--mono-font);
  font-size: 10px;
}

.timeline-item p {
  max-width: 980px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.original-message,
.source-runtime-collapsible,
.x-account-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.original-message summary,
.source-runtime-collapsible summary,
.x-account-details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.source-runtime-collapsible > summary > .x-account-summary-copy {
  min-width: 0;
  flex: 1;
}

.source-runtime-collapsible > summary > span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Discovery, funding, governance, health and methodology pages */

.discovery-shell .masthead,
.funding-shell .masthead,
.rules-shell .masthead {
  padding-bottom: 42px;
}

.discovery-shell .masthead h1,
.funding-shell .masthead h1,
.rules-shell .masthead h1 {
  font-size: clamp(3.2rem, 5.6vw, 6rem);
}

.discovery-warning,
.separation-note,
.rule-note {
  margin: 20px 0 28px;
  padding: 18px 20px;
  background: var(--warning-soft);
  color: #725027;
  border-radius: 4px 18px 4px 18px;
  font-size: 13px;
  line-height: 1.7;
}

.discovery-list,
.funding-list,
.source-health-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.discovery-card,
.funding-card,
.source-health-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 26px;
  background: var(--paper);
  border-radius: 18px 4px 18px 4px;
  box-shadow: 0 18px 50px rgba(54, 52, 45, 0.06);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.discovery-card:hover,
.funding-card:hover,
.source-health-card:hover {
  box-shadow: 0 28px 65px rgba(54, 52, 45, 0.09);
  transform: translateY(-4px);
}

.funding-card-head,
.source-health-head,
.x-account-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.funding-product,
.funding-summary,
.funding-signals,
.discovery-signals,
.discovery-fit,
.source-health-summary,
.x-account-summary-copy,
.x-account-performance {
  margin-top: 18px;
}

.funding-product p,
.funding-summary p,
.funding-signals p,
.discovery-signals p,
.discovery-fit p,
.source-health-summary p,
.x-account-summary-copy p,
.x-account-performance p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.funding-score,
.source-status,
.source-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8e7e2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.source-status-healthy,
.source-status-active,
.source-status-verified,
.source-status-success {
  background: var(--positive-soft);
  color: var(--positive);
}

.source-status-error,
.source-status-verification_error {
  background: var(--danger-soft);
  color: var(--danger);
}

.source-status-evaluating,
.source-status-backoff,
.source-status-retry_due {
  background: var(--warning-soft);
  color: var(--warning);
}

.source-error {
  color: var(--danger);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rules-section {
  margin-top: 26px;
  padding: 32px;
  background: var(--paper);
  border-radius: 18px 4px 18px 4px;
  box-shadow: var(--shadow-soft);
}

.rules-section h2,
.rules-section h3 {
  font-family: var(--display-font);
  letter-spacing: -0.035em;
}

.rules-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.rules-section h3 {
  margin: 0;
  font-size: 18px;
}

.rules-section p,
.rules-section li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.policy-grid,
.policy-grid-three,
.constraint-layout,
.score-rules,
.tracking-scope,
.output-contract {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.policy-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid > article,
.policy-grid-three > article,
.constraint-layout > article,
.score-rules > article,
.tracking-scope > article,
.output-contract > article {
  padding: 22px;
  background: var(--canvas);
  border-radius: 10px;
}

.empty {
  color: var(--muted);
}

.empty p,
.empty small {
  margin: 0;
}

.selected-empty {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 210px;
  padding: 38px;
  background: var(--paper);
  border-radius: 24px 4px 24px 4px;
  box-shadow: var(--shadow-soft);
}

.selected-empty p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
}

.selected-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
}

.empty-mark {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.empty-mark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: translate(-50%, -50%);
}

@media (max-width: 1260px) {
  .app-topbar {
    padding-inline: 34px;
  }

  .shell {
    padding-inline: 34px;
  }

  .masthead,
  .page-intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
    gap: 48px;
  }

  .project-card[data-variant="featured"] {
    grid-template-columns: 62px minmax(0, 1fr) 190px;
    padding: 36px;
  }

  .feature-icon {
    width: 62px;
    height: 62px;
  }

  .candidate-table-head,
  .candidate-summary-row {
    grid-template-columns: minmax(240px, 1fr) 120px 145px 125px;
    gap: 16px;
  }

  .candidate-content {
    gap: 34px;
  }

  .discovery-list,
  .funding-list,
  .source-health-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 68px;
  }

  .app-sidebar {
    display: none;
  }

  .app-topbar {
    inset-inline-start: 0;
    gap: 16px;
    padding-inline: 20px;
    background: var(--canvas);
    backdrop-filter: none;
  }

  .mobile-menu {
    display: flex;
    flex: 0 0 auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 70px;
    padding: 7px max(9px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left));
    border-top: 1px solid rgba(23, 23, 21, 0.09);
    background: rgba(251, 250, 246, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: var(--quiet);
    font-size: 10px;
  }

  .mobile-bottom-nav a.active {
    color: var(--accent);
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .shell {
    width: 100%;
    margin-left: 0;
    padding: 98px 28px 112px;
  }

  .masthead,
  .page-intro {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .intro-metrics {
    max-width: 560px;
  }

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

  .evidence-pulse {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
  }

  .evidence-pulse .text-link {
    grid-column: 2;
  }

  .candidate-table-head {
    display: none;
  }

  .candidate-summary-row {
    grid-template-columns: minmax(240px, 1fr) 120px 145px 130px;
    padding-left: 52px;
  }

  .candidate-summary-row > .candidate-rank {
    left: 12px;
  }

  .candidate-content,
  .candidate-evidence {
    margin-inline: 0;
    padding-inline: 52px 18px;
  }

  .candidate-evidence {
    margin-left: 52px;
    padding-inline: 0;
  }

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

  .ai-summary-block {
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .policy-grid-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .app-topbar {
    gap: 10px;
    padding-inline: 14px;
  }

  .command-search {
    min-height: 42px;
    padding-inline: 12px;
  }

  .command-search kbd,
  .topbar-status {
    display: none;
  }

  .shell {
    padding: 88px 18px 104px;
  }

  .masthead,
  .page-intro {
    gap: 30px;
    padding: 28px 0 48px;
  }

  .masthead h1,
  .page-intro h1 {
    font-size: clamp(2.6rem, 11.8vw, 3.25rem);
    letter-spacing: -0.06em;
    line-height: 0.92;
  }

  .lede {
    margin-top: 23px;
    font-size: 15px;
    line-height: 1.75;
  }

  .eyebrow {
    margin-bottom: 13px;
  }

  .intro-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .intro-metrics > div {
    min-height: 82px;
    padding-right: 8px;
  }

  .intro-metrics strong {
    font-size: 2.2rem;
  }

  .intro-metrics span {
    font-size: 10px;
  }

  .section-heading,
  .board-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading h2,
  .board-head h2,
  .evidence-pulse h2 {
    font-size: 1.9rem;
  }

  .project-card[data-variant="featured"] {
    display: block;
    min-height: 0;
    padding: 22px 20px 25px;
    border-radius: 18px 3px 18px 3px;
  }

  .project-card[data-variant="featured"]::after {
    right: -160px;
    bottom: -120px;
  }

  .feature-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .project-card[data-variant="featured"] .project-copy {
    width: 100%;
  }

  .feature-title-line {
    min-height: 52px;
    padding-right: 66px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .project-card[data-variant="featured"] h3 {
    max-width: calc(100% - 10px);
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .feature-description {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  .feature-activity,
  .feature-summary {
    font-size: 12px;
  }

  .feature-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
  }

  .feature-facts span,
  .feature-facts strong {
    margin: 0;
    padding-right: 8px;
  }

  .feature-facts span {
    padding-top: 12px;
  }

  .feature-facts strong {
    padding-bottom: 12px;
    border-bottom: 0;
    font-size: 11px;
  }

  .dashboard-grid {
    gap: 42px;
    margin-top: 52px;
  }

  .project-row {
    grid-template-columns: 28px 46px minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 112px;
  }

  .project-row .project-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .project-row-fact {
    display: none;
  }

  .project-row h3 {
    font-size: 17px;
  }

  .project-row .tag {
    display: none;
  }

  .project-row .project-copy > p {
    -webkit-line-clamp: 1;
  }

  .evidence-pulse {
    display: block;
    padding: 24px;
  }

  .evidence-pulse .text-link {
    grid-column: auto;
  }

  .candidate-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 22px 16px 18px 48px;
  }

  .candidate-summary-row > .candidate-rank {
    top: 29px;
  }

  .candidate-summary-row .project-identity {
    grid-column: 1;
  }

  .candidate-verdict {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
  }

  .candidate-funding,
  .candidate-updated {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .candidate-updated {
    justify-content: space-between;
  }

  .candidate-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 16px 22px 48px;
  }

  .my-project-card {
    grid-template-columns: 28px 44px minmax(0, 1fr) 22px;
    gap: 10px;
    padding: 18px 8px;
  }

  .my-project-card .project-icon {
    width: 44px;
    height: 44px;
  }

  .my-project-card .project-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .candidate-evidence {
    margin-left: 48px;
    margin-right: 16px;
  }

  .potential-actions {
    margin-left: 48px;
    margin-right: 16px;
  }

  .candidate-evidence > summary small {
    display: none;
  }

  .candidate-analysis,
  .evidence-grid,
  .project-times,
  .funding-facts,
  .discovery-facts,
  .policy-grid,
  .constraint-layout,
  .score-rules,
  .tracking-scope,
  .output-contract {
    grid-template-columns: 1fr;
  }

  .board,
  .rules-section,
  .summary-panel,
  .status-panel {
    margin-top: 22px;
    padding: 22px 18px;
    border-radius: 14px 3px 14px 3px;
  }

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

  .stats article {
    min-height: 84px;
    padding: 16px 12px 14px 0;
  }

  .stats article + article {
    padding-left: 12px;
  }

  .stats article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .project-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 36px;
  }

  .project-rationale {
    grid-column: 1 / -1 !important;
    margin-top: 4px !important;
  }

  .project-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .project-hero h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .project-hero .eyebrow {
    overflow-wrap: anywhere;
  }

  .detail-times {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .status-panel form {
    align-items: stretch;
    flex-direction: column;
  }

  .status-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .timeline-item {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 11px;
  }

  .selected-empty {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 26px 20px;
  }

  .selected-empty > a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .discovery-list,
  .funding-list,
  .source-health-list {
    gap: 14px;
  }

  .discovery-card,
  .funding-card,
  .source-health-card {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}
