/* SwappyPan 2.8: unified inbox and chronological user conversations. */
.swim-inbox{display:grid;gap:12px;width:100%;clear:both}
.swim-inbox-row{position:relative;min-width:0;border:1px solid #dce5e9;border-radius:16px;background:#fff;overflow:hidden}
.swim-inbox-row.swim-unread{border-left:5px solid #ff8a1d;background:#f1fbfd}
.swim-inbox-link{display:flex!important;align-items:center;gap:14px;padding:18px 48px 18px 16px;color:#17344a!important;text-decoration:none!important;min-width:0}
.swim-inbox-link>img{width:52px!important;height:52px!important;border-radius:50%;object-fit:cover;flex-shrink:0}
.swim-inbox-text{display:grid;gap:6px;min-width:0;flex:1}
.swim-inbox-text>strong{font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.swim-inbox-text>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#465b6a}
.swim-inbox-text>small{font-size:12px;color:#596b78}
.swim-count{background:#ff8a1d;color:#102638;border-radius:30px;padding:5px 9px;font-size:13px;flex-shrink:0}
.swim-block{position:absolute;right:6px;top:50%;transform:translateY(-50%);padding:10px;color:#657780!important}
.swim-inbox-link:focus-visible,.swim-toolbar a:focus-visible{outline:3px solid #ff8a1d;outline-offset:-3px}
.swim-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.swim-toolbar{display:flex;flex-wrap:wrap;gap:8px;clear:both;margin:0 0 16px;width:100%}
.swim-toolbar>a,.swim-older{display:inline-block;padding:10px 14px;border-radius:10px;background:#e5f7fb;color:#125b70!important;text-decoration:none;font-size:14px;font-weight:600;line-height:1.4}
body .swim-conversation .im-table.im-messages.im-body{max-height:65vh;min-height:120px;overflow-y:auto;overflow-x:hidden;padding:18px 12px 28px;box-sizing:border-box;scrollbar-gutter:stable;overscroll-behavior:contain}
body .swim-conversation .im-messages .im-table-row{max-width:calc(100% - 54px);clear:both;overflow-wrap:anywhere}
body .swim-conversation .im-table-row>.swim-context,.swim-compose-context>.swim-context{display:flex;align-items:center;gap:10px;float:none;clear:both;width:100%;padding:10px;margin:0 0 12px;border-radius:10px;background:#fff;color:#19384a;box-sizing:border-box;border:1px solid #dce7ec}
.swim-context>img{width:48px!important;height:48px!important;object-fit:cover;border-radius:8px;flex-shrink:0}
.swim-context>div{min-width:0;display:grid;gap:3px;flex:1}
.swim-context small{font-size:11px;line-height:1.3;color:#596b78}
body .swim-conversation .swim-context a,.swim-context strong{font-size:13px;line-height:1.4;color:#17485b!important;overflow-wrap:anywhere;text-decoration:none;font-weight:600}
body .swim-conversation .swim-context .swim-offer{color:#9b4700!important;text-decoration:underline}
.swim-compose-context{float:left;width:100%;clear:both;margin:16px 0 12px;padding:16px;border-radius:14px;background:#f0f9fb;border:1px solid #cce6ec;box-sizing:border-box}
.swim-compose-context label{display:block!important;width:100%!important;float:none!important;font-size:14px!important;font-weight:700;color:#17344a;margin:0 0 8px!important}
.swim-compose-context select{display:block!important;width:100%!important;max-width:100%;height:auto!important;min-height:44px;background:#fff;color:#17344a;padding:10px;border:1px solid #adc8d3;border-radius:8px;margin:0 0 10px}
.swim-compose-context .swim-context{margin:0!important}
.swim-settings{padding-top:12px;font-size:13px;color:#38586a}
.swim-settings summary{cursor:pointer;line-height:1.5}
.swim-settings a{display:inline-block;padding:10px 0;color:#125b70}
.swim-older{float:left;clear:both;margin:0 0 20px;width:100%;text-align:center;box-sizing:border-box;background:#fff0df;color:#773b04!important}
@media(max-width:540px){.swim-inbox-link{gap:10px;padding:14px 40px 14px 12px}.swim-inbox-link>img{width:42px!important;height:42px!important}.swim-inbox-text>strong{font-size:16px}.swim-compose-context{padding:12px}body .swim-conversation .im-messages .im-table-row{padding:10px 12px 2px;max-width:calc(100% - 50px)}.swim-toolbar>a{flex:1;text-align:center;padding:10px 8px;font-size:13px}}
.swim-settings a{display:block}
/* 2.8.1: reply is above the scrollable history, never underneath the mobile bar. */
body .swim-conversation .swim-reply-panel{display:flow-root;float:left;clear:both;width:100%;box-sizing:border-box;padding:14px;margin:0 0 16px;border:1px solid #cce6ec;background:#f0f9fb;border-radius:14px}
body .swim-conversation .swim-compose-context{border:0;padding:0;margin:0 0 10px;background:transparent}
body .swim-conversation #im-message-form{display:flow-root!important;position:relative!important;float:none!important;clear:both;width:100%!important;margin:0!important;padding:0!important}
body .swim-conversation #im-message-form .im-logged-user-img{display:none!important}
body .swim-conversation #im-message-form .swim-write-label{display:block;float:none;color:#17344a;font-size:14px;font-weight:700;margin:0 0 7px}
body .swim-conversation #im-message-form #im-message{display:block!important;position:static!important;min-height:85px;height:85px;max-height:220px;padding:12px!important;font-size:16px!important;line-height:1.5!important;color:#17344a!important;background:white!important;width:100%!important;box-sizing:border-box;overflow-y:auto;margin:0 0 10px}
body .swim-conversation #im-message-form button:not(.im-button-alt){display:block!important;position:static!important;float:right!important;width:auto!important;min-width:140px;min-height:44px;height:auto!important;margin:0;padding:12px 18px;border-radius:10px;background:#0d9ecc!important;color:white!important}
body .swim-conversation #im-message-form button.im-button-alt{display:none!important}
body .swim-conversation #im-message-form .im-attachment{position:static!important;float:left!important;max-width:calc(100% - 150px);margin:0!important;height:44px}
body .swim-conversation .im-table.im-messages.im-body{max-height:55vh;max-height:55dvh}
body .swim-conversation{padding-bottom:90px}
/* 2.8.3: single history followed by a compact composer. */
body .swim-conversation .im-alt-head{margin-bottom:14px}
body .swim-conversation .im-alt-head .im-head2{padding-right:0}
body .swim-conversation .im-table.im-messages.im-body{max-height:50vh;max-height:50dvh;min-height:150px;margin-bottom:0}
body .swim-conversation .swim-reply-panel{margin-top:8px;padding:10px}
body .swim-conversation #im-message-form #im-message{min-height:65px;height:65px}
body .swim-conversation .swim-older{padding:6px;background:transparent;font-size:12px;text-decoration:underline;border-radius:0}
@media(max-width:540px){body .swim-conversation .im-table.im-messages.im-body{max-height:clamp(160px,calc(100dvh - 400px),350px)}body .swim-conversation .im-alt-head .im-head2{font-size:20px;line-height:1.3}body .swim-conversation .im-alt-head .im-subhead2{font-size:12px}body .swim-conversation #im-message-form .swim-write-label{display:none}}
/* SwappyPan: reachable composer at every viewport width. */
@media(min-width:0px){
 body .swim-conversation .im-table.im-messages.im-body{overscroll-behavior-y:auto!important;min-height:100px!important;max-height:30vh!important;max-height:30svh!important;}
 body .swim-conversation .swim-reply-panel{position:sticky!important;bottom:8px;bottom:calc(8px + var(--swp-app-history-offset,env(safe-area-inset-bottom,0px)));z-index:20;float:none!important;clear:both;box-shadow:0 -5px 16px rgba(18,54,77,.10);scroll-margin-bottom:80px;}
}

