:root {
  color-scheme: light;
  --paper: #f2f4ef;
  --paper-alt: #e9eee6;
  --panel: #ffffff;
  --ink: #122628;
  --muted: #4b5d5a;
  --line: #d4dcd3;
  --line-strong: #b7c4ba;
  --deep: #133b3d;
  --deep-hover: #1b5052;
  --green: #0f6b5d;
  --wrong: #b83a24;
  --wrong-ink: #842514;
  --wrong-bg: #fdf2ef;
  --wrong-border: #e5b7ab;
  --right: #116a56;
  --right-ink: #0d5041;
  --right-bg: #eef7f3;
  --right-border: #a7d4c5;
  --warn: #a65d14;
  --warn-ink: #72420d;
  --warn-bg: #fef7e8;
  --warn-border: #e9ce98;
  --busy: #1a5c7a;
  --busy-ink: #13445b;
  --busy-bg: #ebf5fa;
  --busy-border: #a6cde0;
  --sand: #efe4c8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(18, 38, 40, .06);
  --shadow-md: 0 10px 30px rgba(15, 38, 40, .14);
  font-family: "HarmonyOS Sans SC","PingFang SC","Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font: inherit;
}

button, a, input, select, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:active:not(:disabled), .upload-label:active {
  opacity: .88;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

button, a, summary, input, select {
  outline-offset: 3px;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #2b9488;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  letter-spacing: -.025em;
}

a, .text-btn {
  color: var(--green);
}

.muted, small {
  color: var(--muted);
}

.mono, .result-count, .pager-pos, .num-cell {
  font-family: ui-monospace,"Cascadia Mono","IBM Plex Mono",Consolas,monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.ui-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -2px;
}

@keyframes atlas-spin {
  to { transform: rotate(360deg); }
}

.ui-icon.spin {
  animation: atlas-spin .9s linear infinite;
}

.loading {
  max-width: 650px;
  margin: 18vh auto;
  padding: 36px;
}

.loading button {
  margin: 12px;
}

.btn, .logout, .text-btn, .nav-link, .segmented button, .entry-choice, .figure, .thumb-btn,
.quick-chip, .pw-toggle, .search-clear, .kpi-card, .hc-figure, .review-thumb, .viewer-side-btn {
  border: 0;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover:not(:disabled) {
  background: #edf3ee;
  border-color: #97aea3;
}

.btn.primary {
  background: var(--deep);
  border-color: var(--deep);
  color: #ffffff;
}

.btn.primary:hover:not(:disabled) {
  background: var(--deep-hover);
  border-color: var(--deep-hover);
}

.btn.outline {
  border-color: #7da398;
  color: #145349;
  background: #fbfdfb;
}

.btn.outline:hover:not(:disabled) {
  background: #e9f4ef;
  border-color: #538a7c;
}

.btn.quiet, .btn.small {
  padding: 5px 11px;
  min-height: 32px;
  font-size: 13px;
}

.wide {
  width: 100%;
}

.text-btn, .logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover, .logout:hover {
  color: #08342d;
}

.tiny-link {
  font-size: 12px;
  padding: 2px 0;
}

.actions, .row, .form-end, .task-line, .card-actions, .eyeline, .list-meta, .pixel-info,
.viewer-tools, .identity, .brand, .section-head, .dialog-head, .table-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.between, .section-head, .dialog-head {
  justify-content: space-between;
}

.row {
  flex-wrap: wrap;
}

.tag {
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 650;
  white-space: nowrap;
  background: #e8ede8;
  color: #364a44;
}

.tag.teal {
  background: var(--right-bg);
  color: var(--right-ink);
  border: 1px solid #c5e3d8;
}

.tag.clay {
  background: var(--wrong-bg);
  color: var(--wrong-ink);
  border: 1px solid #eecbc1;
}

.tag.sand {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 1px solid var(--warn-border);
}

.empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.small-note {
  font-size: 12px;
  margin-top: 3px;
}

/* 顶部品牌与导航 */
.steel-mark {
  width: 38px;
  height: 38px;
  background: var(--deep);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #f7f4e4;
  flex-shrink: 0;
}

.steel-mark i {
  width: 20px;
  height: 21px;
  border-top: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  position: relative;
  transform: skewY(-10deg);
}

.steel-mark i:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  left: 7.5px;
  background: currentColor;
}

.brand {
  gap: 11px;
}

.brand strong, .brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: .01em;
}

.brand small {
  font-size: 11px;
  margin-top: 1px;
  letter-spacing: .06em;
}

.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-inner {
  max-width: 1720px;
  margin: auto;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 56px);
  min-height: 62px;
}

.top-inner nav {
  display: flex;
  gap: 4px;
  align-self: stretch;
  align-items: stretch;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  padding: 0 16px;
  transition: color .15s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  font-weight: 700;
  color: var(--green);
}

.nav-link.active:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
}

.identity {
  margin-left: auto;
  font-size: 13px;
}

.avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  background: #e1eae1;
  border: 1px solid #cbd7cc;
  color: #264f44;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}

.phone-btn {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f6f9f6;
}

.phone-btn:hover {
  background: #e9f2ec;
}

.logout {
  color: var(--muted);
  margin-left: 2px;
}

.shell {
  max-width: 1720px;
  margin: auto;
  padding: 0 clamp(16px, 3vw, 48px) 44px;
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0 18px;
}

.page-intro h1 {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 750;
}

.page-intro p, .entry-heading p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.progress-mini {
  min-width: 245px;
  display: grid;
  gap: 5px;
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
}

.progress-mini > span {
  font-size: 11px;
}

.progress-mini b {
  color: var(--green);
  font-family: ui-monospace, Consolas, monospace;
}

progress {
  width: 100%;
  height: 7px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #dce4dc;
  color: var(--right);
}

progress::-webkit-progress-bar {
  background: #dce4dc;
}

progress::-webkit-progress-value {
  background: var(--right);
  border-radius: 8px;
}

progress::-moz-progress-bar {
  background: var(--right);
}

.panel, .slot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* 工作台布局 */
.work-grid {
  display: grid;
  grid-template-columns: clamp(270px, 23%, 340px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.rail {
  overflow: hidden;
  position: sticky;
  top: 74px;
}

.rail-head {
  padding: 15px 14px 12px;
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf9;
}

.rail h2, .section-head h2, .management h2 {
  font-size: 18px;
}

.result-count {
  font-size: 12px;
  color: var(--muted);
}

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
}

.search-svg {
  position: absolute;
  left: 11px;
  color: #5a746c;
  pointer-events: none;
}

.searchbox input {
  padding-left: 34px !important;
  padding-right: 34px !important;
}

.search-clear {
  position: absolute;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.search-clear:hover {
  background: #e8efe9;
  color: var(--ink);
}

.quick-terms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-label {
  font-size: 11px;
  color: var(--muted);
  margin-right: 2px;
}

.quick-chip {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2ec;
  color: #2f4b44;
  border: 1px solid #d5e0d7;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}

.quick-chip:hover {
  background: #dfeae3;
}

.quick-chip.active {
  background: var(--deep);
  color: #ffffff;
  border-color: var(--deep);
}

input:not([type=checkbox]):not([type=file]), select {
  width: 100%;
  min-height: 38px;
  background: #ffffff;
  border: 1px solid #c2cec4;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 14px;
  min-width: 0;
}

input:not([type=checkbox]):not([type=file]):focus, select:focus {
  border-color: var(--green);
}

.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap input {
  padding-right: 42px !important;
}

.pw-toggle {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.pw-toggle:hover {
  background: #edf2ee;
  color: var(--ink);
}

.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #e8efe7;
  border-radius: 8px;
}

.segmented button {
  flex: 1;
  white-space: nowrap;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  color: #465d53;
  transition: background-color .14s ease, color .14s ease;
}

.segmented button.selected {
  color: var(--deep);
  font-weight: 700;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(19, 59, 61, .12);
}

.entry-list {
  max-height: clamp(280px, calc(100vh - 335px), 860px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b4c4b8 transparent;
}

.entry-choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e7ece5;
  border-left: 3px solid transparent;
  transition: background-color .12s ease;
}

.entry-choice:hover {
  background: #f0f5ef;
}

.entry-choice.chosen {
  background: #e7f1ea;
  border-left-color: var(--green);
}

.list-meta {
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 4px;
}

.list-meta .mono {
  font-size: 12px;
  font-weight: 650;
  color: #2f5b51;
}

.list-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.list-meta .tag {
  font-size: 10px;
  padding: 1px 6px;
}

.choice-title {
  display: block;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.45;
  color: var(--ink);
}

.choice-reason {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--green);
  background: #e6f3ec;
  padding: 1px 6px;
  border-radius: 4px;
}

.choice-focus {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 条目详情头 */
.entry-pane {
  min-width: 0;
}

.entry-heading {
  padding: 2px 0 14px;
}

.entry-head-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eyeline {
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.eyeline .mono {
  border-left: 1px solid var(--line);
  padding-left: 8px;
  font-weight: 700;
  color: var(--deep);
}

.entry-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-pager {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 4px;
}

.pager-btn {
  border: 0 !important;
  min-height: 28px !important;
  padding: 3px 8px !important;
  font-size: 12px !important;
}

.pager-pos {
  font-size: 12px;
  color: var(--muted);
  padding: 0 6px;
}

.compare-open-btn {
  border-color: #88aba1;
  color: var(--deep);
}

.entry-heading h2 {
  font-size: clamp(21px, 1.8vw, 29px);
  line-height: 1.32;
  margin-top: 8px;
}

.entry-work-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-line {
  margin-top: 6px !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.focus-line strong {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.field-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  border-left: 4px solid var(--right);
  background: #eaf3ed;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #163830;
}

.field-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 12px;
  color: var(--right-ink);
  white-space: nowrap;
}

/* 左右对照图位双卡 */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.slot-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top-width: 4px;
}

.slot-card.left {
  border-top-color: var(--wrong);
  border-color: var(--wrong-border);
  border-top-color: var(--wrong);
}

.slot-card.right {
  border-top-color: var(--right);
  border-color: var(--right-border);
  border-top-color: var(--right);
}

.card-head {
  padding: 11px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-head.left {
  background: var(--wrong-bg);
}

.card-head.right {
  background: var(--right-bg);
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.side-icon-badge.left {
  background: var(--wrong);
}

.side-icon-badge.right {
  background: var(--right);
}

.card-head h3 {
  font-size: 15px;
  line-height: 1.25;
}

.card-head.left h3 {
  color: var(--wrong-ink);
}

.card-head.right h3 {
  color: var(--right-ink);
}

.side-subtitle {
  display: block;
  font-size: 11px;
  margin-top: 1px;
}

.figure {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(210px, 30vh, 330px);
  padding: 10px;
  background: #edf1eb;
  border-block: 1px solid var(--line);
}

.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.corner-side-mark {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  pointer-events: none;
}

.corner-side-mark.left {
  background: rgba(184, 58, 36, .88);
}

.corner-side-mark.right {
  background: rgba(17, 106, 86, .88);
}

.enlarge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  background: rgba(18, 38, 40, .86);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
}

.enlarge .ui-icon {
  width: 13px;
  height: 13px;
}

.card-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 1;
}

.caption {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.credit, .pixel-info, .task-line {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.credit a {
  margin-left: 8px;
}

.pixel-info {
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
}

.task-line {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  flex-wrap: wrap;
}

.task-owner {
  font-weight: 600;
  color: var(--ink);
}

.task-line .text-btn {
  margin-left: auto;
}

/* 审核反馈七态语义卡 */
.review-state:empty {
  display: none;
}

.review-state:not(:empty) {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-radius: 9px;
  padding: 11px 12px;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 12.5px;
  line-height: 1.55;
}

.review-state.busy:not(:empty) {
  background: var(--busy-bg);
  border-color: var(--busy-border);
  color: var(--busy-ink);
}

.review-state.ok:not(:empty) {
  background: var(--right-bg);
  border-color: var(--right-border);
  color: var(--right-ink);
}

.review-state.bad:not(:empty) {
  background: var(--wrong-bg);
  border-color: var(--wrong-border);
  color: var(--wrong-ink);
}

.review-state.neutral:not(:empty) {
  background: #eff2ee;
  border-color: #cfd8d1;
  color: #364945;
}

.review-thumb {
  width: 66px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(18, 38, 40, .14);
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.review-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.review-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.review-top strong {
  font-size: 13.5px;
}

.review-keep-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid currentColor;
  opacity: .9;
}

.review-reason {
  color: var(--ink);
  font-weight: 500;
}

.review-evidence {
  font-size: 12px;
  opacity: .9;
}

.review-next {
  font-size: 11.5px;
  opacity: .85;
}

.review-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 3px;
}

.retry-btn {
  background: #ffffff;
  border-color: currentColor;
  color: inherit;
}

/* 防误传目标提示条 */
.upload-guard {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.5;
  border-left: 3px solid transparent;
}

.upload-guard.left {
  background: #fbf5f3;
  border-left-color: var(--wrong);
  color: var(--wrong-ink);
}

.upload-guard.right {
  background: #f2f9f6;
  border-left-color: var(--right);
  color: var(--right-ink);
}

.upload-guard strong {
  font-size: 12px;
}

.upload-guard span {
  color: var(--muted);
}

.card-actions {
  margin-top: auto;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.upload-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.upload-label {
  cursor: pointer;
  position: relative;
}

.upload-label.is-busy {
  opacity: .6;
  pointer-events: none;
}

.upload-label:focus-within {
  outline: 3px solid #2b9488;
}

.desktop-picker-text, .mobile-picker-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-trigger {
  font-weight: 550;
}

.hist-sub {
  text-decoration: none;
  color: var(--muted);
}

.source-fields {
  font-size: 12px;
  color: var(--muted);
}

.source-fields summary {
  cursor: pointer;
  width: max-content;
  font-weight: 550;
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.standard {
  margin-top: 14px;
}

.standard summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 650;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-inner, .dialog-copy {
  padding: 16px 22px;
}

.detail-inner {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
}

/* 协作进度页 */
.progress-hero {
  background: var(--deep);
  border-radius: 14px;
  color: #f8f7ee;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
}

.progress-hero h2 {
  font-size: 15px;
  color: #cfe0d7;
}

.big-percent {
  font-size: 48px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 8px;
}

.big-percent small {
  font-size: 20px;
  color: #cfe0d7;
  margin-left: 3px;
}

.progress-hero progress {
  display: none;
}

.stack-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
  display: flex;
  max-width: 320px;
}

.stack-done {
  background: #4bc5a3;
  height: 100%;
}

.stack-assigned {
  background: #f0b865;
  height: 100%;
}

.stack-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #d7e5dd;
}

.stack-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stack-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.stack-legend .dot.done { background: #4bc5a3; }
.stack-legend .dot.assigned { background: #f0b865; }
.stack-legend .dot.unassigned { background: rgba(255, 255, 255, .36); }

.total-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.total-cells > div {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, .24);
}

.total-cells small {
  color: #cde0d6;
  display: block;
  font-size: 12px;
}

.total-cells b {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.progress-head {
  flex-wrap: wrap;
  gap: 12px;
}

.progress-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.progress-controls input:not([type=checkbox]):not([type=file]) {
  width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
}

.progress-sort {
  flex-shrink: 0;
}

.people-progress tr.is-me {
  background: #f1f8f4;
}

.done-num {
  font-weight: 700;
  color: var(--right-ink);
}

.rem-num {
  font-weight: 600;
  color: var(--ink);
}

/* 管理调度台 */
.management {
  padding: 22px;
  min-width: 0;
}

.management h2 {
  margin-bottom: 10px;
}

.section-head, .table-filters {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8faf7;
  transition: border-color .15s ease, background-color .15s ease;
}

.kpi-card small {
  font-size: 12px;
  color: var(--muted);
}

.kpi-card b {
  font-size: 26px;
  line-height: 1.2;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.kpi-card.warn b {
  color: var(--warn-ink);
}

.kpi-card.accent {
  background: var(--right-bg);
  border-color: var(--right-border);
}

.kpi-card.accent b {
  color: var(--right-ink);
}

.admin-kpis.clickable .kpi-card:hover {
  border-color: var(--green);
}

.admin-kpis.clickable .kpi-card.active {
  border: 2px solid var(--deep);
  background: #ffffff;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  background: #f0f4ee;
  white-space: nowrap;
}

td, th {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.col-check {
  width: 36px;
  text-align: center;
}

.col-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

td .avatar, td .mono, td strong + .tag {
  margin-right: 6px;
}

td strong + .tag {
  margin-left: 8px;
}

td .tag {
  vertical-align: middle;
}

.proc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 380px;
}

.load-cell {
  display: grid;
  gap: 4px;
  min-width: 145px;
}

.load-nums {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.load-nums .tiny-link, .load-nums .muted {
  margin-left: auto;
  font-size: 11.5px;
}

.load-nums b {
  color: var(--ink);
  font-family: ui-monospace, Consolas, monospace;
}

.person-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  font-size: 12px;
}

.person-bar progress {
  width: clamp(80px, 14vw, 240px);
}

.admin-tabs {
  width: max-content;
  margin-bottom: 14px;
}

.admin-tabs button {
  padding: 7px 16px;
}

.table-title {
  display: block;
  margin-top: 4px;
}

.table-filters {
  flex-wrap: wrap;
}

.table-filters input {
  max-width: 320px;
  flex: 1 1 220px;
}

.table-filters select {
  width: auto;
  min-width: 128px;
}

.batch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: #e9f3ee;
  border: 1px solid #b8d8cb;
}

.batch-bar select {
  width: auto;
  min-width: 160px;
  min-height: 34px;
}

.owner-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.owner-text-mobile {
  display: none;
}

.inline-assign {
  width: auto;
  min-width: 118px;
  max-width: 160px;
  min-height: 33px !important;
  padding: 4px 8px !important;
  font-size: 13px !important;
}

.done-owner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--right-ink);
  font-weight: 600;
}

.service-card {
  padding: 16px 18px;
  border-radius: 10px;
  background: #f7faf7;
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.service-status {
  font-size: 14px;
  font-weight: 600;
}

.reference-list {
  display: grid;
  gap: 8px;
}

.reference-list a {
  padding: 12px 14px;
  background: #f1f5f0;
  border: 1px solid var(--line);
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.reference-list a:hover {
  background: #e5efe8;
  border-color: #9cb9ae;
}

.reference-list a small {
  display: block;
  margin-top: 2px;
}

.ref-dl {
  color: var(--green);
  font-weight: 650;
  white-space: nowrap;
}

.management hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

/* 对话框与表单 */
.dialog {
  border: 1px solid var(--line);
  padding: 0;
  width: min(650px, 94vw);
  max-height: 90dvh;
  color: var(--ink);
  background: var(--panel);
  border-radius: 13px;
  box-shadow: 0 18px 80px rgba(12, 32, 34, .34);
}

.dialog::backdrop {
  background: rgba(14, 30, 32, .68);
}

.dialog-head {
  position: sticky;
  top: 0;
  background: var(--panel);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}

.dialog-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.dialog-head h2 {
  font-size: 17px;
}

.dialog-copy {
  display: grid;
  gap: 14px;
}

.dialog-copy h3, .history-list h3 {
  font-size: 15.5px;
}

.dialog-copy p, .history-row p {
  line-height: 1.65;
}

.field {
  display: grid;
  gap: 5px;
}

.field-label {
  font-size: 13px;
  font-weight: 620;
  color: var(--ink);
}

.field-helper {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grant-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.grant-list fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 0;
}

.grant-list legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

.fieldset-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}

.grant-list label, .check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 3px 0;
  cursor: pointer;
}

.grant-list input, .check input {
  accent-color: var(--green);
}

.form-end {
  justify-content: flex-end;
}

.form-error {
  color: var(--wrong-ink);
  background: var(--wrong-bg);
  border: 1px solid var(--wrong-border);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 13px;
  line-height: 1.55;
}

.form-error:empty {
  display: none;
}

/* 历史审阅台（带双图对比） */
.history-dialog {
  width: min(980px, 95vw);
}

.history-list {
  padding: 16px 20px 22px;
  display: grid;
  gap: 14px;
}

.history-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f5f8f4;
  border: 1px solid var(--line);
}

.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.side-badge.left {
  background: var(--wrong-bg);
  color: var(--wrong-ink);
  border: 1px solid var(--wrong-border);
}

.side-badge.right {
  background: var(--right-bg);
  color: var(--right-ink);
  border: 1px solid var(--right-border);
}

.history-immutable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.history-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f2f5f0;
  border: 1px solid var(--line);
}

.hc-col {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.hc-col.selected-col {
  border-color: #93b5aa;
}

.hc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.hc-figure {
  width: 100%;
  height: 195px;
  background: #eef1ec;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hc-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hc-caption {
  font-size: 12.5px;
  line-height: 1.5;
}

.history-tabs {
  width: fit-content;
  max-width: 100%;
}

.history-sections {
  display: grid;
  gap: 16px;
}

.history-sec {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
  background: #ffffff;
}

.history-row.current-ver {
  border-color: var(--right-border);
  background: #f9fdfb;
}

.history-row-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.history-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.thumb-btn {
  background: #ecf0ea;
  padding: 4px;
  border-radius: 6px;
  align-self: start;
  border: 1px solid var(--line);
}

.thumb-btn img {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 76px;
}

.release-event {
  font-size: 13px;
  line-height: 1.65;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8faf7;
  border: 1px solid var(--line);
}

/* 并排大图对照弹窗 */
.compare-dialog {
  width: min(1440px, 96vw);
  max-height: 94dvh;
}

.compare-zoom-body {
  padding: 14px 18px 18px;
  display: grid;
  gap: 12px;
}

.compare-zoom-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 9px 13px;
  border-radius: 8px;
  background: #eef4ef;
  font-size: 13px;
}

.compare-zoom-note strong {
  color: var(--deep);
}

.compare-zoom-note strong.sep {
  margin-left: 10px;
}

.compare-zoom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-zoom-pane {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.compare-zoom-pane.left {
  border-color: var(--wrong-border);
}

.compare-zoom-pane.right {
  border-color: var(--right-border);
}

.compare-zoom-head {
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.compare-zoom-head.left { background: var(--wrong-bg); }
.compare-zoom-head.right { background: var(--right-bg); }

.compare-zoom-stage {
  height: min(56vh, 520px);
  background: #172325;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.compare-zoom-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.compare-zoom-meta {
  padding: 11px 13px;
  display: grid;
  gap: 6px;
}

.compare-zoom-caption {
  font-size: 13.5px;
  line-height: 1.6;
}

/* 全屏大图核图器（保持极简上下栏确保 1920x1080 可见高 > 900px） */
.viewer[open] {
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: #101b1d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.viewer .dialog-head {
  color: #ffffff;
  background: #19292b;
  border-color: #364948;
  position: static;
  padding: 8px 16px;
  min-height: 46px;
}

.viewer .dialog-head h2 {
  font-size: 15px;
}

.viewer-side-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, .08);
  padding: 3px;
  border-radius: 7px;
}

.viewer-side-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #cddbd6;
}

.viewer-side-btn.left.active {
  background: var(--wrong);
  color: #ffffff;
}

.viewer-side-btn.right.active {
  background: var(--right);
  color: #ffffff;
}

.viewer-body, .image-stage {
  min-height: 0;
  min-width: 0;
}

.viewer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.image-stage {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: auto;
}

.image-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: contain;
  image-orientation: from-image;
}

.image-stage.pixel {
  display: block;
  cursor: grab;
}

.image-stage.pixel.dragging {
  cursor: grabbing;
  user-select: none;
}

.image-stage.pixel img {
  width: auto;
  height: auto;
  display: block;
  max-width: none;
  max-height: none;
}

.viewer-tools {
  justify-content: space-between;
  flex-wrap: wrap;
  background: #19292b;
  border-top: 1px solid #364948;
  padding: 7px 16px;
  font-size: 12.5px;
  min-height: 44px;
}

.viewer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer-low-tip {
  color: #f3d08a;
  font-size: 12px;
}

.viewer-tools .actions {
  margin-left: auto;
  gap: 6px;
}

.viewer-tools .btn {
  color: #16302d;
  background: #edf3ee;
  border-color: #c5d6cc;
}

.viewer-tools .btn.active-mode {
  background: #2f9681;
  border-color: #54bda7;
  color: #ffffff;
}

.dialog-head .btn.quiet {
  color: var(--ink);
}

.viewer-frame, .viewer-frame:fullscreen {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #101b1d;
  color: #ffffff;
}

.viewer-frame:fullscreen {
  width: 100vw;
  height: 100dvh;
}

/* 登录与首次设置页 */
.sign-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) 1fr;
}

.sign-cover {
  background: var(--deep);
  color: #edf4ea;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 76px);
  gap: 36px;
}

.sign-cover .brand small {
  color: #c4d7cc;
}

.sign-cover .steel-mark {
  background: #d9e8d5;
  color: var(--deep);
}

.cover-title {
  margin: auto 0 0;
  z-index: 1;
}

.cover-title span {
  color: #b7d0be;
  font-size: 13px;
  letter-spacing: .16em;
}

.cover-title h2 {
  font-size: clamp(34px, 4vw, 68px);
  margin-top: 16px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.cover-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cover-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.cover-pill.wrong {
  background: rgba(184, 58, 36, .28);
  border: 1px solid rgba(235, 146, 127, .55);
  color: #ffdcd3;
}

.cover-pill.right {
  background: rgba(17, 106, 86, .35);
  border: 1px solid rgba(119, 211, 184, .5);
  color: #d5f6eb;
}

.cover-bottom {
  margin-top: auto;
  font-size: 13px;
  letter-spacing: .06em;
  color: #bdd3c6;
}

.drawing {
  position: absolute;
  inset: 18% -8% -8% 16%;
  z-index: -1;
  opacity: .42;
  background-image: linear-gradient(#b3cabe1c 1px, transparent 1px), linear-gradient(90deg, #b3cabe1c 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(135deg, transparent 5%, black 60%);
}

.beam-shape {
  position: absolute;
  bottom: 6%;
  right: 8%;
  width: 47%;
  height: 56%;
  transform: skewY(-17deg) rotate(13deg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.beam-shape i, .beam-shape b {
  display: block;
  border: 1px solid #a9c4a0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 9px, #a6c4a92a 9px, #a6c4a92a 10px);
}

.beam-shape i { height: 15%; width: 100%; }
.beam-shape b { flex: 1; width: 18%; }

.dim-line {
  position: absolute;
  bottom: 14%;
  right: 60%;
  height: 38%;
  border-left: 1px dashed #bccfad;
}

.sign-side {
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--paper);
}

.sign-form {
  display: grid;
  gap: 16px;
  width: min(400px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.sign-form h1 {
  font-size: 26px;
  margin-bottom: 5px;
}

.sign-form p {
  font-size: 13px;
  line-height: 1.6;
}

.sign-form input:not([type=checkbox]):not([type=file]) {
  min-height: 44px;
}

.sign-form .primary {
  min-height: 46px;
  margin-top: 4px;
}

/* 手机二维码弹窗 */
.phone-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-entry code {
  background: #eff4ef;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12.5px;
}

/* Toast 通知 */
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(650px, 92vw);
  padding: 11px 18px;
  border-radius: 8px;
  background: #133b3d;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  display: none;
  font-size: 14px;
  line-height: 1.45;
}

#notice.visible {
  display: block;
}

#notice.error {
  background: #962f1d;
}

/* 响应式宽屏与中等屏 */
@media (min-width: 1700px) {
  .card-content {
    padding: 16px 20px 18px;
  }
  .figure {
    height: clamp(280px, 37vh, 400px);
  }
  .entry-list {
    max-height: calc(100vh - 340px);
  }
}

@media (max-width: 1140px) {
  .work-grid {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 14px;
  }
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .top-inner { gap: 12px; }
  .top-inner nav { gap: 0; }
  .nav-link { padding-inline: 10px; }
  .compare { gap: 10px; }
  .figure { height: 210px; }
  .card-head, .card-content { padding: 10px 12px; }
  .credit { overflow-wrap: anywhere; }
  .progress-mini { min-width: 190px; }
  .compare-zoom-grid, .history-compare { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
