/* Fereastra de previzualizare, comună pentru tot site-ul (17.11.2026). */
.cm-files__x{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:#EEF2FA;color:#4E5D7A;font:800 .66rem var(--display);letter-spacing:.04em}
.cm-files__x--pdf{background:#FCE9E7;color:#B42318}.cm-files__x--doc,.cm-files__x--docx{background:#EAF0FD;color:#1F57D6}.cm-files__x--xls,.cm-files__x--xlsx,.cm-files__x--csv{background:#E3F3EB;color:#14653F}
.cm-files__x--ppt,.cm-files__x--pptx{background:#FBF0DE;color:#9A5B05}.cm-files__x--zip{background:#F0ECFD;color:#5B3CC4}
.cm-view{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:rgba(10,22,52,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;transition:opacity .18s}
.cm-view.is-open{opacity:1}
.cm-view__d{display:flex;flex-direction:column;width:min(1000px,100%);height:min(88vh,1100px);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px rgba(10,22,52,.4);transform:translateY(8px) scale(.99);transition:transform .2s}
.cm-view.is-open .cm-view__d{transform:none}
.cm-view--img .cm-view__d{height:auto;max-height:90vh;width:auto;max-width:min(1200px,100%)}
.cm-view__h{display:flex;align-items:center;gap:12px;padding:12px 14px 12px 18px;border-bottom:1px solid #E8EDF6}
.cm-view__n{flex:1;min-width:0;font:700 1rem var(--display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-view__dl{display:inline-flex;align-items:center;gap:8px;min-height:40px}.cm-view__dl svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cm-view__x{all:unset;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;cursor:pointer;color:#4E5D7A}.cm-view__x:hover{background:#EEF2FA}.cm-view__x:focus-visible{outline:3px solid var(--blue);outline-offset:-2px}
.cm-view__x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2}
.cm-view__b{flex:1;min-height:0;overflow:auto;background:#EEF2F8}
.cm-view__wait{margin:40px;text-align:center;color:var(--muted);font:600 .95rem var(--display)}
.cm-view__pdf{display:block;width:100%;height:100%;border:0;background:#525659}
.cm-view__img{display:block;max-width:100%;max-height:calc(90vh - 70px);margin:0 auto;object-fit:contain}
.cm-view--img .cm-view__b{background:#0E1730;display:grid;place-items:center}
.cm-view__txt{margin:0;padding:24px 28px;min-height:100%;box-sizing:border-box;background:#fff;font:400 .92rem/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.cm-view__docx .docx-wrapper{background:#EEF2F8!important;padding:24px!important}.cm-view__docx .docx-wrapper>section.docx{box-shadow:0 6px 24px rgba(14,35,80,.14)!important;margin-bottom:24px!important}
.cm-view__none{display:grid;justify-items:center;gap:14px;padding:60px 24px;text-align:center;font:600 1rem var(--display);color:var(--ink)}
.cm-view__none .cm-files__x{width:56px;height:56px;font-size:.8rem;border-radius:14px}
@media (max-width:700px){.cm-view{padding:0}.cm-view__d{height:100%;width:100%;border-radius:0}.cm-view__dl span{display:none}}
@media (prefers-reduced-motion:reduce){.cm-view,.cm-view__d{transition:none}}
