/* Only the original-file picker owns this surface. File details, the form,
   the hash action and the shared background belong to the upload page. */
.upload-match-shell {
  min-width: 0;
  width: 100%;
  text-align: center;
}
.upload-match-shell .upload-match-zone {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 35rem;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.upload-match-zone .upload-match-zone__label {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: clamp(288px,29.2vw,400px);
  padding: 18px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #2c5672;
  border-radius: 22px;
  background: linear-gradient(145deg,#0d2137,#091326);
  color: #eff6ff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.upload-match-zone__label:hover,
.upload-match-zone.is-dragging .upload-match-zone__label,
.upload-match-zone:has(> .border-cyan-500) .upload-match-zone__label {
  border-color: #38b6d3;
  background-color: #10263e;
  box-shadow: 0 10px 30px #02061740;
}
.upload-match-zone__label:focus-visible,
.upload-match-zone input[type=file]:focus-visible ~ .upload-match-zone__label {
  outline: 2px solid #67e8f9;
  outline-offset: 4px;
}
.upload-match-zone input:disabled ~ .upload-match-zone__label {cursor: default;}
.upload-match-shell .upload-match-zone > .absolute.border-dashed {display:none;}
.upload-match-zone .home-drop-icon {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px;
  margin: 0 0 10px; border: 0; border-radius: 16px; color: white;
  background: linear-gradient(135deg,#38bdf8,#2563eb);
}
.upload-match-zone .home-drop-title {
  color: #eff6ff; font-size: 20px; font-weight: 800; line-height: 1.3;
  letter-spacing: -.025em; overflow-wrap: break-word;
}
.upload-match-zone .home-drop-formats {
  margin-top: 8px; color: #a8c4d9; font-size: 13px; line-height: 1.55;
}
.upload-match-zone .home-drop-choose {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; margin-top: 12px; padding: 10px 24px; border-radius: 12px;
  background: linear-gradient(to right,#06b6d4,#2563eb); color: white;
  font-size: 14px; line-height: 1.45; font-weight: 750; text-transform: none;
  box-shadow: 0 8px 20px #0284c71a;
}
.upload-match-zone .home-drop-limit {margin-top:8px;color:#a8c4d9;font-size:11px;font-weight:600;line-height:1.4;}
.upload-match-zone .home-drop-privacy {max-width:380px;margin-top:5px;color:#7fa1bb;font-size:11px;line-height:1.45;}
.upload-match-zone .upload-match-types,.upload-match-zone .upload-match-evidence {display:none;}
@media (min-width:1280px) {
  .upload-match-shell .upload-match-zone {max-width:clamp(425px,33.5vw,560px);}
}
@media (max-width:1279.98px) {
  .upload-match-zone .upload-match-zone__label {
    min-height:0; padding:20px 12px 14px; border-radius:18px;
    border-color:rgb(34 211 238 / .32);
    background:radial-gradient(circle at 50% 45%,rgb(34 211 238 / .095),transparent 46%),linear-gradient(135deg,#051121,#081429);
  }
  .upload-match-zone .home-drop-icon,.upload-match-zone .home-drop-formats {display:none;}
  .upload-match-zone .home-drop-title {order:1;font-size:18px;line-height:1.25;text-wrap:balance;}
  .upload-match-zone .home-drop-choose {order:2;min-height:48px;margin:8px 0 9px;padding:10px 22px;font-size:16px;}
  .upload-match-zone .home-drop-limit {order:3;margin:0;font-size:12px;line-height:1.3;}
  .upload-match-zone .home-drop-privacy {order:4;max-width:320px;margin:6px 0 0;font-size:12px;line-height:1.4;}
  .upload-match-zone .upload-match-types {
    order:5;display:grid;width:min(100%,300px);grid-template-columns:repeat(8,minmax(0,1fr));
    gap:8px 6px;margin:13px auto 0;padding:0;
  }
  .upload-match-types > span {
    grid-column:span 2;min-width:0;min-height:50px;display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:3px;font-size:10.5px;font-weight:800;line-height:1.25;color:#cbd5e1;
  }
  .upload-match-types > span:nth-child(5) {grid-column:2 / span 2;}
  .upload-match-types svg,.upload-match-types img {display:block;width:36px;height:36px;max-width:100%;flex:none;}
  .upload-match-zone .upload-match-evidence {order:6;display:block;width:min(100%,360px);margin:8px auto 0;}
}
@media (prefers-reduced-motion:reduce) {
  .upload-match-zone .upload-match-zone__label {transition:none;}
}

lmpp-upload-proof {
  order: 6;
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
  color: #dbeafe;
  text-align: center;
}

lmpp-upload-proof[hidden] { display: none !important; }

.lmpp-upload-proof__assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 7px;
  color: #38d39f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.lmpp-upload-proof__assurance svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.lmpp-upload-proof__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / .16);
  border-radius: 12px;
  background: rgb(15 29 49 / .64);
}

.lmpp-upload-proof__stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 9px;
}

.lmpp-upload-proof__stat + .lmpp-upload-proof__stat {
  border-left: 1px solid rgb(148 163 184 / .16);
}

.lmpp-upload-proof__stat strong {
  color: #22d3ee;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.lmpp-upload-proof__stat:first-child strong { color: #34d399; }

.lmpp-upload-proof__stat span {
  margin-top: 5px;
  color: #9fb4c7;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (min-width: 1280px) {
  lmpp-upload-proof { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  lmpp-upload-proof * { transition: none !important; }
}
