.topic-page .page-heading {
  margin: 24px 0;
  padding: 12px 0;
}
.topic-page .page-heading h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 12px 0;
}
.topic-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topic-toolbar label {
  font-size: 12px;
  max-width: 100%;
}
.topic-toolbar select {
  display: block;
  width: min(420px, 100%);
  margin-top: 6px;
}
.topic-toolbar .segments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.topic-toolbar [aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
}
@media (max-width: 700px) {
}
.topic-page #topic-content {
  padding-top: 20px;
  padding-bottom: 40px;
}
.topic-page .back {
  margin: 0;
}
.topic-page .page-heading {
  margin: 8px 0 12px;
  padding: 0;
  max-width: none;
}
.topic-page .page-heading h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 6px 0;
}
.topic-page .page-heading p {
  margin: 0;
  font-size: 13px;
}
.topic-toolbar {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.topic-toolbar > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.topic-toolbar select {
  margin: 0;
  width: 220px;
  padding: 8px 10px;
}
.topic-toolbar button {
  padding: 8px 12px;
  font-size: 13px;
}
.topic-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}
.topic-context h2 {
  font-size: 12px;
  font-weight: normal;
  color: var(--muted);
  margin: 0;
}
.topic-context button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 12px;
}
.pricing-context {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.pricing-context h2 {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 13px;
}
.pricing-context p {
  margin: 4px 0;
}
.pricing-context details {
  margin-top: 5px;
}
.pricing-context summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
}
.pricing-context > summary {
  width: auto;
  font-weight: 600;
}
.pricing-context > summary span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: normal;
}
.pricing-examples {
  max-width: 1000px;
  padding-top: 4px;
  overflow-wrap: anywhere;
}
.pricing-examples ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 6px 0 0;
  padding-left: 18px;
}
.pricing-examples a {
  color: var(--accent);
}
.topic-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.5fr) minmax(160px, 1fr) minmax(280px, 1.6fr)
    auto;
  align-items: end;
  gap: 10px;
}
.topic-more-filters > summary {
  display: none;
  cursor: pointer;
  color: var(--accent);
}
.topic-more-filters > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(150px, 1fr);
  gap: 10px;
}
.topic-filters label {
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
}
.topic-filters input,
.topic-filters select {
  display: block;
  margin-top: 4px;
  height: 36px;
  padding: 6px 10px;
  font-size: 12px;
}
.topic-filters button {
  height: 36px;
  font-size: 12px;
  padding: 6px 10px;
}
.topic-filters button:disabled {
  opacity: 0.45;
  cursor: default;
}
.topic-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
}
.topic-results-heading #topic-count {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
#topic-results-help {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.topic-run-group + .topic-run-group {
  margin-top: 16px;
}
.topic-run-group {
  padding: 0;
  margin-bottom: 0;
}
.topic-table-hint {
  display: none;
}
.topic-run-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.topic-run-group > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topic-run-group h2 {
  font-size: 13px;
  margin: 0;
}
.topic-run-group > header a {
  font-size: 12px;
  flex-shrink: 0;
}
.version-badge {
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 12px;
}
.topic-group-count {
  font-size: 11px;
  color: var(--muted);
}
.topic-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.topic-runs-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.topic-runs-table thead {
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}
.topic-runs-table th,
.topic-runs-table td {
  padding: 7px 9px;
  vertical-align: top;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.topic-runs-table tbody tr {
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.topic-runs-table tbody tr:hover {
  background: var(--accent-soft);
}
.topic-runs-table tbody th {
  font-weight: 600;
}
.topic-run-model {
  width: 18%;
}
.topic-run-model-maker {
  color: var(--muted);
  font-weight: normal;
}
.topic-runs-table small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.topic-runs-table th:nth-child(2) {
  width: 14%;
}
.topic-runs-table th:nth-child(3) {
  width: 9%;
}
.topic-runs-table th:nth-child(4) {
  width: 9%;
}
.topic-runs-table th:nth-child(5) {
  width: 17%;
}
.topic-runs-table th:nth-child(6) {
  width: 10%;
}
.topic-runs-table th:nth-child(7) {
  width: 11%;
}
.topic-runs-table th:nth-child(8) {
  width: 12%;
}
.mobile-cell-label {
  display: none;
}
.topic-run-model .execution-mode-chip {
  margin-left: 8px;
  vertical-align: middle;
}
.topic-run-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
}
.topic-run-billing {
  color: var(--ink);
  font-size: 12px;
}
.topic-run-duration strong {
  font-weight: 600;
}
.topic-run-input .execution-mode-chip {
  margin: 0;
  font-size: 10px;
  white-space: normal;
}
.billing-summary {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}
.billing-summary summary {
  cursor: pointer;
}
.billing-summary p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.matrix-record > .billing-summary {
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
}
.topic-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.topic-row-actions a {
  font-size: 12px;
  text-decoration: none;
}
.topic-row-actions a:hover {
  text-decoration: underline;
}
.topic-row-actions > a:first-child {
  font-weight: 600;
}
.topic-row-actions button {
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 5px;
  min-height: 30px;
}
@media (min-width: 701px) {
  .topic-row-actions {
    display: grid;
    grid-template-columns: auto auto;
  }
  .topic-row-actions button {
    grid-column: 1;
    grid-row: 2;
  }
  .topic-row-actions > a:last-child {
    grid-column: 2;
    grid-row: 2;
  }
}
.topic-empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}
.topic-empty h2 {
  font-size: 16px;
}
.topic-page [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .topic-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topic-search {
    grid-column: 1 / -1;
  }
  .topic-filters button {
    justify-self: stretch;
  }
  .topic-more-filters {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  .topic-table-hint {
    display: none;
    font-size: 11px;
    margin: 0 0 6px;
  }
  .topic-page #topic-content {
    padding-top: 14px;
  }
  .topic-toolbar {
    align-items: stretch;
    gap: 10px;
  }
  .topic-toolbar > label {
    width: 100%;
  }
  .topic-toolbar select {
    flex: 1;
    min-width: 0;
  }
  .topic-toolbar .segments {
    width: 100%;
  }
  .topic-toolbar .segments button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
  }
  .topic-results-heading {
    flex-direction: column;
    align-items: start;
    gap: 4px;
  }
  .topic-run-group > header {
    gap: 8px;
    flex-wrap: wrap;
  }
  .topic-runs-table th,
  .topic-runs-table td {
    padding: 8px 10px;
  }
  .topic-row-actions button {
    min-height: 36px;
  }
  .topic-table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .topic-runs-table {
    display: block;
    min-width: 0;
  }
  .topic-runs-table thead {
    display: none;
  }
  .topic-runs-table tbody {
    display: grid;
    gap: 12px;
  }
  .topic-runs-table .topic-run-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 12px;
    gap: 8px;
  }
  .topic-runs-table th,
  .topic-runs-table td {
    padding: 0;
    white-space: normal;
    min-width: 0;
  }
  .topic-run-model {
    grid-column: 1 / -1;
    width: auto;
    overflow-wrap: anywhere;
  }
  .topic-run-provider {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    align-items: start;
    grid-column: 1 / -1;
    width: auto;
    color: var(--ink);
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .mobile-cell-label {
    display: block;
    color: var(--muted);
  }
  .topic-run-date {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    text-align: left;
  }
  .topic-run-date::before {
    content: "实验日期：";
  }
  .topic-run-condition small {
    display: inline;
    margin-left: 6px;
  }
  .topic-run-input {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .topic-run-input small {
    margin: 0;
  }
  .topic-run-billing::before,
  .topic-run-duration::before {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 3px;
  }
  .topic-run-billing::before {
    content: "费用";
  }
  .topic-run-duration::before {
    content: "耗时";
  }
  .topic-run-billing:has(details[open]) {
    grid-column: 1 / -1;
  }
  .topic-run-actions {
    grid-column: 1 / -1;
  }
  .topic-row-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .topic-row-actions :is(a, button) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    padding: 6px 8px;
  }
  .topic-row-actions a:nth-child(2) {
    color: var(--accent);
    font-weight: 600;
  }
  .topic-filters :is(input, select, button) {
    min-height: 44px;
    font-size: 14px;
  }
  .topic-filters label,
  #topic-results-help {
    font-size: 12px;
  }
}

/* Model overview and compact records. */
.topic-toolbar .segments {
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 2px;
}
.topic-toolbar .segments button {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.topic-toolbar .segments button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
}
.model-overview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.model-overview-toolbar button {
  flex-shrink: 0;
  padding: 5px 10px;
  font-size: 12px;
}
.topic-model-group {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: clip;
}
.topic-model-group > header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
}
.model-group-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px 16px;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: var(--ink);
}
.model-group-toggle:hover {
  background: transparent;
  color: var(--accent);
}
.model-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.model-heading strong {
  font-size: 16px;
}
.model-record-count,
.model-version {
  font-size: 11px;
  font-weight: normal;
  color: var(--muted);
  background: var(--paper);
  border-radius: 5px;
  padding: 2px 6px;
}
.model-group-meta {
  grid-column: 2;
  font-size: 12px;
  font-weight: normal;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.model-efforts {
  grid-column: 1 / 3;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.model-efforts > span {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: normal;
}
.model-toggle-label {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 12px;
  color: var(--accent);
}
.model-quick-preview {
  flex-shrink: 0;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.model-quick-preview small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: normal;
}
.model-quick-preview .execution-mode-chip {
  margin-left: 5px;
  font-size: 10px;
}
/* Fixed columns keep each model's records aligned. */
.topic-model-group > header {
  background: linear-gradient(110deg, var(--white), #f4f6fc);
}
.topic-model-group:has([data-model-toggle][aria-expanded="true"])
  .model-efforts,
.topic-model-group:has([data-model-toggle][aria-expanded="true"])
  .model-quick-preview {
  display: none;
}
.model-group-records {
  border-top: 1px solid var(--line);
}
.model-table-hint {
  display: none;
}
.model-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.model-records-table {
  width: 100%;
  min-width: 1050px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.model-records-table thead {
  background: #f8f9fc;
  color: var(--muted);
  font-size: 12px;
}
.model-records-table th:nth-child(1) {
  width: 10%;
}
.model-records-table th:nth-child(2) {
  width: 10%;
}
.model-records-table th:nth-child(3) {
  width: 16%;
}
.model-records-table th:nth-child(4) {
  width: 20%;
}
.model-records-table th:nth-child(5) {
  width: 13%;
}
.model-records-table th:nth-child(6) {
  width: 16%;
}
.model-records-table th:nth-child(7) {
  width: 15%;
}
.model-records-table :is(th, td) {
  padding: 9px 12px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.model-records-table thead th {
  padding-block: 7px;
  font-weight: 500;
}
.model-records-table tbody tr {
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.model-run-record:hover {
  background: #f7f9ff;
}
.model-run-record:target {
  background: var(--accent-soft);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.model-record-identity {
  font-weight: normal;
}
.model-record-effort {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.model-records-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: normal;
}
.model-record-date,
.model-record-duration,
.model-record-fee {
  font-variant-numeric: tabular-nums;
}
.model-record-date {
  color: var(--muted);
}
.model-record-duration strong {
  font-weight: 600;
}
.model-record-input .execution-mode-chip {
  margin: 0;
  font-size: 10px;
  white-space: normal;
}
.model-record-actions {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px 10px;
}
.model-record-actions a {
  text-decoration: none;
  font-size: 12px;
}
.model-preview {
  font-weight: 600;
}
.model-record-actions button {
  grid-row: 2;
  grid-column: 1;
  padding: 4px 7px;
  min-height: 28px;
  font-size: 11px;
  white-space: nowrap;
}
.model-record-reader {
  grid-column: 2;
  grid-row: 2;
}
.model-history-controls td {
  background: #f8f9fc;
  font-size: 11px;
}
.model-history-controls button {
  margin-right: 12px;
  padding: 4px 8px;
  font-size: 11px;
}
.model-history {
  background: #f8f9fc;
}
@media (max-width: 700px) {
  .topic-page .page-heading {
    margin: 10px 0 12px;
  }
  .topic-model-group:has([data-model-toggle][aria-expanded="true"])
    .model-group-meta {
    grid-column: 1;
  }
  .topic-model-group:has([data-model-toggle][aria-expanded="true"])
    .model-toggle-label {
    grid-row: 2;
    min-height: 24px;
  }
  .topic-toolbar {
    padding: 8px 0;
  }
  .topic-context {
    margin: 4px 0;
  }
  .topic-context button {
    min-height: 44px;
  }
  .pricing-context {
    padding: 0 10px;
    margin: 4px 0 10px;
  }
  .pricing-context > summary {
    min-height: 44px;
    align-content: center;
  }
  .pricing-context[open] {
    padding-bottom: 10px;
  }
  .pricing-context > summary span {
    font-size: 11px;
  }
  .topic-filters {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 8px;
  }
  .topic-search {
    grid-column: auto;
  }
  .topic-more-filters {
    grid-column: 1;
  }
  .topic-more-filters > summary {
    display: list-item;
    min-height: 44px;
    align-content: center;
    font-size: 12px;
  }
  .topic-more-filters[open] {
    grid-column: 1 / -1;
  }
  .topic-filters #topic-reset {
    justify-self: end;
    width: auto;
    border: 0;
    color: var(--muted);
    background: transparent;
  }
  .topic-filters #topic-reset:disabled {
    display: none;
  }
  .topic-results-heading {
    margin-top: 4px;
  }
  .model-overview-toolbar {
    font-size: 11px;
  }
  .topic-model-group > header {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }
  .model-group-toggle {
    flex-basis: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
  }
  .model-heading,
  .model-group-meta {
    grid-column: 1 / -1;
  }
  .model-heading strong {
    font-size: 15px;
  }
  .model-group-meta {
    font-size: 11px;
  }
  .model-toggle-label {
    grid-column: 2;
    grid-row: 3;
    min-height: 32px;
    align-content: center;
  }
  .model-quick-preview {
    min-height: 44px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }
  .model-quick-preview small {
    margin: 0;
  }
  .model-table-hint {
    display: block;
    margin: 0;
    padding: 8px 12px;
    color: var(--muted);
    background: #f8f9fc;
    font-size: 11px;
  }
  .model-records-table {
    min-width: 1050px;
  }
  .model-records-table :is(th, td) {
    padding-inline: 10px;
  }
  .model-record-actions :is(a, button),
  .model-history-controls :is(a, button),
  .model-overview-toolbar button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .model-record-actions {
    gap: 4px 10px;
  }
  .model-records-table thead th:first-child,
  .model-record-identity {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--white);
    box-shadow: 1px 0 var(--line);
  }
}
/* Scan works first; execution provenance is available on demand. */
.topic-runs-table {
  table-layout: fixed;
  min-width: 0;
}
.topic-runs-table th:nth-child(n) {
  width: auto;
}
.topic-runs-table thead th:nth-child(1) {
  width: 11%;
}
.topic-runs-table thead th:nth-child(2) {
  width: 20%;
}
.topic-runs-table thead th:nth-child(3) {
  width: 10%;
}
.topic-runs-table thead th:nth-child(4) {
  width: 18%;
}
.topic-runs-table thead th:nth-child(5) {
  width: 17%;
}
.topic-runs-table thead th:nth-child(6) {
  width: 12%;
}
.topic-runs-table thead th:nth-child(7) {
  width: 12%;
}
.topic-run-art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
  border-radius: 6px;
}
.topic-capture-link {
  position: relative;
  display: block;
  min-height: 44px;
}
.topic-capture-count {
  position: absolute;
  right: 3px;
  bottom: 3px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  padding: 1px 4px;
}
.topic-run-input {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.run-context {
  font-size: 12px;
  font-weight: normal;
  margin-top: 6px;
}
.run-context summary {
  cursor: pointer;
  color: var(--muted);
}
.run-context dl {
  margin: 8px 0;
}
.run-context dt {
  color: var(--muted);
  margin-top: 8px;
}
.run-context dd {
  margin: 0;
  text-align: left;
  font-size: 12px;
}
.topic-run-score .score-evidence {
  padding: 8px;
}
@media (min-width: 701px) {
  .topic-runs-table:has(.score-details[open]) {
    table-layout: fixed;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(1) {
    width: 11%;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(2) {
    width: 14%;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(3) {
    width: 9%;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(4) {
    width: 42%;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(5) {
    width: 10%;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(6) {
    width: 6%;
  }
  .topic-runs-table:has(.score-details[open]) thead th:nth-child(7) {
    width: 8%;
  }
}
.topic-run-score .score-dimension {
  grid-template-columns: 6em minmax(24px, 1fr) 3em;
  gap: 4px;
  font-size: 11px;
}
.topic-run-duration {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .topic-runs-table .topic-run-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .topic-runs-table .topic-run-art {
    grid-column: 1;
    grid-row: 1;
  }
  .topic-runs-table .topic-run-model {
    grid-column: 2;
    grid-row: 1;
    padding-bottom: 22px;
  }
  .topic-run-score {
    grid-column: 1 / -1;
  }
  .topic-run-billing {
    grid-column: 1 / -1;
  }
  .topic-run-duration {
    grid-column: 1 / -1;
  }
  .topic-run-billing::before,
  .topic-run-duration::before {
    display: inline;
    margin-right: 8px;
  }
  .topic-run-score .score-dimension {
    font-size: 12px;
  }
  .topic-run-group > header {
    margin-top: 4px;
  }
}

@media (max-width: 700px) {
  /* 手机端把首屏控件压紧，让第一条实验记录尽早出现。 */
  .topic-page #topic-content {
    padding-top: 8px;
  }
  .topic-page .page-heading {
    margin: 4px 0 8px;
  }
  .topic-page .page-heading .eyebrow {
    display: none;
  }
  .topic-page .page-heading h1 {
    margin: 0 0 4px;
  }
  .topic-page .page-heading p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .topic-page .topic-testing-status {
    margin-top: 4px;
  }
  .topic-toolbar {
    padding: 4px 0;
  }
  .topic-page .topic-filters {
    gap: 6px;
  }
  .topic-page .topic-results-heading {
    gap: 2px;
  }
  .topic-run-group > header {
    padding: 6px 0;
  }
}

.topic-selection-relation {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (min-width: 701px) {
  .topic-runs-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--paper);
  }
}
@media (max-width: 700px) {
  .run-context > summary,
  .topic-run-billing details > summary,
  .topic-run-group > header > a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .topic-page #topic-results-help {
    display: none;
  }
  .topic-runs-table .topic-run-facts {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  .topic-run-facts .run-context {
    margin-top: 0;
  }
  .topic-run-facts .run-context > summary {
    color: var(--muted);
    border-top: 1px solid var(--line);
  }
  .topic-run-facts .run-context dl {
    display: grid;
    grid-template-columns: 7em minmax(0, 1fr);
    align-items: start;
    gap: 12px 8px;
  }
  .topic-run-facts .run-context :is(dt, dd) {
    margin: 0;
    text-align: left;
    min-width: 0;
    grid-column: auto;
  }
  .topic-run-facts :is(.topic-run-billing, .topic-run-duration)::before {
    content: none;
  }
  .topic-run-facts .topic-run-provider {
    display: block;
  }
  .topic-run-facts .billing-summary > summary {
    padding: 0;
  }
  .topic-runs-table .topic-run-score {
    grid-row: 2;
  }
  .topic-runs-table .topic-run-actions {
    grid-row: 3;
  }
}

.topic-run-model {
  font-size: 14px;
}
.topic-run-score .score-details > summary {
  color: var(--ink);
  font-weight: 600;
}
.topic-run-billing .billing-summary > summary {
  color: var(--muted);
}
@media (max-width: 700px) {
  .topic-toolbar .segments button {
    min-height: 44px;
  }
  .topic-run-score .score-details > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .topic-run-score .score-details > summary::before {
    content: "+";
    margin-right: 6px;
    color: var(--muted);
  }
  .topic-run-score .score-details[open] > summary::before {
    content: "−";
  }
  .topic-run-model {
    font-size: 15px;
  }
}
