.velo-media-disclosure {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.velo-media-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px 2px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--velo-muted-foreground, #8b8f99);
  background: transparent;
  max-width: 100%;
  min-width: 0;
  transition: color 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1)), opacity 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-media-toggle:hover {
  color: var(--velo-foreground, inherit);
}

.velo-media-toggle:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 2px;
}

.velo-media-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.velo-media-caret {
  flex-shrink: 0;
  transition: transform 250ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-media-attachment.is-collapsed .velo-media-caret {
  transform: rotate(-90deg);
}

.velo-media-attachment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
}

.velo-media-attachment.is-collapsed .velo-video-body,
.velo-media-attachment.is-collapsed .velo-snippet-body {
  display: none;
}

.velo-video-body {
  max-width: 100%;
}

.velo-video-card {
  position: relative;
  display: block;
  width: fit-content;
  max-width: min(380px, 100%);
  max-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--velo-border, var(--line, rgba(255, 255, 255, 0.12)));
  background: #0d1017;
  cursor: pointer;
}

.velo-video-card.is-portrait {
  max-width: min(320px, 100%);
}

.velo-video-card.is-landscape {
  max-width: min(380px, 100%);
}

.velo-video-el {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #0d1017;
}

.velo-video-play-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 9999px;
  background: rgba(15, 18, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: opacity 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1)), transform 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1)), background-color 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-video-card:hover .velo-video-play-pill {
  background: rgba(15, 18, 26, 0.92);
}

.velo-video-play-pill:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.velo-video-card.is-playing .velo-video-play-pill {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
}

.velo-video-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  background: rgba(15, 18, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-video-card:hover .velo-video-actions,
.velo-video-card:focus-within .velo-video-actions {
  opacity: 1;
  pointer-events: auto;
}

.velo-video-actions button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 9999px;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.velo-video-actions button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.velo-video-actions button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}

.velo-snippet-body {
  width: 100%;
  max-width: min(460px, 100%);
}

.velo-snippet-card {
  position: relative;
  border-radius: 16px;
  --velo-corner: 16;
  border: 1px solid var(--velo-border, #e2e8f0);
  background: var(--velo-card, #ffffff);
  color: var(--velo-foreground, #0f172a);
  overflow: hidden;
  width: 100%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] .velo-snippet-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.velo-snippet-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--velo-border, #e2e8f0);
}

.velo-snippet-badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  --velo-corner: 8;
  background: #1d9bd1;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.velo-snippet-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.velo-snippet-title-btn {
  display: block;
  text-align: left;
  padding: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 4px;
}

.velo-snippet-title-btn:hover {
  text-decoration: underline;
}

.velo-snippet-title-btn:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 2px;
}

.velo-snippet-subtitle {
  font-size: 12px;
  color: var(--velo-muted-foreground, #8b8f99);
  line-height: 1.25;
}

.velo-snippet-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-snippet-card:hover .velo-snippet-actions,
.velo-snippet-card:focus-within .velo-snippet-actions {
  opacity: 1;
}

.velo-snippet-actions button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--velo-muted-foreground, #8b8f99);
}

.velo-snippet-actions button:hover {
  background: var(--velo-muted, rgba(255, 255, 255, 0.08));
  color: var(--velo-foreground, inherit);
}

.velo-snippet-actions button:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 1px;
}

.velo-snippet-preview {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  padding: 12px 14px 14px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.velo-snippet-preview::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--velo-card, #ffffff));
}

.velo-snippet-status {
  margin: 0;
  color: var(--velo-muted-foreground, #8b8f99);
  font-size: 12px;
}

.velo-md-heading {
  margin: 8px 0 4px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--velo-foreground, inherit);
}

.velo-md-heading:first-child {
  margin-top: 0;
}

.velo-md-h1 {
  font-size: 15px;
}

.velo-md-h2 {
  font-size: 14px;
}

.velo-md-h3,
.velo-md-h4,
.velo-md-h5,
.velo-md-h6 {
  font-size: 13px;
}

.velo-md-p {
  margin: 0 0 8px;
}

.velo-md-p:last-child {
  margin-bottom: 0;
}

.velo-md-list {
  margin: 4px 0 8px;
  padding-left: 18px;
}

.velo-md-list li {
  margin: 2px 0;
}

.velo-md-quote {
  margin: 4px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--velo-border, rgba(255, 255, 255, 0.2));
  color: var(--velo-muted-foreground, #9aa0ab);
}

.velo-md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--velo-muted, #f1f5f9);
  border: 1px solid var(--velo-border, #e2e8f0);
  color: #c2410c;
}

html[data-theme="dark"] .velo-md-code {
  color: #fb923c;
}

.velo-md-pre,
.velo-txt-preview {
  margin: 6px 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--velo-muted, rgba(0, 0, 0, 0.24));
  border: 1px solid var(--velo-border, rgba(255, 255, 255, 0.1));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.velo-txt-preview {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.velo-md-hr {
  border: 0;
  border-top: 1px solid var(--velo-border, rgba(255, 255, 255, 0.12));
  margin: 8px 0;
}

.velo-snippet-preview a {
  color: var(--velo-primary, #4fa8ff);
  text-decoration: none;
}

.velo-snippet-preview a:hover {
  text-decoration: underline;
}

.velo-snippet-preview a:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 2px;
  border-radius: 3px;
}

.message-text .mention[data-user-id] {
  cursor: pointer;
}

.message-text .mention[data-user-id]:hover {
  text-decoration: underline;
}

.message-text .mention[data-user-id]:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 2px;
  border-radius: 4px;
}

html[data-theme] .profile-card.velo-hovercard,
.profile-card.velo-hovercard {
  width: 300px;
  max-width: calc(100vw - 16px);
  padding: 0;
  border-radius: 20px;
  --velo-corner: 20;
  --velo-surface-fill: var(--velo-popover, #ffffff);
  --velo-surface-border: var(--velo-border, #e2e8f0);
  background: var(--velo-popover, #ffffff);
  color: var(--velo-foreground, #0f172a);
  border: 1px solid var(--velo-border, #e2e8f0);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  z-index: 90;
}

html[data-theme="dark"] .profile-card.velo-hovercard {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.44), 0 2px 8px rgba(0, 0, 0, 0.24);
}

.velo-hovercard .profile-summary {
  padding: 0;
}

.velo-hovercard-role {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--velo-muted-foreground, #9da3af);
  border-bottom: 1px solid var(--velo-border, rgba(255, 255, 255, 0.1));
}

.velo-hovercard-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 10px;
}

.velo-hovercard-avatar {
  flex-shrink: 0;
}

.velo-hovercard-avatar .avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  --velo-corner: 10;
  font-size: 18px;
}

.velo-hovercard-identity {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.velo-hovercard-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.velo-hovercard-name-row h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--velo-foreground, inherit);
  overflow-wrap: anywhere;
}

.velo-hovercard-presence {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  flex-shrink: 0;
  display: inline-block;
}

.velo-hovercard-presence.is-online {
  background: #2bac76;
}

.velo-hovercard-presence.is-away {
  background: #f59e0b;
}

.velo-hovercard-presence.is-offline {
  background: transparent;
  border: 1.5px solid var(--velo-muted-foreground, #8b8f99);
}

.velo-hovercard-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--velo-foreground, inherit);
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.velo-hovercard-identity .profile-handle {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--velo-muted-foreground, #8b8f99);
  overflow-wrap: anywhere;
}

.velo-hovercard-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px 12px;
}

.velo-hovercard-time {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--velo-foreground, inherit);
  opacity: 0.9;
}

.velo-hovercard-time svg {
  color: var(--velo-muted-foreground, #8b8f99);
  flex-shrink: 0;
}

.velo-hovercard-status {
  padding: 6px 10px;
  border-radius: 8px;
  --velo-corner: 8;
  background: var(--velo-muted, rgba(255, 255, 255, 0.06));
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.velo-hovercard-actions.profile-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}

.velo-hovercard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  --velo-corner: 8;
  border: 1px solid var(--velo-border, rgba(255, 255, 255, 0.16));
  background: transparent;
  color: var(--velo-foreground, inherit);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1)), transform 150ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-hovercard-btn:hover {
  background: var(--velo-muted, rgba(255, 255, 255, 0.08));
}

.velo-hovercard-btn:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 2px;
}

.velo-hovercard-footer {
  padding: 0 12px 12px;
  display: flex;
  justify-content: flex-start;
}

.velo-hovercard-full-link {
  padding: 3px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--velo-muted-foreground, #8b8f99);
  background: transparent;
}

.velo-hovercard-full-link:hover {
  color: var(--velo-primary, #4fa8ff);
  background: transparent;
}

.velo-hovercard-full-link:focus-visible {
  outline: 2px solid var(--velo-primary, #1574ff);
  outline-offset: 2px;
}

.profile-summary.is-full .velo-hovercard-role {
  padding: 0 0 10px;
  margin-bottom: 12px;
}

.profile-summary.is-full .velo-hovercard-body {
  padding: 0 0 14px;
}

.profile-summary.is-full .velo-hovercard-meta {
  padding: 0;
}

@media (hover: none) {
  .velo-video-actions,
  .velo-snippet-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .velo-media-toggle,
  .velo-media-caret,
  .velo-video-play-pill,
  .velo-video-actions,
  .velo-snippet-actions,
  .velo-hovercard-btn {
    transition: none !important;
  }
}


.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 284px;
  flex-shrink: 0;
}

.velo-app-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 9px 0 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--velo-foreground, #0f172a) 5%, transparent);
  color: var(--velo-sidebar-foreground, var(--velo-foreground, inherit));
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 150ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1)), border-color 150ms var(--velo-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.velo-app-menu-button:hover,
.velo-app-menu-button[aria-expanded="true"] {
  background: color-mix(in srgb, var(--velo-foreground, #0f172a) 9%, transparent);
  border-color: var(--velo-border, rgba(15, 23, 42, 0.1));
}

html[data-theme="dark"] .velo-app-menu-button {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .velo-app-menu-button:hover,
html[data-theme="dark"] .velo-app-menu-button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.velo-app-menu-button svg[data-icon="down"] {
  color: var(--velo-muted-foreground, #64748b);
  margin-left: 1px;
}

.velo-app-command-menu {
  width: 248px;
  padding: 6px;
  --velo-corner: 14;
  --velo-surface-fill: var(--velo-popover, #ffffff);
  --velo-surface-border: var(--velo-border, #e2e8f0);
  border-radius: 14px;
  background: var(--velo-popover, #ffffff);
  color: var(--velo-foreground, #0f172a);
  border: 1px solid var(--velo-border, #e2e8f0);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .velo-app-command-menu {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.velo-app-command-menu [role="menuitem"] {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--velo-foreground, #0f172a);
  background: transparent;
}

.velo-app-command-menu [role="menuitem"]:hover,
.velo-app-command-menu [role="menuitem"]:focus-visible {
  background: var(--velo-muted, #f1f5f9);
  outline: none;
}

.velo-app-command-menu kbd,
.velo-app-command-menu .velo-menu-meta {
  margin-left: auto;
  font: inherit;
  font-size: 12px;
  font-weight: 450;
  color: var(--velo-muted-foreground, #64748b);
  white-space: nowrap;
}

.velo-app-command-menu hr {
  border: 0;
  border-top: 1px solid var(--velo-border, #e2e8f0);
  margin: 5px 4px;
}

html[data-theme] .app-rail .workspace-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  --velo-corner: 10;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-style: normal;
  flex-shrink: 0;
}

.workspace-icon-photo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--velo-border, rgba(15, 23, 42, 0.12));
}

.workspace-icon-monogram {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 750;
  font-style: normal;
  letter-spacing: -0.02em;
  background: color-mix(in srgb, var(--ws-accent, var(--velo-primary, #0052eb)) 14%, var(--velo-card, #ffffff));
  color: var(--ws-accent, var(--velo-primary, #0052eb));
  border: 1px solid color-mix(in srgb, var(--ws-accent, var(--velo-primary, #0052eb)) 28%, var(--velo-border, #e2e8f0));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .workspace-icon-monogram {
  background: color-mix(in srgb, var(--ws-accent, var(--velo-primary, #3b82f6)) 22%, #0f1522);
  color: color-mix(in srgb, var(--ws-accent, var(--velo-primary, #60a5fa)) 76%, #ffffff);
  border-color: color-mix(in srgb, var(--ws-accent, var(--velo-primary, #3b82f6)) 36%, rgba(255, 255, 255, 0.12));
  --velo-edge-color: color-mix(in srgb, var(--ws-accent, var(--velo-primary, #3b82f6)) 36%, rgba(255, 255, 255, 0.12));
}

html[data-theme] .topbar .icon-button:hover,
html[data-theme] .mobile-conversations:hover {
  background: var(--velo-muted, #f1f5f9);
  color: var(--velo-foreground, #0f172a);
}

.topbar .icon-button[hidden],
html[data-soartana-core="true"] .topbar #theme,
html[data-soartana-core="true"] .topbar #logout {
  display: none !important;
}

html[data-theme] .message-text {
  color: var(--velo-foreground, #0f172a);
}

html[data-theme] .message-text.deleted {
  color: var(--velo-muted-foreground, #64748b);
}

html[data-theme] .message-text code {
  background: var(--velo-muted, #f1f5f9);
  border: 1px solid var(--velo-border, #e2e8f0);
  color: var(--velo-foreground, #0f172a);
  padding: 1px 5px;
  border-radius: 5px;
}

html[data-theme] .intro-symbol {
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 10%, transparent);
  color: var(--velo-primary, #0052eb);
}

html[data-theme] .reply-divider,
html[data-theme] .typing,
html[data-theme] .empty-state,
html[data-theme] .empty-dms,
html[data-theme] .you-label,
html[data-theme] .sending,
html[data-theme] .people-list small,
html[data-theme] dialog p {
  color: var(--velo-muted-foreground, #64748b);
}

html[data-theme] .reply-divider {
  border-bottom-color: var(--velo-border, #e2e8f0);
}

html[data-theme] .presence-dot.offline {
  border-color: var(--velo-muted-foreground, #64748b);
}

html[data-theme] .load-more {
  border-color: var(--velo-border, #e2e8f0);
  background: var(--velo-card, #ffffff);
  color: var(--velo-primary, #0052eb);
}

html[data-theme] .load-more:hover {
  background: var(--velo-muted, #f1f5f9);
}

html[data-theme] .sidebar-tools button {
  border-color: var(--velo-border, #e2e8f0);
  background: var(--velo-card, #ffffff);
  color: var(--velo-sidebar-foreground, #0f172a);
}

html[data-theme] .sidebar-tools button:hover {
  background: var(--velo-muted, #f1f5f9);
}

html[data-theme] .people-list > button:hover {
  background: var(--velo-muted, #f1f5f9);
}

html[data-theme] dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

html[data-theme] #toast {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.24);
}

html[data-theme="dark"] #toast {
  background: #1e293b;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1100px) {
  .topbar-left {
    min-width: 245px;
  }
}

@media (max-width: 900px) {
  .topbar-left {
    min-width: 0;
  }
  .velo-app-command-menu [role="menuitem"] {
    min-height: 40px;
    font-size: 14px;
  }
}

html[data-theme] .sidebar {
  padding-top: 12px;
}

.sidebar .workspace-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 6px 8px 6px;
  border-bottom: 1px solid var(--velo-border, #e2e8f0);
  margin-bottom: 8px;
}

.workspace-title-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--velo-sidebar-foreground, var(--velo-foreground, #0f172a));
  background: transparent;
  text-align: left;
}

.workspace-title-btn:hover,
.workspace-title-btn[aria-expanded="true"] {
  background: var(--velo-muted, #f1f5f9);
}

.workspace-title-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-title-btn svg {
  flex-shrink: 0;
  color: var(--velo-muted-foreground, #64748b);
}

.sidebar-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-header-actions .icon-button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: var(--velo-muted-foreground, #64748b);
}

.sidebar-header-actions .icon-button:hover,
.sidebar-header-actions .icon-button[aria-expanded="true"] {
  background: var(--velo-muted, #f1f5f9);
  color: var(--velo-foreground, #0f172a);
}

html[data-theme] .sidebar-quick-nav.sidebar-tools {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1px;
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--velo-border, #e2e8f0);
}

html[data-theme] .sidebar-quick-nav.sidebar-tools[hidden] {
  display: none !important;
}

html[data-theme] .sidebar-quick-nav.sidebar-tools > .sidebar-quick-item {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  min-height: 31px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  color: var(--velo-sidebar-foreground, #0f172a);
}

html[data-theme] .sidebar-quick-nav.sidebar-tools > .sidebar-quick-item:hover {
  background: var(--velo-muted, #f1f5f9);
}

html[data-theme] .sidebar-quick-nav.sidebar-tools > .sidebar-quick-item > svg {
  color: var(--velo-muted-foreground, #64748b);
}

.sidebar-quick-meta {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--velo-muted-foreground, #64748b);
}

.rail-avatar-btn {
  position: relative;
  padding: 2px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rail-avatar-btn:hover,
.rail-avatar-btn[aria-expanded="true"] {
  background: var(--velo-muted, rgba(15, 23, 42, 0.06));
}

.rail-presence-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #2bac76;
  border: 2px solid var(--velo-sidebar-background, #fafafa);
}

.rail-presence-dot.is-away {
  background: transparent;
  border-color: var(--velo-muted-foreground, #94a3b8);
}

html[data-theme] .velo-context-menu,
.velo-context-menu {
  width: 288px;
  max-width: calc(100vw - 20px);
  padding: 6px;
  --velo-corner: 14;
  --velo-surface-fill: var(--velo-popover, #ffffff);
  --velo-surface-border: var(--velo-border, #e2e8f0);
  border-radius: 14px;
  background: var(--velo-popover, #ffffff);
  color: var(--velo-foreground, #0f172a);
  border: 1px solid var(--velo-border, #e2e8f0);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme] .velo-context-menu.velo-user-menu,
.velo-context-menu.velo-user-menu {
  padding: 8px;
  --velo-corner: 16;
  border-radius: 16px;
}

html[data-theme="dark"] .velo-context-menu {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.velo-filter-menu {
  width: 272px;
}

.velo-context-menu.conversation-actions-menu {
  width: 264px;
}

.velo-conv-notify-menu {
  width: 284px;
}

.velo-context-menu hr {
  border: 0;
  border-top: 1px solid var(--velo-border, #e2e8f0);
  margin: 6px -6px;
}

.velo-context-menu.velo-user-menu hr {
  margin: 6px -8px;
}

.velo-menu-section-label {
  padding: 6px 12px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-context-menu [role="menuitem"],
.velo-context-menu [role="menuitemradio"] {
  width: 100%;
  margin: 0;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  --velo-corner: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 480;
  color: var(--velo-foreground, #0f172a);
  background: transparent;
}

.velo-context-menu [role="menuitem"] > svg,
.velo-context-menu [role="menuitemradio"] > svg {
  color: var(--velo-muted-foreground, #64748b);
  flex-shrink: 0;
}

.velo-context-menu [role="menuitemradio"][aria-checked="true"] > svg {
  margin-left: auto;
  color: var(--velo-primary, #0052eb);
}

.velo-context-menu [role="menuitem"]:hover,
.velo-context-menu [role="menuitem"]:focus-visible,
.velo-context-menu [role="menuitemradio"]:hover,
.velo-context-menu [role="menuitemradio"]:focus-visible {
  background: var(--velo-muted, #f1f5f9);
  outline: none;
}

.velo-context-menu kbd,
.velo-context-menu .velo-menu-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 450;
  color: var(--velo-muted-foreground, #64748b);
  white-space: nowrap;
}

.velo-menu-item-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.velo-menu-item-stack small {
  font-size: 11.5px;
  color: var(--velo-muted-foreground, #64748b);
  font-weight: 400;
}

.velo-submenu-drawer {
  margin: 2px 0 4px;
  padding: 4px;
  border-radius: 10px;
  --velo-corner: 10;
  background: color-mix(in srgb, var(--velo-muted, #f1f5f9) 65%, transparent);
}

.velo-submenu-drawer[hidden] {
  display: none !important;
}

.velo-submenu-drawer [role="menuitem"],
.velo-submenu-drawer [role="menuitemradio"] {
  width: 100%;
  margin: 0;
  min-height: 31px;
  border-radius: 6px;
  --velo-corner: 6;
  font-size: 13px;
}

.velo-ws-menu-head {
  padding: 6px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.velo-ws-menu-head strong {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.velo-ws-menu-head small {
  font-size: 12px;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-ws-plan-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
}

.velo-ws-plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.velo-ws-plan-icon img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 9px;
}

.velo-ws-plan-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.velo-ws-plan-copy small {
  font-size: 11.5px;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-ws-plan-copy strong {
  font-size: 13.5px;
  font-weight: 700;
}

.velo-ws-plan-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--velo-primary, #0052eb);
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.velo-ws-plan-link:hover {
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 10%, transparent);
}

.velo-user-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 8px;
}

.velo-user-menu-head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  --velo-corner: 10;
  font-size: 14px;
}

.velo-user-menu-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.velo-user-menu-id strong {
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.velo-user-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #2bac76;
  display: inline-block;
}

.velo-presence-dot.is-away {
  background: transparent;
  border: 1.5px solid var(--velo-muted-foreground, #94a3b8);
}

.velo-status-trigger-row {
  display: flex;
  align-items: center;
  margin: 4px 0 8px;
  border: 1px solid var(--velo-border, #cbd5e1);
  border-radius: 8px;
  --velo-corner: 8;
  background: var(--velo-card, #ffffff);
  overflow: hidden;
  transition: border-color 150ms ease;
}

html[data-theme="dark"] .velo-status-trigger-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
  --velo-edge-color: rgba(255, 255, 255, 0.14);
}

.velo-status-trigger-row:hover {
  border-color: color-mix(in srgb, var(--velo-foreground, #0f172a) 28%, var(--velo-border));
  --velo-edge-color: color-mix(in srgb, var(--velo-foreground, #0f172a) 28%, var(--velo-border));
}

.velo-status-trigger {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 13px;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-status-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.velo-status-trigger-label.has-value {
  color: var(--velo-foreground, #0f172a);
  font-weight: 500;
}

.velo-status-clear {
  width: 30px;
  height: 30px;
  margin-right: 3px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-status-clear:hover {
  background: var(--velo-muted, #f1f5f9);
  color: var(--velo-foreground, #0f172a);
}

html[data-theme] dialog.velo-preferences-modal {
  width: min(780px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 48px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --velo-corner: 20;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08);
}

html[data-theme] dialog.velo-preferences-modal:not([open]) {
  display: none;
}

html[data-theme="dark"] dialog.velo-preferences-modal {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.36);
}

dialog.velo-preferences-modal > header {
  height: 58px;
  flex-shrink: 0;
  margin: 0;
  padding: 0 20px 0 24px;
  border-bottom: 1px solid var(--velo-border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

dialog.velo-preferences-modal > header h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.velo-prefs-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

html[data-theme] .velo-prefs-nav[role="tablist"] {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-right: 1px solid var(--velo-border, #e2e8f0);
  background: color-mix(in srgb, var(--velo-sidebar-background, #fafafa) 75%, var(--velo-popover, #ffffff));
  overflow-y: auto;
}

html[data-theme] .velo-prefs-nav[role="tablist"]::after {
  display: none !important;
  content: none !important;
}

html[data-theme] .velo-prefs-nav[role="tablist"] > .velo-prefs-tab[role="tab"] {
  width: 100%;
  min-height: 35px;
  padding: 7px 11px;
  border-radius: 10px !important;
  --velo-corner: 10;
  border-bottom: 0 !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--velo-muted-foreground, #64748b);
  background: transparent;
}

html[data-theme] .velo-prefs-nav[role="tablist"] > .velo-prefs-tab[role="tab"]:hover {
  background: var(--velo-muted, #f1f5f9);
  color: var(--velo-foreground, #0f172a);
}

html[data-theme] .velo-prefs-nav[role="tablist"] > .velo-prefs-tab[role="tab"][aria-selected="true"] {
  background: var(--velo-primary, #0052eb) !important;
  color: #ffffff !important;
  font-weight: 600;
}

html[data-theme] .velo-prefs-nav[role="tablist"] > .velo-prefs-tab[role="tab"][aria-selected="true"] svg {
  color: #ffffff;
}

.velo-prefs-pane {
  padding: 22px 28px 30px;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
}

.velo-pref-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.velo-pref-group h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--velo-foreground, #0f172a);
}

.velo-pref-desc {
  margin: -2px 0 2px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-pref-hr {
  border: 0;
  border-top: 1px solid var(--velo-border, #e2e8f0);
  margin: 18px 0;
}

.velo-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.velo-mode-card {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  --velo-corner: 10;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-card, #ffffff);
  color: var(--velo-foreground, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.velo-mode-card:hover {
  background: var(--velo-muted, #f1f5f9);
}

.velo-mode-card.is-selected {
  border-color: var(--velo-primary, #0052eb);
  --velo-edge-color: var(--velo-primary, #0052eb);
  --velo-edge-inset: 2;
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 10%, var(--velo-card, #ffffff));
}

.velo-density-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.velo-choice-card {
  padding: 12px 14px;
  border-radius: 12px;
  --velo-corner: 12;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-card, #ffffff);
  color: var(--velo-foreground, #0f172a);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.velo-choice-card strong {
  font-size: 13.5px;
  font-weight: 650;
}

.velo-choice-card small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-choice-card:hover {
  background: var(--velo-muted, #f1f5f9);
}

.velo-choice-card.is-selected {
  border-color: var(--velo-primary, #0052eb);
  --velo-edge-color: var(--velo-primary, #0052eb);
  --velo-edge-inset: 2;
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 8%, var(--velo-card, #ffffff));
}

.velo-subtabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--velo-border, #e2e8f0);
  margin-bottom: 8px;
}

.velo-subtabs button {
  padding: 8px 2px 10px;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-subtabs button.is-active {
  color: var(--velo-foreground, #0f172a);
  border-bottom-color: var(--velo-primary, #0052eb);
}

.velo-swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.velo-swatch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.velo-swatch-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 8px;
  border-radius: 9999px;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-card, #ffffff);
  cursor: pointer;
}

.velo-swatch-pill input[type="color"] {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
}

.velo-swatch-pill code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  flex: 1;
}

.velo-swatch-pill svg {
  color: var(--velo-muted-foreground, #64748b);
}

.velo-check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--velo-foreground, #0f172a);
  cursor: pointer;
  padding: 3px 0;
}

.velo-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.velo-check-row svg {
  color: var(--velo-muted-foreground, #64748b);
  flex-shrink: 0;
}

.velo-sidebar-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.velo-radio-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.velo-radio-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.velo-radio-row input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
}

.velo-radio-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.velo-radio-row strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--velo-foreground, #0f172a);
}

.velo-radio-row small {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-core-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  margin-bottom: 18px;
  border-radius: 12px;
  --velo-corner: 12;
  --velo-edge-color: color-mix(in srgb, var(--velo-primary, #0052eb) 24%, var(--velo-border));
  border: 1px solid color-mix(in srgb, var(--velo-primary, #0052eb) 24%, var(--velo-border));
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 6%, var(--velo-card));
}

.velo-core-callout strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.velo-core-callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-card, #ffffff);
  color: var(--velo-foreground, #0f172a);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.velo-btn-secondary:hover:not(:disabled) {
  background: var(--velo-muted, #f1f5f9);
}

.velo-pref-inline-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.velo-pref-inline-row > label {
  flex: 1;
}

.velo-pref-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.velo-sched-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 12px;
}

.velo-day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.velo-day-pill {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  cursor: pointer;
}

.velo-day-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.velo-day-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-card, #ffffff);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--velo-muted-foreground, #64748b);
}

.velo-day-pill input:checked + span {
  border-color: var(--velo-primary, #0052eb);
  --velo-edge-color: var(--velo-primary, #0052eb);
  --velo-edge-inset: 1.5;
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 12%, var(--velo-card));
  color: var(--velo-primary, #0052eb);
}

.velo-tone-strip {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.velo-tone-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  --velo-corner: 10;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-card, #ffffff);
  font-size: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.velo-tone-btn.is-selected {
  border-color: var(--velo-primary, #0052eb);
  --velo-edge-color: var(--velo-primary, #0052eb);
  --velo-edge-inset: 2;
  background: color-mix(in srgb, var(--velo-primary, #0052eb) 10%, var(--velo-card));
}

.velo-section-order-list,
.velo-check-box-list,
.velo-shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px 0;
}

.velo-section-order-row,
.velo-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--velo-border, #e2e8f0);
  background: var(--velo-card, #ffffff);
  font-size: 13px;
}

.velo-section-order-btns {
  display: inline-flex;
  gap: 6px;
}

.velo-shortcut-row kbd {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--velo-border, #cbd5e1);
  background: var(--velo-muted, #f1f5f9);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 600;
}

.velo-status-dialog {
  width: min(460px, calc(100vw - 24px));
}

.velo-status-input-bar {
  display: flex;
  align-items: center;
  border: 1px solid var(--velo-border, #cbd5e1);
  border-radius: 10px;
  --velo-corner: 10;
  background: var(--velo-card, #ffffff);
  overflow: hidden;
}

.velo-status-input-bar:focus-within {
  border-color: var(--velo-primary, #0052eb);
  --velo-edge-color: var(--velo-primary, #0052eb);
  --velo-edge-inset: 1.5;
}

html[data-theme] .velo-status-emoji-field {
  width: 48px;
  text-align: center;
  border: 0 !important;
  border-right: 1px solid var(--velo-border, #e2e8f0) !important;
  border-radius: 0 !important;
  padding: 10px 6px;
  font-size: 18px;
  background: transparent;
}

html[data-theme] .velo-status-text-field {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 10px 12px;
  font-size: 14px;
  background: transparent;
}

.velo-status-presets-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--velo-muted-foreground, #64748b);
  margin-bottom: -8px;
}

.velo-status-presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.velo-status-preset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 13.5px;
}

.velo-status-preset:hover {
  background: var(--velo-muted, #f1f5f9);
}

.velo-preset-emoji {
  font-size: 16px;
  width: 22px;
  text-align: center;
}

.velo-preset-text {
  font-weight: 500;
}

.velo-status-preset small {
  color: var(--velo-muted-foreground, #64748b);
  font-size: 12px;
  margin-left: auto;
}

.velo-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--velo-border, #e2e8f0);
}

.velo-modal-actions [data-clear-status] {
  margin-right: auto;
}

.velo-modal-actions .primary {
  margin-top: 0 !important;
  padding: 8px 18px;
  min-height: 36px;
  border-radius: 8px;
}

html[data-theme] dialog:not(.conversation-details):not(.velo-preferences-modal) {
  padding: 0 24px 22px;
  width: min(480px, calc(100vw - 28px));
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.2), 0 4px 14px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] dialog:not(.conversation-details):not(.velo-preferences-modal) {
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.58), 0 4px 16px rgba(0, 0, 0, 0.32);
}

html[data-theme] dialog:not(.conversation-details):not(.velo-preferences-modal) > header {
  margin: 0 -24px 18px;
  padding: 16px 20px 14px 24px;
  border-bottom: 1px solid var(--velo-border, #e2e8f0);
}

html[data-theme] dialog:not(.conversation-details):not(.velo-preferences-modal) > header h2 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

html[data-theme] dialog .modal-close,
html[data-theme] .composer-popover .popover-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--velo-muted-foreground, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme] dialog .modal-close:hover,
html[data-theme] .composer-popover .popover-close:hover {
  background: var(--velo-muted, #f1f5f9);
  color: var(--velo-foreground, #0f172a);
}

html[data-theme] dialog:not(.conversation-details):not(.velo-preferences-modal) form > button.primary,
html[data-theme] dialog:not(.conversation-details):not(.velo-preferences-modal) > button.primary,
html[data-theme] dialog:not(.conversation-details):not(.velo-preferences-modal) > button.danger {
  align-self: flex-end;
  width: auto;
  min-width: 112px;
  padding: 9px 18px;
  border-radius: 8px;
  margin-top: 6px;
}

html[data-theme] dialog[data-kind="search"] {
  width: min(620px, calc(100vw - 28px));
}

html[data-theme] dialog .result-item {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 12px;
}

html[data-theme] dialog .result-item:hover {
  background: var(--velo-muted, #f1f5f9);
}

@media (max-width: 720px) {
  .velo-prefs-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  html[data-theme] .velo-prefs-nav[role="tablist"] {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--velo-border, #e2e8f0);
    padding: 8px 10px;
  }
  html[data-theme] .velo-prefs-nav[role="tablist"] > .velo-prefs-tab[role="tab"] {
    width: auto;
    white-space: nowrap;
  }
  .velo-mode-cards,
  .velo-density-cards,
  .velo-swatch-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme] .app-rail,
.app-rail {
  display: none !important;
}

@media (min-width: 901px) {
  html[data-theme] .workspace {
    grid-template-columns: var(--sidebar-width, 264px) minmax(320px, 1fr) auto;
  }
  html[data-theme] .workspace.workspace-wide-view {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  html[data-theme] .workspace.workspace-wide-view > .conversation {
    grid-column: 1;
    grid-row: 2;
  }
  html[data-theme] .workspace.workspace-wide-view > .thread-panel {
    grid-column: 2;
    grid-row: 2;
  }
  html[data-theme] .workspace.workspace-wide-view.profile-open {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  html[data-theme] .workspace.workspace-wide-view.profile-open > #profile-panel {
    grid-column: 2;
  }
  html[data-theme] #profile-panel,
  html[data-theme] .split-panel {
    grid-column: 3;
    grid-row: 2;
  }
  html[data-theme] .workspace:has(.split-panel:not([hidden])) {
    grid-template-columns: var(--sidebar-width, 264px) minmax(280px, 1fr) minmax(280px, 1fr);
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  html[data-theme] .workspace.workspace-wide-view.profile-open {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme] .workspace:has(.split-panel:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  html[data-theme] .workspace:has(.split-panel:not([hidden])) > .conversation {
    grid-column: 1;
  }
  html[data-theme] .workspace:has(.split-panel:not([hidden])) > .split-panel {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  html[data-theme] .workspace,
  html[data-theme] .workspace.workspace-wide-view,
  html[data-theme] .workspace.workspace-wide-view.profile-open,
  html[data-theme] .workspace:has(.split-panel:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme] .composer-bottom > .send-button {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    --velo-corner: 8;
  }
}

.workspace-header-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  --velo-corner: 7;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workspace-header-icon .workspace-icon-photo,
.workspace-header-icon .workspace-icon-monogram {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  --velo-corner: 7;
  font-size: 13px;
}

html[data-theme] .sidebar-footer {
  padding: 8px 4px 10px;
  border-top: 1px solid var(--velo-border);
  margin-top: auto;
  display: block;
}

.sidebar-user-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  --velo-corner: 8;
  background: transparent;
  color: var(--velo-sidebar-foreground);
  text-align: left;
}

.sidebar-user-card:hover,
.sidebar-user-card[aria-expanded="true"] {
  background: var(--velo-muted);
}

.sidebar-user-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.sidebar-user-avatar-wrap .avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  --velo-corner: 8;
  font-size: 11.5px;
}

.sidebar-user-avatar-wrap .rail-presence-dot {
  right: -2px;
  bottom: -2px;
}

.sidebar-user-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.sidebar-user-copy strong {
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy small {
  font-size: 11.5px;
  color: var(--velo-muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-section.sidebar-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 2px 2px 2px 4px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--velo-muted-foreground);
}

.sidebar-section-bar .section-toggle {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 6px;
  --velo-corner: 6;
  color: inherit;
  font-weight: 650;
  font-size: 12.5px;
  text-align: left;
}

.sidebar-section-bar .section-toggle:hover {
  background: var(--velo-muted);
  color: var(--velo-sidebar-foreground);
}

.section-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  color: var(--velo-muted-foreground);
  flex-shrink: 0;
}

.section-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-unread-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--velo-primary);
}

.sidebar-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.sidebar-section-actions .icon-button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  --velo-corner: 6;
  color: var(--velo-muted-foreground);
}

.sidebar-section-actions .icon-button:hover,
.sidebar-section-actions .icon-button[aria-expanded="true"] {
  background: var(--velo-muted);
  color: var(--velo-sidebar-foreground);
}

.sidebar-section-bar .section-more-btn {
  opacity: 0;
  transition: opacity 150ms var(--velo-spring);
}

.sidebar-section-bar:hover .section-more-btn,
.sidebar-section-bar:focus-within .section-more-btn,
.sidebar-section-bar .section-more-btn[aria-expanded="true"] {
  opacity: 1;
}

@media (hover: none) {
  .sidebar-section-bar .section-more-btn {
    opacity: 1;
  }
}

.browse-channels-link {
  margin-top: 2px;
  color: var(--velo-muted-foreground);
  font-size: 13px;
}

.browse-channels-link:hover {
  color: var(--velo-sidebar-foreground);
}

.velo-context-menu .velo-menu-danger,
.velo-context-menu .velo-menu-danger > svg {
  color: #e11d48 !important;
}

html[data-theme="dark"] .velo-context-menu .velo-menu-danger,
html[data-theme="dark"] .velo-context-menu .velo-menu-danger > svg {
  color: #f87171 !important;
}

.velo-context-menu .velo-menu-danger:hover,
.velo-context-menu .velo-menu-danger:focus-visible {
  background: color-mix(in srgb, #e11d48 10%, transparent);
}

html[data-theme="dark"] .velo-context-menu .velo-menu-danger:hover,
html[data-theme="dark"] .velo-context-menu .velo-menu-danger:focus-visible {
  background: color-mix(in srgb, #f87171 14%, transparent);
}

.conversation-heading h1:last-child {
  margin-bottom: 0;
}

.auth.auth-embed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 10px;
}

.velo-soara-spinner {
  position: relative;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.velo-soara-spinner-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.velo-soara-spinner:has(.velo-soara-spinner-img) .velo-soara-spinner-ring {
  display: none;
}

.velo-soara-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2.5px solid color-mix(in srgb, var(--velo-primary) 18%, transparent);
  border-top-color: var(--velo-primary);
  animation: velo-spin 850ms cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes velo-spin {
  to {
    transform: rotate(360deg);
  }
}

.velo-opening-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--velo-foreground);
}

.velo-opening-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--velo-muted-foreground);
}

html[data-theme] .velo-message-banner,
.velo-message-banner {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 95;
  width: min(340px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 16px;
  --velo-corner: 16;
  --velo-surface-fill: var(--velo-popover, #ffffff);
  --velo-surface-border: var(--velo-border, #e2e8f0);
  background: var(--velo-popover, #ffffff);
  color: var(--velo-foreground, #0f172a);
  border: 1px solid var(--velo-border, #e2e8f0);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  animation: velo-surface-enter 220ms var(--velo-spring) backwards;
}

html[data-theme="dark"] .velo-message-banner {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.velo-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.velo-banner-copy strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--velo-foreground, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.velo-banner-copy span {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--velo-muted-foreground, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.velo-banner-close {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 6px;
  --velo-corner: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--velo-muted-foreground, #64748b);
  background: transparent;
}

.velo-banner-close:hover {
  background: var(--velo-muted, #f1f5f9);
  color: var(--velo-foreground, #0f172a);
}

#velo-app-menu-btn .brand-symbol {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 5px;
  --velo-corner: 5;
  overflow: hidden;
}

#velo-app-menu-btn .brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.view-empty-state .velo-soara-empty,
.velo-soara-empty {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

html[data-theme="dark"] .velo-soara-empty {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

.velo-people-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.velo-people-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  --velo-corner: 11;
  background: var(--velo-muted);
}

html[data-theme] .velo-people-tabs[role="tablist"]::after,
.velo-people-tabs::after {
  display: none !important;
  content: none !important;
}

.velo-people-tab,
html[data-theme] .velo-people-tabs[role="tablist"] > .velo-people-tab[role="tab"] {
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 7px !important;
  --velo-corner: 7;
  border: 0;
  border-bottom: 0 !important;
  background: transparent;
  color: var(--velo-muted-foreground);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.velo-people-tab:hover,
html[data-theme] .velo-people-tabs[role="tablist"] > .velo-people-tab[role="tab"]:hover {
  color: var(--velo-foreground);
  background: color-mix(in srgb, var(--velo-foreground) 5%, transparent);
}

.velo-people-tab[aria-selected="true"],
html[data-theme] .velo-people-tabs[role="tablist"] > .velo-people-tab[role="tab"][aria-selected="true"] {
  background: var(--velo-card) !important;
  color: var(--velo-foreground);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .velo-people-tab[aria-selected="true"],
html[data-theme="dark"] .velo-people-tabs[role="tablist"] > .velo-people-tab[role="tab"][aria-selected="true"] {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.velo-group-dm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 8px;
  --velo-corner: 8;
  font-size: 13px;
  font-weight: 600;
  background: var(--velo-primary);
  color: var(--velo-primary-foreground, #ffffff);
  border: 0;
  cursor: pointer;
}

.velo-group-dm-toggle:hover {
  filter: brightness(1.06);
}

.velo-people-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 38px;
  border-radius: 10px;
  --velo-corner: 10;
  --velo-surface-fill: var(--velo-muted);
  --velo-surface-border: var(--velo-border);
  background: var(--velo-muted);
  border: 1px solid var(--velo-border);
  margin-bottom: 16px;
  color: var(--velo-muted-foreground);
}

.velo-people-search:focus-within {
  --velo-surface-border: var(--velo-primary);
  border-color: var(--velo-primary);
  color: var(--velo-foreground);
}

html[data-theme] .velo-people-search input,
.velo-people-search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
  width: 100%;
  font-size: 13.5px;
  color: var(--velo-foreground);
  outline: none;
}

.velo-people-search input::placeholder {
  color: var(--velo-muted-foreground);
}

.velo-group-dm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  --velo-corner: 12;
  background: var(--velo-accent, var(--velo-muted));
  border: 1px solid var(--velo-border);
  font-size: 13px;
  color: var(--velo-foreground);
}

.velo-people-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--velo-muted-foreground);
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--velo-border);
  margin-bottom: 4px;
}

.velo-people-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.velo-person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  --velo-corner: 10;
  cursor: pointer;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--velo-border) 55%, transparent);
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background-color 120ms ease;
}

.velo-person-row:first-child {
  border-top-color: transparent;
}

.velo-person-row:hover,
.velo-person-row:focus-visible,
.velo-person-row.selected,
.velo-person-row.is-checked {
  background: var(--velo-muted);
  outline: none;
  border-top-color: transparent;
}

.velo-person-row:hover + .velo-person-row,
.velo-person-row:focus-visible + .velo-person-row,
.velo-person-row.selected + .velo-person-row,
.velo-person-row.is-checked + .velo-person-row {
  border-top-color: transparent;
}

.velo-person-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.velo-person-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid var(--velo-background);
  background: #64748b;
}

.velo-person-row:hover .velo-person-dot,
.velo-person-row.selected .velo-person-dot,
.velo-person-row.is-checked .velo-person-dot {
  border-color: var(--velo-muted);
}

.velo-person-dot.is-online {
  background: #22c55e;
}

.velo-person-dot.is-away {
  background: #f59e0b;
}

.velo-person-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.velo-person-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--velo-foreground);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.velo-person-meta small {
  font-size: 12px;
  color: var(--velo-muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.velo-you-tag {
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--velo-muted-foreground);
}

.velo-person-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.velo-person-action-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 9px;
  --velo-corner: 9;
  background: var(--velo-card);
  color: var(--velo-muted-foreground);
  border: 1px solid var(--velo-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.velo-person-action-btn:hover {
  color: var(--velo-foreground);
  background: var(--velo-accent, var(--velo-muted));
}

.velo-onboarding-quests {
  max-width: 460px;
  width: 100%;
  margin: 12px auto 24px;
  padding: 20px;
  border-radius: 16px;
  --velo-corner: 16;
  --velo-surface-fill: var(--velo-card);
  --velo-surface-border: var(--velo-border);
  background: var(--velo-card);
  border: 1px solid var(--velo-border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .velo-onboarding-quests {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.velo-quests-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.velo-quests-head > div {
  flex: 1;
  text-align: center;
  padding-left: 28px;
}

.velo-quests-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--velo-foreground);
}

.velo-quests-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--velo-muted-foreground);
}

.velo-quests-head > button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 8px;
  --velo-corner: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--velo-muted-foreground);
  background: transparent;
}

.velo-quests-head > button:hover {
  background: var(--velo-muted);
  color: var(--velo-foreground);
}

.velo-quests-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--velo-muted-foreground);
}

.velo-quests-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--velo-muted);
  overflow: hidden;
}

.velo-quests-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
  transition: width 220ms ease;
}

.velo-quests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.velo-quest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  --velo-corner: 11;
  background: var(--velo-muted);
  border: 1px solid var(--velo-border);
  color: var(--velo-foreground);
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}

.velo-quest-row:hover,
.velo-quest-row:focus-visible {
  background: var(--velo-accent, var(--velo-card));
  border-color: color-mix(in srgb, var(--velo-primary) 30%, var(--velo-border));
  --velo-edge-color: color-mix(in srgb, var(--velo-primary) 30%, var(--velo-border));
  outline: none;
}

.velo-quest-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  --velo-corner: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.velo-quest-badge.tone-indigo {
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
}

html[data-theme="dark"] .velo-quest-badge.tone-indigo {
  background: rgba(129, 140, 248, 0.18);
  color: #a5b4fc;
}

.velo-quest-badge.tone-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

html[data-theme="dark"] .velo-quest-badge.tone-blue {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.velo-quest-badge.tone-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

html[data-theme="dark"] .velo-quest-badge.tone-amber {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}

.velo-quest-badge.tone-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

html[data-theme="dark"] .velo-quest-badge.tone-emerald {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
}

.velo-quest-badge.tone-violet {
  background: rgba(139, 92, 246, 0.14);
  color: #7c3aed;
}

html[data-theme="dark"] .velo-quest-badge.tone-violet {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.velo-quest-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--velo-foreground);
}

.velo-quest-row.is-done .velo-quest-title {
  opacity: 0.78;
}

.velo-quest-status {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--velo-muted-foreground);
  flex-shrink: 0;
}

.velo-quest-row.is-done .velo-quest-status {
  background: rgba(34, 197, 94, 0.16);
  color: #22c55e;
}


.velo-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: calc(100% - 32px);
  margin: 24px auto;
  padding: 22px 22px 20px;
  text-align: center;
}

.velo-welcome-soara {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  margin: 0 auto 2px;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

html[data-theme="dark"] .velo-welcome-soara {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

.velo-welcome .velo-quests-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
}

.velo-welcome .velo-quests-head {
  display: block;
  margin: 0 0 12px;
}

.velo-welcome .velo-quests-head > div {
  padding-left: 0;
}

.velo-welcome .velo-quests-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--velo-foreground);
}

.velo-welcome .velo-quests-progress,
.velo-welcome .velo-quests-list {
  width: 100%;
}

.velo-welcome .velo-quest-row {
  padding: 9px 12px;
}

.velo-welcome.velo-welcome-quiet {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.velo-welcome.velo-welcome-quiet h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.velo-welcome.velo-welcome-quiet p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--velo-muted-foreground);
}

.velo-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.conversation.is-unopened > #timeline {
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversation.is-unopened > #composer,
.conversation.is-unopened > #typing,
.conversation.is-unopened > #conversation-header {
  display: none !important;
}

.message-system {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 27px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--velo-muted-foreground);
}

.message-system strong {
  font-weight: 600;
  color: var(--velo-foreground);
}

.message-system time {
  font-size: 11px;
  opacity: 0.8;
}

.message-system-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .message-system {
    padding: 6px 16px;
  }
}


.velo-group-dm-bar[hidden] {
  display: none !important;
}

#workspace-view[data-destination="Direct messages"]:not([data-master-detail="true"]) .workspace-view-body {
  padding: 18px 24px 24px;
}

#workspace-view .velo-people-header {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 16px;
}

#workspace-view .velo-people-header h1 {
  margin-right: 4px;
}

#workspace-view .velo-people-header .velo-people-tabs {
  margin-right: auto;
}

#workspace-view .velo-people-header [data-action="home"] {
  order: 5;
}

.workspace-master-detail .velo-people-bar {
  padding: 12px 16px 0;
}

.workspace-master-detail .velo-people-search-wrap {
  padding: 0 16px;
}

.workspace-master-detail .velo-group-dm-bar {
  margin: 0 16px 14px;
}

.workspace-master-detail .velo-people-count {
  margin: 0 16px 4px;
  padding-left: 0;
  padding-right: 0;
}

.workspace-master-detail .velo-people-list {
  padding: 0 8px 16px;
}

.velo-pending-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: var(--velo-muted-foreground);
  background: var(--velo-muted);
  border: 1px solid var(--velo-border);
  vertical-align: middle;
}

#workspace-view .velo-people-header .velo-group-dm-toggle {
  color: var(--velo-primary-foreground, #ffffff);
  font-size: 13px;
  padding: 5px 12px;
}

.auth.auth-first {
  justify-content: center;
  gap: 0;
  background: var(--velo-background);
  animation: velo-auth-enter 180ms ease-out both;
}

.auth-first-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth-first-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
}

.auth-first-icon img {
  width: 72px;
  height: 72px;
}

.auth-first-wordmark {
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--velo-foreground);
}

.auth-first-line {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--velo-muted-foreground);
}

.auth-first-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 32px;
}

.auth-first .auth-soartana {
  min-height: 48px;
  border-radius: 999px;
}

.auth-first-actions-pair .velo-btn-secondary {
  min-height: 44px;
  border-radius: 999px;
}

.auth-first-notice {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--velo-muted-foreground);
}

.auth-first-details {
  font-size: 12px;
  color: var(--velo-muted-foreground);
  text-align: center;
}

.auth-first-details summary {
  cursor: pointer;
}

.auth-first-details p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.auth-redirecting .auth-first-notice {
  margin-top: 28px;
}

@keyframes velo-auth-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth.auth-first {
    animation: none;
  }
}

@media (max-width: 600px) {
  .auth.auth-first {
    justify-content: flex-start;
    padding: calc(24px + var(--velo-safe-top)) calc(24px + var(--velo-safe-right)) calc(24px + var(--velo-safe-bottom)) calc(24px + var(--velo-safe-left));
  }

  .auth-first-brand {
    margin-top: 18vh;
  }

  .auth-first-actions {
    max-width: none;
    margin-top: auto;
    padding-top: 32px;
  }

  .auth-first .auth-soartana,
  .auth-first-actions-pair .velo-btn-secondary {
    min-height: 56px;
  }
}
