/* R10 private inbox: readable controls, per-user deletion and ten-item pagination. */
.inbox-actions,.message-thread-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.inbox-actions form,.message-thread-actions form,.bubble-actions form{margin:0}.inbox-actions{margin:16px 0}.notifications-r10 .notification-row{display:flex;align-items:start;justify-content:space-between;gap:14px;padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.notifications-r10 .notification-row>div{min-width:0}.notifications-r10 .notification-row.unread{border-left:3px solid var(--accent);padding-left:13px}.notification-row time,.inbox time{display:block;font-size:12px;color:var(--muted);margin:6px 0}.notification-row p{margin:5px 0}.inbox-count{display:inline-grid;place-items:center;margin-left:8px;border-radius:999px;min-width:22px;height:22px;padding:0 5px;background:var(--accent);color:#fff;font:700 11px/1 Arial,sans-serif}.messages-inbox-r10 .inbox>a{grid-template-columns:44px minmax(0,1fr);align-items:start}.inbox p{overflow-wrap:anywhere}.inbox-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:18px 0}.message-start-form{padding:20px;display:grid;gap:12px}.thread-history{padding:10px 16px;border-bottom:1px solid var(--line)}.thread-history p{font-size:12px;margin:0;color:var(--muted)}.thread-history .pagination{margin:10px 0 0}.message-thread-actions{padding:14px;border-top:1px solid var(--line);background:var(--surface)}.message-thread-actions>p{flex-basis:100%;margin:0;color:var(--muted);font-size:12px}.thread-report{position:relative}.thread-report form{padding:12px 0;display:grid;gap:10px;max-width:100%}.thread-report summary{list-style:none;cursor:pointer}.messages-list .bubble{max-width:min(80%,680px);min-width:140px}.bubble>time{font-size:11px;opacity:.8;margin-top:6px}.bubble-actions{display:flex;flex-wrap:wrap;align-items:start;gap:14px;margin-top:6px;border-top:1px solid #8883;padding-top:5px}.bubble-actions button,.bubble-actions summary{border:0;background:transparent;color:inherit;font:inherit;font-size:11px;padding:4px 0;text-decoration:underline;cursor:pointer}.bubble-actions details form{display:grid;gap:6px}.bubble-actions select{width:100%;font:inherit;font-size:12px;border:1px solid var(--line);border-radius:5px;padding:5px;background:var(--surface);color:var(--text)}.message-blocked-notice{padding:15px;color:var(--muted);margin:0}.composer .sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.module-messages .messages-list{min-height:200px;max-height:60dvh}.module-messages .composer textarea{font-family:inherit;font-size:16px}
@media(max-width:900px){.module-chat:has(.irc) .mobile-nav{display:grid!important;position:fixed!important;bottom:0!important;z-index:120!important}.module-chat:has(.irc) .page-shell{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}.module-chat:has(.irc) .irc{height:var(--chat-room-height,calc(var(--chat-vh,100dvh) - 230px - env(safe-area-inset-bottom)))!important;min-height:160px!important;width:100%!important;max-width:100%!important;margin:0!important}.module-chat .irc-compose{padding-bottom:10px!important}.module-chat .chat-msg-meta time{white-space:nowrap;font-size:10px}.module-messages .thread{margin:0}.module-messages .message-thread-actions{gap:8px}.module-messages .message-thread-actions>.thread-report,.module-messages .message-thread-actions>form{flex:1 1 calc(50% - 8px)}.message-thread-actions .btn{width:100%;min-height:44px;font-size:13px;padding:10px}.messages-inbox-r10>.section-head{align-items:start;gap:10px}.messages-inbox-r10>.section-head h1{font-size:28px}.messages-inbox-r10>.section-head p{font-size:12px}.messages-inbox-r10>.section-head .btn{font-size:12px;white-space:nowrap}.notifications-r10 .section-head{flex-wrap:wrap}.module-messages .messages-list{padding:12px;max-height:50dvh}.messages-list .bubble{max-width:90%}.inbox-actions .btn{font-size:12px;min-height:44px}.composer{grid-template-columns:minmax(0,1fr) auto}.composer button{padding:10px}.module-notifications .page-shell,.module-messages .page-shell{padding-bottom:calc(100px + env(safe-area-inset-bottom))}}

/* R12: conversation actions live in the header; messages stay uncluttered. */
.module-messages .private-thread-header{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;background:var(--surface);padding:16px}
.private-thread-header .thread-back{display:grid;place-items:center;flex:0 0 28px;min-height:36px;text-decoration:none;font-size:23px;color:var(--text)}
.private-thread-header .msg-avatar{flex:0 0 44px}
.private-thread-header .thread-person{display:grid;gap:3px;flex:1 1 100px;min-width:0}
.thread-person strong,.thread-person small{overflow-wrap:anywhere}
.private-thread-header .thread-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
.private-thread-header .thread-header-actions form{margin:0}
.thread-header-actions .btn{min-height:38px;padding:9px 12px;font:600 13px/1.2 var(--font-body,Arial,sans-serif);white-space:nowrap}
.thread-header-actions .thread-delete{color:var(--accent)}
.private-thread-header .thread-report-panel{flex:0 0 100%;border-top:1px solid var(--line);padding-top:16px;margin-top:4px}
.private-thread-header .thread-report-panel[hidden]{display:none}
.private-thread-header .thread-report-panel form{display:grid;gap:12px;margin:0}
.thread-report-panel label{display:grid;gap:6px;font-size:13px;font-weight:600}
.thread-report-panel label span{font-size:12px;font-weight:400;color:var(--muted)}
.thread-report-panel .select,.thread-report-panel .textarea{width:100%;min-width:0}
.thread-report-panel .btn{justify-self:start}
.private-thread-r12 .messages-list .bubble{overflow-wrap:anywhere}
@media(max-width:600px){.module-messages .private-thread-header{padding:12px}.private-thread-header .thread-header-actions{flex:0 0 100%;justify-content:flex-end;margin-left:0;padding-top:2px}.thread-header-actions .btn{min-height:40px}.private-thread-header .thread-report-panel{margin-top:2px}.private-thread-r12 .thread-history{padding:9px 12px}.private-thread-r12 .thread-history p{font-size:11px}}

.inbox-header-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.inbox-header-actions form{margin:0}.inbox-header-actions .btn{font-size:13px}.blocked-people-list{overflow:hidden}.blocked-people-list article{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--line)}.blocked-people-list article:last-child{border-bottom:0}.blocked-people-list article>div{min-width:0;overflow-wrap:anywhere}.blocked-people-list small{display:block;color:var(--muted);margin-top:4px}.blocked-people-list form{margin:0}.blocked-people-list button{font-size:13px}.message-blocked-notice a{color:var(--accent);text-decoration:underline}@media(max-width:600px){.messages-inbox-r10>.section-head{flex-wrap:wrap}.inbox-header-actions{width:100%}.inbox-header-actions .btn{min-height:40px;font-size:12px}.blocked-people-r12 .section-head h1{font-size:25px}.blocked-people-list article{padding:14px}}

@media(max-width:900px){.module-messages .private-thread-r12 .messages-list{height:var(--private-list-height,calc(100dvh - 490px));min-height:72px;max-height:none}.private-thread-r12 .composer{scroll-margin-bottom:calc(112px + env(safe-area-inset-bottom));background:var(--surface)}.private-thread-r12 .composer textarea{min-width:0}.private-thread-r12 .thread-report-panel{max-height:45dvh;overflow-y:auto;overscroll-behavior:contain}}
