.ggo-messages,
.ggo-message-share-choice {
    --ggo-msg-navy: #0d172c;
    --ggo-msg-navy-soft: #17243d;
    --ggo-msg-gold: #e2ad4e;
    --ggo-msg-gold-soft: #fff6e5;
    --ggo-msg-line: #e4e8ef;
    --ggo-msg-muted: #687386;
    --ggo-msg-danger: #b42318;
    --ggo-msg-bg: #f4f6f9;
    color: var(--ggo-msg-navy);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.ggo-messages[hidden],
.ggo-message-share-choice[hidden],
.ggo-messages [hidden],
.ggo-message-share-choice [hidden] {
    display: none !important;
}

body.ggo-messages-is-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.ggo-messages {
    position: fixed;
    inset: 0;
    z-index: 1000010;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(6, 13, 27, .58);
    /* v0.1.511: la app interior es opaca; evitamos un blur fullscreen innecesario. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ggo-messages__app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fff;
}

.ggo-messages__app.is-pulling {
    will-change: transform;
}

.ggo-messages__app.is-pull-settling {
    transition: transform .18s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

.ggo-messages__app.is-pull-closing {
    transition: transform .16s ease-in;
    will-change: transform;
}

.ggo-messages__app.is-horizontal-swiping {
    will-change: transform;
}

.ggo-messages__app.is-horizontal-settling {
    transition: transform .13s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}

/* v0.1.498: el salto bandeja -> conversación se mantiene completamente opaco y
   sin transformaciones heredadas. Evita enseñar un frame de Inicio por debajo. */
.ggo-messages__app.is-thread-opening {
    transform: none !important;
    transition: none !important;
    background: #fff;
}

.ggo-messages__app.is-thread-opening .ggo-messages__content {
    background: var(--ggo-msg-bg);
}

.ggo-messages__pull-hint {
    position: fixed;
    z-index: 0;
    top: max(13px, env(safe-area-inset-top));
    left: 50%;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100vw - 32px);
    border-radius: 999px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(13, 23, 44, .92);
    box-shadow: 0 7px 22px rgba(6, 13, 27, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px) scale(.96);
    transition: opacity .12s ease, transform .12s ease, background .12s ease;
}

.ggo-messages__pull-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.ggo-messages__pull-hint.is-ready {
    color: var(--ggo-msg-navy);
    background: var(--ggo-msg-gold);
}

.ggo-messages__pull-hint .dashicons {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.ggo-messages__pull-hint strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 66px;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    border-bottom: 1px solid var(--ggo-msg-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 18px rgba(13, 23, 44, .06);
}

.ggo-messages__heading {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 0 4px;
}

.ggo-messages__heading strong {
    overflow: hidden;
    font-size: 20px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__heading small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--ggo-msg-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages button,
.ggo-message-share-choice button {
    font: inherit;
}

.ggo-messages__icon-btn {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ggo-msg-navy);
    background: transparent;
    cursor: pointer;
}

.ggo-messages__icon-btn:hover,
.ggo-messages__icon-btn:focus-visible {
    background: #eef1f6;
    outline: none;
}

.ggo-messages__icon-btn .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.ggo-messages__content {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: var(--ggo-msg-bg);
}

.ggo-messages__content > section {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ggo-messages__gate,
.ggo-messages__terms {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: 640px;
    min-height: 100%;
    margin: 0 auto;
    padding: 28px 22px calc(32px + env(safe-area-inset-bottom));
    background: #fff;
}

.ggo-messages__gate {
    align-items: center;
    text-align: center;
}

.ggo-messages__gate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 14px;
    border-radius: 24px;
    color: var(--ggo-msg-navy);
    background: var(--ggo-msg-gold-soft);
}

.ggo-messages__gate-icon.is-warning {
    color: var(--ggo-msg-danger);
    background: #fff0ee;
}

.ggo-messages__gate-icon .dashicons {
    width: 34px;
    height: 34px;
    font-size: 34px;
}

.ggo-messages__gate h2,
.ggo-messages__terms h2 {
    margin: 0 0 9px;
    color: var(--ggo-msg-navy);
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.12;
}

.ggo-messages__gate p,
.ggo-messages__terms-lead {
    max-width: 520px;
    margin: 0 0 20px;
    color: var(--ggo-msg-muted);
}

.ggo-messages__eyebrow {
    align-self: flex-start;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #755016;
    background: var(--ggo-msg-gold-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ggo-messages__terms-list {
    display: grid;
    gap: 8px;
    margin: 2px 0 18px;
    padding: 13px;
    border: 1px solid var(--ggo-msg-line);
    border-radius: 18px;
    background: #f8fafc;
}

.ggo-messages__terms-list p {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    margin: 0;
    color: #344054;
    font-size: 13px;
}

.ggo-messages__terms-list .dashicons {
    color: #18794e;
}

.ggo-messages__check {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--ggo-msg-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.ggo-messages__check input {
    width: 21px;
    height: 21px;
    margin: 0;
    accent-color: var(--ggo-msg-navy);
}

.ggo-messages__check span {
    color: #344054;
    font-size: 14px;
}

.ggo-messages__check a {
    color: #765015;
    font-weight: 800;
}

.ggo-messages__primary,
.ggo-messages__secondary,
.ggo-messages__danger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 11px 18px;
    text-decoration: none !important;
    font-weight: 800;
    cursor: pointer;
}

.ggo-messages__primary {
    border: 1px solid var(--ggo-msg-navy);
    color: #fff !important;
    background: var(--ggo-msg-navy);
}

.ggo-messages__primary:hover,
.ggo-messages__primary:focus-visible {
    color: #fff !important;
    background: #1d2a44;
}

.ggo-messages__primary:disabled {
    border-color: #c5cad3;
    color: #7b8493 !important;
    background: #e7eaf0;
    cursor: not-allowed;
}

.ggo-messages__secondary {
    border: 1px solid #cbd2dd;
    color: var(--ggo-msg-navy);
    background: #fff;
}

.ggo-messages__danger {
    border: 1px solid #f0b7b1;
    color: var(--ggo-msg-danger);
    background: #fff7f6;
}

.ggo-messages__terms > small {
    margin-top: 10px;
    color: var(--ggo-msg-muted);
    text-align: center;
}

.ggo-messages__toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--ggo-msg-line);
    background: rgba(255, 255, 255, .96);
}

.ggo-messages__search {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    border: 1px solid #d9dee7;
    border-radius: 15px;
    padding: 0 13px;
    background: #f0f3f7;
}

.ggo-messages__search .dashicons {
    flex: 0 0 auto;
    color: #6b7586;
}

.ggo-messages__search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    color: var(--ggo-msg-navy);
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px;
}

.ggo-messages__directory-review {
    margin: 11px 14px 4px;
    border: 1px solid #e3d1ac;
    border-radius: 16px;
    padding: 12px 13px;
    background: #fffaf0;
}

.ggo-messages__directory-review > strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ggo-msg-navy);
    font-size: 14px;
}

.ggo-messages__directory-review > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ggo-messages__directory-review span {
    border-radius: 999px;
    padding: 5px 8px;
    color: #5f6672;
    background: #fff;
    font-size: 11px;
}

.ggo-messages__directory-review span b {
    color: var(--ggo-msg-navy);
}

.ggo-messages__directory-review p {
    margin: 8px 0 0;
    color: var(--ggo-msg-muted);
    font-size: 11px;
}

.ggo-messages__directory-review.is-loading {
    opacity: .78;
}

.ggo-messages__directory-more {
    display: flex;
    justify-content: center;
    padding: 12px 14px calc(22px + env(safe-area-inset-bottom));
    background: #fff;
}

.ggo-messages__directory-more .ggo-messages__secondary {
    width: min(100%, 360px);
}

.ggo-messages__request-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 28px);
    margin: 12px 14px 4px;
    padding: 13px 14px;
    border: 1px solid #ead09d;
    border-radius: 16px;
    color: var(--ggo-msg-navy);
    background: var(--ggo-msg-gold-soft);
    text-align: left;
    cursor: pointer;
}

.ggo-messages__request-banner > span:first-child {
    font-size: 23px;
}

.ggo-messages__request-banner b {
    flex: 1 1 auto;
}

.ggo-messages__request-banner small {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    border-radius: 999px;
    color: #fff;
    background: var(--ggo-msg-danger);
    font-weight: 800;
}

.ggo-messages__list,
.ggo-messages__people {
    margin: 0;
    padding: 8px 0 calc(24px + env(safe-area-inset-bottom));
    list-style: none;
    background: #fff;
}

.ggo-messages__inbox-skeleton {
    padding: 8px 14px;
    background: #fff;
}

.ggo-messages__inbox-skeleton i {
    position: relative;
    display: block;
    height: 76px;
    border-bottom: 1px solid #edf0f4;
    overflow: hidden;
}

.ggo-messages__inbox-skeleton i::before,
.ggo-messages__inbox-skeleton i::after {
    position: absolute;
    content: '';
    background: linear-gradient(100deg, #edf0f4 25%, #f8f9fb 42%, #edf0f4 62%);
    background-size: 240% 100%;
    animation: ggo-messages-skeleton 1.15s ease-in-out infinite;
}

.ggo-messages__inbox-skeleton i::before {
    top: 12px;
    left: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.ggo-messages__inbox-skeleton i::after {
    top: 17px;
    left: 66px;
    width: min(62%, 330px);
    height: 32px;
    border-radius: 9px;
}

.ggo-messages__conversation,
.ggo-messages__person {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: var(--ggo-msg-navy);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ggo-messages__conversation:hover,
.ggo-messages__conversation:focus-visible,
.ggo-messages__person:hover,
.ggo-messages__person:focus-visible {
    background: #f7f9fc;
    outline: none;
}

.ggo-messages__avatar {
    position: relative;
    width: 52px;
    height: 52px;
}

.ggo-messages__avatar img {
    display: block;
    width: 52px;
    height: 52px;
    border: 1px solid #dde2ea;
    border-radius: 50%;
    object-fit: cover;
}

.ggo-messages__avatar i {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ggo-msg-gold);
    font-size: 12px;
    font-style: normal;
}

.ggo-messages__conversation-copy,
.ggo-messages__person-copy {
    min-width: 0;
}

.ggo-messages__conversation-copy strong,
.ggo-messages__person-copy strong {
    display: block;
    overflow: hidden;
    margin: 0 0 3px;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__conversation-copy p,
.ggo-messages__person-copy p {
    overflow: hidden;
    margin: 0;
    color: var(--ggo-msg-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__conversation.is-unread .ggo-messages__conversation-copy strong,
.ggo-messages__conversation.is-unread .ggo-messages__conversation-copy p {
    color: var(--ggo-msg-navy);
    font-weight: 800;
}

.ggo-messages__conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    color: var(--ggo-msg-muted);
    font-size: 11px;
}

.ggo-messages__conversation-meta i {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    border-radius: 999px;
    padding: 0 6px;
    color: #fff;
    background: var(--ggo-msg-danger);
    font-style: normal;
    font-weight: 800;
}

.ggo-messages__person-action {
    border-radius: 999px;
    padding: 7px 11px;
    color: #755016;
    background: var(--ggo-msg-gold-soft);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ggo-messages__section-title {
    margin: 0;
    padding: 14px 14px 7px;
    color: var(--ggo-msg-muted);
    background: var(--ggo-msg-bg);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ggo-messages__empty,
.ggo-messages__loading,
.ggo-messages__error {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 58vh;
    padding: 30px 24px;
    color: var(--ggo-msg-muted);
    background: #fff;
    text-align: center;
}

.ggo-messages__empty span,
.ggo-messages__error span {
    margin-bottom: 12px;
    font-size: 38px;
}

.ggo-messages__empty strong,
.ggo-messages__error strong {
    margin-bottom: 6px;
    color: var(--ggo-msg-navy);
    font-size: 20px;
}

.ggo-messages__empty p,
.ggo-messages__error p {
    max-width: 420px;
    margin: 0 0 16px;
}

.ggo-messages__spinner {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border: 3px solid #dce1e8;
    border-top-color: var(--ggo-msg-gold);
    border-radius: 50%;
    animation: ggo-messages-spin .8s linear infinite;
}

@keyframes ggo-messages-spin {
    to { transform: rotate(360deg); }
}

.ggo-messages__thread {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ggo-messages__thread-status {
    margin: 10px 12px 0;
    padding: 11px 13px;
    border: 1px solid #ead09d;
    border-radius: 14px;
    color: #65491d;
    background: var(--ggo-msg-gold-soft);
    font-size: 13px;
    text-align: center;
}

.ggo-messages__request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 10px 12px 0;
}

.ggo-messages__messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
    min-height: 280px;
    padding: 14px 12px 18px;
}

.ggo-messages__bubble-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ggo-messages__bubble-row.is-mine {
    align-items: flex-end;
}

.ggo-messages__bubble {
    max-width: min(82%, 520px);
    border: 1px solid #dfe4eb;
    border-radius: 18px 18px 18px 5px;
    padding: 9px 12px;
    color: #202b3d;
    background: #fff;
    box-shadow: 0 2px 8px rgba(13, 23, 44, .04);
    overflow-wrap: anywhere;
}

.ggo-messages__bubble-row.is-mine .ggo-messages__bubble {
    border-color: #ead19f;
    border-radius: 18px 18px 5px 18px;
    background: #fff3d9;
}

.ggo-messages__bubble.has-resource {
    max-width: min(88%, 560px);
    padding: 6px;
}

.ggo-messages__bubble.has-resource > p {
    padding: 4px 6px 1px;
}

.ggo-messages__bubble.has-resource .ggo-messages__bubble-meta {
    padding: 0 5px 1px;
}

.ggo-messages__bubble.is-removed {
    color: var(--ggo-msg-muted);
    font-style: italic;
}

.ggo-messages__bubble p {
    margin: 0;
    white-space: pre-wrap;
}

/* v0.1.503 · enlaces clicables dentro de mensajes de texto. */
.ggo-messages__bubble .ggo-messages__body-link {
    color: #1565c0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ggo-messages__bubble-row.is-mine .ggo-messages__body-link {
    color: #8a5a00;
}

.ggo-messages__bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 5px;
    min-height: 15px;
}

.ggo-messages__bubble time {
    color: var(--ggo-msg-muted);
    font-size: 10px;
    text-align: right;
}

.ggo-messages__delivery {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 15px;
    color: #7b8493;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.ggo-messages__delivery.is-delivered {
    letter-spacing: -4px;
    padding-right: 4px;
    color: #a66d16;
}

.ggo-messages__delivery.is-read {
    color: #087f5b;
    font-size: 12px;
}

.ggo-messages__delivery.is-sending {
    opacity: .48;
    animation: ggo-messages-key-pulse 1s ease-in-out infinite;
}

@keyframes ggo-messages-key-pulse {
    50% { opacity: .9; transform: translateY(-1px); }
}

.ggo-messages__thread-skeleton {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    padding-bottom: 8px;
}

.ggo-messages__thread-skeleton i {
    display: block;
    width: min(68%, 360px);
    height: 46px;
    border-radius: 17px 17px 17px 5px;
    background: linear-gradient(100deg, #edf0f4 25%, #f8f9fb 42%, #edf0f4 62%);
    background-size: 240% 100%;
    animation: ggo-messages-skeleton 1.15s ease-in-out infinite;
}

.ggo-messages__thread-skeleton i:nth-child(2) {
    align-self: flex-end;
    width: min(54%, 300px);
    border-radius: 17px 17px 5px 17px;
    background-image: linear-gradient(100deg, #faebcc 25%, #fff6e5 42%, #faebcc 62%);
}

.ggo-messages__thread-skeleton i:nth-child(3) {
    width: min(44%, 240px);
}

@keyframes ggo-messages-skeleton {
    to { background-position-x: -240%; }
}

.ggo-messages__resource-card {
    box-sizing: border-box;
    width: min(318px, 74vw);
    max-width: 100%;
    margin-top: 7px;
    border: 1px solid rgba(13, 23, 44, .14);
    border-radius: 14px;
    padding: 6px;
    color: var(--ggo-msg-navy);
    background: rgba(255, 255, 255, .78);
    overflow: hidden;
}

.ggo-messages__resource-card.has-preview {
    padding-top: 6px;
}

.ggo-messages__resource-card-main {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 6px;
    color: var(--ggo-msg-navy) !important;
    text-decoration: none !important;
}

.ggo-messages__resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
    font-size: 20px;
}

.ggo-messages__resource-copy {
    display: block;
    min-width: 0;
}

.ggo-messages__resource-copy b {
    overflow: hidden;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ggo-messages__resource-description {
    overflow: hidden;
    display: -webkit-box;
    margin-top: 3px;
    color: #586274;
    font-size: 11px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ggo-messages__resource-copy small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    min-width: 0;
    color: var(--ggo-msg-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.ggo-messages__resource-copy small span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__resource-copy small em {
    flex: 0 0 auto;
    color: #9a6814;
    font-style: normal;
    font-weight: 900;
    text-transform: none;
}

.ggo-messages__resource-media {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border-radius: 11px;
    overflow: hidden;
    background: #0f172a;
    text-decoration: none !important;
}

.ggo-messages__resource-media img,
.ggo-messages__resource-media video {
    display: block;
    width: 100%;
    max-height: 255px;
    object-fit: contain;
    background: #0f172a;
}

.ggo-messages__resource-media.is-audio {
    padding: 10px 10px 8px;
    color: #fff;
}

.ggo-messages__resource-media.is-audio > span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 900;
}

.ggo-messages__resource-media audio {
    display: block;
    width: 100%;
    height: 38px;
}

.ggo-messages__resource-media.is-pdf {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 74px;
    padding: 10px;
    color: #fff !important;
}

.ggo-messages__resource-media.is-pdf > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    border-radius: 9px;
    background: #fff;
    color: #b42318;
    font-size: 13px;
    font-weight: 1000;
}

.ggo-messages__resource-media.is-pdf b {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ggo-messages__resource-media.is-pdf em {
    grid-column: 2;
    margin-top: -18px;
    color: #cbd5e1;
    font-size: 10px;
    font-style: normal;
}

.ggo-messages__resource-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    min-height: 126px;
    max-height: 246px;
    border-radius: 11px;
    overflow: hidden;
    background: #0f172a;
}

.ggo-messages__resource-grid > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    overflow: hidden;
    color: #fff !important;
    background: #111827;
    text-decoration: none !important;
}

.ggo-messages__resource-grid.is-2 > a { min-height: 180px; }
.ggo-messages__resource-grid.is-3 > a:first-child { grid-row: span 2; }

.ggo-messages__resource-grid img,
.ggo-messages__resource-grid video {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.ggo-messages__resource-grid > a.is-video > span {
    position: absolute;
    inset: 50% auto auto 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .72);
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.ggo-messages__resource-grid > a.is-file {
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    text-align: center;
}

.ggo-messages__resource-grid > a.is-file b {
    font-size: 22px;
}

.ggo-messages__resource-grid > a.is-file small {
    overflow: hidden;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ggo-messages__resource-more {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .78);
    font-size: 12px;
    font-weight: 900;
}

.ggo-messages__composer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 48px;
    gap: 8px;
    align-items: end;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ggo-msg-line);
    background: rgba(255, 255, 255, .98);
}

.ggo-messages__attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 2px 0;
    padding: 0;
    border: 1px solid #d9dee7;
    border-radius: 50%;
    color: var(--ggo-msg-navy);
    background: #fff;
    box-shadow: 0 2px 7px rgba(13, 23, 44, .07);
    cursor: pointer;
}

.ggo-messages__attach span {
    display: block;
    margin-top: -2px;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.ggo-messages__attach:hover,
.ggo-messages__attach:focus-visible {
    border-color: #d4a044;
    background: var(--ggo-msg-gold-soft);
    outline: none;
}

.ggo-messages__composer-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    border: 1px solid #d9dee7;
    border-radius: 19px;
    padding: 8px 11px;
    background: #f4f6f9;
}

.ggo-messages__composer textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 28px;
    max-height: 120px;
    margin: 0;
    padding: 3px 0;
    resize: none;
    border: 0 !important;
    outline: 0 !important;
    color: var(--ggo-msg-navy);
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px;
    line-height: 1.35;
}

.ggo-messages__send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ggo-msg-navy);
    background: var(--ggo-msg-gold);
    cursor: pointer;
}

.ggo-messages__send:disabled {
    color: #8b93a0;
    background: #dfe3e9;
    cursor: not-allowed;
}

.ggo-messages__send .dashicons {
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.ggo-messages__resource-chip {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: center;
    border: 1px solid #ead19f;
    border-radius: 12px;
    padding: 6px;
    color: #65491d;
    background: #fff8e9;
    font-size: 12px;
}

.ggo-messages__resource-chip-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    font-size: 18px;
}

.ggo-messages__resource-chip-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ggo-messages__resource-chip-preview i {
    position: absolute;
    inset: 50% auto auto 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-style: normal;
}

.ggo-messages__resource-chip-copy { min-width: 0; }

.ggo-messages__resource-chip-copy b,
.ggo-messages__resource-chip-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__resource-chip-copy small {
    margin-top: 2px;
    color: #9a6814;
    font-size: 10px;
    font-weight: 800;
}

.ggo-messages__resource-chip button {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #65491d;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}


.ggo-messages__backpack-picker {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ggo-messages__backpack-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.ggo-messages__backpack-head > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--ggo-msg-gold-soft);
    font-size: 23px;
}

.ggo-messages__backpack-head h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.ggo-messages__backpack-head p {
    margin: 2px 0 0;
    color: var(--ggo-msg-muted);
    font-size: 12px;
}

.ggo-messages__backpack-head button {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ggo-msg-navy);
    background: #f0f3f7;
    font-size: 25px;
    cursor: pointer;
}

.ggo-messages__backpack-search {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.ggo-messages__backpack-list {
    overflow: hidden;
    border: 1px solid var(--ggo-msg-line);
    border-radius: 16px;
    background: #fff;
}

.ggo-messages__backpack-item {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: var(--ggo-msg-navy);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ggo-messages__backpack-item:last-child {
    border-bottom: 0;
}

.ggo-messages__backpack-item:hover,
.ggo-messages__backpack-item:focus-visible {
    background: #f8fafc;
    outline: none;
}

.ggo-messages__backpack-item:disabled {
    cursor: wait;
    opacity: .58;
}

.ggo-messages__backpack-item.is-preparing {
    background: var(--ggo-msg-gold-soft);
    opacity: 1;
}

.ggo-messages__backpack-item-icon,
.ggo-messages__backpack-item-add {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ggo-messages__backpack-item-icon {
    width: 43px;
    height: 43px;
    background: #f3f5f8;
    font-size: 21px;
}

.ggo-messages__backpack-item-copy {
    min-width: 0;
}

.ggo-messages__backpack-item-copy strong,
.ggo-messages__backpack-item-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__backpack-item-copy strong {
    font-size: 14px;
}

.ggo-messages__backpack-item-copy small {
    margin-top: 3px;
    color: var(--ggo-msg-muted);
    font-size: 11px;
}

.ggo-messages__backpack-item-add {
    width: 32px;
    height: 32px;
    color: var(--ggo-msg-navy);
    background: var(--ggo-msg-gold-soft);
    font-size: 22px;
}

.ggo-messages__backpack-more {
    width: 100%;
    min-height: 42px;
    margin: 8px 0 0;
    border: 1px solid #d9dee7;
    border-radius: 13px;
    color: var(--ggo-msg-navy);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.ggo-messages__backpack-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px 18px;
    color: var(--ggo-msg-muted);
    text-align: center;
}

.ggo-messages__backpack-empty > span {
    margin-bottom: 8px;
    font-size: 32px;
}

.ggo-messages__backpack-empty strong {
    color: var(--ggo-msg-navy);
}

.ggo-messages__backpack-empty p {
    margin: 5px 0 0;
    font-size: 12px;
}

.ggo-messages__backpack-help {
    display: block;
    margin: 10px 3px 0;
    color: var(--ggo-msg-muted);
    font-size: 10px;
    text-align: center;
}

.ggo-messages__backpack-error {
    margin: 0 0 8px;
    border: 1px solid #f0b7b1;
    border-radius: 12px;
    padding: 9px 11px;
    color: var(--ggo-msg-danger);
    background: #fff7f6;
    font-size: 12px;
    font-weight: 700;
}

.ggo-messages__sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(6, 13, 27, .44);
}

.ggo-messages__sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -18px 50px rgba(13, 23, 44, .24);
}

.ggo-messages__sheet-handle,
.ggo-message-share-choice__handle {
    width: 42px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 99px;
    background: #cbd1da;
}

.ggo-messages__sheet h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.ggo-messages__delivery-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -2px 0 10px;
    color: var(--ggo-msg-muted);
    font-size: 11px;
}

.ggo-messages__delivery-legend span {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f3f5f8;
}

.ggo-messages__sheet-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 11px 8px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: var(--ggo-msg-navy);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ggo-messages__sheet-action.is-danger {
    color: var(--ggo-msg-danger);
}

.ggo-messages__report-form {
    display: grid;
    gap: 10px;
}

.ggo-messages__report-form label {
    display: grid;
    gap: 5px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.ggo-messages__report-form select,
.ggo-messages__report-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cdd4df;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    font: inherit;
}

.ggo-messages__report-form .ggo-messages__check {
    grid-template-columns: 25px 1fr;
    margin: 0;
}

.ggo-messages__toast {
    position: absolute;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 20;
    max-width: 520px;
    margin: auto;
    border-radius: 13px;
    padding: 11px 14px;
    color: #fff;
    background: var(--ggo-msg-navy);
    box-shadow: 0 12px 34px rgba(13, 23, 44, .28);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.ggo-message-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    border: 2px solid var(--ggo-msg-navy, #0d172c);
    border-radius: 999px;
    padding: 0 4px;
    color: #fff;
    background: #d92d20;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.ggo-app-message-icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.ggo-message-share-choice {
    position: fixed;
    inset: 0;
    z-index: 1000020;
}

.ggo-message-share-choice__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(6, 13, 27, .54);
}

.ggo-message-share-choice > section {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 620px;
    margin: auto;
    border-radius: 25px 25px 0 0;
    padding: 10px 15px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -18px 60px rgba(13, 23, 44, .28);
}

.ggo-message-share-choice h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.ggo-message-share-choice section > button {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 1px 11px;
    align-items: center;
    width: 100%;
    min-height: 61px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    padding: 8px 4px;
    color: var(--ggo-msg-navy);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ggo-message-share-choice section > button .dashicons {
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--ggo-msg-gold-soft);
    font-size: 23px;
}

.ggo-message-share-choice section > button b,
.ggo-message-share-choice section > button small {
    min-width: 0;
}

.ggo-message-share-choice section > button small {
    color: var(--ggo-msg-muted);
}

.ggo-message-share-choice section > button.is-cancel {
    display: block;
    min-height: 45px;
    border: 0;
    color: var(--ggo-msg-muted);
    text-align: center;
    font-weight: 800;
}

@media (min-width: 720px) {
    .ggo-messages {
        padding: 22px;
    }

    .ggo-messages__app {
        max-width: 720px;
        max-height: 920px;
        border-radius: 26px;
        box-shadow: 0 30px 90px rgba(6, 13, 27, .38);
    }

    .ggo-messages__sheet {
        border-radius: 24px;
        margin: 0 14px 14px;
    }

    .ggo-message-share-choice > section {
        bottom: 22px;
        border-radius: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ggo-messages__spinner,
    .ggo-messages__delivery.is-sending,
    .ggo-messages__thread-skeleton i,
    .ggo-messages__inbox-skeleton i::before,
    .ggo-messages__inbox-skeleton i::after {
        animation-duration: 1.8s;
    }
}

/* v0.1.431 · acciones de mensaje, grupos y selectores móviles */
.ggo-messages__avatar.is-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ggo-messages__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #dde2ea;
    border-radius: 17px;
    background: #f4f6f9;
    font-size: 24px;
}

.ggo-messages__bubble-sender {
    display: block;
    margin: 0 0 4px;
    color: #9a671d;
    font-size: 11px;
    line-height: 1.2;
}

.ggo-messages__bubble-row.is-long-press .ggo-messages__bubble {
    transform: scale(.985);
    box-shadow: 0 4px 15px rgba(13, 23, 44, .12);
}

.ggo-messages__bubble {
    transition: transform .12s ease, box-shadow .12s ease;
    touch-action: manipulation;
}

.ggo-messages__picker-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
}

.ggo-messages__picker-head > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--ggo-msg-gold-soft);
    font-size: 21px;
}

.ggo-messages__picker-head h3,
.ggo-messages__picker-head p {
    margin: 0;
}

.ggo-messages__picker-head h3 {
    font-size: 18px;
}

.ggo-messages__picker-head p {
    margin-top: 2px;
    color: var(--ggo-msg-muted);
    font-size: 12px;
}

.ggo-messages__picker-head button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--ggo-msg-navy);
    background: #f2f4f7;
    font-size: 25px;
    cursor: pointer;
}

.ggo-messages__picker-list {
    display: grid;
    gap: 2px;
    max-height: min(48vh, 420px);
    margin-top: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ggo-messages__picker-person {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 60px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    padding: 6px 4px;
    color: var(--ggo-msg-navy);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ggo-messages__picker-person .ggo-messages__avatar,
.ggo-messages__picker-person .ggo-messages__avatar img,
.ggo-messages__picker-person .ggo-messages__avatar-fallback {
    width: 46px;
    height: 46px;
}

.ggo-messages__picker-person > span:nth-child(2) {
    min-width: 0;
}

.ggo-messages__picker-person strong,
.ggo-messages__picker-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__picker-person small {
    margin-top: 2px;
    color: var(--ggo-msg-muted);
    font-size: 11px;
}

.ggo-messages__picker-person > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d7dde6;
    border-radius: 50%;
    font-style: normal;
    font-weight: 900;
}

.ggo-messages__picker-person.is-selected > i {
    border-color: #d5a044;
    background: var(--ggo-msg-gold-soft);
}

.ggo-messages__picker-person.is-disabled {
    opacity: .48;
    cursor: default;
}

.ggo-messages__picker-submit {
    position: sticky;
    bottom: 0;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 -8px 18px rgba(255,255,255,.9);
}

.ggo-messages__picker-summary {
    margin: 8px 2px 0;
    color: var(--ggo-msg-muted);
    font-size: 11px;
}

.ggo-messages__picker-empty {
    padding: 22px 10px;
    color: var(--ggo-msg-muted);
    text-align: center;
    font-size: 13px;
}

.ggo-messages__group-title {
    display: grid;
    gap: 5px;
    margin: 0 0 10px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.ggo-messages__group-title input {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    border: 1px solid #cdd4df;
    border-radius: 12px;
    padding: 9px 11px;
    background: #fff;
    font: inherit;
}

.ggo-messages__group-members {
    margin: -2px 0 10px;
}

.ggo-messages__group-members > small {
    display: block;
    margin-bottom: 7px;
    color: var(--ggo-msg-muted);
    font-size: 11px;
    font-weight: 700;
}

.ggo-messages__group-members > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ggo-messages__group-member {
    max-width: 100%;
    overflow: hidden;
    border-radius: 999px;
    padding: 5px 8px;
    color: #344054;
    background: #f2f4f7;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__picker-section-title {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 8px 4px 5px;
    color: var(--ggo-msg-muted);
    background: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}


/* v0.1.432 · filtros reales del directorio de Mensajes */
.ggo-messages__directory-filters {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
}

.ggo-messages__directory-filter {
    appearance: none;
    -webkit-appearance: none;
    min-height: 32px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 9px;
    color: #5f6672;
    background: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 11px;
    line-height: 1.1;
    cursor: pointer;
    touch-action: manipulation;
}

.ggo-messages__directory-filter b {
    color: var(--ggo-msg-navy);
}

.ggo-messages__directory-filter.is-active {
    border-color: rgba(220,165,74,.72);
    color: var(--ggo-msg-navy);
    background: #fff3d9;
    box-shadow: 0 0 0 1px rgba(220,165,74,.10) inset;
}

.ggo-messages__directory-filter:active {
    transform: scale(.97);
}

.ggo-messages__person[disabled] {
    cursor: default;
}


/* v0.1.461 · + de Mensajes igual a comentar en Comunidad */
.ggo-messages__attach-menu{display:flex;flex-direction:column;gap:14px;min-height:0}
.ggo-messages__attach-menu-head{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:12px;align-items:start}
.ggo-messages__attach-menu-head h3{margin:0;color:#0f172a;font-size:1.16rem;line-height:1.15}.ggo-messages__attach-menu-head p{margin:5px 0 0;color:#667085;font-size:.8rem;font-weight:650}
.ggo-messages__attach-menu-head button{width:40px;height:40px;border:0;border-radius:50%;background:#f1f5f9;color:#0f172a;font-size:1.4rem;cursor:pointer}
.ggo-messages__attach-menu-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.ggo-messages__attach-menu-actions>button{appearance:none;border:1px solid #e2e8f0;border-radius:16px;background:#fff;min-height:92px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#0f172a;box-shadow:0 5px 14px rgba(15,23,42,.05);cursor:pointer}
.ggo-messages__attach-menu-actions>button>span{font-size:1.35rem}.ggo-messages__attach-menu-actions>button>strong{font-size:.84rem;font-weight:950}.ggo-messages__attach-menu-actions>button>small{font-size:.65rem;line-height:1.2;color:#667085;text-align:center;font-weight:700}
.ggo-messages__attach-menu-actions>button.is-recording{border-color:#dca54a;background:#fff7e6}.ggo-messages__attach-menu-actions>button:disabled{opacity:.55;cursor:wait}
.ggo-messages__attach-status{margin:0;padding:10px 12px;border-radius:12px;background:#fff7e6;color:#7a520f;font-size:.76rem;font-weight:850}.ggo-messages__attach-status.is-busy{animation:ggoMsgAttachPulse 1s ease-in-out infinite alternate}
.ggo-messages__attach-help{display:block;color:#667085;font-size:.68rem;line-height:1.35;font-weight:650}
@keyframes ggoMsgAttachPulse{from{opacity:.65}to{opacity:1}}
@media(max-width:430px){.ggo-messages__attach-menu-actions{grid-template-columns:1fr}.ggo-messages__attach-menu-actions>button{min-height:58px;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;justify-items:start;padding:9px 12px}.ggo-messages__attach-menu-actions>button>span{grid-row:1/3;align-self:center}.ggo-messages__attach-menu-actions>button>small{text-align:left}}


/* v0.1.462 · estado de cuota de Mi Mochila dentro de adjuntos de Mensajes. */
.ggo-messages__storage-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0;padding:9px 11px;border-radius:12px;background:#F8FAFC;color:#475467;font-size:12px;font-weight:800}
.ggo-messages__storage-status.is-warning{background:#FFF8E8;color:#8A5A13}
.ggo-messages__storage-status.is-critical{background:#FFF1F0;color:#B42318}
.ggo-messages__storage-status button{border:0;border-radius:999px;padding:6px 9px;background:#fff;color:inherit;font:inherit;font-size:11px;box-shadow:0 1px 5px rgba(15,23,42,.08)}

/* v0.1.511 · pulido visual conservador de Mensajes.
   Mantiene la estructura actual y mejora jerarquía, tactilidad y densidad móvil. */
.ggo-messages__header {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
}

.ggo-messages__icon-btn {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}

.ggo-messages__toolbar {
    padding: 10px 12px 9px;
}

.ggo-messages__search {
    min-height: 48px;
    border-color: #dfe4eb;
    border-radius: 16px;
    background: #f3f5f8;
}

.ggo-messages__conversation,
.ggo-messages__person {
    min-height: 74px;
    gap: 11px;
    padding-right: 12px;
    padding-left: 12px;
}

.ggo-messages__conversation:active,
.ggo-messages__person:active {
    background: #f1f4f8;
}

/* El panel de control del directorio solo aparece a administración. Lo hacemos
   más parecido a una barra de filtros y menos a una tarjeta de aviso. */
.ggo-messages__directory-review {
    margin: 10px 12px 6px;
    border-color: #e2e7ee;
    border-radius: 14px;
    padding: 10px 11px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(13, 23, 44, .035);
}

.ggo-messages__directory-review > strong {
    margin-bottom: 7px;
    font-size: 13px;
}

.ggo-messages__directory-review p {
    margin-top: 7px;
    font-size: 10.5px;
}

.ggo-messages__directory-review > div,
.ggo-messages__directory-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1px 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ggo-messages__directory-review > div::-webkit-scrollbar,
.ggo-messages__directory-filters::-webkit-scrollbar {
    display: none;
}

.ggo-messages__directory-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 11px;
    font-size: 12px;
}

.ggo-messages__person-action {
    min-height: 44px;
    padding: 9px 13px;
}

.ggo-messages__section-title {
    padding: 12px 12px 7px;
    font-size: 11px;
}

.ggo-messages__messages {
    padding-right: 14px;
    padding-left: 14px;
}

.ggo-messages__composer {
    padding-right: 12px;
    padding-left: 12px;
    background: #fff;
    box-shadow: 0 -5px 16px rgba(13, 23, 44, .035);
}

@media (min-width: 720px) {
    .ggo-messages__app {
        max-width: 780px;
        border-radius: 24px;
    }

    .ggo-messages__content > section {
        scrollbar-gutter: stable;
    }

    .ggo-messages__bubble {
        max-width: min(78%, 600px);
    }

    .ggo-messages__bubble.has-resource {
        max-width: min(82%, 630px);
    }
}

@media (max-width: 430px) {
    .ggo-messages__heading strong {
        font-size: 19px;
    }

    .ggo-messages__directory-review {
        margin-right: 10px;
        margin-left: 10px;
    }

    .ggo-messages__conversation,
    .ggo-messages__person {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .ggo-messages__avatar,
    .ggo-messages__avatar img {
        width: 48px;
        height: 48px;
    }
}

/* v0.1.512 · respuestas, fechas y gesto de respuesta en Mensajes. */
.ggo-messages__day-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 7px 0 3px;
    pointer-events: none;
}

.ggo-messages__day-separator span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #e3e7ed;
    border-radius: 999px;
    color: #697386;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    font-size: 11px;
    font-weight: 800;
}

.ggo-messages__reply-quote {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 0 7px;
    padding: 7px 9px;
    border: 0;
    border-left: 3px solid var(--ggo-msg-gold);
    border-radius: 8px;
    color: #425067;
    background: rgba(15,23,42,.055);
    text-align: left;
    cursor: pointer;
}

.ggo-messages__reply-quote b {
    overflow: hidden;
    color: #8a5a13;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__reply-quote span {
    overflow: hidden;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__reply-composer {
    display: grid;
    grid-template-columns: minmax(0,1fr) 30px;
    gap: 8px;
    align-items: center;
    margin: -2px -4px 1px;
    padding: 6px 7px 6px 9px;
    border-left: 3px solid var(--ggo-msg-gold);
    border-radius: 9px;
    background: #fff7e7;
}

.ggo-messages__reply-composer > span {
    min-width: 0;
}

.ggo-messages__reply-composer b,
.ggo-messages__reply-composer small {
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ggo-messages__reply-composer b {
    color: #7b5414;
    font-size: 11px;
}

.ggo-messages__reply-composer small {
    margin-top: 1px;
    color: #667085;
    font-size: 10px;
}

.ggo-messages__reply-composer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #536174;
    background: rgba(255,255,255,.86);
    font-size: 20px;
    cursor: pointer;
}

.ggo-messages__bubble-row {
    position: relative;
    transition: transform .14s ease;
}

.ggo-messages__bubble-row.is-reply-swiping {
    transition: none;
}

.ggo-messages__bubble-row.is-reply-swiping::before {
    content: '↩';
    position: absolute;
    left: -2px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #7b5414;
    background: #fff3d9;
    box-shadow: 0 3px 10px rgba(15,23,42,.10);
    opacity: .76;
    transform: translate(-100%,-50%) scale(.88);
    transition: opacity .1s ease, transform .1s ease;
    font-weight: 900;
}

.ggo-messages__bubble-row.is-reply-ready::before {
    opacity: 1;
    transform: translate(-100%,-50%) scale(1);
}

.ggo-messages__bubble-row.is-reply-highlight .ggo-messages__bubble {
    animation: ggo-message-reply-highlight .9s ease;
}

@keyframes ggo-message-reply-highlight {
    0%, 100% { box-shadow: 0 2px 8px rgba(13,23,44,.04); }
    35% { box-shadow: 0 0 0 3px rgba(220,165,74,.35), 0 5px 16px rgba(13,23,44,.10); }
}

@media (max-width: 430px) {
    .ggo-messages__reply-quote {
        padding: 6px 8px;
    }
    .ggo-messages__day-separator span {
        min-height: 26px;
        font-size: 10.5px;
    }
}

/* v0.1.513 · deep-links, búsqueda, silencio y acceso rápido a cámara/audio. */
.ggo-messages__composer > .ggo-messages__attach{grid-column:1;grid-row:1}
.ggo-messages__composer > .ggo-messages__composer-field{grid-column:2;grid-row:1}
.ggo-messages__composer > .ggo-messages__send,
.ggo-messages__composer > .ggo-messages__voice{grid-column:3;grid-row:1}
.ggo-messages__voice{
    display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0;padding:0;
    border:0;border-radius:50%;background:#fff4dc;color:var(--ggo-msg-navy);box-shadow:inset 0 0 0 1px #e8c174;
    cursor:pointer;font-size:20px
}
.ggo-messages__voice:hover,.ggo-messages__voice:focus-visible{background:#ffe9b5;outline:none}
.ggo-messages__voice[hidden],.ggo-messages__send[hidden]{display:none!important}
.ggo-messages__attach-menu-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.ggo-messages__conversation-search{display:flex;flex-direction:column;gap:12px;min-height:0}
.ggo-messages__conversation-search-results{display:flex;flex-direction:column;gap:7px;max-height:min(58vh,480px);overflow:auto;padding:1px}
.ggo-messages__conversation-search-item{
    appearance:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;width:100%;padding:11px 12px;
    border:1px solid #e2e8f0;border-radius:14px;background:#fff;color:#0f172a;text-align:left;cursor:pointer
}
.ggo-messages__conversation-search-item strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.ggo-messages__conversation-search-item span{grid-column:1/-1;overflow:hidden;color:#566278;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.ggo-messages__conversation-search-item small{grid-column:2;grid-row:1;color:#8a94a6;font-size:10px;white-space:nowrap}
.ggo-messages__conversation-search-item:hover,.ggo-messages__conversation-search-item:focus-visible{border-color:#dca54a;background:#fffaf0;outline:none}
.ggo-messages__mute-picker>p{margin:0 0 10px;color:#667085;font-size:12px;line-height:1.45}
@media(max-width:720px){
    .ggo-messages__attach-menu-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ggo-messages__attach-menu-actions>button{min-height:76px}
}
@media(max-width:430px){
    .ggo-messages__attach-menu-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ggo-messages__attach-menu-actions>button{min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8px}
    .ggo-messages__attach-menu-actions>button>span{grid-row:auto;align-self:auto}
    .ggo-messages__attach-menu-actions>button>small{text-align:center}
}
.ggo-messages__thread{position:relative}
.ggo-messages__new-messages{
    position:sticky;bottom:76px;z-index:5;align-self:center;min-height:38px;margin:0 auto 6px;padding:7px 14px;
    border:1px solid #e5b85c;border-radius:999px;background:#fff8e9;color:#704b0e;box-shadow:0 6px 18px rgba(15,23,42,.12);
    font-size:12px;font-weight:900;cursor:pointer
}
.ggo-messages__new-messages:hover,.ggo-messages__new-messages:focus-visible{background:#ffefc8;outline:none}

/* v0.1.514 · distintivo discreto para membresías no gratuitas. */
.ggo-messages__pro-star{
    display:inline-flex;align-items:center;justify-content:center;margin-left:5px;vertical-align:1px;
    color:#DCA54A;font-size:13px;font-weight:950;line-height:1;text-shadow:0 1px 0 rgba(255,255,255,.45)
}
.ggo-messages__conversation-copy strong .ggo-messages__pro-star,
.ggo-messages__person-copy strong .ggo-messages__pro-star{flex:0 0 auto}

/* v0.1.515 · Menú de conversación más limpio y adaptado a cada pantalla. */
.ggo-messages__menu-head {
    display: grid;
    gap: 2px;
    padding: 2px 4px 10px;
}
.ggo-messages__menu-head strong {
    color: var(--ggo-msg-navy);
    font-size: 18px;
    line-height: 1.25;
}
.ggo-messages__menu-head small {
    color: var(--ggo-msg-muted);
    font-size: 12px;
}
.ggo-messages__sheet-separator {
    height: 8px;
    margin: 3px -14px;
    border-top: 1px solid #edf0f4;
    background: #f7f8fa;
}
.ggo-messages__sheet.is-conversation-menu {
    max-height: min(72%, 560px);
}
.ggo-messages__sheet.is-conversation-menu .ggo-messages__sheet-action {
    min-height: 48px;
    padding: 10px 8px;
}
.ggo-messages__sheet.is-conversation-menu .ggo-messages__sheet-action span {
    display: grid;
    width: 28px;
    min-width: 28px;
    place-items: center;
    font-size: 18px;
}
.ggo-messages__sheet.is-conversation-menu .ggo-messages__sheet-action b {
    font-size: 15px;
    line-height: 1.25;
}

@media (min-width: 720px) {
    .ggo-messages__sheet.is-conversation-menu {
        top: 76px;
        right: 16px;
        bottom: auto;
        left: auto;
        width: min(350px, calc(100% - 32px));
        max-height: calc(100% - 96px);
        margin: 0;
        border: 1px solid #e4e8ef;
        border-radius: 18px;
        padding: 10px 12px 12px;
        box-shadow: 0 18px 50px rgba(13, 23, 44, .20);
    }
    .ggo-messages__sheet.is-conversation-menu .ggo-messages__sheet-handle {
        display: none;
    }
    .ggo-messages__sheet.is-conversation-menu .ggo-messages__menu-head {
        padding-top: 4px;
    }
    .ggo-messages__sheet.is-conversation-menu .ggo-messages__sheet-separator {
        margin-right: -12px;
        margin-left: -12px;
    }
}

.ggo-messages__create-group-entry {
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    align-items: center;
    gap: 10px;
    width: calc(100% - 24px);
    margin: 10px 12px 4px;
    padding: 11px 12px;
    border: 1px solid #e5e8ee;
    border-radius: 16px;
    color: var(--ggo-msg-navy);
    background: #fffaf0;
    text-align: left;
    cursor: pointer;
}
.ggo-messages__create-group-entry > span:first-child {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #fff0c9;
    font-size: 21px;
}
.ggo-messages__create-group-entry > span:nth-child(2) {
    display: grid;
    gap: 2px;
}
.ggo-messages__create-group-entry strong { font-size: 15px; }
.ggo-messages__create-group-entry small { color: var(--ggo-msg-muted); font-size: 11px; }
.ggo-messages__create-group-entry i { color: #8b6a24; font-size: 24px; font-style: normal; text-align: center; }
@media (min-width: 720px) {
    .ggo-messages__sheet-backdrop.is-conversation-menu {
        background: rgba(6, 13, 27, .14);
    }
}

/* v0.1.516 · PC: el modal tiene 22px de margen exterior. No puede medir 100dvh
   además de ese margen, porque el compositor queda por debajo del viewport. */
@media (min-width: 720px) {
    .ggo-messages__app {
        height: calc(100vh - 44px);
        height: calc(100dvh - 44px);
        max-height: min(920px, calc(100dvh - 44px));
        min-height: 0;
    }
    .ggo-messages__composer {
        flex: 0 0 auto;
        bottom: 0;
    }
}

/* v0.1.520 · Android/ColorOS: el teclado puede reducir VisualViewport sin
   recalcular a tiempo 100dvh. Mientras el compositor tiene foco usamos la
   altura visual real, de modo que la barra de escritura queda por encima del
   teclado desde el primer toque, incluso antes de escribir el primer carácter. */
@media (max-width: 719px) {
    .ggo-messages.is-keyboard-active {
        align-items: flex-start;
    }

    .ggo-messages.is-keyboard-active .ggo-messages__app {
        height: var(--ggo-msg-visual-height, 100dvh);
        min-height: 0;
        max-height: var(--ggo-msg-visual-height, 100dvh);
    }

    .ggo-messages.is-keyboard-active .ggo-messages__content,
    .ggo-messages.is-keyboard-active .ggo-messages__content > section,
    .ggo-messages.is-keyboard-active .ggo-messages__thread {
        min-height: 0;
    }

    .ggo-messages.is-keyboard-active .ggo-messages__composer {
        position: sticky;
        bottom: 0;
        z-index: 6;
        padding-bottom: 8px;
        background: #fff;
        box-shadow: 0 -5px 18px rgba(13, 23, 44, .08);
    }
}

/* v0.1.521 · Adjuntos temporales de Mensajes separados de Mi Mochila. */
.ggo-messages__attach-policy{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:10px 12px;
    border:1px solid rgba(34,197,94,.20);
    border-radius:13px;
    background:#f4fbf6;
    color:#365247;
    font-size:12px;
    line-height:1.35;
}
.ggo-messages__attach-policy b{color:#166534;font-size:12px;font-weight:950}
.ggo-messages__attach-policy span{font-weight:650}

.ggo-messages__resource-card.is-message-attachment{
    border-color:rgba(220,165,74,.28);
    background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,249,238,.86));
}
.ggo-messages__resource-temp{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin:2px 6px 5px;
    padding-top:7px;
    border-top:1px solid rgba(15,23,42,.07);
    color:#667085;
    font-size:10.5px;
    font-weight:750;
}
.ggo-messages__resource-temp span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ggo-messages__resource-temp button{
    appearance:none;
    flex:0 0 auto;
    min-height:34px;
    padding:6px 9px;
    border:1px solid rgba(220,165,74,.42);
    border-radius:999px;
    background:#fff7e6;
    color:#7a520f;
    font:inherit;
    font-weight:900;
    cursor:pointer;
}
.ggo-messages__resource-temp button.is-saved{border-color:rgba(34,197,94,.28);background:#effaf2;color:#166534}
.ggo-messages__resource-media.is-expired{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-height:92px;
    padding:12px;
    border-radius:10px;
    background:#f8fafc;
    color:#667085;
    text-align:center;
}
.ggo-messages__resource-media.is-expired>span{font-size:20px}
.ggo-messages__resource-media.is-expired>b{color:#334155;font-size:12px}
.ggo-messages__resource-media.is-expired>small{font-size:10px;line-height:1.3}
.ggo-messages__resource-card.is-local .ggo-messages__resource-temp span{color:#166534}

@media(max-width:640px){
    .ggo-messages__resource-temp button{min-width:44px;min-height:40px}
}

/* v0.1.522 · Descarga manual de adjuntos tipo mensajería nativa. */
.ggo-messages__resource-media.is-download{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:148px;
    padding:18px;
    background:linear-gradient(145deg,#162033 0%,#0f172a 100%);
    color:#fff;
}
.ggo-messages__resource-media.is-download.is-audio,
.ggo-messages__resource-media.is-download.is-pdf,
.ggo-messages__resource-media.is-download.is-link{
    min-height:96px;
}
.ggo-messages__download-kind{
    position:absolute;
    inset:50% auto auto 50%;
    transform:translate(-50%,-50%);
    font-size:52px;
    line-height:1;
    opacity:.12;
    user-select:none;
    pointer-events:none;
}
.ggo-messages__resource-media.is-download.is-pdf .ggo-messages__download-kind{
    display:grid;
    place-items:center;
    width:58px;
    height:66px;
    border-radius:10px;
    background:#fff;
    color:#b42318;
    font-size:15px;
    font-weight:1000;
    opacity:.16;
}
.ggo-messages__download-attachment{
    --ggo-download-progress:0%;
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:72px;
    min-height:72px;
    padding:0;
    border:0;
    background:transparent;
    color:#fff;
    cursor:pointer;
    font:inherit;
}
.ggo-messages__download-attachment:disabled{cursor:default;opacity:.95}
.ggo-messages__download-ring{
    position:relative;
    display:grid;
    place-items:center;
    width:54px;
    height:54px;
    border-radius:50%;
    background:conic-gradient(#dca54a var(--ggo-download-progress),rgba(255,255,255,.24) 0);
    box-shadow:0 8px 22px rgba(0,0,0,.22);
}
.ggo-messages__download-ring::before{
    content:"";
    position:absolute;
    inset:4px;
    border-radius:50%;
    background:rgba(15,23,42,.94);
}
.ggo-messages__download-ring i{
    position:relative;
    z-index:1;
    display:grid;
    place-items:center;
    min-width:28px;
    min-height:28px;
    color:#fff;
    font-size:18px;
    font-style:normal;
    font-weight:950;
}
.ggo-messages__download-attachment small{
    max-width:120px;
    color:#e2e8f0;
    font-size:10.5px;
    font-weight:850;
    line-height:1.1;
    text-align:center;
}
.ggo-messages__resource-card.is-downloading .ggo-messages__resource-card-main{
    pointer-events:none;
}
.ggo-messages__resource-media.is-download.is-expired{
    flex-direction:row;
    justify-content:flex-start;
    gap:12px;
    min-height:88px;
    background:#f8fafc;
    color:#64748b;
    text-align:left;
}
.ggo-messages__resource-media.is-download.is-expired .ggo-messages__download-kind{
    position:static;
    flex:0 0 auto;
    transform:none;
    opacity:1;
    font-size:28px;
}
.ggo-messages__resource-media.is-download.is-expired .ggo-messages__download-copy{
    min-width:0;
}
.ggo-messages__resource-media.is-download.is-expired .ggo-messages__download-copy b{
    display:block;
    color:#334155;
    font-size:12px;
    font-weight:950;
}
.ggo-messages__resource-media.is-download.is-expired .ggo-messages__download-copy small{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:10px;
    line-height:1.3;
}
.ggo-messages__resource-media.is-file.is-local-media{
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:10px;
    align-items:center;
    min-height:72px;
    padding:10px;
    color:#fff!important;
}
.ggo-messages__resource-media.is-file.is-local-media>span{
    display:grid;
    place-items:center;
    width:44px;
    height:48px;
    border-radius:9px;
    background:rgba(255,255,255,.12);
    font-size:21px;
}
.ggo-messages__resource-media.is-file.is-local-media>b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ggo-messages__resource-media.is-file.is-local-media>em{grid-column:2;color:#cbd5e1;font-size:10px;font-style:normal}
@media(max-width:640px){
    .ggo-messages__resource-media.is-download{min-height:138px}
    .ggo-messages__download-ring{width:58px;height:58px}
    .ggo-messages__download-attachment{min-width:76px;min-height:76px}
}

/* v0.1.523 · Archivos y multimedia de cada conversación. */
.ggo-messages__media-screen{
    height:100%;overflow:auto;padding:12px 12px 22px;background:#f5f7fa;
    -webkit-overflow-scrolling:touch
}
.ggo-messages__media-summary{
    display:grid;gap:3px;margin-bottom:10px;padding:12px 14px;border:1px solid #e5e9f0;border-radius:16px;background:#fff
}
.ggo-messages__media-summary strong{color:var(--ggo-msg-navy);font-size:15px}
.ggo-messages__media-summary small{color:var(--ggo-msg-muted);font-size:11.5px;line-height:1.4}
.ggo-messages__media-filters{
    position:sticky;top:0;z-index:3;display:flex;gap:7px;overflow-x:auto;margin:0 -12px 10px;padding:8px 12px;
    background:rgba(245,247,250,.96);backdrop-filter:blur(8px);scrollbar-width:none
}
.ggo-messages__media-filters::-webkit-scrollbar{display:none}
.ggo-messages__media-filters button{
    flex:0 0 auto;min-height:40px;padding:8px 12px;border:1px solid #dde2ea;border-radius:999px;background:#fff;color:#4b5565;
    font:inherit;font-size:12px;font-weight:850;cursor:pointer
}
.ggo-messages__media-filters button b{margin-left:4px;color:#8a94a6;font-size:10px}
.ggo-messages__media-filters button.is-active{border-color:#dca54a;background:#fff5da;color:#6f4a0e}
.ggo-messages__media-list{display:grid;gap:8px}
.ggo-messages__media-item{
    display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e4e8ef;
    border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.035)
}
.ggo-messages__media-item.is-local{border-color:rgba(34,197,94,.24);background:#fbfffc}
.ggo-messages__media-item.is-expired:not(.is-local){border-color:rgba(185,28,28,.16);background:#fffafa}
.ggo-messages__media-item-icon{
    display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:#f2f4f7;font-size:23px
}
.ggo-messages__media-item-copy{min-width:0;display:grid;gap:3px}
.ggo-messages__media-item-copy strong{overflow:hidden;color:var(--ggo-msg-navy);font-size:13.5px;text-overflow:ellipsis;white-space:nowrap}
.ggo-messages__media-item-copy small{overflow:hidden;color:#7a8598;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
.ggo-messages__media-item-copy>span{color:#7a8598;font-size:10.5px;font-weight:750}
.ggo-messages__media-item.is-local .ggo-messages__media-item-copy>span{color:#16803b}
.ggo-messages__media-item-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;max-width:180px}
.ggo-messages__media-item-actions button{
    min-height:44px;padding:8px 10px;border:1px solid #e3e6eb;border-radius:10px;background:#fff;color:#334155;font:inherit;font-size:10.5px;font-weight:850;cursor:pointer
}
.ggo-messages__media-item-actions button[data-ggo-media-download]{border-color:#e5bd68;background:#fff7e7;color:#76500f}
.ggo-messages__media-item-actions button[disabled]{opacity:.58;cursor:not-allowed;background:#f8fafc;color:#7a8598}
.ggo-messages__media-empty{display:grid;place-items:center;gap:6px;min-height:220px;padding:24px;text-align:center;color:#7a8598}
.ggo-messages__media-empty>span{font-size:36px}.ggo-messages__media-empty strong{color:#273449;font-size:15px}.ggo-messages__media-empty p{max-width:330px;margin:0;font-size:12px;line-height:1.5}
.ggo-messages__local-viewer{
    position:absolute;inset:0;z-index:40;display:grid;place-items:center;padding:58px 14px 18px;background:rgba(4,10,20,.94)
}
.ggo-messages__local-viewer>button{
    position:absolute;top:12px;right:12px;display:grid;width:44px;height:44px;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(17,24,39,.78);color:#fff;font-size:28px;cursor:pointer
}
.ggo-messages__local-viewer img,.ggo-messages__local-viewer video{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px}
.ggo-messages__local-viewer iframe{width:100%;height:100%;border:0;border-radius:12px;background:#fff}
.ggo-messages__local-viewer-media{display:grid;width:100%;height:100%;place-items:center}.ggo-messages__local-viewer-media audio{width:min(520px,92%)}
@media(max-width:719px){
    .ggo-messages__media-item{grid-template-columns:44px minmax(0,1fr);align-items:start}
    .ggo-messages__media-item-icon{width:44px;height:44px}
    .ggo-messages__media-item-actions{grid-column:1/-1;justify-content:flex-start;max-width:none;padding-left:54px}
    .ggo-messages__media-item-actions button{min-height:44px}
}


/* v0.1.524 · Adjuntos de chat: la Mochila pasa a acción secundaria por pulsación larga. */
.ggo-messages__resource-temp:has(>span:only-child){justify-content:flex-start}
.ggo-messages__resource-card.is-message-attachment .ggo-messages__resource-copy>b{word-break:normal;overflow-wrap:anywhere}
