* {
  box-sizing: border-box;
}

:root {
  --oxchat-muted: color-mix(in srgb, var(--skyline-color-primary) 58%, transparent);
  --oxchat-faint: color-mix(in srgb, var(--skyline-color-primary) 34%, transparent);
  --oxchat-panel: color-mix(in srgb, var(--skyline-color-surface) 88%, var(--skyline-color-background));
  --oxchat-panel-strong: color-mix(in srgb, var(--skyline-color-surface) 96%, var(--skyline-color-accent));
  --oxchat-row-hover: color-mix(in srgb, var(--skyline-color-accent) 8%, transparent);
  --oxchat-row-active: color-mix(in srgb, var(--skyline-color-accent) 14%, transparent);
  --oxchat-command-bg: color-mix(in srgb, var(--skyline-color-background) 70%, var(--skyline-color-surface));
  --oxchat-ease: cubic-bezier(.2, .8, .2, 1);
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.oxchat-app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0 0.75rem 0.75rem;
  overflow: hidden;
  color: var(--skyline-color-primary);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--skyline-color-background) 94%, var(--skyline-color-accent)) 0%,
      var(--skyline-color-background) 38%),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 31px,
      color-mix(in srgb, var(--skyline-color-border) 22%, transparent) 32px);
}

.oxchat-app-header {
  width: calc(100% + 1.5rem);
  min-height: 3rem;
  margin: 0 -0.75rem;
  padding: 0 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  border-bottom: 1px solid var(--skyline-color-border);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--skyline-color-background) 92%, var(--skyline-color-surface)),
      color-mix(in srgb, var(--skyline-color-background) 82%, transparent));
  backdrop-filter: blur(10px);
}

.oxchat-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  justify-self: start;
}

.oxchat-app-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--skyline-color-border);
  border-radius: 7px;
  color: var(--skyline-color-background);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--skyline-color-accent) 86%, white),
      var(--skyline-color-accent));
  box-shadow: 0 8px 18px var(--skyline-shadow, rgb(0 0 0 / 0.12));
}

.oxchat-app-icon-inner {
  display: block;
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow:
    0.24rem 0.24rem 0 -0.08rem currentColor,
    -0.18rem -0.18rem 0 -0.08rem currentColor;
}

.oxchat-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  flex-wrap: nowrap;
  justify-self: end;
}

.oxchat-room-switcher {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.24rem 0.32rem 0.24rem 0.52rem;
  border: 1px solid var(--skyline-color-border);
  border-radius: 7px;
  background: var(--oxchat-command-bg);
  box-shadow: 0 8px 18px var(--skyline-shadow, rgb(0 0 0 / 0.07));
}

.oxchat-room-select {
  min-width: 8.5rem;
  border: 0;
  outline: 0;
  color: var(--skyline-color-primary);
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.oxchat-theme-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.oxchat-room-shell {
  width: min(100%, 78rem);
  margin: 0 auto;
  height: 100%;
  min-height: 0;
  display: grid;
  border: 1px solid var(--skyline-color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--oxchat-panel);
  box-shadow: 0 10px 28px var(--skyline-shadow, rgb(0 0 0 / 0.10));
}

.oxchat-room-card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.oxchat-room-body {
  min-height: 0;
  height: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.oxchat-composer-section {
  min-height: 0;
  border-top: 1px solid var(--skyline-color-border);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--skyline-color-surface) 92%, transparent),
      var(--oxchat-panel));
}

.oxchat-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.oxchat-account-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.32rem 0.45rem 0.32rem 0.35rem;
  border: 1px solid var(--skyline-color-border);
  border-radius: 6px;
  background: var(--oxchat-command-bg);
  color: var(--skyline-color-primary);
  cursor: pointer;
}

.oxchat-account-identity-text {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.oxchat-account-ship {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oxchat-account-checking {
  color: var(--oxchat-muted);
  font-family: var(--skyline-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  text-transform: uppercase;
}

.oxchat-account-status {
  width: auto;
  height: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.oxchat-account-status-online-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--skyline-color-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--skyline-color-success) 16%, transparent);
}

.oxchat-account-status-offline-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--skyline-color-error) 42%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--skyline-color-error) 10%, transparent);
}

.oxchat-profile-shell,
.oxchat-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--skyline-color-primary);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--skyline-color-background) 94%, var(--skyline-color-accent)),
      var(--skyline-color-background)),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 31px,
      color-mix(in srgb, var(--skyline-color-border) 18%, transparent) 32px);
}

.oxchat-profile-card,
.oxchat-auth-card {
  border: 1px solid var(--skyline-color-border);
  border-radius: 8px;
  background: var(--oxchat-panel);
  box-shadow: 0 18px 46px var(--skyline-shadow, rgb(0 0 0 / 0.12));
}

.oxchat-profile-card {
  width: min(calc(100vw - 2rem), 34rem);
}

.oxchat-auth-card {
  width: min(calc(100vw - 2rem), 29rem);
  text-align: center;
}

.oxchat-profile-content,
.oxchat-auth-form,
.oxchat-auth-confirm-form {
  display: grid;
  gap: 1rem;
}

.oxchat-auth-form,
.oxchat-auth-confirm-form {
  margin: 0 auto;
  text-align: left;
}

.oxchat-auth-form {
  width: min(100%, 26rem);
}

.oxchat-auth-confirm-form {
  width: min(100%, 22rem);
}

.oxchat-profile-identity,
.oxchat-auth-ship-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem;
  border: 1px solid var(--skyline-color-border);
  border-radius: 7px;
  background: var(--oxchat-command-bg);
}

.oxchat-auth-ship-preview {
  justify-content: center;
  gap: 0.75rem;
  text-align: left;
}

.oxchat-profile-button-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.oxchat-auth-intro {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.oxchat-auth-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.45rem;
  padding: 0 0.55rem;
  border: 1px solid var(--skyline-color-border);
  border-radius: 5px;
  color: var(--oxchat-muted);
  background: var(--oxchat-command-bg);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--skyline-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  text-transform: uppercase;
}

.oxchat-auth-steps {
  display: grid;
  justify-self: stretch;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.oxchat-auth-step {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
  color: var(--skyline-color-primary);
}

.oxchat-auth-step-number {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--skyline-color-accent);
  color: var(--skyline-color-background);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.oxchat-auth-button-row {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.oxchat-form-error {
  min-height: 1.3rem;
  margin: 0;
  color: var(--skyline-color-error);
}

#oxchat-message-list {
  scrollbar-gutter: stable;
}

#oxchat-message-list::-webkit-scrollbar {
  width: 12px;
}

#oxchat-message-list::-webkit-scrollbar-track {
  background: transparent;
}

#oxchat-message-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--skyline-color-border) 68%, var(--skyline-color-primary));
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.oxchat-message-list {
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--skyline-color-background) 68%, transparent),
      color-mix(in srgb, var(--skyline-color-background) 86%, transparent)),
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent 31px,
      color-mix(in srgb, var(--skyline-color-border) 16%, transparent) 32px);
}

.oxchat-message-list-state {
  min-height: 14rem;
  display: grid;
  place-items: center;
  color: var(--oxchat-muted);
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--skyline-color-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--skyline-color-surface) 76%, transparent);
}

.oxchat-history-control {
  display: flex;
  justify-content: center;
  padding: 0.1rem 0 0.65rem;
}

.oxchat-day-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--oxchat-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0.4rem 0 0.25rem;
}

.oxchat-day-separator-line {
  height: 1px;
  flex: 1 1 auto;
  background: var(--skyline-color-border);
}

.oxchat-message-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 0.65rem;
  min-width: 0;
  width: 100%;
  padding: 0.42rem 0.85rem 0.26rem 1rem;
  border-radius: 6px;
  transition: background-color 160ms var(--oxchat-ease), border-color 160ms var(--oxchat-ease);
}

.oxchat-message-row--grouped {
  padding-top: 0.08rem;
  padding-bottom: 0.08rem;
}

.oxchat-message-row:hover,
.oxchat-message-row:focus-within {
  background: var(--oxchat-row-hover);
}

.oxchat-row-enter {
  animation: oxchat-row-enter 220ms var(--oxchat-ease) both;
}

@keyframes oxchat-row-enter {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.oxchat-avatar-image,
.oxchat-avatar-fallback {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--skyline-color-border);
  box-shadow: 0 7px 16px var(--skyline-shadow, rgb(0 0 0 / 0.10));
}

.oxchat-avatar-image {
  object-fit: cover;
  background: var(--skyline-color-surface);
}

.oxchat-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--skyline-color-background);
  background: var(--skyline-color-accent);
}

.oxchat-avatar-spacer {
  width: 2.25rem;
  height: 1px;
}

.oxchat-avatar-cell {
  position: relative;
  width: 2.5rem;
  min-height: 1.45rem;
  display: grid;
  justify-items: start;
  align-content: start;
}

.oxchat-desktop-message-actions {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
}

.oxchat-mobile-message-actions {
  display: none;
  align-self: start;
  justify-self: end;
  padding-top: 0.05rem;
}

.oxchat-message-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.oxchat-message-body {
  min-width: 0;
  color: var(--skyline-color-primary);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.oxchat-message-body--deleted {
  color: color-mix(in srgb, var(--skyline-color-primary) 64%, transparent);
  font-style: italic;
}

.oxchat-message-header {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.oxchat-message-author {
  color: var(--skyline-color-primary);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.oxchat-message-timestamp {
  color: var(--oxchat-muted);
  font-size: 0.72rem;
  font-family: var(--skyline-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  white-space: nowrap;
}

.oxchat-image-link {
  display: inline-grid;
  justify-items: start;
  width: fit-content;
  max-width: min(42rem, 100%);
  color: inherit;
  text-decoration: none;
}

.oxchat-posted-image {
  display: block;
  width: auto;
  max-width: min(42rem, 100%);
  height: auto;
  max-height: 28rem;
  object-fit: contain;
  border-radius: 6px;
  background: color-mix(in srgb, var(--skyline-color-surface) 40%, transparent);
}

.oxchat-markdown {
  max-width: min(52rem, 100%);
  line-height: 1.42;
  overflow-wrap: anywhere;
  min-width: 0;
}

.oxchat-link-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: stretch;
  margin-top: 0.75rem;
  max-width: min(42rem, 100%);
  color: var(--skyline-color-primary);
  text-decoration: none;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--skyline-color-border);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--skyline-color-surface) 88%, var(--skyline-color-background)),
      color-mix(in srgb, var(--skyline-color-surface) 66%, var(--skyline-color-background)));
  box-shadow: 0 8px 18px var(--skyline-shadow, rgb(0 0 0 / 0.07));
}

.oxchat-link-preview-text {
  min-width: 0;
  padding: 0.8rem 0 0.8rem 0.9rem;
  display: grid;
  gap: 0.34rem;
  align-content: center;
}

.oxchat-link-preview-site-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.oxchat-link-preview-site {
  color: var(--oxchat-muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--skyline-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oxchat-link-preview-external-icon {
  flex: 0 0 auto;
  color: var(--oxchat-muted);
}

.oxchat-link-preview-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.oxchat-link-preview-description {
  color: var(--skyline-color-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.oxchat-link-preview-image {
  width: 6.2rem;
  height: 100%;
  min-height: 6.2rem;
  max-height: 9rem;
  object-fit: cover;
  background: var(--skyline-color-surface);
}

.oxchat-message-actions {
  min-height: 1.45rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.1rem;
  border: 1px solid var(--skyline-color-border);
  border-radius: 5px;
  background: var(--oxchat-command-bg);
  box-shadow: 0 6px 14px var(--skyline-shadow, rgb(0 0 0 / 0.08));
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity 140ms var(--oxchat-ease), transform 140ms var(--oxchat-ease);
}

.oxchat-message-row:hover .oxchat-message-actions,
.oxchat-message-row:focus-within .oxchat-message-actions {
  opacity: 1;
  transform: translateY(0);
}

.oxchat-message-action-button {
  width: 1.2rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: transparent;
  color: color-mix(in srgb, var(--skyline-color-primary) 58%, transparent);
  cursor: pointer;
}

.oxchat-message-action-icon {
  display: block;
  color: currentColor;
}

.oxchat-message-action-menu {
  position: relative;
  z-index: 1;
  display: inline-grid;
  justify-items: end;
}

.oxchat-message-action-summary {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  list-style: none;
  border: 1px solid var(--skyline-color-border);
  border-radius: 5px;
  background: var(--oxchat-command-bg);
  color: color-mix(in srgb, var(--skyline-color-primary) 72%, transparent);
  cursor: pointer;
}

.oxchat-message-action-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.25rem);
  right: 0;
}

.oxchat-composer-shell {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem 0.75rem;
}

.oxchat-composer-shell textarea {
  font-family: inherit;
}

.oxchat-composer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  padding: 0;
}

.oxchat-composer-field {
  min-width: 0;
  width: 100%;
  align-self: stretch;
}

.oxchat-send-slot {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 5.5rem;
  align-self: stretch;
}

.oxchat-button-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.oxchat-identity-panel {
  width: 10rem;
  min-width: 7rem;
  flex: 0 1 10rem;
  padding: 0;
  border: 1px solid var(--skyline-color-border);
  border-radius: 6px;
  background: var(--oxchat-command-bg);
  overflow: hidden;
}

.oxchat-identity-panel input {
  min-height: 2rem !important;
  border: 0 !important;
  background: transparent !important;
}

.oxchat-mention {
  display: inline;
  padding: 0.02rem 0.22rem;
  border-radius: 4px;
  font-weight: 800;
  color: color-mix(in srgb, var(--skyline-color-accent) 86%, var(--skyline-color-primary));
  background: color-mix(in srgb, var(--skyline-color-accent) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--skyline-color-accent) 22%, transparent);
}

.oxchat-mention-anonymous {
  color: color-mix(in srgb, var(--skyline-color-success) 76%, var(--skyline-color-primary));
  background: color-mix(in srgb, var(--skyline-color-success) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--skyline-color-success) 22%, transparent);
}

.oxchat-status-dot {
  width: .48rem;
  height: .48rem;
  border-radius: 999px;
  background: var(--skyline-color-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--skyline-color-success) 16%, transparent);
}

.oxchat-sigil {
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fffdf9;
  border: 1px solid rgba(32, 33, 36, 0.16);
  box-shadow: 0 8px 18px rgba(32, 33, 36, 0.10);
}

.oxchat-sigil--38 {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.oxchat-sigil--44 {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.oxchat-sigil--48 {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.oxchat-sigil--56 {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 780px) {
  .oxchat-app {
    padding: 0 !important;
    gap: 0 !important;
    grid-template-rows: 3rem minmax(0, 1fr) !important;
    background: var(--skyline-color-background) !important;
  }

  .oxchat-app-header {
    width: 100% !important;
    min-height: 3rem !important;
    margin: 0 !important;
    padding: 0 max(0.75rem, env(safe-area-inset-left)) 0 max(0.75rem, env(safe-area-inset-right)) !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .oxchat-app-header h1 {
    font-size: 1.05rem !important;
    line-height: 1 !important;
  }

  .oxchat-header-actions {
    flex: 0 1 auto !important;
    justify-content: flex-end !important;
    gap: 0.4rem !important;
  }

  .oxchat-theme-controls {
    display: flex !important;
    flex: 0 0 auto !important;
  }

  .oxchat-room-switcher {
    max-width: 12rem !important;
    padding-left: 0.45rem !important;
    padding-right: 0.25rem !important;
  }

  .oxchat-room-select {
    min-width: 0 !important;
    width: 7rem !important;
  }

  .oxchat-theme-controls button {
    width: 2rem !important;
    min-width: 2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .oxchat-header-actions button {
    min-height: 2rem !important;
  }

  .oxchat-header-actions [class*='account'] {
    min-width: 0 !important;
  }

  .oxchat-identity-panel {
    display: none !important;
  }

  .oxchat-room-shell {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .oxchat-message-list {
    padding: 0.65rem 0.35rem 0.8rem !important;
    scrollbar-gutter: auto !important;
  }

  .oxchat-message-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto !important;
    column-gap: 0.45rem !important;
    padding-left: 0.35rem !important;
    padding-right: 0.4rem !important;
    border-radius: 0 !important;
  }

  .oxchat-avatar-cell {
    width: 2rem !important;
  }

  .oxchat-avatar-cell .oxchat-avatar-image,
  .oxchat-avatar-cell .oxchat-avatar-fallback {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    border-radius: 7px !important;
  }

  .oxchat-message-row img,
  .oxchat-message-row svg {
    max-width: 100%;
  }

  .oxchat-desktop-message-actions {
    display: none !important;
  }

  .oxchat-mobile-message-actions {
    display: grid !important;
  }

  .oxchat-message-row:has(.oxchat-message-action-menu[open]) {
    z-index: 50;
  }

  .oxchat-message-action-menu[open] {
    z-index: 60 !important;
  }

  .oxchat-message-action-menu>summary::-webkit-details-marker {
    display: none;
  }

  .oxchat-message-action-menu>summary::marker {
    content: '';
  }

  .oxchat-message-action-menu:not([open]) .oxchat-message-actions {
    display: none !important;
  }

  .oxchat-message-action-menu[open]>summary {
    z-index: 1 !important;
  }

  .oxchat-message-action-menu[open] .oxchat-message-actions {
    z-index: 70 !important;
  }

  .oxchat-mobile-message-actions .oxchat-message-actions {
    opacity: 1 !important;
    transform: none !important;
  }

  .oxchat-posted-image {
    max-width: min(100%, calc(100vw - 4rem)) !important;
    max-height: 17rem !important;
  }

  .oxchat-link-preview {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: min(100%, calc(100vw - 4rem)) !important;
    gap: 0 !important;
  }

  .oxchat-link-preview-image {
    width: 100% !important;
    height: 8.5rem !important;
    min-height: 0 !important;
    max-height: 8.5rem !important;
    order: -1 !important;
  }

  .oxchat-composer-shell {
    padding: 0.55rem max(0.65rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left)) !important;
  }

  .oxchat-composer-hints {
    display: none !important;
  }

  .oxchat-composer-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) 2.75rem !important;
    gap: 0.45rem !important;
  }

  .oxchat-composer-form>* {
    min-width: 0 !important;
  }

  .oxchat-composer-form textarea {
    min-height: 3rem !important;
    max-height: 7.5rem !important;
  }

  .oxchat-send-slot {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 2.75rem !important;
    max-width: 2.75rem !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    display: grid !important;
  }

  .oxchat-send-slot button {
    box-sizing: border-box !important;
    width: 2.75rem !important;
    min-width: 0 !important;
    max-width: 2.75rem !important;
    height: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .oxchat-send-slot .oxchat-button-label {
    justify-content: center !important;
    gap: 0 !important;
  }

  .oxchat-send-slot .oxchat-button-label> :last-child {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .oxchat-app-header {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 0.4rem !important;
  }

  .oxchat-app-header h1 {
    display: none !important;
  }

  .oxchat-room-switcher {
    justify-self: stretch !important;
  }

  .oxchat-room-select {
    width: 100% !important;
  }

  .oxchat-message-list {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }

  .oxchat-header-actions {
    gap: 0.3rem !important;
  }

  .oxchat-header-actions button {
    min-width: 0 !important;
  }

  .oxchat-message-row {
    grid-template-columns: 1.9rem minmax(0, 1fr) auto !important;
    column-gap: 0.35rem !important;
  }

  .oxchat-avatar-cell {
    width: 1.9rem !important;
  }

  .oxchat-avatar-cell .oxchat-avatar-image,
  .oxchat-avatar-cell .oxchat-avatar-fallback {
    width: 28px !important;
    height: 28px !important;
    flex-basis: 28px !important;
  }

  .oxchat-posted-image,
  .oxchat-link-preview {
    max-width: min(100%, calc(100vw - 4.5rem)) !important;
  }
}