.patient-page .patient-identity{min-width:0;flex:1}.patient-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.patient-title-row h1{margin:0}.patient-page .patient-title-row .patient-actions{margin:0;align-self:center;align-items:center}.patient-title-row .patient-more-menu{z-index:25}.patient-ad-desktop:empty,.patient-ad-mobile:empty{display:none}.patient-ad-desktop{width:min(40%,480px);flex-shrink:0;align-self:center}.patient-ad-mobile{margin-top:28px}.patient-ad[hidden]{display:none}.patient-ad-banner{position:relative;isolation:isolate;aspect-ratio:16/9;overflow:hidden;border-radius:16px;background:#153c55;box-shadow:0 8px 28px #153c5517;color:white;width:100%;max-width:760px;margin:auto}.patient-ad-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.patient-ad-copy{position:absolute;inset:auto 0 0;padding:42px 34px 18px;background:linear-gradient(transparent,#071f38bb 45%,#071f38eb);pointer-events:none}.patient-ad-label{display:inline-block;font-size:9px;font-weight:800;letter-spacing:.12em;border:1px solid #ffffffa0;border-radius:4px;padding:2px 5px;color:white}.patient-ad-copy strong{display:block;font-size:clamp(14px,1.3vw,19px);line-height:1.25;margin-top:5px;color:white}.patient-ad-copy p{font-size:11px;line-height:1.4;margin:4px 0 0;color:#ffffffe0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.patient-ad-link{color:white;text-decoration:underline;display:inline-block;margin-top:5px;font-size:11px;pointer-events:auto}.patient-ad-text-only{background:linear-gradient(125deg,#153c55,#347e91);min-height:160px}.patient-ad-text-only .patient-ad-copy{inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:none;padding:25px 35px}.patient-ad-arrow{position:absolute;top:42%;background:#081a3270;color:white;border:0;border-radius:7px;width:27px;height:40px;font-size:24px;z-index:2;cursor:pointer}.patient-ad-prev{left:5px}.patient-ad-next{right:5px}.patient-ad-dots{position:absolute;right:12px;top:12px;display:flex;gap:5px}.patient-ad-dots span{width:6px;height:6px;border-radius:50%;background:#ffffff70}.patient-ad-dots .selected{background:white}.patient-ad-sound{position:absolute;top:10px;left:10px;z-index:3;border:1px solid #ffffff70;border-radius:7px;background:#071f3899;color:white;padding:5px 7px;font-size:10px;cursor:pointer}.patient-ad-play{position:absolute;top:40%;left:calc(50% - 55px);z-index:3;border:0;background:white;color:#153c55;border-radius:8px;padding:9px}.patient-ad-banner button:focus-visible,.patient-ad-link:focus-visible{outline:3px solid #7bcde3;outline-offset:2px}.ad-admin-row{display:flex;align-items:center;gap:18px}.ad-admin-thumbnail{width:120px;aspect-ratio:16/9;background:#e7f2f5;border-radius:8px;overflow:hidden;display:grid;place-items:center;flex-shrink:0;color:#347e91;font-size:11px;font-weight:bold}.ad-admin-thumbnail img{width:100%;height:100%;object-fit:cover}.ad-admin-description{flex:1;min-width:0}.ad-admin-description h2{font-size:17px;margin:0}.ad-admin-description p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.ad-admin-description small{color:#527b85}.ads-admin [data-ad-admin-message],[data-ad-error]{color:#a33c3c;white-space:pre-wrap;overflow-wrap:anywhere}.ad-crop-canvas{width:100%;aspect-ratio:16/9;display:block;border-radius:12px;touch-action:none;cursor:move}.ad-crop-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.ad-crop-controls label{font-size:12px}.ad-crop-controls input{width:100%;padding:0}.ad-active-field{display:flex;align-items:center;gap:9px}.ad-active-field input{width:auto;min-height:0}[data-ad-video-preview] video{display:block;width:100%;max-height:320px;border-radius:12px;margin:12px 0}.ad-admin-nav{margin:16px 0 24px}
.patient-ad-desktop:has(.patient-ad[hidden]),.patient-ad-mobile:has(.patient-ad[hidden]){display:none}
@media(min-width:1000px){.patient-page>.subhero{display:flex;gap:28px}.patient-page .patient-identity{min-width:0}.patient-page .patient-title-row .patient-actions{margin-left:0}.patient-ad-mobile{display:none}}
@media(max-width:999px){.patient-ad-desktop{display:none}.patient-page>.subhero{display:block}.patient-ad-mobile{padding-bottom:20px}.patient-title-row{gap:12px}.patient-page .patient-title-row .patient-actions{margin-left:0}.patient-ad-copy strong{font-size:17px}.patient-ad-copy p{font-size:12px}.ad-admin-row{flex-wrap:wrap}.ad-admin-row>.form-actions{width:100%}.ad-crop-controls{grid-template-columns:1fr}.patient-ad-mobile:has(.patient-ad[hidden]){display:none}}
@media(max-width:380px){.patient-ad-copy{padding:32px 30px 12px}.patient-ad-copy strong{font-size:14px}.patient-ad-copy p{font-size:10px}.patient-ad-link{font-size:10px}}
@media(max-width:999px){.patient-page>.subhero{position:relative;padding:20px}.patient-page .patient-title-row .patient-actions{position:absolute;top:20px;right:20px;margin:0;gap:6px;align-items:center;z-index:5}.patient-page .patient-action{width:40px;height:40px;min-width:40px;min-height:40px;flex-direction:row;padding:0}.patient-page #editPatient.patient-action{min-height:40px;padding:0}.patient-page .patient-action span{display:none}.patient-page #backPatient{max-width:calc(100% - 94px);min-height:40px;padding:8px 9px;font-size:11px;line-height:1.35;text-align:left}.patient-page .patient-title-row{margin-top:20px}.patient-page .patient-title-row h1{overflow-wrap:anywhere}}
