:root {
  --workspace-bg: #eef3f2;
  --workspace-panel: rgba(255, 255, 255, 0.9);
  --workspace-ink: #17202a;
  --workspace-muted: #607080;
  --workspace-line: rgba(23, 32, 42, 0.14);
  --workspace-accent: #0e8a9d;
  --workspace-accent-strong: #0b6675;
  --workspace-scrollbar-thumb: color-mix(in srgb, var(--workspace-accent-strong) 18%, #d8e2e8 82%);
  --workspace-scrollbar-thumb-hover: color-mix(in srgb, var(--workspace-accent-strong) 34%, #c5d2dc 66%);
  --workspace-shadow: 0 24px 64px rgba(23, 32, 42, 0.12);
  --app-button-accent: var(--workspace-accent-strong);
  --app-button-accent-hover: color-mix(in srgb, var(--workspace-accent-strong) 86%, #000000 14%);
  --app-button-accent-active: color-mix(in srgb, var(--workspace-accent-strong) 74%, #000000 26%);
  --app-button-accent-text: #ffffff;
  --app-text-selection-accent: var(--workspace-accent);
}

html[data-workspace-theme="dark"] {
  --workspace-bg: #14151d;
  --workspace-panel: rgba(31, 32, 43, 0.9);
  --workspace-ink: #eef2f7;
  --workspace-muted: #a9b4c0;
  --workspace-line: rgba(238, 242, 247, 0.16);
  --workspace-accent: #55c7dc;
  --workspace-accent-strong: #9be4ef;
  --workspace-scrollbar-thumb: color-mix(in srgb, var(--workspace-accent-strong) 46%, #38424e 54%);
  --workspace-scrollbar-thumb-hover: color-mix(in srgb, var(--workspace-accent-strong) 68%, #485766 32%);
  --workspace-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --app-button-accent: color-mix(in srgb, var(--workspace-accent-strong) 64%, transparent);
  --app-button-accent-hover: color-mix(in srgb, var(--workspace-accent-strong) 78%, transparent);
  --app-button-accent-active: color-mix(in srgb, var(--workspace-accent-strong) 88%, transparent);
  --app-button-accent-text: #10151c;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--workspace-bg);
  color: var(--workspace-ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.app-action-primary {
  background: var(--app-button-accent) !important;
  background-color: var(--app-button-accent) !important;
  color: var(--app-button-accent-text) !important;
  -webkit-text-fill-color: var(--app-button-accent-text) !important;
}

.app-action-primary:hover:not(:disabled),
.app-action-primary:focus-visible:not(:disabled) {
  background: var(--app-button-accent-hover) !important;
  background-color: var(--app-button-accent-hover) !important;
}

.app-action-primary:active:not(:disabled) {
  background: var(--app-button-accent-active) !important;
  background-color: var(--app-button-accent-active) !important;
}

.workspace-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.workspace-topbar {
  align-items: center;
  background: var(--workspace-bg);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
  backdrop-filter: blur(14px) saturate(116%);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  padding: 22px max(24px, 3vw) 14px;
  position: relative;
  z-index: 10;
}

.workspace-topbar-left,
.workspace-topbar-nav,
.workspace-support-mode-tabs,
.workspace-topbar-actions {
  align-items: center;
  display: flex;
}

.workspace-topbar-left,
.workspace-topbar-actions {
  gap: 10px;
}

.workspace-topbar-nav {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.workspace-brand {
  align-items: center;
  color: var(--workspace-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-brand-mark {
  display: block;
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

@media (max-width: 979px) {
  .workspace-brand {
    font-size: 15px;
  }

  .workspace-brand-mark {
    flex-basis: 20px;
    height: 20px;
    width: 20px;
  }
}

.workspace-pill-link,
.workspace-support-mode-tab,
.workspace-icon-button {
  -webkit-tap-highlight-color: transparent;
}

.workspace-pill-link {
  align-items: center;
  background: color-mix(in srgb, var(--workspace-panel) 88%, transparent);
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  color: var(--workspace-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.workspace-support-mode-tabs {
  background: color-mix(in srgb, var(--workspace-panel) 88%, transparent);
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  gap: 4px;
  padding: 4px;
}

.workspace-support-mode-tab {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--workspace-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  transition: background 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.workspace-support-mode-tab.is-active {
  background: var(--workspace-accent-strong);
  color: #ffffff;
}

html[data-workspace-theme="dark"] .workspace-support-mode-tab.is-active {
  color: #10151d;
}

.workspace-pill-link.is-active {
  background: var(--workspace-accent-strong);
  border-color: color-mix(in srgb, var(--workspace-accent-strong) 72%, var(--workspace-line));
  color: #ffffff;
}

html[data-workspace-theme="dark"] .workspace-pill-link.is-active {
  background: var(--workspace-accent-strong);
  color: #10151d;
}

.workspace-pill-link:hover,
.workspace-pill-link:focus-visible,
.workspace-support-mode-tab:hover,
.workspace-support-mode-tab:focus-visible,
.workspace-icon-button:hover,
.workspace-icon-button:focus-visible {
  border-color: color-mix(in srgb, var(--workspace-accent) 46%, var(--workspace-line));
  outline: none;
}

.workspace-support-mode-tab:hover,
.workspace-support-mode-tab:focus-visible {
  background: color-mix(in srgb, var(--workspace-accent) 14%, transparent);
}

.workspace-support-mode-tab.is-active:hover,
.workspace-support-mode-tab.is-active:focus-visible {
  background: var(--workspace-accent-strong);
  color: #ffffff;
}

html[data-workspace-theme="dark"] .workspace-support-mode-tab.is-active:hover,
html[data-workspace-theme="dark"] .workspace-support-mode-tab.is-active:focus-visible {
  color: #10151d;
}

.workspace-icon-button {
  align-items: center;
  background: color-mix(in srgb, var(--workspace-panel) 88%, transparent);
  border: 1px solid var(--workspace-line);
  border-radius: 50%;
  color: var(--workspace-muted);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  width: 38px;
}

.workspace-icon-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.workspace-kb-edit-mode-button[aria-pressed="true"] {
  background: var(--workspace-accent-strong);
  border-color: var(--workspace-accent-strong);
  color: #ffffff;
}

.workspace-kb-reference-back-button {
  left: var(--workspace-kb-reference-anchor-x, 50%);
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  z-index: 12;
}

.workspace-kb-reference-back-button:hover,
.workspace-kb-reference-back-button:focus-visible {
  background: color-mix(in srgb, var(--workspace-accent) 12%, var(--workspace-panel));
  color: var(--workspace-accent-strong);
}

html[data-workspace-theme="dark"] .workspace-kb-edit-mode-button[aria-pressed="true"] {
  color: #10151d;
}

.workspace-tooltip {
  background: color-mix(in srgb, var(--workspace-panel) 94%, var(--workspace-bg) 6%);
  border: 1px solid color-mix(in srgb, var(--workspace-accent) 30%, var(--workspace-line));
  border-radius: 10px;
  box-shadow: var(--workspace-shadow);
  color: var(--workspace-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  padding: 9px 12px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  transform: translateY(-3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
  z-index: 30;
}

.workspace-tooltip::before {
  content: attr(data-tooltip);
}

.workspace-theme-tooltip.is-public-surface::before {
  content: none;
}

.workspace-theme-tooltip-label,
.workspace-theme-tooltip-shortcut {
  display: block;
}

.workspace-theme-tooltip-label[hidden],
.workspace-theme-tooltip-shortcut[hidden] {
  display: none;
}

.workspace-theme-tooltip-shortcut {
  margin-top: 3px;
  color: var(--workspace-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.workspace-icon-button:hover .workspace-tooltip,
.workspace-icon-button:focus-visible .workspace-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.workspace-frame-stack {
  min-height: 0;
  overflow: hidden;
  padding: 0 max(18px, 2vw) max(18px, 2vw);
  position: relative;
}

.workspace-frame-stack[data-active-section="kb"] {
  padding: 0;
}

.workspace-frame-panel {
  height: 100%;
  min-height: 0;
  width: 100%;
}

.workspace-frame {
  background: transparent;
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

/* Knowledge Base demos are hosted by a dedicated outer-page overlay. The
   ordinary toolbar and article iframe never leave their grid positions. */

#workspace-kb-demo-root:empty {
  display: none;
}

#workspace-kb-demo-root {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2147483000;
}

.workspace-kb-demo-overlay {
  background: transparent;
  color: var(--workspace-ink);
  display: flex;
  flex-direction: column;
  margin: 0;
  pointer-events: auto;
  position: fixed;
  transform-origin: left top;
}

.workspace-kb-demo-overlay.is-loading {
  pointer-events: none;
  visibility: hidden;
}

.workspace-kb-demo-overlay.is-transitioning {
  backface-visibility: hidden;
  pointer-events: none;
  will-change: border-radius, opacity, transform;
}

.workspace-kb-demo-overlay-bar {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.workspace-kb-demo-overlay-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.workspace-kb-demo-overlay-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid var(--workspace-line);
  border-radius: 9px;
  color: var(--workspace-muted);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
}

.workspace-kb-demo-overlay-button:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--workspace-accent) 9%, transparent);
  border-color: color-mix(in srgb, var(--workspace-accent) 28%, var(--workspace-line));
  color: var(--workspace-ink);
  outline: none;
}

.workspace-kb-demo-overlay-direction {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 16px;
}

.workspace-kb-demo-overlay.is-expanded .workspace-kb-demo-overlay-direction {
  transform: rotate(180deg);
}

.workspace-kb-demo-overlay-shell {
  background: var(--workspace-panel);
  border: 1px solid var(--workspace-line);
  border-radius: 16px;
  box-shadow: var(--workspace-shadow);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.workspace-kb-demo-overlay-stage {
  height: 900px;
  left: 0;
  position: absolute;
  top: 0;
  transform: scale(var(--workspace-kb-demo-scale, 0.57));
  transform-origin: left top;
  width: 1440px;
}

.workspace-kb-demo-overlay-frame {
  background: var(--workspace-panel);
  border: 0;
  display: block;
  height: 900px;
  width: 1440px;
}

.workspace-kb-demo-overlay-launch {
  align-items: center;
  appearance: none;
  background: color-mix(in srgb, var(--workspace-bg) 72%, transparent);
  border: 0;
  color: var(--workspace-ink);
  cursor: zoom-in;
  display: flex;
  font: inherit;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: background 160ms ease, opacity 160ms ease;
  z-index: 3;
}

.workspace-kb-demo-overlay-launch strong {
  background: var(--workspace-panel);
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  box-shadow: var(--workspace-shadow);
  font-size: 14px;
  padding: 9px 14px;
}

.workspace-kb-demo-overlay-shell:hover .workspace-kb-demo-overlay-launch {
  opacity: 1;
}

.workspace-kb-demo-overlay:not(.is-expanded) :is(
  .workspace-kb-demo-overlay-skip,
  .workspace-kb-demo-overlay-reset
) {
  display: none;
}

.workspace-kb-demo-overlay.is-expanded {
  background: var(--workspace-bg);
  clip-path: none !important;
  height: 100dvh !important;
  inset: 0 !important;
  padding: clamp(10px, 1.6vw, 22px);
  visibility: visible !important;
  width: 100vw !important;
}

.workspace-kb-demo-overlay.is-expanded .workspace-kb-demo-overlay-shell {
  border-radius: 16px;
}

.workspace-kb-demo-overlay.is-expanded .workspace-kb-demo-overlay-stage {
  height: 100%;
  position: relative;
  transform: none;
  width: 100%;
}

.workspace-kb-demo-overlay.is-expanded .workspace-kb-demo-overlay-frame {
  height: 100%;
  width: 100%;
}

.workspace-kb-demo-overlay.is-expanded .workspace-kb-demo-overlay-launch {
  display: none;
}

#workspace-preview-root:empty {
  display: none;
}

#workspace-forum-delete-confirm-root:empty,
#workspace-forum-link-dialog-root:empty,
#workspace-forum-dm-dialog-root:empty,
#workspace-support-delete-confirm-root:empty {
  display: none;
}

#workspace-preview-root {
  height: 100dvh;
  inset: 0;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 2147483647;
}

#workspace-forum-delete-confirm-root,
#workspace-forum-link-dialog-root,
#workspace-forum-dm-dialog-root,
#workspace-support-delete-confirm-root {
  align-items: center;
  background: rgba(15, 23, 42, 0.34);
  display: flex;
  height: 100dvh;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 24px;
  pointer-events: auto;
  position: fixed;
  width: 100vw;
  z-index: 2147483647;
}

html[data-workspace-theme="dark"] #workspace-forum-delete-confirm-root,
html[data-workspace-theme="dark"] #workspace-forum-link-dialog-root,
html[data-workspace-theme="dark"] #workspace-forum-dm-dialog-root,
html[data-workspace-theme="dark"] #workspace-support-delete-confirm-root {
  background: rgba(3, 7, 18, 0.62);
}

html.workspace-forum-delete-confirm-open,
html.workspace-forum-delete-confirm-open body,
html.workspace-forum-link-dialog-open,
html.workspace-forum-link-dialog-open body,
html.workspace-forum-dm-dialog-open,
html.workspace-forum-dm-dialog-open body,
html.workspace-support-delete-confirm-open,
html.workspace-support-delete-confirm-open body {
  overflow: hidden;
}

.workspace-delete-confirm-card {
  background: #ffffff;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 74px rgba(23, 32, 42, 0.24);
  color: var(--workspace-ink);
  max-width: min(420px, calc(100vw - 48px));
  padding: 26px 26px 24px;
  width: 100%;
}

html[data-workspace-theme="dark"] .workspace-delete-confirm-card {
  background: #20212c;
  border-color: rgba(238, 242, 247, 0.16);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.46);
}

.workspace-delete-confirm-card h2 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.workspace-delete-confirm-card p {
  color: var(--workspace-muted);
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 26px;
}

.workspace-delete-confirm-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.workspace-delete-confirm-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  color: var(--workspace-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.workspace-delete-confirm-button:hover,
.workspace-delete-confirm-button:focus-visible {
  border-color: var(--workspace-accent);
  outline: none;
  transform: scale(1.04);
}

.workspace-delete-confirm-button.is-danger {
  border-color: rgba(220, 38, 38, 0.52);
  color: #d13d3d;
}

html[data-workspace-theme="dark"] .workspace-delete-confirm-button.is-danger {
  border-color: rgba(255, 129, 129, 0.58);
  color: #ff8a8a;
}

.workspace-delete-confirm-button:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}

.workspace-link-dialog-card {
  background: #ffffff;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 74px rgba(23, 32, 42, 0.24);
  color: var(--workspace-ink);
  display: grid;
  gap: 18px;
  max-width: min(520px, calc(100vw - 48px));
  padding: 24px;
  position: relative;
  width: 100%;
}

html[data-workspace-theme="dark"] .workspace-link-dialog-card {
  background: #20212c;
  border-color: rgba(238, 242, 247, 0.16);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.46);
}

.workspace-link-dialog-card h2 {
  font-size: 24px;
  line-height: 1.16;
  margin: 0;
  padding-right: 44px;
}

.workspace-link-dialog-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--workspace-muted);
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: color 150ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 38px;
}

.workspace-link-dialog-close:hover,
.workspace-link-dialog-close:focus-visible {
  color: var(--workspace-accent-strong);
  outline: none;
  transform: scale(1.08);
}

.workspace-link-dialog-close svg {
  height: 20px;
  width: 20px;
}

.workspace-link-dialog-field {
  display: grid;
  gap: 8px;
}

.workspace-link-dialog-field span {
  color: var(--workspace-ink);
  font-size: 13px;
  font-weight: 820;
}

.workspace-link-dialog-input {
  background: #ffffff;
  border: 1px solid var(--workspace-line);
  border-radius: 10px;
  color: var(--workspace-ink);
  font-size: 15px;
  min-width: 0;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

html[data-workspace-theme="dark"] .workspace-link-dialog-input {
  background: #20212c;
}

.workspace-link-dialog-input:focus {
  border-color: color-mix(in srgb, var(--workspace-accent) 70%, var(--workspace-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--workspace-accent) 20%, transparent);
}

.workspace-link-dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 6px;
}

.workspace-link-dialog-actions .workspace-delete-confirm-button {
  min-width: 88px;
}

.workspace-link-dialog-save {
  background: var(--workspace-accent-strong);
  border-color: var(--workspace-accent-strong);
  color: #ffffff;
}

html[data-workspace-theme="dark"] .workspace-link-dialog-save {
  color: #10151c;
}

.workspace-dm-dialog-card {
  background: #ffffff;
  border: 1px solid rgba(23, 32, 42, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 74px rgba(23, 32, 42, 0.24);
  color: var(--workspace-ink);
  display: grid;
  gap: 14px;
  max-height: min(620px, calc(100vh - 48px));
  overflow: hidden;
  padding: 18px;
  position: relative;
  width: min(440px, calc(100vw - 32px));
}

html[data-workspace-theme="dark"] .workspace-dm-dialog-card {
  background: #20212c;
  border-color: rgba(238, 242, 247, 0.16);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.46);
}

.workspace-dm-dialog-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.workspace-dm-dialog-head h2 {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.workspace-dm-dialog-head p {
  color: var(--workspace-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 5px 0 0;
}

.workspace-dm-dialog-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--workspace-muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  line-height: 0;
  margin-top: -3px;
  padding: 0;
  transition: color 150ms ease, opacity 160ms ease;
  width: 30px;
}

.workspace-dm-dialog-close:hover,
.workspace-dm-dialog-close:focus-visible {
  color: var(--workspace-accent-strong);
  outline: none;
}

.workspace-dm-dialog-close svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform-origin: center;
  transition: filter 160ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 18px;
}

.workspace-dm-dialog-close:hover svg,
.workspace-dm-dialog-close:focus-visible svg {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--workspace-accent) 44%, transparent));
  transform: scale(1.18);
}

.workspace-dm-search-input {
  background: color-mix(in srgb, var(--workspace-panel) 94%, transparent);
  border: 1px solid var(--workspace-line);
  border-radius: 10px;
  color: var(--workspace-ink);
  font: inherit;
  height: 42px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.workspace-dm-search-input::placeholder {
  color: color-mix(in srgb, var(--workspace-muted) 72%, transparent);
  opacity: 1;
}

.workspace-dm-search-input:focus {
  border-color: color-mix(in srgb, var(--workspace-accent) 70%, var(--workspace-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--workspace-accent) 20%, transparent);
}

.workspace-dm-people-list {
  display: grid;
  gap: 4px;
  max-height: min(330px, calc(100vh - 260px));
  min-height: 96px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 18px 2px 2px;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  scrollbar-width: none;
}

.workspace-dm-people-list::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.workspace-dm-people-list::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.workspace-dm-custom-scrollbar {
  opacity: 1;
  pointer-events: none;
  position: absolute;
  width: 9px;
  z-index: 3;
}

.workspace-dm-custom-scrollbar-thumb {
  background: var(--workspace-scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: none;
  cursor: grab;
  left: 0;
  min-height: 30px;
  pointer-events: auto;
  position: absolute;
  top: 0;
  width: 9px;
}

.workspace-dm-custom-scrollbar-thumb:hover,
.workspace-dm-custom-scrollbar.is-dragging .workspace-dm-custom-scrollbar-thumb {
  background: var(--workspace-scrollbar-thumb-hover);
  background-clip: padding-box;
  box-shadow: none;
}

.workspace-dm-custom-scrollbar.is-dragging .workspace-dm-custom-scrollbar-thumb {
  cursor: grabbing;
}

.workspace-dm-person-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--workspace-ink);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 9px 10px;
  text-align: left;
}

.workspace-dm-person-row:hover,
.workspace-dm-person-row:focus-visible {
  background: color-mix(in srgb, var(--workspace-accent) 12%, transparent);
  outline: none;
}

.workspace-dm-person-avatar {
  align-items: center;
  background: var(--workspace-dm-avatar-bg, var(--workspace-accent));
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 850;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.workspace-dm-person-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.workspace-dm-person-avatar.is-avatar-0 { --workspace-dm-avatar-bg: #0e8a9d; }
.workspace-dm-person-avatar.is-avatar-1 { --workspace-dm-avatar-bg: #8f4a7a; }
.workspace-dm-person-avatar.is-avatar-2 { --workspace-dm-avatar-bg: #3f7a53; }
.workspace-dm-person-avatar.is-avatar-3 { --workspace-dm-avatar-bg: #8b6424; }
.workspace-dm-person-avatar.is-avatar-4 { --workspace-dm-avatar-bg: #4b63a6; }
.workspace-dm-person-avatar.is-avatar-5 { --workspace-dm-avatar-bg: #a24d43; }
.workspace-dm-person-avatar.is-avatar-6 { --workspace-dm-avatar-bg: #5e5b8f; }
.workspace-dm-person-avatar.is-avatar-7 { --workspace-dm-avatar-bg: #28716d; }
.workspace-dm-person-avatar.is-avatar-8 { --workspace-dm-avatar-bg: #7c5a9f; }
.workspace-dm-person-avatar.is-avatar-9 { --workspace-dm-avatar-bg: #b15b7f; }
.workspace-dm-person-avatar.is-avatar-10 { --workspace-dm-avatar-bg: #617833; }

html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-0 { --workspace-dm-avatar-bg: #2f8daa; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-1 { --workspace-dm-avatar-bg: #b66aa0; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-2 { --workspace-dm-avatar-bg: #5da874; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-3 { --workspace-dm-avatar-bg: #b98032; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-4 { --workspace-dm-avatar-bg: #7187d5; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-5 { --workspace-dm-avatar-bg: #d36f62; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-6 { --workspace-dm-avatar-bg: #8580c2; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-7 { --workspace-dm-avatar-bg: #3f9c96; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-8 { --workspace-dm-avatar-bg: #a47ad0; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-9 { --workspace-dm-avatar-bg: #d77ca0; }
html[data-workspace-theme="dark"] .workspace-dm-person-avatar.is-avatar-10 { --workspace-dm-avatar-bg: #8ea64a; }

.workspace-dm-person-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-dm-person-name {
  color: var(--workspace-ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-dm-person-email {
  color: var(--workspace-muted);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-dm-dialog-empty {
  border: 1px dashed var(--workspace-line);
  border-radius: 10px;
  color: var(--workspace-muted);
  display: grid;
  gap: 5px;
  padding: 18px;
}

.workspace-dm-dialog-empty strong {
  color: var(--workspace-ink);
}

.workspace-preview-lightbox {
  align-items: center;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  height: 100dvh;
  inset: 0;
  justify-content: center;
  min-height: 100dvh;
  padding: 32px;
  position: fixed;
  pointer-events: auto;
  width: 100vw;
  z-index: 2147483647;
}

.workspace-preview-frame {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  max-height: 88dvh;
  max-width: min(84vw, 1400px);
  position: relative;
  width: 100%;
}

.workspace-preview-figure {
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  min-height: 0;
  place-items: center;
  width: 100%;
}

.workspace-preview-figure img {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.workspace-preview-figure figcaption {
  color: rgba(248, 250, 252, 0.94);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.workspace-preview-count {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  bottom: auto;
  color: rgba(248, 250, 252, 0.9);
  font-size: 12px;
  font-weight: 650;
  left: 50%;
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  top: clamp(12px, 2vh, 24px);
  transform: translateX(-50%);
}

.workspace-preview-close {
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -10px;
  top: -10px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 40px;
}

.workspace-preview-nav {
  align-items: center;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  width: 44px;
  z-index: 2;
}

.workspace-preview-prev {
  left: clamp(18px, 3vw, 64px);
}

.workspace-preview-next {
  right: clamp(18px, 3vw, 64px);
}

.workspace-preview-nav:hover,
.workspace-preview-nav:focus-visible {
  background: rgba(30, 41, 59, 0.75);
  outline: none;
  transform: translateY(-50%) scale(1.08);
}

.workspace-preview-nav:disabled {
  cursor: default;
  opacity: 0.28;
  transform: translateY(-50%);
}

.workspace-preview-close:hover,
.workspace-preview-close:focus-visible {
  background: rgba(30, 41, 59, 0.75);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
  outline: none;
  transform: scale(1.08);
}

.workspace-preview-close svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 16px;
}

.workspace-preview-nav svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  width: 22px;
}

.workspace-frame-loading {
  align-items: center;
  border: 1px dashed color-mix(in srgb, var(--workspace-line) 80%, var(--workspace-accent) 20%);
  border-radius: 12px;
  color: var(--workspace-muted);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
}

.workspace-frame-load-failure {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

.workspace-frame-load-failure strong {
  color: var(--workspace-text);
  font-size: 17px;
}

.workspace-frame-load-failure span {
  font-weight: 500;
}

.workspace-frame-retry {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  margin-top: 4px;
  min-height: 40px;
  padding: 0 20px;
}

@media (max-width: 760px) {
  .workspace-topbar {
    align-items: flex-start;
    grid-template-columns: 1fr auto;
  }

  .workspace-topbar-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .workspace-frame-stack {
    padding-inline: 10px;
  }
}
