:root {
  --link: var(--accent);
  --focus: var(--accent);
  --soft: color-mix(in srgb, var(--accent) 9%, transparent);
}
.message-text {
  font-size: var(--chat-font-size, 15px);
}
.avatar:not(.system-avatar):not(:has(> img)) {
  background-color: var(--avatar-fallback);
}
.avatar:has(> img) {
  background: transparent !important;
}
:root
  :is(
    .user-dock .dock-action[aria-pressed="true"],
    button.icon-button.sharing,
    .voice-connection > .voice-tools > button.sharing
  ) {
  color: var(--accent);
  background-color: var(--soft);
}
.settings-screen .settings-content .settings-option,
.settings-screen .platform-scroll > .platform-card {
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
  background: var(--panel);
}
.settings-screen .feature-settings-group {
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 10px;
  padding: 20px;
  background: var(--panel);
}
.date-separator > span,
.date-divider > span {
  border-radius: 12px;
  padding: 2px 10px;
  background: var(--panel);
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 13%, transparent),
    transparent 65%
  );
}
.feature-file-button input::file-selector-button {
  background: var(--panel2);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  margin-right: 12px;
}
.message:has(> .feature-unread-divider) {
  padding-top: 26px !important;
  margin-top: 8px !important;
}
.feature-unread-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--accent);
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  pointer-events: none;
}
.feature-unread-divider::before,
.feature-unread-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--accent);
}
.feature-quote {
  border-left: 3px solid var(--muted);
  margin: 5px 0;
  padding: 2px 12px;
  color: var(--text);
  white-space: pre-wrap;
}
:root[data-chat-density="compact"] .message {
  padding-top: 3px;
  padding-bottom: 3px;
  margin-top: 2px;
}
:root[data-chat-density="compact"] .message-content {
  line-height: 1.35;
}
.network-canvas {
  opacity: 0.45;
  mask-image: linear-gradient(#000 25%, #0003);
}
.feature-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.feature-button {
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  background: var(--panel2);
  color: var(--text);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.3;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.feature-button:hover {
  background: var(--hover);
}
.feature-header-actions > .feature-button {
  padding: 5px 9px;
  font-size: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.feature-header-actions > .feature-button:first-child {
  color: var(--green);
}
.feature-header-menu {
  position: absolute;
  top: 38px;
  right: 0;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0007;
  background: var(--panel2);
  z-index: 60;
  width: 220px;
}
.feature-header-menu > button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 5px;
}
.feature-header-menu > button:hover {
  background: var(--hover);
}
.yarp-server-menu {
  position: fixed;
  z-index: 1080;
  width: min(310px, calc(100vw - 16px));
  overflow: auto;
  padding: 6px;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  border-radius: 12px;
  box-shadow: 0 10px 30px #0007;
  text-align: left;
  -webkit-app-region: no-drag;
}
.yarp-server-menu-title {
  overflow: hidden;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yarp-server-menu-group {
  display: grid;
  gap: 1px;
  padding: 3px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
}
.yarp-server-menu button {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 9px;
  min-height: 31px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}
.yarp-server-menu button:disabled {
  opacity: 0.42;
}
.yarp-server-menu button:not(:disabled):is(:hover, :focus-visible) {
  background: var(--hover);
  outline: none;
}
.yarp-server-menu button.danger {
  color: #fd797f;
}
.yarp-server-menu svg,
.yarp-category-heading svg {
  display: block;
  width: 15px;
  height: 15px;
}
.yarp-server-menu-icon,
.yarp-server-menu-label small,
.yarp-menu-arrow {
  color: var(--muted);
}
.yarp-menu-arrow {
  font-size: 20px;
  line-height: 15px;
}
.yarp-server-menu-label small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}
.yarp-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 5px 4px 2px;
  padding-left: 6px;
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.yarp-category-heading > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yarp-category-heading button {
  padding: 3px;
  flex: 0 0 auto;
  background: transparent;
  color: inherit;
}
.feature-dialog label.yarp-server-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
}
.yarp-server-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.yarp-muted-list {
  display: grid;
  gap: 3px;
}
.yarp-invite-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}
.yarp-invite-code code {
  overflow-wrap: anywhere;
}
.yarp-invite-form {
  margin: 16px 0;
}
.yarp-invite-form h3 {
  margin: 0;
}
.yarp-scheduled-form textarea {
  min-height: 100px;
}
.yarp-scheduled-list article {
  border-bottom: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  padding: 12px 0;
}
.yarp-scheduled-list article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.yarp-voice-allowlist {
  max-height: 190px;
  overflow: auto;
}
.yarp-update-transfer {
  margin: 6px 0 0;
}
.feature-backdrop {
  position: fixed;
  inset: var(--desktop-titlebar-height, 0px) 0 0;
  z-index: 1100;
  background: #0008;
  display: grid;
  place-items: center;
  padding: 24px;
}
.feature-dialog {
  background: var(--bg);
  color: var(--text);
  width: 480px;
  max-width: 100%;
  max-height: 90dvh;
  overflow: auto;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  border-radius: 12px;
  box-shadow: 0 18px 70px #0006;
  text-align: left;
  line-height: 1.5;
}
.feature-dialog.wide {
  width: 780px;
}
.feature-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.feature-dialog h2 {
  margin: 0;
  font-size: 22px;
}
.feature-dialog p {
  margin: 12px 0;
}
.feature-hint {
  font-size: 12px !important;
  color: var(--muted);
  line-height: 1.6;
}
.feature-dialog label,
.feature-settings-group label {
  display: block;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  font-size: 13px;
}
.feature-dialog :is(input, select, textarea) {
  margin-top: 6px;
}
.feature-dialog footer,
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.feature-dialog textarea {
  min-height: 180px;
}
.feature-form {
  display: grid;
  gap: 14px;
}
.feature-form label {
  margin: 0;
}
.feature-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feature-search-results > button {
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.5;
}
.feature-search-results > button.selected,
.feature-search-results > button:hover {
  background: var(--hover);
}
.feature-search-results strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.feature-search-results small {
  color: var(--muted);
}
.feature-note-list > article {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-note-list > article > button:first-child {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.feature-note-list p {
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feature-settings-group {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
}
.feature-settings-group h3 {
  margin-top: 20px !important;
}
.feature-settings-group p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.feature-settings-group .feature-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 28px;
}
.feature-color-options > button:not(.feature-button) {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
}
.feature-color-options [aria-pressed="true"] {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.feature-file-button {
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.feature-file-button input {
  width: auto;
  max-width: 100%;
}
.feature-backups > div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.feature-backups > div > div {
  min-width: 0;
  flex: 1;
}
.feature-backups small {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.party-card {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 18px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 10px;
}
.party-card > strong {
  font-size: 17px;
}
.party-card > span {
  color: var(--muted);
  font-size: 13px;
}
.party-card p {
  margin: 0;
  font-size: 14px;
}
.party-card .feature-actions {
  justify-content: flex-start;
  margin-top: 6px;
}
.message-link-previews {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
}
.link-preview-card {
  display: flex;
  max-width: 520px;
  gap: 14px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 14px;
  border-radius: 5px;
}
.link-preview-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
}
.link-preview-card > div {
  min-width: 0;
}
.link-preview-card small {
  color: var(--muted);
  display: block;
}
.link-preview-card a {
  display: block;
  color: var(--link);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.link-preview-card p {
  font-size: 13px;
  margin: 6px 0 0;
  color: var(--muted);
}
.dm-live-meta {
  display: block;
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
}
.dm-link > div:has(.dm-live-meta) > span {
  display: none;
}
.feature-capture-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.feature-capture-sources > button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  background: var(--panel);
  border-radius: 8px;
  text-align: left;
}
.feature-capture-sources img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #111;
}
.feature-capture-sources span {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.feature-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-video-grid figure {
  min-width: 0;
  margin: 0;
}
.feature-video-grid video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #101113;
  object-fit: contain;
  border-radius: 8px;
}
.feature-video-grid figcaption {
  font-size: 12px;
  color: var(--muted);
}
.avatar[data-avatar-frame]:not([data-avatar-frame="none"]) {
  outline: 2px solid var(--frame-color, #aa7eff);
  outline-offset: 2px;
  box-shadow: 0 0 12px
    color-mix(in srgb, var(--frame-color, #aa7eff) 30%, transparent);
}
[data-avatar-frame="neon"],
[data-profile-frame="neon"] {
  --frame-color: #38f1d1;
}
[data-avatar-frame="ember"],
[data-profile-frame="ember"] {
  --frame-color: #ff724f;
}
[data-avatar-frame="ocean"],
[data-profile-frame="ocean"] {
  --frame-color: #40aaff;
}
[data-avatar-frame="forest"],
[data-profile-frame="forest"] {
  --frame-color: #5dd68a;
}
[data-avatar-frame="rose"],
[data-profile-frame="rose"] {
  --frame-color: #f27daa;
}
[data-avatar-frame="gold"],
[data-profile-frame="gold"] {
  --frame-color: #f4cb67;
}
[data-avatar-frame="violet"],
[data-profile-frame="violet"] {
  --frame-color: #b08afa;
}
[data-profile-frame]:not([data-profile-frame="none"]) {
  outline: 2px solid var(--frame-color, #aa7eff);
  outline-offset: 0;
}
.feature-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.message.mentions-you {
  background: color-mix(in srgb, #f0b232 9%, transparent);
  border-left: 2px solid #f0b232;
}
.message.mentions-you:hover {
  background: color-mix(in srgb, #f0b232 16%, transparent);
}
.owner-label {
  border-radius: 20px;
  padding: 2px 7px;
}
.message-date {
  border-radius: 4px;
}
.message-text a {
  color: var(--link);
}
.calendar-toolbar,
.calendar-filters,
.calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.calendar-toolbar strong {
  min-width: 10ch;
  text-align: center;
}
.calendar-filters {
  padding: 14px 0;
  border-bottom: 1px solid var(--line, #ffffff20);
}
.calendar-filters select {
  width: min(230px, 100%);
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line, #ffffff20);
}
.calendar-filters button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--soft);
}
.calendar-list h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}
.calendar-list h3::first-letter {
  text-transform: uppercase;
}
.calendar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--line, #ffffff20);
  background: var(--panel);
}
.calendar-item-main {
  min-width: 0;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.calendar-time,
.calendar-item-main small,
.calendar-item-main p {
  color: var(--muted);
  font-size: 12px;
}
.calendar-item-main p {
  margin: 0;
  white-space: pre-wrap;
}
.calendar-actions {
  justify-content: flex-end;
}
.calendar-error {
  color: var(--text);
}
@media (max-width: 1024px) {
  .chat-header .header-search {
    display: none;
  }
  .member-panel,
  .members-panel {
    display: none !important;
  }
  .feature-header-actions {
    gap: 1px;
  }
  .feature-header-actions > .feature-button {
    padding: 5px;
  }
  .feature-header-actions > .feature-calendar-trigger {
    display: none;
  }
}
@media (max-width: 600px) {
  .feature-backdrop {
    padding: 12px;
  }
  .feature-dialog {
    padding: 18px;
  }
  .feature-video-grid {
    grid-template-columns: 1fr;
  }
  .link-preview-card img {
    width: 64px;
    height: 64px;
  }
  .feature-backups > div {
    flex-wrap: wrap;
  }
  .calendar-card {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  :root[data-animations="true"]
    :is(
      .feature-dialog,
      .mini-profile,
      .notification-window,
      .feature-header-menu,
      .composer-suggestions
    ) {
    animation: feature-enter 140ms ease-out;
  }
  :root[data-animations="true"] .feature-backdrop {
    animation: feature-fade 100ms ease-out;
  }
  :root[data-animations="true"]
    :is(.feature-button, .send-button, .icon-button) {
    transition:
      background-color 120ms ease-out,
      color 120ms ease-out,
      transform 100ms ease-out;
  }
  :root[data-animations="true"]
    :is(.feature-button, .send-button, .icon-button):not(:disabled):active {
    transform: scale(0.96);
  }
  @keyframes feature-enter {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes feature-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
:root[data-animations="false"]
  :is(
    .feature-dialog,
    .feature-backdrop,
    .feature-header-menu,
    .feature-button
  ) {
  animation: none;
  transition: none;
}
:root[data-gaming-plus="true"]
  :is(.feature-button, .send-button, .icon-button):active {
  transform: none;
}
.yarp-compose-options {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
}
.yarp-compose-trigger {
  font-size: 22px;
  line-height: 1;
}
.yarp-compose-menu {
  position: absolute;
  z-index: 31;
  bottom: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 5px;
  background: var(--panel, var(--bg));
  border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
  border-radius: 8px;
  box-shadow: 0 8px 24px #0006;
}
.yarp-compose-menu button {
  padding: 8px 10px;
  border-radius: 5px;
  text-align: left;
  line-height: 1.3;
}
.yarp-compose-menu button:hover,
.yarp-compose-menu button:focus-visible,
.yarp-spoiler-active,
.yarp-media-spoiler:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}
.yarp-spoiler-active {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.yarp-media-spoiler {
  display: block;
  width: min(280px, 100%);
  min-height: 78px;
  padding: 12px 18px;
  margin-top: 5px;
  border-radius: 8px;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--text) 24%, transparent);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  color: var(--text);
}
.yarp-checklist {
  display: grid;
  gap: 5px;
  width: min(380px, 100%);
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.yarp-checklist-title,
.yarp-audio-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.yarp-checklist-title small {
  white-space: nowrap;
}
.yarp-checklist small {
  color: var(--muted);
}
.yarp-checklist label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.yarp-checklist label span {
  overflow-wrap: anywhere;
}
.yarp-checklist label small {
  display: block;
}
.yarp-checklist label.done > span {
  color: var(--muted);
  text-decoration: line-through;
}
.yarp-checklist input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--accent, #db3d49);
}
.yarp-checklist-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(100px, 1fr) auto;
  align-items: end;
  gap: 6px;
}
.yarp-audio-profile {
  margin-block: 8px;
}
.yarp-audio-profile strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.yarp-audio-profiles .feature-form {
  margin-top: 14px;
  max-width: 470px;
}
.yarp-qr-entry {
  margin: 0 4px 10px;
}
.yarp-qr-code {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.yarp-qr-code img {
  background: #fff;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}
.yarp-qr-code strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}
.yarp-pip {
  display: inline-grid;
  place-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  :root[data-animations="true"]:not([data-gaming-plus="true"])
    .yarp-compose-menu {
    animation: feature-enter 120ms ease-out;
  }
  :root[data-animations="true"]:not([data-gaming-plus="true"])
    :is(.yarp-compose-menu button, .yarp-media-spoiler, .yarp-spoiler-active) {
    transition:
      background-color 120ms ease,
      color 120ms ease;
  }
  :root[data-animations="true"]:not([data-gaming-plus="true"])
    :is(.feature-button, .yarp-compose-trigger, .yarp-media-spoiler):active:not(
      :disabled
    ) {
    transform: translateY(1px);
  }
}
