.file-heading { position: relative; overflow: hidden; }
.file-limit { flex: none; padding: 9px 13px; border-radius: 999px; background: #e7cf9b; color: #3b3323; font-size: .82rem; font-weight: 800; }
.file-upload-card { display: grid; gap: 18px; }
.file-picker { min-height: 190px; place-items: center; align-content: center; gap: 8px; border: 2px dashed #cbc9bd; border-radius: 16px; background: #fafaf7; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.file-picker:hover, .file-picker.is-dragging { border-color: #77916f; background: #f4f7f1; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-picker-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #e7eee2; color: #3f6142; font-size: 1.6rem; font-weight: 700; }
.file-picker strong { font-size: 1.05rem; }
.file-picker small, .file-selected small { color: #74746f; }
.file-selected { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #e1e0d8; border-radius: 13px; }
.file-selected > div { display: grid; gap: 4px; min-width: 0; }
.file-selected strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-progress { display: grid; gap: 11px; padding: 18px; border-radius: 14px; background: #f3f4ef; }
.file-progress-top, .file-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.file-progress-meta { color: #6a6b64; font-size: .82rem; }
.file-progress progress, .fast-download-progress progress { width: 100%; height: 11px; border: 0; border-radius: 999px; overflow: hidden; background: #dfe2da; }
.file-progress progress::-webkit-progress-bar { background: #dfe2da; }
.file-progress progress::-webkit-progress-value { background: #5f8365; }
.file-progress progress::-moz-progress-bar { background: #5f8365; }
.file-share-result { display: grid; gap: 13px; padding: 19px; border: 1px solid #bdd5bf; border-radius: 14px; background: #f1f8f0; }
.file-share-result strong { display: block; margin-top: 5px; }
.file-share-row { display: flex; gap: 8px; }
.file-share-row input { min-width: 0; }
.file-list { display: grid; gap: 10px; }
.file-row { display: flex; align-items: center; gap: 15px; padding: 16px; border: 1px solid #e6e5df; border-radius: 14px; background: #fcfcfa; }
.file-row-main { display: grid; flex: 1; gap: 4px; min-width: 0; }
.file-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-main small { color: #74746f; }
.file-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-share-page { max-width: 860px; }
.file-download-card { display: grid; justify-items: center; gap: 13px; margin: 8vh auto 0; padding: clamp(30px, 7vw, 70px); text-align: center; }
.file-download-card h1 { max-width: 680px; overflow-wrap: anywhere; }
.file-download-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: #e7eee2; color: #3f6142; font-size: 2.1rem; font-weight: 800; }
.file-download-size { color: #62635d; font-size: 1.05rem; }
.file-download-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.file-transfer-note { max-width: 560px; color: #62635d; font-size: .86rem; line-height: 1.5; }
.fast-download-progress { display: grid; gap: 9px; width: min(100%, 520px); margin-top: 4px; }
.fast-download-progress span { color: #62635d; font-size: .84rem; }

@media (max-width: 620px) {
  .file-selected, .file-row { align-items: stretch; flex-direction: column; }
  .file-selected button, .file-row-actions, .file-row-actions button, .file-share-row button, .file-download-actions, .file-download-actions > * { width: 100%; }
  .file-row-actions { display: grid; }
  .file-share-row { display: grid; }
  .file-progress-meta { align-items: flex-start; }
}
