/* Daily RC11: shared photo controls; no change to file names, limits or upload endpoints. */
.sd5-theme .sd-social-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;vertical-align:middle;line-height:1}.sd5-theme .sd-social-icon svg{display:block;width:20px;height:20px}
.sd5-theme .sd-photo-picker{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center;gap:7px;min-height:42px;width:max-content;max-width:100%;padding:8px 12px!important;border:1px solid #d4dfe2!important;border-radius:8px!important;background:#fff!important;color:#12677d!important;font-family:inherit;font-size:14px;font-weight:500;line-height:1.3;box-sizing:border-box;cursor:pointer;overflow:hidden;vertical-align:middle}
.sd5-theme .sd-photo-picker>span{display:inline-flex;align-items:center;font-size:14px;line-height:1.3}.sd5-theme .sd-photo-picker:focus-within{outline:2px solid #12677d;outline-offset:2px}.sd5-theme .sd-photo-picker.is-disabled{opacity:.55;cursor:not-allowed}
.sd5-theme .sd-photo-picker input.sd-photo-native{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;opacity:0!important;clip:auto!important;clip-path:none!important;z-index:2;cursor:pointer!important;padding:0!important;margin:0!important;border:0!important}
.sd5-theme .sd-photo-selection[hidden]{display:none!important}.sd5-theme .sd-photo-selection{box-sizing:border-box;min-width:0;width:100%;grid-column:1/-1;flex:0 0 100%;margin:6px 0 8px;display:grid;gap:6px}.sd5-theme .sd-photo-thumbs{display:flex;flex-wrap:wrap;gap:6px}.sd5-theme .sd-photo-thumbs img{display:block;width:76px;height:76px;object-fit:cover;border-radius:8px;background:#edf2f4;margin:0;max-width:100%}.sd5-theme .sd-photo-thumbs img[hidden]{display:none}.sd5-theme .sd-photo-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#62757d;overflow-wrap:anywhere}.sd5-theme .sd-photo-footer span{min-width:0}.sd5-theme button.sd-photo-clear{min-height:36px;border:0;background:transparent;color:#12677d;font-size:13px;font-weight:600;cursor:pointer;padding:5px 8px;white-space:nowrap;box-shadow:none}.sd5-theme .sd-photo-label .schat-attachment-preview{display:none!important}.sd5-theme .schat-private-file-picker.sd-photo-label{padding:0!important;border:0!important;background:none!important;font-size:0!important}.sd5-theme .schat-private-file-picker.sd-photo-label .sd-photo-picker{font-size:14px}.sd5-theme .schat-private-file-row:has(.sd-photo-picker) .schat-private-file-status{display:none}
/* Chat: same card, type, color and action language as Feed. Retain the live stream, polling and private thread. */
.sd5-theme .schat-app{--schat-blue:#12677d;--schat-ink:#193947;--schat-muted:#62757d;--schat-line:#d4dfe2;--schat-soft:#edf2f4;font-size:15px;line-height:1.45;max-width:1080px;margin:auto}
.sd5-theme .schat-page-shell{min-width:0}.sd5-theme .schat-hero{padding:0 0 12px;border:0;background:none;box-shadow:none;border-radius:0;gap:8px;align-items:center;flex-direction:row;flex-wrap:wrap}.sd5-theme .schat-hero h1{font-size:clamp(23px,4vw,32px);line-height:1.2;color:#193947;margin:0}.sd5-theme .schat-hero .schat-eyebrow,.sd5-theme .schat-hero p,.sd5-theme .schat-hero-status small{display:none}.sd5-theme .schat-hero-status{width:auto;min-width:0;padding:4px 8px;border:0;box-shadow:none;background:transparent;gap:5px;flex-shrink:0}.sd5-theme .schat-hero-status strong{font-size:12px;color:#62757d}
.sd5-theme .schat-section-tabs{display:flex;gap:6px;margin:0 0 12px;flex-wrap:wrap}.sd5-theme .schat-section-tab{border:1px solid #d4dfe2;background:#fff;color:#12677d;border-radius:8px;font-size:14px;padding:8px 12px;min-height:42px;flex:initial;font-weight:600}.sd5-theme .schat-section-tab.is-selected{background:#12677d;color:#fff;border-color:#12677d}
.sd5-theme .schat-layout{margin-top:0;gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,260px)}.sd5-theme .schat-main{gap:10px}.sd5-theme .schat-stream-card,.sd5-theme .schat-compose,.sd5-theme .schat-side-card,.sd5-theme .schat-private-panel{border:1px solid #d4dfe2;border-radius:12px;box-shadow:none;background:#fff}.sd5-theme .schat-stream-top{padding:10px 12px}.sd5-theme .schat-stream-top strong{font-size:14px}.sd5-theme .schat-stream-top>div>span{display:none}.sd5-theme .schat-refresh,.sd5-theme .schat-load-older{font-size:13px;color:#12677d;background:#fff;border:1px solid #d4dfe2;border-radius:8px;padding:6px 10px;min-height:36px}
.sd5-theme .schat-stream{background:#edf2f4;padding:8px;display:flex;flex-direction:column;gap:8px;min-height:220px;height:min(48vh,560px);max-height:560px}.sd5-theme .schat-read-only .schat-stream{height:auto;max-height:none;min-height:0}.sd5-theme .schat-message.sd-chat-message{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;background:white;border:1px solid #d4dfe2;border-radius:10px;padding:10px;flex:none;margin:0;box-shadow:none;overflow:visible}.sd5-theme .schat-message.is-highlighted{background:#edf7f8}.sd5-theme .schat-avatar{width:38px;height:38px}.sd5-theme .schat-avatar img{border-radius:50%}.sd5-theme .schat-message-head{display:flex;flex-wrap:wrap;gap:3px 8px;min-height:36px;padding:0 40px 0 0;margin:0;align-content:center;align-items:center}.sd5-theme .schat-message-head strong{font-size:15px;line-height:1.2;flex:1 1 100%;white-space:normal;overflow-wrap:anywhere}.sd5-theme .schat-message-meta{font-size:11px;gap:5px;color:#62757d}.sd5-theme .schat-message-head time{font-size:11px;margin:0;color:#62757d}.sd5-theme .schat-message-text{font-size:15px;line-height:1.45;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:8px 0;color:#193947;border-radius:0}.sd5-theme .schat-message-actions{border-top:1px solid #e7eef0;margin:8px 0 0;padding:2px 0 0;gap:10px;justify-content:flex-start}.sd5-theme .schat-message-actions button{border:0;background:none;color:#63757e;min-width:42px;min-height:42px;padding:5px 7px;font-size:14px;box-shadow:none}.sd5-theme .schat-message-actions .schat-like-btn.is-liked{color:#bd3546}.sd5-theme .schat-like-btn.is-liked svg{fill:currentColor}.sd5-theme .sd-chat-menu{position:absolute;right:8px;top:8px;margin:0;z-index:3}.sd5-theme .sd-chat-menu summary{display:grid;place-items:center;list-style:none;width:36px;height:36px;border-radius:8px;cursor:pointer;color:#63757e}.sd5-theme .sd-chat-menu summary::-webkit-details-marker{display:none}.sd5-theme .sd-chat-menu[open] summary{background:#edf2f4;color:#12677d}.sd5-theme .sd-chat-menu-panel{position:absolute;right:0;top:36px;width:160px;background:#fff;border:1px solid #d4dfe2;border-radius:8px;box-shadow:0 6px 20px #19394722;padding:4px}.sd5-theme .sd-chat-menu-panel button{display:block;width:100%;min-height:40px;padding:8px;text-align:left;background:white;color:#193947;border:0;font:inherit;font-size:13px;cursor:pointer}.sd5-theme .sd-chat-menu-panel button:hover{background:#edf2f4}.sd5-theme .schat-edit-form,.sd5-theme .schat-report-box{min-width:0;max-width:100%}
.sd5-theme .schat-compose{padding:10px 12px}.sd5-theme .schat-compose-head{margin:0 0 8px;align-items:center}.sd5-theme .schat-compose-head .schat-eyebrow,.sd5-theme .schat-writing-as{display:none}.sd5-theme .schat-compose-head h2{font-size:16px;margin:0;color:#193947}.sd5-theme .sd-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.sd5-theme .sd-chat-composer>.schat-field,.sd5-theme .sd-chat-composer>.schat-reply-box,.sd5-theme .sd-chat-composer>.schat-form-result,.sd5-theme .sd-chat-composer>.schat-private-result,.sd5-theme .sd-chat-composer>.schat-private-note{grid-column:1/-1;min-width:0;margin:0}.sd5-theme .sd-chat-composer>.schat-field>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sd5-theme .sd-chat-composer .schat-field textarea{width:100%;box-sizing:border-box;min-height:64px;height:64px;max-height:220px;resize:vertical;border:1px solid #d4dfe2;border-radius:12px;padding:10px;font:inherit;font-size:16px;background:#fff;color:#193947}.sd5-theme .sd-chat-composer .schat-field-foot small,.sd5-theme .sd-chat-composer .schat-form-foot>span,.sd5-theme .sd-chat-composer .schat-attach>span:not(.sd-photo-picker){display:none}.sd5-theme .sd-chat-composer .schat-field-foot{justify-content:flex-end;font-size:11px}.sd5-theme .sd-chat-composer>.schat-attach,.sd5-theme .sd-chat-composer>.schat-private-attach{grid-column:1;display:block;margin:0;border:0;padding:0;background:none;min-width:0}.sd5-theme .sd-chat-composer>.schat-form-foot,.sd5-theme .sd-chat-composer>.schat-private-actions{grid-column:2;grid-row:auto;justify-self:end;margin:0;align-self:start}.sd5-theme .sd-chat-composer>.sd-photo-selection{grid-column:1/-1;grid-row:auto}.sd5-theme .sd-chat-composer .schat-send{background:#12677d;color:white;border:0;border-radius:8px;width:44px!important;min-width:44px!important;min-height:42px;padding:8px;display:grid;place-items:center;box-shadow:none}.sd5-theme .sd-chat-composer .schat-form-result:empty{display:none}.sd5-theme .schat-private-attach-title{display:none}.sd5-theme .schat-private-panel{padding:12px;margin:0 0 10px}.sd5-theme .schat-private-heading h2{font-size:18px;color:#193947}.sd5-theme .schat-private-thread{background:#edf2f4}.sd5-theme .schat-private-message.from-user{background:#e5eff1;border-color:#d4dfe2}
@media(max-width:900px){.sd5-theme .schat-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.sd5-theme .schat-section-tab{font-size:13px;padding:8px 10px}.sd5-theme .schat-stream{height:42vh;min-height:210px;padding:6px}.sd5-theme .schat-message.sd-chat-message{grid-template-columns:34px minmax(0,1fr);padding:9px;gap:7px}.sd5-theme .schat-avatar{width:34px;height:34px}.sd5-theme .schat-hero h1{font-size:23px}.sd5-theme .schat-compose{padding:10px}.sd5-theme .sd-photo-thumbs img{width:64px;height:64px}}
.sd5-theme .sd-chat-composer>.schat-field{grid-row:2}.sd5-theme .sd-chat-composer>.schat-reply-box{grid-row:1}.sd5-theme .sd-chat-composer>.schat-attach,.sd5-theme .sd-chat-composer>.schat-private-attach,.sd5-theme .sd-chat-composer>.schat-form-foot,.sd5-theme .sd-chat-composer>.schat-private-actions{grid-row:3}.sd5-theme .sd-chat-composer>.sd-photo-selection{grid-row:4}.sd5-theme .sd-chat-composer>.schat-form-result,.sd5-theme .sd-chat-composer>.schat-private-note{grid-row:5}.sd5-theme .sd-chat-composer>.schat-private-result{grid-row:6}
.sd5-theme .schat-like-btn>span:first-child{color:inherit}.sd5-theme .schat-message:has(.sd-chat-menu[open]){z-index:4}.sd5-theme .sd-chat-menu summary:focus-visible{outline:2px solid #12677d;outline-offset:2px}.sd5-theme .sd-chat-menu-panel button:focus-visible{outline:2px solid #12677d;outline-offset:-2px}

/* RC12: mobile chat — compact composer, no nested stream card, accessible disclosures. */
.sd5-theme .sd-chat-side-disclosure{min-width:0}
.sd5-theme .sd-chat-side-disclosure>summary{display:none}
@media(max-width:700px){
 .sd5-theme .schat-layout{gap:8px}
 .sd5-theme .schat-main{gap:8px}
 .sd5-theme .schat-stream-card:not(.schat-read-only){background:transparent;border:0;border-radius:0;box-shadow:none}
 .sd5-theme .schat-stream-card:not(.schat-read-only) .schat-stream{background:transparent;padding:0 2px 2px;gap:7px}
 .sd5-theme .schat-stream-card:not(.schat-read-only) .schat-stream-top{padding:0 0 8px;border:0}
 .sd5-theme .schat-compose.sd-chat-compose-compact .schat-compose-head{display:none}
 .sd5-theme .schat-compose.sd-chat-compose-compact{padding:9px}
 .sd5-theme .schat-compose .sd-chat-composer .schat-field textarea{min-height:48px;height:48px;resize:vertical;padding:10px;font-size:16px}
 .sd5-theme .schat-compose .sd-chat-composer .schat-field:has(textarea:placeholder-shown) .schat-field-foot{display:none}
 .sd5-theme .schat-sidebar{gap:6px;grid-template-columns:minmax(0,1fr);position:static}
 .sd5-theme .sd-chat-side-disclosure{background:#fff;border:1px solid #d4dfe2;border-radius:10px}
 .sd5-theme .sd-chat-side-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;padding:8px 12px;min-height:42px;box-sizing:border-box;font-size:14px;font-weight:600;color:#12677d;cursor:pointer}
 .sd5-theme .sd-chat-side-disclosure>summary::-webkit-details-marker{display:none}
 .sd5-theme .sd-chat-side-disclosure>summary::after{content:'';width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 3px 4px 0}
 .sd5-theme .sd-chat-side-disclosure[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
 .sd5-theme .sd-chat-side-disclosure>summary:focus-visible{outline:2px solid #12677d;outline-offset:-3px;border-radius:8px}
 .sd5-theme .sd-chat-side-disclosure>.schat-side-card{border:0;border-top:1px solid #edf2f4;border-radius:0 0 10px 10px;padding:10px 12px;background:transparent}
 .sd5-theme .sd-chat-side-disclosure .schat-eyebrow{display:none}
 .sd5-theme .sd-chat-side-disclosure .schat-side-card h2{font-size:15px;margin:2px 0 4px}
 .sd5-theme .sd-chat-side-disclosure .schat-profile-avatar{height:36px;width:36px;border-radius:50%}
 .sd5-theme .sd-chat-side-disclosure .schat-online-users img{border-radius:50%}
 .sd5-theme .sd-chat-side-disclosure .schat-online-users{margin-top:5px}
}

/* RC13: visible reply and report actions; actual private-message notification status. */
.sd5-theme .schat-message-actions{flex-wrap:wrap;gap:3px 6px}
.sd5-theme .schat-message-actions .schat-reply-btn,.sd5-theme .schat-message-actions .schat-report-toggle{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:5px 4px;font-size:12px;line-height:1.2;white-space:nowrap;box-sizing:border-box}
.sd5-theme .schat-message-actions .schat-reply-btn .sd-social-icon svg{width:17px;height:17px}
.sd5-theme .schat-message-actions button.schat-report-toggle{background:transparent;border:0;color:#62757d!important;margin-left:auto!important;font-weight:500!important}
.sd5-theme .schat-message-actions button.schat-report-toggle[aria-expanded=true]{color:#a44350!important;background:#fff2f3}
.sd5-theme .sd-chat-notification-card .sd-chat-private-notification{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;padding:6px 0;margin:0;background:transparent;border:0;color:#12677d;font:inherit;font-size:14px;text-align:left;cursor:pointer;box-shadow:none}
.sd5-theme .sd-chat-private-unread{font-size:12px;color:#62757d;white-space:nowrap}
.sd5-theme .sd-chat-notification-card .schat-private-mail-setting{margin:8px 0 0}
@media(max-width:700px){.sd5-theme .sd-chat-notification-card>h2{display:none}}

/* RC15: keep the administrator conversation's send icon white, overriding
   the legacy .schat-private-actions span helper-text color. */
.sd5-theme .schat-private-form.sd-chat-composer .schat-private-actions .schat-send{
  display:grid;place-items:center;box-sizing:border-box;
  width:44px!important;height:44px;min-width:44px!important;min-height:44px;
  padding:0;background:#12677d;color:#fff;border:0;border-radius:8px;line-height:1;
}
.sd5-theme .schat-private-form.sd-chat-composer .schat-private-actions .schat-send .sd-social-icon{
  color:inherit;font-size:inherit;line-height:1;
}
.sd5-theme .schat-private-form.sd-chat-composer .schat-private-actions .schat-send .sd-social-icon svg{
  display:block;width:21px;height:21px;color:inherit;fill:none;stroke:currentColor;
}
.sd5-theme .schat-private-form.sd-chat-composer .schat-private-actions .schat-send:focus-visible{
  outline:2px solid #12677d;outline-offset:3px;
}
.sd5-theme .schat-private-form.sd-chat-composer .schat-private-actions .schat-send:disabled{
  opacity:.55;cursor:wait;
}

/* RC30: visual consistency across Community, Feed and Chat; no changes to handlers. */
.sd5-theme :is(.scc-wrap,.slf-feed,.schat-app){min-width:0;box-sizing:border-box}
.sd5-theme .scc-wrap{--scc-ink:#193947;--scc-muted:#516973;--scc-line:#d4dfe2;--scc-accent:#12677d}
.sd5-theme .slf-feed{--slf-ink:#193947;--slf-accent:#12677d;--slf-border:#d4dfe2}
.sd5-theme :is(.scc-wrap .scc-card,.slf-feed .slf-card){border-color:#d4dfe2;border-radius:12px;box-shadow:none;min-width:0}
.sd5-theme .scc-wrap .scc-profile-menu>a{min-height:48px;gap:12px;border-bottom-color:#d4dfe2;line-height:1.35}
.sd5-theme .scc-wrap .scc-profile-menu>a>span:first-child{min-width:0;overflow-wrap:anywhere}
.sd5-theme .scc-wrap .scc-profile-menu>a>span[aria-hidden=true]:last-child{flex:none;text-decoration:none!important;display:inline-block}
.sd5-theme .scc-wrap .scc-profile-menu>a>.scn-badge{color:#fff;font-size:11px;line-height:1;font-weight:700;flex:none}
.sd5-theme .scc-wrap .sco-context{grid-template-columns:repeat(2,minmax(0,1fr))}
.sd5-theme .scc-wrap .sco-context>a{min-width:0;text-decoration:none;line-height:1.3}
.sd5-theme .scc-wrap .scc-head>div{min-width:0;overflow-wrap:anywhere}
.sd5-theme .scc-wrap .scn-item.is-new{background:#eef3f5;border-radius:8px;padding:12px 10px;margin:5px 0;border:1px solid #dce5e8}
.sd5-theme .scc-wrap .scn-item.is-new .scn-dot{background:#12677d}
.sd5-theme .slf-feed .slf-tabs.slf-views{max-width:100%;min-width:0;gap:6px}
.sd5-theme .slf-feed .slf-tabs.slf-views>a{min-height:40px;line-height:1.25;text-decoration:none}
.sd5-theme .slf-feed .slf-comments>.slf-comment{background:#eef3f5;border-color:#dce5e8}
.sd5-theme .slf-feed .slf-entry>.slf-author>strong{min-width:0;overflow-wrap:anywhere}
.sd5-theme .slf-feed .slf-entry>.slf-author>strong a{overflow-wrap:anywhere}
.sd5-theme .slf-feed .slf-comment-input button{flex:none;min-width:44px;min-height:44px}
.sd5-theme .slf-feed .slf-comment-input textarea{min-width:0;margin:0}
.sd5-theme :is(.schat-app .schat-section-tabs,.scm-page .scm-tabs){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:100%;min-width:0;margin:0 0 12px}
.sd5-theme :is(.schat-app .schat-section-tab,.scm-page .scm-tabs>a,.scm-page .scm-tabs>span){display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;min-width:0;box-sizing:border-box;padding:8px 10px;border:1px solid #d4dfe2;border-radius:8px;background:#fff;color:#12677d;font-size:14px;font-weight:600;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
.sd5-theme :is(.schat-app .schat-section-tab.is-selected,.scm-page .scm-tabs>[aria-current=page]){background:#12677d;border-color:#12677d;color:#fff}
.sd5-theme .scm-page .scm-top{margin:0}
.sd5-theme .scm-page .scm-list,.sd5-theme .scm-page .scm-dialog-head{min-width:0}
.sd5-theme .scm-page .scm-person:focus-visible{outline-offset:-2px;border-radius:8px}
.sd5-theme .scm-page .scm-person:hover{background:#f4f8f9}
.sd5-theme .scm-page .scm-compose{align-items:flex-end}
.sd5-theme .scm-page .scm-compose textarea{min-width:0;margin:0;box-sizing:border-box}
.sd5-theme .scm-page .scm-compose>.scc-btn{flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:0!important;display:grid;place-items:center;background:#12677d;color:#fff;border-radius:8px;line-height:1}
.sd5-theme .scm-page .scm-bubble{border:1px solid #dce5e8;background:#eef3f5;min-width:0}
.sd5-theme .scm-page .scm-bubble.is-mine{background:#dceef0;border-color:#cce2e5}
.sd5-theme .scm-page .scm-bubble small{color:#516973}
@media(min-width:761px){
 .sd5-theme .scc-wrap:not(:has(.scc-profile-menu)),.sd5-theme .slf-feed,.sd5-theme .schat-app{width:100%;margin-inline:0;padding-inline:0}
 .sd5-theme .scc-wrap:not(:has(.scc-profile-menu)){max-width:880px}
 .sd5-theme .slf-feed{max-width:880px}
}
@media(max-width:760px){
 .sd5-theme .scc-wrap,.sd5-theme .slf-feed{width:100%;max-width:100%;margin-inline:0;padding-inline:0}
 .sd5-theme .slf-feed .slf-tabs.slf-views{display:flex;flex-flow:row nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 2px 4px}
 .sd5-theme .slf-feed .slf-tabs.slf-views>a{flex:0 0 auto;white-space:nowrap;outline-offset:-2px}
 .sd5-theme .slf-feed .slf-tabs.slf-views::-webkit-scrollbar{display:none}
}
@media(max-width:420px){
 .sd5-theme .slf-feed .slf-entry>.slf-author:has(>.slf-header-follow){grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:auto auto auto;row-gap:4px}
 .sd5-theme .slf-feed .slf-entry>.slf-author:has(>.slf-header-follow)>.slf-post-menu{grid-column:3}
 .sd5-theme .slf-feed .slf-entry>.slf-author>.slf-header-follow{grid-column:2/4;grid-row:3;justify-self:start;max-width:100%}
 .sd5-theme .slf-feed .slf-header-follow .scc-social-button{white-space:normal;min-height:36px}
}
@media(max-width:350px){.sd5-theme .scc-wrap .sco-context>a{font-size:13px;padding-inline:3px}.sd5-theme .scc-wrap .scc-card{padding:14px}}
@media(max-width:700px){
 .sd5-theme .sd-chat-side-disclosure>summary::after{content:'+';width:auto;height:auto;border:0;transform:none;margin:0;font-size:20px;line-height:1}
 .sd5-theme .sd-chat-side-disclosure[open]>summary::after{content:'−';transform:none;margin:0}
}

/* RC31 — one compact action menu per public message, shared photo plus in all conversations. */
.sd5-theme .schat-stream .schat-message.sd-chat-message{padding:7px 8px;gap:6px;grid-template-columns:32px minmax(0,1fr)}
.sd5-theme .schat-stream .schat-message .schat-avatar{width:32px;height:32px}
.sd5-theme .schat-stream .schat-message-head{min-height:0;padding:0;gap:2px 6px}
.sd5-theme .schat-stream .schat-message-head strong{font-size:14px}
.sd5-theme .schat-stream .schat-message-text{font-size:14px;line-height:1.35;margin:4px 0 1px}
.sd5-theme .schat-stream .schat-message:has(.sd-tap-menu){cursor:pointer}
.sd5-theme .sd-tap-menu{position:absolute;top:0;right:0;width:0;height:0;margin:0;z-index:auto}
.sd5-theme .sd-tap-menu>summary{position:absolute;top:0;right:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}
.sd5-theme .sd-tap-menu>summary:focus-visible{width:36px;height:36px;overflow:visible;clip-path:none;outline:2px solid #12677d;background:#fff;z-index:2}
.sd5-theme .sd-tap-menu:not([open])>.schat-message-actions{display:none!important}
.sd5-theme .sd-tap-menu[open]>.schat-message-actions{position:fixed;z-index:10001;width:190px;max-width:calc(100vw - 16px);display:flex;flex-direction:column;align-items:stretch;overflow-y:auto;overscroll-behavior:contain;gap:0;box-sizing:border-box;margin:0;padding:4px;border:1px solid #d4dfe2;border-radius:10px;background:#fff;box-shadow:0 6px 24px #19394730}
.sd5-theme .sd-tap-menu[open]>.schat-message-actions button{width:100%;min-height:40px;padding:8px 10px;margin:0!important;justify-content:flex-start;text-align:left;border:0;background:#fff;box-shadow:none;font-size:14px;line-height:1.25;white-space:normal}
.sd5-theme .sd-tap-menu[open]>.schat-message-actions button:hover,.sd5-theme .sd-tap-menu[open]>.schat-message-actions button:focus-visible{background:#edf2f4}
.sd5-theme .schat-private-thread .schat-private-message{padding:6px 9px;border-radius:10px;line-height:1.35;margin:0;max-width:88%}
.sd5-theme .schat-private-thread .schat-private-message-meta{gap:4px;margin:0 0 3px;line-height:1.2;font-size:11px}
.sd5-theme .schat-private-thread .schat-private-text{font-size:14px;line-height:1.35}
.sd5-theme .sd-photo-picker.sd-chat-photo-plus{width:44px!important;height:44px;min-height:44px;padding:0!important;gap:0}
.sd5-theme .sd-chat-photo-plus .sd-chat-plus-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sd5-theme .sd-chat-photo-plus .sd-social-icon svg{width:23px;height:23px}
.sd5-theme .sd-chat-composer{grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:6px}
.sd5-theme .sd-chat-composer>.schat-field{grid-row:2;grid-column:2;min-width:0}
.sd5-theme .sd-chat-composer>.schat-attach,.sd5-theme .sd-chat-composer>.schat-private-attach{grid-row:2;grid-column:1;align-self:start}
.sd5-theme .sd-chat-composer>.schat-form-foot,.sd5-theme .sd-chat-composer>.schat-private-actions{grid-row:2;grid-column:3;align-self:start}
.sd5-theme .sd-chat-composer .schat-field textarea{min-height:44px;height:44px;padding:9px;font-size:16px;resize:vertical}
.sd5-theme .sd-chat-composer .schat-field-foot{margin:2px 0 0}
.sd5-theme .sd-chat-composer>.sd-photo-selection{grid-column:1/-1;grid-row:3}
.sd5-theme .sd-chat-composer>.schat-private-note{grid-row:4}
.sd5-theme .sd-chat-composer>.schat-form-result,.sd5-theme .sd-chat-composer>.schat-private-result{grid-row:5}
.sd5-theme .scm-dialog .scm-compose{align-items:flex-end;gap:6px}
.sd5-theme .scm-dialog .scm-compose>.scm-photo-picker{flex:0 0 44px;width:44px;align-self:flex-end;margin:0!important;display:block}
.sd5-theme .scm-dialog .scm-compose>.scm-photo-picker[hidden]{display:none!important}
.sd5-theme .scm-dialog .scm-photo-picker:has(.sd-chat-photo-plus)>small{display:none}
.sd5-theme .scm-form:has(.scm-photo-picker[hidden])>.sd-photo-selection{display:none!important}
.sd5-theme .scm-dialog .scm-compose textarea{min-height:44px;line-height:1.35}

.sd5-theme .sd-chat-like-tally{font-size:11px;color:#a34151;line-height:1.2}.sd5-theme .sd-chat-like-tally[hidden]{display:none!important}


/* RC32 — same single-line starting height for all chat composers. */
.sd5-theme .sd-chat-composer .schat-field textarea,
.sd5-theme .schat-compose .sd-chat-composer .schat-field textarea,
.sd5-theme .scc-wrap.scm-page .scm-dialog .scm-compose textarea{
  display:block;box-sizing:border-box;width:100%;min-width:0;
  height:44px;min-height:44px;max-height:132px;margin:0;
  padding:10px 9px;border-radius:12px;font-size:16px;line-height:22px;
  resize:none;overflow-y:auto;
}
@supports (field-sizing:content){
 .sd5-theme .sd-chat-composer .schat-field textarea,
 .sd5-theme .schat-compose .sd-chat-composer .schat-field textarea,
 .sd5-theme .scc-wrap.scm-page .scm-dialog .scm-compose textarea{field-sizing:content;height:auto}
}
.sd5-theme .sd-chat-composer>.schat-form-foot,.sd5-theme .sd-chat-composer>.schat-private-actions{align-self:start}
.sd5-theme .sd-chat-composer .schat-send,.sd5-theme .scm-page .scm-compose>.scc-btn{
 box-sizing:border-box;height:44px;min-height:44px;width:44px;min-width:44px;padding:0!important;line-height:1;
}
.sd5-theme .scm-dialog .scm-compose{align-items:flex-start}
.sd5-theme .scm-dialog .scm-compose>.scm-photo-picker{align-self:flex-start;line-height:0}
.sd5-theme .scm-dialog .scm-compose>.scc-btn{align-self:flex-start;margin:0}
.sd5-theme .sd-chat-composer .sd-photo-picker.sd-chat-photo-plus,.sd5-theme .scm-compose .sd-photo-picker.sd-chat-photo-plus{vertical-align:top}

/* RC33: larger public stream; read-only pages remain naturally sized. */
.sd5-theme .schat-stream-card:not(.schat-read-only) .schat-stream{height:min(76vh,920px);min-height:500px;max-height:920px;overscroll-behavior-y:auto;}
@media(max-width:700px){.sd5-theme .schat-stream-card:not(.schat-read-only) .schat-stream{height:74vh;height:74svh;min-height:340px;max-height:none;}}
.sd5-theme .schat-stream .schat-message-head{padding-right:0}
.sd5-theme .schat-message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;margin:5px 0 0;padding-top:3px;}
.sd5-theme .schat-message-actions button,.sd5-theme .schat-message-actions button.schat-edit-toggle,.sd5-theme .schat-message-actions button.schat-report-toggle{min-width:0;min-height:36px;font-size:12px;padding:4px 2px;background:transparent;border:0;margin:0!important;white-space:normal;}
.sd5-theme .schat-message-actions button.schat-delete-own{color:#984d4b;}
.sd5-theme .schat-reactions{min-width:0;max-width:100%;margin:0;}
.sd5-theme .schat-reaction-summary{cursor:pointer;list-style:none;color:#146779;font-size:12px;padding:8px 3px;min-height:36px;box-sizing:border-box;line-height:1.35;overflow-wrap:anywhere;}
.sd5-theme .schat-reaction-summary::-webkit-details-marker{display:none}
.sd5-theme .schat-reaction-options{display:flex;flex-wrap:wrap;gap:4px;max-width:100%;}
.sd5-theme .schat-reaction-options button{display:inline-flex;align-items:center;gap:2px;min-height:38px;min-width:32px;padding:4px;background:#fff;border:1px solid #d4dfe2;border-radius:8px;font-size:17px;cursor:pointer;}
.sd5-theme .schat-reaction-options button[aria-pressed=true]{border-color:#12677d;background:#e0eef0;}
.sd5-theme .schat-reaction-options button small{font-size:11px;}
.sd5-theme .schat-reactions:not([open]) .schat-reaction-options{display:none!important}
.sd5-theme .schat-private-reaction{display:inline-block;background:#fff9;border-radius:12px;padding:3px 6px;}


.sd5-theme .schat-message-actions .schat-reactions[open]{flex-basis:100%;order:5;}
.sd5-theme .schat-message-actions .schat-reactions[open] .schat-reaction-options button{min-width:34px;min-height:36px;font-size:17px;}
