/* SENSOY24 Update 37 */

.application-message-entry-card {
    margin-top: 22px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.application-message-entry-card h2 { margin: 5px 0; }
.application-message-entry-card p { margin: 0; color: #68737e; }

.application-message-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}
.application-message-thread,
.application-message-info-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.application-message-thread { padding: 22px; }
.message-bubbles { display: grid; gap: 10px; }
.message-bubble {
    width: min(78%, 720px);
    padding: 13px 15px;
    border-radius: 14px;
}
.message-bubble.is-own {
    margin-left: auto;
    background: #111;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.message-bubble.is-other {
    margin-right: auto;
    background: #f1f3f5;
    color: #111;
    border-bottom-left-radius: 4px;
}
.message-bubble-meta {
    margin-bottom: 6px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    font-size: 11px;
    opacity: .75;
}
.message-bubble-text { line-height: 1.55; word-break: break-word; }
.message-compose-box {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.message-compose-box label { display: grid; gap: 7px; font-weight: 800; }
.message-compose-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}
.message-compose-actions span { color: #73808b; font-size: 12px; }
.application-message-side { display: grid; gap: 14px; }
.application-message-info-card { padding: 20px; }
.application-message-info-card h2 { margin: 5px 0; }
.message-safety-note p { line-height: 1.55; color: #68737e; }

.message-inbox-list { display: grid; }
.message-inbox-row {
    padding: 17px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}
.message-inbox-row.has-unread { background: #f8fafc; }
.message-inbox-main { min-width: 0; }
.message-inbox-title { display: flex; gap: 8px; align-items: center; }
.message-inbox-main > span { display: block; margin-top: 4px; color: #66717d; font-size: 12px; }
.message-inbox-main p { margin: 7px 0 0; color: #65707b; }
.message-inbox-row time { color: #75808a; font-size: 12px; white-space: nowrap; }
.unread-message-count,
.application-message-link span {
    padding: 3px 6px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}
.application-message-link { display: inline-flex; gap: 5px; align-items: center; }

@media (max-width: 850px) {
    .application-message-layout { grid-template-columns: 1fr; }
    .application-message-entry-card { align-items: stretch; flex-direction: column; }
    .message-bubble { width: 90%; }
}
@media (max-width: 600px) {
    .message-inbox-row { flex-direction: column; }
    .message-compose-actions { align-items: stretch; flex-direction: column; }
    .message-bubble { width: 96%; }
}
