/* Действия свайпа существуют только на мобильных экранах. На десктопе меню
   открывается правой кнопкой мыши через обработчик contextmenu. */
.chat-swipe-actions,.chat-read-cue{display:none}

/* Явные строки предотвращают попадание composer в растягиваемую строку,
   когда блок закреплённого сообщения скрыт через display:none. */
@media(min-width:701px){
  .conversation{height:100%!important;max-height:100vh!important;min-height:0!important;overflow:hidden!important;grid-template-rows:78px auto minmax(0,1fr) auto!important}
  .conversation-header{grid-row:1}.pinned-message{grid-row:2}.messages{grid-row:3;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
  .conversation>.composer{grid-row:4;align-self:end!important;box-sizing:border-box;min-height:50px!important;max-height:76px!important;width:auto!important;margin:10px clamp(18px,4vw,50px) max(12px,env(safe-area-inset-bottom))!important;padding:5px!important}
  .composer input{height:38px!important;min-height:38px!important;align-self:center}
  .composer>#attach-button{display:grid!important;place-items:center;width:38px!important;height:38px!important;padding:0!important;line-height:1}
  .composer>#attach-button .ui-svg-icon{display:block;width:23px!important;height:23px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
}
.session-device-icon .ui-svg-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rail .brand+.icon-button{margin-top:46px}
.rail .icon-button:not(:first-of-type).active{margin-top:0!important}
.passkey-button{width:100%;height:44px;margin-top:10px;border:1px solid #78983e;border-radius:12px;background:linear-gradient(145deg,#17271d,#2f4935);color:#d7ff77;font-weight:800;box-shadow:0 8px 24px #1320192b}.passkey-button:active{transform:scale(.98)}
.rail .icon-button{position:relative;transition:color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease}.rail .icon-button:hover,.rail .icon-button.rail-action-selected{background:#cfff5718;color:#cfff57;box-shadow:inset 0 0 0 1px #cfff5730,0 7px 22px #0003;transform:translateY(-1px)}.rail .icon-button.rail-action-selected:after{content:"";position:absolute;right:-8px;width:4px;height:18px;border-radius:4px;background:#cfff57;box-shadow:0 0 12px #cfff57}.rail .icon-button.active.rail-action-selected{margin-top:46px}.rail-search-highlight{animation:rail-search-focus .85s ease both}@keyframes rail-search-focus{35%{border-color:#b8ec50;box-shadow:0 0 0 5px #cfff5728}100%{box-shadow:0 0 0 0 #cfff5700}}

@media(max-width:700px){
  .chat-swipe-actions{display:flex}.chat-read-cue{display:grid}
  .composer{min-height:0;max-height:none}
  .composer input{height:auto;min-height:38px}
}
