/* Shared Avra device styling for profile, template and campaign previews. */
body :is(.profile-phone, .template-phone, .phone-preview) {
    position: relative;
    isolation: isolate;
    border: 7px solid #252b38;
    border-radius: 35px;
    background: #f1f5fb;
    overflow: hidden;
    padding-bottom: 12px;
    box-shadow: 0 0 0 1px #768196, 0 0 0 3px #dce3ee, 0 18px 35px rgba(22, 39, 70, .17);
}
body :is(.profile-phone, .template-phone, .phone-preview)::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 16px;
    border-radius: 20px;
    background: radial-gradient(circle at 85% 50%, #21334b 0 2px, #080d16 3px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
    pointer-events: none;
}
body :is(.profile-phone, .template-phone, .phone-preview)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 34%;
    width: 32%;
    height: 4px;
    border-radius: 10px;
    background: #29364a;
    opacity: .8;
    pointer-events: none;
}
body :is(.phone-top, .template-phone-top, .profile-phone-top) {
    min-height: 30px;
    height: 30px;
    padding: 10px 13px 0;
    background: #15243d;
    color: #edf6ff;
    font-size: 9px;
    font-weight: 700;
}
body :is(.phone-contact, .template-phone-contact, .profile-phone-toolbar) {
    background: #15243d;
    color: #fff;
    min-height: 47px;
}
body :is(.phone-contact, .template-phone-contact) { height: 47px; padding: 0 11px; }
body :is(.preview-avatar, .template-preview-avatar) {
    background: linear-gradient(135deg, #7ce5ce, #89b9fc);
    color: #153b58;
    box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}
body :is(.phone-preview, .template-phone) { height: 470px; display: flex; flex-direction: column; }
body :is(.phone-chat, .template-phone-chat) {
    flex: 1;
    min-height: 0;
    background-color: #f1f5fb;
    background-image: radial-gradient(circle, #d6e2f1 .7px, transparent .9px), linear-gradient(145deg, #edf8f7, #f4f6fd 65%, #eef0ff);
    background-size: 19px 19px, 100% 100%;
    color: #30415b;
    overflow-y: auto;
    padding: 16px 10px;
}
body :is(.chat-bubble, .template-phone-chat>div) {
    background: #fff;
    color: #2e405c;
    border: 1px solid #e0e8f3;
    border-radius: 4px 13px 13px;
    box-shadow: 0 2px 5px rgba(30,56,85,.04);
}
body :is(.phone-compose, .template-phone-compose) {
    flex: none;
    min-height: 34px;
    margin: 6px 8px 3px;
    padding: 8px 11px;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    color: #637b9c;
}
body .profile-phone-cover { height: 66px; background: linear-gradient(120deg, #147b93, #227fd2 65%, #6c78e7); }
body .profile-phone-body { display: flow-root; background: #fff; padding-bottom: 21px; }
body .profile-preview-photo { background: linear-gradient(140deg, #d9f7f0, #dce9ff); color: #175d80; }
body .profile-phone-body h3 { color: #1a2f4e; }
body :is(.profile-preview-category, .profile-preview-section h4, .profile-preview-contact>span, .profile-preview-contact p, .profile-preview-actions) { color: #1b729d; }
body :is(.preview-column, .template-live-preview) { background: linear-gradient(150deg, #f1f6ff, #f4faf9); border-color: #dae5f3; border-radius: 19px; padding: 18px 16px; }
body .preview-title span, body .profile-preview-title { color: #3566a9; }
