:root {
  --black: #060807;
  --graphite: #101412;
  --panel: #151a17;
  --panel-strong: #1d231f;
  --line: rgba(208, 219, 194, 0.16);
  --line-strong: rgba(208, 219, 194, 0.34);
  --paper: #d4bd88;
  --paper-dark: #a8874f;
  --paper-light: #efe0bf;
  --ink: #1b1712;
  --muted: #9ca693;
  --white: #f1f5e9;
  --red: #b8332a;
  --red-deep: #7f1d1a;
  --green: #7fdb87;
  --green-deep: #315f3b;
  --amber: #d7a842;
  --cyan: #80c7bb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  font-family:
    "Courier New",
    "Lucida Console",
    monospace;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(127, 219, 135, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 72%, rgba(184, 51, 42, 0.08), transparent 30rem),
    linear-gradient(135deg, #050605 0%, #0c100e 45%, #050706 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  opacity: 0.2;
  background:
    linear-gradient(rgba(127, 219, 135, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 219, 135, 0.05) 1px, transparent 1px),
    url("assets/map-transparent.png") center / cover no-repeat;
  background-size: 72px 72px, 72px 72px, cover;
}

body::after {
  z-index: -1;
  opacity: 0.13;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: overlay;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.site-shell::before {
  position: fixed;
  right: -2.5rem;
  bottom: 3rem;
  z-index: 0;
  transform: rotate(-14deg);
  color: rgba(255, 255, 255, 0.035);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  content: "CLASSIFIED";
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 48px;
}

.screen {
  min-height: calc(100vh - 90px);
  animation: screen-in 360ms ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.status-line,
.folder-code,
.stamp,
.tag,
.case-code,
.small-label {
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(127, 219, 135, 0.25);
  color: var(--green);
  background: rgba(127, 219, 135, 0.08);
  font-size: 0.78rem;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  content: "";
}

.screen-title {
  max-width: 840px;
  margin: 0;
  color: var(--white);
  font-size: 3.15rem;
  line-height: 1.02;
}

.screen-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: #d8decf;
  font-size: 1.05rem;
  line-height: 1.65;
}

.instruction {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 22px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--amber);
  color: #f6e8be;
  background: rgba(215, 168, 66, 0.1);
  line-height: 1.4;
}

.dossier-paper .instruction,
.final-file .instruction,
.invite-document .instruction {
  color: #4a351d;
  background: rgba(215, 168, 66, 0.2);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.folder-btn,
.suspect-btn,
.evidence-btn,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.primary-btn {
  border: 1px solid rgba(184, 51, 42, 0.72);
  color: #fff5ed;
  background: linear-gradient(180deg, #b8332a, #7f1d1a);
  box-shadow: 0 16px 40px rgba(184, 51, 42, 0.2);
}

.primary-btn:hover,
.secondary-btn:hover,
.danger-btn:hover,
.ghost-btn:hover,
.folder-btn:hover,
.suspect-btn:hover,
.evidence-btn:hover,
.whatsapp-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn {
  border: 1px solid rgba(127, 219, 135, 0.38);
  color: var(--green);
  background: rgba(127, 219, 135, 0.09);
}

.dossier-paper .secondary-btn,
.final-file .secondary-btn,
.result-box .secondary-btn,
.case-section .secondary-btn {
  color: #fff8ec;
  background: #315f3b;
  border-color: #1f442a;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(31, 68, 42, 0.2);
}

.dossier-paper .secondary-btn:hover,
.final-file .secondary-btn:hover,
.result-box .secondary-btn:hover,
.case-section .secondary-btn:hover {
  background: #234f2f;
}

.danger-btn {
  border: 1px solid rgba(184, 51, 42, 0.5);
  color: #ffd0cc;
  background: rgba(184, 51, 42, 0.1);
}

.ghost-btn {
  border: 1px solid rgba(241, 245, 233, 0.2);
  color: var(--white);
  background: rgba(241, 245, 233, 0.04);
}

button:disabled,
a.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.access-hero {
  position: relative;
  min-height: 630px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 8, 7, 0.94), rgba(19, 25, 21, 0.88)),
    url("assets/map.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.access-hero::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(127, 219, 135, 0.16);
  content: "";
  pointer-events: none;
}

.access-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.agency-lockup {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 38px;
}

.agency-seal {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(127, 219, 135, 0.45);
  border-radius: 50%;
  color: var(--green);
  background:
    radial-gradient(circle, rgba(127, 219, 135, 0.14) 0 33%, transparent 34%),
    rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 34px rgba(127, 219, 135, 0.14);
  font-weight: 700;
}

.lockup-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lockup-title {
  margin: 0;
  font-size: 1.15rem;
}

.classified-banner {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 10px 14px;
  border: 2px solid rgba(184, 51, 42, 0.72);
  color: #ffc7c1;
  background: rgba(184, 51, 42, 0.12);
  font-size: 1.35rem;
  font-weight: 800;
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.terminal-feed,
.side-protocol,
.tracking-console,
.intel-panel,
.analysis-feed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 12, 10, 0.84);
  box-shadow: var(--shadow);
}

.side-protocol {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.side-protocol::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: url("assets/texturePaperWhite.png") center / cover no-repeat;
  mix-blend-mode: overlay;
  content: "";
}

.protocol-inner {
  position: relative;
  z-index: 1;
}

.protocol-title,
.panel-title,
.terminal-title {
  margin: 0 0 18px;
  color: #dce8cf;
  font-size: 1rem;
}

.protocol-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: protocol;
}

.protocol-list li {
  position: relative;
  min-height: 58px;
  padding: 13px 12px 13px 52px;
  border: 1px solid rgba(241, 245, 233, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: #d9decf;
  line-height: 1.35;
  counter-increment: protocol;
}

.protocol-list li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(184, 51, 42, 0.55);
  color: #ffd6d2;
  background: rgba(184, 51, 42, 0.18);
  content: counter(protocol, decimal-leading-zero);
}

.terminal-feed {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 122px;
  margin-top: 18px;
  padding: 16px;
  color: var(--green);
}

.terminal-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 24px;
}

.terminal-row::before {
  color: var(--amber);
  content: ">";
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1rem;
  background: var(--green);
  animation: blink 850ms steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
  margin-top: 26px;
}

.map-stage {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  border: 1px solid rgba(127, 219, 135, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 8, 6, 0.18), rgba(5, 8, 6, 0.45)),
    url("assets/map.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.map-stage::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(127, 219, 135, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(127, 219, 135, 0.08) 1px, transparent 1px);
  background-size: 78px 78px;
  content: "";
}

.map-stage::after {
  position: absolute;
  inset: -35%;
  z-index: 2;
  opacity: 0.62;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(127, 219, 135, 0.04) 255deg,
    rgba(127, 219, 135, 0.2) 335deg,
    transparent 360deg
  );
  filter: blur(0.2px);
  animation: radar-sweep 7s linear infinite;
  content: "";
  pointer-events: none;
}

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

.scan-line {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.36;
  background: linear-gradient(180deg, transparent 0%, rgba(127, 219, 135, 0.12) 48%, rgba(127, 219, 135, 0.2) 50%, rgba(127, 219, 135, 0.12) 52%, transparent 100%);
  animation: scan-y 4.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-y {
  from {
    transform: translateY(-105%);
  }
  to {
    transform: translateY(105%);
  }
}

.south-america-marker {
  position: absolute;
  left: 27%;
  top: 69%;
  z-index: 5;
  width: 24px;
  height: 24px;
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(127, 219, 135, 0.08),
    0 0 34px rgba(127, 219, 135, 0.9);
}

.south-america-marker::before,
.south-america-marker::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 120px;
  height: 1px;
  background: rgba(184, 51, 42, 0.72);
  transform-origin: left center;
  content: "";
}

.south-america-marker::before {
  transform: rotate(-28deg);
}

.south-america-marker::after {
  transform: rotate(38deg);
}

.map-dot {
  position: absolute;
  z-index: 4;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 0 5px rgba(127, 219, 135, 0.08),
    0 0 16px rgba(127, 219, 135, 0.78);
}

.map-dot:nth-child(2) {
  left: 18%;
  top: 36%;
}

.map-dot:nth-child(3) {
  left: 50%;
  top: 31%;
}

.map-dot:nth-child(4) {
  left: 72%;
  top: 50%;
}

.tracking-console {
  padding: 20px;
}

.tracking-log {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.log-entry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(127, 219, 135, 0.14);
  color: #cfdbc6;
  background: rgba(127, 219, 135, 0.05);
  line-height: 1.45;
}

.log-entry::before {
  flex: 0 0 auto;
  color: var(--green);
  content: "■";
}

.coordinate-panel {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 5;
  max-width: 360px;
  padding: 16px;
  border: 1px solid rgba(127, 219, 135, 0.28);
  color: #dce8cf;
  background: rgba(3, 5, 4, 0.72);
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.central-header,
.case-header,
.final-header {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.progress-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 330px;
}

.progress-box {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.progress-number {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 1.75rem;
  font-weight: 800;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.folder {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 42px 18px 18px;
  color: var(--ink);
  border-radius: 0 7px 7px 7px;
  background:
    linear-gradient(rgba(213, 188, 127, 0.82), rgba(213, 188, 127, 0.82)),
    url("assets/texturePaper.png") center / cover no-repeat;
  box-shadow:
    0 28px 55px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(71, 48, 22, 0.18);
  transform: rotate(-0.35deg);
}

.folder:nth-child(2n) {
  transform: rotate(0.45deg);
}

.folder::before {
  position: absolute;
  top: -22px;
  left: 0;
  width: 62%;
  height: 36px;
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(rgba(183, 144, 78, 0.86), rgba(183, 144, 78, 0.86)),
    url("assets/texturePaper.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(71, 48, 22, 0.12);
  content: "";
}

.folder.locked {
  filter: grayscale(0.82);
  opacity: 0.72;
}

.folder.resolved {
  outline: 2px solid rgba(127, 219, 135, 0.42);
}

.folder-top {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.folder-code {
  color: #4a351d;
  font-size: 0.78rem;
  font-weight: 800;
}

.priority {
  padding: 5px 8px;
  color: #fff0e6;
  background: var(--red-deep);
  font-size: 0.75rem;
}

.folder-photo {
  position: relative;
  min-height: 168px;
  margin: 0 0 16px;
  padding: 8px;
  background: rgba(255, 246, 226, 0.85);
  box-shadow: 0 8px 18px rgba(62, 39, 18, 0.28);
}

.folder-photo img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  filter: contrast(1.05) grayscale(0.15);
}

.folder h3 {
  min-height: 3.1rem;
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.folder-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: #3b2a18;
  font-size: 0.9rem;
  line-height: 1.35;
}

.stamp {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: auto 0 14px;
  padding: 7px 9px;
  border: 2px solid rgba(184, 51, 42, 0.78);
  color: var(--red-deep);
  font-size: 0.85rem;
  font-weight: 900;
  transform: rotate(-6deg);
}

.stamp.green {
  border-color: rgba(49, 95, 59, 0.78);
  color: var(--green-deep);
}

.folder-btn {
  width: 100%;
  border: 1px solid rgba(27, 23, 18, 0.3);
  color: #fdf5df;
  background: #2b2117;
}

.folder-btn:disabled {
  color: #574430;
  background: rgba(27, 23, 18, 0.16);
}

.dossier-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.dossier-action p {
  max-width: 620px;
  margin: 0;
  color: #d8decf;
  line-height: 1.5;
}

.case-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.dossier-paper {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(238, 222, 187, 0.9), rgba(238, 222, 187, 0.9)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.dossier-paper::after {
  position: absolute;
  top: 28px;
  right: -34px;
  padding: 8px 46px;
  border: 2px solid rgba(184, 51, 42, 0.58);
  color: rgba(127, 29, 26, 0.55);
  font-weight: 900;
  transform: rotate(16deg);
  content: "SIGILOSO";
}

.case-cover {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.case-photo {
  padding: 10px;
  background: #f4ead5;
  box-shadow: 0 12px 28px rgba(48, 32, 13, 0.28);
}

.case-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.case-code {
  margin: 0 0 8px;
  color: #6f4c24;
  font-size: 0.85rem;
  font-weight: 800;
}

.case-title {
  margin: 0 0 12px;
  font-size: 2.1rem;
  line-height: 1.08;
}

.case-description {
  margin: 0;
  line-height: 1.6;
}

.case-objective {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid var(--red);
  background: rgba(184, 51, 42, 0.08);
  line-height: 1.45;
}

.case-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 18px;
}

.case-tab {
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(27, 23, 18, 0.16);
  color: #342617;
  background: rgba(255, 255, 255, 0.28);
  text-align: center;
}

.case-tab.is-active {
  border-color: rgba(184, 51, 42, 0.45);
  color: #fff8ed;
  background: var(--red-deep);
}

.case-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(45, 34, 22, 0.28);
  background: rgba(255, 255, 255, 0.18);
}

.case-section h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.case-section p {
  margin: 0;
  line-height: 1.55;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.evidence-btn {
  position: relative;
  display: block;
  min-height: 126px;
  padding: 14px 14px 38px;
  border: 1px solid rgba(27, 23, 18, 0.22);
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 229, 0.76), rgba(255, 248, 229, 0.76)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  text-align: left;
}

.evidence-btn.is-checked {
  border-color: rgba(49, 95, 59, 0.52);
  box-shadow: inset 0 0 0 2px rgba(49, 95, 59, 0.18);
}

.evidence-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.evidence-copy {
  display: block;
  color: #3d3121;
  line-height: 1.45;
}

.evidence-state {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: #fff;
  background: var(--red-deep);
  font-size: 0.75rem;
}

.evidence-btn.is-checked .evidence-state {
  background: var(--green-deep);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.case-side {
  display: grid;
  gap: 16px;
}

.intel-panel {
  padding: 18px;
}

.intel-panel img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  margin: 12px 0;
  border: 8px solid rgba(255, 255, 255, 0.08);
  filter: grayscale(0.3);
}

.intel-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #d9decf;
  line-height: 1.4;
}

.intel-row:last-child {
  border-bottom: 0;
}

.intel-row strong {
  color: var(--green);
  text-align: right;
}

.analysis-feed {
  display: grid;
  gap: 10px;
  min-height: 76px;
  margin-top: 14px;
  padding: 14px;
  color: var(--green-deep);
  background: rgba(49, 95, 59, 0.08);
}

.suspects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.suspect-btn {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 112px;
  border: 1px solid rgba(27, 23, 18, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.22);
  text-align: left;
}

.suspect-btn img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.58);
}

.suspect-name {
  display: block;
  margin-bottom: 5px;
  font-weight: 900;
}

.suspect-note {
  display: block;
  color: #3d3121;
  line-height: 1.35;
}

.result-box {
  margin-top: 18px;
  padding: 18px;
  border: 2px solid rgba(49, 95, 59, 0.42);
  background: rgba(49, 95, 59, 0.1);
}

.result-box.error {
  border-color: rgba(184, 51, 42, 0.45);
  background: rgba(184, 51, 42, 0.08);
}

.fragment-slip {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(27, 23, 18, 0.22);
  background:
    linear-gradient(rgba(255, 244, 212, 0.82), rgba(255, 244, 212, 0.82)),
    url("assets/texturePaper.png") center / cover no-repeat;
  font-weight: 800;
  line-height: 1.45;
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.final-file,
.invite-document {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(237, 221, 187, 0.92), rgba(237, 221, 187, 0.92)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.final-file {
  padding: 30px;
}

.final-file::before,
.invite-document::before {
  position: absolute;
  top: 24px;
  right: -34px;
  padding: 8px 42px;
  border: 2px solid rgba(184, 51, 42, 0.62);
  color: rgba(127, 29, 26, 0.58);
  font-weight: 900;
  transform: rotate(15deg);
  content: "LIBERADO";
}

.final-progress {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.final-progress .log-entry {
  border-color: rgba(27, 23, 18, 0.14);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.24);
}

.final-progress .log-entry::before {
  color: var(--red-deep);
}

.fragments-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fragment-item {
  padding: 14px;
  border: 1px solid rgba(27, 23, 18, 0.18);
  background: rgba(255, 255, 255, 0.24);
  line-height: 1.45;
}

.final-side {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 9, 8, 0.84);
  box-shadow: var(--shadow);
}

.final-side img {
  width: 100%;
  margin: 14px 0;
  filter: grayscale(0.18);
}

.invite-screen {
  display: grid;
  align-items: center;
}

.invite-document {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 42px;
}

.invite-document::before {
  content: "DESBLOQUEADO";
}

.invite-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.invite-label {
  margin: 0 0 8px;
  color: #71481e;
  font-weight: 900;
}

.invite-title {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.05;
}

.invite-subtitle {
  margin: 10px 0 0;
  color: #4a351d;
  font-size: 1.2rem;
  line-height: 1.35;
}

.invite-copy {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: rgba(184, 51, 42, 0.08);
  font-size: 1.06rem;
  line-height: 1.6;
}

.invite-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-box {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(27, 23, 18, 0.18);
  background: rgba(255, 255, 255, 0.28);
}

.detail-box span {
  display: block;
  margin-bottom: 8px;
  color: #71481e;
  font-weight: 900;
}

.detail-box strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.whatsapp-btn {
  border: 1px solid rgba(49, 95, 59, 0.5);
  color: #f7fff4;
  background: #315f3b;
}

.invite-document .danger-btn {
  border-color: rgba(127, 29, 26, 0.55);
  color: var(--red-deep);
  background: rgba(184, 51, 42, 0.12);
  font-weight: 800;
}

.folder > * {
  position: relative;
  z-index: 1;
}

.folder::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.24;
  background:
    radial-gradient(circle at 18% 20%, rgba(82, 49, 18, 0.18), transparent 7rem),
    radial-gradient(circle at 84% 78%, rgba(82, 49, 18, 0.14), transparent 8rem),
    repeating-linear-gradient(98deg, rgba(45, 31, 17, 0.06) 0 1px, transparent 1px 12px);
  mix-blend-mode: multiply;
  pointer-events: none;
  content: "";
}

.folder-meta,
.folder-meta strong,
.folder h3,
.folder-code {
  color: #22180e;
}

.folder.locked .folder-meta,
.folder.locked h3,
.folder.locked .folder-code {
  color: #2c251d;
}

.folder-btn:disabled,
button:disabled {
  opacity: 0.62;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.danger-btn:disabled,
.ghost-btn:disabled {
  color: #f3e8d0;
  background: rgba(67, 55, 40, 0.46);
  border-color: rgba(67, 55, 40, 0.34);
  box-shadow: none;
}

.folder-btn:disabled {
  color: #352718;
  background: rgba(72, 54, 31, 0.22);
}

.dossier-paper,
.final-file,
.invite-document,
.modal {
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(51, 34, 17, 0.16),
    inset 0 0 70px rgba(87, 55, 23, 0.1);
}

.case-section {
  color: #18120b;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
}

.case-feedback {
  margin: 0;
  color: #eaf3df;
  line-height: 1.55;
}

.evidence-btn {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  min-height: 168px;
  padding: 12px;
  overflow: hidden;
  border-color: rgba(38, 25, 12, 0.28);
  background:
    linear-gradient(rgba(255, 246, 221, 0.82), rgba(255, 246, 221, 0.82)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  box-shadow:
    0 12px 24px rgba(54, 35, 15, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.evidence-btn::before {
  position: absolute;
  top: 9px;
  left: 24px;
  z-index: 2;
  width: 30px;
  height: 12px;
  border-radius: 0 0 12px 12px;
  background: rgba(40, 36, 29, 0.34);
  box-shadow: 0 2px 4px rgba(35, 23, 12, 0.22);
  content: "";
}

.evidence-thumb {
  display: block;
  align-self: stretch;
  min-height: 136px;
  padding: 7px;
  background: #f6ead2;
  box-shadow: 0 8px 18px rgba(56, 35, 13, 0.24);
  transform: rotate(-1deg);
}

.evidence-thumb img {
  width: 100%;
  height: 100%;
  min-height: 122px;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.05);
}

.evidence-body,
.evidence-title,
.evidence-copy {
  display: block;
}

.evidence-title {
  margin: 0 0 8px;
  color: #1d140b;
  font-size: 1rem;
}

.evidence-copy {
  padding-bottom: 34px;
  color: #332413;
}

.evidence-state {
  color: #fff5ef;
  background: #8b241f;
  font-weight: 800;
}

.evidence-btn.is-checked {
  border-color: rgba(49, 95, 59, 0.7);
  background:
    linear-gradient(rgba(236, 247, 220, 0.78), rgba(236, 247, 220, 0.78)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
}

.analysis-feed {
  color: #173b20;
  border: 1px solid rgba(49, 95, 59, 0.24);
  background:
    linear-gradient(rgba(231, 244, 215, 0.62), rgba(231, 244, 215, 0.62)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  font-weight: 800;
}

.crossing-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.crossing-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(38, 25, 12, 0.22);
  background:
    linear-gradient(rgba(255, 249, 232, 0.74), rgba(255, 249, 232, 0.74)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
}

.crossing-item img {
  width: 92px;
  height: 74px;
  object-fit: cover;
  border: 5px solid #f3e6cc;
  box-shadow: 0 7px 15px rgba(41, 27, 12, 0.2);
}

.crossing-item strong,
.crossing-item span,
.crossing-item em {
  display: block;
}

.crossing-item strong {
  margin-bottom: 6px;
  color: #1b130a;
}

.crossing-item span {
  color: #332413;
  line-height: 1.45;
}

.crossing-item em {
  margin-top: 6px;
  color: #654216;
  font-style: normal;
  line-height: 1.4;
}

.suspects-grid {
  grid-template-columns: 1fr;
}

.suspect-btn {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  padding: 14px;
  color: #1b130a;
  background:
    linear-gradient(rgba(255, 248, 231, 0.76), rgba(255, 248, 231, 0.76)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
}

.suspect-btn img {
  width: 82px;
  height: 82px;
}

.suspect-content,
.suspect-matrix,
.suspect-matrix span,
.suspect-matrix strong {
  display: block;
}

.suspect-note {
  color: #2f2112;
}

.suspect-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.suspect-matrix span {
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(38, 25, 12, 0.16);
  background: rgba(255, 255, 255, 0.28);
  color: #2c1f11;
  line-height: 1.35;
}

.suspect-matrix strong {
  margin-bottom: 4px;
  color: #7f1d1a;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.modal.evidence-modal {
  width: min(1060px, 100%);
  padding: 24px;
  background:
    linear-gradient(rgba(222, 203, 165, 0.94), rgba(222, 203, 165, 0.94)),
    url("assets/texturePaper.png") center / cover no-repeat;
}

.evidence-modal-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.evidence-image-frame {
  position: relative;
  min-height: 430px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(rgba(246, 236, 214, 0.84), rgba(246, 236, 214, 0.84)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  box-shadow:
    0 18px 42px rgba(45, 28, 10, 0.28),
    inset 0 0 0 1px rgba(44, 28, 12, 0.18);
}

.evidence-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: contain;
  background: #100f0d;
  filter: contrast(1.04);
}

.evidence-scan-beam {
  position: absolute;
  inset: 14px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(127, 219, 135, 0.32), transparent);
  transform: translateY(-115%);
  pointer-events: none;
}

.evidence-modal.is-scanning .evidence-scan-beam {
  opacity: 1;
  animation: modal-scan 1.2s ease-in-out both;
}

@keyframes modal-scan {
  to {
    transform: translateY(115%);
  }
}

.evidence-modal-stamp {
  position: absolute;
  top: 24px;
  right: 20px;
  background: rgba(239, 224, 191, 0.72);
}

.evidence-report {
  padding: 18px;
  border: 1px dashed rgba(38, 25, 12, 0.28);
  background:
    linear-gradient(rgba(255, 249, 232, 0.62), rgba(255, 249, 232, 0.62)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
}

.evidence-status-box,
.observation-box {
  padding: 13px;
  border: 1px solid rgba(38, 25, 12, 0.18);
  background: rgba(255, 255, 255, 0.28);
}

.evidence-status-box strong,
.evidence-status-box span,
.observation-box strong,
.observation-box span,
.observation-box em {
  display: block;
}

.evidence-status-box strong,
.observation-box strong {
  margin-bottom: 6px;
  color: #7f1d1a;
  text-transform: uppercase;
}

.observation-box {
  display: none;
  margin-top: 14px;
}

.observation-box.is-visible {
  display: block;
  animation: screen-in 260ms ease both;
}

.observation-box span {
  color: #1f170d;
  line-height: 1.45;
}

.observation-box em {
  margin-top: 8px;
  color: #4a351d;
  font-style: normal;
  line-height: 1.4;
}

.analysis-checklist {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  counter-reset: analysis;
}

.analysis-checklist li {
  position: relative;
  padding: 10px 10px 10px 42px;
  border: 1px solid rgba(38, 25, 12, 0.16);
  background: rgba(255, 255, 255, 0.22);
  color: #352718;
  counter-increment: analysis;
}

.analysis-checklist li::before {
  position: absolute;
  left: 10px;
  top: 9px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff8ec;
  background: #7f1d1a;
  content: counter(analysis);
}

.analysis-checklist li.is-done::before {
  background: #315f3b;
  content: "✓";
}

.evidence-modal .modal-actions {
  position: sticky;
  bottom: -24px;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 3;
  margin: 20px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid rgba(38, 25, 12, 0.18);
  background:
    linear-gradient(rgba(222, 203, 165, 0.94), rgba(222, 203, 165, 0.94)),
    url("assets/texturePaper.png") center / cover no-repeat;
}

.evidence-modal .secondary-btn:not(:disabled),
.evidence-modal .ghost-btn:not(:disabled) {
  color: #fff8ec;
  background: #234f2f;
  border-color: #173b20;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(20, 48, 28, 0.22);
}

.evidence-modal .ghost-btn:not(:disabled) {
  color: #24180c;
  background: #f5e7c9;
  border-color: rgba(42, 30, 16, 0.45);
}

.evidence-modal .modal-actions button {
  opacity: 1;
}

.evidence-modal .modal-actions .primary-btn:not(:disabled) {
  color: #fff8ec;
  background: linear-gradient(180deg, #b8332a, #7f1d1a);
  border-color: #7f1d1a;
  font-weight: 800;
}

.evidence-modal .modal-actions button:disabled {
  color: #fff4dc;
  background: #5d5547;
  border-color: #4a4134;
  box-shadow: none;
}

@media print {
  body {
    color: var(--ink);
    background: #fff;
  }

  body::before,
  body::after,
  .invite-actions {
    display: none !important;
  }

  .app {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .invite-document {
    box-shadow: none;
    border: 1px solid rgba(27, 23, 18, 0.22);
  }
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-root.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  color: var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(239, 224, 191, 0.94), rgba(239, 224, 191, 0.94)),
    url("assets/texturePaperWhite.png") center / cover no-repeat;
  box-shadow: 0 26px 100px rgba(0, 0, 0, 0.65);
}

.modal h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.modal p {
  margin: 0 0 18px;
  line-height: 1.55;
}

.modal .stamp {
  margin: 0 0 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .tracking-layout,
  .case-shell,
  .final-layout {
    grid-template-columns: 1fr;
  }

  .case-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app {
    width: min(100% - 18px, 1180px);
    padding-top: 66px;
  }

  .site-shell::before {
    right: -1rem;
    bottom: 7rem;
    font-size: 4rem;
  }

  .top-grid,
  .central-header,
  .case-header,
  .final-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .screen-title {
    font-size: 2rem;
    line-height: 1.08;
  }

  .screen-subtitle {
    line-height: 1.5;
  }

  .access-hero {
    min-height: 0;
    padding: 22px;
  }

  .access-content {
    min-height: 540px;
  }

  .agency-lockup {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .agency-seal {
    width: 62px;
    height: 62px;
  }

  .classified-banner {
    font-size: 1.05rem;
  }

  .progress-strip,
  .case-grid,
  .case-cover,
  .evidence-grid,
  .suspects-grid,
  .fragments-list,
  .invite-details,
  .case-side,
  .evidence-modal-layout,
  .suspect-matrix {
    grid-template-columns: 1fr;
  }

  .progress-strip {
    min-width: 0;
    width: 100%;
  }

  .map-stage {
    min-height: 360px;
  }

  .coordinate-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    padding: 10px;
    font-size: 0.82rem;
  }

  .coordinate-panel p {
    margin: 7px 0 0;
  }

  .folder {
    min-height: 0;
    transform: none;
  }

  .folder:nth-child(2n) {
    transform: none;
  }

  .case-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-root {
    padding: 10px;
  }

  .modal.evidence-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .evidence-modal .modal-actions {
    position: sticky;
    bottom: 0;
    margin: 18px -14px 0;
    padding: 12px 14px;
    border: 1px solid rgba(38, 25, 12, 0.14);
    border-right: 0;
    border-left: 0;
  }

  .evidence-image-frame {
    min-height: 0;
  }

  .evidence-image-frame img {
    height: 320px;
    min-height: 0;
  }

  .invite-document,
  .final-file,
  .dossier-paper {
    padding: 18px;
  }

  .invite-top {
    flex-direction: column;
  }

  .invite-title {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .screen-title {
    font-size: 1.48rem;
    overflow-wrap: anywhere;
  }

  .screen-subtitle {
    font-size: 0.92rem;
  }

  .instruction {
    width: 100%;
    font-size: 0.88rem;
  }

  .agency-lockup {
    grid-template-columns: 1fr;
  }

  .access-actions,
  .case-actions,
  .invite-actions,
  .dossier-action {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .ghost-btn,
  .folder-btn,
  .whatsapp-btn {
    width: 100%;
  }

  .map-stage {
    min-height: 265px;
    background-position: center;
  }

  .south-america-marker {
    left: 24%;
    top: 69%;
  }

  .coordinate-panel {
    display: none;
  }

  .tracking-layout {
    gap: 12px;
    margin-top: 18px;
  }

  .tracking-console {
    padding: 14px;
  }

  .tracking-log {
    gap: 8px;
    margin-top: 12px;
  }

  .log-entry {
    padding: 10px;
    font-size: 0.86rem;
  }

  .case-header,
  .central-header,
  .final-header {
    gap: 14px;
    margin-bottom: 18px;
  }

  .case-cover {
    gap: 16px;
  }

  .case-photo {
    width: min(220px, 100%);
    margin: 0 auto;
  }

  .case-title {
    font-size: 1.34rem;
  }

  .case-description,
  .case-objective,
  .case-section p {
    font-size: 0.9rem;
  }

  .case-tab {
    min-height: 38px;
    padding: 8px;
    font-size: 0.86rem;
  }

  .case-section {
    padding: 14px;
  }

  .case-tabs {
    grid-template-columns: 1fr;
  }

  .evidence-btn {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .evidence-thumb {
    min-height: 130px;
  }

  .crossing-item {
    grid-template-columns: 1fr;
  }

  .crossing-item img {
    width: 100%;
    height: auto;
    max-height: 190px;
  }

  .suspect-btn {
    grid-template-columns: 1fr;
  }

  .suspect-btn img {
    width: 96px;
    height: 96px;
  }

  .evidence-image-frame {
    min-height: 0;
  }

  .evidence-image-frame img {
    height: 220px;
    min-height: 0;
  }

  .folder {
    padding: 34px 14px 14px;
  }

  .folder-photo {
    min-height: 0;
  }

  .folder-photo img {
    height: 132px;
  }

  .progress-box {
    min-height: 70px;
  }

  .progress-number {
    font-size: 1.45rem;
  }

  .intel-panel {
    padding: 14px;
  }

  .intel-panel img {
    max-height: 180px;
  }

}

@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;
  }
}
