/* The speaking character has one fixed appearance, separate from logos and stamps. */
.oru-character-art {
    display: block;
    flex: none;
}
[data-oru-character] {
    display: inline-flex;
    flex: none;
}
.oru-voice-message {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
}
.oru-voice-character {
    display: block;
    width: 40px;
    height: 40px;
    margin-top: 4px;
}
.oru-voice-message:not(.oru-voice-has-message) {
    grid-template-columns: minmax(0, 1fr);
}
.oru-voice-message:not(.oru-voice-has-message) > .oru-voice-character {
    display: none;
}
.oru-voice-bubble {
    position: relative;
    min-width: 0;
    border: 1px solid var(--oru-accent-line);
    border-radius: 4px 16px 16px 16px;
    background: var(--oru-accent-soft);
    padding: 14px 16px;
    overflow-wrap: anywhere;
}
.oru-voice-has-message > .oru-voice-bubble::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 17px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border-left: 1px solid var(--oru-accent-line);
    border-bottom: 1px solid var(--oru-accent-line);
    background: var(--oru-accent-soft);
}
.oru-thread-oru-turn.oru-voice-message,
.inhwa-read-surface #panel-read-reaction.oru-voice-message,
.inhwa-read-surface .oru-thread-oru-turn.oru-voice-message {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}
.inhwa-read-surface .oru-thread-oru-turn.oru-thread-closing.oru-voice-message::before {
    content: none;
}
.oru-thread-closing > .oru-voice-bubble {
    border-top-width: 2px;
}
/* The reading reply uses the full card width. Its speaker belongs to the
   heading, so long text and care/retry controls do not lose an avatar column. */
.inhwa-read-surface #panel-read-reaction.oru-voice-message {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
#panel-read-reaction .oru-reaction-heading {
    min-height: 32px;
}
#panel-read-reaction .oru-reaction-heading > .oru-voice-character,
#panel-read-reaction .oru-reaction-heading .oru-character-art {
    width: 32px;
    height: 32px;
    margin-top: 0;
}
#panel-read-reaction:not(.oru-voice-has-message) .oru-voice-character {
    display: none;
}
#panel-read-reaction > .oru-voice-bubble {
    border-radius: 16px;
}
#panel-read-reaction > .oru-voice-bubble::before {
    content: none;
}
.oru-home-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
}
.oru-home-greeting .home-daily-hub-invitation {
    margin: 0;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--oru-border-subtle);
    border-radius: 4px 14px 14px 14px;
    background: var(--oru-surface-ivory);
}
.oru-letter-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    color: var(--oru-text-muted);
    font-size: 13px;
    line-height: 1.65;
}
.oru-letter-greeting p {
    min-width: 0;
    margin: 0;
}
/* Keep the letter and its controls readable when the user's text is enlarged. */
#monthly-report-modal > div {
    min-width: 0;
}
#monthly-modal-letter .monthly-letter-header,
#monthly-modal-letter .monthly-letter-header > div {
    flex-wrap: wrap;
    min-width: 0;
}
#monthly-modal-letter .monthly-letter-header > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
/* Respect the existing visibility state even though these rows use flex/grid. */
.oru-voice-message.hidden,
.oru-letter-greeting.hidden,
[data-oru-character].hidden {
    display: none;
}
@media (max-width: 359px) {
    .oru-voice-message {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 8px;
    }
    .oru-voice-character,
    .oru-voice-character .oru-character-art {
        width: 32px;
        height: 32px;
    }
    .oru-voice-bubble {
        padding: 12px;
    }
}
