:root {
  color-scheme: light;
  --ink: #152f29;
  --muted: #4f675e;
  --forest: #155942;
  --line: #cfddd6;
  --pale: #e7f3eb;
  --paper: #f3f6f2;
  --deep: #103b30;
  --amber: #98682e;
  --shadow: 0 2px 5px #14362609;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    1rem/1.55 'Inter',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s;
}
button {
  cursor: pointer;
}
a {
  color: var(--forest);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #247c60;
  outline-offset: 3px;
}
.shell {
  width: min(1220px, calc(100% - 64px));
  margin: auto;
}
.mast {
  background: var(--deep);
  color: white;
}
.mast-in {
  display: flex;
  align-items: center;
  gap: 52px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  align-content: center;
  gap: 3px;
  justify-content: center;
  border-radius: 8px;
  background: #cfebba;
}
.brand-mark i {
  width: 16px;
  height: 3px;
  background: #28563f;
  transform: skew(-28deg);
}
.brand-mark i:nth-child(2) {
  width: 13px;
}
.brand-mark i:nth-child(3) {
  width: 10px;
}
.mast nav {
  align-self: stretch;
  display: flex;
  gap: 25px;
}
.mast nav a {
  color: #c4d5cc;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  position: relative;
}
.mast nav a.active {
  color: #fff;
}
.mast nav a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #bfe0a8;
}
.account {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  font-size: 0.85rem;
  color: #cbded1;
}
.account button {
  padding: 6px 11px;
  border: 1px solid #78978b;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}
.account button:hover {
  background: #275445;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 24px;
}
.heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.28rem);
  line-height: 1.24;
  letter-spacing: -0.04em;
}
.heading p {
  color: var(--muted);
  margin: 8px 0 0;
}
.flow-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #426252;
  font-size: 0.86rem;
  white-space: nowrap;
}
.flow-hint i {
  width: 17px;
  border-top: 1px solid #94b49d;
}
.setup-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 20px;
}
.card,
.launch,
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card {
  overflow: hidden;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 1.23rem;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.025em;
}
.toggle {
  display: flex;
  padding: 3px;
  border-radius: 7px;
  background: #edf2ed;
  gap: 2px;
}
.toggle button,
.tabbar button {
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 0.9rem;
}
.toggle button {
  padding: 3px 11px;
  border-radius: 5px;
}
.toggle button[aria-pressed='true'] {
  background: #fff;
  color: var(--forest);
  box-shadow: 0 1px 4px #24432c26;
  font-weight: 650;
}
.provider-label,
.muted {
  color: var(--muted);
}
.provider-label {
  font-size: 0.92rem;
}
.choices,
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.choices th,
.data-table th {
  font-size: 0.85rem;
  font-weight: 550;
  background: #f3f7f3;
  color: var(--muted);
}
.choices th,
.choices td {
  padding: 0 12px;
  height: 43px;
  white-space: nowrap;
}
.choices th {
  height: 37px;
}
.choices th:first-child,
.choices td:first-child {
  padding-left: 20px;
}
.choices th:last-child,
.choices td:last-child {
  padding-right: 20px;
}
.choices tbody tr {
  border-top: 1px solid #e3ebe5;
  cursor: pointer;
}
.choices tbody tr:hover {
  background: #f3f8f3;
}
.choices tbody tr.selected {
  background: #e5f2e8;
  box-shadow: inset 3px 0 0 #247454;
}
.choices td {
  font-size: 0.94rem;
}
.choices small {
  font-size: inherit;
  font-weight: 400;
}
.num,
.right {
  text-align: right;
}
.num,
.metric strong,
.clock {
  font-variant-numeric: tabular-nums;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
}
.choice input {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #9aafa0;
  border-radius: 50%;
  margin: 0;
  flex: none;
}
.choice input:checked {
  border: 4px solid var(--forest);
  background: #fff;
}
.models .choice input {
  position: absolute;
  opacity: 0;
}
.models tr:focus-within {
  outline: 2px solid var(--forest);
  outline-offset: -3px;
}
.choice img,
.model-logo {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: none;
}
.models tbody td:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}
.launch {
  margin: 18px 0 36px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: #bbd2c2;
}
.launch strong {
  font-size: 1.03rem;
}
.launch p,
.file-note,
.upload-limit {
  margin: 4px 0 0;
  font-size: 0.87rem;
  color: var(--muted);
}
.primary,
.secondary {
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 650;
  white-space: nowrap;
  font-size: 0.95rem;
}
.primary {
  border: 1px solid #13563e;
  background: var(--forest);
  color: #fff;
  min-width: 125px;
}
.primary:hover {
  background: #0a4933;
}
.primary:disabled {
  opacity: 0.5;
  cursor: default;
}
.secondary {
  background: #fff;
  color: var(--forest);
  border: 1px solid #bbcec1;
  display: inline-block;
}
.secondary:hover {
  background: var(--pale);
  text-decoration: none;
}
.error {
  padding: 13px 17px;
  color: #8d281f;
  background: #fff1ed;
  border: 1px solid #edc9bb;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.upload-pane {
  padding: 24px;
}
.drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  min-height: 180px;
  border: 1.5px dashed #8baa98;
  border-radius: 10px;
  background: #f5faf5;
  cursor: pointer;
  text-align: center;
  padding: 10px;
  overflow-wrap: anywhere;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.drop:focus-within,
.drop.over {
  outline: 2px solid var(--forest);
  background: #e8f3e9;
}
.drop span:not(.file-icon),
.attach p {
  font-size: 0.88rem;
  color: var(--muted);
}
.file-icon {
  font: 600 23px/36px sans-serif;
  color: #286547;
  background: #e0efdf;
  border-radius: 9px;
  width: 37px;
  height: 37px;
}
.attach {
  margin: 19px 0 10px;
}
.attach summary,
details summary {
  cursor: pointer;
}
.attach input {
  display: block;
  max-width: 100%;
  font-size: 0.88rem;
}
.back {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.metadata img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.badge,
.pill {
  display: inline-block;
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.83rem;
  background: #edf3ef;
  color: #3f6250;
}
.badge.running,
.badge.done {
  background: #dff0df;
  color: #205737;
}
.badge.failed {
  background: #f9e5df;
  color: #893625;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 22px;
}
.steps li {
  border-top: 3px solid #dce5de;
  padding: 9px 0 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: #6c7c72;
}
.steps li strong {
  font-size: 1.05rem;
}
.steps li small {
  font-size: 0.78rem;
}
.steps li.active {
  border-color: #25815c;
  color: #10593d;
}
.steps li.done {
  border-color: #88b69b;
  color: var(--forest);
}
.steps li.failed {
  border-color: #b2513b;
  color: #8e3c29;
}
.live-line {
  padding: 10px 22px;
  background: #f3f7f3;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.live-line span:last-child {
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.metric {
  padding: 15px 20px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.metric strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: #1b4935;
}
.tabbar {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabbar button {
  padding: 15px 14px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tabbar button[aria-pressed='true'] {
  color: var(--forest);
  font-weight: 650;
  border-color: var(--forest);
}
.empty,
.panel-note {
  color: var(--muted);
  margin: 0;
  padding: 18px 22px;
}
.panel-note {
  font-size: 0.91rem;
  background: #f8faf7;
  border-bottom: 1px solid #e1e9e2;
}
.table-wrap {
  overflow-x: auto;
}
.data-table td,
.data-table th {
  padding: 9px 16px;
  border-bottom: 1px solid #e4ebe5;
  font-size: 0.9rem;
}
.data-table td {
  overflow-wrap: anywhere;
}
.data-table th {
  white-space: nowrap;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table summary {
  min-width: 110px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e9e2;
}
.filters select {
  font-size: 0.88rem;
  background: white;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--ink);
}
.filters span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-left: auto;
}
.issue {
  padding: 0 19px;
  border-bottom: 1px solid #e4ebe4;
}
.issue:last-child {
  border-bottom: 0;
}
.issue summary {
  padding: 12px 0;
  color: var(--ink);
}
.issue summary strong {
  margin-right: 10px;
}
.issue .pill {
  margin: 0 3px;
}
.issue-body {
  padding: 0 0 14px;
  word-break: break-word;
}
.issue-body p {
  margin: 5px 0;
  font-size: 0.94rem;
}
.issue-body b {
  color: #436452;
  margin-right: 8px;
}
.event-list {
  list-style: none;
  padding: 9px 20px;
  margin: 0;
}
.event-list li {
  display: grid;
  grid-template-columns: 72px 38px 1fr;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.91rem;
  border-bottom: 1px solid #edf1ed;
  overflow-wrap: anywhere;
}
.event-list time,
.event-list small {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.files {
  margin: 18px 0 36px;
}
#downloads {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 19px;
}
.download {
  padding: 7px 12px;
  border: 1px solid #bfd0c1;
  border-radius: 6px;
  font-size: 0.89rem;
}
.download:hover {
  background: var(--pale);
  text-decoration: none;
}
.file-note {
  padding: 0 19px 14px;
}
.history-name {
  font-weight: 650;
}
.history-name:hover {
  text-decoration: underline;
}
.history-list .data-table td,
.history-list .data-table th {
  padding: 13px 18px;
}
.subhead {
  font-size: 1.03rem;
  margin: 14px 18px;
}
.score-sub {
  padding: 13px 19px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.score-val {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1450px) {
  .heading {
    margin-top: 45px;
  }
  .choices td {
    height: 49px;
  }
  .card-head {
    min-height: 70px;
  }
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 36px);
  }
  .setup-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .choices th,
  .choices td {
    padding: 0 6px;
  }
  .choices th:first-child,
  .choices td:first-child {
    padding-left: 12px;
  }
  .choices th:last-child,
  .choices td:last-child {
    padding-right: 12px;
  }
  .choice {
    gap: 6px;
  }
  .card-head {
    padding: 14px;
  }
  .launch {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 28px);
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .mast-in {
    min-height: 56px;
    gap: 16px;
  }
  .mast nav {
    gap: 16px;
  }
  .heading {
    margin: 22px 0 16px;
  }
  .heading p {
    font-size: 0.91rem;
  }
  .flow-hint {
    display: none;
  }
  .card-head {
    min-height: 55px;
  }
  .choices td {
    height: 42px;
  }
  .choices td,
  .choices th {
    padding: 0 9px;
  }
  .launch {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .metric {
    padding: 10px 13px;
  }
  .steps {
    gap: 7px;
    padding: 15px;
  }
  .steps li {
    display: block;
  }
  .steps li small {
    display: block;
  }
  .live-line {
    display: block;
  }
  .live-line span:last-child {
    display: block;
  }
  .tabbar {
    padding: 0 4px;
  }
  .tabbar button {
    padding: 12px 9px;
  }
  .issue summary strong {
    display: inline;
  }
  .event-list {
    padding: 8px 12px;
  }
  .files {
    margin-bottom: 20px;
  }
  .history-list .data-table th,
  .history-list .data-table td {
    padding: 8px;
  }
  .history-list .hide-small {
    display: none;
  }
}
@media (max-width: 380px) {
  .shell {
    width: calc(100% - 18px);
  }
  .wells td,
  .wells th {
    font-size: 0.81rem;
    padding: 0 4px;
  }
  .choice {
    gap: 4px;
  }
}
@media (max-width: 560px) {
  .mast-in {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding-top: 10px;
  }
  .mast nav {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .mast nav a {
    min-height: 42px;
  }
  .account {
    grid-column: 2;
    grid-row: 1;
  }
}
