/* The email as it reads in Outlook's reading pane, plus the image slot and approver cue.
   Shared by the campaign package and the reviewer page. Light surface on purpose:
   it shows what the recipient will see, so it does not follow the app theme. */
.oe{background:#fff;border:1px solid #d1d1d1;border-radius:8px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.06);color:#242424;font-family:"Segoe UI",system-ui,-apple-system,sans-serif;margin-bottom:10px}
.oe-top{background:#f5f5f5;border-bottom:1px solid #e0e0e0;padding:7px 16px;font-size:.72rem;color:#616161;letter-spacing:.02em}
.oe .oe-subject{font-size:1.18rem;font-weight:600;line-height:1.3;padding:16px 20px 8px;color:#242424;outline:none}
.oe-sender{display:flex;gap:12px;align-items:center;padding:6px 20px 14px}
.oe-av{flex:none;width:40px;height:40px;border-radius:50%;background:var(--hunter,#0f6cbd);color:#fff;font-weight:600;font-size:.82rem;display:flex;align-items:center;justify-content:center}
.oe-sw{font-size:.86rem;min-width:0}
.oe-addr{color:#616161}
.oe-to{color:#616161;font-size:.8rem;margin-top:1px}
.oe .oe-body{padding:6px 20px 16px;font-size:.92rem;line-height:1.55;white-space:pre-wrap;outline:none;color:#242424}
.oe .oe-cta{margin:0 20px 20px;display:inline-block;background:var(--hunter,#0f6cbd);color:#fff;font-weight:600;font-size:.86rem;border-radius:4px;padding:10px 20px;outline:none}
.oe [contenteditable="true"]{border-radius:3px;cursor:text}
.oe [contenteditable="true"]:hover{background:rgba(15,108,189,.05)}
.oe [contenteditable="true"]:focus{background:rgba(15,108,189,.08);box-shadow:0 0 0 2px rgba(15,108,189,.35)}
.oe [contenteditable="true"]:empty:before{content:attr(data-ph);color:#9a9a9a}

/* image slot */
.oe-img{position:relative;margin:0 20px 8px}
.oe-img img{display:block;max-width:100%;border-radius:4px;border:1px solid #e0e0e0}
.oe-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:112px;border:2px dashed #b8b8b8;border-radius:6px;background:#fafafa;color:#424242;text-align:center;padding:14px;cursor:pointer}
.oe-drop:hover,.oe-drop:focus-visible,.oe-img.over .oe-drop{border-color:var(--hunter,#0f6cbd);background:rgba(15,108,189,.06);outline:none}
.oe-drop-ic{font-size:1.5rem;line-height:1}
.oe-drop-t{font-size:.86rem;font-weight:600}
.oe-drop-s{font-size:.74rem;color:#757575}
.oe-img.over img{opacity:.5}
.oe-imgbar{display:flex;gap:6px;margin-top:6px}
.oe-imgbtn{border:1px solid #c8c8c8;background:#fff;border-radius:4px;padding:4px 12px;font:600 .76rem "Segoe UI",system-ui,sans-serif;color:#242424;cursor:pointer}
.oe-imgbtn:hover{border-color:var(--hunter,#0f6cbd);color:var(--hunter,#0f6cbd)}
.oe-alt{display:flex;gap:8px;align-items:baseline;margin:0 20px 8px;font-size:.78rem;color:#616161}
.oe-alt>span{flex:none;font-weight:600}
.oe .oe-alttext{flex:1;min-width:0;outline:none;padding:2px 4px;color:#242424}

/* the cue to the approver */
.oe-cue{margin:6px 20px 14px;padding:8px 12px;border-left:3px solid #c27c00;background:#fff4d6;color:#4a3300;font-size:.8rem;line-height:1.45;border-radius:0 4px 4px 0}
.oe-cue.ok{border-left-color:#2e7d4f;background:#e8f4ec;color:#1d3d2a}

.oe-alts{margin:0 0 14px;padding:10px 14px;border:1px solid var(--line,#d8ded9);border-radius:8px;background:rgba(0,0,0,.02)}
.oe-alts-h{font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2,#5b6b62);margin-bottom:4px}
.oe-altsubj{font-size:.88rem;padding:3px 4px;outline:none}
@media (max-width:560px){.oe .oe-subject,.oe-sender,.oe .oe-body{padding-left:14px;padding-right:14px}.oe-img,.oe-alt,.oe-cue{margin-left:14px;margin-right:14px}.oe .oe-cta{margin-left:14px}}
@media print{.oe-imgbar,.oe-drop-s{display:none}}

.oe .fval{border:0;background:transparent;border-radius:3px}
.oe .fval.edited{background:#fff4d6}
.oe-alts .fval{border:0;background:transparent;padding:3px 4px}
.oe-alts .fval.edited{background:#fff4d6}
.oe .oe-cta.fval{background:var(--hunter,#0f6cbd)}
.oe .oe-cta.fval.edited{background:var(--hunter,#0f6cbd);box-shadow:0 0 0 2px #e0b040}
.rv-editimg{display:block;max-width:260px;max-height:200px;margin-top:6px;border-radius:4px;border:1px solid var(--line,#d8ded9)}

/* image slots inside the LinkedIn and display previews */
.adimg{position:relative;cursor:pointer}
.adimg.has{padding:0!important;min-height:0!important;background:none!important}
.adimg img{display:block;width:100%;height:auto}
.adimg .adimg-hint{position:absolute;left:8px;bottom:8px;background:rgba(20,26,22,.72);color:#fff;font:600 .68rem system-ui,sans-serif;padding:3px 8px;border-radius:4px;opacity:0;transition:opacity .15s;pointer-events:none}
.adimg:hover .adimg-hint,.adimg:focus-visible .adimg-hint,.adimg.over .adimg-hint{opacity:1}
.adimg.over{outline:2px dashed var(--hunter,#0f6cbd);outline-offset:-2px}
.adimg .adimg-x{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(20,26,22,.72);color:#fff;font-size:15px;line-height:1;cursor:pointer}
.adimg:not(.has) .adimg-hint{opacity:1;position:static;background:none;color:inherit;margin-top:4px;display:block;pointer-events:none;font-weight:500}
.dp-media{margin:0 0 6px}
.dp-media.has{margin:-16px -16px 8px;max-height:130px;overflow:hidden}
.dp-media:not(.has){padding:6px 8px;border:1px dashed rgba(255,255,255,.65);border-radius:4px;font-size:.72rem;text-align:center;color:#fff}
.li-avatar.has-logo{background:#fff;border:1px solid #e2e2e2;overflow:hidden;padding:0}
.li-avatar.has-logo img{width:100%;height:100%;object-fit:contain;padding:4px}

/* AI-made images */
.ai-badge{position:absolute;top:6px;left:6px;z-index:2;background:rgba(20,26,22,.8);color:#fff;font:700 .64rem system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:3px;pointer-events:none}
.oe-genrow{display:flex;gap:10px;align-items:center;margin:0 20px 8px;font-size:.74rem;color:#757575}
.adimg-gen{position:absolute;right:8px;bottom:8px;z-index:2;border:0;background:var(--hunter,#0f6cbd);color:#fff;border-radius:4px;padding:4px 10px;font:700 .7rem system-ui,sans-serif;cursor:pointer}
.adimg-gen:disabled{opacity:.6;cursor:default}
