header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 16px;
      background: var(--app-panel);
      border: 1px solid var(--app-border);
      border-radius: var(--app-radius-lg);
      box-shadow: var(--app-shadow);
      padding: 26px;
      overflow: hidden;
      position: relative;
    }
    header::before {
      content: "";
      position: absolute;
      inset: -20% -8% auto auto;
      width: 320px;
      height: 220px;
      background:
        radial-gradient(circle at 35% 38%, rgba(0, 113, 227, 0.2), transparent 62%),
        radial-gradient(circle at 66% 66%, rgba(16, 185, 129, 0.14), transparent 64%);
      pointer-events: none;
    }

    h1 {
      margin: 0;
      font-size: clamp(31px, 4.2vw, 48px);
      letter-spacing: -0.03em;
      font-weight: 600;
      line-height: 1.02;
      position: relative;
      z-index: 1;
    }

    .sub {
      margin-top: 10px;
      color: var(--app-muted);
      font-size: 15px;
      max-width: 78ch;
      line-height: 1.35;
      letter-spacing: -0.015em;
      position: relative;
      z-index: 1;
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 13px;
      border-radius: 999px;
      background: linear-gradient(120deg, rgba(0,113,227,0.14), rgba(45,212,191,0.14));
      border: 1px solid rgba(0, 113, 227, 0.28);
      color: #0f4f9f;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.05em;
      user-select: none;
      white-space: nowrap;
      text-transform: uppercase;
      position: relative;
      z-index: 1;
    }
    .chipDot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--app-brand);
    }

    .grid {
      display: grid;
      grid-template-columns: 1.35fr .65fr;
      gap: 16px;
      margin-top: 14px;
    }
    @media (max-width: 920px) {
      .grid { grid-template-columns: 1fr; }
    }

    .card {
      background: var(--app-panel);
      border: 1px solid var(--app-border);
      border-radius: var(--app-radius-md);
      box-shadow: var(--app-shadow);
      overflow: hidden;
      transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    }
    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
      border-color: rgba(0, 113, 227, 0.32);
    }

    .cardHead {
      padding: 14px 16px;
      border-bottom: 1px solid var(--app-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: var(--app-panel-soft);
    }
    .cardHead strong { font-size: 13px; letter-spacing: 0.01em; }

    .cardBody { padding: 16px; }

    .drop {
      background: #fbfefe;
      border: 1px dashed #b6d8d2;
      border-radius: 16px;
      padding: 16px;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }
    .drop.drag {
      border-color: #4ea79d;
      background: #f0faf7;
      box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    }

    .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .fileMeta {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 240px;
    }
    .fileName { font-weight: 800; font-size: 13px; }
    .hint { color: var(--app-muted); font-size: 12px; }

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

    .btn {
      align-items: center;
      appearance: none;
      background: linear-gradient(100deg, #0071e3, #0ea5e9);
      border: 1px solid transparent;
      border-radius: 999px;
      color: #fff;
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: -0.01em;
      gap: 8px;
      justify-content: center;
      min-height: 40px;
      padding: 0 16px;
      transition: background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
    }
    .btn:hover { background: linear-gradient(100deg, #0066cc, #0284c7); box-shadow: 0 6px 18px rgba(0, 113, 227, 0.24); }
    .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
    .btn.primary { min-width: 88px; }
    .btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
    .btn.ghost {
      background: #ffffff;
      border: 1px solid var(--app-border);
      color: var(--app-muted);
    }
    .btn.ghost:hover { box-shadow: none; color: var(--app-text); }
    input[type=file] { display: none; }

    .status {
      margin-top: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--app-border);
      background: #f5faf9;
      color: var(--app-muted);
      font-size: 12px;
      white-space: pre-wrap;
    }
    .status.ok { border-color: #c9ddf7; color: #0f4f9f; background: #eef5ff; }
    .status.bad { border-color: #f3cccc; color: var(--app-danger); background: #fff3f2; }

    .kpis {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    @media (max-width: 520px) {
      .kpis { grid-template-columns: 1fr; }
    }
    .kpi {
      padding: 12px;
      border-radius: 12px;
      border: 1px solid var(--app-border);
      background: var(--app-panel-soft);
    }
    .kpi .label { color: var(--app-muted); font-size: 12px; }
    .kpi .value { margin-top: 6px; font-size: 18px; font-weight: 900; }
    .value.ok { color: var(--app-success); }
    .value.bad { color: var(--app-danger); }
    .value.warn { color: var(--app-warning); }

    .tableWrap {
      overflow: auto;
      border-radius: 16px;
      border: 1px solid var(--app-border);
      background: var(--app-panel);
    }
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 820px;
    }
    th, td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--app-border);
      font-size: 13px;
      vertical-align: top;
    }
    th {
      text-align: left;
      position: sticky;
      top: 0;
      background: var(--app-panel-soft);
      color: var(--app-muted);
      font-weight: 900;
      z-index: 1;
    }
    tr:nth-child(odd) td { background: #fcfeff; }
    tr:hover td { background: #eef8ff; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--app-border);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }
    .badge .bDot { width: 8px; height: 8px; border-radius: 999px; }
    .badge.warn {
      border-color: #e7c99c;
      background: #fff7ec;
      color: var(--app-warning);
    }
    .badge.warn .bDot { background: var(--app-warning); }
    .badge.bad {
      border-color: #efc4c1;
      background: #fff1f0;
      color: var(--app-danger);
    }
    .badge.bad .bDot { background: var(--app-danger); }

    .mono { font-family: var(--mono); font-size: 12px; color: var(--app-muted); }
    .metaLine { color: var(--app-muted); font-size: 12px; }
    .resultsCard { margin-top: 14px; display: none; }

    @media (max-width: 620px) {
      .wrap {
        width: min(100% - 22px, 1180px);
        margin: 20px auto 32px;
      }
      header { padding: 18px; }
      .sub { font-size: 15px; }
    }
