:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #fbfcfc;
  --surface-muted: #f5f8f6;
  --border: #dfe5e1;
  --border-strong: #cbd6cf;
  --text: #101411;
  --text-muted: #59615c;
  --text-faint: #7a837d;
  --primary: #10b981;
  --primary-hover: #0ca675;
  --primary-ink: #087a56;
  --primary-soft: #f3fcf8;
  --primary-pale: #eafaf3;
  --primary-border: #a9e4cf;
  --danger: #c33b38;
  --danger-soft: #fff5f4;
  --warning: #a76700;
  --warning-soft: #fff9eb;
  --brand-red: #e5383b;
  --brand-red-soft: #fff2f2;
  --page-gutter: 60px;
  --content-width: 1320px;
  --radius-card: 8px;
  --radius-control: 8px;
  --shadow-soft: 0 1px 2px rgb(16 20 17 / 4%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.68;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.shell {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  transform: translateY(-160%);
  color: #fff;
  border-radius: var(--radius-control);
  background: var(--text);
  transition: transform 160ms var(--ease-out);
}

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

.site-header {
  position: relative;
  z-index: 40;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 96%);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 72px), calc(var(--content-width) + 48px));
  height: 100%;
  margin-inline: auto;
  gap: 10px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-mark {
  width: 21px;
  height: 21px;
  color: var(--primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: 27px;
  gap: 24px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #3f4742;
  font-size: 14px;
  font-weight: 520;
  transition: color 160ms var(--ease-out);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: var(--primary);
  transition: transform 180ms var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-status {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  margin-left: auto;
  align-items: center;
  gap: 7px;
  color: var(--primary-ink);
  border: 1px solid #bcebd9;
  border-radius: var(--radius-control);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.header-status svg {
  width: 18px;
  height: 18px;
}

.header-status:hover {
  border-color: var(--primary-border);
  background: var(--primary-pale);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgb(13 189 131 / 10%);
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 7px;
  margin-left: auto;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  z-index: 35;
  inset: 72px 0 0;
  overflow-y: auto;
  background: #fff;
}

.mobile-menu nav {
  display: grid;
  padding: 0 18px 28px;
}

.mobile-menu a {
  display: flex;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid #edf0ee;
  color: #303733;
  font-size: 16px;
  font-weight: 600;
}

.mobile-menu a:first-child {
  border-top: 1px solid #edf0ee;
}

.hero-root {
  padding-top: 71px;
}

.eyebrow {
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.5;
}

.hero-root h1,
.detect-heading h1 {
  margin-top: 5px;
  font-size: 48px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-description {
  max-width: 820px;
  margin-top: 23px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.68;
}

.hero-actions,
.leaderboard-actions {
  display: flex;
  margin-top: 21px;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-width: 170px;
  min-height: 44px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:active,
.model-chip:active {
  transform: scale(0.97);
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 1px 1px rgb(0 0 0 / 3%);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button:focus-visible,
.model-chip:focus-visible,
.text-action:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(16 185 129 / 24%);
  outline-offset: 2px;
}

.stats-grid {
  display: grid;
  width: 920px;
  max-width: 100%;
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  display: flex;
  min-height: 88px;
  padding: 14px 24px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  color: #666f69;
  font-size: 13px;
  line-height: 1.5;
}

.stat-card strong {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.4;
}

.fairness-note {
  display: flex;
  min-height: 82px;
  margin-top: 18px;
  padding: 17px 20px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-left: 4px solid #9ea9a3;
  border-radius: var(--radius-card);
  background: #f8faf9;
  box-shadow: 0 2px 5px rgb(16 20 17 / 5%);
  font-size: 15px;
  line-height: 1.65;
}

.fairness-note strong {
  flex: 0 0 auto;
  font-weight: 760;
}

.feature-news {
  position: relative;
  min-height: 218px;
  padding: 24px 24px 66px;
  overflow: hidden;
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgb(13 189 131 / 9%), transparent 38%),
    #f6fffb;
}

.home-page .feature-news {
  margin-top: 38px;
}

.feature-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 760;
}

.feature-news h2 {
  margin-top: 7px;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.5;
}

.feature-copy {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-actions {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.model-chip {
  display: inline-flex;
  min-height: 40px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-control);
  background: var(--primary);
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}

.model-chip:hover {
  background: var(--primary-hover);
}

.feature-report-counts {
  position: absolute;
  right: 24px;
  bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #6a736d;
  font-size: 12px;
  white-space: nowrap;
}

.feature-report-counts strong {
  color: var(--text);
  font-weight: 750;
}

.feature-rank-link,
.text-action {
  color: var(--primary-ink);
  font-weight: 700;
}

.feature-rank-link:hover,
.text-action:hover {
  color: var(--primary-hover);
}

.evidence-section {
  margin-top: 52px;
}

.section-title {
  font-size: 30px;
  font-weight: 820;
  line-height: 1.3;
}

.section-description {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 16px;
}

.evidence-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.evidence-card {
  min-height: 132px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.evidence-card h3 {
  font-size: 20px;
  font-weight: 780;
  line-height: 1.4;
}

.evidence-card p {
  margin-top: 17px;
  color: var(--text-muted);
  font-size: 14px;
}

.home-ranking-cta {
  display: flex;
  min-height: 170px;
  padding: 30px 34px;
  margin-top: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(100deg, rgb(240 253 247 / 94%), rgb(250 255 253 / 96%)),
    #f5fcf9;
}

.home-ranking-cta h2 {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 820;
  line-height: 1.3;
}

.home-ranking-cta p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 15px;
}

.home-ranking-cta .button {
  flex: 0 0 auto;
}

.detect-page,
.leaderboard-page {
  padding-top: 58px;
}

.detect-page {
  width: min(calc(100% - (var(--page-gutter) * 2)), 920px);
}

.detect-heading {
  max-width: 920px;
}

.detect-heading h1 {
  font-size: 40px;
}

.detect-heading > p:last-child {
  max-width: 900px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.protocol-notice {
  max-width: 920px;
  padding: 15px 18px;
  margin-top: 22px;
  color: #46504a;
  border: 1px solid var(--border);
  border-left: 4px solid #9ea9a3;
  border-radius: var(--radius-card);
  background: #f8faf9;
  font-size: 14px;
  line-height: 1.7;
}

.protocol-notice strong {
  color: #303733;
}

.detect-card {
  width: 100%;
  padding: 30px;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 20px;
}

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

.detect-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.detect-field.is-full {
  grid-column: 1 / -1;
}

.detect-field > span {
  color: #343b37;
  font-size: 13px;
  font-weight: 720;
}

.detect-field input,
.detect-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid #d7ded9;
  border-radius: var(--radius-control);
  background-color: #fff;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.detect-field select {
  padding-right: 34px;
}

.detect-field input::placeholder {
  color: #9aa29d;
}

.detect-field input:focus,
.detect-field select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgb(16 185 129 / 12%);
}

.detect-field input.is-invalid,
.detect-field select.is-invalid {
  border-color: #e08a86;
  box-shadow: 0 0 0 3px rgb(195 59 56 / 10%);
}

.detect-field small {
  color: #77807a;
  font-size: 12px;
  line-height: 1.65;
}

.detect-field code {
  padding: 1px 4px;
  color: #4a554e;
  border-radius: 4px;
  background: #f3f6f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.form-errors {
  padding: 12px 14px;
  margin-top: 18px;
  color: var(--danger);
  border: 1px solid #efc4c1;
  border-radius: var(--radius-control);
  background: var(--danger-soft);
  font-size: 13px;
  line-height: 1.65;
}

.form-errors p + p {
  margin-top: 3px;
}

.detect-form-footer {
  display: grid;
  margin-top: 24px;
  gap: 12px;
}

.detect-form-footer p {
  color: #77807a;
  font-size: 12px;
}

.detect-submit {
  width: 100%;
}

.detection-live {
  padding: 20px;
  margin-top: 22px;
  border: 1px solid #bdebd9;
  border-radius: var(--radius-control);
  background: var(--primary-soft);
}

.detection-live.is-error {
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.detection-live.is-pending {
  border-color: #ead39f;
  background: var(--warning-soft);
}

.detection-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detection-live-head p {
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 750;
}

.detection-live.is-error .detection-live-head p {
  color: var(--danger);
}

.detection-live.is-pending .detection-live-head p {
  color: var(--warning);
}

.detection-live h2 {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 790;
  line-height: 1.4;
}

.detection-live-head > strong {
  flex: 0 0 auto;
  color: var(--primary-ink);
  font-size: 28px;
  font-weight: 840;
  line-height: 1.2;
}

.detection-live-message {
  margin-top: 8px;
  color: #4b554f;
  font-size: 14px;
}

.detection-live-meta {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.detection-live-meta span {
  padding: 4px 8px;
  color: #52605a;
  border: 1px solid #d7e7df;
  border-radius: 5px;
  background: rgb(255 255 255 / 72%);
  font-size: 11px;
  font-weight: 620;
}

.detection-checks {
  display: grid;
  padding: 0;
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.detection-checks li {
  display: flex;
  min-height: 38px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce8e2;
  border-radius: 6px;
  background: rgb(255 255 255 / 72%);
  font-size: 12px;
}

.detection-checks strong {
  color: #344039;
  font-weight: 680;
}

.detection-checks span {
  color: #6b756f;
  white-space: nowrap;
}

.info-card {
  width: 100%;
  padding: 24px 28px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.info-card h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.check-copy-grid {
  display: grid;
  margin-top: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.check-copy-grid ul {
  padding-left: 20px;
  color: #3e4742;
  font-size: 14px;
  line-height: 1.9;
}

.info-card > p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.75;
}

.records-card {
  margin-top: 24px;
  scroll-margin-top: 20px;
}

.section-card-head {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-card-head h2 {
  font-size: 25px;
  font-weight: 810;
  line-height: 1.35;
}

.section-card-head p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.section-card-head a {
  white-space: nowrap;
}

.table-count {
  flex: 0 0 auto;
  color: #66706a;
  font-size: 13px;
}

.data-table-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #edf0ee;
}

.data-table th {
  color: #737c76;
  background: #fafcfb;
  font-size: 12px;
  font-weight: 680;
}

.data-table td {
  color: #434b46;
  font-size: 13px;
}

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

.data-table tbody tr:hover {
  background: #fbfdfc;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  width: 31%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 28%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  width: 18%;
}

.data-table th:nth-child(4),
.data-table td:nth-child(4) {
  width: 23%;
}

.leaderboard-table th:nth-child(1),
.leaderboard-table td:nth-child(1) {
  width: 8%;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
  width: 25%;
}

.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
  width: 21%;
}

.leaderboard-table th:nth-child(4),
.leaderboard-table td:nth-child(4) {
  width: 14%;
}

.leaderboard-table th:nth-child(5),
.leaderboard-table td:nth-child(5) {
  width: 11%;
}

.leaderboard-table th:nth-child(6),
.leaderboard-table td:nth-child(6) {
  width: 21%;
}

.mono-cell {
  overflow-wrap: anywhere;
  color: #26312a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 680;
}

.model-cell {
  display: block;
  overflow: hidden;
  color: #313a35;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table td small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: #8a938d;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table time {
  color: #525c56;
  font-size: 12px;
  white-space: nowrap;
}

.score-cell {
  display: inline-flex;
  min-width: 68px;
  min-height: 26px;
  padding: 2px 9px;
  align-items: center;
  justify-content: center;
  color: #087a56;
  border: 1px solid #b9ead8;
  border-radius: 5px;
  background: #effbf6;
  font-weight: 720;
}

.score-cell.is-failed {
  color: var(--danger);
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.score-cell.is-pending {
  color: var(--warning);
  border-color: #ead39f;
  background: var(--warning-soft);
}

.rank-cell {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--primary-ink);
  border: 1px solid #b9ead8;
  border-radius: 50%;
  background: #effbf6;
  font-size: 12px;
  font-weight: 780;
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.empty-state strong {
  display: block;
  font-size: 16px;
  font-weight: 720;
}

.empty-state p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
}

.leaderboard-page .detect-heading {
  max-width: 840px;
}

.leaderboard-actions {
  margin-bottom: 30px;
}

.leaderboard-actions .button {
  min-width: 140px;
  min-height: 40px;
  font-size: 14px;
}

.result-page {
  padding-top: 46px;
}

.result-hero {
  padding-bottom: 28px;
}

.result-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
}

.result-heading h1 {
  max-width: 920px;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.result-heading h1 span {
  font-weight: 780;
}

.result-tags {
  display: flex;
  margin-top: 11px;
  flex-wrap: wrap;
  gap: 6px;
}

.result-tags > span {
  display: inline-flex;
  min-height: 24px;
  padding: 2px 8px;
  align-items: center;
  color: #2e3d36;
  border: 1px solid #cfe8dc;
  border-radius: 5px;
  background: #f5fbf8;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.4;
}

.result-tags .result-status.is-pending {
  color: #80601e;
  border-color: #ead39f;
  background: var(--warning-soft);
}

.result-tags .result-status.is-failed {
  color: var(--danger);
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.result-tags .result-status.is-complete {
  color: var(--primary-ink);
  border-color: #bcebd9;
  background: var(--primary-soft);
}

.result-actions {
  display: flex;
  padding-top: 3px;
  gap: 8px;
}

.result-actions .button {
  min-width: 112px;
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.result-actions svg {
  width: 18px;
  height: 18px;
  margin-right: 7px;
}

.result-archive-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 650;
}

.result-archive-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-meta {
  margin-top: 20px;
  color: #505a54;
  font-size: 12px;
  line-height: 1.9;
}

.result-meta strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
}

.result-meta code,
.result-notice code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f3f6f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

.result-notice {
  padding: 19px 22px;
  margin-top: 23px;
  color: #8a3030;
  border: 1px solid #efc4c1;
  border-radius: var(--radius-card);
  background: #fff5f4;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
}

.result-notice strong {
  font-weight: 820;
}

.result-notice code {
  background: rgb(255 255 255 / 74%);
}

.report-card {
  display: grid;
  padding: 34px 38px;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.report-score-column {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.score-ring {
  position: relative;
  width: 220px;
  height: 220px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 10;
}

.score-ring-track {
  stroke: #d7f3e9;
}

.score-ring-value {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: var(--score-length);
  stroke-dashoffset: var(--score-offset);
}

.score-ring-copy {
  position: absolute;
  inset: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.score-ring-copy strong {
  font-size: 52px;
  font-weight: 820;
  line-height: 1;
}

.score-ring-copy span {
  max-width: 128px;
  margin-top: 10px;
  color: #56615a;
  font-size: 13px;
  line-height: 1.4;
}

.report-score-column > p {
  margin-top: 8px;
  color: #8a938d;
  font-size: 11px;
}

.report-check-list {
  display: grid;
}

.report-check {
  display: grid;
  min-height: 87px;
  padding: 17px 0;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #edf0ee;
}

.report-check:last-child {
  border-bottom: 0;
}

.report-check-icon svg {
  width: 27px;
  height: 27px;
}

.report-check-icon circle,
.report-check-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-check-icon.is-pass {
  color: var(--primary);
}

.report-check-icon.is-fail {
  color: var(--danger);
}

.report-check h2 {
  font-size: 17px;
  font-weight: 760;
  line-height: 1.45;
}

.report-check p {
  margin-top: 2px;
  color: #69736d;
  font-size: 12px;
  line-height: 1.7;
}

.report-check > strong {
  align-self: start;
  padding-top: 3px;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.report-check > strong.is-pass {
  color: var(--primary-ink);
}

.report-check > strong.is-fail {
  color: var(--danger);
}

.report-empty {
  padding: 30px 0;
}

.report-empty h2 {
  font-size: 20px;
}

.report-empty p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.report-panel {
  padding: 29px 34px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.report-panel h2 {
  font-size: 25px;
  font-weight: 820;
  line-height: 1.35;
}

.report-issues {
  display: grid;
  margin-top: 14px;
  gap: 8px;
  color: #4f5853;
  font-size: 13px;
  line-height: 1.75;
}

.report-issues p::before {
  margin-right: 8px;
  content: "提示";
  color: #6e7771;
  font-size: 11px;
  font-weight: 700;
}

.report-panel-intro {
  margin-top: 7px;
  color: #69736d;
  font-size: 12px;
}

.signal-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.signal-grid div {
  display: flex;
  min-width: 0;
  min-height: 102px;
  padding: 13px 14px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e1e6e3;
  border-radius: 6px;
  background: #fbfcfb;
}

.signal-grid span,
.signal-grid small {
  color: #78817b;
  font-size: 11px;
}

.signal-grid strong {
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.3;
}

.report-metrics {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-metrics div {
  display: flex;
  min-height: 94px;
  padding: 16px 18px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.report-metrics span {
  color: #727b75;
  font-size: 11px;
}

.report-metrics strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.3;
}

.report-footnote {
  margin-top: 18px;
  color: #7c8580;
  font-size: 11px;
  line-height: 1.8;
}

.result-pending,
.result-failed {
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.result-pending {
  text-align: center;
}

.result-pending-indicator {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border: 5px solid #e1f5ed;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: result-spin 1.2s linear infinite;
}

.result-pending-indicator span {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.result-pending-kicker {
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 780;
}

.result-pending h2 {
  margin-top: 5px;
  font-size: 30px;
  font-weight: 820;
  line-height: 1.35;
}

.result-pending > p:not(.result-pending-kicker) {
  max-width: 620px;
  margin: 9px auto 0;
  color: var(--text-muted);
  font-size: 14px;
}

.result-pending-meta {
  display: flex;
  max-width: 730px;
  padding: 20px 0 0;
  margin: 25px auto 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #edf0ee;
}

.result-pending-meta div {
  min-width: 150px;
  padding: 8px 15px;
}

.result-pending-meta dt {
  color: #7b847e;
  font-size: 10px;
}

.result-pending-meta dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 680;
}

.result-failed {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.result-failed-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--danger);
  font-size: 20px;
  font-weight: 800;
}

.result-failed p:first-child {
  color: var(--danger);
  font-size: 12px;
  font-weight: 780;
}

.result-failed h2 {
  margin-top: 3px;
  font-size: 28px;
  font-weight: 820;
  line-height: 1.35;
}

.result-failed div > p:not(:first-child) {
  margin-top: 7px;
  color: #6b4a49;
  font-size: 13px;
}

.result-failed .button {
  width: auto;
  min-width: 130px;
  min-height: 40px;
  margin-top: 18px;
  font-size: 14px;
}

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

.function-switcher {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.function-tab {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 70px;
  padding: 12px 17px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px rgb(20 26 22 / 3%);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.function-tab::before {
  position: absolute;
  top: -1px;
  right: 22%;
  left: 22%;
  height: 2px;
  content: "";
  transform: scaleX(0);
  border-radius: 0 0 2px 2px;
  background: var(--primary);
  transition: transform 180ms var(--ease-out);
}

.function-tab:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  background: #fbfffd;
  box-shadow: 0 9px 22px rgb(9 132 92 / 8%);
}

.function-tab:hover::before,
.function-tab.is-active::before {
  transform: scaleX(1);
}

.function-tab.is-active {
  border-color: #9edfc7;
  background: linear-gradient(180deg, #f8fffc, #ffffff);
  box-shadow: inset 0 0 0 1px rgb(16 185 129 / 5%);
}

.function-tab-title {
  color: #151a17;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.4;
}

.function-tab-description {
  margin-top: 2px;
  color: #69726c;
  font-size: 12px;
  line-height: 1.55;
}

.home-content {
  margin-top: 38px;
}

.model-showcase {
  display: grid;
  gap: 38px;
}

.model-panel {
  position: relative;
  min-height: 252px;
  padding: 28px 30px 24px;
  overflow: hidden;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 100% 0%, rgb(16 185 129 / 9%), transparent 37%),
    linear-gradient(145deg, #f1fbf7 0%, #f8fffc 58%, #effbf6 100%);
}

.model-panel::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 25%));
}

.model-panel-head {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.model-panel-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary-ink);
  font-size: 16px;
  font-weight: 700;
}

.model-panel h1,
.model-panel h2 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.model-panel-head > p:last-child {
  max-width: 920px;
  margin-top: 5px;
  color: #5b655f;
  font-size: 14px;
  line-height: 1.72;
}

.model-panel-actions {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.model-panel-footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 28px;
  margin-top: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.model-panel-footer > p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: #78827c;
  font-size: 11px;
  line-height: 1.5;
}

.model-panel-footer > p strong {
  color: #354039;
  font-weight: 760;
}

.model-panel-footer .feature-rank-link {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(8 122 86 / 35%);
  text-underline-offset: 4px;
}

.section-heading {
  max-width: 900px;
}

.home-content .evidence-section {
  margin-top: 56px;
}

.home-content .evidence-grid {
  margin-top: 19px;
}

.home-content .evidence-card {
  position: relative;
  min-height: 142px;
  padding: 22px 23px;
  overflow: hidden;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-content .evidence-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
  box-shadow: 0 9px 22px rgb(9 132 92 / 7%);
}

.evidence-index {
  display: block;
  margin-bottom: 9px;
  color: #9ba49e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.home-content .evidence-card p {
  margin-top: 9px;
}

.home-content .home-ranking-cta {
  min-height: 150px;
  margin-top: 52px;
}

.home-ranking-cta .button {
  min-width: 188px;
}

.feature-page main {
  background:
    radial-gradient(circle at 50% 28%, rgb(16 185 129 / 6%), transparent 30%),
    #fff;
}

.feature-placeholder {
  display: flex;
  min-height: 520px;
  padding: 82px 32px 72px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.feature-placeholder-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid var(--primary-border);
  border-radius: 22px;
  background: linear-gradient(145deg, #f5fcf9, #eafaf3);
  transform: rotate(8deg);
}

.feature-placeholder-mark span {
  position: absolute;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
  transform: rotate(-8deg);
}

.feature-placeholder-mark span:nth-child(1) {
  transform: translateY(-10px) rotate(-8deg);
}

.feature-placeholder-mark span:nth-child(2) {
  width: 22px;
}

.feature-placeholder-mark span:nth-child(3) {
  width: 14px;
  transform: translateY(10px) rotate(-8deg);
}

.feature-placeholder h1 {
  margin-top: 6px;
  font-size: 42px;
  font-weight: 840;
  line-height: 1.2;
}

.feature-placeholder > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.feature-placeholder-note {
  display: flex;
  max-width: 560px;
  padding: 12px 18px;
  margin-top: 30px;
  align-items: center;
  gap: 10px;
  color: #53605a;
  border: 1px solid #d8eae2;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  font-size: 12px;
}

.feature-placeholder-note strong {
  color: var(--primary-ink);
  font-weight: 760;
  white-space: nowrap;
}

.site-footer {
  padding: 50px 0 42px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr 0.75fr;
  gap: 50px;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.6;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-brand-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.footer-brand p {
  max-width: 330px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-column h3 {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 780;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-column a:hover {
  color: var(--primary-hover);
}

.footer-bottom {
  margin-top: 46px;
  color: #7b847e;
  font-size: 11px;
  line-height: 1.9;
  text-align: center;
}

@media (max-width: 1180px) {
  :root {
    --page-gutter: 36px;
  }

  .header-inner {
    width: calc(100% - 36px);
  }

  .desktop-nav {
    gap: 15px;
  }

  .model-panel-footer > p {
    display: none;
  }

  .feature-report-counts {
    display: none;
  }

  .feature-news {
    min-height: 0;
    padding-bottom: 24px;
  }

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

@media (max-width: 900px) {
  :root {
    --page-gutter: 24px;
  }

  .desktop-nav,
  .header-status {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header-inner {
    width: 100%;
    padding-inline: 18px;
  }

  .function-switcher {
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-content {
    margin-top: 28px;
  }

  .feature-placeholder {
    min-height: 470px;
    padding-top: 64px;
  }

  .hero-root {
    padding-top: 46px;
  }

  .hero-root h1 {
    font-size: 40px;
    line-height: 1.18;
  }

  .hero-description {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    width: 100%;
    margin-top: 36px;
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 82px;
    padding: 13px 20px;
  }

  .fairness-note {
    display: block;
  }

  .fairness-note strong {
    display: inline;
  }

  .feature-news {
    padding: 22px 20px;
  }

  .feature-actions {
    gap: 8px;
  }

  .evidence-section {
    margin-top: 44px;
  }

  .home-ranking-cta {
    padding: 26px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .detect-page,
  .leaderboard-page,
  .result-page {
    padding-top: 44px;
  }

  .detect-heading h1 {
    font-size: 36px;
  }

  .detect-card {
    padding: 24px;
  }

  .result-heading-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .result-heading h1 {
    font-size: 36px;
  }

  .result-actions {
    padding-top: 0;
  }

  .report-card {
    padding: 28px;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
  }

  .score-ring {
    width: 190px;
    height: 190px;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .model-panel {
    min-height: 0;
    padding: 24px 22px 21px;
  }

  .model-panel-footer {
    align-items: flex-start;
  }

  .model-panel-footer .feature-rank-link {
    font-size: 14px;
  }

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

  .detect-field.is-full {
    grid-column: auto;
  }

  .detect-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .detect-submit {
    width: 100%;
  }

  .detection-checks {
    grid-template-columns: 1fr;
  }

  .report-card {
    grid-template-columns: 1fr;
  }

  .report-score-column {
    padding-bottom: 24px;
    border-bottom: 1px solid #edf0ee;
  }

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

  .section-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .data-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100% !important;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .data-table tbody {
    display: grid;
    gap: 10px;
  }

  .data-table tr {
    display: grid;
    padding: 15px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
  }

  .data-table td {
    display: flex;
    min-width: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    font-size: 13px;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 1px;
    content: attr(data-label);
    color: #8a938d;
    font-size: 10px;
    line-height: 1.5;
  }

  .data-table td:nth-child(1),
  .data-table td:nth-child(4) {
    grid-column: 1 / -1;
  }

  .leaderboard-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-table td:nth-child(2),
  .leaderboard-table td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .data-table time {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 18px;
  }

  .hero-root {
    padding-top: 40px;
  }

  .function-switcher {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .function-tab {
    min-height: 64px;
    padding: 10px 14px;
  }

  .function-tab-title {
    font-size: 15px;
  }

  .function-tab-description {
    font-size: 11px;
  }

  .model-showcase {
    gap: 18px;
  }

  .model-panel h1,
  .model-panel h2 {
    font-size: 18px;
  }

  .model-panel-kicker {
    font-size: 14px;
  }

  .model-panel-head > p:last-child {
    font-size: 13px;
  }

  .model-panel-footer {
    margin-top: 19px;
  }

  .feature-placeholder {
    min-height: 430px;
    padding: 54px 8px 50px;
  }

  .feature-placeholder h1 {
    font-size: 32px;
  }

  .feature-placeholder > p:not(.eyebrow) {
    font-size: 14px;
  }

  .feature-placeholder-note {
    align-items: flex-start;
    flex-direction: column;
    border-radius: var(--radius-card);
    text-align: left;
  }

  .hero-root h1 {
    font-size: 36px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .hero-description {
    max-width: 100%;
  }

  .button {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
  }

  .home-page .feature-news {
    width: calc(100% - 36px);
    margin-inline: auto;
  }

  .feature-news h2 {
    font-size: 18px;
  }

  .feature-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .model-chip {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-title,
  .home-ranking-cta h2 {
    font-size: 26px;
  }

  .home-ranking-cta {
    margin-top: 36px;
  }

  .detect-heading h1 {
    font-size: 32px;
  }

  .result-heading h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .result-notice {
    padding: 15px 16px;
    font-size: 13px;
  }

  .result-meta {
    margin-top: 16px;
    font-size: 11px;
  }

  .report-card,
  .report-panel {
    padding: 20px 16px;
  }

  .score-ring {
    width: 176px;
    height: 176px;
  }

  .score-ring-copy strong {
    font-size: 42px;
  }

  .report-check {
    padding: 15px 0;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .report-check-icon svg {
    width: 23px;
    height: 23px;
  }

  .report-check h2 {
    font-size: 15px;
  }

  .report-check p {
    font-size: 11px;
  }

  .report-panel h2 {
    font-size: 22px;
  }

  .signal-grid,
  .report-metrics {
    grid-template-columns: 1fr;
  }

  .result-pending,
  .result-failed {
    padding: 30px 18px;
  }

  .result-failed {
    grid-template-columns: 1fr;
  }

  .result-pending h2,
  .result-failed h2 {
    font-size: 24px;
  }

  .result-pending-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .detect-card,
  .info-card {
    padding: 20px 16px;
  }

  .protocol-notice {
    padding: 13px 14px;
  }

  .detection-live {
    padding: 16px 14px;
  }

  .detection-live-head {
    flex-direction: column;
    gap: 8px;
  }

  .check-copy-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .leaderboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.latency-page main {
  background:
    linear-gradient(180deg, #f8fbf9 0, #ffffff 320px);
}

.latency-diagnosis {
  padding-top: 44px;
}

.latency-heading {
  display: grid;
  padding-bottom: 34px;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 42px;
  border-bottom: 1px solid var(--border);
}

.latency-heading h1 {
  margin-top: 7px;
  font-size: 44px;
  font-weight: 850;
  line-height: 1.14;
}

.latency-heading > div:first-child > p:last-child {
  max-width: 790px;
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.latency-boundary {
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--border-strong);
}

.latency-boundary strong,
.latency-boundary span {
  display: block;
}

.latency-boundary strong {
  font-size: 13px;
  font-weight: 780;
}

.latency-boundary span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.speed-form-section {
  display: grid;
  padding: 28px;
  margin-top: 28px;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 20px;
}

.speed-form-copy {
  padding-top: 4px;
}

.speed-form-copy h2,
.speed-section-head h2,
.speed-evidence-section h2,
.speed-scope h2 {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 810;
  line-height: 1.4;
}

.speed-form-copy > p:last-child {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.72;
}

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

.speed-form-footer {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.speed-form-note {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.speed-form-note strong {
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 760;
}

.speed-form-note span {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.55;
}

.speed-submit {
  flex: 0 0 auto;
  min-width: 164px;
}

.speed-upload-tip {
  display: grid;
  padding: 22px 26px;
  margin-top: 22px;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  border: 1px solid #ead9b8;
  border-radius: var(--radius-card);
  background:
    linear-gradient(120deg, #fffaf0 0%, #ffffff 58%, #f8fbf9 100%);
  box-shadow: var(--shadow-soft);
}

.speed-upload-tip h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 810;
  line-height: 1.4;
}

.speed-upload-tip > p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.75;
}

.speed-progress,
.speed-report-head,
.speed-chain-section,
.speed-compare-section,
.speed-evidence-section,
.speed-detailed-report,
.speed-scope {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.speed-progress {
  padding: 24px 26px;
}

.speed-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.speed-progress-time,
.speed-source-note {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.speed-progress-list {
  display: grid;
  padding: 0;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  list-style: none;
}

.speed-progress-list li {
  display: grid;
  min-height: 64px;
  padding: 10px 12px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.speed-progress-list li > div {
  min-width: 0;
}

.speed-progress-list strong,
.speed-progress-list small {
  display: block;
}

.speed-progress-list strong {
  font-size: 13px;
  font-weight: 740;
}

.speed-progress-list small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.45;
}

.speed-progress-list li > span:last-child {
  color: var(--text-faint);
  font-size: 10px;
  white-space: nowrap;
}

.speed-step-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
}

.speed-progress-list li.is-running {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.speed-progress-list li.is-running .speed-step-dot {
  border-color: var(--primary);
  background: var(--primary);
  animation: speed-pulse 1.2s ease-in-out infinite;
}

.speed-progress-list li.is-complete .speed-step-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.speed-progress-list li.is-complete > span:last-child {
  color: var(--primary-ink);
}

.speed-progress-list li.is-warning .speed-step-dot {
  border-color: var(--warning);
  background: var(--warning);
}

.speed-progress-list li.is-warning > span:last-child {
  color: var(--warning);
}

.speed-progress-list li.is-error .speed-step-dot {
  border-color: var(--danger);
  background: var(--danger);
}

.speed-progress-list li.is-error > span:last-child {
  color: var(--danger);
}

.speed-progress-list li.is-skipped {
  opacity: 0.62;
}

@keyframes speed-pulse {
  50% {
    box-shadow: 0 0 0 5px rgb(16 185 129 / 13%);
  }
}

.speed-report-head {
  display: flex;
  min-height: 152px;
  padding: 28px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.speed-report-head > div:first-child {
  max-width: 900px;
}

.speed-report-head h2 {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 840;
  line-height: 1.3;
}

.speed-report-head > div:first-child > p:last-child {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.speed-confidence {
  display: flex;
  min-width: 122px;
  padding-left: 24px;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.speed-confidence span {
  padding: 4px 9px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 700;
}

.speed-confidence span[data-status="normal"] {
  color: var(--primary-ink);
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.speed-confidence span[data-status="warning"] {
  color: var(--warning);
  border-color: #ead39f;
  background: var(--warning-soft);
}

.speed-confidence span[data-status="danger"] {
  color: var(--danger);
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.speed-confidence strong {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 790;
}

.speed-metric-strip {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.speed-metric-strip > div {
  min-width: 0;
  padding: 16px 20px;
}

.speed-metric-strip > div + div {
  border-left: 1px solid var(--border);
}

.speed-metric-strip span,
.speed-metric-strip strong {
  display: block;
}

.speed-metric-strip span {
  color: var(--text-faint);
  font-size: 10px;
}

.speed-metric-strip strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 790;
  line-height: 1.35;
}

.speed-chain-section,
.speed-compare-section,
.speed-evidence-section,
.speed-detailed-report {
  padding: 25px 26px;
}

.speed-chain {
  display: grid;
  padding: 0;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.speed-chain-step {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 124px;
  padding: 14px 12px 12px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.speed-chain-step::after {
  position: absolute;
  z-index: 1;
  top: 30px;
  right: -9px;
  width: 9px;
  height: 1px;
  content: "";
  background: var(--border-strong);
}

.speed-chain-step:last-child::after {
  display: none;
}

.speed-chain-index {
  color: var(--text-faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.speed-chain-dot {
  width: 9px;
  height: 9px;
  margin: 12px 0;
  border: 2px solid #aab2ad;
  border-radius: 50%;
  background: #fff;
}

.speed-chain-step strong {
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.speed-chain-step small {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.5;
}

.speed-chain-step.is-normal {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.speed-chain-step.is-normal .speed-chain-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.speed-chain-step.is-warning {
  border-color: #ead39f;
  background: var(--warning-soft);
}

.speed-chain-step.is-warning .speed-chain-dot {
  border-color: var(--warning);
  background: var(--warning);
}

.speed-chain-step.is-danger {
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.speed-chain-step.is-danger .speed-chain-dot {
  border-color: var(--danger);
  background: var(--danger);
}

.speed-chain-step.is-unknown {
  background: #f8f9f8;
}

.speed-technical-details {
  padding: 0;
}

.speed-technical-details > summary {
  display: flex;
  min-height: 84px;
  padding: 22px 26px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

.speed-technical-details > summary::-webkit-details-marker {
  display: none;
}

.speed-technical-details > summary:hover {
  background: var(--surface-soft);
}

.speed-technical-details > summary > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.speed-technical-details > summary strong {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 780;
}

.speed-technical-details > summary > span:last-child {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 10px;
}

.speed-technical-details > summary > span:last-child::after {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  content: "+";
  color: var(--primary-ink);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 14px;
  line-height: 1;
}

.speed-technical-details[open] > summary {
  border-bottom: 1px solid var(--border);
}

.speed-technical-details[open] > summary > span:last-child::after {
  content: "-";
}

.speed-technical-details .speed-table-wrap {
  width: calc(100% - 52px);
  margin: 22px 26px;
}

.speed-technical-request-id {
  padding: 0 26px 22px;
  overflow-wrap: anywhere;
  color: var(--text-faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
}

.speed-table-wrap {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
}

.speed-compare-table {
  width: 100%;
  min-width: 830px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.speed-compare-table th,
.speed-compare-table td {
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

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

.speed-compare-table thead th {
  color: var(--text-faint);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 720;
}

.speed-compare-table tbody th {
  width: 20%;
  color: var(--text);
  font-weight: 740;
}

.speed-compare-table tbody td {
  color: var(--text-muted);
  line-height: 1.6;
}

.speed-compare-table td[data-status="normal"],
.speed-compare-table td[data-status="danger"] {
  font-weight: 700;
}

.speed-compare-table td[data-status="normal"] {
  color: var(--primary-ink);
}

.speed-compare-table td[data-status="danger"] {
  color: var(--danger);
}

.speed-evidence-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
}

.speed-evidence-list {
  display: grid;
  padding: 0;
  gap: 1px;
  list-style: none;
  background: var(--border);
}

.speed-evidence-list li {
  display: grid;
  min-height: 74px;
  padding: 13px 14px;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  background: var(--surface);
}

.speed-evidence-marker {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #aab2ad;
}

.speed-evidence-list li[data-status="normal"] .speed-evidence-marker {
  background: var(--primary);
}

.speed-evidence-list li[data-status="warning"] .speed-evidence-marker {
  background: var(--warning);
}

.speed-evidence-list li[data-status="danger"] .speed-evidence-marker {
  background: var(--danger);
}

.speed-evidence-list strong {
  display: block;
  font-size: 12px;
  font-weight: 760;
}

.speed-evidence-list p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.65;
}

.speed-evidence-list small {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 9px;
}

.speed-detailed-callout {
  display: flex;
  min-height: 132px;
  padding: 24px 26px;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(120deg, var(--primary-soft), var(--surface) 60%);
}

.speed-detailed-callout h2 {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 810;
}

.speed-detailed-callout > div:first-child > p:last-child {
  max-width: 700px;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}

.speed-detailed-action {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.speed-detailed-action span {
  color: var(--text-faint);
  font-size: 10px;
}

.speed-detailed-action .button {
  min-width: 146px;
}

.speed-detailed-report {
  scroll-margin-top: 20px;
}

.speed-detailed-bar {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.speed-detailed-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 220ms var(--ease-out);
}

.speed-detailed-live {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.speed-detailed-table td:last-child {
  overflow-wrap: anywhere;
}

.speed-detailed-conclusion {
  padding: 16px 18px;
  margin-top: 18px;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
}

.speed-detailed-conclusion strong {
  font-size: 12px;
  font-weight: 780;
}

.speed-detailed-conclusion p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.speed-scope {
  display: grid;
  padding: 24px 26px;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.speed-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.speed-scope-grid strong {
  display: block;
  font-size: 12px;
  font-weight: 760;
}

.speed-scope-grid p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.speed-noscript {
  padding: 14px 16px;
  margin-top: 20px;
  color: var(--danger);
  border: 1px solid #efc4c1;
  border-radius: var(--radius-control);
  background: var(--danger-soft);
}

@media (max-width: 1180px) {
  .latency-heading {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 28px;
  }

  .speed-form-section {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
  }

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

  .speed-chain-step::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .latency-diagnosis {
    padding-top: 30px;
  }

  .latency-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .latency-heading h1 {
    font-size: 38px;
  }

  .latency-boundary {
    max-width: 560px;
  }

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

  .speed-form-copy {
    max-width: 640px;
  }

  .speed-report-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .speed-confidence {
    padding: 12px 0 0;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

  .speed-metric-strip > div:nth-child(3) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .speed-metric-strip > div:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .speed-evidence-section,
  .speed-scope {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .speed-detailed-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .speed-detailed-action {
    align-items: flex-start;
  }

  .speed-upload-tip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .speed-form-section,
  .speed-progress,
  .speed-upload-tip,
  .speed-report-head,
  .speed-chain-section,
  .speed-compare-section,
  .speed-evidence-section,
  .speed-detailed-report,
  .speed-scope {
    padding: 20px;
  }

  .speed-form-grid,
  .speed-progress-list,
  .speed-scope-grid {
    grid-template-columns: 1fr;
  }

  .speed-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .speed-submit {
    width: 100%;
  }

  .speed-section-head {
    flex-direction: column;
    gap: 8px;
  }

  .speed-progress-time,
  .speed-source-note {
    text-align: left;
  }

  .speed-chain {
    grid-template-columns: 1fr;
  }

  .speed-chain-step {
    min-height: 112px;
  }

  .speed-report-head h2 {
    font-size: 25px;
  }

  .speed-metric-strip {
    grid-template-columns: 1fr;
  }

  .speed-metric-strip > div + div,
  .speed-metric-strip > div:nth-child(3),
  .speed-metric-strip > div:nth-child(4) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .speed-scope-grid {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .latency-heading h1 {
    font-size: 34px;
  }

  .speed-chain {
    grid-template-columns: 1fr;
  }

  .speed-chain-step {
    min-height: 96px;
  }
}

.diagnosis-page main {
  background:
    linear-gradient(180deg, #f8fbf9 0, #ffffff 330px);
}

.model-diagnosis {
  padding-top: 44px;
}

.model-diagnosis-heading {
  display: grid;
  padding-bottom: 34px;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: end;
  gap: 44px;
  border-bottom: 1px solid var(--border);
}

.model-diagnosis-heading h1 {
  margin-top: 7px;
  font-size: 44px;
  font-weight: 850;
  line-height: 1.14;
}

.model-diagnosis-heading > div:first-child > p:last-child {
  max-width: 790px;
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.model-diagnosis-boundary {
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--border-strong);
}

.model-diagnosis-boundary strong,
.model-diagnosis-boundary span {
  display: block;
}

.model-diagnosis-boundary strong {
  font-size: 13px;
  font-weight: 780;
}

.model-diagnosis-boundary span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.model-diagnosis-workspace {
  display: grid;
  margin-top: 28px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.model-diagnosis-form-panel,
.model-route-panel {
  min-width: 0;
  padding: 28px;
}

.model-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.model-workspace-head h2 {
  margin-top: 4px;
  font-size: 23px;
  font-weight: 820;
  line-height: 1.35;
}

.model-step-mark {
  color: var(--text-faint);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 760;
}

.model-diagnosis-form {
  margin-top: 22px;
}

.model-error-field textarea {
  display: block;
  width: 100%;
  min-height: 208px;
  padding: 14px 15px;
  resize: vertical;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.model-error-field textarea::placeholder {
  color: #a0a8a3;
}

.model-error-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 10%);
}

.model-context-grid {
  display: grid;
  margin-top: 17px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 17px;
}

.model-context-grid .model-id-field {
  grid-column: 1 / -1;
}

.detect-field > span em {
  color: var(--text-faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
}

.model-form-footer {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.model-form-note {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.model-form-note strong {
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 760;
}

.model-form-note span {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
}

.model-form-footer .button {
  flex: 0 0 auto;
  min-width: 140px;
}

.model-route-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--text);
  border-left: 1px solid var(--border);
  background:
    radial-gradient(circle at 92% 8%, rgb(125 211 252 / 24%), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f4fcf8 52%, #eef8ff 100%);
}

.model-route-panel .eyebrow {
  color: var(--primary-ink);
}

.model-route-panel .model-step-mark {
  color: var(--text-faint);
}

.model-route-list {
  position: relative;
  display: grid;
  padding: 0;
  margin-top: 23px;
  gap: 8px;
  list-style: none;
}

.model-route-list::before {
  position: absolute;
  z-index: 0;
  top: 30px;
  bottom: 30px;
  left: 18px;
  width: 1px;
  content: "";
  background: #cfe5db;
}

.model-route-list li {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 64px;
  padding: 10px 12px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgb(16 185 129 / 8%);
  border-radius: var(--radius-control);
  background: rgb(255 255 255 / 58%);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}

.model-route-list li:hover {
  border-color: var(--primary-border);
  background: rgb(255 255 255 / 76%);
  transform: translateX(2px);
}

.model-route-list li > span {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  color: var(--primary-ink);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  background: var(--surface);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.model-route-list strong,
.model-route-list small,
.model-route-list em {
  display: block;
}

.model-route-list strong {
  font-size: 13px;
  font-weight: 740;
}

.model-route-list small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.5;
}

.model-route-list em {
  margin-top: 6px;
  color: var(--primary-ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.45;
}

.model-route-list li.is-active {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  box-shadow: 0 8px 22px rgb(16 185 129 / 8%);
  transform: translateX(2px);
}

.model-route-list li.is-active > span {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.model-route-list li.is-active strong {
  color: var(--primary-ink);
}

.model-route-legend {
  display: flex;
  padding-top: 18px;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.model-route-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 10px;
}

.model-route-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.model-route-legend .is-confirmed {
  background: #52d3a4;
}

.model-route-legend .is-directional {
  background: #f1b84b;
}

.model-route-legend .is-unknown {
  background: #93a199;
}

.model-diagnosis-loading {
  display: flex;
  min-height: 92px;
  padding: 20px 24px;
  margin-top: 20px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-card);
  background: var(--primary-soft);
}

.model-loading-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid var(--primary-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: model-loading-spin 0.9s linear infinite;
}

.model-diagnosis-loading strong {
  font-size: 13px;
  font-weight: 760;
}

.model-diagnosis-loading p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

@keyframes model-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.model-diagnosis-report,
.model-probe-panel,
.model-diagnosis-scope {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.model-diagnosis-report {
  scroll-margin-top: 20px;
}

.model-report-head {
  display: grid;
  min-height: 174px;
  padding: 30px;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--border);
}

.model-report-head h2 {
  margin-top: 5px;
  font-size: 30px;
  font-weight: 840;
  line-height: 1.3;
}

.model-report-heading > p:last-child {
  max-width: 820px;
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.78;
}

.model-report-verdict {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.model-report-verdict > span,
.model-report-verdict > strong,
.model-report-verdict > small {
  display: block;
}

.model-report-verdict > span {
  width: fit-content;
  padding: 4px 9px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 720;
}

.model-report-verdict > strong {
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.model-report-verdict > small {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 11px;
}

.model-report-verdict[data-severity="success"] > span {
  color: var(--primary-ink);
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.model-report-verdict[data-severity="warning"] > span {
  color: var(--warning);
  border-color: #ead39f;
  background: var(--warning-soft);
}

.model-report-verdict[data-severity="danger"] > span {
  color: var(--danger);
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.model-report-context {
  display: flex;
  padding: 14px 30px;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.model-report-context span {
  display: inline-flex;
  min-height: 30px;
  padding: 4px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.model-report-context small {
  color: var(--text-faint);
  font-size: 9px;
}

.model-report-context strong {
  max-width: 280px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-report-body {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.model-action-section,
.model-evidence-section {
  min-width: 0;
  padding: 27px 30px 30px;
}

.model-action-section {
  border-right: 1px solid var(--border);
}

.model-report-section-head h3 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 810;
  line-height: 1.4;
}

.model-action-list {
  display: grid;
  padding: 0;
  margin-top: 18px;
  gap: 1px;
  list-style: none;
  background: var(--border);
}

.model-action-list li {
  display: grid;
  min-height: 64px;
  padding: 12px 14px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  background: var(--surface);
}

.model-action-list li > span {
  color: var(--primary-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.8;
}

.model-action-list p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.72;
}

.model-evidence-list {
  display: grid;
  padding: 0;
  margin-top: 18px;
  gap: 8px;
  list-style: none;
}

.model-evidence-list li {
  display: grid;
  min-height: 52px;
  padding: 10px 12px;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.model-evidence-marker {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.model-evidence-list strong,
.model-evidence-list code {
  display: block;
}

.model-evidence-list strong {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 700;
}

.model-evidence-list code {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--text);
  background: transparent;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
}

.model-evidence-details {
  padding: 0;
  background: var(--surface);
}

.model-evidence-details > summary {
  display: flex;
  min-height: 104px;
  padding: 27px 30px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

.model-evidence-details > summary::-webkit-details-marker {
  display: none;
}

.model-evidence-details > summary:hover {
  background: var(--surface-soft);
}

.model-evidence-details > summary > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.model-evidence-details > summary strong {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 780;
  line-height: 1.45;
}

.model-evidence-details > summary > span:last-child {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
}

.model-evidence-details > summary > span:last-child::after {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  content: "+";
  color: var(--primary-ink);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  background: var(--primary-soft);
  font-size: 14px;
  line-height: 1;
}

.model-evidence-details[open] > summary {
  border-bottom: 1px solid var(--border);
}

.model-evidence-details[open] > summary > span:last-child::after {
  content: "-";
}

.model-evidence-details .model-evidence-list {
  padding: 0 30px 30px;
}

.model-report-footer {
  display: flex;
  min-height: 76px;
  padding: 15px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.model-report-footer > p {
  max-width: 900px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.model-copy-button {
  min-width: 138px;
  min-height: 38px;
  flex: 0 0 auto;
  font-size: 12px;
}

.model-probe-callout {
  display: flex;
  min-height: 136px;
  padding: 24px 27px;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(112deg, var(--primary-soft), var(--surface) 66%);
}

.model-probe-callout h2 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 810;
}

.model-probe-callout > div > p:last-child {
  max-width: 740px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.model-probe-callout .button {
  min-width: 188px;
  flex: 0 0 auto;
}

.model-probe-panel {
  padding: 28px;
  scroll-margin-top: 20px;
}

.model-probe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.model-probe-head h2 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 820;
}

.model-probe-head > div > p:last-child {
  max-width: 760px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.model-close-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.model-probe-form {
  margin-top: 23px;
}

.model-probe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model-stream-toggle {
  display: flex;
  min-height: 72px;
  padding: 11px 13px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.model-stream-toggle input,
.model-consent input {
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.model-stream-toggle input {
  margin-top: 3px;
}

.model-stream-toggle strong,
.model-stream-toggle small {
  display: block;
}

.model-stream-toggle strong {
  font-size: 11px;
  font-weight: 740;
}

.model-stream-toggle small {
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.55;
}

.model-consent {
  display: flex;
  margin-top: 16px;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}

.model-consent input {
  margin-top: 3px;
}

.model-probe-footer {
  display: flex;
  margin-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.model-probe-footer > span {
  color: var(--text-faint);
  font-size: 10px;
}

.model-probe-footer .button {
  min-width: 160px;
}

.model-probe-result {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.model-probe-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.model-probe-result-head h3 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 810;
}

.model-probe-result-head > div > p:last-child {
  max-width: 790px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.model-probe-result-head > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 720;
}

.model-probe-result-head > span[data-status="warning"] {
  color: var(--warning);
  border-color: #ead39f;
  background: var(--warning-soft);
}

.model-probe-result-head > span[data-status="danger"] {
  color: var(--danger);
  border-color: #efc4c1;
  background: var(--danger-soft);
}

.model-probe-metrics {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  overflow: hidden;
}

.model-probe-metrics > div {
  min-width: 0;
  padding: 14px 16px;
}

.model-probe-metrics > div + div {
  border-left: 1px solid var(--border);
}

.model-probe-metrics > div:nth-child(4) {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  border-left: 0;
}

.model-probe-metrics span,
.model-probe-metrics strong {
  display: block;
}

.model-probe-metrics span {
  color: var(--text-faint);
  font-size: 9px;
}

.model-probe-metrics strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 790;
  line-height: 1.4;
}

.model-probe-comparison {
  padding: 13px 15px;
  margin-top: 12px;
  color: var(--text-muted);
  border-left: 3px solid var(--border-strong);
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.7;
}

.model-probe-comparison[data-status="warning"] {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.model-probe-comparison[data-status="danger"] {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.model-diagnosis-scope {
  display: grid;
  padding: 24px 27px;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.model-diagnosis-scope h2 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 810;
}

.model-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.model-scope-grid strong {
  display: block;
  font-size: 12px;
  font-weight: 760;
}

.model-scope-grid p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

.model-noscript {
  padding: 14px 16px;
  margin-top: 20px;
  color: var(--danger);
  border: 1px solid #efc4c1;
  border-radius: var(--radius-control);
  background: var(--danger-soft);
}

@media (max-width: 1120px) {
  .model-diagnosis-workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

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

  .model-stream-toggle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .model-diagnosis {
    padding-top: 30px;
  }

  .model-diagnosis-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .model-diagnosis-heading h1 {
    font-size: 38px;
  }

  .model-diagnosis-boundary {
    max-width: 600px;
  }

  .model-diagnosis-workspace {
    grid-template-columns: 1fr;
  }

  .model-route-panel {
    min-height: 0;
  }

  .model-report-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .model-report-verdict {
    padding: 17px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .model-report-body {
    grid-template-columns: 1fr;
  }

  .model-action-section {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .model-probe-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-diagnosis-scope {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .model-diagnosis-form-panel,
  .model-route-panel,
  .model-probe-panel {
    padding: 21px;
  }

  .model-context-grid,
  .model-probe-grid,
  .model-scope-grid {
    grid-template-columns: 1fr;
  }

  .model-context-grid .model-id-field,
  .model-stream-toggle {
    grid-column: auto;
  }

  .model-form-footer,
  .model-probe-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .model-form-footer .button,
  .model-probe-footer .button {
    width: 100%;
  }

  .model-report-head,
  .model-action-section,
  .model-evidence-section {
    padding: 22px;
  }

  .model-evidence-details {
    padding: 0;
  }

  .model-evidence-details > summary {
    min-height: 0;
    padding: 22px;
  }

  .model-evidence-details .model-evidence-list {
    padding: 0 22px 22px;
  }

  .model-report-head h2 {
    font-size: 25px;
  }

  .model-report-context {
    padding: 12px 22px;
  }

  .model-report-footer {
    padding: 16px 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .model-copy-button {
    width: 100%;
  }

  .model-probe-callout {
    padding: 22px;
  }

  .model-probe-callout .button {
    width: 100%;
    min-width: 0;
  }

  .model-probe-head,
  .model-probe-result-head {
    flex-direction: column;
  }

  .model-probe-metrics {
    grid-template-columns: 1fr;
  }

  .model-probe-metrics > div + div,
  .model-probe-metrics > div:nth-child(4) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .model-probe-metrics > div:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .model-diagnosis-heading h1 {
    font-size: 34px;
  }

  .model-route-panel {
    min-height: 0;
  }

  .model-route-legend {
    margin-top: 24px;
  }

  .model-report-context strong {
    max-width: 210px;
  }

}
