/* PietroCAL · Imagen de invitación: edición sin ruido, un único modal superpuesto. */
.pc-event-visual-invitation {
    margin: 13px 0 7px;
    padding: 12px;
    border: 1px solid rgba(115, 132, 157, .21);
    border-radius: 14px;
    background: rgba(126, 143, 167, .045);
}
.pc-event-visual-invitation[hidden],
.pvi-dialog-preview[hidden],
.pvi-dialog-remove[hidden],
.pvi-editor-invite-link[hidden] { display: none !important; }
.pvi-detail-row { display: flex; align-items: center; gap: 13px; }
.pvi-detail-row > a { flex: 0 0 auto; display: block; border-radius: 10px; }
.pvi-detail-thumb {
    width: 98px; height: 83px; object-fit: cover; border-radius: 10px;
    border: 1px solid rgba(120,135,155,.2); background: #f2f3f5;
}
.pvi-detail-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pvi-detail-actions strong { font-size: 13px; color: inherit; }
.pvi-detail-actions a, .pvi-detail-actions button {
    border: 0; background: transparent; padding: 0; font: inherit;
    color: #236cc9; text-decoration: none; cursor: pointer; font-size: 13px; font-weight: 600;
}
.pvi-detail-actions .pvi-view-link { font-size: 12px; font-weight: 400; }
.pvi-detail-actions button:disabled { opacity: .6; cursor: progress; }
.pvi-editor-url-field > label {
    display: block; font-size: 12px; font-weight: 600;
    margin-bottom: 6px; color: inherit;
}
.pvi-editor-url-control { display: flex; align-items: stretch; gap: 7px; min-width: 0; }
.pvi-editor-url-control input { flex: 1 1 auto; min-width: 0; }
.pvi-editor-attachment {
    flex: 0 0 42px; min-height: 40px; padding: 6px;
    border: 1px solid rgba(115,132,157,.3); border-radius: 10px;
    background: var(--surface-color, #f8fafc); color: inherit;
    cursor: pointer; font-size: 19px;
}
.pvi-editor-attachment:hover, .pvi-editor-attachment:focus-visible {
    border-color: #3780d4; background: rgba(55,128,212,.1); outline-offset: 2px;
}
.pvi-editor-invite-link {
    margin: 8px 0 1px; padding: 9px 11px;
    border: 1px solid rgba(65,124,214,.16); border-radius: 10px;
    background: rgba(65,124,214,.05); font-size: 12px;
}
.pvi-editor-image-row {
    display: flex; align-items: center; gap: 11px; margin: 0 0 10px;
    min-height: 59px;
}
.pvi-editor-image-thumbnail {
    flex: 0 0 66px; width: 66px; height: 60px; object-fit: cover;
    border-radius: 9px; background: #f1f4f9;
    border: 1px solid rgba(60, 80, 110, .15);
}
.pvi-editor-image-empty {
    flex: 0 0 66px; width: 66px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed #a4b5cb; background: rgba(131,156,190,.04);
    border-radius: 9px; color: #8295ae; font-size: 25px;
}
.pvi-editor-image-label {
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.pvi-editor-image-label strong { font-size: 12px; font-weight: 650; color: inherit; }
.pvi-editor-image-label small { font-size: 11px; line-height: 1.35; color: var(--text-secondary, #67788c); }
.pvi-editor-image-error { color: #b93549; font-size: 12px; }
.pvi-editor-link-label { display: block; color: var(--text-secondary,#657184); font-size: 11px; margin-bottom: 5px; }
.pvi-editor-public-address {
    display: block; width: 100%; margin: 4px 0 8px; padding: 6px 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border: 1px solid rgba(65,124,214,.14); border-radius: 7px;
    background: var(--surface-color,#fff); color: var(--text-color,#303b4a);
    font-size: 11px; cursor: text;
}
.pvi-editor-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; }
.pvi-editor-link-actions a, .pvi-editor-link-actions button {
    border: 0; padding: 0; color: #246cc5; background: transparent;
    text-decoration: none; font: inherit; font-weight: 600; cursor: pointer;
}
.pvi-dialog-overlay {
    position: fixed; inset: 0; z-index: 12080;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; color: #1e293b;
}
.pvi-dialog-backdrop {
    position: absolute; inset: 0;
    background: rgba(12,23,42,.57); backdrop-filter: blur(7px);
}
.pvi-dialog-card {
    position: relative; width: min(480px,100%); max-height: calc(100dvh - 40px);
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 20px; background: #fff; color: #263245;
    border: 1px solid rgba(255,255,255,.5);
    box-shadow: 0 25px 95px rgba(10,24,43,.3);
}
.pvi-dialog-card header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 21px; border-bottom: 1px solid #e8edf4;
}
.pvi-dialog-card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.pvi-dialog-close {
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: #f1f3f7; color: #536079; font-size: 24px; line-height: 1; cursor: pointer;
}
.pvi-dialog-body { overflow-y: auto; padding: 20px 22px 24px; }
.pvi-dialog-preview {
    display: block; max-height: 185px; max-width: 100%; object-fit: contain;
    margin: 0 auto 9px; border-radius: 12px; background: #f3f5f7;
}
.pvi-image-note { font-size: 12px; text-align: center; color: #607089; margin: 0 0 12px; }
.pvi-image-note:empty { display: none; }
.pvi-dialog-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-height: 136px; padding: 19px; cursor: pointer; text-align: center;
    border: 2px dashed #a1b5d0; border-radius: 15px; background: #f5f8fd;
    transition: background .15s, border-color .15s;
}
.pvi-dialog-plus { font-size: 27px; color: #397ed0; line-height: 1.1; }
.pvi-dialog-drop strong { font-size: 14px; font-weight: 650; }
.pvi-dialog-drop > span:last-child { font-size: 12px; color: #6b7890; }
.pvi-dialog-drop:hover, .pvi-dialog-drop.is-dragging, .pvi-dialog-drop:focus-visible {
    border-color: #317ad3; background: #e9f2ff; outline: none;
}
.pvi-dialog-separator { margin: 16px 0 11px; text-align: center; color: #65738a; font-size: 12px; }
.pvi-dialog-url { display: flex; gap: 7px; min-width: 0; }
.pvi-dialog-url input {
    flex: 1 1 auto; width: 100%; min-width: 0; border: 1px solid #cbd5e1;
    border-radius: 10px; padding: 10px 11px; font: inherit; font-size: 13px;
    background: #fff; color: #263245;
}
.pvi-dialog-url button {
    border: 0; border-radius: 10px; background: #2774d0; color: #fff;
    padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 650;
}
.pvi-dialog-hint { color: #7b8798; margin: 11px 0 0; font-size: 11px; text-align: center; }
.pvi-dialog-message { color: #34744d; font-size: 12px; line-height: 1.5; margin: 11px 0 0; }
.pvi-dialog-message:empty { display: none; }
.pvi-dialog-message.is-error { color: #b93549; }
.pvi-dialog-remove {
    display: block; margin: 17px auto 0; border: 0; background: none;
    color: #c33f50; font: inherit; font-size: 13px; font-weight: 650;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pvi-dialog-overlay.is-busy { cursor: progress; }
.pvi-dialog-overlay.is-busy .pvi-dialog-drop { opacity: .6; pointer-events: none; }
@media(max-width:480px){
    .pvi-dialog-overlay { padding: 12px; }
    .pvi-dialog-card { border-radius: 17px; max-height: calc(100dvh - 24px); }
    .pvi-dialog-card header { padding: 15px 17px; }
    .pvi-dialog-body { padding: 15px 17px 21px; }
}

/* La miniatura confirma visualmente que el adjunto se guardó. */
.pvi-editor-image-status {display:flex;align-items:center;gap:11px;min-width:0}
.pvi-editor-thumb-wrap {flex:none;display:block;border-radius:9px;overflow:hidden}
.pvi-editor-image-thumb {width:74px;height:64px;object-fit:cover;display:block;border:1px solid rgba(90,110,138,.2);border-radius:9px;background:#edf0f5}
.pvi-editor-image-empty {display:grid;place-items:center;flex:none;width:46px;height:45px;border-radius:10px;background:rgba(105,128,158,.09);color:#74839a;font-size:25px}
.pvi-editor-image-info {display:grid;gap:3px;min-width:0}
.pvi-editor-image-info strong {font-size:12px;color:inherit;font-weight:650}
.pvi-editor-image-info span {font-size:11px;color:var(--text-secondary,#738196);line-height:1.4}
.pvi-editor-link-actions {margin-top:8px}

/* El chat externo tiene z-index inline muy alto y tapa acciones del editor. */
body:has(#pietroEventModal.is-open) #lhc_container_v2 {
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (max-width: 640px) {
    #pietroEventModal .pc-time-control-icon { display: none !important; }
    #pietroEventModal .pc-time-control {
        grid-template-columns: minmax(0, 1fr) 15px !important;
        gap: 3px !important;
        padding-inline: 8px !important;
    }
    #pietroEventModal .pc-time-control-value { min-width: 0; }
    #pietroEventModal .pc-time-control-chevron { grid-column: 2 !important; }
}
@media (pointer: coarse) {
    .pvi-dialog-hint { display: none; }
}
