.zsh-cv-preview { position:fixed; z-index:100000; width:360px; max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); overflow:auto; padding:18px; border:1px solid #ddd; border-radius:8px; background:#fff; color:#222; box-shadow:0 8px 35px #0003; font:15px/1.55 system-ui,sans-serif; }
.zsh-cv-preview[hidden] {display:none;}
.zsh-cv-preview p {margin:0 0 10px;}
.zsh-cv-preview small {color:#54205f;}
dialog.zsh-cv-dialog {width:min(850px,calc(100vw - 40px)); max-width:none; max-height:calc(100dvh - 40px); margin:auto; padding:0; border:0; border-radius:12px; background:#fff; color:#222; overflow:hidden; box-shadow:0 15px 70px #0005; font:17px/1.65 system-ui,sans-serif;}
dialog.zsh-cv-dialog[open] {display:flex; flex-direction:column;}
.zsh-cv-dialog::backdrop {background:#0009;}
.zsh-cv-header {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 24px; border-bottom:1px solid #ddd;}
.zsh-cv-header h2 {margin:0; font:600 21px/1.3 system-ui,sans-serif; text-transform:none; overflow-wrap:anywhere;}
.zsh-cv-header button {flex-shrink:0; min-height:44px; padding:8px 12px; border:1px solid #ccc; border-radius:5px; background:#fff; color:#222; font:inherit; cursor:pointer;}
.zsh-cv-body {overflow:auto; min-height:0; padding:20px 24px; overscroll-behavior:contain; overflow-wrap:anywhere;}
.zsh-cv-body [role=status]:empty {display:none;}
.zsh-cv-text p {margin:0 0 1em;}
.zsh-cv-text h2,.zsh-cv-text h3,.zsh-cv-text h4 {text-transform:none; line-height:1.3;}
.zsh-cv-text>:first-child {margin-top:0;}
.zsh-cv-dialog a {color:#54205f; text-decoration:underline; text-underline-offset:3px;}
.zsh-cv-footer {padding:12px 24px; border-top:1px solid #ddd;}
.zsh-cv-dialog :focus-visible {outline:3px solid #2767a5; outline-offset:3px;}
@media(max-width:600px) {dialog.zsh-cv-dialog {width:calc(100vw - 12px); max-height:calc(100dvh - 12px);} .zsh-cv-header,.zsh-cv-body,.zsh-cv-footer {padding:14px;} }
.zsh-cv-footer[hidden] {display:none;}
.zsh-cv-text {display:flow-root;}
.zsh-cv-text figure {margin:0 0 1em;}
.zsh-cv-text img {display:block; width:auto; max-width:min(100%,300px); height:auto;}
.zsh-cv-text .alignleft {float:left; max-width:42%; margin:0 24px 16px 0;}
.zsh-cv-text .alignright {float:right; max-width:42%; margin:0 0 16px 24px;}
.zsh-cv-text figure img {max-width:100%; max-height:450px; object-fit:contain;}
.zsh-cv-preview>img {float:left; width:88px; max-height:120px; object-fit:contain; margin:0 14px 8px 0;}
.zsh-cv-preview small {display:block; clear:both;}
@media(max-width:480px) {.zsh-cv-text .alignleft,.zsh-cv-text .alignright {float:none; max-width:100%; margin:0 0 16px;}}
