:root {
  --desktop: #586765;
  --panel: #c0c0c0;
  --paper: #fff;
  --ink: #111;
  --blue: #000080;
  --blue-light: #16639b;
  --signal: #8b1a1a;
  --update: #fff4b8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--desktop); }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 22px 12px;
  color: var(--ink);
  background: linear-gradient(rgba(255,255,255,.025),rgba(255,255,255,.025)),var(--desktop);
  font-family: "Microsoft YaHei","SimSun",Arial,sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button,input,select,textarea,label,legend,.title-bar {
  font-family: "Pixelated MS Sans Serif","Microsoft YaHei","SimSun",Arial,sans-serif;
  font-size: 15px;
}
button {
  min-width: 92px;
  min-height: 30px;
  padding: 3px 14px;
  color: transparent;
  text-shadow: 0 0 #111;
}
button:focus-visible,input:focus-visible,select:focus-visible,.focusable:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -4px;
}
input[type="text"],input[type="number"],select { font-size: 15px; }

.app-window {
  width: min(800px,100%);
  min-height: 606px;
}
.app-window.has-checklist { width: min(1060px,100%); }
.title-bar {
  min-height: 24px;
  justify-content: flex-start;
  padding: 3px 5px;
  background: linear-gradient(90deg,var(--blue),var(--blue-light));
}
.title-bar-text {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  line-height: 16px;
}
.app-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid #fff;
  background:
    linear-gradient(#fff,#fff) center/1px 10px no-repeat,
    linear-gradient(90deg,#fff,#fff) center/10px 1px no-repeat,
    #777;
  box-shadow: 1px 1px #000;
}
.app-icon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  left: 4px;
  top: 4px;
  border: 1px solid #fff;
  background: var(--signal);
}
.ending-controls {
  margin-left: auto;
  opacity: 0;
  transform: translateY(-1px);
}
.ending-controls.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.8s ease,transform 1.8s ease;
}
.ending-controls button {
  min-width: 16px;
  width: 16px;
  min-height: 14px;
  height: 14px;
  padding: 0;
}
.app-window.is-closing {
  pointer-events: none;
  animation: close-application .48s cubic-bezier(.55,.02,.92,.62) forwards;
  transform-origin: 50% 100%;
}
@keyframes close-application {
  0%,22% { opacity: 1; transform: translateY(0) scale(1); }
  38% { opacity: 1; transform: translateY(2px) scale(.996,.985); }
  62% { opacity: .86; transform: translateY(10px) scale(.97,.88); }
  100% { opacity: 0; transform: translateY(34vh) scale(.18,.04); }
}

.finale {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #111;
  background: var(--desktop);
  font-family: "Microsoft YaHei","SimSun",sans-serif;
}
.finale-line {
  position: absolute;
  max-width: calc(100vw - 48px);
  margin: 0;
  opacity: 0;
  font-size: clamp(20px,3.2vw,30px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .08em;
  text-align: center;
  transform: translateY(5px);
  transition: opacity 1.35s ease,transform 1.5s ease;
}
.finale-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.finale-pair {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(760px,calc(100vw - 48px));
  gap: 18px;
  transform: translate(-50%,-50%);
}
.finale-pair .finale-line { position: static; max-width: none; }
.finale-pair .finale-premise.is-dimmed { opacity: .48; }
.finale-answer { font-size: clamp(24px,4vw,38px); font-weight: 600; }
.finale-it {
  color: var(--signal);
  transition: color 3.4s ease;
}
.finale-it.is-neutral { color: #111; }
.finale-actions {
  position: absolute;
  left: 50%;
  bottom: max(28px,env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 13px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%,4px);
  transition: opacity 1.2s ease,transform 1.2s ease;
}
.finale-actions.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%,0);
}
.finale-reopen { min-height: 30px; opacity: .72; }
.finale-reopen:hover,.finale-reopen:focus-visible { opacity: 1; }
.finale-more {
  visibility: hidden;
  color: #33336d;
  font-size: 14px;
  line-height: 1.5;
  text-underline-offset: 3px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 1s ease,transform 1s ease;
}
.finale-more.is-visible { visibility: visible; opacity: .7; pointer-events: auto; transform: translateY(0); }
.finale-more:hover,.finale-more:focus-visible { opacity: 1; }

.app-layout { display: grid; grid-template-columns: minmax(0,1fr); }
.app-window.has-checklist .app-layout {
  grid-template-columns: minmax(0,1fr) 236px;
  gap: 2px;
}
.window-body { min-width: 0; min-height: 535px; margin: 10px 10px 8px; font-size: 16px; }
.checklist-pane {
  min-width: 0;
  margin: 10px 9px 8px 0;
  border-left: 1px solid #808080;
  padding-left: 9px;
}
.checklist-pane fieldset { height: 100%; }
.checklist-scroll {
  max-height: 456px;
  overflow: auto;
  padding: 5px 7px;
  background: #fff;
}
.check-item {
  display: block;
  padding: 7px 3px;
  border-bottom: 1px dotted #888;
}
.check-item:last-child { border-bottom: 0; }
.check-item.is-new { color: #fff; background: var(--blue); }
.check-item input { position: fixed; opacity: 0; appearance: none; margin: 0; }
.check-item label { display: block; min-height: 26px; font-size: 15px; line-height: 1.5; user-select: text; }
.check-item input + label::before,
.option-row input + label::before,
.file-row input + label::before { top: 4px; }
.check-item input:checked + label::after,
.option-row input:checked + label::after,
.file-row input:checked + label::after { top: 7px; }
.pane-note { margin: 7px 2px 0; color: #444; font-size: 13px; line-height: 1.55; }

fieldset { min-width: 0; padding: 13px 14px 14px; }
fieldset + fieldset { margin-top: 10px; }
legend {
  padding: 0 5px;
  font-weight: 700;
  background: var(--panel);
}
p { margin-top: 0; }
.instruction { margin: 8px 4px 10px; }
.object-word { color: var(--signal); font-weight: 700; }
.it-word { color: var(--signal); font-weight: 700; }
.muted { color: #555; }
.small { font-size: 13px; }
.mono { font-family: "Pixelated MS Sans Serif",Consolas,monospace; }
.danger-text { color: var(--signal); }

.property-grid {
  display: grid;
  grid-template-columns: 104px minmax(0,1fr);
  row-gap: 8px;
  align-items: center;
  margin: 0;
}
.property-grid dt,.property-grid dd { margin: 0; }
.property-grid dt { color: #3f3f3f; }
.property-grid dd {
  min-height: 25px;
  display: flex;
  align-items: center;
  font-size: 15px;
}
.result-record legend { font-size: 16px; }
.result-record .property-grid dd { font-size: 16px; }
.impact-field {
  min-height: 32px !important;
  padding: 4px 7px;
  overflow: hidden;
  background: #fff;
}
.impact-field.is-selected { color: #fff; background: var(--blue); }
.impact-field.is-updated { animation: update-flash 1s steps(2,end); }
.update-note {
  margin-left: 8px;
  padding: 0 4px;
  color: #000;
  background: var(--update);
  font-size: 13px;
}
.type-caret {
  width: 8px;
  height: 17px;
  margin-left: 2px;
  background: #111;
  animation: caret-blink .55s steps(1,end) infinite;
}
@keyframes caret-blink {
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}
@keyframes update-flash {
  0%,55% { background: var(--update); }
  56%,100% { background: #fff; }
}

.command-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.command-row .left { margin-right: auto; }
.stage-command { min-height: 32px; }
.status-line { min-height: 1.5em; margin: 8px 2px 0; color: #444; font-size: 13px; }
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 9px;
  font-size: 14px;
}
.fact-panel,.admin-box,.reply-box,.archive-box {
  padding: 11px 13px;
  background: #fff;
}
.fact-panel { min-height: 100px; font-size: 16px; line-height: 1.7; }
.fact-panel p,.admin-box p,.reply-box p { margin: 0 0 8px; }
.fact-panel p:last-child,.admin-box p:last-child,.reply-box p:last-child { margin-bottom: 0; }
.record-summary { display: grid; grid-template-columns: 104px minmax(0,1fr); margin: 0; }
.record-summary dt,.record-summary dd { min-height: 34px; margin: 0; padding: 4px 7px; border-bottom: 1px dotted #aaa; }
.record-summary dt { color: #555; }
.record-summary dd { font-weight: 600; }
.summary-note { margin: 10px 7px 0 !important; color: #444; }
.summary-errors { margin: 10px 0 0 104px; padding-left: 22px; }
.summary-errors li { margin-bottom: 5px; }
.separator-line { padding-top: 8px; border-top: 1px dotted #777; font-size: 13px; }
.admin-meta { margin-bottom: 8px; color: #555; font: 13px/1.5 "Pixelated MS Sans Serif",Consolas,monospace; }
.admin-text { font-family: "SimSun",serif; font-size: 16px; line-height: 1.7; }
.embedded-strategy {
  margin-top: 12px;
  padding: 12px 2px 0;
  border-top: 1px dotted #777;
}
.strategy-heading { margin-bottom: 7px; font-weight: 700; }
.embedded-strategy > p:not(.strategy-heading):not(.status-line) { margin-bottom: 6px; }
.stage-focus legend { color: #fff; background: var(--blue); }

.observation-field {
  position: relative;
  height: 315px;
  overflow: hidden;
  background-color: #eef1ed;
  background-image:
    linear-gradient(rgba(0,0,0,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,0,0,.055) 1px,transparent 1px);
  background-size: 24px 24px;
  touch-action: manipulation;
}
.observation-field::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,.08);
  pointer-events: none;
}
.fixation {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 43px;
  height: 43px;
  transform: translate(-50%,-50%);
}
.fixation::before,.fixation::after { content: ""; position: absolute; background: #111; }
.fixation::before { left: 21px; top: 3px; width: 1px; height: 37px; }
.fixation::after { left: 3px; top: 21px; width: 37px; height: 1px; }
.fixation span {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--signal);
  background: #eef1ed;
}
.peripheral { position: absolute; width: 7px; height: 7px; border: 1px solid #555; background: #c0c0c0; transition: transform .14s linear; }
.p1 { left: 12%; top: 22%; }
.p2 { right: 14%; top: 34%; }
.p3 { left: 20%; bottom: 17%; }
.p4 { right: 23%; bottom: 14%; }
.observation-field.pulse .p2 { transform: translateX(1px); }
.observation-field.recording { cursor: crosshair; }
.field-footer { position: absolute; right: 10px; top: 7px; font-size: 13px; }

.question-page { min-height: 455px; display: grid; place-items: center; }
.question-box { width: min(500px,100%); }
.answer-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.answer-row input[type="text"] { width: 82px; height: 30px; text-align: center; }
.answer-error { width: 100%; min-height: 1.5em; margin: 2px 0 0; color: var(--signal); font-size: 13px; }

.text-viewer {
  width: min(520px,100%);
  margin: 0 auto;
  padding: 11px 12px;
  background: #fff;
  font-family: "SimSun",serif;
  font-size: 15px;
  line-height: 1.75;
}
.reading-passage {
  width: min(430px,100%);
  min-height: 150px;
  padding: 20px 18px;
  font-size: 16px;
  line-height: 1.95;
}
.reading-passage p { margin: 0 0 8px; }
.reading-passage p:last-child { margin-bottom: 0; }
.text-line { display: grid; grid-template-columns: minmax(0,1fr) 25px; align-items: center; }
.text-line input { position: static; opacity: 1; appearance: auto; margin: 0; }
.break-mark { color: var(--signal); font-family: Consolas,monospace; }
.viewer-legend { margin: 7px 0 0; font-size: 13px; color: #444; }

.source-meta { margin: 0 0 6px; color: #555; font: 13px/1.5 "Pixelated MS Sans Serif",Consolas,monospace; }
.version-card { min-height: 118px; padding: 18px; background: #fff; font-family: "SimSun",serif; font-size: 17px; line-height: 1.8; }
.option-list { display: grid; gap: 8px; margin-top: 10px; }
.option-row { display: flex; align-items: flex-start; min-height: 25px; }
.option-row input { position: fixed; opacity: 0; appearance: none; margin: 0; }
.option-row label { display: block; min-height: 26px; line-height: 1.55; }

.data-table-wrap { overflow: auto; }
.data-table { width: 100%; min-width: 650px; font-size: 14px; }
.data-table td,.data-table th { height: 28px; padding: 3px 8px; }
.data-table input { position: static; opacity: 1; appearance: auto; margin: 0; }
.table-check-label { display: inline-flex; align-items: center; justify-content: center; margin: 0; }

.catch-field {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #111b2a;
  touch-action: none;
}
.catch-field.is-briefing { display: grid; place-items: center; background: #eef1ed; touch-action: manipulation; }
.catch-briefing { width: min(470px,88%); color: #111; text-align: center; line-height: 1.65; }
.catch-briefing > p { margin: 0 0 15px; }
.catch-memory { padding: 14px 12px; border: 1px solid #777; background: #fff; font-family: "SimSun",serif; font-size: 17px; }
.catch-briefing button { margin-top: 3px; }
.catch-score { position: absolute; left: 8px; top: 6px; z-index: 3; color: #fff; font: 15px Consolas,monospace; }
.catch-controls {
  position: absolute;
  right: 8px;
  top: 7px;
  z-index: 2;
  color: #c7cbd2;
  font-size: 13px;
  pointer-events: none;
}
.catch-tray { position: absolute; left: calc(50% - 62px); bottom: 12px; width: 124px; height: 14px; border: 2px solid #fff; background: #666; }
.catch-tray.is-catching { background: #fff; }
.falling { position: absolute; width: 18px; height: 18px; background: #fff; border: 1px solid #aaa; }
.falling.bad { background: #b42323; border-color: #ff8c8c; }
.catch-shot { position: absolute; width: 6px; height: 11px; background: #f3e36b; border: 1px solid #fff; }
.score-card { padding: 20px; color: #fff; background: #000080; text-align: center; font-size: 18px; }
.save-circle { min-width: 46px; width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 23px; }

.appointment-card {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 5px 10px;
  margin: 0 0 16px;
  padding: 11px 13px;
  background: #fff;
}
.appointment-card dt,.appointment-card dd { margin: 0; }
.time-answer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.time-stepper { display: flex; align-items: center; gap: 7px; }
.time-unit { display: flex; align-items: center; gap: 5px; }
.time-unit button { min-width: 30px; padding-inline: 7px; }
.time-unit output {
  min-width: 30px;
  padding: 4px 5px;
  border: 2px inset #fff;
  background: #fff;
  font: 16px/1.2 Consolas,monospace;
  text-align: center;
}
.time-unit span { font-size: 14px; }
.time-colon { font: 700 18px/1 Consolas,monospace; }
.time-answer > #time-submit { margin-left: auto; }

.calendar-card { width: min(460px,100%); margin: 0 auto; padding: 12px; background: #fff; }
.calendar-head { margin-bottom: 8px; font-weight: 700; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; gap: 1px; }
.calendar-grid span { padding: 5px 2px; border: 1px solid #ddd; }
.calendar-grid .selected { color: #fff; background: var(--blue); }
.calendar-grid .friday { outline: 2px solid var(--signal); outline-offset: -2px; }

.submission-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,1fr); gap: 10px; }
.workspace-pane { min-width: 0; }
.workspace-caption { min-height: 25px; padding: 3px 7px; color: #fff; background: var(--blue); font-weight: 700; }
.file-explorer { height: 282px; overflow: auto; background: #fff; }
.explorer-head,.explorer-row { display: grid; grid-template-columns: minmax(185px,1fr) 90px 74px; align-items: center; }
.explorer-head { position: sticky; top: 0; z-index: 2; min-width: 390px; color: #111; background: var(--panel); border-bottom: 1px solid #777; font-size: 13px; }
.explorer-head span { padding: 3px 6px; border-right: 1px solid #888; }
.explorer-row {
  width: 100%;
  min-width: 390px;
  min-height: 25px;
  padding: 0;
  color: #111;
  background: #fff;
  border: 0;
  box-shadow: none;
  font: 13px/1.35 "Pixelated MS Sans Serif","SimSun",sans-serif;
  text-align: left;
}
.explorer-row:not(:disabled):active { padding: 0; box-shadow: none; }
.explorer-row span { overflow: hidden; padding: 4px 6px; text-overflow: ellipsis; white-space: nowrap; }
.explorer-row.is-selected { color: #fff; background: var(--blue); }
.explorer-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding-top: 7px; }
.explorer-action span { min-width: 0; overflow: hidden; color: #444; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.submission-page { min-height: 282px; padding: 8px 10px; background: #fff; }
.submission-slot { display: grid; grid-template-columns: 74px 82px minmax(0,1fr); gap: 6px; align-items: center; min-height: 54px; border-bottom: 1px dotted #888; }
.slot-requirement { color: #555; font-size: 13px; }
.slot-file { min-width: 0; overflow-wrap: anywhere; }
.slot-file.is-empty { color: #777; }
.log-panel { max-height: 150px; overflow: auto; padding: 8px 10px; background: #fff; font: 14px/1.6 Consolas,"SimSun",monospace; }
.note-card { margin-bottom: 10px; padding: 8px 10px; border: 1px solid #808000; background: #ffffcf; }

.time-remaining { padding: 5px 8px; color: #fff; background: var(--blue); font-size: 16px; font-weight: 700; }
.time-remaining.is-updated { animation: time-change .65s steps(2,end); }
@keyframes time-change {
  0%,55% { color: #111; background: var(--update); }
  56%,100% { color: #fff; background: var(--blue); }
}
.cost-list { display: grid; gap: 5px; margin-top: 9px; }
.cost-row { display: grid; grid-template-columns: minmax(0,1fr) 96px; gap: 8px; align-items: center; padding-bottom: 5px; border-bottom: 1px dotted #777; }
.cost-row button { min-width: 96px; }
.old-draft { margin-top: 12px; padding: 8px 10px; color: #555; background: #ddd; border: 1px inset #fff; font-family: "SimSun",serif; }

.classification-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 130px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dotted #777;
}
.classification-row select { width: 100%; }
.implicit-rule { color: var(--signal); font-family: "SimSun",serif; }
.stop-rule { margin-top: 12px; }
.stop-rule.is-settled fieldset { color: #555; }
.stop-rule.is-settled .implicit-rule { color: #555; text-decoration: line-through; }
.incoming-reply { margin-top: 12px; }
.reply-message {
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .7s ease,transform .7s ease;
}
.reply-message.is-visible { opacity: 1; transform: translateY(0); }
.mobile-ending-close { display: none; justify-content: center; margin-top: 14px; opacity: 0; transform: translateY(3px); transition: opacity .8s ease,transform .8s ease; }
.mobile-ending-close.is-visible { opacity: 1; transform: translateY(0); }
.ending-box { min-height: 420px; display: grid; place-items: center; text-align: center; }
.ending-box strong { display: block; margin-bottom: 10px; font-size: 18px; }

.status-bar { font-size: 13px; }
.status-bar-field { min-height: 22px; display: flex; align-items: center; }
.status-main { flex: 1 1 auto; }
.status-progress { flex: 0 0 60px; }
.status-build { flex: 0 0 154px; }
.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; }

@media (max-width: 820px) {
  body { display: block; overflow-x: hidden; padding: 0; background: var(--panel); }
  .app-window,.app-window.has-checklist { width: 100%; min-height: 100vh; padding: 3px; box-shadow: none; }
  .app-window.has-checklist .app-layout { grid-template-columns: minmax(0,1fr); }
  .window-body { min-height: calc(100vh - 82px); margin: 9px 6px 7px; }
  .checklist-pane { margin: 0 6px 8px; padding: 8px 0 0; border-left: 0; border-top: 1px solid #808080; }
  .checklist-scroll { max-height: 190px; }
  fieldset { padding: 12px 10px; }
  .property-grid { grid-template-columns: 88px minmax(0,1fr); }
  .observation-field { height: 285px; }
  .question-page { min-height: calc(100vh - 110px); }
  .command-row button { min-height: 44px; }
  .command-row input[type="number"] { width: 72px; height: 44px; }
  .answer-row button,.answer-row input[type="text"] { min-height: 44px; }
  .answer-row input[type="text"] { width: 105px; }
  .option-row { min-height: 44px; }
  .option-row label,.check-item label { display: flex; align-items: center; width: 100%; min-height: 44px; padding-block: 8px; }
  .check-item input + label::before,.option-row input + label::before { top: 15px; }
  .check-item input:checked + label::after,.option-row input:checked + label::after { top: 18px; }
  .primary-full { width: 100%; }
  .data-table-wrap { overflow: visible; }
  .data-table { display: block; width: 100%; min-width: 0; white-space: normal; background: transparent; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 8px; }
  .data-table tr {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr);
    padding: 6px;
    border: 1px solid #8a8a8a;
    background: #fff;
  }
  .data-table td { display: block; height: auto; min-width: 0; padding: 4px 6px; overflow-wrap: anywhere; }
  .data-table td:first-child { grid-column: 1; grid-row: 1 / 4; display: flex; align-items: center; justify-content: center; padding: 0; }
  .data-table td:nth-child(2) { grid-column: 2; grid-row: 2; }
  .data-table td:nth-child(3) { grid-column: 3; grid-row: 2; }
  .data-table td:nth-child(4) { grid-column: 2 / 4; grid-row: 1; font-weight: 700; }
  .data-table td:nth-child(5) { grid-column: 2; grid-row: 3; }
  .data-table td:nth-child(6) { grid-column: 3; grid-row: 3; }
  .data-table td:nth-child(2)::before { content: "编号："; }
  .data-table td:nth-child(3)::before { content: "页数："; }
  .data-table td:nth-child(4)::before { content: "文件："; }
  .data-table td:nth-child(5)::before { content: "签字："; }
  .data-table td:nth-child(6)::before { content: "格式："; }
  .data-table td::before { color: #555; font-size: 12px; font-weight: 400; }
  .table-check-label { width: 44px; height: 44px; }
  .table-check-label input { width: 20px; height: 20px; }
  .submission-workspace { grid-template-columns: 1fr; }
  .file-explorer { height: min(52vh,440px); overscroll-behavior: contain; }
  .explorer-head { display: none; }
  .explorer-row {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    width: 100%;
    min-width: 0;
    min-height: 72px;
    padding: 7px 8px;
    border-bottom: 1px dotted #888;
  }
  .explorer-row:not(:disabled):active { padding: 7px 8px; }
  .explorer-row span { min-width: 0; overflow: visible; padding: 2px 3px; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .explorer-row span:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 700; }
  .explorer-row span:nth-child(2)::before { content: "修改："; color: #555; }
  .explorer-row span:nth-child(3)::before { content: "状态："; color: #555; }
  .explorer-row.is-selected span:nth-child(2)::before,.explorer-row.is-selected span:nth-child(3)::before { color: #fff; }
  .explorer-action { flex-direction: column; align-items: stretch; }
  .explorer-action span { min-height: 24px; white-space: normal; overflow-wrap: anywhere; }
  .explorer-action button { min-height: 44px; }
  .submission-page { min-height: 0; }
  .submission-slot { grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 82px; padding: 7px 2px; }
  .slot-file { grid-column: 1 / -1; }
  .time-unit button { min-width: 44px; min-height: 44px; }
  .cost-row button { min-height: 44px; }
  .mobile-ending-close { display: flex; }
  .mobile-ending-close button { min-height: 44px; }
  .ending-controls button { position: relative; }
  .ending-controls button::after { content: ""; position: absolute; inset: -15px; }
  .finale-reopen { min-height: 44px; }
  .finale-more { display: flex; align-items: center; min-height: 44px; }
  .status-build { display: none; }
}

@media (max-width: 520px) {
  .record-summary { grid-template-columns: 88px minmax(0,1fr); }
  .summary-errors { margin-left: 0; }
  .classification-row { grid-template-columns: 1fr; }
  .cost-row { grid-template-columns: minmax(0,1fr) 104px; }
  .result-head { display: block; }
  .result-head span { display: block; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .app-window.is-closing { opacity: 0; }
}
