.dispatchSignin {
  display:grid; align-items:center; min-height:100dvh;
  width:min(1040px,100%); margin:auto; padding:24px;
}
.dispatchAccess {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  overflow:hidden; background:var(--sidebar); border:1px solid var(--line); border-radius:20px;
}
.dispatchAccessForm { display:grid; gap:12px; padding:clamp(22px,5vw,52px) }
.dispatchAccessForm h1 { font:600 clamp(26px,4vw,36px)/1.13 var(--sans); letter-spacing:-.03em; margin:0 }
.dispatchAccessForm p { color:var(--muted); margin:0 }
.dispatchAccessForm form { display:grid; gap:12px; margin-top:6px }
.dispatchAccessForm label { display:grid; gap:4px; font-size:14px; color:var(--muted) }
.dispatchAccessForm select { width:100%; min-width:0; color:var(--ink); background:var(--bg) }
.dispatchAccessForm button { margin-top:4px }
.dispatchAccessBack { display:flex; align-items:center; min-height:44px; color:var(--pale); font-size:14px }
.dispatchAccessArt { background:url(assets/neuro.webp) 60% center / cover }
.dispatchAccessArt[data-direction=STALKER] { background-image:url(assets/stalker.webp) }
.dispatchServerLink {
  display:grid; grid-template-columns:20px minmax(0,1fr) 18px; align-items:center; gap:12px;
  width:100%; min-height:58px; padding:8px 13px; margin-bottom:12px; text-align:start; background:var(--panel);
}
.dispatchServerLink span { display:grid; line-height:1.35 }
.dispatchServerLink small { color:var(--muted); font-size:12px }
.dispatchContext > span { color:var(--muted); font:600 13px/1.2 var(--mono) }
.worldWidgetControl {
  position:absolute; inset:4px 4px auto auto; display:grid; place-items:center;
  width:44px; height:44px; padding:0; color:#f0f5ff; background:#101a25d9; border:0
}
.worldWidgetControl:hover { background:var(--panel) }

.dispatchCommunity { grid-template-columns:clamp(190px,24%,260px) minmax(0,1fr) }
.dispatchChatRail {
  display:flex; flex-direction:column; gap:10px; padding:10px 8px; overflow:auto;
}
.dispatchRailTop { padding-bottom:8px; border-bottom:1px solid var(--line) }
.dispatchRailLabel { color:var(--muted); font-size:12px; margin:12px 8px 4px }
.dispatchChatLink {
  display:flex; align-items:center; gap:8px; min-height:44px; padding:6px 8px;
  border-radius:var(--radius-control); color:var(--muted); font-size:14px;
}
.dispatchChatLink svg { width:17px; height:17px; color:var(--pale) }
.dispatchChatLink:is(:hover,[aria-current]), .dispatchDirect:is(:hover,[aria-current]) {
  background:var(--tint); color:var(--ink);
}
.dispatchChatTabs { display:none }
.dispatchUnread {
  display:inline-grid; place-items:center; min-width:20px; min-height:20px;
  padding:0 4px; margin-inline-start:auto; border-radius:20px;
  background:var(--pale); color:var(--bg); font:600 11px/1 var(--sans);
}
.dispatchUnread[hidden], .dispatchContact[hidden], .dispatchEmpty[hidden] { display:none }
.dispatchDirectory {
  overflow:auto; min-width:0; min-height:0; padding:16px;
}
.dispatchDirectoryHead { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-bottom:12px }
.dispatchDirectoryHead h1 { margin:0; font:600 clamp(22px,3vw,34px)/1.15 var(--sans); letter-spacing:-.03em }
.dispatchDirectoryHead > span { color:var(--pale); font:600 12px var(--mono) }
.dispatchDirectoryHead > .dispatchChatLink { padding-inline:0 6px }
.dispatchDirectory h2 { font-size:15px; color:var(--muted); margin:16px 0 6px }
.dispatchChannelDirectory { display:grid; gap:3px; max-width:540px }
.dispatchChannelDirectory .dispatchChatLink { background:var(--sidebar); border:1px solid var(--line); color:var(--ink) }
.dispatchChannelDirectory .dispatchChatLink:hover { background:var(--tint) }
.dispatchDirect {
  display:grid; grid-template-columns:34px minmax(0,1fr) auto 16px; align-items:center;
  gap:10px; min-height:52px; padding:6px 8px; border-radius:var(--radius-control);
}
.dispatchDirect > span:nth-child(2) { display:grid; overflow:hidden; min-width:0 }
.dispatchDirect b,.dispatchDirect small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
.dispatchDirect small { color:var(--muted); font-size:12px }
.dispatchDirect > svg { width:16px; height:16px; justify-self:end; grid-column:4 }
.dispatchDirect:focus-visible { outline-offset:-2px }
.dispatchInbox .dispatchDirect { min-height:64px; border-bottom:1px solid var(--line); padding-inline:10px }
.dispatchFace {
  position:relative; display:grid; place-items:center; width:34px; height:34px; border-radius:50%;
  background:var(--soft); color:var(--pale); font-weight:600; flex:none;
}
.dispatchFace[data-person=grach] { background:#294355; color:#c2edff }
.dispatchFace[data-person=vega] { background:#45374f; color:#ead3fa }
.dispatchFace[data-person=olha] { background:#534128; color:#ffddac }
.dispatchFace i {
  position:absolute; inset:auto 0 0 auto; width:10px; height:10px; border-radius:50%;
  background:#91dfac; border:2px solid var(--sidebar);
}
.dispatchContacts { margin:0; padding:0; list-style:none }
.dispatchContact {
  display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center;
  gap:8px; padding:8px 2px; min-height:60px; border-bottom:1px solid var(--line);
}
.dispatchContactName { min-width:0; display:grid; line-height:1.35 }
.dispatchContactName small { color:var(--muted); font-size:12px }
.dispatchContactActions { display:flex; align-items:center; gap:4px; flex-wrap:wrap }
.dispatchContactActions :is(a,button) {
  display:inline-flex; align-items:center; gap:4px; padding:4px 8px;
  min-height:44px; font-size:13px;
}
.dispatchContactActions a, .dispatchContactActions [data-friend-action=accept] { color:var(--pale); background:var(--tint); border-radius:var(--radius-control) }
.dispatchContactActions svg { width:15px; height:15px }
.dispatchPeopleSearch { display:flex; align-items:center; gap:8px; max-width:450px; margin-bottom:8px; color:var(--pale) }
.dispatchPeopleSearch input { width:100%; min-width:0 }
.dispatchFriendTools { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px }
.dispatchFriendTools a { border:1px solid var(--line); color:var(--ink) }
.dispatchEmpty { margin:8px 0; color:var(--muted) }
.dispatchConversation .chatHeading { min-height:58px; justify-content:flex-start; gap:8px }
.dispatchConversation .chatHeading > label { margin-inline-start:auto }
.dispatchChatIdentity { display:flex; gap:8px; align-items:center; min-width:0 }
.dispatchChatTitle { min-width:0; flex:1 }
.dispatchConversation .dispatchChatTitle h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.dispatchChatTitle small { display:block; line-height:1.2; color:var(--muted); font-size:12px }
.dispatchChannelFace { background:var(--tint) }
.dispatchChannelFace svg { width:17px; height:17px }
.dispatchChatBack { display:none }
.dispatchChatBack svg { transform:rotate(180deg) }
.dispatchPinned {
  display:flex; flex:none; align-items:center; gap:4px; min-height:44px;
  margin:4px 8px 0; padding:0 2px 0 0;
  background:var(--sidebar); border:1px solid var(--line); border-inline-start:3px solid var(--accent);
  border-radius:var(--radius-control);
}
.dispatchPinned[hidden] { display:none }
.dispatchPinned button { border:0; background:none }
.dispatchPinned button:hover { background:var(--soft) }
.dispatchPinned .dispatchPinJump {
  display:flex; flex:1; align-items:center; gap:8px; min-width:0; padding:3px 8px; text-align:start;
}
.dispatchPinJump svg { width:16px; height:16px; color:var(--pale) }
.dispatchPinJump span { display:grid; min-width:0; line-height:1.25 }
.dispatchPinJump b { color:var(--pale); font-size:12px }
.dispatchPinJump small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:12px }
.dispatchPinned .dispatchPinRemove { display:grid; place-items:center; flex:none; width:44px; padding:0; color:var(--muted); font-size:16px }
.dispatchConversation .chatMessage:focus .chatMessageContent { outline:2px solid var(--pale); outline-offset:2px }
.dispatchTicketIdentity { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; column-gap:8px }
.dispatchTicketIdentity .dispatchFace svg { width:17px; height:17px }
.dispatchTicketIdentity > div { min-width:0 }
.dispatchTicketIdentity h1 {
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-height:none; font-size:clamp(16px,2vw,21px)
}
.dispatchTicketMeta { display:flex; align-items:center; min-width:0; gap:5px; margin-top:2px }
.dispatchTicketMeta small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--muted) }
.dispatchTicketMeta .ticketStatus { min-width:0; padding:2px 6px; white-space:nowrap; font-size:11px }
.ticketMessage:has(.ticketPinButton:not([hidden])) { position:relative; max-width:min(calc(100% - 44px),72ch) }
.ticketPinButton {
  position:absolute; inset-inline-start:100%; top:50%; transform:translateY(-50%);
  display:grid; place-items:center; width:44px; padding:0; color:var(--muted); background:none; border:0
}
.ticketMessage[data-own=true] .ticketPinButton { inset-inline-start:auto; inset-inline-end:100% }
.ticketPinButton svg { width:15px; height:15px }
.ticketPinButton:is(:hover,[aria-pressed=true]) { color:var(--pale); background:var(--soft) }
.ticketMessage:focus { outline:2px solid var(--pale); outline-offset:2px }
@media (hover:hover) and (pointer:fine) {
  .ticketMessage:not(:hover):not(:focus-within) .ticketPinButton[aria-pressed=false] { opacity:.58 }
}
.dispatchChatTools { position:relative; margin-inline-start:auto }
.dispatchChatTools summary {
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  list-style:none; color:var(--muted); border-radius:var(--radius-control);
}
.dispatchChatTools summary::-webkit-details-marker { display:none }
.dispatchChatTools summary:hover, .dispatchChatTools[open] summary { color:var(--ink); background:var(--soft) }
.dispatchChatTools > div {
  position:absolute; z-index:5; inset-block-start:100%; inset-inline-end:0;
  width:max-content; max-width:76vw; padding:8px; border:1px solid var(--rule);
  background:var(--panel); border-radius:var(--radius-control);
}
.dispatchChatTools .chatHeadingLabel { position:static; width:auto; height:auto; clip-path:none; overflow:visible }
.dispatchChatTools .chatHeadingLabel + select { min-width:92px }
.dispatchChatTools label { max-width:none }
.chatAuthorProfile:hover { text-decoration:underline; text-underline-offset:2px }
.dispatchConversation .chatLog { display:flex; flex-direction:column }
.dispatchConversation .chatLog > li { flex:none }
.dispatchConversation .chatLog > :first-child { margin-block-start:auto }
body[data-design=dispatch]:has(.dispatchConversation) #toast { bottom:90px }
@media (max-width:860px) {
  .dispatchCommunity { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) }
  .dispatchCommunity.dispatchListing { grid-template-rows:auto minmax(0,1fr) }
  .dispatchChatTabs {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px;
    background:var(--sidebar); padding:4px; border-bottom:1px solid var(--line);
  }
  .dispatchChatTabs .dispatchChatLink { justify-content:center; gap:4px; padding-inline:4px }
  .dispatchChatTabs .dispatchUnread { margin-inline-start:0 }
  .dispatchDirectory { padding:12px 10px }
  .dispatchChatBack {
    display:grid; width:44px; min-height:44px; place-items:center; flex:none;
    border-radius:var(--radius-control); color:var(--pale);
  }
  .dispatchChatBack:hover { background:var(--soft) }
  body[data-design=dispatch] .workspace:has(.dispatchConversation,.ticketDesk[data-open=true]) > :is(.globalHeader,.bottom,.journalFoot) { display:none }
  body[data-design=dispatch] .workspace #main:has(.dispatchConversation,.ticketDesk[data-open=true]) {
    width:100%; padding:0; min-height:0
  }
  body[data-design=dispatch] #main:has(.ticketDesk[data-open=true]) .operator-crumb { display:none }
  [data-design=dispatch] :is(.dispatchConversation,.ticketDesk[data-open=true]) {
    margin:0; border:0; border-radius:0
  }
  [data-design=dispatch] .ticketDesk[data-open=true] { grid-template-columns:minmax(0,1fr); gap:0 }
  [data-design=dispatch] .ticketDesk[data-open=true] .ticketInbox { display:none }
  [data-design=dispatch] .ticketThread { border:0; border-radius:0 }
  [data-design=dispatch] .ticketThread .ticketBack { display:inline-flex }
  [data-design=dispatch] .ticketThread .ticketTools summary span { display:none }
  .dispatchConversation .chatHeading {
    min-height:50px; gap:5px; padding:calc(2px + env(safe-area-inset-top)) 6px 2px 2px
  }
  .dispatchConversation .chatHeading h1, [data-design=dispatch] .ticketHeading h1 { font-size:16px }
  .dispatchConversation .dispatchChatIdentity .dispatchFace { width:32px; height:32px }
  .dispatchChatTitle small { font-size:11px }
  .dispatchConversation .chatMessage p, [data-design=dispatch] .ticketMessage p { font-size:15px; line-height:1.36 }
  .dispatchConversation .chatByline b { font-size:13px }
  .dispatchConversation .chatMessageContent { padding:5px 8px }
  .dispatchConversation .chatLog { padding-block:5px }
  [data-design=dispatch] .ticketThread .ticketHead {
    padding:calc(3px + env(safe-area-inset-top)) 6px 3px 4px; gap:4px
  }
  .dispatchTicketIdentity { grid-template-columns:30px minmax(0,1fr); column-gap:6px }
  .dispatchTicketIdentity .dispatchFace { width:30px; height:30px }
  .dispatchTicketMeta small { font-size:11px }
  [data-design=dispatch] .ticketThread .ticketHeading > small { display:none }
  .dispatchConversation #communityCompose, [data-design=dispatch] .ticketThread .ticketComposer {
    padding:5px 8px max(5px,env(safe-area-inset-bottom))
  }
  body[data-design=dispatch]:has(.dispatchConversation,.ticketDesk[data-open=true]) #toast {
    bottom:calc(68px + env(safe-area-inset-bottom))
  }
}
@media (max-width:680px) {
  body[data-design=dispatch] .workspace .dispatchContext {
    position:absolute; width:1px; height:1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%)
  }
  [data-design=dispatch] .worldIdentity h2 { padding-inline-end:40px }
}
@media (max-width:600px) {
  .dispatchSignin { padding:16px }
  .dispatchAccess { grid-template-columns:minmax(0,1fr) }
  .dispatchAccessArt { grid-row:1; height:clamp(80px,18vh,136px); background-position:center 45% }
  .dispatchConversation .chatHeading select { max-width:108px; font-size:12px; padding-inline:4px }
}
@media (max-width:390px) {
  .dispatchChatTabs .dispatchChatLink svg { display:none }
  .dispatchContactActions :is(a,button) { padding-inline:5px; font-size:12px }
  .dispatchContactActions svg { display:none }
}
