:root {
  --page-bg: #f7f9fc;
  --panel-bg: #ffffff;
  --panel-border: #d7e0eb;
  --text: #2d3b51;
  --muted: #6b788b;
  --navy: #163e74;
  --blue: #1f5e9d;
  --green: #2ba66f;
  --orange: #ea8e25;
  --purple: #765fd9;
  --red: #d84863;
  --gold: #c78f1f;
  --soft-blue: #e8f1fb;
  --soft-green: #e6f5ed;
  --soft-orange: #fbefe2;
  --soft-purple: #efebfc;
  --soft-red: #fce8ed;
  --soft-gold: #fbf0d7;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  padding: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.16;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.page-shell {
  width: min(1180px, calc(100vw - 16px));
  aspect-ratio: 36 / 47;
  display: grid;
  grid-template-rows: 170px minmax(0, 1fr) 74px;
  gap: 10px;
  padding: 16px 20px 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)),
    #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(215, 224, 235, 0.95),
    0 16px 48px rgba(34, 58, 93, 0.12);
  margin: 8px auto;
}

.poster-header {
  display: grid;
  grid-template-columns: minmax(175px, 0.85fr) minmax(0, 2.4fr) minmax(175px, 0.85fr);
  gap: 16px;
  align-items: center;
}

.header-logos {
  display: grid;
  gap: 10px;
  align-content: center;
}

.header-logos--left {
  justify-items: start;
}

.header-logos--right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.logo {
  object-fit: contain;
}

.logo--cwru {
  width: 245px;
}

.logo--scorio {
  width: 170px;
}

.logo--nsf {
  width: 74px;
}

.logo--poster-qr {
  width: 78px;
  padding: 3px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #ffffff;
}

.poster-qr-callout {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 132px;
  color: #29476f;
  font-size: 0.5rem;
  line-height: 1.05;
  font-weight: 850;
  text-align: center;
}

.header-title {
  min-width: 0;
  text-align: center;
}

h1 {
  margin: 0;
  color: #26364f;
  font-size: 3.05rem;
  line-height: 0.94;
  font-weight: 880;
  letter-spacing: 0;
  text-wrap: balance;
}

.authors {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.1;
  font-weight: 760;
  text-wrap: balance;
}

.authors a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 140ms ease,
    text-decoration-color 140ms ease;
}

.authors a:hover,
.authors a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.authors a:focus-visible {
  outline: 2px solid rgba(31, 94, 157, 0.34);
  outline-offset: 2px;
  border-radius: 4px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
}

.detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  background: #ffffff;
  color: #2f4667;
  font: inherit;
  font-size: 0.61rem;
  line-height: 1;
  font-weight: 880;
  cursor: pointer;
}

.detail-action:hover,
.detail-action:focus-visible {
  border-color: #b6c8dd;
  color: var(--navy);
}

.detail-action:focus-visible {
  outline: 2px solid rgba(31, 94, 157, 0.34);
  outline-offset: 2px;
}

.detail-action.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.detail-action--code.is-active {
  border-color: #292b36;
  background: #292b36;
}

.detail-action__icon {
  width: 16px;
  height: 14px;
  flex: 0 0 auto;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel-bg);
  box-shadow: 0 8px 22px rgba(40, 65, 102, 0.06);
}

.poster-main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.poster-view[hidden] {
  display: none !important;
}

.poster-view--poster {
  min-height: 0;
  display: grid;
}

.poster-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: 10px;
}

.poster-grid > .panel--setup {
  order: 1;
}

.poster-grid > .panel--consensus {
  order: 2;
}

.poster-grid > .panel--low {
  order: 3;
}

.poster-grid > .panel--priors {
  order: 4;
}

.poster-grid > .panel--alignment {
  order: 5;
}

.poster-grid > .panel--categorical {
  order: 6;
}

.panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
}

.panel > * {
  min-width: 0;
  min-height: 0;
}

.panel h2 {
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #eef3fb;
  color: #263a58;
  font-size: 1.22rem;
  line-height: 1.02;
  font-weight: 860;
  letter-spacing: 0;
}

.panel--orange {
  border-top: 6px solid var(--orange);
}

.panel--purple {
  border-top: 6px solid var(--purple);
}

.panel--green {
  border-top: 6px solid var(--green);
}

.panel--blue {
  border-top: 6px solid var(--blue);
}

.panel--red {
  border-top: 6px solid var(--red);
}

.panel--gold {
  border-top: 6px solid var(--gold);
}

.panel figure {
  min-height: 0;
  margin: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.panel img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.panel ul {
  margin: 0;
  padding-left: 1rem;
  color: #35475f;
  font-size: 0.66rem;
  line-height: 1.14;
  font-weight: 520;
}

.panel li + li {
  margin-top: 0.28rem;
}

.panel--setup {
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
}

.panel--setup ul {
  font-size: 0.78rem;
}

.workflow {
  counter-reset: workflow-step;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  counter-increment: workflow-step;
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  align-self: stretch;
  grid-column: span 2;
  padding: 5px 8px;
  border-radius: 16px;
  color: #314154;
  font-size: 0.58rem;
  line-height: 1.05;
  font-weight: 850;
  text-align: left;
}

.workflow li:nth-child(4),
.workflow li:nth-child(5) {
  grid-column: span 3;
}

.workflow li + li {
  margin-top: 0;
}

.workflow li::before {
  content: counter(workflow-step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 900;
}

.workflow span {
  min-width: 0;
  overflow-wrap: normal;
}

.workflow sub {
  font-size: 0.72em;
  line-height: 0;
}

.workflow li:nth-child(1) {
  background: #e8f1fb;
}

.workflow li:nth-child(1)::before {
  background: #2e86de;
}

.workflow li:nth-child(2) {
  background: #e4f3ec;
}

.workflow li:nth-child(2)::before {
  background: #2fb778;
}

.workflow li:nth-child(3) {
  background: #fff0dc;
}

.workflow li:nth-child(3)::before {
  background: #f39c1f;
}

.workflow li:nth-child(4) {
  background: #efeafd;
}

.workflow li:nth-child(4)::before {
  background: #765fd9;
}

.workflow li:nth-child(5) {
  background: #e8f1fb;
}

.workflow li:nth-child(5)::before {
  background: #25547e;
}

.note {
  margin: 8px 0 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef3fb;
  color: #53647b;
  font-size: 0.79rem;
  line-height: 1.14;
  font-weight: 620;
}

.setup-code-card {
  align-self: start;
  margin-top: 16px;
  min-width: 0;
  display: grid;
  padding: 6px 12px 7px;
  border-radius: 18px;
  background: #292b36;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.setup-code-card pre {
  margin: 0;
  overflow: hidden;
}

.setup-code-card code {
  display: block;
  color: #f5f2f0;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.28;
  white-space: pre;
}

.code-pink {
  color: #ff7bd5;
}

.code-orange {
  color: #ffb35f;
  font-style: italic;
}

.code-purple {
  color: #c38cff;
}

.panel--low,
.panel--priors,
.panel--consensus,
.panel--alignment,
.panel--categorical {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.panel--low,
.panel--consensus,
.panel--alignment {
  grid-template-rows: auto auto auto;
  align-content: start;
}

.panel--categorical {
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 7px;
}

.panel--low figure,
.panel--consensus figure,
.panel--alignment figure,
.panel--categorical figure {
  align-items: start;
}

.panel--consensus figure {
  margin-inline: -4px;
}

.panel--low figure img,
.panel--consensus figure img,
.panel--alignment figure img,
.panel--categorical figure img {
  height: auto;
  object-position: top center;
}

.panel--low img,
.panel--priors img,
.panel--consensus img,
.panel--alignment img,
.panel--categorical img {
  max-height: 100%;
}

.panel--low ul,
.panel--priors ul,
.panel--consensus ul,
.panel--alignment ul,
.panel--categorical ul {
  max-height: 56px;
  overflow: hidden;
}

.panel--low ul {
  max-height: none;
  overflow: visible;
  font-size: 0.78rem;
  line-height: 1.13;
  margin-top: 2px;
}

.panel--low li + li {
  margin-top: 0.24rem;
}

.panel--categorical > ul:not(.takeaway-list) {
  max-height: none;
  overflow: visible;
  font-size: 0.78rem;
  line-height: 1.13;
  margin-top: 10px;
}

.panel--categorical li + li {
  margin-top: 0.24rem;
}

.panel--consensus ul,
.panel--alignment ul {
  max-height: none;
  overflow: visible;
  font-size: 0.78rem;
  line-height: 1.13;
}

.panel--alignment ul {
  margin-top: 10px;
}

.panel--alignment figure {
  margin-inline: -6px;
}

.panel--alignment figure img {
  justify-self: center;
  width: 108%;
  max-width: none;
}

.panel--categorical figure {
  margin-inline: -4px;
}

.panel--categorical figure img {
  justify-self: center;
  width: 104%;
  max-width: none;
}

.panel--consensus li + li,
.panel--alignment li + li {
  margin-top: 0.24rem;
}

.insight-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.insight-strip p {
  min-width: 0;
  margin: 0;
  padding: 7px 8px;
  border-radius: 8px;
  color: #2e3d55;
  font-size: 0.58rem;
  line-height: 1.08;
  font-weight: 680;
}

.insight-strip span,
.insight-strip strong {
  display: block;
  min-width: 0;
}

.insight-strip span {
  margin-bottom: 3px;
  color: #657184;
  font-size: 0.42rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-strip strong {
  color: #263a58;
  font-weight: 900;
}

.insight-strip--alignment p {
  background: #fce8ed;
}

.insight-strip--alignment p:first-child {
  background: #e8f1fb;
}

.insight-strip--categorical p {
  background: #fbf0d7;
}

.insight-strip--categorical p:first-child {
  background: #e6f5ed;
}

.panel--priors {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 7px;
}

.priors-decision {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(118, 95, 217, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(118, 95, 217, 0.13), rgba(31, 94, 157, 0.08)),
    #ffffff;
}

.priors-decision__kicker {
  color: #5b4aac;
  font-size: 0.5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.priors-decision p {
  margin: 0;
  color: #314154;
  font-size: 0.69rem;
  line-height: 1.13;
  font-weight: 680;
}

.priors-decision strong {
  color: #2e246f;
  font-weight: 900;
}

.method-board {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.method-lane {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 7px;
  border: 1px solid rgba(118, 95, 217, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.method-lane--gold {
  background:
    linear-gradient(90deg, rgba(118, 95, 217, 0.09), transparent 42%),
    #fbf9ff;
}

.method-lane--self {
  background:
    linear-gradient(90deg, rgba(31, 94, 157, 0.08), transparent 42%),
    #f8fbff;
}

.method-lane h3 {
  min-width: 0;
  margin: 0;
  color: #32266f;
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

.method-lane__eyebrow {
  min-width: 0;
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(118, 95, 217, 0.13);
  color: #5744aa;
  font-size: 0.43rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.method-table {
  min-height: 0;
  display: grid;
  grid-template-rows: auto repeat(5, minmax(0, 1fr));
  gap: 3px;
}

.method-table__head,
.method-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 72px;
  gap: 5px;
  align-items: center;
}

.method-table__head {
  color: #6859b8;
  font-size: 0.43rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.method-table__head span:last-child {
  text-align: right;
}

.method-table__metric {
  font-size: 0.58rem;
  line-height: 1;
  text-transform: none;
}

.method-table__metric .katex {
  font-size: 1em;
}

.method-table__head h3 {
  text-transform: none;
}

.method-row {
  position: relative;
  padding: 4px 5px 4px 7px;
  border: 1px solid rgba(118, 95, 217, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 10px rgba(63, 56, 107, 0.04);
  overflow: hidden;
}

.method-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #765fd9;
}

.method-row.is-uniform-win::before {
  background: #1f5e9d;
}

.method-row.is-model-win::before {
  background: #2ba66f;
}

.method-row.is-vote-win::before {
  background: #c78f1f;
}

.method-benchmark {
  color: #273a56;
  font-size: 0.55rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.method-chip {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  color: #302a55;
  font-size: 0.51rem;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.method-chip--prior {
  background: rgba(118, 95, 217, 0.14);
  color: #4937a0;
}

.method-chip--uniform {
  background: rgba(31, 94, 157, 0.12);
  color: #1c548c;
}

.method-chip--model {
  background: rgba(43, 166, 111, 0.12);
  color: #226046;
}

.method-chip--vote {
  background: rgba(199, 143, 31, 0.15);
  color: #7c570f;
}

.method-score {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0;
  color: #25364f;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.method-score strong {
  font-size: 0.56rem;
  line-height: 1;
  font-weight: 950;
}

.method-score em {
  color: #66738a;
  font-size: 0.56rem;
  line-height: 1;
  font-style: normal;
  font-weight: 760;
}

.priors-summary {
  display: grid;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f1eefc;
}

.priors-summary p {
  margin: 0;
  color: #3e4e66;
  font-size: 0.58rem;
  line-height: 1.12;
  font-weight: 660;
}

.priors-summary strong {
  color: #392b82;
  font-weight: 900;
}

.takeaway-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 18px;
  background: #dff2e7;
}

.panel--categorical .takeaway-card {
  margin-top: 15px;
}

.takeaway-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.takeaway-card__body {
  min-width: 0;
}

.takeaway-card p {
  margin: 0 0 5px;
  color: #22324a;
  font-size: 0.68rem;
  line-height: 1.08;
  font-weight: 720;
}

.panel--categorical .takeaway-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: none;
  overflow: visible;
}

.takeaway-list li {
  min-width: 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2e5c47;
  font-size: 0.51rem;
  line-height: 1;
  font-weight: 850;
  text-align: center;
}

.takeaway-list li + li {
  margin-top: 0;
}

.acknowledgement {
  margin: 12px 0 0;
  color: #657184;
  font-size: 0.62rem;
  line-height: 1.12;
  font-weight: 620;
}

.panel--priors figure,
.panel--low figure,
.panel--alignment figure,
.panel--categorical figure {
  align-self: stretch;
}

.panel--consensus figure {
  align-self: stretch;
}

.poster-footer {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(250px, 0.95fr);
  gap: 8px;
}

.cta-card,
.quickstart,
.install-card {
  min-width: 0;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(26, 52, 95, 0.06);
}

.cta-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  text-decoration: none;
}

.cta-card__meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cta-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf3fb;
  color: #213b63;
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 900;
}

.cta-card__chip img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.cta-card__chip--icon-only {
  gap: 0;
  line-height: 0;
}

.cta-card__chip--icon-only img {
  width: auto;
  height: 0.98rem;
}

.cta-card__url {
  display: block;
  min-width: 0;
  color: #29456d;
  font-size: 0.68rem;
  line-height: 1.08;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cta-card__qr {
  width: 42px;
  height: 42px;
  padding: 2px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #d4deea;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.cta-card--github {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.cta-card--paper {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f5 100%);
}

.cta-card--paper .cta-card__chip {
  background: #fff1ea;
  color: #8a3d1c;
}

.cta-card--docs {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
}

.cta-card--docs .cta-card__chip {
  background: #ebf7ef;
  color: #226046;
}

.quickstart {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 7px 10px 8px;
  border-radius: 8px;
  background: #292b36;
  color: #f7f7f3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(12, 21, 32, 0.12);
}

.quickstart__dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.quickstart__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.quickstart__dots span:nth-child(1) {
  background: #ffd76a;
}

.quickstart__dots span:nth-child(2) {
  background: #7fe2c2;
}

.quickstart__dots span:nth-child(3) {
  background: #75b9ff;
}

.quickstart code {
  display: block;
  font-family: var(--mono);
  font-size: 0.53rem;
  line-height: 1.13;
  white-space: nowrap;
}

.install-card {
  display: none;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 8px 10px;
  border-color: #2a4163;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 86, 0.12), transparent 28%),
    linear-gradient(180deg, #1b2d49 0%, #14233a 100%);
  color: #d8e4ff;
  box-shadow: 0 14px 28px rgba(12, 26, 49, 0.18);
}

.install-card__brand {
  display: grid;
  align-content: start;
  justify-items: start;
  color: inherit;
  text-decoration: none;
}

.install-card__logo {
  width: 64px;
  height: auto;
  object-fit: contain;
}

.install-card__commands {
  display: grid;
  gap: 6px;
  align-content: start;
}

.install-card__command {
  display: grid;
  gap: 3px;
  padding: 6px 8px;
  border: 1px solid rgba(161, 188, 231, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.install-card__command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.install-card__label {
  color: #90b4e8;
  font-size: 0.5rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.install-card__copy {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 3px 7px;
  border: 1px solid rgba(168, 196, 238, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e7ff;
  font: inherit;
  font-size: 0.48rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.install-card__copy:hover {
  background: rgba(255, 255, 255, 0.11);
}

.install-card__copy:focus-visible {
  outline: 2px solid rgba(122, 183, 255, 0.45);
  outline-offset: 2px;
}

.install-card code {
  font-family: var(--mono);
  color: #edf4ff;
  font-size: 0.56rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.qs-command,
.qs-var {
  color: #62f58b;
}

.qs-token {
  color: #f2f078;
}

.qs-key {
  color: #8df1d0;
}

.qs-punct {
  color: #f7f7f3;
}

body[data-detail="code"] .poster-footer {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(250px, 0.95fr);
}

body[data-detail="code"] .page-shell {
  aspect-ratio: auto;
  grid-template-rows: 170px auto 74px;
  overflow: visible;
}

body[data-detail="code"] .poster-footer .cta-card {
  padding: 5px 8px;
}

body[data-detail="code"] .poster-footer .cta-card__chip {
  padding: 4px 7px;
  font-size: 0.56rem;
}

body[data-detail="code"] .poster-footer .cta-card__chip img {
  width: 12px;
  height: 12px;
}

body[data-detail="code"] .poster-footer .cta-card__chip--icon-only img {
  width: auto;
  height: 0.9rem;
}

body[data-detail="code"] .poster-footer .cta-card__url {
  font-size: 0.64rem;
}

body[data-detail="code"] .poster-footer .cta-card__qr {
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 8px;
}

body[data-detail="code"] .quickstart {
  display: none;
}

body[data-detail="code"] .install-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 5px 8px;
  gap: 8px;
  overflow: hidden;
}

body[data-detail="code"] .install-card__logo {
  width: 52px;
}

body[data-detail="code"] .install-card__commands {
  gap: 4px;
}

body[data-detail="code"] .install-card__command {
  gap: 2px;
  padding: 4px 6px;
}

body[data-detail="code"] .install-card__label {
  font-size: 0.42rem;
}

body[data-detail="code"] .install-card__copy {
  min-width: 38px;
  padding: 2px 5px;
  font-size: 0.4rem;
}

body[data-detail="code"] .install-card code {
  font-size: 0.47rem;
  line-height: 1.1;
}

.poster-view--code {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 8px;
  overflow: hidden;
}

.poster-view--code > * {
  min-width: 0;
  min-height: 0;
}

.theme-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.theme-strip--code {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.theme-pill {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 50px;
  padding: 7px 10px;
  text-decoration: none;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
}

.theme-pill__title {
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.theme-pill__text {
  color: #748193;
  font-size: 0.54rem;
  line-height: 1.08;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
}

.theme-pill--blue {
  background: #e8f0fa;
  color: #1e4a87;
}

.theme-pill--green {
  background: #e6f5ed;
  color: #35b178;
}

.theme-pill--orange {
  background: #fbefe2;
  color: #ec9128;
}

.code-abstract__body code,
.code-panel code,
.code-fact__value,
.api-reference__table td code,
.api-reference__note code {
  font-family: var(--mono);
}

.code-abstract {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 10px;
  margin-top: 0;
  padding: 10px;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(45, 129, 221, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(123, 102, 223, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 22px rgba(40, 65, 102, 0.06);
  overflow: hidden;
}

.code-abstract__copy {
  display: grid;
  gap: 7px;
  align-content: start;
}

.code-abstract__header {
  display: grid;
  gap: 6px;
}

.code-abstract__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7eef8;
  color: var(--navy);
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.code-abstract h2 {
  margin: 0;
  color: #24364f;
  font-size: 1.08rem;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.code-abstract__body {
  display: grid;
  gap: 5px;
}

.code-abstract__body p {
  margin: 0;
  color: #536276;
  font-size: 0.57rem;
  line-height: 1.18;
}

.code-abstract__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 1rem;
  color: #4f6075;
  font-size: 0.53rem;
  line-height: 1.12;
}

.code-abstract__list strong {
  color: #31455f;
}

.code-abstract__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.code-fact {
  display: grid;
  gap: 3px;
  padding: 6px 7px;
  border: 1px solid #d9e4f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.code-fact__label {
  color: #587195;
  font-size: 0.42rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-fact__value {
  color: #243a61;
  font-size: 0.5rem;
  line-height: 1.16;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.api-reference {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  min-height: 0;
  padding: 8px 9px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(102, 164, 221, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 28px rgba(22, 48, 86, 0.09);
}

.api-reference__header {
  display: grid;
  gap: 6px;
}

.api-reference__title {
  margin: 0;
  color: #213552;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.api-reference__table-wrap {
  min-width: 0;
  overflow: hidden;
}

.api-reference__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #233b5d;
  color: #23364f;
}

.api-reference__table thead th {
  padding: 5px 6px 5px 0;
  border-bottom: 1px solid #aebfd2;
  color: #253a59;
  font-size: 0.54rem;
  line-height: 1.05;
  font-weight: 900;
  text-align: left;
}

.api-reference__table th:last-child,
.api-reference__table td:last-child {
  padding-right: 0;
}

.api-reference__table tbody + tbody tr:first-child td {
  border-top: 1px solid #aebfd2;
}

.api-reference__table tbody tr:last-child td {
  border-bottom: 1px solid #d5dfeb;
}

.api-reference__table td {
  padding: 4px 6px 4px 0;
  vertical-align: top;
  color: #46586f;
  font-size: 0.54rem;
  line-height: 1.1;
}

.api-reference__table td code {
  color: #233b61;
  font-size: 0.54rem;
  line-height: 1.12;
  white-space: nowrap;
}

.api-reference__note {
  margin: 0;
  color: #536276;
  font-size: 0.52rem;
  line-height: 1.1;
}

.api-reference__note code {
  color: #243a61;
  font-size: 0.52rem;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.code-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 7px;
  padding: 9px;
  border: 1px solid #d7e0eb;
  border-top: 6px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(40, 65, 102, 0.06);
}

.code-panel--green {
  border-top-color: var(--green);
}

.code-panel--orange {
  border-top-color: var(--orange);
}

.code-panel__header {
  display: grid;
  gap: 5px;
}

.code-panel__header h3 {
  margin: 0;
  color: #263a58;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 900;
}

.code-panel__header p {
  margin: 0;
  color: #52637a;
  font-size: 0.55rem;
  line-height: 1.16;
  font-weight: 610;
}

.code-snippet {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  border-radius: 8px;
  background: #292b36;
  color: #f5f2f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.code-snippet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px 0;
}

.code-snippet__dots {
  display: inline-flex;
  gap: 5px;
}

.code-snippet__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.code-snippet__dots span:nth-child(1) {
  background: #ffd76a;
}

.code-snippet__dots span:nth-child(2) {
  background: #7fe2c2;
}

.code-snippet__dots span:nth-child(3) {
  background: #75b9ff;
}

.code-copy {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f2f0;
  font: inherit;
  font-size: 0.46rem;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
}

.code-copy:hover,
.code-copy:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.code-copy:focus-visible {
  outline: 2px solid rgba(117, 185, 255, 0.72);
  outline-offset: 2px;
}

.code-snippet pre {
  margin: 0;
  min-height: 0;
  padding: 7px 8px 8px;
  overflow: auto;
}

.code-snippet code {
  display: block;
  color: #f5f2f0;
  font-size: 0.6rem;
  line-height: 1.34;
  white-space: pre;
}

.code-panel ul {
  margin: 0;
  padding-left: 1rem;
  color: #35475f;
  font-size: 0.55rem;
  line-height: 1.16;
  font-weight: 560;
}

.code-panel li + li {
  margin-top: 0.18rem;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(760px, calc(100vw - 12px));
    grid-template-rows: auto auto auto auto;
    aspect-ratio: auto;
  }

  .poster-header,
  .poster-grid,
  .poster-footer {
    grid-template-columns: 1fr;
  }

  body[data-detail="code"] .poster-footer {
    grid-template-columns: 1fr;
  }

  body[data-detail="code"] .install-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .header-logos {
    justify-items: center;
  }

  h1 {
    font-size: 2.1rem;
  }

  .detail-actions {
    margin-top: 8px;
  }

  .theme-strip,
  .code-abstract,
  .code-grid,
  .code-abstract__facts {
    grid-template-columns: 1fr;
  }
}
