/*
 * connectHUB design system ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ Windshield.
 *
 * Inter throughout, purple accent, dark global rail, light workspace pane.
 * Type scale is pinned to the product mock: 10 / 11 / 12 / 13 / 14 / 15 / 16 / 20.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400;1,14..32,500&display=swap");

:root {
  color-scheme: light;

  --accent: #5b5ce6;
  --accent-hover: #4a4bd4;
  --accent-active: #3f40c2;
  --accent-deep: #3a3bb8;
  --accent-light: #8b8cf0;
  --accent-tint: #f0f0fe;
  --accent-tint-strong: #e4e4fc;
  --accent-tint-row: #f7f7fe;
  --accent-border: #d4d4f5;

  --brand-blue: #5b5ce6;
  --brand-green: #0f9f6e;
  --brand-pink: #e5326b;
  --brand-amber: #d97706;
  --brand-ink: #111827;

  --ink: #111827;
  --ink-body: #1f2937;
  --ink-strong: #111827;
  --ink-mid: #4b5563;
  --ink-soft: #6b7280;
  --ink-muted: #6b7280;
  --ink-faint: #9ca3af;
  --ink-fainter: #9ca3af;
  --ink-ghost: #d1d5db;

  --surface: #ffffff;
  --surface-list: #f7f8fa;
  --surface-hover: #eef0f4;
  --surface-hover-soft: #f4f5f7;
  --surface-row-hover: #eceef2;
  --surface-chip: #eef0f4;
  --surface-canvas: #f7f8fa;

  --line: #e5e7eb;
  --line-soft: #eef0f4;
  --line-field: #e2e5eb;
  --line-field-soft: #e8eaef;
  --line-input: #dde0e6;
  --line-chip: #e5e7eb;
  --line-button: #e2e5eb;

  --gnav-bg: #2c2d55;
  --gnav-bg-elevated: #3a3b66;
  --gnav-fg: rgba(255, 255, 255, 0.68);
  --gnav-fg-active: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --online: #12b76a;
  --offline: #d1d5db;
  --positive: #079455;
  --negative: #e03e3e;
  --disabled: #c5c8d0;

  --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;

  --text-10: 10px;
  --text-11: 11px;
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-15: 15px;
  --text-16: 16px;
  --text-18: 18px;
  --text-20: 20px;

  --shadow-accent-sm: 0 1px 2px rgba(91, 92, 230, 0.14);
  --shadow-accent-md: 0 8px 20px -8px rgba(91, 92, 230, 0.45);
  --shadow-card: 0 0 0 1px rgba(17, 24, 39, 0.05);
  --shadow-nav-active: none;
  --shadow-composer: 0 8px 24px -16px rgba(17, 24, 39, 0.18);
  --shadow-feed-hover: 0 0 0 1px rgba(17, 24, 39, 0.06);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --space-page: 40px;
  --space-msg-x: 28px;
  --space-msg-y: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-ui);
  font-optical-sizing: auto;
  font-size: var(--text-14);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.011em;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-deep);
}

button,
input,
textarea {
  font-family: inherit;
}

::selection {
  background: var(--accent-tint-strong);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d3d1cb;
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b4b4b0;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes voxiIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes voxiPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.1;
    transform: scale(1.45);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ auth ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.auth-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  background: #f7f7f5;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ brand lockup ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ
   The wordmark is two-tone by definition ("connect" in ink, "HUB" in the brand
   blue), so it ships as <BrandWord /> and is styled here once rather than at
   each of the five places the name appears. `.invert` is for the auth hero's
   blue gradient, where ink would disappear. */

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-word b {
  font-weight: inherit;
  color: var(--accent);
}
/* Light open hero: same two-tone as the rest of the product. */
.brand-word.invert {
  color: var(--ink);
}
.brand-word.invert b {
  color: var(--accent);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-brand-chip {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-brand-word {
  color: var(--ink);
  font-size: var(--text-20);
  font-weight: 700;
  letter-spacing: -0.022em;
}

.auth-hero-body {
  position: relative;
  z-index: 2;
  max-width: 440px;
}
.auth-hero-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.auth-hero-sub {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
.auth-faces {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}
.auth-face {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.auth-blob-a,
.auth-blob-b {
  position: absolute;
  border-radius: 99px;
}
.auth-blob-a {
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: rgba(91, 92, 230, 0.08);
}
.auth-blob-b {
  right: 60px;
  top: -90px;
  width: 240px;
  height: 240px;
  background: rgba(15, 159, 110, 0.06);
}
.auth-hero-foot {
  position: relative;
  z-index: 2;
  color: var(--ink-faint);
  font-size: 13px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-left: 1px solid var(--line);
}
.auth-form {
  width: 100%;
  max-width: 392px;
  animation: none;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 8px;
}
.auth-sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 32px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 7px;
}
.auth-label + .auth-input {
  margin-bottom: 18px;
}
.auth-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-input);
  border-radius: 11px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  background: #fff;
}
.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.auth-input.last {
  margin-bottom: 0;
}
.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 22px;
}
.auth-forgot button {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.auth-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-accent-md);
  transition: background 0.15s;
}
.auth-submit:hover {
  background: var(--accent-hover);
}
.auth-submit:active {
  background: var(--accent-active);
}
.auth-submit:disabled {
  background: var(--disabled);
  box-shadow: none;
  cursor: not-allowed;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.auth-or span {
  font-size: 12px;
  color: #9a97a6;
  font-weight: 600;
}
.auth-or i {
  height: 1px;
  background: #eceaf2;
  flex: 1;
}
.auth-alts {
  display: grid;
  gap: 10px;
}
.auth-alt {
  height: 46px;
  border: 1px solid var(--line-input);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-alt:hover {
  background: var(--surface-hover-soft);
  border-color: #d8d4e4;
}
.auth-foot {
  font-size: 13px;
  color: #9a97a6;
  margin: 28px 0 0;
  text-align: center;
}
.auth-foot button {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}
.auth-message {
  font-size: 13px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}
.auth-message.error {
  color: var(--negative);
}

/* Onboarding step (prototype's second auth stage). */
.auth-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.auth-step {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: #e6e2f2;
}
.auth-step.on {
  background: var(--accent);
}
.auth-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #e8e5f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.auth-pick.on {
  background: #faf8ff;
  border-color: var(--accent-border);
}
.auth-pick .hash {
  color: #9a97a6;
  font-size: 15px;
  font-weight: 600;
}
.auth-pick-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.auth-pick-meta {
  font-size: 12px;
  color: var(--ink-faint);
}
.auth-pick-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d8d4e4;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.auth-pick.on .auth-pick-box {
  border-color: var(--accent);
  background: var(--accent);
}

.people-directory {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 160px);
}
.people-directory-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 160px);
}
.people-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-field);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-faint);
  margin-bottom: 10px;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.people-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.people-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.people-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-hover);
}
.people-filter {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.people-filter.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.people-rows {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  align-content: start;
}
.people-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  transition: background 140ms var(--ease-out);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.people-row:hover {
  background: var(--surface-hover);
}
.people-row.active {
  background: var(--accent-tint);
}
.people-row-main {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}
.people-row-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-row-sub {
  font-size: 12px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-deactivated-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-chip);
  border-radius: 5px;
  padding: 2px 6px;
}

.people-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: none;
  min-height: 360px;
}
.people-profile.empty {
  justify-content: center;
  gap: 14px;
}
.people-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: none;
}
.people-profile h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.people-profile-title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
}
.people-profile-email {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.people-profile-status {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-hover);
  font-size: 13.5px;
  color: var(--ink-body);
}
.people-profile-banner {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7f5;
  border: 1px solid #f3c5bc;
  color: var(--negative);
  font-size: 13px;
  font-weight: 650;
  width: 100%;
  max-width: 420px;
}
.people-profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 0;
  width: 100%;
  max-width: 420px;
  text-align: left;
}
.people-profile-meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-fainter);
  font-weight: 700;
}
.people-profile-meta dd {
  margin: 3px 0 0;
  font-weight: 650;
  color: var(--ink);
  font-size: 13.5px;
}
.people-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.people-admin {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 12px;
}
.people-admin h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-fainter);
}
.people-admin label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-muted);
}
.people-admin select {
  height: 36px;
  border: 1px solid var(--line-field);
  border-radius: 9px;
  padding: 0 10px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
}

.people-invite {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}
.people-invite-card,
.people-invite-pending {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.people-invite-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.people-invite-card > p {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}
.people-invite-card .form-stack label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-muted);
}
.people-invite-card .form-stack input,
.people-invite-card .form-stack select {
  height: 40px;
  border: 1px solid var(--line-field);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.people-invite-pending h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 750;
}
.people-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.people-invite-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-hover-soft);
}
.people-invite-list strong {
  font-size: 13.5px;
}
.people-invite-list span {
  font-size: 12px;
  color: var(--ink-faint);
}

.people-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 900px) {
  .people-directory {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .people-directory-list {
    max-height: 420px;
  }
  .people-invite {
    grid-template-columns: 1fr;
  }
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ app shell (Windshield architecture: sidebar | main [| thread]) ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.app {
  height: 100vh;
  display: flex;
  background: var(--surface);
  color: var(--ink);
  overflow-x: auto;
  overflow-y: hidden;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ Windshield four-column shell ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ
 * global nav (dark) | workspace sidebar | main | about / thread
 */

.gnav {
  width: 68px;
  flex: none;
  background: var(--gnav-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 16px;
  gap: 2px;
  z-index: 2;
  border-right: 0;
}
.gnav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  text-decoration: none;
}
.gnav-brand-chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.gnav-brand:hover .gnav-brand-chip {
  transform: translateY(-1px);
  background: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.5);
}
.gnav-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
}
.gnav-item {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 4px 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gnav-fg);
  font: inherit;
  font-size: var(--text-10);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}
.gnav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gnav-fg-active);
}
.gnav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gnav-fg-active);
  box-shadow: none;
  font-weight: 600;
}
.gnav-item.active::before {
  display: none;
}
.gnav-item:disabled {
  opacity: 0.4;
  cursor: default;
}
.gnav-label {
  line-height: 1;
}
.gnav-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--negative);
  color: #fff;
  font-size: var(--text-10);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--gnav-bg);
}
.gnav-spacer {
  flex: 1;
}
.gnav-user {
  position: relative;
  display: flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.gnav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-11);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.user-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
}

/* Slack-style status and availability controls --------------------------- */
.status-controls{flex:none;position:relative}
.gnav-presence{background:var(--online);border:2px solid var(--gnav-bg);border-radius:99px;width:11px;height:11px;position:absolute;bottom:-1px;right:-1px}
.gnav-presence.away{box-shadow:inset 0 0 0 2px var(--ink-ghost);background:var(--gnav-bg)}
.gnav-status-emoji{background:#fff;border-radius:6px;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 2px;font-size:11px;line-height:1;display:inline-flex;position:absolute;top:-7px;right:-9px;box-shadow:0 1px 5px #00000038}
.gnav-dnd{color:#fff;background:#c83d55;border:2px solid var(--gnav-bg);border-radius:99px;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex;position:absolute;bottom:-5px;right:-7px}
.status-menu{z-index:1400;border:1px solid var(--line-field);width:330px;max-height:min(660px,calc(100vh - 24px));color:var(--ink);text-align:left;background:#fff;border-radius:14px;padding:10px;position:absolute;bottom:-3px;left:52px;overflow-y:auto;box-shadow:0 18px 60px #16102647}
.status-menu-profile{align-items:center;gap:11px;padding:8px 8px 12px;display:flex}
.status-menu-avatar{border-radius:10px;flex:none;justify-content:center;align-items:center;width:46px;height:46px;font-size:13px;font-weight:800;display:inline-flex;overflow:hidden}
.status-menu-profile>div{gap:2px;min-width:0;display:grid}
.status-menu-profile strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}
.status-menu-profile span{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;overflow:hidden}
.status-menu-main,.status-menu-row{width:100%;min-height:38px;color:var(--ink-body);font:inherit;text-align:left;cursor:pointer;background:transparent;border:0;border-radius:8px;align-items:center;gap:9px;padding:7px 9px;font-size:12.5px;text-decoration:none;display:flex}
.status-menu-main{border:1px solid var(--line-field);background:var(--surface-hover-soft);min-height:44px;font-weight:700}
.status-menu-main>span:first-child{font-size:18px}
.status-menu-main>span:nth-child(2){flex:1}
.status-menu-main:hover,.status-menu-row:hover{background:var(--surface-row-hover);color:var(--ink)}
.status-menu-row.danger{color:var(--negative)}
.status-menu-row:disabled{opacity:.6;cursor:default}
.status-menu-signout{min-height:42px;font-size:13.5px;font-weight:600}
.status-menu-signout:hover{color:#fff;background:var(--negative)}
.status-menu-signout:disabled:hover{color:var(--ink-body);background:transparent}
.status-menu-separator{background:var(--line);height:1px;margin:7px 0}
.status-presence-dot{background:var(--online);border-radius:99px;flex:none;width:12px;height:12px}
.status-presence-dot.away{box-shadow:inset 0 0 0 2px var(--ink-faint);background:#fff}
.status-focus-icon,.status-sliders{width:16px;color:var(--ink-mid);text-align:center;flex:none;font-size:17px}
.status-menu-row>svg:last-child{color:var(--accent);margin-left:auto}
.status-menu-section-head{color:var(--ink-faint);letter-spacing:.05em;text-transform:uppercase;justify-content:space-between;padding:4px 9px 3px;font-size:10px;font-weight:800;display:flex}
.status-menu-section-head b{font-weight:750}
.status-schedule-row{grid-template-columns:minmax(0,1fr) 30px;align-items:center;display:grid}
.status-schedule-row>button{min-width:0;min-height:42px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:transparent;border:0;border-radius:8px;align-items:center;gap:9px;padding:5px 8px;display:flex}
.status-schedule-row>button:hover{background:var(--surface-hover)}
.status-schedule-row>button:last-child{width:28px;min-height:28px;color:var(--ink-faint);justify-content:center;padding:0;font-size:18px}
.status-schedule-row>button>span:last-child{gap:1px;min-width:0;display:grid}
.status-schedule-row strong,.status-schedule-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.status-schedule-row strong{font-size:11.5px}
.status-schedule-row small{color:var(--ink-faint);font-size:9.5px}
.status-menu-error,.status-modal-error{color:var(--negative);margin:7px 8px 2px;font-size:11px;line-height:1.4}
.status-modal-backdrop{z-index:1500;backdrop-filter:blur(2px);background:#140f1f7a;place-items:center;padding:18px;display:grid;position:fixed;inset:0}
.status-modal{border:1px solid var(--line-field);width:min(520px,100%);max-height:min(760px,calc(100vh - 36px));color:var(--ink);text-align:left;background:#fff;border-radius:16px;overflow-y:auto;box-shadow:0 24px 80px #140f1f52}
.status-modal>header{border-bottom:1px solid var(--line);align-items:flex-start;gap:16px;padding:18px 20px 14px;display:flex}
.status-modal>header>div{flex:1;min-width:0}
.status-modal h2{letter-spacing:-.025em;margin:0;font-size:19px}
.status-modal header p{color:var(--ink-muted);margin:4px 0 0;font-size:11.5px;line-height:1.45}
.status-modal>header>button{width:30px;height:30px;color:var(--ink-muted);cursor:pointer;background:transparent;border:0;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex}
.status-modal>header>button:hover{background:var(--surface-hover)}
.status-modal form{padding:18px 20px 20px}
.status-editor-input{border:1px solid var(--line-field);background:#fff;border-radius:11px;grid-template-columns:52px minmax(0,1fr);height:48px;display:grid}
.status-editor-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint)}
.status-editor-input input{min-width:0;color:var(--ink);font:inherit;background:transparent;border:0;outline:0;padding:0 12px;font-size:13px}
.status-editor-input input:first-child{border-right:1px solid var(--line);text-align:center;padding:0;font-size:20px}
.status-choice-section{margin-top:16px}
.status-choice-section h3{color:var(--ink-muted);margin:0 0 7px 9px;font-size:11px;font-weight:650}
.status-recent-list{gap:3px;display:grid}
.status-recent-row{border-radius:7px;align-items:stretch;min-height:38px;display:flex}
.status-recent-row:hover,.status-recent-row:focus-within{background:var(--accent);color:#fff}
.status-recent-select{min-width:0;color:inherit;text-align:left;cursor:pointer;background:transparent;border:0;flex:1;align-items:center;gap:7px;padding:7px 8px;display:flex}
.status-recent-select strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}
.status-recent-select>span:last-child{color:var(--ink-muted);white-space:nowrap;font-size:11.5px}
.status-recent-row:hover .status-recent-select>span:last-child,.status-recent-row:focus-within .status-recent-select>span:last-child{color:#ffffffd1}
.status-choice-emoji{text-align:center;flex:0 0 22px;font-size:18px}
.status-recent-remove{width:36px;color:inherit;cursor:pointer;background:transparent;border:0;border-radius:7px;place-items:center;padding:0;display:grid}
.status-recent-remove:hover{background:#00000024}
.status-suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 16px;display:grid}
.status-suggestions button{border:1px solid var(--line-soft);background:var(--surface-hover-soft);min-height:36px;color:var(--ink-body);font:inherit;text-align:left;cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:6px 9px;font-size:11.5px;display:flex}
.status-suggestions button:hover{border-color:var(--accent-border);background:var(--accent-tint)}
.status-field-label,.status-date-grid label{color:var(--ink-mid);gap:6px;font-size:11.5px;font-weight:700;display:grid}
.status-field-label select,.status-datetime,.status-date-grid input{border:1px solid var(--line-field);width:100%;height:40px;color:var(--ink);font:inherit;background:#fff;border-radius:9px;outline:0;padding:0 11px;font-size:12px}
.status-datetime{margin-top:8px}
.status-check{color:var(--ink-body);align-items:center;gap:8px;margin-top:14px;font-size:11.5px;display:flex}
.status-check input,.automatic-status-options input{accent-color:var(--accent)}
.status-modal footer{justify-content:flex-end;gap:8px;margin-top:20px;display:flex}
.status-modal footer button{border:1px solid var(--line-field);min-height:38px;color:var(--ink-body);font:inherit;cursor:pointer;background:#fff;border-radius:9px;padding:0 14px;font-size:12px;font-weight:700}
.status-modal footer button.primary{border-color:var(--accent);background:var(--accent);color:#fff}
.status-modal footer button:disabled{opacity:.55;cursor:default}
.status-date-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px;display:grid}
.automatic-status-options{border:1px solid var(--line-field);border-radius:11px;gap:1px;display:grid;overflow:hidden}
.automatic-status-options>label{border-bottom:1px solid var(--line-soft);background:#fff;align-items:center;gap:12px;min-height:62px;padding:10px 12px;display:flex}
.automatic-status-options>label:last-child{border-bottom:0}
.automatic-status-options label>span{flex:1;gap:2px;display:grid}
.automatic-status-options strong{font-size:12px}
.automatic-status-options small{color:var(--ink-muted);font-size:10.5px}
.automatic-status-options input{width:34px;height:18px}
.working-hours{margin-top:18px}
.working-days{grid-template-columns:repeat(7,1fr);gap:5px;margin-top:10px;display:grid}
.working-days button{aspect-ratio:1;border:1px solid var(--line-field);color:var(--ink-muted);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:0;font-size:11px;font-weight:700}
.working-days button.active{border-color:var(--accent);background:var(--accent-tint);color:var(--accent-deep)}
@media (max-width:620px){
  .status-menu{width:auto;position:fixed;bottom:10px;left:10px;right:10px}
  .status-suggestions,.status-date-grid{grid-template-columns:1fr}
}

.app.windshield .rail {
  display: none;
}

.sidebar {
  width: 268px;
  flex: none;
  background: var(--surface-list);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 12px;
}
.sidebar-brand-chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent-md);
  flex: none;
}
.sidebar-brand-chip svg {
  filter: brightness(0) invert(1);
}
.sidebar-brand-copy {
  display: grid;
  min-width: 0;
  flex: 1;
}
.sidebar-brand-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-16);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink);
}
.sidebar-brand-copy strong svg {
  color: var(--ink-faint);
}
.sidebar-brand-copy span {
  font-size: var(--text-12);
  font-weight: 400;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 10px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-field);
  background: #fff;
  color: var(--ink-faint);
  font: inherit;
  font-size: var(--text-13);
  cursor: pointer;
  text-align: left;
}
.sidebar-search span {
  flex: 1;
}
.sidebar-search kbd {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-fainter);
  border: 1px solid var(--line-field);
  border-radius: 6px;
  padding: 1px 5px;
  background: var(--surface-list);
}
.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 12px;
}
.sidebar-section {
  margin-bottom: 14px;
}
.sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-section-label {
  font-size: var(--text-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 8px 6px;
}
.sidebar-section-add {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.sidebar-section-add:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.sidebar-link,
.sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-mid);
  font: inherit;
  font-size: var(--text-14);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-link:hover,
.sidebar-row:hover {
  background: var(--surface-hover);
}
.sidebar-link.active,
.sidebar-row.active {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
}
.sidebar-badge {
  margin-left: auto;
  font-size: var(--text-11);
  font-weight: 700;
  color: #fff;
  background: var(--negative);
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.sidebar-badge.mention {
  background: #d92d20;
  box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.12);
}
.sidebar-row .hash {
  color: var(--ink-ghost);
  font-weight: 600;
  width: 14px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-row-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
}
.sidebar-status-emoji {
  margin-left: 5px;
  flex: none;
  font-size: 11px;
  cursor: default;
}
.sidebar-status-tooltip {
  position: fixed;
  z-index: 4000;
  min-width: 132px;
  max-width: 230px;
  padding: 8px 12px;
  display: grid;
  gap: 2px;
  transform: translate(-50%, -100%);
  border-radius: 8px;
  background: #1d1c1d;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  text-align: center;
  animation: status-tooltip-in 100ms ease-out;
}
.sidebar-status-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1d1c1d;
}
.sidebar-status-tooltip strong {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-status-tooltip small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
}
@keyframes status-tooltip-in {
  from { opacity: 0; transform: translate(-50%, calc(-100% + 3px)); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}
.sidebar-row:has(.sidebar-badge) .sidebar-row-name {
  font-weight: 750;
  color: var(--ink);
}
.sidebar-row.person {
  align-items: center;
}
.sidebar-row-main {
  display: grid;
  min-width: 0;
  flex: 1;
}
.sidebar-row-sub {
  font-size: var(--text-12);
  color: var(--ink-faint);
  font-weight: 400;
}
.sidebar-empty,
.sidebar-more {
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 6px 8px;
}
.sidebar-more {
  display: block;
  text-decoration: none;
  font-weight: 650;
  color: var(--accent);
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px 14px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.sidebar-connect {
  margin: 4px 12px 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #6a6bea 0%, #4a4bd4 55%, #3a3bb8 100%);
  color: #fff;
  box-shadow: var(--shadow-accent-md);
}
.sidebar-connect-copy {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.sidebar-connect-copy strong {
  font-size: var(--text-14);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.sidebar-connect-copy span {
  font-size: var(--text-12);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.sidebar-connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: var(--text-13);
  font-weight: 600;
  cursor: pointer;
}
.sidebar-connect-btn:disabled {
  opacity: 0.85;
  cursor: default;
}

.composer-ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: var(--text-13);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.composer-ask:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--ink);
}
.composer-ask:disabled {
  opacity: 0.7;
  cursor: default;
}
.composer-ask.active {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.composer-send-split {
  display: inline-flex;
  align-items: stretch;
  border-radius: 7px;
  overflow: hidden;
}
.composer-send-split .composer-send {
  border-radius: 8px 0 0 8px;
}
.composer-send-menu {
  width: 26px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--disabled);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 0 8px 8px 0;
}
.composer-send-split .composer-send.ready + .composer-send-menu {
  background: var(--accent);
}
.composer-send-label {
  display: inline;
}
.msg.question-card {
  background: #fff5f5;
  border: 1px solid #f8d0d0;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 6px var(--space-msg-x);
}
.msg.question-card:hover {
  background: #fff1f1;
}
.msg-tag.open {
  color: #fff;
  background: var(--negative);
}
.msg-tag.asked {
  color: var(--negative);
  background: #ffe6e0;
}
.msg-tag.decided {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--positive);
  background: #e5f6ec;
}
.msg-text.question {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-15);
}
.msg-question-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.msg-answer {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--negative);
  border-radius: 8px;
  background: #fff;
  color: var(--negative);
  font: inherit;
  font-size: var(--text-13);
  font-weight: 600;
  cursor: pointer;
}
.msg-answer:hover {
  background: #fff7f5;
}
.head-connect {
  width: auto;
  gap: 7px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-tint);
}
.head-connect:hover {
  background: var(--accent-tint-strong);
}
.main-head-lock {
  display: inline-flex;
  color: var(--accent);
  flex: none;
}
.main-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-top: 4px;
  font-size: var(--text-12);
  color: var(--ink-muted);
}
.main-head-meta > span:not(.dotsep) {
  color: var(--ink-muted);
}
.main-head-meta .dotsep {
  color: var(--ink-ghost);
  margin: 0 2px;
}
.main-head-meta .alert {
  color: var(--negative);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-12);
  cursor: pointer;
}

/* About this room ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ right context panel */
.about {
  width: 320px;
  flex: none;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
  animation: voxiIn 0.22s ease both;
}
.about-head {
  display: flex;
  align-items: center;
  padding: 18px 18px 14px;
  flex: none;
  border-bottom: 1px solid var(--line);
}
.about-head > span {
  font-size: var(--text-16);
  font-weight: 600;
  letter-spacing: -0.018em;
  flex: 1;
}
.about-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.about-close:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.about-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 18px 20px;
}
.about-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.about-section:last-child {
  border-bottom: 0;
}
.about-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-section-label {
  font-size: var(--text-11);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.about-section-head .about-section-label {
  margin-bottom: 0;
  flex: 1;
}
.about-count {
  font-size: 12px;
  font-weight: 750;
  color: var(--ink-muted);
}
.about-copy {
  margin: 0;
  font-size: var(--text-14);
  line-height: 1.5;
  color: var(--ink-soft);
}
.about-members {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.about-faces {
  display: flex;
  align-items: center;
  flex: 1;
}
.about-face {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  border: 2px solid #fff;
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.about-face-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 -8px 0 0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 0;
}
.about-face-trigger .about-face {
  margin-right: 0;
}
.about-face-trigger:hover,
.about-face-trigger:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 1px;
}
.about-face-trigger:disabled {
  cursor: default;
}
.about-face-extra {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 750;
  color: var(--accent);
}
.about-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.about-link:disabled {
  opacity: 0.5;
  cursor: default;
}
.about-pins {
  display: grid;
  gap: 8px;
}
.about-pin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-hover-soft);
}
.about-pin-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.about-pin-icon.slides {
  background: #f7b23b;
}
.about-pin-icon.docs {
  background: #4285f4;
}
.about-pin-meta {
  display: grid;
  min-width: 0;
}
.about-pin-meta strong {
  font-size: var(--text-14);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.about-pin-meta span {
  font-size: var(--text-12);
  color: var(--ink-faint);
}
.about-integrations {
  display: flex;
  gap: 8px;
}
.about-integration {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #00a1e0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.about-integration.hubspot {
  background: #ff7a59;
}
.about-integration.more {
  background: var(--surface-chip);
  color: var(--ink-muted);
  border: 1px solid var(--line-chip);
}
.about-actions {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}
.about-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-mid);
  font: inherit;
  font-size: var(--text-14);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.about-action span {
  flex: 1;
}
.about-action svg:last-child {
  color: var(--ink-ghost);
  transform: rotate(-90deg);
}
.about-action:hover:not(:disabled) {
  background: var(--surface-hover);
}
.about-action:disabled {
  opacity: 0.55;
  cursor: default;
}
.about-action.leave {
  color: var(--negative);
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ about panel: live room detail (description edit, pins, apps, prefs) ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.about-error {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff1ee;
  border: 1px solid #f3c5bc;
  color: var(--negative);
  font-size: 12.5px;
}
.about-copy.muted {
  color: var(--ink-faint);
}
.about-topic {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.about-empty {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
}
.about-hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  flex: 1;
}
.about-edit {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.about-textarea,
.about-field input {
  width: 100%;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}
.about-textarea:focus,
.about-field input:focus {
  outline: 2px solid var(--accent, #5b5ce6);
  outline-offset: -1px;
}
.about-edit-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-btn {
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-mid);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}
.about-btn:hover:not(:disabled) {
  background: var(--surface-hover);
}
.about-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.about-btn.primary {
  background: var(--accent, #5b5ce6);
  border-color: var(--accent, #5b5ce6);
  color: #fff;
}
.about-btn.danger {
  color: var(--negative);
  border-color: #f3c5bc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.about-btn.wide {
  width: 100%;
}
.about-pin-icon.pinned {
  background: var(--accent, #5b5ce6);
}
/* The pin row's body is a button (jump-to-message) but must still read as
   the two-line block the static markup was ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ hence the button reset. */
.about-pin-meta {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  flex: 1;
}
.about-pin-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.about-pin-remove {
  width: 22px;
  height: 22px;
  flex: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.about-pin-remove:hover:not(:disabled) {
  background: #fff;
  color: var(--negative);
}
.about-integrations {
  flex-wrap: wrap;
  align-items: center;
}
.about-integration-slot {
  position: relative;
  display: inline-flex;
}
.about-integration-link {
  display: inline-flex;
}
.about-integration-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  border: 1px solid var(--line-chip);
  background: #fff;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.about-integration-remove:hover:not(:disabled) {
  color: var(--negative);
  border-color: #f3c5bc;
}
.about-integration.github {
  background: #24292f;
}
.about-integration.jira {
  background: #2684ff;
}
.about-integration.linear {
  background: #5e6ad2;
}
.about-integration.notion {
  background: #37352f;
}
.about-integration.zoom {
  background: #2d8cff;
}
.about-integration.gdrive {
  background: #1fa463;
}
.about-integration.custom {
  background: var(--ink-muted);
}
.about-integration-picker {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
}
.about-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  text-align: left;
  cursor: pointer;
}
.about-provider .about-integration {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 9px;
}
.about-provider > span:nth-child(2) {
  flex: 1;
}
.about-provider:hover:not(:disabled) {
  background: var(--surface-hover);
}
.about-provider.linked {
  color: var(--ink-faint);
  cursor: default;
}
.about-drawer {
  display: grid;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-hover-soft);
}
.about-radio,
.about-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  cursor: pointer;
}
.about-radio input,
.about-toggle input {
  margin-top: 2px;
  accent-color: var(--accent, #5b5ce6);
  cursor: pointer;
}
.about-radio span,
.about-toggle span {
  display: grid;
  gap: 1px;
}
.about-radio strong,
.about-toggle strong {
  font-weight: 650;
  color: var(--ink);
}
.about-radio em,
.about-toggle em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.about-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-fainter);
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.about-facts dt {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-fainter);
}
.about-facts dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: capitalize;
}

/* Confirmation dialogs reuse the invite modal shell but hold only prose, so
   they must not stretch to its list height. */
.channel-invite-modal.confirm {
  width: min(400px, 100%);
  max-height: none;
}
.message-delete-preview {
  max-height: 130px;
  overflow-y: auto;
  margin: 0 20px 4px;
  padding: 11px 13px;
  border-left: 3px solid var(--line-field);
  border-radius: 0 8px 8px 0;
  background: var(--surface-hover-soft);
  color: var(--ink-body);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-delete-error {
  padding: 7px 20px 0;
}
.screen-btn.danger {
  background: var(--negative);
  border-color: var(--negative);
  color: #fff;
}

/* Pinned message affordances in the feed. */
.msg-tag.pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent, #5b5ce6);
  background: #d3e4fb;
}
.msg-flash {
  animation: msgFlash 1.6s ease both;
}
@keyframes msgFlash {
  0%,
  55% {
    background: #d3e4fb;
  }
  100% {
    background: transparent;
  }
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ rail (legacy; hidden in windshield shell) ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.rail {
  width: 196px;
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 20px;
}
.rail-brand-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(26, 115, 232, 0.9);
  flex: none;
}
.rail-brand-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rail-nav {
  display: grid;
  gap: 2px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-mid);
  font-size: 14px;
  font-weight: 500;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.12s;
  font-family: inherit;
}
.rail-item:hover {
  background: var(--surface-hover);
}
.rail-item.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  box-shadow: var(--shadow-nav-active);
}
.rail-item .label {
  flex: 1;
}
.rail-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 99px;
  padding: 2px 7px;
}

.rail-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-fainter);
  padding: 22px 10px 8px;
}
.rail-favorites {
  display: grid;
  gap: 2px;
}
.rail-favorite {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-mid);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.rail-favorite:hover {
  background: var(--surface-hover);
}
.rail-favorite .hash {
  color: var(--ink-ghost);
  font-weight: 600;
}
.rail-favorite .label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-favorite .dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent);
  flex: none;
}

.rail-spacer {
  flex: 1;
}

.rail-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-card);
}
.rail-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.rail-user-meta {
  flex: 1;
  min-width: 0;
}
.rail-user-name {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-user-status {
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 5px;
}
.rail-user-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--online);
  flex: none;
}
.rail-user-more {
  display: flex;
  color: var(--ink-fainter);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ list sidebar ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.list {
  width: 292px;
  flex: none;
  background: var(--surface-list);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.list-head {
  padding: 18px 16px 12px;
}
.list-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.list-title-wrap {
  flex: 1;
  min-width: 0;
}
.list-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}
.list-title .chev {
  color: var(--ink-faint);
  display: flex;
}
.list-subtitle {
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.list-subtitle .dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--online);
  flex: none;
}

.list-compose {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-accent-sm);
  flex: none;
}
.list-compose:hover {
  background: var(--accent-hover);
}
.list-filter {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.list-filter:hover {
  background: var(--surface-chip);
}

.list-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line-field-soft);
  border-radius: 11px;
  padding: 0 12px;
  cursor: pointer;
}
.list-search .lead {
  color: var(--ink-fainter);
  display: flex;
}
.list-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.list-search .kbd {
  font-size: 11px;
  color: var(--ink-fainter);
  font-weight: 600;
}

.list-body {
  flex: 1;
  overflow-y: auto;
  padding: 2px 12px 12px;
}
.list-group {
  margin-bottom: 14px;
}
.list-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
}
.list-group-head span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.list-group-head button {
  color: var(--ink-fainter);
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  padding: 0;
}
.list-rows {
  display: grid;
  gap: 1px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  cursor: pointer;
  background: transparent;
  transition: background 0.12s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.list-row:hover {
  background: var(--surface-row-hover);
}
.list-row.active {
  background: var(--accent-tint-row);
}
.list-row .hash {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.65;
  color: var(--ink-strong);
}
.list-row.active .hash,
.list-row.active .list-row-name {
  color: var(--accent);
}
.list-row.active .list-row-name {
  font-weight: 700;
}
.list-row-avatar-wrap {
  position: relative;
  flex: none;
}
.list-row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-11);
  font-weight: 600;
}
.list-row-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 2px solid var(--surface-list);
}
.list-row-main {
  flex: 1;
  min-width: 0;
}
.list-row-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-row-sub {
  font-size: 12px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.list-row-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  padding: 1px 7px;
}
.list-row-meta {
  font-size: 11px;
  color: var(--ink-fainter);
  font-weight: 500;
}

.focus-card {
  margin: 0 12px 14px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(150deg, #f0eaff, #e7defb);
  position: relative;
  overflow: hidden;
  flex: none;
}
.focus-close {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #7a6fa0;
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}
.focus-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.focus-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 170px;
}
.focus-action {
  margin-top: 14px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 2;
}
.focus-action:hover {
  background: var(--accent-hover);
}
.focus-blob {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: rgba(26, 115, 232, 0.12);
  transform: rotate(18deg);
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ main pane ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.main {
  flex: 1;
  min-width: 480px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.main-head {
  padding: 16px 28px 0;
  border-bottom: 1px solid var(--line);
  flex: none;
  background: #fff;
  backdrop-filter: none;
}
.main-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}
.main-head-left {
  flex: 1;
  min-width: 0;
}
.main-head-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
.main-head-title-row > svg {
  color: var(--ink-ghost);
  flex: none;
}
.main-head-hash {
  font-size: 18px;
  color: var(--ink-fainter);
  font-weight: 600;
}
.main-head-title {
  font-family: var(--font-display);
  font-size: var(--text-20);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
button.main-head-title {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  font: inherit;
}
button.main-head-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.main-head-star {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-ghost);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line-button);
  border-radius: 9px;
  padding: 0;
  flex: none;
}
.main-head-star:hover {
  background: var(--surface-hover-soft);
  color: var(--ink-mid);
}
.main-head-star.active {
  color: #c58b00;
  background: #fff8db;
  border-color: #ead58c;
}
.main-head-star.active svg {
  fill: #f6c344;
}
.main-head .main-head-meta {
  display: flex;
}
.main-head-sub {
  font-size: var(--text-12);
  color: var(--ink-muted);
  margin-top: 4px;
}
.main-head-sub .action {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  margin-left: 8px;
}

.main-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0;
}
.face-pile {
  display: flex;
  align-items: center;
  background: var(--surface-hover);
  border-radius: 99px;
  padding: 3px 10px 3px 3px;
  gap: 8px;
}
.face-pile-faces {
  display: flex;
}
.face-pile-face {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  border: 2px solid var(--surface-hover);
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.face-pile-extra {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 10px;
}

.head-action {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-button);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  text-decoration: none;
}
.head-action:hover {
  background: var(--surface-hover);
}
.head-action-label {
  width: auto;
  gap: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}
.head-action-label span {
  line-height: 1;
}
.head-action.primary {
  width: auto;
  gap: 7px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-tint);
}
.head-action.primary:hover {
  background: var(--accent-tint-strong);
}
.head-member-count {
  width: auto;
  min-width: 54px;
  gap: 6px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}
.head-action.head-connect {
  width: auto;
  gap: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink-mid);
  border-color: var(--line-button);
}

.tabs {
  display: flex;
  gap: 2px;
  margin-top: 7px;
  overflow-x: auto;
  align-items: center;
}
.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px 11px;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-muted);
  font-size: var(--text-14);
  font-weight: 500;
  cursor: pointer;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.tab-add {
  width: 26px;
  height: 26px;
  margin-bottom: 1px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tab-add:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.tab-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 99px;
  padding: 2px 7px;
}
.main-pane-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 14px;
  padding: 40px 24px;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ messages ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 8px;
  overflow-anchor: none;
}

.message-history-status {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.message-history-status:empty {
  min-height: 0;
  padding: 0;
}

.message-history-status button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.message-history-status button:hover {
  text-decoration: underline;
}

.day-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0 18px;
  position: relative;
}
.day-divider i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.day-divider span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  font-size: var(--text-12);
  font-weight: 600;
  color: var(--ink-muted);
  font-style: normal;
  white-space: nowrap;
}
.day-divider span svg {
  color: var(--ink-faint);
}
.day-divider.today i {
  background: var(--line);
  height: 1px;
  opacity: 1;
}
.day-divider em {
  position: absolute;
  right: var(--space-msg-x);
  padding-left: 7px;
  background: #fff;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
}

.msg {
  display: flex;
  gap: 14px;
  padding: var(--space-msg-y) var(--space-msg-x);
  border-radius: 0;
  margin: 0;
  /* Anchor for .msg-hover-actions. */
  position: relative;
}

/* Hover action toolbar ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ floats over the top-right corner of the row, absent
   until the row is hovered or something inside it takes focus, so a quiet
   channel stays quiet. `.open` keeps it up while its menu is showing. */
.msg-hover-actions {
  position: absolute;
  top: -16px;
  right: 18px;
  left: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 22, 40, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 90ms ease-out;
}
.msg:hover .msg-hover-actions,
.msg:focus-within .msg-hover-actions,
.msg-hover-actions.open {
  opacity: 1;
  pointer-events: auto;
}
/* Keyboard users must be able to reach it even before the fade-in resolves. */
.msg-hover-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.msg-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 0;
}
.msg-action-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.msg-action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 232px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 22, 40, 0.2);
}
.msg.dm-bubble.theirs .msg-action-menu {
  right: auto;
  left: 0;
}
.msg-action-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.msg-action-item:hover {
  background: var(--surface-hover);
}
.msg-action-item.danger,
.msg-action-item.danger svg {
  color: var(--negative);
}
.msg-action-item.danger:hover {
  background: color-mix(in srgb, var(--negative) 8%, white);
}
.msg-action-item svg {
  color: var(--ink-muted);
  flex: none;
}

/* Detected action item ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ the one task affordance that is *not* hidden behind
   hover, since its whole job is to be noticed. Tinted rather than solid so it
   reads as a suggestion, not a committed state. */
.msg-task-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.msg-task-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--accent-border);
  border-radius: 99px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.msg-task-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.msg-task-cta.created {
  background: #fff;
  border-color: var(--positive, #2bac76);
  color: var(--positive, #007a5a);
}
.msg-task-cta.created:hover {
  background: var(--positive, #2bac76);
  border-color: var(--positive, #2bac76);
  color: #fff;
}
.msg-task-why {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-fainter);
}
.msg:hover {
  background: var(--accent-tint-row);
}
.msg-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.msg-avatar.system {
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.msg-body {
  flex: 1;
  min-width: 0;
}
.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-who {
  font-size: var(--text-14);
  font-weight: 600;
}
.msg-tag {
  font-size: var(--text-10);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-chip);
  border-radius: 5px;
  padding: 2px 5px;
}
.msg-time {
  font-size: var(--text-12);
  color: var(--ink-faint);
}
.msg-edited {
  font-size: 11px;
  color: var(--ink-fainter);
}
.msg-time.failed {
  color: var(--negative);
  font-weight: 600;
}
.msg-text {
  font-size: var(--text-15);
  line-height: 1.5;
  color: var(--ink-body);
  margin: 2px 0 0;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.msg-text.deleted {
  color: var(--ink-fainter);
  font-style: italic;
}
.message-edit-form {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.message-edit-form textarea {
  width: 100%;
  min-height: 78px;
  max-height: 240px;
  resize: vertical;
  border: 1px solid var(--accent);
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink-body);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.message-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.message-edit-actions > span {
  margin-right: auto;
  color: var(--ink-fainter);
  font-size: 10.5px;
}
.message-edit-actions button {
  min-height: 30px;
  border: 1px solid var(--line-field);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.message-edit-actions button:hover:not(:disabled) {
  background: var(--surface-hover);
}
.message-edit-actions button.save {
  border-color: var(--positive, #007a5a);
  background: var(--positive, #007a5a);
  color: #fff;
}
.message-edit-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.message-mutation-error,
.message-delete-error {
  margin: 0;
  color: var(--negative);
  font-size: 12px;
  line-height: 1.4;
}
.msg-mention {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: #e8f2ff;
  color: var(--accent);
  font-weight: 750;
  line-height: 1.35;
}
.msg-mention.special {
  background: #fff3d6;
  color: #8a5a00;
}
.msg-bold {
  font-weight: 800;
}
.msg-italic {
  font-style: italic;
}
.msg-underline {
  text-decoration: underline;
}
.msg-strike {
  text-decoration: line-through;
}
.msg-code {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.msg-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  max-width: 400px;
  border: 1px solid var(--line-chip);
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  background: #fff;
  color: inherit;
  font-family: inherit;
  text-align: left;
}
.msg-files {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}
.msg-attachment {
  display: grid;
  gap: 8px;
  max-width: min(100%, 520px);
  justify-items: start;
}
.msg-attachment-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-mid);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  padding: 0;
}
.msg-attachment-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-image-preview {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line-chip);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  justify-self: start;
  color: var(--ink-faint);
  font: inherit;
  text-align: left;
}
.msg-image-preview img {
  display: block;
  max-width: min(100%, 386px);
  max-height: 330px;
  object-fit: contain;
  background: #fff;
}
.msg-image-preview span {
  display: block;
  padding: 18px;
  min-width: 220px;
}
.msg-document-preview {
  width: min(100%, 532px);
  min-height: 260px;
  border: 1px solid var(--line-chip);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: 74px minmax(170px, 1fr);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.msg-document-preview .msg-file-icon {
  margin: 14px 0 0 16px;
}
.msg-file-icon.pdf {
  background: #e01e5a;
}
.msg-document-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding-right: 14px;
}
.msg-document-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.msg-document-copy small {
  color: var(--ink-faint);
  font-size: 12px;
}
.msg-pdf-frame,
.msg-document-fallback {
  grid-column: 1 / -1;
  width: 100%;
  height: 210px;
  border: 0;
  border-top: 1px solid var(--line-chip);
  background: #fafafa;
}
.msg-document-fallback {
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 13px;
}
.msg-file:hover {
  background: var(--surface-hover-soft);
}
.msg-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f7b23b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.msg-file-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.msg-file-meta {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
}

.msg-reactions {
  position: relative;
  display: flex;
  gap: 7px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.reaction {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--line-chip);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mid);
  cursor: pointer;
  font-family: inherit;
}
.reaction.on {
  background: var(--accent-tint);
  border-color: var(--accent-border);
  color: var(--accent-deep);
}
.reaction-add {
  width: 29px;
  height: 29px;
  border-radius: 99px;
  border: 1px solid var(--line-chip);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-fainter);
  cursor: pointer;
  padding: 0;
  flex: none;
}
.reaction-add:hover {
  background: var(--surface-hover);
}
.emoji-menu {
  position: absolute;
  z-index: 45;
  width: min(340px, calc(100vw - 32px));
  max-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 22, 40, 0.18);
}
.composer-emoji-menu {
  left: 14px;
  bottom: calc(100% - 6px);
}
.message-emoji-menu {
  left: 0;
  bottom: calc(100% + 8px);
}
.msg-hover-actions .message-emoji-menu {
  top: calc(100% + 6px);
  right: 0;
  bottom: auto;
  left: auto;
}
.msg.dm-bubble.theirs .msg-hover-actions .message-emoji-menu {
  right: auto;
  left: 0;
}
.emoji-menu-head {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-faint);
}
.emoji-menu-head input {
  height: 34px;
  border: 1px solid var(--line-field);
  border-radius: 8px;
  padding: 0 10px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.emoji-menu-head input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.emoji-menu-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.emoji-menu-head button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.emoji-grid {
  max-height: 322px;
  overflow-y: auto;
  padding: 8px 10px 12px;
}
.emoji-category {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.emoji-category > span {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.emoji-category > div {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.emoji-category button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.emoji-category button:hover {
  background: var(--surface-hover);
}
.emoji-empty {
  margin: 16px 0;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
}

.msg-thread-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.msg-thread-link:hover .msg-thread-count {
  text-decoration: underline;
}
.msg-thread-avatars {
  display: inline-flex;
  align-items: center;
  margin-right: 3px;
}
.msg-thread-avatar {
  width: 24px;
  height: 24px;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(28, 22, 40, 0.08);
}
.msg-thread-avatar:first-child {
  margin-left: 0;
}
.msg-thread-count {
  color: var(--accent);
  font-weight: 800;
}
.msg-thread-last {
  color: var(--ink-faint);
  font-weight: 600;
}

.msg-connect {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.msg-connect-join {
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.msg-connect-join:hover {
  background: var(--accent-tint-strong);
}
.msg-connect-count {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--surface-hover);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
}

.chat-call {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px var(--space-msg-x);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-list);
}
.chat-call.live {
  border-color: var(--accent-border);
  background: var(--accent-tint);
}
.chat-call.missed {
  border-color: #f8d0d0;
  background: #fff5f5;
}
.chat-call-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.chat-call.live .chat-call-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chat-call.missed .chat-call-icon {
  background: #fff;
  border-color: #f3c5bc;
  color: var(--negative);
}
.chat-call-body {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.chat-call-title {
  font-size: var(--text-14);
  font-weight: 600;
  letter-spacing: -0.011em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-call-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--text-12);
  color: var(--ink-muted);
}
.chat-call-tag {
  font-size: var(--text-10);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 5px;
  padding: 2px 6px;
}
.chat-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.chat-call-join,
.chat-call-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: var(--text-13);
  font-weight: 600;
  cursor: pointer;
}
.chat-call-join {
  border: 0;
  background: var(--accent);
  color: #fff;
}
.chat-call-join:hover:not(:disabled) {
  background: var(--accent-hover);
}
.chat-call-back {
  border: 1px solid var(--line-button);
  background: #fff;
  color: var(--ink-body);
}
.chat-call-back:hover:not(:disabled) {
  background: var(--surface-hover);
}
.chat-call-join:disabled,
.chat-call-back:disabled {
  opacity: 0.55;
  cursor: default;
}

.typing-line {
  min-height: 16px;
  padding: 0 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
  flex: none;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ composer ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.composer {
  padding: 8px 28px 22px;
  flex: none;
}
.composer-box {
  border: 1px solid var(--line-field);
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow-composer);
  position: relative;
  overflow: visible;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.composer-box:focus-within {
  border-color: var(--ink-faint);
  box-shadow: 0 0 0 1px var(--ink-faint);
}
.composer-formatbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 11px 11px 0 0;
  background: transparent;
}
.composer-formatbar button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #59545e;
  font: inherit;
  font-size: 14px;
  padding: 0;
}
.composer-formatbar button:hover {
  background: #eceff3;
  color: #111827;
}
.composer-formatbar button:last-child {
  width: 38px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.thread-formatbar {
  min-height: 32px;
}
.composer-formatbar > span {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: #dedce1;
}
.mention-menu {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(100% - 6px);
  z-index: 30;
  max-height: 292px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 22, 40, 0.18);
}
.mention-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 6px 8px;
  cursor: pointer;
}
.mention-option.active,
.mention-option:hover {
  background: var(--accent);
  color: #fff;
}
.mention-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.mention-avatar.special {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.mention-option.active .mention-avatar.special,
.mention-option:hover .mention-avatar.special {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.mention-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mention-copy strong,
.mention-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mention-copy strong {
  font-size: 13.5px;
}
.mention-copy small {
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
}
.mention-option.active .mention-copy small,
.mention-option:hover .mention-copy small {
  color: rgba(255, 255, 255, 0.8);
}
.composer-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: var(--text-14);
  color: var(--ink);
  background: transparent;
  padding: 13px 14px 16px;
  resize: none;
  min-height: 52px;
  max-height: 160px;
  font-family: inherit;
  line-height: 1.55;
}
.composer-file-input {
  display: none;
}
.composer-files {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 14px 10px;
}
.composer-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(100%, 320px);
  min-height: 32px;
  padding: 5px 7px 5px 10px;
  border: 1px solid var(--line-chip);
  border-radius: 8px;
  background: var(--surface-hover-soft);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
.composer-file-chip.failed {
  border-color: rgba(229, 72, 77, 0.35);
  background: #fff2f2;
  color: var(--negative);
}
.composer-file-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-file-chip small {
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 650;
  flex: none;
}
.composer-file-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.composer-file-chip button:hover {
  background: #fff;
  color: var(--ink);
}
.composer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 10px 8px;
}
.composer-rewrite {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line, #e5e5e5);
}
.composer-rewrite-tone select {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: var(--ink);
}
.composer-rewrite-btn {
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 4px 10px;
  background: #f7f7f7;
  color: var(--ink-mid);
  cursor: pointer;
}
.composer-rewrite-btn:hover:not(:disabled) {
  background: #eee;
  color: var(--ink);
}
.composer-rewrite-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.composer-rewrite-error {
  font-size: 11.5px;
  color: var(--negative, #c9372c);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.composer-attach {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #f1f1f1;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
  flex: none;
}
.composer-attach:hover {
  background: #e6e6e6;
  color: var(--ink);
}
.composer-tool {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex: none;
}
.composer-tool:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.composer-spacer {
  flex: 1;
}
.composer-send {
  width: auto;
  height: 32px;
  min-width: 0;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: var(--disabled);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-13);
  font-weight: 600;
  transition: background 0.12s;
  flex: none;
}
.composer-send.ready {
  background: var(--accent);
}
.composer-send.ready:hover {
  background: var(--accent-hover);
}
.composer-send svg {
  display: none;
}
.composer-retry {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-field);
  border-radius: 10px;
  background: #fff;
  color: var(--negative);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 6px;
  flex: none;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ thread panel ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.thread {
  width: 352px;
  flex: none;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #fff;
  animation: voxiIn 0.22s ease both;
}
.thread-head {
  display: flex;
  align-items: center;
  padding: 18px 18px 14px;
  flex: none;
}
.thread-head > span {
  font-size: var(--text-16);
  font-weight: 600;
  letter-spacing: -0.018em;
  flex: 1;
}
.rich-editor {
  position: relative;
  color: var(--ink);
  background: transparent;
}
.rich-editor-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  overflow-x: auto;
  border-bottom: 1px solid #eceaec;
  border-radius: 9px 9px 0 0;
  background: #f7f7f7;
  scrollbar-width: none;
}
.rich-editor-toolbar::-webkit-scrollbar { display: none; }
.rich-editor-toolbar button {
  width: 34px;
  min-width: 34px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  color: #626064;
  font: inherit;
  font-size: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.rich-editor-toolbar button:hover,
.rich-editor-toolbar button.active {
  background: #e8e8e8;
  color: #1d1c1d;
}
.rich-editor-toolbar button.active {
  box-shadow: inset 0 0 0 1px #d2d0d2;
}
.rich-editor-toolbar button:disabled { opacity: 0.45; cursor: default; }
.rich-editor-toolbar button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rich-editor-toolbar button svg circle { fill: currentColor; stroke: none; }
.rich-editor-toolbar button strong { font-size: 21px; line-height: 1; }
.rich-editor-toolbar button em { font-family: Georgia, serif; font-size: 22px; line-height: 1; }
.rich-editor-toolbar button u,
.rich-editor-toolbar button s { font-family: Arial, sans-serif; font-size: 20px; line-height: 1; text-underline-offset: 3px; }
.rich-code-icon { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 16px; letter-spacing: -1.5px; }
.rich-editor-toolbar > i {
  width: 1px;
  height: 27px;
  flex: 0 0 1px;
  margin: 0 5px;
  background: #d8d6d8;
}
.rich-editor .tiptap.ProseMirror {
  min-height: 52px;
  max-height: 190px;
  overflow-y: auto;
  outline: none;
  padding: 13px 14px 14px;
  font: inherit;
  font-size: var(--text-14);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rich-editor.empty .tiptap.ProseMirror::before {
  content: attr(data-placeholder);
  position: absolute;
  color: #77717d;
  pointer-events: none;
}
.rich-editor .tiptap p { margin: 0; }
.rich-editor .tiptap p + p { margin-top: 4px; }
.rich-editor .tiptap ul,
.rich-editor .tiptap ol { margin: 3px 0; padding-left: 24px; }
.rich-editor .tiptap blockquote {
  margin: 4px 0;
  padding-left: 12px;
  border-left: 4px solid #b7b2ba;
  color: #4f4a52;
}
.rich-editor .tiptap code,
.rich-message code {
  border: 1px solid #e1dce4;
  border-radius: 4px;
  padding: 1px 3px;
  background: #f7f5f7;
  color: #c92c55;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}
.rich-editor .tiptap pre,
.rich-message pre {
  margin: 6px 0;
  overflow-x: auto;
  border: 1px solid #ddd8df;
  border-radius: 7px;
  padding: 9px 11px;
  background: #f8f7f8;
}
.rich-editor .tiptap pre code,
.rich-message pre code { border: 0; padding: 0; background: transparent; color: inherit; }
.rich-editor.compact .tiptap.ProseMirror { min-height: 42px; max-height: 130px; padding-top: 10px; padding-bottom: 10px; }
.rich-editor.compact .rich-editor-toolbar { min-height: 44px; padding-top: 2px; padding-bottom: 2px; }
.rich-editor.compact .rich-editor-toolbar button { width: 32px; min-width: 32px; height: 34px; }
.rich-message { white-space: normal; }
.rich-message p { margin: 0; white-space: pre-wrap; }
.rich-message p + p { margin-top: 5px; }
.rich-message ul,
.rich-message ol { margin: 4px 0; padding-left: 25px; }
.rich-message blockquote { margin: 5px 0; padding-left: 12px; border-left: 4px solid #b7b2ba; color: #4f4a52; }
.rich-message a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.thread-follow {
  height: 30px;
  margin-right: 12px;
  padding: 0 11px;
  border: 1px solid var(--line-field);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-mid);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.thread-follow:hover,
.thread-follow.active {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.thread-follow:disabled {
  opacity: 0.6;
  cursor: wait;
}
.thread-list-card.unread {
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
}
.thread-list-latest {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}
.thread-list-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.thread-list-participants {
  display: flex;
  flex: 1;
  padding-left: 5px;
}
.thread-list-avatar {
  width: 25px;
  height: 25px;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 9px;
}
.thread-list-unread {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* Slack-like followed threads inbox ------------------------------------- */
.threads-slack-body {
  background: #f8f8f8;
  padding: 14px 16px 28px;
}
.threads-slack-list {
  display: grid;
  gap: 24px;
}
.threads-slack-channel {
  display: grid;
  gap: 8px;
}
.threads-slack-channel-head {
  display: grid;
  gap: 3px;
  padding: 0 12px;
}
.threads-slack-channel-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1d1c1d;
  font-size: 14px;
  font-weight: 800;
}
.threads-slack-channel-head small {
  color: #616061;
  font-size: 11.5px;
  font-weight: 550;
}
.threads-slack-card {
  position: relative;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  background: #fff;
}
.threads-slack-message {
  display: flex;
  gap: 9px;
  padding: 5px 20px;
}
.threads-slack-message.root {
  padding-top: 16px;
}
.threads-slack-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.threads-slack-message-body {
  min-width: 0;
  flex: 1;
}
.threads-slack-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.threads-slack-meta strong {
  color: #1d1c1d;
  font-size: 14px;
  line-height: 1.25;
}
.threads-slack-meta span {
  color: #616061;
  font-size: 11.5px;
  white-space: nowrap;
}
.threads-slack-text {
  margin: 1px 0 0;
  color: #1d1c1d;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.threads-slack-text p {
  margin: 0 0 4px;
}
.threads-slack-text p:last-child,
.threads-slack-text ul:last-child,
.threads-slack-text ol:last-child {
  margin-bottom: 0;
}
.threads-slack-text ul,
.threads-slack-text ol {
  margin: 2px 0 6px 20px;
  padding: 0;
}
.threads-slack-more {
  display: inline-flex;
  width: fit-content;
  margin: 4px 0 7px 65px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}
.threads-slack-more:hover {
  color: var(--accent);
  text-decoration: underline;
}
.threads-slack-new-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 18px 0 65px;
  color: #e01e5a;
  font-size: 12px;
  font-weight: 750;
}
.threads-slack-new-divider i {
  flex: 1;
  height: 1px;
  background: #e01e5a;
}
.threads-slack-composer {
  margin: 10px 20px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.threads-slack-composer:focus-within {
  border-color: #8d8992;
  box-shadow: 0 0 0 1px #8d8992;
}
.threads-slack-formatbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid #eeeeee;
  background: #f8f8f8;
  color: #616061;
}
.threads-slack-formatbar span {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}
.threads-slack-formatbar i {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: #dddddd;
}
.threads-slack-composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 160px;
  display: block;
  border: 0;
  outline: 0;
  resize: vertical;
  padding: 10px 12px;
  color: #1d1c1d;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.threads-slack-composer-foot {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 6px;
}
.threads-slack-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  color: #616061;
}
.threads-slack-tools span,
.threads-slack-tools svg,
.threads-slack-composer-foot button {
  width: 28px;
  height: 28px;
}
.threads-slack-tools span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 650;
}
.threads-slack-tools svg {
  padding: 5px;
  border-radius: 5px;
}
.threads-slack-composer-foot button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #1d1c1d;
  cursor: pointer;
}
.threads-slack-composer-foot button:not(:disabled):hover,
.threads-slack-tools span:hover,
.threads-slack-tools svg:hover,
.threads-slack-formatbar span:hover {
  background: #ececec;
}
.threads-slack-composer-foot button:disabled {
  color: #c7c7c7;
  cursor: not-allowed;
}
.threads-slack-card-toolbar {
  position: absolute;
  z-index: 3;
  top: -15px;
  right: 14px;
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 28, 29, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
}
.threads-slack-card:hover .threads-slack-card-toolbar,
.threads-slack-card-toolbar:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.threads-slack-card-toolbar > a,
.threads-slack-card-toolbar > button {
  width: 30px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #616061;
  cursor: pointer;
  padding: 0;
}
.threads-slack-card-toolbar > a:hover,
.threads-slack-card-toolbar > button:hover {
  color: #1d1c1d;
  background: #f1f1f1;
}
.threads-slack-action-menu {
  position: absolute;
  z-index: 4;
  top: 34px;
  right: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 28, 29, 0.2);
}
.threads-slack-action-menu a,
.threads-slack-action-menu button {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  background: transparent;
  color: #1d1c1d;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.threads-slack-action-menu a:hover,
.threads-slack-action-menu button:hover {
  background: var(--accent);
  color: #fff;
}
.thread-close {
  display: flex;
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 12px;
}
.thread-msg {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  position: relative;
}
.thread-msg:hover .msg-hover-actions,
.thread-msg:focus-within .msg-hover-actions {
  opacity: 1;
  pointer-events: auto;
}
.thread-msg .msg-hover-actions {
  top: -10px;
  right: 0;
}
.thread-text.deleted {
  color: var(--ink-fainter);
  font-style: italic;
}
.thread-msg.root {
  padding-top: 0;
}
.thread-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.thread-msg-body {
  flex: 1;
  min-width: 0;
}
.thread-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.thread-who {
  font-size: 13.5px;
  font-weight: 700;
}
.thread-time {
  font-size: 11.5px;
  color: var(--ink-fainter);
}
.thread-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-body);
  margin: 2px 0 0;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.thread-count-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 6px;
}
.thread-count-row span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.thread-count-row i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.thread-composer {
  padding: 12px 18px 18px;
  flex: none;
}
.thread-composer-box {
  position: relative;
  border: 1px solid var(--line-field);
  border-radius: 14px;
  padding: 11px 12px 9px;
}
.thread-composer-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding: 2px 2px 9px;
  resize: none;
  min-height: 22px;
  max-height: 120px;
  font-family: inherit;
  color: var(--ink);
}
.thread-tool {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex: none;
}
.thread-tool:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.thread-send {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: var(--disabled);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.thread-send.ready {
  background: var(--accent);
}
.thread-send.ready:hover {
  background: var(--accent-hover);
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ home / activity feed ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.feed {
  flex: 1;
  overflow-y: auto;
  padding: 22px 22px 40px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 7px;
}
.stat-value {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.stat-delta {
  font-size: 12px;
  font-weight: 700;
}
.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-top: 12px;
}
.stat-bar {
  flex: 1;
  border-radius: 2px;
}

.feed-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}
.feed-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feed-items {
  display: grid;
  gap: 9px;
}
.feed-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  background: #fff;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.feed-item:hover {
  border-color: #ddd7ee;
  box-shadow: var(--shadow-feed-hover);
}
.feed-item-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.feed-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 7px;
}
.feed-where {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.feed-time {
  font-size: 12px;
  color: var(--ink-fainter);
  margin-left: auto;
}
.feed-item-body {
  display: flex;
  gap: 11px;
}
.feed-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.feed-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-body);
  text-wrap: pretty;
}
.feed-text strong {
  font-weight: 700;
  color: var(--ink);
}
.feed-reply {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.agenda-row {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.agenda-row:last-child {
  border-bottom: none;
}
.agenda-bar {
  width: 3px;
  border-radius: 99px;
  flex: none;
}
.agenda-main {
  flex: 1;
  min-width: 0;
}
.agenda-title {
  font-size: 13.5px;
  font-weight: 700;
}
.agenda-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.agenda-join {
  align-self: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 99px;
  padding: 4px 10px;
  cursor: pointer;
  border: none;
  flex: none;
}

.active-channels {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 15px;
}
.active-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.active-channel:last-child {
  border-bottom: none;
}
.active-channel .hash {
  font-size: 13px;
  color: var(--ink-ghost);
  font-weight: 600;
}
.active-channel .name {
  font-size: 13.5px;
  font-weight: 600;
  flex: none;
}
.active-channel .track {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-chip);
  overflow: hidden;
}
.active-channel .fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}
.active-channel .count {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
  width: 34px;
  text-align: right;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ connect overlay ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.connect-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 24, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 36px;
}
.connect {
  width: 100%;
  max-width: 1000px;
  background: linear-gradient(180deg, #3c3e78 0%, #25264a 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(44, 45, 85, 0.7);
  animation: voxiIn 0.22s ease both;
}
.connect-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.connect-live {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #ff4d4d;
}
.connect-title {
  color: #fff;
  font-size: var(--text-15);
  font-weight: 600;
  letter-spacing: -0.018em;
}
.connect-clock {
  color: #b4b6d4;
  font-size: var(--text-13);
}
.connect-spacer {
  flex: 1;
}
.connect-close {
  display: flex;
  color: #c5c7e0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px;
}
.connect-tile {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #2a2b52;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.connect-tile.speaking {
  border-color: var(--accent);
}
.connect-tile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.connect-tile-foot {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connect-tile-who {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.connect-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px 24px;
}
.connect-control {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 99px;
  background: #2b2839;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.connect-leave {
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 99px;
  background: #ff3b3b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}
.connect-leave:hover {
  background: #e02c2c;
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ command palette ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 20, 31, 0.38);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(56px, 10vh, 104px) 18px 24px;
  z-index: 3000;
}
.head-action-wrap { position: relative; }
.head-manage-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 80; display: grid; width: 230px; padding: 6px; border: 1px solid var(--line, #d9dbde); border-radius: 10px; color: var(--ink, #1d1c1d); background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.22); }
.head-manage-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; color: inherit; background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.head-manage-menu button:hover { color: #fff; background: var(--accent); }
.head-manage-menu button.danger { color: #c72c41; }
.head-manage-menu button.danger:hover { color: #fff; background: #c72c41; }
.channel-manage-form { padding: 4px 20px 20px; }
.channel-manage-form label { display: grid; gap: 7px; color: var(--ink-mid, #45464a); font-size: 12px; font-weight: 700; }
.channel-manage-form input { width: 100%; padding: 10px 11px; border: 1px solid var(--line-field, #c9cbd0); border-radius: 8px; outline: none; font: inherit; font-size: 14px; }
.channel-manage-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 92, 230, 0.14); }
.channel-member-management { display: grid; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e3e4e6); }
.channel-member-management > strong, .channel-invite-subtitle { padding: 4px 3px; color: var(--ink-faint, #6b6d72); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.channel-member-management .channel-invite-row { cursor: default; }
.screen-btn.compact { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.palette {
  width: min(650px, 100%);
  background: #fff;
  border: 1px solid rgba(29, 28, 29, 0.14);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: voxiIn 0.18s ease both;
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 650px);
}
.palette-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  min-height: 62px;
  border-bottom: 1px solid var(--line, #e3e4e6);
  color: var(--ink-faint, #6b6d72);
  flex: none;
}
.palette-search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.palette-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  font-size: 17px;
  color: var(--ink, #1d1c1d);
  background: transparent;
}
.palette-search input::placeholder { color: #777980; opacity: 1; }
.palette kbd { display: inline-flex; min-width: 25px; height: 23px; padding: 0 6px; align-items: center; justify-content: center; border: 1px solid #d5d7da; border-bottom-width: 2px; border-radius: 5px; color: #61636a; background: #f6f7f8; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.palette-results {
  min-height: 92px;
  overflow-y: auto;
  padding: 8px 9px 10px;
}
.palette-section {
  padding: 4px 0 7px;
}
.palette-section + .palette-section { border-top: 1px solid var(--line, #e8e9eb); }
.palette-section-title {
  padding: 8px 11px 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint, #696b71);
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-strong, #1d1c1d);
}
.palette-item:hover, .palette-item:focus-visible {
  outline: none;
  color: #fff;
  background: var(--accent);
}
.palette-item-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: #5f6167;
  background: #f0f1f2;
  font-size: 17px;
  font-weight: 700;
}
.palette-item:hover .palette-item-icon, .palette-item:focus-visible .palette-item-icon { color: var(--accent); background: #fff; }
.palette-item .sub {
  font-size: 12px;
  color: var(--ink-faint);
  margin-left: auto;
  white-space: nowrap;
}
.palette-item:hover .sub, .palette-item:focus-visible .sub { color: rgba(255,255,255,.8); }
.palette-message-result { align-items: flex-start; }
.palette-item-icon.message { font-size: 16px; }
.palette-message-copy { display: grid; min-width: 0; gap: 3px; }
.palette-message-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-message-copy small { color: var(--ink-faint, #6b6d72); font-size: 11px; font-weight: 500; }
.palette-message-copy > span { overflow: hidden; color: var(--ink-mid, #45464a); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.palette-item:hover .palette-message-copy small, .palette-item:hover .palette-message-copy > span,
.palette-item:focus-visible .palette-message-copy small, .palette-item:focus-visible .palette-message-copy > span { color: rgba(255,255,255,.82); }
.palette-empty {
  display: grid;
  padding: 28px 12px;
  place-items: center;
  gap: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint, #6b6d72);
}
.palette-empty strong { margin-top: 3px; color: var(--ink, #1d1c1d); font-size: 14px; }
.palette-empty span { font-size: 12px; }
.palette-hint {
  border-top: 1px solid var(--line, #e3e4e6);
  padding: 10px 16px;
  font-size: 11.5px;
  color: var(--ink-faint, #6b6d72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}
.palette-hint span { display: inline-flex; align-items: center; gap: 4px; }
.palette-hint kbd { height: 20px; min-width: 21px; padding: 0 4px; font-size: 10px; }
@media (max-width: 560px) {
  .palette-backdrop { padding: 16px 10px; }
  .palette { max-height: calc(100dvh - 32px); }
  .palette-search { min-height: 56px; padding: 0 13px; }
  .palette-search input { font-size: 15px; }
  .palette-hint span:first-child { display: none; }
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ standalone pages (workspace picker, fallbacks) ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.page {
  max-width: 940px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.page-brand-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line-chip);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(26, 115, 232, 0.9);
}
.page-brand-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-kicker {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-muted);
}
.page-title {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 99px;
  padding: 4px 11px;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  display: block;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
a.card:hover {
  border-color: #ddd7ee;
  box-shadow: var(--shadow-feed-hover);
  color: inherit;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: none;
}
.card-name {
  font-size: 14.5px;
  font-weight: 700;
}
.card-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.form-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}
.form-card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.form-stack {
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.field {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-input);
  border-radius: 11px;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  background: #fff;
}
.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.button-primary {
  height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background 140ms var(--ease-out);
}
.button-primary:hover {
  background: var(--accent-hover);
  transform: none;
  box-shadow: none;
}
.button-ghost {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.button-ghost:hover {
  background: var(--surface-hover);
}
.empty-state {
  border: 1px dashed var(--line-field);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13.5px;
  background: #fff;
}
.muted {
  color: var(--ink-faint);
}
.error-text {
  color: var(--negative);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/*
 * The prototype's own breakpoints, from its renderVals(): the thread panel
 * requires vw ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¥ 1200, the list sidebar drops to 220px below 1000, and the
 * thread panel narrows to 304px below 1400.
 */
@media (max-width: 1399px) {
  .thread,
  .about {
    width: 292px;
  }
}
@media (max-width: 1199px) {
  .thread,
  .about {
    display: none;
  }
}
@media (max-width: 999px) {
  .list {
    width: 220px;
  }
  .sidebar {
    width: 240px;
  }
}
@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .gnav {
    width: 58px;
  }
  .gnav-label {
    display: none;
  }
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ workspace picker (no sidebar) ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.ws-picker {
  min-height: 100vh;
  padding: 40px 28px 56px;
  background: #f4f2f8;
}
.ws-picker-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.ws-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.ws-picker-greet {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.ws-picker-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.ws-picker-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-faint);
}
.ws-picker-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-field);
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.ws-picker-create-btn span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--accent-tint);
  font-size: 16px;
  line-height: 1;
}
.ws-picker-create-btn:hover {
  border-color: var(--accent-border);
  background: #faf8ff;
}
.ws-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.ws-picker-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-field);
  border-radius: 12px;
  background: #fff;
}
.ws-picker-search-icon {
  color: var(--ink-fainter);
  font-size: 16px;
}
.ws-picker-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.ws-picker-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-field);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-mid);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ws-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.ws-card {
  position: relative;
  display: block;
  min-height: 176px;
  padding: 18px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.ws-card:hover,
.ws-card.selected {
  border-color: var(--accent);
  box-shadow: 0 14px 34px -22px rgba(26, 115, 232, 0.55);
  color: inherit;
  transform: translateY(-1px);
}
.ws-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ws-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
}
.ws-card-more {
  color: var(--ink-fainter);
  font-size: 18px;
  line-height: 1;
}
.ws-card-status {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 0 12px auto;
  border-radius: 99px;
  background: var(--online);
}
.ws-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ws-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ws-card-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.ws-card-meta,
.ws-card-active {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}
.ws-card-active {
  margin-top: 18px;
}
.ws-card-check {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.ws-picker-create-panel {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1.5px dashed #d8d3e4;
  border-radius: 18px;
  background: #f0eef5;
  color: var(--ink);
  cursor: pointer;
}
.ws-picker-create-panel strong {
  font-size: 16px;
  font-weight: 800;
}
.ws-picker-create-panel span:last-child {
  color: var(--ink-faint);
  font-size: 13.5px;
}
.ws-picker-create-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  box-shadow: var(--shadow-accent-md);
}
.ws-picker-create-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.ws-picker-create-form h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}
.ws-picker-create-form .form-stack {
  margin-top: 16px;
  max-width: 480px;
}
.ws-picker-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.ws-picker-cancel {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-field);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-mid);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .ws-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .ws-picker {
    padding: 28px 16px 40px;
  }
  .ws-picker-head {
    flex-direction: column;
  }
  .ws-picker-title {
    font-size: 32px;
  }
  .ws-picker-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ws-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ws-picker-grid {
    grid-template-columns: 1fr;
  }
}

.messages-home-shell {
  grid-template-columns: 126px 188px minmax(430px, 1fr) 224px;
}

.messages-list-pane {
  background: #f8f6fc;
}

button.member-link {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.member-link.active {
  background: #f0ebff;
}

.dm-message-list {
  padding: 18px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg.dm-bubble {
  max-width: min(72%, 480px);
  margin: 2px 0;
  padding: 8px 12px;
  border-radius: 16px;
  gap: 10px;
  align-items: flex-end;
}
.dm-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.dm-row.mine {
  align-items: flex-end;
}
.dm-row.theirs {
  align-items: flex-start;
}
.dm-row .day-divider {
  width: 100%;
}
.dm-message-list .chat-call {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.chat-call-meta .dotsep {
  color: var(--ink-ghost);
}
.msg.dm-bubble.theirs {
  background: var(--surface-hover);
}
.msg.dm-bubble.mine {
  flex-direction: row-reverse;
  background: var(--accent-tint);
}
.msg.dm-bubble .msg-body {
  display: grid;
  gap: 2px;
}
.msg.dm-bubble .msg-text {
  margin: 0;
}
.msg.dm-bubble .msg-meta.dm-only {
  justify-content: flex-end;
}
.msg.dm-bubble.theirs .msg-meta.dm-only {
  justify-content: flex-start;
}
.msg.dm-bubble .msg-avatar {
  width: 28px;
  height: 28px;
  font-size: 10px;
  border-radius: 99px;
}

.msg.decided-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 20px;
  margin: 0;
}
.msg.decided-card:hover {
  background: #f8f8f8;
}
.msg-decide {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-field);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-mid);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.msg-decide:hover {
  background: var(--surface-hover);
}

.dm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dm-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: inline-block;
}

.chat-filters {
  display: flex;
  gap: 4px;
  margin: 0 12px 8px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-hover);
}
.chat-filter {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: var(--text-12);
  font-weight: 600;
  cursor: pointer;
}
.chat-filter.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.sidebar-chat-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sidebar-chat-row .sidebar-row {
  flex: 1;
  min-width: 0;
}
.sidebar-pin {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-ghost);
  font-size: 12px;
  cursor: pointer;
  flex: none;
  opacity: 0;
}
.sidebar-chat-row:hover .sidebar-pin,
.sidebar-pin.active {
  opacity: 1;
}
.sidebar-pin.active {
  color: #e0a800;
}

.task-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.task-tablist {
  display: flex;
  align-items: center;
  gap: 18px;
}
.task-tab {
  padding: 0 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.task-tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 750;
}
.task-tab.mine {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--line-field);
  border-radius: 99px;
  align-self: center;
}
.task-tab.mine.active {
  border-color: var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.task-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 24px;
}
.task-list {
  display: grid;
  gap: 8px;
  max-width: 860px;
}
.task-row-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.task-row-wrap .task-row {
  flex: 1;
  min-width: 0;
}
.task-row.task-row-deleted {
  cursor: default;
  opacity: 0.92;
}
.task-row.task-row-deleted:hover {
  background: #fff;
}
.task-row.task-row-deleted:disabled {
  color: inherit;
}
.task-restore-btn {
  flex: none;
  align-self: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-deep);
  cursor: pointer;
}
.task-restore-btn:hover:not(:disabled) {
  background: var(--accent-tint);
}
.task-restore-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
}
.task-row:hover {
  background: var(--surface-hover-soft);
}
.task-row-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.task-row-body {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.task-row-title {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.task-due.overdue {
  color: var(--negative);
  font-weight: 700;
}
.task-status-pill {
  flex: none;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}
.task-status-pill.todo {
  background: var(--surface-chip);
  color: var(--ink-mid);
}
.task-status-pill.in_progress {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.task-status-pill.done {
  background: #e3f6ec;
  color: var(--positive);
}

.connect-count {
  color: #8f8aa3;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
}
.connect-grid.count-1 {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}
.connect-grid.count-2 {
  grid-template-columns: repeat(2, 1fr);
}
.connect-grid.count-3,
.connect-grid.count-4 {
  grid-template-columns: repeat(2, 1fr);
}
.connect-mic {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--positive);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.connect-mic.off {
  background: var(--negative);
}
.connect-control.off {
  background: #ff3b3b;
}
.connect-control:disabled {
  opacity: 0.45;
  cursor: default;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--accent, #5b5ce6);
  background: transparent;
  font-size: 11px;
}

.workspace-home-shell {
  grid-template-columns: 126px 204px minmax(430px, 1fr) 260px;
}

.workspace-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: end;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line-field-soft, #e9e6f0);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 20%, rgba(111, 61, 234, 0.14), transparent 28%),
    #fff;
}

.workspace-create-inline {
  display: grid;
  gap: 10px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.workspace-channel-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-field-soft, #e9e6f0);
  border-radius: 16px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.workspace-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(43, 34, 58, 0.08);
}

@media (max-width: 1080px) {
  .workspace-home-shell {
    grid-template-columns: 96px 204px minmax(0, 1fr);
  }

  .workspace-hero-card {
    grid-template-columns: 1fr;
  }
}

/* -- shared screen surfaces (home / people / admin / etc.) --------------- */
.screen-body {
  flex: 1;
  overflow: auto;
  padding: 32px var(--space-page) 56px;
  animation: none;
  max-width: 1100px;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.screen-card {
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: none;
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.screen-card:hover {
  border-color: var(--line-field);
  box-shadow: none;
  background: var(--surface-hover-soft);
}
.screen-card.wide {
  grid-column: 1 / -1;
}
.screen-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: var(--text-16);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.screen-card p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}
.integration-list {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.integration-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.integration-row:first-child {
  border-top: none;
  padding-top: 0;
}
.integration-row p {
  margin: 4px 0 0;
}
.integration-row small {
  display: block;
  margin-top: 6px;
  color: var(--ink-muted);
}
.integration-warn {
  color: var(--negative, #c9372c) !important;
}
.integration-actions {
  flex: none;
}
.integration-note {
  margin: 8px 0 0 !important;
  color: var(--ink-mid) !important;
}
.integration-openai-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.integration-openai-row input {
  flex: 1 1 220px;
  font: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--line-field, var(--line));
  border-radius: 8px;
}
.event-modal-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.screen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-field);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-body);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.screen-btn:hover {
  background: var(--surface-hover);
  border-color: var(--line-field);
  color: var(--ink);
}
.screen-btn.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}
.screen-btn.primary:hover {
  background: var(--accent-hover);
  transform: none;
}
.screen-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.profile-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  gap: 20px;
}
.profile-settings-copy {
  min-width: 0;
}
.profile-settings-identity {
  display: grid;
  gap: 2px;
  margin: 14px 0 8px;
}
.profile-settings-identity strong {
  font-size: 14px;
}
.profile-settings-identity span,
.profile-photo-help {
  color: var(--ink-faint) !important;
  font-size: 11.5px !important;
}
.profile-photo-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.profile-photo-preview {
  width: 96px;
  height: 96px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-field);
  border-radius: 18px;
  background: var(--surface-chip);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(22, 21, 26, 0.08);
}
.profile-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-photo-input {
  display: none;
}
.profile-photo-remove {
  border: 0;
  background: transparent;
  color: var(--negative);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  padding: 2px 4px;
}
.profile-photo-remove:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.profile-photo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 21, 26, 0.54);
  backdrop-filter: blur(2px);
}
.profile-photo-modal {
  width: min(500px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  border: 1px solid var(--line-field-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 21, 26, 0.3);
}
.profile-photo-modal.confirm {
  width: min(420px, 100%);
}
.profile-photo-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px 14px;
}
.profile-photo-modal-head > div {
  flex: 1;
  min-width: 0;
}
.profile-photo-modal-head h2 {
  margin: 0;
  font-size: 18px;
}
.profile-photo-modal-head p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.profile-photo-modal-head > button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.profile-photo-modal-head > button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.profile-crop-stage {
  width: min(300px, calc(100% - 40px));
  aspect-ratio: 1;
  margin: 4px auto 18px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(45deg, #eceaec 25%, transparent 25%),
    linear-gradient(-45deg, #eceaec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eceaec 75%),
    linear-gradient(-45deg, transparent 75%, #eceaec 75%), #f7f7f7;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: 0 0 0 1px var(--line-field);
}
.profile-crop-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.profile-crop-controls {
  display: grid;
  gap: 11px;
  padding: 0 20px 18px;
}
.profile-crop-controls label {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink-mid);
  font-size: 12.5px;
  font-weight: 650;
}
.profile-crop-controls input {
  width: 100%;
  accent-color: var(--accent);
}
.profile-photo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 620px) {
  .profile-settings-card {
    grid-template-columns: 1fr;
  }
  .profile-photo-actions {
    justify-items: start;
  }
}
.screen-list {
  display: grid;
  gap: 6px;
}
.screen-list.tall {
  gap: 10px;
}
.screen-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--surface-chip, #f7f4fb);
}
button.screen-list-item {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.screen-list-item:hover {
  background: #efeaf8;
}
.screen-list-item .muted {
  margin-left: auto;
  color: var(--ink-mid, #6b6278);
  font-size: 12px;
}
.screen-thread {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.screen-thread:hover {
  border-color: #d8d0e6;
  background: #fcfbfe;
}
.screen-thread-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.screen-thread-meta {
  font-size: 12px;
  color: var(--ink-mid, #6b6278);
}
.screen-thread-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink, #1f1630);
}

/* Activity inbox --------------------------------------------------------- */
.activity-page {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(360px, 1.1fr);
  background: #fff;
}
.activity-inbox {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-field);
}
.activity-header {
  flex: none;
  border-bottom: 1px solid var(--line-field);
  background: #fff;
}
.activity-title-row {
  min-height: 64px;
  padding: 12px 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.activity-title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.activity-icon-btn {
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-mid);
  cursor: pointer;
}
.activity-icon-btn:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.activity-icon-btn.bordered {
  border: 1px solid var(--line-field);
  background: #fff;
}
.activity-tabs {
  min-height: 45px;
  padding: 0 18px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  overflow-x: auto;
}
.activity-tab {
  position: relative;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink-mid);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.activity-tab::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.activity-tab:hover {
  color: var(--ink);
  background: var(--surface-hover-soft);
}
.activity-tab.active {
  color: var(--accent);
}
.activity-tab.active::after {
  background: var(--accent);
}
.activity-tab-count {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--surface-chip);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
}
.activity-tab.active .activity-tab-count {
  background: var(--accent);
  color: #fff;
}
.activity-toolbar {
  min-height: 68px;
  padding: 12px 18px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.activity-check-btn,
.activity-filter-btn,
.activity-filter-select {
  height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-body);
  font: inherit;
}
.activity-check-btn {
  gap: 8px;
  padding: 0 8px;
  cursor: pointer;
}
.activity-checkbox {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink-faint);
  border-radius: 4px;
  color: var(--accent);
}
.activity-filter-btn {
  gap: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.activity-filter-btn.active {
  border-color: var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.activity-unread-icon {
  width: 14px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -2px #fff, 3px -3px 0 -1px currentColor;
}
.activity-filter-select {
  padding: 0 9px;
  gap: 5px;
}
.activity-filter-select select {
  width: 1px;
  min-width: 1px;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  opacity: 0;
  cursor: pointer;
}
.activity-search-field {
  min-width: 150px;
  height: 38px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 11px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--ink-faint);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.activity-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}
.activity-search-field button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.activity-density {
  height: 38px;
  margin-left: auto;
  padding: 3px;
  flex: none;
  display: flex;
  border-radius: 10px;
  background: var(--surface-chip);
}
.activity-density button {
  width: 30px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.activity-density button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(22, 21, 26, 0.14);
}
.density-card {
  width: 16px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  background: linear-gradient(currentColor, currentColor) 3px 4px / 8px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 9px / 8px 1px no-repeat;
}
.density-lines {
  width: 17px;
  height: 14px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 5px);
}
.activity-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px 24px;
  background: #fbfafc;
}
.activity-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  margin-bottom: 9px;
  padding: 15px 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid var(--line-field);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.activity-card:hover {
  border-color: #d3cedd;
  box-shadow: 0 5px 18px rgba(28, 20, 42, 0.06);
}
.activity-card.unread::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.activity-card.selected {
  border-color: var(--accent-border);
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent-tint-strong);
}
.activity-feed.compact .activity-card {
  min-height: 78px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.activity-feed.compact .activity-message {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-avatar {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.activity-card-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}
.activity-card-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-card-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
}
.activity-card-head time {
  margin-left: auto;
  flex: none;
  color: var(--ink-muted);
  font-size: 11.5px;
}
.activity-unread-count {
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.activity-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--ink-mid);
  font-size: 11.5px;
  white-space: nowrap;
}
.activity-context > svg {
  flex: none;
}
.activity-context b {
  flex: none;
  color: var(--ink-body);
  font-weight: 700;
}
.activity-channel {
  min-width: 0;
  max-width: 180px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--surface-chip);
  color: var(--ink-body);
  font-weight: 700;
  text-overflow: ellipsis;
}
.activity-message {
  display: block;
  color: var(--ink-body);
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.activity-message mark,
.activity-detail-message mark {
  padding: 1px 2px;
  border-radius: 3px;
  background: #dceeff;
  color: #076bb6;
}
.activity-status {
  min-height: 160px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}
.activity-status.error {
  color: var(--negative);
}
.activity-status.empty {
  min-height: 260px;
  flex-direction: column;
  gap: 7px;
}
.activity-status.empty strong {
  color: var(--ink);
  font-size: 15px;
}
.activity-empty-icon,
.activity-detail-empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
}
.activity-detail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.activity-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  text-align: center;
}
.activity-detail-empty p {
  margin: 8px 20px;
  font-size: 14px;
}
.activity-detail-head {
  min-height: 76px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-field);
}
.activity-detail-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-detail-head span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.activity-detail-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
}
.activity-detail-head .activity-thread-channel {
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.activity-detail-head > button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.activity-detail-head > button:hover {
  background: var(--surface-hover);
}
.activity-detail-content {
  padding: 26px 24px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}
.activity-detail-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.activity-detail-message {
  min-width: 0;
}
.activity-detail-author {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-detail-author strong {
  font-size: 14.5px;
}
.activity-detail-author time {
  color: var(--ink-faint);
  font-size: 11px;
}
.activity-detail-message p {
  margin: 6px 0 14px;
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.activity-detail-message > a {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-field);
  border-radius: 9px;
  background: #fff;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}
.activity-detail-message > a:hover {
  background: var(--accent-tint);
  border-color: var(--accent-border);
}
.activity-thread-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 18px 10px;
}
.activity-thread-message {
  position: relative;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
}
.activity-thread-message.root {
  padding-top: 0;
}
.activity-thread-message:hover::before {
  content: "";
  position: absolute;
  inset: 2px -8px;
  z-index: 0;
  border-radius: 8px;
  background: var(--surface-hover-soft);
}
.activity-thread-message > * {
  position: relative;
  z-index: 1;
}
.activity-thread-message .activity-detail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.activity-thread-message .activity-detail-message p {
  margin-bottom: 4px;
}
.activity-detail-author > span {
  color: var(--ink-faint);
  font-size: 10.5px;
}
.activity-thread-count {
  min-height: 38px;
  margin: 4px 0 5px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 11.5px;
}
.activity-thread-count i {
  height: 1px;
  flex: 1;
  background: var(--line-field);
}
.activity-thread-error {
  margin: 2px 0 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff5f3;
  color: var(--negative);
  font-size: 12px;
}
.activity-thread-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.activity-thread-reactions span {
  min-height: 27px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-field-soft);
  border-radius: 99px;
  background: var(--surface-chip);
  color: var(--ink-body);
  font-size: 11px;
}
.activity-thread-composer {
  flex: none;
  margin: 0 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line-field);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(22, 21, 26, 0.04);
}
.activity-thread-composer:focus-within {
  border-color: var(--ink-faint);
  box-shadow: 0 0 0 1px var(--ink-faint);
}
.activity-thread-compose-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.activity-thread-compose-actions button:hover {
  background: var(--surface-row-hover);
  color: var(--ink);
}
.activity-thread-composer textarea {
  width: 100%;
  min-height: 56px;
  max-height: 150px;
  padding: 12px 15px 4px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
}
.activity-thread-compose-actions {
  min-height: 42px;
  padding: 3px 8px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.activity-thread-compose-actions .activity-thread-send {
  background: var(--accent);
  color: #fff;
}
.activity-thread-compose-actions .activity-thread-send:hover {
  background: var(--accent-hover);
  color: #fff;
}
.activity-thread-compose-actions .activity-thread-send:disabled {
  background: var(--surface-chip);
  color: var(--ink-ghost);
  cursor: default;
}
@media (max-width: 1180px) {
  .activity-page {
    grid-template-columns: minmax(420px, 1fr) minmax(300px, 0.8fr);
  }
  .activity-density {
    display: none;
  }
}
@media (max-width: 940px) {
  .activity-page {
    position: relative;
    display: block;
    overflow: hidden;
  }
  .activity-inbox {
    height: 100%;
    border-right: 0;
  }
  .activity-detail {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
  }
  .activity-detail.has-selection {
    display: flex;
  }
}
@media (max-width: 620px) {
  .activity-title-row,
  .activity-tabs,
  .activity-toolbar {
    padding-right: 12px;
    padding-left: 12px;
  }
  .activity-filter-select,
  .activity-density {
    display: none;
  }
  .activity-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }
  .activity-avatar {
    width: 36px;
    height: 36px;
  }
}
.screen-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink-mid, #6b6278);
  font-size: 13px;
  line-height: 1.55;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  background: #fff;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink, #1f1630);
}
.stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-mid, #6b6278);
}
.cal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 24px;
}
/* Month fills the viewport instead of scrolling: the grid takes whatever
   height is left under the header, and each of the six rows gets an equal
   share of it. */
.cal-body.month {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 12px 22px 18px;
}
.cal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-viewswitch {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line-field);
  border-radius: 10px;
}
.cal-viewswitch button {
  height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
}
.cal-viewswitch button:hover {
  color: var(--ink);
}
.cal-viewswitch button.active {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-field);
  border-radius: 10px;
}
.cal-nav-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink-mid);
  cursor: pointer;
  padding: 0;
}
.cal-nav-btn:hover,
.cal-nav-today:hover {
  background: var(--surface-hover);
}
/* The chevron glyph only points one way, so the "previous" control mirrors it
   rather than shipping a second icon. */
.cal-nav-prev {
  display: inline-flex;
  transform: rotate(180deg);
}
.cal-nav-today {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
/* Weekday header, shared by both views and aligned to the same 7 columns. */
.cal-grid-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0 2px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
/* Six equal rows filling the remaining height ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ the reason the month view
   needs no scrollbar. minmax(0,1fr) (not just 1fr) is what stops a busy day
   from stretching its whole row. */
.cal-grid.month {
  flex: 1;
  min-height: 0;
  grid-template-rows: repeat(6, minmax(0, 1fr));
}
.cal-grid.week {
  align-items: start;
}
.cal-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 6px 7px 7px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.cal-grid.week .cal-cell {
  min-height: 168px;
  padding: 10px;
  border-radius: 14px;
}
.cal-cell:hover {
  border-color: var(--line-field);
  background: var(--surface-hover-soft);
}
/* Days from the neighbouring months stay visible but recede, so the current
   month reads as a block without losing the week's continuity. */
.cal-cell.outside {
  background: var(--surface-list);
}
.cal-cell.outside .cal-cell-num {
  color: var(--ink-fainter);
}
.cal-cell.outside .cal-chip {
  opacity: 0.65;
}
.cal-cell.today {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border) inset;
}
.cal-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  flex: none;
}
.cal-cell-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mid);
}
.cal-cell.today .cal-cell-num {
  background: var(--accent);
  color: #fff;
}
.cal-cell-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}
.cal-cell-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  /* Fills the cell even when empty: the chip-capacity measurement reads this
     box's height, and a collapsed one would report room for nothing. It also
     makes the whole cell clickable for "create on this day". */
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.cal-grid.week .cal-cell-items {
  gap: 5px;
  overflow: visible;
}
/* One compact line per entry: at a month's density, a chip that wraps or
   stacks its metadata costs a row of the grid. */
.cal-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  flex: none;
  /* Deliberately tight: every 4px here is the difference between two and three
     visible events in a month cell on a laptop screen. */
  padding: 2px 6px;
  line-height: 1.4;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  background: var(--accent-tint);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}
.cal-chip:hover {
  background: var(--accent-border);
}
.cal-chip.all-day {
  background: var(--accent);
  border-left-color: var(--accent-deep);
  color: #fff;
}
.cal-chip.all-day:hover {
  background: var(--accent-deep);
}
/* A declined invitation stays visible but reads as struck through ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ you still
   need to know the meeting exists. */
.cal-chip.declined {
  opacity: 0.55;
}
.cal-chip.declined .cal-chip-title {
  text-decoration: line-through;
}
.cal-chip-time {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--accent-deep);
  flex: none;
}
.cal-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-chip-repeat {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-muted);
  flex: none;
}
/* Task due dates are read-only guests on the calendar ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ dashed and neutral so
   they are never mistaken for a meeting. */
.cal-chip.task {
  border-left-color: var(--positive);
  background: #fff;
  border: 1px dashed var(--line-chip);
  border-left: 3px solid var(--positive);
  color: var(--ink-mid);
}
.cal-chip.task:hover {
  background: var(--surface-hover-soft);
}
.cal-chip.task.done {
  color: var(--ink-fainter);
}
.cal-chip.task.done .cal-chip-title {
  text-decoration: line-through;
}
.cal-chip.external {
  border-left: 3px solid #7c6bb5;
  background: #f7f4ff;
  color: #4d3f7a;
  text-decoration: none;
}
.cal-chip.external:hover {
  background: #efeaff;
}
.cal-chip.external .cal-chip-mark {
  color: #7c6bb5;
}
.cal-chip-mark {
  color: var(--positive);
  font-size: 9px;
  flex: none;
}
.cal-more {
  flex: none;
  margin-top: 1px;
  padding: 1px 6px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
}
.cal-more:hover {
  color: var(--accent-deep);
}
/* Day dialog behind "+N more" ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ the month grid deliberately clips, so this is
   what keeps the hidden entries reachable. */
.cal-day-dialog {
  width: min(420px, 100%);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  box-shadow: 0 28px 60px rgba(28, 22, 40, 0.22);
  overflow: hidden;
}
.cal-day-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  overflow: auto;
}
.cal-day-dialog-body .cal-chip {
  padding: 7px 9px;
  font-size: 12.5px;
}

/* -- Event modal ---------------------------------------------------------- */
/* Two classes, not one: this block sits earlier in the file than .task-modal,
   so a single-class selector would lose the width to it on source order. */
.task-modal.event-modal {
  width: min(600px, 100%);
}
.event-modal-body {
  gap: 12px;
}
/* The title leads the dialog rather than sitting in a row of identical
   labelled fields ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ borderless until focused, the way every calendar and
   note-taking dialog treats its primary input. */
.event-modal-title {
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 2px 8px;
  border: 0;
  border-bottom: 1px solid var(--line-input);
  border-radius: 0;
  background: none;
}
.event-modal-title::placeholder {
  color: #b3abbf;
  font-weight: 600;
}
.event-modal-title:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.event-modal-group {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
  background: var(--surface-hover-soft);
}
.event-modal-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.event-modal-group-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.event-modal-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  color: var(--accent-deep);
  cursor: pointer;
}
.event-modal-link:hover {
  text-decoration: underline;
}
.event-modal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-mid);
  cursor: pointer;
}
.event-modal-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}
/* Chronological left-to-right: date ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ time ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ time ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ date. Wraps rather than
   squeezing, so the native pickers keep a usable width on a narrow screen. */
.event-modal-whenrow,
.event-modal-repeatrow,
.event-modal-detailrow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.event-modal-body .event-modal-date {
  flex: 0 1 138px;
  min-width: 124px;
}
.event-modal-body .event-modal-time {
  flex: 0 1 104px;
  min-width: 94px;
}
.event-modal-arrow {
  color: var(--ink-fainter);
  font-size: 13px;
  padding: 0 1px;
}
.event-modal-body .event-modal-repeat {
  flex: 1 1 190px;
  min-width: 170px;
}
.event-modal-body .event-modal-ends {
  flex: 0 1 108px;
  min-width: 96px;
}
.event-modal-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-mid);
}
.event-modal-count input {
  width: 66px;
}
.event-modal-detailrow > input {
  flex: 1 1 220px;
  min-width: 180px;
}
.event-modal-detailrow > select {
  flex: 0 1 150px;
  min-width: 130px;
}
/* Shared control styling for everything inside a group, so the group's inputs
   match the rest of the dialog without repeating the rule per element. */
.event-modal-group input[type="text"],
.event-modal-group input[type="date"],
.event-modal-group input[type="time"],
.event-modal-group input[type="number"],
.event-modal-group textarea,
.event-modal-group select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 7px 9px;
  border: 1px solid var(--line-input);
  border-radius: 9px;
  background: #fff;
  resize: vertical;
  /* Native date, time and number inputs each pick their own intrinsic height,
     which left the when-row's controls misaligned by a couple of pixels.
     Pin them all to the same box instead. */
  box-sizing: border-box;
  height: 36px;
}
.event-modal-group textarea {
  height: auto;
  min-height: 48px;
}
.event-modal-group input:focus,
.event-modal-group textarea:focus,
.event-modal-group select:focus {
  outline: 2px solid var(--accent-border);
  outline-offset: 1px;
}
.event-modal-hint {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-fainter);
}
.event-modal-hint.invalid {
  color: var(--negative);
}
.event-modal-rsvp {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.event-modal-rsvp-label {
  font-size: 12px;
  font-weight: 750;
  color: var(--ink-mid);
}
/* Selected guests as chips: shows who is coming at a glance and keeps the
   full member list out of the layout until it's wanted. */
.event-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px 3px 3px;
  border: 1px solid var(--line-chip);
  border-radius: 99px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
}
.event-chip.going {
  border-color: #b9e3c9;
}
.event-chip.declined {
  color: var(--ink-muted);
}
.event-chip.declined .event-chip-name {
  text-decoration: line-through;
}
.event-chip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 750;
}
.event-chip-rsvp {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-muted);
}
.event-chip.going .event-chip-rsvp {
  color: var(--positive);
}
.event-chip-remove {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-fainter);
  cursor: pointer;
}
.event-chip-remove:hover {
  color: var(--negative);
}
/* Sits between the scrolling body and the footer ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ a property of the save
   about to happen, so it must not scroll out of sight. */
.event-modal-scope {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
  padding: 9px 16px;
  border: 0;
  border-top: 1px solid var(--line-field-soft, #ebe7f0);
  background: var(--accent-tint);
}
.event-modal-scope legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.event-modal-scope label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}
.event-modal-scope input {
  accent-color: var(--accent);
}
.event-rsvp-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.event-rsvp {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-field);
  border-radius: 99px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mid);
  cursor: pointer;
}
.event-rsvp:hover {
  background: var(--surface-hover);
}
.event-rsvp.going.active {
  border-color: var(--positive);
  background: #e3f6ec;
  color: var(--positive);
}
.event-rsvp.maybe.active {
  border-color: var(--accent-border);
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.event-rsvp.declined.active {
  border-color: var(--negative);
  background: #ffe6e0;
  color: var(--negative);
}
.profile {
  max-width: 420px;
  text-align: center;
}
.profile-avatar {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
  text-align: left;
}
.profile-meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-mid, #6b6278);
}
.profile-meta dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.admin-table {
  display: grid;
  gap: 8px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-chip, #f7f4fb);
}
.admin-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.admin-row-main strong {
  font-size: 14px;
}
.admin-row-main span {
  font-size: 12px;
  color: var(--ink-mid, #6b6278);
}
.admin-row select {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-field, #ddd6e8);
  background: #fff;
  padding: 0 8px;
}
.invite-token {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}
.search-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1;
  min-width: 260px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-field, #ddd6e8);
  padding: 0 14px;
  font: inherit;
}
.search-filters {
  display: flex;
  gap: 8px;
  width: 100%;
}
.search-filters select {
  height: 38px;
  min-width: 180px;
  border: 1px solid var(--line-field, #ddd6e8);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}
.saved-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.inline-create {
  display: flex;
  gap: 6px;
  padding: 6px 10px 10px;
}
.inline-create input {
  flex: 1;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-field, #ddd6e8);
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
}
.inline-create button {
  min-height: 32px;
  border-radius: 8px;
  border: 0;
  background: var(--accent, #5b5ce6);
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.dm-picker {
  display: grid;
  gap: 4px;
  padding: 0 10px 10px;
}
.dm-picker-row {
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #f3eefb;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.dm-picker-row:hover {
  background: #e9e1f8;
}
.auth-standalone {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(111, 61, 234, 0.12), transparent 36%),
    radial-gradient(circle at 85% 80%, rgba(246, 205, 187, 0.35), transparent 30%),
    #f7f4fb;
}
.auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  box-shadow: 0 20px 50px rgba(43, 34, 58, 0.08);
}
.auth-links {
  margin-top: 16px;
  font-size: 13px;
}
.auth-links a {
  color: var(--accent, #5b5ce6);
}
.success-text {
  color: #2c5b3b;
  font-size: 13px;
  margin-top: 12px;
}
.muted {
  color: var(--ink-mid, #6b6278);
}
/* Notification preferences (settings card) */
.notif-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-mid);
}
.notif-field select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 7px 9px;
  border: 1px solid var(--line-input);
  border-radius: 9px;
  background: #fff;
}
.notif-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.notif-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
@media (max-width: 980px) {
  .screen-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* The week view collapses to two columns; the month grid never does ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ a
     month calendar is only legible as seven columns, so it scrolls instead. */
  .cal-grid.week {
    grid-template-columns: 1fr 1fr;
  }
  .cal-body.month {
    overflow: auto;
  }
  .cal-grid.month {
    min-width: 720px;
    min-height: 560px;
  }
  .cal-grid-head {
    min-width: 720px;
  }
}
@media (max-width: 720px) {
  .screen-grid,
  .stats-grid,
  .cal-grid.week {
    grid-template-columns: 1fr;
  }
  .admin-row {
    flex-wrap: wrap;
  }
}

/* -- Add users + pending invites ----------------------------------------- */
.add-users-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 20px;
  background: #fff;
}
.add-users-visual {
  min-height: 280px;
  background:
    linear-gradient(160deg, #fff7f1 0%, #f4efe8 55%, #efe8f6 100%);
}
.add-users-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-users-copy {
  padding: 28px 28px 28px 8px;
}
.add-users-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.add-users-copy > p {
  margin: 0 0 18px;
  color: var(--ink-mid, #6b6278);
  font-size: 14px;
  line-height: 1.5;
}
.ws-invite-banner {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #f0d9c8;
  background:
    linear-gradient(135deg, rgba(246, 205, 187, 0.35), rgba(255, 255, 255, 0.9));
}
.ws-invite-banner-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
}
.ws-invite-banner-head p {
  margin: 0 0 14px;
  color: var(--ink-mid, #6b6278);
  font-size: 13px;
}
.ws-invite-list {
  display: grid;
  gap: 10px;
}
.ws-invite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(124, 60, 34, 0.08);
}
.ws-invite-card strong {
  display: block;
  font-size: 15px;
}
.ws-invite-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-mid, #6b6278);
}
.ws-invite-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.rail-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b5ce6 0%, #7a7bf0 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(79, 70, 229, 0.9);
}
.rail-invite:hover {
  filter: brightness(1.05);
}
.rail-invite svg {
  flex: none;
}

.people-invite-cta {
  display: grid;
  gap: 4px;
  margin: 10px 12px 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #eadffc;
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 205, 187, 0.55), transparent 42%),
    linear-gradient(180deg, #f7f2ff 0%, #ffffff 100%);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.people-invite-cta strong {
  font-size: 14px;
  font-weight: 750;
}
.people-invite-cta span {
  font-size: 12px;
  color: var(--ink-mid, #6b6278);
  line-height: 1.4;
}
.people-invite-cta:hover {
  border-color: #a9caf7;
}

.channel-invite-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 22, 40, 0.42);
  display: grid;
  place-items: center;
  padding: 24px;
}
.channel-invite-modal {
  width: min(440px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  box-shadow: 0 28px 60px rgba(28, 22, 40, 0.22);
  overflow: hidden;
}
.channel-invite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line-field-soft, #ebe7f0);
}
.channel-invite-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
}
.channel-invite-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-mid, #6b6278);
}
.channel-invite-list {
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.channel-invite-row {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.channel-invite-row:hover {
  background: #eef4fd;
}
.channel-invite-row.selected {
  background: #d3e4fb;
}
.channel-invite-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.channel-invite-meta strong {
  font-size: 13px;
  font-weight: 650;
}
.channel-invite-meta span {
  font-size: 12px;
  color: var(--ink-mid, #6b6278);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-invite-check {
  text-align: center;
  color: var(--accent, #5b5ce6);
  font-weight: 800;
}

.forward-message-modal {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
}
.forward-message-body {
  min-height: 0;
  padding: 14px 18px;
  display: grid;
  gap: 13px;
  overflow: auto;
}
.forward-search {
  margin: 0;
}
.forward-destinations {
  min-height: 126px;
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
  display: grid;
  align-content: start;
  gap: 2px;
}
.forward-destination {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.forward-destination:hover { background: var(--surface-hover, #f5f3f7); }
.forward-destination.selected { background: #e8f1fd; }
.forward-destination-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1eef4;
  color: var(--ink-mid);
}
.forward-destination > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.forward-destination strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.forward-destination small { color: var(--ink-mid); font-size: 11.5px; }
.forward-checkbox {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #aaa4af;
  border-radius: 5px;
  color: #fff;
  font-style: normal;
}
.forward-destination.selected .forward-checkbox { background: var(--accent); border-color: var(--accent); }
.forward-note { display: grid; gap: 6px; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.forward-note small { color: var(--ink-mid); font-weight: 500; }
.forward-note textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  padding: 9px 11px;
  border: 1px solid var(--line-input, #c9c4cf);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 400;
}
.forward-note textarea:focus { outline: 2px solid var(--accent-border); outline-offset: 1px; }
.forward-preview {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #faf9fb;
}
.forward-preview > span { color: var(--ink-mid); font-size: 11.5px; }
.forward-preview p {
  margin: 4px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.forward-selection-count { margin-right: auto; align-self: center; color: var(--ink-mid); font-size: 12px; }
.message-action-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1600;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #1d1c1d;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  font-size: 13px;
  font-weight: 650;
}
.message-action-toast svg { color: #65c97a; }

.forwarded-message-card {
  position: relative;
  width: min(760px, 100%);
  min-width: min(340px, 100%);
  margin-top: 7px;
  padding: 11px 42px 12px 13px;
  border: 1px solid #d8d5da;
  border-radius: 14px;
  background: #fff;
  color: #1d1c1d;
  box-shadow: 0 1px 0 rgba(29, 28, 29, .03);
}
.forwarded-message-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.forwarded-message-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  font-size: 11px;
}
.forwarded-message-head > div { min-width: 0; display: grid; gap: 2px; }
.forwarded-message-head span { display: flex; align-items: baseline; gap: 9px; min-width: 0; line-height: 1.2; }
.forwarded-message-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 750; }
.forwarded-message-head time { flex: none; color: #69666a; font-size: 11.5px; }
.forwarded-message-head small {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #616061;
  font-size: 11.5px;
  line-height: 1.25;
}
.forwarded-message-text {
  margin: 8px 0 0;
  color: #1d1c1d;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.forwarded-message-files { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.forwarded-message-files span {
  max-width: 240px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #ddd9df;
  border-radius: 6px;
  color: #454245;
  background: #f8f8f8;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forwarded-message-link {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #e5f4fb;
  color: var(--accent);
}
.forwarded-message-link:hover { background: #cceaf7; }
.thread-msg .forwarded-message-card,
.threads-slack-message .forwarded-message-card { min-width: 0; width: 100%; }

@media (max-width: 620px) {
  .forwarded-message-card { min-width: 0; padding-right: 36px; }
}
.channel-invite-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line-field-soft, #ebe7f0);
}

/* Task create/edit dialog ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ same backdrop/dialog shell as
   .channel-invite-modal (cloned rather than shared 1:1 since this one needs
   a due-date row and status selector the invite modal doesn't). */
/* Slack-style channel member picker. */
.slack-member-dialog {
  width: min(560px, 100%);
  max-height: min(82vh, 680px);
  border-radius: 12px;
  border-color: #d8d8d8;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}
.slack-member-head { padding: 22px 28px 14px; border-bottom: 0; }
.slack-member-head h2 { color: #1d1c1d; font-size: 22px; line-height: 1.25; font-weight: 800; }
.slack-member-head p { color: #616061; font-size: 14px; }
.slack-dialog-close { width: 36px; height: 36px; flex: 0 0 36px; }
.slack-member-tabs { display: flex; gap: 22px; padding: 0 28px; border-bottom: 1px solid #ddd; }
.slack-member-tabs button {
  position: relative;
  padding: 10px 0 12px;
  border: 0;
  background: transparent;
  color: #616061;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.slack-member-tabs button:hover,
.slack-member-tabs button.active { color: #1d1c1d; }
.slack-member-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #611f69;
}
.slack-member-tabs button span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 10px;
  background: #eee;
  color: #616061;
  font-size: 11px;
}
.slack-member-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 86px; overflow: auto; padding: 14px 28px 0; }
.slack-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 3px 5px 3px 3px;
  border-radius: 6px;
  background: #e8f5fa;
  color: #1d1c1d;
  font-size: 13px;
  font-weight: 650;
}
.slack-member-chip-avatar { width: 28px; height: 28px; border-radius: 4px; }
.slack-member-chip button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #616061;
  cursor: pointer;
}
.slack-member-chip button:hover { background: rgba(29, 28, 29, .08); color: #1d1c1d; }
.slack-member-chip button svg { width: 14px; height: 14px; }
.slack-member-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 16px 28px 10px;
  padding: 0 12px;
  border: 1px solid #868686;
  border-radius: 4px;
  background: #fff;
}
.slack-member-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.slack-member-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: #616061; }
.slack-member-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1c1d;
  font: inherit;
  font-size: 15px;
}
.slack-member-search input::placeholder { color: #6f6f6f; }
.slack-member-list { min-height: 190px; padding: 2px 20px 12px; gap: 1px; }
.slack-member-list .channel-invite-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  border-radius: 6px;
}
.slack-member-list .channel-invite-row:hover { background: #f5f5f5; }
.slack-member-list .channel-invite-row.selected { background: #e8f5fa; }
.slack-member-list .list-row-avatar { width: 40px; height: 40px; border-radius: 6px; }
.slack-member-list .channel-invite-meta strong { color: #1d1c1d; font-size: 15px; }
.slack-member-list .channel-invite-meta span { color: #616061; font-size: 13px; }
.slack-member-checkbox {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #868686;
  border-radius: 4px;
  background: #fff;
  color: #fff;
}
.selected .slack-member-checkbox { border-color: var(--accent); background: var(--accent); }
.slack-member-checkbox svg { width: 14px; height: 14px; }
.slack-member-remove {
  min-width: 70px;
  padding: 7px 10px;
  border: 1px solid #b4152b;
  border-radius: 4px;
  background: #fff;
  color: #b4152b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.slack-member-remove:hover { background: #b4152b; color: #fff; }
.slack-member-remove:disabled { opacity: .55; cursor: not-allowed; }
.slack-member-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; color: #616061; text-align: center; }
.slack-member-empty strong { color: #1d1c1d; font-size: 15px; }
.slack-member-empty span { font-size: 13px; }
.slack-member-foot { align-items: center; justify-content: space-between; min-height: 68px; padding: 12px 28px; }
.slack-member-foot > a { color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.slack-member-foot > a:hover { text-decoration: underline; }
.slack-member-add {
  min-width: 78px;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #007a5a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.slack-member-add:hover:not(:disabled) { background: #148567; }
.slack-member-add:disabled { background: #ddd; color: #8d8d8d; cursor: not-allowed; }

@media (max-width: 620px) {
  .channel-invite-backdrop { padding: 12px; }
  .slack-member-head { padding: 18px 18px 12px; }
  .slack-member-tabs { padding: 0 18px; }
  .slack-member-search { margin-right: 18px; margin-left: 18px; }
  .slack-member-chips { padding-right: 18px; padding-left: 18px; }
  .slack-member-list { padding-right: 10px; padding-left: 10px; }
  .slack-member-foot { align-items: stretch; flex-direction: column; padding: 12px 18px 16px; }
  .slack-member-add { width: 100%; }
}

.task-modal {
  width: min(480px, 100%);
  max-height: min(84vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  box-shadow: 0 28px 60px rgba(28, 22, 40, 0.22);
  overflow: hidden;
}
.task-modal-body {
  overflow: auto;
  padding: 14px 18px;
  display: grid;
  gap: 14px;
}
.task-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.task-modal-created-by {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-muted);
}
.task-modal-field {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-mid);
}
.task-modal-field input[type="text"],
.task-modal-field input[type="date"],
.task-modal-field textarea,
.task-modal-field select {
  font: inherit;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
}
.task-modal-field input:focus,
.task-modal-field textarea:focus,
.task-modal-field select:focus {
  outline: 2px solid var(--accent-border);
  outline-offset: 1px;
}
/* Pushed to the far left of the shared .channel-invite-foot so the
   destructive action never sits next to Save. */
.task-modal-delete {
  margin-right: auto;
  color: var(--negative);
  border-color: var(--negative-border, #f0c7c7);
}
.task-modal-assignees {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line-field-soft, #ebe7f0);
  border-radius: 12px;
  padding: 4px;
}

@media (max-width: 900px) {
  .add-users-panel {
    grid-template-columns: 1fr;
  }
  .add-users-visual {
    min-height: 180px;
  }
  .add-users-copy {
    padding: 20px;
  }
  .ws-invite-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ calls ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬
   /calls is a two-column screen inside the shell's main column: history on the
   left, a directory of who to call on the right. The in-call surface below
   reuses the connect's dark chrome deliberately ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ it is the same kind of
   modal-over-everything moment ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ but is a separate class tree because it holds
   real <video> elements and the connect overlay's tiles do not. */

.calls-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 20px;
  padding: 18px 22px 24px;
  overflow: hidden;
}
.calls-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.calls-error {
  margin: 0;
}
.calls-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.calls-live {
  border: 1px solid var(--accent-border);
  background:
    linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(31, 173, 102, 0.08)),
    var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.calls-live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.calls-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #ff4d4d;
  /* The one animated element on the page: a live call is the only thing here
     that is happening rather than having happened. */
  animation: callsPulse 1.6s ease-in-out infinite;
}
@keyframes callsPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.calls-live-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  padding: 10px 12px;
}
.calls-live-kind {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: var(--accent-tint-strong);
  color: var(--accent-deep);
  flex: none;
}
.calls-live-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calls-live-who strong {
  font-size: 13.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calls-live-who span {
  font-size: 12px;
  color: var(--ink-muted);
}
.calls-join {
  flex: none;
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.calls-join:hover:not(:disabled) {
  background: var(--accent-hover);
}
.calls-join:disabled {
  opacity: 0.5;
  cursor: default;
}

.calls-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.calls-tab {
  position: relative;
  border: none;
  background: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px 8px 0 0;
}
.calls-tab:hover {
  background: var(--surface-hover);
  color: var(--ink-body);
}
.calls-tab.active {
  color: var(--accent-deep);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.calls-tab-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--negative);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calls-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.calls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.calls-row:hover {
  background: var(--surface-hover-soft);
}
.calls-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}
.calls-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.calls-row-who {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* A missed call is the one row you might be scanning for, so it is coloured
   rather than merely labelled. */
.calls-row.missed .calls-row-who {
  color: var(--negative);
}
.calls-row-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-muted);
}
.calls-dir {
  font-weight: 800;
}
.calls-dir.out {
  color: var(--positive);
}
.calls-dir.in {
  color: var(--accent);
}
.calls-row.missed .calls-dir {
  color: var(--negative);
}
.calls-row-tag {
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--surface-chip);
  border: 1px solid var(--line-chip);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}
.calls-row-when {
  flex: none;
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.calls-row-actions,
.calls-person-actions {
  flex: none;
  display: flex;
  gap: 5px;
}
/* Actions stay hidden until the row is hovered or something inside it has
   focus ÃÂÃÂÃÂÃÂ¢ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ¬ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ the keyboard path must not depend on the pointer. */
.calls-row-actions {
  opacity: 0;
}
.calls-row:hover .calls-row-actions,
.calls-row:focus-within .calls-row-actions {
  opacity: 1;
}
.calls-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  border: 1px solid var(--line-button);
  background: var(--surface);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.calls-icon-btn:hover:not(:disabled) {
  background: var(--accent-tint);
  border-color: var(--accent-border);
  color: var(--accent-deep);
}
.calls-icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.calls-empty {
  padding: 22px 10px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

.calls-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.calls-panel {
  border: 1px solid var(--line-field-soft);
  border-radius: 14px;
  background: var(--surface-list);
  padding: 12px;
}
.calls-panel-head {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.calls-panel-hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-ghost);
}
.calls-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calls-upcoming {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-chip);
}
.calls-upcoming-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calls-upcoming-main strong {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calls-upcoming-main span {
  font-size: 11.5px;
  color: var(--ink-muted);
}
.calls-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
}
.calls-person:hover {
  background: var(--surface);
}
.calls-person-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.calls-person-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 2px solid var(--surface-list);
  background: var(--offline);
}
.calls-person-dot.active {
  background: var(--online);
}
.calls-person-dot.away {
  background: #e0a800;
}
.calls-person-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.calls-person-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calls-person-meta {
  font-size: 11.5px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calls-person-actions {
  opacity: 0;
}
.calls-person:hover .calls-person-actions,
.calls-person:focus-within .calls-person-actions {
  opacity: 1;
}

/* -- New-call picker over the shared .task-modal shell -- */

.call-modal-kind {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.call-modal-kind-btn {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-field);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.call-modal-kind-btn.active {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-deep);
}

/* -- Incoming-call ringer: fixed, above everything, bottom-right -- */

.ring-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ring-card {
  width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #17151f;
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.6);
  animation: voxiIn 0.2s ease both;
}
.ring-avatar {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex: none;
}
.ring-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ring-who {
  color: #fff;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ring-what {
  color: #8f8aa3;
  font-size: 12px;
}
.ring-actions {
  display: flex;
  gap: 7px;
  flex: none;
}
.ring-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 99px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ring-btn.accept {
  background: #12a05f;
  animation: callsPulse 1.4s ease-in-out infinite;
}
.ring-btn.accept:hover {
  background: #0e8c52;
  animation: none;
}
.ring-btn.decline {
  background: #ff3b3b;
}
.ring-btn.decline:hover {
  background: #e02c2c;
}
.ring-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* -- In-call surface (real media; cf. the mock .connect chrome above) -- */

.call-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 24, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 65;
  padding: 32px;
}
.call-stage {
  width: 100%;
  max-width: 1040px;
  background: #17151f;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  animation: voxiIn 0.22s ease both;
}
.call-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.call-live {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #ff4d4d;
  flex: none;
}
.call-live.ringing {
  animation: callsPulse 1.2s ease-in-out infinite;
}
.call-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.call-clock {
  color: #8f8aa3;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.call-spacer {
  flex: 1;
}
.call-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8f8aa3;
  font-size: 12.5px;
}
.call-count em {
  font-style: normal;
  color: #6f6a82;
}
.call-close {
  display: flex;
  color: #8f8aa3;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.call-error {
  margin: 0;
  padding: 10px 20px;
  background: rgba(255, 59, 59, 0.12);
  color: #ff9d9d;
  font-size: 12.5px;
}
.call-grid {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  grid-template-columns: repeat(2, 1fr);
}
.call-grid.count-1 {
  grid-template-columns: 1fr;
}
.call-grid.count-5,
.call-grid.count-6 {
  grid-template-columns: repeat(3, 1fr);
}
.call-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #221f2e;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.call-tile.speaking {
  border-color: var(--accent);
}
.call-tile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
/* Kept in the DOM when there is no picture: the element is also what plays the
   audio, so unmounting it would silence the person. */
.call-tile-video.hidden {
  display: none;
}
.call-tile-video.mirrored {
  transform: scaleX(-1);
}
.call-tile-avatar {
  width: 62px;
  height: 62px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
}
.call-tile-avatar.ringing {
  background: #2b2839;
  color: #8f8aa3;
}
.call-tile-foot {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.call-tile-who {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-tile-label {
  flex: none;
  padding: 1px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  color: #cfcbdd;
  font-size: 11px;
  font-weight: 600;
}
.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 22px;
}
.call-controls-spacer {
  width: 18px;
}
.call-control {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 99px;
  background: #2b2839;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.call-control:hover:not(:disabled) {
  background: #363248;
}
.call-control.off {
  background: #ff3b3b;
}
.call-control.on {
  background: var(--accent);
}
.call-control:disabled {
  opacity: 0.4;
  cursor: default;
}
.call-leave {
  height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: 99px;
  background: #ff3b3b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}
.call-leave:hover {
  background: #e02c2c;
}
.call-end {
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: transparent;
  color: #cfcbdd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.call-end:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.call-qos {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8f8aa3;
}
.call-qos.excellent { color: #5ee0a0; }
.call-qos.good { color: #8fd18f; }
.call-qos.poor, .call-qos.lost { color: #ff9d9d; }
.call-reactions {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  flex-wrap: wrap;
}
.call-reaction {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 13px;
  animation: voxiIn 0.18s ease both;
}
.call-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #fff;
  display: block;
}
.call-rec-dot.on {
  background: #ff3b3b;
  box-shadow: 0 0 0 4px rgba(255,59,59,0.25);
}
.call-panel {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 0 20px 16px;
  color: #cfcbdd;
  font-size: 12.5px;
}
.call-panel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.call-panel select, .call-panel input {
  background: #2b2839;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 10px;
}
.call-panel button {
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.call-chat {
  padding: 0 20px 16px;
}
.call-chat-log {
  max-height: 140px;
  overflow-y: auto;
  background: #211e2c;
  border-radius: 10px;
  padding: 10px 12px;
  color: #cfcbdd;
  font-size: 13px;
  margin-bottom: 8px;
}
.call-chat-log p { margin: 0 0 6px; }
.call-chat input {
  width: 100%;
  background: #2b2839;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 10px;
}
.clip-recorder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2, #f4f3f8);
  border-radius: 10px;
  margin: 6px 0;
  font-size: 13px;
}
.clip-recorder.live .clip-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #ff3b3b;
  animation: callsPulse 1s ease-in-out infinite;
}
.clip-recorder video {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

@media (max-width: 1100px) {
  .calls-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .calls-main,
  .calls-side {
    overflow: visible;
  }
  /* Touch has no hover, so the row actions have to be permanent there. */
  .calls-row-actions,
  .calls-person-actions {
    opacity: 1;
  }
}

/* Autoplay-blocked affordance. Sits between the header and the grid so it is
   impossible to miss: a silent call that looks connected is the worst state
   this UI can be in. */
.call-unmute {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(224, 168, 0, 0.16);
  color: #ffd98a;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.call-unmute:hover {
  background: rgba(224, 168, 0, 0.24);
}

/* Slack-style person profile panel opened from message/member avatars. */
.user-profile-panel {
  width: 430px;
  min-width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: -10px 0 28px -26px rgba(22, 21, 26, 0.4);
  animation: voxiIn 0.18s ease both;
}
.user-profile-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-soft);
}
.user-profile-head h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}
.user-profile-head button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.user-profile-head button:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.user-profile-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top: 20px;
}
.user-profile-photo {
  width: min(270px, calc(100% - 48px));
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line-field-soft);
  border-radius: 12px;
  font-size: 72px;
  font-weight: 800;
}
.user-profile-summary {
  padding: 0 20px 16px;
}
.user-profile-summary h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.user-profile-title {
  margin: 5px 0 17px;
  color: var(--ink-body);
  font-size: 15px;
}
.user-profile-presence,
.user-profile-time {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--ink-mid);
  font-size: 13.5px;
}
.user-profile-time {
  margin-bottom: 0;
}
.user-profile-time > span {
  color: var(--ink);
  font-size: 20px;
}
.user-profile-status-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border: 2px solid var(--ink-muted);
  border-radius: 999px;
}
.user-profile-status-dot.active {
  border-color: var(--online);
  background: var(--online);
}
.user-profile-status-dot.away {
  border-color: #d89b00;
}
.user-profile-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}
.user-profile-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #cbc9ce;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.user-profile-actions button:hover:not(:disabled) {
  background: var(--surface-hover-soft);
  border-color: #aaa7af;
}
.user-profile-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.user-profile-actions button.primary {
  flex: 1;
}
.user-profile-contact {
  padding: 18px 20px 26px;
  border-top: 1px solid var(--line);
}
.user-profile-contact > h3 {
  margin: 0 0 16px;
  font-size: 15px;
}
.user-profile-contact-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}
.user-profile-contact-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-hover-soft);
  color: var(--ink);
  font-weight: 750;
}
.user-profile-contact-row > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.user-profile-contact-row small {
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 650;
  text-transform: capitalize;
}
.user-profile-contact-row a,
.user-profile-contact-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  font-weight: 600;
}
.user-profile-contact-row a {
  color: var(--accent-deep);
}
.user-avatar-trigger,
.user-name-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.user-avatar-trigger {
  display: flex;
  flex: none;
  border-radius: 8px;
}
.user-avatar-trigger:focus-visible,
.user-name-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.user-name-trigger:hover {
  text-decoration: underline;
}
@media (max-width: 1399px) {
  .user-profile-panel {
    width: 380px;
  }
}
@media (max-width: 1199px) {
  .user-profile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(420px, calc(100vw - 68px));
    box-shadow: -16px 0 48px rgba(22, 21, 26, 0.2);
  }
}
@media (max-width: 620px) {
  .user-profile-panel {
    width: 100vw;
    min-width: 0;
  }
}
/* Private S3/MinIO attachments, media players, gallery and file browser. */
.msg-attachment.media { max-width: 620px; padding: 10px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--surface, #fff); }
.msg-media-player { display: block; width: min(100%, 600px); max-height: 360px; margin-top: 8px; border-radius: 9px; background: #101114; }
.msg-audio-player { display: block; width: min(100%, 460px); margin-top: 8px; }
.msg-files.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 6px; max-width: 570px; }
.msg-files.gallery .msg-attachment.image { min-width: 0; margin: 0; }
.msg-files.gallery .msg-image-preview img { width: 100%; height: 190px; object-fit: cover; }
.slack-files-group { display: grid; gap: 8px; width: min(100%, 920px); min-width: 0; margin-top: 5px; }
.slack-files-summary { display: flex; align-items: center; gap: 7px; min-height: 26px; color: var(--ink-mid, #45464a); font-size: 14px; }
.slack-files-summary strong { font-weight: 650; }
.slack-files-summary > span { color: var(--ink-faint, #777); font-size: 11px; }
.slack-files-summary button { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 3px 5px; border: 0; border-radius: 5px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.slack-files-summary button:hover { color: var(--accent); background: rgba(91, 92, 230, 0.08); }
.slack-image-grid { display: grid; gap: 8px; width: min(100%, 920px); min-width: 0; }
.slack-image-grid.count-1 { grid-template-columns: minmax(220px, 440px); }
.slack-image-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; }
.slack-image-grid.count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slack-image-grid.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slack-image-grid.expanded { grid-template-columns: repeat(2, minmax(120px, 1fr)); max-width: 620px; gap: 10px; }
.msg.dm-bubble.has-attachments { width: min(82%, 760px); max-width: min(82%, 760px); }
.msg.dm-bubble.has-attachments .msg-body,
.msg.dm-bubble.has-attachments .slack-files-group,
.msg.dm-bubble.has-attachments .slack-image-grid { width: 100%; min-width: 0; }
.msg.dm-bubble.has-attachments .slack-image-tile { height: 190px; }
.slack-image-tile { position: relative; min-width: 0; height: 214px; border: 1px solid var(--line-chip, #d7d9dd); border-radius: 10px; background: #eef0f2; }
.slack-image-grid.expanded .slack-image-tile { height: 205px; }
.slack-image-grid.count-1 .slack-image-tile { height: min(360px, 42vw); }
.slack-image-open { position: absolute; inset: 0; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.slack-image-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slack-image-open > span:not(.slack-image-overflow) { display: grid; height: 100%; place-items: center; color: #6a6d72; }
.slack-image-overflow { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgba(0,0,0,.62); font-size: clamp(30px, 4vw, 52px); font-weight: 700; }
.slack-image-actions { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity .12s, transform .12s; }
.slack-image-tile:hover .slack-image-actions, .slack-image-actions:focus-within { opacity: 1; transform: translateY(0); }
.slack-image-actions > button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 6px; color: white; background: rgba(32,33,36,.82); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }
.slack-image-actions > button:hover { background: rgba(20,21,23,.96); }
.slack-image-menu { position: absolute; top: 40px; right: 0; z-index: 8; display: grid; width: 165px; padding: 5px; border: 1px solid var(--line-chip, #d7d9dd); border-radius: 9px; color: var(--ink, #1d1c1d); background: white; box-shadow: 0 8px 26px rgba(0,0,0,.2); }
.slack-image-menu button { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 0; border-radius: 5px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.slack-image-menu button:hover { background: #f1f2f4; }
.slack-image-menu button.danger { color: #c72c41; }
.slack-image-menu button.danger:hover { color: white; background: #c72c41; }
.media-gallery-backdrop { position: fixed; inset: 0; z-index: 2200; display: grid; grid-template-columns: minmax(0, 1fr) clamp(350px, 29vw, 480px); padding: 0; background: #08090b; }
.media-gallery-backdrop.files-browser-gallery { grid-template-columns: minmax(0, 1fr); }
.files-browser-gallery .media-gallery-close { position: absolute; top: 16px; left: 18px; z-index: 5; color: white; background: rgba(255,255,255,.14); }
.files-browser-gallery .media-gallery-close:hover { background: rgba(255,255,255,.24); }
.media-gallery-backdrop.with-thread { right: 352px; grid-template-columns: minmax(0, 1fr); }
.media-gallery-stage { position: relative; display: grid; min-width: 0; height: 100dvh; padding: 62px 76px 68px; place-items: center; overflow: hidden; background: #08090b; }
.media-gallery-figure { display: grid; max-width: 100%; max-height: 100%; margin: 0; place-items: center; color: white; text-align: center; }
.media-gallery-figure img { display: block; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,.45); }
.media-gallery-figure figcaption { margin-top: 10px; font-size: 13px; }
.media-gallery-title { position: absolute; top: 20px; left: 24px; right: 24px; overflow: hidden; color: white; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.media-gallery-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 999px; color: white; background: rgba(255,255,255,.16); cursor: pointer; font-size: 32px; line-height: 1; }
.media-gallery-nav.prev { left: 20px; }
.media-gallery-nav.next { right: 20px; }
.media-gallery-toolbar { position: absolute; right: 24px; bottom: 20px; display: flex; align-items: center; gap: 8px; color: white; }
.media-gallery-toolbar > button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: white; background: rgba(255,255,255,.14); cursor: pointer; }
.media-gallery-toolbar > button:hover { background: rgba(255,255,255,.24); }
.media-gallery-toolbar > span { min-width: 52px; font-size: 12px; text-align: center; }
.media-gallery-menu { position: absolute; right: 0; bottom: 46px; display: grid; width: 170px; padding: 5px; border: 1px solid #d7d9dd; border-radius: 9px; color: #1d1c1d; background: white; box-shadow: 0 10px 30px rgba(0,0,0,.32); }
.media-gallery-menu button { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 0; border-radius: 5px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.media-gallery-menu button:hover { background: #f1f2f4; }
.media-gallery-menu button.danger { color: #c72c41; }
.media-gallery-menu button.danger:hover { color: white; background: #c72c41; }
.media-gallery-rail { height: 100dvh; overflow-y: auto; border-left: 1px solid #d7d9dd; color: #1d1c1d; background: white; }
.media-gallery-rail-head { position: sticky; top: 0; z-index: 20; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e4e5e7; background: white; }
.media-gallery-rail-head > div { display: flex; align-items: center; gap: 12px; }
.media-gallery-rail-head strong { white-space: nowrap; }
.media-gallery-rail-head > div button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 0; border-radius: 6px; color: #4b4d52; background: transparent; cursor: pointer; }
.media-gallery-rail-head > div button:hover { color: var(--accent); background: #eef6fb; }
.media-gallery-close { display: grid; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #45474b; background: transparent; cursor: pointer; }
.media-gallery-close:hover { background: #f0f1f2; }
.media-gallery-rail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 28px; }
.media-gallery-rail-grid .slack-image-tile { height: 190px; border-radius: 8px; }
.media-gallery-rail-grid .slack-image-tile.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.media-gallery-rail-grid .slack-image-tile:focus-within { z-index: 10; }
@media (max-width: 1399px) {
  .media-gallery-backdrop.with-thread { right: 292px; }
}
@media (max-width: 1199px) {
  .app:has(.media-gallery-backdrop.with-thread) .thread {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 2201;
    display: flex;
    width: min(360px, 42vw);
  }
  .media-gallery-backdrop.with-thread { right: min(360px, 42vw); }
}
.files-browser { overflow: auto; padding: 18px 24px 30px; }
.files-browser.compact { height: 100%; padding: 14px 18px; }
.files-toolbar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 14px; background: var(--surface, #fff); }
.files-search { display: flex; align-items: center; flex: 1 1 280px; gap: 8px; min-width: 220px; padding: 8px 11px; border: 1px solid var(--line, #d7d9dd); border-radius: 9px; }
.files-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.files-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.files-filters button { padding: 7px 10px; border: 1px solid var(--line, #d7d9dd); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; }
.files-filters button.active { border-color: var(--accent); color: white; background: var(--accent); }
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.files-card { position: relative; overflow: hidden; border: 1px solid var(--line, #dfe1e5); border-radius: 12px; background: var(--surface, #fff); transition: box-shadow .15s, transform .15s; }
.files-card:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20,30,50,.1); }
.files-preview { display: grid; width: 100%; height: 142px; padding: 0; place-items: center; overflow: hidden; border: 0; background: #f2f4f7; cursor: pointer; }
.files-preview img, .files-preview video { width: 100%; height: 100%; object-fit: cover; }
.files-kind { display: grid; gap: 5px; place-items: center; color: #556070; text-transform: uppercase; }
.files-kind small { font-size: 10px; letter-spacing: .08em; }
.files-card-copy { display: grid; gap: 3px; padding: 10px 38px 12px 12px; }
.files-name { overflow: hidden; padding: 0; border: 0; color: inherit; background: none; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.files-card-copy > span { overflow: hidden; color: var(--muted, #68707c); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.files-delete { position: absolute; right: 8px; bottom: 9px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 7px; color: #8b2635; background: transparent; cursor: pointer; }
.files-delete:hover { background: #fff0f2; }
.files-more { display: block; margin: 18px auto 0; }
.composer[ondrop], .thread-composer[ondrop] { outline-offset: -3px; }
@media (max-width: 1000px) {
  .msg.dm-bubble.has-attachments { width: min(94%, 620px); max-width: min(94%, 620px); }
  .msg.dm-bubble.has-attachments .slack-image-grid.count-3,
  .msg.dm-bubble.has-attachments .slack-image-grid.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msg.dm-bubble.has-attachments .slack-image-tile { height: 165px; }
}
@media (max-width: 620px) {
  .files-browser { padding: 12px; }
  .files-grid { grid-template-columns: 1fr; }
  .media-gallery-backdrop { grid-template-columns: minmax(0, 1fr) 230px; }
  .media-gallery-stage { padding: 54px 42px 66px; }
  .media-gallery-nav { width: 36px; height: 36px; margin-top: -18px; font-size: 26px; }
  .media-gallery-nav.prev { left: 5px; }
  .media-gallery-nav.next { right: 5px; }
  .media-gallery-rail-grid { grid-template-columns: 1fr; padding: 8px; }
  .media-gallery-rail-grid .slack-image-tile { height: 135px; }
  .media-gallery-rail-head { padding: 10px; }
  .media-gallery-rail-head > div { display: grid; gap: 2px; }
  .msg-files.gallery { grid-template-columns: 1fr; }
  .slack-image-grid.count-3, .slack-image-grid.count-4 { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .slack-image-grid.expanded { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
  .slack-image-tile { height: 150px; }
  .slack-image-grid.expanded .slack-image-tile { height: 150px; }
  .slack-files-summary { flex-wrap: wrap; }
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ motion polish ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */

.sidebar a,
.sidebar button,
.gnav-item,
.screen-btn,
.head-action,
.composer-formatbar button {
  transition:
    background-color 120ms var(--ease-out),
    border-color 120ms var(--ease-out),
    color 120ms var(--ease-out);
}

.msg {
  transition: background-color 100ms var(--ease-out);
}

.msg-hover-actions {
  right: var(--space-msg-x);
}

.calls-live {
  box-shadow: none;
  background: var(--accent-tint);
}

.auth-submit {
  box-shadow: none;
  border-radius: 8px;
  transition: background 140ms var(--ease-out);
}
.auth-submit:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* In-app flash notifications - right stack, oldest top / newest bottom. */
.flash-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.flash-toast {
  pointer-events: auto;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line, #e4e4e7);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  color: var(--ink, #111);
  font: inherit;
  cursor: pointer;
  animation: flash-toast-in 180ms ease-out;
}
.flash-toast.leaving {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.flash-toast strong {
  font-size: 13px;
  font-weight: 700;
}
.flash-toast span {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-muted, #667085);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes flash-toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}