:root {
  --ink: #102b2c;
  --quiet: #486361;
  --teal: #146962;
  --teal-dark: #124743;
  --outline: #d5e2df;
  --back: #f1f6f5;
  --panel: #fff;
  --mint: #e7f2ee;
  --red: #9e342b;
  --danger: #ffebe7;
  --shadow: 0 2px 3px #102b2c0a, 0 10px 28px #28605c08;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--back);
  line-height: 1.55;
  font-synthesis: none;
}
* { box-sizing: border-box }
body { margin: 0; min-width: 300px }
button, input { font: inherit }
a { color: var(--teal-dark) }
[hidden] { display: none !important }
:where(a, button):focus-visible, .drop-area:focus-within { outline: 3px solid #439b91; outline-offset: 4px }
.top { background: #103b39; color: white; border-bottom: 1px solid #07534b }
.top-inner { max-width: 1248px; padding: 0 38px; margin: auto; min-height: 66px; display: flex; align-items: center; gap: 32px }
.brand { color: white; font-size: 17px; letter-spacing: .025em; font-weight: 680; text-decoration: none; display: flex; align-items: center; gap: 12px; white-space: nowrap }
.brand-mark { display: flex; padding: 7px 6px; border: 1px solid #80c6af80; border-radius: 8px; align-items: flex-end; justify-content: center; gap: 3px; width: 33px; height: 33px; background: #1a534b }
.brand-mark i { width: 4px; height: 8px; background: #bee8d7; border-radius: 2px 2px 0 0 }
.brand-mark i:nth-child(2) { height: 13px }
.brand-mark i:nth-child(3) { height: 17px }
nav { display: flex; align-items: center; gap: 24px }
nav a { color: #cee7e2; text-decoration: none; font-size: 13px; padding: 4px 0; white-space: nowrap }
nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px }
.environment { margin-left: auto; color: #c4eae0; font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 8px }
.environment i { height: 7px; width: 7px; border-radius: 50%; background: #9fd0b8 }
main { max-width: 1248px; margin: auto; padding: 0 38px 22px }
.page-intro { padding: 37px 0 25px }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--quiet); margin-bottom: 10px }
.breadcrumb span:last-child { color: var(--teal-dark); font-weight: 650 }
h1, h2, p { margin: 0 }
h1 { font-size: clamp(27px, 3.2vw, 39px); letter-spacing: -.035em; font-weight: 740; line-height: 1.2 }
.page-intro p { margin-top: 9px; color: var(--quiet); font-size: 14px }
.workspace { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); gap: 19px }
.panel { background: var(--panel); border: 1px solid var(--outline); border-radius: 15px; box-shadow: var(--shadow); min-width: 0 }
.upload-panel, .result-panel, .history-panel { padding: 22px }
.section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 29px; gap: 12px; margin-bottom: 18px }
h2 { font-size: 19px; line-height: 1.35; font-weight: 720; white-space: nowrap }
.tools { display: flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap }
.tools a, .text-button { color: var(--teal-dark); text-underline-offset: 3px }
.tools a:hover, .text-button:hover { color: #0b7768 }
.tools a + a { padding-left: 12px; border-left: 1px solid var(--outline) }
.label { font-size: 12px; color: var(--quiet) }
.scenario { background: #f2f7f5; border: 1px solid var(--outline); border-radius: 8px; padding: 10px 13px; margin-bottom: 14px }
.scenario-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px }
.scenario select { width: 100%; min-height: 38px; padding: 6px 8px; color: var(--teal-dark); border: 1px solid #b6cdc5; border-radius: 6px; background: #fff; font: inherit; font-weight: 650 }
#scenario-hint { margin: 7px 0 0; font-size: 12px; color: var(--quiet) }
.drop-area { border: 1.5px dashed #8db1a9; background: #f7faf9; border-radius: 11px; min-height: 145px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 12px; justify-content: center; text-align: center }
.drop-area.dragging { background: #e4f3ec; border-color: var(--teal); outline: 2px solid #439b91 }
.file-symbol { width: 32px; height: 34px; border: solid 1.5px #38776f; border-radius: 7px; margin-bottom: 3px; background: var(--mint); display: grid; place-items: center }
.file-symbol i { width: 14px; height: 13px; border: solid 1.5px #38776f; display: block; border-radius: 2px; box-shadow: inset 0 4px #d1e8df }
.pick-file { cursor: pointer; color: var(--teal-dark); font-weight: 670; font-size: 14px; padding: 2px 7px; text-decoration: underline; text-underline-offset: 4px }
.pick-file:hover { color: var(--teal) }
#file-detail { max-width: 100%; overflow-wrap: anywhere; color: var(--quiet); font-size: 12px }
#remove-file { margin-top: 3px }
.form-note, .batch-note { font-size: 12px; color: var(--quiet); margin-top: 10px }
.feedback { margin-top: 10px; border-radius: 6px; padding: 7px 10px; line-height: 1.45; background: var(--mint); font-size: 13px }
.feedback[data-error="true"] { color: var(--red); background: var(--danger) }
.submit-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 16px }
.submit-footer > span { font-size: 12px; color: var(--quiet) }
.primary, .download { display: inline-flex; gap: 13px; align-items: center; justify-content: center; background: var(--teal); color: #fff; border: 1px solid var(--teal); border-radius: 8px; font-weight: 670; font-size: 14px; padding: 9px 17px; min-height: 41px; text-decoration: none; cursor: pointer; white-space: nowrap }
.primary:hover:not(:disabled), .download:hover { background: #105750; border-color: #105750 }
.primary:disabled { background: #e0eae7; color: #526966; border-color: #d6e3df; cursor: not-allowed }
.status { color: #4d655f; background: #ebf1ef; border-radius: 100px; font-weight: 630; line-height: 1.35; padding: 4px 10px; font-size: 12px; white-space: nowrap }
.status.completed { color: #125343; background: #dff0e7 }
.status.running, .status.queued { color: #145b65; background: #e1f0f2 }
.status.failed { color: var(--red); background: var(--danger) }
.batch-identity { border-top: 1px solid #e3edeb; padding-top: 11px; display: grid; gap: 4px }
.result-scenario { margin-left: 7px; color: var(--teal-dark); font-weight: 650 }
.mono, table, .metrics dd, .amount strong { font-variant-numeric: tabular-nums }
.mono { font-size: 13px; font-weight: 660; font-family: ui-monospace, SFMono-Regular, Consolas, "PingFang SC", monospace }
.metrics { margin: 12px 0 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #d9e6e3; background: #f9fbfa; border-radius: 9px }
.metrics div { padding: 10px 11px 8px }
.metrics div + div { border-left: 1px solid #d9e6e3 }
.metrics dt, .amount span { font-size: 12px; color: var(--quiet) }
.metrics dd { font-weight: 720; margin: 2px 0 0; line-height: 1.32; font-size: clamp(22px, 3vw, 28px) }
.amount { padding: 8px 0 10px; border-bottom: 1px solid #e3edeb; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between }
.amount strong { font-size: 21px; font-weight: 760; color: var(--teal-dark) }
.batch-note { min-height: 18px }
.download { background: var(--teal-dark); border-color: var(--teal-dark); margin-top: 11px }
.history-panel { margin-top: 20px; padding-bottom: 14px }
.history-panel .section-heading { margin-bottom: 12px }
.text-button { cursor: pointer; background: transparent; text-decoration: underline; border: 0; padding: 2px 4px; font-size: 12px }
.history-empty { color: var(--quiet); font-size: 13px; padding: 21px 2px }
.table-scroll { overflow-x: auto }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 13px }
th { font-size: 12px; font-weight: 650; color: var(--quiet); background: #edf4f2 }
th, td { text-align: left; padding: 10px 11px; line-height: 1.45 }
tr + tr td { border-top: 1px solid #e4ecea }
td a { text-underline-offset: 3px }
.file-cell { max-width: 300px; overflow: hidden; text-overflow: ellipsis }
.batch-file { display: block; overflow: hidden; text-overflow: ellipsis }
.file-cell small { display: block; font-size: 11px; color: var(--quiet) }
footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; color: var(--quiet); font-size: 12px; margin: 18px 1px 0 }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.top-exit { margin-left: auto }
.top-exit button { background: transparent; color: #fff; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: 13px }
.top-exit button:hover { text-decoration: underline; text-underline-offset: 4px }
.access-main { max-width: 520px; padding-top: clamp(40px, 9vh, 93px); padding-bottom: 48px }
.access-panel { padding: clamp(23px, 5vw, 38px) }
.access-panel h1 { font-size: clamp(25px, 5vw, 34px) }
.access-panel h1 + p { margin-top: 9px; color: var(--quiet) }
.access-panel form { display: grid; gap: 9px; margin-top: 24px }
.access-panel form label { font-size: 14px; font-weight: 650 }
.access-panel input { width: 100%; min-height: 43px; padding: 8px 11px; border: 1px solid var(--outline); border-radius: 7px; font: inherit; background: #fff; color: var(--ink) }
.access-panel form button { justify-self: start; margin-top: 8px }
.access-note { padding: 0 3px; margin-top: 14px; color: var(--quiet); font-size: 13px }
@media (max-width: 880px) {
  .top-inner, main { padding-inline: 22px }
  .workspace { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 545px) {
  .top-inner, main { padding-inline: 14px }
  .top-inner { min-height: 58px; gap: 8px }
  nav { display: none }
  .environment, .brand { font-size: 12px }
  .brand-mark { width: 27px; height: 27px; padding: 4px }
  .page-intro { padding-top: 27px }
  .upload-panel, .result-panel, .history-panel { padding: 15px }
  .section-heading { margin-bottom: 13px }
  h2 { font-size: 17px }
  .tools { gap: 7px }
  .tools a + a { padding-left: 7px }
}
