:root {
  color-scheme: light;
  --paper: #fcfbfd;
  --paper-deep: #f4f0f6;
  --ink: #17131c;
  --muted: #6d6672;
  --line: #ded8e2;
  --purple: #6b238e;
  --purple-light: #7a3fa0;
  --lilac: #eee3f3;
  --danger: #a7323c;
  --safe: #1f7256;
  --shadow: 0 28px 80px rgba(42, 21, 51, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 100dvh;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.shell {
  min-height: 100dvh;
}

.entry {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto auto;
  width: min(100%, 1120px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 32px clamp(20px, 6vw, 72px) max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.entry__spotlight {
  position: absolute;
  z-index: -1;
  top: -24vw;
  right: -12vw;
  width: min(78vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 35, 142, 0.09) 0 12%, rgba(107, 35, 142, 0.035) 42%, transparent 70%);
  pointer-events: none;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.product-mark::after {
  position: absolute;
  right: -2px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  content: "";
}

.product-mark i {
  width: 2px;
  height: 9px;
  border-radius: 99px;
  background: var(--ink);
  transform: translateY(-4px);
  transform-origin: bottom center;
}

.entry__copy {
  align-self: center;
  max-width: 760px;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(52px, 8vw, 102px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lead {
  max-width: 570px;
  margin: 34px 0 0;
  color: #4e4853;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 168px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--purple);
  border-radius: 12px;
  background: var(--purple);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(107, 35, 142, 0.17);
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover {
  background: #5d1c7d;
  transform: translateY(-1px);
}

.primary-action:active {
  transform: translateY(1px);
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.trust-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.truth-note {
  max-width: 620px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.truth-note summary {
  width: fit-content;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #c8bdcd;
  text-underline-offset: 4px;
}

.truth-note p {
  margin: 10px 0 0;
}

.brand-endorsement {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--purple);
}

.brand-endorsement > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.brand-endorsement > span img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.brand-arc {
  width: 78px;
  height: 28px;
  color: var(--purple);
}

.entry--join {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  justify-content: center;
  padding-top: 90px;
  padding-bottom: 60px;
}

.entry--join .product-head {
  margin-bottom: auto;
}

.text-back {
  position: absolute;
  top: 28px;
  left: clamp(20px, 6vw, 72px);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.join-copy {
  margin-top: 70px;
}

.join-copy h1 {
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.045em;
}

.join-copy > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
}

.join-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 48px;
}

.join-form label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.join-form input {
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
}

.join-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 35, 142, 0.1);
}

.room-proof {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.room-proof strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.room-proof small {
  grid-column: 1 / -1;
}

.join-error {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.chat {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100%, 860px);
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 251, 253, 0.94);
  backdrop-filter: blur(16px);
}

.chat-head__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 4px 8px 4px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.chat-head__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-head__identity strong {
  font-size: 15px;
}

.chat-head__copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head__copy b {
  color: var(--purple);
  font-weight: 650;
}

.product-mark--small {
  width: 30px;
  height: 30px;
}

.product-mark--small::after {
  width: 7px;
  height: 7px;
}

.chat-head__actions {
  display: flex;
  gap: 4px;
}

.chat-head__actions button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.chat-head__actions button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.chat-head__actions .share-now {
  min-width: 92px;
  padding-inline: 14px;
  background: var(--purple);
  color: white;
  font-weight: 700;
}

.chat-head__actions .share-now:hover {
  background: #5d1c7d;
  color: white;
}

.status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 10px 20px;
  border-bottom: 1px solid #e8e0eb;
  background: #f7f3f9;
  color: #5d5261;
}

.status-panel__main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.status-panel__main > div {
  display: grid;
  gap: 3px;
}

.status-panel__main strong {
  color: var(--ink);
  font-size: 13px;
}

.status-panel__main span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-panel__facts {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 6px;
  flex-wrap: wrap;
}

.status-panel__facts span {
  padding: 5px 8px;
  border: 1px solid #e1d7e5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #64586a;
  font-size: 10px;
  white-space: nowrap;
}

.live-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(107, 35, 142, 0.1);
}

.live-dot.is-connected {
  background: var(--safe);
  box-shadow: 0 0 0 4px rgba(31, 114, 86, 0.11);
}

.messages {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 28px 20px 36px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.empty-chat {
  display: grid;
  place-items: center;
  margin: auto;
  color: var(--muted);
  text-align: center;
}

.empty-chat__ring {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border: 2px solid #cfc5d3;
  border-right-color: transparent;
  border-radius: 50%;
}

.empty-chat strong {
  color: var(--ink);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 20px;
}

.empty-chat p {
  margin: 7px 0 0;
  font-size: 13px;
}

.message {
  --life: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 10px;
  width: min(78%, 560px);
  transform-origin: left center;
  animation: message-in 260ms ease both;
}

.message--mine {
  align-self: end;
  grid-template-columns: 38px minmax(0, 1fr);
  transform-origin: right center;
}

.message__bubble {
  min-width: 0;
  padding: 11px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 5px 16px 16px 16px;
  background: white;
}

.message--mine .message__bubble {
  grid-column: 2;
  grid-row: 1;
  border-color: transparent;
  border-radius: 16px 5px 16px 16px;
  background: var(--purple);
  color: white;
}

.message__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.message--mine .message__meta {
  color: rgba(255, 255, 255, 0.72);
}

.message__meta strong {
  max-width: 160px;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message__text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message__life {
  position: relative;
  display: grid;
  align-self: end;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--purple) calc(var(--life) * 1turn), #e4dfe7 0);
  color: #504856;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.message--mine .message__life {
  grid-column: 1;
  grid-row: 1;
}

.message__life::before {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.message__life span {
  position: relative;
}

.message--expiring {
  filter: saturate(0.7);
  animation: burn-flicker 700ms ease-in-out infinite alternate;
}

.message--gone {
  opacity: 0;
  transform: translateY(-7px) scale(0.94);
  filter: blur(5px);
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.attachment {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.attachment img,
.attachment video {
  display: block;
  width: 100%;
  max-height: 360px;
  border-radius: 10px;
  background: #eee;
  object-fit: contain;
}

.attachment audio {
  width: min(100%, 340px);
  min-height: 44px;
}

.attachment__file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid rgba(105, 94, 110, 0.22);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.attachment__file > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--lilac);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
}

.attachment__file > span:last-child {
  min-width: 0;
}

.attachment__file strong,
.attachment__file small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment__file strong {
  font-size: 13px;
}

.attachment__file small {
  margin-top: 3px;
  opacity: 0.7;
  font-size: 11px;
}

.message--mine .attachment__file > span:first-child {
  background: rgba(255, 255, 255, 0.17);
  color: white;
}

.composer {
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(252, 251, 253, 0.96);
  backdrop-filter: blur(18px);
}

.composer--drop {
  background: var(--lilac);
}

.composer__row {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr) auto;
  align-items: end;
  gap: 5px;
}

.icon-action,
.send-action {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.icon-action:hover {
  background: var(--paper-deep);
}

.icon-action > span[aria-hidden="true"] {
  color: var(--purple);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.record-action span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--purple);
}

.record-action.is-recording span {
  border-radius: 3px;
  background: var(--danger);
  animation: recording-pulse 900ms ease infinite alternate;
}

.composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 124px;
  padding: 11px 13px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: white;
  line-height: 1.45;
}

.composer textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(107, 35, 142, 0.08);
}

.send-action {
  padding: 0 12px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.send-action:disabled {
  cursor: default;
  opacity: 0.42;
}

.composer__hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 5px 0 98px;
  color: var(--muted);
  font-size: 10px;
}

.pending-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 9px 98px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.pending-file > div {
  min-width: 0;
}

.pending-file strong,
.pending-file span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-file strong {
  font-size: 12px;
}

.pending-file span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.pending-file button {
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 20;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 36px rgba(23, 19, 28, 0.2);
  font-size: 13px;
  transform: translateX(-50%);
}

.entry--invalid {
  grid-template-rows: auto 1fr auto auto;
  max-width: 760px;
}

.invalid-copy {
  align-self: center;
  padding: 72px 0 44px;
}

.invalid-copy h1 {
  font-size: clamp(48px, 9vw, 82px);
}

.invalid-copy > p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.sheet {
  width: min(calc(100vw - 32px), 620px);
  max-height: min(760px, calc(100dvh - 32px));
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(28, 17, 34, 0.24);
}

.sheet::backdrop {
  background: rgba(23, 19, 28, 0.42);
  backdrop-filter: blur(4px);
}

.sheet--small {
  width: min(calc(100vw - 32px), 440px);
}

.sheet__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
}

.sheet__head .eyebrow {
  margin-bottom: 8px;
}

.sheet h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.sheet__close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 25px;
  font-weight: 300;
}

.sheet__lead,
.sheet__note {
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.share-status-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.share-status-board > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.share-status-board span {
  color: var(--muted);
  font-size: 10px;
}

.share-status-board strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-primary {
  display: grid;
  width: 100%;
  min-height: 64px;
  padding: 10px 18px;
  place-items: center;
  border: 1px solid var(--purple);
  border-radius: 14px;
  background: var(--purple);
  color: white;
  text-align: center;
}

.share-primary strong {
  font-size: 16px;
}

.share-primary span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.share-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.share-link > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.share-link > div strong {
  font-size: 12px;
}

.share-link > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link input,
.nickname-input,
.access-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
}

.share-link input {
  color: var(--muted);
  font-size: 12px;
}

.share-link button,
.access-form button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 650;
}

.primary-action--wide {
  width: 100%;
  margin-top: 10px;
}

.access-card {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #d9cae0;
  border-radius: 16px;
  background: #f7f2f9;
}

.access-card__title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.access-card__title::-webkit-details-marker {
  display: none;
}

.access-card__title::before {
  align-self: center;
  color: var(--purple);
  content: "+";
  font-size: 18px;
  line-height: 1;
  order: 3;
}

.access-card[open] .access-card__title::before {
  content: "−";
}

.access-card__title > div {
  display: grid;
  gap: 4px;
}

.access-card__title span,
.access-card__body > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.access-card__body {
  padding-top: 14px;
}

.access-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: white;
  color: var(--purple) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 15px;
}

.access-form input {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.25em;
  text-align: center;
}

.access-card__body > p {
  margin: 12px 0 0;
}

.text-action {
  min-height: 40px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
}

.nickname-input {
  width: 100%;
  margin-top: 24px;
}

.nickname-input:focus,
.access-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 35, 142, 0.1);
}

.noscript {
  position: fixed;
  z-index: 30;
  inset: 20px;
  display: grid;
  padding: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(107, 35, 142, 0.28);
  outline-offset: 2px;
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes burn-flicker {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0.78; transform: translateX(1px); }
}

@keyframes recording-pulse {
  from { opacity: 0.55; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 639px) {
  .entry {
    padding-top: 20px;
  }

  .entry__copy {
    padding: 52px 0 34px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 66px);
  }

  .lead {
    margin-top: 26px;
    font-size: 16px;
  }

  .trust-line {
    flex-wrap: wrap;
  }

  .brand-arc {
    width: 64px;
  }

  .entry--join {
    padding-top: 82px;
  }

  .join-copy {
    margin-top: 46px;
  }

  .join-form {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .join-form .primary-action {
    width: 100%;
  }

  .message {
    width: 88%;
  }

  .composer {
    padding-inline: 8px;
  }

  .composer__row {
    grid-template-columns: 40px 40px minmax(0, 1fr) auto;
    gap: 2px;
  }

  .icon-action {
    min-width: 40px;
  }

  .composer__hint {
    padding-left: 84px;
  }

  .pending-file {
    margin-left: 84px;
  }

  .chat-head {
    padding-inline: 12px 8px;
  }

  .chat-head__actions button {
    padding-inline: 7px;
  }

  .sheet {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px;
    border-radius: 18px;
  }

  .access-form {
    grid-template-columns: 1fr;
  }

  .access-form button {
    width: 100%;
  }

  .status-panel {
    display: grid;
    gap: 8px;
    min-height: 84px;
    padding-inline: 12px;
  }

  .status-panel__facts {
    justify-content: start;
  }
}

@media (max-width: 359px) {
  .messages {
    padding-inline: 12px;
  }

  .message {
    width: 94%;
  }

  .composer__hint span:first-child {
    display: none;
  }

  .composer__hint {
    justify-content: flex-end;
  }

  .chat-head__copy > span {
    max-width: 108px;
  }

  .sheet {
    padding: 16px;
  }

  .share-status-board > div {
    padding-inline: 8px;
  }
}

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