#view-messages {max-width:64rem;margin:1.2rem auto 3rem}
#view-messages h1,#view-messages h2 {margin:.25rem 0 .75rem}
#view-messages .btn {min-height:44px}
.soc-tabs,.soc-person-actions,.soc-pager {display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}
.soc-tabs [aria-pressed="true"] {color:#caffdc;border-color:#4bda8c;background:#14352a}
.soc-status {color:#bbedcf;margin:.35rem 0}.soc-status:empty {margin:0}
.soc-find,.soc-thread {background:var(--panel,#181626);border:1px solid #464157;border-radius:1rem;padding:clamp(.8rem,2vw,1.4rem);margin:.8rem 0}
.soc-find,.soc-compose {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem}
.soc-find label,.soc-compose label {grid-column:1/-1;font-weight:650}
.soc-find input,.soc-compose textarea {width:100%;min-width:0;min-height:44px;padding:.65rem;border:1px solid #635e72;border-radius:.55rem;background:#100e1a;color:#fbf8ff;font:inherit}
.soc-thread>h2 {margin:.8rem 0 .25rem!important;overflow-wrap:anywhere}
.soc-list,.soc-history {display:grid;gap:.5rem}
.soc-person,.soc-report {display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.soc-report {align-items:flex-start;flex-direction:column;padding:.6rem;border-bottom:1px solid #3c3947;overflow-wrap:anywhere}
#view-messages .soc-row {width:100%;text-align:left;display:grid;justify-content:stretch;align-items:center;justify-items:start;gap:.15rem;padding:.65rem .85rem;white-space:normal;overflow-wrap:anywhere}
.soc-row small,.soc-meta {color:#c1b9cf;font-weight:400}
.soc-history {max-height:min(55dvh,32rem);overflow:auto;overscroll-behavior:contain;margin:.8rem 0;padding:.4rem;scrollbar-gutter:stable;align-content:start}
.soc-bubble {justify-self:start;max-width:min(88%,38rem);min-width:0;background:#242033;border-radius:.8rem .8rem .8rem .2rem;padding:.4rem .65rem}
.soc-mine {justify-self:end;background:#17362d;border-radius:.8rem .8rem .2rem .8rem}
.soc-bubble p,.soc-report p {white-space:pre-wrap;overflow-wrap:anywhere;margin:.2rem 0}
.soc-meta {display:flex;align-items:center;flex-wrap:wrap;font-size:.84rem;gap:.5rem}
#view-messages .soc-meta button {background:none;border:0;font-size:.85rem;text-decoration:underline}
.soc-compose textarea {resize:vertical}
.soc-badge {font-size:.8rem;margin-left:.3rem;padding:.05rem .38rem;border-radius:2rem;background:#c6ffd9;color:#0b281a}
#view-messages [hidden],.soc-badge[hidden] {display:none!important}
@media(max-width:540px){.soc-tabs button {flex:1 1 auto}.soc-history {max-height:48dvh}.soc-bubble {max-width:94%}}
