:root {
  color-scheme: dark;
  --cyan: #00ffff;
  --cyan-mid: #008888;
  --cyan-dim: #005555;
  --cyan-faint: rgba(0, 255, 255, 0.055);
  --green: #00ff88;
  --red: #ff003c;
  --red-dim: #7d112b;
  --amber: #ffd24a;
  --black: #050505;
  --panel: #071010;
  --panel-raised: #0a1515;
  --text: #c8d2d2;
  --muted: #687777;
  --paper: #d7d6ca;
  --paper-ink: #151818;
  --mono: "Cascadia Mono", "Courier New", Consolas, monospace;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--black); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--mono);
  background:
    linear-gradient(rgba(0, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, #0a2626 0, transparent 42%),
    var(--black);
  background-size: 24px 24px, 24px 24px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .24) 4px);
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  left: calc(50% - min(470px, 48vw));
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--cyan-dim) 20%, var(--cyan) 50%, var(--cyan-dim) 80%, transparent);
  box-shadow: min(940px, 96vw) 0 var(--cyan-dim);
  opacity: .35;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

.shell,
.review-shell {
  width: min(940px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin-bottom: 14px;
  padding: 10px 0 12px;
  border-bottom: 2px solid var(--cyan);
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 38%;
  height: 1px;
  background: var(--cyan-mid);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: rgba(0, 255, 255, .04);
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 0 16px rgba(0, 255, 255, .09), 0 0 12px rgba(0, 255, 255, .08);
}
.brand strong { display: block; overflow: hidden; color: var(--cyan); font-size: 15px; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }

.system-state { color: var(--green); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.system-state::before { content: "[ "; color: var(--cyan-mid); }
.system-state::after { content: " ]"; color: var(--cyan-mid); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px dashed var(--cyan-mid);
  background: linear-gradient(120deg, rgba(0, 255, 255, .055), transparent 68%), var(--panel);
}
.hero::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--cyan-dim);
  border-radius: 50%;
  box-shadow: inset 0 0 0 20px var(--panel), inset 0 0 0 21px var(--cyan-dim), inset 0 0 0 48px var(--panel), inset 0 0 0 49px var(--cyan-dim);
  opacity: .28;
}
.hero::after {
  content: "WEAVER_SIGNAL_01";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--cyan-dim);
  font-size: 9px;
  letter-spacing: .14em;
}
.eyebrow { margin-bottom: 14px; color: var(--cyan); font-size: 11px; letter-spacing: .1em; }
.eyebrow::before { content: ">> "; }
h1 { max-width: 700px; margin-bottom: 14px; color: #e4ffff; font-size: clamp(27px, 5vw, 44px); line-height: 1.25; font-weight: 500; letter-spacing: .04em; text-shadow: 0 0 18px rgba(0, 255, 255, .12); }
.lead { max-width: 670px; margin: 0; color: #8fa3a3; font-size: 13px; line-height: 1.8; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .8fr); gap: 12px; margin-top: 12px; }
.panel { position: relative; border: 1px dashed var(--cyan-mid); background: rgba(7, 16, 16, .94); box-shadow: 0 14px 40px rgba(0, 0, 0, .42); }
.panel::before { content: ""; position: absolute; left: -1px; top: 14px; width: 2px; height: 34px; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border-bottom: 1px dashed var(--cyan-dim); background: rgba(0, 255, 255, .025); }
.panel-head h2, .dossier-head h2 { margin: 0; color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.panel-head h2::before, .dossier-head h2::before { content: ">> "; }
.folio { color: var(--muted); font-size: 9px; letter-spacing: .09em; }
.panel-body { padding: clamp(16px, 3vw, 26px); }

.published-pool { margin-top: 12px; }
.pool-head-state { display: flex; align-items: center; gap: 10px; }
.pool-body { padding: 14px 15px 16px; }
.pool-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.pool-toolbar p { margin: 0; color: #718484; font-size: 10px; line-height: 1.6; }
.pool-filters { display: flex; flex: 0 0 auto; gap: 6px; }
.pool-filter { min-height: 30px; padding: 0 10px; border: 1px solid #174141; color: var(--muted); background: #020606; font-size: 9px; }
.pool-filter::before { content: "[ "; }
.pool-filter::after { content: " ]"; }
.pool-filter:hover, .pool-filter.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 255, 255, .07); }
.directive-pool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 390px; overflow: auto; scrollbar-color: var(--cyan-mid) var(--black); scrollbar-width: thin; }
.pool-card { position: relative; min-width: 0; padding: 13px 14px 14px 18px; border: 1px solid #183838; background: #030909; }
.pool-card::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--cyan-mid); }
.pool-card.city::before { background: var(--red-dim); }
.pool-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.pool-card-meta time { color: var(--muted); font-size: 8px; white-space: nowrap; }
.pool-card p { margin: 0; color: #aebebe; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.pool-empty { grid-column: 1 / -1; min-height: 96px; display: grid; place-items: center; border: 1px dashed #173434; color: var(--muted); font-size: 10px; }
.pool-empty.error { border-color: var(--red-dim); color: var(--red); }

.source-object { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; padding: 11px 13px; border: 1px solid var(--cyan-dim); background: rgba(0, 255, 255, .035); }
.source-object small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.source-object strong { color: var(--cyan); font-size: 11px; font-weight: 500; }
.source-object > span { color: var(--green); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #94a7a7; font-size: 11px; line-height: 1.4; }
.field-label::before { content: "// "; color: var(--cyan-mid); }
.field-label span { margin-left: auto; color: var(--muted); font-size: 9px; }

input, textarea, select {
  width: 100%;
  border: 1px solid #174141;
  border-radius: 0;
  outline: 0;
  color: var(--cyan);
  background: #020606;
  caret-color: var(--cyan);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input, select { height: 43px; padding: 0 12px; }
textarea { min-height: 174px; padding: 13px; resize: vertical; line-height: 1.7; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); background: #031010; box-shadow: inset 0 0 18px rgba(0, 255, 255, .04), 0 0 0 1px rgba(0, 255, 255, .14); }
input::placeholder, textarea::placeholder { color: #385252; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-card { position: relative; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card label { display: block; min-height: 96px; padding: 14px; border: 1px solid var(--cyan-dim); background: rgba(0, 34, 34, .35); transition: .15s; }
.type-card label strong { display: block; margin-bottom: 7px; color: #adc6c6; font-size: 14px; }
.type-card label small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.type-card input:checked + label { border-color: var(--cyan); background: rgba(0, 255, 255, .075); box-shadow: inset 3px 0 var(--cyan); }
.type-card input:checked + label strong { color: var(--cyan); }

.button-row { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.btn { min-height: 40px; padding: 0 15px; border: 1px solid var(--cyan-mid); border-radius: 0; color: var(--cyan); background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .05em; transition: .15s; }
.btn::before { content: "[ "; }
.btn::after { content: " ]"; }
.btn:hover { border-color: var(--cyan); background: rgba(0, 255, 255, .08); box-shadow: 0 0 14px rgba(0, 255, 255, .09); }
.btn-primary { border-color: var(--green); color: var(--green); }
.btn-primary:hover { border-color: var(--green); background: rgba(0, 255, 136, .09); }
.btn-danger { border-color: var(--red-dim); color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: rgba(255, 0, 60, .1); }
.btn-quiet { min-height: 32px; padding: 0 10px; border-color: #174141; }
.btn:disabled { cursor: not-allowed; opacity: .38; box-shadow: none; }

.note-list { margin: 0; padding: 0; list-style: none; counter-reset: terminal-note; }
.note-list li { position: relative; padding: 0 0 16px 30px; color: #819292; font-size: 11px; line-height: 1.7; }
.note-list li::before { counter-increment: terminal-note; content: "0" counter(terminal-note); position: absolute; left: 0; color: var(--cyan-mid); }
.note-list li + li { padding-top: 16px; border-top: 1px dashed #173434; }
.note-list li + li::before { top: 16px; }

.identity-slip { position: relative; margin-top: 20px; padding: 14px 13px 13px 20px; overflow: hidden; border: 1px solid var(--cyan-dim); background: #020707; }
.identity-slip::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: var(--red); box-shadow: 4px 0 rgba(0, 255, 255, .3); }
.identity-slip::after { content: "临时"; position: absolute; right: 8px; top: 9px; padding: 4px; border: 1px solid var(--red-dim); color: var(--red); font-size: 9px; transform: rotate(-7deg); }
.identity-slip small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.identity-slip strong { color: var(--cyan); font-size: 11px; }
.identity-slip.pool-destination::after { content: "指令池"; }

.notice { display: none; margin-top: 15px; padding: 12px 13px; border: 1px solid var(--green); color: var(--green); background: rgba(0, 255, 136, .045); font-size: 11px; line-height: 1.55; }
.notice::before { content: "ACK:OK // "; }
.notice.visible { display: block; }
.notice.error { border-color: var(--red); color: var(--red); background: rgba(255, 0, 60, .05); }
.notice.error::before { content: "ACK:ERR // "; }

.footer-line { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: #3f5555; font-size: 8px; letter-spacing: .08em; }

/* 审核终端 */
.login-wrap { display: grid; min-height: 100vh; place-items: center; padding: 24px 12px; }
.login-card { width: min(430px, 100%); }
.login-card::before { height: 52px; }
.seal { position: relative; display: grid; width: 78px; height: 42px; margin: 0 auto 22px; place-items: center; border: 1px solid var(--red); color: var(--red); background: rgba(255, 0, 60, .025); font-size: 15px; letter-spacing: .22em; transform: rotate(-3deg); box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 4px var(--red-dim); }
.seal::before, .seal::after { content: ""; position: absolute; top: 50%; width: 38px; height: 1px; background: var(--red-dim); }
.seal::before { right: calc(100% + 10px); }
.seal::after { left: calc(100% + 10px); }
.login-title { text-align: center; margin-bottom: 24px; }
.login-title h1 { margin: 0 0 8px; color: var(--cyan); font-size: 27px; }
.login-title p { margin-bottom: 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; }

.review-shell { width: min(1280px, calc(100% - 20px)); }
.review-top-actions { margin: 0; }
.review-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 108px); border: 1px dashed var(--cyan-mid); background: rgba(3, 8, 8, .97); }
.queue { border-right: 1px dashed var(--cyan-dim); }
.queue-tools { padding: 12px; border-bottom: 1px dashed var(--cyan-dim); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.filters select { height: 36px; font-size: 10px; }
.filters input { height: 36px; font-size: 9px; }
.filter-apply { width: 100%; }
.queue-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.batch-toolbar { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #173434; }
.batch-select-all { display: flex; align-items: center; gap: 7px; color: #8ca0a0; font-size: 9px; cursor: pointer; }
.batch-select-all input, .queue-checkbox { width: 15px; height: 15px; margin: 0; accent-color: var(--cyan); }
.batch-count { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.batch-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.batch-buttons .btn { min-height: 34px; padding: 0 7px; font-size: 9px; }
.queue-tools > .notice { margin-top: 10px; }
.queue-list { max-height: calc(100vh - 220px); overflow: auto; scrollbar-color: var(--cyan-mid) var(--black); scrollbar-width: thin; }
.queue-row { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid #102f2f; }
.queue-row > .queue-checkbox { flex: 0 0 auto; align-self: center; margin-left: 11px; }
.queue-item { display: block; width: 100%; padding: 15px 13px; border: 0; border-bottom: 1px solid #102f2f; text-align: left; color: var(--text); background: transparent; }
.queue-row .queue-item { min-width: 0; border-bottom: 0; }
.queue-item:hover, .queue-item.active { background: rgba(0, 255, 255, .055); box-shadow: inset 3px 0 var(--cyan); }
.queue-item-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 8px; }
.queue-item p { margin: 0; overflow: hidden; color: #96a9a9; font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tag { display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px; border: 1px solid var(--cyan-dim); color: var(--cyan-mid); font-size: 8px; letter-spacing: .06em; }
.tag.city { border-color: var(--red-dim); color: var(--red); }
.tag.common { border-color: var(--cyan-mid); color: var(--cyan); }

.dossier { display: flex; flex-direction: column; min-width: 0; }
.dossier-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 51px; padding: 13px 17px; border-bottom: 1px dashed var(--cyan-dim); background: var(--cyan-faint); }
.dossier-body { flex: 1; padding: clamp(18px, 4vw, 44px); overflow: auto; }
.empty-state { display: grid; min-height: 390px; place-items: center; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 8px; color: #789090; font-size: 17px; font-weight: 400; }
.record { max-width: 790px; margin: 0 auto; }
.record-id-band { margin-bottom: 10px; padding: 10px 13px; border: 1px dashed #174141; background: #020707; }
.record-id-band small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.record-id-band code { display: block; overflow-wrap: anywhere; color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.record-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border: 1px solid var(--cyan-dim); background: rgba(0, 255, 255, .025); }
.record-meta div { min-width: 0; padding: 11px 13px; }
.record-meta div + div { border-left: 1px dashed var(--cyan-dim); }
.record-meta small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.record-meta strong { display: block; overflow: hidden; color: var(--cyan); font-size: 10px; font-weight: 500; text-overflow: ellipsis; }

.directive-sheet { position: relative; min-height: 190px; margin: 0 9px; padding: clamp(28px, 5vw, 48px) clamp(28px, 6vw, 62px); border: 0; color: var(--paper-ink); background:
  repeating-linear-gradient(90deg, transparent 0 14px, rgba(0, 0, 0, .025) 15px),
  var(--paper);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.9;
  box-shadow: 8px 9px 0 #001818, 0 0 0 1px #718181;
}
.directive-sheet::before { content: "PRESCRIPT"; position: absolute; top: 10px; left: 14px; color: #657070; font-family: var(--mono); font-size: 8px; letter-spacing: .18em; }
.directive-sheet::after { content: "令"; position: absolute; right: 17px; bottom: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid #b31d38; color: #b31d38; font-family: SimSun, serif; font-size: 19px; font-weight: 700; transform: rotate(-7deg); opacity: .78; }
.review-actions { margin-top: 32px; padding-top: 24px; border-top: 1px dashed var(--cyan-dim); }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-grid .field { margin: 0; }
.action-buttons { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.archive-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--red-dim); }
.archive-actions .notice { flex: 1 1 100%; }
.route-banner span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.route-banner strong { color: var(--cyan); font-size: 10px; font-weight: 500; }
.reason-dialog { width: min(500px, calc(100% - 24px)); padding: 0; border: 1px dashed var(--cyan); color: var(--text); background: var(--panel); box-shadow: 0 24px 90px #000; }
.reason-dialog::backdrop { background: rgba(0, 5, 5, .82); backdrop-filter: blur(3px); }
.reason-dialog form { padding: 22px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px dashed var(--cyan-dim); }
.dialog-head .eyebrow { margin-bottom: 7px; }
.dialog-head h2 { margin: 0; color: #d9ffff; font-size: 19px; font-weight: 500; }
.dialog-close { width: 34px; height: 34px; border: 1px solid #174141; color: var(--cyan); background: transparent; font-size: 20px; }
.reason-dialog textarea { min-height: 110px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.hidden { display: none !important; }

/* 投稿与审核工作台：保持终端语气，同时让主要操作更易读、更少往返。 */
.submission-page .lead,
.submission-page .pool-toolbar p,
.submission-page .note-list li { font-size: 14px; }
.submission-page .field-label,
.review-page .field-label { font-size: 14px; }
.submission-page .field-label span,
.review-page .field-label span,
.submission-page .folio,
.review-page .folio { font-size: 12px; }
.submission-page .btn,
.review-page .btn { min-height: 42px; font-size: 14px; }
.submission-page .source-object small,
.review-page .record-meta small,
.review-page .record-id-band small { font-size: 12px; }
.submission-page .source-object strong,
.submission-page .source-object > span,
.review-page .record-meta strong,
.review-page .record-id-band code { font-size: 14px; }

.submission-page .hero,
.submission-page .published-pool,
.submission-page .content-grid,
.review-page .review-grid {
  animation: surface-enter .42s both cubic-bezier(.2, .75, .25, 1);
}
.submission-page .hero { min-height: 160px; padding-block: 30px; }
.submission-page .published-pool { animation-delay: .06s; }
.submission-page .content-grid { animation-delay: .12s; }

.directive-pool { transition: max-height .28s ease, mask-image .28s ease; }
.directive-pool.is-collapsed {
  max-height: 225px;
  -webkit-mask-image: linear-gradient(#000 0 82%, transparent 100%);
  mask-image: linear-gradient(#000 0 82%, transparent 100%);
}
.pool-card { animation: item-enter .32s both ease-out; }
.pool-filter,
.status-tab,
.nav-step { transition: border-color .16s, color .16s, background .16s, transform .16s; }
.pool-filter:active,
.status-tab:active,
.nav-step:active,
.submission-page .btn:active,
.review-page .btn:active { transform: translateY(1px) scale(.985); }
.submission-page button:focus-visible,
.submission-page input:focus-visible,
.submission-page textarea:focus-visible,
.review-page button:focus-visible,
.review-page input:focus-visible,
.review-page select:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.session-memory { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: #849696; font-size: 13px; cursor: pointer; }
.session-memory input { width: 16px; height: 16px; margin: 0; accent-color: var(--cyan); }
.submission-readiness { color: #809292; font-size: 13px; line-height: 1.5; }
.submit-primary { min-width: 158px; }
#submission-form { position: relative; }
#submission-form.is-transmitting { pointer-events: none; }
#submission-form.is-transmitting::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  animation: transmit-scan 1.1s infinite ease-in-out;
}
.notice.is-success { animation: acknowledgement .38s both ease-out; }

.status-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.status-tab { min-height: 38px; padding: 0 6px; border: 1px solid #174141; color: #7f9393; background: #020606; font: inherit; font-size: 14px; cursor: pointer; }
.status-tab:hover { color: var(--cyan); border-color: var(--cyan-mid); }
.status-tab.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 255, 255, .085); box-shadow: inset 0 -2px var(--cyan); }
.review-page .filters { grid-template-columns: 130px minmax(0, 1fr) auto; }
.review-page .filters select,
.review-page .filters input { height: 40px; font-size: 14px; }
.review-page .review-grid { grid-template-columns: 360px minmax(0, 1fr); }
.filter-clear { white-space: nowrap; }
.review-page .queue-count { font-size: 13px; }
.review-page .batch-select-all,
.review-page .batch-count { font-size: 13px; }
.review-page .batch-buttons .btn { min-height: 38px; font-size: 13px; }
.review-page .queue-list { position: relative; max-height: calc(100vh - 280px); min-height: 140px; transition: opacity .16s; }
.review-page .queue-list.is-loading { opacity: .4; pointer-events: none; }
.review-page .queue-list.is-loading::after {
  content: "SYNCING";
  position: sticky;
  display: grid;
  inset: 0;
  min-height: 80px;
  place-items: center;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .1em;
  animation: signal-blink .8s infinite alternate;
}
.review-page .queue-row { animation: item-enter .28s both ease-out; }
.review-page .queue-item { transition: background .16s, box-shadow .16s, transform .16s; }
.review-page .queue-item:hover { transform: translateX(2px); }
.review-page .queue-item-top { font-size: 12px; }
.review-page .queue-item p { font-size: 14px; }
.queue-source { display: block; margin-top: 8px; overflow: hidden; color: #587070; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.review-page .tag { min-height: 22px; font-size: 12px; }

.record-nav { display: flex; align-items: center; gap: 8px; }
.nav-step { display: grid; width: 34px; height: 32px; place-items: center; border: 1px solid #174141; color: var(--cyan); background: #020606; font: inherit; font-size: 16px; cursor: pointer; }
.nav-step:hover:not(:disabled) { border-color: var(--cyan); background: rgba(0, 255, 255, .08); }
.nav-step:disabled { cursor: not-allowed; opacity: .3; }
.record-id-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.record-id-heading small { margin: 0; }
.record-status { padding: 4px 7px; border: 1px solid var(--cyan-dim); color: var(--cyan); font-size: 12px; }
.record-status[data-status="rejected"] { border-color: var(--red-dim); color: var(--red); }
.record-status[data-status="approved"],
.record-status[data-status="active"] { border-color: #087849; color: var(--green); }
.record-enter { animation: record-enter .3s both ease-out; }
.record.is-processing { pointer-events: none; }
.record.is-processing .directive-sheet { opacity: .62; transform: translateY(2px); transition: opacity .18s, transform .18s; }
.record.is-processing .directive-sheet::after { animation: stamp-pulse .55s infinite alternate; }
.review-page .action-buttons {
  position: sticky;
  z-index: 4;
  bottom: 8px;
  padding: 10px;
  border: 1px solid #173434;
  background: rgba(3, 10, 10, .94);
  backdrop-filter: blur(8px);
}
.review-page .archive-actions { position: sticky; z-index: 4; bottom: 8px; padding: 12px; border: 1px solid var(--red-dim); background: rgba(9, 4, 6, .94); backdrop-filter: blur(8px); }

@keyframes surface-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes item-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes record-enter {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes transmit-scan {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(410px); opacity: 0; }
}
@keyframes acknowledgement {
  0% { opacity: 0; transform: scale(.985); box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 18px rgba(0, 255, 136, .1); }
}
@keyframes signal-blink { from { opacity: .45; } to { opacity: 1; } }
@keyframes stamp-pulse { from { opacity: .45; transform: rotate(-7deg) scale(.92); } to { opacity: .88; transform: rotate(-7deg) scale(1.08); } }

/* 设备身份模拟终端 */
.sim-shell { width: min(1120px, calc(100% - 24px)); }
.sim-hero { min-height: 230px; }
.sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.credential-slip { margin-top: 18px; padding: 13px; border: 1px dashed var(--red); background: rgba(255, 0, 60, .045); }
.credential-slip small { display: block; margin-bottom: 8px; color: var(--red); font-size: 8px; letter-spacing: .08em; }
.credential-slip code { display: block; overflow-wrap: anywhere; color: #ffd4dc; font-family: var(--mono); font-size: 10px; user-select: all; }
.device-facts { margin: 0 0 22px; border: 1px solid var(--cyan-dim); }
.device-facts div { display: grid; grid-template-columns: 105px minmax(0, 1fr); padding: 10px 12px; }
.device-facts div + div { border-top: 1px dashed var(--cyan-dim); }
.device-facts dt { color: var(--muted); font-size: 9px; }
.device-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--cyan); font-size: 10px; }

@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .queue { border-right: 0; border-bottom: 1px dashed var(--cyan-dim); }
  .queue-list { max-height: 250px; }
  .record-meta { grid-template-columns: 1fr; }
  .record-meta div + div { border-left: 0; border-top: 1px dashed var(--cyan-dim); }
  .archive-actions { align-items: stretch; flex-direction: column; }
  .sim-grid { grid-template-columns: 1fr; }
  .review-page .filters { grid-template-columns: 1fr auto; }
  .review-page .review-grid { grid-template-columns: 1fr; }
  .review-page .filter-wide { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 540px) {
  .shell, .review-shell { width: calc(100% - 14px); padding-top: 8px; }
  .topbar { min-height: 60px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 8px; }
  .system-state { font-size: 8px; }
  .hero { min-height: 180px; padding: 26px 18px; }
  .submission-page .hero { min-height: 148px; padding: 22px 18px; }
  .pool-head-state .folio { display: none; }
  .pool-toolbar { align-items: stretch; flex-direction: column; }
  .pool-filters { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pool-filter { width: 100%; }
  .directive-pool { grid-template-columns: 1fr; max-height: 480px; }
  .type-grid, .action-grid { grid-template-columns: 1fr; }
  .button-row, .action-buttons { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .footer-line { flex-direction: column; gap: 4px; }
  .review-top-actions { align-items: flex-end; }
  .review-top-actions .btn { width: auto; }
  .dossier-body { padding: 18px 12px 30px; }
  .directive-sheet { margin: 0 5px; padding: 34px 24px 56px; }
  .status-tabs { grid-template-columns: repeat(2, 1fr); }
  .submission-page .button-row { align-items: stretch; }
  .submission-readiness { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
