/* ═════════════════════════════════════════════════════════════════
   VAKAPRO FORENSICS — ULTRA MODERN DEDEKTİF & KRİMİNOLOJİ TEMASI
   Açık Tonlar (Parchment Cream), Manila Klasörleri, Büyüteç,
   Kırmızı İpli Şüpheli Panosu, Kauçuk Damgalar ve Adli Laboratuvar
   ═════════════════════════════════════════════════════════════════ */

:root {
  /* Açık Arka Plan & Kağıt/Dosya Tonları */
  --bg-parchment: #F7F4EC;
  --bg-desk: #ECE6D8;
  --bg-paper: #FFFDF9;
  --bg-manila: #E8DCB8;
  --bg-manila-dark: #D4C59A;

  /* Dedektif & Adli Renkleri */
  --ink-primary: #1C1917;
  --ink-secondary: #44403C;
  --ink-muted: #78716C;

  /* Mürekkep & Damga Renkleri */
  --stamp-red: #991B1B;
  --stamp-red-glow: rgba(153, 27, 27, 0.12);
  --stamp-green: #166534;
  --stamp-green-glow: rgba(22, 101, 52, 0.12);
  --brass-gold: #B48429;
  --brass-gold-light: #FBF4E2;
  --tape-yellow: #EAB308;

  /* Çizgi & Ayrım */
  --border-light: rgba(68, 64, 60, 0.12);
  --border-medium: rgba(68, 64, 60, 0.22);
  --border-dashed: rgba(180, 132, 41, 0.35);

  /* Gölgeler */
  --shadow-paper: 0 4px 20px -2px rgba(44, 38, 33, 0.08), 0 2px 6px -1px rgba(44, 38, 33, 0.04);
  --shadow-folder: 0 15px 35px -5px rgba(44, 38, 33, 0.14), 0 5px 15px rgba(44, 38, 33, 0.06);
  --shadow-pin: 0 6px 12px rgba(0, 0, 0, 0.15);

  /* Font Aileleri */
  --font-editorial: 'Playfair Display', 'Cinzel', Georgia, serif;
  --font-typewriter: 'Courier Prime', Courier, monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Animasyon */
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* The notebook margin is gone, so the copy starts from the actual left edge
   of the writing area on every breakpoint. */
.case-file-workspace .evidence-textarea {
  padding: 18px 16px !important;
}

/* ── Temel Sıfırlama ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.detective-body {
  background-color: var(--bg-parchment);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* İnce dokulu adli defter ızgarası */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(68, 64, 60, 0.03) 1px, transparent 1px),
    linear-gradient(to right, rgba(68, 64, 60, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(68, 64, 60, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── İnteraktif Loupe (Büyüteç İmleç Eklentisi) ── */
.inspector-loupe {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  pointer-events: none;
  /* Gezinen mercek arayüzün üzerinde değil, çalışma alanında kalır. */
  z-index: 80;
  transform: translate3d(var(--loupe-x, -200px), var(--loupe-y, -200px), 0) translate3d(-50%, -50%, 0);
  transition: opacity 0.3s var(--smooth-ease);
  will-change: transform;
  opacity: 0;
  overflow: visible;
}

body:hover .inspector-loupe {
  opacity: 0;
}

body:hover .inspector-loupe.is-ready {
  opacity: 1;
}

body.loupe-is-disabled .inspector-loupe {
  opacity: 0 !important;
}

/* Navigasyon bir kontrol yüzeyidir; imleç efekti burada içeriği örtmez. */
body:has(.detective-nav:hover) .inspector-loupe {
  opacity: 0;
}

.loupe-rim {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  border: 4px solid var(--brass-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 0 12px rgba(180, 132, 41, 0.25);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18) 0%, rgba(247, 244, 236, 0.02) 70%);
}

.loupe-handle {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 48px;
  background: linear-gradient(to bottom, var(--brass-gold), #6B4E1B);
  border-radius: 0 0 4px 4px;
  bottom: -36px;
  right: -10px;
  transform: rotate(-45deg);
  transform-origin: top center;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.25);
}

.loupe-lens {
  position: absolute;
  z-index: 0;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-paper);
  box-shadow: inset 0 0 0 1px rgba(14, 39, 70, 0.12);
}

.loupe-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.loupe-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
  background: var(--bg-paper);
}

body.loupe-preview .inspector-loupe { display: none; }

/* ── Konteyner ── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Üst Menü / Navigasyon ── */
.detective-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(68, 64, 60, 0.16);
  z-index: 100;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  column-gap: clamp(24px, 3vw, 52px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  text-decoration: none;
}

.brand-badge .brand-text-group {
  transition: transform 0.22s var(--smooth-ease);
}

.brand-cluster {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
}

.fedora-badge-icon {
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
}

/* Şapkanın çizim alanı, kelime işaretinin üst ve alt sınırlarıyla aynı
   optik hatta dursun. SVG'nin boş görünmez alanı yerine şapkanın kendisi
   hizalanır. */
.fedora-badge-icon > svg { transform: translateY(2px); }

.fedora-badge-icon { margin-right: -4px; }

.brand-text-group {
  display: flex;
  flex-direction: column;
}

/* Başlıktaki kelime işareti ve departman satırı, şapka simgesinin görsel
   merkeziyle aynı hizada kalır. Küçük ekranlarda departman satırı gizlenir. */
@media (min-width: 681px) {
  .brand-text-group { transform: translateY(9px); }
}

.brand-title {
  font-family: 'Cinzel', var(--font-editorial);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--ink-primary);
  line-height: 1;
}

.brand-title > span { display: inline-block; }

.brand-title--v12 {
  align-items: baseline;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: .95;
  padding-bottom: 2px;
}

.brand-title--v12 .brand-wordmark__strong { display: inline-block; font-weight: 700; }
.brand-title--v12 .brand-wordmark__product {
  align-items: baseline;
  display: inline-flex;
  font-weight: 500;
}
.brand-title--v12 .brand-wordmark__product > span { display: inline-block; font-weight: inherit; }
.brand-title--v12 .brand-wordmark__lens {
  display: inline-block;
  flex: 0 0 auto;
  height: .77em;
  margin-left: -.01em;
  margin-right: -.01em;
  overflow: visible;
  transform: translateY(.19em);
  width: .77em;
}
.brand-title--v12 .brand-wordmark__lens circle,
.brand-title--v12 .brand-wordmark__lens path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.brand-dept {
  font-family: var(--font-typewriter);
  font-size: 8px;
  font-weight: 700;
  color: var(--stamp-red);
  letter-spacing: 1.25px;
  margin-top: 5px;
}

.nav-case-links {
  display: flex;
  align-items: stretch;
  justify-self: center;
  gap: clamp(18px, 2vw, 34px);
}

.nav-case-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-case-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--stamp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--smooth-ease);
}

.tab-hash {
  font-family: var(--font-typewriter);
  color: var(--stamp-red);
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.nav-case-links a:hover {
  color: var(--stamp-red);
}

.nav-case-links a:hover::after,
.nav-case-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav-loupe-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 2px 1px;
  border: 0;
  border-bottom: 1px solid rgba(115, 88, 34, 0.26);
  border-radius: 0;
  background: transparent;
  color: var(--ink-primary);
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--smooth-ease), color 0.2s var(--smooth-ease);
}

.nav-loupe-toggle:hover {
  border-color: var(--brass-gold);
}

.nav-loupe-toggle:focus-visible {
  border-color: var(--brass-gold);
  outline: 2px solid var(--brass-gold);
  outline-offset: 3px;
}

.nav-loupe-toggle[aria-pressed="false"] {
  border-color: rgba(68, 64, 60, 0.16);
  color: var(--ink-muted);
}

.nav-loupe-toggle__icon {
  width: 11px;
  height: 11px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brass-gold);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0;
  line-height: 1;
  position: relative;
  box-shadow: 0 0 0 3px rgba(180, 132, 41, 0.08);
}

.nav-loupe-toggle__label {
  display: inline-block;
  /* "Büyüteç: Kapalı" en uzun durumdur; anahtar iki durumda da aynı genişlikte kalır. */
  inline-size: calc(16ch + 1.2em);
}

.nav-loupe-toggle__icon::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 1.5px;
  right: -5px;
  bottom: -2px;
  background: var(--brass-gold);
  border-radius: 99px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.nav-loupe-toggle::after {
  content: '';
  width: 25px;
  height: 13px;
  margin-left: 4px;
  border: 1px solid var(--brass-gold);
  border-radius: 999px;
  background: rgba(180, 132, 41, 0.11);
  box-shadow: inset -8px 0 0 var(--brass-gold);
  transition: background 0.2s var(--smooth-ease), box-shadow 0.2s var(--smooth-ease), border-color 0.2s var(--smooth-ease);
}

.nav-loupe-toggle[aria-pressed="false"]::after {
  border-color: rgba(68, 64, 60, 0.34);
  background: rgba(68, 64, 60, 0.06);
  box-shadow: inset 8px 0 0 rgba(68, 64, 60, 0.34);
}

@media (hover: none), (pointer: coarse) {
  .nav-loupe-toggle { display: none; }
}

.case-file-tag {
  font-family: var(--font-typewriter);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: #F4E9C9;
  border: 1px solid rgba(115, 88, 34, 0.34);
  padding: 9px 11px;
  border-radius: 3px;
  color: var(--ink-primary);
  font-weight: 700;
  white-space: nowrap;
}

.btn-stamp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--stamp-red);
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(153, 27, 27, 0.25);
  transition: all 0.25s var(--smooth-ease);
}

.btn-stamp-action:hover {
  background: #7F1D1D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(153, 27, 27, 0.35);
}

/* ── HERO BÖLÜMÜ: VAKA DOSYASI (MANILA FOLDER & LOUPE) ── */
.hero-dossier {
  padding: 80px 0 100px;
  position: relative;
}

/* Hero, genel içerik sütunundan biraz daha geniştir: metin ve dosya ekranın
   iki ucundaki boşluğu dengeli kullanır. */
.hero-dossier .container {
  max-width: 1420px;
}

/* İçerik ölçülerini değiştirmeden iki kenardaki görsel boşluğu dengeler. */
@media (min-width: 1025px) {
  .hero-dossier .container {
    transform: translateX(-70px);
  }
}

.hero-layout {
  display: grid;
  /* Dosya, metin ve özet sayfalarının gerçek birer okuma kolonu kalması için
     ana giriş alanının sağında, kontrollü bir ölçekte yer alır. */
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Sol Taraf: İddia & Vaka Başlığı */
.classified-stamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.confidential-seal {
  font-family: var(--font-typewriter);
  font-size: 11px;
  font-weight: 700;
  color: var(--stamp-red);
  background: var(--stamp-red-glow);
  border: 1.5px solid var(--stamp-red);
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  transform: rotate(-2deg);
}

.dossier-id {
  font-family: var(--font-typewriter);
  font-size: 12px;
  color: var(--ink-muted);
}

.dossier-headline {
  font-family: var(--font-editorial);
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 24px;
}

.highlight-ink {
  color: var(--stamp-red);
  position: relative;
  display: inline-block;
}

.highlight-ink::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(234, 179, 8, 0.3);
  z-index: -1;
  border-radius: 2px;
}

.dossier-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--brass-gold);
}

.dossier-subtext {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.dossier-subtext strong {
  color: var(--ink-primary);
}

/* Parmak İzi & İstatistik Kartları */
.forensic-meters-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.meter-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 16px 14px;
  position: relative;
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s ease;
}

.meter-card:hover {
  transform: translateY(-4px);
}

.meter-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

.meter-number {
  font-family: var(--font-typewriter);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stamp-red);
  line-height: 1.2;
}

.meter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 4px;
}

.meter-caption {
  font-size: 0.68rem;
  color: var(--ink-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* Eylem Butonları */
.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.stamp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--stamp-red);
  color: #FFF;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.28);
  transition: all 0.3s var(--smooth-ease);
}

.stamp-btn-primary:hover {
  background: #7F1D1D;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(153, 27, 27, 0.38);
}

.btn-manila-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-paper);
  border: 1.5px solid var(--border-medium);
  color: var(--ink-primary);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-manila-ghost:hover {
  border-color: var(--brass-gold);
  background: var(--bg-manila);
}

/* ── Sağ: Manila Klasörü Sahnesi ── */
.hero-casefile-stage {
  position: relative;
  min-width: 0;
  /* Sağdaki kontrollü taşma, dosyayı yerinden oynatmadan iki sayfaya nefes alanı verir. */
  width: min(122%, 800px);
  padding-left: 20px;
}

.manila-folder {
  background: var(--bg-manila);
  border: 1.5px solid var(--bg-manila-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-folder);
  position: relative;
  z-index: 10;
  transition: transform 0.4s var(--smooth-ease);
}

.manila-folder:hover {
  transform: translateY(-3px) rotate(0.5deg);
}

.folder-tab-top {
  background: #fffdf8;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  border-radius: 8px 8px 0 0;
  margin-left: 18px;
  margin-top: -24px;
  border: 1.5px solid rgba(143, 112, 65, 0.28);
  border-bottom: none;
}

.tab-label {
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 1px;
}

.tab-badge {
  font-family: var(--font-typewriter);
  font-size: 9px;
  background: var(--stamp-red);
  color: #FFF;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.folder-content {
  background: var(--bg-paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin: 12px;
  padding: 28px;
  position: relative;
}

/* Etiket */
.paperclip-wrap {
  position: absolute;
  top: -14px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
}

.evidence-tag {
  background: #FEF3C7;
  border: 1px dashed #D97706;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  gap: 6px;
}

.evidence-tag .alert-red {
  color: var(--stamp-red);
}

/* Belge İçi Metin */
.doc-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 18px;
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-muted);
}

.typewriter-text-sample p {
  font-family: var(--font-typewriter);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-primary);
}

.highlighted-token {
  background: rgba(153, 27, 27, 0.12);
  border-bottom: 2px solid var(--stamp-red);
  color: var(--stamp-red);
  font-weight: 700;
  padding: 0 4px;
  border-radius: 2px;
  cursor: help;
  position: relative;
}

.clue-human {
  background: rgba(22, 101, 52, 0.1);
  border-bottom: 2px solid var(--stamp-green);
  color: var(--stamp-green);
  padding: 0 4px;
  border-radius: 2px;
}

/* Kauçuk Damga */
.rubber-stamp {
  position: absolute;
  top: 55%;
  right: 20px;
  transform: translateY(-50%) rotate(-12deg);
  border: 3px solid var(--stamp-red);
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 15px rgba(153, 27, 27, 0.18);
  pointer-events: none;
  animation: stampPopIn 0.8s var(--spring-bounce) 0.5s both;
}

@keyframes stampPopIn {
  0% { transform: translateY(-50%) rotate(-12deg) scale(2.2); opacity: 0; }
  100% { transform: translateY(-50%) rotate(-12deg) scale(1); opacity: 0.95; }
}

.stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Cinzel', serif;
  color: var(--stamp-red);
}

.stamp-org {
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 700;
}

.stamp-bold {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.1;
  border-top: 1px solid var(--stamp-red);
  border-bottom: 1px solid var(--stamp-red);
  padding: 2px 0;
  margin: 3px 0;
}

.stamp-id {
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: 700;
}

/* El Yazısı Post-it */
.detective-sticky-note {
  position: absolute;
  bottom: -22px;
  left: 58px;
  background: #FEF08A;
  border: 1px solid #FDE047;
  padding: 12px 14px;
  width: 220px;
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: rotate(-3deg);
}

.detective-sticky-note .pin-icon {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
}

.sticky-handwriting {
  font-family: 'Courier Prime', cursive, sans-serif;
  font-size: 11px;
  color: #713F12;
  line-height: 1.4;
  font-weight: 700;
}

/* Oran Cetveli */
.folder-verdict-scale {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-medium);
}

.scale-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-typewriter);
  margin-bottom: 8px;
}

.forensic-scale-track {
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.scale-fill-human {
  background: var(--stamp-green);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.scale-fill-ai {
  background: var(--stamp-red);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

/* Açık dosya: delil metni ve bulgu özeti ayrı sayfalarda kalır. Böylece
   damga veya not hiçbir zaman okunacak metnin üstüne gelmez. */
.manila-folder .folder-content {
  padding: 18px;
}

.case-book-spread {
  display: grid;
  min-height: 354px;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  overflow: hidden;
  border: 1px solid rgba(117, 87, 42, .38);
  border-radius: 5px;
  background: #fffdf7;
  box-shadow: 0 3px 10px rgba(71, 46, 17, .08);
}

.case-book-spread > * { min-width: 0; }

.case-evidence-page {
  position: relative;
  padding: 23px 23px 22px;
  border-right: 1px solid rgba(118, 87, 43, .34);
  background:
    linear-gradient(90deg, transparent 34px, rgba(153, 27, 27, .14) 35px, transparent 36px),
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(120, 103, 77, .06) 33px),
    #fffdf8;
}

.case-evidence-page .doc-header {
  margin-bottom: 20px;
}

.case-evidence-page .typewriter-text-sample p {
  font-size: 11px;
  line-height: 1.8;
}

.evidence-verdict-stamp {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  width: min(54%, 218px);
  height: auto;
  mix-blend-mode: multiply;
  opacity: .9;
  pointer-events: none;
  transform: translateX(-50%) rotate(-4deg);
}

.case-summary-page {
  display: flex;
  flex-direction: column;
  padding: 18px 17px 16px;
  background:
    linear-gradient(90deg, transparent 30px, rgba(153, 27, 27, .11) 31px, transparent 32px),
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(120, 103, 77, .055) 33px),
    #fffdf8;
}

.summary-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(153, 27, 27, .37);
  border-radius: 3px;
  background: rgba(153, 27, 27, .06);
  color: var(--stamp-red);
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

.summary-page-header span:first-child {
  font-family: var(--font-editorial);
  font-size: 15px;
  letter-spacing: .015em;
  white-space: nowrap;
}

.summary-page-header span:last-child {
  padding: 3px 5px;
  border-radius: 2px;
  background: var(--stamp-red);
  color: #fff8ec;
  font-size: 7px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.summary-evidence-cards {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(3, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.summary-evidence-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(117, 87, 42, .27);
  background: rgba(255, 254, 249, .84);
  box-shadow: 3px 3px 0 rgba(178, 150, 92, .13);
}

.summary-card-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(153, 27, 27, .68);
  border-radius: 50%;
  color: var(--stamp-red);
  font: 700 8px var(--font-typewriter);
}

.summary-card-label {
  display: block;
  color: var(--stamp-red);
  font: 700 8px var(--font-typewriter);
  letter-spacing: .09em;
}

.summary-evidence-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink-primary);
  font: 700 14px/1.16 var(--font-editorial);
}

.summary-evidence-card p {
  margin-top: 4px;
  color: var(--ink-muted);
  font: 9px/1.42 var(--font-typewriter);
}

.summary-page-note {
  margin-top: auto;
  padding: 11px 8px 0;
  border-top: 1px dashed rgba(115, 82, 43, .38);
  color: #766a5b;
  font: 8px/1.4 var(--font-typewriter);
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .hero-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }

  .case-evidence-page { padding: 20px 19px 18px; }
  .case-summary-page { padding: 15px 13px 13px; }
}

.summary-page-note span {
  margin-right: 6px;
  color: var(--stamp-red);
  font-weight: 700;
  letter-spacing: .07em;
}

@media (max-width: 700px) {
  .hero-casefile-stage { width: 100%; padding-left: 0; }
  .case-book-spread { grid-template-columns: 1fr; }
  .case-evidence-page { border-right: 0; border-bottom: 1px solid rgba(118, 87, 43, .34); }
  .case-summary-page { min-height: 330px; }
}

/* Polaroid Resimleri (Arka Plan Detayları) */
.polaroid-evidence {
  position: absolute;
  background: #FFF;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 8px 8px 24px 8px;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 5;
  transition: transform 0.3s ease;
}

.polaroid-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
}

.polaroid-caption {
  font-family: var(--font-typewriter);
  font-size: 9px;
  color: var(--ink-secondary);
  text-align: center;
  margin-top: 6px;
}

.polaroid-1 {
  top: -40px;
  right: -25px;
  width: 140px;
  transform: rotate(10deg);
}

.polaroid-1:hover {
  transform: rotate(5deg) scale(1.05);
  z-index: 30;
}

.polaroid-img-box {
  height: 100px;
  background: #E5E7EB;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(#9CA3AF 1px, transparent 1px);
  background-size: 8px 8px;
}

.pixel-grid-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(153, 27, 27, 0.3) 100%);
  animation: scanPiksel 2s ease-in-out infinite;
}

@keyframes scanPiksel {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.polaroid-2 {
  bottom: -45px;
  right: 15px;
  width: 130px;
  transform: rotate(-8deg);
}

.polaroid-2:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 30;
}

.fingerprint-scan-visual {
  height: 90px;
  background: var(--bg-parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* ── 02. CANLI ADLİ İNCELEME LABORATUVARI (THE FORENSIC DETECTOR) ── */
.forensic-lab-section {
  padding: 100px 0;
  background: var(--bg-desk);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  position: relative;
}

.lab-section-header {
  margin-bottom: 40px;
}

.lab-badge-title h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 12px 0;
}

.lab-badge-title p {
  color: var(--ink-secondary);
  font-size: 1.05rem;
}

.badge-flair {
  font-family: var(--font-typewriter);
  font-size: 13px;
  font-weight: 700;
  color: var(--stamp-red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Örnek Vakalar Tepsisi */
.case-samples-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.tray-label {
  font-family: var(--font-typewriter);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.btn-sample-case {
  background: var(--bg-paper);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.btn-sample-case:hover {
  border-color: var(--brass-gold);
  background: #FFF;
  transform: translateY(-1px);
}

/* İnceleme Masası Çerçevesi */
.forensic-desk-frame {
  background: #F4EFE6;
  border: 3px solid #D6CEBE;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Cetvel Kenarlığı */
.desk-ruler-top {
  background: #E8DECD;
  border-bottom: 1.5px solid #CFC4B1;
  display: flex;
  justify-content: space-between;
  padding: 4px 16px;
  font-family: var(--font-typewriter);
  font-size: 9px;
  color: #8C7F6B;
}

.desk-inner-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 520px;
}

/* Sol Girdi Alanı */
.evidence-input-dock {
  padding: 28px;
  border-right: 2px dashed #D6CEBE;
  display: flex;
  flex-direction: column;
}

.dock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.evidence-types-tab {
  display: flex;
  gap: 8px;
}

.ev-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ev-tab.active {
  background: var(--ink-primary);
  color: #FFF;
  border-color: var(--ink-primary);
}

.dock-meta-badge {
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 700;
  color: var(--stamp-red);
}

.evidence-textarea-wrap {
  flex: 1;
  position: relative;
  margin-bottom: 16px;
}

.evidence-textarea {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--bg-paper);
  border: 1.5px solid #D6CEBE;
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-typewriter);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-primary);
  resize: none;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.evidence-textarea:focus {
  border-color: var(--brass-gold);
}

.image-dropzone-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #CFC4B1;
  border-radius: 8px;
  background: var(--bg-paper);
  margin-bottom: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
}

.document-dropzone-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #CFC4B1;
  border-radius: 8px;
  background: var(--bg-paper);
  margin-bottom: 16px;
  padding: 40px 20px;
  text-align: center;
}

.dropzone-box {
  display: flex;
  width: 100%;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  cursor: pointer;
}

.dropzone-box.is-dragging,
.dropzone-box:hover {
  background: rgba(180, 132, 41, 0.08);
  outline: 2px solid var(--brass-gold);
  outline-offset: 8px;
}

.image-preview-card {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  width: 100%;
  gap: 16px;
  align-items: center;
  background: var(--bg-paper);
  border: 1px solid var(--border-medium);
  padding: 14px;
  text-align: left;
}

.image-preview-card img {
  width: 112px;
  height: 96px;
  object-fit: contain;
  background: #F5F0E7;
}

.image-preview-card strong,
.image-preview-card span {
  display: block;
}

.image-preview-card strong { font-size: 13px; overflow-wrap: anywhere; }
.image-preview-card span { color: var(--ink-muted); font: 11px var(--font-typewriter); margin-top: 4px; }

.btn-clear-image {
  border: 1px solid var(--border-medium);
  color: var(--ink-secondary);
  background: transparent;
  padding: 8px 10px;
  font: 700 11px var(--font-sans);
  cursor: pointer;
}

.btn-clear-image:hover { border-color: var(--stamp-red); color: var(--stamp-red); }

.document-preview-mark {
  width: 72px;
  height: 90px;
  display: grid;
  place-items: center;
  background: var(--stamp-red);
  color: #fff;
  font: 700 15px var(--font-typewriter);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
}

.source-url-wrap {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
}

.source-url-wrap em { color: var(--ink-muted); font-weight: 400; }
.source-url-wrap input {
  width: 100%;
  border: 1px solid var(--border-medium);
  background: #fff;
  color: var(--ink-primary);
  padding: 10px 12px;
  border-radius: 4px;
  font: 12px var(--font-typewriter);
}
.source-url-wrap small { color: var(--ink-muted); font-weight: 400; line-height: 1.45; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drop-magnifier-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.file-support-pill {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-typewriter);
  font-size: 10px;
  color: var(--ink-muted);
  background: var(--bg-desk);
  padding: 4px 10px;
  border-radius: 4px;
}

.dock-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

.char-word-indicator {
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-muted);
}

.btn-execute-investigation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--stamp-red);
  color: #FFF;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.3);
  transition: all 0.25s var(--smooth-ease);
}

.btn-execute-investigation:hover {
  background: #7F1D1D;
  transform: translateY(-2px);
}

.btn-execute-investigation:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

/* Sağ Rapor Alanı (The Verdict Dock) */
.forensic-verdict-dock {
  background: #FAF8F2;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

/* Boş Bekleme Hali */
.verdict-idle-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.verdict-idle-state h3 {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  margin: 16px 0 8px;
}

.verdict-idle-state p {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 320px;
}

.idle-hint-tape {
  margin-top: 24px;
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 700;
  color: #854D0E;
  background: #FEF08A;
  border: 1px dashed #CA8A04;
  padding: 4px 12px;
  transform: rotate(-2deg);
}

/* Tarama Animasyon Hali */
.verdict-scanning-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.scan-laser-chamber {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFF;
  border: 3px solid var(--brass-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(180, 132, 41, 0.2);
}

.uv-scan-beam {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #991B1B;
  box-shadow: 0 0 12px #991B1B;
  animation: beamScan 1.2s ease-in-out infinite alternate;
}

@keyframes beamScan {
  0% { top: 10%; }
  100% { top: 85%; }
}

.forensic-scanning-hat {
  font-size: 38px;
}

.scan-phase-title {
  font-family: var(--font-typewriter);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.forensic-progress-track {
  width: 240px;
  height: 6px;
  background: #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.forensic-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--stamp-red);
  transition: width 0.3s ease;
}

.scan-terminal-log {
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-muted);
}

/* Rapor Açık Hali */
.verdict-active-report {
  animation: fadeInDoc 0.5s ease both;
}

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

.report-paper-inner {
  background: var(--bg-paper);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-paper);
}

.report-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.report-folio {
  font-family: var(--font-typewriter);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.verdict-rubber-stamp {
  border: 2.5px solid var(--stamp-red);
  color: var(--stamp-red);
  padding: 6px 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-6deg);
  animation: stampSlam 0.4s var(--spring-bounce) both;
}

@keyframes stampSlam {
  0% { transform: rotate(-6deg) scale(2); opacity: 0; }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; }
}

.stamp-line-top { font-size: 7px; font-weight: 700; letter-spacing: 1.5px; }
.stamp-line-main { font-family: 'Cinzel', serif; font-size: 14px; font-weight: 900; letter-spacing: 1.5px; }
.stamp-line-sub { font-size: 9px; font-weight: 700; }

/* Çift Oran Cetveli */
.forensic-balance-panel {
  background: #F5EFEB;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}

.balance-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.balance-side {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-typewriter);
  font-size: 11px;
  font-weight: 700;
}

.balance-side.human { color: var(--stamp-green); }
.balance-side.ai { color: var(--stamp-red); }

.balance-side .value { font-size: 16px; }

.balance-versus {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-muted);
}

.forensic-dual-gauge {
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
}

.dual-gauge-human {
  background: var(--stamp-green);
  color: #FFF;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s var(--smooth-ease);
}

.dual-gauge-ai {
  background: var(--stamp-red);
  color: #FFF;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s var(--smooth-ease);
}

/* Nitelikler Tablosu */
.suspect-attributes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.attr-box {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.attr-title {
  font-family: var(--font-typewriter);
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 1px;
}

.attr-data {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 2px;
}

.attr-data.highlight-gold {
  color: var(--stamp-red);
}

/* İşaretlenen Deliller */
.flagged-clues-section {
  margin-bottom: 20px;
}

.clues-header {
  font-family: var(--font-typewriter);
  font-size: 10px;
  color: var(--ink-primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.clues-header small {
  color: var(--ink-muted);
}

.clues-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.clue-chip-item {
  font-family: var(--font-typewriter);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.4;
}

.clue-chip-item.ai-tag {
  background: var(--stamp-red-glow);
  border-left: 3px solid var(--stamp-red);
  color: var(--stamp-red);
}

.clue-chip-item.human-tag {
  background: var(--stamp-green-glow);
  border-left: 3px solid var(--stamp-green);
  color: var(--stamp-green);
}

/* Butonlar */
.report-action-footer {
  display: flex;
  gap: 10px;
}

.btn-export-dossier {
  flex: 1;
  background: var(--ink-primary);
  color: #FFF;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-export-dossier:hover {
  background: #333;
}

.btn-reset-case {
  background: transparent;
  border: 1px solid var(--border-medium);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
}

.btn-reset-case:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

/* ── 03. ŞÜPHELİ PANOSU (CORK PINBOARD & RED STRINGS) ── */
.pinboard-section {
  padding: 100px 0;
  background: var(--bg-parchment);
}

.center-align {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-title-large {
  font-family: var(--font-editorial);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  margin: 12px 0;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-secondary);
}

.cork-pinboard-frame {
  position: relative;
  background: #D5B990;
  border: 16px solid #8C6239;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), inset 0 0 40px rgba(0,0,0,0.25);
  min-height: 520px;
  overflow: hidden;
}

/* Mantar Doku */
.cork-texture-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#B8976C 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
}

/* Kırmızı İpler */
.red-strings-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.pinboard-cards-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
}

.pin-card {
  background: var(--bg-paper);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-pin);
  position: relative;
  transition: transform 0.3s ease;
}

.pin-card:hover {
  transform: scale(1.03) rotate(0deg) !important;
  z-index: 40;
}

.real-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.3));
}

.pin-card-1 {
  transform: rotate(-3deg);
}

.pin-card-2 {
  transform: rotate(2deg);
}

.pin-card-3 {
  transform: rotate(4deg);
}

.pin-card-4 {
  transform: rotate(-2deg);
}

.suspect-tag {
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 700;
  color: var(--stamp-red);
  letter-spacing: 1.5px;
}

.card-mugshot h4 {
  font-family: var(--font-editorial);
  font-size: 1.2rem;
  margin: 4px 0 10px;
}

.suspect-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.trait-pill {
  font-family: var(--font-typewriter);
  font-size: 9px;
  background: #F5EBE6;
  border: 1px solid #E6D2C4;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--stamp-red);
}

.suspect-notes {
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.5;
  font-style: italic;
  border-top: 1px dashed var(--border-medium);
  padding-top: 8px;
}

/* Merkez Ana Delil */
.pin-card-center {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evidence-polaroid-center {
  background: #FFF;
  border: 2px solid var(--brass-gold);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
}

.center-pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
}

.crime-tape-mini {
  background: #EAB308;
  color: #000;
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.lens-inspection-bubble {
  padding: 16px 0;
}

.autopsy-scan-window {
  position: relative;
  width: 126px;
  height: 86px;
  margin: 0 auto 13px;
  overflow: hidden;
  border: 1px solid rgba(180, 132, 41, .54);
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(231, 225, 210, .42)),
    #e7ebeb;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.48), 0 5px 12px rgba(78, 54, 25, .11);
}

.autopsy-scan-grid {
  position: absolute;
  inset: 8px;
  opacity: .72;
  background-image: radial-gradient(circle, #8c9ca1 1.3px, transparent 1.5px);
  background-size: 11px 11px;
}

.autopsy-scan-target {
  position: absolute;
  top: 21px;
  left: 43px;
  width: 40px;
  height: 40px;
  border: 1px dashed rgba(153, 27, 27, .72);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 253, 249, .38);
}

.autopsy-scan-target::before,
.autopsy-scan-target::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 1px;
  content: '';
  background: rgba(153, 27, 27, .58);
  transform: translate(-50%, -50%);
}

.autopsy-scan-target::after { transform: translate(-50%, -50%) rotate(90deg); }

.autopsy-scan-beam {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 16px;
  background: linear-gradient(180deg, transparent, rgba(153, 27, 27, .28) 48%, rgba(153, 27, 27, .68) 50%, rgba(153, 27, 27, .20) 54%, transparent);
  box-shadow: 0 5px 14px rgba(153, 27, 27, .21);
  animation: autopsyScanSweep 2.3s ease-in-out infinite;
}

.autopsy-scan-readout {
  position: absolute;
  z-index: 3;
  right: 5px;
  bottom: 4px;
  padding: 2px 3px;
  background: rgba(255, 253, 249, .86);
  color: var(--stamp-red);
  font: 700 6px/1 var(--font-typewriter);
  letter-spacing: .06em;
}

@keyframes autopsyScanSweep {
  0%, 100% { top: -18px; opacity: .28; }
  48% { opacity: 1; }
  50% { top: 88px; opacity: .95; }
  52% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .autopsy-scan-beam { top: 36px; animation: none; }
}

.lens-bubble-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink-primary);
  display: block;
}

.lens-bubble-sub {
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-muted);
}

.fingerprint-center-seal {
  margin-top: 14px;
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 700;
  color: var(--stamp-green);
  background: var(--stamp-green-glow);
  border: 1px solid var(--stamp-green);
  padding: 6px;
  border-radius: 4px;
}

/* ── 04. CHROME UZANTISI: DEDEKTİF CÜZDAN ROZETİ ── */
.extension-section {
  padding: 100px 0;
  background: var(--bg-desk);
}

.extension-leather-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* Deri Cüzdan */
.detective-badge-wallet {
  display: flex;
  justify-content: center;
}

.leather-wallet-cover {
  width: 320px;
  background: #231C18;
  border: 4px solid #140F0C;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  position: relative;
  /* Gerçek dikiş efekti */
  outline: 2px dashed rgba(180, 132, 41, 0.4);
  outline-offset: -10px;
}

.wallet-half {
  background: #171310;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.brass-sheriff-shield {
  width: 130px;
  height: 145px;
  background: linear-gradient(135deg, #FBF4E2, #D4AF37, #996515);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.shield-inner {
  width: 120px;
  height: 135px;
  background: #231C18;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brass-gold);
  text-align: center;
  padding: 8px;
}

.shield-star { font-size: 8px; letter-spacing: 2px; }
.shield-agency { font-family: 'Cinzel', serif; font-size: 8px; font-weight: 700; margin-top: 4px; }
.shield-number { font-family: var(--font-typewriter); font-size: 7px; color: #FFF; margin-top: 2px; }

.wallet-hinge-stitch {
  text-align: center;
  color: rgba(180, 132, 41, 0.4);
  font-family: var(--font-typewriter);
  font-size: 10px;
  margin: 6px 0;
}

.agent-id-card {
  background: #FFF;
  border-radius: 6px;
  padding: 12px;
  color: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.id-card-header {
  border-bottom: 1.5px solid #000;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.id-title { font-family: 'Cinzel', serif; font-size: 10px; font-weight: 900; display: block; }
.id-dept { font-family: var(--font-typewriter); font-size: 7px; color: var(--stamp-red); font-weight: 700; }

.id-content-row {
  display: flex;
  gap: 10px;
}

.id-photo {
  width: 50px;
  height: 60px;
  background: #E5E7EB;
  border: 1px solid #9CA3AF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.id-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 8px;
  font-family: var(--font-typewriter);
}

.id-details strong { color: var(--stamp-red); }
.id-details .text-green { color: var(--stamp-green); }

.id-barcode {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 8px;
  border-top: 1px solid #E5E7EB;
  padding-top: 4px;
}

/* Sağ: Uzantı Açıklamaları */
.intel-tag {
  font-family: var(--font-typewriter);
  font-size: 11px;
  font-weight: 700;
  color: var(--stamp-red);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.intel-title {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.intel-lead {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.intel-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.intel-feat-item {
  display: flex;
  gap: 16px;
}

.feat-icon-bullet {
  font-size: 22px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-paper);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-paper);
}

.intel-feat-item h4 {
  font-family: var(--font-editorial);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.intel-feat-item p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.extension-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-chrome-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-primary);
  color: #FFF;
  padding: 15px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: all 0.25s ease;
}

.btn-chrome-install:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-chrome-install[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
}

.btn-chrome-install[aria-disabled="true"]:hover {
  background: var(--ink-primary);
  transform: none;
}

.compat-info {
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-muted);
}

/* ── 05. KAPANAN DOSYALAR (SOLVED CASE FILES) ── */
.solved-cases-section {
  padding: 100px 0;
  background: var(--bg-parchment);
}

.closed-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.closed-case-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s ease;
}

.closed-case-card:hover {
  transform: translateY(-5px);
}

.case-clip {
  position: absolute;
  top: -12px;
  right: 24px;
  font-size: 20px;
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stamp-solved {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 900;
  color: var(--stamp-green);
  border: 1.5px solid var(--stamp-green);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  transform: rotate(-3deg);
}

.case-dossier-id {
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: var(--ink-muted);
}

.case-name {
  font-family: var(--font-editorial);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--ink-primary);
}

.case-story {
  font-family: var(--font-typewriter);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.case-officer {
  margin-top: auto;
  border-top: 1px dashed var(--border-medium);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
}

.officer-title {
  font-family: var(--font-typewriter);
  font-size: 9px;
  color: var(--ink-muted);
}

.case-officer strong {
  font-size: 13px;
  color: var(--ink-primary);
}

.case-officer small {
  font-size: 11px;
  color: var(--ink-secondary);
}

/* ── 06. ÇAĞRI (FOOTER CTA DOSSIER FOLDER) ── */
.final-dossier-cta {
  padding: 80px 0;
  background: var(--bg-desk);
}

.cta-dossier-folder {
  background: var(--bg-manila);
  border: 3px solid var(--bg-manila-dark);
  border-radius: 16px;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-folder);
  max-width: 860px;
  margin: 0 auto;
}

.stamp-big-confidential {
  position: absolute;
  top: 20px;
  right: 40px;
  border: 3px dashed var(--stamp-red);
  color: var(--stamp-red);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 6px 14px;
  transform: rotate(8deg);
  opacity: 0.75;
}

.cta-dossier-folder h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-dossier-folder p {
  font-size: 1.1rem;
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-buttons-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-large {
  padding: 16px 32px;
  font-size: 14px;
}

/* ── ADLİ ARŞİV FOOTER ── */
.detective-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(180, 132, 41, 0.12), transparent 28rem),
    #1C1917;
  color: #E7E5E4;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(180, 132, 41, 0.38);
}

.footer-launchbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 54px;
  padding-bottom: 18px;
}

.footer-launchbar p {
  margin: 0;
  color: #C9C2B9;
  font-size: 14px;
}

.footer-launchbar p span {
  color: var(--brass-gold);
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-right: 12px;
}

.footer-launchbar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--brass-gold);
  padding: 5px 0 7px;
}

.footer-launchbar a span {
  color: var(--brass-gold);
  font-size: 18px;
  line-height: 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 66px);
  margin-bottom: 54px;
}

.footer-badge .logo-txt {
  align-items: baseline;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: .95;
  color: #FFF;
}

.footer-badge .logo-txt .brand-wordmark__strong { display: inline-block; font-weight: 700; }
.footer-badge .logo-txt .brand-wordmark__product {
  align-items: baseline;
  display: inline-flex;
  font-weight: 500;
}
.footer-badge .logo-txt .brand-wordmark__product > span { display: inline-block; font-weight: inherit; }
.footer-badge .logo-txt .brand-wordmark__lens {
  display: inline-block;
  flex: 0 0 auto;
  height: .77em;
  margin-left: -.01em;
  margin-right: -.01em;
  overflow: visible;
  transform: translateY(.19em);
  width: .77em;
}
.footer-badge .logo-txt .brand-wordmark__lens circle,
.footer-badge .logo-txt .brand-wordmark__lens path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.footer-badge .sub {
  display: block;
  font-family: var(--font-typewriter);
  font-size: 9px;
  color: #F87171;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.footer-desc {
  font-size: 14px;
  color: #B7B0A8;
  line-height: 1.7;
  margin: 17px 0 22px;
  max-width: 410px;
}

.footer-principle {
  display: grid;
  gap: 7px;
  border-left: 2px solid var(--brass-gold);
  padding: 3px 0 3px 13px;
}

.footer-principle span,
.footer-col-nav h5,
.footer-col-trust h5 {
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.footer-principle span {
  color: var(--brass-gold);
}

.footer-principle strong {
  color: #EEE9E2;
  font-size: 13px;
  line-height: 1.35;
}

.footer-col-nav h5,
.footer-col-trust h5 {
  color: #FFF;
  margin: 5px 0 17px;
}

.footer-col-nav a {
  display: block;
  font-size: 13px;
  color: #B7B0A8;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-col-nav a:hover,
.footer-col-nav a:focus-visible,
.footer-launchbar a:hover,
.footer-launchbar a:focus-visible {
  color: #FFF;
  border-color: var(--brass-gold);
  outline: none;
}

.footer-col-trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col-trust li {
  position: relative;
  color: #B7B0A8;
  font-size: 12px;
  line-height: 1.55;
  padding: 0 0 10px 16px;
}

.footer-col-trust li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border: 1px solid var(--brass-gold);
  border-radius: 50%;
}

.footer-col-trust p {
  color: #817970;
  font-size: 11px;
  line-height: 1.55;
  margin: 9px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-trust p a {
  color: #B7B0A8;
  text-decoration-color: rgba(180, 132, 41, 0.6);
  text-underline-offset: 3px;
}

.footer-col-trust p a:hover,
.footer-col-trust p a:focus-visible {
  color: #FFF;
  outline: none;
}

.footer-copyright-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-typewriter);
  font-size: 11px;
  color: #78716C;
}

/* ── RESPONSIVE ── */
@media (max-width: 1260px) {
  .nav-container {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 18px;
  }

  .nav-case-links { justify-self: stretch; gap: 18px; }
  .nav-case-links a { padding: 0 0 2px; font-size: 11px; }
  .nav-case-links a:last-child { display: none; }
}

@media (max-width: 1040px) {
  .nav-container { grid-template-columns: 1fr auto; }
  .nav-case-links { display: none; }
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .desk-inner-grid {
    grid-template-columns: 1fr;
  }

  .evidence-input-dock {
    border-right: none;
    border-bottom: 2px dashed #D6CEBE;
  }

  .cork-pinboard-frame {
    padding: 20px;
  }

  .pinboard-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pin-card-center {
    grid-column: 1 / span 2;
    grid-row: auto;
  }

  .red-strings-svg {
    display: none;
  }

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

  .closed-cases-grid {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .detective-footer {
    padding-top: 18px;
  }

  .footer-launchbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 34px;
    padding-bottom: 16px;
  }

  .footer-launchbar p {
    line-height: 1.5;
  }

  .footer-launchbar a {
    font-size: 14px;
  }

  .footer-copyright-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .pinboard-cards-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons-row {
    flex-direction: column;
  }

  .detective-nav { position: relative; }
  .nav-cta-wrap { gap: 8px; }
  .nav-loupe-toggle { min-width: 32px; padding: 0 2px 1px; }
  .nav-loupe-toggle__label { display: none; }
  .nav-loupe-toggle::after { margin-left: 2px; }
  .fedora-badge-icon { width: 46px; height: 46px; }
  .brand-title { font-size: 20px; }
  .brand-cluster { gap: 8px; }
  .brand-dept { display: none; }
  .btn-stamp-action { padding: 11px 12px; }
  .case-file-tag { display: none; }
  .nav-container, .container { padding-left: 16px; padding-right: 16px; }
  .hero-dossier, .forensic-lab-section, .pinboard-section, .extension-section { padding: 64px 0; }
  .hero-actions-group, .dock-footer, .report-action-footer { align-items: stretch; flex-direction: column; }
  .btn-execute-investigation { justify-content: center; }
  .dock-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .evidence-types-tab { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .ev-tab { flex: 0 0 auto; }
  .image-preview-card { grid-template-columns: 72px 1fr; }
  .image-preview-card img, .document-preview-mark { width: 72px; height: 72px; }
  .image-preview-card .btn-clear-image { grid-column: 1 / -1; }
  .source-url-wrap { margin-top: 4px; }
  .forensic-verdict-dock, .evidence-input-dock { padding: 18px; }
  .report-paper-inner { padding: 16px; }
  .suspect-attributes-grid { grid-template-columns: 1fr; }
  .clues-header { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .fedora-badge-icon { width: 40px; height: 40px; padding: 0; }
  .brand-cluster { gap: 4px; }
  .brand-badge { gap: 7px; }
  .brand-title,
  .brand-title--v12 { font-size: 18px; }
}

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

/* ── DELİL MASASI: AÇIK VAKA DOSYASI ──
   Bir ekranı iki ayrı uygulama paneli gibi bölmek yerine, giriş ile incelemeyi
   aynı fiziksel dosyanın karşılıklı sayfalarına yerleştirir. */
.case-file-workspace {
  position: relative;
  overflow: visible;
  padding: 0 18px 72px;
  border: 1px solid #bda981;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(111, 77, 31, 0.06), transparent 8%, transparent 92%, rgba(111, 77, 31, 0.06)),
    linear-gradient(#dccb9f, #c9b27d);
  box-shadow: 0 22px 45px rgba(63, 45, 18, 0.16), inset 0 0 0 5px rgba(255, 252, 240, 0.23);
}

.case-file-workspace .desk-ruler-top {
  margin: 0 -18px;
  padding: 5px 20px;
  color: #8c7044;
  background: rgba(255, 250, 237, 0.46);
  border-bottom-color: rgba(108, 80, 35, 0.28);
}

.case-file-folio {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px 10px;
  color: #8f2f25;
  font: 700 10px/1.3 var(--font-typewriter);
  letter-spacing: 0.08em;
}

.case-file-pages {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 0.94fr);
  min-height: 540px;
  margin: 0;
}

.case-file-page {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(116, 88, 43, 0.34);
  background-color: #fffdf7;
  background-image:
    linear-gradient(90deg, rgba(180, 42, 33, 0.19) 1px, transparent 1px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(118, 104, 77, 0.09) 32px);
  background-position: 48px 0, 0 28px;
  box-shadow: inset 0 0 22px rgba(123, 93, 42, 0.06), 0 4px 12px rgba(66, 47, 17, 0.12);
}

.case-file-input-page {
  padding: 30px 30px 54px;
  border-radius: 9px 1px 1px 9px;
  border-right: 0;
}

.case-file-report-page {
  padding: 29px 30px 54px;
  border-radius: 1px 9px 9px 1px;
  border-left: 0;
}

.case-file-spine {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #c4ab78, #efe1bd 43%, #b89a60 50%, #efe1bd 57%, #c4ab78);
  box-shadow: inset 1px 0 rgba(68, 47, 14, 0.25), inset -1px 0 rgba(255,255,255,0.55);
}

.case-file-spine::before {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 30px;
  left: 50%;
  border-left: 1px dashed rgba(116, 52, 37, 0.55);
}

.case-file-spine span {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #785f35;
  border-radius: 50%;
  background: #e3cf9d;
  transform: translateX(-50%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.62), inset 0 1px 2px rgba(44, 30, 11, 0.25);
}

.case-file-spine span:nth-child(1) { top: 104px; }
.case-file-spine span:nth-child(2) { top: 50%; }
.case-file-spine span:nth-child(3) { bottom: 96px; }

.case-file-workspace .evidence-input-dock,
.case-file-workspace .forensic-verdict-dock {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.case-file-workspace .evidence-input-dock { border-right: 0; }
.case-file-workspace .forensic-verdict-dock { background-color: transparent; }

.case-file-workspace .dock-header {
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 16px;
}

.case-file-workspace .evidence-types-tab {
  gap: 6px;
  width: 100%;
}

.case-file-workspace .ev-tab {
  flex: 1 1 0;
  min-height: 48px;
  justify-content: center;
  padding: 8px 7px;
  border-color: rgba(105, 78, 38, 0.28);
  border-radius: 3px;
  background: rgba(255, 251, 239, 0.78);
  font-size: 11px;
  text-align: center;
}

.case-file-workspace .ev-tab.active {
  background: #302725;
  color: #fffaf0;
  border-color: #302725;
  box-shadow: inset 0 -3px 0 #a6241f;
}

.case-file-workspace .dock-meta-badge {
  color: #a23027;
  font-size: 9px;
  letter-spacing: 0.045em;
}

.case-file-workspace .evidence-textarea-wrap,
.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap {
  min-height: 230px;
  margin-bottom: 13px;
  border: 1px solid rgba(114, 85, 45, 0.37);
  border-radius: 3px;
  background: rgba(255, 253, 247, 0.87);
}

.case-file-workspace .evidence-textarea {
  min-height: 230px;
  border: 0;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 47px, rgba(164, 39, 30, 0.24) 48px, transparent 49px),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(121, 106, 79, 0.11) 31px),
    #fffdf8;
  padding: 20px 18px 20px 60px;
  box-shadow: none;
}

.case-file-workspace .source-url-wrap {
  margin: 0;
  padding-top: 3px;
}

.case-file-workspace .source-url-wrap input {
  border-radius: 2px;
  background: rgba(255,255,255,0.76);
}

.case-file-workspace .source-url-wrap small { font-size: 10px; }

.case-file-workspace .dock-footer {
  min-height: 24px;
  padding-top: 13px;
}

.case-file-workspace .char-word-indicator {
  color: #806f57;
}

.case-file-workspace .verdict-idle-state {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  text-align: left;
}

.docket-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(103, 75, 38, 0.25);
  color: #963027;
  font: 700 10px var(--font-typewriter);
  letter-spacing: 0.1em;
}

.case-file-workspace .verdict-idle-state h3 {
  margin: 18px 0 4px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.docket-intro {
  margin: 0 0 17px;
  color: var(--ink-muted);
  font-size: 12px;
}

.docket-evidence-chain {
  display: grid;
  gap: 11px;
  list-style: none;
  counter-reset: none;
}

.docket-evidence-chain li {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 13px 12px;
  border: 1px solid rgba(113, 83, 42, 0.27);
  background: rgba(255, 252, 244, 0.7);
  box-shadow: 5px 5px 0 rgba(173, 151, 106, 0.19);
}

.chain-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #9c3329;
  border-radius: 50%;
  color: #922c25;
  font: 700 11px var(--font-typewriter);
}

.docket-evidence-chain strong {
  display: block;
  font: 700 13px var(--font-editorial);
}

.docket-evidence-chain p {
  margin: 3px 0 0;
  color: #6d6254;
  font-size: 10px;
  line-height: 1.45;
}

.docket-evidence-chain em {
  padding-top: 4px;
  color: #897966;
  font: 700 8px var(--font-typewriter);
  font-style: normal;
  white-space: nowrap;
}

.docket-note {
  margin-top: auto;
  padding: 13px 0 0;
  border-top: 1px dashed rgba(121, 86, 38, 0.36);
  color: #685f53;
  font-size: 11px;
  line-height: 1.45;
}

.docket-note span {
  margin-right: 7px;
  color: #98342b;
  font: 700 9px var(--font-typewriter);
  letter-spacing: 0.08em;
}

.case-file-action-ribbon {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 20px;
  left: 9%;
  display: flex;
  justify-content: center;
}

.case-file-workspace .btn-execute-investigation {
  width: min(100%, 590px);
  min-height: 54px;
  justify-content: center;
  border: 1px solid rgba(62, 19, 16, 0.7);
  border-radius: 4px;
  background:
    linear-gradient(rgba(255,255,255,0.06), rgba(0,0,0,0.08)),
    #7e201d;
  box-shadow: 0 7px 13px rgba(78, 28, 21, 0.25), inset 0 0 0 1px rgba(255,255,255,0.14);
}

.case-file-workspace .btn-execute-investigation::before,
.case-file-workspace .btn-execute-investigation::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(226, 202, 143, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(77, 30, 24, 0.78);
}

.case-file-workspace .forensic-verdict-dock > .verdict-active-report,
.case-file-workspace .forensic-verdict-dock > .verdict-scanning-state {
  flex: 1;
}

.case-file-workspace .report-paper-inner {
  min-height: 100%;
  border-radius: 3px;
  background: rgba(255, 252, 244, 0.92);
}

@media (max-width: 1024px) {
  .case-file-workspace { padding: 0 12px 24px; }
  .case-file-workspace .desk-ruler-top { margin: 0 -12px; }
  .case-file-pages { grid-template-columns: 1fr; }
  .case-file-spine { display: none; }
  .case-file-input-page, .case-file-report-page {
    border: 1px solid rgba(116, 88, 43, 0.34);
    border-radius: 5px;
  }
  .case-file-input-page { border-bottom: 0; }
  .case-file-action-ribbon { position: static; margin: 18px 10% 0; }
}

@media (max-width: 700px) {
  .case-file-folio { padding: 14px 5px 8px; font-size: 8px; }
  .case-file-input-page, .case-file-report-page { padding: 20px 16px; }
  .case-file-workspace .evidence-types-tab { overflow-x: auto; }
  .case-file-workspace .ev-tab { flex: 0 0 108px; }
  .docket-evidence-chain li { grid-template-columns: 34px minmax(0, 1fr); }
  .docket-evidence-chain em { grid-column: 2; padding: 0; }
  .case-file-action-ribbon { margin: 16px 0 0; }
}

/* Seçilen şablon: açık dosyanın iki karşılıklı sayfası. Bu kurallar önceki
   deneme düzenini değil, referanstaki dosya hiyerarşisini birebir uygular. */
.case-file-workspace {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 14px 14px 78px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 249, 229, .32), transparent 5%, transparent 95%, rgba(91, 61, 26, .16)),
    linear-gradient(160deg, #b69a63, #d6bd86 48%, #b29057);
  box-shadow: 0 18px 34px rgba(64, 44, 16, .22), inset 0 0 0 4px rgba(255, 242, 208, .32);
}

.case-file-workspace .desk-ruler-top { display: none; }
.case-file-workspace .case-file-folio { display: none; }

.case-file-pages {
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  min-height: 566px;
}

.case-file-page,
.case-file-workspace .case-file-report-page {
  background-color: #fffdf7;
  background-image:
    linear-gradient(90deg, transparent 46px, rgba(167, 44, 34, .2) 47px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(120, 105, 75, .065) 31px);
  background-position: 0 0, 0 31px;
}

.case-file-input-page,
.case-file-report-page {
  padding: 33px 37px 60px;
}

.case-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 17px;
}

.case-page-heading > div:first-child > span,
.case-page-meta,
.evidence-format-label,
.chain-evidence-type,
.chain-record {
  color: #8e3027;
  font: 700 9px/1.35 var(--font-typewriter);
  letter-spacing: .055em;
}

.case-page-heading h3 {
  margin: 5px 0 0;
  font: 800 1.52rem/1 var(--font-editorial);
}

.case-page-meta {
  display: grid;
  gap: 8px;
  color: #7e6551;
  font-size: 8px;
  text-align: right;
}

.evidence-format-label { margin-bottom: 7px; color: #3e352d; }

.case-file-workspace .dock-header {
  margin-bottom: 16px;
  gap: 8px;
}

.case-file-workspace .ev-tab {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 10px;
}

.case-file-workspace .evidence-textarea-wrap,
.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap {
  min-height: 214px;
}

.case-file-workspace .evidence-textarea { min-height: 214px; }
.case-file-workspace .source-url-wrap { margin-top: 3px; }

.case-file-workspace .case-file-report-page { padding-left: 42px; }

.case-file-workspace .docket-heading {
  margin-bottom: 3px;
  padding-bottom: 12px;
}

.case-file-workspace .verdict-idle-state h3 {
  margin: 14px 0 1px;
  font-size: 1.53rem;
}

.docket-intro { margin-bottom: 17px; font-size: 11px; }

.docket-evidence-chain {
  position: relative;
  gap: 13px;
  margin: 0 0 0 42px;
}

.docket-evidence-chain::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 24px;
  left: -25px;
  border-left: 1px dashed rgba(142, 48, 39, .68);
}

.docket-evidence-chain li {
  position: relative;
  display: block;
  min-height: 104px;
  padding: 12px 17px 11px;
  border-color: rgba(114, 85, 45, .31);
  background: rgba(255, 253, 246, .88);
  box-shadow: 5px 5px 0 rgba(174, 151, 104, .18);
}

.chain-number {
  position: absolute;
  top: 19px;
  left: -43px;
  z-index: 1;
  width: 39px;
  height: 39px;
  border-color: #a43b32;
  background: #fffaf0;
  color: #95332b;
}

.chain-evidence-type { display: block; margin-bottom: 1px; color: #685443; font-size: 8px; }
.docket-evidence-chain strong { font-size: 14px; }
.docket-evidence-chain p { max-width: 78%; margin-top: 3px; font-size: 9px; }

.docket-evidence-chain em {
  position: absolute;
  top: 17px;
  right: 15px;
  color: #796d5e;
  font-size: 8px;
}

.chain-record {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #887969;
  font-size: 7px;
}

.chain-record b { font: inherit; }

.docket-note {
  margin-top: auto;
  padding-top: 11px;
  font-size: 10px;
}

.case-file-action-ribbon {
  right: 5%;
  bottom: 24px;
  left: 5%;
}

.case-file-workspace .btn-execute-investigation {
  width: 100%;
  max-width: none;
  min-height: 55px;
}

@media (max-width: 1024px) {
  .case-file-workspace { padding: 12px 12px 28px; }
  .case-file-input-page, .case-file-report-page { padding: 26px 25px; }
  .case-file-workspace .case-file-report-page { padding-left: 25px; }
}

@media (max-width: 700px) {
  .case-page-heading { gap: 10px; }
  .case-page-meta { display: none; }
  .case-file-workspace .case-file-report-page { padding-left: 16px; }
  .docket-evidence-chain { margin-left: 38px; }
  .docket-evidence-chain li { min-height: 116px; }
  .chain-record { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* Referans dosya: dışı ince manila klasör, içi iki sakin kâğıt yaprak.
   Bu son katman, çalışma yüzeyini "altın panel" yerine fiziksel bir dosya
   gibi tutar. */
.case-file-workspace {
  width: min(100%, 1188px);
  padding: 15px 15px 64px;
  border: 1px solid #b8965b;
  border-radius: 18px;
  background: linear-gradient(145deg, #c8aa72 0%, #a87c40 100%);
  box-shadow: 0 18px 32px rgba(65, 44, 18, .18), inset 0 0 0 5px rgba(243, 225, 178, .42);
}

.case-file-workspace::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 13px;
  border: 1px solid rgba(247, 232, 192, .46);
  border-radius: 12px;
  pointer-events: none;
}

.case-file-pages {
  position: relative;
  z-index: 1;
  min-height: 628px;
  grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1fr);
}

.case-file-page,
.case-file-workspace .case-file-report-page {
  background: #fffdf9;
  background-image: none;
  border: 1px solid rgba(153, 126, 78, .28);
  box-shadow: inset 0 0 20px rgba(109, 79, 36, .04), 0 3px 7px rgba(66, 47, 17, .09);
}

.case-file-input-page,
.case-file-report-page {
  padding: 31px 37px 60px;
}

.case-file-input-page {
  border-radius: 9px 2px 2px 9px;
}

.case-file-report-page {
  border-radius: 2px 9px 9px 2px;
}

.case-file-spine {
  background: linear-gradient(90deg, #b08b4c, #e8d8aa 42%, #bd9858 50%, #eadbb2 58%, #a98245);
}

.case-file-spine::before {
  top: 25px;
  bottom: 26px;
  border-left-color: rgba(116, 83, 38, .65);
}

.case-file-spine span { width: 11px; height: 11px; background: #e5cb8f; }
.case-file-spine span:nth-child(1) { top: 105px; }
.case-file-spine span:nth-child(3) { bottom: 95px; }

.case-file-workspace .evidence-input-dock,
.case-file-workspace .forensic-verdict-dock {
  background: transparent;
}

.case-page-heading { padding-bottom: 16px; }
.case-page-heading h3 { font-size: 1.55rem; }

.case-file-workspace .ev-tab {
  min-height: 35px;
  border-color: rgba(142, 111, 61, .28);
  background: #fdfaf2;
}

.case-file-workspace .evidence-textarea-wrap,
.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap {
  min-height: 214px;
  border-color: rgba(145, 116, 70, .3);
  background: #fffdfa;
}

.case-file-workspace .evidence-textarea {
  min-height: 214px;
  background: #fffdfa;
  padding-left: 20px;
}

.case-file-workspace .source-url-wrap input { background: #fffefa; }

.case-file-workspace .case-file-report-page { padding-left: 42px; }
.case-file-workspace .docket-heading { border-bottom-color: rgba(143, 112, 65, .32); }
.case-file-workspace .verdict-idle-state h3 { margin-top: 16px; }

.docket-evidence-chain {
  gap: 14px;
  margin-left: 50px;
}

.docket-evidence-chain::before { left: -28px; }

.docket-evidence-chain li {
  min-height: 126px;
  padding: 14px 20px 12px;
  border-color: rgba(140, 109, 61, .28);
  background: #fffefb;
  box-shadow: 5px 5px 0 rgba(180, 159, 116, .18);
}

.chain-number {
  top: 26px;
  left: -51px;
  width: 43px;
  height: 43px;
}

.docket-evidence-chain p { max-width: 82%; font-size: 9px; }
.chain-record { margin-top: 13px; }

.case-file-action-ribbon {
  z-index: 4;
  right: 7%;
  bottom: 19px;
  left: 7%;
}

.case-file-workspace .btn-execute-investigation {
  min-height: 58px;
  border-radius: 5px;
  background: linear-gradient(180deg, #8b2e29, #6e1d1a);
  box-shadow: 0 6px 10px rgba(70, 26, 17, .3), inset 0 0 0 1px rgba(255, 238, 203, .18);
}

@media (max-width: 1024px) {
  .case-file-workspace { width: 100%; }
  .case-file-pages { min-height: 0; }
}

/* Native case file: rendered UI, not a raster mockup. This keeps every field,
   tab and result state sharp at any display density. */
.case-file-workspace {
  width: min(100%, 1240px);
  min-height: 0;
  margin: 0 auto;
  padding: 18px 18px 86px;
  overflow: visible;
  border: 1px solid #b88f51;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(79, 49, 19, .16), transparent 4%, transparent 96%, rgba(79, 49, 19, .16)),
    linear-gradient(180deg, #d9bd88, #c69e5b);
  box-shadow: 0 20px 38px rgba(60, 39, 14, .2), inset 0 0 0 5px rgba(255, 247, 221, .27);
}

.case-file-workspace::before {
  inset: 10px;
  border: 1px solid rgba(103, 70, 30, .35);
  border-radius: 13px;
  opacity: 1;
}

.case-file-workspace .desk-ruler-top { display: none; }

.case-file-pages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  min-height: 630px;
  margin: 0;
}

.case-file-workspace .case-file-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 34px 34px 28px;
  border: 1px solid rgba(104, 75, 38, .36);
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(120, 103, 77, .075) 35px),
    #fffdf7;
  box-shadow: inset 0 0 25px rgba(121, 91, 39, .07), 0 4px 12px rgba(64, 43, 14, .12);
}

.case-file-workspace .case-file-input-page {
  border-radius: 10px 2px 2px 10px;
  border-right: 0;
}

.case-file-workspace .case-file-report-page {
  padding-left: 38px;
  border-radius: 2px 10px 10px 2px;
  border-left: 0;
}

.case-file-workspace .case-file-spine {
  display: block;
  z-index: 2;
  background: linear-gradient(90deg, #b58a4f, #ead2a0 40%, #a57a41 50%, #ead2a0 60%, #b58a4f);
  box-shadow: inset 1px 0 rgba(68, 45, 14, .3), inset -1px 0 rgba(255,255,255,.6);
}

.case-file-workspace .case-file-spine::before {
  top: 30px;
  bottom: 30px;
  border-color: rgba(133, 44, 35, .48);
}

.case-file-workspace .case-file-spine span {
  width: 14px;
  height: 14px;
  border-color: #745a2d;
  background: #e7c987;
}

.case-file-workspace .case-file-spine span:nth-child(1) { top: 112px; }
.case-file-workspace .case-file-spine span:nth-child(2) { top: calc(50% - 7px); }
.case-file-workspace .case-file-spine span:nth-child(3) { bottom: 106px; }

.case-file-workspace .case-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.case-file-workspace .case-page-heading > div:first-child > span,
.case-file-workspace .case-page-meta,
.case-file-workspace .evidence-format-label,
.case-file-workspace .dock-meta-badge,
.case-file-workspace .docket-heading,
.case-file-workspace .chain-evidence-type,
.case-file-workspace .chain-record,
.case-file-workspace .docket-note span {
  color: #9b382f;
  font: 700 10px/1.45 var(--font-typewriter);
  letter-spacing: .08em;
}

.case-file-workspace .case-page-heading h3 {
  margin: 8px 0 0;
  color: #211c19;
  font: 700 clamp(1.72rem, 2.4vw, 2.25rem)/1 var(--font-editorial);
}

.case-file-workspace .case-page-meta {
  display: grid;
  gap: 7px;
  text-align: right;
  font-size: 8px;
  letter-spacing: .055em;
}

.case-file-workspace .evidence-format-label { margin: 0 0 8px; color: #463b31; letter-spacing: 0; }

.case-file-workspace .dock-header {
  display: block;
  margin: 0 0 14px;
}

.case-file-workspace .evidence-types-tab {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  overflow: visible;
}

.case-file-workspace .ev-tab {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 7px;
  border: 1px solid rgba(109, 80, 42, .3);
  border-radius: 4px;
  background: rgba(255, 252, 243, .87);
  color: #4a423c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: none;
}

.case-file-workspace .ev-tab:hover { border-color: #a12e28; color: #741d19; }
.case-file-workspace .ev-tab.active {
  border-color: #29221f;
  background: #29221f;
  color: #fff9ef;
  box-shadow: inset 0 -3px 0 #ae3028;
}
.case-file-workspace .ev-tab:focus-visible,
.case-file-workspace .dropzone-box:focus-visible,
.case-file-workspace .btn-execute-investigation:focus-visible {
  outline: 3px solid #2672cf;
  outline-offset: 3px;
}

.case-file-workspace .dock-meta-badge { display: block; margin-top: 10px; font-size: 9px; }

.case-file-workspace .evidence-textarea-wrap,
.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap {
  display: block;
  flex: 1 1 auto;
  min-height: 260px;
  margin: 0 0 15px;
  overflow: hidden;
  border: 1px solid rgba(111, 80, 42, .38);
  border-radius: 4px;
  background: rgba(255, 254, 250, .92);
}

.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap { display: flex; }

.case-file-workspace .evidence-textarea {
  width: 100%;
  height: 100%;
  min-height: 260px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(120, 103, 77, .08) 34px),
    #fffdf8;
  color: #403832;
  padding: 19px 18px 18px 62px;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.72;
}

.case-file-workspace .dropzone-box {
  display: flex;
  width: 100%;
  min-height: 260px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(135deg, rgba(163,126,67,.035) 0 12px, transparent 12px 24px);
  text-align: center;
}

.case-file-workspace .dropzone-box[hidden],
.case-file-workspace .image-preview-card[hidden] {
  display: none !important;
}

.case-file-workspace .dropzone-box.is-dragging { background: rgba(230, 208, 151, .38); outline: 2px dashed #922d26; outline-offset: -8px; }
.case-file-workspace .drop-magnifier-icon { font-size: 36px; }
.case-file-workspace .dropzone-box h4 { margin: 12px 0 7px; color: #2a2521; font: 700 20px/1.18 var(--font-editorial); }
.case-file-workspace .dropzone-box p { max-width: 410px; margin: 0; color: #6e6256; font-size: 12px; line-height: 1.55; }
.case-file-workspace .file-support-pill { margin-top: 14px; color: #8e3028; font: 700 9px var(--font-typewriter); letter-spacing: .07em; }

.case-file-workspace .image-preview-card {
  display: grid;
  width: 100%;
  min-height: 260px;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 16px 18px;
  align-items: center;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #fffdf8;
}

.case-file-workspace .image-preview-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border: 1px solid rgba(115, 82, 43, .25);
  background: #f3eee3;
}

.case-file-workspace .image-preview-card strong { display: block; color: #2c2520; font-size: 14px; overflow-wrap: anywhere; }
.case-file-workspace .image-preview-card span { display: block; margin-top: 7px; color: #786b5c; font: 11px var(--font-typewriter); }
.case-file-workspace .btn-clear-image {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 9px 12px;
  border-color: rgba(137, 39, 31, .36);
  color: #81231d;
  font-size: 11px;
}

.case-file-workspace .document-preview-card { grid-template-columns: 78px minmax(0, 1fr); }
.case-file-workspace .document-preview-mark { width: 76px; height: 94px; }

.case-file-workspace .source-url-wrap { display: block; margin: 0; padding-top: 0; }
.case-file-workspace .source-url-wrap > span { display: block; margin-bottom: 7px; color: #453b33; font-weight: 700; }
.case-file-workspace .source-url-wrap input { width: 100%; height: 38px; border-radius: 3px; background: #fffefa; }
.case-file-workspace .source-url-wrap small { display: block; margin-top: 7px; color: #85796a; font-size: 10px; line-height: 1.38; }
.case-file-workspace .dock-footer { min-height: 28px; padding-top: 14px; }
.case-file-workspace .char-word-indicator { color: #80705e; font: 10px var(--font-typewriter); }

.case-file-workspace .verdict-idle-state { display: flex; flex: 1; align-items: stretch; justify-content: flex-start; padding: 0; text-align: left; }
.case-file-workspace .docket-heading { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(107, 75, 38, .27); }
.case-file-workspace .verdict-idle-state h3 { margin: 20px 0 3px; color: #211c19; font: 700 clamp(1.7rem, 2.2vw, 2.2rem)/1 var(--font-editorial); }
.case-file-workspace .docket-intro { margin: 0 0 18px; color: #7a6d5d; font-size: 12px; }

.case-file-workspace .docket-evidence-chain {
  position: relative;
  display: grid;
  gap: 13px;
  margin: 0 0 0 48px;
  padding: 0;
  list-style: none;
}
.case-file-workspace .docket-evidence-chain::before { top: 20px; bottom: 20px; left: -27px; border-left: 1px dashed rgba(148, 48, 38, .65); }
.case-file-workspace .docket-evidence-chain li {
  position: relative;
  display: grid;
  min-height: 110px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 15px 12px 17px;
  border: 1px solid rgba(114, 84, 43, .29);
  background: rgba(255, 253, 247, .88);
  box-shadow: 5px 5px 0 rgba(174, 148, 97, .17);
}
.case-file-workspace .chain-number { position: absolute; top: 25px; left: -51px; display: grid; width: 41px; height: 41px; place-items: center; border: 1px solid #a3382e; border-radius: 50%; background: #fffaf0; color: #922e26; font: 700 11px var(--font-typewriter); }
.case-file-workspace .chain-evidence-type { display: block; font-size: 8px; }
.case-file-workspace .docket-evidence-chain strong { display: block; margin-top: 4px; color: #2d2620; font: 700 15px var(--font-editorial); }
.case-file-workspace .docket-evidence-chain p { max-width: 94%; margin: 5px 0 0; color: #756a5c; font-size: 10px; line-height: 1.45; }
.case-file-workspace .docket-evidence-chain em { padding-top: 3px; color: #827362; font: 700 8px var(--font-typewriter); font-style: normal; white-space: nowrap; }
.case-file-workspace .chain-record { display: flex; justify-content: space-between; margin-top: 12px; color: #8b7761; font-size: 8px; }
.case-file-workspace .docket-note { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(120, 83, 38, .35); color: #766a5b; font-size: 11px; }

/* Katman rehberi yalnızca üstteki Kaynak / Analiz / Kanıt düğmelerinden biri
   seçildiğinde sağ sayfada görünür; normal dosya görünümünü değiştirmez. */
.case-file-workspace .layer-guide-panel {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 2px 0 0;
  text-align: left;
}

.case-file-workspace .layer-guide-panel[hidden] { display: none !important; }

.layer-guide-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(143, 48, 39, .35);
  border-radius: 50%;
  background: #fffaf0;
  color: #8f2d26;
  font: 700 20px/1 var(--font-sans);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.layer-guide-close:hover {
  background: #8f2d26;
  color: #fffaf0;
  transform: rotate(90deg);
}

.layer-guide-close:focus-visible {
  outline: 3px solid #2672cf;
  outline-offset: 3px;
}

.layer-guide-heading {
  padding: 0 42px 14px 0;
  border-bottom: 1px solid rgba(119, 85, 42, .27);
}

.layer-guide-kicker {
  display: block;
  margin-bottom: 8px;
  color: #9b382f;
  font: 700 10px/1.35 var(--font-typewriter);
  letter-spacing: .08em;
}

.layer-guide-heading h3 {
  margin: 0;
  color: #211c19;
  font: 700 clamp(1.55rem, 2vw, 1.95rem)/1 var(--font-editorial);
}

.layer-guide-heading p {
  max-width: 95%;
  margin: 8px 0 0;
  color: #756a5c;
  font-size: 11px;
  line-height: 1.5;
}

.layer-guide-visual {
  display: grid;
  min-height: 86px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(145, 112, 64, .28);
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(120, 103, 77, .045) 23px),
    rgba(253, 248, 235, .78);
  box-shadow: inset 0 0 0 3px rgba(255, 253, 247, .56);
}

.layer-guide-visual.is-flow {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.layer-guide-visual.is-scope {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.layer-guide-visual.is-outcome {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 9px 12px;
}

.layer-guide-visual-item {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 4px;
  color: #312923;
  text-align: center;
}

.layer-guide-visual-item > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(158, 48, 40, .82);
  border-radius: 50%;
  color: #9b382f;
  background: #fffaf0;
  font: 700 9px var(--font-typewriter);
}

.layer-guide-visual-item strong {
  overflow: hidden;
  max-width: 100%;
  color: #43362c;
  font: 700 9px/1.15 var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-guide-connector {
  color: #b08545;
  font: 700 17px/1 var(--font-typewriter);
  font-style: normal;
}

.layer-guide-visual.is-scope .layer-guide-visual-item {
  padding: 5px 3px;
  border: 1px solid rgba(140, 109, 61, .22);
  background: rgba(255, 253, 247, .72);
}

.layer-guide-visual.is-scope .layer-guide-visual-item > span {
  width: 27px;
  height: 27px;
  border-radius: 3px;
  font-size: 11px;
}

.layer-guide-visual.is-outcome .layer-guide-visual-item {
  grid-template-columns: 28px minmax(0, 1fr);
  justify-items: start;
  gap: 9px;
  padding: 3px 7px;
  border-left: 2px solid #9b382f;
  background: rgba(255, 253, 247, .74);
  text-align: left;
}

.layer-guide-visual.is-outcome .layer-guide-visual-item > span {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.layer-guide-visual.is-outcome .layer-guide-visual-item strong {
  max-width: none;
  font-family: var(--font-typewriter);
  letter-spacing: .05em;
}

.layer-guide-steps {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.layer-guide-steps li {
  display: grid;
  min-height: 0;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(114, 84, 43, .29);
  background: rgba(255, 253, 247, .88);
  box-shadow: 4px 4px 0 rgba(174, 148, 97, .15);
}

.layer-guide-steps li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #a3382e;
  border-radius: 50%;
  color: #922e26;
  font: 700 9px var(--font-typewriter);
}

.layer-guide-steps strong {
  display: block;
  color: #2d2620;
  font: 700 14px var(--font-editorial);
}

.layer-guide-steps p {
  margin: 4px 0 0;
  color: #756a5c;
  font-size: 9px;
  line-height: 1.42;
}

.layer-guide-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(120, 83, 38, .35);
  color: #766a5b;
  font-size: 10px;
  line-height: 1.45;
}

.layer-guide-note span {
  margin-right: 9px;
  color: #9b382f;
  font: 700 9px var(--font-typewriter);
  letter-spacing: .08em;
}

.case-file-workspace .forensic-verdict-dock > .verdict-scanning-state,
.case-file-workspace .forensic-verdict-dock > .verdict-active-report { flex: 1; min-height: 0; }
.case-file-workspace .report-paper-inner { min-height: 100%; border-radius: 3px; background: rgba(255, 252, 244, .94); }

.case-file-action-ribbon { position: absolute; z-index: 4; right: 7%; bottom: 18px; left: 7%; display: flex; justify-content: center; }
.case-file-workspace .btn-execute-investigation {
  width: min(100%, 760px);
  min-height: 61px;
  justify-content: center;
  border: 1px solid rgba(79, 19, 15, .82);
  border-radius: 6px;
  background: linear-gradient(180deg, #8e2f29, #681b18);
  box-shadow: 0 8px 15px rgba(77, 24, 18, .28), inset 0 0 0 1px rgba(255, 231, 187, .17);
}
.case-file-workspace .btn-execute-investigation::before,
.case-file-workspace .btn-execute-investigation::after { content: ''; width: 18px; height: 18px; border: 2px solid rgba(230, 202, 143, .92); border-radius: 50%; box-shadow: 0 0 0 3px rgba(93, 27, 22, .82); }
.case-file-workspace .btn-execute-investigation:disabled { opacity: .48; cursor: not-allowed; }

@media (max-width: 1024px) {
  .case-file-workspace { padding: 14px 14px 28px; }
  .case-file-pages { grid-template-columns: 1fr; min-height: 0; }
  .case-file-workspace .case-file-spine { display: none; }
  .case-file-workspace .case-file-input-page, .case-file-workspace .case-file-report-page { border: 1px solid rgba(104,75,38,.36); border-radius: 7px; }
  .case-file-workspace .case-file-input-page { border-bottom: 0; }
  .case-file-action-ribbon { position: static; margin: 18px 0 0; }
}

@media (max-width: 680px) {
  .case-file-workspace { padding: 10px 10px 20px; border-radius: 12px; }
  .case-file-workspace .case-file-page { padding: 23px 17px; }
  .case-file-workspace .case-page-heading { display: block; }
  .case-file-workspace .case-page-meta { margin-top: 12px; text-align: left; }
  .case-file-workspace .evidence-types-tab { grid-template-columns: repeat(2, 1fr); }
  .case-file-workspace .ev-tab { min-height: 42px; font-size: 10px; }
  .case-file-workspace .evidence-textarea, .case-file-workspace .dropzone-box { min-height: 230px; }
  .case-file-workspace .image-preview-card { min-height: 230px; grid-template-columns: 1fr; }
  .case-file-workspace .image-preview-card img { height: 150px; }
  .case-file-workspace .docket-evidence-chain { margin-left: 40px; }
  .case-file-workspace .docket-evidence-chain li { min-height: 124px; }
  .case-file-workspace .chain-number { left: -43px; width: 34px; height: 34px; }
  .case-file-workspace .docket-evidence-chain em { position: absolute; right: 12px; top: 10px; }
  .case-file-workspace .chain-record { display: block; }
  .case-file-workspace .chain-record b { display: block; margin-top: 3px; }
  .case-file-action-ribbon { margin-top: 14px; }
  .case-file-workspace .btn-execute-investigation { width: 100%; min-height: 54px; }
}

/* Full-screen investigation stage: the light briefing recedes into the dark
   examination room, while the entire active dossier remains in one viewport. */
@media (min-width: 1050px) {
  .forensic-lab-section {
    display: grid;
    min-height: calc(100svh - 72px);
    align-items: center;
    padding: clamp(27px, 3.6svh, 52px) 0;
    overflow: hidden;
    background:
      radial-gradient(75% 36% at 50% 0%, rgba(255, 251, 239, .9), transparent 72%),
      linear-gradient(180deg, #f1eadb 0%, #e3d3b1 25%, #394247 47%, #11191c 100%);
    border: 0;
    scroll-margin-top: 72px;
  }

  .forensic-lab-section .container {
    display: grid;
    width: min(100% - 64px, 1180px);
    grid-template-rows: auto minmax(0, 1fr);
    align-content: center;
  }

  .lab-section-header { margin-bottom: clamp(14px, 2svh, 22px); }
  .badge-flair { display: inline-block; margin-bottom: 8px; }
  .lab-badge-title h2 {
    max-width: none;
    margin: 0 0 15px;
    font-size: clamp(2.25rem, 2.6vw, 3.35rem);
    line-height: .98;
    letter-spacing: -.035em;
  }

  .lab-badge-title p {
    max-width: none;
    margin: 0;
    font-size: clamp(.95rem, 1.16vw, 1.12rem);
    line-height: 1.5;
  }

  .case-samples-tray { margin-top: 24px; gap: 14px; }
  .case-samples-tray .tray-label { color: #6f6254; }
  .case-samples-tray .btn-sample-case {
    border-color: #172126;
    background: #172126;
    color: #fff6e8;
    padding: 9px 15px;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(18, 27, 31, .14);
  }
  .case-samples-tray .btn-sample-case:hover {
    border-color: #9d342b;
    background: #8f3029;
    color: #fffaf0;
    transform: translateY(-1px);
  }

  .case-file-workspace {
    width: min(100%, 1080px);
    padding: 12px 12px 66px;
    border-radius: 17px;
    box-shadow: 0 18px 35px rgba(5, 10, 12, .34), inset 0 0 0 4px rgba(255, 247, 221, .23);
  }

  .case-file-workspace::before { inset: 8px; }
  /* The dossier is a fixed work surface.  A selected file must never make the
     book taller than the text mode; its preview lives inside the same page. */
  .case-file-pages {
    block-size: clamp(365px, 49svh, 492px);
    min-height: 0;
  }
  .case-file-workspace .case-file-page { min-height: 0; overflow: hidden; }
  .case-file-workspace .case-file-page { padding: 22px 24px 18px; }
  .case-file-workspace .case-file-report-page { padding-left: 28px; }
  .case-file-workspace .case-file-spine span:nth-child(1) { top: 76px; }
  .case-file-workspace .case-file-spine span:nth-child(3) { bottom: 72px; }

  .case-file-workspace .case-page-heading { margin-bottom: 10px; }
  .case-file-workspace .case-page-heading h3 { margin-top: 5px; font-size: clamp(1.45rem, 2vw, 1.88rem); }
  .case-file-workspace .case-page-meta { gap: 4px; font-size: 7px; }
  .case-file-workspace .evidence-format-label { margin-bottom: 6px; font-size: 9px; }
  .case-file-workspace .dock-header { margin-bottom: 9px; }
  .case-file-workspace .dock-meta-badge { margin-top: 7px; font-size: 8px; }
  .case-file-workspace .ev-tab { min-height: 39px; padding: 6px 5px; font-size: 9px; }
  .case-file-workspace .ev-tab svg { width: 13px; height: 13px; }

  .case-file-workspace .evidence-textarea-wrap,
  .case-file-workspace .image-dropzone-wrap,
  .case-file-workspace .document-dropzone-wrap {
    flex: 1 1 0;
    min-height: 0;
    block-size: 0;
    margin-bottom: 9px;
  }
  .case-file-workspace .evidence-textarea,
  .case-file-workspace .dropzone-box,
  .case-file-workspace .image-preview-card {
    min-height: 0;
    block-size: 100%;
    max-block-size: 100%;
    box-sizing: border-box;
  }
  .case-file-workspace .evidence-textarea { padding: 14px 14px 14px 49px; font-size: 11px; line-height: 1.55; resize: none; }
  .case-file-workspace .dropzone-box { padding: 16px; overflow: auto; }
  .case-file-workspace .image-preview-card { overflow: auto; }
  .case-file-workspace .source-url-wrap > span { margin-bottom: 4px; font-size: 10px; }
  .case-file-workspace .source-url-wrap input { height: 31px; font-size: 10px; }
  .case-file-workspace .source-url-wrap small { display: none; }
  .case-file-workspace .dock-footer { min-height: 18px; padding-top: 8px; }
  .case-file-workspace .char-word-indicator { font-size: 9px; }

  .case-file-workspace .verdict-idle-state h3 { margin: 11px 0 2px; font-size: clamp(1.4rem, 1.9vw, 1.75rem); }
  .case-file-workspace .docket-heading { padding-bottom: 8px; font-size: 9px; }
  .case-file-workspace .docket-intro { margin-bottom: 10px; font-size: 10px; }
  .case-file-workspace .docket-evidence-chain { gap: 8px; margin-left: 40px; }
  .case-file-workspace .docket-evidence-chain li { min-height: 76px; padding: 9px 11px 8px 13px; }
  .case-file-workspace .chain-number { top: 17px; left: -43px; width: 33px; height: 33px; font-size: 9px; }
  .case-file-workspace .docket-evidence-chain::before { top: 17px; bottom: 17px; left: -23px; }
  .case-file-workspace .chain-evidence-type { font-size: 7px; }
  .case-file-workspace .docket-evidence-chain strong { margin-top: 2px; font-size: 12px; }
  .case-file-workspace .docket-evidence-chain p { margin-top: 2px; font-size: 8px; line-height: 1.35; }
  .case-file-workspace .docket-evidence-chain em { font-size: 7px; }
  .case-file-workspace .chain-record { margin-top: 6px; font-size: 7px; }
  .case-file-workspace .docket-note { padding-top: 8px; font-size: 9px; }

  .case-file-action-ribbon { right: 9%; bottom: 12px; left: 9%; }
  .case-file-workspace .btn-execute-investigation { min-height: 47px; font-size: 11px; }
  .case-file-workspace .btn-execute-investigation::before,
  .case-file-workspace .btn-execute-investigation::after { width: 14px; height: 14px; }

  body:has(.forensic-lab-section:hover) .inspector-loupe { opacity: 0; }
}

@media (min-width: 1050px) and (max-height: 800px) {
  .forensic-lab-section { padding: 18px 0; }
  .forensic-lab-section .container { width: min(100% - 48px, 1080px); }
  .lab-section-header { margin-bottom: 9px; }
  .badge-flair { margin-bottom: 4px; }
  .lab-badge-title h2 { margin: 0 0 6px; font-size: clamp(1.9rem, 2.65vw, 2.55rem); }
  .lab-badge-title p { font-size: .88rem; }
  .case-samples-tray { margin-top: 10px; }
  .btn-sample-case { padding: 5px 9px; font-size: 10px; }
  .case-file-workspace { padding: 9px 9px 54px; }
  .case-file-pages { block-size: 300px; min-height: 0; }
  .case-file-workspace .case-file-page { padding: 16px 18px 14px; }
  .case-file-workspace .case-file-report-page { padding-left: 22px; }
  .case-file-workspace .case-page-heading { margin-bottom: 6px; }
  .case-file-workspace .case-page-heading h3 { font-size: 1.35rem; }
  .case-file-workspace .case-page-meta { display: none; }
  .case-file-workspace .evidence-format-label { font-size: 8px; }
  .case-file-workspace .dock-meta-badge { display: none; }
  .case-file-workspace .ev-tab { min-height: 32px; font-size: 8px; }
  .case-file-workspace .ev-tab svg { width: 11px; height: 11px; }
  .case-file-workspace .evidence-textarea-wrap,
  .case-file-workspace .image-dropzone-wrap,
  .case-file-workspace .document-dropzone-wrap { min-height: 0; block-size: 0; margin-bottom: 7px; }
  .case-file-workspace .evidence-textarea { min-height: 0; padding: 10px 10px 10px 38px; font-size: 9px; line-height: 1.35; }
  .case-file-workspace .dropzone-box { padding: 6px 10px; overflow: hidden; }
  .case-file-workspace .drop-magnifier-icon { display: none; }
  .case-file-workspace .dropzone-box h4 {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .case-file-workspace .dropzone-box p { display: none; }
  .case-file-workspace .file-support-pill { display: none; }
  .case-file-workspace .source-url-wrap > span { font-size: 9px; }
  .case-file-workspace .source-url-wrap input { height: 27px; font-size: 9px; }
  .case-file-workspace .dock-footer { display: none; }
  .case-file-workspace .docket-heading { padding-bottom: 5px; font-size: 8px; }
  .case-file-workspace .verdict-idle-state h3 { margin: 7px 0 1px; font-size: 1.3rem; }
  .case-file-workspace .docket-intro { margin-bottom: 6px; font-size: 9px; }
  .case-file-workspace .docket-evidence-chain { gap: 5px; margin-left: 34px; }
  .case-file-workspace .docket-evidence-chain li { min-height: 57px; padding: 6px 8px 5px 10px; }
  .case-file-workspace .docket-evidence-chain::before { top: 13px; bottom: 13px; left: -19px; }
  .case-file-workspace .chain-number { top: 12px; left: -37px; width: 27px; height: 27px; font-size: 8px; }
  .case-file-workspace .chain-evidence-type { font-size: 6px; }
  .case-file-workspace .docket-evidence-chain strong { font-size: 10px; }
  .case-file-workspace .docket-evidence-chain p { font-size: 7px; }
  .case-file-workspace .docket-evidence-chain em { font-size: 6px; }
  .case-file-workspace .chain-record { margin-top: 3px; font-size: 6px; }
  .case-file-workspace .docket-note { padding-top: 5px; font-size: 8px; }
  .case-file-action-ribbon { bottom: 9px; }
  .case-file-workspace .btn-execute-investigation { min-height: 39px; font-size: 9px; }
}

/* Geniş ekranlarda inceleme odası, briefing metnini ve açık dosyayı aynı
   bakışta daha rahat okutacak ölçüde yukarı taşır. Dosya büyürken içindeki
   sayfa hiyerarşisi de birlikte ölçeklenir. */
@media (min-width: 1050px) and (min-height: 801px) {
  .forensic-lab-section {
    padding: clamp(20px, 2.8svh, 38px) 0;
  }

  .forensic-lab-section .container {
    width: min(100% - 48px, 1300px);
    transform: translateY(clamp(-38px, -3.4svh, -24px));
  }

  .lab-section-header { margin-bottom: clamp(12px, 1.6svh, 18px); }
  .badge-flair { margin-bottom: 6px; }
  .case-samples-tray { margin-top: 16px; }

  .case-file-workspace {
    width: min(100%, 1220px);
    padding: 15px 15px 76px;
  }

  .case-file-pages {
    block-size: clamp(425px, 53svh, 540px);
  }

  .case-file-workspace .case-file-page { padding: 27px 30px 22px; }
  .case-file-workspace .case-file-report-page { padding-left: 34px; }
  .case-file-workspace .case-page-heading { margin-bottom: 13px; }
  .case-file-workspace .case-page-heading h3 { font-size: clamp(1.65rem, 2.1vw, 2rem); }
  .case-file-workspace .case-page-meta { gap: 5px; font-size: 8px; }
  .case-file-workspace .evidence-format-label { margin-bottom: 7px; font-size: 10px; }
  .case-file-workspace .dock-header { margin-bottom: 11px; }
  .case-file-workspace .dock-meta-badge { margin-top: 8px; font-size: 9px; }

  .case-file-workspace .ev-tab { min-height: 43px; padding: 7px 6px; font-size: 10px; }
  .case-file-workspace .ev-tab svg { width: 14px; height: 14px; }
  .case-file-workspace .evidence-textarea { padding: 16px 16px 16px 54px; font-size: 12px; line-height: 1.62; }
  .case-file-workspace .source-url-wrap > span { font-size: 11px; }
  .case-file-workspace .source-url-wrap input { height: 35px; font-size: 11px; }
  .case-file-workspace .dock-footer { min-height: 22px; padding-top: 10px; }
  .case-file-workspace .char-word-indicator { font-size: 10px; }

  .case-file-workspace .verdict-idle-state h3 { margin: 14px 0 2px; font-size: clamp(1.55rem, 2vw, 1.95rem); }
  .case-file-workspace .docket-heading { padding-bottom: 10px; font-size: 10px; }
  .case-file-workspace .docket-intro { margin-bottom: 13px; font-size: 11px; }
  .case-file-workspace .docket-evidence-chain { gap: 10px; margin-left: 45px; }
  .case-file-workspace .docket-evidence-chain li { min-height: 91px; padding: 11px 13px 10px 15px; }
  .case-file-workspace .chain-number { top: 20px; left: -47px; width: 37px; height: 37px; font-size: 10px; }
  .case-file-workspace .docket-evidence-chain::before { top: 19px; bottom: 19px; left: -25px; }
  .case-file-workspace .chain-evidence-type { font-size: 8px; }
  .case-file-workspace .docket-evidence-chain strong { margin-top: 3px; font-size: 13px; }
  .case-file-workspace .docket-evidence-chain p { margin-top: 3px; font-size: 9px; line-height: 1.4; }
  .case-file-workspace .docket-evidence-chain em { font-size: 8px; }
  .case-file-workspace .chain-record { margin-top: 8px; font-size: 7px; }
  .case-file-workspace .docket-note { padding-top: 10px; font-size: 10px; }

  .layer-guide-heading { padding-bottom: 10px; }
  .layer-guide-heading p { margin-top: 6px; font-size: 10px; line-height: 1.4; }
  .layer-guide-visual { min-height: 72px; margin-top: 9px; padding: 8px 10px; }
  .layer-guide-visual.is-outcome { padding: 7px 10px; }
  .layer-guide-visual-item > span { width: 25px; height: 25px; font-size: 8px; }
  .layer-guide-visual.is-scope .layer-guide-visual-item > span { width: 23px; height: 23px; }
  .layer-guide-steps { gap: 7px; margin-top: 9px; }
  .layer-guide-steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 8px 10px; }
  .layer-guide-steps li > span { width: 27px; height: 27px; font-size: 8px; }
  .layer-guide-steps strong { font-size: 12px; }
  .layer-guide-steps p { margin-top: 2px; font-size: 8px; line-height: 1.32; }
  .layer-guide-note { margin-top: 8px; padding-top: 7px; font-size: 9px; }

  .case-file-action-ribbon { right: 8%; bottom: 15px; left: 8%; }
  .case-file-workspace .btn-execute-investigation { min-height: 53px; font-size: 12px; }
  .case-file-workspace .btn-execute-investigation::before,
  .case-file-workspace .btn-execute-investigation::after { width: 16px; height: 16px; }
}

/* Alçak ekranlarda dosyayı zorla küçültmek yerine okunabilirliği koru.
   Gerekirse bölüm çok az aşağı taşar; fakat metin, sekme ve kayıtlar karınca
   yazısına dönüşmez. */
@media (min-width: 1050px) and (max-height: 800px) {
  .forensic-lab-section { overflow: visible; }
  .forensic-lab-section .container { width: min(100% - 44px, 1160px); }
  .lab-section-header { margin-bottom: 12px; }
  .badge-flair { margin-bottom: 6px; }
  .lab-badge-title h2 { margin-bottom: 9px; font-size: clamp(2rem, 2.6vw, 2.72rem); }
  .lab-badge-title p { font-size: .98rem; }
  .case-samples-tray { margin-top: 14px; gap: 12px; }
  .case-samples-tray .btn-sample-case { padding: 8px 13px; font-size: 12px; }

  .case-file-workspace { width: min(100%, 1140px); padding: 12px 12px 66px; }
  .case-file-pages { block-size: 400px; }
  .case-file-workspace .case-file-page { padding: 20px 22px 18px; }
  .case-file-workspace .case-file-report-page { padding-left: 27px; }
  .case-file-workspace .case-page-heading { margin-bottom: 10px; }
  .case-file-workspace .case-page-heading h3 { font-size: 1.76rem; }
  .case-file-workspace .case-page-meta { display: grid; gap: 4px; font-size: 9px; }
  .case-file-workspace .evidence-format-label { font-size: 11px; }
  .case-file-workspace .dock-meta-badge { display: block; margin-top: 7px; font-size: 10px; }
  .case-file-workspace .ev-tab { min-height: 44px; padding: 7px 6px; font-size: 11px; }
  .case-file-workspace .ev-tab svg { width: 13px; height: 13px; }

  .case-file-workspace .evidence-textarea-wrap,
  .case-file-workspace .image-dropzone-wrap,
  .case-file-workspace .document-dropzone-wrap { min-height: 0; block-size: 0; margin-bottom: 9px; }
  .case-file-workspace .evidence-textarea { min-height: 0; padding: 13px 13px 13px 48px; font-size: 13px; line-height: 1.55; }
  .case-file-workspace .dropzone-box { padding: 14px; overflow: auto; }
  .case-file-workspace .drop-magnifier-icon { display: block; font-size: 28px; }
  .case-file-workspace .dropzone-box h4 { margin: 8px 0 4px; font-size: 15px; white-space: normal; }
  .case-file-workspace .dropzone-box p { display: block; font-size: 10px; }
  .case-file-workspace .file-support-pill { display: inline-block; }
  .case-file-workspace .source-url-wrap > span { font-size: 11px; }
  .case-file-workspace .source-url-wrap input { height: 32px; font-size: 11px; }
  .case-file-workspace .dock-footer { display: flex; min-height: 20px; padding-top: 8px; }
  .case-file-workspace .char-word-indicator { font-size: 10px; }

  .case-file-workspace .docket-heading { padding-bottom: 9px; font-size: 10px; }
  .case-file-workspace .verdict-idle-state h3 { margin: 11px 0 3px; font-size: 1.72rem; }
  .case-file-workspace .docket-intro { margin-bottom: 10px; font-size: 11px; }
  .case-file-workspace .docket-evidence-chain { gap: 7px; margin-left: 39px; }
  .case-file-workspace .docket-evidence-chain li { min-height: 78px; padding: 9px 11px 8px 13px; }
  .case-file-workspace .docket-evidence-chain::before { top: 15px; bottom: 15px; left: -21px; }
  .case-file-workspace .chain-number { top: 17px; left: -43px; width: 34px; height: 34px; font-size: 10px; }
  .case-file-workspace .chain-evidence-type { font-size: 8px; }
  .case-file-workspace .docket-evidence-chain strong { margin-top: 3px; font-size: 14px; }
  .case-file-workspace .docket-evidence-chain p { margin-top: 3px; font-size: 10px; line-height: 1.34; }
  .case-file-workspace .docket-evidence-chain em { font-size: 8px; }
  .case-file-workspace .chain-record { margin-top: 6px; font-size: 8px; }
  .case-file-workspace .docket-note { padding-top: 8px; font-size: 10px; }

  .layer-guide-heading { padding-bottom: 9px; }
  .layer-guide-heading p { margin-top: 5px; font-size: 11px; line-height: 1.4; }
  .layer-guide-visual { min-height: 68px; margin-top: 8px; padding: 7px 9px; }
  .layer-guide-steps { gap: 6px; margin-top: 8px; }
  .layer-guide-steps li { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; padding: 7px 9px; }
  .layer-guide-steps li > span { width: 26px; height: 26px; font-size: 8px; }
  .layer-guide-steps strong { font-size: 13px; }
  .layer-guide-steps p { margin-top: 2px; font-size: 10px; line-height: 1.34; }
  .layer-guide-note { margin-top: 7px; padding-top: 6px; font-size: 10px; }

  .case-file-action-ribbon { bottom: 10px; }
  .case-file-workspace .btn-execute-investigation { min-height: 46px; font-size: 11px; }

  /* This is the reading mode, not a miniature prop.  Make the working copy
     and the dossier cards legible at ordinary desktop viewing distance. */
  .case-file-workspace .evidence-textarea {
    color: #3b332c;
    padding: 18px 28px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
  }
  .case-file-workspace .evidence-textarea::placeholder { color: #574c42; opacity: 1; }
  .case-file-workspace .source-url-wrap input { color: #43382e; font-weight: 600; }

  .case-file-workspace .docket-heading { color: #9d2e26; font-size: 11px; font-weight: 900; }
  .case-file-workspace .verdict-idle-state h3 { font-size: 1.9rem; }
  .case-file-workspace .docket-intro { color: #4d4339; font-size: 13px; font-weight: 600; }
  .case-file-workspace .docket-evidence-chain { gap: 11px; }
  .case-file-workspace .docket-evidence-chain li { min-height: 104px; padding: 13px 16px 12px 18px; }
  .case-file-workspace .chain-number { top: 24px; left: -46px; width: 41px; height: 41px; color: #9d2e26; font-size: 12px; font-weight: 900; }
  .case-file-workspace .chain-evidence-type { color: #9d2e26; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
  .case-file-workspace .docket-evidence-chain strong { color: #211a16; font-size: 21px; line-height: 1.08; }
  .case-file-workspace .docket-evidence-chain p { max-width: 82%; color: #332a23; font-family: var(--font-sans); font-size: 15px; font-weight: 700; line-height: 1.38; }
  .case-file-workspace .docket-evidence-chain em { color: #5d4635; font-size: 11px; font-weight: 800; }
  .case-file-workspace .chain-record { color: #573f2d; font-size: 11px; font-weight: 800; }
  .case-file-workspace .docket-note { color: #372c23; font-size: 13px; font-weight: 700; }

  .layer-guide-heading p { color: #40372f; font-size: 12px; font-weight: 600; }
  .layer-guide-steps strong { color: #241d18; font-size: 15px; }
  .layer-guide-steps p { color: #40372f; font-size: 11px; font-weight: 600; }
  .layer-guide-note { color: #44382e; font-size: 11px; font-weight: 600; }
}

/* Delil giriş sayfası: geniş kutuları küçük yardımcı metinlerle doldurmak
   yerine, her seçeneği tek bakışta okunur bir araç olarak göster. */
.case-file-workspace .case-page-heading > div:first-child > span {
  font-size: 12px;
}

.case-file-workspace .case-page-meta {
  font-size: 10px;
  font-weight: 800;
}

.case-file-workspace .evidence-format-label,
.case-file-workspace .dock-meta-badge {
  font-size: 14px !important;
  font-weight: 800;
}

.case-file-workspace .dock-meta-badge span {
  font-size: 13px !important;
}

.case-file-workspace .evidence-types-tab {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.case-file-workspace .ev-tab {
  min-height: 52px !important;
  flex-direction: row;
  gap: 7px;
  padding: 8px 7px;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.12;
}

.case-file-workspace .ev-tab svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .case-file-workspace .evidence-types-tab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Görsel ve belge için ikinci, dar sürükle-bırak kutusu yoktur: ana kaynak
   alanının tamamı dosya seçicidir. */
.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap {
  padding: 0;
  cursor: pointer;
  background:
    repeating-linear-gradient(135deg, rgba(163, 126, 67, .035) 0 12px, transparent 12px 24px),
    #fffdf8;
}

.case-file-workspace .image-dropzone-wrap .dropzone-box,
.case-file-workspace .document-dropzone-wrap .dropzone-box {
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 100%;
  padding: 18px;
  background: transparent;
  outline: 0;
}

.case-file-workspace .image-dropzone-wrap .dropzone-box:hover,
.case-file-workspace .document-dropzone-wrap .dropzone-box:hover,
.case-file-workspace .image-dropzone-wrap .dropzone-box.is-dragging,
.case-file-workspace .document-dropzone-wrap .dropzone-box.is-dragging {
  background: #E7EEF5;
  outline: 0;
}

/* Sağ sayfadaki ürün rehberleri: adımlar, açıklamalar ve görsel akış
   defterin boş alanını kullanır; küçük yardımcı metin gibi davranmaz. */
.case-file-workspace .layer-guide-close {
  width: 36px;
  height: 36px;
  font-size: 25px;
}

.case-file-workspace .layer-guide-heading {
  padding: 2px 52px 16px 0;
}

.case-file-workspace .layer-guide-kicker {
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 900;
}

.case-file-workspace .layer-guide-heading h3 {
  font-size: clamp(2rem, 3.1vw, 2.6rem);
}

.case-file-workspace .layer-guide-heading p {
  max-width: 100%;
  margin-top: 9px;
  color: #443a31;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.case-file-workspace .layer-guide-visual {
  min-height: 108px;
  margin-top: 15px;
  padding: 13px 16px;
}

.case-file-workspace .layer-guide-visual-item { gap: 7px; }

.case-file-workspace .layer-guide-visual-item > span {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.case-file-workspace .layer-guide-visual-item strong {
  color: #30271f;
  font-size: 14px;
}

.case-file-workspace .layer-guide-connector { font-size: 23px; }

.case-file-workspace .layer-guide-visual.is-scope .layer-guide-visual-item { padding: 9px 5px; }
.case-file-workspace .layer-guide-visual.is-scope .layer-guide-visual-item > span { width: 34px; height: 34px; font-size: 14px; }
.case-file-workspace .layer-guide-visual.is-outcome { gap: 7px; padding: 11px 14px; }
.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 6px 9px; }
.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item > span { width: 25px; height: 25px; font-size: 15px; }

.case-file-workspace .layer-guide-steps {
  gap: 13px;
  margin-top: 16px;
}

.case-file-workspace .layer-guide-steps li {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 17px;
}

.case-file-workspace .layer-guide-steps li > span {
  width: 40px;
  height: 40px;
  font-size: 11px;
}

.case-file-workspace .layer-guide-steps strong {
  color: #211a16;
  font-size: 20px;
  line-height: 1.1;
}

.case-file-workspace .layer-guide-steps p {
  margin-top: 5px;
  color: #443a31;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.case-file-workspace .layer-guide-note {
  margin-top: 13px;
  padding-top: 11px;
  color: #44382e;
  font-size: 13px;
  font-weight: 600;
}

.case-file-workspace .layer-guide-note span { font-size: 11px; }

@media (min-width: 1050px) and (max-height: 800px) {
  .case-file-workspace .layer-guide-close { width: 30px; height: 30px; font-size: 21px; }
  .case-file-workspace .layer-guide-heading { padding-right: 42px; padding-bottom: 10px; }
  .case-file-workspace .layer-guide-kicker { margin-bottom: 5px; font-size: 10px; }
  .case-file-workspace .layer-guide-heading h3 { font-size: 1.9rem; }
  .case-file-workspace .layer-guide-heading p { margin-top: 5px; font-size: 12px; }
  .case-file-workspace .layer-guide-visual { min-height: 82px; margin-top: 10px; padding: 8px 11px; }
  .case-file-workspace .layer-guide-visual-item { gap: 4px; }
  .case-file-workspace .layer-guide-visual-item > span { width: 32px; height: 32px; font-size: 9px; }
  .case-file-workspace .layer-guide-visual-item strong { font-size: 11px; }
  .case-file-workspace .layer-guide-connector { font-size: 19px; }
  .case-file-workspace .layer-guide-steps { gap: 9px; margin-top: 11px; }
  .case-file-workspace .layer-guide-steps li { grid-template-columns: 37px minmax(0, 1fr); gap: 11px; padding: 10px 12px; }
  .case-file-workspace .layer-guide-steps li > span { width: 33px; height: 33px; font-size: 9px; }
  .case-file-workspace .layer-guide-steps strong { font-size: 16px; }
  .case-file-workspace .layer-guide-steps p { margin-top: 3px; font-size: 12px; }
  .case-file-workspace .layer-guide-note { margin-top: 9px; padding-top: 8px; font-size: 11px; }
}

@media (max-width: 1049px) {
  .case-file-workspace .layer-guide-close { width: 26px; height: 26px; font-size: 18px; }
  .case-file-workspace .layer-guide-heading { padding-right: 36px; padding-bottom: 7px; }
  .case-file-workspace .layer-guide-kicker { margin-bottom: 3px; font-size: 8px; }
  .case-file-workspace .layer-guide-heading h3 { font-size: 1.42rem; }
  .case-file-workspace .layer-guide-heading p { margin-top: 3px; font-size: 10px; line-height: 1.3; }
  .case-file-workspace .layer-guide-visual { min-height: 62px; margin-top: 7px; padding: 6px 8px; }
  .case-file-workspace .layer-guide-visual-item { gap: 2px; }
  .case-file-workspace .layer-guide-visual-item > span { width: 25px; height: 25px; font-size: 7px; }
  .case-file-workspace .layer-guide-visual-item strong { font-size: 9px; }
  .case-file-workspace .layer-guide-connector { font-size: 15px; }
  .case-file-workspace .layer-guide-steps {
    flex: 0 0 auto;
    grid-template-rows: repeat(3, 62px);
    gap: 6px;
    margin-top: 8px;
  }
  .case-file-workspace .layer-guide-steps li { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; padding: 6px 9px; }
  .case-file-workspace .layer-guide-steps li > span { width: 26px; height: 26px; font-size: 7px; }
  .case-file-workspace .layer-guide-steps strong { font-size: 13px; }
  .case-file-workspace .layer-guide-steps p { margin-top: 1px; font-size: 9px; line-height: 1.22; }
  .case-file-workspace .layer-guide-note { margin-top: 6px; padding-top: 5px; font-size: 9px; }
}

/* Sağdaki Nasıl çalışır / Neleri inceler / Ne sunar panellerinin her ekran
   ölçüsünde tek sayfaya sığan nihai ölçüsü. */
.case-file-workspace .layer-guide-close {
  width: 26px !important;
  height: 26px !important;
  font-size: 18px !important;
}

.case-file-workspace .layer-guide-heading {
  padding-right: 36px !important;
  padding-bottom: 7px !important;
}

.case-file-workspace .layer-guide-kicker { margin-bottom: 3px !important; font-size: 8px !important; }
.case-file-workspace .layer-guide-heading h3 { font-size: 1.42rem !important; }
.case-file-workspace .layer-guide-heading p { margin-top: 10px !important; font-size: 10px !important; line-height: 1.3 !important; }

.case-file-workspace .layer-guide-visual {
  min-height: 64px !important;
  margin-top: 7px !important;
  padding: 6px 8px !important;
}

.case-file-workspace .layer-guide-visual-item { gap: 2px !important; }
.case-file-workspace .layer-guide-visual-item > span { width: 25px !important; height: 25px !important; font-size: 7px !important; }
.case-file-workspace .layer-guide-visual-item strong { font-size: 9px !important; }
.case-file-workspace .layer-guide-connector { font-size: 15px !important; }

.case-file-workspace .layer-guide-visual.is-outcome {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding: 6px 8px !important;
}

.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 2px !important;
  padding: 4px 3px !important;
  border-top: 2px solid #9b382f;
  border-left: 0 !important;
  text-align: center !important;
}

.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item > span {
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
}

.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item strong { font-size: 8px !important; }

.case-file-workspace .layer-guide-steps {
  flex: 1 1 auto !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.case-file-workspace .layer-guide-steps li {
  grid-template-columns: 35px minmax(0, 1fr) !important;
  gap: 11px !important;
  min-height: 0 !important;
  padding: 11px 13px !important;
}

.case-file-workspace .layer-guide-steps li > span { width: 31px !important; height: 31px !important; font-size: 8px !important; }
.case-file-workspace .layer-guide-steps strong { font-size: 15px !important; }
.case-file-workspace .layer-guide-steps p { margin-top: 3px !important; font-size: 10px !important; line-height: 1.3 !important; }
.case-file-workspace .layer-guide-note { margin-top: 9px !important; padding-top: 7px !important; font-size: 10px !important; }

/* Geniş fakat alçak masa görünümü: sağ sayfadaki üç rehber adımı tek defter
   sayfasına sığar. Bu kural yalnızca rehber ekranlarını etkiler. */
@media (min-width: 1050px) and (max-height: 800px) {
  .case-file-workspace .layer-guide-close { width: 26px; height: 26px; font-size: 18px; }
  .case-file-workspace .layer-guide-heading { padding-right: 36px; padding-bottom: 7px; }
  .case-file-workspace .layer-guide-kicker { margin-bottom: 3px; font-size: 8px; }
  .case-file-workspace .layer-guide-heading h3 { font-size: 1.42rem; }
  .case-file-workspace .layer-guide-heading p { margin-top: 3px; font-size: 10px; line-height: 1.3; }
  .case-file-workspace .layer-guide-visual { min-height: 62px; margin-top: 7px; padding: 6px 8px; }
  .case-file-workspace .layer-guide-visual-item { gap: 2px; }
  .case-file-workspace .layer-guide-visual-item > span { width: 25px; height: 25px; font-size: 7px; }
  .case-file-workspace .layer-guide-visual-item strong { font-size: 9px; }
  .case-file-workspace .layer-guide-connector { font-size: 15px; }
  .case-file-workspace .layer-guide-steps {
    flex: 0 0 auto;
    grid-template-rows: repeat(3, 62px);
    gap: 6px;
    margin-top: 8px;
  }
  .case-file-workspace .layer-guide-steps li { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; padding: 6px 9px; }
  .case-file-workspace .layer-guide-steps li > span { width: 26px; height: 26px; font-size: 7px; }
  .case-file-workspace .layer-guide-steps strong { font-size: 13px; }
  .case-file-workspace .layer-guide-steps p { margin-top: 1px; font-size: 9px; line-height: 1.22; }
  .case-file-workspace .layer-guide-note { margin-top: 6px; padding-top: 5px; font-size: 9px; }
}

/* Kaynak türüne göre değişen giriş yüzleri */
.case-file-workspace .evidence-textarea-wrap {
  position: relative;
}

.case-file-workspace .evidence-textarea {
  position: relative;
  z-index: 1;
}

.case-file-workspace .text-input-instruction {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: #3b312a;
  pointer-events: none;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.case-file-workspace .text-input-instruction::before {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(149, 111, 59, .34);
  content: '';
}

.case-file-workspace .text-source-mark,
.case-file-workspace .drop-magnifier-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid var(--ink-primary);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-primary);
  font: 700 23px/1 var(--font-editorial);
  box-shadow: 3px 3px 0 rgba(14, 39, 70, .11);
}

.case-file-workspace .source-dropzone-kicker {
  position: relative;
  z-index: 1;
  color: #a13029;
  font: 800 10px/1.2 var(--font-typewriter);
  letter-spacing: .12em;
}

.case-file-workspace .text-input-instruction h4,
.case-file-workspace .dropzone-box h4 {
  position: relative;
  z-index: 1;
  margin: 7px 0 5px;
  color: #26201c;
  font: 700 20px/1.12 var(--font-editorial);
}

.case-file-workspace .text-input-instruction p,
.case-file-workspace .dropzone-box p {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0;
  color: #5f5246;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.case-file-workspace .dropzone-box {
  flex-direction: column;
}

.case-file-workspace .file-support-pill {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.case-file-workspace .evidence-textarea-wrap.has-content .text-input-instruction,
.case-file-workspace .evidence-textarea:focus + .text-input-instruction {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
}

@media (min-width: 1050px) and (max-height: 800px) {
  .case-file-workspace .text-input-instruction { padding: 14px; }
  .case-file-workspace .text-input-instruction::before { inset: 10px; }
  .case-file-workspace .text-source-mark,
  .case-file-workspace .drop-magnifier-icon { width: 36px; height: 36px; margin-bottom: 6px; font-size: 18px; }
  .case-file-workspace .source-dropzone-kicker { font-size: 8px; }
  .case-file-workspace .text-input-instruction h4,
  .case-file-workspace .dropzone-box h4 { margin: 5px 0 3px; font-size: 16px; }
  .case-file-workspace .text-input-instruction p,
  .case-file-workspace .dropzone-box p { font-size: 10px; }
  .case-file-workspace .file-support-pill { margin-top: 5px; }

  .case-file-workspace .image-dropzone-wrap .dropzone-box,
  .case-file-workspace .document-dropzone-wrap .dropzone-box {
    height: 100%;
    min-height: 0;
    justify-content: center;
    padding: 10px 16px;
    overflow: hidden;
  }

  .case-file-workspace .image-dropzone-wrap .drop-magnifier-icon,
  .case-file-workspace .document-dropzone-wrap .drop-magnifier-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    font-size: 13px;
  }

  .case-file-workspace .image-dropzone-wrap .source-dropzone-kicker,
  .case-file-workspace .document-dropzone-wrap .source-dropzone-kicker {
    font-size: 7px;
    line-height: 1;
  }

  .case-file-workspace .image-dropzone-wrap .dropzone-box h4,
  .case-file-workspace .document-dropzone-wrap .dropzone-box h4 {
    margin: 3px 0 2px;
    font-size: 13px;
  }

  .case-file-workspace .image-dropzone-wrap .dropzone-box p,
  .case-file-workspace .document-dropzone-wrap .dropzone-box p {
    max-width: 390px;
    font-size: 8px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .case-file-workspace .image-dropzone-wrap .file-support-pill,
  .case-file-workspace .document-dropzone-wrap .file-support-pill {
    margin-top: 3px;
    font-size: 6px;
  }
}

/* Normal Analiz Docket'i: üç kayıt kartı, alttaki kullanılabilir alanı
   dengeli biçimde paylaşır. Rehber panellerini etkilemez. */
.case-file-workspace .verdict-idle-state h3 {
  margin-bottom: 9px;
}

.case-file-workspace .verdict-idle-state .docket-evidence-chain {
  flex: 0 0 auto;
  grid-template-rows: repeat(3, minmax(0, 104px));
  gap: 10px;
  margin-top: 0;
  margin-bottom: 14px;
}

.case-file-workspace .verdict-idle-state .docket-evidence-chain li {
  min-height: 0;
  padding: 10px 14px 9px 16px;
}

.case-file-workspace .verdict-idle-state .chain-number {
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  font-size: 10px;
}

.case-file-workspace .verdict-idle-state .chain-evidence-type {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
}

.case-file-workspace .verdict-idle-state .docket-evidence-chain strong {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.1;
}

.case-file-workspace .verdict-idle-state .docket-evidence-chain p {
  max-width: 92%;
  margin-top: 4px;
  color: #5d5144;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.case-file-workspace .verdict-idle-state .docket-evidence-chain em {
  padding-top: 2px;
  color: #6e5b49;
  font-size: 8px;
  font-weight: 800;
}

.case-file-workspace .verdict-idle-state .chain-record {
  margin-top: 7px;
  color: #725d48;
  font-size: 8px;
  font-weight: 800;
}

/* Metin analizi için gerekli bağlam, sayaçla birlikte canlı gösterilir. */
.case-file-workspace .char-word-indicator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 7px;
  row-gap: 0;
  color: #695945;
  font-size: 11px;
  line-height: 1.35;
}

.case-file-workspace .text-analysis-guidance {
  flex-basis: 100%;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(132, 106, 73, .2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.case-file-workspace .text-analysis-recommendation {
  margin-left: 3px;
  padding-left: 9px;
  border-left: 1px solid rgba(121, 101, 77, .34);
  color: #806c55;
  font-family: var(--font-typewriter);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .015em;
}

.case-file-workspace .text-analysis-guidance.is-blocked { color: #a13229; }
.case-file-workspace .text-analysis-guidance.is-limited { color: #93641f; }
.case-file-workspace .text-analysis-guidance.is-ready { color: #30714a; }

.case-file-workspace .report-context-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 6px;
  border: 1px solid rgba(147, 100, 31, .55);
  border-radius: 2px;
  background: rgba(243, 224, 173, .42);
  color: #875a18;
  font: 800 8px/1 var(--font-typewriter);
  letter-spacing: .07em;
}

.case-file-workspace .report-context-badge[hidden] { display: none !important; }

/* Kriminal pano, masa görünümünde arka plan alanının tamamına sığar. */
@media (min-width: 1025px) {
  .pinboard-section {
    display: flex;
    min-height: 100svh;
    box-sizing: border-box;
    align-items: center;
    padding: clamp(28px, 5vh, 52px) 0;
  }

  .pinboard-section > .container {
    display: grid;
    width: min(100% - 48px, 1220px);
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(18px, 2.8vh, 30px);
  }

  .pinboard-section .center-align {
    display: grid;
    justify-items: center;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
  }

  .pinboard-section .badge-flair {
    margin: 0;
    font-size: 13px;
    letter-spacing: .16em;
  }

  .pinboard-section .section-title-large {
    margin: 0;
    font-size: clamp(2.15rem, 2.75vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: .005em;
  }

  .pinboard-section .section-lead {
    max-width: 720px;
    margin: 0;
    font-size: clamp(.98rem, 1.1vw, 1.08rem);
    line-height: 1.45;
  }

  .pinboard-section .cork-pinboard-frame {
    height: min(62svh, 580px);
    min-height: 0;
    box-sizing: border-box;
    padding: clamp(20px, 3vh, 32px);
  }

  .pinboard-section .pinboard-cards-grid {
    height: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
  }

  .pinboard-section .pin-card {
    min-height: 0;
    padding: clamp(12px, 1.35vw, 18px);
  }

  .pinboard-section .suspect-tag { font-size: clamp(7px, .62vw, 9px); }
  .pinboard-section .card-mugshot h4 { margin: 3px 0 7px; font-size: clamp(1rem, 1.15vw, 1.2rem); }
  .pinboard-section .suspect-traits { gap: 3px; margin-bottom: 8px; }
  .pinboard-section .trait-pill { padding: 2px 5px; font-size: clamp(7px, .58vw, 9px); }
  .pinboard-section .suspect-notes { margin: 0; padding-top: 7px; font-size: clamp(8px, .68vw, 10px); line-height: 1.42; }

  .pinboard-section .evidence-polaroid-center { padding: clamp(13px, 1.7vw, 20px); }
  .pinboard-section .crime-tape-mini { margin-bottom: 9px; font-size: clamp(7px, .65vw, 9px); }
  .pinboard-section .lens-inspection-bubble { padding: 8px 0; }
  .pinboard-section .autopsy-scan-window { width: clamp(86px, 7.3vw, 116px); height: clamp(58px, 5vw, 78px); margin-bottom: 8px; }
  .pinboard-section .lens-bubble-title { font-size: clamp(11px, 1vw, 15px); }
  .pinboard-section .lens-bubble-sub { font-size: clamp(8px, .66vw, 10px); }
  .pinboard-section .fingerprint-center-seal { margin-top: 8px; padding: 5px; font-size: clamp(7px, .58vw, 9px); }
}

/* Panonun merkezindeki dosya: not kağıdı değil, adli kayıt kartı. */
.pinboard-section .evidence-polaroid-center {
  overflow: visible;
  padding: 0 18px 16px;
  border: 1px solid #6f552d;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(174, 43, 34, .08) 0 1px, transparent 1px) 15px 0 / 100% 100% no-repeat,
    linear-gradient(180deg, rgba(117, 92, 51, .075) 1px, transparent 1px) 0 0 / 100% 28px,
    #fffdf7;
  box-shadow: 9px 11px 0 rgba(98, 67, 30, .14), 0 14px 28px rgba(55, 39, 20, .22);
}

.pinboard-section .evidence-file-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 -18px 14px;
  padding: 9px 13px 8px;
  border-bottom: 2px solid #b88b2f;
  background: #183A5F;
  color: #f8ecd1;
  font: 700 8px/1 var(--font-typewriter);
  letter-spacing: .12em;
}

.pinboard-section .evidence-file-header span:last-child {
  color: #dcb45a;
  font-size: 7px;
}

.pinboard-section .center-pin {
  z-index: 2;
  top: -16px;
  font-size: 21px;
}

.pinboard-section .lens-inspection-bubble {
  padding: 5px 0 10px;
}

.pinboard-section .autopsy-scan-window {
  border-color: rgba(126, 91, 34, .62);
  border-radius: 2px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.5), 0 5px 13px rgba(76, 51, 20, .14);
}

.pinboard-section .lens-bubble-title {
  margin-top: 3px;
  font-size: 14px;
  letter-spacing: -.015em;
}

.pinboard-section .lens-bubble-sub {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 7px;
  border-top: 1px solid rgba(112, 81, 41, .28);
  border-bottom: 1px solid rgba(112, 81, 41, .28);
  color: #716047;
  font-size: 8px;
  letter-spacing: .075em;
}

.pinboard-section .fingerprint-center-seal {
  margin-top: 2px;
  padding: 7px 8px;
  border: 0;
  border-left: 3px solid #247047;
  border-radius: 0;
  background: rgba(43, 120, 75, .1);
  color: #1d623d;
  font-size: 8px;
  letter-spacing: .04em;
}

@media (min-width: 1025px) {
  .pinboard-section .evidence-polaroid-center { padding: 0 clamp(14px, 1.5vw, 18px) clamp(12px, 1.4vw, 16px); }
  .pinboard-section .evidence-file-header { margin-right: clamp(-18px, -1.5vw, -14px); margin-left: clamp(-18px, -1.5vw, -14px); }
  .pinboard-section .autopsy-scan-window { width: clamp(104px, 8.6vw, 140px); height: clamp(64px, 5.6vw, 86px); }
  .pinboard-section .lens-bubble-title { font-size: clamp(11px, 1vw, 14px); }
  .pinboard-section .lens-bubble-sub { font-size: clamp(7px, .58vw, 8px); }
  .pinboard-section .fingerprint-center-seal { font-size: clamp(7px, .58vw, 8px); }
}

/* Merkez dosyadaki tarama penceresi: futuristik adli HUD. */
.pinboard-section .autopsy-scan-window {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #4faaa4;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(81, 208, 192, .2), transparent 34%),
    linear-gradient(135deg, rgba(72, 170, 162, .12), transparent 46%),
    #101c20;
  box-shadow: inset 0 0 0 1px rgba(194, 255, 244, .18), 0 7px 17px rgba(28, 99, 94, .2);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.pinboard-section .autopsy-scan-window::before {
  position: absolute;
  z-index: 4;
  inset: 5px;
  content: '';
  border: 1px solid rgba(169, 255, 241, .4);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  pointer-events: none;
}

.pinboard-section .autopsy-scan-grid {
  z-index: 0;
  inset: 8px;
  opacity: .58;
  background-image:
    linear-gradient(rgba(116, 231, 217, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 231, 217, .2) 1px, transparent 1px);
  background-size: 12px 12px;
}

.pinboard-section .autopsy-scan-target {
  display: none;
}

.pinboard-section .autopsy-scan-target::before,
.pinboard-section .autopsy-scan-target::after {
  display: none;
}

.pinboard-section .autopsy-scan-beam {
  z-index: 3;
  height: 13px;
  background: linear-gradient(180deg, transparent, rgba(90, 255, 222, .2) 35%, rgba(123, 255, 228, .83) 50%, rgba(90, 255, 222, .18) 66%, transparent);
  box-shadow: 0 5px 17px rgba(74, 239, 210, .32);
}

.pinboard-section .autopsy-scan-readout {
  right: 7px;
  bottom: 7px;
  padding: 3px 5px;
  border: 1px solid rgba(121, 255, 229, .56);
  background: rgba(8, 24, 28, .85);
  color: #b8fff0;
  font-size: 6px;
  letter-spacing: .08em;
}

/* Chrome Web Mağazası çağrısı: dengeli, ortalanmış kurulum alanı. */
.extension-cta-group {
  align-items: center;
  width: 100%;
}

.extension-cta-group .btn-chrome-install {
  width: min(100%, 620px);
  justify-content: center;
}

.extension-cta-group .compat-info {
  width: 100%;
  text-align: center;
}

/* VakaPro uzantısı için dikey kimlik rozeti. */
.prova-extension-badge {
  position: relative;
  width: min(100%, 342px);
  overflow: hidden;
  padding: 32px 24px 19px;
  border: 1px solid #7e5e25;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 229, 166, .1), transparent 30%), #1b1715;
  box-shadow: 0 22px 40px rgba(43, 31, 16, .28), inset 0 0 0 6px #28201b, inset 0 0 0 8px rgba(201, 154, 65, .46);
  color: #f8ecd1;
  text-align: center;
}

.prova-extension-badge::before {
  position: absolute;
  inset: 14px;
  content: '';
  border: 1px dashed rgba(210, 164, 78, .54);
  border-radius: 19px;
  pointer-events: none;
}

.badge-lanyard-slot {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 10px;
  margin: -18px auto 16px;
  border: 1px solid #050505;
  border-radius: 999px;
  background: #0d0b0a;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .1);
}

.badge-emblem {
  position: relative;
  z-index: 1;
  padding: 6px 0 18px;
}

.badge-brand,
.badge-role,
.badge-details-title,
.badge-specs dt,
.badge-store-line {
  font-family: var(--font-typewriter);
}

.badge-brand {
  display: block;
  color: #e6bf60;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
}

.badge-shield {
  display: grid;
  width: 112px;
  height: 126px;
  margin: 12px auto 10px;
  place-items: center;
  clip-path: polygon(50% 0, 100% 23%, 100% 75%, 50% 100%, 0 75%, 0 23%);
  background: linear-gradient(145deg, #e7c66f, #8d641e);
  color: #e5bf60;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .26));
}

.badge-shield::before {
  grid-area: 1 / 1;
  width: 102px;
  height: 116px;
  content: '';
  clip-path: inherit;
  background: linear-gradient(155deg, #44281e, #181413 64%);
}

.badge-shield svg {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
}

.badge-role {
  display: block;
  color: #d5bd8a;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.badge-details {
  position: relative;
  z-index: 1;
  padding: 15px 15px 13px;
  border: 1px solid rgba(226, 201, 144, .26);
  border-radius: 8px;
  background: rgba(8, 7, 6, .38);
  text-align: left;
}

.badge-details-title {
  margin: 0 0 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(226, 201, 144, .25);
  color: #f8ecd1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.badge-specs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.badge-specs div {
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
}

.badge-specs dt {
  color: #bca377;
  font-size: 8px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.badge-specs dd {
  margin: 0;
  color: #f7f0e0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.badge-specs .badge-live { color: #85d39e; }

.badge-store-line {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: #d6bc85;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-store-line span {
  color: #e4bd61;
  font-size: 11px;
}

@media (max-width: 440px) {
  .prova-extension-badge { padding-right: 18px; padding-left: 18px; }
}

/* Seçilen 03 rozeti: sade deri kimlik, büyük rozet ve iki satırlı bilgi alanı. */
.prova-extension-badge {
  width: min(100%, 338px);
  min-height: 498px;
  padding: 27px 24px 22px;
  border: 3px solid #231a15;
  border-radius: 31px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .055) 0 .6px, transparent .8px) 0 0 / 4px 4px,
    linear-gradient(145deg, #211a17, #151110 72%);
  box-shadow: 0 20px 36px rgba(48, 33, 17, .27), inset 0 0 0 1px rgba(230, 191, 96, .24);
}

.prova-extension-badge::before {
  inset: 10px;
  border: 2px dashed rgba(217, 172, 77, .52);
  border-radius: 23px;
}

.badge-lanyard-slot {
  width: 55px;
  height: 10px;
  margin: -14px auto 20px;
  border: 0;
  background: #080706;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .6), inset 0 1px 1px rgba(255, 255, 255, .1);
}

.badge-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 20px;
}

.badge-shield {
  order: 1;
  width: 108px;
  height: 132px;
  margin: 0 0 14px;
  clip-path: polygon(50% 0, 94% 20%, 94% 75%, 50% 100%, 6% 75%, 6% 20%);
  background: linear-gradient(125deg, #f5db8d, #9f6d1c 55%, #e6bf60);
}

.badge-shield::before {
  width: 98px;
  height: 122px;
  background: linear-gradient(180deg, #5a2b23 0 48%, #171313 48% 100%);
}

.badge-shield svg {
  grid-area: 1 / 1;
  width: 72px;
  height: 72px;
  color: #f2d27b;
}

.badge-brand {
  order: 2;
  color: #d7b15a;
  font-size: 8px;
  letter-spacing: .22em;
}

.badge-role {
  order: 3;
  margin-top: 6px;
  color: #bca67d;
  font-size: 8px;
  letter-spacing: .16em;
}

.badge-details {
  display: grid;
  min-height: 82px;
  padding: 15px 14px 12px;
  align-content: center;
  border: 1px solid #9c7330;
  border-radius: 8px;
  background: #151211;
  box-shadow: inset 0 0 0 2px rgba(73, 53, 25, .5);
  text-align: center;
}

.badge-details-title {
  margin: 0 0 9px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(226, 201, 144, .19);
  color: #ecd596;
  font-size: 8px;
  letter-spacing: .12em;
}

.badge-spec-line {
  margin: 0;
  color: #f3e8c9;
  font-family: var(--font-typewriter);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.7;
}

.badge-store-line {
  min-height: 46px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid #9c7330;
  border-radius: 10px;
  background: #151211;
  color: #f1dfaa;
  font-size: 9px;
  letter-spacing: .12em;
}

.badge-store-line::after {
  width: 1px;
  height: 20px;
  margin-left: auto;
  content: '↓';
  border-left: 1px solid rgba(239, 215, 157, .3);
  padding-left: 14px;
  color: #d8ad4c;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: .9;
}

/* Kullanıcının seçtiği 03 rozeti, kaynak görsel olarak doğrudan kullanılır. */
.selected-system-badge {
  display: block;
  width: min(100%, 350px);
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 19px 24px rgba(53, 37, 17, .24));
}

.badge-store-line svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #e1c26e;
  stroke-width: 1.6;
}

.badge-store-line span { color: inherit; font-size: inherit; }

/* ── Açık Adli Laboratuvar Renk Sistemi ───────────────────────────────── */
:root {
  --bg-parchment: #F7F8FA;
  --bg-desk: #EEF2F6;
  --bg-paper: #FFFFFF;
  --bg-manila: #E8EDF3;
  --bg-manila-dark: #AEBBC9;
  --ink-primary: #0E2746;
  --ink-secondary: #3C4F65;
  --ink-muted: #596E86;
  --stamp-red: #C9363C;
  --stamp-red-glow: rgba(201, 54, 60, 0.1);
  --stamp-green: #256B5B;
  --stamp-green-glow: rgba(37, 107, 91, 0.1);
  --brass-gold: #71859B;
  --brass-gold-light: #EEF3F8;
  --tape-yellow: #B9C8D8;
  --border-light: rgba(24, 54, 86, 0.11);
  --border-medium: rgba(24, 54, 86, 0.2);
  --border-dashed: rgba(74, 100, 128, 0.32);
  --shadow-paper: 0 12px 28px -18px rgba(15, 39, 70, 0.32), 0 2px 7px rgba(15, 39, 70, 0.05);
  --shadow-folder: 0 24px 46px -28px rgba(15, 39, 70, 0.42), 0 8px 16px rgba(15, 39, 70, 0.08);
}

.dossier-headline .highlight-ink {
  color: var(--ink-muted);
}

.dossier-headline .highlight-ink::after {
  background: rgba(113, 131, 154, 0.16);
}

.dossier-headline em {
  color: var(--stamp-red);
}


/* 03 referansındaki oran ve hiyerarşi: tek parça, dar, deri kimlik. */
.prova-extension-badge {
  display: flex;
  width: min(100%, 342px);
  min-height: 0;
  aspect-ratio: .775;
  flex-direction: column;
  padding: 24px 21px 20px;
  border-width: 3px;
  border-radius: 29px;
  background: #191514;
}

.prova-extension-badge::before {
  inset: 10px;
  border-radius: 21px;
}

.badge-lanyard-slot {
  flex: 0 0 auto;
  margin: -11px auto 14px;
}

.badge-emblem {
  flex: 0 0 auto;
  padding: 3px 0 15px;
}

.badge-shield {
  width: 100px;
  height: 122px;
  margin-bottom: 11px;
}

.badge-shield::before {
  width: 90px;
  height: 112px;
}

.badge-shield svg {
  width: 67px;
  height: 67px;
}

.badge-brand { font-size: 8px; }
.badge-role { margin-top: 5px; font-size: 7.5px; }

.badge-details {
  min-height: 76px;
  padding: 12px 12px 10px;
}

.badge-details-title {
  margin-bottom: 7px;
  padding-bottom: 7px;
  font-size: 7.5px;
}

.badge-spec-line {
  font-size: 8px;
  line-height: 1.6;
}

.badge-store-line {
  min-height: 43px;
  margin-top: auto;
  padding: 0 12px;
  font-size: 8px;
}

.badge-store-line::after {
  height: 18px;
  padding-left: 12px;
  font-size: 18px;
}

/* Çalışma odası da aynı açık lacivert renk sistemini kullanır.
   Bu blok yalnızca renk, yüzey ve gölge değerlerini değiştirir. */
.forensic-lab-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF3F8 100%);
  border-color: rgba(24, 54, 86, 0.14);
}

.forensic-lab-section .case-samples-tray .tray-label { color: var(--ink-muted); }

.forensic-lab-section .case-samples-tray .btn-sample-case {
  border-color: #0E2746;
  background: #0E2746;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(14, 39, 70, 0.14);
}

.forensic-lab-section .case-samples-tray .btn-sample-case:hover {
  border-color: #C9363C;
  background: #C9363C;
  color: #FFFFFF;
}

.forensic-lab-section .sample-case-button-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.case-file-workspace {
  border-color: #AAB8C8;
  background:
    linear-gradient(90deg, rgba(62, 91, 124, 0.1), transparent 4%, transparent 96%, rgba(62, 91, 124, 0.1)),
    linear-gradient(180deg, #E7EEF5 0%, #C9D7E5 100%);
  box-shadow: 0 20px 38px rgba(15, 39, 70, 0.16), inset 0 0 0 5px rgba(255, 255, 255, 0.48);
}

.case-file-workspace::before { border-color: rgba(60, 88, 119, 0.28); }

.case-file-workspace .case-file-page,
.case-file-workspace .case-file-report-page {
  border-color: rgba(72, 98, 129, 0.25);
  background:
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(93, 120, 150, 0.07) 35px),
    #FFFFFF;
  box-shadow: inset 0 0 25px rgba(44, 76, 111, 0.04), 0 4px 12px rgba(15, 39, 70, 0.08);
}

.case-file-workspace .case-file-spine {
  background: linear-gradient(90deg, #A8B8C9, #EAF0F6 40%, #91A5B9 50%, #EAF0F6 60%, #A8B8C9);
  box-shadow: inset 1px 0 rgba(34, 62, 92, 0.26), inset -1px 0 rgba(255, 255, 255, 0.78);
}

.case-file-workspace .case-file-spine::before { border-color: rgba(201, 54, 60, 0.45); }
.case-file-workspace .case-file-spine span { border-color: #647A92; background: #D6E0EA; }

.case-file-workspace .case-page-heading > div:first-child > span,
.case-file-workspace .case-page-meta,
.case-file-workspace .dock-meta-badge,
.case-file-workspace .docket-heading,
.case-file-workspace .chain-evidence-type,
.case-file-workspace .chain-record,
.case-file-workspace .docket-note span,
.case-file-workspace .file-support-pill,
.case-file-workspace .layer-guide-note span { color: #C9363C; }

.case-file-workspace .case-page-heading h3,
.case-file-workspace .verdict-idle-state h3,
.case-file-workspace .docket-evidence-chain strong,
.case-file-workspace .dropzone-box h4,
.case-file-workspace .image-preview-card strong { color: #0E2746; }

.case-file-workspace .evidence-format-label,
.case-file-workspace .source-url-wrap > span,
.case-file-workspace .evidence-textarea,
.case-file-workspace .ev-tab { color: #3C4F65; }

.case-file-workspace .evidence-textarea-wrap,
.case-file-workspace .image-dropzone-wrap,
.case-file-workspace .document-dropzone-wrap {
  border-color: rgba(72, 98, 129, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.case-file-workspace .evidence-textarea,
.case-file-workspace .image-preview-card,
.case-file-workspace .source-url-wrap input { background-color: #FFFFFF; }

.case-file-workspace .evidence-textarea {
  background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(93, 120, 150, 0.08) 34px);
}

.case-file-workspace .ev-tab {
  border-color: rgba(72, 98, 129, 0.25);
  background: #F7F9FC;
}

.case-file-workspace .ev-tab:hover { border-color: #C9363C; color: #A62830; }
.case-file-workspace .ev-tab.active {
  border-color: #0E2746;
  background: #0E2746;
  color: #FFFFFF;
  box-shadow: inset 0 -3px 0 #C9363C;
}

.case-file-workspace .docket-evidence-chain li {
  border-color: rgba(72, 98, 129, 0.22);
  background: #FFFFFF;
  box-shadow: 5px 5px 0 rgba(148, 168, 188, 0.16);
}

.case-file-workspace .chain-number,
.case-file-workspace .layer-guide-close {
  border-color: #C9363C;
  background: #FFFFFF;
  color: #C9363C;
}

.case-file-workspace .docket-evidence-chain::before { border-left-color: rgba(201, 54, 60, 0.56); }

.case-file-workspace .docket-evidence-chain p,
.case-file-workspace .docket-evidence-chain em,
.case-file-workspace .docket-intro,
.case-file-workspace .docket-note,
.case-file-workspace .dropzone-box p,
.case-file-workspace .image-preview-card span,
.case-file-workspace .source-url-wrap small,
.case-file-workspace .char-word-indicator { color: #596E86; }

.case-file-workspace .btn-execute-investigation {
  border-color: #8F2028;
  background: linear-gradient(180deg, #D84649, #B21E29);
  box-shadow: 0 8px 15px rgba(178, 30, 41, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.case-file-workspace .btn-execute-investigation::before,
.case-file-workspace .btn-execute-investigation::after {
  border-color: rgba(226, 235, 245, 0.92);
  box-shadow: 0 0 0 3px rgba(201, 54, 60, 0.68);
}

/* Sayfa genelinde aynı açık, soğuk adli palet. Yerleşim değerleri korunur. */
body.detective-body {
  background-color: #F7F8FA;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(69, 100, 134, 0.04) 1px, transparent 1.2px),
    linear-gradient(to right, rgba(69, 100, 134, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(69, 100, 134, 0.02) 1px, transparent 1px);
}

.hero-dossier,
.forensic-lab-section,
.pinboard-section,
.extension-section,
.solved-cases-section,
.final-dossier-cta,
.detective-footer { position: relative; z-index: 1; }

.hero-dossier { background-color: rgba(247, 248, 250, 0.9); }
.forensic-lab-section { background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(238, 243, 248, 0.94)); }
.pinboard-section,
.solved-cases-section { background-color: rgba(247, 248, 250, 0.94); }
.extension-section,
.final-dossier-cta { background-color: rgba(238, 243, 248, 0.94); }

.detective-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(24, 54, 86, 0.14);
}

.fedora-badge-icon,
.folder-tab-top,
.folder-content,
.case-book-spread,
.case-evidence-page,
.case-summary-page { background-color: #FFFFFF; }

.folder-tab-top,
.case-book-spread,
.case-evidence-page { border-color: rgba(72, 98, 129, 0.24); }

.case-evidence-page,
.case-summary-page {
  background-image:
    linear-gradient(90deg, transparent 34px, rgba(201, 54, 60, 0.12) 35px, transparent 36px),
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(93, 120, 150, 0.06) 33px),
    linear-gradient(#FFFFFF, #FFFFFF);
}

.case-summary-page {
  background-image:
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(93, 120, 150, 0.06) 33px),
    linear-gradient(#FFFFFF, #FFFFFF);
}

.case-summary-page .summary-evidence-card {
  background: #FFFFFF;
  border-color: rgba(72, 98, 129, 0.22);
  box-shadow: 3px 3px 0 rgba(148, 168, 188, 0.16);
}

.case-summary-page .summary-page-note {
  border-top-color: rgba(72, 98, 129, 0.32);
  color: #596E86;
}

.hero-dossier .forensic-meters-row {
  gap: 16px;
  margin-bottom: 32px;
}

.hero-dossier .meter-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid #D5DFEA;
  border-radius: 5px 10px 10px 5px;
  background: #FFFFFF;
  box-shadow: 4px 5px 0 rgba(148, 168, 188, 0.18);
}

.hero-dossier .meter-card::before {
  position: absolute;
  top: -1px;
  left: 58px;
  width: 34px;
  height: 3px;
  display: block;
  content: '';
  border-radius: 0 0 2px 2px;
  background: #C9363C;
}

.hero-dossier .meter-card:hover {
  transform: none;
  border-color: #AEBBC9;
  box-shadow: 4px 5px 0 rgba(148, 168, 188, 0.28);
}

.hero-dossier .meter-pin {
  display: none;
}

.hero-dossier .meter-number {
  margin: 0;
  color: #0E2746;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.012em;
  text-transform: none;
}

.hero-dossier .meter-label {
  margin: 5px 0 0;
  color: #3C4F65;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-dossier .meter-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #B9C8D8;
  border-radius: 50%;
  color: #0E2746;
  background: #F7F9FC;
}

.hero-dossier .meter-icon svg {
  width: 19px;
  height: 19px;
}

.hero-dossier .meter-paperclip {
  position: absolute;
  top: -13px;
  left: 22px;
  width: 11px;
  height: 36px;
  border: 3px solid #7A91AA;
  border-radius: 10px;
  transform: rotate(-12deg);
  background: #F7F9FC;
  box-shadow: 1px 2px 4px rgba(14, 39, 70, 0.18);
}

.hero-dossier .meter-copy {
  min-width: 0;
}

.hero-dossier .meter-caption {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid #E1E8F0;
  color: #596E86;
  font: 500 .77rem/1.42 var(--font-sans);
}

@media (max-width: 1180px) and (min-width: 1025px) {
  .hero-dossier .forensic-meters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-dossier .meter-card {
    padding-right: 18px;
    padding-left: 18px;
    gap: 11px;
  }

  .hero-dossier .meter-paperclip {
    left: 18px;
  }

  .hero-dossier .meter-card::before {
    left: 52px;
  }

  .hero-dossier .meter-card:last-child {
    grid-column: 1 / -1;
    min-height: 106px;
  }
}

.evidence-tag,
.detective-sticky-note { background: #EEF3F8; border-color: #B7C5D4; }
.sticky-handwriting { color: #3C4F65; }

.cork-pinboard-frame {
  background: #C8D7E5;
  border-color: #183A5F;
  box-shadow: 0 25px 60px rgba(14, 39, 70, 0.16), inset 0 0 40px rgba(14, 39, 70, 0.14);
}

.cork-texture-bg { background-image: radial-gradient(#9DB1C5 1.5px, transparent 1.5px); }
.pin-card,
.evidence-polaroid-center { background: #FFFFFF; border-color: rgba(72, 98, 129, 0.22); }

.pinboard-section .evidence-polaroid-center { background: #FFFFFF; }
.trait-pill { background: #EEF3F8; border-color: #D5DFEA; color: #C9363C; }
.crime-tape-mini { background: #D9E3ED; color: #0E2746; }

.case-file-workspace .verdict-idle-state .docket-evidence-chain li {
  background: #FFFFFF;
}

.leather-wallet-cover,
.wallet-half,
.prova-extension-badge,
.badge-details,
.badge-store-line { background-color: #0E2746; border-color: #274C73; }

.leather-wallet-cover { outline-color: rgba(113, 133, 155, 0.44); box-shadow: 0 20px 50px rgba(14, 39, 70, 0.26); }
.badge-details-title,
.badge-spec-line,
.badge-store-line { color: #EAF0F6; }

.cta-dossier-folder {
  background: #E8EDF3;
  border-color: #AEBBC9;
  box-shadow: 0 18px 34px rgba(15, 39, 70, 0.14);
}

.detective-footer {
  background: radial-gradient(circle at 12% 0%, rgba(113, 133, 155, 0.2), transparent 28rem), #0E2746;
  border-top-color: rgba(183, 197, 212, 0.45);
}

.footer-launchbar p,
.footer-desc,
.footer-col-nav a,
.footer-col-trust li { color: #C9D5E1; }
.footer-badge .sub { color: #F08A8F; }

/* Silik, soyut dedektif objeleri: yalnızca dış kenarlarda görünür. */
.ambient-investigation-objects {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-prop {
  position: absolute;
  display: block;
  color: rgba(49, 82, 115, 0.1);
  opacity: 0.72;
}

.ambient-loupe {
  width: 240px;
  height: 240px;
  border: 12px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.45);
}

.ambient-loupe::after {
  position: absolute;
  right: -84px;
  bottom: -42px;
  width: 116px;
  height: 22px;
  content: '';
  border-radius: 999px;
  background: currentColor;
  transform: rotate(47deg);
}

.ambient-loupe-top { top: -148px; left: -108px; }
.ambient-loupe-bottom { right: -142px; bottom: 10%; width: 205px; height: 205px; }

.ambient-microscope {
  bottom: 8%;
  left: -38px;
  width: 178px;
  height: 240px;
  border: 14px solid currentColor;
  border-right: 0;
  border-bottom: 0;
  border-radius: 108px 0 0 0;
  transform: rotate(-16deg);
}

.ambient-microscope::before,
.ambient-microscope::after {
  position: absolute;
  content: '';
  background: currentColor;
}

.ambient-microscope::before { top: 52px; right: -28px; width: 102px; height: 19px; border-radius: 999px; transform: rotate(58deg); }
.ambient-microscope::after { right: -73px; bottom: -47px; width: 168px; height: 21px; border-radius: 999px; }

.ambient-evidence-paper {
  top: 18%;
  right: -82px;
  width: 210px;
  height: 272px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 26px, currentColor 27px 28px, transparent 29px 38px);
  opacity: 0.38;
  transform: rotate(10deg);
}

.ambient-books {
  right: -36px;
  bottom: 4%;
  width: 220px;
  height: 148px;
  border: 12px solid currentColor;
  border-right: 0;
  opacity: 0.46;
  transform: rotate(-13deg);
}

.ambient-books::before,
.ambient-books::after {
  position: absolute;
  left: -10px;
  width: 215px;
  height: 33px;
  content: '';
  border: 8px solid currentColor;
  border-right: 0;
}

.ambient-books::before { top: 40px; }
.ambient-books::after { top: 92px; }

@media (max-width: 900px) {
  .ambient-prop { opacity: 0.36; transform: scale(0.7); }
  .ambient-microscope,
  .ambient-books { display: none; }
}

/* Sağ sayfada açılan rehberler ana adli renk sistemiyle aynı yüzeyi kullanır. */
.case-file-workspace .layer-guide-close {
  border-color: #C9363C;
  background: #FFFFFF;
  color: #C9363C;
}

.case-file-workspace .layer-guide-close:hover {
  background: #C9363C;
  color: #FFFFFF;
}

.case-file-workspace .layer-guide-heading {
  border-bottom-color: rgba(72, 98, 129, 0.28);
}

.case-file-workspace .layer-guide-kicker,
.case-file-workspace .layer-guide-note span {
  color: #C9363C;
}

.case-file-workspace .layer-guide-heading h3,
.case-file-workspace .layer-guide-visual-item,
.case-file-workspace .layer-guide-visual-item strong,
.case-file-workspace .layer-guide-steps strong {
  color: #0E2746;
}

.case-file-workspace .layer-guide-heading p,
.case-file-workspace .layer-guide-steps p,
.case-file-workspace .layer-guide-note {
  color: #596E86;
}

.case-file-workspace .layer-guide-visual {
  border-color: rgba(72, 98, 129, 0.25);
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(93, 120, 150, 0.06) 23px),
    #F7F9FC;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.66);
}

.case-file-workspace .layer-guide-visual-item > span,
.case-file-workspace .layer-guide-steps li > span {
  border-color: #C9363C;
  background: #FFFFFF;
  color: #C9363C;
}

.case-file-workspace .layer-guide-connector {
  color: #647A92;
}

.case-file-workspace .layer-guide-visual.is-scope .layer-guide-visual-item {
  border-color: rgba(72, 98, 129, 0.22);
  background: #FFFFFF;
}

.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item {
  border-left-color: #C9363C;
  border-top-color: #C9363C !important;
  background: #FFFFFF;
}

.case-file-workspace .layer-guide-visual.is-outcome .layer-guide-visual-item > span {
  background: transparent;
}

.case-file-workspace .layer-guide-steps li {
  border-color: rgba(72, 98, 129, 0.22);
  background: #FFFFFF;
  box-shadow: 4px 4px 0 rgba(148, 168, 188, 0.16);
}

.case-file-workspace .layer-guide-note {
  border-top-color: rgba(72, 98, 129, 0.32);
}

/* Final accessibility pass: consistent touch targets and a usable compact nav. */
.btn-stamp-action,
.btn-execute-investigation,
.ev-tab,
.btn-clear-image,
.btn-large {
  min-height: 44px;
}

.ev-tab {
  justify-content: center;
}

.btn-stamp-action:focus-visible,
.btn-execute-investigation:focus-visible,
.ev-tab:focus-visible,
.dropzone-box:focus-visible,
.btn-clear-image:focus-visible,
.nav-case-links a:focus-visible {
  outline: 3px solid var(--stamp-red);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .nav-container {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
  }

  .nav-case-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    gap: 18px;
    margin: 10px -16px 0;
    overflow-x: auto;
    padding: 10px 16px 2px;
    border-top: 1px solid rgba(68, 64, 60, 0.12);
    scrollbar-width: thin;
  }

  .nav-case-links a:last-child {
    display: inline-flex;
  }
}

/* Şapka ve büyüteç çizimi kutusuz, şeffaf zeminde görünür. */
.fedora-badge-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
}
