/* Information prototype 5242:5790: category tabs, inbox cards, detail preview. */
#s .game-wrapper.ui-flat-v2 .pane.center .messages-panel { background: #f2f2f7; border-radius: 16px; }
#s .messages-panel .messages-heading-icon {
    background: #fff;
    -webkit-mask: url('../images/new/menu/messages.png') center / contain no-repeat;
    mask: url('../images/new/menu/messages.png') center / contain no-repeat;
}
#s .messages-workspace { position: absolute; inset: 64px 0 0; display: flex; flex-direction: column; min-height: 0; color: #1e1e1e; font-size: 13px; }
#s .messages-categories { display: flex; flex: 0 0 40px; align-items: flex-end; gap: 12px; padding: 12px 24px 0; box-sizing: border-box; }
#s .messages-categories button { display: flex; align-items: center; gap: 4px; height: 28px; padding: 6px 16px; border: 0; border-radius: .7rem .7rem 0 0; background: #e5e5ea; color: #8e8e93; font: inherit; font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer; }
#s .messages-categories button[aria-pressed="true"] { background: #fff; color: #1e1e1e; }
#s [data-unread-count] { display: inline-flex; justify-content: center; align-items: center; min-width: 13px; height: 13px; padding: 0 3px; box-sizing: border-box; border-radius: 50%; color: #fff; background: #ff5c5c; font-size: 10px; line-height: 1; }
#s [data-unread-count][hidden] { display: none; }
#s .messages-columns { display: grid; grid-template-columns: 36% minmax(0, 1fr); flex: 1; min-height: 0; padding: 24px; gap: 18px; border-radius: .7rem .7rem 0 0; background: #fff; }
#s .messages-workspace:not(.messages-has-detail) .messages-columns { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
#s .message-detail[hidden] { display: none; }
#s .message-item-loading { position: absolute; inset: 0; border-radius: inherit; background: inherit; pointer-events: none; }
#s .message-item-loading .recalculate-artwork { top: 50%; left: 50%; margin: -12px 0 0 -12px; }
#s .message-item[data-message-overlay="true"][aria-busy="true"] .message-type-icon::before { opacity: 0; }
#s .message-item-loading > svg { display: block; width: 100%; height: 100%; }
#s .messages-sidebar { min-width: 0; overflow-y: auto; margin-left: -12px; padding: 0 2px 0 12px; width: calc(100% + 12px); box-sizing: border-box; scrollbar-width: thin; }
#s .message-item { --message-tint: #e0eef4; --message-accent: #00749c; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0 0 6px; padding: 12px; box-sizing: border-box; border: 1px solid transparent; border-radius: .7rem; background: var(--message-tint); color: #1e1e1e; text-align: left; font: inherit; cursor: pointer; }
#s .message-kind-newspaper { --message-tint: #fcf8f5; --message-accent: #dfc8b5; }
#s .message-kind-research { --message-tint: #faede6; --message-accent: #cb632e; }
#s .message-kind-event { --message-tint: #eaf5f7; --message-accent: #50aabb; }
#s .message-item[aria-pressed="true"] { border-color: #50b5cb; }
#s .message-item[data-message-unread="false"] { color: #8e8e93; }
#s .message-item:hover { box-shadow: inset 0 0 0 1px #50b5cb; }
#s .message-item-title { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; line-height: 20px; }
#s .message-type-icon { position: relative; flex: 0 0 32px; height: 32px; border-radius: 6px; background: var(--message-accent); }
#s .message-type-icon::before { content: ''; position: absolute; inset: 6px; background: #fff; -webkit-mask: url('../images/new/messages/envelope.svg') center / contain no-repeat; mask: url('../images/new/messages/envelope.svg') center / contain no-repeat; }
#s .message-kind-newspaper .message-type-icon::before { -webkit-mask-image: url('../images/new/messages/newspaper.svg'); mask-image: url('../images/new/messages/newspaper.svg'); }
#s .message-kind-research .message-type-icon::before { -webkit-mask-image: url('../images/new/messages/research.svg'); mask-image: url('../images/new/messages/research.svg'); }
#s .message-kind-event .message-type-icon::before { -webkit-mask-image: url('../images/new/messages/filmstrip.svg'); mask-image: url('../images/new/messages/filmstrip.svg'); }
#s .message-item[aria-pressed="true"] .message-type-icon { background: #fff; }
#s .message-item[aria-pressed="true"] .message-type-icon::before { background: var(--message-accent); }
#s .message-unread-dot { position: absolute; left: -12px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: #50b5cb; }
#s .message-item[data-message-unread="false"] .message-unread-dot { display: none; }
#s .message-detail { position: relative; min-width: 0; overflow: auto; padding: 20px; border-radius: 12px; background: #f2f2f7; scrollbar-width: thin; }
#s .message-detail-copy { display: flex; flex-direction: column; min-height: 100%; }
#s .message-detail .message-content { color: #1e1e1e; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
#s .message-detail .message-content p { margin: 0 0 7px; font-size: inherit; }
#s .message-detail .message-content img { max-width: 100%; height: auto; }
#s .message-detail .message-content table { max-width: 100%; }
#s .message-detail .message-goto { align-self: flex-end; margin: auto 0 0; padding: 8px 16px; border: 0; border-radius: 2rem; background: #50b5cb; color: #fff; font: inherit; font-size: 12px; font-weight: 600; line-height: 16px; cursor: pointer; box-shadow: none; }
#s .message-select-prompt, #s .messages-list-empty { margin: 0; color: #8e8e93; line-height: 1.6; }
#s .messages-list-empty[hidden], #s .message-item[hidden], #s .message-detail-state[hidden] { display: none; }
#s .message-detail-state { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: 1rem; border-radius: .7rem; background: #fff; color: #00507b; }
#s .message-detail-state.is-error { color: #a83c38; }
#s .message-detail[aria-busy="true"] { overflow: hidden; }
#s .message-detail[aria-busy="true"] .message-detail-copy { display: none; }
#s .message-detail[aria-busy="true"] .message-detail-state {
    position: absolute;
    inset: 0;
    justify-content: center;
    margin: 0;
    padding: 2rem;
    background: transparent;
}
#s .message-item:focus-visible, #s .messages-categories button:focus-visible { outline: 2px solid #00507b; outline-offset: -2px; }
@media (max-width: 900px) {
    #s .messages-columns { padding: 16px; gap: 12px; grid-template-columns: 38% minmax(0,1fr); }
    #s .message-item { gap: 8px; padding: 10px; }
    #s .message-detail { padding: 14px; }
}
@media (max-width: 480px) {
    #s .messages-columns { grid-template-columns: 1fr; grid-template-rows: minmax(100px, 35%) minmax(0, 1fr); }
}
