.files-dialog{box-sizing:border-box;width:min(720px,calc(100% - 20px));max-width:calc(100% - 20px);max-height:90dvh;padding:0;border:1px solid #e0e0e0;border-radius:18px;background:#fff;color:#1d1d1f;overflow:hidden;font-size:17px}
.files-dialog[open]{display:flex;flex-direction:column}.files-dialog::backdrop{background:rgba(0,0,0,.35)}
.files-header{height:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e0e0e0;flex-shrink:0}.files-header div{min-width:0}.files-header h2{font-size:22px;margin:0}.files-header p{font-size:14px;margin:4px 0 0;overflow-wrap:anywhere}.files-header button{flex-shrink:0}
.files-scroll{overflow:auto;overscroll-behavior:contain;padding:16px;min-height:0}.files-dialog button,.files-download{min-height:44px;border-radius:999px;padding:10px 16px;white-space:normal;overflow-wrap:anywhere}.files-dialog button:focus-visible,.files-dialog a:focus-visible{outline:3px solid #0071e3;outline-offset:2px}.files-dialog h3{font-size:18px;overflow-wrap:anywhere}.files-dialog label{display:grid;gap:6px;font-size:14px;margin:12px 0}.files-dialog input,.files-dialog select,.files-dialog textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:17px;border:1px solid #e0e0e0;border-radius:18px;padding:12px}.files-dialog textarea{min-height:88px;resize:vertical}.files-dialog input[type=file]{padding:10px 4px;font-size:14px}.files-note{font-size:14px;color:#515154;overflow-wrap:anywhere;line-height:1.5}.files-card,.files-history{border:1px solid #e0e0e0;border-radius:18px;padding:14px;margin:12px 0}.files-card h3{margin:0}.files-facts{margin:12px 0}.files-facts>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px;margin:8px 0}.files-facts dt{font-size:14px;color:#515154}.files-facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.files-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.files-download{box-sizing:border-box;display:inline-flex;align-items:center;color:#0066cc;border:1px solid #e0e0e0;text-decoration:none}.files-history summary{min-height:44px;cursor:pointer;align-content:center}.files-history section+section{border-top:1px solid #e0e0e0;padding-top:12px}.files-dialog [data-file-preview] img{display:block;max-width:100%;width:100%;height:auto;max-height:55dvh;object-fit:contain}.files-dialog [role=alert]{color:#b42318;white-space:pre-wrap;overflow-wrap:anywhere}.files-dialog [role=status]{font-size:14px;overflow-wrap:anywhere}#files-recovery,#files-close-confirm{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}#files-recovery details{width:100%}@media(max-width:360px){.files-scroll,.files-header{padding:12px}.files-facts>div{grid-template-columns:1fr;gap:2px}}

.files-summary{margin:14px 0}.files-summary h3{margin:0 0 6px}.files-summary .files-note{margin:0}.files-dialog [data-file-preview]:not(:empty){margin-top:12px}
