/* Dense, quiet operator workspace; all existing controls keep their owners. */
body.admin-mode .dash-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
}
body.admin-mode .admin-clients-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
}
body.admin-mode .admin-pagehead {
  gap: 12px;
  margin-bottom: 14px;
}
body.admin-mode .admin-pagehead h1 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 4px;
}
body.admin-mode .admin-pagehead p {
  max-width: 52ch;
  margin: 0;
  font-size: 13px;
}
body.admin-mode .admin-page-actions {
  gap: 6px;
}
.admin-workspace-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.admin-workspace-links a {
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--bg3, #202a3a);
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}
.support-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.support-count {
  background: #285ee8;
  color: white;
  border-radius: 9px;
  padding: 1px 6px;
  font-size: 11px;
}
.support-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #101722;
  color: #edf2fa;
  box-shadow: 0 24px 100px #0008;
}
.support-dialog[open] {
  display: flex;
  flex-direction: column;
}
.support-dialog::backdrop {
  background: #060a10b8;
  backdrop-filter: blur(5px);
}
.support-dialog * {
  box-sizing: border-box;
}
.support-dialog button,
.support-dialog textarea,
.support-dialog input {
  font: inherit;
}
.support-dialog button {
  cursor: pointer;
}
.support-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
  background: #141d2b;
}
.support-top > div:last-child {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.support-top h2 {
  font-size: 18px;
  margin: 0;
}
.support-top small {
  color: #99a9c0;
  font-size: 12px;
}
.support-icon {
  color: inherit;
  border: 0;
  border-radius: 10px;
  background: #233047;
  padding: 9px 13px;
}
.support-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.support-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #141d2b;
  padding: 10px;
  gap: 8px;
}
.support-search {
  width: 100%;
  background: #0e1623;
  border: 1px solid #33445e;
  border-radius: 10px;
  color: inherit;
  padding: 10px;
}
.support-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.support-thread {
  display: block;
  width: 100%;
  padding: 13px 12px;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 12px;
  margin-bottom: 3px;
}
.support-thread:hover,
.support-thread[aria-current="true"] {
  background: #24334b;
}
.support-thread strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  gap: 8px;
}
.support-thread small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9dacbf;
  margin-top: 5px;
}
.support-thread em {
  font-size: 11px;
  font-style: normal;
  color: #a7bbdb;
}
.support-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.support-chathead {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.support-chathead strong {
  font-size: 14px;
}
.support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.support-bubble {
  max-width: 85%;
  align-self: flex-start;
  background: #202c3f;
  padding: 11px 14px;
  border-radius: 14px 14px 14px 4px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}
.support-bubble.own {
  align-self: flex-end;
  background: #234eae;
  border-radius: 14px 14px 4px 14px;
}
.support-bubble time {
  display: block;
  text-align: right;
  color: #b4c1d7;
  font-size: 10px;
  margin-top: 6px;
}
.support-attachment {
  display: block;
  background: #ffffff0c;
  color: inherit;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  text-align: left;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.support-media {
  display: block;
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  margin-top: 8px;
  object-fit: contain;
}
.support-empty {
  margin: auto;
  max-width: 32ch;
  text-align: center;
  color: #a2b1c9;
  font-size: 14px;
  padding: 24px;
}
.support-compose {
  flex-shrink: 0;
  padding: 12px 16px 16px;
}
.support-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.support-compose textarea {
  resize: none;
  min-height: 46px;
  max-height: 140px;
  flex: 1;
  width: 0;
  padding: 12px;
  border: 1px solid #33445e;
  border-radius: 12px;
  color: inherit;
  background: #172131;
}
.support-send {
  background: #366ff0;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
}
.support-send:disabled {
  opacity: 0.45;
  cursor: default;
}
.support-status {
  min-height: 18px;
  color: #9eadc3;
  font-size: 12px;
  margin: 6px 0 0;
}
.support-status.error {
  color: #ffb1b1;
}
.support-files {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}
.support-files button {
  border: 0;
  color: #d9e4fa;
  background: #273853;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.support-back {
  display: none;
}
.support-dialog :focus-visible,
.admin-workspace-links :focus-visible {
  outline: 2px solid #8db2ff;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .support-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .support-chat {
    display: none;
  }
  .support-dialog.thread-open .support-sidebar {
    display: none;
  }
  .support-dialog.thread-open .support-chat {
    display: flex;
  }
  .support-back {
    display: inline-block;
  }
  .support-messages {
    padding: 10px 12px;
  }
  .support-top {
    padding: 14px 16px;
  }
  .support-top .support-icon {
    font-size: 13px;
    padding: 9px 10px;
  }
  #supportResolve {
    font-size: 12px;
    max-width: 110px;
  }
  .support-compose {
    padding: 10px 10px max(12px, env(safe-area-inset-bottom));
  }
  .support-send {
    padding: 12px;
  }
  body.admin-mode .admin-pagehead {
    align-items: flex-start;
  }
  body.admin-mode .admin-page-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .support-dialog * {
    scroll-behavior: auto;
  }
}
