:root {
  --card-bg: rgba(33, 28, 59, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-blue: #2563eb;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --mono-font: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
}

/* Base resets & layout */
#section-4-227>.ct-section-inner-wrap {
  padding-top: 75px;
  align-items: center;
}

#section-4-227 {
  background-image: linear-gradient(#1c1930, #2f2c45);
  height: 100%;
  text-align: left;
  min-height: 90vh;
  background-color: #e21616;
}

#headline-64-227 {
  font-size: 30px;
  text-transform: capitalize;
  margin-bottom: 15px;
}

#text_block-70-227 {
  margin-top: 20px;
  width: 65%;
  margin-bottom: 25px;
  padding: 6px 15px;
  border: 1px solid #02b159;
  border-radius: 5px;
  background-color: rgba(2, 177, 89, 0.1);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 479px) {
  #text_block-70-227 {
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%;
  }
}

#code_block-18-227 {
  margin-bottom: 25px;
}

#code_block-62-227 {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.supreme-container {
  font-family: 'Outfit', sans-serif !important;
  color: var(--text-main);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
}

/* Upload & Form Controls */
.analysis-form {
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 auto 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.search-wrapper-modern {
  width: 100% !important;
  max-width: 900px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  gap: 12px !important;
  background: rgba(18, 14, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.search-wrapper-modern:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35) !important;
}

.model-select-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #60a5fa;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 12px;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

.vertical-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.input-glow-container {
  flex: 1 1 auto !important;
  min-width: 280px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px dashed rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.input-glow-container:hover,
.input-glow-container.drag-active {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.input-glow-container i {
  margin-right: 10px;
  color: #60a5fa;
  font-size: 16px;
}

#file-name-display {
  font-size: 15px !important;
  min-width: 220px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Outfit', sans-serif;
}

#submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

#submit-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.restriction-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.restriction-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
}

.rb-label {
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.rb-divider {
  width: 4px;
  height: 4px;
  background: #334155;
  border-radius: 50%;
}

.url-error-msg {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
}

.options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 180px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 10px;
  z-index: 100;
  overflow: hidden;
  list-style: none;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.options li {
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  color: var(--text-dim);
}

.options li:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Status / Loader */
.loader-container {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.status-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  background: #1e293b;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
  background-size: 200% 100%;
  animation: progress-glow 2s linear infinite;
  transition: width 0.3s ease-out;
}

@keyframes progress-glow {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Forensic Player Container */
.forensic-player-container {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 25px;
  overflow: hidden;
}

.player-header {
  background: #1e1b35;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-viewport {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

video#forensic-video,
img#forensic-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
}

video.grayscale,
.media-el.grayscale {
  filter: contrast(3.5) brightness(1.4) saturate(0.4);
}

video.edge,
.media-el.edge {
  filter: contrast(5) grayscale(1) invert(1) brightness(0.8);
}

video.anomaly,
.media-el.anomaly {
  filter: contrast(3) brightness(1.2) saturate(0) sepia(0.3);
}

.zoom-lens {
  position: absolute;
  border: 1px solid #60a5fa;
  width: 150px;
  height: 150px;
  pointer-events: none;
  display: none;
  background: rgba(96, 165, 250, 0.12);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  z-index: 10;
}

.video-viewport.zoomed {
  cursor: crosshair;
}

/* Player Controls & Buttons Alignment */
.player-controls-panel {
  background: #1e1b35;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-playback-row {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.master-play-btn {
  background: #2563eb;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.master-play-btn:hover {
  background: #3b82f6;
  transform: scale(1.05);
}

.main-playback-row .step-cluster {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 0 !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

.step-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.step-btn:hover {
  background: #334155;
  color: #fff;
}

.step-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.time-display {
  font-family: var(--mono-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.control-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.control-label {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Button clusters - STRICTLY 1 SINGLE LINE ON MOBILE & DESKTOP */
.speed-cluster,
.filter-cluster {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 6px !important;
}

.speed-btn,
.filter-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-dim);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}

.speed-btn:hover,
.filter-btn:hover {
  background: #334155;
  color: #fff;
}

.speed-btn.active,
.filter-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

.filter-info-box {
  background: #1e1b35;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: #94a3b8;
  font-style: italic;
}

/* Cards */
.forensic-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 18px;
}

.card-head {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card-head i {
  color: #60a5fa;
}

/* Forensic Footer */
.forensic-footer {
  margin-top: 25px;
  padding: 22px;
  background: rgba(2, 6, 23, 0.85);
  border-radius: 18px;
  border: 1px solid var(--border-color);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-row.second {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: 8px;
}

.f-item {
  font-size: 13.5px;
  color: var(--text-dim);
}

.f-item strong {
  color: #f8fafc;
  font-size: 13.5px;
}

.hidden {
  display: none !important;
}

/* ================= RESPONSIVE DESIGN ================= */


@media (max-width: 768px) {
  .service-container .container {
    padding: 0 16px !important;
  }

  .search-wrapper-modern {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .vertical-divider {
    display: none !important;
  }

  .model-select-pill {
    width: 100% !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 12px !important;
    margin-bottom: 5px !important;
  }

  .input-glow-container {
    width: 100% !important;
    order: 2 !important;
    min-width: 0 !important;
    margin: 8px 0 !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #submit-btn {
    width: 100% !important;
    order: 3 !important;
    padding: 14px !important;
  }

  #file-name-display {
    min-width: 0 !important;
    max-width: calc(100vw - 120px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }


  .control-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}


/* Mobile Alignment: Strictly 1 line for buttons below video */
@media (max-width: 480px) {
  .service-container .container {
    padding: 0 12px !important;
  }

  .search-wrapper-modern {
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  /* Playback row strictly on 1 line on mobile */
  .main-playback-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .master-play-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }

  .main-playback-row .step-cluster {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .step-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .time-display {
    width: auto !important;
    font-size: 13px !important;
    margin-left: auto !important;
    text-align: right !important;
  }

  /* Velocity & Filter button rows: STRICTLY 1 LINE EACH */
  .control-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .speed-cluster,
  .filter-cluster {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 5px !important;
  }

  .speed-btn,
  .filter-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 9px 2px !important;
    font-size: 11.5px !important;
    text-align: center !important;
  }

  .player-controls-panel {
    padding: 12px !important;
  }

  .restriction-badge {
    padding: 8px 12px !important;
    font-size: 11px !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .rb-divider {
    display: none !important;
  }

  .forensic-card {
    padding: 18px 15px !important;
  }
}

/* Seamless mobile header styling */
@media (max-width: 991px) {
  .site-header {
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: #141026 !important;
  }

  .site-main {
    padding-top: 15px !important;
    border-top: none !important;
    background-color: #141026 !important;
  }

  .page-hero {
    border-top: none !important;
    padding-top: 15px !important;
  }
}
/* ================= MEDIA INSPECTOR REPORT ================= */
.mi-kind-pill { cursor: default; }

.mi-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mi-steps span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .3s;
}
.mi-steps span.active { color: #60a5fa; }
.mi-steps span.done { color: #34d399; }

/* Verdict hero */
.mi-hero {
  --lvl: #a78bfa;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--lvl) 16%, transparent) 0%, transparent 55%),
    var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--lvl) 35%, rgba(255,255,255,.08));
  border-radius: 22px;
  padding: 28px 30px;
  margin: 22px 0;
}
.mi-ring { position: relative; width: 170px; height: 170px; }
.mi-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mi-ring circle { fill: none; stroke-width: 10; }
.mi-ring-bg { stroke: rgba(255,255,255,.07); }
.mi-ring-fg {
  stroke: var(--lvl);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--lvl) 55%, transparent));
}
.mi-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.mi-ring-text span { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.mi-ring-text small {
  margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
}
.mi-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mi-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .8px;
  color: var(--lvl);
  background: color-mix(in srgb, var(--lvl) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--lvl) 40%, transparent);
}
.mi-hero h3#res-verdict { font-size: 34px; font-weight: 800; margin: 0; line-height: 1.15; color: #fff; }
.mi-summary { color: #cbd5e1; font-size: 16px; line-height: 1.55; margin: 10px 0 14px; max-width: 760px; }
.mi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mi-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #cbd5e1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  padding: 5px 10px; border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mi-chip i { color: #94a3b8; }
.mi-chip.warn { color: #fbbf24; border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); }
.mi-chip.warn i { color: #fbbf24; }
.mi-chip.bad { color: #f87171; border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }
.mi-chip.bad i { color: #f87171; }
.mi-chip.accent { color: #93c5fd; border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.08); }
.mi-chip.accent i { color: #93c5fd; }
.mi-chip.conf-confirmed, .mi-chip.conf-high { color: #6ee7b7; border-color: rgba(52,211,153,.3); }
.mi-chip.conf-confirmed i, .mi-chip.conf-high i { color: #6ee7b7; }
.mi-chip.conf-low { color: #fbbf24; border-color: rgba(251,191,36,.3); }
.mi-chip.conf-low i { color: #fbbf24; }

/* Layout */
.mi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.mi-main, .mi-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mi-main .forensic-player-container { margin-bottom: 0; }
.mi-head-note {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: #64748b;
  letter-spacing: .3px; text-transform: none;
}

/* Viewer */
.video-viewport.is-image { aspect-ratio: 4 / 3; max-height: 72vh; }
img#forensic-image { transition: transform .1s ease-out; user-select: none; }
.mi-viewer-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #64748b; font-size: 14px; text-align: center; padding: 20px;
}
.mi-viewer-empty i { font-size: 34px; }
.mi-viewer-hint { font-size: 12.5px; color: #64748b; margin-left: auto; }
.control-grid-modern.single { grid-template-columns: 1fr; }

/* Findings */
.mi-findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mi-findings li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid var(--sev, #475569);
}
.mi-findings li > i { color: var(--sev, #64748b); font-size: 17px; margin-top: 1px; width: 18px; text-align: center; }
.mi-findings li.sev-critical { --sev: #ef4444; background: rgba(239,68,68,.06); }
.mi-findings li.sev-high { --sev: #f97316; background: rgba(249,115,22,.05); }
.mi-findings li.sev-medium { --sev: #f59e0b; }
.mi-findings li.sev-low { --sev: #60a5fa; }
.mi-findings li.sev-good { --sev: #10b981; background: rgba(16,185,129,.05); }
.mi-findings li.sev-info { --sev: #475569; }
.mi-f-title {
  font-size: 15px; font-weight: 700; color: #f1f5f9; line-height: 1.35;
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.mi-f-cat {
  font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: #64748b; border: 1px solid rgba(255,255,255,.08); padding: 1px 7px; border-radius: 5px;
}
.mi-f-detail { font-size: 13.5px; color: #94a3b8; line-height: 1.5; margin-top: 3px; word-break: break-word; }
.mi-link-btn {
  margin-top: 12px; background: none; border: none; color: #60a5fa;
  font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 4px 0;
  font-family: inherit;
}
.mi-link-btn:hover { color: #93c5fd; }

/* Facts */
.mi-facts { display: flex; flex-direction: column; }
.mi-fact {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.mi-fact:last-child { border-bottom: none; }
.mi-fact > i { color: #60a5fa; width: 16px; text-align: center; margin-top: 3px; font-size: 14px; }
.mi-fact > div { display: flex; flex-direction: column; min-width: 0; }
.mi-fact-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }
.mi-fact-value { font-size: 14.5px; color: #f1f5f9; line-height: 1.4; word-break: break-word; }
.mi-muted { color: #64748b; font-style: normal; }
.mono-lite { font-family: var(--mono-font); font-size: 13px; }

/* Location */
.mi-map {
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  height: 190px; background: #0f172a;
}
.mi-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) brightness(.92); }
.mi-coords { margin: 10px 0; color: #f1f5f9; }
.mi-loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mi-privacy-note {
  margin-top: 12px; font-size: 12.5px; color: #fbbf24; line-height: 1.45;
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.2);
  padding: 8px 10px; border-radius: 9px;
}
#mi-location-card.has-loc { border-color: rgba(251,191,36,.28); }

/* Provenance */
.mi-prov { display: flex; flex-direction: column; gap: 4px; }
.mi-prov-row { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mi-prov-row:last-child { border-bottom: none; }
.mi-prov-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mi-prov-name { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.mi-prov-detail { font-size: 13px; color: #94a3b8; margin-top: 6px; line-height: 1.5; word-break: break-word; }
.mi-prov-detail b { color: #cbd5e1; font-weight: 600; margin-right: 4px; }
.mi-prov-detail ul { margin: 4px 0 0; padding-left: 18px; }
.mi-pill {
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis;
}
.mi-pill.ok { color: #34d399; background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); }
.mi-pill.bad { color: #f87171; background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.28); }
.mi-pill.neutral { color: #94a3b8; background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.18); }

/* AI vision */
.mi-av-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mi-av-score {
  display: flex; flex-direction: column; min-width: 130px;
  padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.mi-av-score b { font-size: 30px; color: var(--c); line-height: 1.1; }
.mi-av-score span { font-size: 12.5px; font-weight: 700; color: #cbd5e1; }
.mi-av-meta { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.mi-av-meta > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #94a3b8; align-items: center; }
.mi-av-bar { height: 6px; border-radius: 6px; background: #1e293b; overflow: hidden; margin: 16px 0 4px; }
.mi-av-bar div { height: 100%; border-radius: 6px; transition: width 1s ease; }
.mi-av-summary { font-size: 15px; color: #e2e8f0; line-height: 1.6; margin: 12px 0 6px; }
.mi-av-sub {
  font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: #64748b; margin-top: 12px;
}
.mi-av-sub.ok { color: #34d399; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.mi-av-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mi-av-list li {
  font-size: 13.5px; color: #cbd5e1; line-height: 1.5;
  padding: 8px 12px 8px 30px; position: relative;
  background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.14); border-radius: 9px;
}
.mi-av-list li::before {
  content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 10px; top: 9px; color: #f59e0b; font-size: 12px;
}
.mi-empty { font-size: 14px; color: #94a3b8; display: flex; gap: 10px; align-items: center; line-height: 1.5; }
.mi-empty i { color: #64748b; }

/* Metadata explorer */
.mi-meta-card { margin-top: 20px; }
.mi-meta-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mi-meta-top .card-head { flex: 1; min-width: 200px; }
.mi-meta-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 8px 12px; min-width: 260px; flex: 0 1 340px;
}
.mi-meta-search:focus-within { border-color: #3b82f6; }
.mi-meta-search i { color: #64748b; font-size: 13px; }
.mi-meta-search input {
  background: transparent; border: none; outline: none; color: #f1f5f9;
  font-size: 14px; width: 100%; font-family: inherit;
}
.mi-meta-group { border: 1px solid rgba(255,255,255,.06); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.mi-meta-group summary {
  cursor: pointer; list-style: none; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 14px; color: #e2e8f0; background: rgba(255,255,255,.025);
}
.mi-meta-group summary::-webkit-details-marker { display: none; }
.mi-meta-group summary::before {
  content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px;
  color: #64748b; margin-right: 10px; transition: transform .2s;
}
.mi-meta-group[open] summary::before { transform: rotate(90deg); }
.mi-meta-group summary span:first-child { margin-right: auto; }
.mi-count { font-size: 12px; color: #64748b; font-weight: 700; }
.mi-table-wrap { max-height: 420px; overflow: auto; }
.mi-meta-group table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mi-meta-group th, .mi-meta-group td {
  text-align: left; vertical-align: top; padding: 7px 16px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.mi-meta-group th { color: #94a3b8; font-weight: 600; width: 38%; word-break: break-word; }
.mi-meta-group td { color: #e2e8f0; font-family: var(--mono-font); font-size: 12.5px; word-break: break-word; white-space: pre-wrap; }

/* Footer */
.mi-foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-bottom: 10px; }
.mi-foot-grid .f-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mi-foot-grid .f-item .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.mi-hash { position: relative; padding-right: 36px; }
.mi-icon-btn {
  position: absolute; right: 0; bottom: 0;
  background: #1e293b; border: 1px solid #334155; color: #94a3b8;
  width: 30px; height: 26px; border-radius: 6px; cursor: pointer;
}
.mi-icon-btn:hover { color: #fff; }
.mi-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mi-btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  color: #e2e8f0 !important; font-weight: 600; font-size: 13px; font-family: inherit;
  padding: 8px 13px; border-radius: 9px; cursor: pointer; transition: all .2s;
}
.mi-btn-ghost:hover { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.45); }
.mi-disclaimer { margin: 14px 0 0; font-size: 12px; color: #64748b; line-height: 1.5; }

@media (max-width: 980px) {
  .mi-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mi-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; }
  .mi-hero-tags, .mi-chips { justify-content: center; }
  .mi-hero h3#res-verdict { font-size: 28px; }
  .mi-ring { width: 150px; height: 150px; }
  .mi-foot-grid { grid-template-columns: 1fr; }
  .mi-meta-search { min-width: 0; flex: 1 1 100%; }
  .mi-viewer-hint { display: none; }
  .mi-steps span { font-size: 11px; }
}
@media (max-width: 480px) {
  .mi-av-meta { min-width: 0; }
  .mi-meta-group th { width: 42%; }
  .mi-steps { justify-content: center; }
}
