  @import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap');

  :root {
    --bg-base: #08090d;
    --bg-panel: #0f1218;
    --bg-elevated: #141822;
    --bg-hover: #1a1f2b;
    --border: #1c2130;
    --border-strong: #2a3245;
    --text-primary: #e8ecf3;
    --text-secondary: #8894a8;
    --text-muted: #4e5768;
    --accent: #a855f7;
    --accent-hover: #c084fc;
    --accent-dim: rgba(168, 85, 247, 0.12);
    --success: #34d399;
    --success-dim: rgba(52, 211, 153, 0.13);
    --warning: #fbbf24;
    --warning-dim: rgba(251, 191, 36, 0.13);
    --danger: #f87171;
    --danger-dim: rgba(248, 113, 113, 0.13);
    --purple: #c084fc;
    --purple-dim: rgba(192, 132, 252, 0.13);
    --cyan: #67e8f9;
    --cyan-dim: rgba(103, 232, 249, 0.12);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  }

  /* Final Tailark hero-section/five clone without glow */
  .tailark-hero-five {
    position: relative;
    overflow: hidden;
    background: #0A0A0A !important;
    color: #FAFAFA !important;
  }

  .tailark-hero-stage {
    position: relative;
    padding-top: 96px !important;
    padding-bottom: 144px !important;
  }

  .tailark-hero-copy-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
  }

  .tailark-hero-copy {
    max-width: 50%;
  }

  .tailark-hero-title {
    max-width: 28rem;
    margin: 0;
    color: #FAFAFA !important;
    font-size: clamp(3rem, 6vw, 3.75rem);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .tailark-hero-subtitle {
    max-width: 42rem;
    margin: 1rem 0 2rem !important;
    color: #A1A1A1 !important;
    font-size: 1.25rem;
    line-height: 1.55;
    text-wrap: balance;
  }

  .tailark-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .tailark-hero-primary,
  .tailark-hero-secondary {
    display: inline-flex;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .tailark-hero-primary {
    padding: 0 0.625rem 0 1rem;
    border: 1px solid #FAFAFA !important;
    background: #FAFAFA !important;
    color: #0A0A0A !important;
  }

  .tailark-hero-secondary {
    padding: 0 1rem 0 0.875rem;
    border: 1px solid #252525 !important;
    background: #111111 !important;
    color: #FAFAFA !important;
  }

  .tailark-hero-primary:hover,
  .tailark-hero-secondary:hover {
    transform: translateY(-1px);
  }

  .tailark-hero-actions svg {
    width: 1rem;
    height: 1rem;
  }

  .tailark-hero-secondary svg {
    color: #FAFAFA !important;
    fill: #252525 !important;
    stroke: #FAFAFA !important;
  }

  .tailark-hero-preview {
    position: absolute;
    z-index: 20;
    top: 10rem;
    right: -1.5rem;
    bottom: 4rem;
    left: 50%;
    margin-top: 0;
    transform: none;
    perspective: 1200px;
  }

  .tailark-preview-shell {
    position: relative;
    height: 100%;
    max-width: 48rem;
  }

  .tailark-preview-shell::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0 -1rem 1.75rem;
    border: 1px solid #252525;
    border-radius: 22px;
    background: #111111;
    transform: skewX(6deg);
  }

  .tailark-preview-frame {
    position: relative;
    height: 100%;
    min-height: 0 !important;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #252525 !important;
    border-radius: 6px !important;
    background: #0A0A0A !important;
    box-shadow: none !important;
    transform: translateY(-3rem) skewX(6deg) !important;
  }

  .tailark-preview-frame::before {
    display: none !important;
  }

  .tailark-preview-topbar,
  .tailark-preview-main,
  .tailark-preview-side > div,
  .tailark-signal-list span {
    border: 1px solid #252525 !important;
    border-radius: 6px !important;
    background: #111111 !important;
    color: #A1A1A1 !important;
    box-shadow: none !important;
  }

  .tailark-preview-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .tailark-preview-topbar span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #525252;
  }

  .tailark-preview-topbar strong {
    margin-left: 8px;
    color: #FAFAFA !important;
    font-weight: 600;
  }

  .tailark-preview-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    margin-top: 14px;
  }

  .tailark-preview-main {
    padding: 22px;
  }

  .tailark-preview-kicker,
  .tailark-preview-main p,
  .tailark-signal-list span,
  .tailark-preview-side > div {
    color: #A1A1A1 !important;
  }

  .tailark-preview-kicker {
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
  }

  .tailark-preview-main h2 {
    margin: 12px 0 0;
    color: #FAFAFA !important;
    font-size: 34px;
    line-height: 1;
  }

  .tailark-preview-main p {
    margin: 10px 0 18px;
    font-size: 13px;
  }

  .tailark-score-row {
    display: flex;
    justify-content: space-between;
    color: #FAFAFA !important;
    font-size: 13px;
    font-weight: 650;
  }

  .tailark-score-row strong {
    color: #D64545 !important;
  }

  .tailark-score-track {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #252525 !important;
  }

  .tailark-score-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #FAFAFA !important;
  }

  .tailark-signal-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .tailark-signal-list span {
    padding: 9px 10px;
    font-size: 12px;
  }

  .tailark-preview-side {
    display: grid;
    gap: 12px;
  }

  .tailark-preview-side > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 12px;
    font-size: 12px;
  }

  .tailark-preview-side strong {
    margin-top: 5px;
    color: #FAFAFA !important;
    font-size: 15px;
  }

  @media (min-width: 768px) {
    .tailark-hero-stage {
      padding-top: 144px !important;
    }
  }

  @media (min-width: 1024px) {
    .tailark-hero-stage {
      padding-top: 176px !important;
    }
  }

  @media (max-width: 900px) {
    .tailark-hero-stage {
      padding-top: 72px !important;
      padding-bottom: 72px !important;
    }

    .tailark-hero-copy {
      max-width: 100%;
    }

    .tailark-hero-preview {
      position: relative;
      inset: auto;
      margin-top: 6rem;
      transform: translateX(3rem);
    }

    .tailark-preview-frame {
      min-height: 360px !important;
    }
  }

  @media (max-width: 640px) {
    .tailark-hero-title {
      font-size: 3rem;
    }

    .tailark-hero-subtitle {
      font-size: 1rem;
    }

    .tailark-hero-actions {
      flex-wrap: wrap;
    }

    .tailark-hero-preview {
      transform: none;
    }

    .tailark-preview-frame {
      transform: translateY(-2rem) skewX(4deg) !important;
    }

    .tailark-preview-grid {
      grid-template-columns: 1fr;
    }
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; }
  body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
  }
  .font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #232a3a; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #303a4f; }

  /* ─── App Shell ─── */
  .app-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 100vh;
  }
  .app-shell.no-sidebar { grid-template-columns: 1fr; }

  /* ─── Sidebar ─── */
  .sidebar {
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    overflow-y: auto;
  }
  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
  }
  .brand-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(168,85,247,0.3);
  }
  .brand-text .brand-name { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
  .brand-text .brand-sub { font-size: 10px; color: var(--text-muted); }

  .nav-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 10px 6px;
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
  }
  .nav-item i { width: 16px; text-align: center; font-size: 12px; opacity: 0.85; }
  .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
  .nav-item.active {
    background: var(--accent-dim);
    color: var(--accent);
  }
  .nav-item.active i { opacity: 1; }
  .nav-spacer { flex: 1; }

  /* ─── Main area ─── */
  .main-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    position: relative;
  }

  /* ─── File Tab Strip (Chrome-style, wenn mehrere Files) ─── */
  .file-tabs {
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
  }
  .file-tabs::-webkit-scrollbar { height: 4px; }
  .file-tabs.hidden { display: none; }

  .file-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 14px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    max-width: 220px;
    min-width: 140px;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
    position: relative;
  }
  .file-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
  }
  .file-tab.active {
    background: var(--bg-panel);
    color: var(--text-primary);
    border-color: var(--border-strong);
    z-index: 2;
  }
  .file-tab.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--bg-panel);
  }
  .file-tab-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
  }
  .file-tab-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
  }
  .file-tab-close {
    width: 18px; height: 18px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
  }
  .file-tab-close:hover {
    background: var(--danger-dim);
    color: var(--danger);
  }

  /* ─── File Header (persistent bar above tab content) ─── */
  .file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    gap: 20px;
    flex-shrink: 0;
  }
  .file-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
  }
  .file-icon-lg {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
  }
  .file-name-block { min-width: 0; }
  .file-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
  }
  .file-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
    margin-top: 2px;
  }
  .file-meta span { display: inline-flex; align-items: center; gap: 4px; }
  .file-header-right { display: flex; gap: 8px; flex-shrink: 0; }

  /* ─── Content area ─── */
  .tab-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }
  .tab-content-area > * + * { margin-top: 16px; }

  /* ─── Cards ─── */
  .card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: border-color 0.15s;
  }
  .card:hover { border-color: var(--border-strong); }
  .card.p-3 { padding: 12px; }
  .card.p-4 { padding: 16px; }
  .card.p-5 { padding: 20px; }

  .card-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
  }
  .card-title i { color: var(--accent); font-size: 12px; }

  /* ─── Metric row (label + value) ─── */
  .metric-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid transparent;
  }
  .metric-row .label { color: var(--text-secondary); }
  .metric-row .value { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 11px; }

  /* ─── Buttons ─── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
  }
  .btn i { font-size: 11px; }
  .btn-primary {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
  }
  .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(168,85,247,0.25); }
  .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
  }
  .btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
  }
  .btn-danger {
    background: transparent;
    border-color: var(--border);
    color: var(--danger);
  }
  .btn-danger:hover { background: var(--danger-dim); border-color: var(--danger); }
  .btn-sm { padding: 5px 10px; font-size: 11px; }

  /* ─── Badges ─── */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid transparent;
  }
  .badge-red { background: var(--danger-dim); color: var(--danger); border-color: rgba(248,113,113,0.25); }
  .badge-yellow { background: var(--warning-dim); color: var(--warning); border-color: rgba(251,191,36,0.25); }
  .badge-green { background: var(--success-dim); color: var(--success); border-color: rgba(52,211,153,0.25); }
  .badge-blue { background: var(--accent-dim); color: var(--accent); border-color: rgba(168,85,247,0.25); }
  .badge-purple { background: var(--purple-dim); color: var(--purple); border-color: rgba(192,132,252,0.25); }
  .badge-gray { background: var(--bg-hover); color: var(--text-secondary); border-color: var(--border); }

  /* ─── Landing Page ─── */
  .dropzone-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    overflow-y: auto;
    background: radial-gradient(ellipse 900px 500px at 50% -100px, rgba(168,85,247,0.06), transparent 60%);
  }
  .landing-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* Hero */
  .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0 4px;
  }
  .hero-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(192,132,252,0.2));
    border: 1px solid rgba(168,85,247,0.35);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 30px;
    margin-bottom: 20px;
    box-shadow: 0 12px 40px rgba(168,85,247,0.15);
  }
  .hero-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 10px 0 0;
    max-width: 620px;
    line-height: 1.5;
  }
  .hero-highlights {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
  }

  /* Content Grid: Dropzone + Recent */
  .landing-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .landing-content.with-recent {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  /* Feature Grid unten */
  .landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .feature-card {
    padding: 16px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s, transform 0.15s;
    cursor: default;
  }
  .feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }
  .feature-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    margin-bottom: 10px;
  }
  .feature-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
  }
  .feature-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
  }

  /* Landing Footer Stats */
  .landing-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
  }
  .landing-footer strong { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }
  .landing-footer .sep { color: var(--text-muted); }

  /* ─── Recent Uploads Panel ─── */
  .recent-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    /* Höhe wird per JS synchron zur linken Spalte gesetzt */
  }
  .recent-panel #recent-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
  }
  .recent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .recent-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .recent-stat {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .recent-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
  .recent-stat-value { font-size: 22px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

  .recent-item {
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--text-muted);
    border-radius: 6px;
    display: flex; flex-direction: column; gap: 4px;
    font-size: 12px;
  }
  .recent-item-name { font-weight: 600; color: var(--text-primary); word-break: break-all; }
  .recent-item-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--text-muted); }

  /* Privacy Toggle Card (unterhalb Dropzone) */
  .privacy-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.18s, background 0.18s;
    cursor: pointer;
    user-select: none;
  }
  .privacy-card:hover { border-color: var(--border-strong); }
  .privacy-card.active {
    border-color: rgba(192,132,252,0.4);
    background: linear-gradient(90deg, var(--purple-dim), var(--bg-panel));
  }
  .privacy-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
  }
  .privacy-card.active .privacy-icon {
    background: var(--purple-dim);
    border-color: rgba(192,132,252,0.4);
    color: var(--purple);
  }
  .privacy-text { flex: 1; min-width: 0; }
  .privacy-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
  }
  .privacy-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 2px 0 0;
    line-height: 1.4;
  }

  /* iOS-Style Toggle Switch */
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
  }
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
  }
  .toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }
  .toggle-switch input:checked + .toggle-slider {
    background: var(--purple);
    border-color: var(--purple);
  }
  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
  }
  #drop-zone {
    width: 100%;
    padding: 44px 32px;
    background: var(--bg-panel);
    border: 1.5px dashed var(--border-strong);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  #drop-zone::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, var(--accent-dim), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  #drop-zone:hover, #drop-zone.drag-active {
    border-color: var(--accent);
    background: var(--bg-elevated);
  }
  #drop-zone:hover::before, #drop-zone.drag-active::before { opacity: 1; }
  #drop-zone.drag-active { transform: scale(1.01); box-shadow: 0 0 60px rgba(168,85,247,0.15); }

  .dropzone-inner { position: relative; text-align: center; }
  .dropzone-icon {
    width: 60px; height: 60px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(192,132,252,0.15));
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 24px;
  }
  .dropzone-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
  }
  .dropzone-subtitle {
    color: var(--text-secondary);
    font-size: 12.5px;
    max-width: 420px;
    margin: 0 auto 18px;
    line-height: 1.55;
  }
  .dropzone-features {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .dropzone-features .badge { font-size: 9px; }
  .dropzone-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 20px;
  }

  /* ─── Header (top bar over app shell) ─── */
  .top-header {
    display: none;  /* Header is now inside sidebar-brand */
  }

  /* ─── Loading overlay ─── */
  .loading-overlay {
    position: absolute; inset: 0;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .loading-overlay.visible { display: flex; }
  .loading-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 28px 36px;
    width: 340px;
    text-align: center;
    box-shadow: var(--shadow-lg);
  }
  .loading-spinner {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  .loading-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .loading-file {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 14px;
    word-break: break-all;
  }

  /* ─── Progress bar ─── */
  .progress-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 3px;
    transition: width 0.4s ease;
  }
  .progress-status { font-size: 11px; color: var(--text-secondary); margin-top: 8px; }

  /* ─── Code block ─── */
  pre.code-block {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.65;
    max-height: 480px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
  }

  /* ─── Risk gauge (used in overview) ─── */
  .risk-gauge {
    width: 130px; height: 130px;
    position: relative;
    margin: 0 auto;
  }
  .risk-gauge svg { transform: rotate(-90deg); }
  .risk-gauge circle { fill: none; stroke-width: 10; }
  .risk-gauge .track { stroke: var(--border); }
  .risk-gauge .fill { transition: stroke-dashoffset 0.6s ease; }
  .risk-gauge-label {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
  }
  .risk-gauge-value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
  .risk-gauge-suffix { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

  /* ─── Section highlights ─── */
  .table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  .table-modern th {
    text-align: left;
    padding: 10px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel);
  }
  .table-modern td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
  }
  .table-modern tr:hover td { background: var(--bg-hover); }
  .table-modern tr:last-child td { border-bottom: none; }

  /* ─── Chip container (for imports/exports) ─── */
  .chip-grid { display: flex; flex-wrap: wrap; gap: 5px; }
  .chip {
    padding: 4px 9px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--text-primary);
    cursor: default;
    transition: border-color 0.12s;
  }
  .chip:hover { border-color: var(--border-strong); }
  .chip.chip-red { background: var(--danger-dim); color: var(--danger); border-color: rgba(248,113,113,0.25); }
  .chip.chip-yellow { background: var(--warning-dim); color: var(--warning); border-color: rgba(251,191,36,0.25); }

  /* ─── Empty state ─── */
  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 13px;
  }
  .empty-state i { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }

  /* ─── Animations ─── */
  @keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .animate-fade-in { animation: fadeInUp 0.35s ease forwards; }
  .animate-pulse-slow { animation: pulse 2s infinite; }

  /* ─── Upload-Confirm Modal ─── */
  .modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(8, 9, 13, 0.72);
    backdrop-filter: blur(6px);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInBackdrop 0.18s ease;
  }
  .modal-backdrop.hidden { display: none; }
  @keyframes fadeInBackdrop { from { opacity: 0; } to { opacity: 1; } }

  .modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
  }
  .modal-header-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-dim);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }
  .modal-title { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
  .modal-subtitle { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0 0; }

  .modal-body {
    padding: 16px 22px;
    overflow-y: auto;
    flex: 1;
  }

  .modal-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  .modal-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .modal-file-icon {
    width: 32px; height: 32px;
    border-radius: 7px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
  }
  .modal-file-name {
    flex: 1;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .modal-file-size {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
  }

  .modal-summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 12px;
    color: var(--text-secondary);
  }
  .modal-summary strong { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }

  .modal-privacy {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
  }
  .modal-privacy-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-primary);
  }
  .modal-privacy-text small {
    display: block;
    color: var(--text-secondary);
    margin-top: 2px;
    font-size: 10.5px;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-base);
  }
  .modal-footer .btn { padding: 9px 16px; font-size: 12px; }

  /* ─── Top-Right Controls (Admin + Lang, floating) ─── */
  .top-right-controls {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.12s, border-color 0.12s, background 0.12s;
    box-shadow: var(--shadow-md);
  }
  .admin-link:hover {
    color: var(--danger);
    border-color: rgba(248,113,113,0.35);
    background: linear-gradient(rgba(248,113,113,0.06), rgba(15,18,24,0.85));
  }
  .admin-link i { font-size: 11px; }

  /* ─── User Chip ─── */
  .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: linear-gradient(90deg, var(--accent-dim), rgba(15,18,24,0.85));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.12s;
    box-shadow: var(--shadow-md);
  }
  .user-chip:hover { border-color: var(--accent); }
  .user-chip i { font-size: 10px; }

  /* Login-Gate: Overlay auf Tabs die Auth brauchen */
  .login-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
  }
  .login-gate-icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-dim), var(--purple-dim));
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 20px;
  }
  .login-gate h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
  }
  .login-gate p {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.55;
  }
  .login-gate .btn-group { display: flex; gap: 10px; }

  .nav-item.locked {
    opacity: 0.5;
    position: relative;
  }
  .nav-item.locked::after {
    content: '\f023'; /* fa-lock */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 9px; color: var(--text-muted);
  }

  /* ─── Language Switcher (Floating) ─── */
  .lang-switcher {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: rgba(15, 18, 24, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
  }
  .lang-switcher button {
    background: transparent;
    border: none;
    padding: 5px 10px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    font-family: inherit;
  }
  .lang-switcher button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
  }
  .lang-switcher button.active {
    background: var(--accent-dim);
    color: var(--accent);
  }

  /* ─── Toast ─── */
  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
    max-width: 380px;
  }
  .toast.toast-success {
    background: var(--bg-panel);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.35);
  }
  .toast.toast-error {
    background: var(--bg-panel);
    color: var(--danger);
    border: 1px solid rgba(248,113,113,0.35);
  }

  /* ─── State toggle shims (kompat. mit vorhandenem JS) ─── */
  .loading-overlay.flex, .loading-overlay:not(.hidden).flex { display: flex !important; }
  .loading-overlay.hidden { display: none !important; }
  #results-panel.hidden { display: none !important; }
  #drop-zone-wrap.hidden { display: none !important; }
  .nav-item.hidden { display: none !important; }

  /* ─── Old class shims (Tailwind text-*-400 for backwards compat with existing render funcs) ─── */
  .text-blue-400 { color: var(--accent) !important; }
  .text-green-400 { color: var(--success) !important; }
  .text-red-400 { color: var(--danger) !important; }
  .text-yellow-400 { color: var(--warning) !important; }
  .text-orange-400 { color: var(--warning) !important; }
  .text-purple-400 { color: var(--purple) !important; }
  .text-cyan-400 { color: var(--cyan) !important; }
  .text-gray-300 { color: var(--text-primary); }
  .text-gray-400 { color: var(--text-secondary); }
  .text-gray-500 { color: var(--text-secondary); }
  .text-gray-600 { color: var(--text-muted); }

  /* Premium glass design override */
  :root {
    --bg-base: #f7f8fa;
    --bg-panel: rgba(255, 255, 255, 0.68);
    --bg-elevated: rgba(255, 255, 255, 0.82);
    --bg-hover: rgba(255, 224, 232, 0.32);
    --border: rgba(26, 26, 26, 0.08);
    --border-strong: rgba(26, 26, 26, 0.14);
    --text-primary: #1a1a1a;
    --text-secondary: #5f6368;
    --text-muted: #8d9299;
    --accent: #f3a8ba;
    --accent-hover: #e98ba4;
    --accent-dim: rgba(255, 224, 232, 0.58);
    --success: #3f8f73;
    --success-dim: rgba(63, 143, 115, 0.10);
    --warning: #b98620;
    --warning-dim: rgba(185, 134, 32, 0.12);
    --danger: #c94c62;
    --danger-dim: rgba(201, 76, 98, 0.12);
    --purple: #d18ca1;
    --purple-dim: rgba(255, 224, 232, 0.48);
    --cyan: #5f9ea0;
    --cyan-dim: rgba(95, 158, 160, 0.10);
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-strong: rgba(255, 255, 255, 0.84);
    --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 12px 34px rgba(26, 26, 26, 0.07);
    --shadow-lg: 0 28px 80px rgba(26, 26, 26, 0.11);
  }

  html { background: #f7f8fa; }
  body {
    background:
      radial-gradient(circle at 16% 8%, rgba(255, 224, 232, 0.76), transparent 28rem),
      radial-gradient(circle at 84% 4%, rgba(255, 255, 255, 0.95), transparent 30rem),
      linear-gradient(180deg, #ffffff 0%, #f7f8fa 48%, #ffffff 100%);
    color: var(--text-primary);
    font-size: 13px;
    letter-spacing: 0;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(26, 26, 26, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(26, 26, 26, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 72%);
  }

  .app-shell,
  .main-area,
  .dropzone-wrap {
    background: transparent;
  }

  .dropzone-wrap {
    padding: 72px 28px 36px;
    overflow-x: hidden;
  }

  .landing-container {
    max-width: 1180px;
    gap: 28px;
  }

  .landing-hero {
    position: relative;
    padding: 70px 24px 30px;
    min-height: 360px;
    justify-content: center;
    isolation: isolate;
  }

  .landing-hero::before {
    content: '';
    position: absolute;
    inset: 12px 50%;
    width: min(920px, calc(100vw - 40px));
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)),
      radial-gradient(circle at 50% 0%, rgba(255, 224, 232, 0.78), transparent 58%);
    box-shadow: 0 26px 90px rgba(26, 26, 26, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: -1;
  }

  .hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(26, 26, 26, 0.08);
    color: #1a1a1a;
    font-size: 22px;
    box-shadow: 0 16px 46px rgba(255, 167, 190, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .hero-title {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.055em;
    color: #1a1a1a;
    background: none;
  }

  .landing-hero > p:nth-of-type(1) {
    margin-top: 16px !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
  }

  .landing-hero > p:nth-of-type(1) strong {
    color: #c94c62 !important;
  }

  .hero-tagline {
    max-width: 690px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
    color: #555b62;
  }

  .hero-highlights {
    margin-top: 26px;
    gap: 8px;
  }

  .badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .badge-blue,
  .badge-purple,
  .badge-green,
  .badge-yellow,
  .badge-red,
  .badge-gray {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.08);
  }

  .badge-blue,
  .badge-purple {
    background: rgba(255, 224, 232, 0.56);
  }

  .landing-content.with-recent {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 18px;
    align-items: stretch;
  }

  .card,
  .feature-card,
  .recent-panel,
  .privacy-card,
  #drop-zone,
  .landing-footer,
  .modal-card,
  .loading-card,
  .file-header,
  .file-tab,
  .sidebar,
  .recent-stat,
  .modal-file,
  .modal-summary,
  .modal-privacy {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .card,
  .feature-card,
  .privacy-card,
  .recent-panel,
  .landing-footer,
  .modal-card,
  .loading-card {
    border-radius: 18px;
  }

  #drop-zone {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 48px 36px;
    border-radius: 20px;
    border-style: solid;
    cursor: pointer;
    box-shadow: 0 30px 90px rgba(26, 26, 26, 0.09);
  }

  #drop-zone::before {
    background:
      radial-gradient(circle at 50% 24%, rgba(255, 224, 232, 0.76), transparent 54%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent);
    opacity: 1;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(201, 76, 98, 0.26);
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-2px);
    box-shadow: 0 36px 100px rgba(255, 167, 190, 0.22);
  }

  .dropzone-inner {
    width: 100%;
  }

  .dropzone-icon,
  .feature-icon,
  .privacy-icon,
  .modal-header-icon,
  .file-icon-lg,
  .login-gate-icon {
    background: rgba(255, 224, 232, 0.58) !important;
    border: 1px solid rgba(26, 26, 26, 0.06);
    color: #1a1a1a !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .dropzone-title {
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.025em;
  }

  .dropzone-subtitle {
    max-width: 500px;
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.75;
  }

  .dropzone-hint {
    color: var(--text-muted);
    font-size: 10.5px;
  }

  .btn {
    min-height: 34px;
    border-radius: 999px;
    font-size: 11.5px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }

  .btn:hover {
    transform: translateY(-1px);
  }

  .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 16px 34px rgba(26, 26, 26, 0.18);
  }

  .btn-primary:hover {
    background: #2a2a2a;
    box-shadow: 0 18px 42px rgba(26, 26, 26, 0.22);
  }

  .btn-ghost,
  .admin-link,
  .user-chip,
  .lang-switcher {
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(26, 26, 26, 0.08);
    color: #1a1a1a;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .btn-ghost:hover,
  .admin-link:hover,
  .lang-switcher button:hover {
    background: rgba(255, 224, 232, 0.46);
    border-color: rgba(201, 76, 98, 0.22);
    color: #1a1a1a;
  }

  .top-right-controls {
    top: 18px;
    right: 22px;
  }

  .admin-link,
  .user-chip,
  .lang-switcher {
    border-radius: 999px;
  }

  .lang-switcher button {
    border-radius: 999px;
    color: var(--text-secondary);
  }

  .lang-switcher button.active {
    background: rgba(255, 224, 232, 0.72);
    color: #1a1a1a;
  }

  .privacy-card {
    padding: 16px 18px;
  }

  .privacy-card.active {
    background: rgba(255, 224, 232, 0.52);
    border-color: rgba(201, 76, 98, 0.18);
  }

  .privacy-title,
  .feature-title,
  .card-title {
    letter-spacing: -0.01em;
  }

  .feature-card {
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 76, 98, 0.2);
    box-shadow: 0 26px 70px rgba(26, 26, 26, 0.09);
  }

  .feature-desc {
    line-height: 1.65;
  }

  .recent-panel {
    padding: 18px;
    overflow: hidden;
  }

  .recent-panel-header {
    border-bottom-color: rgba(26, 26, 26, 0.07);
  }

  .recent-stat,
  .recent-item,
  .chip,
  pre.code-block,
  .table-modern th {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(26, 26, 26, 0.07);
  }

  .recent-item {
    border-radius: 14px;
    box-shadow: none;
  }

  .landing-footer {
    color: var(--text-secondary);
  }

  .sidebar {
    border-right: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: none;
  }

  .brand-icon {
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(26, 26, 26, 0.13);
  }

  .nav-item {
    border-radius: 12px;
    color: var(--text-secondary);
  }

  .nav-item:hover,
  .nav-item.active {
    background: rgba(255, 224, 232, 0.58);
    color: #1a1a1a;
  }

  .file-tabs {
    background: rgba(247, 248, 250, 0.7);
  }


  .loading-overlay,
  .modal-backdrop {
    background: rgba(247, 248, 250, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .progress-bar {
    background: rgba(26, 26, 26, 0.08);
  }

  .progress-fill {
    background: linear-gradient(90deg, #1a1a1a, #f3a8ba);
  }

  .modal-footer {
    background: rgba(255, 255, 255, 0.54);
  }

  .toast {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(26, 26, 26, 0.08) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .landing-hero,
  #drop-zone,
  .privacy-card,
  .recent-panel,
  .feature-card,
  .landing-footer {
    will-change: transform, opacity;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }

    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }

  @media (max-width: 980px) {
    body {
      overflow: auto;
    }

    .top-right-controls {
      position: static;
      padding: 12px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .dropzone-wrap {
      padding: 18px 14px 28px;
    }

    .landing-hero {
      min-height: 310px;
      padding: 56px 16px 26px;
    }

    .hero-title {
      font-size: clamp(40px, 15vw, 58px);
    }

    .landing-content.with-recent {
      grid-template-columns: 1fr;
    }

    #drop-zone {
      min-height: 280px;
      padding: 36px 18px;
    }
  }

  @media (max-width: 640px) {
    .landing-features {
      grid-template-columns: 1fr;
    }

    .hero-highlights {
      display: none;
    }

    .app-shell {
      grid-template-columns: 1fr;
      height: auto;
      min-height: 100vh;
    }

    .top-right-controls .admin-link span {
      display: none;
    }
  }

  /* Dark premium home refresh */
  :root {
    --bg-base: #090909;
    --bg-panel: rgba(255, 255, 255, 0.055);
    --bg-elevated: rgba(255, 255, 255, 0.085);
    --bg-hover: rgba(255, 224, 232, 0.10);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.68);
    --text-muted: rgba(255, 255, 255, 0.42);
    --accent: #ffe0e8;
    --accent-hover: #ffd0dc;
    --accent-dim: rgba(255, 224, 232, 0.14);
    --success: #95d8bd;
    --success-dim: rgba(149, 216, 189, 0.12);
    --warning: #e9c46a;
    --warning-dim: rgba(233, 196, 106, 0.13);
    --danger: #ff8fa3;
    --danger-dim: rgba(255, 143, 163, 0.13);
    --purple: #f4b8c8;
    --purple-dim: rgba(244, 184, 200, 0.13);
    --cyan: #9ad7d9;
    --cyan-dim: rgba(154, 215, 217, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.065);
    --glass-strong: rgba(255, 255, 255, 0.11);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.26);
    --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.46);
  }

  html,
  body {
    background: #090909;
  }

  body {
    color: #ffffff;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 224, 232, 0.18), transparent 30rem),
      radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.08), transparent 28rem),
      linear-gradient(180deg, #090909 0%, #0d0d0d 52%, #090909 100%);
  }

  body::before {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    opacity: 0.58;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
  }

  .landing-container > .landing-hero:not(.home-hero) {
    display: none;
  }

  .dropzone-wrap {
    padding: 88px 30px 42px;
    background:
      radial-gradient(circle at 50% 10%, rgba(255, 224, 232, 0.10), transparent 34rem),
      transparent;
  }

  .landing-container {
    max-width: 1220px;
    gap: 20px;
  }

  .landing-content.with-recent {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: stretch;
  }

  .home-primary {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 16px;
    align-items: stretch;
  }

  .home-hero {
    grid-row: span 2;
    min-height: 520px;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 42px;
    overflow: hidden;
  }

  .home-hero::before {
    inset: 0;
    width: auto;
    transform: none;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.13);
    background:
      radial-gradient(circle at 18% 18%, rgba(255, 224, 232, 0.20), transparent 28rem),
      linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .home-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -90px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(255, 224, 232, 0.14);
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
  }

  .hero-kicker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: auto;
  }

  .hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.62);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .home-hero .hero-icon {
    margin: 86px 0 22px;
    background: rgba(255, 224, 232, 0.12);
    border-color: rgba(255, 224, 232, 0.22);
    color: #ffe0e8 !important;
    box-shadow: 0 18px 54px rgba(255, 224, 232, 0.12);
  }

  .home-hero .hero-title {
    max-width: 620px;
    color: #ffffff;
    font-size: clamp(54px, 7vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.07em;
  }

  .home-hero .hero-tagline {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13.5px;
    line-height: 1.75;
  }

  .hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
  }

  .home-hero .hero-highlights {
    justify-content: flex-start;
    margin-top: 24px;
  }

  #drop-zone {
    min-height: 390px;
    padding: 32px;
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 224, 232, 0.12), transparent 18rem),
      rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  #drop-zone::before {
    opacity: 0;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 224, 232, 0.18), transparent 18rem),
      rgba(255, 255, 255, 0.095);
    border-color: rgba(255, 224, 232, 0.34);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 224, 232, 0.06);
  }

  .dropzone-icon,
  .feature-icon,
  .privacy-icon,
  .modal-header-icon,
  .file-icon-lg,
  .login-gate-icon {
    background: rgba(255, 224, 232, 0.13) !important;
    border-color: rgba(255, 224, 232, 0.20);
    color: #ffe0e8 !important;
  }

  .dropzone-title {
    color: #ffffff;
  }

  .dropzone-subtitle,
  .feature-desc,
  .privacy-desc {
    color: rgba(255, 255, 255, 0.62);
  }

  .dropzone-hint {
    color: rgba(255, 255, 255, 0.38);
  }

  .card,
  .feature-card,
  .recent-panel,
  .privacy-card,
  .landing-footer,
  .modal-card,
  .loading-card,
  .file-header,
  .file-tab,
  .sidebar,
  .recent-stat,
  .modal-file,
  .modal-summary,
  .modal-privacy {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
  }

  .privacy-card {
    min-height: 114px;
    background: rgba(255, 255, 255, 0.055);
  }

  .privacy-card.active {
    background: rgba(255, 224, 232, 0.11);
    border-color: rgba(255, 224, 232, 0.24);
  }

  .recent-panel {
    min-height: 520px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  }

  .recent-stat,
  .recent-item,
  .chip,
  pre.code-block,
  .table-modern th {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.10);
  }

  .badge {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.11);
  }

  .badge-blue,
  .badge-purple {
    background: rgba(255, 224, 232, 0.11);
    color: #ffe0e8;
  }

  .btn-primary {
    background: #ffffff;
    color: #090909;
    border-color: #ffffff;
    box-shadow: 0 18px 46px rgba(255, 255, 255, 0.16);
  }

  .btn-primary:hover {
    background: #ffe0e8;
    border-color: #ffe0e8;
    box-shadow: 0 20px 54px rgba(255, 224, 232, 0.18);
  }

  .btn-ghost,
  .admin-link,
  .user-chip,
  .lang-switcher {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
  }

  .btn-ghost:hover,
  .admin-link:hover,
  .lang-switcher button:hover {
    background: rgba(255, 224, 232, 0.11);
    border-color: rgba(255, 224, 232, 0.22);
    color: #ffffff;
  }

  .lang-switcher button {
    color: rgba(255, 255, 255, 0.58);
  }

  .lang-switcher button.active {
    background: rgba(255, 224, 232, 0.16);
    color: #ffe0e8;
  }

  .feature-card:hover {
    border-color: rgba(255, 224, 232, 0.24);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  }

  .loading-overlay,
  .modal-backdrop {
    background: rgba(9, 9, 9, 0.68);
  }

  .modal-footer {
    background: rgba(255, 255, 255, 0.045);
  }

  .toast {
    background: rgba(18, 18, 18, 0.88) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  @media (max-width: 1180px) {
    .landing-content.with-recent,
    .home-primary {
      grid-template-columns: 1fr;
    }

    .home-hero {
      min-height: 460px;
      grid-row: auto;
    }

    .recent-panel {
      min-height: auto;
    }
  }

  @media (max-width: 640px) {
    .dropzone-wrap {
      padding: 18px 14px 28px;
    }

    .home-hero {
      min-height: 430px;
      padding: 28px;
    }

    .home-hero .hero-icon {
      margin-top: 54px;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .hero-actions .btn {
      justify-content: center;
    }
  }

  /* Full home redesign */
  .dropzone-wrap {
    padding: 26px;
  }

  .landing-container {
    max-width: 1440px;
    gap: 18px;
  }

  .home-nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
  }

  .home-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 224, 232, 0.13);
    border: 1px solid rgba(255, 224, 232, 0.20);
    color: #ffe0e8;
  }

  .home-brand strong,
  .home-brand small {
    display: block;
  }

  .home-brand strong {
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  .home-brand small {
    margin-top: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
  }

  .home-nav-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-nav-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .home-nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 224, 232, 0.10);
  }

  .landing-content.with-recent {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
  }

  .home-primary {
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.62fr);
    grid-template-rows: auto auto;
    gap: 18px;
  }

  .home-hero {
    grid-row: 1 / span 2;
    min-height: 650px;
    padding: 44px;
    justify-content: space-between;
  }

  .home-hero::before {
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 52%, rgba(255, 224, 232, 0.08)),
      radial-gradient(circle at 18% 16%, rgba(255, 224, 232, 0.20), transparent 28rem),
      radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.09), transparent 22rem);
  }

  .hero-signal {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.62);
    font-size: 10.5px;
    font-weight: 600;
  }

  .signal-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #95d8bd;
    box-shadow: 0 0 0 6px rgba(149, 216, 189, 0.10);
  }

  .home-hero .hero-icon {
    margin-top: auto;
  }

  .home-hero .hero-title {
    max-width: 720px;
    font-size: clamp(68px, 8vw, 118px);
  }

  .home-hero .hero-tagline {
    max-width: 620px;
  }

  .hero-metrics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .hero-metrics div {
    min-height: 82px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
  }

  .hero-metrics strong,
  .hero-metrics span {
    display: block;
  }

  .hero-metrics strong {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: -0.03em;
  }

  .hero-metrics span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .upload-console {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  .upload-console-head {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .upload-console-head span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .upload-console-head small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
  }

  #drop-zone {
    flex: 1;
    min-height: 430px;
    border-radius: 18px;
  }

  .dropzone-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }

  .dropzone-title {
    font-size: 24px;
    letter-spacing: -0.04em;
  }

  .dropzone-subtitle {
    font-size: 12px;
  }

  .privacy-card {
    min-height: 112px;
    border-radius: 18px;
  }

  .recent-panel {
    min-height: 650px;
    border-radius: 20px;
  }

  .recent-panel-header {
    min-height: 70px;
  }

  .recent-stats {
    gap: 10px;
  }

  .recent-stat {
    min-height: 98px;
    border-radius: 16px;
  }

  .recent-stat-value {
    font-size: 30px;
    letter-spacing: -0.05em;
  }

  .landing-features {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .feature-card {
    min-height: 170px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .top-right-controls {
    top: 104px;
    right: 38px;
  }

  @media (max-width: 1240px) {
    .landing-content.with-recent {
      grid-template-columns: 1fr;
    }

    .home-primary {
      grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    }

    .recent-panel {
      min-height: auto;
    }

    .landing-features {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 900px) {
    .dropzone-wrap {
      padding: 14px;
    }

    .home-nav {
      align-items: flex-start;
      flex-direction: column;
    }

    .home-nav-links {
      width: 100%;
      justify-content: space-between;
    }

    .home-primary {
      grid-template-columns: 1fr;
    }

    .home-hero {
      min-height: 560px;
      grid-row: auto;
      padding: 30px;
    }

    .hero-metrics {
      grid-template-columns: 1fr;
    }

    .top-right-controls {
      position: static;
      padding: 0;
    }
  }

  @media (max-width: 640px) {
    .home-hero {
      min-height: 500px;
      padding: 24px;
    }

    .home-hero .hero-title {
      font-size: clamp(48px, 17vw, 76px);
    }

    .landing-features {
      grid-template-columns: 1fr;
    }
  }

  /* Requested 3-column home layout refinement */
  .top-right-controls {
    display: none !important;
  }

  /* Absolute final palette override */
  :root {
    --bg-base: #07080c;
    --bg-panel: rgba(15, 18, 26, 0.78);
    --bg-elevated: rgba(24, 29, 41, 0.76);
    --bg-hover: rgba(34, 43, 61, 0.72);
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text-primary: #f8fafc;
    --text-secondary: #a7b0c0;
    --text-muted: #647084;
    --accent: #7dd3fc;
    --accent-hover: #bae6fd;
    --accent-dim: rgba(125, 211, 252, 0.12);
    --purple: #c4b5fd;
    --purple-dim: rgba(196, 181, 253, 0.12);
    --danger: #fb7185;
    --danger-dim: rgba(251, 113, 133, 0.13);
    --background: 224 36% 5%;
    --foreground: 210 40% 98%;
    --card: 222 32% 8%;
    --card-foreground: 210 40% 98%;
    --muted: 222 24% 15%;
    --muted-foreground: 218 16% 68%;
    --primary: 195 96% 72%;
    --primary-foreground: 224 36% 5%;
    --ring: 195 96% 72%;
  }

  body {
    background:
      radial-gradient(circle at 50% -140px, rgba(125, 211, 252, 0.13), transparent 430px),
      radial-gradient(circle at 88% 18%, rgba(196, 181, 253, 0.08), transparent 360px),
      linear-gradient(180deg, #07080c 0%, #090b12 46%, #07080c 100%) !important;
    color: #f8fafc !important;
  }

  .dropzone-wrap {
    background:
      radial-gradient(circle at 18% 10%, rgba(125, 211, 252, 0.08), transparent 360px),
      radial-gradient(circle at 82% 0%, rgba(196, 181, 253, 0.07), transparent 380px),
      transparent !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] .fixed {
    background: rgba(7, 8, 12, 0.72) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] svg,
  .dropzone-wrap > .landing-container > header[role="banner"] a,
  .dropzone-wrap > .landing-container > header[role="banner"] button {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"],
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"] {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"]:hover {
    color: #f8fafc !important;
    background: rgba(125, 211, 252, 0.10) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer {
    background: #f8fafc !important;
    color: #07080c !important;
    box-shadow: 0 0 34px rgba(125, 211, 252, 0.14) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer svg {
    color: #07080c !important;
  }

  .dropzone-wrap > .landing-container > section.bg-background {
    background:
      radial-gradient(circle at 18% 0%, rgba(125, 211, 252, 0.09), transparent 380px),
      linear-gradient(180deg, rgba(11, 14, 21, 0.92), rgba(8, 10, 15, 0.92)) !important;
    border: 1px solid rgba(148, 163, 184, 0.11) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  .dropzone-wrap > .landing-container > section [data-slot="card"],
  .upload-console,
  .recent-panel,
  .privacy-card,
  .modal-card,
  .loading-card,
  .card,
  .file-header {
    background:
      radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.055), transparent 260px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.86), rgba(10, 13, 20, 0.82)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.24) !important;
  }

  .dropzone-wrap > .landing-container > section h3,
  .dropzone-wrap > .landing-container > section .text-foreground,
  .dropzone-title,
  .privacy-title,
  .recent-item-name,
  .upload-console-head span {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > section .text-muted-foreground,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .recent-item-meta,
  .upload-console-head small {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > section .bg-primary,
  .dropzone-wrap > .landing-container > section .bg-primary\/40 {
    background-color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .text-primary {
    color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .bg-card,
  .dropzone-wrap > .landing-container > section .bg-muted,
  .recent-stat,
  .recent-item,
  .home-lang-switcher,
  .nav-chip,
  .nav-icon-btn {
    background: rgba(24, 29, 41, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.13) !important;
  }

  .dropzone-wrap > .landing-container > section .ring-border,
  .dropzone-wrap > .landing-container > section .ring-border-illustration {
    --tw-ring-color: rgba(148, 163, 184, 0.14) !important;
  }

  #drop-zone {
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.105), transparent 270px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.78), rgba(12, 15, 23, 0.78)) !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(125, 211, 252, 0.48) !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.16), transparent 290px),
      linear-gradient(180deg, rgba(25, 31, 45, 0.88), rgba(13, 17, 26, 0.88)) !important;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: rgba(125, 211, 252, 0.11) !important;
    border-color: rgba(125, 211, 252, 0.20) !important;
    color: #7dd3fc !important;
  }

  .btn-primary {
    background: #f8fafc !important;
    color: #07080c !important;
    border-color: #f8fafc !important;
  }

  .btn-primary:hover {
    background: #bae6fd !important;
    border-color: #bae6fd !important;
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.16) !important;
  }

  .btn-ghost {
    background: rgba(24, 29, 41, 0.72) !important;
    color: #a7b0c0 !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
  }

  .btn-ghost:hover {
    background: rgba(125, 211, 252, 0.10) !important;
    color: #f8fafc !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
  }

  /* User requested neutral palette only */
  :root {
    --background: #0A0A0A;
    --foreground: #FAFAFA;
    --card: #111111;
    --card-foreground: #FAFAFA;
    --popover: #111111;
    --popover-foreground: #FAFAFA;
    --primary: #FAFAFA;
    --primary-foreground: #0A0A0A;
    --secondary: #1C1C1C;
    --secondary-foreground: #FAFAFA;
    --muted: #1C1C1C;
    --muted-foreground: #A1A1A1;
    --accent: #252525;
    --accent-foreground: #FAFAFA;
    --destructive: #D64545;
    --destructive-foreground: #FAFAFA;
    --border: #252525;
    --input: #252525;
    --ring: #A1A1A1;
    --radius: 6px;
    --sidebar-background: #111111;
    --sidebar-foreground: #A1A1A1;
    --sidebar-primary: #FAFAFA;
    --sidebar-primary-foreground: #0A0A0A;
    --sidebar-accent: #1C1C1C;
    --sidebar-accent-foreground: #FAFAFA;
    --sidebar-border: #252525;
    --sidebar-ring: #A1A1A1;
    --nav-active: #252525;
    --table-row-hover: #141414;

    --bg-base: var(--background);
    --bg-panel: var(--card);
    --bg-elevated: var(--secondary);
    --bg-hover: var(--table-row-hover);
    --border-strong: var(--border);
    --text-primary: var(--foreground);
    --text-secondary: var(--muted-foreground);
    --text-muted: var(--muted-foreground);
    --accent-hover: var(--accent);
    --accent-dim: var(--secondary);
    --purple: var(--muted-foreground);
    --purple-dim: var(--secondary);
    --success: var(--foreground);
    --success-dim: var(--secondary);
    --warning: var(--muted-foreground);
    --warning-dim: var(--secondary);
    --danger: var(--destructive);
    --danger-dim: rgba(214, 69, 69, 0.14);
  }

  body {
    background: var(--background) !important;
    color: var(--foreground) !important;
  }

  .dropzone-wrap {
    background: var(--background) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] .fixed {
    background: rgba(10, 10, 10, 0.86) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] svg,
  .dropzone-wrap > .landing-container > header[role="banner"] a,
  .dropzone-wrap > .landing-container > header[role="banner"] button,
  .dropzone-wrap > .landing-container > section h3,
  .dropzone-wrap > .landing-container > section .text-foreground,
  .dropzone-title,
  .privacy-title,
  .recent-item-name,
  .upload-console-head span {
    color: var(--foreground) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"],
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"],
  .dropzone-wrap > .landing-container > section .text-muted-foreground,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .recent-item-meta,
  .upload-console-head small {
    color: var(--muted-foreground) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"]:hover,
  .btn-ghost:hover,
  .nav-chip:hover,
  .nav-icon-btn:hover,
  .home-lang-switcher button:hover,
  .home-lang-switcher button.active {
    background: var(--nav-active) !important;
    color: var(--foreground) !important;
    border-color: var(--border) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer,
  .btn-primary {
    background: var(--primary) !important;
    color: var(--primary-foreground) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer svg {
    color: var(--primary-foreground) !important;
  }

  .dropzone-wrap > .landing-container > section.bg-background,
  .dropzone-wrap > .landing-container > section [data-slot="card"],
  .upload-console,
  .recent-panel,
  .privacy-card,
  .modal-card,
  .loading-card,
  .card,
  .file-header {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--card-foreground) !important;
    box-shadow: none !important;
  }

  .dropzone-wrap > .landing-container > section .bg-card,
  .dropzone-wrap > .landing-container > section .bg-muted,
  .recent-stat,
  .recent-item,
  .home-lang-switcher,
  .nav-chip,
  .nav-icon-btn,
  .btn-ghost,
  #drop-zone {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
    color: var(--secondary-foreground) !important;
    box-shadow: none !important;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    background: var(--table-row-hover) !important;
    border-color: var(--ring) !important;
  }

  .dropzone-wrap > .landing-container > section .bg-primary,
  .dropzone-wrap > .landing-container > section .bg-primary\/40 {
    background-color: var(--primary) !important;
  }

  .dropzone-wrap > .landing-container > section .text-primary {
    color: var(--foreground) !important;
  }

  .dropzone-wrap > .landing-container > section .ring-border,
  .dropzone-wrap > .landing-container > section .ring-border-illustration {
    --tw-ring-color: var(--border) !important;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: var(--accent) !important;
    border-color: var(--border) !important;
    color: var(--accent-foreground) !important;
    box-shadow: none !important;
  }

  .badge-red,
  .recent-panel .badge-red {
    background: rgba(214, 69, 69, 0.14) !important;
    color: var(--destructive) !important;
    border-color: rgba(214, 69, 69, 0.30) !important;
  }

  .tailark-cards-under-analysis {
    width: 100%;
    margin: 0 0 14px;
  }

  .tailark-cards-under-analysis > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(170px, auto);
    gap: 10px !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--card-foreground) !important;
    box-shadow: none !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] h3,
  .tailark-cards-under-analysis [data-slot="card"] .text-foreground {
    color: var(--foreground) !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] p,
  .tailark-cards-under-analysis [data-slot="card"] .text-muted-foreground {
    color: var(--muted-foreground) !important;
  }

  .tailark-cards-under-analysis .bg-card,
  .tailark-cards-under-analysis .bg-muted,
  .tailark-cards-under-analysis .bg-illustration {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
  }

  .tailark-cards-under-analysis .bg-primary,
  .tailark-cards-under-analysis .bg-primary\/40 {
    background-color: var(--primary) !important;
  }

  .tailark-cards-under-analysis .text-primary {
    color: var(--foreground) !important;
  }

  .tailark-cards-under-analysis .ring-border,
  .tailark-cards-under-analysis .ring-border-illustration {
    --tw-ring-color: var(--border) !important;
  }

  @media (max-width: 980px) {
    .tailark-cards-under-analysis > .grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* Final compact animated bottom cards override */
  @keyframes tailarkCardsInFinal {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes tailarkCardFloatFinal {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }

  .tailark-cards-under-analysis {
    max-width: 920px !important;
    margin: 8px auto 18px !important;
    animation: tailarkCardsInFinal 0.55s ease both !important;
  }

  .tailark-cards-under-analysis > .grid {
    grid-auto-rows: minmax(118px, auto) !important;
    gap: 8px !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    min-height: 0 !important;
    padding: 16px !important;
    gap: 14px !important;
    animation: tailarkCardFloatFinal 5.5s ease-in-out infinite !important;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease !important;
  }

  .tailark-cards-under-analysis [data-slot="card"]:hover {
    animation-play-state: paused !important;
    background: var(--secondary) !important;
    border-color: var(--ring) !important;
    transform: translateY(-4px) !important;
  }

  .tailark-cards-under-analysis h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .tailark-cards-under-analysis p,
  .tailark-cards-under-analysis .text-sm {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .tailark-cards-under-analysis .size-14 {
    width: 2.6rem !important;
    height: 2.6rem !important;
  }

  .tailark-cards-under-analysis .w-16 {
    width: 3rem !important;
  }

  .tailark-cards-under-analysis .h-36 {
    height: 5.5rem !important;
  }

  .tailark-cards-under-analysis .p-8 {
    padding: 16px !important;
  }

  .tailark-cards-under-analysis .gap-8 {
    gap: 14px !important;
  }

  .tailark-cards-under-analysis .gap-6 {
    gap: 12px !important;
  }

  @media (max-width: 980px) {
    .tailark-cards-under-analysis {
      max-width: 640px !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .tailark-cards-under-analysis,
    .tailark-cards-under-analysis [data-slot="card"] {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Final bottom-card visual pass: black/gray surface, inner motion only */
  @keyframes tailarkInnerDrift {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }

  @keyframes tailarkInnerPulse {
    0%, 100% {
      opacity: 0.72;
      filter: brightness(0.92);
    }
    50% {
      opacity: 1;
      filter: brightness(1.18);
    }
  }

  @keyframes tailarkInnerSlide {
    0% {
      transform: translateX(-8px);
      opacity: 0.55;
    }
    50% {
      transform: translateX(4px);
      opacity: 1;
    }
    100% {
      transform: translateX(-8px);
      opacity: 0.55;
    }
  }

  .tailark-cards-under-analysis {
    background: transparent !important;
    animation: none !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    background: #0A0A0A !important;
    border-color: #252525 !important;
    animation: none !important;
    box-shadow: inset 0 1px 0 #1C1C1C !important;
  }

  .tailark-cards-under-analysis [data-slot="card"]:hover {
    background: #111111 !important;
    border-color: #A1A1A1 !important;
    transform: none !important;
  }

  .tailark-cards-under-analysis .bg-card,
  .tailark-cards-under-analysis .bg-muted,
  .tailark-cards-under-analysis .bg-illustration,
  .tailark-cards-under-analysis .bg-background\/75 {
    background: #111111 !important;
    border-color: #252525 !important;
  }

  .tailark-cards-under-analysis .bg-primary,
  .tailark-cards-under-analysis .bg-primary\/40,
  .tailark-cards-under-analysis .w-1 {
    background-color: #FAFAFA !important;
  }

  .tailark-cards-under-analysis svg,
  .tailark-cards-under-analysis img,
  .tailark-cards-under-analysis .size-14,
  .tailark-cards-under-analysis .w-16,
  .tailark-cards-under-analysis .h-36,
  .tailark-cards-under-analysis .recharts-responsive-container {
    animation: tailarkInnerDrift 4.2s ease-in-out infinite !important;
  }

  .tailark-cards-under-analysis .bg-primary,
  .tailark-cards-under-analysis .bg-primary\/40,
  .tailark-cards-under-analysis .animate-breathing,
  .tailark-cards-under-analysis .rounded-full {
    animation: tailarkInnerPulse 2.4s ease-in-out infinite !important;
  }

  .tailark-cards-under-analysis .space-y-1\.5 > *,
  .tailark-cards-under-analysis .grid.gap-2 > *,
  .tailark-cards-under-analysis .bg-linear-to-b {
    animation: tailarkInnerSlide 3.2s ease-in-out infinite !important;
  }

  .tailark-cards-under-analysis .space-y-1\.5 > *:nth-child(2),
  .tailark-cards-under-analysis .grid.gap-2 > *:nth-child(2) {
    animation-delay: 0.35s !important;
  }

  .tailark-cards-under-analysis .space-y-1\.5 > *:nth-child(3) {
    animation-delay: 0.7s !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .tailark-cards-under-analysis *,
    .tailark-cards-under-analysis *::before,
    .tailark-cards-under-analysis *::after {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Flatten nested surfaces inside the Threat Score card */
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .bg-background\/75,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .bg-card,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .ring-border-illustration {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    --tw-ring-color: transparent !important;
  }

  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .rounded-2xl,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .rounded-xl {
    border-radius: 0 !important;
  }

  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .p-2,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .p-4 {
    padding: 0 !important;
  }

  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .flex.items-center.gap-2.px-4.py-3 {
    padding: 0 0 10px !important;
  }

  /* Tailark features three: site-matched dark palette */
  .tailark-features-three {
    width: 100% !important;
    padding: 18px 0 16px !important;
    background: transparent !important;
    color: #FAFAFA !important;
  }

  .tailark-features-three > .mx-auto {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tailark-features-three .bg-card\/50,
  .tailark-features-three .bg-card,
  .tailark-features-three .bg-illustration,
  .tailark-features-three .bg-background {
    background: #0A0A0A !important;
    border-color: #252525 !important;
    color: #FAFAFA !important;
    box-shadow: inset 0 1px 0 #1C1C1C !important;
  }

  .tailark-features-three .ring-border,
  .tailark-features-three .ring-border-illustration {
    --tw-ring-color: #252525 !important;
  }

  .tailark-features-three .border,
  .tailark-features-three .divide-x > :not([hidden]) ~ :not([hidden]),
  .tailark-features-three .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: #252525 !important;
  }

  .tailark-features-three h3,
  .tailark-features-three .text-foreground,
  .tailark-features-three .font-semibold,
  .tailark-features-three .font-medium {
    color: #FAFAFA !important;
  }

  .tailark-features-three p,
  .tailark-features-three .text-muted-foreground {
    color: #A1A1A1 !important;
  }

  .tailark-features-three .text-primary {
    color: #FAFAFA !important;
  }

  .tailark-features-three .bg-emerald-500 {
    background-color: #FAFAFA !important;
  }

  .tailark-features-three .bg-muted-foreground,
  .tailark-features-three [class*="bg-muted-foreground"] {
    background-color: #A1A1A1 !important;
  }

  .tailark-features-three img {
    filter: grayscale(1) contrast(1.08) brightness(0.88);
  }

  .tailark-features-three .shadow,
  .tailark-features-three .shadow-md {
    box-shadow: none !important;
  }

  @media (max-width: 980px) {
    .tailark-features-three {
      padding-top: 12px !important;
    }
  }

  /* Final EOF features layout cleanup and status colors */
  .tailark-features-three .tailark-features-shell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    --tw-ring-color: transparent !important;
  }

  .tailark-features-three .tailark-features-shell > .grid {
    background: transparent !important;
  }

  .tailark-features-three .mask-x-from-55% > div {
    background-color: #22C55E !important;
  }

  .tailark-features-three .mask-x-from-55% > div:nth-child(10),
  .tailark-features-three .mask-x-from-55% > div:nth-child(11),
  .tailark-features-three .mask-x-from-55% > div:nth-child(22),
  .tailark-features-three .mask-x-from-55% > div:nth-child(23),
  .tailark-features-three .mask-x-from-55% > div:nth-child(24),
  .tailark-features-three .mask-x-from-55% > div:nth-child(32) {
    background-color: #525252 !important;
  }

  .tailark-features-three .space-y-2\.5 > .flex.justify-between.text-sm > .text-foreground {
    color: #22C55E !important;
  }

  /* Final EOF exact status bar colors */
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div {
    background: #22C55E !important;
    background-color: #22C55E !important;
  }

  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(10),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(11),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(22),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(23),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(24),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(32) {
    background: #525252 !important;
    background-color: #525252 !important;
  }

  /* Final page bottom sizing, separators and footer palette */
  .tailark-features-three {
    max-width: 1180px !important;
    margin: 12px auto 0 !important;
    padding: 12px 0 14px !important;
    border-top: 1px solid #252525 !important;
    border-bottom: 1px solid #252525 !important;
  }

  .tailark-features-three > .mx-auto {
    max-width: 1080px !important;
  }

  .tailark-features-three .tailark-features-shell > .grid {
    gap: 0 !important;
  }

  .tailark-features-three .row-span-2 {
    gap: 18px !important;
    padding: 20px !important;
  }

  .tailark-features-three .bg-illustration {
    padding: 10px 12px !important;
  }

  .tailark-features-three h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .tailark-features-three p,
  .tailark-features-three .text-sm {
    font-size: 12px !important;
  }

  .tailark-features-three .h-7 {
    height: 1.25rem !important;
  }

  .tailark-site-footer {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 22px 0 18px !important;
    background: transparent !important;
    border-top: 1px solid #252525 !important;
    color: #FAFAFA !important;
  }

  .tailark-site-footer > .mx-auto {
    max-width: 1180px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tailark-site-footer svg,
  .tailark-site-footer .text-foreground,
  .tailark-site-footer a {
    color: #FAFAFA !important;
  }

  .tailark-site-footer .text-muted-foreground {
    color: #A1A1A1 !important;
  }

  .tailark-site-footer a:hover,
  .tailark-site-footer .hover\:text-primary:hover {
    color: #A1A1A1 !important;
  }

  .tailark-site-footer .bg-card {
    background: #111111 !important;
    border-color: #252525 !important;
    box-shadow: none !important;
  }

  .tailark-site-footer .bg-emerald-100 {
    background-color: rgba(34, 197, 94, 0.22) !important;
  }

  .tailark-site-footer .bg-emerald-500 {
    background-color: #22C55E !important;
  }

  @media (max-width: 980px) {
    .tailark-features-three,
    .tailark-site-footer > .mx-auto {
      max-width: 100% !important;
    }

    .tailark-site-footer > .mx-auto {
      padding-left: 16px !important;
      padding-right: 16px !important;
    }
  }

  /* Final hero section five adaptation */
  .tailark-hero-five {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 74px 0 58px;
    border-bottom: 1px solid #252525;
    background:
      radial-gradient(circle at 78% 22%, rgba(250, 250, 250, 0.07), transparent 360px),
      radial-gradient(circle at 18% 10%, rgba(161, 161, 161, 0.08), transparent 320px),
      #0A0A0A;
  }

  .tailark-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 42px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .tailark-hero-copy {
    max-width: 560px;
    z-index: 2;
  }

  .tailark-hero-title {
    margin: 0;
    max-width: 620px;
    color: #FAFAFA;
    font-size: clamp(42px, 5vw, 74px);
    font-weight: 650;
    line-height: 0.96;
    letter-spacing: 0;
  }

  .tailark-hero-subtitle {
    margin: 20px 0 0;
    max-width: 620px;
    color: #A1A1A1;
    font-size: 18px;
    line-height: 1.6;
  }

  .tailark-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }

  .tailark-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }

  .tailark-hero-actions svg {
    width: 16px;
    height: 16px;
  }

  .tailark-hero-primary {
    background: #FAFAFA;
    color: #0A0A0A;
    border: 1px solid #FAFAFA;
  }

  .tailark-hero-primary:hover {
    background: #A1A1A1;
    border-color: #A1A1A1;
  }

  .tailark-hero-secondary {
    background: #111111;
    color: #FAFAFA;
    border: 1px solid #252525;
  }

  .tailark-hero-secondary:hover {
    background: #1C1C1C;
    border-color: #A1A1A1;
  }

  .tailark-hero-secondary svg {
    color: #FAFAFA;
    fill: rgba(250, 250, 250, 0.10);
  }

  .tailark-hero-preview {
    perspective: 1200px;
    min-height: 420px;
  }

  .tailark-preview-frame {
    position: relative;
    min-height: 390px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #252525;
    border-radius: 6px;
    background: #0A0A0A;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 #1C1C1C;
    transform: rotateY(-14deg) rotateX(4deg) skewX(-4deg);
    transform-origin: center;
  }

  .tailark-preview-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(250, 250, 250, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(250, 250, 250, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  }

  .tailark-preview-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #252525;
    border-radius: 6px;
    background: #111111;
    color: #A1A1A1;
    font-size: 12px;
  }

  .tailark-preview-topbar span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #525252;
  }

  .tailark-preview-topbar strong {
    margin-left: 8px;
    color: #FAFAFA;
    font-weight: 600;
  }

  .tailark-preview-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    margin-top: 14px;
  }

  .tailark-preview-main,
  .tailark-preview-side > div {
    border: 1px solid #252525;
    border-radius: 6px;
    background: #111111;
    box-shadow: inset 0 1px 0 #1C1C1C;
  }

  .tailark-preview-main {
    padding: 22px;
  }

  .tailark-preview-kicker {
    color: #A1A1A1;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
  }

  .tailark-preview-main h2 {
    margin: 12px 0 0;
    color: #FAFAFA;
    font-size: 34px;
    line-height: 1;
  }

  .tailark-preview-main p {
    margin: 10px 0 18px;
    color: #A1A1A1;
    font-size: 13px;
  }

  .tailark-score-row {
    display: flex;
    justify-content: space-between;
    color: #FAFAFA;
    font-size: 13px;
    font-weight: 650;
  }

  .tailark-score-row strong {
    color: #D64545;
  }

  .tailark-score-track {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #252525;
  }

  .tailark-score-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #FAFAFA;
  }

  .tailark-signal-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .tailark-signal-list span,
  .tailark-preview-side > div {
    color: #A1A1A1;
    font-size: 12px;
  }

  .tailark-signal-list span {
    padding: 9px 10px;
    border: 1px solid #252525;
    border-radius: 6px;
    background: #0A0A0A;
  }

  .tailark-preview-side {
    display: grid;
    gap: 12px;
  }

  .tailark-preview-side > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 12px;
  }

  .tailark-preview-side strong {
    margin-top: 5px;
    color: #FAFAFA;
    font-size: 15px;
  }

  @media (max-width: 1100px) {
    .tailark-hero-inner {
      grid-template-columns: 1fr;
    }

    .tailark-hero-copy {
      max-width: 760px;
    }

    .tailark-preview-frame {
      transform: none;
    }
  }

  @media (max-width: 720px) {
    .tailark-hero-five {
      padding: 44px 0 34px;
    }

    .tailark-hero-inner {
      gap: 24px;
    }

    .tailark-hero-title {
      font-size: 40px;
    }

    .tailark-hero-subtitle {
      font-size: 15px;
    }

    .tailark-preview-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Compact animated bottom cards */
  @keyframes tailarkCardsIn {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes tailarkCardFloat {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }

  .tailark-cards-under-analysis {
    max-width: 920px;
    margin: 8px auto 18px;
    animation: tailarkCardsIn 0.55s ease both;
  }

  .tailark-cards-under-analysis > .grid {
    grid-auto-rows: minmax(118px, auto) !important;
    gap: 8px !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    min-height: 0 !important;
    padding: 16px !important;
    gap: 14px !important;
    animation: tailarkCardFloat 5.5s ease-in-out infinite;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
  }

  .tailark-cards-under-analysis [data-slot="card"]:hover {
    animation-play-state: paused;
    background: var(--secondary) !important;
    border-color: var(--ring) !important;
    transform: translateY(-4px);
  }

  .tailark-cards-under-analysis [data-slot="card"]:nth-of-type(2) {
    animation-delay: 0.25s;
  }

  .tailark-cards-under-analysis [data-slot="card"]:nth-of-type(3) {
    animation-delay: 0.5s;
  }

  .tailark-cards-under-analysis [data-slot="card"]:nth-of-type(4) {
    animation-delay: 0.75s;
  }

  .tailark-cards-under-analysis h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .tailark-cards-under-analysis p,
  .tailark-cards-under-analysis .text-sm {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .tailark-cards-under-analysis .size-14 {
    width: 2.6rem !important;
    height: 2.6rem !important;
  }

  .tailark-cards-under-analysis .w-16 {
    width: 3rem !important;
  }

  .tailark-cards-under-analysis .h-36 {
    height: 5.5rem !important;
  }

  .tailark-cards-under-analysis .p-8 {
    padding: 16px !important;
  }

  .tailark-cards-under-analysis .gap-8 {
    gap: 14px !important;
  }

  .tailark-cards-under-analysis .gap-6 {
    gap: 12px !important;
  }

  @media (max-width: 980px) {
    .tailark-cards-under-analysis {
      max-width: 640px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .tailark-cards-under-analysis,
    .tailark-cards-under-analysis [data-slot="card"] {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Final winning color layer */
  :root {
    --bg-base: #07080c;
    --bg-panel: rgba(15, 18, 26, 0.78);
    --bg-elevated: rgba(24, 29, 41, 0.76);
    --bg-hover: rgba(34, 43, 61, 0.72);
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text-primary: #f8fafc;
    --text-secondary: #a7b0c0;
    --text-muted: #647084;
    --accent: #7dd3fc;
    --accent-hover: #bae6fd;
    --accent-dim: rgba(125, 211, 252, 0.12);
    --purple: #c4b5fd;
    --purple-dim: rgba(196, 181, 253, 0.12);
    --success: #5eead4;
    --success-dim: rgba(94, 234, 212, 0.12);
    --warning: #facc15;
    --warning-dim: rgba(250, 204, 21, 0.12);
    --danger: #fb7185;
    --danger-dim: rgba(251, 113, 133, 0.13);
    --background: 224 36% 5%;
    --foreground: 210 40% 98%;
    --card: 222 32% 8%;
    --card-foreground: 210 40% 98%;
    --muted: 222 24% 15%;
    --muted-foreground: 218 16% 68%;
    --primary: 195 96% 72%;
    --primary-foreground: 224 36% 5%;
    --ring: 195 96% 72%;
  }

  body {
    background:
      radial-gradient(circle at 50% -140px, rgba(125, 211, 252, 0.13), transparent 430px),
      radial-gradient(circle at 88% 18%, rgba(196, 181, 253, 0.08), transparent 360px),
      linear-gradient(180deg, #07080c 0%, #090b12 46%, #07080c 100%) !important;
    color: #f8fafc !important;
  }

  .dropzone-wrap {
    background:
      radial-gradient(circle at 18% 10%, rgba(125, 211, 252, 0.08), transparent 360px),
      radial-gradient(circle at 82% 0%, rgba(196, 181, 253, 0.07), transparent 380px),
      transparent !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] .fixed {
    background: rgba(7, 8, 12, 0.72) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] svg,
  .dropzone-wrap > .landing-container > header[role="banner"] a,
  .dropzone-wrap > .landing-container > header[role="banner"] button {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"],
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"] {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"]:hover {
    color: #f8fafc !important;
    background: rgba(125, 211, 252, 0.10) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer {
    background: #f8fafc !important;
    color: #07080c !important;
    box-shadow: 0 0 34px rgba(125, 211, 252, 0.14) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer svg {
    color: #07080c !important;
  }

  .dropzone-wrap > .landing-container > section.bg-background {
    background:
      radial-gradient(circle at 18% 0%, rgba(125, 211, 252, 0.09), transparent 380px),
      linear-gradient(180deg, rgba(11, 14, 21, 0.92), rgba(8, 10, 15, 0.92)) !important;
    border: 1px solid rgba(148, 163, 184, 0.11) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  .dropzone-wrap > .landing-container > section [data-slot="card"],
  .upload-console,
  .recent-panel,
  .privacy-card,
  .modal-card,
  .loading-card,
  .card,
  .file-header {
    background:
      radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.055), transparent 260px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.86), rgba(10, 13, 20, 0.82)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.24) !important;
  }

  .dropzone-wrap > .landing-container > section h3,
  .dropzone-wrap > .landing-container > section .text-foreground,
  .dropzone-title,
  .privacy-title,
  .recent-item-name,
  .upload-console-head span {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > section .text-muted-foreground,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .recent-item-meta,
  .upload-console-head small {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > section .bg-primary,
  .dropzone-wrap > .landing-container > section .bg-primary\/40 {
    background-color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .text-primary {
    color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .bg-card,
  .dropzone-wrap > .landing-container > section .bg-muted,
  .recent-stat,
  .recent-item,
  .home-lang-switcher,
  .nav-chip,
  .nav-icon-btn {
    background: rgba(24, 29, 41, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.13) !important;
  }

  .dropzone-wrap > .landing-container > section .ring-border,
  .dropzone-wrap > .landing-container > section .ring-border-illustration {
    --tw-ring-color: rgba(148, 163, 184, 0.14) !important;
  }

  #drop-zone {
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.105), transparent 270px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.78), rgba(12, 15, 23, 0.78)) !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(125, 211, 252, 0.48) !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.16), transparent 290px),
      linear-gradient(180deg, rgba(25, 31, 45, 0.88), rgba(13, 17, 26, 0.88)) !important;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: rgba(125, 211, 252, 0.11) !important;
    border-color: rgba(125, 211, 252, 0.20) !important;
    color: #7dd3fc !important;
  }

  .btn-primary {
    background: #f8fafc !important;
    color: #07080c !important;
    border-color: #f8fafc !important;
  }

  .btn-primary:hover {
    background: #bae6fd !important;
    border-color: #bae6fd !important;
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.16) !important;
  }

  .btn-ghost {
    background: rgba(24, 29, 41, 0.72) !important;
    color: #a7b0c0 !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
  }

  .btn-ghost:hover {
    background: rgba(125, 211, 252, 0.10) !important;
    color: #f8fafc !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
  }

  /* Final color pass for copied Tailark blocks + existing app */
  :root {
    --bg-base: #07080c;
    --bg-panel: rgba(15, 18, 26, 0.78);
    --bg-elevated: rgba(24, 29, 41, 0.76);
    --bg-hover: rgba(34, 43, 61, 0.72);
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text-primary: #f8fafc;
    --text-secondary: #a7b0c0;
    --text-muted: #647084;
    --accent: #7dd3fc;
    --accent-hover: #bae6fd;
    --accent-dim: rgba(125, 211, 252, 0.12);
    --purple: #c4b5fd;
    --purple-dim: rgba(196, 181, 253, 0.12);
    --success: #5eead4;
    --success-dim: rgba(94, 234, 212, 0.12);
    --warning: #facc15;
    --warning-dim: rgba(250, 204, 21, 0.12);
    --danger: #fb7185;
    --danger-dim: rgba(251, 113, 133, 0.13);
    --background: 224 36% 5%;
    --foreground: 210 40% 98%;
    --card: 222 32% 8%;
    --card-foreground: 210 40% 98%;
    --muted: 222 24% 15%;
    --muted-foreground: 218 16% 68%;
    --primary: 195 96% 72%;
    --primary-foreground: 224 36% 5%;
    --border-hsl: 218 22% 22%;
    --ring: 195 96% 72%;
  }

  body {
    background:
      radial-gradient(circle at 50% -140px, rgba(125, 211, 252, 0.13), transparent 430px),
      radial-gradient(circle at 88% 18%, rgba(196, 181, 253, 0.08), transparent 360px),
      linear-gradient(180deg, #07080c 0%, #090b12 46%, #07080c 100%) !important;
    color: #f8fafc;
  }

  .dropzone-wrap {
    background:
      radial-gradient(circle at 18% 10%, rgba(125, 211, 252, 0.08), transparent 360px),
      radial-gradient(circle at 82% 0%, rgba(196, 181, 253, 0.07), transparent 380px),
      transparent !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] .fixed {
    background: rgba(7, 8, 12, 0.72) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .dropzone-wrap > .landing-container > header[role="banner"] svg,
  .dropzone-wrap > .landing-container > header[role="banner"] a,
  .dropzone-wrap > .landing-container > header[role="banner"] button {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"],
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"] {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] a[href="#drop-zone"]:hover {
    color: #f8fafc !important;
    background: rgba(125, 211, 252, 0.10) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a[href="#drop-zone"]:last-child {
    background: #f8fafc !important;
    color: #07080c !important;
    box-shadow: 0 0 34px rgba(125, 211, 252, 0.14);
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a[href="#drop-zone"]:last-child svg {
    color: #07080c !important;
  }

  .dropzone-wrap > .landing-container > section.bg-background {
    background:
      radial-gradient(circle at 18% 0%, rgba(125, 211, 252, 0.09), transparent 380px),
      linear-gradient(180deg, rgba(11, 14, 21, 0.92), rgba(8, 10, 15, 0.92)) !important;
    border: 1px solid rgba(148, 163, 184, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .dropzone-wrap > .landing-container > section [data-slot="card"],
  .upload-console,
  .recent-panel,
  .privacy-card,
  .modal-card,
  .loading-card,
  .card,
  .file-header {
    background:
      radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.055), transparent 260px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.86), rgba(10, 13, 20, 0.82)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.24) !important;
  }

  .dropzone-wrap > .landing-container > section h3,
  .dropzone-wrap > .landing-container > section .text-foreground,
  .dropzone-title,
  .privacy-title,
  .recent-item-name,
  .upload-console-head span {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > section .text-muted-foreground,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .recent-item-meta,
  .upload-console-head small {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > section .bg-primary,
  .dropzone-wrap > .landing-container > section .bg-primary\/40 {
    background-color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .text-primary {
    color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .bg-card,
  .dropzone-wrap > .landing-container > section .bg-muted,
  .recent-stat,
  .recent-item,
  .home-lang-switcher,
  .nav-chip,
  .nav-icon-btn {
    background: rgba(24, 29, 41, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.13) !important;
  }

  .dropzone-wrap > .landing-container > section .ring-border,
  .dropzone-wrap > .landing-container > section .ring-border-illustration {
    --tw-ring-color: rgba(148, 163, 184, 0.14) !important;
  }

  #drop-zone {
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.105), transparent 270px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.78), rgba(12, 15, 23, 0.78)) !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(125, 211, 252, 0.48) !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.16), transparent 290px),
      linear-gradient(180deg, rgba(25, 31, 45, 0.88), rgba(13, 17, 26, 0.88)) !important;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: rgba(125, 211, 252, 0.11) !important;
    border-color: rgba(125, 211, 252, 0.20) !important;
    color: #7dd3fc !important;
  }

  .btn-primary {
    background: #f8fafc !important;
    color: #07080c !important;
    border-color: #f8fafc !important;
  }

  .btn-primary:hover {
    background: #bae6fd !important;
    border-color: #bae6fd !important;
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.16) !important;
  }

  .btn-ghost {
    background: rgba(24, 29, 41, 0.72) !important;
    color: #a7b0c0 !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
  }

  .btn-ghost:hover {
    background: rgba(125, 211, 252, 0.10) !important;
    color: #f8fafc !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
  }

  .dropzone-wrap {
    padding: 28px;
  }

  .landing-container {
    max-width: 1360px;
    gap: 18px;
  }

  .home-nav {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr);
    align-items: center;
    padding: 10px 12px;
  }

  .home-nav-links {
    justify-self: center;
  }

  .home-nav-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-chip {
    gap: 7px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 650;
  }

  .nav-chip-accent {
    color: #ffe0e8;
    border-color: rgba(255, 224, 232, 0.20);
    background: rgba(255, 224, 232, 0.10);
  }

  .nav-icon-btn {
    width: 34px;
    color: rgba(255, 255, 255, 0.54);
  }

  .home-lang-switcher {
    gap: 2px;
    padding: 3px;
  }

  .home-lang-switcher button {
    min-width: 34px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
  }

  .home-lang-switcher button:hover,
  .nav-chip:hover,
  .nav-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 224, 232, 0.10);
    border-color: rgba(255, 224, 232, 0.20);
  }

  .landing-content.with-recent {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .home-primary {
    display: contents;
  }

  .home-hero,
  .upload-console,
  .recent-panel {
    min-height: 640px;
    height: 100%;
  }

  .home-hero {
    grid-row: auto;
    padding: 34px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .home-hero .hero-icon {
    width: 50px;
    height: 50px;
    margin: 34px 0 20px;
    font-size: 18px;
  }

  .home-hero .hero-title {
    max-width: 100%;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 0.94;
  }

  .home-hero .hero-tagline {
    max-width: 100%;
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.75;
  }

  .hero-metrics {
    order: 10;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
  }

  .hero-metrics div {
    min-height: 0;
    padding: 8px 9px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .hero-metrics strong {
    font-size: 11px;
    letter-spacing: -0.01em;
  }

  .hero-metrics span {
    margin: 0;
    font-size: 8.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .home-hero .hero-highlights {
    order: 15;
    justify-content: flex-start;
    gap: 7px;
    margin-top: 18px;
  }

  .home-hero .hero-actions {
    order: 20;
    margin-top: auto;
    padding-top: 28px;
  }

  .home-hero .badge {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 8.5px;
    border-radius: 999px;
  }

  .upload-console {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
  }

  .upload-console-head {
    min-height: 64px;
    padding: 15px 16px;
  }

  #drop-zone {
    min-height: 0;
    height: 100%;
    padding: 28px 24px;
    border-radius: 20px;
  }

  .dropzone-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    font-size: 18px;
    opacity: 0.82;
  }

  .dropzone-title {
    font-size: 20px;
    letter-spacing: -0.03em;
  }

  .dropzone-subtitle {
    max-width: 360px;
    font-size: 11.5px;
  }

  #browse-btn {
    padding: 10px 17px !important;
    font-size: 11.5px !important;
  }

  .privacy-card {
    width: 100%;
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .privacy-title {
    font-size: 12.5px;
  }

  .privacy-desc {
    font-size: 10.8px;
  }

  .recent-panel {
    min-height: 640px;
    padding: 18px;
  }

  .recent-panel #recent-list {
    padding-right: 2px;
    margin-right: 0;
  }

  .recent-item {
    padding: 12px;
    border-radius: 14px;
    gap: 6px;
  }

  .recent-item-name {
    line-height: 1.35;
  }

  .recent-item-meta {
    gap: 8px;
  }

  .recent-panel .badge-red {
    padding: 3px 7px;
    background: rgba(255, 143, 163, 0.10);
    color: #ff8fa3;
    border-color: rgba(255, 143, 163, 0.20);
    font-size: 8px;
  }

  .landing-footer {
    width: 100%;
    padding: 16px 18px;
    margin: 0;
  }

  @media (max-width: 1180px) {
    .home-nav {
      grid-template-columns: 1fr;
      justify-items: stretch;
    }

    .home-brand,
    .home-nav-links,
    .home-nav-actions {
      justify-self: stretch;
    }

    .home-nav-links,
    .home-nav-actions {
      justify-content: center;
      flex-wrap: wrap;
    }

    .landing-content.with-recent {
      grid-template-columns: 1fr;
    }

    .home-primary {
      display: grid;
      grid-template-columns: 1fr;
    }

    .home-hero,
    .upload-console,
    .recent-panel {
      min-height: auto;
    }

    .upload-console {
      min-height: 560px;
    }
  }

  @media (max-width: 640px) {
    .dropzone-wrap {
      padding: 14px;
    }

    .home-nav-actions {
      gap: 6px;
    }

    .nav-chip span {
      max-width: 110px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .home-hero {
      padding: 24px;
    }

    .hero-metrics {
      grid-template-columns: 1fr;
    }

    .hero-metrics div {
      justify-content: flex-start;
      border-radius: 14px;
    }

    .upload-console {
      min-height: 520px;
    }
  }

  /* Home V3: complete visual reset */
  body {
    background:
      linear-gradient(180deg, rgba(255, 224, 232, 0.035), transparent 28rem),
      repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 112px),
      #090909;
  }

  body::before {
    display: none;
  }

  .dropzone-wrap {
    min-height: 100vh;
    padding: 24px;
    background: #090909;
  }

  .landing-container {
    max-width: 1480px;
    gap: 22px;
  }

  .home-nav {
    min-height: 58px;
    grid-template-columns: minmax(220px, 1fr) auto minmax(320px, 1fr);
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    color: #090909;
    border-color: #ffffff;
  }

  .home-brand strong {
    font-size: 12px;
  }

  .home-brand small {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .home-nav-links,
  .home-lang-switcher {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.08);
  }

  .home-nav-links a,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher button {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher {
    min-height: 32px;
    background: rgba(255,255,255,0.035);
  }

  .home-v3-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding: 8px 0 0;
  }

  .home-v3-intro span,
  .home-v3-intro strong {
    display: block;
  }

  .home-v3-intro span {
    color: rgba(255,255,255,0.42);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .home-v3-intro strong {
    color: rgba(255,255,255,0.86);
    font-size: clamp(28px, 4vw, 58px);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 0.92;
    text-align: right;
  }

  .landing-content.with-recent {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.44fr);
    grid-template-rows: auto auto;
    gap: 22px;
    align-items: stretch;
  }

  .home-primary {
    display: contents;
  }

  .home-hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 610px;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .home-hero .hero-kicker {
    margin-bottom: 48px;
  }

  .hero-kicker span,
  .hero-signal {
    background: transparent;
    border-color: rgba(255,255,255,0.12);
  }

  .hero-signal {
    margin-top: -34px;
    margin-bottom: 70px;
  }

  .home-hero .hero-icon {
    display: none;
  }

  .home-hero .hero-title {
    max-width: 860px;
    font-size: clamp(84px, 10vw, 158px);
    line-height: 0.82;
    font-weight: 720;
    letter-spacing: -0.085em;
  }

  .home-hero .hero-tagline {
    max-width: 600px;
    margin-top: 28px;
    color: rgba(255,255,255,0.58);
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-metrics {
    width: min(620px, 100%);
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .hero-metrics div {
    justify-content: flex-start;
    min-height: 58px;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    background: transparent;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .hero-metrics div:last-child {
    border-right: 0;
  }

  .hero-metrics strong {
    font-size: 15px;
  }

  .hero-metrics span {
    color: rgba(255,255,255,0.40);
    font-size: 9px;
  }

  .home-hero .hero-highlights {
    width: min(720px, 100%);
    gap: 8px;
    margin-top: 28px;
  }

  .home-hero .badge {
    min-height: 24px;
    padding: 4px 9px;
    background: transparent;
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.62);
  }

  .home-hero .hero-actions {
    margin-top: 34px;
    padding: 0;
  }

  .upload-console {
    grid-column: 2;
    grid-row: 1;
    min-height: 610px;
    height: auto;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035)),
      rgba(255,255,255,0.035);
    box-shadow: 0 34px 120px rgba(0,0,0,0.42);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }

  .upload-console-head {
    min-height: 70px;
    padding: 0 4px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .upload-console-head span {
    font-size: 20px;
    letter-spacing: -0.045em;
  }

  .upload-console-head small {
    max-width: 280px;
    line-height: 1.5;
  }

  #drop-zone {
    min-height: 0;
    padding: 26px 22px;
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255,224,232,0.08), rgba(255,255,255,0.025));
    box-shadow: none;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    background:
      linear-gradient(180deg, rgba(255,224,232,0.13), rgba(255,255,255,0.04));
    border-color: rgba(255,224,232,0.34);
    box-shadow: inset 0 0 0 1px rgba(255,224,232,0.08);
  }

  .dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.78) !important;
    font-size: 15px;
  }

  .dropzone-title {
    font-size: 22px;
    line-height: 1.05;
  }

  .dropzone-subtitle {
    max-width: 310px;
    color: rgba(255,255,255,0.52);
  }

  .privacy-card {
    min-height: 82px;
    padding: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .privacy-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06) !important;
  }

  .recent-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 250px 260px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .recent-panel-header {
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .recent-stats {
    grid-template-columns: 1fr 1fr;
  }

  .recent-stat {
    min-height: 86px;
    background: rgba(255,255,255,0.045);
  }

  #recent-level-dist {
    align-self: stretch;
    align-content: start;
  }

  .recent-panel #recent-list {
    max-height: 240px;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    overflow-y: auto;
  }

  .recent-item {
    min-height: 116px;
    padding: 12px;
    border-left-width: 1px;
    background: rgba(255,255,255,0.045);
  }

  .landing-features {
    display: none;
  }

  .landing-footer {
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
  }

  @media (max-width: 1120px) {
    .home-v3-intro {
      grid-template-columns: 1fr;
    }

    .home-v3-intro strong {
      text-align: left;
    }

    .landing-content.with-recent {
      grid-template-columns: 1fr;
    }

    .home-primary {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .home-hero,
    .upload-console,
    .recent-panel {
      grid-column: auto;
      grid-row: auto;
    }

    .home-hero,
    .upload-console {
      min-height: auto;
    }

    .recent-panel {
      grid-template-columns: 1fr;
    }

    .recent-panel #recent-list {
      grid-template-columns: 1fr;
      max-height: none;
    }
  }

  @media (max-width: 720px) {
    .dropzone-wrap {
      padding: 16px;
    }

    .home-nav {
      grid-template-columns: 1fr;
    }

    .home-hero .hero-title {
      font-size: clamp(58px, 20vw, 90px);
    }

    .hero-metrics {
      grid-template-columns: 1fr;
    }

    .hero-metrics div {
      border-right: 0;
      border-bottom: 1px solid rgba(255,255,255,0.10);
    }

    .hero-metrics div:last-child {
      border-bottom: 0;
    }
  }

  /* skill.md final: frosted security lab */
  :root {
    --bg-base: #f7f8fa;
    --bg-panel: rgba(255, 255, 255, 0.68);
    --bg-elevated: rgba(255, 255, 255, 0.84);
    --bg-hover: rgba(255, 224, 232, 0.36);
    --border: rgba(26, 26, 26, 0.08);
    --border-strong: rgba(26, 26, 26, 0.14);
    --text-primary: #1a1a1a;
    --text-secondary: #5c626a;
    --text-muted: #9aa0a8;
    --accent: #ffe0e8;
    --accent-hover: #ffd2dd;
    --accent-dim: rgba(255, 224, 232, 0.58);
    --danger: #c94c62;
    --danger-dim: rgba(201, 76, 98, 0.10);
    --warning: #b98524;
    --warning-dim: rgba(185, 133, 36, 0.10);
    --success: #3f8f73;
    --success-dim: rgba(63, 143, 115, 0.10);
    --purple: #c4768e;
    --purple-dim: rgba(196, 118, 142, 0.10);
    --glass-bg: rgba(255, 255, 255, 0.66);
    --glass-strong: rgba(255, 255, 255, 0.86);
    --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 18px 48px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 32px 90px rgba(26, 26, 26, 0.11);
  }

  html,
  body {
    background: #f7f8fa;
  }

  body {
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    background:
      radial-gradient(circle at 12% 10%, rgba(255, 224, 232, 0.72), transparent 360px),
      radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.95), transparent 420px),
      linear-gradient(180deg, #ffffff 0%, #f7f8fa 58%, #ffffff 100%);
  }

  body::before {
    display: block;
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(26, 26, 26, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(26, 26, 26, 0.026) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.52;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 76%);
  }

  .dropzone-wrap {
    min-height: 100vh;
    padding: 32px;
    background: transparent;
  }

  .landing-container {
    max-width: 1220px;
    gap: 18px;
  }

  .landing-container > .landing-hero:not(.home-hero) {
    display: none;
  }

  .top-right-controls {
    display: none !important;
  }

  .home-nav {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .home-brand {
    color: #1a1a1a;
  }

  .home-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
  }

  .home-brand strong {
    color: #1a1a1a;
    font-size: 12.5px;
    letter-spacing: 0;
  }

  .home-brand small {
    color: #8d939b;
    font-size: 9.5px;
    letter-spacing: 0;
    text-transform: none;
  }

  .home-nav-links,
  .home-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .home-nav-links {
    justify-self: center;
    padding: 4px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 999px;
    background: rgba(247, 248, 250, 0.72);
  }

  .home-nav-actions {
    justify-self: end;
  }

  .home-nav-links a,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher {
    border-radius: 999px;
    color: #5c626a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .home-nav-links a {
    padding: 8px 12px;
  }

  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher {
    min-height: 34px;
    border: 1px solid rgba(26, 26, 26, 0.07);
    background: rgba(255, 255, 255, 0.62);
  }

  .nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
  }

  .nav-chip-accent {
    color: #1a1a1a;
    border-color: rgba(201, 76, 98, 0.14);
    background: rgba(255, 224, 232, 0.62);
  }

  .nav-icon-btn {
    width: 34px;
  }

  .home-lang-switcher {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
  }

  .home-lang-switcher button {
    min-width: 32px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7b8189;
    font: inherit;
    font-size: 10.5px;
    font-weight: 650;
    cursor: pointer;
  }

  .home-nav-links a:hover,
  .nav-chip:hover,
  .nav-icon-btn:hover,
  .home-lang-switcher button:hover {
    color: #1a1a1a;
    background: rgba(255, 224, 232, 0.54);
  }

  .home-lang-switcher button.active {
    color: #1a1a1a;
    background: rgba(255, 224, 232, 0.68);
  }

  .home-v3-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
    gap: 18px;
    align-items: end;
    padding: 24px 6px 4px;
  }

  .home-v3-intro span {
    color: #9aa0a8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .home-v3-intro strong {
    max-width: 430px;
    justify-self: end;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 640;
    line-height: 1.08;
    letter-spacing: 0;
    text-align: right;
  }

  .landing-content.with-recent {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.92fr) minmax(280px, 0.78fr);
    gap: 16px;
    align-items: stretch;
  }

  .home-primary {
    display: contents;
  }

  .home-hero,
  .upload-console,
  .recent-panel {
    min-height: 560px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .home-hero {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    overflow: hidden;
  }

  .home-hero::before {
    display: block;
    content: '';
    position: absolute;
    inset: 18px auto 18px 18px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #ffe0e8 18%, rgba(201, 76, 98, 0.28), transparent);
    box-shadow: 0 0 34px rgba(255, 224, 232, 0.72);
  }

  .home-hero::after {
    display: block;
    content: '';
    position: absolute;
    right: -100px;
    top: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 224, 232, 0.56);
    filter: blur(18px);
    pointer-events: none;
  }

  .hero-kicker {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 0 0 24px 16px;
  }

  .hero-kicker span,
  .hero-signal,
  .home-hero .badge {
    border: 1px solid rgba(26, 26, 26, 0.07);
    background: rgba(247, 248, 250, 0.72);
    color: #6d737a;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .hero-kicker span {
    padding: 6px 10px;
  }

  .hero-signal {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 34px 16px;
    padding: 7px 10px;
  }

  .signal-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #3f8f73;
    box-shadow: 0 0 0 5px rgba(63, 143, 115, 0.10);
  }

  .home-hero .hero-icon {
    display: none;
  }

  .home-hero .hero-title {
    max-width: 360px;
    margin: 0 0 0 16px;
    color: #1a1a1a;
    font-size: 58px;
    line-height: 0.98;
    font-weight: 680;
    letter-spacing: 0;
  }

  .home-hero .hero-tagline {
    max-width: 360px;
    margin: 22px 0 0 16px;
    color: #5c626a;
    font-size: 12.5px;
    line-height: 1.78;
  }

  .hero-metrics {
    order: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    margin: 22px 0 0;
    padding-left: 16px;
    border: 0;
  }

  .hero-metrics div {
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 12px;
    background: rgba(247, 248, 250, 0.64);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .hero-metrics strong {
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 720;
    letter-spacing: 0;
  }

  .hero-metrics span {
    margin: 0;
    color: #8d939b;
    font-size: 9.5px;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .home-hero .hero-highlights {
    order: 15;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-start;
    margin: 22px 0 0 16px;
  }

  .home-hero .badge {
    min-height: 24px;
    padding: 5px 9px;
  }

  .home-hero .hero-actions {
    order: 20;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: auto 0 0 16px;
    padding-top: 24px;
  }

  .upload-console {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 18px;
  }

  .upload-console-head {
    min-height: 62px;
    padding: 2px 2px 14px;
    border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .upload-console-head span {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 680;
    letter-spacing: 0;
  }

  .upload-console-head small {
    max-width: 300px;
    color: #8d939b;
    font-size: 11px;
    line-height: 1.5;
  }

  #drop-zone {
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 30px 24px;
    border: 1px dashed rgba(26, 26, 26, 0.16);
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 224, 232, 0.54), transparent 230px),
      rgba(247, 248, 250, 0.60);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(201, 76, 98, 0.28);
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 224, 232, 0.70), transparent 230px),
      rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.90);
  }

  .dropzone-inner {
    width: 100%;
  }

  .dropzone-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(26, 26, 26, 0.07);
    color: #1a1a1a !important;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
  }

  .dropzone-title {
    color: #1a1a1a;
    font-size: 21px;
    line-height: 1.18;
    font-weight: 680;
    letter-spacing: 0;
  }

  .dropzone-subtitle {
    max-width: 330px;
    color: #5c626a;
    font-size: 11.5px;
    line-height: 1.7;
  }

  #browse-btn {
    padding: 10px 17px !important;
    font-size: 11.5px !important;
  }

  .dropzone-hint {
    color: #9aa0a8;
    font-size: 10.5px;
  }

  .privacy-card {
    min-height: 82px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 16px;
    background: rgba(247, 248, 250, 0.56);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .privacy-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 224, 232, 0.60) !important;
    color: #1a1a1a !important;
  }

  .privacy-title {
    color: #1a1a1a;
    font-size: 12.5px;
  }

  .privacy-desc {
    color: #6d737a;
    font-size: 10.8px;
  }

  .recent-panel {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .recent-panel-header {
    min-height: 62px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.07);
  }

  .recent-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .recent-stat,
  .recent-item {
    background: rgba(247, 248, 250, 0.62);
    border: 1px solid rgba(26, 26, 26, 0.06);
    box-shadow: none;
  }

  .recent-stat {
    min-height: 84px;
    border-radius: 14px;
  }

  .recent-stat-label {
    color: #9aa0a8;
  }

  .recent-stat-value {
    color: #1a1a1a;
    font-size: 24px;
    letter-spacing: 0;
  }

  #recent-level-dist {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-content: start;
  }

  .recent-panel #recent-list {
    display: flex !important;
    flex: 1;
    min-height: 0;
    max-height: none;
    flex-direction: column;
    gap: 8px !important;
    overflow-y: auto;
    padding-right: 2px;
  }

  .recent-item {
    min-height: auto;
    padding: 11px 12px;
    border-left-width: 1px;
    border-radius: 14px;
  }

  .recent-item-name {
    color: #1a1a1a;
    font-size: 11.5px;
  }

  .recent-item-meta {
    color: #8d939b;
  }

  .recent-panel .badge-red,
  .badge-red {
    background: rgba(201, 76, 98, 0.10);
    color: #c94c62;
    border-color: rgba(201, 76, 98, 0.20);
  }

  .badge-blue,
  .badge-purple,
  .badge-green,
  .badge-yellow,
  .badge-gray {
    background: rgba(247, 248, 250, 0.70);
    color: #5c626a;
    border-color: rgba(26, 26, 26, 0.07);
  }

  .btn {
    min-height: 34px;
    border-radius: 999px;
    font-size: 11.5px;
    letter-spacing: 0;
  }

  .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 14px 32px rgba(26, 26, 26, 0.16);
  }

  .btn-primary:hover {
    background: #303030;
    border-color: #303030;
    box-shadow: 0 18px 40px rgba(26, 26, 26, 0.18);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.62);
    color: #5c626a;
    border-color: rgba(26, 26, 26, 0.08);
  }

  .btn-ghost:hover {
    background: rgba(255, 224, 232, 0.52);
    color: #1a1a1a;
    border-color: rgba(201, 76, 98, 0.16);
  }

  .landing-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .feature-card {
    min-height: 150px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 224, 232, 0.60) !important;
    color: #1a1a1a !important;
  }

  .feature-title {
    color: #1a1a1a;
    font-size: 12px;
    letter-spacing: 0;
  }

  .feature-desc {
    color: #6d737a;
    font-size: 10.8px;
  }

  .landing-footer {
    justify-content: center;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    color: #6d737a;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }

  @media (max-width: 1120px) {
    .home-nav,
    .home-v3-intro,
    .landing-content.with-recent {
      grid-template-columns: 1fr;
    }

    .home-nav-links,
    .home-nav-actions {
      justify-self: start;
      flex-wrap: wrap;
    }

    .home-v3-intro strong {
      justify-self: start;
      text-align: left;
    }

    .home-primary {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .home-hero,
    .upload-console,
    .recent-panel {
      grid-column: auto;
      grid-row: auto;
      min-height: auto;
    }

    .upload-console {
      min-height: 520px;
    }

    .landing-features {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 680px) {
    .dropzone-wrap {
      padding: 16px;
    }

    .home-hero {
      padding: 24px;
    }

    .home-hero .hero-title {
      font-size: 42px;
    }

    .hero-metrics {
      padding-left: 0;
    }

    .hero-kicker,
    .hero-signal,
    .home-hero .hero-title,
    .home-hero .hero-tagline,
    .home-hero .hero-highlights,
    .home-hero .hero-actions {
      margin-left: 0;
    }

    .landing-features {
      grid-template-columns: 1fr;
    }
  }

  /* Dark mode final override */
  :root {
    --bg-base: #090909;
    --bg-panel: rgba(255, 255, 255, 0.065);
    --bg-elevated: rgba(255, 255, 255, 0.095);
    --bg-hover: rgba(255, 224, 232, 0.11);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.68);
    --text-muted: rgba(255, 255, 255, 0.42);
    --accent: #ffe0e8;
    --accent-hover: #ffd2dd;
    --accent-dim: rgba(255, 224, 232, 0.14);
    --danger: #ff8fa3;
    --danger-dim: rgba(255, 143, 163, 0.12);
    --warning: #e4bd64;
    --warning-dim: rgba(228, 189, 100, 0.12);
    --success: #8dd9b4;
    --success-dim: rgba(141, 217, 180, 0.12);
    --purple: #f0afc2;
    --purple-dim: rgba(240, 175, 194, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.065);
    --glass-strong: rgba(255, 255, 255, 0.11);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 18px 58px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 34px 110px rgba(0, 0, 0, 0.52);
  }

  html,
  body {
    background: #090909;
  }

  body {
    color: #ffffff;
    background:
      radial-gradient(circle at 12% 8%, rgba(255, 224, 232, 0.16), transparent 360px),
      radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.075), transparent 420px),
      linear-gradient(180deg, #090909 0%, #101010 54%, #090909 100%);
  }

  body::before {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    opacity: 0.44;
  }

  .dropzone-wrap {
    background: transparent;
  }

  .home-nav,
  .home-hero,
  .upload-console,
  .recent-panel,
  .feature-card,
  .landing-footer,
  .modal-card,
  .loading-card,
  .card,
  .file-header,
  .sidebar {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .home-brand,
  .home-brand strong,
  .home-v3-intro strong,
  .home-hero .hero-title,
  .dropzone-title,
  .privacy-title,
  .feature-title,
  .recent-item-name,
  .recent-stat-value,
  .upload-console-head span,
  .card-title,
  .modal-title,
  .loading-title,
  .file-name {
    color: #ffffff;
  }

  .home-brand small,
  .home-v3-intro span,
  .hero-signal,
  .home-hero .hero-tagline,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .feature-desc,
  .recent-item-meta,
  .recent-stat-label,
  .upload-console-head small,
  .modal-subtitle,
  .progress-status,
  .file-meta {
    color: rgba(255, 255, 255, 0.56);
  }

  .home-brand-mark {
    background: #ffffff;
    border-color: #ffffff;
    color: #090909;
  }

  .home-nav-links,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher,
  .hero-kicker span,
  .hero-signal,
  .home-hero .badge,
  .hero-metrics div,
  .privacy-card,
  .recent-stat,
  .recent-item,
  .chip,
  .modal-file,
  .modal-summary,
  .modal-privacy,
  pre.code-block,
  .table-modern th {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
  }

  .home-nav-links a,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher button {
    color: rgba(255, 255, 255, 0.66);
  }

  .home-nav-links a:hover,
  .nav-chip:hover,
  .nav-icon-btn:hover,
  .home-lang-switcher button:hover,
  .home-lang-switcher button.active {
    color: #ffffff;
    background: rgba(255, 224, 232, 0.13);
  }

  .nav-chip-accent {
    color: #ffe0e8;
    border-color: rgba(255, 224, 232, 0.22);
    background: rgba(255, 224, 232, 0.12);
  }

  .home-hero::before {
    background: linear-gradient(180deg, transparent, #ffe0e8 18%, rgba(255, 224, 232, 0.22), transparent);
    box-shadow: 0 0 34px rgba(255, 224, 232, 0.34);
  }

  .home-hero::after {
    background: rgba(255, 224, 232, 0.16);
  }

  .hero-metrics strong {
    color: #ffffff;
  }

  .hero-metrics span {
    color: rgba(255, 255, 255, 0.42);
  }

  #drop-zone {
    border-color: rgba(255, 255, 255, 0.16);
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 224, 232, 0.13), transparent 230px),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(255, 224, 232, 0.34);
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 224, 232, 0.18), transparent 230px),
      rgba(255, 255, 255, 0.075);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg,
  .login-gate-icon {
    background: rgba(255, 224, 232, 0.12) !important;
    border-color: rgba(255, 224, 232, 0.20);
    color: #ffe0e8 !important;
  }

  .btn-primary {
    background: #ffffff;
    color: #090909;
    border-color: #ffffff;
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.12);
  }

  .btn-primary:hover {
    background: #ffe0e8;
    border-color: #ffe0e8;
    box-shadow: 0 20px 48px rgba(255, 224, 232, 0.16);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.11);
  }

  .btn-ghost:hover {
    background: rgba(255, 224, 232, 0.12);
    color: #ffffff;
    border-color: rgba(255, 224, 232, 0.24);
  }

  .badge-blue,
  .badge-purple,
  .badge-green,
  .badge-yellow,
  .badge-gray {
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.68);
    border-color: rgba(255, 255, 255, 0.10);
  }

  .badge-red,
  .recent-panel .badge-red {
    background: rgba(255, 143, 163, 0.10);
    color: #ff8fa3;
    border-color: rgba(255, 143, 163, 0.22);
  }

  .modal-backdrop,
  .loading-overlay {
    background: rgba(9, 9, 9, 0.70);
  }

  .modal-footer {
    background: rgba(255, 255, 255, 0.045);
  }

  .progress-bar {
    background: rgba(255, 255, 255, 0.10);
  }

  .progress-fill {
    background: linear-gradient(90deg, #ffffff, #ffe0e8);
  }

  /* Horizontal width only */
  .dropzone-wrap {
    padding-left: clamp(16px, 2vw, 28px);
    padding-right: clamp(16px, 2vw, 28px);
  }

  .landing-container {
    max-width: 1520px;
  }

  /* Linear/Vercel dark surface refinement */
  :root {
    --bg-base: #09090b;
    --bg-panel: rgba(24, 24, 27, 0.72);
    --bg-elevated: rgba(39, 39, 42, 0.64);
    --bg-hover: rgba(63, 63, 70, 0.52);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #ffe0e8;
    --accent-dim: rgba(255, 224, 232, 0.10);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }

  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(255, 224, 232, 0.055), transparent 360px),
      linear-gradient(180deg, #09090b 0%, #0b0b0f 100%);
  }

  body::before {
    opacity: 0.18;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 80px 80px;
  }

  .home-nav,
  .home-hero,
  .upload-console,
  .recent-panel,
  .feature-card,
  .landing-footer,
  .modal-card,
  .loading-card,
  .card,
  .file-header,
  .sidebar {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.78), rgba(15, 15, 18, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .home-hero,
  .upload-console,
  .recent-panel {
    border-radius: 18px;
  }

  .home-nav {
    border-radius: 16px;
  }

  .home-brand-mark {
    background: #fafafa;
    color: #09090b;
    border-color: #fafafa;
  }

  .home-brand strong,
  .home-v3-intro strong,
  .home-hero .hero-title,
  .dropzone-title,
  .privacy-title,
  .recent-stat-value,
  .recent-item-name,
  .upload-console-head span {
    color: #fafafa;
  }

  .home-brand small,
  .home-v3-intro span,
  .home-hero .hero-tagline,
  .dropzone-subtitle,
  .privacy-desc,
  .recent-item-meta,
  .recent-stat-label,
  .upload-console-head small,
  .dropzone-hint {
    color: #a1a1aa;
  }

  .home-nav-links,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher,
  .hero-kicker span,
  .hero-signal,
  .home-hero .badge,
  .hero-metrics div,
  .privacy-card,
  .recent-stat,
  .recent-item,
  .chip,
  .modal-file,
  .modal-summary,
  .modal-privacy,
  pre.code-block {
    background: rgba(39, 39, 42, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.075);
    color: #a1a1aa;
    box-shadow: none;
  }

  .home-nav-links a,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher button {
    color: #a1a1aa;
  }

  .home-nav-links a:hover,
  .nav-chip:hover,
  .nav-icon-btn:hover,
  .home-lang-switcher button:hover,
  .home-lang-switcher button.active {
    color: #fafafa;
    background: rgba(63, 63, 70, 0.50);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .nav-chip-accent {
    color: #fafafa;
    background: rgba(255, 224, 232, 0.075);
    border-color: rgba(255, 224, 232, 0.18);
  }

  .home-hero::before {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 224, 232, 0.58), transparent);
    box-shadow: none;
  }

  .home-hero::after {
    opacity: 0;
  }

  .hero-kicker span,
  .hero-signal,
  .home-hero .badge {
    font-size: 9px;
    color: #a1a1aa;
  }

  .hero-metrics div {
    border-radius: 10px;
  }

  .hero-metrics span {
    color: #71717a;
  }

  .upload-console {
    padding: 16px;
  }

  .upload-console-head {
    border-bottom-color: rgba(255, 255, 255, 0.075);
  }

  #drop-zone {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.54), rgba(24, 24, 27, 0.48));
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  }

  #drop-zone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    background:
      radial-gradient(circle at 50% 30%, rgba(255, 224, 232, 0.16), transparent 45%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    transform: translateY(-1px);
    border-color: rgba(255, 224, 232, 0.34);
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.66), rgba(24, 24, 27, 0.58));
    box-shadow:
      0 0 0 1px rgba(255, 224, 232, 0.08),
      0 0 36px rgba(255, 224, 232, 0.075);
  }

  #drop-zone:hover::after,
  #drop-zone.drag-active::after {
    opacity: 1;
  }

  .dropzone-inner {
    position: relative;
    z-index: 1;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: rgba(63, 63, 70, 0.46) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fafafa !important;
    box-shadow: none;
  }

  .btn {
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  }

  .btn-primary {
    background: #fafafa;
    color: #09090b;
    border-color: #fafafa;
    box-shadow: none;
  }

  .btn-primary:hover {
    background: #ffe0e8;
    border-color: #ffe0e8;
    box-shadow: 0 0 28px rgba(255, 224, 232, 0.14);
  }

  .btn-ghost {
    background: rgba(39, 39, 42, 0.44);
    color: #a1a1aa;
    border-color: rgba(255, 255, 255, 0.075);
  }

  .btn-ghost:hover {
    color: #fafafa;
    background: rgba(63, 63, 70, 0.48);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 24px rgba(255, 224, 232, 0.08);
  }

  .recent-panel #recent-list {
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }

  .recent-item {
    border-radius: 12px;
  }

  .badge-red,
  .recent-panel .badge-red {
    background: rgba(248, 113, 113, 0.10);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.18);
  }

  /* Recent uploads panel based on reference layout */
  .recent-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
  }

  .recent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  }

  .recent-panel-header [data-i18n="recent.title"] {
    color: #fafafa;
    font-size: 13px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
  }

  .recent-panel-header [data-i18n="recent.subtitle"] {
    color: #71717a !important;
    font-size: 10px !important;
    margin-top: 3px !important;
  }

  .recent-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .recent-stat {
    min-height: 76px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(39, 39, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .recent-stat-label {
    color: #71717a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .recent-stat-value {
    margin-top: 5px;
    color: #fafafa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.04em;
  }

  #recent-level-dist {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap;
    align-content: flex-start;
    min-height: 24px;
  }

  #recent-level-dist .badge {
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 8px;
    letter-spacing: 0.05em;
  }

  .recent-panel #recent-list {
    display: flex !important;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 8px !important;
    overflow-y: auto;
    padding: 0 2px 0 0;
    margin: 0;
  }

  .recent-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left-width: 2px;
    background: rgba(39, 39, 42, 0.34);
    transition: background 0.16s ease, border-color 0.16s ease;
  }

  .recent-item:hover {
    background: rgba(39, 39, 42, 0.52);
    border-color: rgba(255, 255, 255, 0.11);
  }

  .recent-item-name {
    color: #fafafa;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
  }

  .recent-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #71717a;
    font-size: 10px;
  }

  .recent-item-meta .badge {
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 8px;
  }

  /* Dropzone hover without glow */
  #drop-zone {
    isolation: isolate;
    overflow: hidden;
  }

  #drop-zone::before {
    display: none;
  }

  #drop-zone::after {
    display: none;
  }

  /* Button radius normalization */
  button,
  .btn,
  .admin-link,
  .user-chip,
  .nav-chip,
  .nav-icon-btn,
  .lang-switcher button,
  .home-lang-switcher button,
  .auth-submit,
  .file-tab-close {
    border-radius: 15px !important;
  }

  body::before {
    display: none !important;
    background: none !important;
  }

  /* User entry sidebar refinement */
  .user-entry-page .sidebar .nav-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.045);
    color: rgba(228, 228, 231, 0.72);
  }

  .user-entry-page .sidebar .nav-item i {
    opacity: 0.62;
  }

  .user-entry-page .sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.085);
    color: rgba(250, 250, 250, 0.94);
  }

  .user-entry-page .sidebar .nav-item.active {
    background: rgba(255, 224, 232, 0.075);
    border-color: rgba(255, 224, 232, 0.16);
    color: #ffe0e8;
  }

  .user-entry-page .sidebar .nav-item.active i,
  .user-entry-page .sidebar .nav-item:hover i {
    opacity: 0.9;
  }

  /* Compact homepage pass */
  .landing-container {
    max-width: 1500px !important;
    padding: 18px 28px 20px !important;
    gap: 12px !important;
  }

  .home-nav {
    min-height: 58px;
    padding: 10px 12px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(24, 24, 27, 0.82), rgba(12, 12, 15, 0.72)) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
  }

  .home-brand {
    gap: 10px;
  }

  .home-brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  .home-brand strong {
    font-size: 13px !important;
    letter-spacing: -0.02em;
  }

  .home-brand small {
    font-size: 10px !important;
  }

  .home-nav-links {
    padding: 4px !important;
    border-radius: 14px !important;
  }

  .home-nav-links a,
  .nav-chip,
  .nav-icon-btn,
  .home-lang-switcher {
    min-height: 34px !important;
    border-radius: 12px !important;
  }

  .landing-container > .landing-hero:not(.home-hero) {
    display: none !important;
  }

  .landing-content.with-recent {
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .upload-console,
  .recent-panel {
    min-height: 560px !important;
  }

  .upload-console {
    padding: 16px !important;
  }

  .upload-console-head {
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
  }

  #drop-zone {
    min-height: 330px !important;
  }

  .dropzone-inner {
    padding: 30px 22px !important;
  }

  .dropzone-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 14px !important;
  }

  .dropzone-title {
    font-size: 19px !important;
  }

  .dropzone-subtitle {
    margin-top: 8px !important;
    font-size: 12px !important;
  }

  .dropzone-hint {
    margin-top: 10px !important;
  }

  .privacy-card {
    margin-top: 12px !important;
    padding: 12px !important;
  }

  .recent-panel {
    padding: 14px !important;
    gap: 12px !important;
  }

  .recent-stats {
    display: none !important;
  }

  .landing-features {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }

  .feature-card {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 7px;
    padding: 12px !important;
    border-radius: 15px !important;
    min-height: 98px !important;
  }

  .feature-card .feature-icon {
    grid-column: 1;
    grid-row: 1;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 11px !important;
  }

  .feature-card .feature-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2;
  }

  .feature-card .feature-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .landing-footer,
  #landing-footer {
    display: none !important;
  }

  @media (max-width: 1180px) {
    .landing-features {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 720px) {
    .landing-container {
      padding: 14px !important;
    }

    .landing-features {
      grid-template-columns: 1fr !important;
    }

    .upload-console,
    .recent-panel {
      min-height: auto !important;
    }
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: none;
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.68), rgba(24, 24, 27, 0.58));
  }

  #drop-zone:hover::before,
  #drop-zone.drag-active::before {
    opacity: 1;
  }

  #drop-zone:hover .dropzone-icon,
  #drop-zone.drag-active .dropzone-icon {
    color: #ffe0e8 !important;
    border-color: rgba(255, 224, 232, 0.28);
    background: rgba(255, 224, 232, 0.10) !important;
    transform: translateY(-1px);
  }

  #drop-zone:hover .dropzone-title,
  #drop-zone.drag-active .dropzone-title {
    color: #ffffff;
  }

  #drop-zone,
  #drop-zone:hover,
  #drop-zone.drag-active {
    box-shadow: none !important;
  }

  #drop-zone::before,
  #drop-zone::after,
  #drop-zone:hover::before,
  #drop-zone:hover::after,
  #drop-zone.drag-active::before,
  #drop-zone.drag-active::after {
    display: none !important;
    opacity: 0 !important;
  }

  /* Remove hero card and normalize recent uploads spacing */
  .home-hero[hidden] {
    display: none !important;
  }

  .landing-content.with-recent {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 424px);
    align-items: stretch;
  }

  .home-primary {
    display: contents;
  }

  .upload-console {
    grid-column: 1;
    grid-row: 1;
    min-height: 640px;
  }

  .recent-panel {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 640px;
    padding: 16px;
    gap: 14px;
  }

  .recent-panel-header,
  .recent-stats,
  #recent-level-dist,
  .recent-panel #recent-list,
  .recent-item {
    width: 100%;
    box-sizing: border-box;
  }

  .recent-panel-header {
    padding-inline: 0;
  }

  .recent-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-stat {
    padding: 12px;
  }

  #recent-level-dist {
    padding: 0;
  }

  .recent-panel #recent-list {
    align-items: stretch;
    padding-right: 0;
  }

  .recent-item {
    padding: 12px;
  }

  @media (max-width: 980px) {
    .landing-content.with-recent {
      grid-template-columns: 1fr;
    }

    .upload-console,
    .recent-panel {
      grid-column: auto;
      grid-row: auto;
      min-height: auto;
    }
  }

  /* Tailark reference blocks on main page */
  .legacy-features {
    display: none !important;
  }

  .tailark-header.home-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 64px;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    background: rgba(12, 12, 15, 0.74) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .tailark-brand {
    min-width: max-content;
  }

  .tailark-brand-mark {
    background: #fafafa !important;
    color: #09090b !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  .tailark-header .home-nav-links {
    gap: 3px;
    padding: 4px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border-radius: 999px !important;
  }

  .tailark-header .home-nav-links a {
    border-radius: 999px !important;
    padding: 8px 13px !important;
    color: rgba(250, 250, 250, 0.68) !important;
  }

  .tailark-header .home-nav-links a:hover {
    color: #fafafa !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .tailark-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding: clamp(22px, 4vw, 54px) 4px 10px;
  }

  .tailark-hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }

  .tailark-hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #a1a1aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tailark-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fafafa;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-weight: 760;
  }

  .tailark-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #a1a1aa;
    font-size: clamp(14px, 1.7vw, 18px);
    line-height: 1.65;
  }

  .tailark-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .tailark-bento.landing-features {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(220px, 1fr)) !important;
    grid-auto-rows: minmax(178px, auto);
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .tailark-bento-card.feature-card {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 16px;
    min-height: 178px !important;
    padding: 24px !important;
    overflow: hidden;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 16% 0%, rgba(255, 224, 232, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(24, 24, 27, 0.88), rgba(12, 12, 15, 0.78)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
  }

  .tailark-bento-card.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 224, 232, 0.22) !important;
    background:
      radial-gradient(circle at 16% 0%, rgba(255, 224, 232, 0.12), transparent 36%),
      linear-gradient(180deg, rgba(32, 32, 36, 0.92), rgba(15, 15, 18, 0.82)) !important;
  }

  .tailark-bento-card-large.feature-card {
    grid-row: span 2;
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 368px !important;
  }

  .tailark-bento-card h3 {
    margin: 0;
    color: #fafafa;
    font-size: 16px;
    font-weight: 680;
    letter-spacing: -0.02em;
  }

  .tailark-bento-card p {
    margin: 8px 0 0;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 1.55;
  }

  .tailark-bento-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #ffe0e8;
    font-size: 17px;
  }

  .tailark-score-visual {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tailark-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #a1a1aa;
    font-size: 12px;
  }

  .tailark-score-head strong {
    color: #fca5a5;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 18px;
  }

  .tailark-score-bar {
    position: relative;
    height: 12px;
    margin: 16px 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .tailark-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffe0e8, #fca5a5);
  }

  .tailark-finding-list {
    display: grid;
    gap: 8px;
  }

  .tailark-finding-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(9, 9, 11, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(250, 250, 250, 0.78);
    font-size: 12px;
  }

  .tailark-finding-list i {
    color: #ffe0e8;
    width: 14px;
    text-align: center;
  }

  @media (max-width: 1180px) {
    .tailark-hero {
      grid-template-columns: 1fr;
    }

    .tailark-hero-actions {
      justify-content: flex-start;
      padding-bottom: 0;
    }

    .tailark-bento.landing-features {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .tailark-bento-card-large.feature-card {
      grid-column: 1 / -1;
      grid-row: auto;
      min-height: auto !important;
    }
  }

  @media (max-width: 760px) {
    .tailark-header.home-nav {
      position: relative;
    }

    .tailark-header .home-nav-links {
      order: 3;
      width: 100%;
      justify-content: center;
    }

    .tailark-hero {
      padding-top: 18px;
    }

    .tailark-hero h1 {
      font-size: 42px;
      letter-spacing: -0.04em;
    }

    .tailark-hero-actions {
      align-items: stretch;
      flex-direction: column;
    }

    .tailark-hero-actions .btn {
      justify-content: center;
      width: 100%;
    }

    .tailark-bento.landing-features {
      grid-template-columns: 1fr !important;
    }

    .tailark-bento-card.feature-card {
      grid-template-columns: 1fr;
      min-height: auto !important;
      padding: 20px !important;
    }
  }

  .tailark-fixed-header-spacer {
    height: 76px;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] {
    color: hsl(var(--foreground));
  }

  .dropzone-wrap > .landing-container > section.bg-background {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
  }

  .top-right-controls {
    display: none !important;
  }

  /* Absolute final palette override */
  :root {
    --bg-base: #07080c;
    --bg-panel: rgba(15, 18, 26, 0.78);
    --bg-elevated: rgba(24, 29, 41, 0.76);
    --bg-hover: rgba(34, 43, 61, 0.72);
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.24);
    --text-primary: #f8fafc;
    --text-secondary: #a7b0c0;
    --text-muted: #647084;
    --accent: #7dd3fc;
    --accent-hover: #bae6fd;
    --accent-dim: rgba(125, 211, 252, 0.12);
    --purple: #c4b5fd;
    --purple-dim: rgba(196, 181, 253, 0.12);
    --danger: #fb7185;
    --danger-dim: rgba(251, 113, 133, 0.13);
    --background: 224 36% 5%;
    --foreground: 210 40% 98%;
    --card: 222 32% 8%;
    --card-foreground: 210 40% 98%;
    --muted: 222 24% 15%;
    --muted-foreground: 218 16% 68%;
    --primary: 195 96% 72%;
    --primary-foreground: 224 36% 5%;
    --ring: 195 96% 72%;
  }

  body {
    background:
      radial-gradient(circle at 50% -140px, rgba(125, 211, 252, 0.13), transparent 430px),
      radial-gradient(circle at 88% 18%, rgba(196, 181, 253, 0.08), transparent 360px),
      linear-gradient(180deg, #07080c 0%, #090b12 46%, #07080c 100%) !important;
    color: #f8fafc !important;
  }

  .dropzone-wrap {
    background:
      radial-gradient(circle at 18% 10%, rgba(125, 211, 252, 0.08), transparent 360px),
      radial-gradient(circle at 82% 0%, rgba(196, 181, 253, 0.07), transparent 380px),
      transparent !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] .fixed {
    background: rgba(7, 8, 12, 0.72) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] svg,
  .dropzone-wrap > .landing-container > header[role="banner"] a,
  .dropzone-wrap > .landing-container > header[role="banner"] button {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"],
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"] {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"]:hover {
    color: #f8fafc !important;
    background: rgba(125, 211, 252, 0.10) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer {
    background: #f8fafc !important;
    color: #07080c !important;
    box-shadow: 0 0 34px rgba(125, 211, 252, 0.14) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer svg {
    color: #07080c !important;
  }

  .dropzone-wrap > .landing-container > section.bg-background {
    background:
      radial-gradient(circle at 18% 0%, rgba(125, 211, 252, 0.09), transparent 380px),
      linear-gradient(180deg, rgba(11, 14, 21, 0.92), rgba(8, 10, 15, 0.92)) !important;
    border: 1px solid rgba(148, 163, 184, 0.11) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  .dropzone-wrap > .landing-container > section [data-slot="card"],
  .upload-console,
  .recent-panel,
  .privacy-card,
  .modal-card,
  .loading-card,
  .card,
  .file-header {
    background:
      radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.055), transparent 260px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.86), rgba(10, 13, 20, 0.82)) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.24) !important;
  }

  .dropzone-wrap > .landing-container > section h3,
  .dropzone-wrap > .landing-container > section .text-foreground,
  .dropzone-title,
  .privacy-title,
  .recent-item-name,
  .upload-console-head span {
    color: #f8fafc !important;
  }

  .dropzone-wrap > .landing-container > section .text-muted-foreground,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .recent-item-meta,
  .upload-console-head small {
    color: #a7b0c0 !important;
  }

  .dropzone-wrap > .landing-container > section .bg-primary,
  .dropzone-wrap > .landing-container > section .bg-primary\/40 {
    background-color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .text-primary {
    color: #7dd3fc !important;
  }

  .dropzone-wrap > .landing-container > section .bg-card,
  .dropzone-wrap > .landing-container > section .bg-muted,
  .recent-stat,
  .recent-item,
  .home-lang-switcher,
  .nav-chip,
  .nav-icon-btn {
    background: rgba(24, 29, 41, 0.74) !important;
    border-color: rgba(148, 163, 184, 0.13) !important;
  }

  .dropzone-wrap > .landing-container > section .ring-border,
  .dropzone-wrap > .landing-container > section .ring-border-illustration {
    --tw-ring-color: rgba(148, 163, 184, 0.14) !important;
  }

  #drop-zone {
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.105), transparent 270px),
      linear-gradient(180deg, rgba(20, 24, 35, 0.78), rgba(12, 15, 23, 0.78)) !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    border-color: rgba(125, 211, 252, 0.48) !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(125, 211, 252, 0.16), transparent 290px),
      linear-gradient(180deg, rgba(25, 31, 45, 0.88), rgba(13, 17, 26, 0.88)) !important;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: rgba(125, 211, 252, 0.11) !important;
    border-color: rgba(125, 211, 252, 0.20) !important;
    color: #7dd3fc !important;
  }

  .btn-primary {
    background: #f8fafc !important;
    color: #07080c !important;
    border-color: #f8fafc !important;
  }

  .btn-primary:hover {
    background: #bae6fd !important;
    border-color: #bae6fd !important;
    box-shadow: 0 0 30px rgba(125, 211, 252, 0.16) !important;
  }

  .btn-ghost {
    background: rgba(24, 29, 41, 0.72) !important;
    color: #a7b0c0 !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
  }

  .btn-ghost:hover {
    background: rgba(125, 211, 252, 0.10) !important;
    color: #f8fafc !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
  }

  /* User requested neutral palette only */
  :root {
    --background: #0A0A0A;
    --foreground: #FAFAFA;
    --card: #111111;
    --card-foreground: #FAFAFA;
    --popover: #111111;
    --popover-foreground: #FAFAFA;
    --primary: #FAFAFA;
    --primary-foreground: #0A0A0A;
    --secondary: #1C1C1C;
    --secondary-foreground: #FAFAFA;
    --muted: #1C1C1C;
    --muted-foreground: #A1A1A1;
    --accent: #252525;
    --accent-foreground: #FAFAFA;
    --destructive: #D64545;
    --destructive-foreground: #FAFAFA;
    --border: #252525;
    --input: #252525;
    --ring: #A1A1A1;
    --radius: 6px;
    --sidebar-background: #111111;
    --sidebar-foreground: #A1A1A1;
    --sidebar-primary: #FAFAFA;
    --sidebar-primary-foreground: #0A0A0A;
    --sidebar-accent: #1C1C1C;
    --sidebar-accent-foreground: #FAFAFA;
    --sidebar-border: #252525;
    --sidebar-ring: #A1A1A1;
    --nav-active: #252525;
    --table-row-hover: #141414;
    --bg-base: var(--background);
    --bg-panel: var(--card);
    --bg-elevated: var(--secondary);
    --bg-hover: var(--table-row-hover);
    --border-strong: var(--border);
    --text-primary: var(--foreground);
    --text-secondary: var(--muted-foreground);
    --text-muted: var(--muted-foreground);
    --accent-hover: var(--accent);
    --accent-dim: var(--secondary);
    --purple: var(--muted-foreground);
    --purple-dim: var(--secondary);
    --success: var(--foreground);
    --success-dim: var(--secondary);
    --warning: var(--muted-foreground);
    --warning-dim: var(--secondary);
    --danger: var(--destructive);
    --danger-dim: rgba(214, 69, 69, 0.14);
  }

  body,
  .dropzone-wrap {
    background: var(--background) !important;
    color: var(--foreground) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] .fixed {
    background: rgba(10, 10, 10, 0.86) !important;
    border-bottom: 1px solid var(--border) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] svg,
  .dropzone-wrap > .landing-container > header[role="banner"] a,
  .dropzone-wrap > .landing-container > header[role="banner"] button,
  .dropzone-wrap > .landing-container > section h3,
  .dropzone-wrap > .landing-container > section .text-foreground,
  .dropzone-title,
  .privacy-title,
  .recent-item-name,
  .upload-console-head span {
    color: var(--foreground) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"],
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"],
  .dropzone-wrap > .landing-container > section .text-muted-foreground,
  .dropzone-subtitle,
  .dropzone-hint,
  .privacy-desc,
  .recent-item-meta,
  .upload-console-head small {
    color: var(--muted-foreground) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-trigger"]:hover,
  .dropzone-wrap > .landing-container > header[role="banner"] [data-slot="navigation-menu-link"]:hover,
  .btn-ghost:hover,
  .nav-chip:hover,
  .nav-icon-btn:hover,
  .home-lang-switcher button:hover,
  .home-lang-switcher button.active {
    background: var(--nav-active) !important;
    color: var(--foreground) !important;
    border-color: var(--border) !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer,
  .btn-primary {
    background: var(--primary) !important;
    color: var(--primary-foreground) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
  }

  .dropzone-wrap > .landing-container > header[role="banner"] a.cursor-pointer svg {
    color: var(--primary-foreground) !important;
  }

  .dropzone-wrap > .landing-container > section.bg-background,
  .dropzone-wrap > .landing-container > section [data-slot="card"],
  .upload-console,
  .recent-panel,
  .privacy-card,
  .modal-card,
  .loading-card,
  .card,
  .file-header {
    background: var(--card) !important;
    border-color: var(--border) !important;
    color: var(--card-foreground) !important;
    box-shadow: none !important;
  }

  .dropzone-wrap > .landing-container > section .bg-card,
  .dropzone-wrap > .landing-container > section .bg-muted,
  .recent-stat,
  .recent-item,
  .home-lang-switcher,
  .nav-chip,
  .nav-icon-btn,
  .btn-ghost,
  #drop-zone {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
    color: var(--secondary-foreground) !important;
    box-shadow: none !important;
  }

  #drop-zone:hover,
  #drop-zone.drag-active {
    background: var(--table-row-hover) !important;
    border-color: var(--ring) !important;
  }

  .dropzone-wrap > .landing-container > section .bg-primary,
  .dropzone-wrap > .landing-container > section .bg-primary\/40 {
    background-color: var(--primary) !important;
  }

  .dropzone-wrap > .landing-container > section .text-primary {
    color: var(--foreground) !important;
  }

  .dropzone-wrap > .landing-container > section .ring-border,
  .dropzone-wrap > .landing-container > section .ring-border-illustration {
    --tw-ring-color: var(--border) !important;
  }

  .dropzone-icon,
  .privacy-icon,
  .feature-icon,
  .modal-header-icon,
  .file-icon-lg {
    background: var(--accent) !important;
    border-color: var(--border) !important;
    color: var(--accent-foreground) !important;
    box-shadow: none !important;
  }

  .badge-red,
  .recent-panel .badge-red {
    background: rgba(214, 69, 69, 0.14) !important;
    color: var(--destructive) !important;
    border-color: rgba(214, 69, 69, 0.30) !important;
  }

  .tailark-cards-under-analysis {
    width: 100%;
    margin: 0 0 14px;
  }

  .tailark-cards-under-analysis > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(170px, auto);
    gap: 10px !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--card-foreground) !important;
    box-shadow: none !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] h3,
  .tailark-cards-under-analysis [data-slot="card"] .text-foreground {
    color: var(--foreground) !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] p,
  .tailark-cards-under-analysis [data-slot="card"] .text-muted-foreground {
    color: var(--muted-foreground) !important;
  }

  .tailark-cards-under-analysis .bg-card,
  .tailark-cards-under-analysis .bg-muted,
  .tailark-cards-under-analysis .bg-illustration {
    background: var(--secondary) !important;
    border-color: var(--border) !important;
  }

  .tailark-cards-under-analysis .bg-primary,
  .tailark-cards-under-analysis .bg-primary\/40 {
    background-color: var(--primary) !important;
  }

  .tailark-cards-under-analysis .text-primary {
    color: var(--foreground) !important;
  }

  .tailark-cards-under-analysis .ring-border,
  .tailark-cards-under-analysis .ring-border-illustration {
    --tw-ring-color: var(--border) !important;
  }

  @media (max-width: 980px) {
    .tailark-cards-under-analysis > .grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* Final EOF compact animated bottom cards override */
  @keyframes tailarkCardsInEof {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes tailarkCardFloatEof {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }

  .tailark-cards-under-analysis {
    max-width: none !important;
    width: 100% !important;
    margin: 8px auto 18px !important;
    animation: tailarkCardsInEof 0.55s ease both !important;
  }

  .tailark-cards-under-analysis > .grid {
    width: 100% !important;
    grid-auto-rows: minmax(92px, auto) !important;
    gap: 8px !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    min-height: 0 !important;
    padding: 12px 14px !important;
    gap: 10px !important;
    animation: tailarkCardFloatEof 5.5s ease-in-out infinite !important;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease !important;
  }

  .tailark-cards-under-analysis [data-slot="card"]:hover {
    animation-play-state: paused !important;
    background: var(--secondary) !important;
    border-color: var(--ring) !important;
    transform: translateY(-4px) !important;
  }

  .tailark-cards-under-analysis h3 {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .tailark-cards-under-analysis p,
  .tailark-cards-under-analysis .text-sm {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .tailark-cards-under-analysis .size-14 {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  .tailark-cards-under-analysis .w-16 {
    width: 2.55rem !important;
  }

  .tailark-cards-under-analysis .h-36 {
    height: 4rem !important;
  }

  .tailark-cards-under-analysis .p-8 {
    padding: 12px 14px !important;
  }

  .tailark-cards-under-analysis .gap-8 {
    gap: 10px !important;
  }

  .tailark-cards-under-analysis .gap-6 {
    gap: 9px !important;
  }

  @media (max-width: 980px) {
    .tailark-cards-under-analysis {
      max-width: none !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .tailark-cards-under-analysis,
    .tailark-cards-under-analysis [data-slot="card"] {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Final EOF bottom-card visual pass: black/gray surface, inner motion only */
  @keyframes tailarkInnerDriftEof {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }

  @keyframes tailarkInnerPulseEof {
    0%, 100% {
      opacity: 0.72;
      filter: brightness(0.92);
    }
    50% {
      opacity: 1;
      filter: brightness(1.18);
    }
  }

  @keyframes tailarkInnerSlideEof {
    0% {
      transform: translateX(-8px);
      opacity: 0.55;
    }
    50% {
      transform: translateX(4px);
      opacity: 1;
    }
    100% {
      transform: translateX(-8px);
      opacity: 0.55;
    }
  }

  .tailark-cards-under-analysis {
    background: transparent !important;
    animation: none !important;
  }

  .tailark-cards-under-analysis [data-slot="card"] {
    background: #0A0A0A !important;
    border-color: #252525 !important;
    animation: none !important;
    box-shadow: inset 0 1px 0 #1C1C1C !important;
  }

  .tailark-cards-under-analysis [data-slot="card"]:hover {
    background: #111111 !important;
    border-color: #A1A1A1 !important;
    transform: none !important;
  }

  .tailark-cards-under-analysis .bg-card,
  .tailark-cards-under-analysis .bg-muted,
  .tailark-cards-under-analysis .bg-illustration,
  .tailark-cards-under-analysis .bg-background\/75 {
    background: #111111 !important;
    border-color: #252525 !important;
  }

  .tailark-cards-under-analysis .bg-primary,
  .tailark-cards-under-analysis .bg-primary\/40,
  .tailark-cards-under-analysis .w-1 {
    background-color: #FAFAFA !important;
  }

  .tailark-cards-under-analysis svg,
  .tailark-cards-under-analysis img,
  .tailark-cards-under-analysis .size-14,
  .tailark-cards-under-analysis .w-16,
  .tailark-cards-under-analysis .h-36,
  .tailark-cards-under-analysis .recharts-responsive-container {
    animation: tailarkInnerDriftEof 4.2s ease-in-out infinite !important;
  }

  .tailark-cards-under-analysis .bg-primary,
  .tailark-cards-under-analysis .bg-primary\/40,
  .tailark-cards-under-analysis .animate-breathing,
  .tailark-cards-under-analysis .rounded-full {
    animation: tailarkInnerPulseEof 2.4s ease-in-out infinite !important;
  }

  .tailark-cards-under-analysis .space-y-1\.5 > *,
  .tailark-cards-under-analysis .grid.gap-2 > *,
  .tailark-cards-under-analysis .bg-linear-to-b {
    animation: tailarkInnerSlideEof 3.2s ease-in-out infinite !important;
  }

  .tailark-cards-under-analysis .space-y-1\.5 > *:nth-child(2),
  .tailark-cards-under-analysis .grid.gap-2 > *:nth-child(2) {
    animation-delay: 0.35s !important;
  }

  .tailark-cards-under-analysis .space-y-1\.5 > *:nth-child(3) {
    animation-delay: 0.7s !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .tailark-cards-under-analysis *,
    .tailark-cards-under-analysis *::before,
    .tailark-cards-under-analysis *::after {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Final EOF flatten nested surfaces inside the Threat Score card */
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .bg-background\/75,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .bg-card,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .ring-border-illustration {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    --tw-ring-color: transparent !important;
  }

  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .rounded-2xl,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .rounded-xl {
    border-radius: 0 !important;
  }

  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .p-2,
  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .p-4 {
    padding: 0 !important;
  }

  .tailark-cards-under-analysis > .grid > .row-span-2 [data-slot="card"] .flex.items-center.gap-2.px-4.py-3 {
    padding: 0 0 10px !important;
  }

  /* Final EOF Tailark features three: site-matched dark palette */
  .tailark-features-three {
    width: 100% !important;
    padding: 18px 0 16px !important;
    background: transparent !important;
    color: #FAFAFA !important;
  }

  .tailark-features-three > .mx-auto {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tailark-features-three .bg-card\/50,
  .tailark-features-three .bg-card,
  .tailark-features-three .bg-illustration,
  .tailark-features-three .bg-background {
    background: #0A0A0A !important;
    border-color: #252525 !important;
    color: #FAFAFA !important;
    box-shadow: inset 0 1px 0 #1C1C1C !important;
  }

  .tailark-features-three .ring-border,
  .tailark-features-three .ring-border-illustration {
    --tw-ring-color: #252525 !important;
  }

  .tailark-features-three .border,
  .tailark-features-three .divide-x > :not([hidden]) ~ :not([hidden]),
  .tailark-features-three .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: #252525 !important;
  }

  .tailark-features-three h3,
  .tailark-features-three .text-foreground,
  .tailark-features-three .font-semibold,
  .tailark-features-three .font-medium {
    color: #FAFAFA !important;
  }

  .tailark-features-three p,
  .tailark-features-three .text-muted-foreground {
    color: #A1A1A1 !important;
  }

  .tailark-features-three .text-primary {
    color: #FAFAFA !important;
  }

  .tailark-features-three .bg-emerald-500 {
    background-color: #FAFAFA !important;
  }

  .tailark-features-three .bg-muted-foreground,
  .tailark-features-three [class*="bg-muted-foreground"] {
    background-color: #A1A1A1 !important;
  }

  .tailark-features-three img {
    filter: grayscale(1) contrast(1.08) brightness(0.88);
  }

  .tailark-features-three .shadow,
  .tailark-features-three .shadow-md {
    box-shadow: none !important;
  }

  @media (max-width: 980px) {
    .tailark-features-three {
      padding-top: 12px !important;
    }
  }

  /* Final EOF features layout cleanup and status colors */
  .tailark-features-three .tailark-features-shell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    --tw-ring-color: transparent !important;
  }

  .tailark-features-three .tailark-features-shell > .grid {
    background: transparent !important;
  }

  .tailark-features-three .mask-x-from-55% > div {
    background-color: #22C55E !important;
  }

  .tailark-features-three .mask-x-from-55% > div:nth-child(10),
  .tailark-features-three .mask-x-from-55% > div:nth-child(11),
  .tailark-features-three .mask-x-from-55% > div:nth-child(22),
  .tailark-features-three .mask-x-from-55% > div:nth-child(23),
  .tailark-features-three .mask-x-from-55% > div:nth-child(24),
  .tailark-features-three .mask-x-from-55% > div:nth-child(32) {
    background-color: #525252 !important;
  }

  .tailark-features-three .space-y-2\.5 > .flex.justify-between.text-sm > .text-foreground {
    color: #22C55E !important;
  }

  /* Final real EOF exact status bar colors */
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div {
    background: #22C55E !important;
    background-color: #22C55E !important;
  }

  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(10),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(11),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(22),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(23),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(24),
  .tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px > div:nth-child(32) {
    background: #525252 !important;
    background-color: #525252 !important;
  }

  /* Final real EOF page bottom sizing, separators and footer palette */
  .tailark-features-three {
    max-width: 1180px !important;
    margin: 12px auto 0 !important;
    padding: 12px 0 14px !important;
    border-top: 1px solid #252525 !important;
    border-bottom: 1px solid #252525 !important;
  }

  .tailark-features-three > .mx-auto {
    max-width: 1080px !important;
  }

  .tailark-features-three .tailark-features-shell > .grid {
    gap: 0 !important;
  }

  .tailark-features-three .row-span-2 {
    gap: 18px !important;
    padding: 20px !important;
  }

  .tailark-features-three .bg-illustration {
    padding: 10px 12px !important;
  }

  .tailark-features-three h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .tailark-features-three p,
  .tailark-features-three .text-sm {
    font-size: 12px !important;
  }

  .tailark-features-three .h-7 {
    height: 1.25rem !important;
  }

  .tailark-site-footer {
    width: 100% !important;
    margin-top: 0 !important;
    padding: 22px 0 18px !important;
    background: transparent !important;
    border-top: 1px solid #252525 !important;
    color: #FAFAFA !important;
  }

  .tailark-site-footer > .mx-auto {
    max-width: 1180px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tailark-site-footer svg,
  .tailark-site-footer .text-foreground,
  .tailark-site-footer a {
    color: #FAFAFA !important;
  }

  .tailark-site-footer .text-muted-foreground {
    color: #A1A1A1 !important;
  }

  .tailark-site-footer a:hover,
  .tailark-site-footer .hover\:text-primary:hover {
    color: #A1A1A1 !important;
  }

  .tailark-site-footer .bg-card {
    background: #111111 !important;
    border-color: #252525 !important;
    box-shadow: none !important;
  }

  .tailark-site-footer .bg-emerald-100 {
    background-color: rgba(34, 197, 94, 0.22) !important;
  }

  .tailark-site-footer .bg-emerald-500 {
    background-color: #22C55E !important;
  }

  @media (max-width: 980px) {
    .tailark-features-three,
    .tailark-site-footer > .mx-auto {
      max-width: 100% !important;
    }

    .tailark-site-footer > .mx-auto {
      padding-left: 16px !important;
      padding-right: 16px !important;
    }
  }

  /* Final real EOF hero section five adaptation */
  .tailark-hero-five {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 74px 0 58px !important;
    border-bottom: 1px solid #252525 !important;
    background:
      radial-gradient(circle at 78% 22%, rgba(250, 250, 250, 0.07), transparent 360px),
      radial-gradient(circle at 18% 10%, rgba(161, 161, 161, 0.08), transparent 320px),
      #0A0A0A !important;
  }

  .tailark-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 42px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .tailark-hero-copy {
    max-width: 560px;
    z-index: 2;
  }

  .tailark-hero-title {
    margin: 0;
    max-width: 620px;
    color: #FAFAFA !important;
    font-size: clamp(42px, 5vw, 74px);
    font-weight: 650;
    line-height: 0.96;
    letter-spacing: 0;
  }

  .tailark-hero-subtitle {
    margin: 20px 0 0;
    max-width: 620px;
    color: #A1A1A1 !important;
    font-size: 18px;
    line-height: 1.6;
  }

  .tailark-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }

  .tailark-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
  }

  .tailark-hero-actions svg {
    width: 16px;
    height: 16px;
  }

  .tailark-hero-primary {
    background: #FAFAFA !important;
    color: #0A0A0A !important;
    border: 1px solid #FAFAFA !important;
  }

  .tailark-hero-secondary {
    background: #111111 !important;
    color: #FAFAFA !important;
    border: 1px solid #252525 !important;
  }

  .tailark-hero-secondary svg {
    color: #FAFAFA !important;
    fill: rgba(250, 250, 250, 0.10);
  }

  .tailark-hero-preview {
    perspective: 1200px;
    min-height: 420px;
  }

  .tailark-preview-frame {
    position: relative;
    min-height: 390px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #252525 !important;
    border-radius: 6px;
    background: #0A0A0A !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 #1C1C1C;
    transform: rotateY(-14deg) rotateX(4deg) skewX(-4deg);
    transform-origin: center;
  }

  .tailark-preview-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(250, 250, 250, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(250, 250, 250, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  }

  .tailark-preview-topbar,
  .tailark-preview-main,
  .tailark-preview-side > div,
  .tailark-signal-list span {
    border: 1px solid #252525 !important;
    border-radius: 6px;
    background: #111111 !important;
    color: #A1A1A1 !important;
    box-shadow: inset 0 1px 0 #1C1C1C;
  }

  .tailark-preview-topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .tailark-preview-topbar span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #525252;
  }

  .tailark-preview-topbar strong {
    margin-left: 8px;
    color: #FAFAFA !important;
    font-weight: 600;
  }

  .tailark-preview-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    margin-top: 14px;
  }

  .tailark-preview-main {
    padding: 22px;
  }

  .tailark-preview-kicker,
  .tailark-preview-main p,
  .tailark-signal-list span,
  .tailark-preview-side > div {
    color: #A1A1A1 !important;
  }

  .tailark-preview-kicker {
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
  }

  .tailark-preview-main h2 {
    margin: 12px 0 0;
    color: #FAFAFA !important;
    font-size: 34px;
    line-height: 1;
  }

  .tailark-preview-main p {
    margin: 10px 0 18px;
    font-size: 13px;
  }

  .tailark-score-row {
    display: flex;
    justify-content: space-between;
    color: #FAFAFA !important;
    font-size: 13px;
    font-weight: 650;
  }

  .tailark-score-row strong {
    color: #D64545 !important;
  }

  .tailark-score-track {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #252525 !important;
  }

  .tailark-score-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #FAFAFA !important;
  }

  .tailark-signal-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .tailark-signal-list span {
    padding: 9px 10px;
    font-size: 12px;
  }

  .tailark-preview-side {
    display: grid;
    gap: 12px;
  }

  .tailark-preview-side > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 12px;
    font-size: 12px;
  }

  .tailark-preview-side strong {
    margin-top: 5px;
    color: #FAFAFA !important;
    font-size: 15px;
  }

  @media (max-width: 1100px) {
    .tailark-hero-inner {
      grid-template-columns: 1fr;
    }

    .tailark-hero-copy {
      max-width: 760px;
    }

    .tailark-preview-frame {
      transform: none;
    }
  }

  @media (max-width: 720px) {
    .tailark-hero-five {
      padding: 44px 0 34px !important;
    }

    .tailark-hero-inner {
      gap: 24px;
    }

    .tailark-hero-title {
      font-size: 40px;
    }

    .tailark-hero-subtitle {
      font-size: 15px;
    }

    .tailark-preview-grid {
      grid-template-columns: 1fr;
    }
  }

  /* EOF Tailark hero-section/five clone without glow */
  .tailark-hero-five {
    position: relative;
    overflow: hidden;
    background: #0A0A0A !important;
    color: #FAFAFA !important;
    padding: 0 !important;
  }

  .tailark-hero-stage {
    position: relative;
    padding-top: 96px !important;
    padding-bottom: 144px !important;
  }

  .tailark-hero-copy-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
  }

  .tailark-hero-copy {
    max-width: 50% !important;
  }

  .tailark-hero-title {
    max-width: 28rem !important;
    margin: 0 !important;
    color: #FAFAFA !important;
    font-size: clamp(3rem, 6vw, 3.75rem) !important;
    line-height: 0.95 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
  }

  .tailark-hero-subtitle {
    max-width: 42rem !important;
    margin: 1rem 0 2rem !important;
    color: #A1A1A1 !important;
    font-size: 1.25rem !important;
    line-height: 1.55 !important;
    text-wrap: balance;
  }

  .tailark-hero-actions {
    display: flex !important;
    align-items: center;
    gap: 0.75rem !important;
  }

  .tailark-hero-primary,
  .tailark-hero-secondary {
    display: inline-flex !important;
    height: 2.5rem !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 6px !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: none !important;
  }

  .tailark-hero-primary {
    padding: 0 0.625rem 0 1rem !important;
    border: 1px solid #FAFAFA !important;
    background: #FAFAFA !important;
    color: #0A0A0A !important;
  }

  .tailark-hero-secondary {
    padding: 0 1rem 0 0.875rem !important;
    border: 1px solid #252525 !important;
    background: #111111 !important;
    color: #FAFAFA !important;
  }

  .tailark-hero-actions svg {
    width: 1rem !important;
    height: 1rem !important;
  }

  .tailark-hero-secondary svg {
    color: #FAFAFA !important;
    fill: #252525 !important;
    stroke: #FAFAFA !important;
  }

  .tailark-hero-preview {
    position: absolute !important;
    z-index: 20;
    top: 10rem !important;
    right: -1.5rem !important;
    bottom: 4rem !important;
    left: 50% !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    transform: none !important;
    perspective: 1200px;
  }

  .tailark-preview-shell {
    position: relative;
    height: 100%;
    max-width: 48rem;
  }

  .tailark-preview-shell::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0 -1rem 1.75rem;
    border: 1px solid #252525;
    border-radius: 22px;
    background: #111111;
    transform: skewX(6deg);
  }

  .tailark-preview-frame {
    position: relative;
    height: 100% !important;
    min-height: 0 !important;
    padding: 18px !important;
    overflow: hidden;
    border: 1px solid #252525 !important;
    border-radius: 6px !important;
    background: #0A0A0A !important;
    box-shadow: none !important;
    transform: translateY(-3rem) skewX(6deg) !important;
  }

  .tailark-preview-frame::before {
    display: none !important;
  }

  .tailark-preview-topbar,
  .tailark-preview-main,
  .tailark-preview-side > div,
  .tailark-signal-list span {
    border: 1px solid #252525 !important;
    border-radius: 6px !important;
    background: #111111 !important;
    color: #A1A1A1 !important;
    box-shadow: none !important;
  }

  @media (min-width: 768px) {
    .tailark-hero-stage {
      padding-top: 144px !important;
    }
  }

  @media (min-width: 1024px) {
    .tailark-hero-stage {
      padding-top: 176px !important;
    }
  }

  @media (max-width: 900px) {
    .tailark-hero-stage {
      padding-top: 72px !important;
      padding-bottom: 72px !important;
    }

    .tailark-hero-copy {
      max-width: 100% !important;
    }

    .tailark-hero-preview {
      position: relative !important;
      inset: auto !important;
      margin-top: 6rem !important;
      transform: translateX(3rem) !important;
    }

    .tailark-preview-frame {
      min-height: 360px !important;
    }
  }

  @media (max-width: 640px) {
    .tailark-hero-title {
      font-size: 3rem !important;
    }

    .tailark-hero-subtitle {
      font-size: 1rem !important;
    }

    .tailark-hero-actions {
      flex-wrap: wrap;
    }

    .tailark-hero-preview {
      transform: none !important;
    }

    .tailark-preview-frame {
      transform: translateY(-2rem) skewX(4deg) !important;
    }

    .tailark-preview-grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* EOF Tailark header + hero colors */
  .tailark-hero-header,
  .tailark-hero-header-bar {
    background: transparent !important;
    color: #FAFAFA !important;
  }

  .tailark-hero-header-bar {
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
  }

  .tailark-hero-header a,
  .tailark-hero-header button,
  .tailark-hero-header svg {
    color: #FAFAFA !important;
  }

  .tailark-hero-header nav a,
  .tailark-hero-header nav button {
    color: #A1A1A1 !important;
    background: transparent !important;
  }

  .tailark-hero-header nav a:hover,
  .tailark-hero-header nav button:hover,
  .tailark-hero-header .hover\:text-foreground:hover {
    color: #FAFAFA !important;
    background: #1C1C1C !important;
  }

  .tailark-hero-header .bg-card,
  .tailark-hero-header [class*="bg-card"] {
    background: #111111 !important;
    border-color: #252525 !important;
  }

  .tailark-hero-header .ring-border,
  .tailark-hero-header [class*="ring-border"] {
    --tw-ring-color: #252525 !important;
  }

  .tailark-hero-header .max-lg\:border-b,
  .tailark-hero-header [class*="border-b"] {
    border-color: #252525 !important;
  }

  .tailark-trust-row p {
    margin: 0;
    color: #A1A1A1 !important;
  }

  .tailark-trust-pills span {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #252525;
    border-radius: 6px;
    background: #111111;
    color: #FAFAFA;
    font-size: 13px;
    font-weight: 500;
  }

  /* Mainpage standalone dashboard hero */
  body {
    --ms-background: #0A0A0A;
    --ms-foreground: #FAFAFA;
    --ms-card: #111111;
    --ms-primary: #FAFAFA;
    --ms-primary-foreground: #0A0A0A;
    --ms-muted: #1C1C1C;
    --ms-muted-foreground: #A1A1A1;
    --ms-accent: #252525;
    --ms-border: #252525;
    --ms-radius: 6px;
  }

  body.precious-showcase-light {
    --ms-background: #FAFAFA;
    --ms-foreground: #0A0A0A;
    --ms-card: #FFFFFF;
    --ms-primary: #0A0A0A;
    --ms-primary-foreground: #FAFAFA;
    --ms-muted: #F4F4F5;
    --ms-muted-foreground: #71717A;
    --ms-accent: #ECECEC;
    --ms-border: #E4E4E7;
  }

  .precious-showcase-header,
  .precious-showcase {
    font-family: "Mulish", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .precious-showcase-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    color: var(--ms-foreground);
  }

  .precious-showcase-header-bar {
    height: 72px;
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
  }

  .precious-showcase-header.scrolled .precious-showcase-header-bar {
    border-color: color-mix(in srgb, var(--ms-foreground) 8%, transparent);
    background: color-mix(in srgb, var(--ms-background) 75%, transparent);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
  }

  .precious-showcase-container {
    width: min(100%, 1152px);
    margin: 0 auto;
    padding: 0 24px;
  }

  .precious-showcase-nav-row {
    display: flex;
    height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .precious-showcase-logo,
  .precious-showcase-actions,
  .precious-showcase-nav,
  .precious-showcase-hero-actions {
    display: flex;
    align-items: center;
  }

  .precious-showcase-logo {
    gap: 10px;
    color: var(--ms-foreground);
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
  }

  .precious-showcase-logo-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: var(--ms-radius);
    background: var(--ms-primary);
    color: var(--ms-primary-foreground);
  }

  .precious-showcase-logo-mark svg {
    width: 16px;
    height: 16px;
  }

  .precious-showcase-nav {
    justify-content: center;
    gap: 12px;
    margin-right: auto;
  }

  .precious-showcase-nav button,
  .precious-showcase-nav a,
  .precious-showcase-header-cta,
  .precious-showcase-theme {
    display: inline-flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: var(--ms-radius);
    background: transparent;
    color: var(--ms-muted-foreground);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 14px;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }

  .precious-showcase-nav button:hover,
  .precious-showcase-nav a:hover,
  .precious-showcase-theme:hover {
    background: color-mix(in srgb, var(--ms-foreground) 5%, transparent);
    color: var(--ms-foreground);
  }

  .precious-showcase-nav button[data-open="true"] svg,
  .precious-showcase-sidebar-head button[data-open="true"] svg {
    transform: rotate(180deg);
  }

  .precious-showcase-nav svg,
  .precious-showcase-header-cta svg,
  .precious-showcase-theme svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
  }

  .precious-showcase-actions {
    gap: 10px;
  }

  .precious-showcase-theme {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--ms-border);
    background: var(--ms-card);
    color: var(--ms-foreground);
  }

  .precious-showcase-header-cta {
    height: 36px;
    padding-right: 10px;
    border-radius: 999px;
    color: var(--ms-foreground);
  }

  .precious-showcase-header-cta span:last-child {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--ms-border);
    border-radius: 999px;
    background: var(--ms-card);
  }

  .precious-showcase {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    padding: 176px 0 144px;
    background: var(--ms-background);
    color: var(--ms-foreground);
  }

  .precious-showcase-copy {
    position: relative;
    z-index: 10;
  }

  .precious-showcase-text {
    width: 50%;
  }

  .precious-showcase h1 {
    max-width: 448px;
    margin: 0;
    color: var(--ms-foreground);
    font-size: clamp(48px, 6vw, 60px);
    font-weight: 600;
    line-height: .96;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .precious-showcase-lead {
    max-width: 672px;
    margin: 16px 0 32px;
    color: var(--ms-muted-foreground);
    font-size: 20px;
    line-height: 1.55;
    text-wrap: balance;
  }

  .precious-showcase-hero-actions {
    gap: 12px;
  }

  .precious-showcase-btn {
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--ms-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }

  .precious-showcase-btn:hover,
  .precious-showcase-btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
  }

  .precious-showcase-btn-primary {
    padding: 0 10px 0 16px;
    border: 1px solid var(--ms-primary);
    background: var(--ms-primary);
    color: var(--ms-primary-foreground);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  }

  .precious-showcase-btn-card {
    padding: 0 16px 0 14px;
    border: 1px solid var(--ms-border);
    background: var(--ms-card);
    color: var(--ms-foreground);
  }

  .precious-showcase-btn svg {
    width: 16px;
    height: 16px;
  }

  .precious-showcase-trust {
    margin-top: 48px;
  }

  .precious-showcase-trust p {
    margin: 0;
    color: var(--ms-muted-foreground);
  }

  .precious-showcase-trust-row {
    display: flex;
    max-width: 450px;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }

  .precious-showcase-trust-row span {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    background: var(--ms-card);
    color: var(--ms-foreground);
    font-size: 13px;
    font-weight: 700;
  }

  .precious-showcase-preview {
    position: absolute;
    z-index: 20;
    top: 160px;
    right: -80px;
    bottom: 64px;
    left: 48%;
    display: flex;
    align-items: flex-start;
    perspective: 1500px;
  }

  .precious-showcase-dashboard-image {
    display: block;
    width: min(900px, 100%);
    height: auto;
    border: 1px solid var(--ms-border);
    border-radius: 16px;
    background: var(--ms-background);
    box-shadow: -28px 34px 90px rgba(0, 0, 0, .42);
    transform: translateY(-28px) perspective(1500px) rotateX(2deg) rotateY(-9deg) rotateZ(1deg) skewX(2deg);
    transform-origin: right center;
  }

  .precious-showcase-preview-shell {
    display: none;
  }

  .precious-showcase-preview-shell {
    position: relative;
    height: 100%;
    max-width: 768px;
  }

  .precious-showcase-preview-shell::before {
    content: "";
    position: absolute;
    inset: 0 -16px 28px;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--ms-foreground) 6%, transparent);
    border-radius: calc(var(--ms-radius) + 16px);
    background: color-mix(in srgb, var(--ms-foreground) 4%, transparent);
    transform: skewX(6deg);
  }

  .precious-showcase-device {
    position: relative;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    background: var(--ms-background);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
    transform: translateY(-48px) skewX(6deg);
    transform-origin: center;
  }

  .precious-showcase-dashboard {
    display: grid;
    height: 100%;
    min-width: 760px;
    grid-template-columns: 220px minmax(0, 1fr);
    background: var(--ms-background);
  }

  .precious-showcase-sidebar-preview {
    border-right: 1px solid var(--ms-border);
    background: var(--ms-card);
    padding: 18px 14px;
  }

  .precious-showcase-sidebar-head,
  .precious-showcase-topline,
  .precious-showcase-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .precious-showcase-sidebar-head {
    gap: 12px;
    padding: 8px 8px 18px;
    color: var(--ms-foreground);
    font-weight: 800;
  }

  .precious-showcase-sidebar-head button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    background: var(--ms-background);
    color: var(--ms-foreground);
    cursor: pointer;
  }

  .precious-showcase-sidebar-head svg {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
  }

  .precious-showcase-menu {
    display: grid;
    gap: 5px;
  }

  .precious-showcase-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 9px;
    padding: 10px 14px;
    color: var(--ms-muted-foreground);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
  }

  .precious-showcase-menu-item:hover {
    background: color-mix(in srgb, var(--ms-foreground) 3%, transparent);
    color: var(--ms-foreground);
    transform: translateX(2px);
  }

  .precious-showcase-menu-item.active {
    border: 1px solid var(--ms-border);
    background: var(--ms-background);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  }

  .precious-showcase-menu-item svg {
    width: 16px;
    height: 16px;
    opacity: .75;
  }

  .precious-showcase-content {
    overflow: hidden;
    padding: 20px;
  }

  .precious-showcase-topline {
    margin-bottom: 20px;
  }

  .precious-showcase-topline h2 {
    margin: 0;
    color: var(--ms-foreground);
    font-size: 20px;
    line-height: 1.2;
  }

  .precious-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ms-border);
    border-radius: 999px;
    background: var(--ms-card);
    color: var(--ms-muted-foreground);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
  }

  .precious-showcase-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .14);
  }

  .precious-showcase-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
  }

  .precious-showcase-metric,
  .precious-showcase-chart-card,
  .precious-showcase-insight-card {
    border: 1px solid var(--ms-border);
    border-radius: 14px;
    background: var(--ms-card);
  }

  .precious-showcase-metric {
    padding: 14px;
  }

  .precious-showcase-metric p {
    margin: 0 0 8px;
    color: var(--ms-muted-foreground);
    font-size: 12px;
    font-weight: 700;
  }

  .precious-showcase-metric strong {
    color: var(--ms-foreground);
    font-size: 24px;
    line-height: 1;
  }

  .precious-showcase-metric span {
    display: block;
    margin-top: 8px;
    color: #22c55e;
    font-size: 11px;
    font-weight: 800;
  }

  .precious-showcase-chart-card,
  .precious-showcase-insight-card {
    position: relative;
    padding: 16px;
  }

  .precious-showcase-chart-head {
    margin-bottom: 10px;
  }

  .precious-showcase-chart-head h3 {
    margin: 0;
    color: var(--ms-foreground);
    font-size: 14px;
  }

  .precious-showcase-view {
    border: 0;
    background: transparent;
    color: var(--ms-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 0;
    transition: opacity .18s ease, transform .18s ease;
  }

  .precious-showcase-view:hover,
  .precious-showcase-view:focus-visible {
    opacity: .72;
    outline: none;
    transform: translateX(2px);
  }

  .precious-showcase-chart-wrap {
    position: relative;
    height: 190px;
    overflow: visible;
  }

  .precious-showcase-chart-wrap svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .precious-showcase-grid-line {
    stroke: color-mix(in srgb, var(--ms-foreground) 9%, transparent);
    stroke-width: 1;
  }

  .precious-showcase-chart-muted {
    fill: none;
    stroke: var(--ms-muted-foreground);
    stroke-width: 2;
    opacity: .55;
  }

  .precious-showcase-chart-primary {
    fill: none;
    stroke: var(--ms-primary);
    stroke-width: 2.5;
  }

  .precious-showcase-chart-highlight {
    fill: color-mix(in srgb, var(--ms-primary) 9%, transparent);
    stroke: color-mix(in srgb, var(--ms-primary) 22%, transparent);
    stroke-width: 1;
    clip-path: inset(0 100% 0 0);
    animation: preciousRevealClip 2.6s cubic-bezier(.22, 1, .36, 1) .45s forwards;
  }

  @keyframes preciousRevealClip {
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  .precious-showcase-hotspot {
    fill: var(--ms-primary);
    stroke: var(--ms-card);
    stroke-width: 4;
    cursor: pointer;
    transition: r .18s ease, filter .18s ease;
  }

  .precious-showcase-hotspot:hover,
  .precious-showcase-hotspot.active {
    r: 7;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .2));
  }

  .precious-showcase-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 128px;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: var(--ms-background);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
    color: var(--ms-foreground);
    font-size: 12px;
    padding: 10px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -120%) scale(.96);
    transition: opacity .14s ease, transform .14s ease;
  }

  .precious-showcase-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -130%) scale(1);
  }

  .precious-showcase-tooltip strong {
    display: block;
    margin-bottom: 8px;
  }

  .precious-showcase-tooltip div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--ms-muted-foreground);
  }

  .precious-showcase-insights {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 12px;
    margin-top: 12px;
  }

  .precious-showcase-insight-body {
    display: flex;
    gap: 12px;
    color: var(--ms-muted-foreground);
    font-size: 13px;
    line-height: 1.5;
  }

  .precious-showcase-insight-body > svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--ms-foreground);
  }

  .precious-showcase-insight-body p {
    margin: 0;
  }

  .precious-showcase-insight-body p span {
    color: var(--ms-foreground);
    font-weight: 800;
  }

  .precious-showcase-mini-stack {
    display: grid;
    gap: 10px;
  }

  .precious-showcase-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: var(--ms-background);
    color: var(--ms-foreground);
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
  }

  .precious-showcase-bar {
    width: 76px;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ms-accent);
  }

  .precious-showcase-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ms-primary);
  }

  @media (max-width: 1000px) {
    .precious-showcase {
      padding-top: 120px;
    }

    .precious-showcase-text {
      width: 100%;
    }

    .precious-showcase-preview {
      position: relative;
      inset: auto;
      margin: 110px 0 0 8%;
    }

    .precious-showcase-dashboard-image {
      width: 108%;
      max-width: none;
      transform: translateY(-24px) perspective(1200px) rotateX(2deg) rotateY(-7deg) rotateZ(1deg) skewX(1deg);
    }

    .precious-showcase-nav {
      display: none;
    }
  }

  @media (max-width: 640px) {
    .precious-showcase-container {
      padding: 0 16px;
    }

    .precious-showcase {
      min-height: auto;
      padding: 96px 0 56px;
    }

    .precious-showcase h1 {
      font-size: 46px;
    }

    .precious-showcase-lead {
      font-size: 17px;
    }

    .precious-showcase-hero-actions {
      flex-wrap: wrap;
    }

    .precious-showcase-preview {
      margin-left: 0;
    }

    .precious-showcase-dashboard-image {
      width: 112%;
      transform: translate(-3%, -18px) perspective(900px) rotateX(1deg) rotateY(-5deg) rotateZ(.6deg);
    }

    .precious-showcase-device {
      transform: translateY(-32px) skewX(4deg);
    }
  }

  /* Final spacing and scanner dropdown tweaks */
  .precious-showcase {
    min-height: 820px !important;
    padding-top: 188px !important;
    padding-bottom: 168px !important;
  }

  .precious-showcase-text {
    width: 43% !important;
  }

  .precious-showcase h1 {
    max-width: 500px !important;
  }

  .precious-showcase-lead {
    margin-bottom: 38px !important;
  }

  .precious-showcase-preview {
    left: 56% !important;
    right: -54px !important;
    top: 178px !important;
    bottom: 88px !important;
  }

  .precious-showcase-dropdown {
    position: relative;
  }

  .precious-showcase-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 70;
    display: grid;
    min-width: 218px;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    background: var(--ms-card);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.98);
    transform-origin: top left;
    transition: opacity .16s ease, transform .16s ease;
  }

  .precious-showcase-dropdown:hover .precious-showcase-dropdown-menu,
  .precious-showcase-dropdown:focus-within .precious-showcase-dropdown-menu,
  .precious-showcase-dropdown:has(.precious-showcase-nav-trigger[data-open="true"]) .precious-showcase-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .precious-showcase-dropdown-menu a {
    display: flex !important;
    height: auto !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 10px 11px !important;
    border-radius: 8px !important;
    color: var(--ms-muted-foreground) !important;
    white-space: nowrap;
  }

  .precious-showcase-dropdown-menu a:hover {
    background: var(--ms-muted) !important;
    color: var(--ms-foreground) !important;
  }

  .precious-showcase-dropdown-menu svg {
    width: 15px !important;
    height: 15px !important;
  }

  @media (max-width: 1000px) {
    .precious-showcase {
      min-height: auto !important;
      padding-top: 130px !important;
      padding-bottom: 88px !important;
    }

    .precious-showcase-text {
      width: 100% !important;
    }

    .precious-showcase-preview {
      left: auto !important;
      right: auto !important;
      top: auto !important;
      bottom: auto !important;
    }
  }

  /* Final dashboard fit: keep preview inside right edge */
  .precious-showcase {
    min-height: 780px !important;
  }

  .precious-showcase-preview {
    left: 54% !important;
    right: 38px !important;
    top: 184px !important;
    bottom: 126px !important;
  }

  .precious-showcase-preview-shell {
    max-width: 660px !important;
  }

  .precious-showcase-device {
    min-height: 455px !important;
    transform: translateY(-34px) skewX(6deg) scale(.9) !important;
    transform-origin: top left !important;
  }

  .precious-showcase-dashboard {
    min-width: 700px !important;
    grid-template-columns: 198px minmax(0, 1fr) !important;
  }

  .precious-showcase-content {
    padding: 18px !important;
  }

  .precious-showcase-chart-wrap {
    height: 168px !important;
  }

  @media (max-width: 1000px) {
    .precious-showcase-preview {
      right: auto !important;
      margin-top: 90px !important;
    }

    .precious-showcase-device {
      transform: translateY(-30px) skewX(5deg) scale(.9) !important;
    }
  }

  /* Final dashboard no-crop correction */
  .precious-showcase-preview {
    left: 52% !important;
    right: 70px !important;
    top: 182px !important;
    bottom: 118px !important;
  }

  .precious-showcase-preview-shell {
    max-width: 640px !important;
  }

  .precious-showcase-device {
    width: 100% !important;
    min-height: 440px !important;
    transform: translateY(-30px) skewX(6deg) !important;
    transform-origin: center !important;
  }

  .precious-showcase-dashboard {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 178px minmax(0, 1fr) !important;
  }

  .precious-showcase-sidebar-preview {
    min-width: 0 !important;
    padding: 16px 12px !important;
  }

  .precious-showcase-sidebar-head {
    padding: 7px 7px 16px !important;
    font-size: 13px !important;
  }

  .precious-showcase-menu-item {
    gap: 10px !important;
    padding: 9px 11px !important;
    font-size: 13px !important;
  }

  .precious-showcase-content {
    min-width: 0 !important;
    padding: 17px !important;
  }

  .precious-showcase-topline h2 {
    font-size: 18px !important;
  }

  .precious-showcase-badge {
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }

  .precious-showcase-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .precious-showcase-metric {
    min-width: 0 !important;
    padding: 12px !important;
  }

  .precious-showcase-metric p {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }

  .precious-showcase-metric strong {
    font-size: 22px !important;
  }

  .precious-showcase-chart-card,
  .precious-showcase-insight-card {
    min-width: 0 !important;
    padding: 14px !important;
  }

  .precious-showcase-chart-head h3 {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .precious-showcase-view {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .precious-showcase-chart-wrap {
    height: 154px !important;
  }

  .precious-showcase-insights {
    grid-template-columns: minmax(0, 1fr) 132px !important;
    gap: 10px !important;
  }

  .precious-showcase-mini-row {
    padding: 9px 10px !important;
  }

  .precious-showcase-bar {
    width: 58px !important;
  }

  /* Final footer spacing from upper section */
  .tailark-features-three {
    margin-bottom: 42px !important;
  }

.tailark-site-footer {
    margin-top: 42px !important;
    padding-top: 34px !important;
}

/* Final spacing between analysis upload section and lower section */
.landing-content.with-recent {
    margin-bottom: 72px !important;
}

.tailark-features-three {
    margin: 72px auto 42px !important;
}

.tailark-footer-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--foreground) !important;
    font-family: "Mulish", sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}


.tailark-footer-discord {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: var(--secondary) !important;
    color: var(--muted-foreground) !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.tailark-footer-discord:hover {
    background: var(--accent) !important;
    color: var(--foreground) !important;
}

/* Final compact upload section and remove small status line row */
.upload-console {
    padding-bottom: 18px !important;
}

.upload-console #drop-zone {
    min-height: 260px !important;
}

.tailark-features-three [class~="mask-x-from-55%"].flex.justify-between.gap-px {
    display: none !important;
}

.tailark-features-three [aria-hidden="true"].space-y-2\.5 {
    padding: 14px 16px !important;
}

.tailark-features-three .tailark-status-bars {
    display: flex !important;
    margin-top: 12px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.tailark-features-three .tailark-status-bars > div {
    border-radius: 999px !important;
    opacity: 1 !important;
}

.tailark-features-three .tailark-status-bars .bg-emerald-500 {
    background: #22c55e !important;
}

.tailark-features-three .tailark-status-bars .bg-muted-foreground {
    background: #3a3a3a !important;
}

/* Final clean hover effects for bottom footer/header area */
.tailark-site-footer .tailark-footer-brand,
.tailark-site-footer a,
.tailark-site-footer .ring-foreground\/5 {
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease !important;
}

.tailark-site-footer .tailark-footer-brand:hover {
    color: var(--foreground) !important;
    transform: translateY(-1px) !important;
}

.tailark-site-footer .tailark-footer-brand:hover .tailark-footer-brand-mark {
    background: var(--accent) !important;
    border-color: var(--ring) !important;
    box-shadow: 0 0 0 4px rgba(161, 161, 161, 0.08) !important;
}

.tailark-site-footer a:not(.tailark-footer-brand):not(.tailark-footer-discord) {
    position: relative !important;
}

.tailark-site-footer a:not(.tailark-footer-brand):not(.tailark-footer-discord)::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -4px !important;
    height: 1px !important;
    background: var(--foreground) !important;
    opacity: 0 !important;
    transform: scaleX(0.35) !important;
    transform-origin: center !important;
    transition: opacity 180ms ease, transform 180ms ease !important;
}

.tailark-site-footer a:not(.tailark-footer-brand):not(.tailark-footer-discord):hover {
    color: var(--foreground) !important;
    transform: translateY(-1px) !important;
}

.tailark-site-footer a:not(.tailark-footer-brand):not(.tailark-footer-discord):hover::after {
    opacity: 0.7 !important;
    transform: scaleX(1) !important;
}

.tailark-site-footer .tailark-footer-discord:hover {
    transform: translateY(-2px) !important;
    border-color: var(--ring) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(161, 161, 161, 0.07) !important;
}

.tailark-site-footer .ring-foreground\/5:hover {
    border-color: var(--border) !important;
    background: var(--accent) !important;
    transform: translateY(-1px) !important;
}

/* Final remove outer card wrapper from features section */
.tailark-features-three .tailark-features-shell {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tailark-features-three .tailark-features-shell > .grid {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.tailark-features-three .tailark-features-shell > .grid > .row-span-2 {
    background: transparent !important;
    box-shadow: none !important;
}

/* Final global zinc palette */
:root {
    --background: #09090B;
    --surface: #18181B;
    --surface-hover: #27272A;

    --border: #27272A;
    --border-light: #3F3F46;

    --text: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;

    --primary: #FFFFFF;
    --primary-foreground: #09090B;

    --foreground: var(--text);
    --card: var(--surface);
    --card-foreground: var(--text);
    --popover: var(--surface);
    --popover-foreground: var(--text);
    --secondary: var(--surface);
    --secondary-foreground: var(--text);
    --muted: var(--surface);
    --muted-foreground: var(--text-secondary);
    --accent: var(--surface-hover);
    --accent-foreground: var(--text);
    --input: var(--border);
    --ring: var(--border-light);

    --bg-base: var(--background);
    --bg-panel: var(--surface);
    --bg-elevated: var(--surface);
    --bg-hover: var(--surface-hover);
    --border-strong: var(--border-light);
    --text-primary: var(--text);

    --sidebar-background: var(--surface);
    --sidebar-foreground: var(--text-secondary);
    --sidebar-primary: var(--primary);
    --sidebar-primary-foreground: var(--background);
    --sidebar-accent: var(--surface-hover);
    --sidebar-accent-foreground: var(--text);
    --sidebar-border: var(--border);
    --sidebar-ring: var(--border-light);

    --nav-active: var(--surface-hover);
    --table-row-hover: #111113;
}

body,
.main-area,
.landing-container,
.precious-showcase,
.tailark-features-three,
.tailark-site-footer {
    background: var(--background) !important;
    color: var(--text) !important;
}

.upload-console,
.recent-panel,
#drop-zone,
.recent-stat,
.recent-item,
.modal-card,
.card,
.precious-showcase-header-bar,
.precious-showcase-dropdown-menu,
.precious-showcase-device,
.precious-showcase-dashboard,
.precious-showcase-metric,
.precious-showcase-chart-card,
.precious-showcase-insight-card,
.precious-showcase-mini-row,
.tailark-features-three .bg-illustration,
.tailark-site-footer .bg-card,
.tailark-footer-brand-mark,
.tailark-footer-discord {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.upload-console:hover,
.recent-panel:hover,
.recent-item:hover,
.precious-showcase-metric:hover,
.precious-showcase-mini-row:hover,
.tailark-features-three .bg-illustration:hover,
.tailark-footer-discord:hover,
.tailark-site-footer .ring-foreground\/5:hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-light) !important;
}

.text-muted-foreground,
.recent-stat-label,
.recent-item-meta,
.dropzone-subtitle,
.dropzone-hint,
.upload-console-head small,
.precious-showcase-lead,
.precious-showcase-menu-item,
.tailark-features-three p,
.tailark-site-footer .text-muted-foreground {
    color: var(--text-secondary) !important;
}

.text-foreground,
.dropzone-title,
.upload-console-head span,
.recent-item-name,
.tailark-features-three h3,
.tailark-footer-brand {
    color: var(--text) !important;
}

.btn-primary,
.precious-showcase-btn-primary,
.precious-showcase-header-cta {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}

.btn-ghost,
.precious-showcase-btn-card,
.precious-showcase-nav-trigger {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.btn-ghost:hover,
.precious-showcase-btn-card:hover,
.precious-showcase-nav-trigger:hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-light) !important;
}

/* Final card color pass on zinc palette */
.card,
.upload-console,
.recent-panel,
#drop-zone,
.recent-stat,
.recent-item,
.modal-card,
.modal-file,
.modal-summary,
.loading-card,
.file-header,
.tab-content-area,
.metric-card,
.info-card,
.precious-showcase-device,
.precious-showcase-dashboard,
.precious-showcase-sidebar-preview,
.precious-showcase-metric,
.precious-showcase-chart-card,
.precious-showcase-insight-card,
.precious-showcase-mini-row,
.precious-showcase-dropdown-menu,
.tailark-features-three .bg-illustration,
.tailark-site-footer .bg-card {
    background-color: var(--surface) !important;
    background-image: none !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.card:hover,
.upload-console:hover,
.recent-panel:hover,
#drop-zone:hover,
.recent-item:hover,
.modal-file:hover,
.metric-card:hover,
.info-card:hover,
.precious-showcase-metric:hover,
.precious-showcase-mini-row:hover,
.tailark-features-three .bg-illustration:hover {
    background-color: var(--surface-hover) !important;
    border-color: var(--border-light) !important;
}

.tailark-features-three .tailark-features-shell,
.tailark-features-three .tailark-features-shell > .grid,
.tailark-features-three .tailark-features-shell > .grid > .row-span-2 {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.tailark-features-three .tailark-features-shell > .grid {
    border-radius: 0 !important;
}

.tailark-features-three .divide-x > :not([hidden]) ~ :not([hidden]),
.tailark-features-three .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--border) !important;
}


.tailark-features-three .tailark-features-shell {
    box-shadow: none !important;
}

.tailark-status-bars .bg-muted-foreground {
    background-color: var(--border-light) !important;
}

.tailark-status-bars .bg-emerald-500 {
    background-color: #22C55E !important;
}

/* Final strict card palette pass */
[data-slot="card"],
.bg-card,
.bg-card\/50,
.bg-background,
.bg-background\/75,
.bg-muted,
.bg-illustration,
.upload-console,
.recent-panel,
#drop-zone,
.recent-stat,
.recent-item,
.modal-card,
.modal-file,
.modal-summary,
.loading-card,
.file-header,
.card,
.precious-showcase-device,
.precious-showcase-dashboard,
.precious-showcase-sidebar-preview,
.precious-showcase-metric,
.precious-showcase-chart-card,
.precious-showcase-insight-card,
.precious-showcase-mini-row,
.precious-showcase-dropdown-menu,
.tailark-footer-brand-mark,
.tailark-footer-discord {
    background: var(--surface) !important;
    background-color: var(--surface) !important;
    background-image: none !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

[data-slot="card"]:hover,
.bg-card:hover,
.bg-card\/50:hover,
.bg-muted:hover,
.bg-illustration:hover,
.upload-console:hover,
.recent-panel:hover,
#drop-zone:hover,
.recent-stat:hover,
.recent-item:hover,
.card:hover,
.precious-showcase-metric:hover,
.precious-showcase-mini-row:hover,
.tailark-footer-discord:hover {
    background: var(--surface-hover) !important;
    background-color: var(--surface-hover) !important;
    border-color: var(--border-light) !important;
}

.tailark-features-three,
.tailark-features-three .tailark-features-shell,
.tailark-features-three .tailark-features-shell > .grid,
.tailark-features-three .tailark-features-shell > .grid > .row-span-2 {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tailark-features-three .tailark-features-shell > .grid {
    overflow: visible !important;
}

.tailark-features-three .divide-x > :not([hidden]) ~ :not([hidden]) {
    border-left-color: var(--border) !important;
}

.tailark-features-three .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-color: var(--border) !important;
}

.tailark-features-three .bg-illustration,
.tailark-features-three .ring-border-illustration {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    --tw-ring-color: var(--border) !important;
}

/* Final darker cards: less gray, still zinc palette */
:root {
    --card-surface: #111113;
    --card-surface-hover: #18181B;
}

[data-slot="card"],
.bg-card,
.bg-card\/50,
.bg-background,
.bg-background\/75,
.bg-muted,
.bg-illustration,
.upload-console,
.recent-panel,
#drop-zone,
.recent-stat,
.recent-item,
.modal-card,
.modal-file,
.modal-summary,
.loading-card,
.file-header,
.card,
.precious-showcase-device,
.precious-showcase-dashboard,
.precious-showcase-sidebar-preview,
.precious-showcase-metric,
.precious-showcase-chart-card,
.precious-showcase-insight-card,
.precious-showcase-mini-row,
.precious-showcase-dropdown-menu,
.tailark-footer-brand-mark,
.tailark-footer-discord {
    background: var(--card-surface) !important;
    background-color: var(--card-surface) !important;
    background-image: none !important;
}

[data-slot="card"]:hover,
.bg-card:hover,
.bg-card\/50:hover,
.bg-muted:hover,
.bg-illustration:hover,
.upload-console:hover,
.recent-panel:hover,
#drop-zone:hover,
.recent-stat:hover,
.recent-item:hover,
.card:hover,
.precious-showcase-metric:hover,
.precious-showcase-mini-row:hover,
.tailark-footer-discord:hover {
    background: var(--card-surface-hover) !important;
    background-color: var(--card-surface-hover) !important;
}

.tailark-features-three .tailark-features-shell,
.tailark-features-three .tailark-features-shell > .grid,
.tailark-features-three .tailark-features-shell > .grid > .row-span-2 {
    background: transparent !important;
    background-color: transparent !important;
}

/* Final dark section backgrounds for Tailark features + footer */
.tailark-features-three.bg-background,
.tailark-features-three,
.tailark-site-footer.bg-background,
.tailark-site-footer {
    background: #09090B !important;
    background-color: #09090B !important;
    background-image: none !important;
}

.tailark-features-three::before,
.tailark-features-three::after,
.tailark-site-footer::before,
.tailark-site-footer::after {
    background: transparent !important;
    background-image: none !important;
}

/* Final hard override: Tailark features section must not read gray */
section.tailark-features-three.bg-background.\@container.py-24,
.landing-container > section.tailark-features-three.bg-background,
.tailark-features-three.bg-background {
    background: #09090B !important;
    background-color: #09090B !important;
    background-image: none !important;
}

.tailark-features-three .bg-background,
.tailark-features-three .bg-background\/75,
.tailark-features-three [class*="bg-background"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.tailark-features-three .bg-illustration,
.tailark-features-three .ring-border-illustration {
    background: #111113 !important;
    background-color: #111113 !important;
}

/* Final clean pill header */
.precious-showcase-header {
    top: 14px !important;
    inset-inline: 0 !important;
    color: var(--text) !important;
    pointer-events: none !important;
}

.precious-showcase-header-bar,
.precious-showcase-header.scrolled .precious-showcase-header-bar {
    height: auto !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.precious-showcase-header .precious-showcase-container {
    width: min(calc(100% - 48px), 1240px) !important;
    padding: 0 12px 0 16px !important;
    border: 1px solid rgba(63, 63, 70, 0.72) !important;
    border-radius: 999px !important;
    background: rgba(24, 24, 27, 0.72) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    pointer-events: auto !important;
}

.precious-showcase-nav-row {
    height: 52px !important;
    gap: 22px !important;
}

.precious-showcase-logo {
    color: #FAFAFA !important;
    font-size: 14px !important;
}

.precious-showcase-logo-mark {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: #FAFAFA !important;
    color: #09090B !important;
}

.precious-showcase-logo-mark:empty::before,
.tailark-footer-brand-mark:empty::before {
    content: "" !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 3px !important;
    background: currentColor !important;
    opacity: 0.9 !important;
}

/* Homepage FAQ directly above the site footer */
.homepage-faq {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 96px;
  color: #fafafa;
  font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "calt", "cv02", "cv03", "cv04";
  letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
}

.homepage-faq-heading {
  max-width: 620px;
  margin-bottom: 42px;
}

.homepage-faq-kicker {
  display: block;
  margin-bottom: 10px;
  color: #ffe0e8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.homepage-faq-heading h2 {
  margin: 0;
  color: #fafafa;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.homepage-faq-heading p {
  margin: 15px 0 0;
  color: #8f8f8f;
  font-size: 14px;
  line-height: 1.65;
}

.homepage-faq-list {
  border-top: 1px solid #27272a;
}

.homepage-faq-list details {
  border-bottom: 1px solid #27272a;
}

.homepage-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 18px 2px;
  color: #d4d4d8;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .18s ease;
}

.homepage-faq-list summary::-webkit-details-marker {
  display: none;
}

.homepage-faq-list summary:hover,
.homepage-faq-list details[open] summary {
  color: #fafafa;
}

.homepage-faq-list summary i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #27272a;
  border-radius: 10px;
  background: #111113;
  color: #8f8f8f;
  font-size: 10px;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.homepage-faq-list details[open] summary i {
  border-color: #3f3f46;
  color: #ffe0e8;
  transform: rotate(45deg);
}

.homepage-faq-list details p {
  max-width: 720px;
  margin: -3px 0 0;
  padding: 0 54px 22px 2px;
  color: #8f8f8f;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .homepage-faq {
    width: calc(100% - 28px);
    padding: 80px 0 72px;
  }

  .homepage-faq-heading {
    margin-bottom: 30px;
  }

  .homepage-faq-list summary {
    min-height: 64px;
    font-size: 13px;
  }

  .homepage-faq-list details p {
    padding-right: 12px;
  }
}

.precious-showcase-logo-mark,
.tailark-footer-brand-mark {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--accent-rose) !important;
    padding: 0 !important;
}

.precious-showcase-logo-mark {
    width: 28px !important;
    height: 30px !important;
}

.tailark-footer-brand-mark {
    width: 24px !important;
    height: 26px !important;
}

.precious-showcase-logo-mark svg,
.tailark-footer-brand-mark svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.precious-showcase-logo-mark svg path,
.tailark-footer-brand-mark svg path {
    fill: var(--accent-rose) !important;
}

/* Final pastel rose accent only for buttons and hovers */
:root {
    --accent-rose: #ffe0e8;
    --accent-rose-hover: #fff0f4;
    --accent-rose-foreground: #09090B;
}

.btn-primary,
.precious-showcase-btn-primary,
.precious-showcase-header-cta,
.precious-showcase-nav > a[href="#drop-zone"],
#browse-btn {
    background: var(--accent-rose) !important;
    background-color: var(--accent-rose) !important;
    border-color: var(--accent-rose) !important;
    color: var(--accent-rose-foreground) !important;
}

.btn-primary:hover,
.precious-showcase-btn-primary:hover,
.precious-showcase-header-cta:hover,
.precious-showcase-nav > a[href="#drop-zone"]:hover,
#browse-btn:hover {
    background: var(--accent-rose-hover) !important;
    background-color: var(--accent-rose-hover) !important;
    border-color: var(--accent-rose-hover) !important;
    color: var(--accent-rose-foreground) !important;
    box-shadow: 0 8px 24px rgba(255, 224, 232, 0.16) !important;
}

.precious-showcase-header-cta span:first-child,
.precious-showcase-nav > a[href="#drop-zone"] {
    color: var(--accent-rose-foreground) !important;
}

.precious-showcase-header-cta span:last-child {
    background: var(--accent-rose-foreground) !important;
    border-color: var(--accent-rose-foreground) !important;
    color: var(--accent-rose) !important;
}

.btn-ghost:hover,
.precious-showcase-btn-card:hover,
.precious-showcase-nav button:hover,
.precious-showcase-nav a:not([href="#drop-zone"]):hover,
.precious-showcase-dropdown-menu a:hover,
.tailark-site-footer a:not(.tailark-footer-brand):not(.tailark-footer-discord):hover,
.tailark-footer-discord:hover,
.precious-showcase-view:hover,
.precious-showcase-menu-item:hover {
    color: var(--accent-rose) !important;
    border-color: rgba(255, 224, 232, 0.32) !important;
}

.precious-showcase-bar i,
.progress-fill {
    background: var(--accent-rose) !important;
}

.precious-showcase-nav {
    gap: 6px !important;
}

.precious-showcase-nav button,
.precious-showcase-nav a {
    height: 34px !important;
    border-radius: 999px !important;
    color: #D4D4D8 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 13px !important;
}

.precious-showcase-nav button:hover,
.precious-showcase-nav a:hover,
.precious-showcase-nav button[data-open="true"] {
    background: rgba(39, 39, 42, 0.88) !important;
    color: #FAFAFA !important;
}

.precious-showcase-nav > a[href="#drop-zone"] {
    background: #FAFAFA !important;
    color: #09090B !important;
    padding-inline: 16px !important;
}

.precious-showcase-nav > a[href="#drop-zone"]:hover {
    background: #FFFFFF !important;
    color: #09090B !important;
    transform: translateY(-1px) !important;
}

.precious-showcase-header-cta {
    height: 36px !important;
    min-width: 86px !important;
    border: 1px solid #FAFAFA !important;
    border-radius: 999px !important;
    background: #FAFAFA !important;
    color: #09090B !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 0 8px 0 15px !important;
}

.precious-showcase-header-cta:hover {
    background: #FFFFFF !important;
    color: #09090B !important;
    transform: translateY(-1px) !important;
}

.precious-showcase-header-cta span:first-child {
    color: #09090B !important;
}

.precious-showcase-header-cta span:last-child {
    border-color: #09090B !important;
    background: #09090B !important;
    color: #FAFAFA !important;
}

.precious-showcase-dropdown-menu {
    margin-top: 12px !important;
    border-color: rgba(63, 63, 70, 0.78) !important;
    border-radius: 16px !important;
    background: rgba(24, 24, 27, 0.94) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

.precious-showcase-dropdown-menu a {
    color: #D4D4D8 !important;
}

.precious-showcase-dropdown-menu a:hover {
    background: #27272A !important;
    color: #FAFAFA !important;
}

@media (max-width: 760px) {
    .precious-showcase-header .precious-showcase-container {
        width: min(calc(100% - 24px), 640px) !important;
        border-radius: 22px !important;
    }

    .precious-showcase-nav-row {
        height: auto !important;
        min-height: 52px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px 0 !important;
    }

    .precious-showcase-nav {
        order: 3 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-bottom: 2px !important;
    }
}

/* Final upload console: slightly narrower and shifted right */
.landing-content.with-recent {
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 424px) !important;
    column-gap: 34px !important;
}

.home-primary {
    justify-self: end !important;
    width: min(100%, 820px) !important;
}

.upload-console {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
}

@media (max-width: 1100px) {
    .landing-content.with-recent {
        grid-template-columns: 1fr !important;
    }

    .home-primary,
    .upload-console {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }
}

/* Final centered upload/recent layout */
.landing-content.with-recent {
    width: min(100%, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns: minmax(0, 760px) minmax(360px, 400px) !important;
    justify-content: center !important;
    align-items: stretch !important;
    column-gap: 28px !important;
}

.home-primary,
.upload-console,
.recent-panel {
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (max-width: 1100px) {
    .landing-content.with-recent {
        width: min(100%, 760px) !important;
        grid-template-columns: 1fr !important;
        row-gap: 24px !important;
    }
}

/* Final top mainpage width */
.landing-container {
    max-width: 1500px !important;
}

.precious-showcase-container {
    width: min(100%, 1280px) !important;
}

.precious-showcase-text {
    width: 45% !important;
}

.precious-showcase-preview {
    left: 49% !important;
    right: 44px !important;
}

.precious-showcase-preview-shell {
    max-width: 700px !important;
}

.precious-showcase-dashboard {
    grid-template-columns: 182px minmax(0, 1fr) !important;
}

@media (max-width: 1000px) {
    .precious-showcase-text {
        width: 100% !important;
    }

    .precious-showcase-preview {
        left: 24px !important;
        right: 24px !important;
    }
}

/* Final recent uploads glass cards and score colors */
.recent-panel,
.recent-panel #recent-list {
    overflow: visible !important;
}

.recent-panel #recent-list {
    gap: 10px !important;
}

.recent-item.recent-item-glass {
    --recent-score-color: var(--border-light);
    position: relative !important;
    overflow: visible !important;
    gap: 9px !important;
    padding: 13px 14px !important;
    border: 1px solid rgba(63, 63, 70, 0.56) !important;
    border-left: 4px solid var(--recent-score-color) !important;
    border-radius: 14px !important;
    background: rgba(17, 17, 19, 0.72) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 14px 34px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(16px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
}

.recent-item.recent-item-glass:hover {
    background: rgba(24, 24, 27, 0.82) !important;
    border-color: rgba(82, 82, 91, 0.72) !important;
    border-left-color: var(--recent-score-color) !important;
    transform: translateY(-1px);
}

.recent-score-green {
    --recent-score-color: #22c55e;
}

.recent-score-orange {
    --recent-score-color: #f59e0b;
}

.recent-score-red {
    --recent-score-color: #ef4444;
}

.recent-score-unknown {
    --recent-score-color: #71717a;
}

.recent-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.recent-item.recent-item-glass .recent-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #fafafa !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal !important;
}

.recent-info {
    position: relative;
    z-index: 4;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 224, 232, 0.28);
    border-radius: 999px;
    background: rgba(255, 224, 232, 0.08);
    color: #ffe0e8;
    cursor: help;
    font-family: "Geist Mono", "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.recent-info:hover,
.recent-info:focus {
    border-color: rgba(255, 224, 232, 0.56);
    background: rgba(255, 224, 232, 0.15);
    outline: none;
}

.recent-info-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 142px;
    gap: 6px;
    padding: 10px 11px;
    border: 1px solid rgba(63, 63, 70, 0.82);
    border-radius: 12px;
    background: rgba(9, 9, 11, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    color: #d4d4d8;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.recent-info-popover span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    white-space: nowrap;
}

.recent-info-popover strong {
    color: #71717a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.recent-info:hover .recent-info-popover,
.recent-info:focus .recent-info-popover {
    opacity: 1;
    transform: translateY(0);
}

.recent-item.recent-item-glass .recent-item-meta {
    color: #71717a !important;
    font-size: 10.5px !important;
}

.recent-score {
    color: var(--recent-score-color) !important;
    font-family: "Geist Mono", "JetBrains Mono", monospace !important;
    font-weight: 800 !important;
}

/* Final dropzone thicker sparse stroke */
#drop-zone {
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid rgba(63, 63, 70, 0.82) !important;
    border-radius: 20px !important;
    background:
        linear-gradient(180deg, rgba(24, 24, 27, 0.78), rgba(17, 17, 19, 0.9)) padding-box !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 18px 44px rgba(0, 0, 0, 0.2) !important;
}

#drop-zone::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: none !important;
    border: 0 !important;
    border-radius: inherit !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
}

#drop-zone::after {
    display: none !important;
}

#drop-zone:hover,
#drop-zone.drag-active {
    border-color: rgba(255, 224, 232, 0.38) !important;
    background:
        linear-gradient(180deg, rgba(24, 24, 27, 0.88), rgba(17, 17, 19, 0.96)) padding-box !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 20px 50px rgba(0, 0, 0, 0.26) !important;
}

#drop-zone:hover::before,
#drop-zone.drag-active::before {
    display: none !important;
    border-color: transparent !important;
}

.dropzone-inner {
    position: relative !important;
    z-index: 1 !important;
}

/* Final recent upload glow and better info icon */
.recent-item.recent-item-glass {
    isolation: isolate !important;
}

.recent-item.recent-item-glass::before {
    content: "" !important;
    position: absolute !important;
    inset: -18px -14px -16px -14px !important;
    z-index: -1 !important;
    display: block !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--recent-score-color) 34%, transparent), transparent 46%),
        radial-gradient(circle at 92% 70%, rgba(255, 224, 232, 0.12), transparent 48%) !important;
    filter: blur(18px) !important;
    opacity: 0.62 !important;
    pointer-events: none !important;
}

.recent-item.recent-item-glass:hover::before {
    opacity: 0.88 !important;
    filter: blur(22px) !important;
}

.recent-score-green {
    --recent-score-color: #22c55e !important;
}

.recent-score-orange {
    --recent-score-color: #f59e0b !important;
}

.recent-score-red {
    --recent-score-color: #ef4444 !important;
}

.recent-score-unknown {
    --recent-score-color: #71717a !important;
}

.recent-info {
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(255, 224, 232, 0.22) !important;
    background: rgba(255, 224, 232, 0.06) !important;
    color: #ffe0e8 !important;
    font-size: 12px !important;
}

.recent-info i {
    display: block;
    line-height: 1;
}

.recent-info:hover,
.recent-info:focus {
    background: rgba(255, 224, 232, 0.14) !important;
    box-shadow: 0 0 18px rgba(255, 224, 232, 0.12) !important;
}

/* Final correction: glow inside recent cards, segmented stroke only on dropzone border */
.recent-item.recent-item-glass {
    --recent-score-glow: rgba(113, 113, 122, 0.18);
    overflow: hidden !important;
    isolation: isolate !important;
}

.recent-item.recent-item-glass::before {
    inset: 0 !important;
    z-index: 0 !important;
    border-radius: inherit !important;
    background:
        radial-gradient(circle at 92% 42%, var(--recent-score-glow) 0, transparent 46%),
        radial-gradient(circle at 100% 100%, rgba(255, 224, 232, 0.10) 0, transparent 42%) !important;
    filter: blur(12px) !important;
    opacity: 1 !important;
}

.recent-item.recent-item-glass:hover::before {
    opacity: 1 !important;
    filter: blur(14px) !important;
}

.recent-item.recent-item-glass .recent-item-top,
.recent-item.recent-item-glass .recent-item-meta {
    position: relative !important;
    z-index: 1 !important;
}

.recent-score-green {
    --recent-score-color: #22c55e !important;
    --recent-score-glow: rgba(34, 197, 94, 0.26) !important;
}

.recent-score-orange {
    --recent-score-color: #f59e0b !important;
    --recent-score-glow: rgba(245, 158, 11, 0.25) !important;
}

.recent-score-red {
    --recent-score-color: #ef4444 !important;
    --recent-score-glow: rgba(239, 68, 68, 0.26) !important;
}

.recent-score-unknown {
    --recent-score-color: #71717a !important;
    --recent-score-glow: rgba(113, 113, 122, 0.18) !important;
}

#drop-zone {
    border: 1px solid rgba(63, 63, 70, 0.56) !important;
}

#drop-zone::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: inherit !important;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 224, 232, 0.42) 0deg 7deg,
            transparent 7deg 18deg
        ) !important;
    opacity: 0.88 !important;
    pointer-events: none !important;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0) !important;
    mask-composite: exclude !important;
}

#drop-zone:hover::before,
#drop-zone.drag-active::before {
    border: 0 !important;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 224, 232, 0.62) 0deg 8deg,
            transparent 8deg 18deg
        ) !important;
    opacity: 1 !important;
}

/* Final dropzone border: more stroke tiles */
#drop-zone::before {
    padding: 3px !important;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 224, 232, 0.44) 0deg 4deg,
            transparent 4deg 9deg
        ) !important;
}

#drop-zone:hover::before,
#drop-zone.drag-active::before {
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 224, 232, 0.64) 0deg 5deg,
            transparent 5deg 10deg
        ) !important;
}

/* Final recent tooltip placement and darker card glow */
.recent-panel,
.recent-panel #recent-list {
    overflow: visible !important;
}

.recent-item.recent-item-glass {
    overflow: visible !important;
    background: rgba(12, 12, 14, 0.86) !important;
    border-color: rgba(39, 39, 42, 0.86) !important;
}

.recent-item.recent-item-glass:hover {
    background: rgba(15, 15, 18, 0.92) !important;
    border-color: rgba(63, 63, 70, 0.78) !important;
    border-left-color: var(--recent-score-color) !important;
}

.recent-item.recent-item-glass::before {
    inset: 1px !important;
    overflow: hidden !important;
    border-radius: 13px !important;
    background:
        radial-gradient(circle at 88% 42%, var(--recent-score-glow) 0, transparent 38%),
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.018) 100%) !important;
    filter: none !important;
    opacity: 1 !important;
}

.recent-score-green {
    --recent-score-color: #16a34a !important;
    --recent-score-glow: rgba(22, 163, 74, 0.24) !important;
}

.recent-score-orange {
    --recent-score-color: #d97706 !important;
    --recent-score-glow: rgba(217, 119, 6, 0.23) !important;
}

.recent-score-red {
    --recent-score-color: #dc2626 !important;
    --recent-score-glow: rgba(220, 38, 38, 0.24) !important;
}

.recent-info {
    z-index: 50 !important;
}

.recent-info-popover {
    top: auto !important;
    right: -4px !important;
    bottom: calc(100% + 9px) !important;
    z-index: 9999 !important;
    min-width: 154px !important;
    border-color: rgba(82, 82, 91, 0.88) !important;
    background: rgba(9, 9, 11, 0.96) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52) !important;
    transform: translateY(6px) !important;
}

.recent-info-popover::after {
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    bottom: -5px !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 1px solid rgba(82, 82, 91, 0.88) !important;
    border-bottom: 1px solid rgba(82, 82, 91, 0.88) !important;
    background: rgba(9, 9, 11, 0.96) !important;
    transform: rotate(45deg) !important;
}

.recent-info:hover .recent-info-popover,
.recent-info:focus .recent-info-popover {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Final professional upload area matching the feature section */
.upload-console,
.recent-panel {
    background: #111113 !important;
    border: 1px solid #27272A !important;
}

.upload-console:hover,
.recent-panel:hover {
    background: #111113 !important;
    border-color: #3F3F46 !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26) !important;
}

#drop-zone {
    border: 1px solid #27272A !important;
    background:
        linear-gradient(180deg, rgba(17, 17, 19, 0.96), rgba(12, 12, 14, 0.98)) padding-box !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

#drop-zone::before {
    padding: 2px !important;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(161, 161, 170, 0.34) 0deg 4deg,
            transparent 4deg 9deg
        ) !important;
    opacity: 0.86 !important;
}

#drop-zone:hover,
#drop-zone.drag-active {
    border-color: #3F3F46 !important;
    background:
        linear-gradient(180deg, rgba(18, 18, 21, 0.98), rgba(12, 12, 14, 1)) padding-box !important;
}

#drop-zone:hover::before,
#drop-zone.drag-active::before {
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 224, 232, 0.42) 0deg 4deg,
            transparent 4deg 9deg
        ) !important;
    opacity: 0.95 !important;
}

.recent-panel #recent-list {
    gap: 9px !important;
}

.recent-item.recent-item-glass {
    background: #111113 !important;
    border: 1px solid #27272A !important;
    border-left: 3px solid var(--recent-score-color) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.recent-item.recent-item-glass:hover {
    background: #141416 !important;
    border-color: #3F3F46 !important;
    border-left-color: var(--recent-score-color) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
    transform: translateY(-1px);
}

.recent-item.recent-item-glass::before {
    inset: 0 !important;
    border-radius: inherit !important;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.018) 48%, var(--recent-score-glow) 100%) !important;
    filter: none !important;
    opacity: 0.72 !important;
}

.recent-score-green {
    --recent-score-color: #22C55E !important;
    --recent-score-glow: rgba(34, 197, 94, 0.11) !important;
}

.recent-score-orange {
    --recent-score-color: #F59E0B !important;
    --recent-score-glow: rgba(245, 158, 11, 0.11) !important;
}

.recent-score-red {
    --recent-score-color: #EF4444 !important;
    --recent-score-glow: rgba(239, 68, 68, 0.12) !important;
}

.recent-info {
    width: 19px !important;
    height: 19px !important;
    border-color: #3F3F46 !important;
    background: #18181B !important;
    color: #D4D4D8 !important;
    font-size: 11px !important;
}

.recent-info:hover,
.recent-info:focus {
    border-color: rgba(255, 224, 232, 0.5) !important;
    background: #1D1D21 !important;
    color: #FFE0E8 !important;
    box-shadow: none !important;
}

.recent-info-popover {
    border-color: #3F3F46 !important;
    background: #111113 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42) !important;
}

.recent-info-popover::after {
    border-color: #3F3F46 !important;
    background: #111113 !important;
}

/* Final entry dashboard polish */
.user-entry-page,
.admin-entry-page {
    --bg-base: #09090B;
    --bg-panel: #111113;
    --bg-elevated: #18181B;
    --bg-hover: #1F1F23;
    --border: #27272A;
    --border-strong: #3F3F46;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --accent: #FFE0E8;
    --accent-hover: #FFF0F4;
    --accent-dim: rgba(255, 224, 232, 0.09);
    --danger: #F87171;
    --danger-dim: rgba(248, 113, 113, 0.10);
    --warning: #F59E0B;
    --warning-dim: rgba(245, 158, 11, 0.10);
    --success: #22C55E;
    --success-dim: rgba(34, 197, 94, 0.10);
    background: #09090B !important;
    color: #FAFAFA !important;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

.user-entry-page .app-shell,
.admin-entry-page .app-shell {
    background:
        radial-gradient(circle at 78% 8%, rgba(248, 113, 113, 0.06), transparent 28%),
        radial-gradient(circle at 20% 2%, rgba(255, 224, 232, 0.05), transparent 24%),
        #09090B !important;
}

.user-entry-page .sidebar,
.admin-entry-page .sidebar {
    background: rgba(12, 12, 14, 0.94) !important;
    border-right: 1px solid #27272A !important;
    box-shadow: inset -1px 0 rgba(255, 255, 255, 0.025) !important;
}

.user-entry-page .sidebar-brand,
.admin-entry-page .sidebar-brand {
    border-bottom-color: #27272A !important;
}

.user-entry-page .brand-icon.entry-logo-mark,
.admin-entry-page .brand-icon.entry-logo-mark {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.user-entry-page .entry-logo-mark svg,
.admin-entry-page .entry-logo-mark svg {
    width: 28px !important;
    height: 30px !important;
    display: block !important;
    filter: drop-shadow(0 0 16px rgba(255, 224, 232, 0.22));
}

.user-entry-page .brand-name,
.admin-entry-page .brand-name {
    color: #FAFAFA !important;
    font-weight: 600 !important;
}

.user-entry-page .brand-sub,
.admin-entry-page .brand-sub,
.user-entry-page .nav-section-label,
.admin-entry-page .nav-section-label {
    color: #71717A !important;
}

.user-entry-page .nav-item,
.admin-entry-page .nav-item {
    color: #A1A1AA !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
}

.user-entry-page .nav-item:hover,
.admin-entry-page .nav-item:hover {
    background: #18181B !important;
    border-color: #27272A !important;
    color: #FAFAFA !important;
    transform: translateX(2px);
}

.user-entry-page .nav-item.active,
.admin-entry-page .nav-item.active {
    background: rgba(255, 224, 232, 0.10) !important;
    border-color: rgba(255, 224, 232, 0.28) !important;
    color: #FFE0E8 !important;
}

.user-entry-page .nav-item.active i,
.admin-entry-page .nav-item.active i,
.user-entry-page .card-title i,
.admin-entry-page .card-title i {
    color: #FFE0E8 !important;
}

.user-entry-page .main-area,
.admin-entry-page .main-area,
.user-entry-page #results-panel,
.admin-entry-page #results-panel {
    background: transparent !important;
}

.user-entry-page .file-header,
.admin-entry-page .file-header,
.user-entry-page .tab-content-area,
.admin-entry-page .tab-content-area {
    background: transparent !important;
}

.user-entry-page .file-header,
.admin-entry-page .file-header {
    position: relative;
    margin: 18px 20px 0;
    padding: 14px 16px !important;
    border: 1px solid #27272A !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(17, 17, 19, 0.96), rgba(12, 12, 14, 0.98)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 34px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden;
}

.user-entry-page .file-header::before,
.admin-entry-page .file-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 224, 232, 0.08), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 45%);
}

.user-entry-page .file-header-left,
.admin-entry-page .file-header-left,
.user-entry-page .file-header-right,
.admin-entry-page .file-header-right {
    position: relative;
    z-index: 1;
}

.user-entry-page .tab-content-area,
.admin-entry-page .tab-content-area {
    padding: 18px 20px 28px !important;
}

.user-entry-page .file-icon-lg,
.admin-entry-page .file-icon-lg {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    background:
        linear-gradient(180deg, rgba(255, 224, 232, 0.10), rgba(24, 24, 27, 0.92)) !important;
    border-color: rgba(255, 224, 232, 0.18) !important;
    color: #FFE0E8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.user-entry-page .file-name-block,
.admin-entry-page .file-name-block {
    flex: 1;
    min-width: 0;
}

.user-entry-page .file-name,
.admin-entry-page .file-name,
.user-entry-page .metric-row .value,
.admin-entry-page .metric-row .value {
    color: #FAFAFA !important;
}

.user-entry-page .file-name,
.admin-entry-page .file-name {
    max-width: min(58vw, 760px) !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
}

.user-entry-page .file-meta,
.admin-entry-page .file-meta,
.user-entry-page .metric-row .label,
.admin-entry-page .metric-row .label {
    color: #A1A1AA !important;
}

.user-entry-page .file-meta,
.admin-entry-page .file-meta {
    flex-wrap: wrap;
    gap: 7px !important;
    margin-top: 7px !important;
}

.user-entry-page .file-meta > span,
.admin-entry-page .file-meta > span {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #27272A;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.66);
    color: #A1A1AA;
    font-size: 10.5px;
    line-height: 1;
}

.user-entry-page .file-meta > span i,
.admin-entry-page .file-meta > span i {
    color: #71717A;
}

.user-entry-page #result-risk-badge,
.admin-entry-page #result-risk-badge {
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.user-entry-page #result-risk-badge.badge,
.admin-entry-page #result-risk-badge.badge {
    min-height: 24px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
}

.user-entry-page .file-header-right .btn,
.admin-entry-page .file-header-right .btn {
    height: 34px !important;
    border-radius: 999px !important;
    padding: 0 13px !important;
    white-space: nowrap;
}

.user-entry-page .card,
.admin-entry-page .card,
.user-entry-page .login-gate,
.admin-entry-page .login-gate {
    background: linear-gradient(180deg, #111113, #0E0E10) !important;
    border: 1px solid #27272A !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

.user-entry-page .card:hover,
.admin-entry-page .card:hover {
    border-color: #3F3F46 !important;
}

.user-entry-page .table-modern th,
.admin-entry-page .table-modern th {
    background: #111113 !important;
    color: #A1A1AA !important;
    border-bottom-color: #27272A !important;
}

.user-entry-page .table-modern td,
.admin-entry-page .table-modern td,
.user-entry-page pre.code-block,
.admin-entry-page pre.code-block {
    color: #FAFAFA !important;
    border-color: #27272A !important;
}

.user-entry-page .table-modern tr:hover td,
.admin-entry-page .table-modern tr:hover td {
    background: #18181B !important;
}

.user-entry-page .btn-ghost,
.admin-entry-page .btn-ghost {
    background: #111113 !important;
    border-color: #27272A !important;
    color: #FAFAFA !important;
}

.user-entry-page .btn-ghost:hover,
.admin-entry-page .btn-ghost:hover {
    background: #18181B !important;
    border-color: rgba(255, 224, 232, 0.34) !important;
    color: #FFE0E8 !important;
}

.user-entry-page .badge-red,
.admin-entry-page .badge-red {
    background: rgba(248, 113, 113, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.36) !important;
    color: #FCA5A5 !important;
}

.user-entry-page .badge-yellow,
.admin-entry-page .badge-yellow {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.34) !important;
    color: #FBBF24 !important;
}

.user-entry-page .badge-green,
.admin-entry-page .badge-green {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.34) !important;
    color: #4ADE80 !important;
}

@media (max-width: 760px) {
    .user-entry-page .file-header,
    .admin-entry-page .file-header {
        margin: 14px 14px 0;
        padding: 13px !important;
        flex-direction: column;
        align-items: stretch;
    }

    .user-entry-page .file-name,
    .admin-entry-page .file-name {
        max-width: 100% !important;
    }

    .user-entry-page .file-header-right,
    .admin-entry-page .file-header-right {
        justify-content: flex-start;
    }

    .user-entry-page .tab-content-area,
    .admin-entry-page .tab-content-area {
        padding: 18px 14px 24px !important;
    }
}

/* Final mainpage dropzone: no tile/dashed overlay */
#drop-zone::before,
#drop-zone:hover::before,
#drop-zone.drag-active::before {
    display: none !important;
    content: none !important;
    border: 0 !important;
    background: none !important;
    opacity: 0 !important;
}

#drop-zone {
    border: 1px solid #3F3F46 !important;
    background:
        linear-gradient(180deg, rgba(18, 18, 21, 0.96), rgba(12, 12, 14, 0.98)) padding-box !important;
}

#drop-zone:hover,
#drop-zone.drag-active {
    border-color: rgba(255, 224, 232, 0.42) !important;
}

/* Final footer cleanup: remove separator line above copyright/status */
.tailark-site-footer [aria-hidden="true"].h-px {
    display: none !important;
}

.tailark-site-footer {
    border-top: 0 !important;
}

#lang-de,
#lang-de-user,
#lang-de-admin {
    display: none !important;
}

/* Brand blocks in the top-left corner link back to the start page. */
a.brand-home {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.brand-home:hover .brand-name,
a.brand-home:hover .admin-brand-name,
a.brand-home:hover > span:last-child {
    color: var(--text-primary, #FAFAFA);
}
a.brand-home:hover .brand-icon,
a.brand-home:hover .admin-brand-icon,
a.brand-home:hover .scan-brand-icon,
a.brand-home:hover .dashboard-logo-mark {
    filter: brightness(1.12);
}

/* Unified shadcn-inspired application theme */
:root {
    --bg-base: #0a0a0a;
    --bg-panel: #0d0d0d;
    --bg-elevated: #111111;
    --bg-hover: #171717;
    --border: #262626;
    --border-light: #333333;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
}
html, body {
    background: #0a0a0a !important;
    color: #fafafa;
    font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}
body:not(.user-dashboard-page):not(.admin-workspace-page) .app-shell {
    background: #0a0a0a !important;
}
.app-shell:not(.no-sidebar) { grid-template-columns: 240px minmax(0, 1fr) !important; }
.app-shell:not(.no-sidebar) > .sidebar {
    width: 240px !important;
    padding: 16px 24px 18px !important;
    border-right: 1px solid #262626 !important;
    background: #0d0d0d !important;
    box-shadow: none !important;
}
.app-shell:not(.no-sidebar) > .sidebar .sidebar-brand {
    min-height: 52px !important;
    padding: 0 8px 16px !important;
    gap: 11px !important;
}
.app-shell:not(.no-sidebar) > .sidebar .brand-icon,
.app-shell:not(.no-sidebar) > .sidebar .entry-logo-mark {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    color: #0a0a0a !important;
    box-shadow: none !important;
}
.app-shell:not(.no-sidebar) > .sidebar .entry-logo-mark svg { width: 17px !important; height: 19px !important; }
.app-shell:not(.no-sidebar) > .sidebar .entry-logo-mark svg path { fill: #0a0a0a !important; }
.app-shell:not(.no-sidebar) > .sidebar .brand-name {
    color: #fafafa !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}
.app-shell:not(.no-sidebar) > .sidebar .brand-sub { display: none !important; }
.app-shell:not(.no-sidebar) > .sidebar .nav-section-label {
    padding: 18px 8px 7px !important;
    color: #525252 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.app-shell:not(.no-sidebar) > .sidebar .nav-item {
    min-height: 34px !important;
    margin: 2px 0 !important;
    padding: 0 10px !important;
    gap: 9px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #a3a3a3 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}
.app-shell:not(.no-sidebar) > .sidebar .nav-item i { width: 16px !important; color: #737373 !important; font-size: 14px !important; }
.app-shell:not(.no-sidebar) > .sidebar .nav-item:hover,
.app-shell:not(.no-sidebar) > .sidebar .nav-item.active {
    border-color: #262626 !important;
    background: #1b1b1b !important;
    color: #fafafa !important;
}
.main-area {
    background: #0a0a0a !important;
    box-shadow: none !important;
}
.file-header {
    min-height: 112px !important;
    padding: 28px 56px 18px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.file-icon-lg {
    border: 1px solid #262626 !important;
    border-radius: 12px !important;
    background: #111111 !important;
    color: #d4d4d4 !important;
    box-shadow: none !important;
}
.file-name { color: #fafafa !important; font-size: 20px !important; font-weight: 500 !important; }
.file-meta { color: #737373 !important; font-size: 12px !important; }
.results-body,
.tab-content { background: transparent !important; }
.card,
.metric-card,
.detail-card,
.section-card,
.scan-card,
.scan-table,
.modal-card {
    border: 1px solid #262626 !important;
    border-radius: 14px !important;
    background: #0d0d0d !important;
    box-shadow: none !important;
}
.btn,
button.btn,
.admin-link,
.user-chip,
.lang-switcher,
input,
select,
textarea {
    border-color: #333333 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-family: "Geist", ui-sans-serif, system-ui, sans-serif !important;
}
.btn-primary,
button.btn-primary {
    border-color: #fafafa !important;
    background: #fafafa !important;
    color: #0a0a0a !important;
    box-shadow: none !important;
}
.btn-ghost,
.btn-secondary,
.admin-link,
.user-chip {
    background: #111111 !important;
    color: #a3a3a3 !important;
}
.table-modern,
.scan-table { border-color: #262626 !important; background: #0d0d0d !important; }
.table-modern th,
.scan-table th { color: #737373 !important; font-weight: 500 !important; }
.table-modern td,
.scan-table td { border-color: #262626 !important; color: #a3a3a3 !important; }
.badge,
.pill,
.scan-entry-status { border-radius: 999px !important; box-shadow: none !important; }
.landing-container,
.landing-content,
.home-hero,
.landing-hero { background: #0a0a0a !important; }
.landing-title,
.landing-hero h1 { font-family: "Geist", sans-serif !important; font-weight: 500 !important; letter-spacing: -.04em !important; }
.upload-card,
#drop-zone,
.recent-panel,
.landing-card {
    border-color: #262626 !important;
    border-radius: 16px !important;
    background: #0d0d0d !important;
    box-shadow: none !important;
}
@media (max-width: 820px) {
    .app-shell:not(.no-sidebar) { display: block !important; }
    .app-shell:not(.no-sidebar) > .sidebar { width: 100% !important; padding: 8px !important; }
    .file-header { padding: 20px 16px 12px !important; }
}

/* Homepage: neutral shadcn-style palette shared with the dashboards */
body.homepage {
    --background: #0a0a0a !important;
    --foreground: #fafafa !important;
    --card: #0d0d0d !important;
    --card-foreground: #fafafa !important;
    --popover: #111111 !important;
    --popover-foreground: #fafafa !important;
    --primary: #fafafa !important;
    --primary-foreground: #0a0a0a !important;
    --secondary: #171717 !important;
    --secondary-foreground: #d4d4d4 !important;
    --muted: #171717 !important;
    --muted-foreground: #737373 !important;
    --accent: #262626 !important;
    --accent-hover: #333333 !important;
    --accent-dim: rgba(255,255,255,.06) !important;
    --accent-rose: #fafafa !important;
    --accent-rose-hover: #e5e5e5 !important;
    --accent-rose-foreground: #0a0a0a !important;
    --border: #262626 !important;
    --input: #262626 !important;
    --ring: #737373 !important;
    background: #0a0a0a !important;
    color: #fafafa !important;
}
body.homepage .tailark-header,
body.homepage .tailark-site-header,
body.homepage .tailark-site-footer,
body.homepage main,
body.homepage section {
    border-color: #262626 !important;
}
body.homepage .text-muted-foreground,
body.homepage .modal-subtitle,
body.homepage .upload-console-head small {
    color: #737373 !important;
}
body.homepage .bg-card,
body.homepage .upload-console,
body.homepage .recent-panel,
body.homepage .modal-card {
    border-color: #262626 !important;
    background: #0d0d0d !important;
    box-shadow: none !important;
}
body.homepage .btn-primary,
body.homepage button.btn-primary,
body.homepage .header-cta,
body.homepage #dashboard-upload-button {
    border-color: #fafafa !important;
    background: #fafafa !important;
    color: #0a0a0a !important;
}
body.homepage .btn-primary:hover,
body.homepage button.btn-primary:hover,
body.homepage .header-cta:hover {
    border-color: #e5e5e5 !important;
    background: #e5e5e5 !important;
}
body.homepage a:not(.btn):not(.header-cta):hover,
body.homepage .feature-icon,
body.homepage .dropzone-icon,
body.homepage .modal-header-icon {
    color: #d4d4d4 !important;
}
body.homepage .tailark-site-header svg path,
body.homepage .tailark-site-footer svg path,
body.homepage .entry-logo-mark svg path {
    fill: #fafafa !important;
}
body.homepage .tailark-features-three,
body.homepage .tailark-features-three.bg-background,
body.homepage section.tailark-features-three.bg-background.\@container.py-24 {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}
body.homepage .tailark-site-footer,
body.homepage .tailark-site-footer.bg-background {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
}
body.homepage .tailark-features-three > div,
body.homepage .tailark-features-three > div > div,
body.homepage .tailark-features-shell,
body.homepage .tailark-features-shell > .grid,
body.homepage .tailark-features-shell > .grid > .row-span-2 {
    border-color: #262626 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}


.entry-logo-mark svg path,
.dashboard-logo-mark svg path,
.admin-brand-icon svg path,
.scan-brand-icon svg path,
.home-brand-mark svg path,
.tailark-brand-mark svg path,
.tailark-footer-brand-mark svg path,
.precious-showcase-logo-mark svg path,
.brand-icon.entry-logo-mark svg path,
body.homepage .tailark-site-header svg path,
body.homepage .tailark-site-footer svg path {
    fill: #FFE0E8 !important;
}
.entry-logo-mark,
.dashboard-logo-mark,
.admin-brand-icon,
.scan-brand-icon,
.home-brand-mark,
.tailark-brand-mark,
.tailark-footer-brand-mark,
.precious-showcase-logo-mark {
    color: #FFE0E8 !important;
}
.precious-showcase-logo-mark:empty::before,
.tailark-footer-brand-mark:empty::before {
    background-color: #FFE0E8 !important;
}

/* DarkVeil: animierter WebGL-Hintergrund auf der Startseite.
   Fixiert hinter dem Landing-Inhalt; die Maske blendet ihn nach unten aus,
   damit Dropzone und Listen lesbar bleiben. */
.darkveil-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.75) 45%, rgba(0,0,0,0.28) 75%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.75) 45%, rgba(0,0,0,0.28) 75%, rgba(0,0,0,0) 100%);
}
.dropzone-wrap { position: relative; }
.dropzone-wrap > .landing-container {
    position: relative;
    z-index: 1;
}

/* DarkVeil-Sichtbarkeit: die Landing-Ebenen liegen ueber dem Canvas und
   waren bisher deckend #0a0a0a (Regeln bei ~10095/12050) — transparent
   schalten, damit der animierte Hintergrund durchscheint. Karten und
   Header behalten ihre eigenen Hintergruende. */
.landing-container,
.landing-content,
.precious-showcase,
.home-hero,
.landing-hero {
    background: transparent !important;
}

/* Basis hinter dem Veil in Seitenfarbe: dunkles Zinc mit zartem Rosa-Glow
   oben (gleiche Formel wie im Dashboard). */
.dropzone-wrap {
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 224, 232, 0.05), transparent 420px),
        #09090B !important;
}

/* Homepage-Feinschliff: Footer ohne eigenen Hintergrund, Features-Sektion
   (Live analysis status / Threat Timeline / ...) ohne Rahmen, FAQ ohne
   Trennlinien zwischen den Eintraegen. */
body.homepage .tailark-site-footer,
body.homepage .tailark-site-footer.bg-background {
    background: transparent !important;
}
body.homepage section.tailark-features-three,
.dropzone-wrap > .landing-container > section.tailark-features-three.bg-background,
body.homepage .tailark-features-three .tailark-features-shell,
body.homepage .tailark-features-three .tailark-features-shell > .grid,
body.homepage .tailark-features-three .tailark-features-shell > .grid > div {
    border: 0 !important;
    box-shadow: none !important;
}
.homepage-faq-list details {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* FAQ: auch die Linie ueber der ersten Frage entfernen */
.homepage-faq-list {
    border-top: 0 !important;
}

/* Veil-Ton Richtung #FFE0E8: entsaettigen + aufhellen + leicht Richtung
   Rosa drehen; Glow unter dem Canvas kraeftiger in Markenfarbe. */
.darkveil-canvas {
    opacity: 0.55;
    filter: hue-rotate(30deg) saturate(0.10) brightness(2.9);
}
.dropzone-wrap {
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 224, 232, 0.09), transparent 480px),
        #09090B !important;
}

/* Start-Analyse-Karte + Recent Uploads: Glas-Optik ueber dem animierten
   Hintergrund statt deckender Flaechen. */
body.homepage #drop-zone,
body.homepage .upload-console,
body.homepage .recent-panel {
    background: rgba(9, 9, 11, 0.55) !important;
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    border: 0 !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
}
body.homepage .recent-panel .recent-stat,
body.homepage .recent-panel .recent-item,
body.homepage #recent-list > div {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* Watch-video Popup */
.video-modal-card {
    position: relative;
    width: min(920px, 92vw);
}
.video-modal-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 224, 232, 0.16);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.video-modal-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.8);
    color: #FAFAFA;
    font-size: 14px;
    cursor: pointer;
}
.video-modal-close:hover { background: rgba(63, 63, 70, 0.9); }
