/* ==========================================================================
   falconDataRescue AI Data Recovery Studio — Premium Cyber-Glassmorphic UI
   Forensic Fragment Carving, Relationship Graphing & Integrity Assessment
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* Colors */
  --bg-dark: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(28, 38, 59, 0.88);
  --bg-input: #0a0e17;

  /* Accents */
  --cyan: #00f2fe;
  --cyan-muted: rgba(0, 242, 254, 0.12);
  --cyan-glow: 0 0 20px rgba(0, 242, 254, 0.35);

  --emerald: #10b981;
  --emerald-muted: rgba(16, 185, 129, 0.15);
  
  --rose: #f43f5e;
  --rose-muted: rgba(244, 63, 94, 0.15);

  --amber: #f59e0b;
  --amber-muted: rgba(245, 158, 11, 0.15);

  --violet: #8b5cf6;
  --violet-muted: rgba(139, 92, 246, 0.15);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.5);
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    linear-gradient(180deg, rgba(7, 9, 14, 0.82) 0%, rgba(7, 9, 14, 0.94) 100%),
    radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12) 0%, transparent 60%),
    url('background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
  height: 72px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--cyan-glow);
  color: #07090e;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-home-btn { display: inline-flex; align-items: center; gap: 6px; }

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

/* Main Container */
.main-wrapper {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 20px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--cyan-muted);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.hero p {
  max-width: 740px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Evidence-first workflow rail */
.workflow-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 42px;
  margin: 0 auto;
  width: min(100%, 920px);
  background: linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(10, 14, 23, .76));
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.workflow-step { display:flex; align-items:center; gap:11px; color:var(--text-muted); transition:var(--transition); }
.workflow-step.is-active, .workflow-step.is-complete { color:var(--text-primary); }
.workflow-number { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid rgba(148,163,184,.25); border-radius:50%; font:600 11px var(--font-mono); }
.workflow-step.is-active .workflow-number { color:var(--cyan); border-color:var(--cyan); box-shadow:0 0 18px rgba(0,242,254,.2); }
.workflow-step.is-complete .workflow-number { color:#07130f; background:var(--emerald); border-color:var(--emerald); }
.workflow-step strong { display:block; font-size:12px; }
.workflow-step small { display:block; margin-top:3px; font-size:10px; color:var(--text-muted); line-height:1.3; }
.workflow-connector { height:1px; background:linear-gradient(90deg, rgba(0,242,254,.45), rgba(148,163,184,.18)); }
.workflow-status { position:absolute; bottom:12px; left:20px; color:var(--text-muted); font:10px var(--font-mono); letter-spacing:.02em; }
.terminal-command { display:inline-block; margin:0 3px; padding:3px 7px; color:var(--cyan); background:rgba(0,242,254,.08); border:1px solid rgba(0,242,254,.22); border-radius:5px; font:600 11px var(--font-mono); }
.drive-error-state { display:flex; flex-direction:column; align-items:center; gap:10px; padding:28px 20px; text-align:center; color:var(--text-secondary); }
.drive-error-state strong { color:var(--rose); font-size:14px; }
.drive-error-state p { max-width:560px; font-size:12px; line-height:1.5; }
.drive-command-row { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
@media (max-width: 720px) {
  .workflow-rail { grid-template-columns:1fr; gap:14px; padding:16px 16px 42px; }
  .workflow-connector { width:1px; height:12px; margin-left:16px; }
  .workflow-status { left:16px; }
}

.mode-switch-wrapper {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  margin-top: 18px;
  gap: 6px;
}

.mode-tab-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mode-tab-btn.active {
  background: var(--cyan);
  color: #07090e;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
}

.demo-samples-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-pill {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.demo-pill:hover {
  background: var(--cyan-muted);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Dropzone */
.dropzone-container {
  border: 2px dashed rgba(0, 242, 254, 0.25);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dropzone-container:hover, .dropzone-container.dragover {
  border-color: var(--cyan);
  background: rgba(14, 19, 31, 0.85);
  box-shadow: var(--cyan-glow);
}

.dropzone-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cyan-muted);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.dropzone-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dropzone-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 20px;
}

.dropzone-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--cyan);
  color: #07090e;
  border-color: var(--cyan);
}

.btn-primary:hover {
  background: #25f4ff;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #07090e;
  font-weight: 700;
}

.btn-accent:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
}

/* Workspace Grid & Cards */
.workspace-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.card-body {
  padding: 18px 20px;
}

/* File Queue Rows */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(14, 19, 31, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: var(--transition);
}

.file-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cyan-muted);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-p1 {
  background: var(--rose-muted);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-p2 {
  background: var(--cyan-muted);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-p3 {
  background: var(--amber-muted);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
  background: var(--emerald-muted);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Progress & Damage Bars */
.damage-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.damage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--amber), var(--rose));
  border-radius: 3px;
}

/* Action Banner */
.action-banner {
  margin-top: 18px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Restored Items Result Card */
.restored-card-item {
  background: rgba(14, 19, 31, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.restored-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.restored-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}

/* Deep Inspector Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-dialog {
  background: #0f1524;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--cyan-glow);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--rose);
}

.modal-tabs {
  display: flex;
  background: rgba(7, 9, 14, 0.6);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  gap: 8px;
  overflow-x: auto;
}

.modal-tab-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.modal-tab-btn:hover {
  color: var(--text-primary);
}

.modal-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Extracted Content View */
.entity-pills-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.entity-pill {
  padding: 4px 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 16px;
  font-size: 11px;
  color: var(--cyan);
}

.content-preview-container {
  background: #090c14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.content-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.extracted-text-body {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-primary);
  max-height: 340px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.code-block {
  background: #07090e;
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  margin: 8px 0;
  overflow-x: auto;
}

/* Graph Canvas */
.graph-info-banner {
  padding: 8px 12px;
  background: rgba(0, 242, 254, 0.06);
  border-left: 3px solid var(--cyan);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.graph-canvas-wrapper {
  background: #07090e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Assessment Pane */
.assessment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.assessment-card {
  background: rgba(14, 19, 31, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.assessment-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.assessment-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--emerald);
  margin-top: 4px;
}

.report-box {
  background: rgba(14, 19, 31, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* Hex Viewer */
.hex-viewer {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #38bdf8;
  max-height: 340px;
  overflow-y: auto;
  white-space: pre;
}

/* Toasts */
#toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 150;
}

.toast {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.25s ease-out;
}

.toast.success { border-color: var(--emerald); color: var(--emerald); }
.toast.info { border-color: var(--cyan); color: var(--cyan); }
.toast.warning { border-color: var(--amber); color: var(--amber); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .file-row { grid-template-columns: 1fr; gap: 10px; }
  .assessment-grid { grid-template-columns: 1fr; }
}
/* ========================================================================== */
/* falconDataRescue workspace refresh                                                     */
/* ========================================================================== */

:root {
  --bg: #080b14;
  --panel: rgba(17, 23, 38, .88);
  --panel-strong: #121a2b;
  --panel-soft: #0d1322;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(129, 140, 248, .42);
  --text-primary: #f8fafc;
  --text-secondary: #b6c0d4;
  --text-muted: #78849d;
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 8% 0%, rgba(99, 102, 241, .18), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(34, 211, 238, .12), transparent 28rem),
    linear-gradient(180deg, #080b14 0%, #0b1020 55%, #080b14 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .16;
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 20, .78);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-badge-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #0b1020;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 8px 24px rgba(103, 232, 249, .2);
}
.brand-text h1 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.brand-text p { margin: 3px 0 0; color: var(--text-muted); font-size: 11px; letter-spacing: .04em; }
.status-indicator { display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 5px rgba(52, 211, 153, .12), 0 0 18px var(--emerald); }

.main-wrapper { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.hero { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.hero-badge, .demo-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-badge::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.hero h2 { margin: 16px 0 14px; font-size: clamp(38px, 6vw, 68px); line-height: .98; letter-spacing: -.065em; background: linear-gradient(110deg, #fff 20%, #c4b5fd 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 650px; margin: 0 auto; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
.mode-switch-wrapper { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(15, 23, 42, .8); }
.mode-tab-btn { padding: 10px 15px; color: var(--text-muted); border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 12px; cursor: pointer; transition: .2s ease; }
.mode-tab-btn:hover { color: var(--text-primary); }
.mode-tab-btn.active { color: #08111f; background: linear-gradient(135deg, var(--cyan), #a5f3fc); font-weight: 750; box-shadow: 0 5px 18px rgba(103, 232, 249, .18); }
.demo-samples-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.demo-pill { padding: 7px 10px; color: var(--text-secondary); border: 1px solid var(--line); border-radius: 999px; background: rgba(17, 24, 39, .7); font: inherit; font-size: 11px; cursor: pointer; transition: .2s ease; }
.demo-pill:hover { color: var(--text-primary); border-color: var(--line-strong); background: rgba(79, 70, 229, .18); transform: translateY(-1px); }

.dropzone-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 44px 24px;
  border: 1px dashed rgba(103, 232, 249, .48);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, .94), rgba(20, 24, 48, .8));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.06);
  transition: .25s ease;
}
.dropzone-container::after { position: absolute; inset: auto -10% -75%; height: 240px; content: ""; border-radius: 50%; background: rgba(129, 140, 248, .15); filter: blur(60px); }
.dropzone-container.dragover, .dropzone-container:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: var(--shadow), 0 0 45px rgba(103, 232, 249, .12); }
.dropzone-icon { display: grid; width: 64px; height: 64px; place-items: center; color: var(--cyan); border: 1px solid rgba(103,232,249,.28); border-radius: 19px; background: rgba(103,232,249,.08); }
.dropzone-title { margin-top: 18px; font-size: 20px; font-weight: 720; letter-spacing: -.02em; }
.dropzone-subtitle { max-width: 620px; margin-top: 8px; color: var(--text-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.dropzone-buttons { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { color: #07111e; background: linear-gradient(135deg, var(--cyan), #bae6fd); box-shadow: 0 8px 20px rgba(103, 232, 249, .14); }
.btn-secondary { color: var(--text-secondary); border-color: var(--line); background: rgba(30, 41, 59, .75); }
.btn-secondary:hover { color: var(--text-primary); border-color: rgba(167,139,250,.55); background: rgba(51, 45, 101, .6); }
.btn-accent { color: #fff; background: linear-gradient(135deg, #7c3aed, #4f46e5); box-shadow: 0 10px 24px rgba(79,70,229,.25); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 11px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 11px; }

.workspace-grid { display: grid; gap: 18px; margin-top: 22px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.card-title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-primary); font-size: 14px; letter-spacing: -.01em; }
.card-title svg { color: var(--cyan); }
.card-body { padding: 18px 22px 22px; }
.file-list { display: grid; gap: 10px; }
.file-row, .restored-card-item { display: grid; grid-template-columns: minmax(230px, 1.4fr) minmax(150px, .8fr) minmax(130px, .7fr) auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 23, 42, .64); }
.file-row:hover, .restored-card-item:hover { border-color: rgba(103,232,249,.3); background: rgba(20, 30, 52, .8); }
.file-info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; color: var(--violet); border: 1px solid rgba(167,139,250,.24); border-radius: 10px; background: rgba(167,139,250,.1); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.file-meta { margin-top: 4px; color: var(--text-muted); font-size: 10px; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 750; }
.badge-p1 { color: var(--rose); background: rgba(251,113,133,.08); }
.badge-p2 { color: var(--amber); background: rgba(251,191,36,.08); }
.badge-p3, .badge-success { color: var(--emerald); background: rgba(52,211,153,.08); }
.damage-bar-track { height: 5px; overflow: hidden; margin-top: 7px; border-radius: 999px; background: rgba(148,163,184,.13); }
.damage-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), var(--amber), var(--rose)); }
.action-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 18px; border: 1px solid rgba(129,140,248,.25); border-radius: 14px; background: linear-gradient(110deg, rgba(79,70,229,.14), rgba(34,211,238,.05)); }
.action-banner > div:first-child { color: var(--text-primary); }
.action-banner > div:first-child div:last-child { max-width: 620px; margin-top: 5px; color: var(--text-muted) !important; font-size: 11px !important; line-height: 1.5; }
.restored-card-item { grid-template-columns: 1fr auto; }
.restored-card-item .restored-header-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; grid-column: 1 / -1; }
.restored-card-item > div:nth-child(2) { color: var(--text-secondary) !important; font-size: 12px !important; line-height: 1.55 !important; }
.restored-actions-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.recovery-evidence { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); color: var(--cyan); font: 10px/1.5 "SFMono-Regular", Consolas, monospace; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 6, 23, .78); backdrop-filter: blur(12px); }
.modal-dialog { width: min(940px, 100%); max-height: min(780px, 92vh); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #0e1526; box-shadow: 0 30px 100px rgba(0,0,0,.62); }
.modal-header, .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close-btn { color: var(--text-muted); border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close-btn:hover { color: var(--text-primary); }
.modal-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px 18px 0; border-bottom: 1px solid var(--line); }
.modal-tab-btn { flex: 0 0 auto; padding: 10px 12px; color: var(--text-muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.modal-tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.modal-body { max-height: 60vh; overflow: auto; padding: 20px 22px; }
.entity-pills-container { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.entity-pill { padding: 7px 9px; color: #c4b5fd; border: 1px solid rgba(167,139,250,.23); border-radius: 8px; background: rgba(124,58,237,.1); font-size: 11px; }
.content-preview-container, .report-box, .assessment-card, .graph-info-banner { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(15,23,42,.62); }
.content-preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.extracted-text-body { color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.code-block, .hex-viewer { overflow: auto; padding: 13px; border: 1px solid rgba(103,232,249,.12); border-radius: 10px; background: #080d18; color: #a5f3fc; font: 12px/1.65 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
.graph-info-banner { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.graph-canvas-wrapper { overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: #080d18; }
.graph-canvas-wrapper canvas { display: block; max-width: 100%; }
.assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.assessment-label { color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.assessment-value { margin-top: 8px; color: var(--text-primary); font-size: 24px; font-weight: 800; }
.report-box h4 { margin: 0 0 7px !important; }
.report-box p, .report-box ul { margin: 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

#toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; gap: 8px; width: min(360px, calc(100% - 44px)); }
.toast { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text-primary); background: rgba(17,24,39,.95); box-shadow: var(--shadow); font-size: 12px; }
.toast.success { border-color: rgba(52,211,153,.45); }
.toast.error { border-color: rgba(251,113,133,.5); }
.toast.warning { border-color: rgba(251,191,36,.5); }

@media (max-width: 760px) {
  .navbar { align-items: flex-start; padding: 14px 20px; }
  .status-indicator { padding-top: 8px; font-size: 0; }
  .main-wrapper { width: min(100% - 24px, 620px); padding-top: 40px; }
  .hero h2 { font-size: 46px; }
  .mode-switch-wrapper { display: flex; width: 100%; }
  .mode-tab-btn { flex: 1; padding-inline: 8px; }
  .file-row, .restored-card-item { grid-template-columns: 1fr; gap: 10px; }
  .file-row > div:last-child, .restored-actions-row { justify-content: flex-start; }
  .action-banner { align-items: stretch; flex-direction: column; }
  .content-preview-actions { align-items: flex-start; flex-direction: column; }
  .assessment-grid { grid-template-columns: 1fr; }
}

/* RecoverPy-style scan workstation: compact, information-dense, and action-led. */
body {
  color: #d8dee9;
  background: #111318;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}
body::before { display: none; }
.navbar {
  position: static;
  min-height: 52px;
  padding: 8px 18px;
  border-bottom: 1px solid #303640;
  background: #1a1d23;
  box-shadow: none;
}
.brand-badge-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 5px; box-shadow: none; }
.brand-badge-icon svg { width: 17px; height: 17px; }
.brand-text h1 { font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.brand-text p { margin-top: 2px; color: #87909f; font-family: inherit; font-size: 10px; letter-spacing: 0; }
.status-indicator { color: #9aa4b2; font-size: 11px; }
.status-dot { width: 7px; height: 7px; box-shadow: none; }
.main-wrapper { width: min(1440px, calc(100% - 32px)); padding: 22px 0 42px; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; max-width: none; margin: 0 0 12px; padding: 0 2px 13px; text-align: left; border-bottom: 1px solid #303640; }
.hero-badge { grid-column: 1 / -1; color: #7cc7a0; font-size: 10px; letter-spacing: 0; }
.hero-badge::before { display: none; }
.hero h2 { margin: 7px 0 0; color: #ecf0f4; background: none; -webkit-text-fill-color: initial; font-family: inherit; font-size: 23px; font-weight: 600; letter-spacing: 0; }
.hero p { grid-column: 1 / -1; max-width: 760px; margin: 5px 0 0; color: #8993a2; font-size: 11px; line-height: 1.55; text-align: left; }
.mode-switch-wrapper { grid-column: 2; grid-row: 2; align-self: end; margin: 0; padding: 2px; border-color: #303640; border-radius: 4px; background: #15181e; }
.mode-tab-btn { padding: 7px 10px; color: #929baa; border-radius: 3px; font-size: 10px; }
.mode-tab-btn.active { color: #111318; background: #91c7a6; box-shadow: none; }
.demo-samples-bar { grid-column: 1 / -1; justify-content: flex-start; gap: 6px; margin-top: 12px; }
.demo-label { color: #6f7988; font-size: 10px; letter-spacing: 0; }
.demo-pill { padding: 5px 8px; color: #aab3c0; border-color: #353c47; border-radius: 3px; background: #1a1e25; font-size: 10px; }
.demo-pill:hover { transform: none; color: #e4e9ef; border-color: #91c7a6; background: #222a2b; }
.dropzone-container { min-height: 145px; padding: 20px; border: 1px solid #39414d; border-radius: 4px; background: #1b1f26; box-shadow: none; }

/* ==========================================================================
   WELCOME LANDING SCREEN
   ========================================================================== */

.landing-page { display: none; }

body.landing-active {
  background: #fcf6ea;
  color: #432018;
  font-family: 'Outfit', 'Inter', sans-serif;
  overflow-x: hidden;
}

body.landing-active > .navbar,
body.landing-active > .main-wrapper { display: none; }

body.landing-active > #toast-root { display: none; }

body.landing-active .landing-page {
  display: block;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 157, 37, .32), transparent 31%),
    radial-gradient(ellipse at 86% 46%, rgba(255, 207, 128, .25), transparent 25%),
    #fff0d5;
}

.landing-page::before,
.landing-page::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: #ff8d1b;
}

.landing-page::before {
  width: 560px;
  height: 180px;
  left: -110px;
  top: -72px;
  border-radius: 0 0 55% 45%;
  transform: rotate(-12deg);
  box-shadow: 250px -38px 0 -10px #ffdca5;
}

.landing-page::after {
  width: 720px;
  height: 190px;
  right: -180px;
  bottom: -95px;
  border-radius: 55% 0 0 0;
  transform: rotate(-8deg);
  box-shadow: -330px 48px 0 -16px #ffb14e;
}

.landing-nav {
  width: min(1320px, calc(100% - 110px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #3e1713;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -1.5px;
  text-decoration: none;
}

.landing-brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(145deg, #ff5a18, #ff921a);
  box-shadow: 0 10px 22px rgba(233, 89, 17, .25);
  font-size: 31px;
  font-weight: 700;
}

.landing-links { display: flex; align-items: center; gap: clamp(25px, 4vw, 62px); }
.landing-links a {
  padding: 12px 0 8px;
  color: #4d2a20;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.landing-links a:hover,
.landing-links a.active { color: #2f1712; border-bottom-color: #f36b20; }

.landing-nav-cta {
  border: 0;
  border-radius: 24px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff641c, #f37b16);
  font: 700 14px 'Inter', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(237, 93, 22, .2);
}
.landing-nav-cta span { padding-left: 5px; }
.landing-nav-cta:hover { filter: brightness(1.06); }
.landing-nav-cta:focus-visible,
.landing-links a:focus-visible,
.landing-brand:focus-visible { outline: 3px solid #357a41; outline-offset: 4px; }

.landing-hero {
  width: min(1390px, calc(100% - 110px));
  min-height: calc(100vh - 142px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: 34px;
  position: relative;
  z-index: 1;
}

.landing-copy { padding: 28px 0 90px; }
.landing-kicker { color: #e85b1c; font-size: 13px; font-weight: 800; letter-spacing: 3px; margin-bottom: 18px; }
.landing-copy h2 {
  color: #451c17;
  font-size: clamp(54px, 6vw, 86px);
  line-height: .99;
  letter-spacing: -4px;
  margin-bottom: 25px;
}
.landing-copy h2 span { color: #f15d18; }
.landing-copy p { color: #5b3529; font-family: 'Inter', sans-serif; font-size: 20px; line-height: 1.55; margin-bottom: 30px; }
.landing-cta {
  border: 0;
  border-radius: 40px;
  padding: 17px 31px;
  color: #fff;
  background: linear-gradient(135deg, #ff641c, #f37b16);
  box-shadow: 0 12px 24px rgba(237, 93, 22, .28);
  cursor: pointer;
  font: 800 18px 'Inter', sans-serif;
  transition: transform .2s ease, box-shadow .2s ease;
}
.landing-cta span { padding-left: 10px; font-size: 24px; vertical-align: -1px; }
.landing-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(237, 93, 22, .36); }

.landing-features { display: flex; flex-wrap: wrap; gap: 0; margin-top: 78px; }
.landing-features div { display: flex; align-items: center; gap: 9px; padding: 0 22px; color: #5d392d; font: 600 13px 'Inter', sans-serif; border-right: 1px solid rgba(115, 67, 42, .25); }
.landing-features div:first-child { padding-left: 0; }
.landing-features div:last-child { border-right: 0; }
.landing-features span { color: #f47620; font-size: 26px; font-weight: 800; }

.landing-art { min-height: 560px; position: relative; }
.landing-art::before { content: ''; position: absolute; inset: 18% 4% 12% 2%; border-radius: 50%; background: rgba(255, 211, 137, .34); }
.landing-art::after { content: ''; position: absolute; width: 380px; height: 100px; left: 26%; bottom: 9%; border-radius: 50%; background: rgba(218, 135, 53, .15); filter: blur(7px); }
.art-file-chip { position: absolute; z-index: 2; width: 76px; height: 91px; display: grid; place-items: center; border-radius: 12px; color: white; font: 800 17px 'Inter', sans-serif; box-shadow: 0 12px 18px rgba(72, 37, 22, .15); transform: rotate(-12deg); }
.art-file-chip::after { content: ''; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 20px 20px 0; border-color: transparent rgba(255,255,255,.55) transparent transparent; }
.art-pdf { left: 16%; top: 25%; background: #f15f3c; }
.art-doc { left: 29%; top: 12%; background: #3478d2; transform: rotate(13deg); font-size: 38px; }
.art-xls { left: 46%; top: 18%; background: #2d9e67; transform: rotate(10deg); font-size: 30px; }
.art-img { left: 4%; top: 51%; background: #ef7431; transform: rotate(-18deg); font-size: 38px; }
.art-code { left: 34%; top: 45%; background: #8153b4; transform: rotate(-13deg); font-size: 14px; }
.art-zip { left: 51%; top: 43%; background: #8744a3; transform: rotate(15deg); font-size: 34px; }
.art-broken-file { position: absolute; z-index: 3; left: 20%; bottom: 17%; width: 248px; height: 174px; border-radius: 18px; border: 12px solid #64483d; background: #ad9990; transform: rotate(-5deg); box-shadow: 0 17px 0 rgba(93, 52, 36, .1), 0 24px 30px rgba(93, 52, 36, .18); }
.art-page-fold { position: absolute; right: -12px; top: -12px; width: 56px; height: 56px; border-left: 12px solid #64483d; border-bottom: 12px solid #64483d; background: #fff0d5; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.art-eye { position: absolute; top: 64px; width: 18px; height: 25px; border-radius: 50%; background: #432019; }
.art-eye.left { left: 65px; }.art-eye.right { right: 65px; }
.art-mouth { position: absolute; left: 95px; top: 93px; color: #432019; font-size: 44px; transform: rotate(90deg); }
.art-arrow { position: absolute; z-index: 4; left: 51%; bottom: 37%; color: #f47b18; font-size: 95px; transform: rotate(-8deg); text-shadow: 0 5px 0 rgba(222, 102, 17, .08); }
.art-folder { position: absolute; z-index: 4; right: 4%; bottom: 14%; width: 262px; height: 205px; border: 10px solid #b95d11; border-radius: 18px 18px 28px 28px; background: linear-gradient(#ffad31 0 18%, #ff8b19 18% 100%); box-shadow: 0 19px 0 rgba(159, 81, 17, .1), 0 25px 35px rgba(93, 52, 36, .18); }
.art-folder-tab { position: absolute; left: 12px; top: -32px; width: 100px; height: 43px; border: 10px solid #b95d11; border-bottom: 0; border-radius: 18px 18px 0 0; background: #ffad31; }
.art-folder-face { position: absolute; inset: 63px 0 0; text-align: center; color: #54301d; font-size: 53px; line-height: 1; }.art-folder-face span { display: inline-block; transform: translateY(9px) rotate(180deg); }.art-folder-face b { display: inline-block; margin: 0 12px; font-size: 20px; }.art-folder-face i { display: inline-block; font-style: normal; transform: translateY(9px) rotate(180deg); }
.art-spark { position: absolute; z-index: 5; color: #ff8b19; font-size: 42px; }.spark-one { right: 15%; top: 19%; }.spark-two { right: 1%; top: 48%; font-size: 34px; }
.landing-footer { position: relative; z-index: 1; padding: 18px 20px 26px; color: #7b4e39; text-align: center; font: 12px 'Inter', sans-serif; }

.recovery-history-card { margin-top: 16px; }
.history-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font: 11px var(--font-mono);
}
.history-retention-note { margin: 0 0 12px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.recovery-history-list { display: grid; gap: 10px; }
.history-empty { padding: 18px; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-muted); text-align: center; font-size: 12px; }
.history-run { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: rgba(15, 23, 42, .48); }
.history-run-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.history-run-header > div, .history-file-details { display: grid; gap: 4px; min-width: 0; }
.history-run-header strong, .history-file-details strong { overflow-wrap: anywhere; color: var(--text-primary); font-size: 12px; }
.history-run-header span, .history-file-details span { color: var(--text-muted); font-size: 10px; }
.history-run-files { display: grid; }
.history-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.history-file-row + .history-file-row { border-top: 1px solid var(--border); }
.history-file-row .badge { flex: 0 0 auto; }

@media (max-width: 900px) {
  .landing-nav, .landing-hero { width: min(100% - 42px, 660px); }
  .landing-links { gap: 15px; }.landing-links a { font-size: 13px; }
  .landing-hero { display: block; min-height: auto; }.landing-copy { padding: 55px 0 20px; text-align: center; }.landing-copy h2 { letter-spacing: -2px; }.landing-copy p { font-size: 16px; }.landing-features { justify-content: center; margin-top: 45px; }.landing-features div { margin-bottom: 16px; }
  .landing-art { min-height: 470px; transform: scale(.82); transform-origin: top center; margin-bottom: -70px; }
}

@media (max-width: 560px) {
  .landing-nav { width: calc(100% - 28px); height: auto; min-height: 72px; padding: 12px 0; flex-wrap: wrap; gap: 8px; }
  .landing-brand { font-size: 19px; gap: 8px; }
  .landing-brand-icon { width: 34px; height: 34px; font-size: 22px; }
  .landing-nav-cta { padding: 10px 12px; font-size: 12px; }
  .landing-links { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .landing-links a { font-size: 12px; }
  .landing-copy h2 { font-size: 48px; }.landing-features div { padding: 0 10px; font-size: 11px; }.landing-features span { font-size: 20px; }.landing-art { margin-left: -80px; margin-right: -80px; transform: scale(.62); margin-bottom: -180px; }
}
.dropzone-container::after { display: none; }
.dropzone-container.dragover, .dropzone-container:hover { transform: none; border-color: #91c7a6; box-shadow: 0 0 0 1px rgba(145,199,166,.18); }
.dropzone-icon { width: 36px; height: 36px; border-color: #3d6b54; border-radius: 4px; background: #1e3027; }
.dropzone-icon svg { width: 18px; height: 18px; }
.dropzone-title { margin-top: 10px; color: #e5e9ef; font-size: 13px; font-weight: 600; }
.dropzone-subtitle { max-width: none; margin-top: 5px; color: #7f8998; font-size: 10px; }
.dropzone-buttons { margin-top: 14px; }
.btn { min-height: 29px; padding: 0 10px; border-radius: 3px; font-family: inherit; font-size: 10px; font-weight: 600; box-shadow: none; }
.btn:hover { transform: none; }
.btn-primary { color: #111318; background: #91c7a6; }
.btn-secondary { color: #c4ccd7; border-color: #3b434e; background: #242932; }
.btn-secondary:hover { color: #fff; border-color: #91c7a6; background: #2d3735; }
.btn-accent { color: #111318; background: #e0b86a; }
.recovery-history-card { margin-top: 12px; }
.history-run { border-radius: 3px; }
.history-run-header { padding: 9px; }
.history-file-row { padding: 8px 9px; }
.history-retention-note, .history-empty { font-size: 9px; }
.workspace-grid { grid-template-columns: minmax(0, 1.6fr) minmax(340px, .9fr); align-items: start; gap: 12px; margin-top: 12px; }
.card { border-color: #303640; border-radius: 4px; background: #1a1e24; box-shadow: none; }
.card-header { min-height: 44px; padding: 9px 12px; border-bottom-color: #303640; background: #20252d; }
.card-title { color: #dce2e9; font-size: 11px; font-weight: 600; }
.card-title svg { color: #91c7a6; width: 14px; height: 14px; }
.card-body { padding: 10px; }
.file-list { gap: 3px; }
.file-row, .restored-card-item { grid-template-columns: minmax(160px, 1.5fr) minmax(115px, .8fr) minmax(100px, .7fr) auto; gap: 9px; padding: 8px 9px; border-color: #303640; border-radius: 3px; background: #15181d; }
.file-row:hover, .restored-card-item:hover { border-color: #596675; background: #20252c; }
.file-icon { width: 24px; height: 24px; flex-basis: 24px; border-color: #39414d; border-radius: 3px; background: #20252d; }
.file-icon svg { width: 13px; height: 13px; }
.file-name { font-size: 10px; }
.file-meta { margin-top: 2px; font-size: 9px; }
.badge { padding: 3px 5px; border-radius: 2px; font-size: 9px; font-weight: 500; }
.damage-bar-track { height: 3px; margin-top: 4px; }
.action-banner { align-items: center; margin-top: 10px; padding: 10px; border-color: #39414d; border-radius: 3px; background: #20252d; }
.action-banner > div:first-child { font-size: 11px !important; }
.action-banner > div:first-child div:last-child { font-size: 9px !important; }
.restored-card-item { grid-template-columns: 1fr; }
.restored-card-item .restored-header-row { gap: 8px; }
.restored-actions-row { justify-content: flex-start; }
.recovery-evidence { padding-top: 7px; border-top-color: #303640; font-size: 9px; }
.modal-backdrop { padding: 12px; background: rgba(8,10,13,.84); backdrop-filter: none; }
.modal-dialog { width: min(1000px, 100%); max-height: 94vh; border-color: #46515f; border-radius: 4px; background: #171a20; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.modal-header, .modal-footer { padding: 10px 12px; border-color: #303640; }
.modal-header h3 { font-size: 12px; }
.modal-tabs { padding: 6px 10px 0; border-color: #303640; }
.modal-tab-btn { padding: 7px 9px; font-size: 9px; }
.modal-body { max-height: 66vh; padding: 12px; }
.entity-pill, .content-preview-container, .report-box, .assessment-card, .graph-info-banner { border-color: #303640; border-radius: 3px; background: #111419; }
.entity-pill { padding: 5px 6px; font-size: 9px; }
.content-preview-actions { padding-bottom: 8px; margin-bottom: 8px; border-color: #303640; }
.extracted-text-body { font-size: 10px; }
.code-block, .hex-viewer { border-color: #303640; border-radius: 3px; font-size: 10px; }
.graph-canvas-wrapper { border-color: #303640; border-radius: 3px; background: #111419; }
.assessment-value { font-size: 20px; }
#toast-root { right: 14px; bottom: 14px; width: min(320px, calc(100% - 28px)); }
.toast { padding: 9px 11px; border-radius: 3px; font-size: 10px; }

@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .mode-switch-wrapper { grid-column: 1; grid-row: auto; width: fit-content; margin-top: 12px; }
}

/* Reference landing artwork with transparent controls layered over the supplied image. */
body.landing-active .landing-page { background: #fcf6ea; }
body.landing-active .landing-page::before,
body.landing-active .landing-page::after { display: none; }
body.landing-active .landing-nav { position: sticky; top: 0; background: rgba(252, 246, 234, .94); backdrop-filter: blur(12px); }
.reference-landing { display: none; }
body.landing-active .reference-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #fcf6ea;
  overflow: hidden;
}
.reference-landing-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.reference-landing-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center;
}
.reference-nav-overlay {
  position: absolute;
  z-index: 3;
  top: 18%;
  left: 3%;
  width: 27%;
  height: 6%;
  display: flex;
  justify-content: space-between;
}
.reference-nav-overlay a {
  width: 24%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f3a2b;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-size: clamp(12px, 1.1vw, 17px);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .18s ease, border-bottom-color .18s ease;
}
.reference-nav-overlay a:hover,
.reference-nav-overlay a:focus-visible { color: #357a41; border-bottom-color: rgba(65, 140, 75, .9); outline: none; }
.reference-recover-overlay {
  position: absolute;
  z-index: 3;
  left: 3%;
  top: 44%;
  width: 17.2%;
  height: 8.2%;
  min-width: 140px;
  border: 0;
  border-radius: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #4d9e5c 0%, #357a41 100%);
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(53, 122, 65, 0.34);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.reference-recover-overlay span {
  display: inline-block;
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
.reference-recover-overlay:hover,
.reference-recover-overlay:focus-visible {
  background: linear-gradient(135deg, #57ac66 0%, #3c8a49 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(53, 122, 65, 0.46);
  outline: none;
}
.reference-recover-overlay:hover span {
  transform: translateX(4px);
}
.reference-recover-overlay:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Landing content sections (About / Features / Contact) ---------- */
.lp-section {
  position: relative;
  z-index: 2;
  padding: 88px 24px;
  background: #f6f8ef;
}
.lp-container { width: min(1120px, 100%); margin: 0 auto; }
.lp-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #418c4b;
  margin-bottom: 14px;
}
.lp-h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  color: #24301f;
  margin: 0 0 16px;
}
.lp-lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: #4b5647;
  max-width: 720px;
  margin: 0;
}
.lp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}
.lp-stat {
  flex: 1 1 200px;
  background: #ffffff;
  border: 1px solid #e0e6d3;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 6px 18px rgba(53, 90, 45, 0.06);
}
.lp-stat strong { display: block; font-size: 30px; font-weight: 700; color: #357a41; }
.lp-stat span { display: block; margin-top: 6px; font-size: 13px; color: #5c6657; }

.lp-features { background: #eef1e2; }
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.lp-card {
  background: #ffffff;
  border: 1px solid #e2e7d6;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 8px 22px rgba(53, 90, 45, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(53, 90, 45, 0.12); }
.lp-card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: #eaf3e6;
  margin-bottom: 16px;
}
.lp-card h3 { font-size: 17px; font-weight: 700; color: #24301f; margin: 0 0 8px; }
.lp-card p { font-size: 14px; line-height: 1.6; color: #5c6657; margin: 0; }

.lp-contact { background: #f6f8ef; }
.lp-contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-contact-inner .lp-lead { margin: 0 auto; }
.lp-cta {
  margin-top: 30px;
  border: 0;
  border-radius: 42px;
  padding: 15px 34px;
  color: #fff;
  background: linear-gradient(135deg, #4d9e5c 0%, #357a41 100%);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(53, 122, 65, 0.32);
  cursor: pointer;
  transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
}
.lp-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(53, 122, 65, 0.44); }
.lp-cta span { transition: transform .2s ease; }
.lp-cta:hover span { transform: translateX(4px); }
.lp-contact-links { margin-top: 24px; font-size: 14px; color: #5c6657; }
.lp-contact-links a { color: #357a41; text-decoration: none; font-weight: 600; }
.lp-contact-links a:hover { text-decoration: underline; }
.lp-contact-links .lp-dot { margin: 0 10px; color: #b9c2ad; }

.lp-footer {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: #6b7566;
  background: #24301f;
  color: #cdd6c6;
}

@media (max-width: 900px) {
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lp-section { padding: 60px 20px; }
  .lp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PRE-RECOVERY PROBLEM ANALYSIS PANELS
   ========================================================================== */
.analysis-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 12px 18px;
  margin-bottom: 14px;
  background: rgba(14, 19, 31, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.analysis-summary strong { color: var(--text-primary); }
.analysis-summary .ok strong { color: var(--emerald); }
.analysis-summary .bad strong { color: var(--rose); }
.analysis-summary-note {
  flex-basis: 100%;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
}

.file-row .analysis-panel { grid-column: 1 / -1; }

.analysis-panel {
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.analysis-title,
.analysis-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.analysis-subtitle { margin-bottom: 6px; color: var(--text-secondary); }
.analysis-issues { display: flex; flex-direction: column; gap: 6px; }
.analysis-issue {
  font-size: 12px;
  line-height: 1.5;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
}
.analysis-ok {
  font-size: 12px;
  line-height: 1.5;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  padding: 8px 12px;
}
.analysis-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.analysis-chip {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.analysis-chip.ok { color: var(--emerald); border-color: rgba(16, 185, 129, 0.4); }
.analysis-chip.warn { color: var(--amber); border-color: rgba(245, 158, 11, 0.4); }
.analysis-chip.bad { color: var(--rose); border-color: rgba(244, 63, 94, 0.4); }
.analysis-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.analysis-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}
.analysis-fact span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.analysis-fact strong { font-size: 13px; color: var(--text-primary); font-family: var(--font-mono); }
.analysis-note { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
