/* Message sizing and profile UI for ICHat Private v4; visual changes only. */
#messages{align-items:stretch!important;min-width:0}.profile-message-row{display:flex;align-items:flex-end;gap:9px;width:100%;min-width:0;flex-shrink:0}.profile-message-row.mine{flex-direction:row-reverse;justify-content:flex-start}.profile-message-row>.bubble,.profile-message-row>.bubble.mine{flex:0 1 auto;align-self:auto!important;width:fit-content!important;min-width:88px;max-width:min(76%,600px)!important;min-height:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;margin:0}.profile-message-row .bubble time{width:auto;min-width:40px}.message-avatar-button{display:flex;align-items:center;justify-content:center;flex:0 0 31px;width:31px;height:31px;border-radius:50%;padding:0!important;margin:0 0 2px;background:linear-gradient(145deg,#659cc4,#3c6b92);border:1px solid #ffffff15;color:#eef7ff;font-size:12px;font-weight:500;cursor:pointer}.profile-message-row.mine .message-avatar-button{background:linear-gradient(145deg,#817ab2,#5c5788)}.message-avatar-button:hover{filter:brightness(1.15)}.message-sender{display:block;width:fit-content;max-width:100%;padding:0!important;margin:0 0 4px;border-radius:0;background:transparent!important;color:#8bc3ed;font-size:11px;line-height:1.5;font-weight:500;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mine .message-sender{color:#bbd8ef}.message-sender:hover{text-decoration:underline}.profile-clickable{cursor:pointer}.profile-clickable:focus-visible,.message-sender:focus-visible,.message-avatar-button:focus-visible{outline:2px solid #8ecbf3;outline-offset:3px}.profile-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.profile-settings{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0 0 14px;padding:10px 11px!important;border:1px solid #36536b;background:#23394c;color:#a9cee8;border-radius:9px;font-size:12px;width:100%;box-sizing:border-box}.profile-settings:hover{background:#2e4b63}.profile-dialog-title{font-size:13px;font-weight:500;color:#9ab7cc;margin:0 0 16px}.profile-card{text-align:center;padding:5px 10px 20px}.profile-avatar{display:flex;align-items:center;justify-content:center;width:77px;height:77px;border-radius:50%;margin:0 auto 14px;background:linear-gradient(145deg,#6db4e2,#3f78aa);color:white;font-size:30px;font-weight:500;box-shadow:0 5px 20px #0002}.profile-card h2{font-size:22px;font-weight:600;margin:0}.profile-card .profile-handle{font-size:12px;color:#88abc6;margin:6px 0 0}.profile-tabs{display:flex;gap:8px;border-bottom:1px solid #34495b;margin-bottom:6px;padding-bottom:11px}.profile-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;font-size:12px;border:1px solid transparent;background:transparent;color:#92a9bc;margin:0!important;padding:9px!important}.profile-tabs button.active{background:#2d4c65;border-color:#3a6380;color:#d9eaf6}.profile-tabs .profile-icon{width:16px;height:16px}.profile-details{max-height:36vh;overflow:auto;padding-right:4px}.profile-field{padding:11px 0;border-bottom:1px solid #33465777}.profile-field small{font-size:10px;color:#7f9ab0;margin-bottom:4px}.profile-field>div{font-size:12px;line-height:1.6;color:#d4e2ed;overflow-wrap:anywhere}.profile-action{display:flex;align-items:center;gap:9px;width:100%;justify-content:flex-start;background:#263d51;color:#a9d5f4;margin:10px 0 0!important;padding:11px!important;font-size:12px}.profile-action .profile-icon{width:17px;height:17px}.profile-switch{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.5;color:#bdd1e1;padding:15px 0}.profile-switch input{accent-color:#76b5e2;width:15px;height:15px}.profile-dialog-body{min-width:0}#dialog{max-height:90dvh;overflow:auto}#dialog-close{margin-top:18px}.bubble a{white-space:normal;overflow-wrap:anywhere;max-width:100%}@media(max-width:700px){.profile-message-row{gap:6px}.profile-message-row>.bubble,.profile-message-row>.bubble.mine{min-width:78px;max-width:calc(100% - 33px)!important}.message-avatar-button{flex-basis:25px;width:25px;height:25px;font-size:10px}.message-sender{font-size:10px}.profile-settings{font-size:10px;padding:8px 5px!important;gap:5px}.profile-settings .profile-icon{width:15px;height:15px}.profile-card{padding-bottom:14px}.profile-avatar{width:65px;height:65px;font-size:25px}.profile-card h2{font-size:20px}.profile-details{max-height:38vh}}
