:root {
  color-scheme: dark;
  --bg: #0c110e;
  --bg-deep: #060906;
  --surface: #131b15;
  --surface-raised: #18231b;
  --ink: #edf1e4;
  --ink-soft: #c3cdbe;
  --muted: #8f9d91;
  --dim: #657267;
  --leaf: #afd878;
  --leaf-soft: #d3f2a0;
  --amber: #e6b961;
  --danger: #e67d72;
  --line: rgba(224, 238, 214, 0.12);
  --line-strong: rgba(224, 238, 214, 0.22);
  --paper: #d9d3bd;
  --paper-ink: #252b24;
  --paper-muted: #6f7469;
  --paper-red: #9c3b31;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  font-family:
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 3%, rgba(175, 216, 120, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 90%, rgba(230, 185, 97, 0.06), transparent 26rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 6vw, 68px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(191, 226, 143, 0.36);
  border-radius: 50%;
  background: rgba(175, 216, 120, 0.06);
}

.brand-eye {
  position: relative;
  width: 25px;
  height: 15px;
  border: 1px solid var(--leaf-soft);
  border-radius: 50% / 60%;
}

.brand-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf-soft);
  box-shadow: 0 0 10px rgba(211, 242, 160, 0.5);
  content: "";
  transform: translate(-50%, -50%);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.eyebrow,
.section-code,
.block-label {
  margin: 0;
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.station-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(175, 216, 120, 0.24);
  border-radius: 999px;
  color: var(--leaf-soft);
  background: rgba(175, 216, 120, 0.055);
  font-size: 11px;
  white-space: nowrap;
}

.status-dot,
.live-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(175, 216, 120, 0.08);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: start;
  gap: clamp(30px, 5vw, 64px);
}

.intro-copy {
  padding-top: 18px;
}

.intro-copy h1 {
  margin: 11px 0 18px;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.intro-lead {
  max-width: 32em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 24px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
}

.privacy-strip > span {
  color: var(--leaf);
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 130ms ease,
    filter 130ms ease,
    border-color 130ms ease,
    background-color 130ms ease;
}

.button:hover {
  filter: brightness(1.035);
}

.button:active {
  transform: scale(0.985);
}

.button:focus-visible,
.text-action:focus-visible,
.tool-button:focus-visible {
  outline: 2px solid var(--leaf-soft);
  outline-offset: 3px;
}

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

.button-primary {
  color: #171f0f;
  background: linear-gradient(135deg, var(--leaf-soft), var(--leaf));
  box-shadow: 0 12px 35px rgba(94, 135, 49, 0.2);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.038);
}

.button-ghost {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.button-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.button-wide {
  width: 100%;
}

.button-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.camera-button-icon::before {
  position: absolute;
  inset: 4px 1px 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  content: "";
}

.camera-button-icon::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.upload-button-icon::before {
  position: absolute;
  top: 3px;
  left: 8px;
  width: 2px;
  height: 10px;
  background: currentColor;
  content: "";
}

.upload-button-icon::after {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.text-action {
  margin-left: 3px;
  padding: 10px 4px;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(143, 157, 145, 0.35);
  text-underline-offset: 4px;
}

.text-action:hover {
  color: var(--ink-soft);
}

.station-stats {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr;
  gap: 1px;
  overflow: hidden;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.station-stats > div {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(14, 20, 16, 0.94);
}

.station-stats dt {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.station-stats dd {
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.station-stats dd span {
  color: var(--leaf-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 18px;
}

.scanner-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow);
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
}

.scanner-header > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.empty-stage {
  position: relative;
  display: grid;
  min-height: 390px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 40px;
  text-align: center;
}

.empty-stage::before {
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(175, 216, 120, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(175, 216, 120, 0.055) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(175, 216, 120, 0.055) 50%, transparent 50.2%);
  content: "";
}

.scanner-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(175, 216, 120, 0.1);
  border-radius: 50%;
  animation: orbit-rotate 20s linear infinite;
}

.scanner-orbit::before,
.scanner-orbit::after {
  position: absolute;
  border: 1px solid rgba(175, 216, 120, 0.075);
  border-radius: 50%;
  content: "";
}

.scanner-orbit::before {
  inset: 35px;
}

.scanner-orbit::after {
  inset: 88px;
}

.scanner-orbit span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 14px rgba(175, 216, 120, 0.55);
}

.scanner-orbit span:nth-child(1) {
  top: 25px;
  left: 60px;
}

.scanner-orbit span:nth-child(2) {
  right: 20px;
  bottom: 93px;
}

.scanner-orbit span:nth-child(3) {
  bottom: 22px;
  left: 93px;
}

.empty-target {
  position: relative;
  display: grid;
  width: 118px;
  height: 86px;
  place-items: center;
  margin-bottom: 24px;
}

.target-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(211, 242, 160, 0.6);
  border-style: solid;
}

.corner-tl {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.corner-tr {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.corner-br {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.target-eye {
  position: relative;
  width: 43px;
  height: 25px;
  border: 1px solid var(--leaf-soft);
  border-radius: 50% / 62%;
}

.target-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--leaf-soft);
  box-shadow: 0 0 20px rgba(211, 242, 160, 0.45);
  content: "";
  transform: translate(-50%, -50%);
}

.empty-stage p {
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.empty-stage > span {
  z-index: 1;
  margin-top: 7px;
  color: var(--dim);
  font-size: 10px;
}

.photo-stage {
  padding: 18px 18px 0;
}

.photo-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050705;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.circle-control {
  position: absolute;
  z-index: 8;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  touch-action: none;
}

.circle-control.is-selected {
  border-color: rgba(25, 71, 255, 0.92);
  box-shadow:
    0 0 0 2px rgba(255, 253, 246, 0.9),
    0 0 0 5px rgba(25, 71, 255, 0.18);
  cursor: grab;
  pointer-events: auto;
}

.circle-control.is-dragging {
  cursor: grabbing;
}

.circle-resize-handle {
  position: absolute;
  right: -11px;
  bottom: -11px;
  display: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fffdf6;
  border-radius: 50%;
  background: #1947ff;
  box-shadow: 0 0 0 2px #171716;
  cursor: nwse-resize;
  touch-action: none;
}

.circle-control.is-selected .circle-resize-handle {
  display: block;
}

.photo-wrap.is-scanning {
  pointer-events: none;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0, rgba(211, 242, 160, 0.12) 49%, rgba(211, 242, 160, 0.72) 50%, transparent 52%),
    repeating-linear-gradient(
      0deg,
      rgba(211, 242, 160, 0.035) 0,
      rgba(211, 242, 160, 0.035) 1px,
      transparent 1px,
      transparent 5px
    );
  background-size: 100% 34%, auto;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

.photo-wrap.is-scanning .scan-overlay {
  opacity: 1;
  animation: scan-photo 1.6s linear infinite;
}

.mark-layer,
.result-mark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.evidence-mark {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(211, 242, 160, 0.9);
  border-radius: 50%;
  color: #eaffc5;
  background: rgba(10, 16, 11, 0.64);
  box-shadow:
    0 0 0 7px rgba(175, 216, 120, 0.09),
    0 0 20px rgba(175, 216, 120, 0.22);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  transform: translate(-50%, -50%);
  animation: mark-drop 180ms ease both;
  backdrop-filter: blur(5px);
}

.evidence-mark::before,
.evidence-mark::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.evidence-mark::before {
  inset: -11px;
  border: 1px solid rgba(211, 242, 160, 0.2);
  border-radius: 50%;
}

.evidence-mark::after {
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: rgba(211, 242, 160, 0.12);
}

.photo-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 1px;
  color: var(--muted);
  font-size: 10px;
}

.tool-button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

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

.scan-progress {
  margin: 0 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.scan-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.scan-progress-head strong {
  color: var(--leaf-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 500;
}

.scan-progress-track {
  overflow: hidden;
  height: 3px;
  margin-top: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.scan-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-soft));
  transition: width 180ms ease;
}

.scanner-actions {
  display: flex;
  gap: 9px;
  padding: 17px 18px 0;
}

.scanner-actions .button-primary {
  flex: 1;
}

.scanner-footnote {
  margin: 11px 18px 18px;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.6;
}

.result-section {
  margin-top: clamp(48px, 8vw, 94px);
  animation: result-enter 460ms ease both;
}

.result-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.result-topline h2 {
  margin: 7px 0 0;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.result-actions .button {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 11px;
}

.dossier {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  color: var(--paper-ink);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.2), transparent 22%),
    repeating-linear-gradient(
      0deg,
      rgba(42, 48, 40, 0.025) 0,
      rgba(42, 48, 40, 0.025) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--paper);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.3),
    inset 0 0 70px rgba(72, 66, 47, 0.07);
}

.dossier::before {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(72, 66, 47, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(72, 66, 47, 0.025),
    0 0 0 72px rgba(72, 66, 47, 0.018);
  content: "";
  pointer-events: none;
}

.dossier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--paper-ink);
}

.dossier-office {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-eye {
  position: relative;
  width: 34px;
  height: 21px;
  border: 1.5px solid var(--paper-ink);
  border-radius: 50% / 62%;
}

.mini-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-ink);
  content: "";
  transform: translate(-50%, -50%);
}

.dossier-office > span:last-child {
  display: grid;
  gap: 3px;
}

.dossier-office small,
.dossier-date,
.anomaly-classification {
  color: var(--paper-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.dossier-office strong {
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.dossier-code {
  display: grid;
  justify-items: end;
  gap: 5px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
}

.dossier-code > span {
  color: var(--paper-red);
  font-weight: 700;
}

.dossier-code strong {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.dossier-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: clamp(25px, 4vw, 40px) 0 24px;
}

.dossier-date {
  margin: 0;
}

.dossier-title-row h3 {
  max-width: 17em;
  margin: 9px 0 7px;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(33px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.anomaly-classification {
  margin: 0;
  color: var(--paper-red);
}

.rarity-seal {
  display: grid;
  min-width: 112px;
  flex: 0 0 auto;
  justify-items: center;
  padding: 12px 15px;
  border: 2px solid var(--paper-red);
  color: var(--paper-red);
  transform: rotate(2.5deg);
}

.rarity-seal span,
.rarity-seal small {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rarity-seal strong {
  margin: 3px 0;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 34px;
  line-height: 1;
}

.dossier-photo-frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--paper-ink);
  background: #111612;
}

.dossier-photo-frame > img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.04);
}

.dossier-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  color: rgba(237, 241, 228, 0.6);
  background: var(--paper-ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
}

.result-mark-layer .evidence-mark {
  width: 28px;
  height: 28px;
  color: var(--paper-ink);
  background: rgba(237, 241, 228, 0.7);
  border-color: var(--paper-ink);
  box-shadow: 0 0 0 6px rgba(37, 43, 36, 0.12);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(37, 43, 36, 0.2);
  background: rgba(37, 43, 36, 0.2);
}

.metric {
  padding: 15px;
  background: rgba(255, 255, 255, 0.13);
}

.metric > span {
  display: block;
  color: var(--paper-muted);
  font-size: 9px;
}

.metric > strong {
  display: block;
  margin-top: 5px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 29px;
  font-weight: 500;
}

.metric-track {
  overflow: hidden;
  height: 3px;
  margin-top: 9px;
  background: rgba(37, 43, 36, 0.13);
}

.metric-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--paper-red);
  transition: width 650ms ease 180ms;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.tag-list span {
  padding: 5px 9px;
  border: 1px solid rgba(37, 43, 36, 0.24);
  border-radius: 999px;
  color: var(--paper-ink);
  font-size: 9px;
}

.dossier-copy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-top: 22px;
}

.dossier-block {
  padding: 17px;
  border: 1px solid rgba(37, 43, 36, 0.18);
  background: rgba(255, 255, 255, 0.11);
}

.dossier-summary {
  grid-row: span 2;
}

.block-label {
  color: var(--paper-red);
  font-family: "Cascadia Mono", Consolas, monospace;
}

.dossier-block p:last-child,
.dossier-block blockquote {
  margin: 10px 0 0;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
}

.dossier-summary p:last-child {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.85;
}

.redacted-line {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.redacted-line span {
  display: block;
  height: 8px;
  background: var(--paper-ink);
}

.redacted-line span:nth-child(1) {
  width: 32%;
}

.redacted-line span:nth-child(2) {
  width: 44%;
}

.redacted-line span:nth-child(3) {
  width: 16%;
}

.evidence-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 13px;
}

.evidence-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(37, 43, 36, 0.16);
}

.evidence-item > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(37, 43, 36, 0.28);
  border-radius: 50%;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
}

.evidence-item div {
  min-width: 0;
}

.evidence-item strong,
.evidence-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-item strong {
  font-size: 9px;
}

.evidence-item small {
  margin-top: 3px;
  color: var(--paper-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 7px;
}

.dossier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(37, 43, 36, 0.25);
  color: var(--paper-muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
}

.dossier-foot strong {
  color: var(--paper-ink);
}

.stamp {
  padding: 5px 11px;
  border: 2px solid var(--paper-red);
  color: var(--paper-red);
  font-family: "STSong", "Songti SC", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-4deg);
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 4px 0;
  color: var(--dim);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  z-index: 30;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(24, 35, 27, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(15px);
}

.capture-gate {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(241, 237, 226, 0.8);
  backdrop-filter: blur(10px);
}

.capture-gate-card {
  width: min(100%, 340px);
  padding: 28px 24px;
  border: 3px solid #171716;
  color: #171716;
  background:
    linear-gradient(90deg, rgba(25, 71, 255, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(25, 71, 255, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    #fffdf6;
  box-shadow: 9px 9px 0 #171716;
  text-align: center;
}

.capture-gate-eye {
  position: relative;
  display: block;
  width: 62px;
  height: 36px;
  margin: 0 auto 20px;
  border: 3px solid #171716;
  border-radius: 50% / 62%;
}

.capture-gate-eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 7px rgba(25, 71, 255, 0.11);
  content: "";
  transform: translate(-50%, -50%);
  animation: capture-gate-pulse 900ms ease-in-out infinite alternate;
}

.capture-gate-card p {
  margin: 0;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.capture-gate-card small {
  display: block;
  margin-top: 9px;
  color: #6b685f;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  line-height: 1.6;
}

@keyframes capture-gate-pulse {
  to {
    transform: translate(-50%, -50%) scale(1.25);
  }
}

.dossier.mode-ticket .dossier-code > span,
.dossier.mode-ticket .block-label {
  color: #49685a;
}

.dossier.mode-ticket .rarity-seal,
.dossier.mode-ticket .stamp {
  border-color: #49685a;
  color: #49685a;
}

.dossier.mode-wanted .dossier-code > span,
.dossier.mode-wanted .block-label {
  color: #8c5428;
}

.dossier.mode-wanted .rarity-seal,
.dossier.mode-wanted .stamp {
  border-color: #8c5428;
  color: #8c5428;
}

.dossier.mode-wanted .dossier-title-row h3 {
  text-align: center;
  text-transform: uppercase;
}

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

@keyframes scan-photo {
  from {
    background-position: 0 -40%;
  }

  to {
    background-position: 0 140%;
  }
}

@keyframes mark-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes result-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-copy {
    padding-top: 0;
  }

  .intro-copy h1 {
    font-size: clamp(38px, 8vw, 58px);
  }

  .empty-stage {
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding-top: max(17px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 38px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .station-status {
    padding: 6px 9px;
    font-size: 9px;
  }

  .intro-copy h1 {
    margin-top: 8px;
    font-size: clamp(34px, 10vw, 48px);
  }

  .intro-lead {
    font-size: 13px;
  }

  .intake-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intake-actions .text-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .station-stats {
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
  }

  .station-stats > div {
    padding: 11px;
  }

  .station-stats dd {
    font-size: 9px;
  }

  .scanner-header {
    padding-inline: 14px;
  }

  .photo-stage {
    padding: 12px 12px 0;
  }

  .scanner-actions {
    padding-inline: 12px;
  }

  .scanner-footnote {
    margin-inline: 12px;
  }

  .result-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-actions {
    width: 100%;
    justify-content: stretch;
  }

  .result-actions .button {
    flex: 1;
  }

  .dossier-head {
    gap: 12px;
  }

  .dossier-title-row {
    gap: 14px;
  }

  .rarity-seal {
    min-width: 84px;
    padding: 9px 10px;
  }

  .rarity-seal strong {
    font-size: 27px;
  }

  .dossier-copy-grid {
    grid-template-columns: 1fr;
  }

  .dossier-summary {
    grid-row: auto;
  }

  .evidence-list {
    grid-template-columns: 1fr;
  }

  .dossier-foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 450px) {
  .station-status {
    font-size: 0;
  }

  .station-status::after {
    font-size: 9px;
    content: "接收中";
  }

  .station-stats {
    grid-template-columns: 1fr 1fr;
  }

  .station-stats > div:first-child {
    grid-column: 1 / -1;
  }

  .empty-stage {
    min-height: 290px;
    padding: 25px;
  }

  .scanner-orbit {
    width: 220px;
    height: 220px;
  }

  .scanner-header > span:last-child {
    display: none;
  }

  .dossier {
    padding: 18px 15px;
  }

  .dossier-office strong {
    font-size: 13px;
  }

  .dossier-code strong {
    font-size: 9px;
  }

  .dossier-title-row {
    flex-direction: column;
  }

  .rarity-seal {
    align-self: flex-end;
    margin-top: -8px;
  }

  .metric {
    padding: 11px;
  }

  .metric > strong {
    font-size: 24px;
  }

  .dossier-block {
    padding: 14px;
  }

  .dossier-photo-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

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

/* Editorial paper-and-ink direction */
:root {
  color-scheme: light;
  --bg: #f1ede2;
  --bg-deep: #e7e0d2;
  --surface: #fffdf6;
  --surface-raised: #f7f2e7;
  --ink: #141414;
  --ink-soft: #33332f;
  --muted: #67665e;
  --dim: #8d8a7f;
  --leaf: #1947ff;
  --leaf-soft: #1947ff;
  --amber: #1947ff;
  --danger: #f24f32;
  --line: #1b1b1a;
  --line-strong: #1b1b1a;
  --paper: #fff7df;
  --paper-ink: #191917;
  --paper-muted: #6a665c;
  --paper-red: #e1402d;
  --shadow: 10px 10px 0 #181816;
  font-family:
    "Arial", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
}

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(25, 71, 255, 0.16) 1.25px, transparent 1.5px) 0 0 / 28px 28px,
    linear-gradient(135deg, rgba(255, 98, 67, 0.06), transparent 38%),
    linear-gradient(315deg, rgba(223, 255, 85, 0.22), transparent 34%),
    var(--bg);
}

.page-noise {
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.topbar {
  margin-bottom: clamp(28px, 5vw, 58px);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 2px solid #171716;
  border-radius: 5px;
  background: #171716;
  box-shadow: 4px 4px 0 var(--leaf);
}

.brand-eye {
  width: 25px;
  height: 16px;
  border-color: #e8ff79;
}

.brand-eye::after {
  background: #e8ff79;
  box-shadow: none;
}

.brand-copy {
  gap: 0;
}

.brand-copy strong {
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: var(--leaf);
  letter-spacing: 0.14em;
}

.station-status {
  min-height: 34px;
  padding: 8px 12px;
  border: 2px solid #151515;
  color: #eaff7c;
  background: #151515;
  box-shadow: 4px 4px 0 var(--leaf);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.status-dot {
  background: #ddff5a;
  box-shadow: none;
}

.intro-copy {
  padding-top: 9px;
}

.section-code {
  color: var(--leaf);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.intro-copy h1 {
  max-width: 750px;
  margin: 14px 0 22px;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: clamp(40px, 4.5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 1.02;
  text-wrap: balance;
}

.intro-copy h1::first-line {
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 8px;
  text-underline-offset: 4px;
}

.intro-lead {
  max-width: 31em;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.privacy-strip {
  border: 2px solid #181815;
  border-radius: 3px;
  color: #1b1b18;
  background: #e2ff6a;
  box-shadow: 3px 3px 0 #181815;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}

.privacy-strip > span {
  color: #1b1b18;
}

.button {
  min-height: 49px;
  border: 2px solid #171716;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 4px 4px 0 #171716;
}

.button:hover {
  filter: none;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #171716;
}

.button:active {
  box-shadow: 1px 1px 0 #171716;
  transform: translate(3px, 3px);
}

.button-primary {
  color: #fffdf7;
  background: var(--leaf);
  box-shadow: 4px 4px 0 #171716;
}

.button-secondary {
  color: #171716;
  background: #e2ff6a;
}

.button-ghost {
  border-color: #171716;
  color: #171716;
  background: #fffdf6;
}

.button-ghost:hover {
  color: #171716;
  background: #f6efe0;
}

.button:focus-visible,
.text-action:focus-visible,
.tool-button:focus-visible {
  outline: 3px solid var(--danger);
  outline-offset: 3px;
}

.button:disabled {
  color: #5f5c53;
  background: #d7d1c4;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.text-action {
  color: #171716;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 2px;
}

.text-action:hover {
  color: var(--leaf);
}

.station-stats {
  gap: 0;
  border: 2px solid #161615;
  border-radius: 5px;
  background: #161615;
  box-shadow: 5px 5px 0 rgba(25, 71, 255, 0.2);
}

.station-stats > div {
  border-right: 1px solid #161615;
  background: #fffdf6;
}

.station-stats > div:last-child {
  border-right: 0;
}

.station-stats dt {
  color: #6c695e;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
}

.station-stats dd {
  color: #1c1c19;
  font-weight: 700;
}

.station-stats dd span {
  color: var(--leaf);
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 20px;
}

.scanner-panel {
  border: 2px solid #181816;
  border-radius: 7px;
  background: #fffdf6;
  box-shadow: 10px 10px 0 #181816;
}

.scanner-header {
  min-height: 48px;
  border-bottom: 2px solid #181816;
  color: #181816;
  background: #e2ff6a;
  font-size: 9px;
  font-weight: 700;
}

.scanner-header::before {
  content: "LIVE SCAN";
  padding: 4px 7px;
  color: #f9f8ef;
  background: #181816;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.analysis-mode-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 2px solid #171716;
  background: #fffdf6;
}

.analysis-mode-bar > span {
  flex: 0 0 auto;
  color: #67645b;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.analysis-mode-list {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.analysis-mode-list::-webkit-scrollbar {
  display: none;
}

.analysis-mode {
  min-height: 27px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid #171716;
  border-radius: 2px;
  color: #4b4942;
  background: #f2ede2;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.analysis-mode:hover {
  background: #e9e4d9;
}

.analysis-mode.is-active {
  color: #fff;
  background: var(--leaf);
  box-shadow: 2px 2px 0 #171716;
}

.search-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  padding: 11px 14px;
  border-bottom: 2px solid #171716;
  background: #f5efdf;
}

.search-panel label {
  align-self: center;
  color: #171716;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.search-panel input {
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #171716;
  border-radius: 2px;
  color: #171716;
  background: #fffdf6;
  font: inherit;
  font-size: 11px;
}

.search-panel small {
  grid-column: 2;
  color: #777268;
  font-size: 9px;
  line-height: 1.45;
}

.web-search-block {
  margin-top: 16px;
}

.image-analysis-block {
  margin-top: 16px;
  border-color: #1947ff;
  background:
    linear-gradient(135deg, rgba(25, 71, 255, 0.08), transparent 58%),
    #fffdf6;
}

.image-analysis-block h3 {
  margin: 0 0 8px;
  color: #171716;
  font-size: clamp(21px, 6vw, 30px);
  line-height: 1.1;
}

.image-analysis-block > p:not(.block-label) {
  margin: 0;
  color: #36342f;
  font-size: 13px;
  line-height: 1.75;
}

.image-analysis-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.image-analysis-facts span {
  padding: 5px 8px;
  border: 1px solid #171716;
  color: #171716;
  background: #fff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
}

.image-analysis-details,
.image-analysis-reason {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed #a6a094;
}

.image-analysis-details strong,
.image-analysis-reason strong {
  display: block;
  margin-bottom: 7px;
  color: #1947ff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.image-analysis-details ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.image-analysis-details li,
.image-analysis-reason p {
  margin: 0;
  color: #3d3a34;
  font-size: 12px;
  line-height: 1.7;
}

.image-region-analysis {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 2px solid #171716;
}

.image-web-search {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #171716;
  background: #fff8dc;
}

.image-web-search > strong {
  color: #1947ff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.image-web-search > p {
  margin: 7px 0 10px;
  font-size: 12px;
  line-height: 1.65;
}

.image-web-search-results {
  display: grid;
  gap: 7px;
}

.image-web-search-results a {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid #aaa394;
  color: #171716;
  background: #fff;
  text-decoration: none;
}

.image-web-search-results a strong {
  font-size: 11px;
}

.image-web-search-results a span {
  color: #6b675e;
  font-size: 9px;
  line-height: 1.45;
}

.image-region-analysis > strong {
  color: #e1402d;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.image-region-analysis h4 {
  margin: 8px 0 7px;
  font-size: 20px;
}

.image-region-analysis > p {
  margin: 0;
  color: #3d3a34;
  font-size: 12px;
  line-height: 1.7;
}

.image-region-analysis ul {
  display: grid;
  gap: 6px;
  margin: 11px 0 0;
  padding-left: 18px;
}

.image-region-analysis li {
  color: #3d3a34;
  font-size: 12px;
  line-height: 1.65;
}

.region-anomaly-hint {
  margin-top: 11px !important;
  padding: 9px 10px;
  border-left: 4px solid #e1402d;
  background: #fff2ed;
}

.web-search-meta {
  margin: 0 0 10px;
  color: #67645b;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
}

.web-search-results {
  display: grid;
  gap: 8px;
}

.web-search-results a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #aaa394;
  color: #171716;
  background: #fffdf6;
  text-decoration: none;
}

.web-search-results a strong {
  font-size: 12px;
}

.web-search-results a span {
  color: #69655c;
  font-size: 10px;
  line-height: 1.45;
}

.live-mark {
  width: 7px;
  height: 7px;
  background: var(--danger);
  box-shadow: none;
}

.empty-stage {
  min-height: 405px;
  background:
    linear-gradient(90deg, rgba(25, 71, 255, 0.07) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(25, 71, 255, 0.07) 1px, transparent 1px) 0 0 / 38px 38px,
    #f5f2e8;
}

.empty-stage::before {
  inset: 24px;
  border: 2px solid #181816;
  border-radius: 2px;
  background: transparent;
}

.empty-stage::after {
  position: absolute;
  top: 44px;
  left: 44px;
  padding: 5px 8px;
  color: #fff;
  background: var(--danger);
  content: "NO EVIDENCE";
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.scanner-orbit {
  width: 300px;
  height: 300px;
  border: 2px solid rgba(25, 71, 255, 0.24);
}

.scanner-orbit::before,
.scanner-orbit::after {
  border-color: rgba(25, 71, 255, 0.15);
}

.scanner-orbit span {
  width: 9px;
  height: 9px;
  background: var(--danger);
  box-shadow: none;
}

.target-corner {
  width: 27px;
  height: 27px;
  border-color: #181816;
  border-width: 3px;
}

.target-eye {
  width: 51px;
  height: 29px;
  border: 3px solid #181816;
}

.target-eye::after {
  width: 13px;
  height: 13px;
  background: var(--leaf);
  box-shadow: none;
}

.empty-stage p {
  color: #181816;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.empty-stage > span {
  color: #68665d;
  font-size: 10px;
  font-weight: 600;
}

.photo-stage {
  padding: 14px 14px 0;
}

.photo-wrap {
  border: 2px solid #181816;
  border-radius: 2px;
}

.photo-wrap.is-scanning .scan-overlay {
  opacity: 1;
  background:
    linear-gradient(180deg, transparent 0, rgba(25, 71, 255, 0.12) 49%, rgba(25, 71, 255, 0.9) 50%, transparent 52%),
    repeating-linear-gradient(
      0deg,
      rgba(25, 71, 255, 0.08) 0,
      rgba(25, 71, 255, 0.08) 1px,
      transparent 1px,
      transparent 6px
    );
}

.evidence-mark {
  width: 32px;
  height: 32px;
  border: 2px solid #171716;
  color: #fffdf5;
  background: var(--danger);
  box-shadow: 4px 4px 0 #171716;
  font-weight: 800;
}

.evidence-mark::before {
  inset: -11px;
  border: 2px dashed rgba(255, 255, 255, 0.72);
}

.evidence-mark::after {
  display: none;
}

.mark-layer svg,
.result-mark-layer svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mark-layer path,
.result-mark-layer path {
  fill: rgba(255, 98, 67, 0.1);
  stroke: #f24f32;
  stroke-width: 4px;
  stroke-dasharray: 11 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(23, 23, 22, 0.36));
}

.result-mark-layer path {
  stroke: #e1402d;
  stroke-width: 5px;
  fill: rgba(225, 64, 45, 0.08);
}

.photo-tools {
  color: #5f5c53;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
}

.tool-button {
  border: 2px solid #171716;
  border-radius: 3px;
  color: #171716;
  background: #fff;
  font-weight: 700;
}

.scan-progress {
  border-top: 2px solid #171716;
}

.scan-progress-head {
  color: #4f4d46;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}

.scan-progress-head strong {
  color: var(--leaf);
  font-size: 12px;
}

.scan-progress-track {
  height: 7px;
  border: 1px solid #171716;
  border-radius: 0;
  background: #fff;
}

.scan-progress-track span {
  background: var(--leaf);
}

.scanner-actions {
  padding-inline: 14px;
}

.scanner-footnote {
  margin-inline: 14px;
  color: #757267;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 8px;
}

.result-section {
  margin-top: clamp(46px, 8vw, 82px);
}

.result-topline h2 {
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.06em;
}

.result-actions .button {
  min-height: 40px;
  box-shadow: 3px 3px 0 #171716;
}

.dossier {
  border: 3px solid #171716;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(25, 71, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(25, 71, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    #fff7df;
  box-shadow: 12px 12px 0 #171716;
}

.dossier::before {
  top: 20px;
  right: 22px;
  width: 150px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: rgba(226, 255, 106, 0.78);
  box-shadow: none;
  transform: rotate(3deg);
}

.dossier-head {
  border-bottom: 3px solid #171716;
}

.mini-eye {
  border: 3px solid #171716;
}

.mini-eye::after {
  background: var(--leaf);
}

.dossier-office strong {
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.04em;
}

.dossier-code > span {
  color: var(--leaf);
}

.dossier-code strong {
  color: #171716;
  font-weight: 800;
}

.dossier-title-row h3 {
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.anomaly-classification {
  color: var(--danger);
  font-weight: 800;
}

.rarity-seal {
  border: 3px solid var(--danger);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 4px 4px 0 rgba(225, 64, 45, 0.18);
  transform: rotate(3deg);
}

.dossier-photo-frame {
  border: 3px solid #171716;
  border-radius: 2px;
}

.dossier-photo-meta {
  color: #eaff7c;
  background: #171716;
}

.result-mark-layer .evidence-mark {
  color: #fff;
  background: var(--danger);
  border-color: #171716;
  box-shadow: 4px 4px 0 #171716;
}

.metric-grid {
  gap: 0;
  border: 2px solid #171716;
  background: #171716;
}

.metric {
  border-right: 2px solid #171716;
  background: #fffdf6;
}

.metric:last-child {
  border-right: 0;
}

.metric:nth-child(1) {
  background: #e2ff6a;
}

.metric:nth-child(2) {
  background: #dce4ff;
}

.metric > strong {
  color: #171716;
  font-weight: 800;
}

.metric-track {
  height: 5px;
  background: rgba(23, 23, 22, 0.16);
}

.metric-track i {
  background: var(--leaf);
}

.metric:nth-child(2) .metric-track i {
  background: var(--danger);
}

.tag-list span {
  border: 2px solid #171716;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.54);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
}

.dossier-block {
  border: 2px solid #171716;
  background: rgba(255, 255, 255, 0.56);
}

.block-label {
  color: var(--leaf);
  font-weight: 800;
}

.dossier-block p:last-child,
.dossier-block blockquote {
  font-family: "Arial", "Microsoft YaHei", sans-serif;
  font-weight: 600;
}

.dossier-summary {
  background: #fffdf6;
}

.redacted-line span {
  background: #171716;
}

.evidence-item {
  border: 2px solid #171716;
  background: #fffdf6;
}

.evidence-item > span:first-child {
  color: #fff;
  background: var(--danger);
  border: 2px solid #171716;
  font-weight: 800;
}

.dossier-foot {
  border-top: 2px solid #171716;
  color: #5d5a51;
  font-weight: 700;
}

.stamp {
  border: 3px solid var(--danger);
  color: var(--danger);
  background: rgba(255, 255, 255, 0.34);
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  transform: rotate(-3deg);
}

.dossier.mode-ticket .dossier-code > span,
.dossier.mode-ticket .block-label {
  color: #0f6d57;
}

.dossier.mode-ticket .rarity-seal,
.dossier.mode-ticket .stamp {
  border-color: #0f6d57;
  color: #0f6d57;
}

.dossier.mode-wanted .dossier-code > span,
.dossier.mode-wanted .block-label {
  color: #c23f27;
}

.dossier.mode-wanted .rarity-seal,
.dossier.mode-wanted .stamp {
  border-color: #c23f27;
  color: #c23f27;
}

.page-footer {
  color: #535148;
  font-weight: 700;
}

@media (max-width: 920px) {
  .intro-copy h1 {
    max-width: 780px;
    font-size: clamp(42px, 8vw, 64px);
  }

  .scanner-panel {
    box-shadow: 8px 8px 0 #181816;
  }
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle, rgba(25, 71, 255, 0.13) 1px, transparent 1.25px) 0 0 / 24px 24px,
      linear-gradient(315deg, rgba(226, 255, 106, 0.3), transparent 30%),
      var(--bg);
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy .eyebrow {
    font-size: 8px;
  }

  .station-status {
    box-shadow: 3px 3px 0 var(--leaf);
  }

  .intro-copy h1 {
    font-size: clamp(37px, 10.2vw, 50px);
    line-height: 1.04;
  }

  .station-stats {
    box-shadow: 4px 4px 0 rgba(25, 71, 255, 0.2);
  }

  .scanner-panel {
    border-radius: 5px;
    box-shadow: 6px 6px 0 #181816;
  }

  .scanner-header {
    padding-inline: 11px;
  }

  .scanner-header::before {
    display: none;
  }

  .empty-stage {
    min-height: 320px;
  }

  .dossier {
    box-shadow: 7px 7px 0 #171716;
  }

  .dossier::before {
    width: 95px;
    height: 22px;
  }

  .dossier-title-row h3 {
    font-size: clamp(31px, 10vw, 45px);
  }
}

@media (max-width: 450px) {
  .app-shell {
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .station-status {
    min-width: 52px;
    justify-content: center;
    padding-inline: 7px;
    font-size: 9px;
  }

  .station-status::after {
    display: none;
  }

  .intro-copy h1 {
    font-size: 36px;
    letter-spacing: -0.07em;
  }

  .privacy-strip {
    width: 100%;
    border-radius: 3px;
  }

  .intake-actions {
    gap: 9px;
  }

  .button {
    padding-inline: 11px;
    box-shadow: 3px 3px 0 #171716;
  }

  .station-stats > div {
    padding: 10px;
  }

  .empty-stage::after {
    top: 34px;
    left: 34px;
  }

  .empty-stage {
    padding: 22px;
  }

  .scanner-orbit {
    width: 230px;
    height: 230px;
  }

  .result-actions {
    gap: 7px;
  }

  .result-actions .button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 10px;
    box-shadow: 2px 2px 0 #171716;
  }

  .dossier {
    padding: 16px 13px;
    box-shadow: 5px 5px 0 #171716;
  }

  .dossier-head {
    align-items: flex-start;
  }

  .dossier-office small {
    display: none;
  }

  .dossier-code {
    padding-right: 34px;
  }

  .rarity-seal {
    min-width: 82px;
  }

  .metric {
    padding: 10px 8px;
  }

  .metric > strong {
    font-size: 23px;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
