.dr1-overlay{position:fixed;inset:0;z-index:2147483640;display:flex;align-items:flex-end;justify-content:center;direction:rtl;background:rgba(4,28,43,.34);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .28s ease;font-family:Vazirmatn,Tahoma,sans-serif;color:#173f53}
.dr1-overlay.dr1-open{opacity:1}.dr1-sheet{width:min(100%,560px);min-height:min(53dvh,540px);max-height:94dvh;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;border-radius:30px 30px 0 0;background:#fbfeff;padding:16px 24px max(24px,env(safe-area-inset-bottom));box-shadow:0 -20px 60px #002a3f33;text-align:center;transform:translate3d(0,110%,0);transition:transform .52s cubic-bezier(.22,1,.36,1)}
.dr1-open .dr1-sheet{transform:translate3d(0,0,0)}.dr1-handle{display:block;width:48px;height:5px;border-radius:5px;background:#cce1e8;margin:0 auto 20px}.dr1-avatar{display:grid;place-items:center;width:94px;height:94px;object-fit:cover;border-radius:50%;margin:0 auto 9px;background:#e4f4fa;border:4px solid white;box-shadow:0 5px 18px #154f6425;font-size:32px;font-weight:800}.dr1-name{font-weight:800;font-size:14px}.dr1-caption{color:#788d98;font-size:11px;margin:4px 0 16px}.dr1-sheet h2{font-size:19px;margin:17px 0 10px}.dr1-copy{font-size:14px;line-height:2;margin:0 0 14px}.dr1-sheet textarea{display:block;width:100%;min-height:122px;box-sizing:border-box;resize:vertical;padding:13px;background:#f0f9fd;border:1px solid #c5e0eb;border-radius:16px;font:14px/2 Vazirmatn,Tahoma,sans-serif;color:#173f53;outline:none}.dr1-sheet textarea:focus{border-color:#0694bd;box-shadow:0 0 0 3px #009fce12}.dr1-label{display:block;text-align:right;font-size:12px;font-weight:700;margin:8px 0}.dr1-help{font-size:11px;color:#7b8f99;text-align:right;margin:7px 0}.dr1-disclosure{font-size:11px;line-height:1.9;color:#748b96;margin:15px 0}.dr1-primary{width:100%;min-height:51px;border:0;border-radius:17px;background:#0894bb;color:white;font:800 14px Vazirmatn,Tahoma,sans-serif;cursor:pointer}.dr1-primary:disabled{opacity:.52;cursor:default}.dr1-error{color:#b34e33;font-size:12px;line-height:1.8;min-height:0}.dr1-error:empty{display:none}.dr1-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0}.dr1-stats div{padding:9px 3px;background:#eef7fb;border-radius:11px;font-size:12px}.dr1-stats small{display:block;color:#7a909c;font-size:10px;margin-bottom:5px}.dr1-report{white-space:pre-wrap;overflow-wrap:anywhere;text-align:right;background:#eef8fc;border-radius:17px;padding:16px;font-size:14px;line-height:2.1;margin:14px 0}.dr1-date{font-size:11px;color:#78909c}.dr1-overlay *{box-sizing:border-box}@media(max-width:380px){.dr1-sheet{padding-inline:17px}.dr1-avatar{width:82px;height:82px}.dr1-copy{font-size:13px}}@media(prefers-reduced-motion:reduce){.dr1-overlay,.dr1-sheet{transition:none}}

.dr1-sheet:focus{outline:none}

/* DR2: avatar stays within a fixed header; long reports scroll below it. */
.dr1-overlay .dr1-sheet{display:flex;flex-direction:column;overflow:hidden;min-height:0;max-height:94dvh;padding-top:16px}
.dr1-sheet>.dr2-header{flex:0 0 auto;position:relative;padding:0 0 10px;overflow:visible}
.dr2-header .dr1-avatar{position:static!important;transform:none!important;display:block;margin:0 auto 9px!important;width:82px;height:82px;max-width:100%;object-fit:cover;object-position:center;border-radius:50%}
.dr2-header span.dr1-avatar{display:grid;place-items:center}
.dr2-header .dr1-handle{margin-bottom:14px}.dr2-header .dr1-caption{margin-bottom:0}
.dr1-sheet>.dr2-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 4px;scroll-padding:12px}
.dr2-body .dr1-help{min-height:2em}.dr2-body textarea{scroll-margin:12px}
@media(max-height:650px){.dr2-header .dr1-avatar{width:58px;height:58px}.dr2-header .dr1-handle{margin-bottom:8px}.dr2-header{padding-bottom:6px!important}.dr2-body .dr1-copy{line-height:1.7}}
