    :root{
      --bg: #070A0F;
      --panel: rgba(255,255,255,0.05);
      --panel2: rgba(255,255,255,0.035);
      --text: rgba(255,255,255,0.92);
      --muted: rgba(255,255,255,0.68);
      --faint: rgba(255,255,255,0.55);
      --border: rgba(255,255,255,0.10);
      --shadow: 0 18px 60px rgba(0,0,0,0.45);
      --radius: 18px;

      --accent: #8AE1FF;
      --accent2: #B2FFDA;

      --okBg: rgba(168,255,184,0.12);
      --okBd: rgba(168,255,184,0.28);

      --errBg: rgba(255,90,90,0.12);
      --errBd: rgba(255,90,90,0.28);

      --warnBg: rgba(255,211,106,0.12);
      --warnBd: rgba(255,211,106,0.30);
    }

    * { box-sizing: border-box; }
    body{
      margin:0;
      background: radial-gradient(900px 500px at 20% 10%, rgba(138,225,255,0.14), transparent 55%),
                  radial-gradient(700px 420px at 80% 25%, rgba(178,255,218,0.10), transparent 60%),
                  radial-gradient(900px 600px at 50% 110%, rgba(255,211,106,0.06), transparent 60%),
                  var(--bg);
      color: var(--text);
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      line-height: 1.45;
    }
    a{ color: inherit; text-decoration: none; }
    .container{ max-width: 980px; margin: 0 auto; padding: 0 20px; }

    /* Topbar */
    .topbar{
      position: sticky; top: 0;
      backdrop-filter: blur(10px);
      background: rgba(7,10,15,0.65);
      border-bottom: 1px solid var(--border);
      z-index: 50;
    }
    .topbar-inner{
      display:flex; align-items:center; justify-content:space-between;
      padding: 14px 0;
      gap: 12px;
    }
    .brand{
      display:flex; align-items:center; gap: 10px;
      font-weight: 700; letter-spacing: 0.2px;
      white-space: nowrap;
    }
    .logo{
      width: 34px; height: 34px; border-radius: 10px;
      background: linear-gradient(145deg, rgba(138,225,255,0.22), rgba(178,255,218,0.18));
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 10px 35px rgba(0,0,0,0.35);
      display:flex; align-items:center; justify-content:center;
      flex: 0 0 auto;
    }
    .logo svg{ opacity: 0.9; }
    .nav{
      display:flex; align-items:center; gap: 12px;
      color: var(--muted);
      font-size: 14px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .nav a{ padding: 8px 10px; border-radius: 10px; }
    .nav a:hover{ background: rgba(255,255,255,0.06); color: var(--text); }

    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.06);
      color: var(--text);
      font-weight: 600;
      font-size: 14px;
      transition: transform .12s ease, background .12s ease, border-color .12s ease;
      cursor: pointer;
      user-select: none;
      white-space: nowrap;
    }
    .btn:hover{
      transform: translateY(-1px);
      background: rgba(255,255,255,0.09);
      border-color: rgba(255,255,255,0.16);
    }
    .btn.primary{
      background: linear-gradient(145deg, rgba(138,225,255,0.20), rgba(178,255,218,0.14));
      border-color: rgba(138,225,255,0.28);
    }
    .btn.primary:hover{ border-color: rgba(138,225,255,0.42); }

    @media (max-width: 860px){
      .nav{ display:none; }
    }

    /* Page layout */
    main{ padding: 34px 0 50px; }
    h1{
      margin: 0 0 8px;
      font-size: 32px;
      letter-spacing: -0.3px;
    }
    .lead{
      margin: 0 0 18px;
      color: var(--muted);
      font-size: 15.5px;
      max-width: 80ch;
    }

    .grid{
      display:grid;
      grid-template-columns: 1fr;
      gap: 14px;
      margin-top: 16px;
    }

    .card{
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.04);
      box-shadow: var(--shadow);
      padding: 18px;
    }
    .card h2{
      margin: 0 0 10px;
      font-size: 16px;
      letter-spacing: 0.2px;
    }
    .muted{ color: var(--muted); }
    .faint{ color: var(--faint); }

    .row{
      display:flex;
      gap: 10px;
      align-items:center;
      flex-wrap: wrap;
    }

    input[type="file"]{
      width: 100%;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.18);
      color: var(--text);
      outline: none;
    }
    input[type="file"]:focus{
      border-color: rgba(138,225,255,0.38);
      box-shadow: 0 0 0 4px rgba(138,225,255,0.12);
    }

    /* Flash */
    .flash{
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      margin-bottom: 10px;
      color: var(--text);
      font-size: 14px;
    }
    .flash.success{
      background: var(--okBg);
      border-color: var(--okBd);
    }
    .flash.error{
      background: var(--errBg);
      border-color: var(--errBd);
    }
    .flash.warning{
      background: var(--warnBg);
      border-color: var(--warnBd);
    }

    /* Status pill */
    .pill{
      display:inline-flex;
      align-items:center;
      gap: 8px;
      padding: 7px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.05);
      color: var(--muted);
      font-size: 13px;
      width: fit-content;
    }
    .dot{
      width: 9px; height: 9px;
      border-radius: 999px;
      background: rgba(255,255,255,0.35);
    }
    .dot.ok{ background: rgba(168,255,184,0.9); box-shadow: 0 0 20px rgba(168,255,184,0.25); }
    .dot.err{ background: rgba(255,90,90,0.9); box-shadow: 0 0 20px rgba(255,90,90,0.22); }

    /* Footer */
    footer{
      border-top: 1px solid var(--border);
      padding: 18px 0 34px;
      color: var(--faint);
      font-size: 13px;
      margin-top: 26px;
    }
    .footer-links{
      display:flex; gap: 12px; flex-wrap:wrap;
      color: var(--muted);
      margin-top: 10px;
    }
    .footer-links a{
      padding: 6px 8px;
      border-radius: 10px;
    }
    .footer-links a:hover{
      background: rgba(255,255,255,0.06);
      color: var(--text);
    }
      .file-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .file-input-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .file-name {
    color: var(--muted);
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    min-width: 240px;
  }