/* =========================================
   CASEFILE — INVESTIGATION SYSTEM
   Stylesheet v0.3.0

   Consolidated from v0.1–v0.9 patches:
   one rule per component, no !important
   overrides, purple tokens throughout.

   1.  Tokens & base
   2.  App shell & sidebar
   3.  Dashboard
   4.  Shared view chrome (buttons, headings)
   5.  Case briefing
   6.  Evidence locker
   7.  Suspect database & dossier
   8.  Interrogation room
   9.  Connection board
   10. Notifications & dialog
   11. Sound toggles, cold open, commendations
   12. Detective notebook
   13. Forensic lab
   14. Responsive
   15. Reduced motion
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* =========================================
   1. TOKENS & BASE
   ========================================= */

:root {
  color-scheme: dark;

  --bg: #0b0612;
  --sidebar: #100a1c;
  --panel: #1b112b;
  --panel-raised: rgba(28, 14, 46, 0.96);
  --panel-hover: #2a1942;

  --border: #583779;
  --border-strong: #75449e;
  --text: #f7efff;
  --muted: #b5a1ca;
  --soft: #d5c3e5;

  --accent: #c27aff;
  --accent-deep: #7430bb;
  --lavender: #d6a9ff;

  --green: #55e6a0;
  --gold: #ffd68a;
  --gold-bg: rgba(87, 54, 16, 0.9);
  --string: #c8334f;
  --string-bright: #e2445f;
  --lead-string: #3fd68b;
  --lead-string-dark: #1d7a4d;

  --serif: Georgia, "Times New Roman", serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --display: 'Space Grotesk', 'DM Sans', sans-serif;

  --radius: 16px;
  --sidebar-width: 265px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f5efff;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;

  background:
    linear-gradient(
      135deg,
      rgba(12, 5, 24, 0.88),
      rgba(29, 9, 48, 0.78)
    ),
    url("assets/detective-reference.png") center center / cover fixed;
  background-color: var(--bg);
}

img {
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}


/* =========================================
   2. APP SHELL & SIDEBAR
   ========================================= */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  padding: 30px 17px 20px;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 12px 35px;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(194, 122, 255, 0.65));
}

.brand-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

button.brand-icon {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 12px;
  transition: filter 0.2s, transform 0.2s;
}

button.brand-icon:hover {
  filter: drop-shadow(0 0 18px rgba(194, 122, 255, 0.95));
  transform: scale(1.05);
}

.brand h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-icon {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  min-width: 0;
}

.nav-item:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.nav-item.active {
  color: var(--accent);
  background: rgba(194, 122, 255, 0.08);
  border-color: rgba(194, 122, 255, 0.3);
}

.nav-badge {
  padding: 2px 8px;
  color: var(--lavender);
  background: rgba(194, 122, 255, 0.12);
  border: 1px solid rgba(194, 122, 255, 0.25);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-badge.is-alert {
  color: #1a0b25;
  background: var(--gold);
  border-color: var(--gold);
}

.sidebar-footer {
  margin-top: auto;
  padding: 30px 12px 0;
}

.system-status {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.sidebar-version {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(82, 214, 160, 0.5);
}

.reset-button {
  width: 100%;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px dashed rgba(181, 161, 202, 0.35);
  border-radius: 9px;
  font-size: 12px;
  text-align: left;
  transition: color 0.2s, border-color 0.2s;
}

.reset-button:hover {
  color: #ffb3c0;
  border-color: rgba(226, 68, 95, 0.6);
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 42px clamp(20px, 4vw, 65px) 25px;
}

.main-content:focus {
  outline: none;
}


/* =========================================
   3. DASHBOARD
   ========================================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
}

.topbar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -1px;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--accent);
  background: rgba(194, 122, 255, 0.1);
  border: 1px solid rgba(194, 122, 255, 0.35);
  border-radius: 13px;
  font-size: 20px;
  font-weight: 800;
}

.agent-profile strong,
.agent-profile small {
  display: block;
}

.agent-profile strong {
  font-size: 13px;
}

.agent-profile small {
  color: var(--muted);
  font-size: 11px;
}

/* Statistics */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 45px;
}

.stat-card {
  min-width: 0;
  padding: 23px;
  background: linear-gradient(145deg, rgba(40, 21, 62, 0.95), rgba(19, 10, 32, 0.97));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.stat-card strong {
  display: block;
  margin: 12px 0 3px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.stat-card:first-child strong {
  color: var(--accent);
}

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

/* Sections */

.workspace-section {
  margin-bottom: 40px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 23px;
}

.section-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Case card */

.case-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(25, 13, 40, 0.94);
  border: 1px solid rgba(174, 104, 255, 0.45);
  border-radius: var(--radius);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(153, 85, 237, 0.08);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(194, 122, 255, 0.2);
}

.case-image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 24px;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 4, 18, 0.15) 20%,
      rgba(15, 5, 28, 0.9) 100%
    ),
    url("assets/last-signal-cabin.png") center center / cover no-repeat;
}

.case-number,
.case-status {
  position: absolute;
  top: 18px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.case-number {
  left: 18px;
  color: var(--text);
  background: rgba(15, 6, 28, 0.9);
  border: 1px solid rgba(194, 122, 255, 0.4);
}

.case-status {
  right: 18px;
  color: var(--gold);
  background: var(--gold-bg);
}

.case-image-title span {
  color: #d2a2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.case-image-title h4 {
  margin: 5px 0 0;
  color: #fff7ff;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  text-shadow: 0 3px 12px #000;
}

.case-details {
  padding: 24px;
  background: linear-gradient(145deg, rgba(43, 24, 62, 0.95), rgba(20, 11, 33, 0.98));
}

.case-details > p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.case-meta span {
  padding: 6px 9px;
  color: var(--soft);
  background: rgba(156, 87, 225, 0.12);
  border: 1px solid rgba(194, 122, 255, 0.18);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

/* Progress (dashboard + briefing) */

.case-progress {
  margin-bottom: 22px;
}

.case-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.case-progress-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.case-progress-head strong {
  color: var(--lavender);
  font-family: var(--display);
  font-size: 20px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(10, 4, 20, 0.8);
  border: 1px solid rgba(194, 122, 255, 0.2);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(194, 122, 255, 0.5);
  transition: width 0.5s ease;
}

.progress-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.progress-facts li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-facts strong {
  color: var(--text);
  font-family: var(--display);
  white-space: nowrap;
}

/* Detective's desk */

.desk-panel {
  min-width: 0;
  padding: 24px;
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.desk-panel h4 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.desk-step-label {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.desk-step-text {
  margin: 0 0 16px;
  color: var(--soft);
  line-height: 1.7;
}

.desk-divider {
  margin: 22px 0;
  border-top: 1px dashed rgba(194, 122, 255, 0.25);
}

.desk-lead strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.desk-lead p,
.desk-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Importance pills */

.importance {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  vertical-align: middle;
}

.importance-high {
  color: #ffd0d8;
  background: rgba(200, 51, 79, 0.25);
  border: 1px solid rgba(226, 68, 95, 0.55);
}

.importance-medium {
  color: var(--gold);
  background: rgba(130, 90, 20, 0.3);
  border: 1px solid rgba(255, 214, 138, 0.4);
}

.importance-low {
  color: var(--lavender);
  background: rgba(156, 87, 225, 0.15);
  border: 1px solid rgba(194, 122, 255, 0.35);
}

/* Activity */

.activity-panel {
  overflow: hidden;
  background: rgba(27, 17, 43, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.activity-entry {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 23px;
}

.activity-entry + .activity-entry {
  border-top: 1px solid rgba(88, 55, 121, 0.6);
}

.activity-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  color: var(--accent);
  background: rgba(194, 122, 255, 0.08);
  border-radius: 10px;
}

.activity-lead .activity-icon {
  color: #ffd0d8;
  background: rgba(200, 51, 79, 0.18);
}

.activity-rank .activity-icon {
  color: var(--gold);
  background: rgba(130, 90, 20, 0.25);
}

.activity-entry > div {
  flex: 1;
  min-width: 0;
}

.activity-entry strong {
  font-size: 13px;
}

.activity-entry p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.activity-entry small {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Footer */

.app-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 25px 0 10px;
  color: #8f7ba6;
  border-top: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 1px;
}


/* =========================================
   4. SHARED VIEW CHROME
   ========================================= */

.primary-button {
  width: 100%;
  min-height: 47px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #7430bb, #a44af2);
  border: 1px solid #b76cff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(139, 55, 219, 0.25);
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s;
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #9145d8, #bd72ff);
  box-shadow: 0 0 25px rgba(194, 122, 255, 0.4);
}

.primary-button:disabled {
  color: #c9b6dc;
  background: rgba(60, 33, 88, 0.7);
  border-color: rgba(150, 99, 198, 0.4);
  box-shadow: none;
}

.back-button {
  padding: 12px 17px;
  color: #d4a4ff;
  background: rgba(30, 14, 49, 0.9);
  border: 1px solid #75449e;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.back-button:hover:not(:disabled) {
  color: #fff;
  background: #432260;
}

.back-button:disabled {
  opacity: 0.45;
}

.wide-button {
  width: 100%;
  margin-top: 12px;
}

.danger-button {
  padding: 12px 17px;
  color: #fff;
  background: linear-gradient(135deg, #8d1f37, #c8334f);
  border: 1px solid #e2445f;
  border-radius: 10px;
  font-weight: 800;
}

.danger-button:hover {
  background: linear-gradient(135deg, #a92b43, #e2445f);
}

.classification {
  color: #d6b1f5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.investigation-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.evidence-title {
  margin: 8px 0 12px;
  color: #f8efff;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
}

.evidence-intro {
  max-width: 750px;
  margin: 0 0 30px;
  color: #c6b3d8;
  font-size: 16px;
  line-height: 1.8;
}

.report-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.investigation-view,
.evidence-view,
.suspects-view,
.interrogation-view,
.connection-view {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
  animation: viewFadeIn 0.35s ease;
}

.investigation-view { max-width: 1150px; }
.evidence-view,
.suspects-view,
.interrogation-view { max-width: 1200px; }
.connection-view { max-width: 1300px; }

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================
   5. CASE BRIEFING
   ========================================= */

.investigation-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 35px;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(10, 4, 20, 0.98), rgba(22, 8, 40, 0.1)),
    url("assets/last-signal-cabin.png") center / cover no-repeat;
  border: 1px solid #75449e;
  border-radius: 18px;
}

.investigation-hero .case-status {
  top: 20px;
  right: 20px;
}

.investigation-hero h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.2;
}

.investigation-hero > p:last-child {
  margin: 12px 0 0;
  color: #d6c5e6;
}

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

.briefing-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 40px);
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.briefing-panel h3 {
  margin: 5px 0 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.briefing-lead {
  max-width: 720px;
  margin: 0 0 26px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.45;
}

.briefing-lead::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  color: var(--accent);
  font-size: 3.1em;
  line-height: 0.8;
  text-shadow: 0 0 24px rgba(194, 122, 255, 0.5);
}

.briefing-text {
  max-width: 720px;
  color: #d8c9e7;
  font-size: 16px;
  line-height: 1.85;
}

.briefing-text p {
  margin: 0 0 16px;
}

.briefing-hook {
  max-width: 720px;
  margin: 28px 0;
  padding: 18px 22px;
  color: #ffe4ea;
  background: rgba(200, 51, 79, 0.1);
  border-left: 4px solid var(--string-bright);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
}

.briefing-timeline {
  margin: 30px 0 0;
  padding: 22px 24px 8px;
  background: rgba(14, 7, 24, 0.55);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 12px;
}

.briefing-timeline ol {
  position: relative;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.briefing-timeline ol::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 22px;
  left: 97px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(194, 122, 255, 0.5), rgba(226, 68, 95, 0.6), rgba(194, 122, 255, 0.3));
}

.briefing-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 40px;
  padding: 0 0 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}

.briefing-timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 92px;
  width: 12px;
  height: 12px;
  background: #1b112b;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.briefing-timeline time {
  color: var(--lavender);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.briefing-timeline li.is-key time,
.briefing-timeline li.is-key span {
  color: #fff;
  font-weight: 700;
}

.briefing-timeline li.is-key time {
  color: #ff8fa3;
}

.briefing-timeline li.is-key::before {
  background: var(--string-bright);
  border-color: #ffb3c0;
  box-shadow: 0 0 12px rgba(226, 68, 95, 0.7);
}

.investigation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.investigation-stats > div {
  min-width: 0;
  padding: 20px;
  background: #211332;
  border: 1px solid #50306d;
  border-radius: 12px;
}

.investigation-stats strong {
  display: block;
  color: var(--accent);
  font-size: clamp(19px, 2vw, 28px);
  overflow-wrap: anywhere;
}

.investigation-stats span {
  display: block;
  margin-top: 5px;
  color: #b9a5cb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.briefing-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.briefing-card {
  padding: 22px;
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.open-questions {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.open-questions li + li {
  margin-top: 8px;
}

.open-questions li::marker {
  color: var(--accent);
}


/* =========================================
   6. EVIDENCE LOCKER
   ========================================= */

.evidence-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px 22px;
  background: rgba(35, 18, 55, 0.88);
  border: 1px solid rgba(194, 122, 255, 0.35);
  border-radius: 12px;
}

.evidence-progress span {
  display: block;
  color: #c6a4e8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.evidence-pending {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.evidence-progress strong {
  color: #d5a1ff;
  font-family: var(--display);
  font-size: 22px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 250px;
  padding: 23px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(145deg, rgba(43, 24, 65, 0.96), rgba(22, 12, 36, 0.97));
  border: 1px solid rgba(171, 103, 239, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.evidence-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(194, 122, 255, 0.2);
}

.evidence-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgba(194, 122, 255, 0.25);
}

.evidence-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 20px;
}

.evidence-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  background: rgba(164, 74, 242, 0.14);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 14px;
  font-size: 28px;
}

.evidence-id {
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 1px;
}

.evidence-category {
  display: block;
  margin-bottom: 7px;
  color: #c995ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.evidence-card > strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
}

.evidence-description {
  display: block;
  flex: 1;
  margin-bottom: 20px;
  color: #bba9cd;
  font-size: 13px;
  line-height: 1.7;
}

.evidence-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #c4add6;
  background: rgba(14, 7, 24, 0.65);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.evidence-card.is-examined .evidence-status {
  color: var(--green);
  border-color: rgba(85, 230, 160, 0.35);
}

/* Forensic report */

.evidence-report {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
  background: linear-gradient(145deg, rgba(38, 20, 57, 0.98), rgba(15, 8, 27, 0.98));
  border: 1px solid #945ac4;
  border-radius: 18px;
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.4),
    0 0 35px rgba(164, 74, 242, 0.1);
  scroll-margin-top: 20px;
}

.evidence-report:focus {
  outline: none;
}

.evidence-report[hidden] {
  display: none;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 30px;
}

.report-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  background: rgba(194, 122, 255, 0.12);
  border: 1px solid #7749a0;
  border-radius: 16px;
  font-size: 38px;
}

.evidence-report h3 {
  margin: 5px 0 22px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 400;
}

.report-text {
  max-width: 850px;
  color: #e1d3eb;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.discovery-box {
  margin-top: 30px;
  padding: 22px;
  background: rgba(133, 70, 195, 0.13);
  border: 1px solid rgba(194, 122, 255, 0.35);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.discovery-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--lavender);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.discovery-box p {
  margin: 0;
  color: #f2e8fa;
  font-size: 15px;
  line-height: 1.8;
}

.report-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.report-side-block {
  padding: 18px;
  background: rgba(14, 7, 24, 0.55);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 12px;
}

.report-unlocks,
.report-leads {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-leads li {
  color: var(--soft);
  font-size: 13px;
}

.report-link {
  display: block;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  color: var(--text);
  background: rgba(60, 33, 88, 0.45);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 9px;
}

.report-link:hover {
  background: rgba(90, 48, 130, 0.6);
  border-color: var(--accent);
}

.report-link strong {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
}

.report-link span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.5;
}


/* =========================================
   7. SUSPECT DATABASE & DOSSIER
   ========================================= */

.suspect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.suspect-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(42, 23, 62, 0.97), rgba(19, 10, 32, 0.98));
  border: 1px solid rgba(194, 122, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, border-color 0.2s;
}

.suspect-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.suspect-photo {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #130b20;
}

.suspect-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.suspect-photo-id {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(12, 5, 24, 0.85);
  border: 1px solid rgba(194, 122, 255, 0.5);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.suspect-card-body {
  padding: 20px;
}

.suspect-category {
  display: block;
  margin-bottom: 8px;
  color: #c995ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.suspect-card-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.suspect-card-body > p {
  margin: 0 0 18px;
  color: #bba9cd;
  font-size: 13px;
}

.suspect-card-meta,
.suspect-card-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.suspect-card-meta span {
  padding: 7px 10px;
  color: #d9c5ec;
  background: rgba(156, 87, 225, 0.12);
  border: 1px solid rgba(194, 122, 255, 0.2);
  border-radius: 7px;
  font-size: 11px;
}

.suspect-card-progress {
  margin-bottom: 18px;
}

.suspect-card-progress span {
  color: #8f7ba6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.suspect-card-progress span.is-active {
  color: var(--gold);
}

/* Dossier */

.dossier-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dossier-identity {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 25px;
  background: var(--panel-raised);
  border: 1px solid #70429a;
  border-radius: 18px;
}

.dossier-identity > img {
  display: block;
  width: 220px;
  height: 290px;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid #8653b2;
  border-radius: 12px;
}

.dossier-identity-info {
  min-width: 0;
}

.dossier-identity-info h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
}

.dossier-identity-info .primary-button {
  max-width: 360px;
}

.dossier-status {
  display: inline-block;
  padding: 9px 13px;
  color: #e0baff;
  background: rgba(160, 85, 225, 0.15);
  border: 1px solid #8352ad;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.dossier-facts {
  margin: 24px 0;
}

.dossier-facts p {
  margin: 12px 0;
  color: var(--soft);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dossier-facts strong {
  color: #c995ff;
}

.dossier-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dossier-section {
  min-width: 0;
  padding: 25px;
  background: rgba(27, 14, 44, 0.96);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 14px;
}

.dossier-section-wide {
  grid-column: 1 / -1;
}

.dossier-section h3 {
  margin: 8px 0 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.dossier-section > p:last-child {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

.dossier-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dossier-connections span {
  padding: 9px 13px;
  color: #e3c6ff;
  background: rgba(154, 80, 224, 0.14);
  border: 1px solid #6e4297;
  border-radius: 8px;
  font-size: 13px;
}

.dossier-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dossier-record h4 {
  margin: 0 0 12px;
  color: var(--lavender);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  padding: 13px 15px;
  background: rgba(14, 7, 24, 0.55);
  border: 1px solid rgba(150, 99, 198, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
}

.record-list li.record-confrontation {
  border-left-color: var(--gold);
}

.record-list strong {
  display: block;
  margin: 4px 0;
  font-size: 14px;
}

.record-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}


/* =========================================
   8. INTERROGATION ROOM
   ========================================= */

.interrogation-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 60px 24px 30px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(12, 5, 24, 0.15), rgba(17, 6, 33, 0.85)),
    url("assets/interrogation-room.png") center center / cover no-repeat;
  border: 1px solid rgba(194, 122, 255, 0.55);
  border-radius: 18px;
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.4),
    0 0 35px rgba(153, 85, 237, 0.15);
}

/* Vignette — now contained by the stage */
.interrogation-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(25, 5, 45, 0.4) 100%);
}

.interrogation-stage-label {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 1;
  color: var(--lavender);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.interrogation-stage-message {
  position: relative;
  z-index: 1;
  padding: 25px 35px;
  text-align: center;
  background: rgba(12, 5, 25, 0.7);
  border: 1px solid rgba(194, 122, 255, 0.3);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.interrogation-stage-message > span {
  color: var(--accent);
  font-size: 22px;
}

.interrogation-stage-message h3 {
  margin: 8px 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 400;
}

.interrogation-stage-message p {
  margin: 0;
  color: #d8baf1;
}

.interrogation-subheading {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.interrogation-suspect-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 20px;
}

.interrogation-suspect {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0 0 12px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  background: rgba(25, 12, 43, 0.95);
  border: 1px solid #70439a;
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.interrogation-suspect img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  object-position: center 25%;
}

.interrogation-suspect span {
  display: block;
  margin: 12px 10px 4px;
  color: #f5eaff;
  font-size: 14px;
  font-weight: 700;
}

.interrogation-suspect small {
  display: block;
  margin: 0 10px;
  color: #c58cff;
  font-size: 10px;
  line-height: 1.5;
}

.interview-meter {
  display: block;
  margin: 8px 10px 0;
  color: #8f7ba6;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.interview-meter b {
  color: var(--gold);
}

.interrogation-suspect:hover {
  transform: translateY(-3px);
  border-color: #c58cff;
  box-shadow: 0 0 20px rgba(170, 95, 255, 0.25);
}

/* Active interview: compact portrait + wide transcript */

.interview-layout {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.interview-profile {
  position: sticky;
  top: 20px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: rgba(24, 12, 40, 0.96);
  border: 1px solid #70439a;
  border-radius: 14px;
}

.interview-profile > img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 25%;
}

.interview-profile-details {
  padding: 15px;
}

.interview-profile-details h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.interview-progress {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.interview-console {
  min-width: 0;
  padding: 22px;
  background: rgba(20, 10, 34, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.interview-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recording-indicator {
  color: #ff8fa3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  animation: recBlink 1.6s steps(1) infinite;
}

@keyframes recBlink {
  50% { opacity: 0.35; }
}

.interview-transcript {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  max-height: min(520px, 60vh);
  margin-top: 10px;
  padding: 18px;
  overflow-y: auto;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 27px,
      rgba(194, 122, 255, 0.04) 27px 28px
    ),
    rgba(10, 5, 18, 0.75);
  border: 1px solid rgba(150, 99, 198, 0.25);
  border-radius: 12px;
  overscroll-behavior: contain;
}

.interview-message {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 12px;
}

.interview-message.is-new {
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.interview-message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.interview-message p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
}

.interview-message.suspect {
  align-self: flex-start;
  background: rgba(225, 210, 183, 0.08);
  border: 1px solid rgba(225, 210, 183, 0.22);
  border-bottom-left-radius: 4px;
}

.interview-message.suspect strong {
  color: #e1d2b7;
}

.interview-message.suspect p {
  font-family: var(--serif);
  font-style: italic;
}

.interview-message.detective {
  align-self: flex-end;
  background: rgba(116, 48, 187, 0.35);
  border: 1px solid rgba(194, 122, 255, 0.4);
  border-bottom-right-radius: 4px;
}

.interview-message.detective strong {
  color: var(--lavender);
}

.interview-message.observation {
  align-self: stretch;
  max-width: none;
  background: rgba(130, 90, 20, 0.14);
  border: 1px solid rgba(255, 214, 138, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.interview-message.observation strong {
  color: var(--gold);
}

.interview-message.observation p {
  color: #f1e5cf;
  font-size: 14px;
}

.interview-message.observation.lead {
  background: rgba(200, 51, 79, 0.12);
  border-color: rgba(226, 68, 95, 0.35);
  border-left-color: var(--string-bright);
}

.interview-message.observation.lead strong {
  color: #ffb3c0;
}

.interview-questions-label {
  margin: 20px 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.interview-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interview-question {
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  color: var(--text);
  background: rgba(60, 33, 88, 0.45);
  border: 1px solid rgba(194, 122, 255, 0.35);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.interview-question:hover:not(:disabled) {
  background: rgba(98, 50, 145, 0.6);
  border-color: var(--accent);
}

.interview-question.is-asked {
  color: #8f7ba6;
  background: transparent;
  border-style: dashed;
  border-color: rgba(150, 99, 198, 0.25);
}

.interview-question.is-locked {
  color: #9d89b3;
  background: rgba(14, 7, 24, 0.5);
  border-color: rgba(150, 99, 198, 0.2);
  font-size: 13px;
}

/* Confrontation */

.confrontation-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 240px);
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
  background: rgba(56, 24, 78, 0.85);
  border: 1px solid #a36ad5;
  border-radius: 14px;
}

.confrontation-panel.is-locked {
  background: rgba(30, 14, 49, 0.7);
  border-color: rgba(150, 99, 198, 0.35);
}

.confrontation-panel.is-complete {
  border-color: rgba(255, 214, 138, 0.4);
}

.confrontation-evidence {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: rgba(194, 122, 255, 0.12);
  border: 1px solid rgba(194, 122, 255, 0.35);
  border-radius: 12px;
  font-size: 26px;
}

.confrontation-copy h3 {
  margin: 0 0 4px;
  color: #d8a4ff;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.confrontation-copy p {
  margin: 0;
  color: #d9c4ea;
  font-size: 14px;
}


/* =========================================
   9. CONNECTION BOARD
   ========================================= */

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.board-modes {
  display: inline-flex;
  padding: 4px;
  background: rgba(20, 10, 34, 0.9);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.mode-button {
  padding: 8px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.mode-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7430bb, #a44af2);
}

.board-tally {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.board-tally strong {
  color: var(--text);
  font-family: var(--display);
}

.board-tally {
  flex-wrap: wrap;
  align-items: center;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.legend-lead i {
  background: var(--lead-string);
  box-shadow: 0 0 6px rgba(63, 214, 139, 0.7);
}

.legend-theory i {
  background: var(--string);
}

.board-clear {
  padding: 9px 14px;
  font-size: 12px;
}

.connection-board {
  position: relative;
  margin-top: 18px;
  padding: 30px;
  overflow: hidden;
  border: 8px solid #39233d;
  border-radius: 12px;
  background:
    linear-gradient(rgba(27, 12, 35, 0.7), rgba(15, 7, 23, 0.85)),
    repeating-linear-gradient(
      35deg,
      #493129 0px,
      #493129 3px,
      #3c2924 5px,
      #3c2924 10px
    );
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.7),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 35px rgba(147, 66, 221, 0.2);
}

/*
  REGRESSION GUARD: the string layer is absolutely
  positioned and never contributes to board height.
*/
.board-string-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.board-string .string-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 4;
  stroke-linecap: round;
  transform: translate(1.5px, 3px);
}

.board-string .string-line {
  fill: none;
  stroke: var(--string);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.92;
  transition: stroke-width 0.15s, stroke 0.15s;
}

/* Confirmed leads: a green, slightly heavier rope that glows */
.board-string.is-lead .string-line {
  stroke: var(--lead-string);
  stroke-width: 3.2;
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(63, 214, 139, 0.55));
}

.board-string.is-lead .string-knot {
  fill: var(--lead-string-dark);
}

.board-string .string-knot {
  fill: #7a1427;
}

.board-string .string-lead-marker {
  fill: #d9ffe9;
  stroke: var(--lead-string-dark);
  stroke-width: 2;
}

.board-string.is-highlighted .string-line {
  stroke: #ff8fa3;
  stroke-width: 4.5;
}

.board-string.is-lead.is-highlighted .string-line {
  stroke: #a6ffd0;
}

/* ✕ on red theory strings — the only clickable part of the layer */
.string-remove {
  pointer-events: auto;
  cursor: pointer;
}

.string-remove-hit {
  fill: transparent;
}

.string-remove-dot {
  fill: rgba(26, 10, 22, 0.92);
  stroke: var(--string-bright);
  stroke-width: 1.5;
  opacity: 0.85;
  transition: fill 0.15s, opacity 0.15s;
}

.string-remove-x {
  fill: none;
  stroke: #ffd0d8;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.string-remove:hover .string-remove-dot {
  fill: var(--string-bright);
  opacity: 1;
}

.string-remove:hover .string-remove-x {
  stroke: #fff;
}

.board-string:has(.string-remove:hover) .string-line {
  stroke: #ff8fa3;
  stroke-width: 4.5;
}

.toast-action {
  margin-top: 10px;
  padding: 6px 14px;
  color: #fff;
  background: rgba(116, 48, 187, 0.6);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.toast-action:hover {
  background: var(--accent-deep);
}

.board-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 20px;
  color: #d6a4ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  border-bottom: 1px solid #765184;
}

.board-instructions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(15, 7, 23, 0.75);
  border: 1px dashed rgba(200, 51, 79, 0.55);
  border-radius: 8px;
}

.board-instructions p {
  margin: 0;
  color: #f0d9e0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.board-instructions button {
  padding: 7px 12px;
  color: #ffd0d8;
  background: transparent;
  border: 1px solid rgba(226, 68, 95, 0.6);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.board-instructions button[hidden] {
  display: none;
}

.board-section-title {
  margin: 26px 0 22px;
  color: #e4c5ff;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.board-suspects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.board-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.board-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 22px 12px 12px;
  color: #2b1b28;
  background: #e1d2b7;
  border: none;
  border-radius: 3px;
  box-shadow: 3px 7px 15px rgba(0, 0, 0, 0.55);
  /* Rotate around the tack so strings stay attached */
  transform-origin: 50% 11px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-pin:nth-child(odd) { transform: rotate(-0.6deg); }
.board-pin:nth-child(even) { transform: rotate(0.5deg); }

.board-tack {
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: radial-gradient(circle at 35% 35%, #e45a72, #a92b43 60%, #6d1527);
  border-radius: 50%;
  box-shadow: 1px 2px 4px #392020;
}

.board-pin:hover:not(:disabled) {
  transform: rotate(-2deg);
  box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.6);
}

.board-pin.board-selected {
  transform: rotate(0deg);
  box-shadow:
    0 0 0 3px var(--string-bright),
    0 0 26px rgba(226, 68, 95, 0.55),
    3px 7px 15px rgba(0, 0, 0, 0.55);
}

.board-pin.board-selected .board-tack {
  background: radial-gradient(circle at 35% 35%, #ffb3c0, #e2445f 60%, #8d1f37);
}

.connection-board.is-inspect .board-pin:not(:disabled) {
  cursor: zoom-in;
}

.suspect-pin img {
  width: 100%;
  height: 135px;
  margin-bottom: 10px;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.7);
}

.board-pin strong {
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

.board-pin small {
  margin-top: 6px;
  font-size: 10px;
  text-align: center;
  opacity: 0.7;
}

.evidence-pin {
  justify-content: center;
  min-height: 125px;
}

.board-evidence-icon {
  margin-bottom: 12px;
  font-size: 30px;
}

.board-pin:disabled {
  opacity: 0.55;
}

.board-divider {
  position: relative;
  margin: 35px 0 25px;
  text-align: center;
  border-top: 2px dashed #8e4663;
}

.board-divider span {
  position: relative;
  top: -11px;
  padding: 6px 16px;
  color: #e4b9ff;
  background: #291827;
  font-size: 11px;
  letter-spacing: 2px;
}

/* Ledger below the board (accessible text version) */

.board-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.ledger-panel {
  min-width: 0;
  padding: 20px;
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.ledger-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ledger-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(14, 7, 24, 0.55);
  border: 1px solid rgba(150, 99, 198, 0.25);
  border-left: 3px solid var(--string);
  border-radius: 8px;
}

.ledger-item.is-lead {
  border-left-color: var(--lead-string);
  background: rgba(16, 48, 34, 0.45);
}

.ledger-pair {
  flex: 1;
  min-width: 0;
  color: var(--soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ledger-pair span[aria-hidden] {
  margin: 0 4px;
  color: var(--string-bright);
}

.ledger-tag {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.ledger-item.is-lead .ledger-tag {
  color: var(--lead-string);
}

.ledger-lock {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 13px;
  cursor: default;
}

.ledger-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 7px;
  font-size: 12px;
}

.ledger-remove:hover {
  color: #ffd0d8;
  border-color: var(--string-bright);
}

.lead-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: #fff3c9;
  background: rgba(130, 90, 20, 0.18);
  border: 1px solid rgba(255, 214, 138, 0.35);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.lead-hint strong {
  color: var(--gold);
}

.lead-hint-button {
  margin-top: 10px;
  padding: 8px 14px;
  color: var(--gold);
  background: rgba(130, 90, 20, 0.2);
  border: 1px solid rgba(255, 214, 138, 0.45);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.lead-hint-button:hover {
  color: #1a0b25;
  background: var(--gold);
}

.ledger-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border: 1px dashed rgba(150, 99, 198, 0.3);
  border-radius: 8px;
}

.lead-item {
  padding: 14px;
  background: rgba(14, 7, 24, 0.55);
  border: 1px solid rgba(150, 99, 198, 0.25);
  border-left: 3px solid var(--lead-string);
  border-radius: 8px;
}

.lead-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lead-item-top small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.lead-item strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.lead-item p {
  margin: 0 0 6px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.lead-pair {
  color: #ffb3c0;
  font-size: 11px;
}


/* =========================================
   10. NOTIFICATIONS & DIALOG
   ========================================= */

.toast-region {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: rgba(36, 17, 51, 0.97);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: toastIn 0.28s ease;
}

.toast.is-leaving {
  animation: toastOut 0.22s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px); }
}

.toast-lead {
  border-color: var(--string-bright);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(226, 68, 95, 0.25);
}

.toast-neutral {
  border-color: rgba(181, 161, 202, 0.45);
}

.toast-rank {
  border-color: var(--gold);
}

.toast-success {
  border-color: var(--green);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.2;
}

.toast-rank .toast-icon { color: var(--gold); }
.toast-success .toast-icon { color: var(--green); }

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-heading {
  margin: 0 0 4px;
  color: #d9a5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.toast-lead .toast-heading { color: #ffb3c0; }
.toast-rank .toast-heading { color: var(--gold); }

.toast-body strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.toast-body p {
  margin: 6px 0 0;
  color: #e1d3eb;
  font-size: 13px;
  line-height: 1.6;
}

.toast-body small {
  display: block;
  margin-top: 8px;
  color: #c89aeb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.toast-close {
  align-self: flex-start;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(150, 99, 198, 0.35);
  border-radius: 7px;
  font-size: 12px;
}

.toast-close:hover {
  color: #fff;
}

.confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 28px;
  color: var(--text);
  background: #1d0f2e;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.confirm-dialog::backdrop {
  background: rgba(6, 2, 12, 0.75);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.confirm-dialog h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.confirm-dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}


/* =========================================
   11. SOUND TOGGLES, COLD OPEN, COMMENDATIONS
   ========================================= */

.sound-toggles {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.sound-toggle {
  flex: 1;
  padding: 7px 8px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(181, 161, 202, 0.25);
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
}

.sound-toggle span {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--text);
  background: rgba(194, 122, 255, 0.12);
  border-color: rgba(194, 122, 255, 0.45);
}

.sound-toggle[aria-pressed="true"] span {
  color: var(--green);
}

.text-button {
  display: block;
  margin: 16px auto 0;
  padding: 6px 10px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--lavender);
}

/* Cold open */

.cold-open {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(60, 22, 96, 0.55), transparent 65%),
    #05020a;
  animation: coldOpenIn 0.6s ease;
}

.cold-open.is-leaving {
  animation: coldOpenOut 0.5s ease forwards;
}

@keyframes coldOpenIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes coldOpenOut { to { opacity: 0; visibility: hidden; } }

.cold-open-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(520px, 100%);
  text-align: center;
}

.cold-open-inner [data-step] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cold-open-inner [data-step].is-visible {
  opacity: 1;
}

.cold-open-kicker {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 6px;
}

.cold-open-date {
  min-height: 1.4em;
  margin: 0;
  color: var(--soft);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 2px;
}

.cold-open-time {
  min-height: 1.2em;
  margin: 6px 0 22px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(54px, 12vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 40px rgba(194, 122, 255, 0.45);
}

.call-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  padding: 20px;
  background: rgba(20, 10, 34, 0.9);
  border: 1px solid rgba(85, 230, 160, 0.4);
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(85, 230, 160, 0.12);
}

.call-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.call-timer {
  color: #fff;
  font-family: var(--display);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.call-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
}

.call-bars i {
  width: 5px;
  background: var(--green);
  border-radius: 2px;
  transition: opacity 0.3s, background 0.3s;
}

.call-bars i:nth-child(1) { height: 25%; }
.call-bars i:nth-child(2) { height: 50%; }
.call-bars i:nth-child(3) { height: 75%; }
.call-bars i:nth-child(4) { height: 100%; }

.call-bars i.is-off {
  opacity: 0.2;
  background: var(--muted);
}

.cold-open.is-lost .call-screen {
  border-color: rgba(226, 68, 95, 0.6);
  box-shadow: 0 0 40px rgba(226, 68, 95, 0.2);
}

.cold-open.is-lost .call-label,
.cold-open.is-lost .call-timer {
  color: #ff8fa3;
}

.cold-open-lost {
  margin: 18px 0 0;
  color: var(--string-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 6px;
}

.cold-open-lost.is-visible {
  animation: signalFlicker 1.2s steps(2) 1;
}

@keyframes signalFlicker {
  0%, 30%, 60% { opacity: 1; }
  15%, 45%     { opacity: 0.15; }
}

.cold-open-coda {
  min-height: 1.6em;
  margin: 18px 0 8px;
  color: var(--soft);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
}

.cold-open-enter {
  max-width: 280px;
}

.cold-open-skip {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(181, 161, 202, 0.3);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.cold-open-skip:hover {
  color: #fff;
}

/* Commendations */

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.achievement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(20, 10, 34, 0.75);
  border: 1px dashed rgba(150, 99, 198, 0.3);
  border-radius: 12px;
  opacity: 0.6;
}

.achievement.is-earned {
  background: linear-gradient(145deg, rgba(64, 40, 18, 0.55), rgba(28, 14, 46, 0.95));
  border: 1px solid rgba(255, 214, 138, 0.45);
  opacity: 1;
}

.achievement-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--muted);
  background: rgba(14, 7, 24, 0.7);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 50%;
  font-size: 17px;
  filter: grayscale(1);
}

.achievement.is-earned .achievement-icon {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 214, 138, 0.3);
  filter: none;
}

.achievement strong {
  display: block;
  font-size: 13px;
}

.achievement.is-earned strong {
  color: var(--gold);
}

.achievement p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toast-achievement {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(64, 40, 18, 0.97), rgba(36, 17, 51, 0.97));
}

.toast-achievement .toast-heading {
  color: var(--gold);
}

/* Interview pacing */

.interview-hint {
  margin: 6px 2px 0;
  color: #8f7ba6;
  font-size: 11px;
}

.interview-thinking {
  display: flex;
  align-self: flex-start;
  gap: 5px;
  padding: 14px 16px;
  background: rgba(225, 210, 183, 0.08);
  border: 1px solid rgba(225, 210, 183, 0.22);
  border-radius: 12px 12px 12px 4px;
}

.interview-thinking i {
  width: 7px;
  height: 7px;
  background: #e1d2b7;
  border-radius: 50%;
  animation: thinking 1s ease-in-out infinite;
}

.interview-thinking i:nth-child(2) { animation-delay: 0.15s; }
.interview-thinking i:nth-child(3) { animation-delay: 0.3s; }

@keyframes thinking {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-3px); }
}

.interview-transcript[aria-busy="true"] {
  cursor: pointer;
}

/* New red string draws itself in */

.board-string.is-fresh .string-line,
.board-string.is-fresh .string-shadow {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: stringDraw 0.7s ease-out forwards;
}

@keyframes stringDraw {
  to { stroke-dashoffset: 0; }
}

.dossier-hunch {
  display: inline-block;
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}


/* =========================================
   12. DETECTIVE NOTEBOOK
   ========================================= */

.notebook-view {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px;
  animation: viewFadeIn 0.35s ease;
}

.hunch-board {
  padding: 20px;
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.hunch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hunch-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(14, 7, 24, 0.6);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hunch-card img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.7);
}

.hunch-info {
  padding: 10px 12px 12px;
}

.hunch-info strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.hunch-level {
  display: block;
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hunch-scale {
  display: flex;
  gap: 4px;
}

.hunch-step {
  flex: 1;
  height: 12px;
  min-width: 0;
  padding: 0;
  background: rgba(150, 99, 198, 0.18);
  border: 1px solid rgba(150, 99, 198, 0.35);
  border-radius: 3px;
}

.hunch-step:first-child {
  flex: 0 0 14px;
  border-radius: 50%;
}

.hunch-step:hover {
  border-color: var(--accent);
}

/* Tones: 1 unlikely · 2 uncertain · 3 suspicious · 4 prime */
.hunch-tone-1 .hunch-step.is-filled { background: #6a8f86; border-color: #6a8f86; }
.hunch-tone-2 .hunch-step.is-filled { background: #a98f5a; border-color: #a98f5a; }
.hunch-tone-3 .hunch-step.is-filled { background: #d98a3d; border-color: #d98a3d; }
.hunch-tone-4 .hunch-step.is-filled { background: var(--string-bright); border-color: var(--string-bright); }
.hunch-step:first-child.is-filled { background: rgba(150, 99, 198, 0.18); border-color: rgba(150, 99, 198, 0.35); }

.hunch-card.hunch-tone-3 { border-color: rgba(217, 138, 61, 0.5); }
.hunch-card.hunch-tone-4 {
  border-color: var(--string-bright);
  box-shadow: 0 0 18px rgba(226, 68, 95, 0.3);
}
.hunch-card.hunch-tone-4 .hunch-level { color: #ffb3c0; }
.hunch-card.hunch-tone-3 .hunch-level { color: #f0b37a; }

.dossier-hunch.hunch-tone-1 { color: #b6d6ce; background: rgba(106, 143, 134, 0.2); border: 1px solid #6a8f86; }
.dossier-hunch.hunch-tone-2 { color: #e5d2a6; background: rgba(169, 143, 90, 0.2); border: 1px solid #a98f5a; }
.dossier-hunch.hunch-tone-3 { color: #f0b37a; background: rgba(217, 138, 61, 0.18); border: 1px solid #d98a3d; }
.dossier-hunch.hunch-tone-4 { color: #ffd0d8; background: rgba(200, 51, 79, 0.25); border: 1px solid var(--string-bright); }

.notebook-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
}

.notebook-search,
.notebook-select,
.note-composer textarea {
  color: var(--text);
  background: rgba(14, 7, 24, 0.8);
  border: 1px solid rgba(150, 99, 198, 0.4);
  border-radius: 10px;
  font: inherit;
}

.notebook-search {
  flex: 1 1 240px;
  min-width: 0;
  padding: 11px 14px;
}

.notebook-select {
  max-width: 100%;
  padding: 10px 12px;
}

.notebook-search:focus,
.notebook-select:focus,
.note-composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 122, 255, 0.2);
}

.notebook-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(20, 10, 34, 0.85);
  border: 1px solid rgba(150, 99, 198, 0.35);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

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

.chip.is-active {
  color: #fff;
  background: rgba(116, 48, 187, 0.6);
  border-color: var(--accent);
}

.chip-small {
  padding: 5px 10px;
  font-size: 11px;
}

.notebook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.notebook-page {
  min-width: 0;
  padding: 20px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 31px,
      rgba(194, 122, 255, 0.05) 31px 32px
    ),
    rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.finding-list,
.note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.finding {
  padding: 14px 15px;
  background: rgba(14, 7, 24, 0.6);
  border: 1px solid rgba(150, 99, 198, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 9px;
}

.finding-lead      { border-left-color: var(--string-bright); }
.finding-interview { border-left-color: #e1d2b7; }
.finding-forensic  { border-left-color: var(--green); }

.finding-cat {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.finding-lead .finding-cat      { color: #ffb3c0; }
.finding-forensic .finding-cat  { color: var(--green); }
.finding-interview .finding-cat { color: #e1d2b7; }

.finding strong {
  display: block;
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

.finding p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.65;
}

.finding small {
  display: block;
  margin-top: 6px;
  color: #8f7ba6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.note-composer {
  margin-bottom: 18px;
}

.note-composer textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
}

.note-tag-label {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.note {
  padding: 14px 15px;
  color: #2b1b28;
  background: #e8dcc0;
  border-radius: 3px;
  box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.4);
  transform: rotate(-0.4deg);
}

.note:nth-child(even) {
  transform: rotate(0.5deg);
}

.note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.note-cites span {
  padding: 3px 8px;
  color: #5b1626;
  background: rgba(200, 51, 79, 0.14);
  border: 1px solid rgba(200, 51, 79, 0.35);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}

.note-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.note-foot small {
  color: #7a6470;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.note .ledger-remove {
  color: #7a6470;
  border-color: rgba(90, 60, 80, 0.3);
}

.note .ledger-remove:hover {
  color: #8d1f37;
  border-color: #8d1f37;
}


/* =========================================
   13. FORENSIC LAB
   ========================================= */

.forensic-callout {
  border-color: rgba(85, 230, 160, 0.35);
  background: rgba(10, 30, 24, 0.35);
}

.forensic-callout .eyebrow {
  color: var(--green);
}

.forensic-callout-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.forensic-callout .progress-track {
  margin-top: 12px;
}

.forensic-callout .progress-track span {
  background: linear-gradient(90deg, #2b8a63, var(--green));
  box-shadow: 0 0 10px rgba(85, 230, 160, 0.4);
}

.forensic-callout-count {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.forensic-dialog {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  color: var(--text);
  background: #170b26;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

.forensic-dialog::backdrop {
  background: rgba(4, 1, 9, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.forensic-inner {
  padding: 24px;
}

.forensic-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.forensic-head > div {
  flex: 1;
  min-width: 0;
}

.forensic-head .eyebrow {
  color: var(--green);
}

.forensic-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.forensic-count {
  align-self: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.forensic-help {
  margin: 10px 0 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

.forensic-findings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.forensic-findings li {
  padding: 12px 14px;
  border-radius: 10px;
}

.forensic-findings li.is-hidden {
  color: #8f7ba6;
  border: 1px dashed rgba(150, 99, 198, 0.35);
}

.forensic-findings li.is-found {
  background: rgba(10, 30, 24, 0.5);
  border: 1px solid rgba(85, 230, 160, 0.4);
  border-left: 3px solid var(--green);
  animation: messageIn 0.3s ease;
}

.forensic-findings strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.forensic-findings li.is-found strong {
  color: var(--green);
}

.forensic-findings p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.forensic-findings li.is-found p {
  color: var(--soft);
}

/* Photo examiner */

.photo-stage {
  position: relative;
  /* Never crop: hotspots are % of the full print */
  width: min(100%, calc(56vh * 1.782));
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #efe6d2;
  border-bottom-width: 34px;
  border-radius: 3px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  cursor: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.photo-print {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.65) sepia(0.25) contrast(1.08) brightness(0.95);
}

.photo-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 170px;
  height: 170px;
  border: 3px solid #d9c9a6;
  border-radius: 50%;
  background-image: url("assets/last-signal-cabin.png");
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.7),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  filter: grayscale(0.4) sepia(0.2) contrast(1.15) brightness(1.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.photo-lens.is-active {
  opacity: 1;
}

.photo-hotspot {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.photo-hotspot span {
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 214, 138, 0.28);
  border-radius: 50%;
  transition: all 0.2s;
}

.photo-hotspot.is-near span,
.photo-hotspot:focus-visible span {
  inset: 2px;
  border-color: var(--gold);
  background: rgba(255, 214, 138, 0.18);
  box-shadow: 0 0 18px rgba(255, 214, 138, 0.8);
  animation: hotspotPulse 1s ease-in-out infinite;
}

.photo-hotspot.is-found span {
  inset: 4px;
  border-color: var(--green);
  background: rgba(85, 230, 160, 0.25);
  box-shadow: 0 0 12px rgba(85, 230, 160, 0.6);
  animation: none;
}

.photo-hotspot.is-found span::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@keyframes hotspotPulse {
  50% { transform: scale(1.15); }
}

.photo-stamp {
  position: absolute;
  left: 0;
  bottom: -27px;
  color: #5a4a3a;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

/* Audio analyzer */

.wave-wrap {
  padding: 14px;
  background: rgba(6, 3, 12, 0.9);
  border: 1px solid rgba(85, 230, 160, 0.25);
  border-radius: 12px;
}

.waveform {
  display: block;
  width: 100%;
  height: 150px;
  cursor: pointer;
}

.audio-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.audio-play {
  width: auto;
  min-width: 140px;
}

.audio-time {
  flex: 1;
  color: var(--soft);
  font-family: var(--display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.audio-mark:disabled {
  color: #9d89b3;
  background: rgba(30, 14, 49, 0.8);
  border-color: rgba(150, 99, 198, 0.3);
  opacity: 0.7;
}

.audio-mark.is-ready {
  animation: markReady 0.8s ease-in-out infinite;
}

@keyframes markReady {
  50% { box-shadow: 0 0 24px rgba(226, 68, 95, 0.7); }
}

.audio-note {
  margin: 10px 0 0;
  color: #8f7ba6;
  font-size: 11px;
}


/* =========================================
   13b. REOPENED EVIDENCE · FINAL REPORT · ENDING
   ========================================= */

.evidence-card.is-pending {
  color: #9d89b3;
  background: rgba(14, 7, 24, 0.6);
  border: 1px dashed rgba(150, 99, 198, 0.35);
  box-shadow: none;
  cursor: default;
}

.evidence-card.is-pending:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(150, 99, 198, 0.35);
}

.evidence-card.is-pending .evidence-icon {
  filter: grayscale(1);
  opacity: 0.6;
}

.evidence-card.is-pending > strong {
  color: #9d89b3;
  letter-spacing: 2px;
}

.pending-label {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.evidence-card.is-new {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255, 214, 138, 0.4), 0 0 26px rgba(255, 214, 138, 0.15);
}

.evidence-card.is-new .evidence-status::before {
  content: "NEW · ";
  color: var(--gold);
}

.board-evidence {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-status.is-closed {
  color: #ffd0d8;
  background: rgba(141, 31, 55, 0.92);
}

.nav-item-report .nav-icon {
  color: var(--gold);
}

/* Report */

.report-view,
.resolution-view {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 60px;
  animation: viewFadeIn 0.35s ease;
}

.report-locked {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 36px;
  text-align: center;
  background: rgba(24, 12, 40, 0.94);
  border: 1px dashed rgba(150, 99, 198, 0.45);
  border-radius: 18px;
}

.report-locked-icon {
  color: var(--gold);
  font-size: 40px;
}

.report-locked h3 {
  margin: 8px 0 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.report-locked p {
  color: var(--soft);
  line-height: 1.7;
}

.report-locked .progress-track {
  margin: 20px 0 8px;
}

.report-locked-count {
  margin: 0 0 22px;
  font-size: 13px;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.report-question {
  min-width: 0;
  margin: 0;
  padding: 22px;
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.report-question legend {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  float: left;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
}

.report-question legend small {
  margin-left: auto;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.report-number {
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.report-options {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-options.is-people {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  color: var(--soft);
  background: rgba(14, 7, 24, 0.6);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.report-option:hover {
  border-color: var(--accent);
}

.report-option input,
.report-cite input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-option:has(input:checked) {
  color: #fff;
  background: rgba(116, 48, 187, 0.4);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.report-option:has(input:focus-visible),
.report-cite:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.report-option img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
}

.report-evidence {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 8px;
}

.report-cite {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(14, 7, 24, 0.6);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 9px;
  cursor: pointer;
}

.report-cite:has(input:checked) {
  background: rgba(130, 90, 20, 0.25);
  border-color: var(--gold);
}

.report-cite.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.report-cite-icon {
  font-size: 20px;
}

.report-cite strong {
  display: block;
  font-size: 13px;
}

.report-cite small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

.report-error {
  margin: 0;
  padding: 12px 16px;
  color: #ffd0d8;
  background: rgba(200, 51, 79, 0.15);
  border: 1px solid rgba(226, 68, 95, 0.5);
  border-radius: 10px;
}

.report-error[hidden] {
  display: none;
}

.report-submit {
  min-height: 56px;
  font-size: 16px;
}

/* Verdict */

.verdict {
  position: relative;
  margin-top: 20px;
  padding: clamp(28px, 5vw, 50px);
  overflow: hidden;
  text-align: center;
  background: rgba(24, 12, 40, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}

.verdict h2 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
}

.verdict-body {
  max-width: 620px;
  margin: 0 auto 14px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.8;
}

.verdict-stamp {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 22px;
  color: var(--string-bright);
  border: 4px double var(--string-bright);
  border-radius: 6px;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 5px;
  transform: rotate(-4deg);
  opacity: 0.92;
  animation: stampIn 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.verdict-weak .verdict-stamp,
.verdict-partial .verdict-stamp {
  color: var(--gold);
  border-color: var(--gold);
}

.verdict-closed {
  border-color: rgba(85, 230, 160, 0.45);
  box-shadow: 0 0 50px rgba(85, 230, 160, 0.12);
}

.verdict-closed .verdict-stamp,
.resolution-hero .verdict-stamp {
  color: var(--green);
  border-color: var(--green);
}

@keyframes stampIn {
  from { opacity: 0; transform: rotate(-4deg) scale(2.2); }
  to   { opacity: 0.92; transform: rotate(-4deg) scale(1); }
}

.verdict-misses {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 18px;
  padding: 0;
  color: #ffb3c0;
  list-style: none;
  text-align: left;
}

.verdict-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.verdict-actions .primary-button {
  width: auto;
  min-width: 280px;
}

.verdict-attempts {
  margin: 18px 0 0;
  color: #8f7ba6;
  font-size: 12px;
}

/* Resolution */

.resolution-hero {
  position: relative;
  padding: 60px 30px 40px;
  text-align: center;
  background:
    linear-gradient(to top, rgba(10, 4, 20, 0.97), rgba(22, 8, 40, 0.35)),
    url("assets/last-signal-cabin.png") center / cover no-repeat;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}

.resolution-hero h2 {
  margin: 8px 0 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  text-shadow: 0 4px 20px #000;
}

.resolution-text {
  max-width: 720px;
  margin: 34px auto;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.85;
}

.resolution-text p:last-child {
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
}

.resolution-letter {
  position: relative;
  max-width: 620px;
  margin: 0 auto 40px;
  padding: 34px 38px 30px;
  color: #2b1b28;
  background: #ece2c8;
  border-radius: 3px;
  box-shadow: 4px 12px 30px rgba(0, 0, 0, 0.55);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  transform: rotate(-0.6deg);
}

.resolution-letter p {
  margin: 0 0 14px;
}

.letter-meta {
  padding-bottom: 14px;
  color: #6e5a63;
  border-bottom: 1px dashed rgba(90, 60, 80, 0.35);
  font-family: var(--sans);
  font-size: 12px !important;
  line-height: 1.6;
}

.letter-sign {
  margin-top: 22px !important;
  font-size: 22px;
  font-style: italic;
}

.letter-number {
  position: absolute;
  right: 28px;
  bottom: 22px;
  margin: 0 !important;
  color: #8d1f37;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  opacity: 0.75;
  transform: rotate(-8deg);
}

.resolution-section {
  margin: 0 0 36px;
}

.resolution-cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.cast-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(24, 12, 40, 0.94);
  border: 1px solid rgba(150, 99, 198, 0.3);
  border-radius: 12px;
}

.cast-card.is-key {
  border-color: var(--gold);
}

.cast-card img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 10px;
}

.cast-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.cast-card p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.sequel-card {
  padding: 30px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 214, 138, 0.14), transparent 60%),
    rgba(14, 7, 24, 0.9);
  border: 1px solid rgba(255, 214, 138, 0.4);
  border-radius: 16px;
}

.sequel-card .eyebrow {
  color: var(--gold);
}

.sequel-card h3 {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.sequel-card p {
  max-width: 560px;
  margin: 0 auto 16px;
  color: var(--soft);
  line-height: 1.7;
}

.sequel-status {
  display: inline-block;
  padding: 6px 12px;
  color: var(--gold);
  border: 1px dashed rgba(255, 214, 138, 0.5);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sequel-card-small {
  margin-bottom: 22px;
  padding: 20px;
}

.sequel-card-small h3 {
  font-size: 24px;
}

.resolution-actions {
  margin-top: 30px;
  text-align: center;
}

/* =========================================
   13c. SPLASH SCREEN
   ========================================= */

body.splash-open {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: var(--text);
  background: #05020a;
}

.splash[hidden] {
  display: none;
}

.splash-bg {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(rgba(5, 2, 10, 0.82), rgba(12, 4, 22, 0.9)),
    url("assets/detective-reference.png") center / cover no-repeat;
  filter: saturate(0.6) blur(2px);
  animation: splashDrift 22s ease-in-out infinite alternate;
}

@keyframes splashDrift {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.1) translate(-1.5%, -1%); }
}

.splash-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(116, 48, 187, 0.28), transparent 55%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

/* Grain */
.splash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

.splash-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-dust i {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  background: rgba(214, 169, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(194, 122, 255, 0.6);
  animation: dustRise linear infinite;
}

@keyframes dustRise {
  from { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.9; }
  85%  { opacity: 0.6; }
  to   { transform: translate(var(--dx, 30px), -105vh); opacity: 0; }
}

.splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(560px, 100%);
  text-align: center;
}

/* Fingerprint scanner */

.splash-scanner {
  position: relative;
  flex-shrink: 0;
  width: clamp(110px, 21vh, 160px);
  height: clamp(110px, 21vh, 160px);
  color: var(--accent);
  animation: scannerIn 0.6s ease both;
}

@keyframes scannerIn {
  from { opacity: 0; transform: scale(0.9); }
}

.splash-scanner svg {
  position: absolute;
  top: 14%;
  left: 14%;
  display: block;
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 0 10px rgba(194, 122, 255, 0.75));
  overflow: visible;
}

.splash-scanner path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: printDraw 0.9s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.09s);
}

@keyframes printDraw {
  to { stroke-dashoffset: 0; }
}

.scan-corner {
  position: absolute;
  width: 20%;
  height: 20%;
  border: 2px solid rgba(194, 122, 255, 0.55);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.scan-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.scan-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 14px 3px rgba(194, 122, 255, 0.85);
  opacity: 0;
  animation: scanSweep 1.3s ease-in-out 0.5s 2;
}

@keyframes scanSweep {
  0%   { top: 8%;  opacity: 0; }
  10%  { opacity: 1; }
  50%  { top: 90%; }
  90%  { opacity: 1; }
  100% { top: 8%;  opacity: 0; }
}

.splash.is-verified .splash-scanner {
  color: #e9d4ff;
}

.splash.is-verified .scan-corner {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(85, 230, 160, 0.5);
}

.splash.is-verified .splash-scanner svg {
  animation: printPulse 0.7s ease;
}

@keyframes printPulse {
  40% { filter: drop-shadow(0 0 26px rgba(214, 169, 255, 1)); transform: scale(1.04); }
}

.splash-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin: 18px 0 0;
  color: var(--lavender);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.splash-status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: recBlink 0.9s steps(1) infinite;
}

.splash.is-verified .splash-status {
  color: var(--green);
}

.splash.is-verified .splash-status-dot {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: none;
}

/* Wordmark */

.splash-title {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 10vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: clamp(4px, 1.4vw, 14px);
  margin-right: calc(clamp(4px, 1.4vw, 14px) * -1);
}

.splash-title span {
  display: inline-block;
  color: #fff;
  text-shadow:
    0 0 24px rgba(194, 122, 255, 0.75),
    0 0 60px rgba(116, 48, 187, 0.6);
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
}

.splash.is-verified .splash-title span {
  animation: letterIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 0.06s);
}

@keyframes letterIn {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.splash-sub,
.splash-tagline,
.splash-loader,
.splash-ready {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: translateY(8px);
}

.splash-sub {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 7px;
  transition-delay: 0.45s;
}

.splash-tagline {
  margin: 18px 0 0;
  color: var(--soft);
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 20px);
  font-style: italic;
  transition-delay: 0.75s;
}

.splash.is-verified .splash-sub,
.splash.is-verified .splash-tagline,
.splash.is-verified .splash-loader {
  opacity: 1;
  transform: none;
}

/* Loader → ready swap (stacked in one slot) */

.splash-action {
  display: grid;
  width: min(340px, 100%);
  margin-top: 30px;
}

.splash-loader,
.splash-ready {
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
}

.splash-loader {
  transition-delay: 0.9s;
}

.splash-loader-track {
  height: 3px;
  overflow: hidden;
  background: rgba(194, 122, 255, 0.15);
  border-radius: 99px;
}

.splash-loader-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), #fff);
  box-shadow: 0 0 10px rgba(194, 122, 255, 0.8);
  transition: width 0.3s ease;
}

.splash-loader p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.splash-ready {
  pointer-events: none;
}

.splash.is-ready .splash-loader {
  opacity: 0;
  transition-delay: 0s;
}

.splash.is-ready .splash-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.2s;
}

.splash-case {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.splash-enter {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, rgba(116, 48, 187, 0.85), rgba(164, 74, 242, 0.85));
  border: 1px solid #c995ff;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(164, 74, 242, 0.35);
  font-weight: 800;
  letter-spacing: 3px;
  animation: enterGlow 2.4s ease-in-out infinite;
}

.splash-enter::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: enterShine 3s ease-in-out infinite;
}

.splash-enter:hover {
  background: linear-gradient(135deg, #9145d8, #bd72ff);
}

@keyframes enterGlow {
  50% { box-shadow: 0 0 46px rgba(194, 122, 255, 0.6); }
}

@keyframes enterShine {
  0%, 55% { left: -60%; }
  100%    { left: 130%; }
}

.splash-hint {
  margin: 12px 0 0;
  color: #8f7ba6;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.splash-footer {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  color: #6f5d86;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
}

/* Exit: everything pushes in and dissolves */

.splash.is-leaving {
  pointer-events: none;
  animation: splashOut 0.8s ease forwards;
}

.splash.is-leaving .splash-inner {
  animation: splashInnerOut 0.8s ease forwards;
}

@keyframes splashOut {
  60%  { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

@keyframes splashInnerOut {
  to { opacity: 0; transform: scale(1.12); filter: blur(6px); }
}

@media (max-width: 480px) {
  .splash-sub { letter-spacing: 4px; font-size: 10px; }
  .splash-case { letter-spacing: 1.5px; line-height: 1.6; }
}

@media (max-height: 620px) {
  .splash-tagline { display: none; }
  .splash-action { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-bg,
  .splash::after,
  .splash-dust { animation: none; display: none; }

  .splash-scanner path { stroke-dashoffset: 0; animation: none; }
  .scan-line { display: none; }

  .splash-title span {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }
}

/* =========================================
   13d. FREE DEMO · UNLOCK
   ========================================= */

.upsell {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(226, 68, 95, 0.16), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(116, 48, 187, 0.3), transparent 60%),
    rgba(20, 10, 34, 0.96);
  border: 1px solid rgba(226, 68, 95, 0.45);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.upsell-report {
  max-width: 760px;
  margin: 24px auto 0;
}

.upsell-seal {
  position: absolute;
  top: 26px;
  right: -46px;
  padding: 6px 60px;
  color: #ffd0d8;
  background: rgba(141, 31, 55, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  transform: rotate(35deg);
}

.upsell .eyebrow {
  color: #ff8fa3;
}

.upsell h3 {
  max-width: 560px;
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.25;
}

.upsell-lead {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--soft);
  line-height: 1.7;
}

.upsell-list {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.upsell-list li {
  position: relative;
  padding-left: 26px;
  color: #efe3fa;
  line-height: 1.55;
}

.upsell-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.upsell-list strong {
  color: var(--gold);
}

.upsell-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.upsell-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.upsell-actions .primary-button {
  width: auto;
  min-width: 280px;
  background: linear-gradient(135deg, #8d1f37, #c8334f 55%, #a44af2);
  border-color: #ff8fa3;
  box-shadow: 0 6px 26px rgba(200, 51, 79, 0.35);
}

.upsell-actions .primary-button:hover {
  background: linear-gradient(135deg, #a92b43, #e2445f 55%, #bd72ff);
}

.upsell-actions .text-button {
  margin: 0;
}

.edition-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.edition-chip:empty {
  display: none;
}

.edition-full {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.edition-demo {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.edition-unlock {
  width: 100%;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(141, 31, 55, 0.85), rgba(164, 74, 242, 0.75));
  border: 1px solid rgba(255, 143, 163, 0.6);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.edition-unlock:hover {
  border-color: #ffb3c0;
  box-shadow: 0 0 16px rgba(226, 68, 95, 0.4);
}

.splash-demo {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.splash-demo[hidden] {
  display: none;
}

.splash-demo-link {
  padding: 0;
  color: #ffb3c0;
  background: none;
  border: 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.restore-input {
  display: block;
  width: 100%;
  margin: 18px 0 4px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(14, 7, 24, 0.85);
  border: 1px solid rgba(150, 99, 198, 0.5);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
}

.restore-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 122, 255, 0.2);
}

@media (max-width: 760px) {
  .edition-chip {
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
  }

  .edition-unlock {
    width: auto;
  }
}

@media (max-width: 650px) {
  .upsell-actions .primary-button {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================
   13e. SHARING · ADS
   ========================================= */

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--lavender);
  background: rgba(116, 48, 187, 0.18);
  border: 1px solid rgba(194, 122, 255, 0.45);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.share-button:hover {
  color: #fff;
  background: rgba(116, 48, 187, 0.45);
}

.resolution-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.share-wide {
  max-width: 420px;
}

.app-footer a,
.splash-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.splash-footer a {
  pointer-events: auto;
}

.ad-slot {
  display: block;
  margin: 30px 0 34px;
  padding: 12px 14px 14px;
  background: rgba(14, 7, 24, 0.7);
  border: 1px dashed rgba(150, 99, 198, 0.35);
  border-radius: 12px;
}

.ad-label {
  display: block;
  margin-bottom: 8px;
  color: #8f7ba6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* =========================================
   14. RESPONSIVE
   ========================================= */

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  .stats-grid,
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interrogation-suspect-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-layout,
  .briefing-layout {
    grid-template-columns: 1fr;
  }

  .confrontation-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .confrontation-panel .primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .suspect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .board-suspects,
  .hunch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notebook-layout {
    grid-template-columns: 1fr;
  }

  .board-ledger,
  .dossier-record {
    grid-template-columns: 1fr;
  }

  .board-evidence,
  .report-options.is-people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 18px;
    overflow: visible;
  }

  .brand {
    padding-bottom: 15px;
  }

  /* Phones: every section visible at once, no sideways scrolling */
  .navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 6px;
  }

  .nav-item {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px;
    text-align: center;
    background: rgba(27, 17, 43, 0.7);
    border-color: rgba(88, 55, 121, 0.6);
  }

  .nav-icon {
    width: auto;
    font-size: 16px;
  }

  .nav-label {
    display: none;
  }

  .nav-item::after {
    content: attr(data-short);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
  }

  .nav-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 6px;
    padding: 6px 4px 0;
  }

  .sidebar-version {
    display: none;
  }

  .reset-button {
    width: auto;
  }

  .sound-toggles {
    margin-bottom: 0;
  }

  .main-content {
    padding: 26px 16px;
  }

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

  .stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 17px;
  }

  .case-image {
    min-height: 210px;
  }
}

@media (max-width: 700px) {
  .interview-layout {
    grid-template-columns: 1fr;
  }

  .interview-profile {
    position: static;
    display: flex;
    align-items: center;
  }

  .interview-profile > img {
    width: 110px;
    height: 135px;
    flex-shrink: 0;
  }

  .interview-profile-details {
    flex: 1;
    min-width: 0;
  }

  .interview-console {
    padding: 16px;
  }

  .interview-message {
    max-width: 94%;
  }
}

@media (max-width: 650px) {
  .evidence-grid,
  .suspect-grid,
  .dossier-sections {
    grid-template-columns: 1fr;
  }

  .evidence-card {
    min-height: 210px;
  }

  .evidence-report {
    padding: 22px;
  }

  .report-header {
    align-items: flex-start;
  }

  .suspect-photo {
    height: 260px;
  }

  .dossier-identity {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .dossier-identity > img {
    width: 100%;
    height: 300px;
  }

  .interrogation-stage {
    min-height: 280px;
  }

  .interrogation-stage-message {
    padding: 20px;
  }

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

  .connection-board {
    padding: 15px;
  }

  .board-suspects,
  .board-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .suspect-pin img {
    height: 110px;
  }

  .progress-facts {
    grid-template-columns: 1fr;
  }

  .hunch-grid,
  .report-options.is-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-options {
    grid-template-columns: 1fr;
  }

  .verdict-actions .primary-button {
    min-width: 0;
    width: 100%;
  }

  .resolution-letter {
    padding: 26px 22px 40px;
  }

  .forensic-inner {
    padding: 16px;
  }

  .forensic-findings {
    grid-template-columns: 1fr;
  }

  .photo-lens {
    width: 120px;
    height: 120px;
  }

  .waveform {
    height: 110px;
  }

  .forensic-head h3 {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .investigation-hero {
    min-height: 270px;
    padding: 22px;
  }

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

  .briefing-panel {
    padding: 22px;
  }

  .briefing-timeline {
    padding: 18px 16px 4px;
  }

  .briefing-timeline ol::before { left: 79px; }
  .briefing-timeline li { grid-template-columns: 66px minmax(0, 1fr); gap: 36px; }
  .briefing-timeline li::before { left: 74px; }
}

@media (max-width: 390px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .activity-entry {
    flex-wrap: wrap;
  }
}


/* =========================================
   15. REDUCED MOTION
   ========================================= */

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

  .board-pin,
  .board-pin:hover:not(:disabled),
  .note,
  .note:nth-child(even) {
    transform: none;
  }

  .board-string.is-fresh .string-line,
  .board-string.is-fresh .string-shadow {
    stroke-dasharray: none;
  }
}
