#view-experience-runs {
  --exp-ink: #1a2923;
  --exp-subtle: #596b61;
  --exp-line: #e0e8e2;
  --exp-green: #22674c;
  --exp-lime: #d6fa9e;
  --exp-radius: 16px;
  --bs-border-radius: 99px;
  --bs-btn-focus-shadow-rgb: 73, 138, 104;
  color: var(--exp-ink);
}

.exp-header,
.exp-card-heading,
.exp-auto-footer,
.exp-model,
.exp-manual-footer,
.exp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.exp-header { margin-bottom: 24px; flex-wrap: wrap; }
.exp-header h1 { color: var(--exp-ink); font-size: clamp(26px, 3vw, 37px); font-weight: 650; letter-spacing: -.04em; }
.exp-header p { margin-top: 6px; color: var(--exp-subtle); font-size: 13px; }
.exp-platform { display: flex; align-items: center; gap: 12px; }
.exp-platform label { margin: 0; white-space: nowrap; }
.exp-platform select { min-width: 125px; }
.exp-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 16px; }
.exp-card {
  min-width: 0;
  border: 1px solid var(--exp-line);
  border-radius: var(--exp-radius);
  padding: clamp(17px, 2vw, 26px);
  background: #fff;
  box-shadow: 0 2px 5px #142e1d05;
}
.exp-card-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.exp-card h2 { font-size: 17px; font-weight: 650; color: inherit; }
.exp-card h3 { font-size: 14px; font-weight: 650; color: inherit; overflow-wrap: anywhere; }
.exp-status { display: inline-flex; align-items: center; gap: 6px; background: #edf1ee; color: #4f6257; }
.exp-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.exp-status:is([data-status=ready], [data-status=waiting], [data-status=completed]) { background: #e3f4e8; color: #216347; }
.exp-status:is([data-status=queued], [data-status=running]) { background: #e3f1f7; color: #245c74; }
.exp-status:is([data-status=paused], [data-status=stopping], [data-status=retry_wait], [data-status=pending_validation], [data-status=skipped]) { background: #fbf1dc; color: #775416; }
.exp-status:is([data-status=failed], [data-status=offline]) { background: #fbeee8; color: #8e3b2e; }

.exp-auto {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 88% 0%, #2d5540 0%, transparent 58%),
    linear-gradient(133deg, #122821, #18392b 96%);
  color: #f4fff5;
  border-color: #284a39;
  overflow: hidden;
}
.exp-auto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#a7d5b273 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 63%);
}
.exp-auto .exp-status { background: #263f37; color: #dbeae1; }
.exp-auto .exp-status:is([data-status=waiting], [data-status=queued], [data-status=running]) { background: #365944; color: var(--exp-lime); }
.exp-auto .exp-status:is([data-status=stopping], [data-status=failed], [data-status=retry_wait]) { background: #575039; color: #ffda99; }
.exp-auto .exp-status[data-status=running]::before,
.exp-phases .current::before { animation: exp-pulse 1.8s ease-out infinite; }
@keyframes exp-pulse {
  from { box-shadow: 0 0 0 0 currentColor; }
  65%, to { box-shadow: 0 0 0 5px transparent; }
}
.exp-auto-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 14px;
  margin: 0 0 16px;
}
.exp-auto-metrics > div { min-width: 0; }
.exp-auto-metrics dt { color: #b8d0c0; font-size: 12px; }
.exp-auto-metrics dd {
  margin: 4px 0 0;
  color: #f2fbf5;
  font-size: 14px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.exp-auto-cursor {
  grid-column: 1 / -1;
  padding-bottom: 13px;
  border-bottom: 1px solid #d4f2dd25;
}
.exp-auto-cursor dt span { margin-left: 6px; color: #a7bcaf; font-size: 10px; }
.exp-auto-cursor dd {
  font-family: "SF Mono", "Cascadia Mono", "Roboto Mono", ui-monospace, monospace;
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -.07em;
  color: var(--exp-lime);
  font-weight: 600;
}
.exp-auto-progress { margin-bottom: 13px; }
.exp-auto .progress { --bs-progress-bg: #ffffff23; --bs-progress-bar-bg: #b1e87f; }
.exp-auto .exp-progress-label { color: #d2e9d6; }
.exp-auto-footer { margin-top: auto; }
.exp-auto-message { font-size: 12px; color: #cee0d4; overflow-wrap: anywhere; }
.exp-auto-footer .btn { flex-shrink: 0; }
.exp-auto-footer .exp-controls { justify-content: flex-end; }

.exp-card .exp-btn-auto,
.exp-card .exp-btn-primary,
.exp-card .exp-btn-outline {
  --bs-btn-padding-x: 13px;
  --bs-btn-padding-y: 7px;
  --bs-btn-font-family: inherit;
  --bs-btn-font-size: 12px;
  --bs-btn-font-weight: 600;
  --bs-btn-border-width: 1px;
  --bs-btn-border-radius: 8px;
  --bs-btn-disabled-opacity: .5;
  min-height: 36px;
  white-space: nowrap;
}
.exp-card .exp-btn-auto {
  --bs-btn-color: #1e3929;
  --bs-btn-bg: var(--exp-lime);
  --bs-btn-border-color: var(--exp-lime);
  --bs-btn-hover-color: #152719;
  --bs-btn-hover-bg: #e5ffc4;
  --bs-btn-hover-border-color: #e5ffc4;
  --bs-btn-active-color: #152719;
  --bs-btn-active-bg: #c0ed7a;
  --bs-btn-active-border-color: #c0ed7a;
  --bs-btn-disabled-color: #1e3929;
  --bs-btn-disabled-bg: var(--exp-lime);
  --bs-btn-disabled-border-color: var(--exp-lime);
}
.exp-card .exp-btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #24543e;
  --bs-btn-border-color: #24543e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #31694f;
  --bs-btn-hover-border-color: #31694f;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1d4532;
  --bs-btn-active-border-color: #1d4532;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #24543e;
  --bs-btn-disabled-border-color: #24543e;
}
.exp-card .exp-btn-outline {
  --bs-btn-color: #2c5542;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #d3e1d7;
  --bs-btn-hover-color: #244e39;
  --bs-btn-hover-bg: #eff7f0;
  --bs-btn-hover-border-color: #abd1b9;
  --bs-btn-active-color: #244e39;
  --bs-btn-active-bg: #e4f2e8;
  --bs-btn-active-border-color: #abd1b9;
  --bs-btn-disabled-color: #51665a;
  --bs-btn-disabled-bg: #f6f8f6;
  --bs-btn-disabled-border-color: #d3e1d7;
}
#view-experience-runs :is(button, input, select):focus-visible { outline: 2px solid #498a68; outline-offset: 2px; }
.exp-auto #experience-auto-toggle:focus-visible { outline-color: #e2ffb6; }
#view-experience-runs .btn:disabled { cursor: default; }
#view-experience-runs :is(input, select) {
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  font-size: 13px;
  border-color: #d7e2da;
  border-radius: 8px;
}
#view-experience-runs :is(input, select):disabled { background-color: #f4f7f5; color: #687e6e; }
#view-experience-runs label { margin-bottom: 5px; font-size: 12px; font-weight: 600; color: #405649; }
#view-experience-runs .exp-platform label, #view-experience-runs .exp-page-jump label { margin-bottom: 0; }
.exp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exp-model { padding-bottom: 15px; border-bottom: 1px solid var(--exp-line); }
.exp-model .exp-help { margin-top: 3px; overflow-wrap: anywhere; }
.exp-settings { margin-top: 14px; }
.exp-settings .exp-help, .exp-manual .exp-help { margin-top: 9px; }
#view-experience-runs #experience-concurrency { width: 68px; }
.exp-help, .exp-note { color: var(--exp-subtle); font-size: 12px; line-height: 1.6; }
.exp-note { font-size: 11px; font-weight: 400; }
.exp-feedback { margin-top: 6px; font-size: 12px; color: var(--exp-green); }
.exp-feedback.error-text { color: #92392d; }
.exp-feedback:empty { display: none; }

.exp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.exp-field-wide { grid-column: 1 / -1; }
.exp-manual-footer { align-items: flex-end; margin-top: 12px; }
.exp-manual-footer input { width: 100px; }
.exp-manual-footer .btn span { margin-left: 7px; font-size: 13px; }
.exp-run { display: flex; flex-direction: column; scroll-margin-top: 20px; }
.exp-run:focus-visible { outline: 2px solid #498a68; outline-offset: 2px; }
.exp-run h3 { margin-bottom: 4px; font-size: 15px; }
.exp-run-message { font-size: 13px; color: var(--exp-subtle); overflow-wrap: anywhere; }
.exp-run-progress { margin-top: 13px; }
.exp-progress-label { font-size: 12px; margin-bottom: 5px; color: var(--exp-subtle); font-variant-numeric: tabular-nums; }
#view-experience-runs .progress {
  --bs-progress-height: 7px;
  --bs-progress-border-radius: 99px;
  --bs-progress-bar-transition: width .36s cubic-bezier(.25,.65,.35,1);
}
.exp-run .progress { --bs-progress-bg: #e6efe8; --bs-progress-bar-bg: #46845c; }
.exp-phases {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #f5f8f5;
  border: 1px solid #e7eee8;
  border-radius: 12px;
}
.exp-phases li {
  position: relative;
  padding: 27px 4px 9px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: #54695b;
  overflow-wrap: anywhere;
}
.exp-phases li::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 11px auto auto 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border: 1px solid #abbfb1;
  border-radius: 50%;
  background: #f5f8f5;
}
.exp-phases li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  border-top: 1px solid #d7e2d9;
}
.exp-phases .current { color: #226247; font-weight: 650; }
.exp-phases .current::before, .exp-phases .done::before { border-color: #478761; background: #478761; }
.exp-run-metrics { padding: 0; margin: 0 0 11px; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.exp-run-metrics li { background: #edf4ef; padding: 3px 7px; border-radius: 5px; font-size: 11px; color: #3a5a49; overflow-wrap: anywhere; }
.exp-pending-validation {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid #ebdcb9;
  border-radius: 8px;
  background: #fff9ed;
  color: #654c24;
  font-size: 12px;
}
.exp-pending-validation summary { cursor: pointer; font-weight: 600; }
.exp-pending-validation ul { margin: 6px 0 0; padding: 0; list-style: none; }
.exp-pending-validation li { padding: 8px 0; border-top: 1px solid #ecdcc0; overflow-wrap: anywhere; }
.exp-pending-validation p { margin: 4px 0; }
.exp-run .exp-controls { margin-top: auto; padding-top: 8px; }
.exp-run .exp-controls:not(:has(button:not([hidden]))) { display: none; }

.exp-history { margin-top: 16px; }
.exp-history .exp-card-heading { align-items: center; }
.exp-history table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.exp-history :is(th, td) { text-align: left; color: var(--exp-ink); overflow-wrap: anywhere; }
.exp-history th { font-size: 11px; font-weight: 600; background: #f1f6f2; color: var(--exp-subtle); }
.exp-history td { border-bottom-color: var(--exp-line); }
.exp-history td:first-child { font-weight: 600; }
.exp-history td:nth-child(2) { white-space: pre-line; }
.exp-history :is(th, td):nth-child(3) { width: 96px; }
.exp-history :is(th, td):nth-child(4) { width: 68px; }
.exp-history :is(th, td):nth-child(5) { width: 174px; }
.exp-history :is(th, td):nth-child(6) { width: 98px; text-align: right; }
.exp-history tr.selected td { background: #eff7f1; }
.exp-history .exp-empty { padding: 20px 0; color: var(--exp-subtle); text-align: center; font-size: 13px; }
.exp-pagination { flex-wrap: wrap; padding-top: 12px; color: var(--exp-subtle); font-size: 12px; }
.exp-page-jump { display: flex; align-items: center; gap: 5px; }
#view-experience-runs #experience-run-page-number { width: 55px; }

@media (max-width: 800px) {
  .exp-grid { grid-template-columns: minmax(0, 1fr); }
  .exp-history table:not([hidden]), .exp-history tbody { display: block; }
  .exp-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .exp-history tbody { display: grid; gap: 8px; }
  .exp-history tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    border: 1px solid var(--exp-line);
    border-radius: 10px;
    padding: 10px;
  }
  .exp-history tbody tr.selected { background: #eff7f1; border-color: #b8d5c2; }
  .exp-history tbody tr td:nth-child(n) { width: auto; padding: 0; border: 0; }
  .exp-history td:nth-child(2), .exp-history td:nth-child(5) { grid-column: 1 / -1; }
  .exp-history td:nth-child(2) { grid-row: 2; }
  .exp-history td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .exp-history td:nth-child(4) { grid-row: 4; }
  .exp-history td:nth-child(5) { grid-row: 3; }
  .exp-history td:nth-child(5)::before { content: "结束时间 "; color: var(--exp-subtle); }
  .exp-history td:nth-child(6) { grid-column: 2; grid-row: 4; }
}
@media (max-width: 400px) {
  .exp-header { margin-bottom: 15px; }
  .exp-auto-footer { flex-direction: column; align-items: stretch; gap: 9px; }
  .exp-auto-footer .btn { flex: 1; }
  .exp-auto-metrics dd:not(#experience-auto-processed) { font-size: 12px; }
  .exp-phases li { padding-inline: 2px; }
}
