/* CiviHelv · independent annex dossier (PDF 2) */
#cv-annex-root{width:min(100%,1200px);margin:auto;padding:20px clamp(12px,3vw,34px) 70px;color:#eaf8ff;font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
#cv-annex-root *,#cv-annex-root *::before,#cv-annex-root *::after{box-sizing:border-box}
#cv-annex-root .cv2-hero{margin:0}
#cv-annex-root .cv2-hero h1{color:#fff}
#cv-annex-root .cv2-back{color:#83efff}
.cv2-annex-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}
.cv2-annex-section,.cv2-annex-footer{min-width:0;padding:clamp(16px,3vw,26px);border:1px solid #358db6;border-radius:20px;background:linear-gradient(145deg,#092c4f,#071b36 85%);box-shadow:0 10px 27px #0005}
.cv2-annex-section h2,.cv2-annex-footer h2{font-size:clamp(19px,2.6vw,26px);margin:0 0 10px;color:#fff}
.cv2-annex-section .cv2-help,.cv2-annex-footer .cv2-help{margin:8px 0;color:#bbd7ec}
.cv2-annex-picker{display:flex;flex-direction:column;gap:8px;margin:18px 0 10px;color:#b6f9ff;font-weight:800}
.cv2-annex-picker .cv2-native-file-input{display:block;position:static!important;opacity:1!important;background:#f3fbff;color:#102d47;border:2px solid #4cdefb;border-radius:12px;min-width:0;width:100%;font:700 15px system-ui;min-height:48px;padding:8px}
.cv2-annex-picker input::file-selector-button{background:#07588b;color:#fff;border:1px solid #00c5e8;border-radius:7px;padding:8px;margin-right:7px}
.cv2-annex-list{display:flex;flex-direction:column;gap:10px;list-style:none;padding:0;margin:18px 0 0}
.cv2-annex-empty{padding:16px;border:1px dashed #3679a6;border-radius:12px;color:#bddbf2}
.cv2-annex-file{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid #2a6f9d;border-radius:12px;background:#0a2445}
.cv2-annex-file-name{display:flex;justify-content:space-between;gap:12px;align-items:center;overflow-wrap:anywhere;word-break:break-word}
.cv2-annex-file-name strong{min-width:0;color:#f0fcff;font-size:13px}
.cv2-annex-file-name small{white-space:nowrap;color:#a3d6ef}
.cv2-annex-actions,.cv2-annex-export{display:flex;flex-wrap:wrap;gap:8px}
.cv2-annex-actions .cv2-button{font-size:12px;padding:7px 10px;min-height:36px}
.cv2-annex-export .cv2-button{flex:1 1 190px}
.cv2-annex-footer .cv2-status{font-size:14px;overflow-wrap:anywhere;color:#abf5ff}
.cv2-annex-count{color:#77e6fc;font-weight:800}
#cv-app .cv2-annex-option{grid-column:1/-1;min-height:140px;text-decoration:none}
#cv-app .cv2-annex-option:hover{text-decoration:none}
@media(max-width:760px){.cv2-annex-content{grid-template-columns:1fr}.cv2-annex-section,.cv2-annex-footer{border-radius:14px}.cv2-annex-actions .cv2-button{flex:1 1 auto}}
@media(max-width:420px){#cv-annex-root{padding:10px 10px 55px}.cv2-annex-file-name{align-items:start;flex-direction:column;gap:3px}}
@media print{#cv-annex-root{display:none!important}}

/* Embedded, mobile-first preview: never depend on blocked popups. */
.cv2-annex-preview{min-width:0;padding:clamp(14px,3vw,25px);margin:20px 0;border:1px solid #52dcf1;border-radius:19px;background:linear-gradient(140deg,#0a2d55,#101e42 75%,#2c1846);box-shadow:0 0 18px #00c5ff44}
.cv2-annex-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.cv2-annex-preview-heading h2{font-size:clamp(20px,2.6vw,28px);color:#fff;margin:0 0 5px}
.cv2-annex-preview-filename{font-size:13px;color:#b9eaff;overflow-wrap:anywhere;margin:0}
.cv2-annex-preview-body{width:100%;max-width:930px;margin:auto;padding:12px;background:#f0f6fa;border:1px solid #96bacc;border-radius:10px;text-align:center;color:#18354e}
.cv2-annex-preview-image,.cv2-annex-pdf-canvas{display:block;max-width:100%;height:auto;width:auto;max-height:none;margin:0 auto;border:1px solid #cbd6df;background:white}
.cv2-annex-pdf-canvas{width:min(100%,900px)}
.cv2-annex-preview-status{font-size:13px;color:#b6eaf9;overflow-wrap:anywhere}
.cv2-annex-pager{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}
.cv2-annex-page-count{font-size:14px;font-weight:800;color:#113a60}
.cv2-annex-pager .cv2-button{font-size:12px;white-space:normal}
.cv2-annex-pdf-fallback{display:block;width:100%;min-height:65vh;border:0;background:white}
.cv2-annex-open{display:inline-block;text-decoration:none!important;margin-top:8px}
@media(max-width:600px){.cv2-annex-preview-body{padding:5px}.cv2-annex-preview{padding:12px;border-radius:13px}.cv2-annex-pdf-fallback{min-height:430px}.cv2-annex-pager .cv2-button{padding:7px;font-size:11px}}
