:root{
  --bg:#eef3f9;
  --surface:#ffffff;
  --surface-soft:#f7f9fc;
  --line:#d7e0ec;
  --line-strong:#c6d2e3;
  --text:#17233a;
  --muted:#607089;
  --brand:#1f4ea6;
  --brand-dark:#0f2c66;
  --valid-start:#0f6b46;
  --valid-end:#16a34a;
  --invalid-start:#8a1538;
  --invalid-end:#be123c;
  --shadow:0 20px 50px rgba(16,24,40,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#f3f6fb 0%, #edf2f8 100%);
}

.page-shell{max-width:1120px;margin:0 auto;padding:38px 24px 46px}

.page-intro,
.surface-card,
.report-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.page-intro{padding:30px 32px;margin-bottom:20px}

.intro-chip{
  display:inline-flex;
  padding:8px 14px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--brand);
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  margin-bottom:14px;
}

h1,h2,h3{margin:0}

h1{
  font-size:58px;
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:900;
  color:#12213d;
}

.page-intro p{
  max-width:900px;
  margin:16px 0 0;
  color:var(--muted);
  font-size:19px;
  line-height:1.65;
}

.surface-card{padding:26px;margin-bottom:22px}

.alert{
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid #f1ccd6;
  background:#fff4f7;
  color:#8a1e3d;
  border-radius:16px;
  font-weight:600;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 22px;
  border-radius:16px;
  border:none;
  background:linear-gradient(180deg,#163d80,#0f2b5f);
  color:#fff;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(15,43,95,.16);
}

.btn-secondary{
  background:#fff;
  color:var(--brand-dark);
  border:1px solid var(--line-strong);
  box-shadow:none;
}

.dropzone{
  position:relative;
  display:block;
  border:2px dashed #c6d8ee;
  border-radius:24px;
  padding:34px 24px;
  text-align:center;
  background:linear-gradient(180deg,#fbfdff,#f6f9fc);
  transition:.18s ease;
}

.dropzone.dragover{
  border-color:#8eb1e3;
  background:#f2f7ff;
  box-shadow:0 0 0 4px rgba(31,78,166,.06) inset;
}

.dropzone.is-uploading{
  opacity:.82;
  pointer-events:none;
}

.dropzone__icon{
  width:66px;
  height:66px;
  margin:0 auto 16px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef4ff;
  border:1px solid #d7e4fb;
  color:var(--brand);
  font-size:28px;
  font-weight:900;
}

.dropzone__title{
  font-size:22px;
  font-weight:900;
  color:#18284a;
}

.dropzone__meta{
  margin-top:10px;
  color:var(--muted);
  font-size:16px;
}

.dropzone__hint{
  margin-top:12px;
  color:#38527e;
  font-size:16px;
}

.dropzone__button{margin-top:22px}

.dropzone input[type=file]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}

.filename,
.uploading{
  margin-top:14px;
  font-size:15px;
  font-weight:700;
}

.filename{color:#1b3d79}
.uploading{color:#2856a6}

.report-card{
  overflow:hidden;
}

.report-hero{
  display:grid;
  gap:25px;
  padding:32px;
  color:#fff;
  background:linear-gradient(135deg,var(--valid-start),var(--valid-end));
}

.report-card.is-valid .report-hero{
  background:linear-gradient(135deg,var(--valid-start),var(--valid-end));
}

.report-card.is-invalid .report-hero{
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(135deg,var(--invalid-start),var(--invalid-end));
}

.report-card.is-valid .report-hero{
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(135deg,var(--valid-start),var(--valid-end));
}

.report-chip{
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  margin-bottom:14px;
}

.report-hero h2{
  font-size:44px;
  line-height:1.04;
  letter-spacing:-.03em;
  font-weight:900;
}

.report-hero p{
  margin:14px 0 0;
  max-width:760px;
  font-size:18px;
  line-height:1.62;
  color:rgba(255,255,255,.92);
}

.report-facts-top{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}



.report-fact-top{
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.report-fact-top span,
.metric-box span{
  display:block;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
}

.report-fact-top span{
  color:rgba(255,255,255,.78);
}

.report-fact-top strong{
  display:block;
  margin-top:8px;
  font-size:18px;
  line-height:1.35;
  word-break:break-word;
}

.report-fact-top strong span{
  font-size:40px;
  color:#fff;
  text-transform:uppercase
}

/* Status-Badge */
.report-status-badge{
  flex:0 0 240px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.report-status-badge__ring{
  position:relative;
  width:190px;
  min-height:190px;
  border-radius:999px;
  padding:24px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), rgba(255,255,255,.04) 42%, rgba(255,255,255,.02) 100%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  backdrop-filter:blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -10px 30px rgba(255,255,255,.03),
    0 18px 40px rgba(0,0,0,.18);
}

.report-status-badge__ring::before{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  pointer-events:none;
}


.report-status-badge__label{
  position:relative;
  z-index:1;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.88);
  margin-bottom:12px;
}


.report-status-badge__value{
  position:relative;
  z-index:1;
  font-size:25px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  color:#fff;
  margin-bottom:12px;
  text-shadow:0 2px 12px rgba(0,0,0,.12);
}

.report-status-badge__text{
  position:relative;
  z-index:1;
  max-width:126px;
  font-size:15px;
  line-height:1.35;
  font-weight:600;
  color:rgba(255,255,255,.96);
}

.report-card.is-valid .report-status-badge__ring{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -10px 30px rgba(255,255,255,.04),
    0 0 0 1px rgba(255,255,255,.06),
    0 18px 42px rgba(6,95,70,.22),
    0 0 30px rgba(34,197,94,.16);
}

.report-card.is-invalid .report-status-badge__ring{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -10px 30px rgba(255,255,255,.03),
    0 0 0 1px rgba(255,255,255,.05),
    0 18px 42px rgba(127,29,29,.22),
    0 0 30px rgba(244,63,94,.14);
}

.report-toolbar{
  padding:20px 32px 0;
  display:flex;
  justify-content:flex-end;
}

.report-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  padding:24px 32px 8px;
}

.metric-box{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface-soft);
}

.metric-box span{
  color:var(--muted);
}

.metric-box strong{
  display:block;
  margin-top:8px;
  font-size:36px;
  line-height:1.06;
  letter-spacing:-.03em;
  color:#162647;
}

.metric-box small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  line-height:1.55;
}

.report-section{
  padding:24px 32px 32px;
}

.section-head{
  margin-bottom:16px;
}

.section-head h3{
  font-size:30px;
  line-height:1.12;
  letter-spacing:-.03em;
  color:#15233f;
}

.section-head p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

.report-table{
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
}

.report-row{
  display:grid;
  grid-template-columns:240px 1fr;
}

.report-row:nth-child(even){
  background:#fafcff;
}

.report-row > div{
  padding:15px 18px;
  border-top:1px solid #e8eef6;
}

.report-row:first-child > div{
  border-top:none;
}

.report-row > div:first-child{
  font-weight:800;
  color:#192847;
}

.report-row > div:last-child{
  color:#344764;
  word-break:break-word;
}

.hash-cell{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12.5px;
  line-height:1.65;
  color:#17396f;
}

.page-footer{
  padding:10px 4px 0;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

.no-print{display:block}

@page{
  size:A4;
  margin:14mm;
}

@media print{
  body{
    background:#fff !important;
    color:#111 !important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }

  .no-print,
  .page-intro,
  .uploader-card,
  .page-footer{
    display:none !important;
  }

  .page-shell{
    max-width:none;
    padding:0;
  }

  .report-card{
    border:none;
    box-shadow:none;
    border-radius:0;
    overflow:visible;
  }

  .report-hero{
    padding:16mm 14mm 10mm;
    grid-template-columns:minmax(0,1fr) 58mm;
  }

  .report-hero h2{
    font-size:25pt;
  }

  .report-hero p{
    font-size:11pt;
    line-height:1.55;
  }

  .report-facts-top{
    margin-top:8mm;
    gap:4mm;
  }

  .report-fact-top{
    padding:4mm;
    border-radius:5mm;
  }

  .report-fact-top strong{
    font-size:10.5pt;
  }

  .report-status-badge{
    align-items:flex-start;
    justify-content:flex-end;
  }

  .report-status-badge__ring{
    width:50mm;
    min-height:50mm;
    padding:5mm 4mm;
    border-radius:999px;
    box-shadow:none !important;
    backdrop-filter:none;
  }

  .report-status-badge__ring::before{
    inset:3mm;
  }

  .report-status-badge__ring::after{
    top:4mm;
    width:54%;
    height:20%;
    filter:none;
  }

  .report-status-badge__label{
    font-size:8pt;
    margin-bottom:2mm;
  }

  .report-status-badge__label::before{
    width:3mm;
    height:3mm;
    margin:0 auto 2.2mm;
    box-shadow:none;
  }

  .report-status-badge__value{
    font-size:18pt;
    margin-bottom:2mm;
    text-shadow:none;
  }

  .report-status-badge__text{
    font-size:8.8pt;
    line-height:1.35;
    max-width:none;
  }

  .report-summary-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4mm;
    padding:8mm 14mm 4mm;
  }

  .metric-box{
    padding:4mm;
    border-radius:5mm;
    break-inside:avoid;
    page-break-inside:avoid;
  }

  .metric-box strong{
    font-size:18pt;
  }

  .metric-box small{
    font-size:9.5pt;
    line-height:1.4;
  }

  .report-section{
    padding:8mm 14mm 0;
  }

  .section-head{
    margin-bottom:4mm;
  }

  .section-head h3{
    font-size:18pt;
  }

  .section-head p{
    font-size:10pt;
  }

  .report-table{
    border-radius:0;
    border-left:none;
    border-right:none;
  }

  .report-row{
    grid-template-columns:48mm 1fr;
  }

  .report-row > div{
    padding:3mm 3.5mm;
    font-size:10pt;
  }

  .hash-cell{
    font-size:8.6pt;
    line-height:1.45;
  }
}

@media (max-width:980px){
  h1{font-size:46px}

  .report-hero{
    grid-template-columns:1fr;
  }

  .report-facts-top{
    grid-template-columns:1fr;
  }

  .report-summary-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .report-status-badge{
    flex:1 1 100%;
    margin-top:20px;
  }

  .report-status-badge__ring{
    width:168px;
    min-height:168px;
  }

  .report-status-badge__value{
    font-size:30px;
  }

  .report-status-badge__text{
    font-size:14px;
  }
}

@media (max-width:760px){
  .page-shell{padding:18px}
  .page-intro,.surface-card{padding:22px}
  h1{font-size:36px}
  .page-intro p{font-size:17px}
  .dropzone{padding:26px 16px}
  .report-hero{padding:24px}
  .report-hero h2{font-size:34px}
  .report-hero p{font-size:16px}
  .report-toolbar{padding:18px 24px 0}
  .report-summary-grid{grid-template-columns:1fr;padding:22px 24px 6px}
  .report-section{padding:22px 24px 24px}
  .report-row{grid-template-columns:1fr}
}