/* People Facing chromatic product system
   Final cascade layer derived from the approved Paper designs. */
:root {
  --pi-bg: #ffffff;
  --pi-surface: #f4f4f2;
  --pi-surface-strong: #eaeae7;
  --pi-ink: #0b0b0b;
  --pi-muted: #6d6d68;
  --pi-line: #d9d9d5;
  --pi-danger: #a63b37;
  --pi-success: #2d6a4f;
  --pi-radius: 6px;
  --pi-pill: 999px;
  --pi-mineral: url("/static/chromatic/mineral-flare.png");
  --pi-nocturnal: url("/static/chromatic/nocturnal-bloom.png");
  --pi-polar: url("/static/chromatic/polar-ember.png");
  --pi-solar: url("/static/chromatic/solar-spectrum.png");
  --pi-page-max: 1208px;
  --pi-page-gutter: 36px;
  --pi-page-track: min(var(--pi-page-max), calc(100% - (var(--pi-page-gutter) * 2)));
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.mono,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--pi-bg);
  color: var(--pi-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.app-shell,
.main {
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 48px;
  border-bottom: 1px solid var(--pi-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.site-header-main,
.site-header-actions,
.nav {
  display: flex;
  align-items: center;
}

.site-header-main {
  min-width: 0;
  gap: 42px;
}

.site-footer {
  border-top: 1px solid var(--pi-line);
  background: rgba(255, 255, 255, 0.94);
}

.site-footer-inner {
  display: flex;
  width: min(1208px, calc(100% - 56px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 18px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.legal-nav a {
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--pi-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-contact {
  text-align: right;
}

.brand {
  flex: 0 0 auto;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
}

.nav {
  height: auto;
  margin: 0;
  gap: 30px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
  padding: 27px 0 25px;
  color: var(--pi-muted);
  font-size: 14px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  border-radius: 0;
  background: transparent;
  color: var(--pi-ink);
}

.nav-item.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--pi-ink);
  content: "";
}

.site-header-actions {
  flex: 0 0 auto;
  gap: 16px;
}

.site-header-actions form {
  margin: 0;
}

.workspace-user {
  max-width: 240px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-auth-primary,
.mobile-nav-menu,
.header-primary-label-short {
  display: none;
}

.mobile-nav-menu {
  position: relative;
}

.mobile-nav-menu summary {
  display: inline-grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
  color: var(--pi-ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  list-style: none;
}

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

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.mobile-nav-menu:not([open]) .mobile-nav-panel {
  display: none;
}

.mobile-nav-panel a,
.mobile-nav-panel button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #eeeeea;
  background: transparent;
  color: var(--pi-ink);
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  text-align: left;
  text-decoration: none;
}

.mobile-nav-panel a:last-child,
.mobile-nav-panel form:last-child button {
  border-bottom: 0;
}

.mobile-nav-panel a.active {
  background: #f5f5f1;
  font-weight: 600;
}

.icon-action {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pi-ink);
  cursor: pointer;
  font: inherit;
}

.icon-action:hover {
  border-color: var(--pi-ink);
}

.eyebrow,
.eyebrow.red {
  color: var(--pi-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 16px;
  text-transform: uppercase;
}

.paper-card,
.admin-section {
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
  box-shadow: none;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 18px;
  text-transform: none;
  text-decoration: none;
}

.button.primary,
button.button.primary {
  border-color: var(--pi-ink);
  background: var(--pi-ink);
  color: #fff;
}

.button.quiet,
button.button.quiet {
  border-color: var(--pi-line);
  background: #fff;
  color: var(--pi-ink);
}

.button.danger,
button.button.danger {
  border-color: #e2b8b4;
  background: #fff;
  color: var(--pi-danger);
}

.button:hover:not(:disabled) {
  transform: none;
  border-color: var(--pi-ink);
  box-shadow: none;
}

.button.primary:hover:not(:disabled) {
  background: #2a2a28;
  color: #fff;
}

input,
textarea,
select {
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
  color: var(--pi-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 22px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--pi-ink);
  outline: 1px solid var(--pi-ink);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 64px;
  max-width: 1320px;
  min-height: 470px;
  margin: 0 auto;
  padding: 76px 60px 64px;
  border: 0;
  background: #fff;
}

.hero-copy {
  align-self: center;
  max-width: 850px;
}

.hero h1,
.case-header h1,
.admin-header h1 {
  margin: 18px 0 24px;
  color: var(--pi-ink);
  font-family: inherit;
  font-size: clamp(50px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.02;
}

h1,
h2,
h3,
h4,
.admin-section h2,
.admin-section h3,
.report-section h2,
.report-section h3 {
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--pi-ink);
  font-family: inherit;
  font-style: normal;
}

.lede,
.hero .lede {
  max-width: 730px;
  margin: 0;
  color: var(--pi-muted);
  font-family: inherit;
  font-size: 18px;
  line-height: 28px;
}

.hero-index {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: end;
  gap: 14px 20px;
  min-height: 340px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--pi-radius);
  background-image: linear-gradient(180deg, rgba(2, 6, 12, 0.05), rgba(2, 6, 12, 0.64)), var(--pi-polar);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-index::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  content: "";
}

.hero-index span,
.hero-index strong,
.hero-index i {
  position: relative;
}

.hero-index span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-index strong {
  font-size: 13px;
  font-weight: 500;
}

.hero-index i {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px 92px;
}

.research-panel,
.method-panel {
  min-width: 0;
  padding: 36px 40px;
}

.card-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.card-heading h2,
.section-heading h2 {
  margin: 7px 0 0;
  color: var(--pi-ink);
  font-family: inherit;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
}

.card-number,
.role-badge,
.status-chip,
.status-pill,
.case-status,
.retention-badge {
  padding: 7px 11px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
  color: var(--pi-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.research-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.research-form label {
  display: grid;
  gap: 8px;
}

.research-form label > span:first-child {
  color: var(--pi-ink);
  font-size: 12px;
  font-weight: 500;
}

.research-form label b,
.research-form label small {
  color: var(--pi-muted);
  font-weight: 400;
}

.research-form input,
.research-form textarea,
.research-form select {
  min-height: 54px;
  padding: 14px 16px;
}

.research-form textarea {
  min-height: 92px;
  resize: vertical;
}

.discovery-search {
  display: grid;
  gap: 8px;
}

.discovery-search > label,
.direct-url-panel label {
  display: grid;
  gap: 8px;
}

.discovery-search > label > span,
.direct-url-panel label > span {
  color: var(--pi-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.discovery-search-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.discovery-search-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.discovery-search-row .button {
  flex: 0 0 auto;
}

.field-help {
  margin: 0;
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 20px;
}

.candidate-results {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.candidate-results-heading,
.candidate-results-title-row,
.more-candidates,
.anchor-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.candidate-results-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pi-line);
}

.candidate-results-title-row {
  justify-content: flex-start;
  gap: 18px;
}

.candidate-results-title-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.candidate-results-title-row .card-number {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 16px;
}

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

.candidate-discovery-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
  color: var(--pi-ink);
  text-align: left;
}

.candidate-discovery-card:hover,
.candidate-discovery-card:focus-visible {
  border-color: var(--pi-ink);
  outline: none;
}

.candidate-discovery-card.is-selected {
  border: 2px solid var(--pi-ink);
  background: var(--pi-surface);
}

.candidate-avatar {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 50%;
  background: var(--pi-surface-strong);
  color: var(--pi-ink);
  font-size: 14px;
  font-weight: 500;
}

.candidate-avatar.is-loading {
  background: linear-gradient(
    105deg,
    var(--pi-surface-strong) 30%,
    #fff 45%,
    var(--pi-surface-strong) 60%
  );
  background-size: 220% 100%;
  animation: candidate-avatar-shimmer 1.4s ease-in-out infinite;
}

.candidate-avatar-loader {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-top-color: var(--pi-ink);
  border-radius: 50%;
  background: var(--pi-surface-strong);
  animation: candidate-avatar-spin 0.8s linear infinite;
}

@keyframes candidate-avatar-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes candidate-avatar-spin {
  to { transform: rotate(360deg); }
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-discovery-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.candidate-discovery-copy strong,
.candidate-discovery-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-discovery-copy strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.candidate-subtitle {
  color: var(--pi-ink);
  font-size: 13px;
  line-height: 18px;
}

.candidate-meta {
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 17px;
}

.candidate-arrow {
  align-self: start;
  justify-self: end;
  color: var(--pi-muted);
  font-size: 18px;
  line-height: 20px;
}

.candidate-anchor-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 5px 9px;
  border: 1px solid var(--pi-ink);
  border-radius: var(--pi-pill);
  background: var(--pi-ink);
  color: #fff;
  font-size: 11px;
  line-height: 14px;
}

.more-candidates {
  min-height: 76px;
  padding: 16px 18px;
  border-top: 1px solid var(--pi-line);
}

.more-candidates > div {
  display: grid;
  gap: 3px;
}

.more-candidates strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.more-candidates span,
.candidate-empty,
.anchor-fallback {
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 20px;
}

.more-candidates .button {
  flex: 0 0 auto;
}

.candidate-empty {
  padding: 18px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: var(--pi-surface);
}

.anchor-fallback {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--pi-line);
}

.anchor-fallback .button,
.direct-url-panel .button {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.direct-url-panel {
  display: grid;
  gap: 12px;
}

.discovery-actions {
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 2px;
}

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

.attestation {
  display: flex !important;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--pi-radius);
  background: var(--pi-surface);
}

.attestation input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--pi-ink);
}

.attestation span {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px;
}

.form-actions {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.config-alert,
.admin-message {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid #e1d7ba;
  border-radius: var(--pi-radius);
  background: #fffbea;
  color: #5d5239;
  font-size: 13px;
  line-height: 20px;
}

.config-alert span {
  color: inherit;
}

.method-panel {
  position: relative;
  overflow: hidden;
  background: var(--pi-surface);
}

.method-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.method-list li {
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-color: var(--pi-line);
}

.method-list li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pi-muted);
  font-size: 10px;
}

.method-list strong {
  font-size: 14px;
  font-weight: 500;
}

.method-list p,
.capability small {
  color: var(--pi-muted);
}

.capabilities {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-color: var(--pi-line);
}

.capability {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
}

.capability > span {
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa;
}

.capability > span.available {
  background: var(--pi-success);
}

.capability b {
  font-size: 13px;
  font-weight: 500;
}

.capability small {
  font-size: 12px;
}

.recent-section {
  max-width: none;
  margin: 0;
  padding: 72px max(60px, calc((100vw - 1200px) / 2)) 96px;
  border-top: 1px solid var(--pi-line);
  background: var(--pi-surface);
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.archive-search {
  position: relative;
  display: flex;
  flex: 1 1 360px;
  max-width: 520px;
  align-items: center;
}

.archive-search-icon {
  position: absolute;
  left: 16px;
  z-index: 1;
  color: var(--pi-muted);
}

.archive-search input {
  width: 100%;
  padding: 0 42px;
}

.archive-search button {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.archive-search input {
  height: 44px;
  border-radius: var(--pi-pill);
}

.status-filter {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
}

.status-filter button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: var(--pi-pill);
  color: var(--pi-muted);
}

.status-filter button.active {
  background: var(--pi-ink);
  color: #fff;
}

.case-list {
  display: grid;
  margin-top: 18px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
}

.case-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 150px 100px 24px;
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 18px 20px;
  border-color: var(--pi-line);
  background: #fff;
  color: var(--pi-ink);
  text-decoration: none;
}

.case-row + .case-row {
  border-top: 1px solid var(--pi-line);
}

.case-row:hover {
  background: var(--pi-surface);
  transform: none;
}

.case-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background-image: var(--pi-solar);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.case-primary,
.case-stage {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.case-primary strong,
.case-stage strong {
  font-weight: 500;
}

.case-primary span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-primary small,
.case-stage span {
  font-size: 11px;
}

.case-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.case-status i,
.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.case-arrow {
  color: var(--pi-muted);
  font-size: 16px;
}

.case-primary span,
.case-primary small,
.case-stage span {
  color: var(--pi-muted);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  max-width: 1320px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 48px 60px 60px;
}

.auth-layout .auth-hero {
  display: flex;
  min-height: 660px;
  padding: 56px;
  border-radius: var(--pi-radius) 0 0 var(--pi-radius);
  background-image: linear-gradient(180deg, rgba(3, 7, 18, 0.1), rgba(3, 7, 18, 0.72)), var(--pi-nocturnal);
  background-position: center;
  background-size: cover;
}

.auth-layout .auth-hero h1,
.auth-layout .auth-hero .lede,
.auth-layout .auth-hero .eyebrow {
  color: #fff;
}

.auth-layout .research-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 660px;
  border-left: 0;
  border-radius: 0 var(--pi-radius) var(--pi-radius) 0;
}

.auth-layout .research-panel .research-form {
  width: 100%;
}

/* Dedicated Paper sign-in board */
.auth-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.auth-page .site-header {
  display: none;
}

.auth-page .app-shell,
.auth-page .main {
  min-height: 100svh;
}

.signin-board {
  display: flex;
  width: 100%;
  min-height: 100svh;
  background: #fff;
}

.signin-art {
  position: relative;
  display: flex;
  flex: 0 0 52.78%;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.38)), var(--pi-nocturnal);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.signin-brand {
  position: relative;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
}

.signin-promise {
  position: relative;
  display: grid;
  gap: 16px;
}

.signin-promise h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 4.03vw, 58px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.07;
}

.signin-promise p {
  width: min(440px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 25px;
}

.signin-panel {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 70px;
  background: #fff;
}

.signin-context {
  color: #666662;
  font-size: 13px;
  line-height: 16px;
  text-align: right;
}

.signin-form-wrap {
  display: grid;
  width: min(470px, 100%);
  gap: 24px;
  align-self: center;
}

.signin-heading {
  display: grid;
  gap: 10px;
}

.signin-heading > span {
  color: #777772;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 16px;
}

.signin-heading h2 {
  max-width: 440px;
  margin: 0;
  color: #000;
  font-size: 42px;
  font-weight: 400;
  line-height: 47px;
}

.signin-form {
  display: grid;
  gap: 24px;
}

.signin-form label {
  display: grid;
  gap: 9px;
  color: #555550;
  font-size: 12px;
  line-height: 16px;
}

.signin-form label small {
  color: #888884;
  font-size: inherit;
}

.signin-form input:not([type="hidden"]):not([type="checkbox"]) {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #d4d4cf;
  border-radius: 10px;
  background: #fff;
  color: var(--pi-ink);
  font-size: 15px;
  line-height: 18px;
}

.signin-form input::placeholder {
  color: #888884;
  opacity: 1;
}

.signin-form input:focus {
  border-color: var(--pi-ink);
  outline: 1px solid var(--pi-ink);
}

.signin-submit {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.signin-submit:hover {
  background: #2a2a28;
}

.oauth-button {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #c8c8c2;
  border-radius: 8px;
  background: #fff;
  color: #20201e;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
}

.oauth-button:hover {
  border-color: #777772;
  background: #f8f8f6;
}

.google-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
}

.google-mark svg {
  display: block;
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #777772;
  font-size: 12px;
  line-height: 16px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: #e0e0dc;
  content: "";
}

.google-signup-form {
  display: grid;
  gap: 10px;
}

.oauth-consent {
  margin: 0;
  color: #777772;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
}

.oauth-consent a {
  color: #555550;
  font-weight: 600;
}

.signin-error {
  padding: 14px 16px;
  border: 1px solid #e3bbb7;
  border-radius: 8px;
  background: #fff7f6;
  color: var(--pi-danger);
  font-size: 13px;
  line-height: 19px;
}

.signin-error strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.signin-success {
  padding: 14px 16px;
  border: 1px solid #b9d4c1;
  border-radius: 8px;
  background: #f4faf5;
  color: #245b35;
  font-size: 13px;
  line-height: 19px;
}

.signin-context a,
.auth-switch a,
.policy-consent a {
  color: var(--pi-ink);
  font-weight: 600;
}

.auth-switch {
  margin: -8px 0 0;
  color: #666662;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

.policy-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #555550;
  font-size: 12px;
  line-height: 18px;
}

.policy-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pi-ink);
}

.policy-document {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.policy-document header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--pi-line);
}

.policy-document h1 {
  margin: 10px 0 12px;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.policy-document header p,
.policy-document section p {
  color: var(--pi-muted);
}

.policy-document section {
  padding: 34px 0;
  border-bottom: 1px solid var(--pi-line);
}

.policy-document section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
}

.policy-document section p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 24px;
}

.policy-document section p:last-child {
  margin-bottom: 0;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 24px 0 0;
  border: 1px solid var(--pi-line);
}

.policy-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #fff;
}

.policy-table th,
.policy-table td {
  padding: 16px;
  border-right: 1px solid var(--pi-line);
  border-bottom: 1px solid var(--pi-line);
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  color: var(--pi-ink);
  font-weight: 600;
}

.policy-table th:last-child,
.policy-table td:last-child {
  border-right: 0;
}

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

.policy-document > .button {
  margin-top: 32px;
}

.signin-footnote {
  margin: 0;
  color: #777772;
  font-size: 12px;
  line-height: 18px;
}

.account-status-panel .signin-form-wrap {
  gap: 20px;
}

.account-status-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #1d6a48;
  border-radius: 50%;
  color: #1d6a48;
  font-size: 20px;
  font-weight: 600;
}

.account-status-mark.error {
  border-color: var(--pi-danger);
  color: var(--pi-danger);
}

.account-status-copy {
  margin: 0;
  color: var(--pi-muted);
  font-size: 15px;
  line-height: 23px;
}

.account-status-action {
  text-decoration: none;
}

.account-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #d8c98e;
  border-radius: 6px;
  background: #fffbed;
}

.account-notice.success {
  border-color: #9bcab4;
  background: #f1faf6;
}

.account-notice > div {
  display: grid;
  gap: 3px;
}

.account-notice strong {
  font-size: 13px;
  font-weight: 600;
}

.account-notice span {
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 19px;
}

.account-notice form {
  flex: 0 0 auto;
}

@media (max-width: 1000px) {
  .signin-art {
    flex-basis: 48%;
    padding: 36px;
  }

  .signin-panel {
    padding: 40px;
  }
}

@media (max-width: 760px) {
  .signin-board {
    display: block;
  }

  .signin-art {
    min-height: 320px;
    padding: 28px 24px;
  }

  .signin-promise h1 {
    font-size: 38px;
    line-height: 42px;
  }

  .signin-promise p {
    max-width: 360px;
    font-size: 15px;
    line-height: 22px;
  }

  .signin-panel {
    min-height: 620px;
    padding: 32px 20px;
  }

  .signin-context {
    margin-bottom: 56px;
  }

  .signin-heading h2 {
    font-size: 36px;
    line-height: 41px;
  }

  .signin-footnote {
    margin-top: 64px;
  }

  .policy-document {
    padding: 48px 0 72px;
  }

  .policy-document h1 {
    font-size: 38px;
  }

  .account-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .account-notice .button {
    width: 100%;
  }
}

.case-header,
.admin-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 52px 60px 36px;
  border: 0;
  background: #fff;
}

.case-header,
.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.case-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.case-title-row > div:last-child {
  min-width: 0;
}

.subject-monogram {
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 600;
}

.case-title-row h1 {
  margin: 8px 0 10px;
}

.case-title-row p {
  margin: 0;
  color: var(--pi-muted);
  font-size: 16px;
}

.case-header-actions,
.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.case-header-actions form {
  margin: 0;
}

.case-header h1,
.admin-header h1 {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: clamp(46px, 4.3vw, 64px);
}

.back-link {
  color: var(--pi-muted);
  font-size: 13px;
}

.case-metric-strip,
.progress-card,
.metric-drilldown,
.case-layout,
.admin-content {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.case-metric-strip {
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: var(--pi-line);
}

.metric-card {
  min-height: 142px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.case-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  display: grid;
  gap: 12px;
  align-content: space-between;
  text-align: left;
}

.metric-card:hover {
  transform: none;
  background: var(--pi-surface);
}

.metric-card strong {
  font-size: 34px;
  font-weight: 400;
}

.progress-card {
  margin-top: 24px;
  padding: 30px;
  border: 0;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.4)), var(--pi-polar);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.progress-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.progress-top h2 {
  margin: 7px 0 8px;
  font-size: 28px;
  font-weight: 500;
}

.progress-top p,
.progress-card > p {
  margin: 0;
}

.progress-top > strong {
  font-size: 40px;
  font-weight: 500;
}

.progress-track {
  height: 8px;
  margin: 24px 0 12px;
  overflow: hidden;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.run-stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.run-stages li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  padding-top: 10px;
  font-size: 11px;
}

.run-stages li::before {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  content: "";
}

.run-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.run-context-item,
.run-actions {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 86px;
  padding: 14px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.run-context-item:first-child {
  padding-left: 0;
}

.run-context-item strong {
  font-weight: 500;
}

.run-actions {
  min-width: 150px;
  border-right: 0;
}

.progress-card .eyebrow,
.progress-card p,
.progress-card small,
.progress-card strong {
  color: #fff;
}

.progress-track {
  background: rgba(255, 255, 255, 0.25);
}

.progress-track span {
  background: #fff;
}

.run-stages li::before {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.run-stages li.complete::before,
.run-stages li.active::before {
  background: #fff;
  color: var(--pi-ink);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 28px 0 96px;
}

.report-column,
.evidence-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
}

#report-sections {
  display: grid;
  min-width: 0;
  gap: 18px;
}

#report-sections > *,
.report-section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.report-column > *,
.report-section > *,
.report-source > *,
.source-quote {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.report-column img {
  max-width: 100%;
  height: auto;
}

.report-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 40px;
  border: 0;
  background-image: linear-gradient(180deg, rgba(2, 6, 12, 0.08), rgba(2, 6, 12, 0.7)), var(--pi-mineral);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.report-intro h2 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}

.report-intro p {
  max-width: 760px;
  margin: 0;
  font-size: 17px;
  line-height: 27px;
}

.report-intro .eyebrow,
.report-intro h2,
.report-intro h3,
.report-intro p,
.report-intro strong,
.report-intro a {
  color: #fff;
}

#report-title {
  letter-spacing: 0;
}

.report-section,
.visual-report,
.social-report,
.source-ledger,
.discovery-ledger,
.report-operations,
.anchor-card,
.error-card {
  padding: 30px 32px;
  border-color: var(--pi-line);
  background: #fff;
  box-shadow: none;
}

.report-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.report-section-header > span {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--pi-line);
  border-radius: 50%;
  color: var(--pi-muted);
  font-size: 10px;
}

.report-section-header h2,
.report-section-header h3 {
  margin: 2px 0 0;
}

.report-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.report-source {
  padding: 18px 0;
  border-top: 1px solid var(--pi-line);
}

.report-source > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report-source a,
.report-source strong {
  color: var(--pi-ink);
  font-weight: 500;
}

.report-source p {
  margin: 8px 0 0;
}

.linkedin-post {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #d5d7d8;
  border-radius: 6px;
  background: #fff;
  color: #1f2327;
}

.linkedin-post > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 18px 20px 12px;
}

.linkedin-post-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8e9e6;
}

.linkedin-post-avatar-fallback {
  display: grid;
  place-items: center;
  background: #1f2327;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.linkedin-post-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding-top: 2px;
}

.linkedin-post-identity > a,
.linkedin-post-identity > strong {
  overflow: hidden;
  color: #1f2327;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkedin-post-identity > a:hover,
.linkedin-post-open:hover {
  color: #0a66c2;
  text-decoration: underline;
}

.linkedin-post-identity > span,
.linkedin-post-identity > small {
  overflow: hidden;
  color: #666b70;
  font-size: 12px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkedin-post-open {
  margin-top: 3px;
  color: #0a66c2;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.linkedin-post-copy {
  margin: 0;
  padding: 8px 20px 18px;
  color: #1f2327 !important;
  font-size: 14px !important;
  line-height: 21px !important;
  white-space: pre-wrap;
}

.linkedin-repost-original {
  margin: 0 20px 18px;
  overflow: hidden;
  border: 1px solid #d5d7d8;
  border-radius: 4px;
  background: #f7f7f5;
}

.linkedin-repost-original > div:first-child {
  display: grid;
  gap: 2px;
  padding: 14px 16px 9px;
}

.linkedin-repost-original > div:first-child > a,
.linkedin-repost-original > div:first-child > strong {
  color: #1f2327;
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  text-decoration: none;
}

.linkedin-repost-original > div:first-child > span {
  color: #6c7074;
  font-size: 11px;
  line-height: 16px;
}

.linkedin-repost-original > p {
  margin: 0;
  padding: 0 16px 15px;
  color: #303438 !important;
  font-size: 13px !important;
  line-height: 20px !important;
  white-space: pre-wrap;
}

.linkedin-post-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  border-top: 1px solid #d5d7d8;
  border-bottom: 1px solid #d5d7d8;
  background: #d5d7d8;
}

.linkedin-post-media.count-1 {
  grid-template-columns: 1fr;
}

.linkedin-post-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #eef0ef;
}

.linkedin-post-media.count-1 img {
  height: auto;
  max-height: 420px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.linkedin-post-links,
.linkedin-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 20px 0;
}

.linkedin-post-links a {
  border: 1px solid #b8c9da;
  border-radius: 999px;
  padding: 5px 9px;
  color: #0a66c2;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.linkedin-post-tags span {
  color: #0a66c2;
  font-size: 12px;
  font-weight: 500;
}

.linkedin-post > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border-top: 1px solid #e3e4e4;
  padding: 12px 20px;
  color: #666b70;
  font-size: 11px;
}

.linkedin-post-engagement {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.linkedin-post > footer small {
  color: #85898d;
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.visual-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  color: inherit;
  text-decoration: none;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-card > span {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.social-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.social-platforms > span {
  padding: 6px 10px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  font-size: 11px;
}

.social-account-group,
.social-account-card,
.evidence-list,
.candidate-list {
  display: grid;
  gap: 12px;
}

.social-account-card {
  padding: 16px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
}

.social-account-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.anchor-card dl,
.health-list,
.usage-detail-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.anchor-card dl > div,
.health-list > div,
.usage-detail-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--pi-line);
}

.anchor-card dt,
.health-list dt,
.usage-detail-list dt {
  color: var(--pi-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.anchor-card dd,
.health-list dd,
.usage-detail-list dd {
  margin: 0;
}

.report-section h2,
.report-section h3,
.report-section-header h2,
.report-section-header h3 {
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.report-section p,
.report-section li {
  color: #363633;
  font-size: 15px;
  line-height: 25px;
}

.anchor-card {
  position: sticky;
  top: 96px;
}

.case-layout .evidence-column .anchor-card {
  background: #fff;
  color: var(--pi-ink);
}

.case-layout .evidence-column .anchor-card .eyebrow,
.case-layout .evidence-column .anchor-card dt {
  color: var(--pi-muted);
}

.subject-monogram {
  background: var(--pi-ink);
  color: #fff;
}

.visual-gallery img {
  border-radius: var(--pi-radius);
}

.metric-drilldown {
  margin-top: 18px;
  padding: 26px 28px;
}

.admin-content {
  display: grid;
  gap: 20px;
  padding: 0 0 96px;
}

.admin-header p {
  margin: 0;
  color: var(--pi-muted);
  font-size: 16px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.usage-summary,
.credit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metrics,
.usage-summary,
.credit-summary {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: var(--pi-line);
}

.admin-metric-link,
.admin-metrics > div,
.usage-summary > div,
.credit-summary > div {
  min-height: 130px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.admin-metric-link {
  background-image: linear-gradient(180deg, rgba(2, 6, 12, 0.08), rgba(2, 6, 12, 0.66)), var(--pi-solar);
  background-position: center;
  background-size: cover;
  color: #fff;
  color: inherit;
  text-decoration: none;
}

.admin-metric-link,
.admin-metric-link span,
.admin-metric-link small {
  color: #fff;
}

.admin-metric-link article,
.admin-metrics > article,
.usage-summary > article,
.credit-summary > article {
  display: grid;
  min-height: 130px;
  gap: 8px;
  align-content: space-between;
  padding: 22px;
  background: #fff;
}

.admin-metric-link article {
  min-height: auto;
  padding: 0;
  background: transparent;
}

.admin-metric-link span,
.admin-metrics article > span,
.usage-summary article > span,
.credit-summary article > span {
  color: var(--pi-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.admin-metric-link strong,
.admin-metrics article > strong,
.usage-summary article > strong,
.credit-summary article > strong {
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.admin-metric-link small,
.admin-metrics article > small,
.usage-summary article > small,
.credit-summary article > small {
  color: var(--pi-muted);
  font-size: 11px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 20px;
  margin-top: 20px;
}

.retention-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 30px;
  align-items: end;
  margin-top: 22px;
}

.retention-controls p {
  margin-bottom: 8px;
  color: var(--pi-muted);
}

.retention-controls small {
  color: var(--pi-muted);
}

.retention-toggle-form,
.member-diagnostics-form,
.switch-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--pi-ink);
}

.retention-controls > form:last-child {
  grid-column: 1 / -1;
}

.admin-section {
  padding: 28px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table td {
  vertical-align: middle;
}

.admin-table td > small,
.admin-table td > strong {
  display: block;
}

.admin-table td > small {
  margin-top: 3px;
  color: var(--pi-muted);
  font-size: 11px;
}

.table-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
}

.admin-empty {
  margin: 18px 0 0;
  padding: 14px 16px;
}

.health-list dd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pi-danger);
}

.health-dot.ready {
  background: var(--pi-success);
}

.invite-link-panel {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--pi-radius);
  background: var(--pi-surface);
}

.admin-table th {
  background: var(--pi-surface);
  color: var(--pi-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-color: var(--pi-line);
}

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

.credit-packages form {
  min-width: 0;
}

.credit-package {
  display: grid;
  width: 100%;
  min-height: 150px;
  gap: 4px;
  align-content: end;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
  box-shadow: none;
}

.credit-package strong {
  font-size: 34px;
  font-weight: 400;
}

.credit-package small {
  color: var(--pi-muted);
}

.credit-packages form:nth-child(1) .credit-package {
  background-image: linear-gradient(180deg, rgba(2, 6, 12, 0.1), rgba(2, 6, 12, 0.65)), var(--pi-solar);
  background-size: cover;
  color: #fff;
}

.credit-packages form:nth-child(2) .credit-package {
  background-image: linear-gradient(180deg, rgba(2, 6, 12, 0.08), rgba(2, 6, 12, 0.62)), var(--pi-polar);
  background-size: cover;
  color: #fff;
}

.credit-packages form:nth-child(3) .credit-package {
  background-image: linear-gradient(180deg, rgba(2, 6, 12, 0.08), rgba(2, 6, 12, 0.62)), var(--pi-nocturnal);
  background-size: cover;
  color: #fff;
}

.credit-packages form .credit-package small {
  color: rgba(255, 255, 255, 0.82);
}

.credit-package:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.credit-custom-form {
  display: grid;
  min-height: 150px;
  gap: 10px;
  align-content: end;
  padding: 20px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
}

.credit-custom-form label {
  font-size: 13px;
  color: var(--pi-muted);
}

.credit-custom-form div {
  display: flex;
  gap: 10px;
}

.credit-custom-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.credit-custom-form small {
  color: var(--pi-muted);
}

.usage-chart {
  display: flex;
  min-height: 230px;
  gap: 8px;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: var(--pi-surface);
}

.usage-day {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 5px;
  justify-items: center;
  color: var(--pi-muted);
  font-size: 10px;
}

.usage-bar-track {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.usage-bar-track span,
.usage-bar-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.usage-bar-track i {
  background: var(--pi-danger);
}

.usage-day strong {
  color: var(--pi-ink);
  font-weight: 500;
}

.usage-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  color: var(--pi-muted);
  font-size: 11px;
}

.usage-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.usage-legend i {
  width: 8px;
  height: 8px;
  background: var(--pi-ink);
}

.usage-legend i.error {
  background: var(--pi-danger);
}

.operation-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.operation-list header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.operation-list > div > div {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pi-surface-strong);
}

.operation-list > div > div span {
  display: block;
  height: 100%;
  background: var(--pi-ink);
}

.operation-list small {
  color: var(--pi-danger);
  font-size: 10px;
}

.usage-bar-track {
  background: var(--pi-surface-strong);
}

.usage-bar-success {
  background: var(--pi-ink);
}

.empty-state,
.admin-empty {
  border: 1px dashed var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
  color: var(--pi-muted);
}

.toast-region {
  right: 24px;
  bottom: 24px;
}

@media (max-width: 1280px) {
  .site-header {
    padding: 0 28px;
  }

  .nav {
    gap: 20px;
  }

  .hero,
  .workspace-grid,
  .case-header,
  .admin-header,
  .auth-layout {
    padding-right: 36px;
    padding-left: 36px;
  }

  .case-metric-strip,
  .progress-card,
  .metric-drilldown,
  .case-layout,
  .admin-content {
    margin-right: 36px;
    margin-left: 36px;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 64px;
    padding: 12px 20px;
  }

  .workspace-page .site-header,
  .public-landing-page .site-header {
    padding-right: var(--pi-page-gutter);
    padding-left: var(--pi-page-gutter);
  }

  .site-header-main {
    gap: 22px;
  }

  .nav {
    max-width: calc(100vw - 260px);
    gap: 18px;
    overflow-x: auto;
  }

  .nav-item {
    padding: 11px 0;
  }

  .workspace-user {
    display: none;
  }

  .site-footer-inner {
    width: min(100% - 40px, 720px);
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 0;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-contact {
    text-align: left;
  }

  .hero {
    grid-template-columns: 1fr 280px;
    gap: 32px;
    min-height: 420px;
  }

  .workspace-grid,
  .case-layout,
  .admin-grid,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .case-header,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-header-actions,
  .admin-header-actions {
    justify-content: flex-start;
  }

  .auth-layout .auth-hero {
    min-height: 420px;
    border-radius: var(--pi-radius) var(--pi-radius) 0 0;
  }

  .auth-layout .research-panel {
    min-height: auto;
    border-top: 0;
    border-left: 1px solid var(--pi-line);
    border-radius: 0 0 var(--pi-radius) var(--pi-radius);
  }

  .anchor-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    max-width: calc(100vw - 74px);
  }

  .nav-item {
    padding: 6px 0 10px;
    font-size: 13px;
  }

  .hero,
  .workspace-grid,
  .case-header,
  .admin-header,
  .auth-layout {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 32px;
  }

  .hero h1,
  .case-header h1,
  .admin-header h1 {
    font-size: 46px;
  }

  .hero-index {
    min-height: 210px;
  }

  .workspace-grid {
    padding-bottom: 64px;
  }

  .research-panel,
  .method-panel,
  .admin-section,
  .report-section,
  .visual-report,
  .social-report,
  .source-ledger,
  .discovery-ledger,
  .report-operations,
  .anchor-card,
  .error-card {
    padding: 24px 20px;
  }

  .form-row,
  .form-actions,
  .archive-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .archive-toolbar {
    display: flex;
  }

  .archive-search {
    flex-basis: auto;
    max-width: none;
  }

  .form-actions .button {
    width: 100%;
  }

  .discovery-search-row,
  .candidate-results-heading,
  .candidate-results-title-row,
  .more-candidates,
  .anchor-fallback {
    align-items: stretch;
    flex-direction: column;
  }

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

  .candidate-results-heading .eyebrow {
    align-self: flex-start;
  }

  .more-candidates .button,
  .anchor-fallback .button {
    width: 100%;
  }

  .recent-section {
    padding: 56px 20px 72px;
  }

  .status-filter {
    max-width: 100%;
    overflow-x: auto;
  }

  .case-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .case-stage,
  .case-status {
    grid-column: 2;
    justify-self: start;
  }

  .case-metric-strip,
  .progress-card,
  .metric-drilldown,
  .case-layout,
  .admin-content {
    margin-right: 20px;
    margin-left: 20px;
  }

  .case-layout {
    padding-bottom: 64px;
  }

  .case-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .subject-monogram {
    width: 64px;
    height: 64px;
  }

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

  .run-context {
    grid-template-columns: 1fr;
  }

  .run-context-item,
  .run-context-item:first-child,
  .run-actions {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  }

  .run-actions {
    min-width: 0;
    border-bottom: 0;
  }

  .visual-gallery {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .usage-summary,
  .credit-summary {
    grid-template-columns: 1fr;
  }

  .retention-controls,
  .credit-packages {
    grid-template-columns: 1fr;
  }

  .retention-toggle-form,
  .member-diagnostics-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-table th,
  .admin-table td {
    white-space: nowrap;
  }

  .case-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .case-header-actions > *,
  .case-header-actions form,
  .case-header-actions .button {
    width: 100%;
  }

  .case-header-actions > span {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .report-intro {
    min-height: 330px;
    padding: 28px 24px;
  }

  .linkedin-post > header {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px 16px 10px;
  }

  .linkedin-post-avatar {
    width: 44px;
    height: 44px;
  }

  .linkedin-post-open {
    grid-column: 2;
    margin-top: 2px;
  }

  .linkedin-post-copy {
    padding: 8px 16px 16px;
  }

  .linkedin-repost-original {
    margin-right: 16px;
    margin-left: 16px;
  }

  .linkedin-post-media img {
    height: 160px;
  }

  .linkedin-post-links,
  .linkedin-post-tags,
  .linkedin-post > footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .linkedin-post > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-layout {
    padding-top: 24px;
  }

  .auth-layout .auth-hero {
    min-height: 360px;
    padding: 32px 24px;
  }
}

@media print {
  .site-header,
  .case-header-actions,
  .back-link,
  .progress-card,
  .evidence-column,
  .toast-region {
    display: none !important;
  }

  .case-header,
  .case-layout,
  .report-column {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .paper-card,
  .report-section,
  .report-intro {
    break-inside: avoid;
    border: 0;
  }

  .report-intro {
    min-height: 260px;
    color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Reworked intelligence report */
.case-page {
  background: #fff;
}

.case-page > .app-shell > .site-header {
  display: none;
}

.case-app {
  --report-gutter: clamp(24px, 4.2vw, 64px);
  min-height: 100vh;
  background: #fff;
}

.report-utility-bar {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px var(--report-gutter);
  border-bottom: 1px solid var(--pi-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.report-utility-context,
.case-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.report-brand {
  margin-right: 12px;
  color: var(--pi-ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.report-utility-bar .back-link,
.utility-subject {
  color: var(--pi-ink);
  font-size: 13px;
  text-decoration: none;
}

.report-utility-bar .back-link {
  color: var(--pi-muted);
}

.report-utility-bar .back-link::before {
  display: none;
}

.role-badge,
.status-pill,
.retention-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
  color: var(--pi-ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  text-transform: uppercase;
}

.status-pill i {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.case-app[data-status="complete"] .status-pill,
.case-app[data-status="complete"] .retention-badge,
.case-app[data-status="failed"] .status-pill,
.case-app[data-status="failed"] .retention-badge {
  display: none;
}

.report-export,
.case-app .button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  box-shadow: none;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.report-export,
.case-app .button.primary {
  border-color: #0b0b0b;
  background: #0b0b0b;
  color: #fff;
}

.case-app .button.quiet {
  background: #fff;
  color: var(--pi-ink);
}

.case-app .button.danger {
  border-color: #a63b37;
  background: #fff;
  color: #8d2822;
}

.research-state {
  display: flex;
  gap: 24px;
  width: min(1320px, calc(100% - (2 * var(--report-gutter))));
  min-height: 650px;
  margin: 64px auto;
}

.research-state-visual {
  display: flex;
  flex: 1 1 760px;
  flex-direction: column;
  min-width: 0;
  padding: 36px;
  overflow: hidden;
  border-radius: 6px;
  background-image: linear-gradient(180deg, rgba(4, 14, 24, 0.08), rgba(4, 14, 24, 0.32)), var(--pi-polar);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.research-state-topline,
.research-state-update,
.failed-state footer,
.report-cover-topline,
.report-cover-title,
.admin-danger-zone {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.research-state .eyebrow,
.research-state p,
.research-state small,
.research-state strong {
  color: inherit;
}

.research-state-topline > strong {
  font-size: 42px;
  font-weight: 350;
  line-height: 46px;
}

.research-state h1 {
  max-width: 720px;
  margin: 18px 0 10px;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.02;
}

.research-state-visual > p {
  max-width: 620px;
  font-size: 16px;
  opacity: 0.8;
}

.research-state .progress-track {
  height: 6px;
  margin: 28px 0 30px;
  overflow: hidden;
  border-radius: var(--pi-pill);
  background: rgba(255, 255, 255, 0.34);
}

.research-state .progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 300ms ease;
}

.research-state .run-stages {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-state .run-stages li {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.62);
}

.research-state .run-stages li::before {
  display: none;
}

.research-state .run-stages i {
  width: 15px;
  height: 15px;
  margin-right: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.research-state .run-stages li.complete,
.research-state .run-stages li.current {
  color: #fff;
}

.research-state .run-stages li.complete i {
  border-color: #fff;
  background: #fff;
}

.research-state-update {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
}

.research-state-update p,
.connection-copy small {
  margin: 4px 0 0;
  font-size: 12px;
}

.connection-copy {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.research-state-detail {
  display: flex;
  flex: 0 0 350px;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--pi-line);
  background: #fff;
}

.research-state-detail > strong {
  margin-top: 12px;
  font-size: 25px;
  font-weight: 450;
  line-height: 31px;
}

.research-state-detail > small {
  margin-top: 8px;
  color: var(--pi-muted);
  font-size: 13px;
}

.provider-context,
.run-history {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--pi-line);
}

.failed-state {
  width: min(1200px, calc(100% - (2 * var(--report-gutter))));
  margin: 72px auto;
  border: 1px solid var(--pi-line);
  background: #fff;
}

.failed-state-copy {
  min-height: 500px;
  padding: 60px;
}

.failed-state h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.02;
}

.failed-state-copy > p {
  max-width: 720px;
  color: var(--pi-muted);
  font-size: 17px;
  line-height: 27px;
}

.failed-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.failed-state footer {
  padding: 22px 60px;
  border-top: 1px solid var(--pi-line);
  color: var(--pi-muted);
  font-size: 12px;
}

.report-document {
  width: 100%;
  background: #fff;
}

.report-cover {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 44px var(--report-gutter) 50px;
  border-radius: 0 0 28px 28px;
  background-image: linear-gradient(180deg, rgba(3, 17, 25, 0.08), rgba(3, 17, 25, 0.34)), var(--pi-mineral);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.report-cover-topline {
  font-size: 11px;
  font-weight: 650;
  line-height: 16px;
  text-transform: uppercase;
}

.report-cover-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-cover-meta > span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--pi-pill);
  text-transform: none;
}

.report-cover-title {
  align-items: flex-end;
  margin-top: auto;
}

.report-cover h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 350;
  line-height: 0.94;
}

.report-cover-title > div > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.report-cover-thesis {
  width: min(380px, 34vw);
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 27px;
}

.report-reading-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 820px) minmax(260px, 340px);
  gap: clamp(30px, 4vw, 64px);
  width: min(1320px, calc(100% - (2 * var(--report-gutter))));
  margin: 0 auto;
  padding: 72px 0 110px;
}

.report-toc-rail {
  position: sticky;
  top: 104px;
  align-self: start;
}

.report-toc-rail nav {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.report-toc-rail a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 9px 0;
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 17px;
  text-decoration: none;
}

.report-toc-rail a:hover {
  color: var(--pi-ink);
}

.report-content {
  min-width: 0;
}

.report-chapter,
.report-section {
  scroll-margin-top: 100px;
  margin: 0;
  padding: 0 0 72px;
  border: 0;
  border-top: 1px solid var(--pi-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.report-chapter:first-child,
#report-sections > .report-section:first-child {
  border-top: 0;
}

.report-intro.report-chapter {
  display: block;
  min-height: 0;
  padding: 0 0 72px;
  background: transparent;
  color: var(--pi-ink);
}

.report-chapter-header,
.report-section-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0 28px;
}

.report-chapter-header > span,
.report-section-header > span {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pi-muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 16px;
}

.report-chapter-header h2,
.report-section-header h2 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
}

.report-intro > h3 {
  margin: 0 0 22px 58px;
  color: var(--pi-ink);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.08;
}

.report-intro > p,
.report-section-summary,
.conversation-probe-policy {
  margin-left: 58px;
  color: #363633;
  font-size: 17px;
  line-height: 28px;
}

.report-section-summary {
  margin-top: 0;
  margin-bottom: 26px;
}

.report-subsection + .report-subsection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--pi-line);
}

.report-subsection-title {
  margin: 0 0 12px 58px;
  color: var(--pi-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
}

.report-source,
.activity-snapshot,
.conversation-probe,
.qualification-check,
.public-artifact-profile {
  margin: 0 0 0 58px;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--pi-line);
  border-radius: 0;
  background: transparent;
}

.report-source > div:first-child,
.public-artifact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.report-source a,
.report-source strong,
.public-artifact-profile a,
.public-artifact-profile strong {
  color: var(--pi-ink);
  font-size: 17px;
  font-weight: 550;
  line-height: 24px;
  text-decoration: none;
}

.report-source p,
.public-artifact-profile p,
.report-empty-state {
  margin: 9px 0 0;
  color: #4f4f4b;
  font-size: 14px;
  line-height: 23px;
}

.report-source .source-quote {
  display: block;
  overflow: visible;
  max-width: 860px;
  margin: 14px 0 0;
  padding: 12px 14px 12px 16px;
  border-left: 3px solid #315f49;
  background: #f5f7f2;
  color: #272a25;
  font-size: 14px;
  line-height: 23px;
  white-space: normal;
}

.conversation-probe-label {
  display: inline-block;
  margin-bottom: 7px;
  color: #315f49;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
}

.conversation-probe.cutting_edge .conversation-probe-label {
  color: #9a3f3a;
}

.conversation-probe.industry_trend .conversation-probe-label,
.conversation-probe.industry_direction .conversation-probe-label {
  color: #7b633e;
}

.conversation-probe h3,
.qualification-check h3 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 17px;
  font-weight: 550;
  line-height: 24px;
}

.conversation-probe > p,
.qualification-check > p {
  margin: 9px 0 0;
  color: #4f4f4b;
  font-size: 14px;
  line-height: 23px;
}

.conversation-discussion-prompt,
.conversation-strong-answer {
  margin: 14px 0 0;
  padding: 10px 0 10px 14px;
  border-left: 3px solid #8ca49e;
}

.conversation-discussion-prompt span,
.qualification-check > span {
  color: #315f49;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 14px;
  text-transform: uppercase;
}

.conversation-discussion-prompt p {
  margin: 5px 0 0;
  color: var(--pi-ink);
  font-size: 15px;
  line-height: 24px;
}

.conversation-probe-sources {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.conversation-probe-sources a {
  display: grid;
  gap: 2px;
  padding: 6px 0 6px 10px;
  border-left: 2px solid #a9bbb7;
  text-decoration: none;
}

.conversation-probe-sources strong {
  color: var(--pi-ink);
  font-size: 13px;
}

.conversation-probe-sources span {
  color: var(--pi-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.report-source-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 18px;
}

.report-source-evidence span {
  font-weight: 650;
}

.report-source-evidence a {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  color: var(--pi-ink);
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.report-source small,
.public-artifact-profile small {
  display: block;
  margin-top: 10px;
  color: var(--pi-muted);
}

.match-badge,
.public-artifact-decision {
  flex-shrink: 0;
}

.linkedin-post {
  margin: 0 0 26px 58px;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: 6px;
  background: #fff;
}

.linkedin-post > header,
.linkedin-post-copy,
.linkedin-post-links,
.linkedin-post-tags,
.linkedin-post > footer {
  padding-right: 22px;
  padding-left: 22px;
}

.linkedin-post-copy {
  white-space: pre-wrap;
}

.visual-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-left: 58px;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: 6px;
  background: #f4f4f2;
  text-decoration: none;
}

.visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.visual-card > span {
  display: block;
  padding: 12px;
}

.social-platforms,
#social-account-groups,
.visual-policy,
.visual-report h3 {
  margin-left: 58px;
}

.social-account-card {
  margin-top: 12px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--pi-line);
  border-radius: 0;
  box-shadow: none;
}

.report-source-list {
  margin-left: 58px;
}

.report-source-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--pi-line);
}

.report-source-entry a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pi-ink);
  text-decoration: none;
}

.report-source-entry span {
  color: var(--pi-muted);
  font-size: 12px;
}

.admin-report-rail {
  align-self: start;
}

.admin-governance,
.admin-diagnostics,
.admin-danger-zone {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--pi-line);
  background: #fff;
}

.admin-governance h2 {
  margin: 8px 0 18px;
  font-size: 23px;
  font-weight: 450;
  line-height: 29px;
}

.admin-governance dl {
  margin: 0;
  border-top: 1px solid var(--pi-line);
}

.admin-governance dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e8e8e5;
  font-size: 12px;
}

.admin-governance dt,
.admin-governance dd {
  margin: 0;
}

.admin-diagnostics {
  border: 0;
  background: #18223a;
  color: #fff;
}

.admin-diagnostics summary {
  cursor: pointer;
  list-style: none;
}

.admin-diagnostics summary span,
.admin-diagnostics summary strong {
  display: block;
}

.admin-diagnostics summary span {
  color: #b7c5e8;
  font-size: 10px;
  font-weight: 650;
}

.admin-diagnostics summary strong {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 450;
}

.admin-diagnostics > p {
  margin: 16px 0;
  color: #d7ddea;
  font-size: 12px;
  line-height: 19px;
}

.admin-diagnostics .case-metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.18);
}

.admin-diagnostics .metric-card {
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #18223a;
  color: #fff;
}

.admin-danger-zone {
  align-items: center;
}

.admin-danger-zone strong,
.admin-danger-zone small {
  display: block;
}

.admin-danger-zone small {
  margin-top: 4px;
  color: var(--pi-muted);
  font-size: 11px;
}

.metric-drilldown {
  position: fixed;
  z-index: 120;
  inset: 88px max(24px, calc((100vw - 1100px) / 2));
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--pi-line);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.metric-drilldown > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 1100px) {
  .report-reading-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .admin-report-rail {
    grid-column: 2;
  }

  .research-state-detail {
    flex-basis: 300px;
  }
}

@media (max-width: 760px) {
  .case-app {
    --report-gutter: 20px;
  }

  .report-utility-bar {
    position: relative;
    min-height: 60px;
  }

  .report-utility-context {
    gap: 14px;
  }

  .report-brand {
    margin: 0;
    font-size: 16px;
  }

  .utility-subject,
  .role-badge,
  .status-pill,
  .case-header-actions .retention-badge {
    display: none;
  }

  .case-header-actions {
    gap: 8px;
  }

  .research-state {
    display: block;
    width: calc(100% - 32px);
    min-height: 0;
    margin: 16px auto 40px;
  }

  .research-state-visual {
    min-height: 600px;
    padding: 24px;
  }

  .research-state-detail {
    margin-top: 12px;
    padding: 24px;
  }

  .failed-state {
    width: calc(100% - 32px);
    margin: 16px auto 40px;
  }

  .failed-state-copy {
    min-height: 500px;
    padding: 32px 24px;
  }

  .failed-state h1 {
    font-size: 44px;
  }

  .failed-state footer {
    padding: 18px 24px;
  }

  .report-cover {
    min-height: 420px;
    padding: 22px 20px 26px;
    border-radius: 0 0 24px 24px;
  }

  .report-cover-meta #report-generated-at {
    display: none;
  }

  .report-cover-title {
    display: block;
  }

  .report-cover h1 {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 48px;
    line-height: 0.98;
  }

  .report-cover-title > div > p {
    max-width: 100%;
    font-size: 14px;
    line-height: 20px;
  }

  .report-cover-thesis {
    display: none;
  }

  .report-reading-layout {
    display: block;
    width: calc(100% - 40px);
    padding: 36px 0 72px;
  }

  .report-toc-rail {
    position: static;
    margin-bottom: 42px;
  }

  .report-toc-rail nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .report-toc-rail a {
    border-bottom: 1px solid var(--pi-line);
  }

  .report-chapter,
  .report-section {
    padding-bottom: 52px;
  }

  .report-chapter-header,
  .report-section-header {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0 24px;
  }

  .report-intro > h3,
  .report-intro > p,
  .report-subsection-title,
  .report-section-summary,
  .conversation-probe-policy,
  .report-source,
  .activity-snapshot,
  .conversation-probe,
  .qualification-check,
  .public-artifact-profile,
  .linkedin-post,
  .visual-gallery,
  .social-platforms,
  #social-account-groups,
  .visual-policy,
  .visual-report h3,
  .report-source-list {
    margin-left: 40px;
  }

  .report-intro > h3 {
    font-size: 34px;
  }

  .report-intro > p,
  .report-section-summary {
    font-size: 16px;
    line-height: 25px;
  }

  .linkedin-post {
    margin-right: 0;
  }

  .visual-gallery {
    grid-template-columns: 1fr;
  }

  .admin-report-rail {
    margin-top: 30px;
  }

  .metric-drilldown {
    inset: 16px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .report-utility-bar,
  .research-state,
  .failed-state,
  .report-toc-rail,
  .admin-report-rail,
  .metric-drilldown,
  .toast-region {
    display: none !important;
  }

  .report-document {
    display: block !important;
  }

  .report-cover {
    min-height: 235mm;
    border-radius: 0;
    print-color-adjust: exact;
  }

  .report-reading-layout {
    display: block;
    width: auto;
    padding: 18mm 0 0;
  }

  .report-chapter,
  .report-section {
    break-inside: avoid;
  }

  .linkedin-post {
    break-inside: avoid;
  }
}

/* Coherent workspace surfaces */
.workspace-page {
  overflow-x: hidden;
}

.workspace-page .site-header {
  height: 72px;
  padding: 0 max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2));
}

.workspace-page .site-header-main {
  gap: 40px;
}

.session-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
  color: var(--pi-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
}

.session-action:hover,
.session-action:focus-visible {
  border-color: var(--pi-ink);
  color: var(--pi-ink);
  outline: none;
}

.workspace-page .hero,
.workspace-page .workspace-grid,
.workspace-page .recent-section,
.workspace-page .admin-header,
.workspace-page .admin-content {
  width: var(--pi-page-track);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

.app-page-header {
  display: block;
  min-height: 0;
  padding-top: 64px;
  padding-bottom: 40px;
  border: 0;
}

.app-page-heading {
  display: grid;
  max-width: 820px;
  gap: 12px;
}

.app-page-heading h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.98;
}

.app-page-heading p {
  max-width: 680px;
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 26px;
}

.page-back-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--pi-muted);
  font-size: 13px;
  text-decoration: none;
}

.page-back-link:hover {
  color: var(--pi-ink);
}

.workspace-page .admin-content {
  min-width: 0;
  gap: 24px;
  padding-bottom: 96px;
}

.workspace-page .admin-content > *,
.workspace-page .admin-grid > *,
.workspace-page .admin-section,
.workspace-page .admin-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.workspace-page .admin-grid {
  gap: 24px;
  margin-top: 0;
}

.workspace-page .admin-section {
  padding: 28px;
  overflow: hidden;
}

.workspace-page .section-heading {
  align-items: flex-start;
}

.workspace-page .section-heading h2 {
  margin: 3px 0 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.workspace-page .admin-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.workspace-page .admin-table {
  min-width: 680px;
}

.workspace-page .admin-table th,
.workspace-page .admin-table td {
  white-space: normal;
}

.workspace-page .admin-metrics,
.workspace-page .usage-summary,
.workspace-page .credit-summary {
  min-width: 0;
}

.workspace-page .admin-metrics article,
.workspace-page .admin-metric-link article,
.workspace-page .usage-summary article,
.workspace-page .credit-summary article {
  min-width: 0;
}

.workspace-page .admin-metric-link {
  color: #fff;
}

.workspace-page .admin-metric-link span,
.workspace-page .admin-metric-link small {
  color: rgba(255, 255, 255, 0.78);
}

.workspace-page .admin-metric-link strong {
  color: #fff;
}

.retention-panel .section-heading {
  margin-bottom: 22px;
}

.workspace-page .retention-controls {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0;
}

.workspace-page .retention-controls > div {
  grid-column: 1 / -1;
}

.workspace-page .retention-toggle-form {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.workspace-page .retention-controls > form:last-child {
  grid-column: auto;
  justify-self: end;
}

.workspace-page .admin-message {
  margin: 0;
}

.research-page .hero {
  min-height: 480px;
}

.research-page .research-workspace {
  display: block;
  padding-top: 0;
}

.research-page .research-panel {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 40px;
}

.research-page .recent-section {
  padding-top: 80px;
  scroll-margin-top: 104px;
}

.research-page .archive-toolbar {
  min-width: 0;
}

.research-page .status-filter {
  scrollbar-width: thin;
}

/* Landing page: outcome-led AI people search.
   Copy is sourced from app/content/positioning.py HOME_COPY. */
.research-page .main {
  background:
    linear-gradient(180deg, rgba(244, 244, 242, 0) 0, rgba(244, 244, 242, 0.72) 620px, #fff 1180px);
}

.research-page .landing-hero,
.research-page .landing-search-band,
.research-page .landing-workflow,
.research-page .landing-story,
.research-page .landing-benefits,
.research-page .landing-recruiters,
.research-page .landing-questions,
.research-page .landing-closing {
  width: min(1208px, calc(100% - 72px));
  margin-right: auto;
  margin-left: auto;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.78fr);
  gap: 44px;
  align-items: stretch;
  min-height: 640px;
  padding-top: 78px;
  padding-bottom: 58px;
}

.landing-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.landing-hero h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  color: var(--pi-ink);
  font-size: clamp(64px, 7vw, 106px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.96;
}

.landing-hero h1 em {
  display: block;
  color: var(--pi-ink);
  font-style: normal;
}

.landing-trust-list {
  display: grid;
  max-width: 720px;
  gap: 10px;
  margin-top: 34px;
}

.landing-trust-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pi-ink);
  font-size: 15px;
  line-height: 22px;
}

.landing-trust-list span::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d8ff3e;
  content: "";
}

.landing-hero-panel {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: end;
  gap: 20px;
  overflow: hidden;
  padding: 28px;
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, rgba(2, 4, 8, 0.04), rgba(2, 4, 8, 0.74)),
    var(--pi-solar);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.landing-hero-panel::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  content: "";
}

.hero-panel-topline,
.hero-insight-list {
  position: relative;
}

.hero-panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 16px;
}

.hero-panel-topline span {
  text-transform: uppercase;
}

.hero-panel-topline strong {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--pi-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.hero-insight-list {
  display: grid;
  gap: 10px;
}

.hero-insight-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-insight-card span,
.story-report-main span,
.story-report-side span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  text-transform: uppercase;
}

.hero-insight-card h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
}

.hero-insight-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 20px;
}

.landing-search-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 86px;
}

.landing-search-intro {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.landing-search-intro h2,
.landing-section-heading h2,
.benefit-row h2,
.landing-recruiters h2,
.landing-questions h2,
.landing-closing h2 {
  margin: 0;
  color: var(--pi-ink);
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1.02;
}

.research-page .landing-search-card {
  width: 100%;
  margin: 0;
  padding: 32px;
}

.landing-workflow,
.landing-story,
.landing-recruiters,
.landing-questions,
.landing-closing {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--pi-line);
}

.landing-section-heading {
  display: grid;
  max-width: 850px;
  gap: 13px;
}

.landing-section-heading p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--pi-muted);
  font-size: 17px;
  line-height: 27px;
}

.workflow-grid,
.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.workflow-card,
.recruiter-grid article {
  display: grid;
  min-height: 236px;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
}

.workflow-card:nth-child(2) {
  background: var(--pi-surface);
}

.workflow-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68)),
    var(--pi-mineral);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.workflow-card span {
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 16px;
}

.workflow-card:nth-child(3) span,
.workflow-card:nth-child(3) p {
  color: rgba(255, 255, 255, 0.78);
}

.workflow-card h3,
.recruiter-grid h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.workflow-card p,
.recruiter-grid p {
  margin: 0;
  color: var(--pi-muted);
  font-size: 15px;
  line-height: 24px;
}

.story-report {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 16px;
  margin-top: 34px;
}

.story-report-main,
.story-report-side {
  display: grid;
  min-height: 360px;
  align-content: end;
  gap: 14px;
  padding: 30px;
  border-radius: 8px;
}

.story-report-main {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    var(--pi-nocturnal);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.story-report-side {
  border: 1px solid var(--pi-line);
  background: var(--pi-surface);
}

.story-report-main h3,
.story-report-side h3 {
  max-width: 620px;
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  line-height: 39px;
}

.story-report-main p,
.story-report-side p {
  max-width: 650px;
  margin: 0;
  font-size: 16px;
  line-height: 25px;
}

.story-report-main p {
  color: rgba(255, 255, 255, 0.82);
}

.story-report-side span {
  color: var(--pi-muted);
}

.story-report-side p {
  color: var(--pi-muted);
}

.landing-benefits {
  display: grid;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid var(--pi-line);
}

.benefit-row {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 44px;
  padding: 62px 0;
  border-bottom: 1px solid var(--pi-line);
}

.benefit-copy {
  display: grid;
  align-content: start;
  gap: 22px;
}

.benefit-copy p {
  margin: 0;
  color: var(--pi-muted);
  font-size: 18px;
  line-height: 29px;
}

.benefit-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-copy li {
  padding: 8px 11px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #fff;
  color: var(--pi-ink);
  font-size: 12px;
  line-height: 16px;
}

.landing-recruiters {
  background: var(--pi-surface);
}

.recruiter-grid article {
  min-height: 214px;
}

.landing-questions {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-list p {
  margin: 0;
  padding: 20px 22px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pi-ink);
  font-size: 17px;
  line-height: 26px;
}

.question-list p:nth-child(2) {
  background: var(--pi-surface);
}

.landing-closing {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding-bottom: 112px;
}

.landing-closing h2 {
  max-width: 860px;
}

.landing-closing p {
  max-width: 690px;
  margin: 0;
  color: var(--pi-muted);
  font-size: 18px;
  line-height: 29px;
}

/* V5 implementation pass: mirror the approved Paper board rhythm more closely. */
.research-page .landing-hero,
.research-page .landing-workflow,
.research-page .landing-story,
.research-page .landing-benefits,
.research-page .landing-recruiters,
.research-page .landing-questions,
.research-page .landing-closing {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: max(64px, calc((100vw - 1312px) / 2));
  padding-left: max(64px, calc((100vw - 1312px) / 2));
}

.landing-hero {
  grid-template-columns: minmax(0, 610px) minmax(520px, 632px);
  justify-content: space-between;
  min-height: 908px;
  padding-top: 88px;
  padding-bottom: 98px;
  background: #fff;
}

.landing-hero-copy {
  justify-content: start;
  padding-top: 58px;
}

.landing-hero h1 {
  max-width: 610px;
  margin: 18px 0 22px;
  font-size: 72px;
  font-weight: 500;
  line-height: 74px;
}

.landing-hero .lede {
  width: 560px;
  max-width: 100%;
  color: #444;
  font-size: 19px;
  line-height: 28px;
}

.landing-search-form,
.hero-search-form {
  width: 610px;
  max-width: 100%;
  gap: 14px;
  margin-top: 54px;
}

.landing-search-form {
  display: grid;
}

.hero-search-form .config-alert {
  margin-top: 0;
}

.hero-search-row {
  height: 68px;
  gap: 0;
  padding: 6px 6px 6px 22px;
  border: 1px solid #b9b9b5;
  border-radius: var(--pi-pill);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.hero-search-row input {
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #000;
  font-size: 16px;
}

.hero-search-row input:focus {
  border: 0;
  outline: 0;
}

.hero-search-row .button {
  width: 132px;
  min-height: 54px;
  flex: 0 0 132px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.hero-field-help {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 20px;
  color: #666;
  font-size: 13px;
  line-height: 16px;
}

.hero-field-help i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d8ff3e;
}

.hero-form-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.hero-form-secondary .attestation {
  min-height: 38px;
  padding: 10px 12px;
}

.hero-form-secondary .attestation span {
  font-size: 12px !important;
  line-height: 16px;
}

.hero-form-secondary .button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.hero-search-form .anchor-fallback {
  justify-content: start;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.landing-hero-panel {
  min-height: 750px;
  align-content: start;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: var(--pi-surface);
  color: var(--pi-ink);
}

.landing-hero-panel::before {
  display: none;
}

.hero-panel-topline {
  height: 48px;
  color: #666;
}

.hero-panel-topline strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #000;
}

.hero-panel-topline strong i,
.story-report-main header strong i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8ff3e;
}

.hero-insight-card {
  grid-template-columns: 40px minmax(0, 1fr) 125px;
  align-items: center;
  min-height: 98px;
  gap: 6px 16px;
  padding: 16px;
  border-color: var(--pi-line);
  background: #fff;
  color: var(--pi-ink);
  backdrop-filter: none;
}

.hero-insight-card b {
  grid-row: 1 / span 3;
  color: #777;
  font-size: 13px;
  font-weight: 400;
}

.hero-insight-card span {
  display: none;
}

.hero-insight-card h2 {
  color: #000;
  font-size: 16px;
  line-height: 20px;
}

.hero-insight-card p {
  color: #666;
  font-size: 13px;
  line-height: 16px;
}

.hero-insight-card strong {
  grid-column: 3;
  grid-row: 1 / span 3;
  display: grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  background: #d8ff3e;
  color: #000;
  font-size: 11px;
  line-height: 14px;
}

.hero-insight-card:nth-child(3) strong {
  background: #fff;
}

.hero-compiled-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid var(--pi-line);
  border-radius: 6px;
  background: #fff;
}

.hero-compiled-art {
  height: 54px;
  background-image: var(--pi-solar);
  background-position: center;
  background-size: cover;
}

.hero-compiled-card > div:not(.hero-compiled-art),
.hero-compiled-card h2,
.hero-compiled-card p,
.hero-compiled-card footer {
  margin-right: 22px;
  margin-left: 22px;
}

.hero-compiled-card > div:not(.hero-compiled-art) {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 11px;
  line-height: 14px;
}

.hero-compiled-card > div strong {
  color: #000;
  font-size: 12px;
}

.hero-compiled-card h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 27px;
  font-weight: 600;
  line-height: 34px;
}

.hero-compiled-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: #444;
  font-size: 14px;
  line-height: 20px;
}

.hero-compiled-card footer {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-compiled-card footer span {
  padding: 7px 10px;
  border-radius: var(--pi-pill);
  background: var(--pi-surface);
  color: #000;
  font-size: 12px;
  line-height: 16px;
}

.hero-compiled-card footer span:first-child {
  background: #d8ff3e;
}

.landing-workflow {
  min-height: 760px;
  padding-top: 76px;
  padding-bottom: 80px;
  border-top: 0;
  background: var(--pi-surface);
}

.landing-section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 840px;
  max-width: none;
  gap: 32px;
  align-items: start;
}

.landing-section-heading h2 {
  grid-column: 2;
  width: 840px;
  max-width: 100%;
  font-size: 48px;
  line-height: 52px;
}

.landing-section-heading .eyebrow {
  grid-column: 1;
}

.workflow-visual {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.workflow-visual > aside {
  display: grid;
  min-height: 450px;
  align-content: start;
  gap: 10px;
  padding: 28px;
  border-radius: 8px;
  background: var(--pi-ink);
  color: #fff;
}

.workflow-visual > aside div,
.workflow-visual > aside span,
.workflow-visual > aside p b {
  color: #aaa;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}

.workflow-visual > aside strong {
  margin-top: 62px;
  font-size: 30px;
  line-height: 35px;
}

.workflow-visual > aside p {
  display: grid;
  gap: 13px;
  margin: 70px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 23px;
}

.workflow-table {
  display: grid;
  min-height: 450px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
}

.workflow-table header,
.workflow-table article {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--pi-line);
}

.workflow-table header {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 96px;
}

.workflow-table header span,
.workflow-table article > span,
.story-report-main span,
.story-sidebar span,
.story-feature span,
.story-mini-grid span,
.benefit-demo aside span,
.conversation-grid span,
.recruiter-plan span,
.question-list b,
.question-proof span {
  color: #666;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.workflow-table header h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 30px;
}

.workflow-table header strong {
  padding: 8px 11px;
  border-radius: var(--pi-pill);
  background: #d8ff3e;
  font-size: 12px;
}

.workflow-table article {
  min-height: 108px;
}

.workflow-table article > div {
  display: grid;
  gap: 7px;
}

.workflow-table h4 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
}

.workflow-table p {
  width: fit-content;
  margin: 0;
  padding: 8px 11px;
  background: var(--pi-surface);
  color: #444;
  font-size: 13px;
  line-height: 18px;
}

.workflow-table article:last-child p {
  background: #fff0ec;
}

.landing-story {
  min-height: 1200px;
  padding-top: 84px;
  padding-bottom: 100px;
  background: #fff;
}

.landing-story .story-report {
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 850px;
  margin-top: 72px;
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
}

.story-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--pi-line);
  background: var(--pi-surface);
}

.story-sidebar strong {
  font-size: 20px;
  line-height: 24px;
}

.story-sidebar nav {
  display: grid;
  gap: 2px;
}

.story-sidebar nav b,
.story-sidebar nav span {
  padding: 14px 12px;
  border-radius: 6px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.story-sidebar nav b {
  border: 1px solid var(--pi-line);
  background: #fff;
  font-weight: 600;
}

.story-report-main {
  min-height: 0;
  align-content: start;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 0;
  background: #fff;
  color: var(--pi-ink);
}

.story-report-main header {
  display: flex;
  min-height: 52px;
  justify-content: space-between;
  border-bottom: 1px solid var(--pi-line);
}

.story-report-main header h3 {
  margin: 4px 0 0;
  color: #000;
  font-size: 24px;
  line-height: 30px;
}

.story-report-main header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
}

.story-feature {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  min-height: 180px;
  padding: 24px;
  border-radius: 6px;
  background: var(--pi-ink);
  color: #fff;
}

.story-feature > div {
  max-width: 590px;
}

.story-feature h4 {
  margin: 12px 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.story-feature p {
  color: #bbb;
  font-size: 14px;
  line-height: 20px;
}

.story-feature ul {
  display: grid;
  align-content: start;
  gap: 10px;
  width: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-feature li {
  color: #fff;
  font-size: 16px;
  line-height: 20px;
}

.story-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
}

.timeline-card,
.story-report-side,
.story-mini-grid article {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--pi-line);
  border-radius: 6px;
}

.timeline-card p {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 20px;
}

.timeline-card b {
  color: #777;
  font-size: 13px;
  font-weight: 400;
}

.story-report-side {
  min-height: 0;
  background: #fff0ec;
  border-color: #ffd2c7;
}

.story-report-side h3 {
  font-size: 22px;
  line-height: 27px;
}

.story-report-side strong {
  font-size: 13px;
}

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

.story-mini-grid h4 {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
}

.story-mini-grid p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 20px;
}

.landing-benefits {
  width: 100%;
  max-width: none;
  padding: 0;
}

.benefit-demo {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  min-height: 720px;
  padding: 64px max(64px, calc((100vw - 1312px) / 2));
  border-top: 1px solid var(--pi-line);
}

.conversation-demo {
  background: var(--pi-surface);
}

.benefit-demo aside {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 450px;
  padding: 28px;
  border-radius: 8px;
  background: var(--pi-ink);
  color: #fff;
}

.benefit-demo aside strong {
  margin-top: 48px;
  font-size: 28px;
  line-height: 34px;
}

.benefit-demo aside small {
  color: #bbb;
  font-size: 14px;
}

.benefit-demo aside p {
  display: grid;
  gap: 13px;
  margin: 64px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 23px;
}

.benefit-demo aside p b {
  color: #fff;
  font-size: 18px;
  line-height: 23px;
}

.benefit-demo > div {
  display: grid;
  align-content: start;
  gap: 34px;
}

.benefit-demo h2 {
  max-width: 820px;
  font-size: 48px;
  line-height: 52px;
}

.benefit-demo-table,
.conversation-grid,
.recruiter-plan > div {
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
}

.benefit-demo-table header,
.benefit-demo-table p,
.recruiter-plan header {
  display: flex;
  align-items: center;
  min-height: 82px;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--pi-line);
}

.benefit-demo-table header strong,
.recruiter-plan header strong {
  padding: 8px 11px;
  border-radius: var(--pi-pill);
  background: #d8ff3e;
  font-size: 12px;
}

.benefit-demo-table p {
  justify-content: flex-start;
  color: #000;
  font-size: 16px;
}

.benefit-demo-table p b {
  width: 42px;
  flex: 0 0 42px;
  color: #777;
  font-size: 13px;
}

.benefit-demo-table p:last-child {
  background: #fff0ec;
}

.conversation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.85fr));
  gap: 12px;
  padding: 24px;
}

.conversation-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
  background: var(--pi-surface);
}

.conversation-grid article:last-child {
  background: #fff0ec;
}

.conversation-grid p {
  margin: 0;
  color: #000;
  font-size: 18px;
  line-height: 25px;
}

.landing-recruiters {
  min-height: 850px;
  padding-top: 74px;
  padding-bottom: 82px;
}

.landing-recruiters .landing-section-heading {
  margin-bottom: 42px;
}

.recruiter-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid #000;
}

.recruiter-tabs span {
  padding: 0 0 14px;
  color: #666;
  font-size: 13px;
  text-align: center;
}

.recruiter-tabs span:first-child {
  color: #000;
  font-weight: 600;
}

.recruiter-plan {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.recruiter-plan > aside {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 340px;
  padding: 28px;
  background: var(--pi-ink);
  color: #fff;
}

.recruiter-plan aside strong {
  margin-top: 30px;
  font-size: 28px;
  line-height: 34px;
}

.recruiter-plan aside p {
  color: #bbb;
  font-size: 15px;
  line-height: 22px;
}

.recruiter-plan > div {
  padding: 26px;
}

.recruiter-plan section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.recruiter-plan article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding: 20px;
  background: var(--pi-surface);
}

.recruiter-plan article:last-child {
  background: #fff0ec;
}

.recruiter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--pi-line);
}

.recruiter-grid article {
  min-height: 110px;
  border: 0;
  border-right: 1px solid var(--pi-line);
  border-radius: 0;
  background: #fff;
}

.landing-questions {
  grid-template-columns: 1fr minmax(0, 720px) 340px;
  min-height: 720px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: #fff;
}

.landing-questions > div:first-child {
  display: grid;
  align-content: start;
  gap: 12px;
}

.question-list p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  min-height: 78px;
  align-items: center;
  padding: 0 22px;
  border-radius: 0;
  font-size: 15px;
}

.question-list p:nth-child(3) {
  background: #fff0ec;
}

.question-proof {
  display: grid;
  min-height: 430px;
  align-content: start;
  gap: 18px;
  padding: 30px;
  background: var(--pi-ink);
  color: #fff;
}

.question-proof strong {
  margin-top: 24px;
  font-size: 28px;
  line-height: 34px;
}

.question-proof p {
  margin-top: auto;
  color: #bbb;
  font-size: 14px;
  line-height: 21px;
}

.landing-closing {
  min-height: 560px;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: var(--pi-ink);
}

.landing-closing .eyebrow,
.landing-closing h2,
.landing-closing p {
  color: #fff;
}

.landing-closing h2 {
  max-width: 760px;
  font-size: 48px;
  line-height: 52px;
}

.landing-closing p {
  color: #bbb;
}

.research-intake {
  display: grid;
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 1fr);
  gap: 46px;
  width: min(1208px, calc(100% - 72px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.research-intake-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.research-intake-copy h1 {
  margin: 0;
  color: var(--pi-ink);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  line-height: 1;
}

.research-intake-copy p {
  max-width: 480px;
  margin: 0;
  color: var(--pi-muted);
  font-size: 17px;
  line-height: 26px;
}

.research-route-map,
.research-ai-proof {
  margin-top: 18px;
}

.research-route-map {
  display: grid;
  gap: 8px;
}

.research-route-map span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--pi-line);
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.research-route-map span.is-active {
  border-color: var(--pi-ink);
  background: var(--pi-ink);
  color: #fff;
}

.research-ai-proof {
  display: grid;
  gap: 12px;
}

.research-ai-proof article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: var(--pi-surface);
}

.research-ai-proof span,
.research-card-heading span,
.research-preview > span,
.research-access-note span {
  color: #666;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  text-transform: uppercase;
}

.research-ai-proof strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.research-page .research-intake-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 28px;
  border-radius: 8px;
}

.research-card-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.research-card-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
}

.research-card-heading p {
  max-width: 620px;
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 21px;
}

.research-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dce3b2;
  border-radius: 6px;
  background: #f7ffd8;
  color: #1f2500;
  font-size: 13px;
  line-height: 18px;
}

.research-loading i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a7cf00;
  box-shadow: 0 0 0 5px rgba(216, 255, 62, 0.45);
}

.research-preview {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
  background: var(--pi-ink);
  color: #fff;
}

.research-preview strong {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.research-preview div {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.research-preview p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #ddd;
  font-size: 13px;
  line-height: 18px;
}

.research-preview p b {
  color: #d8ff3e;
  font-weight: 500;
}

.research-access-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid var(--pi-line);
  border-radius: 6px;
  background: var(--pi-surface);
}

.research-access-note strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.research-page .candidate-results {
  margin-top: 22px;
}

.research-page .candidate-discovery-card {
  min-height: 116px;
  border-radius: 8px;
}

.research-page .candidate-discovery-card.is-selected {
  border-color: #111;
  background: #f7ffd8;
  box-shadow: inset 0 0 0 1px #111;
}

.research-page .attestation {
  margin-top: 18px;
}

.research-page .discovery-actions {
  justify-content: flex-end;
}

.research-page .discovery-actions #begin-button {
  order: 1;
}

.research-page .discovery-actions #different-person {
  order: 2;
}

@media (max-width: 980px) {
  .research-page .landing-hero,
  .research-page .landing-workflow,
  .research-page .landing-story,
  .research-page .landing-benefits,
  .research-page .landing-recruiters,
  .research-page .landing-questions,
  .research-page .landing-closing {
    padding-right: 36px;
    padding-left: 36px;
  }

  .landing-hero,
  .workflow-visual,
  .landing-story .story-report,
  .benefit-demo,
  .recruiter-plan,
  .landing-questions,
  .research-intake {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 58px;
  }

  .landing-hero-copy {
    padding-top: 0;
  }

  .landing-hero h1,
  .landing-hero .lede,
  .landing-search-form,
  .hero-search-form {
    width: 100%;
    max-width: 680px;
  }

  .landing-hero-panel {
    min-height: 0;
  }

  .landing-section-heading {
    grid-template-columns: 1fr;
  }

  .landing-section-heading h2,
  .landing-section-heading .eyebrow {
    grid-column: 1;
    width: 100%;
  }

  .workflow-visual {
    margin-top: 40px;
  }

  .workflow-table header,
  .workflow-table article {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .workflow-table header strong {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .story-details,
  .story-mini-grid,
  .conversation-grid,
  .recruiter-plan section,
  .recruiter-grid {
    grid-template-columns: 1fr;
  }

  .story-feature {
    flex-direction: column;
  }

  .story-feature ul {
    width: 100%;
  }

  .recruiter-tabs {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
  }

  .question-proof {
    min-height: 260px;
  }

  .research-intake {
    width: calc(100% - 72px);
  }

  .research-page .research-intake-card {
    grid-template-columns: 1fr;
  }

  .research-preview {
    min-height: 260px;
  }
}

@media (max-width: 700px) {
  .research-page .main {
    overflow-x: hidden;
  }

  .research-page .landing-hero,
  .research-page .landing-workflow,
  .research-page .landing-story,
  .research-page .landing-benefits,
  .research-page .landing-recruiters,
  .research-page .landing-questions,
  .research-page .landing-closing {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .research-intake {
    width: calc(100% - 40px);
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .research-page .research-intake-card {
    gap: 18px;
    padding: 22px 18px;
  }

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

  .research-route-map span {
    min-height: 46px;
    font-size: 11px;
  }

  .research-card-heading h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .research-preview {
    padding: 20px;
  }

  .research-preview strong {
    margin-top: 10px;
    font-size: 21px;
    line-height: 27px;
  }

  .landing-hero h1 {
    font-size: 50px;
    line-height: 52px;
  }

  .landing-hero .lede {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-search-row {
    height: auto;
    padding: 8px;
  }

  .hero-search-row .button {
    width: 100%;
    flex-basis: auto;
  }

  .hero-form-secondary {
    grid-template-columns: 1fr;
  }

  .hero-form-secondary .button {
    width: 100%;
  }

  .hero-search-form .anchor-fallback {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-insight-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .hero-insight-card strong {
    grid-column: 2;
    grid-row: auto;
    width: max-content;
    max-width: 100%;
    padding: 7px 10px;
  }

  .hero-compiled-card footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-workflow,
  .landing-story,
  .benefit-demo,
  .landing-recruiters,
  .landing-questions,
  .landing-closing {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .landing-section-heading h2,
  .benefit-demo h2,
  .landing-recruiters h2,
  .landing-questions h2,
  .landing-closing h2 {
    font-size: 34px;
    line-height: 37px;
  }

  .workflow-visual > aside,
  .benefit-demo aside {
    min-height: 360px;
  }

  .workflow-table {
    min-height: 0;
  }

  .workflow-table header,
  .workflow-table article {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 18px;
  }

  .workflow-table p {
    width: 100%;
  }

  .story-sidebar {
    display: none;
  }

  .story-report-main {
    padding: 20px;
  }

  .story-report-main header {
    flex-direction: column;
    gap: 14px;
  }

  .story-feature,
  .timeline-card,
  .story-report-side,
  .story-mini-grid article,
  .recruiter-plan > aside,
  .recruiter-plan > div {
    padding: 18px;
  }

  .timeline-card p,
  .question-list p {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .benefit-demo {
    gap: 28px;
  }

  .conversation-grid p {
    font-size: 15px;
    line-height: 22px;
  }

  .recruiter-plan section {
    gap: 10px;
  }

  .recruiter-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--pi-line);
  }

  .landing-closing {
    text-align: left;
    justify-items: start;
  }
}

.credits-page .credit-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
}

.credits-page .credit-packages {
  min-width: 0;
}

.credits-page .credit-package {
  min-width: 0;
  min-height: 180px;
  color: #fff;
}

.credits-page .credit-package span,
.credits-page .credit-package small {
  color: rgba(255, 255, 255, 0.82);
}

.account-content {
  max-width: 1000px;
}

.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
}

.account-summary > div {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  align-items: end;
}

.account-summary span,
.account-summary small {
  grid-column: 1;
  color: var(--pi-muted);
  font-size: 11px;
}

.account-summary strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.account-form {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.account-form label {
  margin-top: 7px;
  color: var(--pi-muted);
  font-size: 12px;
  font-weight: 500;
}

.account-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
}

.account-form input:disabled {
  background: #f4f4f1;
  color: var(--pi-muted);
}

.account-form .button {
  justify-self: start;
  margin-top: 10px;
}

.account-password-form {
  padding-top: 20px;
  border-top: 1px solid var(--pi-line);
}

.account-security-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
}

.account-security-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--pi-line);
}

.account-security-list dt {
  color: var(--pi-muted);
}

.account-security-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-sessions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-sessions h2 {
  margin: 5px 0 7px;
}

.account-sessions p {
  margin: 0;
  color: var(--pi-muted);
}

.account-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid #e2b8b4;
  border-radius: var(--pi-radius);
  background: #fffafa;
}

.account-danger-zone h2 {
  margin: 5px 0 7px;
  font-size: 22px;
}

.account-danger-zone p,
.account-delete-summary p {
  margin: 0;
  color: var(--pi-muted);
}

.account-delete-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.account-delete-summary ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding-left: 20px;
  line-height: 1.5;
}

.account-delete-confirmation .admin-message {
  margin-top: 20px;
}

.platform-admin-page .app-page-heading h1 {
  font-size: 52px;
}

.platform-admin-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.platform-users-heading {
  flex-wrap: wrap;
  gap: 20px;
}

.platform-admin-search {
  display: flex;
  min-width: min(100%, 420px);
  align-items: center;
  gap: 10px;
}

.platform-admin-search input {
  min-width: 0;
  min-height: 42px;
  flex: 1 1 240px;
  padding: 9px 12px;
}

.platform-admin-search .button {
  min-height: 42px;
}

.platform-users-table {
  min-width: 1120px;
}

.usage-page .usage-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
}

.usage-chart-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.usage-page .usage-chart {
  min-width: 620px;
}

.invite-page .site-header {
  height: 72px;
  padding: 0 28px;
}

.invite-page .auth-layout {
  width: min(1208px, calc(100% - 72px));
  min-height: calc(100vh - 168px);
  margin: 48px auto;
  padding: 0;
}

.invite-page .auth-hero {
  min-width: 0;
}

.invite-page .auth-hero h1,
.invite-page .auth-hero h1 em {
  color: #fff;
}

.invite-page .auth-hero .eyebrow,
.invite-page .auth-hero .lede {
  color: rgba(255, 255, 255, 0.86);
}

.invite-page .research-panel {
  min-width: 0;
  padding: clamp(32px, 5vw, 64px);
}

.invite-page .card-heading {
  display: block;
}

.invite-page .card-heading h2 {
  margin-top: 8px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}

.invite-page .invite-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: var(--pi-surface);
}

.invite-page .invite-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invite-page .invite-summary strong {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.invite-page .config-alert {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #dfc9c7;
  border-radius: var(--pi-radius);
  background: #fff8f7;
  color: #61312f;
}

.invite-page .config-alert > span {
  color: var(--pi-danger);
}

.invite-page .invite-actions {
  justify-content: flex-start;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .workspace-page .site-header {
    height: auto;
    padding: 12px 20px;
  }

  .workspace-page .site-header-main {
    gap: 22px;
  }

  .workspace-page .admin-grid,
  .credits-page .credit-grid,
  .usage-page .usage-grid,
  .account-settings-grid,
  .account-delete-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .workspace-page .usage-summary,
  .workspace-page .credit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invite-page .auth-layout {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .landing-search-band,
  .story-report,
  .landing-questions {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 0;
    padding-top: 56px;
  }

  .landing-hero-panel {
    min-height: 520px;
  }

  .landing-search-intro {
    position: static;
  }

  .workflow-grid,
  .recruiter-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card,
  .recruiter-grid article {
    min-height: 0;
  }

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

@media (max-width: 700px) {
  .workspace-page .site-header {
    align-items: flex-start;
  }

  .workspace-page .site-header-actions {
    padding-top: 2px;
  }

  .workspace-page .site-header-main {
    min-width: 0;
  }

  .workspace-page .nav {
    width: calc(100vw - 76px);
    max-width: none;
    padding-bottom: 1px;
  }

  .workspace-page .workspace-user {
    display: none;
  }

  .session-action {
    min-height: 34px;
    padding: 0 13px;
    font-size: 12px;
  }

  .workspace-page .hero,
  .workspace-page .workspace-grid,
  .workspace-page .recent-section,
  .workspace-page .admin-header,
  .workspace-page .admin-content {
    width: calc(100% - 40px);
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
  }

  .app-page-header {
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .app-page-heading {
    gap: 10px;
  }

  .app-page-heading h1 {
    font-size: 44px;
  }

  .app-page-heading p {
    font-size: 16px;
    line-height: 24px;
  }

  .workspace-page .admin-content {
    gap: 18px;
    padding-bottom: 64px;
  }

  .workspace-page .admin-section {
    padding: 22px 20px;
  }

  .account-summary,
  .account-sessions,
  .account-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .account-summary .button,
  .account-sessions .button,
  .account-danger-zone .button {
    width: 100%;
  }

  .platform-admin-page .app-page-heading h1 {
    font-size: 40px;
  }

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

  .platform-users-heading,
  .platform-admin-search {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-admin-search {
    width: 100%;
    min-width: 0;
  }

  .platform-admin-search input {
    flex-basis: auto;
  }

  .platform-admin-search .button {
    width: 100%;
  }

  .workspace-page .admin-metrics,
  .workspace-page .usage-summary,
  .workspace-page .credit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-page .admin-metrics > *,
  .workspace-page .usage-summary > *,
  .workspace-page .credit-summary > * {
    min-height: 118px;
  }

  .admin-page .admin-metrics > :last-child {
    grid-column: 1 / -1;
  }

  .workspace-page .admin-metrics article,
  .workspace-page .admin-metric-link article,
  .workspace-page .usage-summary article,
  .workspace-page .credit-summary article {
    min-height: 118px;
    padding: 18px;
  }

  .workspace-page .admin-metrics strong,
  .workspace-page .usage-summary strong,
  .workspace-page .credit-summary strong {
    font-size: 30px;
  }

  .workspace-page .admin-table-wrap {
    width: 100%;
  }

  .workspace-page .retention-controls {
    grid-template-columns: 1fr;
  }

  .workspace-page .retention-controls > form:last-child {
    grid-column: 1;
    justify-self: start;
  }

  .workspace-page .retention-toggle-form,
  .workspace-page .member-diagnostics-form {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .research-page .hero {
    min-height: 0;
  }

  .research-page .research-panel {
    padding: 26px 20px;
  }

  .research-page .landing-hero,
  .research-page .landing-search-band,
  .research-page .landing-workflow,
  .research-page .landing-story,
  .research-page .landing-benefits,
  .research-page .landing-recruiters,
  .research-page .landing-questions,
  .research-page .landing-closing {
    width: calc(100% - 40px);
  }

  .landing-hero {
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .landing-hero h1 {
    font-size: 54px;
  }

  .landing-hero-panel {
    min-height: 0;
    padding: 20px;
  }

  .hero-panel-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-trust-list {
    margin-top: 24px;
  }

  .landing-search-band {
    gap: 18px;
    padding-bottom: 58px;
  }

  .landing-search-intro h2,
  .landing-section-heading h2,
  .benefit-row h2,
  .landing-recruiters h2,
  .landing-questions h2,
  .landing-closing h2 {
    font-size: 36px;
    line-height: 1.06;
  }

  .research-page .landing-search-card {
    padding: 22px 20px;
  }

  .discovery-search-row {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .candidate-results-heading,
  .candidate-results-title-row,
  .more-candidates,
  .anchor-fallback {
    align-items: flex-start;
    flex-direction: column;
  }

  .discovery-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .discovery-actions .button {
    width: 100%;
    margin-left: 0;
  }

  .landing-workflow,
  .landing-story,
  .landing-recruiters,
  .landing-questions,
  .landing-closing {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .story-report-main,
  .story-report-side {
    min-height: 300px;
    padding: 22px;
  }

  .story-report-main h3,
  .story-report-side h3 {
    font-size: 28px;
    line-height: 33px;
  }

  .benefit-row {
    gap: 22px;
    padding: 44px 0;
  }

  .benefit-copy p,
  .landing-closing p {
    font-size: 16px;
    line-height: 25px;
  }

  .research-page .recent-section {
    padding-top: 56px;
    scroll-margin-top: 104px;
  }

  .research-page .case-row {
    gap: 10px 12px;
    min-height: 0;
    padding: 16px;
  }

  .research-page .case-status {
    display: none;
  }

  .research-page .case-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: start;
    justify-self: end;
  }

  .credits-page .credit-packages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .credits-page .credit-package {
    min-height: 150px;
    padding: 16px;
  }

  .credits-page .credit-package strong {
    font-size: 30px;
  }

  .invite-page .site-header {
    height: 64px;
    padding: 0 20px;
  }

  .invite-page .auth-layout {
    width: calc(100% - 32px);
    min-height: 0;
    margin: 16px auto 40px;
  }

  .invite-page .auth-hero {
    min-height: 380px;
    padding: 36px 28px;
  }

  .invite-page .auth-hero h1 {
    font-size: 48px;
  }

  .invite-page .research-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 460px) {
  .workspace-page .admin-metrics,
  .workspace-page .usage-summary,
  .workspace-page .credit-summary,
  .credits-page .credit-packages {
    grid-template-columns: 1fr;
  }
}

/* Dedicated case archive */
.cases-page .main {
  width: min(1208px, calc(100% - 72px));
  margin: 0 auto;
  padding-bottom: 96px;
}

.cases-intro {
  display: flex;
  min-height: 276px;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
}

.cases-intro-copy {
  display: grid;
  max-width: 700px;
  gap: 16px;
}

.cases-intro-copy h1 {
  margin: 4px 0 0;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.06;
}

.cases-intro-copy p {
  max-width: 670px;
  margin: 0;
  color: var(--pi-muted);
  font-size: 18px;
  line-height: 28px;
}

.cases-summary {
  display: flex;
  flex: 0 0 328px;
  height: 166px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--pi-radius);
  background-image: linear-gradient(110deg, rgba(4, 11, 8, 0.12), rgba(4, 11, 8, 0.34)), var(--pi-mineral);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.cases-summary > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 16px;
  text-transform: uppercase;
}

.cases-summary > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cases-summary strong {
  font-size: 42px;
  font-weight: 400;
  line-height: 44px;
}

.cases-summary small {
  padding-bottom: 5px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.cases-controls {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cases-controls .archive-search {
  flex: 0 1 440px;
}

.cases-controls .archive-search > svg {
  position: absolute;
  left: 17px;
  z-index: 1;
  color: var(--pi-muted);
  pointer-events: none;
}

.cases-controls .archive-search input {
  height: 50px;
  padding-left: 46px;
  border-color: var(--pi-line);
  background: #fff;
}

.cases-controls .status-filter {
  overflow-x: auto;
  scrollbar-width: none;
}

.cases-controls .status-filter::-webkit-scrollbar {
  display: none;
}

.cases-controls .status-filter button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.cases-new-action {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 22px;
  border-radius: var(--pi-pill);
  background: var(--pi-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.cases-new-action:hover {
  background: #252525;
}

.cases-new-action span {
  font-size: 20px;
  line-height: 1;
}

.cases-archive {
  overflow: hidden;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-radius);
  background: #fff;
}

.cases-mobile-heading {
  display: none;
}

.cases-table-heading,
.cases-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 140px 120px 100px 150px 24px;
  gap: 16px;
  align-items: center;
  padding-right: 24px;
  padding-left: 24px;
}

.cases-table-heading {
  min-height: 48px;
  border-bottom: 1px solid var(--pi-line);
  background: var(--pi-surface);
  color: var(--pi-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 14px;
  text-transform: uppercase;
}

.cases-row {
  min-height: 104px;
  color: var(--pi-ink);
  text-decoration: none;
}

.cases-row + .cases-row {
  border-top: 1px solid var(--pi-line);
}

.cases-row:hover {
  background: var(--pi-surface);
}

.cases-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.cases-person .case-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.cases-identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.cases-identity strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cases-identity small {
  overflow: hidden;
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cases-creator {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cases-updated {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.cases-updated small {
  color: var(--pi-muted);
  font-size: 12px;
  line-height: 16px;
}

.cases-state {
  display: inline-flex;
  width: 100px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--pi-line);
  border-radius: var(--pi-pill);
  font-size: 12px;
  text-transform: capitalize;
}

.cases-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.cases-state.failed {
  border-color: #ff6b4a;
  color: #c94a2e;
}

.cases-retention {
  display: block;
  color: var(--pi-ink);
  font-size: 13px;
  line-height: 18px;
}

.cases-retention.expired {
  color: var(--pi-danger);
}

.cases-arrow {
  color: var(--pi-muted);
  font-size: 18px;
  line-height: 1;
}

.cases-list-footer {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-top: 1px solid var(--pi-line);
  background: var(--pi-surface);
  color: var(--pi-muted);
  font-size: 12px;
}

.cases-archive > .filtered-empty,
.cases-empty {
  min-height: 280px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.cases-empty .cases-new-action {
  margin-top: 8px;
}

@media (max-width: 1040px) {
  .cases-intro {
    gap: 40px;
  }

  .cases-controls {
    flex-wrap: wrap;
    padding-bottom: 22px;
  }

  .cases-controls .archive-search {
    flex-basis: calc(100% - 190px);
    max-width: none;
  }

  .cases-controls .status-filter {
    order: 3;
  }

  .cases-table-heading,
  .cases-row {
    grid-template-columns: minmax(280px, 1fr) 130px 112px 100px 138px 24px;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .cases-page .main {
    width: calc(100% - 40px);
    padding-bottom: 64px;
  }

  .cases-intro {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 42px 0 24px;
  }

  .cases-intro-copy {
    gap: 12px;
  }

  .cases-intro-copy h1 {
    font-size: 48px;
  }

  .cases-intro-copy p {
    font-size: 16px;
    line-height: 24px;
  }

  .cases-summary {
    flex-basis: auto;
    width: 100%;
    height: 112px;
    padding: 20px;
  }

  .cases-summary strong {
    font-size: 36px;
    line-height: 38px;
  }

  .cases-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 30px;
  }

  .cases-controls .archive-search,
  .cases-controls .status-filter,
  .cases-controls .cases-new-action {
    width: 100%;
    max-width: none;
  }

  .cases-controls .status-filter {
    order: initial;
    justify-content: space-between;
  }

  .cases-controls .status-filter button {
    min-width: 0;
    padding: 0 11px;
  }

  .cases-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 0;
  }

  .cases-mobile-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
  }

  .cases-mobile-heading span {
    color: var(--pi-muted);
    font-size: 12px;
  }

  .cases-archive {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .cases-table-heading,
  .cases-list-footer {
    display: none;
  }

  .cases-list {
    overflow: hidden;
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius);
    background: #fff;
  }

  .cases-row {
    grid-template-columns: minmax(0, 1fr) 24px;
    grid-template-rows: auto auto;
    gap: 18px 12px;
    min-height: 148px;
    padding: 22px 16px;
  }

  .cases-person {
    grid-column: 1;
    grid-row: 1;
    gap: 12px;
  }

  .cases-person .case-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .cases-identity strong {
    font-size: 15px;
  }

  .cases-creator,
  .cases-updated {
    display: none;
  }

  .cases-state {
    grid-column: 1;
    grid-row: 2;
    width: max-content;
    min-width: 68px;
    min-height: 28px;
    justify-self: start;
    margin-left: 56px;
    padding: 0 10px;
  }

  .cases-retention {
    grid-column: 2;
    grid-row: 2;
    width: 112px;
    justify-self: end;
    color: var(--pi-ink);
    font-size: 12px;
    text-align: right;
  }

  .cases-arrow {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .cases-archive > .filtered-empty,
  .cases-empty {
    border: 1px solid var(--pi-line);
    border-radius: var(--pi-radius);
    background: #fff;
  }
}

@media (max-width: 390px) {
  .cases-controls .status-filter button {
    padding: 0 8px;
    font-size: 12px;
  }

  .cases-retention {
    width: 98px;
  }
}

/* Research candidate discovery page.
   Mirrors the Paper candidate-discovery board: short intro, full-name search row,
   candidate grid, and a compact selection action bar. */
.research-intake-page .research-intake {
  display: flex;
  width: var(--pi-page-track);
  margin: 0 auto;
  padding: 56px 0 72px;
  flex-direction: column;
  gap: 0;
}

.research-intake-page .research-intro {
  display: flex;
  padding: 40px 0 42px;
  flex-direction: column;
  gap: 18px;
}

.research-intake-page .research-intro .page-back-link {
  width: max-content;
  margin-bottom: 16px;
}

.research-intake-page .research-intro h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--pi-ink);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 58px;
}

.research-intake-page .research-discovery {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.research-intake-page .research-name-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
}

.research-intake-page .research-name-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.research-intake-page .research-name-copy label {
  color: var(--pi-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 15px;
  text-transform: uppercase;
}

.research-intake-page .research-name-copy span {
  color: #6f6f69;
  font-size: 13px;
  line-height: 18px;
}

.research-intake-page .research-name-capsule {
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 26px;
  border: 1px solid #b9b9b5;
  border-radius: var(--pi-pill);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.research-intake-page .research-name-capsule:focus-within {
  border-color: var(--pi-ink);
}

.research-intake-page .research-name-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pi-surface);
  color: var(--pi-ink);
  font-size: 18px;
  line-height: 20px;
}

.research-intake-page .research-name-input {
  display: flex;
  height: 100%;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
}

.research-intake-page .research-name-input input {
  width: 100%;
  min-height: 56px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--pi-ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 28px;
}

.research-intake-page .research-name-input input:focus {
  border: 0;
  outline: 0;
}

.research-intake-page #search-candidates {
  min-height: 56px;
  flex: 0 0 auto;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: var(--pi-pill);
  font-weight: 700;
}

.research-intake-page .people-search-captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #d8d8d2;
  border-radius: 8px;
  background: #fbfbf8;
}

.research-intake-page .people-search-captcha[hidden] {
  display: none;
}

.research-intake-page .people-search-captcha strong,
.research-intake-page .people-search-captcha span {
  display: block;
}

.research-intake-page .people-search-captcha strong {
  color: var(--pi-ink);
  font-size: 14px;
  line-height: 20px;
}

.research-intake-page .people-search-captcha span {
  color: #6f6f69;
  font-size: 13px;
  line-height: 18px;
}

.research-intake-page .research-loading {
  width: max-content;
  margin: -18px 0 26px 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 18px;
}

.research-intake-page .research-loading i {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.research-intake-page .candidate-results {
  gap: 20px;
  margin: 0;
}

.research-intake-page .candidate-results-heading {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pi-ink);
}

.research-intake-page .candidate-results-title-row {
  align-items: baseline;
  gap: 24px;
}

.research-intake-page .candidate-results-title-row h3 {
  font-size: 26px;
  font-weight: 600;
  line-height: 30px;
}

.research-intake-page .candidate-results-title-row .card-number {
  color: var(--pi-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  text-transform: uppercase;
}

.research-intake-page .candidate-results-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.research-intake-page .avatar-enrichment-status {
  position: relative;
  padding-left: 14px;
  color: var(--pi-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.research-intake-page .avatar-enrichment-status::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pi-success);
  content: "";
}

.research-intake-page .avatar-enrichment-status.is-loading::before {
  background: var(--pi-ink);
  animation: candidate-photo-pulse 1.2s ease-in-out infinite;
}

@keyframes candidate-photo-pulse {
  50% { opacity: 0.25; }
}

.research-intake-page .candidate-discovery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.research-intake-page .candidate-discovery-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  min-height: 112px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--pi-line);
  border-radius: 0;
  background: #fff;
}

.research-intake-page .candidate-discovery-card.is-selected {
  border: 2px solid var(--pi-ink);
  background: var(--pi-surface-strong);
  box-shadow: none;
}

.research-intake-page .candidate-avatar {
  width: 72px;
  height: 72px;
  background: var(--pi-surface-strong);
  font-size: 15px;
}

.research-intake-page .candidate-discovery-copy {
  gap: 4px;
}

.research-intake-page .candidate-discovery-copy strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}

.research-intake-page .candidate-subtitle {
  color: var(--pi-ink);
  font-size: 14px;
  line-height: 20px;
}

.research-intake-page .candidate-meta {
  color: var(--pi-muted);
  font-size: 13px;
  line-height: 18px;
}

.research-intake-page .candidate-arrow {
  align-self: center;
  color: var(--pi-muted);
  font-size: 24px;
}

.research-intake-page .candidate-anchor-badge {
  top: 40px;
  right: 20px;
  border-color: var(--pi-ink);
  background: var(--pi-ink);
  color: #fff;
}

.research-intake-page .more-candidates {
  min-height: 82px;
  margin-top: 0;
  padding: 18px 20px;
  border-top: 1px solid var(--pi-line);
}

.research-intake-page .more-candidates .button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--pi-pill);
}

.research-intake-page .candidate-empty {
  border-radius: 0;
}

.research-intake-page .research-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--pi-line);
}

.research-intake-page .research-selection-bar > div:first-child {
  display: grid;
  gap: 14px;
}

.research-intake-page .research-selection-bar span {
  color: var(--pi-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 16px;
  text-transform: uppercase;
}

.research-intake-page .research-selection-bar strong {
  color: var(--pi-ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.research-intake-page .discovery-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.research-intake-page .discovery-actions .button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--pi-pill);
}

.research-intake-page .discovery-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 980px) {
  .research-intake-page .research-intake {
    width: calc(100% - 72px);
  }

  .research-intake-page .research-name-search {
    padding-bottom: 30px;
  }

  .research-intake-page #search-candidates {
    width: auto;
  }

  .research-intake-page .research-loading {
    margin: -18px 0 28px 26px;
  }

  .research-intake-page .candidate-discovery-grid {
    grid-template-columns: 1fr;
  }

  .research-intake-page .research-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .research-intake-page .discovery-actions {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .research-intake-page .research-intake {
    width: calc(100% - 48px);
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .research-intake-page .research-intro {
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .research-intake-page .research-intro h1 {
    font-size: 42px;
    letter-spacing: 0;
    line-height: 44px;
  }

  .research-intake-page .research-name-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .research-intake-page .research-name-capsule {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border-radius: 28px;
  }

  .research-intake-page .research-name-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .research-intake-page .research-name-input input {
    min-height: 56px;
    font-size: 18px;
    line-height: 24px;
  }

  .research-intake-page #search-candidates {
    width: 100%;
    min-height: 52px;
    flex-basis: 100%;
  }

  .research-intake-page .people-search-captcha {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-intake-page .candidate-results-heading,
  .research-intake-page .candidate-results-title-row,
  .research-intake-page .candidate-results-progress,
  .research-intake-page .more-candidates {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-intake-page .candidate-results-title-row {
    gap: 8px;
  }

  .research-intake-page .candidate-discovery-card {
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    min-height: 102px;
    gap: 14px;
    padding: 16px;
  }

  .research-intake-page .candidate-avatar {
    width: 56px;
    height: 56px;
  }

  .research-intake-page .candidate-discovery-copy strong {
    font-size: 17px;
    line-height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .candidate-avatar.is-loading,
  .candidate-avatar-loader,
  .research-intake-page .avatar-enrichment-status.is-loading::before {
    animation: none;
  }
}

/* Approved landing redesign + app-native navigation implementation. */
.header-primary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--pi-ink);
  border-radius: var(--pi-pill);
  background: var(--pi-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item.is-muted {
  color: #a3a3a0;
}

.public-landing-page .site-header,
.public-landing-page .site-header-main,
.public-landing-page .site-header-actions,
.public-landing-page .nav {
  min-height: 72px;
}

.public-landing-page .workspace-user {
  display: none;
}

.pricing-page .pricing-hero,
.pricing-page .pricing-section,
.pricing-page .pricing-faq {
  width: 100%;
  max-width: none;
  margin: 0;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(320px, 390px);
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 74px max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2)) 68px;
  background: #fff;
}

.pricing-hero-copy {
  display: grid;
  max-width: 760px;
  align-content: start;
  gap: 24px;
}

.pricing-hero h1 {
  margin: 0;
  color: var(--pi-ink);
  font-size: clamp(54px, 4.3vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.pricing-hero p {
  margin: 0;
  color: #444440;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

.pricing-hero-copy > p {
  max-width: 620px;
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.pricing-actions .button {
  min-height: 54px;
  padding: 0 22px;
}

.pricing-value-panel {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 26px 24px;
  border-radius: 8px;
  background: #111 var(--pi-polar) center / cover no-repeat;
  color: #fff;
}

.pricing-value-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.03) 48%, rgba(0, 0, 0, 0.34));
}

.pricing-value-tags,
.pricing-value-copy {
  position: relative;
  z-index: 1;
}

.pricing-value-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-value-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--pi-pill);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 16px;
}

.pricing-value-copy {
  display: grid;
  gap: 10px;
}

.pricing-value-copy strong {
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 38px;
}

.pricing-value-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 22px;
}

.pricing-section {
  display: grid;
  gap: 28px;
  padding: 0 max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2)) 48px;
  background: #fff;
}

.pricing-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.pricing-section-heading h2 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 40px;
}

.pricing-section-heading p {
  margin: 0;
  color: #666662;
  font-size: 15px;
  line-height: 20px;
}

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

.pricing-pack {
  display: flex;
  min-height: 254px;
  flex-direction: column;
  align-content: stretch;
  gap: 26px;
  padding: 27px 26px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
}

.pricing-pack-featured {
  border-color: #111;
  background: #111;
  color: #fff;
}

.pricing-pack-topline {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pricing-pack h3 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 20px;
}

.pricing-pack-featured h3 {
  color: #fff;
}

.pricing-pack-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--pi-pill);
  background: #d9643a;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-pack-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.pricing-pack-price strong {
  color: var(--pi-ink);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 68px;
}

.pricing-pack-featured .pricing-pack-price strong {
  color: #fff;
}

.pricing-pack-price span,
.pricing-pack p {
  color: #666662;
  font-size: 15px;
  line-height: 22px;
}

.pricing-pack-featured .pricing-pack-price span,
.pricing-pack-featured p {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-pack p {
  margin: 0;
}

.pricing-account-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  background: #fff;
}

.pricing-account-cta > div {
  display: grid;
  gap: 4px;
}

.pricing-account-cta strong {
  color: var(--pi-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 22px;
}

.pricing-account-cta span {
  color: #666662;
  font-size: 14px;
  line-height: 20px;
}

.pricing-account-cta .button {
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 18px;
}

.pricing-faq {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 896px);
  justify-content: space-between;
  gap: 56px;
  padding: 0 max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2)) 74px;
  background: #fff;
}

.pricing-faq h2 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 38px;
}

.pricing-faq-grid article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--pi-line);
}

.pricing-faq-grid article:last-child {
  border-bottom: 1px solid var(--pi-line);
}

.pricing-faq-grid h3 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
}

.pricing-faq-grid p {
  margin: 0;
  color: #666662;
  font-size: 15px;
  line-height: 22px;
}

.research-page .landing-hero,
.research-page .landing-seen-on,
.research-page .landing-proposition,
.research-page .landing-benefit-row,
.research-page .landing-understanding,
.research-page .landing-closing {
  width: 100%;
  max-width: none;
  margin: 0;
}

.public-landing-page .landing-hero {
  display: flex;
  min-height: 770px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 96px;
  padding: 108px max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2)) 48px;
  background: #fff;
}

.landing-hero-copy {
  display: flex;
  width: 610px;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
}

.landing-hero h1 {
  max-width: 546px;
  margin: 18px 0 22px;
  color: var(--pi-ink);
  font-size: 68px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 74px;
}

.landing-hero .lede {
  width: 546px;
  max-width: 100%;
  margin: 0;
  color: #444440;
  font-size: 17px;
  line-height: 28px;
}

.landing-search-form {
  display: grid;
  width: 546px;
  max-width: 100%;
  gap: 13px;
  margin-top: 54px;
}

.hero-search-row {
  height: 68px;
  gap: 0;
  padding: 6px 6px 6px 22px;
  border: 1px solid #b9b9b5;
  border-radius: var(--pi-pill);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.hero-search-row input {
  min-height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #000;
  font-size: 16px;
}

.hero-search-row input:focus {
  border: 0;
  outline: 0;
}

.hero-search-row .button {
  width: 132px;
  min-height: 54px;
  flex: 0 0 132px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.hero-field-help {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 20px;
  color: #666;
  font-size: 13px;
  line-height: 16px;
}

.hero-field-help i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d8ff3e;
}

.landing-hero-art {
  display: flex;
  width: 632px;
  height: 750px;
  flex: 0 0 632px;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.landing-hero-art img {
  width: 733px;
  max-width: none;
  height: 906px;
  object-fit: contain;
}

.landing-seen-on {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 64px;
  border-top: 1px solid var(--pi-line);
  border-bottom: 1px solid var(--pi-line);
  background: #fff;
}

.landing-seen-on > span {
  color: var(--pi-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 14px;
}

.landing-seen-on > div {
  display: flex;
  align-items: center;
  gap: 46px;
}

.medium-old-logo {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  background: #0b0b0b;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 18px;
}

.medium-wordmark {
  margin-left: -38px;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.twl-wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.landing-proposition {
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  padding: 96px 64px;
  background: var(--pi-surface);
}

.landing-proposition > div {
  display: grid;
  width: 920px;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.landing-proposition h2,
.landing-understanding-heading h2,
.landing-closing h2 {
  margin: 0;
  color: var(--pi-ink);
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 54px;
}

.landing-proposition p {
  max-width: 820px;
  margin: 0;
  color: #444440;
  font-size: 17px;
  line-height: 29px;
}

.landing-benefit-row {
  display: flex;
  min-height: 640px;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 54px max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2));
  border-top: 1px solid #e8e8e4;
  background: var(--pi-surface);
}

.landing-benefit-row--surface {
  background: var(--pi-surface);
}

.landing-benefit-row--reverse {
  background: var(--pi-surface);
}

.landing-benefit-copy {
  display: flex;
  width: 500px;
  flex: 0 0 500px;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.landing-benefit-copy h2 {
  margin: 0;
  color: #0b0b0b;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 59px;
}

.landing-benefit-copy p {
  margin: 0;
  color: #444440;
  font-size: 17px;
  line-height: 29px;
}

.landing-benefit-art {
  display: flex;
  width: 600px;
  height: 600px;
  flex: 0 0 600px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.landing-benefit-art img {
  width: 600px;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.landing-understanding {
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 96px max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2)) 104px;
  border-top: 1px solid #e8e8e4;
  border-bottom: 1px solid #e8e8e4;
  background: var(--pi-surface);
}

.landing-understanding-heading {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 96px;
}

.landing-understanding-heading > div {
  display: grid;
  width: 760px;
  gap: 14px;
}

.landing-understanding-heading p {
  width: 430px;
  margin: 0;
  color: #444440;
  font-size: 17px;
  line-height: 29px;
}

.understanding-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.understanding-card {
  display: flex;
  width: auto;
  height: 390px;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--pi-line);
  border-radius: 18px;
  background: #fff;
}

.understanding-card--wide {
  grid-column: span 2;
  padding: 32px;
}

.understanding-card--short {
  height: 340px;
}

.understanding-card--quiet {
  background: var(--pi-surface);
}

.understanding-card--dark {
  border-color: var(--pi-ink);
  background: var(--pi-ink);
  color: #fff;
}

.understanding-card--github {
  grid-column: 1 / -1;
  height: 330px;
  flex-direction: row;
  gap: 36px;
  padding: 28px;
}

.understanding-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 24px;
}

.understanding-card p {
  margin: 0;
  color: #444440;
  font-size: 14px;
  line-height: 21px;
}

.understanding-card--dark p {
  color: #d9d9d5;
}

.mock-career,
.mock-tabs,
.mock-media,
.mock-pills,
.mock-activity,
.mock-questions,
.mock-github {
  border: 1px solid #e3e3df;
  border-radius: 12px;
  background: #f7f7f4;
}

.mock-career {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.mock-career span {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  color: #444;
  font-size: 13px;
}

.mock-career i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8ff3e;
}

.mock-tabs,
.mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.mock-tabs span,
.mock-pills span,
.mock-questions span {
  border-radius: var(--pi-pill);
  background: #fff;
  color: #0b0b0b;
  font-size: 12px;
  line-height: 16px;
  padding: 8px 12px;
}

.mock-tabs span:first-child {
  background: #d8ff3e;
}

.mock-media,
.mock-github {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-color: #202020;
  background: #111;
}

.mock-media span,
.mock-github span {
  color: #fff;
  font-size: 12px;
}

.mock-media i,
.mock-github b {
  height: 8px;
  border-radius: 999px;
  background: #4d5968;
}

.mock-media i:first-of-type,
.mock-github b:first-of-type {
  background: #d8ff3e;
}

.mock-activity {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.mock-activity span {
  height: 28px;
  border: 1px solid #e3e3df;
  border-radius: 8px;
  background: #fff;
}

.mock-questions {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.mock-github {
  width: 620px;
  flex: 0 0 620px;
}

.mock-github i {
  display: inline-block;
  width: 70px;
  height: 22px;
  border-radius: var(--pi-pill);
  background: #4d5968;
}

.landing-closing {
  display: grid;
  justify-items: start;
  gap: 20px;
  min-height: 453px;
  padding: 92px max(var(--pi-page-gutter), calc((100vw - var(--pi-page-max)) / 2));
  border-top: 1px solid var(--pi-line);
  background: #fff;
  text-align: left;
}

.landing-closing h2 {
  max-width: 791px;
  font-size: 46px;
  line-height: 64px;
}

.landing-closing p {
  max-width: 690px;
  margin: 0;
  color: #444440;
  font-size: 17px;
  line-height: 29px;
}

.landing-closing .button {
  min-height: 54px;
  padding: 0 22px;
}

@media (max-width: 1180px) {
  .public-landing-page .landing-hero,
  .pricing-hero,
  .pricing-section,
  .pricing-faq,
  .landing-benefit-row,
  .landing-understanding,
  .landing-closing {
    padding-right: 36px;
    padding-left: 36px;
  }

  .public-landing-page .landing-hero {
    gap: 48px;
  }

  .landing-hero-art,
  .landing-benefit-art {
    flex-basis: 48%;
    width: 48%;
  }

  .landing-benefit-copy {
    width: auto;
    max-width: 500px;
    flex: 1 1 420px;
  }

  .landing-benefit-art img {
    width: min(600px, 100%);
    max-width: 100%;
  }

  .landing-hero-art img {
    width: 115%;
    height: auto;
  }

  .pricing-pack-grid {
    grid-template-columns: 1fr;
  }

  .pricing-pack {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 64px;
    padding: 12px 20px;
  }

  .workspace-page .site-header,
  .public-landing-page .site-header {
    padding-right: var(--pi-page-gutter);
    padding-left: var(--pi-page-gutter);
  }

  .site-header-main {
    gap: 22px;
  }

  .site-header-actions {
    gap: 12px;
  }

  .header-primary-action {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .nav {
    max-width: calc(100vw - 340px);
    overflow-x: auto;
  }

  .nav-item {
    padding: 11px 0;
  }

  .public-landing-page .landing-hero,
  .pricing-hero,
  .landing-benefit-row,
  .landing-benefit-row--reverse {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .public-landing-page .landing-hero {
    min-height: 0;
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 24px;
  }

  .landing-hero-copy,
  .landing-hero .lede,
  .landing-search-form,
  .landing-benefit-copy,
  .landing-understanding-heading,
  .landing-understanding-heading > div,
  .landing-understanding-heading p {
    width: 100%;
  }

  .landing-hero h1 {
    max-width: 760px;
    font-size: 58px;
    line-height: 62px;
  }

  .pricing-hero h1 {
    font-size: 54px;
    line-height: 60px;
  }

  .pricing-value-panel,
  .pricing-faq-grid {
    width: 100%;
  }

  .pricing-faq {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-hero-art {
    width: 100%;
    height: 520px;
    flex-basis: auto;
  }

  .landing-hero-art img {
    width: 620px;
  }

  .landing-benefit-row {
    min-height: 0;
    gap: 24px;
  }

  .landing-benefit-row--reverse {
    flex-direction: column-reverse;
  }

  .landing-benefit-copy {
    flex: 0 1 auto;
  }

  .landing-benefit-art {
    width: 100%;
    height: auto;
    flex-basis: auto;
  }

  .landing-benefit-art img {
    width: min(520px, 100%);
  }

  .landing-understanding-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .understanding-card,
  .understanding-card--wide,
  .understanding-card--github {
    width: auto;
  }

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

  .understanding-card--wide,
  .understanding-card--github {
    grid-column: 1 / -1;
  }

  .understanding-card--github {
    flex-direction: column;
    height: auto;
  }

  .mock-github {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 700px) {
  .workspace-page .site-header,
  .public-landing-page .site-header {
    min-height: 61px;
    align-items: center;
    padding: 0 24px;
  }

  .workspace-page .site-header-main,
  .public-landing-page .site-header-main {
    flex-direction: row;
    align-items: center;
  }

  .brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 28px;
  }

  .nav,
  .workspace-user {
    display: none;
  }

  .site-header-actions {
    gap: 6px;
  }

  .session-action {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
  }

  .header-primary-action {
    min-height: 36px;
    gap: 6px;
    padding: 0 12px;
    font-size: 14px;
  }

  .mobile-nav-menu summary {
    width: 36px;
    min-height: 36px;
  }

  .header-primary-label-full,
  .desktop-session-form {
    display: none;
  }

  .header-primary-label-short,
  .mobile-auth-primary,
  .mobile-nav-menu {
    display: inline-flex;
  }

  .public-landing-page .landing-hero {
    padding: 56px 24px 8px;
  }

  .pricing-hero,
  .pricing-section,
  .pricing-faq {
    padding-right: 24px;
    padding-left: 24px;
  }

  .pricing-hero {
    gap: 28px;
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .landing-hero h1 {
    font-size: 40px;
    line-height: 47px;
  }

  .pricing-hero h1,
  .pricing-section-heading h2,
  .pricing-faq h2 {
    font-size: 38px;
    line-height: 44px;
  }

  .landing-hero .lede {
    font-size: 15px;
    line-height: 25px;
  }

  .pricing-hero p,
  .pricing-section-heading p,
  .pricing-faq-grid p {
    font-size: 15px;
    line-height: 25px;
  }

  .pricing-actions,
  .pricing-actions .button {
    width: 100%;
  }

  .pricing-section {
    gap: 22px;
    padding-bottom: 42px;
  }

  .pricing-section-heading,
  .pricing-account-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-account-cta .button {
    width: 100%;
  }

  .pricing-faq-grid article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pricing-pack {
    min-height: 0;
    padding: 22px;
  }

  .pricing-pack-price strong {
    font-size: 46px;
    line-height: 50px;
  }

  .landing-search-form {
    margin-top: 28px;
  }

  .hero-search-row {
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-radius: 28px;
  }

  .hero-search-row input,
  .hero-search-row .button {
    width: 100%;
    flex-basis: 100%;
  }

  .landing-hero-art {
    width: 342px;
    max-width: 100%;
    height: 416px;
    align-self: center;
  }

  .landing-hero-art img {
    width: 377px;
  }

  .landing-seen-on {
    min-height: 150px;
    padding: 24px;
  }

  .landing-seen-on > div {
    gap: 28px;
  }

  .medium-wordmark {
    margin-left: -22px;
  }

  .landing-proposition {
    min-height: 515px;
    padding: 68px 24px;
  }

  .landing-proposition h2,
  .landing-understanding-heading h2,
  .landing-closing h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .landing-proposition p,
  .landing-understanding-heading p,
  .landing-closing p {
    font-size: 15px;
    line-height: 25px;
  }

  .landing-benefit-row,
  .landing-benefit-row--reverse {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 36px 24px 32px;
  }

  .landing-benefit-row--reverse {
    flex-direction: column-reverse;
  }

  .landing-benefit-copy {
    width: 100%;
    max-width: none;
    flex: 0 1 auto;
    gap: 20px;
    text-align: left;
  }

  .landing-benefit-copy h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .landing-benefit-copy p {
    font-size: 15px;
    line-height: 25px;
  }

  .landing-benefit-art {
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
  }

  .landing-benefit-art img {
    width: min(286px, 100%);
  }

  .landing-understanding {
    gap: 30px;
    padding: 72px 24px 80px;
  }

  .landing-understanding-heading {
    width: 100%;
    gap: 16px;
    text-align: left;
  }

  .understanding-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .understanding-card,
  .understanding-card--wide,
  .understanding-card--short,
  .understanding-card--github {
    width: 100%;
    height: auto;
    min-height: 0;
    grid-column: 1;
    gap: 22px;
    padding: 20px;
    border-radius: 16px;
  }

  .understanding-card--github {
    flex-direction: column;
  }

  .understanding-card h3 {
    font-size: 18px;
    line-height: 22px;
  }

  .landing-closing {
    min-height: 400px;
    padding: 72px 24px;
  }

  .landing-closing h2 {
    line-height: 43px;
  }
}
