html.cm-page,
html.cm-page body {
  height: 100%
}

html.cm-page {
  overflow: hidden
}

body.cm {
  height: 100dvh;
  max-width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle, rgba(146, 150, 154, .12) 1px, transparent 1.3px);
  background-size: 34px 34px;
  background-position: 50% 0
}

.cm__shell {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 86px 18px 14px
}

.cm__head,
.cm__note,
.composer,
.register {
  flex: none
}

.cm__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 4px 2px 14px;
  border-bottom: 1px solid var(--line)
}

.cm__title {
  margin: 0;
  font: 500 1.65rem/1.1 var(--display);
  letter-spacing: -.035em
}

.cm__desc {
  margin: 7px 0 0;
  max-width: 48ch;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted)
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--muted)
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2)
}

.status.is-ok .status__dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 175, 152, .13)
}

.status.is-wait .status__dot {
  animation: cm-pulse 1.3s ease-in-out infinite
}

@keyframes cm-pulse {
  50% {
    opacity: .3
  }
}

.cm__feedwrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column
}

.feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 238, 236, .14) transparent
}

.empty {
  margin: 42px 0 0;
  text-align: center;
  font-size: .84rem;
  color: var(--muted)
}

.msg {
  padding: 9px 2px 7px;
  border-bottom: 1px solid rgba(232, 234, 232, .05)
}

.feed>.msg {
  content-visibility: auto;
  contain-intrinsic-size: auto 64px
}

.feed>.msg:last-child {
  border-bottom: 0
}

.msg__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  font-size: .7rem;
  color: var(--muted-2)
}

.msg__nick {
  font: 500 .8rem/1.3 var(--body);
  color: var(--text);
  overflow-wrap: anywhere
}

.msg__nick.is-me {
  color: var(--accent)
}

.msg__nick.is-dev {
  color: #B87272
}

.msg__nick .ic--dev {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1.5px;
  stroke-width: 1.7;
  color: #B87272
}

.msg__hint {
  font-style: italic
}

.msg__text {
  margin: 2px 0 0;
  font-size: .88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #DADCDA
}

.msg.is-gone>.msg__text {
  color: var(--muted-2);
  font-style: italic
}

.msg__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin: 3px 0 0 -6px
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  min-width: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
  font: 500 .7rem var(--body);
  cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease)
}

.act:hover:not(:disabled) {
  color: var(--text);
  background: rgba(236, 238, 236, .05)
}

.act:disabled {
  opacity: .4;
  cursor: not-allowed
}

.act[aria-pressed="true"] {
  color: var(--accent)
}

.act[aria-pressed="true"] .ic {
  fill: rgba(143, 175, 152, .2)
}

.ic {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.ic--flip {
  transform: scaleY(-1)
}

.act__n {
  font-variant-numeric: tabular-nums
}

.confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: .7rem;
  color: var(--muted)
}

.confirm button {
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 500 .7rem var(--body);
  cursor: pointer
}

.confirm__yes {
  border-color: rgba(201, 161, 143, .45) !important;
  color: #D2AE9E !important
}

.confirm button:hover {
  background: rgba(236, 238, 236, .06)
}

.replies {
  margin: 5px 0 0 5px;
  padding-left: 12px;
  border-left: 1px solid var(--line)
}

.msg--reply {
  padding: 6px 0 4px;
  border-bottom: 0
}

.cm__older,
.cm__pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 2
}

.cm__older {
  top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .68rem;
  color: var(--muted)
}

.cm__pill {
  bottom: 8px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(143, 175, 152, .35);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: 500 .7rem var(--body);
  cursor: pointer
}

.cm__pill:hover {
  background: #171A1D
}

.cm__older[hidden],
.cm__pill[hidden] {
  display: none
}

.cm__note {
  min-height: 20px;
  padding: 2px 2px 0;
  font-size: .74rem;
  color: #C9A18F
}

.composer,
.register {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 8px 6px
}

.composer:focus-within,
.register:focus-within {
  border-color: rgba(143, 175, 152, .35)
}

.composer[hidden],
.register[hidden],
.reply-ctx[hidden] {
  display: none
}

.reply-ctx {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(143, 175, 152, .07);
  font-size: .74rem;
  color: var(--muted)
}

.reply-ctx b {
  font-weight: 500;
  color: var(--accent)
}

.reply-ctx__snip {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.reply-ctx button {
  flex: none;
  height: 20px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: 500 .7rem var(--body);
  cursor: pointer
}

.reply-ctx button:hover {
  color: var(--text);
  background: rgba(236, 238, 236, .06)
}

.composer__row {
  display: flex;
  align-items: flex-end;
  gap: 8px
}

.composer textarea,
.register input {
  flex: 1;
  min-width: 0;
  padding: 7px 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 .88rem/1.45 var(--body);
  resize: none
}

.composer textarea {
  max-height: 120px
}

.composer textarea::placeholder,
.register input::placeholder {
  color: var(--muted-2)
}

.send {
  flex: none;
  height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #0B0C0E;
  font: 500 .8rem var(--body);
  cursor: pointer;
  transition: background-color .3s var(--ease), opacity .3s var(--ease)
}

.send:hover:not(:disabled) {
  background: var(--accent)
}

.send:disabled {
  opacity: .45;
  cursor: default
}

.composer__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 6px 0;
  font-size: .68rem;
  color: var(--muted-2)
}

.composer__foot .is-near {
  color: #C9A18F
}

.register__title {
  margin: 2px 6px 0;
  font: 500 .9rem var(--display);
  letter-spacing: -.01em
}

.register__hint {
  margin: 3px 6px 6px;
  font-size: .74rem;
  line-height: 1.45;
  color: var(--muted)
}

.register__row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 6px
}

.register__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 6px 0;
  font-size: .7rem;
  color: var(--muted-2)
}

.register__err,
.register__foot .is-bad {
  color: #C9A18F
}

@media (max-width:560px) {
  .cm__shell {
    padding: 78px 12px 10px
  }

  .cm__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px
  }

  .cm__title {
    font-size: 1.45rem
  }
}

@media (prefers-reduced-motion:reduce) {
  .status.is-wait .status__dot {
    animation: none
  }
}