#modal:has(#file-share-form){width:min(560px,calc(100vw - 24px))}#file-share-form{display:flex;flex-direction:column;gap:22px}#file-share-form .file-share-name{margin:0;font-size:16px;font-weight:650;overflow-wrap:anywhere}#file-share-form .file-share-section{display:flex;flex-direction:column;gap:12px}#file-share-form h3{font-size:14px;margin:0;font-weight:650}#file-share-form label{margin:0;display:flex;flex-direction:column;gap:8px}#file-share-form input,#file-share-form select{margin:0;width:100%;min-width:0}#file-share-form .file-share-add{display:flex;gap:8px;align-items:center}#file-share-form .file-share-add input{flex:1}#file-share-form .field-hint{margin:0;line-height:1.6;color:var(--muted)}.share-people{list-style:none;margin:0;padding:0}.share-people li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.share-people li>span{flex:1;min-width:0;overflow-wrap:anywhere}.share-people small,.share-empty{color:var(--muted);font-size:12px}.share-people .icon-button{flex:none;width:32px;height:32px}.share-link{display:flex;flex-direction:column;gap:8px}.share-link>div{display:flex;gap:8px}.share-link input{flex:1;font-size:12px}.share-advanced{display:flex;gap:14px;flex-wrap:wrap}.share-advanced .text-link{font-size:12px;text-align:left}#file-share-form .form-actions{margin:0;padding-top:16px;border-top:1px solid var(--line)}#file-share-form [role=alert]:empty{display:none}.shared-file-page{max-width:1200px;padding:28px;margin:0 auto}.shared-file-page>header{display:flex;justify-content:space-between;align-items:center;gap:20px;color:var(--muted);font-size:13px}.shared-file-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:42px 0 24px}.shared-file-heading h1{font-size:28px;margin:0 0 8px;overflow-wrap:anywhere;letter-spacing:-.025em}.shared-file-heading p{margin:0;color:var(--muted);font-size:13px}.shared-file-heading>.button{flex:none}.shared-file-preview{background:var(--surface);border-radius:16px;overflow:hidden;min-height:350px;display:grid;place-items:center}.shared-file-preview iframe{width:100%;height:70dvh;border:0;background:white}.shared-file-preview img{max-width:100%;max-height:75dvh;object-fit:contain}.shared-file-preview video{width:100%;max-height:75dvh}.shared-file-preview audio{max-width:100%;width:500px}.shared-file-no-preview{display:flex;align-items:center;flex-direction:column;gap:18px;padding:40px 24px;text-align:center;color:var(--muted)}.shared-file-no-preview>.icon{width:48px;height:48px}@media(max-width:600px){#file-share-form{gap:20px}.share-people small{display:none}.share-people li>span{font-size:12px}.share-advanced{gap:12px}.shared-file-page{padding:20px 16px}.shared-file-heading{margin-top:32px;align-items:flex-start;flex-direction:column;gap:16px}.shared-file-heading h1{font-size:22px}.shared-file-preview{min-height:300px}}
#modal:has(#file-share-form) #modal-body{overflow:auto;max-height:calc(90dvh - 86px);padding-bottom:0}#file-share-form>.form-actions{position:sticky;bottom:0;background:var(--surface);padding:14px 0;z-index:2;flex:none}
