/* Header popovers and mobile message pages share the same live inbox. */
.inbox-panel {
  --inbox-bg: #202024;
  --inbox-text: #f5f5f6;
  --inbox-muted: #929298;
  position: fixed;
  z-index: 66;
  width: 420px;
  max-width: calc(100vw - 24px);
  bottom: auto;
  overflow: hidden;
  color: var(--inbox-text);
  text-align: left;
  isolation: isolate;
  -webkit-text-size-adjust: 100%;
}

.inbox-panel[hidden],
.inbox-panel [hidden],
.sheet-backdrop[hidden] {
  display: none !important;
}

.inbox-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(560px, var(--inbox-max-height, calc(100dvh - 90px)));
  min-height: 0;
  max-height: var(--inbox-max-height, calc(100dvh - 90px));
  overflow: hidden;
  border: 1px solid #ffffff0a;
  border-radius: 16px;
  background: var(--inbox-bg);
  box-shadow: 0 8px 36px #0004;
}

.inbox-panel.is-entering .inbox-card {
  animation: inbox-popover-in 240ms cubic-bezier(.2, .75, .25, 1) both;
}

.inbox-panel.is-closing {
  pointer-events: none;
}

.inbox-panel.is-closing .inbox-card {
  animation: inbox-popover-out 180ms ease-in both;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 66px;
  padding: 13px 16px 8px 22px;
  border: 0;
}

.inbox-header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f5f5f6;
  font-size: 19px;
  font-weight: 650;
  line-height: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1px;
  margin-left: auto;
}

.inbox-close,
.inbox-back {
  display: grid;
  place-items: center;
  position: static;
  flex: 0 0 auto;
  width: 34px;
  height: 36px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b1b1b8;
}

.inbox-close:hover,
.inbox-back:hover {
  background: #ffffff0a;
  color: #fff;
}

.inbox-close svg,
.inbox-back svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.inbox-back svg {
  transform: rotate(180deg);
}

.inbox-panel button:focus-visible {
  outline: 2px solid #ff7894;
  outline-offset: -3px;
}

.inbox-body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff24 transparent;
}

.inbox-category-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 0;
  width: 100%;
  margin: 0 0 6px;
  padding: 0 17px;
  overflow-x: auto;
  border-bottom: 1px solid #ffffff0b;
  scrollbar-width: none;
}

.inbox-category-tabs::-webkit-scrollbar {
  display: none;
}

.inbox-category-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 45px;
  padding: 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9999a0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.inbox-category-tabs button[aria-selected="true"],
.inbox-category-tabs button[aria-pressed="true"] {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.inbox-category-tabs button[aria-selected="true"]::after,
.inbox-category-tabs button[aria-pressed="true"]::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #ff3159;
  content: "";
  transform: translateX(-50%);
}

.inbox-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 16px 14px 24px;
}

.inbox-shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 84px;
  padding: 0 2px;
  color: #dcdce1;
  font-size: 12px;
  line-height: 1.5;
}

.inbox-shortcut-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #ff464f;
  color: #fff;
}

.inbox-shortcut-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.9;
}

.inbox-shortcut.likes .inbox-shortcut-icon { background: #ff484f; }
.inbox-shortcut.follows .inbox-shortcut-icon { background: #ff972a; }
.inbox-shortcut.comments .inbox-shortcut-icon { background: #29c681; }
.inbox-shortcut.system .inbox-shortcut-icon { background: #448aff; }
.inbox-shortcut:hover .inbox-shortcut-icon { filter: brightness(1.08); }

.inbox-shortcut.likes .inbox-shortcut-icon svg {
  fill: currentColor;
  stroke-width: 1.3;
}

.inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 20px;
  background: #ff335b;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
}

.inbox-shortcut > .inbox-badge,
.inbox-shortcut-icon > .inbox-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  border: 2px solid var(--inbox-bg);
}

.inbox-shortcut > .inbox-badge {
  top: 0;
  right: calc(50% - 29px);
}

.inbox-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 22px 10px;
  color: #8f8f97;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.inbox-section-label button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 32px;
  margin: -6px -4px -6px 0;
  padding: 0 4px;
  color: #a1a1aa;
  font-size: 12px;
}

.inbox-section-label button > span {
  display: inline-flex;
  align-items: center;
}

.inbox-section-label button svg {
  width: 18px;
  height: 18px;
}

.inbox-start-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: #ff315911;
  color: #ff5779;
  font-size: 13px;
  font-weight: 500;
}

.inbox-start-chat:hover {
  background: #ff31591c;
  color: #ff7591;
}

.inbox-loading {
  margin: 0;
  padding: 55px 20px;
  color: #8b8b95;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

.inbox-conversation-list {
  display: flex;
  flex-direction: column;
}

.inbox-conversation,
.inbox-notification,
.inbox-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 12px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f5f7;
  text-align: left;
}

.inbox-conversation:hover,
button.inbox-notification:hover,
button.inbox-search-result:hover {
  background: #ffffff05;
}

.inbox-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: hsl(var(--avatar-hue, 230) 18% 29%);
  color: #f4f4f6;
  object-fit: cover;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.inbox-avatar svg {
  width: 25px;
  height: 25px;
}

.inbox-row-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.inbox-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.inbox-row-heading strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f2f2f4;
  font-size: 14px;
  font-weight: 550;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-row-heading time {
  flex: 0 0 auto;
  color: #77777f;
  font-size: 10px;
  line-height: 22px;
}

.inbox-row-copy > p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #96969e;
  font-size: 12px;
  font-weight: 400;
  line-height: 19px;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.inbox-notification .inbox-row-copy > p {
  -webkit-line-clamp: 2;
}

.inbox-comment-preview {
  display: -webkit-box;
  margin-top: 7px;
  padding-left: 8px;
  overflow: hidden;
  border-left: 2px solid #ffffff20;
  color: #b9b9c1;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inbox-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff335b;
}

.inbox-video-thumb {
  flex: 0 0 auto;
  width: 43px;
  height: 58px;
  border-radius: 4px;
  background: #2b2c31;
  object-fit: cover;
}

.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 40px 28px 46px;
  color: #8d8d96;
  text-align: center;
}

.inbox-empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border: 1px solid #ffffff06;
  border-radius: 50%;
  background: #ffffff05;
  color: #66666f;
}

.inbox-empty-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}

.inbox-empty h3 {
  margin: 0;
  color: #c0c0c7;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
}

.inbox-empty p {
  max-width: 280px;
  margin: 8px 0 0;
  color: #808089;
  font-size: 12px;
  line-height: 1.8;
}

.inbox-login {
  display: block;
  flex-shrink: 0;
  width: 100%;
  max-width: 210px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #ff2c55;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  line-height: 38px;
  text-align: center;
}

.inbox-empty .inbox-login {
  width: 148px;
  margin-top: 25px;
}

.inbox-login:hover {
  background: #ff4b6f;
}

/* Logged-out desktop buttons keep the compact login prompt from the reference. */
.inbox-panel[data-guest="true"] {
  width: 240px;
}

.inbox-panel[data-guest="true"] .inbox-card {
  height: auto;
  min-height: 122px;
  border-radius: 16px;
  background: #1f1f1f;
}

.inbox-panel[data-guest="true"] .inbox-header {
  min-height: 0;
  padding: 0;
}

.inbox-panel[data-guest="true"] .inbox-header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.inbox-panel[data-guest="true"] #inbox-close {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 1;
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 6px;
  color: #85858d;
}

.inbox-panel[data-guest="true"] #inbox-close svg {
  width: 14px;
  height: 14px;
}

.inbox-panel[data-guest="true"] .inbox-body {
  display: block;
  flex: 0 0 auto;
  padding: 24px 15px 15px;
}

.inbox-guest-description {
  margin: 0 0 24px;
  color: #bdbdc4;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.inbox-panel[data-guest="true"] > .inbox-card > .inbox-body > .inbox-login {
  height: 36px;
  max-width: none;
  line-height: 36px;
}

/* A conversation keeps its composer visible while its messages scroll. */
.inbox-panel[data-view="conversation"] .inbox-body {
  display: flex;
  padding: 0;
  overflow: hidden;
}

.inbox-chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.inbox-chat-messages {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 22px;
  min-height: 0;
  padding: 22px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.inbox-chat-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
}

.inbox-chat-date {
  flex: 0 0 auto;
  align-self: center;
  margin: -4px 0;
  color: #7e7e88;
  font-size: 10px;
  line-height: 20px;
  text-align: center;
}

.inbox-chat-message .inbox-avatar,
.inbox-chat-message > .avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #37383f;
  object-fit: cover;
  font-size: 13px;
}

.inbox-chat-bubble {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 74px);
  min-width: 55px;
  padding: 10px 12px 8px;
  border-radius: 0 10px 10px 10px;
  background: #303037;
  color: #f0f0f3;
}

.inbox-chat-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inbox-chat-bubble time {
  display: block;
  margin-top: 5px;
  color: #93939d;
  font-size: 9px;
  line-height: 1.5;
}

.inbox-chat-message.is-own {
  flex-direction: row-reverse;
}

.inbox-chat-message.is-own .inbox-chat-bubble {
  border-radius: 10px 0 10px 10px;
  background: #ff315c;
  color: #fff;
}

.inbox-chat-message.is-own .inbox-chat-bubble time {
  color: #ffe2e9;
}

.inbox-composer {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  width: 100%;
  padding: 13px 14px;
  border-top: 1px solid #ffffff08;
  background: #222226;
}

.inbox-composer input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #323238;
  color: #fff;
  font-size: 13px;
}

.inbox-composer input::placeholder,
.inbox-search-form input::placeholder {
  color: #7c7c86;
}

.inbox-composer button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 36px;
  height: 38px;
  padding: 0 7px;
  border-radius: 7px;
  color: #d1d1d8;
}

.inbox-composer button svg {
  width: 24px;
  height: 24px;
}

.inbox-composer button[type="submit"] {
  padding: 0 13px;
  background: #ff3159;
  color: #fff;
  font-size: 12px;
}

.inbox-composer button:disabled {
  cursor: default;
  opacity: .45;
}

.inbox-composer .inbox-emoji-toggle {
  min-width: 36px;
  padding: 0;
  color: #dfdfe6;
  font-size: 27px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1;
}

.inbox-emoji-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 2px;
  padding: 9px 14px;
  border-top: 1px solid #ffffff08;
  background: #26262b;
}

.inbox-emoji-picker button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 42px;
  padding: 0;
  border-radius: 6px;
  font-size: 25px;
  line-height: 1;
}

.inbox-emoji-picker button:hover {
  background: #ffffff09;
}

.inbox-search-form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 20px 16px;
}

.inbox-search-form input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #303036;
  color: #f5f5f6;
  font-size: 13px;
}

.inbox-search-form input:focus {
  border-color: #ffffff25;
}

.inbox-search-form button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 5px;
  color: #f1f1f4;
  font-size: 13px;
}

.inbox-search-form > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #9999a3;
}

.inbox-search-form > span svg {
  width: 20px;
  height: 20px;
}

.inbox-settings-list {
  padding: 0 22px 20px;
}

.inbox-settings-list .settings-row {
  min-height: 62px;
  margin: 0;
  font-size: 13px;
}

.inbox-settings-list .drawer-menu-action {
  min-height: 55px;
}

.inbox-setting-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% - 40px);
  min-height: 60px;
  margin: 0 20px;
  padding: 11px 0;
  border-bottom: 1px solid #ffffff0a;
  border-radius: 0;
  background: transparent;
  color: #dedee4;
  font-size: 13px;
  line-height: 22px;
  text-align: left;
}

.inbox-setting-row > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #a4a4af;
}

.inbox-setting-row svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.inbox-setting-row[role="switch"] {
  padding-right: 58px;
}

.inbox-setting-row[role="switch"]::before {
  position: absolute;
  top: calc(50% - 11px);
  right: 0;
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: #54545d;
  content: "";
  transition: background 160ms;
}

.inbox-setting-row[role="switch"]::after {
  position: absolute;
  top: calc(50% - 8px);
  right: 19px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms;
}

.inbox-setting-row[role="switch"][aria-checked="true"]::before {
  background: #ff3159;
}

.inbox-setting-row[role="switch"][aria-checked="true"]::after {
  transform: translateX(16px);
}

.inbox-settings-note {
  margin: 17px 22px;
  color: #777782;
  font-size: 11px;
  line-height: 1.8;
}

.inbox-badge:empty {
  position: absolute;
  width: 6px;
  min-width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 1;
}

#notice-btn,
#messages-btn,
#mobile-notice-btn {
  position: relative;
}

#notice-btn > .inbox-badge:empty,
#messages-btn > .inbox-badge:empty {
  top: -2px;
  right: 2px;
}

#mobile-notice-btn > .inbox-badge:empty {
  top: 12px;
  right: calc(50% - 22px);
}

.inbox-category-tabs .inbox-badge:empty {
  top: 7px;
  right: -2px;
}

.inbox-shortcut > .inbox-badge:empty {
  top: 0;
  right: calc(50% - 27px);
}

.inbox-shortcut-icon > .inbox-badge:empty {
  top: -2px;
  right: -2px;
}

.inbox-panel .inbox-body > .backend-status-note {
  margin: 16px 22px;
  font-size: 11px;
}

.sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 59;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0006;
  cursor: default;
  touch-action: none;
}

.share-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 0 16px;
  border-bottom: 1px solid #ffffff08;
}

.share-preview img {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 54px;
  border-radius: 5px;
  background: #34343b;
  object-fit: cover;
}

.share-preview strong {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #d2d2da;
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.share-action-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  gap: 8px;
  width: 100%;
  padding: 22px 0 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.share-action-grid::-webkit-scrollbar {
  display: none;
}

.share-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 64px;
  padding: 0;
  color: #c7c7ce;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.share-action > span:first-child {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #36363d;
  color: #ededf3;
}

.share-action svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.share-action:first-child > span:first-child {
  background: #f0f0f3;
  color: #28282e;
}

.share-action:nth-child(2) > span:first-child {
  background: #ff3159;
  color: #fff;
}

.share-action:nth-child(3) > span:first-child {
  color: #ffda67;
}

.share-action:hover > span:first-child {
  filter: brightness(1.12);
}

.share-cancel {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #2a2a30;
  color: #e5e5e9;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}

.share-cancel:hover {
  background: #303037;
}

@keyframes inbox-popover-in {
  from { opacity: 0; transform: translateY(-22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes inbox-popover-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-14px); }
}

@keyframes inbox-page-in {
  from { opacity: .75; transform: translateX(38px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes inbox-page-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(38px); }
}

@keyframes mobile-sheet-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes mobile-sheet-out {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

html[data-ui="mobile"] body.inbox-is-open .mobile-topbar,
  html[data-ui="mobile"] body.inbox-is-open .account-login-trigger {
    visibility: hidden;
    pointer-events: none;
  }

html[data-ui="mobile"] body.inbox-is-open .workspace {
    pointer-events: none;
  }

html[data-ui="mobile"] body.inbox-chat-open .mobile-tabbar {
    display: none;
  }

html[data-ui="mobile"] body.inbox-chat-open #header-inbox {
    bottom: var(--inbox-keyboard-inset, 0px);
  }

html[data-ui="mobile"] .inbox-panel #inbox-close,
  html[data-ui="mobile"] body.inbox-chat-open .inbox-header-actions > :not(#inbox-settings) {
    display: none;
  }

html[data-ui="mobile"] .inbox-panel,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] {
    --inbox-bg: #161619;
    top: 0 !important;
    right: 0 !important;
    bottom: var(--mobile-nav-height, 54px);
    left: 0 !important;
    width: 100%;
    max-width: none;
    background: var(--inbox-bg);
  }

html[data-ui="mobile"] .inbox-card,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-card {
    height: 100%;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: var(--inbox-bg);
    box-shadow: none;
  }

html[data-ui="mobile"] .inbox-panel.is-entering .inbox-card {
    animation: inbox-page-in 240ms cubic-bezier(.2, .75, .25, 1) both;
  }

html[data-ui="mobile"] .inbox-panel.is-closing .inbox-card {
    animation: inbox-page-out 220ms ease-in both;
  }

html[data-ui="mobile"] .inbox-header,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-header {
    gap: 4px;
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    padding: calc(9px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 8px max(19px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid #ffffff04;
    touch-action: none;
  }

html[data-ui="mobile"] .inbox-header h2,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-header h2 {
    position: static;
    flex: 1;
    width: auto;
    height: auto;
    overflow: hidden;
    clip-path: none;
    font-size: 23px;
    font-weight: 700;
    line-height: 44px;
  }

html[data-ui="mobile"] .inbox-panel[data-view="category"] .inbox-header,
  html[data-ui="mobile"] .inbox-panel[data-view="conversation"] .inbox-header,
  html[data-ui="mobile"] .inbox-panel[data-view="search"] .inbox-header,
  html[data-ui="mobile"] .inbox-panel[data-view="settings"] .inbox-header {
    padding-left: max(4px, env(safe-area-inset-left, 0px));
  }

html[data-ui="mobile"] .inbox-panel[data-view="category"] .inbox-header h2,
  html[data-ui="mobile"] .inbox-panel[data-view="conversation"] .inbox-header h2,
  html[data-ui="mobile"] .inbox-panel[data-view="search"] .inbox-header h2,
  html[data-ui="mobile"] .inbox-panel[data-view="settings"] .inbox-header h2 {
    font-size: 18px;
    font-weight: 600;
  }

html[data-ui="mobile"] .inbox-header-actions {
    gap: 0;
  }

html[data-ui="mobile"] .inbox-close,
  html[data-ui="mobile"] .inbox-back,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-close,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] #inbox-close {
    position: static;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 8px;
    color: #e2e2e7;
  }

html[data-ui="mobile"] .inbox-close svg,
  html[data-ui="mobile"] .inbox-back svg,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-close svg,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] #inbox-close svg {
    width: 24px;
    height: 24px;
  }

html[data-ui="mobile"] .inbox-body,
  html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 0 20px;
    overflow-x: hidden;
    overflow-y: auto;
  }

html[data-ui="mobile"] .inbox-panel[data-view="conversation"] .inbox-body {
    display: flex;
    padding: 0;
    overflow: hidden;
  }

html[data-ui="mobile"] .inbox-shortcuts {
    gap: 0;
    padding: 20px 11px 23px;
  }

html[data-ui="mobile"] .inbox-shortcut {
    gap: 12px;
    min-height: 88px;
    font-size: 12px;
  }

html[data-ui="mobile"] .inbox-shortcut-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

html[data-ui="mobile"] .inbox-shortcut-icon svg {
    width: 28px;
    height: 28px;
  }

html[data-ui="mobile"] .inbox-shortcut > .inbox-badge {
    top: 0;
    right: calc(50% - 33px);
  }

html[data-ui="mobile"] .inbox-shortcut > .inbox-badge:empty {
    top: 0;
    right: calc(50% - 30px);
  }

html[data-ui="mobile"] .inbox-category-tabs {
    justify-content: flex-start;
    gap: 21px;
    margin-bottom: 10px;
    padding: 0 19px;
  }

html[data-ui="mobile"] .inbox-category-tabs button {
    min-height: 48px;
    padding: 0 1px;
    font-size: 14px;
  }

html[data-ui="mobile"] .inbox-section-label {
    padding: 5px 20px 10px;
    color: #7e7e87;
    font-size: 12px;
  }

html[data-ui="mobile"] .inbox-conversation,
  html[data-ui="mobile"] .inbox-notification,
  html[data-ui="mobile"] .inbox-search-result {
    gap: 12px;
    min-height: 83px;
    padding: 12px 19px;
  }

html[data-ui="mobile"] .inbox-avatar {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }

html[data-ui="mobile"] .inbox-row-heading strong {
    font-size: 16px;
    font-weight: 550;
    line-height: 23px;
  }

html[data-ui="mobile"] .inbox-row-heading time {
    font-size: 11px;
  }

html[data-ui="mobile"] .inbox-row-copy > p {
    margin-top: 5px;
    color: #86868f;
    font-size: 13px;
    line-height: 20px;
  }

html[data-ui="mobile"] .inbox-comment-preview {
    margin-top: 7px;
    font-size: 13px;
  }

html[data-ui="mobile"] .inbox-video-thumb {
    width: 46px;
    height: 62px;
  }

html[data-ui="mobile"] .inbox-empty {
    min-height: 320px;
    padding: 42px 28px 55px;
  }

html[data-ui="mobile"] .inbox-empty-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    background: #ffffff04;
  }

html[data-ui="mobile"] .inbox-empty-icon svg {
    width: 34px;
    height: 34px;
  }

html[data-ui="mobile"] .inbox-empty h3 {
    color: #c8c8ce;
    font-size: 16px;
    font-weight: 500;
  }

html[data-ui="mobile"] .inbox-empty p {
    font-size: 13px;
    line-height: 1.8;
  }

html[data-ui="mobile"] .inbox-empty .inbox-login {
    width: 154px;
    height: 44px;
    margin-top: 27px;
    border-radius: 7px;
    font-size: 14px;
    line-height: 44px;
  }

html[data-ui="mobile"] .inbox-panel[data-guest="true"] .inbox-body > .inbox-guest-description {
    margin-top: max(90px, 20dvh);
    padding: 0 24px;
    font-size: 14px;
  }

html[data-ui="mobile"] .inbox-panel[data-guest="true"] > .inbox-card > .inbox-body > .inbox-login {
    width: 154px;
    height: 44px;
    margin: 24px auto;
    line-height: 44px;
  }

html[data-ui="mobile"] .inbox-chat-messages {
    gap: 24px;
    padding: 22px 15px;
  }

html[data-ui="mobile"] .inbox-chat-message .inbox-avatar,
  html[data-ui="mobile"] .inbox-chat-message > .avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

html[data-ui="mobile"] .inbox-chat-bubble {
    max-width: calc(100% - 89px);
    padding: 10px 13px 9px;
  }

html[data-ui="mobile"] .inbox-chat-bubble p {
    font-size: 15px;
    line-height: 1.6;
  }

html[data-ui="mobile"] .inbox-chat-bubble time {
    font-size: 10px;
  }

html[data-ui="mobile"] .inbox-composer {
    gap: 7px;
    padding: 10px max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    background: #1c1c20;
  }

html[data-ui="mobile"] .inbox-composer input,
  html[data-ui="mobile"] .inbox-search-form input {
    height: 42px;
    font-size: 16px;
  }

html[data-ui="mobile"] .inbox-composer button {
    height: 44px;
  }

html[data-ui="mobile"] .inbox-composer button[type="submit"] {
    font-size: 14px;
  }

html[data-ui="mobile"] .inbox-emoji-picker {
    padding: 10px 13px;
  }

html[data-ui="mobile"] .inbox-emoji-picker button {
    height: 46px;
    font-size: 27px;
  }

html[data-ui="mobile"] .inbox-search-form {
    padding: 9px 17px 16px;
  }

html[data-ui="mobile"] .inbox-search-form button {
    height: 44px;
    padding: 0 4px;
    font-size: 15px;
  }

html[data-ui="mobile"] .inbox-settings-list {
    padding: 0 20px 20px;
  }

html[data-ui="mobile"] .inbox-settings-list .settings-row,
  html[data-ui="mobile"] .inbox-settings-list .drawer-menu-action {
    min-height: 62px;
    font-size: 15px;
  }

html[data-ui="mobile"] .inbox-setting-row {
    min-height: 64px;
    font-size: 15px;
  }

html[data-ui="mobile"] .inbox-settings-note {
    font-size: 12px;
    line-height: 1.8;
  }

/* Comments, sharing and overflow actions rise from the bottom of the video. */

html[data-ui="mobile"] .sheet-backdrop:not([hidden]) {
    display: block;
  }

html[data-ui="mobile"] .drawer[data-view="comments"],
  html[data-ui="mobile"] .drawer[data-view="share"],
  html[data-ui="mobile"] .drawer[data-view="more"] {
    display: flex;
    flex-direction: column;
    top: auto;
    right: 0;
    bottom: var(--mobile-nav-height, 54px);
    left: 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--mobile-nav-height, 54px) - max(30px, env(safe-area-inset-top, 0px)));
    overflow: hidden;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #202024;
    box-shadow: 0 -12px 60px #0005;
    transform: none;
    overscroll-behavior: contain;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] {
    height: min(72dvh, 660px);
  }

html[data-ui="mobile"] .drawer[data-view="share"],
  html[data-ui="mobile"] .drawer[data-view="more"] {
    height: auto;
    min-height: 200px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"].is-entering,
  html[data-ui="mobile"] .drawer[data-view="share"].is-entering,
  html[data-ui="mobile"] .drawer[data-view="more"].is-entering {
    animation: mobile-sheet-in 280ms cubic-bezier(.2, .75, .25, 1) both;
  }

html[data-ui="mobile"] .drawer[data-view="comments"].is-closing,
  html[data-ui="mobile"] .drawer[data-view="share"].is-closing,
  html[data-ui="mobile"] .drawer[data-view="more"].is-closing {
    pointer-events: none;
    animation: mobile-sheet-out 220ms ease-in both;
  }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"])::before {
    display: block;
    flex: 0 0 auto;
    width: 32px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 5px;
    background: #ffffff25;
    content: "";
  }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"]) .drawer-header {
    position: relative;
    flex: 0 0 auto;
    justify-content: center;
    min-height: 48px;
    padding: 8px 58px 10px;
    border-bottom: 1px solid #ffffff07;
    touch-action: none;
  }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"]) .drawer-header h2 {
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
  }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"]) .drawer-header .icon-button {
    position: absolute;
    top: 0;
    right: 5px;
    width: 44px;
    height: 44px;
    padding: 12px;
    color: #a8a8b0;
  }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"]) .drawer-header .icon-button svg {
    width: 20px;
    height: 20px;
  }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"]) .drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px max(17px, env(safe-area-inset-right, 0px)) 18px max(17px, env(safe-area-inset-left, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-item {
    gap: 10px;
    padding: 14px 0;
    border: 0;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-avatar {
    width: 36px;
    height: 36px;
    background: #3b3b43;
    font-size: 13px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-content {
    font-size: 14px;
    line-height: 1.6;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-content strong {
    color: #9b9ba5;
    font-size: 12px;
    line-height: 20px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-content p {
    margin: 4px 0;
    color: #ededf1;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-content time {
    color: #73737d;
    font-size: 10px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-actions {
    gap: 18px;
    margin-top: 2px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-action {
    min-height: 32px;
    font-size: 11px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-input-row {
    gap: 9px;
    margin: 0 -17px -18px;
    padding: 11px 15px;
    border-top: 1px solid #ffffff08;
    background: #252529;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-input-row input {
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 22px;
    background: #343439;
    font-size: 16px;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-input-row .primary-btn {
    padding: 0 15px;
    border-radius: 7px;
    font-size: 13px;
  }

html[data-ui="mobile"] .drawer[data-view="more"] .drawer-menu-action {
    min-height: 58px;
    font-size: 14px;
  }

html[data-ui="mobile"] .drawer[data-view="share"] .share-link-input {
    height: 43px;
    font-size: 13px;
  }

html[data-ui="mobile"] .share-preview {
    gap: 12px;
    padding: 2px 0 16px;
  }

html[data-ui="mobile"] .share-preview img {
    width: 42px;
    height: 56px;
  }

html[data-ui="mobile"] .share-preview strong {
    font-size: 13px;
    line-height: 22px;
  }

html[data-ui="mobile"] .share-action-grid {
    grid-auto-columns: minmax(66px, 1fr);
    gap: 8px;
    padding: 23px 0 25px;
  }

html[data-ui="mobile"] .share-action {
    gap: 11px;
    min-width: 66px;
    font-size: 12px;
  }

html[data-ui="mobile"] .share-action > span:first-child {
    width: 52px;
    height: 52px;
  }

html[data-ui="mobile"] .share-action svg {
    width: 25px;
    height: 25px;
  }

html[data-ui="mobile"] .share-cancel {
    width: calc(100% + 34px);
    min-height: 58px;
    margin: 0 -17px -18px;
    padding: 13px 17px;
    border-top: 6px solid #19191d;
    border-radius: 0;
    background: #26262b;
    font-size: 15px;
    line-height: 26px;
  }

@media (max-height: 500px) {
  html[data-ui="mobile"] .drawer[data-view="comments"],
  html[data-ui="mobile"] .drawer[data-view="share"],
  html[data-ui="mobile"] .drawer[data-view="more"] {
    bottom: 0;
  }

  html[data-ui="mobile"] .drawer[data-view="comments"],
  html[data-ui="mobile"] .drawer[data-view="share"],
  html[data-ui="mobile"] .drawer[data-view="more"] {
    max-height: calc(100dvh - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inbox-panel .inbox-card,
  .drawer.is-entering,
  .drawer.is-closing {
    animation: none !important;
    transition: none !important;
  }

  .inbox-panel button {
    transition: none;
  }

  .inbox-setting-row::before,
  .inbox-setting-row::after {
    transition: none;
  }
}

html[data-ui="mobile"] .video-stage { touch-action: pinch-zoom; }

html[data-ui="mobile"] .drawer:is([data-view="comments"], [data-view="share"], [data-view="more"]) {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .drawer-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

html[data-ui="mobile"] .drawer[data-view="comments"] .comment-input-row {
    position: relative;
    flex: 0 0 auto;
    margin-top: auto;
  }

/* Desktop inbox is a toolbar popover; comments stay alongside the player. */
html[data-ui="desktop"] .inbox-panel {
  filter: drop-shadow(0 16px 28px #0003);
  color-scheme: dark;
}
html[data-ui="desktop"] .inbox-card {
  border-color: #ffffff12;
  border-radius: 12px;
  transform-origin: top center;
}
html[data-ui="desktop"] .inbox-panel:not([data-guest="true"]) .inbox-header {
  min-height: 62px;
  border-bottom: 1px solid #ffffff08;
  padding-bottom: 10px;
}
html[data-ui="desktop"] .inbox-panel:not([data-guest="true"]) .inbox-header h2 { font-size: 17px; }
html[data-ui="desktop"] .inbox-panel :is(.inbox-close, .inbox-back, .inbox-conversation, .inbox-notification, .inbox-search-result, .inbox-start-chat, .inbox-login, .inbox-shortcut-icon) {
  transition: background-color 150ms ease, color 150ms ease, filter 150ms ease;
}
html[data-ui="desktop"] .inbox-panel :is(.inbox-conversation, button.inbox-notification, button.inbox-search-result):is(:hover, :focus-visible) { background: #ffffff09; }
html[data-ui="desktop"] .inbox-body,
html[data-ui="desktop"] .inbox-chat-messages {
  scrollbar-width: thin;
  scrollbar-color: #ffffff26 transparent;
  scrollbar-gutter: stable;
}
html[data-ui="desktop"] .inbox-category-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 8px;
  padding-top: 3px;
  background: var(--inbox-bg);
}
html[data-ui="desktop"] .inbox-category-tabs button:hover { color: #fff; }
html[data-ui="desktop"] .inbox-panel input:focus-visible { outline: 2px solid #ff7894; outline-offset: 2px; }
html[data-ui="desktop"] .inbox-chat-bubble { max-width: calc(100% - 68px); }
html[data-ui="desktop"] .inbox-composer input { border: 1px solid #ffffff0b; }
html[data-ui="desktop"] .inbox-composer button[type="submit"]:hover:not(:disabled) { background: #ff4b70; }
html[data-ui="desktop"] .inbox-emoji-picker { border-bottom: 1px solid #ffffff08; }
html[data-ui="desktop"] .inbox-empty { min-height: min(260px, 42dvh); }
html[data-ui="desktop"] .inbox-panel[data-guest="true"] #inbox-close {
  width: 28px;
  height: 28px;
  padding: 7px;
}
html[data-ui="desktop"] .inbox-panel[data-guest="true"] .inbox-guest-description { margin-bottom: 18px; }
html[data-ui="desktop"] #drawer[data-view="comments"] {
  top: 110px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 92px);
  overflow: hidden;
  border: 1px solid #ffffff0b;
  border-radius: 12px;
  background: #202024;
  box-shadow: -12px 0 40px #0003;
  transform: none;
}
html[data-ui="desktop"] #drawer[data-view="comments"][hidden] { display: none !important; }
html[data-ui="desktop"] #drawer[data-view="comments"] .drawer-header {
  flex: 0 0 auto;
  min-height: 62px;
  padding: 10px 15px 10px 22px;
  border-bottom: 1px solid #ffffff08;
}
html[data-ui="desktop"] #drawer[data-view="comments"] .drawer-header h2 { font-size: 17px; font-weight: 600; }
html[data-ui="desktop"] #drawer[data-view="comments"] .drawer-header .icon-button { border-radius: 50%; color: #a8a8b1; }
html[data-ui="desktop"] #drawer[data-view="comments"] .drawer-header .icon-button:hover { background: #ffffff08; color: #fff; }
html[data-ui="desktop"] #drawer[data-view="comments"] .drawer-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
html[data-ui="desktop"] #drawer[data-view="comments"] .drawer-body > :is(.drawer-intro, .backend-status-note) {
  flex: 0 0 auto;
  margin: 12px 22px 0;
  font-size: 12px;
  line-height: 1.7;
}
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff26 transparent;
}
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-item { gap: 11px; padding: 16px 0; border-bottom: 0; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-item.is-reply { margin-left: 24px; padding-left: 12px; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-avatar { flex: 0 0 auto; width: 34px; height: 34px; font-size: 12px; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-content { min-width: 0; font-size: 13px; line-height: 1.7; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-content strong { color: #a2a2ad; font-size: 12px; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-content p { margin: 5px 0; overflow-wrap: anywhere; color: #eeeef2; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-actions { gap: 18px; margin-top: 3px; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-action { font-size: 11px; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-action:hover { color: #e3e3e9; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-action[aria-pressed="true"] { color: #ff6b8b; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-input-row {
  position: relative;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 14px 16px;
  border-top: 1px solid #ffffff0b;
  background: #242428;
}
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-input-row input {
  flex: 1 1 180px;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #ffffff0a;
  border-radius: 20px;
  background: #34343b;
  color: #fff;
}
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-input-row .primary-btn { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 8px; }
html[data-ui="desktop"] #drawer[data-view="comments"] .comment-input-row .secondary-btn { margin: 0; min-height: 32px; font-size: 11px; }
html[data-ui="desktop"] #drawer[data-view="comments"] :is(button, input):focus-visible { outline: 2px solid #ff7894; outline-offset: 2px; }
html[data-ui="desktop"] #drawer[data-view="comments"].is-entering { animation: desktop-comments-in 220ms cubic-bezier(.2, .75, .25, 1) both; }
html[data-ui="desktop"] #drawer[data-view="comments"].is-closing { pointer-events: none; animation: desktop-comments-out 160ms ease-in both; }
@media (min-width: 1360px) and (min-height: 601px) {
  html[data-ui="desktop"] body:has(#drawer[data-view="comments"]:not([hidden])) .watch-layout:not(.panel-open) { margin-right: 396px; }
}
@media (max-height: 600px) {
  html[data-ui="desktop"] #drawer[data-view="comments"] { top: 8px; right: 8px; bottom: 8px; max-width: calc(100vw - 24px); }
  html[data-ui="desktop"] .inbox-header { min-height: 52px; padding-top: 8px; }
  html[data-ui="desktop"] .inbox-empty { min-height: 140px; padding-top: 24px; padding-bottom: 24px; }
  html[data-ui="desktop"] .inbox-empty-icon { width: 52px; height: 52px; margin-bottom: 12px; }
}
@media (min-width: 640px) and (min-height: 400px) and (max-height: 600px) {
  html[data-ui="desktop"] #drawer[data-view="comments"] { top: 92px; max-width: calc(100vw - 92px); }
}
@keyframes desktop-comments-in {
  from { opacity: .4; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes desktop-comments-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui="desktop"] .inbox-panel *,
  html[data-ui="desktop"] #drawer[data-view="comments"] { animation: none !important; transition: none !important; }
}
