.prompt-page {
  background: var(--canvas);
}
.prompt-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.prompt-main {
  min-height: 100vh;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--canvas)) 0, color-mix(in srgb, var(--accent) 4%, var(--canvas)) 360px, var(--canvas) 720px);
}
.prompt-hero {
  padding-block: clamp(48px, 6vw, 80px) clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.prompt-hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.prompt-hero-copy {
  max-width: 70ch;
  margin-top: 20px;
  color: var(--body-ink);
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
}
.prompt-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.prompt-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px var(--body);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.prompt-jump a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.prompt-alpha {
  margin-block: 48px 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: inset 0 3px 0 var(--accent);
}
.prompt-alpha-results {
  padding: 36px;
  background: color-mix(in srgb, var(--accent) 2.5%, var(--paper));
}
.prompt-alpha h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.23;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.prompt-alpha-method {
  padding-inline: 36px;
  border-top: 1px solid var(--line);
}
.prompt-alpha-method summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  color: var(--ink);
  font: 650 16px var(--display);
  cursor: pointer;
  list-style: none;
}
.prompt-alpha-method summary::-webkit-details-marker { display: none; }
.prompt-alpha-method summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.prompt-alpha-method[open] summary {
  border-bottom: 1px solid var(--line);
}
.prompt-alpha-method[open] summary::after { transform: rotate(225deg); }
.prompt-alpha-method-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px 36px;
  padding-block: 24px 30px;
}
.prompt-alpha math {
  margin: 0;
  color: var(--ink);
  font-family:
    "STIX Two Math", "Cambria Math", "Latin Modern Math", "Times New Roman",
    serif;
  font-size: 36px;
}
.prompt-alpha-definitions {
  margin: 0;
  border-top: 1px solid var(--line);
}
.prompt-alpha-definitions > div {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.prompt-alpha-definitions dt {
  color: var(--accent);
  font: 600 13px var(--mono);
}
.prompt-alpha-definitions dd {
  margin: 0;
  color: var(--body-ink);
  font-size: 16px;
  line-height: 1.55;
}
.prompt-alpha-reference {
  grid-column: 1 / -1;
  max-width: 75ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.prompt-alpha-reference a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.prompt-alpha-result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 24px;
}
.prompt-alpha-result-head p {
  max-width: 58ch;
  margin-top: 9px;
  color: var(--body-ink);
  font-size: 16px;
  line-height: 1.5;
}
.prompt-dimension-picker {
  flex: none;
  width: 240px;
}
.prompt-dimension-picker select,
.prompt-model-picker select { font-size: 16px; }
.agreement-scroll-hint {
  display: none;
  margin-bottom: 10px;
  color: var(--muted);
  font: 12px var(--mono);
}
.agreement-matrix {
  max-width: 100%;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}
.agreement-table {
  width: 100%;
  min-width: 670px;
  border-collapse: separate;
  border-spacing: 6px;
}
.agreement-table th,
.agreement-table td {
  padding: 14px 10px;
  text-align: center;
  line-height: 1.35;
}
.agreement-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 168px;
  text-align: left;
  background: var(--paper);
}
.agreement-table thead th {
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
}
.agreement-rater-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.judge-mark {
  display: block;
  flex: none;
  object-fit: contain;
}
.agreement-groups th {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.agreement-table tbody th {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.agreement-table td {
  border-radius: 5px;
  color: var(--ink);
  font: 600 18px var(--mono);
  font-variant-numeric: tabular-nums;
}
.agreement-table td.agreement-reliable {
  background: color-mix(in srgb, var(--accent) 23%, var(--paper));
}
.agreement-table td.agreement-tentative {
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
.agreement-table td.agreement-low { background: var(--surface); }
.agreement-table td.agreement-self { color: var(--muted); }
.prompt-alpha-thresholds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
  color: var(--muted);
  font: 12px var(--mono);
}
.prompt-alpha-thresholds span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 1px solid var(--accent-border);
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
.prompt-alpha-thresholds span:last-child::before {
  background: color-mix(in srgb, var(--accent) 23%, var(--paper));
}
.prompt-library {
  padding-bottom: 88px;
}
.prompt-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.prompt-library h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.23;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.prompt-model-picker {
  flex: none;
  width: min(100%, 340px);
  margin: 0;
}
.prompt-model-select {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.prompt-model-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}
:root[data-theme="dark"] .prompt-model-icon.is-monochrome,
:root[data-theme="dark"] .judge-mark.is-monochrome { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .prompt-model-icon.is-monochrome,
  :root:not([data-theme="light"]) .judge-mark.is-monochrome { filter: invert(1); }
}
.prompt-copy {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--body-ink);
  font: 500 13px var(--body);
}
.prompt-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.prompt-card {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.prompt-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 17px 22px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}
.prompt-card summary:hover { background: var(--surface); }
.prompt-card[open] summary { border-bottom: 1px solid var(--line); }
.prompt-card summary::-webkit-details-marker {
  display: none;
}
.prompt-card summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.prompt-card[open] summary::after { transform: rotate(225deg); }
.prompt-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 650 20px/1.35 var(--display);
  overflow-wrap: anywhere;
}
.prompt-line-count {
  color: var(--muted);
  font: 12px var(--mono);
}
.prompt-code-wrap { background: var(--surface); }
.prompt-code-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.prompt-code-wrap pre {
  max-height: 620px;
  overflow: auto;
  margin: 0;
  padding: 24px;
  color: var(--body-ink);
  font: 14px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
  scrollbar-color: var(--accent-border) transparent;
  scrollbar-width: thin;
}
.prompt-code-wrap pre:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.prompt-copy {
  min-height: 44px;
  min-width: 120px;
  padding: 9px 12px;
}
.prompt-footer {
  padding-block: 25px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.prompt-footer .section-wrap {
  color: var(--muted);
  font-size: 14px;
}
.prompt-footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 820px) {
  .prompt-hero { padding-top: 58px; }
  .prompt-library-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .prompt-hero { padding-block: 40px 34px; }
  .prompt-hero h1 {
    font-size: clamp(30px, 8.6vw, 42px);
    line-height: 1.14;
  }
  .prompt-hero-copy { font-size: 16px; line-height: 1.65; }
  .prompt-alpha h2,
  .prompt-library h2 { font-size: clamp(24px, 7vw, 30px); text-wrap: balance; }
  .prompt-alpha { margin-block: 40px 62px; }
  .prompt-alpha-results { padding: 24px 18px; }
  .prompt-alpha-result-head {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .prompt-dimension-picker { width: 100%; }
  .agreement-scroll-hint { display: block; }
  .agreement-table th:first-child { width: 132px; }
  .agreement-table td { font-size: 16px; }
  .prompt-alpha-method { padding-inline: 18px; }
  .prompt-alpha-method-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .prompt-alpha math { font-size: 32px; }
  .prompt-alpha-definitions > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .prompt-model-picker { width: 100%; }
  .prompt-card summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
  }
  .prompt-code-wrap pre { padding: 18px; }
  .prompt-jump a,
  .prompt-copy {
    min-height: 44px;
  }
}
