.grpc-wrap{
  --grpc-navy:#1c3a5e;
  --grpc-navy-dark:#122a45;
  --grpc-orange:#f2a874;
  --grpc-orange-dark:#eb9660;
  --grpc-bg:#f3f4f6;
  --grpc-card:#ffffff;
  --grpc-border:#e6e8ec;
  --grpc-text:#1c2733;
  --grpc-text-muted:#8a93a1;

  max-width:720px;
  margin:0 auto;
  padding:40px 16px 60px;
  font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--grpc-text);
  box-sizing:border-box;
}
.grpc-wrap *{box-sizing:border-box;}

.grpc-badge{display:flex;justify-content:center;}
.grpc-badge span{
  display:inline-flex;align-items:center;gap:8px;
  background:#fdece0;color:var(--grpc-orange-dark);
  font-size:13px;font-weight:600;
  padding:7px 16px;border-radius:999px;
}
.grpc-badge span::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:var(--grpc-orange-dark);display:inline-block;
}
.grpc-title{
  text-align:center;font-size:30px;font-weight:800;
  color:var(--grpc-navy-dark);margin:18px 0 8px;letter-spacing:-0.02em;
}
.grpc-sub{
  text-align:center;color:var(--grpc-text-muted);font-size:15px;
  max-width:460px;margin:0 auto 32px;line-height:1.6;
}
.grpc-card{
  background:var(--grpc-card);
  border:1px solid var(--grpc-border);
  border-radius:20px;
  box-shadow:0 1px 2px rgba(20,30,45,.04), 0 8px 24px rgba(20,30,45,.06);
  padding:24px;
}
.grpc-top-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:16px;}
.grpc-btn{
  font-size:13px;font-weight:600;
  border-radius:10px;padding:9px 14px;
  border:1px solid var(--grpc-border);
  background:#fff;color:var(--grpc-text);
  cursor:pointer;transition:.15s;
}
.grpc-btn:hover:not(:disabled){background:#f7f8fa;}
.grpc-btn:disabled{opacity:.45;cursor:not-allowed;}

.grpc-dropzone{
  border:2px dashed #d7dbe1;border-radius:14px;min-height:300px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;cursor:pointer;transition:.15s;padding:32px;
}
.grpc-dropzone.grpc-drag{border-color:var(--grpc-orange);background:#fef7f1;}
.grpc-upload-icon{
  width:52px;height:52px;border-radius:14px;background:var(--grpc-navy);color:#fff;
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;
}
.grpc-dropzone h3{margin:0 0 6px;font-size:17px;font-weight:700;color:var(--grpc-navy-dark);}
.grpc-dropzone p{margin:0;font-size:13px;color:var(--grpc-text-muted);}

.grpc-file-view{
  min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;text-align:center;padding:28px;
}
.grpc-file-icon{
  width:60px;height:60px;border-radius:16px;background:#fdece0;color:var(--grpc-orange-dark);
  display:flex;align-items:center;justify-content:center;
}
.grpc-file-name{font-size:16px;font-weight:700;color:var(--grpc-navy-dark);word-break:break-all;max-width:340px;}
.grpc-file-meta{font-size:13px;color:var(--grpc-text-muted);}

.grpc-progress-wrap{width:260px;height:8px;background:#eef0f3;border-radius:999px;overflow:hidden;margin:0 auto;}
.grpc-progress-bar{height:100%;width:0%;background:linear-gradient(90deg,var(--grpc-orange),var(--grpc-orange-dark));border-radius:999px;transition:width .2s;}
.grpc-progress-label{font-size:13px;color:var(--grpc-text-muted);margin-top:10px;}

.grpc-error{
  background:#fdecec;color:#b3261e;border:1px solid #f6cccb;
  border-radius:10px;padding:12px 16px;font-size:13px;max-width:420px;
}

.grpc-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;width:100%;}
.grpc-stat{background:#f8f9fb;border:1px solid var(--grpc-border);border-radius:10px;padding:12px 8px;text-align:center;}
.grpc-label{font-size:11px;color:var(--grpc-text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em;}
.grpc-value{font-size:15px;font-weight:700;color:var(--grpc-navy-dark);margin-top:4px;}
.grpc-value.grpc-reduction{color:#2f9e5c;}

.grpc-level-row{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:4px;}
.grpc-level-label{font-size:12px;font-weight:600;color:var(--grpc-text-muted);text-transform:uppercase;letter-spacing:.03em;}
.grpc-level-options{display:inline-flex;background:#f2f3f5;border-radius:10px;padding:4px;gap:2px;}
.grpc-level-btn{
  border:none;background:transparent;color:var(--grpc-text-muted);
  font-size:13px;font-weight:600;padding:7px 16px;border-radius:8px;cursor:pointer;transition:.15s;
}
.grpc-level-btn:hover{color:var(--grpc-text);}
.grpc-level-btn.grpc-level-active{background:#fff;color:var(--grpc-navy-dark);box-shadow:0 1px 2px rgba(20,30,45,.1);}

.grpc-action-row{display:flex;justify-content:center;gap:12px;margin-top:20px;}
.grpc-btn-primary{
  background:var(--grpc-navy);color:#fff;border:none;
  font-size:14px;font-weight:700;padding:13px 28px;border-radius:12px;
  cursor:pointer;transition:.15s;
}
.grpc-btn-primary:hover{background:var(--grpc-navy-dark);}
.grpc-btn-primary:disabled{background:#c4cbd4;cursor:not-allowed;}

.grpc-btn-download{
  background:linear-gradient(90deg,var(--grpc-orange),var(--grpc-orange-dark));
  color:#fff;text-decoration:none;font-size:15px;font-weight:700;
  padding:14px 30px;border-radius:14px;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
  box-shadow:0 6px 18px rgba(235,150,96,.35);transition:.15s;
}
.grpc-btn-download:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(235,150,96,.42);color:#fff;}

.grpc-method-note{text-align:center;font-size:12px;color:var(--grpc-text-muted);margin-top:14px;line-height:1.5;}
.grpc-footnote{text-align:center;font-size:12.5px;color:var(--grpc-text-muted);margin-top:16px;}
input[type=file]{display:none;}
.grpc-hidden{display:none !important;}

@media(max-width:520px){
  .grpc-stats-row{grid-template-columns:repeat(2,1fr);}
  .grpc-title{font-size:24px;}
}
