:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  font-size: 14px;
  --background: #101110;
  --surface: #191b18;
  --raised: #232620;
  --ink: #f2f3ed;
  --muted: #b0b3a9;
  --line: #34372f;
  --border-strong: #666b5e;
  --accent: #dfbd69;
  --accent-hover: #f0d795;
  --accent-soft: #2e291d;
  --accent-border: #6c5930;
  --on-accent: #171810;
  --danger: #ffaaa0;
  --danger-surface: #412724;
}
#incoming-call {
  position: fixed;
  z-index: 90;
  top: 24px;
  right: 24px;
  bottom: auto;
  left: auto;
  margin: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 70px #00000080;
}
#incoming-call::backdrop {
  background: #00000055;
  backdrop-filter: none;
}
#incoming-call h2 {
  margin: 14px 0 10px;
  font-size: 24px;
  overflow-wrap: anywhere;
}
#incoming-call p {
  font-size: 13px;
  line-height: 1.6;
}
.incoming-sound {
  margin-top: 8px;
}
.incoming-actions,
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
#incoming-call .decline-call {
  color: var(--danger);
  background: var(--danger-surface);
}
.sound-setting {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0 10px;
  line-height: 1.6;
}
.sound-setting input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.notification-settings > p {
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 650px) {
  #incoming-call {
    top: 12px;
    right: 16px;
    padding: 20px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--line) !important;
  box-shadow: 0 0 0 3px #00000030;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
h2 {
  font-weight: 650;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
button .icon {
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--muted);
}
.button {
  min-height: 40px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
  color: var(--ink);
}
.button:hover:not(:disabled) {
  background: var(--raised);
  color: var(--ink);
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.button.primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.button.full {
  width: 100%;
}
.button.small {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 11px;
}
.button.small .icon {
  width: 15px;
  height: 15px;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--raised);
  color: var(--ink);
}
.text-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 6px 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover {
  color: var(--accent);
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.status-dot.offline {
  background: var(--border-strong);
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  width: 39px;
  height: 39px;
  border-radius: 0;
  background: transparent;
  transform: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  letter-spacing: -0.9px;
  font-weight: 650;
}
.brand-caption {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 500;
}
.loading,
.connection-error {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.connection-error {
  flex-direction: column;
}
.connection-error p {
  color: var(--muted);
}
.large-icon .icon {
  width: 50px;
  height: 50px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 100dvh;
}
.auth-story {
  background: var(--background);
  color: var(--ink);
  padding: 45px 64px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: 50%;
  right: -415px;
  top: 15%;
  box-shadow:
    0 0 0 80px #dfbd6906,
    0 0 0 160px #dfbd6904;
  pointer-events: none;
  border-color: #dfbd692b;
}
.auth-copy {
  margin: auto 0;
  padding: 48px 0 50px;
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.auth-copy h1 {
  font-weight: 500;
  font-size: clamp(40px, 4.7vw, 69px);
  line-height: 1.13;
  margin: 26px 0 23px;
  letter-spacing: -3.3px;
}
.auth-copy h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -2.7px;
}
.auth-copy > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.conversation-art {
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 365px;
  border-radius: 15px;
  margin-top: 36px;
  padding: 19px 21px;
  transform: rotate(-2deg);
  box-shadow: 0 18px 40px #00000030;
}
.art-line {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.art-line small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.art-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}
.art-avatar .brand-mark {
  width: 35px;
  height: 35px;
}
.art-live {
  margin-left: auto;
  font-size: 10px;
  color: var(--accent);
}
.art-channel {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 14px;
  font-size: 11px;
  color: var(--muted);
}
.art-channel .icon {
  width: 14px;
  height: 14px;
}
.art-channel > span {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.art-bars {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--background);
  color: var(--ink);
}
.art-bars i {
  width: 4px;
  background: var(--accent);
  border-radius: 4px;
  height: 8px;
}
.art-bars i:nth-child(2n) {
  height: 16px;
}
.art-bars i:nth-child(3n) {
  height: 24px;
}
.art-bars i:nth-child(5n) {
  height: 30px;
}
.art-footer {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
}
.art-footer .icon {
  width: 15px;
  height: 15px;
}
.auth-story footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  gap: 15px;
}
.auth-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 60px;
  position: relative;
  background: var(--background);
}
.auth-form {
  width: 100%;
  max-width: 355px;
}
.auth-form h2 {
  font-size: 32px;
  line-height: 1.25;
  margin: 15px 0 12px;
}
.auth-form > .muted {
  font-size: 13px;
  margin-bottom: 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 19px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 70px;
  color: var(--ink);
  border-color: var(--border-strong);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  font-size: 12px;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  line-height: 1.6;
  margin: 8px 0 16px;
}
.form-error:empty {
  margin: 0;
}
.auth-form .button {
  min-height: 46px;
  margin-top: 5px;
  justify-content: space-between;
  padding: 12px 17px;
}
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}
.auth-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.auth-bottom {
  position: absolute;
  bottom: 30px;
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.auth-form > .text-button {
  margin-top: 20px;
}
.workspace {
  display: grid;
  grid-template-columns: 72px 246px minmax(350px, 1fr) 266px;
  height: 100dvh;
  overflow: hidden;
}
.rail {
  background: var(--background);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 7px 18px;
  gap: 16px;
}
.rail-brand {
  margin-bottom: 24px;
}
.rail .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  transform: none;
}
.rail-item {
  width: 56px;
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  color: var(--muted);
}
.rail-item > .icon {
  width: 22px;
  height: 22px;
}
.rail-item > span {
  font-size: 8px;
}
.rail-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  border-color: var(--accent-border);
}
.rail-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}
.rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 25px 21px 28px;
}
.workspace-symbol {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.workspace-symbol .brand-mark {
  width: 33px;
  height: 33px;
}
.workspace-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.workspace-brand > div > span:not(.workspace-symbol > span) {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.sidebar-scroll {
  overflow: auto;
  min-height: 0;
  padding: 0 12px;
}
.sidebar-top {
  padding: 0 8px 20px;
}
.sidebar-top .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.nav-discover {
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  color: var(--muted);
  padding: 10px 0;
  font-size: 11px;
}
.nav-discover .icon:first-child {
  width: 16px;
  height: 16px;
}
.nav-discover .icon:last-child {
  margin-left: auto;
  width: 13px;
  height: 13px;
}
.nav-discover:hover {
  color: var(--muted);
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.section-label > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-label > span > .icon {
  width: 11px;
  height: 11px;
}
.section-label small {
  font-size: 9px;
  color: var(--muted);
  margin-left: 5px;
  font-weight: 400;
}
.section-label > .icon-button {
  width: 24px;
  height: 24px;
}
.section-label > .icon-button .icon {
  width: 14px;
  height: 14px;
}
.room-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.room-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.room-link > span:not(.avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-link > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.room-link.selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  border-color: var(--accent-border);
}
.room-link.selected > .icon {
  color: var(--accent);
}
.room-link:hover {
  background: var(--raised);
  color: var(--ink);
}
.room-link.unread {
  font-weight: 650;
  color: var(--accent);
}
.room-link .live-icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
  margin-left: auto;
}
.unread-count {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 5px;
  margin-left: auto;
  border-color: var(--accent);
}
.add-link {
  font-size: 10px;
  color: var(--muted);
}
.add-link .icon {
  width: 14px;
  height: 14px;
}
.dm-label {
  margin-top: 28px;
}
.sidebar-empty {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  padding: 10px 12px;
}
.sidebar-footer {
  padding: 22px 20px 18px;
  margin-top: auto;
}
.invite-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 16px 14px;
}
.invite-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 13px;
  border-color: var(--accent-border);
}
.invite-icon .icon {
  width: 16px;
  height: 16px;
}
.invite-card strong {
  font-size: 11px;
  font-weight: 600;
}
.invite-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 7px 0 13px;
}
.invite-button {
  padding: 8px 10px;
  min-height: 31px;
  width: 100%;
  font-size: 10px;
  justify-content: space-between;
  border-color: var(--line);
  background: var(--surface);
}
.invite-button .icon {
  width: 12px;
  height: 12px;
}
.workspace-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  margin: 19px 1px 0;
}
.workspace-presence > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
  background: var(--background);
}
.conversation-header {
  min-height: 87px;
  display: flex;
  align-items: center;
  padding: 20px 28px;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.room-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.header-room-icon {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-color: var(--accent-border);
}
.header-room-icon .icon {
  width: 22px;
  height: 22px;
}
.room-title > div {
  min-width: 0;
}
.room-title h1 {
  font-size: 17px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 250px;
}
.room-title > div > span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--surface);
  min-width: 0;
  border-color: var(--border-strong);
}
.search-box .icon {
  width: 14px;
  height: 14px;
}
.search-box input {
  width: 120px;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 10px;
  color: var(--ink);
  box-shadow: none !important;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-box:focus-within {
  outline: 2px solid var(--accent);
}
.search-box kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 14px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: var(--surface);
}
.call-button {
  font-size: 10px;
  padding: 8px 11px;
  min-height: 33px;
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line);
  white-space: nowrap;
}
.call-button .icon {
  width: 15px;
  height: 15px;
}
.details-toggle {
  display: none;
}
.message-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.room-welcome {
  padding: 46px 34px 26px;
}
.welcome-icon {
  position: relative;
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 23px;
  border-color: var(--accent-border);
}
.welcome-icon > .icon {
  width: 32px;
  height: 32px;
}
.welcome-icon > span {
  position: absolute;
  right: -9px;
  top: -6px;
  color: var(--muted);
  background: var(--background);
  border-radius: 50%;
  padding: 3px;
}
.welcome-icon > span > .icon {
  width: 18px;
  height: 18px;
}
.room-welcome > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
}
.room-welcome h2 {
  font-size: 27px;
  font-weight: 550;
  margin: 12px 0 11px;
}
.room-welcome h2 > span {
  color: var(--accent);
}
.room-welcome > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  max-width: 470px;
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
}
.welcome-actions > span {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding-right: 15px;
}
.welcome-actions > span > .icon {
  width: 14px;
  height: 14px;
}
.welcome-actions > .text-button {
  font-size: 10px;
  color: var(--accent);
}
.welcome-actions > .text-button .icon {
  width: 12px;
  height: 12px;
}
.date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 29px 19px;
  color: var(--muted);
  font-size: 9px;
}
.date-divider:before,
.date-divider:after {
  content: "";
  height: 1px;
  background: var(--surface);
  flex: 1;
}
.date-divider > span, .date-divider > button {
  border: 1px solid var(--line);
  padding: 5px 12px;
  background: var(--surface);
  border-radius: 15px;
}
.message {
  display: flex;
  gap: 13px;
  padding: 10px 32px 14px;
  transition: background 0.1s;
}
.message:hover {
  background: var(--raised);
  color: var(--ink);
}
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.color-0 {
  background: #393322;
  color: #e9cd88;
}
.color-1 {
  background: #293a36;
  color: #abd4c5;
}
.color-2 {
  background: #403024;
  color: #e8be99;
}
.color-3 {
  background: #38303e;
  color: #d3bada;
}
.color-4 {
  background: #303929;
  color: #c4d4ab;
}
.color-5 {
  background: #36362e;
  color: #d4d3bc;
}
.small-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 9px;
}
.tiny-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 8px;
}
.online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  background: var(--accent);
  width: 8px;
  height: 8px;
  border: 2px solid var(--line);
  border-radius: 50%;
  border-color: var(--surface);
}
.message-content {
  min-width: 0;
  flex: 1;
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 0 6px;
  line-height: 1.3;
}
.message-meta strong {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
}
.message-meta time {
  font-size: 9px;
  color: var(--muted);
  margin-left: 2px;
}
.you-tag {
  font-size: 8px;
  color: var(--muted);
}
.message-content > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  font-size: 12px;
  color: var(--ink);
}
.first-message {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  padding: 22px 32px;
}
.first-message > span {
  height: 1px;
  flex: 1;
  background: var(--surface);
}
.composer-wrap {
  position: relative;
  padding: 10px 28px 18px;
  flex-shrink: 0;
}
#emoji-picker {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 12px;
  z-index: 20;
  width: min(340px, calc(100% - 24px));
  max-height: 45dvh;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 28px #00000050;
}
#emoji-picker[hidden] { display: none; }
#emoji-picker strong { display: block; margin-bottom: 8px; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.emoji-grid[hidden] { display: none; }
.unread-divider { display: flex; align-items: center; gap: 10px; color: #f16b62; margin: 16px 0; font-size: 13px; font-weight: 600; }
.unread-divider::before { content: ''; flex: 1; height: 1px; background: currentColor; }
.emoji-option[hidden] { display: none; }
.emoji-search { grid-column: 1 / -1; width: 100%; min-width: 0; margin-bottom: 8px; }
#edit-emojis { max-height: 35dvh; overflow-y: auto; }
.emoji-option {
  min-height: 44px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 25px;
  cursor: pointer;
}
.emoji-option:hover, .emoji-option:focus-visible { background: var(--line); outline: 2px solid var(--accent); }
#add-emoji { font-size: 25px; }
#add-gif { font-size: 11px; font-weight: 800; }
.message-actions { margin-left: auto; flex-shrink: 0; }
.message-menu-toggle { font-size: 24px; min-width: 36px; min-height: 32px; }
.message-action-menu { position: fixed; z-index: 90; width: 160px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px #0006; }
.message-action-menu[hidden] { display: none; }
.message-action-menu button { display: block; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; border-radius: 6px; }
.message-action-menu button:hover, .message-action-menu button:focus-visible { background: var(--line); }
.message-edited { color: var(--muted); font-size: 10px; }
.message-dialog-actions { display: flex; gap: 12px; justify-content: flex-end; }
#giphy-search { display: flex; gap: 8px; }
#giphy-query { min-width: 0; flex: 1; }
.giphy-result { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; overflow: hidden; }
.giphy-result:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.giphy-result .message-image { width: 100%; height: 130px; object-fit: contain; margin: 0; }
.giphy-credit { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin: 8px 0; }
.giphy-message { margin-top: 8px; height: 278px; overflow: hidden; }
.giphy-message .giphy-preview { height: 220px; }
.giphy-message .giphy-preview img { max-height: 220px; object-fit: contain; }
.giphy-credit img { display: block; width: 200px; max-width: 100%; height: auto; }
.giphy-message .message-image { display: block; }
#giphy-more { margin-top: 12px; }
dialog:has(#giphy-results) { display: flex; flex-direction: column; overflow: hidden; }
dialog:not([open]):has(#giphy-results) { display: none; }
#giphy-search, #giphy-status, #giphy-credit { flex-shrink: 0; }
#giphy-results { min-height: 0; height: min(400px, 45dvh); overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
#giphy-results .giphy-gif:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.giphy-preview { max-width: 100%; overflow: hidden; }
.image-draft .giphy-preview { width: 96px; flex-shrink: 0; }
.image-draft .giphy-preview img { width: 100%; height: auto; }
#composer {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 6px #00000030;
  background: var(--surface);
  overflow: hidden;
  transition: border 0.15s;
  border-color: var(--border-strong);
}
#composer:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px #dfbd6924;
}
#message-input {
  display: block;
  width: 100%;
  border: 0 !important;
  padding: 16px 17px 5px;
  min-height: 68px;
  max-height: 180px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  box-shadow: none !important;
  background: transparent;
}
#message-input::placeholder {
  color: var(--muted);
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px 10px 16px;
}
.composer-toolbar > span {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.composer-toolbar > span > .icon {
  width: 12px;
  height: 12px;
}
.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 29px;
  background: var(--accent);
  border: 1px solid var(--line);
  color: var(--on-accent);
  border-radius: 6px;
  border-color: var(--accent);
}
.send-button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
.send-button .icon {
  width: 15px;
  height: 15px;
}
.composer-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 8px;
}
.composer-hint b {
  font-weight: 500;
  color: var(--muted);
}
.hint-dot {
  margin: 0 5px;
}
#connection-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: var(--muted);
}
#connection-status .status-dot {
  width: 4px;
  height: 4px;
}
.details {
  border-left: 1px solid var(--line);
  padding: 26px 22px 19px;
  background: var(--surface);
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 31px;
}
.details-heading .icon-button {
  width: 20px;
  height: 20px;
}
.details-heading .icon {
  width: 14px;
  height: 14px;
}
.detail-room-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
  border-color: var(--accent-border);
}
.detail-room-symbol > .icon {
  width: 28px;
  height: 28px;
}
.details > h2 {
  font-size: 20px;
  font-weight: 550;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.detail-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
}
.detail-tag .icon {
  width: 11px;
  height: 11px;
}
.detail-section {
  padding-top: 26px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.detail-section > .eyebrow,
.detail-section-heading > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.detail-section > p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.number-label {
  font-size: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-color: var(--accent-border);
}
.member-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 18px 0 12px;
}
.member {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member > div {
  min-width: 0;
}
.member strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 550;
  color: var(--ink);
}
.member small {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.member > div > span {
  font-size: 8px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.member > .status-dot {
  margin-left: auto;
  width: 4px;
  height: 4px;
}
.detail-section > .text-button {
  font-size: 10px;
  color: var(--accent);
}
.detail-call-card {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 15px;
}
.call-card-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 14px;
  border-color: var(--accent-border);
}
.call-card-icon > .icon {
  width: 17px;
  height: 17px;
}
.detail-call-card > strong {
  font-size: 10px;
  font-weight: 550;
  color: var(--ink);
}
.detail-call-card > p {
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted);
  margin: 8px 0 9px;
}
.detail-call-card > .text-button {
  font-size: 9px;
  color: var(--accent);
}
.detail-call-card > .text-button .icon {
  width: 12px;
  height: 12px;
}
.detail-bottom {
  padding-top: 30px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  color: var(--muted);
}
.detail-bottom > .brand-mark {
  width: 20px;
  height: 20px;
  gap: 2px;
  background: transparent;
  border-radius: 0;
  transform: none;
}
.workspace.hide-details {
  grid-template-columns: 72px 246px minmax(350px, 1fr);
}
.workspace.hide-details > .details {
  display: none;
}
.workspace.hide-details .details-toggle {
  display: flex;
}
.mobile-only {
  display: none;
}
.search-context {
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 30px;
  color: var(--accent);
  font-size: 11px;
  border-color: var(--accent-border);
}
.search-context > .icon {
  width: 14px;
  height: 14px;
}
.search-context > .text-button {
  margin-left: auto;
  font-size: 10px;
}
.history-button {
  display: block;
  margin: 12px auto 4px;
  font-size: 10px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.loading-messages {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 25px;
}
.new-messages {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 15px #00000030;
  z-index: 3;
  border-color: var(--accent);
}
.new-messages:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--on-accent);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  width: min(510px, calc(100vw - 32px));
  padding: 28px;
  max-height: calc(100dvh - 48px);
  color: var(--ink);
  box-shadow: 0 25px 100px #00000030;
}
dialog::backdrop {
  background: #00000099;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: space-between;
}
.dialog-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.dialog-heading h2 {
  font-size: 25px;
  line-height: 1.2;
  margin-top: 13px;
}
.dialog-description {
  font-size: 12px;
  margin: 15px 0 24px;
}
.privacy-options {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}
.privacy-options legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.privacy-options > label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 9px;
  cursor: pointer;
  background: var(--surface);
  border-color: var(--border-strong);
}
.privacy-options label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}
.privacy-options input {
  accent-color: var(--accent);
}
.privacy-options strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.privacy-options small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.privacy-options .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.people-search {
  padding: 13px 12px;
}
.people-search input {
  width: 100%;
  font-size: 12px;
}
.people-results {
  margin-top: 15px;
}
.person-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  text-align: left;
  border-radius: 5px;
}
.person-option:hover {
  background: var(--raised);
  color: var(--ink);
}
.person-option > span:not(.avatar) {
  min-width: 0;
}
.person-option strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.person-option small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.person-option > .icon {
  margin-left: auto;
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.empty-state {
  padding: 30px 10px;
  text-align: center;
}
.empty-state > .icon {
  width: 33px;
  height: 33px;
  color: var(--muted);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 19px;
  font-weight: 500;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 18px;
}
.invite-result {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  margin-top: 20px;
  color: var(--accent);
  border-color: var(--accent-border);
}
.success-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.success-label > .icon {
  width: 16px;
  height: 16px;
}
.invite-result p {
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.invite-result .field {
  font-size: 10px;
}
.invite-result input {
  font-size: 10px;
}
.invite-result small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 12px;
  line-height: 1.7;
}
.discover-room {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.discover-symbol {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}
.discover-room > div {
  flex: 1;
  min-width: 0;
}
.discover-room strong {
  font-size: 12px;
}
.discover-room p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.discover-room .button {
  flex-shrink: 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: min(580px, calc(100vw - 32px));
  border-radius: 10px;
  padding: 13px 20px;
  background: var(--raised);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 8px 30px #00000030;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  border: 1px solid var(--border-strong);
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.active-call-banner,
.voice-session {
  margin: 0 28px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--muted);
}
.active-call-banner {
  font-size: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}
.active-call-banner > span:not(.pulse-dot) {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-call-banner > .button {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #dfbd6920;
  flex-shrink: 0;
}
.voice-emblem {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  border-color: var(--accent-border);
}
.voice-emblem .icon {
  width: 18px;
  height: 18px;
}
.voice-session-title {
  min-width: 0;
}
.voice-session-title > strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-session-title > span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
}
.live-badge {
  font-size: 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 3px;
  letter-spacing: 0.5px;
  margin-left: 4px;
  vertical-align: middle;
}
.call-avatars {
  display: flex;
  margin-left: auto;
  padding-right: 5px;
}
.call-avatars > span {
  position: relative;
  margin-left: -7px;
}
.call-avatars .avatar {
  border: 2px solid var(--line);
  border-color: var(--accent-soft);
}
.tiny-mic {
  position: absolute;
  bottom: -3px;
  right: -2px;
  width: 12px;
  height: 12px;
  color: var(--danger);
  background: var(--accent-soft);
  border-radius: 3px;
}
.mic-button {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--accent);
  width: 31px;
  height: 31px;
  border-color: var(--accent-border);
}
.mic-button.is-muted {
  background: var(--danger-surface);
  color: var(--danger);
  border-color: #805047;
}
.mic-button > .icon {
  width: 16px;
  height: 16px;
}
.hangup {
  display: grid;
  place-items: center;
  width: 34px;
  height: 31px;
  background: #a84238;
  color: #ffffff;
  border-radius: 6px;
  flex-shrink: 0;
}
.hangup:hover {
  background: #bf4d40;
}
.hangup .icon {
  width: 18px;
  height: 18px;
}
@media (min-width: 1700px) {
  :root {
    font-size: 15px;
  }
  .workspace {
    grid-template-columns: 80px 275px minmax(400px, 1fr) 300px;
  }
  .conversation-header {
    padding-left: 36px;
    padding-right: 36px;
  }
  .room-welcome {
    padding: 60px 45px 35px;
  }
  .message {
    padding-left: 44px;
    padding-right: 44px;
  }
  .message-content > p {
    font-size: 14px;
    color: var(--ink);
  }
  .message-meta strong {
    font-size: 12px;
    color: var(--ink);
  }
  .composer-wrap {
    padding-left: 38px;
    padding-right: 38px;
  }
  .room-link {
    font-size: 13px;
  }
  .details {
    padding-left: 28px;
    padding-right: 28px;
  }
  .room-title h1 {
    font-size: 19px;
  }
  .detail-section > p,
  .detail-call-card > p {
    font-size: 11px;
  }
}
@media (max-width: 1250px) {
  .workspace {
    grid-template-columns: 64px 224px minmax(350px, 1fr);
  }
  .details {
    display: none;
  }
  .workspace.show-details .details {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 266px;
    z-index: 5;
    box-shadow: -15px 0 50px #00000030;
  }
  .details-toggle {
    display: flex;
  }
  .rail {
    padding-left: 4px;
    padding-right: 4px;
    background: var(--background);
    color: var(--ink);
  }
  .workspace.hide-details {
    grid-template-columns: 64px 224px minmax(350px, 1fr);
  }
  .conversation-header {
    padding: 20px 22px;
  }
  .header-actions {
    gap: 8px;
  }
  .room-title h1 {
    max-width: 200px;
  }
}
@media (max-width: 900px) {
  .auth-story {
    padding: 35px;
    background: var(--background);
    color: var(--ink);
  }
  .auth-form-wrap {
    padding: 45px 30px;
    background: var(--background);
  }
  .auth-copy h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .auth-copy > p {
    font-size: 13px;
  }
  .conversation-art {
    padding: 16px;
  }
  .auth-story footer {
    font-size: 8px;
  }
  .workspace,
  .workspace.hide-details {
    grid-template-columns: 60px 195px minmax(300px, 1fr);
  }
  .workspace-brand {
    padding: 25px 13px;
  }
  .workspace-brand strong {
    font-size: 12px;
  }
  .workspace-brand > div > span:not(.workspace-symbol > span) {
    font-size: 8px;
  }
  .sidebar-scroll {
    padding: 0 8px;
  }
  .sidebar-footer {
    padding: 18px 12px;
  }
  .sidebar-top {
    padding-left: 8px;
  }
  .room-link {
    font-size: 11px;
    padding-left: 10px;
  }
  .section-label {
    font-size: 9px;
  }
  .room-title h1 {
    font-size: 15px;
    max-width: 130px;
  }
  .header-actions .search-box {
    border: 0;
    background: transparent;
    padding: 5px;
  }
  .header-actions .search-box input {
    width: 70px;
    font-size: 9px;
  }
  .search-box kbd {
    display: none;
  }
  .call-button {
    min-width: 30px;
    padding: 8px;
    color: var(--accent);
  }
  .call-button > span {
    display: none;
  }
  .conversation-header {
    gap: 8px;
    padding: 18px;
    min-height: 83px;
  }
  .room-title {
    gap: 9px;
  }
  .header-room-icon {
    width: 31px;
    height: 31px;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .room-welcome {
    padding: 35px 25px 25px;
  }
  .room-welcome h2 {
    font-size: 24px;
  }
  .message {
    padding-left: 24px;
    padding-right: 24px;
  }
  .composer-wrap {
    padding-left: 19px;
    padding-right: 19px;
  }
  .active-call-banner,
  .voice-session {
    margin-left: 19px;
    margin-right: 19px;
  }
  .call-avatars {
    display: none;
  }
  .voice-session-title {
    margin-right: auto;
  }
}
@media (max-width: 650px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 25px 25px 0;
    background: var(--background);
    color: var(--ink);
  }
  .auth-story > .brand {
    font-size: 19px;
  }
  .auth-copy {
    padding: 28px 0 32px;
  }
  .auth-copy .pill {
    font-size: 7px;
    padding: 8px;
  }
  .auth-copy h1 {
    font-size: 38px;
    margin: 20px 0 12px;
    letter-spacing: -1.6px;
  }
  .auth-copy h1 br {
    display: none;
  }
  .auth-copy h1 em {
    letter-spacing: -1.5px;
    color: var(--accent);
  }
  .auth-copy > p {
    font-size: 12px;
  }
  .auth-copy > p br {
    display: none;
  }
  .conversation-art,
  .auth-story footer {
    display: none;
  }
  .auth-form-wrap {
    padding: 35px 27px 60px;
    justify-content: flex-start;
    background: var(--background);
  }
  .auth-form {
    max-width: 430px;
  }
  .auth-form h2 {
    font-size: 27px;
  }
  .auth-form > .muted {
    margin-bottom: 24px;
  }
  .auth-bottom {
    bottom: 20px;
  }
  .workspace,
  .workspace.hide-details {
    display: flex;
  }
  .rail {
    width: 52px;
    flex-shrink: 0;
    padding-top: 19px;
    gap: 14px;
    background: var(--background);
    color: var(--ink);
  }
  .rail .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 0;
    gap: 3px;
    background: transparent;
    transform: none;
  }
  .rail-brand {
    margin-bottom: 19px;
  }
  .rail-item {
    width: 44px;
    height: 48px;
  }
  .rail-item > span {
    font-size: 7px;
  }
  .rail-item > .icon {
    width: 20px;
    height: 20px;
  }
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    position: absolute;
    left: 52px;
    top: 0;
    bottom: 0;
    width: 246px;
    z-index: 10;
    box-shadow: 20px 0 60px #00000030;
  }
  .workspace-brand {
    padding: 23px 17px;
  }
  .workspace-brand .icon-button {
    margin-left: auto;
  }
  .workspace-brand strong {
    font-size: 14px;
  }
  .workspace-brand > div > span:not(.workspace-symbol > span) {
    font-size: 9px;
  }
  .sidebar-scroll {
    padding: 0 12px;
  }
  .sidebar-footer {
    padding: 20px;
  }
  .room-link {
    font-size: 12px;
  }
  .section-label {
    font-size: 10px;
  }
  .conversation {
    flex: 1;
    min-width: 0;
    background: var(--background);
  }
  .mobile-only {
    display: flex;
  }
  .conversation-header {
    padding: 15px 10px;
    min-height: 74px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .room-title {
    gap: 7px;
    flex: 1;
  }
  .header-room-icon {
    display: none;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .room-title h1 {
    font-size: 15px;
    max-width: 160px;
  }
  .room-title > div > span {
    font-size: 8px;
    margin-top: 5px;
  }
  .header-actions {
    gap: 3px;
  }
  .header-actions .search-box {
    display: none;
  }
  .header-actions .details-toggle {
    width: 27px;
  }
  .call-button {
    border: 0;
    background: none;
    color: var(--accent);
    padding: 5px;
  }
  .room-welcome {
    padding: 34px 19px 20px;
  }
  .welcome-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .room-welcome h2 {
    font-size: 23px;
    line-height: 1.3;
  }
  .room-welcome > .eyebrow {
    font-size: 7px;
  }
  .room-welcome > p {
    font-size: 11px;
  }
  .welcome-actions {
    gap: 10px;
  }
  .welcome-actions > span {
    font-size: 9px;
  }
  .welcome-actions > .text-button {
    font-size: 9px;
    color: var(--accent);
  }
  .message {
    gap: 10px;
    padding: 10px 15px;
  }
  .message > .avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 9px;
  }
  .message-content > p {
    font-size: 12px;
    line-height: 1.75;
    color: var(--ink);
  }
  .message-meta {
    gap: 5px;
  }
  .message-meta strong {
    font-size: 10px;
    color: var(--ink);
  }
  .message-meta time {
    font-size: 8px;
  }
  .message-meta .you-tag {
    font-size: 7px;
  }
  .date-divider {
    padding: 12px 15px;
    font-size: 8px;
  }
  .first-message {
    font-size: 9px;
    line-height: 1.8;
    padding: 22px 19px;
    text-align: center;
  }
  .composer-wrap {
    padding: 8px 11px 12px;
  }
  #message-input {
    padding: 12px 12px 4px;
    min-height: 65px;
    font-size: 12px;
    color: var(--ink);
    background: transparent;
  }
  .composer-toolbar {
    padding: 5px 8px 8px 12px;
  }
  .composer-toolbar > span {
    font-size: 8px;
  }
  .composer-hint {
    font-size: 7px;
  }
  .composer-hint > span:first-child {
    max-width: 75%;
    line-height: 1.6;
  }
  #connection-status {
    font-size: 7px;
  }
  .composer-toolbar > span > .icon {
    width: 10px;
    height: 10px;
  }
  .active-call-banner,
  .voice-session {
    margin: 0 11px 3px;
    padding: 10px;
    gap: 8px;
  }
  .voice-emblem {
    display: none;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .voice-session-title > strong {
    font-size: 10px;
  }
  .voice-session-title > span {
    font-size: 8px;
  }
  .voice-session .live-badge {
    display: none;
  }
  .voice-session-title {
    max-width: calc(100% - 75px);
  }
  .active-call-banner {
    font-size: 9px;
    flex-wrap: wrap;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .active-call-banner > span:not(.pulse-dot) {
    display: none;
  }
  .active-call-banner > .button {
    font-size: 9px;
    padding: 6px 8px;
  }
  .details {
    width: 260px !important;
  }
  .new-messages {
    font-size: 9px !important;
    bottom: 155px;
    white-space: nowrap;
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
  }
  dialog {
    padding: 23px;
    color: var(--ink);
  }
  .dialog-heading h2 {
    font-size: 24px;
  }
  .dialog-description {
    font-size: 12px;
  }
  .dialog-heading .eyebrow {
    font-size: 7px;
  }
  .privacy-options small {
    font-size: 9px;
  }
  .search-context {
    padding: 8px 14px;
    font-size: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .search-context > .text-button {
    font-size: 9px;
  }
  .search-context > .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable reading sizes and contrast for sustained team conversations. */
.room-link {
  font-size: 13px;
  color: var(--muted);
}
.section-label {
  font-size: 11px;
}
.nav-discover {
  font-size: 12px;
  color: var(--muted);
}
.sidebar-empty {
  font-size: 11px;
  color: var(--muted);
}
.invite-card strong {
  font-size: 12px;
}
.invite-card p {
  font-size: 11px;
  color: var(--muted);
}
.invite-button {
  font-size: 11px;
}
.workspace-presence {
  font-size: 10px;
  color: var(--muted);
}
.room-title > div > span {
  font-size: 11px;
  color: var(--muted);
}
.room-welcome > p {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
}
.room-welcome > .eyebrow {
  font-size: 9px;
  color: var(--muted);
}
.welcome-actions > span,
.welcome-actions > .text-button {
  font-size: 11px;
  color: var(--muted);
}
.message-meta strong {
  font-size: 13px;
  color: var(--ink);
}
.message-meta time {
  font-size: 10px;
  color: var(--muted);
}
.message-content > p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
}
.message {
  padding-bottom: 16px;
}
#message-input {
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
#message-input::placeholder {
  color: var(--muted);
}
.composer-toolbar > span {
  font-size: 10px;
  color: var(--muted);
}
.detail-section > p {
  font-size: 12px;
  color: var(--muted);
}
.member strong {
  font-size: 12px;
  color: var(--ink);
}
.member > div > span {
  font-size: 10px;
  color: var(--muted);
}
.detail-call-card > strong {
  font-size: 12px;
  color: var(--ink);
}
.detail-call-card > p {
  font-size: 11px;
  color: var(--muted);
}
.detail-call-card > .text-button {
  font-size: 10px;
  color: var(--accent);
}
.detail-section > .text-button {
  font-size: 11px;
  color: var(--accent);
}
.search-box input {
  font-size: 11px;
  color: var(--ink);
}
.call-button {
  font-size: 11px;
  color: var(--accent);
}
@media (max-width: 900px) and (min-width: 651px) {
  .room-link {
    font-size: 12px;
  }
  .section-label {
    font-size: 10px;
  }
  .room-title > div > span {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  .room-title > div > span {
    font-size: 9px;
  }
  .room-welcome > p {
    font-size: 12px;
  }
  .message-content > p {
    font-size: 13px;
    color: var(--ink);
  }
  .message-meta strong {
    font-size: 11px;
    color: var(--ink);
  }
  .message-meta time {
    font-size: 9px;
  }
  .composer-toolbar > span {
    font-size: 9px;
  }
  .room-welcome {
    padding-top: 28px;
  }
  #message-input {
    font-size: 16px;
    color: var(--ink);
    background: transparent;
  }
}

.field input {
  color: var(--ink);
  border-color: var(--border-strong);
}

.room-link.selected:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.voice-session {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px #dfbd6924;
}

textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px #dfbd6924;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.image-draft { display:flex; align-items:center; gap:12px; padding:12px; }
.image-draft img { width:96px; height:72px; object-fit:contain; border-radius:8px; }
.image-draft span { overflow-wrap:anywhere; min-width:0; }
.message-image { display:block; max-width:100%; width:auto; max-height:360px; border-radius:10px; margin-top:8px; }
.image-preview-open { display:block; padding:0; margin:8px 0 0; max-width:100%; border:0; border-radius:10px; background:var(--raised); color:var(--ink); cursor:zoom-in; }
.image-preview-open .message-image { margin:0; object-fit:contain; }
.image-preview-error { display:block; padding:18px; }
.image-lightbox { width:min(1200px,calc(100vw - 24px)); height:calc(100dvh - 32px); max-height:none; padding:16px; }
.image-lightbox[open] { display:flex; flex-direction:column; gap:12px; }
.image-lightbox header { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.image-lightbox header strong { flex:1 1 180px; overflow-wrap:anywhere; }
.image-lightbox-stage { flex:1; min-height:0; overflow:auto; text-align:center; background:#101110; border-radius:12px; }
.image-lightbox-stage img { width:100%; height:100%; object-fit:contain; }
.image-lightbox-stage.is-zoomed img { width:auto; height:auto; max-width:none; max-height:none; }

.message-file { display: block; padding: 12px; margin-top: 8px; border: 1px solid currentColor; border-radius: 8px; overflow-wrap: anywhere; }

.file-drop-overlay {
  position: absolute;
  inset: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 3px dashed var(--accent);
  border-radius: 12px;
  background: var(--background);
  color: var(--accent);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  pointer-events: none;
}
#image-preview { max-height: 220px; overflow-y: auto; }

#upload-progress { padding: 8px 12px 12px; font-size: 13px; overflow-wrap: anywhere; }
#upload-progress progress { display: block; width: 100%; height: 12px; margin-top: 8px; accent-color: var(--accent); }
/* Company selection uses the same controls on desktop and narrow screens. */
.company-list { display: grid; gap: 10px; margin-bottom: 24px; }
.company-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; white-space: normal; text-align: left; }
.company-choice span { font-size: 12px; opacity: .75; }
.company-switch { margin: 0 20px 16px; }
.auth-form > a.text-button { display: block; margin-top: 12px; }
#company-join { margin-top: 24px; }
/* Voice messages */
.voice-message-dialog { width: min(520px, calc(100vw - 32px)); padding: 24px; border: 1px solid #464a3b; border-radius: 20px; background: #1c1f1a; color: #f1f2eb; }
.voice-message-dialog::backdrop { background: #0009; }
.voice-message-dialog h2 { margin-top: 0; }
.voice-destination { overflow-wrap: anywhere; color: #b8c0ac; }
.voice-timer { font-size: 28px; font-variant-numeric: tabular-nums; }
.voice-message-dialog audio, .voice-message-dialog progress { width: 100%; margin: 8px 0 16px; }
.voice-record-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.voice-record-actions button { min-height: 44px; }
.message-voice { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-width: 100%; }
.message-voice span { font-size: 13px; }
.message-voice audio { width: min(320px, 100%); max-width: 100%; }
@media (max-width: 480px) { .composer-toolbar > span { display: none; } }
.voice-transcription { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 620px; border-left: 2px solid var(--accent); padding: 4px 12px; margin: 4px 0; overflow-wrap: anywhere; }
.voice-transcription strong { font-size: 13px; font-weight: 600; }
.voice-transcription small { font-size: 12px; color: var(--muted); }
.voice-transcription .voice-transcript-text { white-space: pre-wrap; margin: 4px 0; line-height: 1.6; }
.voice-transcribe { min-height: 44px; white-space: normal; text-align: left; }
.voice-transcribe:disabled { opacity: .7; cursor: wait; }
/* Private call recordings */
.call-recording-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 18px; background: #251e19; }
.recording-indicator { color: #ffb4a9; font-size: 13px; flex: 1 1 200px; }
.call-recording-card { padding: 16px 0; border-bottom: 1px solid var(--border, #383833); }
.call-recording-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.saved-call { position: relative; margin: 10px 18px; padding: 14px 16px; border: 1px solid var(--border, #383833); border-radius: 14px; background: #22221b; }
.saved-call-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; }
.saved-call-heading { padding-right: 42px; min-height: 32px; }
.saved-call-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.saved-call-heading > span, .saved-call p { font-size: 12px; }
.saved-call p { margin: 6px 0 10px; }
.saved-call .saved-call-notice { margin: 10px 0 0; }
@media (max-width: 600px) { .saved-call { margin: 8px; padding: 10px 12px; } .saved-call .button { min-height: 44px; } }

.thread-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 14px; }
.thread-label { margin-top: 24px; }
.message-thread-link { margin-top: 10px; display: block; color: var(--accent); }
.thread-source { margin: 24px 28px 16px; padding: 18px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); }
.thread-source .message-meta { margin-top: 12px; flex-wrap: wrap; }
.thread-source-body, .thread-source-quote { white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-source-media { display: grid; gap: 10px; min-width: 0; }
.thread-source-media audio { max-width: 100%; }
@media (max-width: 650px) { .thread-source { margin: 16px 10px; padding: 14px; } }
.thread-list .room-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 650px) {
  .conversation-header .header-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .conversation-header .header-actions .icon-button { width: 36px; min-height: 36px; }
}
#call-recordings audio { display: block; width: 100%; margin: 16px 0; }
#call-recordings li { margin: 8px 0; }
.call-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
:root .chat-modes { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
:root .contact-notice { padding: 12px 16px; border: 1px solid #625735; border-radius: 12px; margin-bottom: 10px; background: #25241d; }
:root .contact-notice p { margin: 0 0 10px; line-height: 1.5; }
:root .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
