:root {
  color-scheme: dark;
  --bg: #101214;
  --bg-soft: #171a1d;
  --surface: #f7f4ee;
  --surface-strong: #ffffff;
  --ink: #101214;
  --muted: #61666d;
  --line: rgba(16, 18, 20, 0.12);
  --dark-line: rgba(255, 255, 255, 0.14);
  --green: #1ee6a8;
  --blue: #2fb8ff;
  --pink: #ff4f91;
  --yellow: #ffd166;
  --orange: #ff8a3d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0, transparent 42rem);
}

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

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

button {
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--green);
  border-radius: 6px;
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  color: #fff;
  background: rgba(16, 18, 20, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  min-width: max-content;
  font-weight: 760;
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 230, 168, 0.95) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 6px, rgba(255, 255, 255, 0.22) 6px 7px),
    conic-gradient(from -42deg, rgba(30, 230, 168, 0.78) 0 34deg, rgba(47, 184, 255, 0.26) 34deg 58deg, transparent 58deg 360deg),
    #101214;
  border: 1px solid rgba(30, 230, 168, 0.72);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 22px rgba(30, 230, 168, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 5px;
  border: 1px solid rgba(47, 184, 255, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(47, 184, 255, 0.36) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(47, 184, 255, 0.36) 50%, transparent calc(50% + 0.5px));
}

.brand-mark::after {
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 230, 168, 1), rgba(30, 230, 168, 0));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(30, 230, 168, 0.8);
  transform: rotate(-34deg);
  transform-origin: left center;
}

.brand-mark span {
  position: absolute;
  z-index: 1;
  display: block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 9px currentColor;
}

.brand-mark span:nth-child(1) {
  top: 9px;
  left: 21px;
  color: var(--green);
}

.brand-mark span:nth-child(2) {
  top: 21px;
  left: 11px;
  color: var(--blue);
  background: var(--blue);
}

.brand-mark span:nth-child(3) {
  top: 24px;
  left: 24px;
  color: var(--pink);
  background: var(--pink);
}

.nav-links,
.site-footer nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.nav-links a,
.site-footer nav a {
  padding: 0.6rem 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 4rem;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 5rem 0 7rem;
  color: #fff;
}

.hero::before {
  position: absolute;
  top: -72px;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  content: "";
  background:
    radial-gradient(circle at 16% 8%, rgba(30, 230, 168, 0.2), transparent 26rem),
    radial-gradient(circle at 84% 18%, rgba(47, 184, 255, 0.14), transparent 22rem),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #101214;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  transform: translateX(-50%);
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1.4rem;
  font-size: 4.8rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 58ch;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.1rem;
  font-weight: 760;
  border-radius: 8px;
}

.button.primary {
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 12px 34px rgba(30, 230, 168, 0.28);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button:hover,
.button:focus-visible,
.plugin-toggle:hover,
.plugin-toggle:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.hero-stats div {
  padding: 1rem 1.1rem 1rem 0;
}

.hero-stats div + div {
  padding-left: 1.1rem;
  border-left: 1px solid var(--dark-line);
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 72px rgba(0, 0, 0, 0.34));
}

.hero-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.4;
}

.hero-shape-a,
.hero-shape-b {
  transform-origin: center;
  animation: breathe 5.6s ease-in-out infinite;
}

.hero-shape-a {
  fill: rgba(30, 230, 168, 0.13);
  stroke: url("#heroPulse");
  stroke-width: 4;
}

.hero-shape-b {
  fill: rgba(47, 184, 255, 0.11);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2;
  animation-delay: -1.7s;
}

.hero-nodes circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 4;
}

.patch-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-linecap: round;
  stroke-width: 3;
}

.intro-band {
  color: var(--ink);
  background: var(--green);
}

.intro-band p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.35rem 0;
  font-size: 1.1rem;
  font-weight: 680;
  line-height: 1.55;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6.5rem 0 0;
}

.section-heading {
  display: block;
  max-width: 860px;
  margin-bottom: 2rem;
}

.section-heading .eyebrow {
  margin-bottom: 1rem;
  color: #0d9f74;
}

.section-heading h2 {
  margin-bottom: 1.15rem;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.method-heading h2 {
  max-width: 14ch;
}

.radar-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  overflow: hidden;
  color: #fff;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.radar-stage {
  position: relative;
  min-height: 640px;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 58% 48%, rgba(47, 184, 255, 0.16), transparent 18rem),
    #101214;
  background-size: 36px 36px, 36px 36px, auto, auto;
}

#radarChart {
  display: block;
  width: min(100%, 660px);
  height: auto;
  min-height: 520px;
  margin: 2.8rem auto 0;
}

.radar-grid-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.radar-label {
  fill: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 760;
}

.radar-tick {
  fill: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 700;
}

.radar-area {
  stroke-width: 3;
  transition: opacity 180ms ease;
}

.radar-dot {
  stroke: #101214;
  stroke-width: 2;
}

.chart-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 33ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: right;
}

.plugin-panel {
  padding: 1rem;
  background: #f7f4ee;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-heading {
  padding: 0.25rem 0 1rem;
  color: var(--ink);
}

.panel-heading .eyebrow {
  color: #0d9f74;
}

.panel-heading h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.plugin-toggles {
  display: grid;
  gap: 0.75rem;
}

.plugin-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  min-height: 112px;
  padding: 0.9rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.plugin-toggle.is-active {
  border-color: currentColor;
  box-shadow: 0 18px 36px rgba(16, 18, 20, 0.12);
}

.plugin-dot {
  width: 13px;
  height: 13px;
  margin-top: 0.25rem;
  border-radius: 999px;
}

.plugin-name {
  display: block;
  margin-bottom: 0.28rem;
  font-weight: 820;
  line-height: 1.15;
}

.plugin-meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.plugin-score {
  font-size: 1.45rem;
  font-weight: 840;
  line-height: 1;
}

.criteria-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.criteria-grid article,
.insight-grid article {
  min-height: 210px;
  padding: 1.35rem;
  background: var(--surface-strong);
}

.criterion-index,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 1.2rem;
  color: #0a7a5a;
  font-size: 0.82rem;
  font-weight: 820;
}

.criteria-grid h3,
.insight-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.criteria-grid p,
.insight-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.score-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.score-table caption {
  padding: 1rem 1.1rem;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.score-table th,
.score-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.score-table thead th {
  color: #fff;
  font-size: 0.86rem;
  background: var(--bg);
}

.score-table tbody tr:last-child th,
.score-table tbody tr:last-child td {
  border-bottom: 0;
}

.score-table tbody tr:hover {
  background: rgba(30, 230, 168, 0.08);
}

.insight-grid article:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.insight-grid article:nth-child(2) {
  border-top: 4px solid var(--green);
}

.insight-grid article:nth-child(3) {
  border-top: 4px solid var(--pink);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  padding: 1.1rem 1.2rem;
  font-weight: 780;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 6.5rem auto 0;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--ink);
}

.site-footer p {
  max-width: 48ch;
  margin: 0.75rem 0 0;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--ink);
  outline: 0;
}

.site-footer nav a {
  color: var(--muted);
}

.nav-form {
  margin: 0;
}

.nav-form button {
  min-height: 0;
  padding: 0.6rem 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  background: transparent;
  border-radius: 6px;
}

.nav-form button:hover,
.nav-form button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--green);
  border-radius: 8px;
}

.flash.warning {
  background: var(--yellow);
}

.page-section {
  min-height: 52vh;
}

.page-title {
  max-width: 14ch;
  margin-bottom: 0;
  color: inherit;
  font-size: 4rem;
  line-height: 0.98;
}

.review-header {
  max-width: 920px;
  margin-bottom: 2rem;
}

.review-header .eyebrow {
  margin-bottom: 1.1rem;
  color: #0d9f74;
}

.review-header .page-title {
  max-width: 16ch;
  margin-bottom: 1.35rem;
}

.review-intro {
  display: grid;
  gap: 0.72rem;
  max-width: 820px;
}

.review-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.lede-block {
  max-width: 78ch;
  margin: -0.5rem 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.comparison-card {
  min-height: 250px;
  padding: 1.25rem;
  background: #fff;
}

.comparison-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  line-height: 1.16;
}

.comparison-card h3 a:hover,
.comparison-card h3 a:focus-visible {
  text-decoration: underline;
  outline: 0;
}

.comparison-card p {
  color: var(--muted);
  line-height: 1.58;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-meta span {
  padding: 0.35rem 0.55rem;
  background: rgba(16, 18, 20, 0.06);
  border-radius: 999px;
}

.form-shell {
  width: min(720px, 100%);
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 18, 20, 0.08);
}

.wide-form {
  width: 100%;
}

.auth-form {
  margin: 0 auto;
}

.form-shell form,
.form-shell {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 760;
}

.field input,
.field textarea,
.field select,
.admin-edit-row input,
.admin-edit-row textarea,
.compact-inputs input,
.compact-inputs textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.72rem 0.78rem;
  color: var(--ink);
  caret-color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
}

.field textarea,
.admin-edit-row textarea,
.compact-inputs textarea {
  line-height: 1.5;
  resize: vertical;
}

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

.empty-state {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-table-wrap {
  overflow-x: auto;
}

.compact-inputs {
  min-width: 780px;
}

.compact-inputs input,
.compact-inputs textarea {
  min-width: 82px;
  padding: 0.55rem;
}

.compact-inputs textarea {
  min-height: 54px;
}

.compact-inputs input:focus,
.compact-inputs textarea:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(16, 18, 20, 0.34);
  outline: 2px solid rgba(30, 230, 168, 0.32);
  outline-offset: 1px;
}

.spaced {
  margin-top: 1.25rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.55rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 820;
  background: var(--yellow);
  border-radius: 999px;
}

.status-pill.approved {
  background: var(--green);
}

.status-pill.rejected {
  color: #fff;
  background: var(--pink);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

.admin-stats article {
  display: grid;
  gap: 0.4rem;
  min-height: 130px;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
}

.admin-stats strong {
  font-size: 2.2rem;
  line-height: 1;
}

.admin-stats span {
  color: var(--muted);
}

.admin-actions {
  margin-top: 1.4rem;
}

.admin-actions .button,
.admin-actions .button.secondary {
  color: var(--ink);
  background: var(--green);
  border: 1px solid transparent;
  box-shadow: 0 12px 34px rgba(30, 230, 168, 0.28);
}

.button.mini {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  color: var(--ink);
  background: var(--green);
  border: 1px solid transparent;
}

.button.mini.danger {
  color: #fff;
  background: var(--pink);
}

.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.action-cell form {
  margin: 0;
}

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

.admin-edit-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(200px, 0.65fr) minmax(110px, 0.25fr) minmax(260px, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.criterion-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.criterion-slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.criterion-slot {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.criterion-slot input {
  width: 100%;
}

.criterion-editor {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-field {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.mini-field input,
.mini-field textarea,
.ranking-edit-table input,
.ranking-edit-table textarea {
  width: 100%;
}

.ranking-edit-table {
  min-width: 1180px;
}

.ranking-edit-table th,
.ranking-edit-table td {
  vertical-align: top;
}

.plugin-order-row {
  transition:
    opacity 140ms ease,
    background 140ms ease;
}

.plugin-order-row.is-dragging {
  opacity: 0.48;
  background: rgba(30, 230, 168, 0.12);
}

.plugin-order-cell {
  min-width: 42px;
  text-align: center;
}

.drag-handle {
  display: inline-grid;
  grid-template-columns: repeat(2, 4px);
  gap: 4px 5px;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-height: 34px;
  padding: 0;
  color: var(--ink);
  cursor: grab;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.drag-handle span {
  width: 4px;
  height: 4px;
  background: rgba(16, 18, 20, 0.42);
  border-radius: 999px;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  background: rgba(16, 18, 20, 0.06);
  border-color: var(--line);
  outline: 0;
}

.drag-handle:hover span,
.drag-handle:focus-visible span {
  background: rgba(16, 18, 20, 0.74);
}

.drag-handle:active {
  cursor: grabbing;
}

.plugin-main-cell {
  min-width: 190px;
}

.plugin-meta-cell {
  min-width: 180px;
}

.plugin-copy-cell {
  min-width: 260px;
}

.score-heading {
  min-width: 88px;
}

.score-cell {
  text-align: center;
}

.score-input {
  max-width: 78px;
  text-align: center;
}

.tiny-input {
  max-width: 72px;
}

.histogram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.histogram-card {
  padding: 1rem;
  background: #fff;
}

.histogram-card h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.histogram {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  min-height: 110px;
}

.histogram-bar {
  position: relative;
  display: block;
  min-height: 8px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  border-radius: 5px 5px 0 0;
}

.histogram-bar b {
  position: absolute;
  right: 50%;
  bottom: -1.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  transform: translateX(50%);
}

.email-list {
  display: grid;
  gap: 1rem;
}

.email-card {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-card pre,
.score-table pre {
  max-width: 44ch;
  overflow-x: auto;
  white-space: pre-wrap;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
    padding-block: 1rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding: 3rem 0 5rem;
  }

  h1 {
    max-width: 12ch;
    font-size: 3.7rem;
  }

  .hero-visual {
    min-height: 0;
  }

  .radar-workbench {
    grid-template-columns: 1fr;
  }

  .plugin-panel {
    border-top: 1px solid rgba(16, 18, 20, 0.12);
    border-left: 0;
  }

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

  .criteria-grid,
  .insight-grid,
  .comparison-grid,
  .histogram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .nav-links a {
    padding-inline: 0.6rem;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    max-width: 11ch;
    font-size: 3rem;
  }

  .page-title {
    max-width: 12ch;
    font-size: 2.85rem;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .hero-stats div + div {
    padding: 0.95rem 0;
    border-left: 0;
  }

  .hero-stats div + div {
    border-top: 1px solid var(--dark-line);
  }

  .section {
    padding-top: 4.6rem;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .radar-stage {
    min-height: 530px;
    padding: 0.75rem;
  }

  #radarChart {
    min-height: 360px;
    margin-top: 0;
  }

  .radar-label {
    font-size: 12px;
  }

  .chart-note {
    position: static;
    max-width: none;
    margin-top: -0.75rem;
    text-align: left;
  }

  .plugin-toggles,
  .criterion-slot-grid,
  .criteria-grid,
  .insight-grid,
  .comparison-grid,
  .histogram-grid,
  .admin-stats,
  .admin-edit-row {
    grid-template-columns: 1fr;
  }

  .criteria-grid article,
  .insight-grid article {
    min-height: 0;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
