@charset "UTF-8";
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/material-symbols-outlined-9cda61e2.woff2") format("woff2");
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 200, "opsz" 24;
}

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

.no-boxsizing,
.no-boxsizing *,
.no-boxsizing *:after,
.no-boxsizing *:before {
  box-sizing: content-box;
}

:root {
  --primary: #29aa69;
  --hover: #2fcb7d;
  --gray: #91a89c;
  --body: #ddd;
  --bg: #222;
  --bg-on: #1b1b1b;
  --bg-off: #282828;
  --border: #444;
  --border-light: #555;
  --red: #c30000;
  --orange: #d8832d;
  --expire: rgb(13, 225, 237);
  --mono: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}

body, input, button, select, label, textarea {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  color: var(--body);
  background: var(--bg);
}
body:focus, input:focus, button:focus, select:focus, label:focus, textarea:focus {
  outline: none;
  box-shadow: none;
}

body {
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  color: var(--hover);
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
  font-weight: bold;
}

h4 {
  font-size: 21px;
}

.btn {
  display: inline-block;
  padding: 14px 16px;
  line-height: 1;
  border-radius: 8px;
  border: 0;
  background: var(--primary);
  color: white;
  cursor: pointer;
}
.btn:visited {
  color: white;
}
.btn:hover {
  background: var(--hover);
  color: white;
}
.btn.display-block {
  text-align: center;
}

.btn-icon-filled {
  padding: 8px 10px;
  line-height: 0.5;
}

.btn-icon-circle {
  padding: 8px;
  border-radius: 50%;
  line-height: 0.5;
}
.btn-icon-circle .material-symbols-outlined {
  font-size: 36px;
}

.btn-gray {
  background-color: var(--gray);
}
.btn-gray:visited, .btn-gray:hover {
  background-color: var(--gray);
}

.btn-red {
  background-color: #a50000;
}
.btn-red:visited, .btn-red:hover {
  background-color: #e90000;
}

.btn-small {
  font-size: 14px;
  padding: 4px 8px;
}

.btn-icon {
  line-height: 1;
  padding: 0;
  background: transparent;
}
.btn-icon:hover {
  background: transparent;
}
.btn-icon.btn-gray {
  background: transparent;
  color: var(--gray);
}
.btn-icon.btn-gray:visited, .btn-icon.btn-gray:hover {
  background: transparent;
  color: #b0b0b0;
}
.btn-icon.btn-large .material-symbols-outlined {
  font-size: 48px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input {
  border: 2px solid var(--border);
  background: var(--bg);
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  display: block;
  line-height: 1.2;
}
@media (prefers-color-scheme: dark) {
  .input {
    color-scheme: dark;
  }
}
.input:hover {
  border-color: var(--border-light);
}
.input:disabled, .input[readonly] {
  background: var(--border);
  cursor: pointer;
}
.input:focus {
  border-color: var(--border-light);
  box-shadow: 0px 0px 8px 0px var(--primary);
}
.input.error {
  border-color: var(--red);
}

.label {
  background: transparent;
  font-weight: bold;
  margin-bottom: 4px;
  display: block;
}

.checkbox {
  cursor: pointer;
  color: var(--body);
  background: transparent;
  padding: 8px 0;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.checkbox::before {
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  line-height: 1;
  content: "check_box_outline_blank";
  vertical-align: middle;
  margin-right: 4px;
}
.checkbox:has(input:checked)::before {
  content: "check_box";
  color: var(--primary);
}
.checkbox input[type=checkbox] {
  display: none;
}

.upload-wrapper {
  position: relative;
}
.upload-wrapper .upload-input {
  opacity: 0.01;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pf-4 {
  padding: 4px !important;
}

.pt-4 {
  padding-top: 4px !important;
}

.pr-4 {
  padding-right: 4px !important;
}

.pb-4 {
  padding-bottom: 4px !important;
}

.pl-4 {
  padding-left: 4px !important;
}

.pv-4 {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.ph-4 {
  padding-right: 4px !important;
  padding-left: 4px !important;
}

.pf-8 {
  padding: 8px !important;
}

.pt-8 {
  padding-top: 8px !important;
}

.pr-8 {
  padding-right: 8px !important;
}

.pb-8 {
  padding-bottom: 8px !important;
}

.pl-8 {
  padding-left: 8px !important;
}

.pv-8 {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.ph-8 {
  padding-right: 8px !important;
  padding-left: 8px !important;
}

.pf-16 {
  padding: 16px !important;
}

.pt-16 {
  padding-top: 16px !important;
}

.pr-16 {
  padding-right: 16px !important;
}

.pb-16 {
  padding-bottom: 16px !important;
}

.pl-16 {
  padding-left: 16px !important;
}

.pv-16 {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.ph-16 {
  padding-right: 16px !important;
  padding-left: 16px !important;
}

.pf-32 {
  padding: 32px !important;
}

.pt-32 {
  padding-top: 32px !important;
}

.pr-32 {
  padding-right: 32px !important;
}

.pb-32 {
  padding-bottom: 32px !important;
}

.pl-32 {
  padding-left: 32px !important;
}

.pv-32 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.ph-32 {
  padding-right: 32px !important;
  padding-left: 32px !important;
}

.pf-64 {
  padding: 64px !important;
}

.pt-64 {
  padding-top: 64px !important;
}

.pr-64 {
  padding-right: 64px !important;
}

.pb-64 {
  padding-bottom: 64px !important;
}

.pl-64 {
  padding-left: 64px !important;
}

.pv-64 {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.ph-64 {
  padding-right: 64px !important;
  padding-left: 64px !important;
}

.pf-0 {
  padding: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pr-0 {
  padding-right: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pl-0 {
  padding-left: 0 !important;
}

.pv-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ph-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.mf-4 {
  margin: 4px !important;
}

.mt-4 {
  margin-top: 4px !important;
}

.mr-4 {
  margin-right: 4px !important;
}

.mb-4 {
  margin-bottom: 4px !important;
}

.ml-4 {
  margin-left: 4px !important;
}

.mv-4 {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

.mh-4 {
  margin-right: 4px !important;
  margin-left: 4px !important;
}

.mf-8 {
  margin: 8px !important;
}

.mt-8 {
  margin-top: 8px !important;
}

.mr-8 {
  margin-right: 8px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.ml-8 {
  margin-left: 8px !important;
}

.mv-8 {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.mh-8 {
  margin-right: 8px !important;
  margin-left: 8px !important;
}

.mf-16 {
  margin: 16px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.mr-16 {
  margin-right: 16px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.ml-16 {
  margin-left: 16px !important;
}

.mv-16 {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

.mh-16 {
  margin-right: 16px !important;
  margin-left: 16px !important;
}

.mf-32 {
  margin: 32px !important;
}

.mt-32 {
  margin-top: 32px !important;
}

.mr-32 {
  margin-right: 32px !important;
}

.mb-32 {
  margin-bottom: 32px !important;
}

.ml-32 {
  margin-left: 32px !important;
}

.mv-32 {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}

.mh-32 {
  margin-right: 32px !important;
  margin-left: 32px !important;
}

.mf-64 {
  margin: 64px !important;
}

.mt-64 {
  margin-top: 64px !important;
}

.mr-64 {
  margin-right: 64px !important;
}

.mb-64 {
  margin-bottom: 64px !important;
}

.ml-64 {
  margin-left: 64px !important;
}

.mv-64 {
  margin-top: 64px !important;
  margin-bottom: 64px !important;
}

.mh-64 {
  margin-right: 64px !important;
  margin-left: 64px !important;
}

.mf-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mr-0 {
  margin-right: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.ml-0 {
  margin-left: 0 !important;
}

.mv-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.mh-0 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.max-450 {
  max-width: 450px;
}

.flex-row-all {
  display: flex;
  align-items: center;
}
.flex-row-all > .flex-col-1 {
  width: 8.3333333333%;
}
.flex-row-all > .flex-col-2 {
  width: 16.6666666667%;
}
.flex-row-all > .flex-col-3 {
  width: 25%;
}
.flex-row-all > .flex-col-4 {
  width: 33.3333333333%;
}
.flex-row-all > .flex-col-5 {
  width: 41.6666666667%;
}
.flex-row-all > .flex-col-6 {
  width: 50%;
}
.flex-row-all > .flex-col-7 {
  width: 58.3333333333%;
}
.flex-row-all > .flex-col-8 {
  width: 66.6666666667%;
}
.flex-row-all > .flex-col-9 {
  width: 75%;
}
.flex-row-all > .flex-col-10 {
  width: 83.3333333333%;
}
.flex-row-all > .flex-col-11 {
  width: 91.6666666667%;
}
.flex-row-all > .flex-col-12 {
  width: 100%;
}
.flex-row-all > .flex-percent-10 {
  width: 10%;
}

@media screen and (min-width: 769px) {
  .flex-row-tablet {
    display: flex;
  }
  .flex-row-tablet > .flex-col-1 {
    width: 8.3333333333%;
  }
  .flex-row-tablet > .flex-col-2 {
    width: 16.6666666667%;
  }
  .flex-row-tablet > .flex-col-3 {
    width: 25%;
  }
  .flex-row-tablet > .flex-col-4 {
    width: 33.3333333333%;
  }
  .flex-row-tablet > .flex-col-5 {
    width: 41.6666666667%;
  }
  .flex-row-tablet > .flex-col-6 {
    width: 50%;
  }
  .flex-row-tablet > .flex-col-7 {
    width: 58.3333333333%;
  }
  .flex-row-tablet > .flex-col-8 {
    width: 66.6666666667%;
  }
  .flex-row-tablet > .flex-col-9 {
    width: 75%;
  }
  .flex-row-tablet > .flex-col-10 {
    width: 83.3333333333%;
  }
  .flex-row-tablet > .flex-col-11 {
    width: 91.6666666667%;
  }
  .flex-row-tablet > .flex-col-12 {
    width: 100%;
  }
  .flex-row-tablet > .flex-percent-10 {
    width: 10%;
  }
}

.flex-gutters-4 {
  margin-left: -4px;
  margin-right: -4px;
}
.flex-gutters-4 > [class*=flex-col] {
  padding-left: 4px;
  padding-right: 4px;
}

.flex-gutters-8 {
  margin-left: -8px;
  margin-right: -8px;
}
.flex-gutters-8 > [class*=flex-col] {
  padding-left: 8px;
  padding-right: 8px;
}

.flex-gutters-16 {
  margin-left: -16px;
  margin-right: -16px;
}
.flex-gutters-16 > [class*=flex-col] {
  padding-left: 16px;
  padding-right: 16px;
}

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

.flex-dynamic {
  width: 100%;
  flex-grow: 1;
  flex-shrink: 1;
}

.flex-static {
  flex-grow: 0;
  flex-shrink: 0;
}

.flex-align-stretch {
  align-items: stretch;
}

.flex-align-top {
  align-items: flex-start;
}

.flex-align-bottom {
  align-items: flex-end;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-spaced {
  justify-content: space-between;
}

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

.justify-self-end {
  justify-self: end;
}

.flex-direction-column {
  flex-direction: column;
}

.toast-container {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  background: var(--bg-on);
  border: 3px solid var(--bg-off);
  color: white;
  padding: 16px;
  margin: 16px 0;
  border-radius: 8px;
  pointer-events: auto;
  width: 100%;
  text-align: center;
}

.toast.success {
  border-color: var(--primary);
}

.toast.error {
  border-color: var(--red);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--bg-on);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-height: 90vh;
  overflow-y: scroll;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 8px;
}
@media screen and (min-width: 666px) {
  .modal-header {
    padding: 16px;
  }
}
.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 8px;
}
@media screen and (min-width: 666px) {
  .modal-body {
    padding: 16px;
  }
}

.modal-close {
  margin-left: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.expiration-options li {
  margin-bottom: 8px;
}
.expiration-options li:last-child {
  margin-bottom: 0;
}
.expiration-options .btn-block {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--body);
  cursor: pointer;
  font-size: 14px;
}
.expiration-options .btn-block:hover {
  border-color: var(--border-light);
}
.expiration-options .btn-block.btn-active {
  border-color: var(--primary);
  color: var(--primary);
}
.expiration-options .btn-block.btn-gray {
  color: var(--gray);
}

.expiring-message-content {
  margin-bottom: 16px;
}

.expiring-message-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.expiring-message-photos img {
  max-width: 100%;
  border-radius: 4px;
}

.pell {
  border: 1px solid hsla(0, 0%, 4%, 0.1);
}

.pell, .pell-content {
  box-sizing: border-box;
}

.pell-content {
  height: 300px;
  outline: 0;
  overflow-y: auto;
  padding: 10px;
}

.pell-actionbar {
  background-color: #fff;
  border-bottom: 1px solid hsla(0, 0%, 4%, 0.1);
}

.pell-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  height: 30px;
  outline: 0;
  width: 30px;
  vertical-align: bottom;
}

.pell-button-selected {
  background-color: #f0f0f0;
}

.w300 {
  min-width: 300px;
}

.grid {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.changelog article {
  margin-bottom: 32px;
}

.role-manager {
  display: flex;
  gap: 24px;
  min-height: 400px;
}

.role-list {
  min-width: 120px;
  border-right: 1px solid var(--border);
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 8px 8px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: 14px;
  width: 100%;
}
.role-item:hover {
  background: var(--bg-off);
}
.role-item.active {
  background: var(--bg);
  font-weight: bold;
}

.add-role {
  padding: 0;
  border: 0;
  display: block;
  background: transparent;
  color: white;
  width: 24px;
}

.role-name {
  flex: 1;
}

.role-badge {
  font-size: 10px;
  background: var(--primary);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
}

.role-lock {
  font-size: 14px;
  color: var(--gray);
}

.role-permissions {
  flex: 1;
  overflow-y: auto;
}

.role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.role-header h4 {
  margin: 0;
  text-transform: capitalize;
}

.save-indicator {
  font-size: 12px;
  color: var(--gray);
}

.permissions-section {
  margin-bottom: 16px;
}

.permissions-section h5 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 0.5px;
}

.permission-row {
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
}

.room-permission-row {
  display: block;
}
@media screen and (min-width: 666px) {
  .room-permission-row {
    flex-direction: row-reverse;
    justify-content: flex-end;
    display: flex;
  }
}

.permission-buttons {
  display: flex;
  margin: 8px 0 16px;
}
@media screen and (min-width: 666px) {
  .permission-buttons {
    margin: 0;
  }
}
.permission-buttons .btn-yes {
  background: var(--primary);
  border: 2px solid var(--primary);
}
.permission-buttons .btn-maybe {
  background: var(--border-light);
  border: 2px solid var(--border-light);
}
.permission-buttons .btn-no {
  background: var(--red);
  border: 2px solid var(--red);
}
.permission-buttons button {
  display: block;
  border: 0;
  padding: 6px 0;
  color: white;
  font-size: 13px;
  width: 46px;
}
.permission-buttons button:first-child {
  border-radius: 6px 0 0 6px;
  border-right: 0;
}
.permission-buttons button:nth-child(2) {
  border-left: 0;
  border-right: 0;
}
.permission-buttons button:last-child {
  border-radius: 0 6px 6px 0;
  border-left: 0;
}
.permission-buttons button:not(.active) {
  background: transparent;
}
.permission-buttons .active {
  font-weight: bold;
}

.new-role-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.new-role-form .input-small {
  width: 110px;
}

.new-role-actions {
  display: flex;
  gap: 4px;
}

.delete-actions {
  display: flex;
  gap: 8px;
}

.input-small {
  padding: 4px 6px;
  font-size: 13px;
  border-width: 1px;
}

.app-root {
  --communities-sidebar-width: 64px;
  --layout-breakpoint: 666px;
  --breadcrumbs-height: 48px;
  display: flex;
  padding-top: var(--breadcrumbs-height);
}
@media screen and (min-width: 666px) {
  .app-root {
    padding-left: var(--communities-sidebar-width);
  }
}
.app-root > article {
  width: 100%;
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
}

.click-return {
  display: none;
}
.app-root.showing-nav .click-return {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
}

.communities-sidebar {
  transition: left 0.2s linear;
  position: fixed;
  z-index: 3;
  top: var(--breadcrumbs-height);
  height: 100vh;
  background: var(--bg-on);
  border-right: 1px solid var(--border);
  overflow: hidden;
  padding: 8px;
  flex-grow: 0;
  flex-shrink: 0;
  width: var(--communities-sidebar-width);
  left: calc(var(--communities-sidebar-width) * -1);
}
@media screen and (min-width: 666px) {
  .communities-sidebar {
    left: 0;
  }
}
.app-root.showing-nav .communities-sidebar {
  left: 0;
}
.communities-sidebar li a, .communities-sidebar li button {
  cursor: pointer;
  display: block;
  width: calc(var(--communities-sidebar-width) - 16px);
  height: calc(var(--communities-sidebar-width) - 16px);
  border-radius: 50%;
  background-size: cover;
  margin-bottom: 8px;
}
.communities-sidebar li:active {
  animation: long-press-hint 0.3s ease-out forwards;
}
.communities-sidebar .community a {
  background-color: var(--gray);
}
.communities-sidebar .icon-bubble {
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}
.communities-sidebar .icon-bubble:hover {
  color: white;
}
.communities-sidebar .material-symbols-outlined {
  font-size: 28px;
}

.breadcrumbs {
  background: var(--bg-on);
  display: flex;
  align-items: center;
  position: fixed;
  border-bottom: 1px solid var(--border);
  height: var(--breadcrumbs-height);
  top: 0;
  right: 0;
  width: 100vw;
  z-index: 2;
}
.breadcrumbs h1 {
  text-align: center;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}
.breadcrumbs .back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  height: var(--breadcrumbs-height);
  width: var(--breadcrumbs-height);
}
@media screen and (min-width: 666px) {
  .breadcrumbs .back-button {
    display: none;
  }
}

.community-root {
  --rooms-sidebar-min-width: 175px;
  --rooms-sidebar-width: 20vw;
  display: flex;
}
@media screen and (min-width: 666px) {
  .community-root {
    padding-left: max(var(--rooms-sidebar-min-width), var(--rooms-sidebar-width));
  }
}
.community-root > article {
  width: 100%;
  flex-grow: 1;
  flex-shrink: 1;
  position: relative;
}

.rooms-sidebar {
  transition: left 0.2s linear;
  position: fixed;
  z-index: 3;
  top: var(--breadcrumbs-height);
  height: 100vh;
  background: var(--bg-on);
  border-right: 1px solid var(--border);
  overflow: hidden;
  flex-grow: 0;
  flex-shrink: 0;
  width: max(var(--rooms-sidebar-min-width), var(--rooms-sidebar-width));
  left: calc((var(--communities-sidebar-width) + var(--rooms-sidebar-min-width)) * -1);
}
@media screen and (min-width: 666px) {
  .rooms-sidebar {
    left: var(--communities-sidebar-width);
  }
}
.app-root.showing-nav .rooms-sidebar {
  left: var(--communities-sidebar-width);
}
.rooms-sidebar > h3 {
  padding: 8px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.backup {
  margin: 24px 0;
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 24px;
}
.backup span {
  display: inline-block;
  margin-right: 8px;
}

.separator {
  margin: 32px 0;
  padding: 2px 0;
  width: 100%;
  border-top: 1px solid var(--border);
}

.room {
  position: relative;
}
.room a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  padding: 8px;
  color: var(--gray);
}
.room a span {
  display: block;
}
.room a span:first-child {
  margin-right: 4px;
}
.room .room-settings-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 2px;
  color: var(--gray);
  font-size: 18px;
  line-height: 1;
}
.room .room-settings-btn:hover {
  color: white;
}
.room.current a {
  color: #cee2d8;
  background: var(--bg-off);
}
.room.muted a {
  color: #555;
}
.room a.unread {
  color: #eafff4;
  font-weight: bold;
}
.room:active {
  animation: long-press-hint 0.3s ease-out forwards;
}
.room.sortable-chosen {
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.1);
}
.room.sortable-ghost {
  opacity: 0.4;
}

.emoji-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.emoji-preview {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes long-press-hint {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1.03);
  }
}
.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #999;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

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

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray);
  flex-shrink: 0;
}
.online-dot.online {
  background-color: #4caf50;
}

.no-cek-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.no-cek-notice .no-cek-icon {
  font-size: 64px;
  color: var(--gray);
  margin-bottom: 24px;
}
.no-cek-notice p {
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 24px;
}
.no-cek-notice .muted {
  font-size: 14px;
  opacity: 0.6;
}

.shortcuts {
  background: var(--bg-off);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (min-width: 666px) {
  .shortcuts {
    justify-content: space-evenly;
  }
}
.shortcuts a, .shortcuts button {
  cursor: pointer;
  padding: 0;
  border: 0;
  font-size: 32px;
  background: transparent;
  display: block;
  color: var(--gray);
}
.shortcuts a:hover, .shortcuts button:hover {
  color: white;
}

.key-table td {
  padding: 2px 8px;
}

.form-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.form-section:last-child {
  border: 0;
}

.role-badge {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--bg-on);
  color: var(--gray);
  margin-left: auto;
}
.role-badge.creator {
  background: var(--primary);
  color: white;
}

.role-select {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-off);
  color: var(--text);
  cursor: pointer;
}

.messages {
  padding-top: 50px;
  padding-bottom: 232px;
}

.message {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  position: relative;
  z-index: 0;
}
.message:first-child {
  border-top: 0;
}
.message:nth-child(1 of .unread) {
  border-top: 3px solid var(--primary);
  padding-top: 24px;
}
.message:nth-child(1 of .unread)::before {
  content: "New Messages";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--primary);
}
.message:hover .actions, .message.context-open .actions {
  display: block;
}
.message.context-open {
  z-index: 20;
}
.message:not(.editing) + .message.grouped:not(.editing) {
  border-top: 0;
  padding-top: 0;
}
.message:not(.editing) + .message.grouped:not(.editing) .avatar {
  opacity: 0;
  height: 0;
}
.message:not(.editing) + .message.grouped:not(.editing) .meta {
  display: none;
}
.message.first-of-date {
  border-top: 2px solid var(--gray);
  padding-top: 24px;
  margin-top: 24px;
}
.message.first-of-date .dateline {
  display: block;
}
.message.deleted {
  display: none;
}
.message.emoji-only [data-role=emoji] {
  font-size: 64px;
  line-height: 1;
}
.message.emoji-only .custom-emoji {
  width: 64px;
  height: 64px;
}
.message.editing {
  background-color: var(--border);
  border-top: 3px solid var(--orange);
  padding-top: 24px;
}
.message.editing::before {
  content: "Editing";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--orange);
}
.message.mentioned {
  background-color: #2c3932;
  border-left: 3px solid var(--primary);
  padding-left: 13px;
}
.message.flagged {
  background-color: #3d2828;
  border-left: 3px solid var(--red);
  padding-left: 13px;
}
.message.expiring {
  background-color: var(--bg-on);
}
.message.expiring .expiring-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-style: italic;
  font-size: 14px;
}
.message.expiring .expiring-notice .material-symbols-outlined {
  font-size: 18px;
  color: var(--gray);
}
.message.expiring .expiring-open {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-style: italic;
  font-size: 14px;
  text-align: left;
}
.message.expiring .expiring-open:hover {
  color: var(--hover);
}
.message .dateline {
  display: none;
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--gray);
}
.message .avatar {
  margin-right: 16px;
  width: 50px;
}
.message .avatar .img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: url() center center no-repeat;
  background-color: #999;
  background-size: cover;
}
.message .rich-link {
  max-width: 450px;
}
.message .body {
  display: flex;
  min-height: 24px;
}
.message .edited-tag {
  font-size: 12px;
  color: var(--gray);
}
.message .actions {
  display: none;
  position: absolute;
  top: -16px;
  right: 16px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.message .actions > ul {
  display: flex;
}
.message .actions > ul > li {
  padding: 0 4px;
}
.message .actions > ul > li, .message .actions > ul > li > button, .message .actions > ul li > button > span {
  display: block;
}
.message emoji-picker {
  width: 90vw;
  height: 400px;
}
@media screen and (min-width: 480px) {
  .message emoji-picker {
    width: 300px;
  }
}
.message .picker {
  z-index: 101;
  position: fixed;
  top: 64px;
  left: 5vw;
}
@media screen and (min-width: 480px) {
  .message .picker {
    position: absolute;
    top: auto;
    left: auto;
    bottom: 0;
    right: 0;
  }
}
.message .picker.hide {
  display: none;
}
.message .emoji-picking {
  position: relative;
}
.message .context-root {
  position: relative;
}
.message .context-root > button, .message .context-root > button > span {
  display: block;
}
.message .notice {
  color: var(--gray);
  font-style: italic;
  font-size: 14px;
}
.message .decrypt-error {
  display: flex;
  align-items: center;
  gap: 6px;
}
.message .decrypt-error .material-symbols-outlined {
  font-size: 16px;
}
.message .decrypt-error .reload-btn {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  font-style: italic;
  padding: 0;
  text-decoration: underline;
}
.message .flagged-notice {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
}
.message .flagged-notice .material-symbols-outlined {
  font-size: 16px;
}
.message .meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  margin-bottom: 4px;
}
.message .meta .username {
  font-weight: 700;
}
.message .meta .date {
  font-size: 12px;
  user-select: none;
}
.message .text {
  vertical-align: middle;
  font-size: 16px;
  line-height: 1.3;
}
.message .thumbs {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
}
.message .thumb {
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  margin-right: 8px;
  width: 180px;
  height: 180px;
  background: transparent center center no-repeat;
  background-size: cover;
  user-select: none;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.message .thumb.lock {
  background-color: var(--gray);
}
.message span.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.message span.thumb .material-symbols-outlined {
  font-size: 64px;
}
.message .thumb.video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.message .thumb.video-thumb .play-icon {
  position: absolute;
  font-size: 48px;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.message [data-role=emoji], .base [data-role=emoji] {
  font-size: 24px;
  line-height: 27px;
  vertical-align: middle;
}
.message .custom-emoji, .base .custom-emoji {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
.message [data-role=mention], .base [data-role=mention] {
  vertical-align: middle;
  color: #6bb98a;
  font-weight: bold;
}
.message [data-role=spoiler], .base [data-role=spoiler] {
  background-color: var(--gray);
  color: transparent;
  border-radius: 3px;
  padding: 0 2px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.message [data-role=spoiler].revealed, .base [data-role=spoiler].revealed {
  color: inherit;
  background-color: rgba(128, 128, 128, 0.15);
}

.rich-link-wrap {
  position: relative;
}
.rich-link-wrap button {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
}

.rich-link {
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-off);
}
.rich-link h3 {
  margin: 0;
  font-size: 18px;
  color: white;
}
.rich-link .text {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--gray);
}
.rich-link img {
  max-height: 40px;
  max-width: 80px;
}
.rich-link .embed-site-name {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.unfurl-embed {
  display: block;
  max-width: 450px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  background: var(--bg-off);
  text-decoration: none;
  color: inherit;
}
.unfurl-embed:hover {
  background: var(--bg-on);
}
.unfurl-embed h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: white;
}

.embed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.embed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.embed-byline {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.embed-byline strong {
  color: white;
}

.embed-handle {
  color: var(--gray);
  font-size: 13px;
}

.embed-title {
  font-size: 16px;
  color: white;
  margin: 0 0 4px;
}

.embed-text {
  font-size: 14px;
  color: var(--body);
  margin: 0 0 8px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.embed-media {
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.embed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.embed-media img:only-child {
  grid-column: 1/-1;
  max-height: 300px;
  object-fit: contain;
  object-position: left;
}

.embed-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
}

.embed-platform {
  text-transform: capitalize;
}

.embed-timestamp::before {
  content: "·";
  margin-right: 8px;
}

.video-embed .embed-thumbnail-wrap {
  position: relative;
  margin-bottom: 8px;
}
.video-embed .embed-thumbnail-wrap img {
  width: 100%;
  border-radius: 8px;
}
.video-embed .embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}
.video-embed .embed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.video-embed .embed-info h3 {
  font-size: 15px;
  margin: 0;
}
.video-embed .embed-channel {
  font-size: 13px;
  color: var(--gray);
}

.rich-link-embed {
  max-width: 450px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--gray);
  background: var(--bg-off);
  margin-bottom: 8px;
}
.rich-link-embed.bluesky {
  border-left-color: #0085ff;
}
.rich-link-embed.twitter {
  border-left-color: #000;
}
.rich-link-embed.reddit {
  border-left-color: #ff4500;
}
.rich-link-embed h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: white;
}
.rich-link-embed .embed-text {
  font-size: 13px;
  color: var(--body);
  margin: 0 0 6px;
  line-height: 1.3;
}
.rich-link-embed .embed-thumbnail {
  max-width: 100%;
  border-radius: 6px;
}
.rich-link-embed .embed-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rich-link-embed .embed-info span {
  font-size: 12px;
  color: var(--gray);
}

.reply-area {
  padding: 0 16px 32px;
  position: fixed;
  background: var(--bg);
  bottom: 0;
  z-index: 1;
  right: 0;
  width: 100%;
}
@media screen and (min-width: 666px) {
  .reply-area {
    padding-bottom: 16px;
    width: calc(100% - var(--communities-sidebar-width) - max(var(--rooms-sidebar-min-width), var(--rooms-sidebar-width)));
  }
}
@media screen and (min-width: 666px) {
  .reply-area.thread-open {
    width: calc(100% - var(--communities-sidebar-width) - max(var(--rooms-sidebar-min-width), var(--rooms-sidebar-width)) - var(--thread-panel-width));
    right: var(--thread-panel-width);
  }
}

.no-send-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--gray);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.no-send-notice .material-symbols-outlined {
  font-size: 18px;
}

.reply-button {
  --buffer-size: 0px;
  position: absolute;
  right: calc(var(--buffer-size) / 2);
  bottom: calc(var(--buffer-size) / 2);
}
.reply-button .btn {
  border-radius: 50%;
  padding: 0;
  width: calc(var(--message-input-height) - var(--buffer-size));
  height: calc(var(--message-input-height) - var(--buffer-size));
}

.message-autocomplete {
  position: absolute;
  left: 0;
  bottom: 200px;
  width: 100%;
  padding: 16px;
}
.message-autocomplete li {
  border-bottom: 1px solid var(--border);
}
.message-autocomplete li:first-child button {
  border-radius: 8px 8px 0 0;
}
.message-autocomplete li:last-child {
  border-bottom: 0;
}
.message-autocomplete li:last-child button {
  border-radius: 0 0 8px 8px;
}
.message-autocomplete button {
  background: var(--bg-off);
  padding: 12px 16px;
  border: 0;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 18px;
}
.message-autocomplete button img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.upload-progress {
  position: relative;
  height: 24px;
  background: var(--bg-off);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.upload-progress .upload-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.2s ease;
  border-radius: 4px;
}
.upload-progress .upload-progress-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  color: var(--text);
}

.message-input {
  --message-input-height: 46px;
  position: relative;
}
.message-input.expiring-content::before {
  content: "This will be an expiring message";
  position: absolute;
  top: -18px;
  right: 4px;
  font-size: 13px;
  color: var(--gray);
}
.message-input .input-spacer {
  padding: 0 64px 0 48px;
}
.message-input .pell-content {
  height: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  min-height: var(--message-input-height);
  max-height: 200px;
  overflow-y: auto;
  line-height: 22px;
  padding: 12px 16px;
  border-radius: 23px;
}
.message-input.expiring-content .pell-content {
  background-color: var(--bg-on);
  border-color: var(--expire);
}
.message-input .pell-content [data-role=spoiler] {
  background-color: #181818;
  color: var(--gray);
  border-radius: 3px;
  padding: 0 2px;
}
.message-input .plus-menu-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
}
.message-input .plus-menu-wrapper .plus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: var(--message-input-height);
  border: 0;
  background-color: transparent;
  cursor: pointer;
}
.message-input .plus-menu-wrapper .context-container {
  background: var(--bg);
  position: absolute;
  bottom: 8px;
  left: 36px;
  top: auto;
}
.message-input .plus-menu-wrapper .context-menu button, .message-input .plus-menu-wrapper .context-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  color: var(--body);
}
.message-input .plus-menu-wrapper .context-menu button .i, .message-input .plus-menu-wrapper .context-menu a .i {
  margin-right: 4px;
  color: var(--primary);
}
.message-input .plus-menu-wrapper .context-menu button .exp, .message-input .plus-menu-wrapper .context-menu a .exp {
  color: var(--expire);
}
.message-input.busy .pell-content {
  background: var(--border);
}

.btn-expiring {
  background-color: var(--expire);
}

.unsent-photos {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.unsent-photos .photo {
  position: relative;
}
.unsent-photos .btn {
  position: absolute;
  top: -12px;
  right: -12px;
  text-shadow: 0px 0px 5px var(--bg-on);
}
.unsent-photos img {
  border-radius: 4px;
  height: auto;
}
.unsent-photos img.thumb-vertical {
  width: 64px;
}
.unsent-photos img.thumb-square {
  width: 72px;
}
.unsent-photos img.thumb-horizontal {
  width: 84px;
}
.unsent-photos .video-unsent {
  display: flex;
  align-items: center;
  justify-content: center;
}
.unsent-photos .video-unsent .play-icon {
  position: absolute;
  font-size: 32px;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.reply-button .upload-input {
  pointer-events: none;
}

.base {
  vertical-align: middle;
  font-size: 16px;
  line-height: 1.3;
}
.base b {
  font-weight: 700;
}
.base u {
  text-decoration: underline;
}
.base i {
  font-style: italic;
}
.base ul, .base ol {
  padding-left: 24px;
}
.base ul li {
  list-style: disc;
}
.base ol li {
  list-style: decimal;
}
.base li {
  margin-bottom: 4px;
  word-wrap: break-word;
}
.base pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 16px;
  display: block;
  padding: 8px;
  margin-bottom: 16px;
  background-color: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
}
.base code {
  font-size: 16px;
  display: inline-block;
  background-color: var(--bg-off);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 4px;
  font-family: var(--mono);
}
.base blockquote {
  display: block;
  border-left: 3px solid var(--gray);
  padding-left: 12px;
  margin-bottom: 16px;
}
.base s, .base strike {
  text-decoration: line-through;
}

.pop-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
}
.pop-bg.show {
  display: block;
}

.context-container {
  display: none;
  position: absolute;
  border: 1px solid var(--border);
  background: var(--bg-on);
  border-radius: 8px;
  top: 0;
  right: 0;
  width: 200px;
  z-index: 101;
}
.context-container.show {
  display: block;
}

.context-menu li {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.context-menu li:last-child {
  border: 0;
}
.context-menu button, .context-menu a {
  display: block;
  text-align: left;
  width: 100%;
  background: transparent;
  padding: 16px;
  border: 0;
  color: var(--primary);
  cursor: pointer;
}
.context-menu button:hover, .context-menu a:hover {
  color: var(--hover);
}
.context-menu .delete-button button, .context-menu .delete-button a {
  color: var(--red);
}
.context-menu .delete-button button:hover, .context-menu .delete-button a:hover {
  color: #dd0101;
}

.scroll-shortcut {
  position: absolute;
  top: -65px;
  right: 16px;
  transition: opacity 0.1s linear;
}
.scroll-shortcut.hidden {
  opacity: 0;
  pointer-events: none;
}

.message .reacts {
  margin-top: 8px;
  position: relative;
  display: flex;
  align-items: center;
}
.message .reacts .react {
  font-size: 24px;
  padding: 4px 10px;
  line-height: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-right: 4px;
  display: flex;
  align-items: center;
}
.message .reacts .react.mine {
  background: #070707;
}
.message .reacts .react:hover {
  background: var(--border);
}
.message .reacts .react span {
  color: var(--gray);
  font-size: 18px;
  display: block;
  margin-left: 4px;
}
.message .reacts .react img {
  width: 24px;
  height: 24px;
}
.message .reacts .picker {
  right: auto;
  left: 0;
}
.message .reacts .btn.btn-icon {
  padding: 4px 10px;
  height: 34px;
  display: block;
  line-height: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.message .reacts .btn.btn-icon:hover {
  background: var(--border);
}

.gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  padding: 32px;
  z-index: 5;
}
.gallery.show {
  display: block;
}
.gallery .img {
  position: relative;
  background: transparent url() center/contain no-repeat;
  width: 100%;
  height: 100%;
}
.gallery .close-button {
  position: absolute;
  top: 16px;
  right: 16px;
}
.gallery .left-button {
  position: absolute;
  bottom: 64px;
  left: 16px;
}
.gallery .right-button {
  position: absolute;
  bottom: 64px;
  right: 16px;
}
.gallery .gallery-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logs {
  overflow: scroll;
  max-height: 90vh;
}

.sync-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(195, 0, 0, 0.15);
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red);
}
.sync-error .material-symbols-outlined {
  font-size: 20px;
}

.sync-progress {
  text-align: center;
  padding: 16px 0;
}

.sync-phase {
  font-size: 16px;
  margin-bottom: 12px;
}

.sync-detail {
  color: var(--gray);
  font-size: 14px;
}

.sync-bar-wrapper {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.sync-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.sync-hint {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.sync-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  color: var(--gray);
}
.sync-empty .material-symbols-outlined {
  font-size: 24px;
}

.sync-peer-list li {
  border-bottom: 1px solid var(--border);
}
.sync-peer-list li:last-child {
  border-bottom: 0;
}

.sync-peer-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--body);
  text-align: left;
  border-radius: 8px;
}
.sync-peer-button:hover {
  background: var(--bg-off);
}
.sync-peer-button .peer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sync-peer-button .peer-id {
  font-weight: 700;
}
.sync-peer-button .peer-count {
  font-size: 13px;
  color: var(--gray);
}

.room-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 12px;
  color: var(--gray);
}

.room-loading-icon {
  font-size: 36px;
  animation: room-spin 1.2s linear infinite;
}

.room-loading-text {
  font-size: 14px;
}

@keyframes room-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.server-syncing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1;
  border-radius: 16px;
  color: var(--gray);
  background: var(--bg-on);
  position: fixed;
  z-index: 3;
  top: calc(var(--breadcrumbs-height) + 16px);
  right: 16px;
}

.server-syncing-icon {
  font-size: 18px;
  animation: room-spin 1.2s linear infinite;
}

:root {
  --thread-panel-width: 400px;
}

@media screen and (min-width: 666px) {
  .messages.thread-open {
    margin-right: var(--thread-panel-width);
  }
}

.thread-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--primary);
  font-size: 13px;
  text-align: left;
  width: auto;
}
.thread-preview:hover {
  background: var(--bg-off);
}
.thread-preview.unread {
  font-weight: bold;
}
.thread-preview .thread-preview-avatar .img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-color: #999;
}
.thread-preview .thread-preview-count {
  white-space: nowrap;
}
.thread-preview .thread-preview-snippet {
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50vw;
}

.thread-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: var(--bg);
  z-index: 2;
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 666px) {
  .thread-panel {
    border-left: 1px solid var(--border);
    width: var(--thread-panel-width);
    z-index: 3;
  }
}

.thread-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--breadcrumbs-height);
  background: var(--bg-on);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.thread-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.thread-panel-header .btn-icon {
  width: var(--breadcrumbs-height);
  height: var(--breadcrumbs-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media screen and (min-width: 666px) {
  .thread-panel-header .btn-menu {
    pointer-events: none;
    opacity: 0;
  }
}

.thread-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}
.thread-panel-messages .thread-message {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  position: relative;
  z-index: 0;
}
.thread-panel-messages .thread-message:first-child {
  border-top: 0;
}
.thread-panel-messages .thread-message:hover .actions, .thread-panel-messages .thread-message.context-open .actions {
  display: block;
}
.thread-panel-messages .thread-message.context-open {
  z-index: 20;
}
.thread-panel-messages .thread-message:not(.editing) + .thread-panel-messages .thread-message.grouped:not(.editing) {
  border-top: 0;
  padding-top: 0;
}
.thread-panel-messages .thread-message:not(.editing) + .thread-panel-messages .thread-message.grouped:not(.editing) .avatar {
  opacity: 0;
  height: 0;
}
.thread-panel-messages .thread-message:not(.editing) + .thread-panel-messages .thread-message.grouped:not(.editing) .meta {
  display: none;
}
.thread-panel-messages .thread-message.first-of-date {
  border-top: 2px solid var(--gray);
  padding-top: 24px;
  margin-top: 24px;
}
.thread-panel-messages .thread-message.first-of-date .dateline {
  display: block;
}
.thread-panel-messages .thread-message.deleted {
  display: none;
}
.thread-panel-messages .thread-message.editing {
  background-color: var(--border);
  border-top: 3px solid var(--orange);
  padding-top: 24px;
}
.thread-panel-messages .thread-message.editing::before {
  content: "Editing";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--orange);
}
.thread-panel-messages .thread-message.emoji-only [data-role=emoji] {
  font-size: 64px;
  line-height: 1;
}
.thread-panel-messages .thread-message.emoji-only .custom-emoji {
  width: 64px;
  height: 64px;
}
.thread-panel-messages .thread-message.mentioned {
  background-color: #2c3932;
  border-left: 3px solid var(--primary);
  padding-left: 13px;
}
.thread-panel-messages .thread-message.flagged {
  background-color: #3d2828;
  border-left: 3px solid var(--red);
  padding-left: 13px;
}
.thread-panel-messages .thread-message.expiring {
  background-color: var(--bg-on);
}
.thread-panel-messages .thread-message .dateline {
  display: none;
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--gray);
}
.thread-panel-messages .thread-message .avatar {
  margin-right: 12px;
  width: 36px;
}
.thread-panel-messages .thread-message .avatar .img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url() center center no-repeat;
  background-color: #999;
  background-size: cover;
}
.thread-panel-messages .thread-message.thread-root .avatar {
  width: 50px;
  margin-right: 16px;
}
.thread-panel-messages .thread-message.thread-root .avatar .img {
  width: 50px;
  height: 50px;
}
.thread-panel-messages .thread-message .actions {
  display: none;
  position: absolute;
  top: -16px;
  right: 16px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.thread-panel-messages .thread-message .actions > ul {
  display: flex;
}
.thread-panel-messages .thread-message .actions > ul > li {
  padding: 0 4px;
}
.thread-panel-messages .thread-message .actions > ul > li, .thread-panel-messages .thread-message .actions > ul > li > button, .thread-panel-messages .thread-message .actions > ul li > button > span {
  display: block;
}

.thread-separator {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--gray);
  font-size: 13px;
  background: var(--bg-off);
}

.thread-panel-reply {
  flex-shrink: 0;
  padding: 0 16px 32px;
}
@media screen and (min-width: 666px) {
  .thread-panel-reply {
    padding-bottom: 16px;
  }
}

.thread-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 12px;
  color: var(--gray);
}
