.login-layer[hidden] {
  display: none !important;
}

#support .split {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
}

body.support-mode {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.support-mode main {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 10px;
  overflow: hidden;
}

body.support-mode main > header {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

body.support-mode main > header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

body.support-mode main > header small {
  display: none;
}

#support.active {
  flex: 1 1 auto;
  min-height: 0;
}

#support .support-toolbar {
  min-height: 28px;
  margin: 0 0 3px;
}

#support .split {
  height: calc(100% - 31px);
  min-height: 0;
}

#support .split > div {
  min-height: 0;
}

#support .split > div:last-child {
  display: flex;
  flex-direction: column;
}

#support .split h3 {
  flex: 0 0 auto;
  margin: 0 0 6px;
  font-size: 14px;
}

.support-preview-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.support-preview-heading h3 {
  margin: 0 !important;
}

.support-preview-scale {
  display: flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid #d8d1e3;
  border-radius: 8px;
  background: #ece8f1;
}

.support-preview-scale button {
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 6px;
  background: transparent;
  color: #61596d;
  font-size: 10px;
}

.support-preview-scale button.active {
  background: #fff;
  color: #4d408f;
  box-shadow: 0 1px 4px #322b4d1c;
}

#support #support-placeholder {
  flex: 0 0 auto;
  margin: 0 0 5px;
}

#support #remote-frame-viewport {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #ccc4db;
  border-radius: 12px;
  background: #fff;
}

#support #remote-frame-viewport.actual-size {
  overflow: auto;
}

#support-live-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #171522;
}

.support-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.support-preview-heading h3 { margin:0; }
#support-guidance-tools { display:flex; gap:6px; }
#support-guidance-tools button { min-height:30px; padding:5px 10px; }
#support-mark.active { background:#f47f4d; color:#fff; }
#support-mark-layer { position:absolute; inset:0; z-index:4; pointer-events:none; }
#support-mark-layer.drawing { cursor:crosshair; pointer-events:auto; }
#support-mark-layer .support-mark-box { position:absolute; border:3px solid #ff6b35; border-radius:9px; background:#ff8a3d24; box-shadow:0 0 0 3px #fff8,0 4px 18px #ff6b3555; }
.support-live-chat { position:fixed; z-index:30; right:18px; bottom:18px; width:min(360px,calc(100vw - 30px)); padding:0; display:block; border:1px solid #cfc8df; border-radius:13px; background:#fff; color:#383143; overflow:hidden; box-shadow:0 18px 55px #29213f38; }
.support-live-chat[hidden] { display:none !important; }
@media (min-width:1001px) {
  body.support-chat-docked { grid-template-columns:245px minmax(0,1fr) 340px; }
  body.sidebar-collapsed.support-chat-docked { grid-template-columns:44px minmax(0,1fr) 340px; }
  body.sidebar-collapsed.support-chat-docked main { grid-column:2; }
  body.support-chat-docked .support-live-chat { grid-column:3; position:sticky; inset:auto; top:0; width:340px; height:100vh; height:100dvh; border-width:0 0 0 1px; border-radius:0; box-shadow:-8px 0 28px #29213f14; }
}
body.sidebar-collapsed > aside.support-live-chat:not([hidden]) { display:block; transform:none; pointer-events:auto; }
.support-live-chat header { min-height:43px; padding:7px 9px 7px 13px; display:flex; align-items:center; justify-content:space-between; background:#29253f; color:#fff; font-weight:750; }
.support-live-chat header button { width:30px; min-height:29px; padding:0; background:#ffffff1a; }
.support-live-chat.collapsed { width:auto; min-width:190px; }
.support-live-chat.collapsed #support-chat-body { display:none; }
.support-chat-messages { max-height:120px; overflow:auto; display:grid; gap:5px; padding:8px; }
.support-chat-messages:empty::before { content:"Zde můžete zákazníkovi psát i bez sdílení obrazu."; color:#81788e; font-size:11px; }
.support-chat-message { width:fit-content; max-width:80%; padding:6px 9px; border-radius:9px; background:#f0edf7; font-size:12px; }
.support-chat-message.mine { margin-left:auto; background:#5b4cad; color:#fff; }
#support-chat-form { margin:0; padding:7px; display:grid; grid-template-columns:1fr auto; border-top:1px solid #eeeaf3; }
#support-chat-form input { min-width:0; width:100%; }

#support #remote-frame {
  display: block;
  max-width: none;
  min-width: 0;
  border: 0;
  border-radius: 0;
  transform-origin: top left;
  background: #fff;
}

#rrweb-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#remote-frame-viewport:not(.rrweb-mode) #rrweb-root,
#remote-frame-viewport.rrweb-mode #remote-frame {
  display: none;
}

#rrweb-root .rr-player {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  box-shadow: none;
}

#rrweb-root .rr-player__frame {
  border: 0;
}

#support #end-session {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 5px;
  padding: 6px 10px;
}

#support.queue-collapsed .split {
  grid-template-columns: minmax(0, 1fr);
}

#support.queue-collapsed .split > div:first-child {
  display: none;
}

.support-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 8px;
}

.support-toolbar .queue-toggle {
  padding: 6px 10px;
  background: transparent;
  color: #5b4cad;
  border: 1px solid #cfc7e4;
  font-size: 11px;
}

#support #pending article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 8px;
  padding: 11px;
}

#support #pending article > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

#support #pending article > span.muted {
  align-self: center;
  font-size: 10px;
}

#support #pending article > button {
  grid-column: 1 / -1;
  width: 100%;
  padding: 7px 9px;
}

@media (max-width: 850px) {
  #support .split {
    grid-template-columns: 1fr;
  }
}

#admin-sidebar-toggle {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 226px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 3px solid #f6f4f8;
  border-radius: 50%;
  background: #5b4cad;
  box-shadow: 0 5px 16px #29253f40;
  font-size: 24px;
  line-height: 1;
  transition: left .22s ease, transform .22s ease;
}

body,
body > aside {
  transition: grid-template-columns .22s ease, transform .22s ease;
}

body.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

body.sidebar-collapsed > aside {
  display: none;
  transform: translateX(-100%);
  pointer-events: none;
}

body.sidebar-collapsed #admin-sidebar-toggle {
  left: 12px;
}

body.sidebar-collapsed main {
  grid-column: 1 / -1;
  width: 100%;
  padding-left: 60px;
}

@media (max-width: 850px) {
  #admin-sidebar-toggle {
    top: 12px;
    left: 12px;
  }

  body.sidebar-collapsed > aside {
    display: none;
  }
}
