:root {
  --ink: #182230;
  --muted: #606b7d;
  --paper: #f6f7f9;
  --line: #e4e7ec;
  --white: #ffffff;
  --accent: #3758d9;
  --accent-soft: #eef2ff;
  --on-accent: #ffffff;
  --focus: #c75638;
  --warning: #795600;
  --warning-soft: #fff5dd;
  --danger: #a82c30;
  --surface-muted: #eef0f4;
  --radius: 22px;
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
select option[data-provider] {
  font-weight: 700;
}
select option[data-indent] {
  font-weight: 400;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
button:hover,
.button:hover {
  border-color: var(--ink);
}
button[aria-pressed="true"],
.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--white);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.17;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 21px;
  line-height: 1.4;
}
p {
  color: var(--muted);
}
.container {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
.brand {
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.brand-mark {
  background: var(--ink);
  color: var(--white);
  padding: 8px 11px;
  border-radius: 8px;
  margin-right: 10px;
}
.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
/* 「更多」下拉：桌面直接展开为一行链接，手机收成可点开的菜单。 */
.nav-more > summary {
  display: none;
}
.nav-more > div,
.nav-more:not([open]) > div {
  display: flex;
  gap: 24px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero {
  padding: 65px 0 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero h1 {
  margin: 18px 0 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 65%, var(--white) 65%);
}
.hero p {
  max-width: 590px;
}
.hero-note {
  background: var(--ink);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
}
.hero-note .eyebrow {
  color: var(--white);
}
.hero-note h2 {
  margin: 16px 0;
}
.hero-note p {
  color: #b8c7bc;
  font-size: 14px;
}
.hero-note a {
  color: var(--white);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 55px;
}
.stats div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding-left: 25px;
}
.stats div:first-child {
  padding-left: 0;
}
.stats div:last-child {
  border: 0;
}
.stats strong {
  font-size: 34px;
  letter-spacing: -0.06em;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
}
section {
  margin-bottom: 45px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
}
.section-title p {
  font-size: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.segments {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.filters label,
.control-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.filters input,
.filters select {
  margin-top: 6px;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0;
  font-size: 13px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    transform 0.22s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.22s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.22s cubic-bezier(0.2, 0, 0, 1);
}
.card:hover {
  transform: translateY(-3px);
  border-color: #809780;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.pill {
  font-size: 11px;
  white-space: nowrap;
  background: #edf1e8;
  padding: 4px 8px;
  border-radius: 20px;
}
.score-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 2px 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
}
.score-unavailable,
.score-pending {
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
}
.execution-mode-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: #315f4d;
  background: #e8f2e9;
  border: 1px solid #c7ddcb;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.card h3 a {
  text-decoration: none;
}
.card p {
  font-size: 14px;
  flex: 1;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tags span {
  font-size: 11px;
  background: var(--paper);
  padding: 4px 8px;
  border-radius: 5px;
}
.card-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  font-size: 12px;
  flex-wrap: wrap;
}
.card-actions a {
  text-decoration: none;
  font-weight: 650;
}
.card-actions button {
  font-size: 12px;
  padding: 7px 10px;
}
.cards.list {
  grid-template-columns: 1fr;
}
.list .card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px 25px;
}
.list .card-top {
  margin: 0;
}
.list .card h3 {
  margin: 0;
}
.list .card p {
  grid-column: 2;
  margin: 0;
}
.list .tags {
  margin: 0;
  grid-column: 1;
  grid-row: 2;
}
.list .card-actions {
  grid-column: 1/-1;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.load-row {
  text-align: center;
  margin: 30px;
}
.guides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.guide {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.guide span,
.guide a {
  font-size: 12px;
}
.guide h3 {
  margin: 7px 0 14px;
}
.guide-search {
  max-width: 280px;
}
.about {
  background: #e6ecdf;
  padding: 30px;
  border-radius: var(--radius);
}
footer {
  padding: 30px 0 115px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.tray {
  position: fixed;
  z-index: 20;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 24px));
  background: var(--ink);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 12px 40px #14221e40;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.tray span {
  display: block;
  font-size: 12px;
  color: #b8c7bc;
  overflow-wrap: anywhere;
}
.tray .actions {
  gap: 10px;
}
.tray .primary {
  background: var(--white);
  color: var(--ink);
}
/* 对比栏组件：首页与主题页共用。 */
body.has-selection {
  padding-bottom: calc(var(--selection-height, 230px) + 32px);
}
.tray {
  width: min(1200px, calc(100% - 24px));
  display: block;
  color: var(--ink);
  background: var(--white);
  padding: 14px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px #1822301f;
  max-height: min(48dvh, 420px);
  overflow: auto;
}
.selection-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.selection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.selection-header > strong {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.tray .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px;
}
.tray .actions > :is(button, .button) {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.tray .actions > [data-clear] {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}
.tray .actions > [data-clear]:hover {
  background: var(--paper);
  border-color: #c8cfda;
}
.tray .actions > [role="status"] {
  max-width: 240px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.tray .primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.tray .primary:hover {
  background: #2948c4;
  border-color: #2948c4;
}
.tray .selection-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.selection-item {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  min-width: 0;
}
.selection-item > div {
  flex: 1;
  min-width: 0;
}
.selection-item strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-item button {
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 3px;
  border-radius: 8px;
}
.tray[data-count="1"] .selection-item {
  max-width: 640px;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: min(500px, calc(100% - 28px));
  padding: 25px;
}
dialog::backdrop {
  background: #14221e88;
}
dialog button {
  margin: 6px 0;
  display: flex;
  width: 100%;
}
.skip-link {
  position: absolute;
  top: -100px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
  left: 12px;
  background: var(--white);
  padding: 10px;
}
.back {
  display: inline-block;
  margin: 30px 0;
  font-size: 13px;
}
.page-heading {
  max-width: 880px;
  padding: 20px 0;
}
.page-heading h1 {
  margin: 15px 0 22px;
}
.prompt-library details {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 18px;
}
.prompt-library summary {
  cursor: pointer;
  font-weight: 650;
}
.prompt-library pre {
  max-height: 440px;
  overflow: auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.9 ui-monospace,
    "Microsoft YaHei",
    monospace;
  margin: 15px 0;
}
del {
  background: #ffe2dd;
  color: #862c20;
  text-decoration: none;
}
ins {
  background: #dcf1c8;
  color: #275c18;
  text-decoration: none;
}
.compare-main {
  width: min(1800px, calc(100% - 40px));
  margin: auto;
}
.compare-heading {
  margin: 28px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.compare-heading h1 {
  font-size: 32px;
  margin: 0 0 8px;
}
.compare-heading p {
  margin: 0;
  font-size: 13px;
}
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.compare-controls select {
  width: auto;
}
.compare-related-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.compare-related-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--ink);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.compare-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-header label {
  font-size: 12px;
  color: var(--muted);
}
.panel-header select {
  margin: 6px 0 10px;
}
.panel-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.panel-actions button,
.panel-actions a {
  font-size: 12px;
  padding: 7px 9px;
}
.panel-status {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  min-height: 18px;
}
.viewport-shell {
  width: 100%;
  height: 580px;
  position: relative;
  overflow: hidden;
  background: #e7ebe4;
}
.viewport-shell iframe {
  border: 0;
  display: block;
  transform-origin: top left;
  background: white;
}
.frame-placeholder {
  padding: 40px 24px;
}
.panel-text,
.panel-info {
  padding: 22px;
  max-height: 720px;
  overflow: auto;
}
.panel-info dt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.panel-info dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.compare-notice {
  font-size: 12px;
  padding: 13px 16px;
  border-left: 3px solid #7d9a53;
  background: #e9eee2;
  margin-bottom: 20px;
}
.mobile-tabs {
  display: none;
}
.copy-message {
  font-size: 12px;
  color: var(--muted);
}
.share-input {
  max-width: 480px;
}
noscript {
  display: block;
  padding: 20px;
}
.compare-panel h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guides {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    gap: 25px;
  }
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats div {
    padding-left: 15px;
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
  }
  .header-inner {
    min-height: 68px;
  }
  .site-header nav {
    gap: 12px;
    font-size: 12px;
  }
  .nav-more {
    position: relative;
  }
  .nav-more > summary {
    display: block;
    cursor: pointer;
    padding: 10px 0;
    font-size: 12px;
    white-space: nowrap;
  }
  .nav-more:not([open]) > div {
    display: none;
  }
  .nav-more[open] > div {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 5;
    background: #fff;
    padding: 16px;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px #202a2514;
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    margin-right: 5px;
    padding: 6px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 36px 0 20px;
    gap: 10px;
  }
  .hero-note {
    padding: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 35px;
  }
  .stats div {
    padding: 0;
    border: 0;
  }
  .stats strong {
    font-size: 30px;
  }
  .cards,
  .cards.list {
    grid-template-columns: 1fr;
  }
  .list .card {
    display: flex;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .section-title {
    flex-direction: column;
    gap: 0;
  }
  .section-title h2 {
    margin-bottom: 8px;
  }
  .guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide {
    padding: 16px;
  }
  .guide h3 {
    font-size: 17px;
  }
  .guide-search {
    max-width: none;
    margin-bottom: 15px;
  }
  .tray {
    padding: 13px;
    gap: 10px;
    align-items: flex-start;
  }
  .tray > div:first-child {
    min-width: 0;
  }
  .tray > div:first-child span {
    max-height: 38px;
    overflow: hidden;
  }
  .tray .actions {
    flex-direction: column;
  }
  .tray button,
  .tray .button {
    font-size: 12px;
  }
  body.has-selection {
    padding-bottom: calc(
      var(--selection-height, 80px) + 24px + env(safe-area-inset-bottom)
    );
  }
  .tray {
    width: calc(100% - 20px);
    padding: 11px;
    max-height: min(58dvh, 460px);
  }
  .selection-header {
    align-items: flex-start;
    gap: 8px;
  }
  .selection-header > strong {
    padding-top: 7px;
  }
  .tray .selection-items {
    grid-template-columns: minmax(0, 1fr);
  }
  .selection-item {
    min-height: 50px;
    padding: 7px 8px;
  }
  .tray[data-count="1"] .selection-item {
    max-width: none;
  }
  .tray .actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tray .actions > [role="status"] {
    max-width: none;
    text-align: right;
  }
  .tray[data-count="1"] .selection-header {
    align-items: stretch;
    flex-direction: column;
  }
  .tray[data-count="1"] .actions {
    width: 100%;
    flex-direction: row;
  }
  .tray[data-count="1"] .actions > [role="status"] {
    order: 3;
    width: 100%;
    text-align: left;
  }

  .compare-main {
    width: calc(100% - 24px);
  }
  .compare-heading {
    align-items: flex-start;
  }
  .compare-heading h1 {
    font-size: 26px;
  }
  .compare-controls {
    gap: 8px;
  }
  .compare-controls button {
    font-size: 12px;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-panel.mobile-inactive {
    display: none;
  }
  .mobile-tabs {
    display: flex;
    margin: 12px 0;
  }
  .viewport-shell {
    height: 560px;
  }
  .panel-text,
  .panel-info {
    max-height: none;
  }
  .compare-heading .button {
    font-size: 12px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Comparison workspace: the previews own the remaining viewport. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.workspace-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.workspace-home {
  white-space: nowrap;
  font-size: 13px;
  padding: 6px;
}
.workspace-bar #group {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}
.workspace-bar #layout {
  width: 116px;
}
.workspace-help {
  position: relative;
  font-size: 11px;
  color: var(--muted);
}
.workspace-help summary {
  cursor: pointer;
}
.workspace-help[open] .compare-notice {
  position: absolute;
  top: 18px;
  left: 0;
  z-index: 5;
  width: min(620px, calc(100vw - 30px));
  margin: 0;
  box-shadow: 0 8px 30px #14221e25;
}
.compare-grid[data-layout="quad"] {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.compare-grid[data-layout="single"] {
  grid-template-columns: minmax(0, 1fr);
}
.panel-navigation {
  display: flex;
  gap: 3px;
}
#model-picker {
  width: min(720px, calc(100vw - 24px));
  max-height: 85dvh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
}
#model-picker::backdrop {
  background: #14221e66;
}
.picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.picker-heading h2 {
  margin: 0;
  font-size: 20px;
}
.picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.picker-controls label {
  flex: 1;
  min-width: 130px;
  font-size: 12px;
}
.picker-controls select,
.picker-controls input {
  display: block;
  width: 100%;
  margin-top: 5px;
}
#picker-count {
  font-size: 12px;
  color: var(--muted);
}
#model-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.model-choice span,
.model-choice small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.model-choice:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 700px) {
  .workspace-bar {
    flex-wrap: wrap;
    gap: 4px;
  }
  .workspace-bar #group {
    max-width: none;
    width: calc(100% - 70px);
  }
  .workspace-bar #layout {
    flex: 1;
  }
  #model-list {
    grid-template-columns: minmax(0, 1fr);
  }
  #model-picker {
    padding: 12px;
  }
}

@media (max-width: 700px) {
  .workspace-bar #group {
    flex: 1 1 calc(100% - 70px);
  }
}

.model-provider {
  grid-column: 1 / -1;
  margin: 12px 0 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--muted);
  font-size: 14px;
}
.model-provider small,
.picker-order {
  color: var(--muted);
  font-size: 12px;
  font-weight: normal;
}
.score-details {
  font-size: 13px;
  text-align: left;
}
.score-details > summary {
  cursor: pointer;
  color: var(--accent);
  padding-block: 6px;
  font-weight: 600;
}
.score-evidence {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
}
.score-evidence p {
  margin: 0 0 10px;
}
.score-evidence :is(small, .score-context) {
  color: var(--muted);
  font-weight: normal;
}
.score-dimensions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.score-dimension {
  display: grid;
  grid-template-columns: 7em minmax(40px, 1fr) 3.5em;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}
.score-dimension meter {
  width: 100%;
  height: 12px;
  accent-color: var(--accent);
}
.score-dimension > span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score-review-group {
  margin-block: 16px;
}
.score-review-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.score-check-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0 0 8px;
  list-style: none;
}
.score-check-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: normal;
}
.score-check-list strong {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.score-limitations {
  padding-block: 10px;
  border-top: 1px solid var(--line);
  font-weight: normal;
}
.score-limitations ul {
  margin: 8px 0;
  padding-left: 18px;
}
.score-capture-link,
.score-frame-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.capture-collection-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.score-captures > summary {
  min-height: 44px;
  padding-block: 12px;
  cursor: pointer;
  font-weight: 600;
}
.score-captures ul {
  padding-left: 18px;
  margin: 0;
}
/* Shared archive shell: navigation, controls, numeric data and focus. */
:root {
  --radius: 12px;
  --control-radius: 8px;
}
:root .site-header {
  background: var(--white);
}
:root .site-header .header-inner {
  min-height: 64px;
}
:root .site-header .brand {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
:root .site-header .brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-right: 10px;
  border-radius: 10px;
}
:root .site-header nav {
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
:root .site-header nav a {
  color: var(--muted);
}
:root .site-header nav a:hover {
  color: var(--accent);
}
:root :is(button, .button, input, select) {
  border-radius: var(--control-radius);
}
:root :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
:root
  :is(.topic-runs-table, .model-records-table, .conditions-table)
  :is(th, td) {
  font-variant-numeric: tabular-nums;
}
:root .topic-runs-table :is(.topic-run-billing, .topic-run-duration) {
  text-align: left;
}
:root .topic-runs-table .billing-summary p {
  text-align: left;
}
:root .score-dimension meter::-webkit-meter-bar {
  background: var(--line);
  border: 0;
  border-radius: 4px;
}
:root .score-dimension meter::-webkit-meter-optimum-value {
  background: var(--accent);
  border-radius: 4px;
}
:root .score-dimension meter::-moz-meter-bar {
  background: var(--accent);
  border-radius: 4px;
}
@media (max-width: 700px) {
  :root .site-header .header-inner {
    min-height: 56px;
    gap: 10px;
  }
  :root .site-header .brand {
    font-size: 11px;
  }
  :root .site-header .brand-mark {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    border-radius: 8px;
  }
  :root .site-header nav {
    gap: 12px;
    font-size: 12px;
  }
  :root .topic-runs-table :is(.topic-run-billing, .topic-run-duration) {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root :is(button, .button, input, select) {
    transition: none;
  }
}

.selection-toggle {
  display: none;
}
.selection-details {
  display: grid;
  gap: 8px;
}
.selection-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.selection-tools > span {
  color: var(--muted);
}
.selection-tools > button {
  min-height: 36px;
  font-size: 12px;
}
@media (max-width: 700px) {
  .tray .selection-header {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }
  .tray .selection-header > strong {
    padding: 0;
    white-space: nowrap;
  }
  .tray .selection-toggle {
    display: inline-flex;
    min-height: 44px;
    padding: 6px;
    border: 0;
    color: var(--muted);
  }
  .tray .selection-header .actions {
    width: auto;
    flex-direction: row;
    justify-content: flex-end;
  }
  .tray .actions > :is(button, .button) {
    min-height: 44px;
    padding: 6px 10px;
  }
  .tray[data-expanded="false"] .selection-details {
    display: none;
  }
  .tray[data-expanded="false"] .selection-content {
    gap: 0;
  }
  .tray .selection-item button {
    min-width: 44px;
    min-height: 44px;
  }
}
