.norma-file-preview{position:fixed;inset:0;z-index:160;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(17,24,39,.55)}
.norma-file-preview-card{display:flex;flex-direction:column;width:1100px;max-width:100%;height:85vh;max-height:calc(100dvh - 48px);background:white;border-radius:10px;overflow:hidden;box-shadow:0 20px 70px #11182744}
.norma-file-preview-card header,.norma-file-preview-card footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;flex:none}
.norma-file-preview-card h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:700}
.norma-file-preview-card header button{width:32px;height:32px;flex:none;color:#6b7280;font-size:26px;line-height:1}
.norma-file-preview-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;background:#f8fafc}
.norma-file-preview-body img,.norma-file-preview-body video{max-width:100%;max-height:100%;object-fit:contain}
.norma-file-preview-body audio{width:min(90%,600px)}
.norma-file-preview-body iframe{width:100%;height:100%;border:0}
.norma-file-preview-body.is-text{display:block;padding:20px}
.norma-file-preview-body pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;color:#1f2937}
.norma-file-preview-card footer{border-top:1px solid #e5e7eb;font-size:12px;color:#6b7280}
.norma-file-preview-card footer a{margin-left:auto;color:#2563eb;font-size:13px}
@media(max-width:600px){.norma-file-preview{padding:12px}.norma-file-preview-card{height:90vh;max-height:calc(100dvh - 24px)}.norma-file-preview-card header,.norma-file-preview-card footer{padding:12px}}

.norma-file-preview-comment{flex:none;max-height:22vh;overflow:auto;margin:12px 20px 0;padding:12px 14px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;color:#374151;font-size:13px;line-height:1.5}
.norma-file-preview-comment h3{font-size:11px;font-weight:700;color:#6b7280;margin:0 0 6px}
.norma-file-preview-comment div{white-space:pre-wrap;overflow-wrap:anywhere}
.norma-file-preview.is-note .norma-file-preview-card{width:520px;height:auto;max-height:75vh}
.norma-file-preview.is-note .norma-file-preview-body{padding:18px 20px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}

.norma-file-preview-comment textarea{display:block;width:100%;min-height:70px;max-height:150px;resize:vertical;border:1px solid #d8dee8;border-radius:8px;padding:10px 12px;font:inherit;font-size:13px;color:#1f2937;background:#fff;box-sizing:border-box}.norma-file-preview-comment textarea:focus{outline:2px solid #bfd5ff;border-color:#2563eb}.norma-file-preview-comment textarea[readonly]{background:#f8fafc}.norma-file-preview-comment-status{font-size:11px;min-height:15px;margin-top:4px}
