/* ============================================================
   First PR — find the issue you can actually fix
   Blueprint paper, ink, and a route card.
   ============================================================ */

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

[hidden] {
  display: none !important;
}

:root {
  --paper: #f4f1e9;
  --paper-deep: #ebe7dc;
  --card: #fbf9f3;
  --card-strong: #ffffff;
  --ink: #141a2a;
  --ink-soft: #293246;
  --muted: #5f6877;
  --faint: #8a919c;
  --line: #d7d1c3;
  --line-strong: #b9b2a2;
  --blue: #2743d8;
  --blue-deep: #1b2f9f;
  --blue-soft: #e4e8fb;
  --orange: #d9552f;
  --orange-soft: #f8e5dd;
  --green: #1f7a52;
  --green-soft: #e0f0e6;
  --amber: #c18816;
  --white: #fbfaf5;
  --radius: 18px;
  --radius-sm: 11px;
  --display: "Space Grotesk", "Arial Black", system-ui, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 24px 60px rgba(20, 26, 42, 0.11);
  --shadow-soft: 0 12px 30px rgba(20, 26, 42, 0.07);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(20, 26, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 26, 42, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 92% -10%, rgba(39, 67, 216, 0.1), transparent 30rem),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

code {
  padding: 0.08em 0.28em;
  background: var(--paper-deep);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9em;
}

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

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 200;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--paper) 89%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: 0;
  left: 1.5rem;
  height: 1px;
  background: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 9px;
  color: var(--white);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-text em {
  color: var(--blue);
  font-style: normal;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}

.topnav a {
  position: relative;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.32rem;
  left: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.topnav a:hover {
  color: var(--ink);
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cli-link {
  padding: 0.42rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cli-link span {
  color: var(--blue);
}

.cli-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Star button, five sizes ---------- */
.star-btn {
  --star-pad: 0.62rem 0.8rem;
  --star-font: 0.76rem;
  --star-icon: 14px;
  --star-gap: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: var(--star-gap);
  padding: var(--star-pad);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--star-font);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.star-icon {
  width: var(--star-icon);
  height: var(--star-icon);
  flex-shrink: 0;
  color: var(--blue);
}

.star-count {
  padding-left: var(--star-gap);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: calc(var(--star-font) - 0.04rem);
  font-weight: 400;
}

.star-btn[data-size="xs"] {
  --star-pad: 0.3rem 0.46rem;
  --star-font: 0.6rem;
  --star-icon: 10px;
  --star-gap: 0.26rem;
}

.star-btn[data-size="sm"] {
  --star-pad: 0.44rem 0.6rem;
  --star-font: 0.69rem;
  --star-icon: 12px;
  --star-gap: 0.33rem;
}

.star-btn[data-size="md"] {
  --star-pad: 0.58rem 0.78rem;
  --star-font: 0.76rem;
  --star-icon: 14px;
  --star-gap: 0.4rem;
}

.star-btn[data-size="lg"] {
  --star-pad: 0.74rem 0.98rem;
  --star-font: 0.84rem;
  --star-icon: 16px;
  --star-gap: 0.47rem;
}

.star-btn[data-size="xl"] {
  --star-pad: 1rem 1.28rem;
  --star-font: 0.97rem;
  --star-icon: 19px;
  --star-gap: 0.55rem;
}

.star-slot {
  display: inline-flex;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 1.5rem 4.8rem;
}

.eyebrow {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 16%, transparent);
  vertical-align: 0.08em;
}

.hero h1 {
  max-width: 11ch;
  margin: 0.9rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(3.9rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-lede {
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.68;
}

.score-form {
  margin-top: 2.1rem;
  padding: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.score-form > label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.repo-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.32rem 0.32rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.repo-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 13%, transparent);
}

.repo-input > span {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.repo-input input {
  min-width: 0;
  flex: 1;
  padding: 0.62rem 0.35rem;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  outline: none;
}

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

.repo-input button {
  flex-shrink: 0;
  padding: 0.72rem 1rem;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.repo-input button:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.example-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.example-row > span {
  margin-right: 0.15rem;
  color: var(--faint);
  font-size: 0.65rem;
}

.example {
  padding: 0.24rem 0.43rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.example:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.form-note {
  margin-top: 0.7rem;
  color: var(--faint);
  font-size: 0.64rem;
  line-height: 1.5;
}

.hero-star-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.hero-star-row > span:last-child,
.how-support > span:last-child {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.how-support {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* ---------- Route card ---------- */
.route-card {
  position: relative;
  padding: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.15rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.mono {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-head .mono {
  color: var(--blue);
}

.route-badge {
  padding: 0.2rem 0.4rem;
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.52rem;
}

.ticket {
  position: relative;
  margin: 1.1rem 0.25rem 1.1rem;
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--blue);
  transform: rotate(-1.4deg);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ticket::before {
  left: -8px;
}

.ticket::after {
  right: -8px;
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--faint);
}

.ticket-state {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 600;
}

.ticket-state span {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.ticket h2 {
  margin: 0.75rem 0 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.label {
  padding: 0.22rem 0.4rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.3;
}

.label--green {
  background: var(--green-soft);
  color: var(--green);
}

.label--amber {
  background: #fbefd2;
  color: #8a5f09;
}

.ticket > p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.52rem;
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  list-style: none;
  padding: 0 0.15rem;
}

.route-steps li {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.route-steps li > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.54rem;
}

.route-steps strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.route-steps p {
  margin-top: 0.12rem;
  color: var(--faint);
  font-size: 0.61rem;
  line-height: 1.4;
}

/* ---------- Shared section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.62fr);
  align-items: end;
  gap: 2.5rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin-top: 0.45rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.section-head h2 em {
  color: var(--blue);
  font-style: normal;
}

.section-note {
  max-width: 50ch;
  padding-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.62;
}

.section-head--wide {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
}

/* ---------- Score section ---------- */
.score-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.loading-orbit {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 2px dashed var(--blue);
  border-radius: 50%;
  animation: orbit 2.8s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.loading-card p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.error-card {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--line));
  border-radius: var(--radius-sm);
}

.error-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.error-card > p:not(.eyebrow) {
  max-width: 65ch;
  color: var(--muted);
  font-size: 0.8rem;
}

.error-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
}

/* ---------- Empty state ---------- */
.score-empty {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 2.5rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-copy h3 {
  margin: 0.45rem 0 0.6rem;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.empty-copy h3 em {
  color: var(--blue);
  font-style: normal;
}

.empty-copy > p:not(.eyebrow) {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.6;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.4rem;
  list-style: none;
}

.signal-list li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.signal-list li > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.signal-list strong {
  display: block;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.signal-list p {
  margin-top: 0.1rem;
  color: var(--faint);
  font-size: 0.66rem;
  line-height: 1.45;
}

/* ---------- Report ---------- */
.repo-report {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.report-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(200px, 0.75fr);
  align-items: center;
  gap: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.repo-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.repo-id img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

.repo-id h3 {
  margin-top: 0.15rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.repo-id a {
  display: inline-flex;
  gap: 0.22rem;
  margin-top: 0.25rem;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.6rem;
  overflow-wrap: anywhere;
}

.score-dial {
  --dial-color: var(--green);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  background: conic-gradient(var(--dial-color) calc(var(--score) * 1%), var(--line) 0);
  border-radius: 50%;
}

.score-dial::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--card);
  border-radius: 50%;
}

.score-dial span,
.score-dial small {
  position: relative;
  z-index: 1;
}

.score-dial span {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.score-dial small {
  margin-top: 0.15rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.52rem;
}

.score-dial[data-band="ok"] {
  --dial-color: var(--blue);
}

.score-dial[data-band="careful"] {
  --dial-color: var(--amber);
}

.score-dial[data-band="weak"] {
  --dial-color: var(--orange);
}

.verdict {
  min-width: 0;
}

.verdict-pill {
  display: inline-flex;
  padding: 0.26rem 0.5rem;
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
}

.verdict-pill[data-band="ok"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.verdict-pill[data-band="careful"] {
  background: #fbefd2;
  color: #8a5f09;
}

.verdict-pill[data-band="weak"] {
  background: var(--orange-soft);
  color: var(--orange);
}

.verdict > p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.report-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button--dark:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
}

.button--blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.button--blue:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button--small {
  padding: 0.5rem 0.7rem;
  font-size: 0.68rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
}

.text-link span {
  color: var(--blue);
}

.text-link:hover {
  border-color: var(--blue);
}

.repo-description {
  max-width: 82ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.repo-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.95rem;
  margin-top: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.repo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1.6rem;
  padding-top: 1.4rem;
}

.breakdown,
.starter-issues {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.panel-head h4 {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.panel-head .mono {
  color: var(--faint);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.breakdown-list {
  list-style: none;
}

.breakdown-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.breakdown-item:last-child {
  border-bottom: 0;
}

.breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.breakdown-row strong {
  font-size: 0.76rem;
  font-weight: 600;
}

.breakdown-row .mono {
  flex-shrink: 0;
  color: var(--faint);
  font-size: 0.56rem;
  letter-spacing: 0;
}

.mini-track {
  height: 5px;
  margin: 0.4rem 0 0.3rem;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 999px;
}

.mini-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #6f83ee);
  border-radius: inherit;
}

.breakdown-item p {
  color: var(--faint);
  font-size: 0.64rem;
  line-height: 1.4;
}

.issue-list {
  display: grid;
  gap: 0.5rem;
}

.issue-card {
  display: block;
  padding: 0.7rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.issue-card:hover {
  background: var(--white);
  border-color: var(--blue);
  transform: translateX(2px);
}

.issue-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--faint);
  font-size: 0.56rem;
}

.issue-meta .mono {
  color: var(--blue);
  font-size: 0.56rem;
  letter-spacing: 0;
}

.issue-card h5 {
  margin-top: 0.28rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.issue-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.4rem;
}

.mini-label {
  padding: 0.16rem 0.32rem;
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.3;
}

.mini-label--muted {
  background: var(--paper-deep);
  color: var(--faint);
}

.panel-empty,
.panel-note {
  padding: 0.8rem;
  background: var(--paper);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.panel-note {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--faint);
}

.checklist {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.checklist ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
}

.checklist li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-number {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.54rem;
}

.checklist li a {
  color: var(--ink);
  font-size: 0.66rem;
  line-height: 1.45;
}

.checklist li a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Board ---------- */
.board-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 2rem;
}

.board-form {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  padding: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.board-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 150px;
}

.board-field--grow {
  flex: 1;
}

.board-field label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-field input,
.board-field select {
  width: 100%;
  padding: 0.58rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.75rem;
  outline: none;
}

.board-field input:focus,
.board-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
}

.board-form .button {
  flex-shrink: 0;
}

.board-note {
  margin: 0.6rem 0.15rem 1.4rem;
  color: var(--faint);
  font-size: 0.64rem;
}

.board-loading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.board-loading .loading-orbit {
  width: 24px;
  height: 24px;
}

.board-error {
  padding: 0.8rem 1rem;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  border-radius: 8px;
  color: var(--orange);
  font-size: 0.74rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.board-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.board-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.board-card-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.board-card-top img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--paper-deep);
}

.board-card-top h3 {
  font-family: var(--display);
  font-size: 0.88rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.board-card-top a:hover {
  color: var(--blue);
}

.board-meta {
  margin-top: 0.2rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.4;
}

.board-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.board-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.55rem;
}

.topic {
  padding: 0.16rem 0.32rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.5rem;
}

.board-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.board-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- How ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  width: 100%;
  max-width: 1280px;
  margin: 5rem auto 0;
  padding: clamp(3.5rem, 6vw, 5rem) 1.5rem;
  background: var(--blue);
  color: var(--white);
}

.how-copy .eyebrow {
  color: #ffd166;
}

.how-copy h2 {
  margin: 0.55rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.how-copy h2 em {
  color: #ffd166;
  font-style: normal;
}

.how-copy > p:not(.eyebrow) {
  max-width: 44ch;
  margin-bottom: 0.9rem;
  color: rgba(251, 250, 245, 0.72);
  font-size: 0.8rem;
  line-height: 1.65;
}

.how-copy code {
  background: rgba(251, 250, 245, 0.12);
  color: var(--white);
}

.how .text-link {
  margin-top: 0.6rem;
  border-color: rgba(251, 250, 245, 0.4);
  color: var(--white);
}

.how .text-link span {
  color: #ffd166;
}

.how-steps {
  list-style: none;
  border-top: 1px solid rgba(251, 250, 245, 0.25);
}

.how-steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(251, 250, 245, 0.25);
}

.how-steps li > span {
  color: #ffd166;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.how-steps h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.how-steps p {
  max-width: 52ch;
  margin-top: 0.2rem;
  color: rgba(251, 250, 245, 0.7);
  font-size: 0.74rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1.5rem;
}

.footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 4rem;
}

.footer-cta .eyebrow {
  color: #ffd166;
}

.footer-cta h2 {
  margin: 0.6rem 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  font-weight: 700;
  line-height: 0.87;
  letter-spacing: -0.065em;
}

.footer-cta h2 em {
  color: #ffd166;
  font-style: normal;
}

.footer-cta p:not(.eyebrow) {
  max-width: 46ch;
  color: rgba(251, 250, 245, 0.58);
  font-size: 0.8rem;
}

.footer .star-btn {
  background: transparent;
  border-color: rgba(251, 250, 245, 0.28);
  color: var(--white);
}

.footer .star-btn:hover {
  background: rgba(255, 209, 102, 0.1);
  border-color: #ffd166;
}

.footer .star-icon {
  color: #ffd166;
}

.footer .star-count {
  border-color: rgba(251, 250, 245, 0.2);
  color: rgba(251, 250, 245, 0.55);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(251, 250, 245, 0.16);
  color: rgba(251, 250, 245, 0.46);
  font-size: 0.64rem;
}

.footer-bottom a {
  border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
  color: var(--white);
  border-color: rgba(251, 250, 245, 0.4);
}

.footer-bottom nav {
  display: flex;
  gap: 1rem;
}

.star-slot--tiny {
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 2.5rem;
  }

  .topnav {
    gap: 1rem;
  }

  .report-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .verdict {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 900px) {
  .topnav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 14vw, 6.2rem);
  }

  .route-card {
    max-width: 560px;
  }

  .section-head,
  .section-head--wide {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-note {
    max-width: 62ch;
  }

  .score-empty {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .report-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .board-form {
    flex-wrap: wrap;
  }

  .board-field--grow {
    flex-basis: 100%;
  }

  .board-field {
    flex: 1;
  }

  .board-form .button {
    flex: 1;
  }

  .how {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.8rem 1rem;
  }

  .topbar::after {
    right: 1rem;
    left: 1rem;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .cli-link {
    display: none;
  }

  .hero {
    padding: 2.5rem 1rem 3.2rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-lede {
    font-size: 0.87rem;
  }

  .score-form {
    padding: 0.8rem;
  }

  .repo-input {
    flex-wrap: wrap;
    padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  }

  .repo-input > span {
    align-self: center;
  }

  .repo-input input {
    flex-basis: calc(100% - 6.6rem);
    padding: 0.35rem;
  }

  .repo-input button {
    width: 100%;
    margin-top: 0.4rem;
  }

  .route-card {
    padding: 0.8rem;
  }

  .ticket {
    margin: 0.9rem 0.15rem;
    padding: 0.9rem;
    box-shadow: 4px 4px 0 var(--blue);
  }

  .route-steps {
    gap: 0.4rem;
  }

  .score-section,
  .board-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .score-empty,
  .repo-report {
    padding: 1rem;
  }

  .signal-list {
    grid-template-columns: 1fr;
  }

  .report-top {
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
  }

  .repo-id {
    align-items: flex-start;
  }

  .repo-id img {
    width: 48px;
    height: 48px;
  }

  .score-dial {
    width: 84px;
    height: 84px;
  }

  .score-dial span {
    font-size: 1.55rem;
  }

  .verdict {
    grid-column: 1 / -1;
  }

  .checklist ol {
    grid-template-columns: 1fr;
  }

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

  .board-form {
    padding: 0.65rem;
  }

  .board-field {
    flex-basis: 100%;
  }

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

  .how {
    margin-top: 3.5rem;
    padding: 3rem 1rem;
  }

  .footer-inner {
    padding: 3.2rem 1rem 1.2rem;
  }

  .footer-cta {
    padding-bottom: 2.8rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 0.6rem;
  }

  .footer-bottom p {
    width: 100%;
  }

  .footer-bottom .star-slot {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 3rem;
  }

  .score-form > label {
    font-size: 0.52rem;
  }

  .route-steps {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
