/* ===== PRIVATE PANEL ===== */
#privatePanel{
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

#privatePanel.private-password-locked #privateDialogs,
#privatePanel.private-password-locked #privateHeader,
#privatePanel.private-password-locked #privateChatContainer,
#privatePanel.private-password-locked #privateComposer,
#privatePanel.private-password-locked #privateTypingIndicator,
#privatePanel.private-password-locked #privateScrollDownBtn{
  filter: blur(12px) brightness(0.58) saturate(0.72);
  pointer-events: none;
  user-select: none;
}

.private-lock-overlay{
  position: absolute;
  inset: 58px 10px 10px;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(24, 18, 28, 0.34);
  backdrop-filter: blur(18px) brightness(0.72);
}

.private-lock-overlay.hidden{
  display: none;
}

.private-lock-card{
  width: min(320px, 100%);
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,61,141,0.18);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 42px rgba(60,30,48,0.18);
  text-align: center;
}

.private-lock-icon{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  background: rgba(255,61,141,0.12);
}

.private-lock-card strong{
  font-size: 17px;
  color: #2d1f28;
}

.private-lock-card span,
.private-lock-card small{
  color: #6b5863;
  line-height: 1.35;
}

.private-lock-card input{
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,61,141,0.28);
  padding: 8px 10px;
  font: inherit;
}

.private-lock-card button{
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4f9a, #8a5cf6);
}

.private-lock-error{
  color: #b42318 !important;
}

.private-lock-now-btn{
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.92);
  border-color: rgba(251, 146, 60, 0.32);
}

#privateHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
}

.private-title{
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.private-title-main{
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.private-header-avatar{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: center / cover no-repeat rgba(255,255,255,0.96);
  border: 1px solid rgba(255,61,141,0.18);
  box-shadow: 0 6px 18px rgba(255,61,141,0.14);
  background-image: url("/pictures/strawberry2.jpg");
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.private-header-avatar:hover,
.private-header-avatar:focus-visible{
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(255,61,141,0.2);
  outline: none;
}

.private-telegram-header-back{
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(239,246,255,0.98);
  color: #1d4ed8;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37,99,235,0.14);
}

.private-telegram-header-back:hover,
.private-telegram-header-back:focus-visible{
  background: #dbeafe;
  outline: none;
}

.private-avatar-zoom{
  position: fixed;
  inset: 0;
  z-index: 50080;
  display: flex;
  align-items: center;
  justify-content: center;
}

.private-avatar-zoom.hidden{
  display: none;
}

.private-avatar-zoom__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 24, 0.72);
  backdrop-filter: blur(10px);
}

.private-avatar-zoom__stage{
  position: relative;
  z-index: 1;
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  min-width: 136px;
  min-height: 136px;
  border-radius: 999px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,240,246,0.9));
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.34);
}

.private-avatar-zoom__image{
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: center / cover no-repeat rgba(255,255,255,0.96);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

.private-avatar-zoom__hint{
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(14px, 16px);
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 24, 0.68);
  color: rgba(255,255,255,0.94);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, visibility .14s ease;
}

.private-avatar-zoom__hint.is-visible{
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px){
  .private-avatar-zoom__stage{
    width: min(82vw, 420px);
    height: min(82vw, 420px);
  }

  .private-avatar-zoom__hint{
    width: min(calc(100vw - 32px), 320px);
    font-size: 12px;
    padding: 9px 12px;
  }
}

#privateHeader strong{
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#privateHeader .hint{
  font-size: 11px;
  color: rgba(40,40,40,0.6);
  line-height: 1.1;
}

.private-header-call-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 45%;
}

.private-header-call-btn{
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,61,141,0.28);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,241,246,0.98));
  box-shadow: 0 6px 14px rgba(255,61,141,0.14);
  cursor: pointer;
  font-size: 18px;
  flex: 0 0 36px;
  padding: 0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.private-header-call-btn-audio{
  color: #0f9f57;
  box-shadow: 0 10px 22px rgba(15,159,87,0.16);
}

.private-header-call-btn-video{
  color: #006dff;
  box-shadow: 0 10px 22px rgba(0,109,255,0.18);
}

.private-call-icon{
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
}

.private-header-call-btn:hover,
.private-header-call-btn:focus-visible{
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 26px rgba(255,61,141,0.22);
  border-color: rgba(255,61,141,0.38);
  outline: none;
}

.private-header-call-btn-audio:hover,
.private-header-call-btn-audio:focus-visible{
  box-shadow: 0 14px 28px rgba(15,159,87,0.26);
  border-color: rgba(15,159,87,0.34);
}

.private-header-call-btn-video:hover,
.private-header-call-btn-video:focus-visible{
  box-shadow: 0 14px 28px rgba(0,109,255,0.28);
  border-color: rgba(0,109,255,0.34);
}

.private-header-call-btn:active{
  transform: scale(0.97);
  box-shadow: 0 8px 16px rgba(255,61,141,0.16);
}

.private-header-call-btn.hidden{
  display: none;
}

.private-telegram-header-action{
  flex: 0 0 auto;
  min-height: 26px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(239,246,255,0.94);
  color: #1d4ed8;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37,99,235,0.10);
}

.private-telegram-header-danger{
  color: #dc2626;
  border-color: rgba(220,38,38,0.22);
  background: rgba(254,242,242,0.96);
  box-shadow: 0 6px 14px rgba(220,38,38,0.09);
}

.private-telegram-header-action.active{
  color: #be185d;
  border-color: rgba(255,61,141,0.28);
  background: rgba(255,61,141,0.14);
}

.private-telegram-header-actions{
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px 7px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  overflow-x: auto;
  scrollbar-width: thin;
}

#privatePanel.private-telegram-mode .private-telegram-header-actions{
  display: flex;
}

.private-telegram-header-actions .hidden{
  display: none;
}

.private-group-create-btn{
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
  color: #14532d;
  background: rgba(220, 252, 231, 0.96);
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: 0 10px 22px rgba(34,197,94,0.16);
}

#privatePanel.private-group-active #privateCreateGroupBtn{
  display: none !important;
}

.private-header-hangup-btn{
  background: rgba(255, 235, 238, 0.96);
  border-color: rgba(239, 68, 68, 0.24);
}

.private-call-panel{
  position: fixed;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  right: 14px;
  bottom: 14px;
  width: min(720px, calc(100vw - 28px));
  max-height: min(78vh, 760px);
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255,61,141,0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,240,246,0.95));
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  overflow: hidden;
  z-index: 1400;
}

.private-call-panel.detached{
  position: fixed;
}

.private-call-panel.hidden{
  display: none !important;
}

.private-call-panel.expanded{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #050914;
}

.private-call-panel.has-video{
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.private-call-focus .private-call-panel.expanded{
  inset: 0;
  border-radius: 0;
}

.private-call-panel.minimized{
  display: none !important;
}

.private-call-head{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.private-call-brand{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.private-call-brand-fruit{
  font-size: 18px;
  line-height: 1;
}

.private-call-brand-label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255,61,141,0.76);
}

.private-call-window-controls{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.private-call-copy{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.private-call-copy strong{
  font-size: 15px;
  line-height: 1.2;
}

.private-call-copy span{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(40,40,40,0.68);
}

.private-call-ringing{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.private-call-ringing__phone{
  display: inline-block;
  transform-origin: 50% 80%;
  animation: privateCallPhoneRing 1s ease-in-out infinite;
}

@keyframes privateCallPhoneRing{
  0%, 100%{
    transform: rotate(0deg) scale(1);
  }
  20%{
    transform: rotate(-16deg) scale(1.06);
  }
  40%{
    transform: rotate(14deg) scale(1.06);
  }
  60%{
    transform: rotate(-12deg) scale(1.04);
  }
  80%{
    transform: rotate(10deg) scale(1.04);
  }
}

.private-call-people{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.private-call-person{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,61,141,0.12);
}

.private-call-person-avatar{
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 999px;
  background: center / cover no-repeat rgba(255,255,255,0.96);
  border: 1px solid rgba(255,61,141,0.18);
  box-shadow: 0 8px 18px rgba(255,61,141,0.12);
}

.private-call-person-copy{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.private-call-person-copy strong{
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.private-call-person-copy span{
  font-size: 11px;
  line-height: 1.25;
  color: rgba(40,40,40,0.62);
}

.private-call-video-shell{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #090b10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.private-call-panel.is-screen-share .private-call-video-shell{
  background: transparent;
  box-shadow: none;
}

.private-call-panel.is-screen-share{
  background: transparent;
}

.private-call-panel.expanded .private-call-video-shell{
  min-height: 320px;
}

.private-call-panel:not(.expanded).has-video .private-call-video-shell{
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(56vh, 520px);
}

.private-call-panel:not(.expanded).has-video.is-portrait-primary-video .private-call-video-shell{
  aspect-ratio: var(--private-call-video-aspect, 9 / 16);
  width: min(100%, 430px);
  margin-inline: auto;
}

.private-call-panel.expanded .private-call-head{
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.private-call-panel.expanded .private-call-copy span{
  color: rgba(30,30,30,0.74);
}

.private-call-video-shell.hidden{
  display: none;
}

.private-call-top-hotspot{
  display: none;
}

.private-call-video-badge{
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5,10,20,0.56);
  color: rgba(255,255,255,0.96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.private-call-video-badge-remote{
  top: 10px;
  left: 10px;
}

.private-call-video-badge-local{
  right: 10px;
  bottom: 14px;
  max-width: min(160px, calc(100% - 28px));
}

.private-call-remote-video{
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: block;
  background: #000;
  object-fit: contain;
}

.private-call-panel.is-screen-share .private-call-remote-video{
  background: transparent;
}

.private-call-local-video{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: clamp(96px, 18vw, 132px);
  height: clamp(128px, 24vw, 176px);
  display: block;
  border-radius: 16px;
  background: #000;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.private-call-panel.has-video:not(.is-screen-share) .private-call-video-shell{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  align-items: stretch;
  justify-content: stretch;
}

.private-call-panel.has-video:not(.is-screen-share) .private-call-remote-video,
.private-call-panel.has-video:not(.is-screen-share) .private-call-local-video{
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.private-call-panel.has-video:not(.is-screen-share) .private-call-video-badge-local{
  top: 10px;
  right: auto;
  bottom: auto;
  left: calc(50% + 12px);
}

.private-call-panel.is-screen-share .private-call-local-video{
  background: transparent;
  box-shadow: none;
}

.private-call-panel.is-screen-share .private-call-local-video.is-primary-screen{
  position: static;
  inset: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.private-call-panel.is-screen-share .private-call-video-badge-local{
  display: none;
}

.private-call-resize-handle{
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  justify-self: end;
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(255,61,141,0.22) 38% 48%, transparent 48% 62%, rgba(255,61,141,0.38) 62% 72%, transparent 72% 100%);
  cursor: nwse-resize;
  opacity: 0.9;
}

.private-call-panel.expanded .private-call-resize-handle{
  display: none;
}

.private-call-mini-badge{
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 92px;
  min-height: 92px;
  border: 0;
  border-radius: 22px;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 3px;
  padding: 10px 8px 8px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.96), rgba(255,199,220,0.96));
  box-shadow: 0 18px 42px rgba(255,61,141,0.28);
  z-index: 1410;
  cursor: pointer;
  touch-action: none;
}

.private-call-mini-badge.hidden{
  display: none !important;
}

.private-call-mini-badge-fruit{
  font-size: 20px;
  line-height: 1;
}

.private-call-mini-badge-icon{
  font-size: 15px;
  line-height: 1;
}

.private-call-mini-badge-name{
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  color: rgba(40,40,40,0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.private-call-panel.dragging,
.private-call-mini-badge.dragging{
  transition: none !important;
}

.private-call-panel.resizing{
  transition: none !important;
}

body.private-call-expanded{
  overflow: hidden;
}

body.private-call-focus #main{
  display: none !important;
}

body.private-call-focus #privateHeader,
body.private-call-focus #privateTypingIndicator,
body.private-call-focus #privateDialogs,
body.private-call-focus #privateChatContainer,
body.private-call-focus #privateScrollDownBtn,
body.private-call-focus #privateRecordUI,
body.private-call-focus #privateVideoRecordUI,
body.private-call-focus #privateComposer,
body.private-call-focus #privateShowBtn{
  display: none !important;
}

.private-header-right{
  margin-left: auto;
  font-size: 15px;
  font-weight: 800;
  color: rgba(40,40,40,0.9);
  padding-left: 6px;
}

.private-tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.10);
}

.p-tab{
  border: 1px solid rgba(255,61,141,0.25);
  background: rgba(255,61,141,0.10);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-tab.active{
  background: rgba(255,61,141,0.18);
  border-color: rgba(255,61,141,0.45);
}

.p-tab.unread{
  box-shadow: 0 0 0 3px rgba(255,61,141,0.15);
}

.p-tab .tab-label{
  font-size: 13px;
  font-weight: 700;
}

.p-tab .tab-close{
  font-size: 12px;
  opacity: 0.7;
}

.p-tab .tab-close:hover{
  opacity: 1;
}

#privateChatContainer{
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
  padding: 10px 10px 6px;
  overflow-anchor: none;
}

#privateChatContainer[data-private-bg="space"]{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='190' viewBox='0 0 260 190'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 30l3 8 8 3-8 3-3 8-3-8-8-3 8-3zM178 24l4 11 11 4-11 4-4 11-4-11-11-4 11-4zM218 112l3 8 8 3-8 3-3 8-3-8-8-3 8-3z' stroke='%23ffffff' stroke-opacity='.88' stroke-width='1.6'/%3E%3Cpath d='M82 82l2 5 5 2-5 2-2 5-2-5-5-2 5-2zM132 36l2 5 5 2-5 2-2 5-2-5-5-2 5-2zM118 144l3 7 7 3-7 3-3 7-3-7-7-3 7-3z' stroke='%237dd3fc' stroke-opacity='.82' stroke-width='1.4'/%3E%3Ccircle cx='28' cy='134' r='1.7' fill='%23fff' fill-opacity='.86'/%3E%3Ccircle cx='64' cy='160' r='1.2' fill='%23fdf2f8' fill-opacity='.9'/%3E%3Ccircle cx='146' cy='102' r='1.5' fill='%23bfdbfe' fill-opacity='.9'/%3E%3Ccircle cx='236' cy='48' r='1.4' fill='%23fff' fill-opacity='.9'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 190px repeat,
    radial-gradient(circle at 18% 28%, rgba(255,255,255,0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 18%, rgba(186, 230, 253, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 72%, rgba(125, 211, 252, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 78%, rgba(244, 114, 182, 0.28), transparent 24%),
    linear-gradient(145deg, #070a1c 0%, #15113a 48%, #061827 100%);
}

#privateChatContainer[data-private-bg="landing"]{
  background:
    linear-gradient(90deg, rgba(255, 253, 251, 0.88) 0%, rgba(255, 248, 244, 0.72) 48%, rgba(255, 253, 250, 0.54) 100%),
    url("/pictures/landing-travel-growth-hero.png") center / cover no-repeat;
}

#privateChatContainer[data-private-bg="sport"]{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 58h18M56 58h42M108 58h18M46 45v26M108 45v26' stroke-width='7'/%3E%3Cpath d='M180 132h78c10 0 18 8 18 18s-8 18-18 18h-78c-10 0-18-8-18-18s8-18 18-18z' stroke-width='4'/%3E%3Cpath d='M180 150h78M194 132l-14-20M244 132l14-20' stroke-width='4'/%3E%3Cpath d='M178 42c18-15 42-12 54 6M232 48c-9 16-32 22-52 9M203 29c7 13 8 32 1 45' stroke-width='3'/%3E%3Ccircle cx='205' cy='51' r='27' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") 10px 8px / 300px 190px repeat,
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(255,255,255,0.10) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(circle at 16% 18%, rgba(255,255,255,0.16), transparent 24%),
    linear-gradient(135deg, #0f7a3b, #0b5d2d 52%, #073b1f);
}

#privateChatContainer[data-private-bg="romantic"]{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='160' viewBox='0 0 210 160'%3E%3Cg fill='none' stroke='%23dc2626' stroke-opacity='.34' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 50c-12-16-34 1-16 19 7 7 16 13 16 13s10-7 17-14c17-18-6-34-17-18z' stroke-width='2.2'/%3E%3Cpath d='M142 28c-9-13-27 1-14 15 5 5 14 11 14 11s9-6 14-12c13-14-5-27-14-14z' stroke-width='1.9'/%3E%3Cpath d='M158 112c-12-15-33 2-16 19 7 7 16 13 16 13s10-7 17-14c17-18-6-33-17-18z' stroke-width='2.4'/%3E%3Cpath d='M78 118c-7-10-22 1-11 12 4 4 11 9 11 9s7-5 11-9c11-12-4-22-11-12zM96 42c10-6 20-7 31-2M48 100c17 3 31 0 43-9' stroke-width='1.7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 210px 160px repeat,
    radial-gradient(circle at 16% 20%, rgba(255,255,255,0.54), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(255, 182, 193, 0.38), transparent 20%),
    radial-gradient(circle at 32% 82%, rgba(244, 114, 182, 0.34), transparent 22%),
    linear-gradient(145deg, #fff1f6, #ffd7e7 48%, #fbcfe8);
}

#privateChatContainer[data-private-bg="business"]{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='210' viewBox='0 0 320 210'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='34' y='46' width='94' height='58' rx='8' stroke='%230f172a' stroke-opacity='.18' stroke-width='4'/%3E%3Cpath d='M22 116h118l-10 14H32zM54 66h52M54 80h34' stroke='%230f172a' stroke-opacity='.18' stroke-width='4'/%3E%3Cpath d='M178 42h74v62h-74zM190 88l15-18 14 11 22-30M192 92h46M192 78v14' stroke='%231e40af' stroke-opacity='.24' stroke-width='4'/%3E%3Crect x='220' y='124' width='62' height='48' rx='6' stroke='%2392412e' stroke-opacity='.22' stroke-width='4'/%3E%3Cpath d='M234 138h34M234 150h24M234 162h30' stroke='%2392412e' stroke-opacity='.18' stroke-width='3'/%3E%3Ccircle cx='66' cy='158' r='16' stroke='%2316a34a' stroke-opacity='.24' stroke-width='4'/%3E%3Ccircle cx='82' cy='154' r='16' stroke='%2316a34a' stroke-opacity='.20' stroke-width='4'/%3E%3Cpath d='M66 149v18M58 158h16' stroke='%2316a34a' stroke-opacity='.25' stroke-width='3'/%3E%3Cpath d='M142 150h42M150 136h26l8 14h-42zM154 136v-10h18v10' stroke='%230f172a' stroke-opacity='.18' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E") 4px 0 / 320px 210px repeat,
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.72), transparent 22%),
    linear-gradient(90deg, rgba(71, 85, 105, 0.10) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(71, 85, 105, 0.08) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(135deg, #f8fafc 0%, #e8eef5 48%, #d9e2ec 100%);
}

#privateChatContainer[data-private-bg="nature"]{
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 245, 157, 0.78) 0 34px, transparent 35px),
    linear-gradient(165deg, transparent 0 46%, rgba(22, 101, 52, 0.20) 46% 48%, transparent 49%),
    linear-gradient(145deg, transparent 0 38%, rgba(21, 128, 61, 0.28) 38% 42%, transparent 43%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.50) 0 24%, rgba(186, 230, 253, 0.62) 24% 44%, transparent 45%),
    linear-gradient(24deg, #14532d 0 18%, #15803d 18% 31%, transparent 32%),
    linear-gradient(155deg, transparent 0 42%, #166534 43% 56%, transparent 57%),
    linear-gradient(180deg, #dff9ff 0%, #bae6fd 38%, #bbf7d0 39%, #4ade80 72%, #15803d 100%);
}

#privateChatContainer[data-private-bg="travel"]{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='210' viewBox='0 0 300 210'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M54 154c10-42 18-76 36-112' stroke='%237c4a20' stroke-opacity='.34' stroke-width='8'/%3E%3Cpath d='M90 42c-26 2-48 11-66 27M91 42c-12-20-30-31-54-33M91 42c24-14 49-17 75-8M91 42c6-22 21-36 45-43M91 42c20 5 35 17 47 36' stroke='%23166534' stroke-opacity='.34' stroke-width='7'/%3E%3Ccircle cx='74' cy='55' r='7' fill='%237c2d12' fill-opacity='.34'/%3E%3Ccircle cx='90' cy='58' r='8' fill='%237c2d12' fill-opacity='.32'/%3E%3Cpath d='M204 146c8-32 14-58 28-84' stroke='%237c4a20' stroke-opacity='.28' stroke-width='6'/%3E%3Cpath d='M232 62c-19 1-35 8-49 20M232 62c-8-15-22-23-39-25M232 62c18-10 38-12 57-5M232 62c5-17 16-27 34-31' stroke='%23166534' stroke-opacity='.28' stroke-width='5'/%3E%3Ccircle cx='220' cy='72' r='5' fill='%237c2d12' fill-opacity='.3'/%3E%3C/g%3E%3C/svg%3E") 10px 10px / 300px 210px repeat,
    radial-gradient(circle at 78% 16%, rgba(255, 241, 118, 0.86) 0 34px, transparent 35px),
    linear-gradient(180deg, rgba(125, 211, 252, 0.78) 0 37%, transparent 38%),
    repeating-linear-gradient(170deg, rgba(255,255,255,0.32) 0 6px, transparent 6px 18px),
    linear-gradient(180deg, #9be8ff 0%, #67d5f4 38%, #21a8d8 39%, #0ea5c6 66%, #facc8b 67%, #f8b86a 100%);
}

#privateChatContainer[data-private-bg="minimal"]{
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.035) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(135deg, transparent 75%, rgba(15, 23, 42, 0.035) 75%) 0 0 / 24px 24px,
    linear-gradient(180deg, #ffffff, #f8fafc);
}

#privateChatContainer[data-private-bg="custom"]{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.10)),
    var(--private-custom-bg-image) center / cover no-repeat;
}

#privateChatContainer[data-private-bg="space"] .msg,
#privateChatContainer[data-private-bg="landing"] .msg,
#privateChatContainer[data-private-bg="sport"] .msg,
#privateChatContainer[data-private-bg="travel"] .msg,
#privateChatContainer[data-private-bg="custom"] .msg{
  background: rgba(255,255,255,0.90);
}

#privateChatContainer[data-private-bg="space"] .msg.me,
#privateChatContainer[data-private-bg="landing"] .msg.me,
#privateChatContainer[data-private-bg="sport"] .msg.me,
#privateChatContainer[data-private-bg="travel"] .msg.me,
#privateChatContainer[data-private-bg="custom"] .msg.me{
  background:
    linear-gradient(rgba(0,0,0,var(--private-bubble-me-darken, var(--bubble-me-darken, 0))), rgba(0,0,0,var(--private-bubble-me-darken, var(--bubble-me-darken, 0)))),
    var(--private-bubble-me-bg, var(--bubble-me-bg));
}

#privateChatContainer[data-private-bg="business"] .msg{
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

#privateBackgroundContextMenu .user-context-menu-btn.active{
  background: rgba(255,61,141,0.12);
  color: #b3225f;
  font-weight: 900;
}

#privateBackgroundContextMenu .user-context-menu-btn.active::before{
  content: "✓";
  margin-right: 6px;
}

.private-missed-call-msg .msg-top{
  margin-bottom: 6px;
}

.private-missed-call-card{
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: min(520px, 100%);
  padding: 10px;
  border: 1px solid rgba(255,61,141,0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,242,248,0.96));
  box-shadow: 0 10px 24px rgba(255,61,141,0.11);
}

.msg.me .private-missed-call-card{
  margin-left: auto;
}

.private-missed-call-icon{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,61,141,0.13);
  font-size: 19px;
}

.private-missed-call-copy{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.private-missed-call-copy strong{
  color: #2b1d28;
  font-size: 14px;
}

.private-missed-call-copy span{
  color: #6b5863;
  font-size: 12px;
}

.private-missed-call-btn{
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4f9a, #8a5cf6);
}

@media (max-width: 520px){
  .private-missed-call-card{
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .private-missed-call-btn{
    grid-column: 1 / -1;
    width: 100%;
  }
}

.private-watch-panel{
  position: relative;
  display: grid;
  gap: 10px;
  margin: 8px 10px 2px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,61,141,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,240,246,0.92));
  box-shadow: 0 12px 26px rgba(255,61,141,0.12);
}

.private-watch-head button,
.private-watch-head a,
.private-watch-actions button,
.private-watch-actions a,
.private-watch-manual button,
.private-watch-manual a,
.private-watch-call-overlay button{
  position: relative;
  z-index: 40;
}

.private-watch-panel.detached{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: min(760px, calc(100vw - 28px));
  max-height: min(78vh, 760px);
  margin: 0;
  z-index: 1400;
  overflow: hidden;
}

.private-watch-panel.detached:not(.expanded){
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 10px;
  row-gap: 10px;
  min-height: min(76vh, 720px);
}

.private-watch-panel.detached .private-watch-head{
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
}

.private-watch-panel.detached.dragging,
.private-watch-panel.detached.resizing{
  transition: none !important;
}

.private-watch-panel.detached.minimized{
  display: none !important;
}

body.main-collapsed .private-watch-panel:not(.expanded){
  grid-template-columns: minmax(0, 1.16fr) minmax(250px, 0.84fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 10px;
  row-gap: 10px;
  min-height: min(76vh, 720px);
}

.private-watch-panel.expanded{
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: calc(var(--sidebarW, 280px) + 20px);
  margin: 0;
  padding: 14px;
  z-index: 450;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  column-gap: 14px;
  row-gap: 12px;
}

body.main-collapsed .private-watch-panel.expanded{
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 250px;
  width: auto;
  max-width: none;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 8px;
}

body.private-watch-focus .private-watch-panel.expanded{
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 0;
}

.private-watch-panel.hidden{
  display: none !important;
}

.private-watch-panel.hidden.expanded{
  display: none !important;
}

.private-watch-head{
  position: relative;
  display: grid;
  gap: 10px;
  z-index: 50;
  pointer-events: auto;
}

.private-watch-head-top{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.private-watch-head-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.private-watch-brand{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  min-width: 0;
}

.private-watch-brand-fruit{
  font-size: 18px;
  line-height: 1;
}

.private-watch-brand-label{
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(35,35,35,0.88);
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-head{
  grid-column: 1 / -1;
  grid-row: 1;
}

.private-watch-panel.expanded .private-watch-head{
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 6;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  gap: 8px;
}

body.main-collapsed .private-watch-panel.expanded .private-watch-head{
  padding: 8px 10px;
  gap: 6px;
}

body.private-watch-focus #privateHeader,
body.private-watch-focus #privateTypingIndicator,
body.private-watch-focus #privateDialogs,
body.private-watch-focus #privateChatContainer,
body.private-watch-focus #privateScrollDownBtn,
body.private-watch-focus #privateRecordUI,
body.private-watch-focus #privateVideoRecordUI,
body.private-watch-focus #privateComposer,
body.private-watch-focus #privateShowBtn{
  display: none !important;
}

body.private-watch-focus #privateCallPanel.detached{
  display: grid;
}

body.private-watch-focus #privateCallPanel.detached.hidden{
  display: none !important;
}

body.private-watch-focus #privateCallMiniBadge{
  display: inline-flex;
}

body.private-watch-focus #privateCallMiniBadge.hidden{
  display: none !important;
}

.private-watch-copy{
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
}

.private-watch-copy strong{
  font-size: 13px;
  line-height: 1.2;
}

.private-watch-call-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(24,24,27,0.82);
}

.private-watch-call-status.hidden,
.private-watch-actions .hidden{
  display: none !important;
}

.private-watch-panel.private-watch-personal #privateWatchCallBtn,
.private-watch-panel.private-watch-personal #privateWatchHangupBtn,
.private-watch-panel.private-watch-personal #privateWatchMuteBtn,
.private-watch-panel.private-watch-personal #privateWatchInviteBtn,
.private-watch-panel.private-watch-personal #privateWatchResetBtn,
.private-watch-panel.private-watch-personal #privateWatchCallStatus,
.private-watch-panel.private-watch-personal #privateWatchPresence,
.private-watch-panel.private-watch-personal #privateWatchMoviePresenceWrap,
.private-watch-panel.private-watch-personal #privateWatchChat{
  display: none !important;
}

.private-watch-presence{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.private-watch-presence.hidden{
  display: none;
}

.private-watch-presence-label{
  font-size: 11px;
  font-weight: 700;
  color: rgba(24,24,27,0.82);
  flex: 0 0 auto;
  white-space: nowrap;
}

.private-watch-presence-list{
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.private-watch-presence-chip{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,61,141,0.16);
  font-size: 11px;
  font-weight: 700;
  color: rgba(24,24,27,0.88);
}

.private-watch-presence-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.16);
  flex: 0 0 8px;
  animation: private-watch-live-pulse 1.8s ease-in-out infinite;
}

@keyframes private-watch-live-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34,197,94,0.26);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(34,197,94,0.10);
  }
}

.private-watch-actions{
  position: relative;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.private-watch-primary-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.private-watch-window-controls{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 0 0 1px rgba(255,61,141,0.10);
}

.private-watch-meta-row{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  overflow: hidden;
}

.private-watch-meta-pill{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,61,141,0.16);
  font-size: 11px;
  font-weight: 700;
  color: rgba(24,24,27,0.88);
  white-space: nowrap;
}

.private-watch-link,
.private-watch-close,
.private-watch-launch{
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(255,61,141,0.18);
  background: rgba(255,255,255,0.92);
  color: rgba(35,35,35,0.92);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  pointer-events: auto;
}

.private-watch-link.hidden{
  display:none !important;
}

.private-watch-window-btn{
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
}

.private-watch-window-close{
  background: rgba(239, 68, 68, 0.14);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.28);
}

.private-watch-mini-badge{
  position: fixed;
  z-index: 2147483643;
  left: 12px;
  bottom: 12px;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.34), transparent 24%),
    linear-gradient(160deg, #ff7ab3 0%, #ff4d8d 34%, #ff375f 68%, #d4145a 100%);
  box-shadow:
    0 18px 36px rgba(212,20,90,0.34),
    inset 0 1px 0 rgba(255,255,255,0.34);
}

.private-watch-mini-badge.hidden{
  display: none !important;
}

.private-watch-mini-badge.dragging{
  cursor: grabbing;
}

.private-watch-mini-badge-fruit{
  font-size: 23px;
  line-height: 1;
}

.private-watch-mini-badge-play{
  font-size: 12px;
  line-height: 1;
  margin-top: -1px;
  opacity: 0.96;
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.private-watch-mini-badge[data-source-type="browser-link"] .private-watch-mini-badge-play{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  margin-top: 0;
}

.private-watch-mini-badge[data-source-type="browser-link"] .private-watch-mini-badge-label{
  display: none;
}

.private-watch-mini-badge-label{
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

#privateWatchCallBtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.32);
}

#privateWatchCallBtn::before{
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M6.6 4.8l2.5-.6c.5-.1 1 .1 1.2.6l1.2 2.8c.2.5.1 1-.3 1.3l-1.4 1.2a14.4 14.4 0 0 0 4.1 4.1l1.2-1.4c.3-.4.9-.5 1.3-.3l2.8 1.2c.5.2.8.7.6 1.2l-.6 2.5c-.1.5-.6.9-1.1.9C10 20.3 3.7 14 3.7 5.9c0-.5.4-1 .9-1.1Z'/%3E%3C/svg%3E");
}

#privateWatchCallBtn.is-hangup::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dc2626' d='M21 15.5c0 .3-.1.6-.4.8l-2.8 2.4c-.3.3-.8.4-1.2.2l-3.1-1.2c-.4-.2-.7-.6-.7-1.1v-2c-2.2-.3-4.2-1.2-5.8-2.8S4.5 8.2 4.2 6V4c0-.5.3-.9.7-1.1l3.1-1.2c.4-.2.9-.1 1.2.2L12 4.3c.3.2.4.5.4.8 0 .2-.1.5-.2.7l-1.3 1.9c1 .9 2.1 1.7 3.4 2.3 1.2.6 2.5 1 3.9 1.1l1.4 2c.1.2.2.4.2.6Z'/%3E%3C/svg%3E");
}

#privateWatchHangupBtn{
  display: inline-flex;
  align-items: center;
  background: rgba(239, 68, 68, 0.16);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.32);
}

#privateWatchResetBtn{
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
}

#privateWatchHangupBtn.hidden{
  display: none !important;
}

#privateWatchMuteBtn.hidden{
  display: none !important;
}

.private-watch-movie-presence{
  min-height: 34px;
  padding: 6px 9px;
  color: #0c4a6e;
  background: rgba(224, 242, 254, 0.88);
  border-color: rgba(14, 165, 233, 0.22);
}

.private-watch-movie-presence.hidden{
  display: none !important;
}

.private-watch-launch{
  margin-top: 8px;
}

.private-watch-player{
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.private-watch-player iframe{
  position: relative;
  z-index: 1;
}

.private-watch-panel.private-watch-restricted-links .private-watch-player::after{
  content:"";
  position:absolute;
  z-index:6;
  top:0;
  left:0;
  right:0;
  height:72px;
  background:transparent;
  pointer-events:auto;
  cursor:default;
}

.private-watch-panel.private-watch-restricted-links .private-watch-player::before{
  content:"";
  position:absolute;
  z-index:6;
  right:0;
  bottom:0;
  width:min(38%, 190px);
  height:56px;
  background:transparent;
  pointer-events:auto;
  cursor:default;
}

.private-watch-interaction-layer{
  position:absolute;
  inset:0;
  z-index:5;
  background:transparent;
  pointer-events:auto;
  cursor:pointer;
  -webkit-touch-callout:none;
  user-select:none;
}

.private-watch-youtube-mask{
  position:absolute;
  z-index:1;
  display:block;
  background:#000;
  border-radius:4px;
  pointer-events:none;
}

.private-watch-youtube-mask.mask-top-left{
  top:10px;
  left:12px;
  width:min(46%, 430px);
  height:74px;
}

.private-watch-youtube-mask.mask-top-right{
  top:10px;
  right:12px;
  width:min(24%, 230px);
  height:74px;
}

.private-watch-youtube-mask.mask-bottom-left{
  left:30px;
  bottom:7px;
  width:72px;
  height:56px;
}

.private-watch-youtube-mask.mask-bottom-right-fullscreen{
  right:28px;
  bottom:79px;
  width:76px;
  height:72px;
}

.private-watch-youtube-mask.mask-bottom-right-logo{
  right:28px;
  bottom:9px;
  width:200px;
  height:58px;
}

.private-watch-panel:not(.expanded) .private-watch-youtube-mask.mask-top-left{
  top:10px;
  left:12px;
  width:68px;
  height:58px;
}

.private-watch-panel:not(.expanded) .private-watch-youtube-mask.mask-top-right,
.private-watch-panel:not(.expanded) .private-watch-youtube-mask.mask-bottom-left,
.private-watch-panel:not(.expanded) .private-watch-youtube-mask.mask-bottom-right-fullscreen,
.private-watch-panel:not(.expanded) .private-watch-youtube-mask.mask-bottom-right-logo{
  display:none;
}

.private-watch-panel.expanded .private-watch-youtube-mask.mask-top-left{
  top:10px;
  left:12px;
  width:68px;
  height:58px;
}

.private-watch-panel.expanded .private-watch-youtube-mask.mask-top-right,
.private-watch-panel.expanded .private-watch-youtube-mask.mask-bottom-left,
.private-watch-panel.expanded .private-watch-youtube-mask.mask-bottom-right-fullscreen,
.private-watch-panel.expanded .private-watch-youtube-mask.mask-bottom-right-logo{
  display:none;
}

.private-watch-panel:fullscreen .private-watch-youtube-mask,
.private-watch-panel:-webkit-full-screen .private-watch-youtube-mask{
  background:transparent;
}

.private-watch-rate-menu{
  min-width:132px;
  z-index:2147483647 !important;
  pointer-events:auto !important;
}

.private-watch-rate-menu *{
  pointer-events:auto !important;
}

.private-watch-rate-option.active{
  background:rgba(37,99,235,0.10);
  color:#1d4ed8;
}

.private-watch-youtube-stream-launcher{
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 7;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 0;
  background-color: #111;
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.private-watch-youtube-stream-launcher img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.private-watch-youtube-stream-launcher::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
}

.private-watch-youtube-stream-launcher span{
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.94);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-indent: 2px;
}

.private-watch-call-overlay{
  position: absolute;
  inset: 0;
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  padding: 12px;
  pointer-events: none;
}

.private-watch-call-overlay.hidden{
  display: none;
}

.private-watch-call-overlay:not(.hidden){
  pointer-events: auto;
}

#privateWatchCloseOverlay{
  z-index: 2147483000;
}

#privateWatchCloseOverlay.private-watch-close-modal{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.46);
}

#privateWatchCloseOverlay.private-watch-close-modal.hidden{
  display: none !important;
}

body.private-watch-close-modal-open,
.private-watch-close-modal-open{
  overflow: hidden;
}

.private-watch-call-overlay-card{
  display: block;
  width: min(92%, 380px);
  max-width: 380px;
  height: auto !important;
  min-height: 0 !important;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,61,141,0.18);
  box-shadow: 0 22px 50px rgba(0,0,0,0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.private-watch-call-overlay-card button{
  pointer-events: auto;
  touch-action: manipulation;
}

.private-watch-confirm-open .private-watch-player > :not(#privateWatchCloseOverlay){
  filter: blur(2px);
}

.private-watch-call-overlay-title{
  font-size: 18px;
  font-weight: 800;
  color: rgba(24,24,27,0.94);
}

.private-watch-call-overlay-text{
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(39,39,42,0.78);
  white-space: normal;
}

.private-watch-call-overlay-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.private-watch-resize-handle{
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  z-index: 15;
  cursor: nwse-resize;
}

.private-watch-panel.expanded .private-watch-resize-handle,
.private-watch-panel.minimized .private-watch-resize-handle{
  display: none;
}

.private-watch-resize-handle::before{
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,61,141,0.45);
  border-bottom: 2px solid rgba(255,61,141,0.45);
  border-radius: 0 0 4px 0;
}

.private-watch-panel.expanded .private-watch-player{
  grid-column: 1;
  grid-row: 2 / 4;
  min-height: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 20px;
}

@media (min-width: 921px) {
  .private-watch-panel.expanded{
    align-items: start;
  }

  .private-watch-panel.expanded .private-watch-player{
    align-self: start;
    height: 100%;
    min-height: 0;
    max-height: none;
    resize: none;
    overflow: hidden;
  }

  .private-watch-panel.expanded .private-watch-chat{
    align-self: start;
    min-height: 0;
    max-height: none;
  }
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-player{
  grid-column: 1;
  grid-row: 2 / 4;
  min-height: min(52vh, 520px);
  height: 100%;
  aspect-ratio: auto;
}

.private-watch-panel.detached:not(.expanded) .private-watch-head{
  grid-column: 1 / -1;
  grid-row: 1;
}

.private-watch-panel.detached:not(.expanded) .private-watch-player{
  grid-column: 1;
  grid-row: 2 / 4;
  min-height: min(54vh, 560px);
  height: 100%;
  aspect-ratio: auto;
}

body.main-collapsed .private-watch-panel.expanded .private-watch-player{
  min-width: 0;
}

.private-watch-panel.expanded .private-watch-manual{
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: stretch;
  margin: 0;
  z-index: 1;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-chat{
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  height: 100%;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,61,141,0.18);
  box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

.private-watch-panel.detached:not(.expanded) .private-watch-chat{
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  height: 100%;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,61,141,0.18);
  box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-manual{
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  justify-self: stretch;
  align-self: end;
}

.private-watch-panel.detached:not(.expanded) .private-watch-manual{
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  justify-self: stretch;
  align-self: end;
}

body.main-collapsed .private-watch-panel.expanded .private-watch-chat{
  min-width: 0;
  max-width: none;
}

body.main-collapsed .private-watch-panel.expanded .private-watch-copy strong{
  font-size: 11px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-copy strong{
  font-size: 11px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-copy span,
body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-presence-label,
body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-presence-chip,
body.main-collapsed .private-watch-panel.expanded .private-watch-copy span,
body.main-collapsed .private-watch-panel.expanded .private-watch-presence-label,
body.main-collapsed .private-watch-panel.expanded .private-watch-presence-chip{
  font-size: 9px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-link,
body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-close,
body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-manual-btn,
body.main-collapsed .private-watch-panel.expanded .private-watch-link,
body.main-collapsed .private-watch-panel.expanded .private-watch-close,
body.main-collapsed .private-watch-panel.expanded .private-watch-manual-btn{
  padding: 4px 8px;
  font-size: 9px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-messages,
body.main-collapsed .private-watch-panel.expanded .private-watch-messages{
  min-height: 0;
  max-height: none;
  height: 100%;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-msg,
body.main-collapsed .private-watch-panel.expanded .private-watch-msg{
  padding: 5px 7px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-msg-top,
body.main-collapsed .private-watch-panel.expanded .private-watch-msg-top{
  font-size: 9px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-msg-body,
body.main-collapsed .private-watch-panel.expanded .private-watch-msg-body{
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
  line-height: 1.25;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-chat-form,
body.main-collapsed .private-watch-panel.expanded .private-watch-chat-form{
  gap: 4px;
}

body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-chat-form input,
body.main-collapsed .private-watch-panel.expanded .private-watch-chat-form input,
body.main-collapsed .private-watch-panel:not(.expanded) .private-watch-chat-form textarea,
body.main-collapsed .private-watch-panel.expanded .private-watch-chat-form textarea{
  min-height: 32px;
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
}

.private-watch-player video,
.private-watch-player iframe,
.private-watch-player > div:not(.private-watch-call-overlay):not(.private-watch-youtube-tools):not(.private-watch-youtube-play-fallback):not(.private-watch-youtube-error):not(.private-watch-interaction-layer),
.private-watch-player > div > iframe,
.private-watch-player > div:not(.private-watch-call-overlay):not(.private-watch-youtube-tools):not(.private-watch-youtube-play-fallback):not(.private-watch-youtube-error):not(.private-watch-interaction-layer) > div:not(.private-watch-call-overlay-card),
#privateWatchYouTubePlayer,
#privateWatchYouTubePlayer > div,
#privateWatchYouTubePlayer iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #111;
}

.private-watch-youtube-play-fallback{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.94);
  color: #b3225f;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.24);
}

.private-watch-player-loading,
.private-watch-player-error{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 15;
  width: min(380px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0,0,0,0.35);
}

.private-watch-player-loading{
  display: none !important;
}

.private-watch-player-error a{
  justify-self: center;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,0.94);
  color: #b3225f;
  font-weight: 900;
  text-decoration: none;
}

.private-watch-player .private-watch-youtube-start-overlay{
  position: absolute;
  inset: 0;
  z-index: 14;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background-color: #111;
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.private-watch-player .private-watch-youtube-start-overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.36);
}

.private-watch-player .private-watch-youtube-start-overlay span{
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #b3225f;
  font-size: 30px;
  line-height: 1;
  text-indent: 4px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

.private-watch-youtube-error{
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 15;
  width: min(360px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0,0,0,0.35);
}

.private-watch-youtube-error a{
  justify-self: center;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,0.94);
  color: #b3225f;
  font-weight: 900;
  text-decoration: none;
}

.private-watch-youtube-tools{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 16;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}

.private-watch-youtube-tools button,
.private-watch-youtube-tools a{
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,0.94);
  color: #b3225f;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.private-watch-browser-shell{
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  background: #10131a;
}

.private-watch-browser-toolbar{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid rgba(15,23,42,.12);
}

.private-watch-browser-toolbar input{
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
}

.private-watch-browser-toolbar button{
  height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255,61,141,.12);
  color: #b3225f;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.private-watch-browser-note{
  width: 100%;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  line-height: 1.35;
}

.private-watch-player video{
  object-fit: contain;
}

.private-watch-panel.expanded .private-watch-copy{
  gap: 2px;
}

.private-watch-panel.expanded .private-watch-copy strong{
  font-size: 12px;
}

.private-watch-panel.expanded .private-watch-copy span,
.private-watch-panel.expanded .private-watch-presence-label{
  font-size: 10px;
  line-height: 1.2;
}

.private-watch-panel.expanded .private-watch-presence{
  gap: 4px;
}

.private-watch-panel:not(.expanded) .private-watch-presence{
  gap: 4px;
}

.private-watch-panel:not(.expanded) .private-watch-presence-label{
  font-size: 10px;
}

.private-watch-panel:not(.expanded) .private-watch-presence-list{
  gap: 4px;
  overflow-x: visible;
}

.private-watch-panel:not(.expanded) .private-watch-presence-chip{
  min-height: 20px;
  padding: 2px 6px;
  font-size: 10px;
}

.private-watch-panel.expanded .private-watch-presence-chip{
  min-height: 20px;
  padding: 3px 7px;
  font-size: 10px;
}

.private-watch-panel.expanded .private-watch-actions{
  gap: 6px;
  row-gap: 4px;
  max-width: 100%;
}

.private-watch-panel.expanded .private-watch-window-controls{
  align-self: flex-start;
}

.private-watch-panel.expanded .private-watch-link,
.private-watch-panel.expanded .private-watch-close,
.private-watch-panel.expanded .private-watch-manual-btn{
  padding: 5px 9px;
  font-size: 10px;
}

.private-watch-fallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
}

.private-watch-manual{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.private-watch-manual.hidden{
  display: none;
}

.private-watch-manual-btn{
  appearance: none;
  border: 1px solid rgba(255,61,141,0.18);
  background: rgba(255,255,255,0.92);
  color: rgba(35,35,35,0.92);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.private-watch-iframe-shell{
  position: relative;
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.private-watch-iframe-shell iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

.private-watch-iframe-hint{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(5,10,20,0.72);
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  line-height: 1.35;
  backdrop-filter: blur(8px);
}

.private-watch-chat{
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  min-height: 170px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.private-watch-chat.hidden{
  display: none !important;
}

.private-watch-panel.expanded .private-watch-chat{
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  justify-self: stretch;
  margin: 0;
  width: 100%;
  max-height: none;
  height: 100%;
  min-height: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,61,141,0.18);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  gap: 6px;
  z-index: 1;
}

.private-watch-messages{
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  justify-items: start;
  align-items: start;
  gap: 8px;
  padding-right: 2px;
}

.private-watch-panel.expanded .private-watch-messages{
  max-height: none;
  min-height: 54px;
  height: 100%;
}

.private-watch-panel.expanded .private-watch-msg{
  gap: 3px;
  padding: 6px 8px;
  border-radius: 10px;
}

.private-watch-panel.expanded .private-watch-msg-top{
  font-size: 9px;
}

.private-watch-panel.expanded .private-watch-msg-body{
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
  line-height: 1.25;
}

.private-watch-panel.expanded .private-watch-chat-form{
  gap: 6px;
}

.private-watch-panel.expanded .private-watch-chat-form input,
.private-watch-panel.expanded .private-watch-chat-form textarea{
  min-height: 42px;
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
}

.private-watch-panel.expanded .private-watch-voice-ui{
  padding: 6px 8px;
}

.private-watch-panel.expanded #privateWatchWaveCanvas{
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.private-watch-panel.expanded #privateWatchRecordTimer{
  font-size: 11px;
}

.private-watch-msg{
  position: relative;
  display: block;
  justify-self: start;
  width: fit-content;
  max-width: 94%;
  margin: 3px 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--msg-border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
  line-height: 1.2;
  word-break: break-word;
}

.private-watch-msg.me{
  justify-self: end;
  margin-left: auto;
  background:
    linear-gradient(rgba(0,0,0,var(--private-bubble-me-darken, var(--bubble-me-darken, 0))), rgba(0,0,0,var(--private-bubble-me-darken, var(--bubble-me-darken, 0)))),
    var(--private-bubble-me-bg, var(--bubble-me-bg));
  border-color: var(--bubble-me-border);
}

.private-watch-msg.other{
  justify-self: start;
  margin-right: auto;
}

.private-watch-msg-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 2px;
  color: rgba(40,40,40,0.78);
}

.private-watch-msg-body{
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
  line-height: 1.2;
  color: rgba(24,24,27,0.92);
  word-break: break-word;
}

.private-watch-msg.has-audio{
  max-width: 320px;
}

.private-watch-msg.voice-only{
  min-width: 220px;
  padding: 7px 8px 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

.private-watch-msg.voice-only .private-watch-msg-body{
  display: none;
}

.private-watch-msg .voice-message-card{
  margin-top: 2px;
}

.private-watch-chat-form{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: end;
}

#privateWatchEmojiBtn{
  grid-column: 2;
  grid-row: 1;
}

.private-watch-input-shell{
  grid-column: 1;
  grid-row: 1;
}

.private-watch-chat-form textarea,
.private-watch-chat-form input{
  min-width: 0;
  min-height: 42px;
  max-height: min(32vh, 220px);
  padding: 10px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font: inherit;
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
  line-height: 1.35;
  outline: none;
  background: rgba(255,255,255,0.94);
  resize: none;
  overflow-y: hidden;
}

#privateWatchInput{
  padding-right: 50px;
}

#privateWatchSendBtn{
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--send-offset-x), var(--send-offset-y)) scale(0.88);
  box-shadow: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

#privateWatchChatForm.has-text #privateWatchSendBtn{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--send-offset-x), var(--send-offset-y)) scale(1);
  box-shadow: 0 8px 16px rgba(255,61,141,0.2);
}

.private-watch-emoji-panel{
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 15;
  width: min(320px, calc(100vw - 32px));
}

.private-watch-panel.expanded .private-watch-chat-form{
  flex: 0 0 auto;
}

.private-watch-voice-ui{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,61,141,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
}

body.private-watch-recording #privateWatchVoiceRecordUI{
  display: flex;
}

#privateWatchWaveCanvas{
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 42px;
}

#privateWatchRecordTimer{
  min-width: 38px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

body.private-watch-expanded{
  overflow: hidden;
}

.private-thread{
  display: block;
}

#privateComposer{
  position: relative;
  padding: 6px 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

#privateForm #privateEmojiBtn{
  align-self: end;
}

#privateScrollDownBtn{
  right: -296px;
  bottom: 12px;
  z-index: 12;
}

#privateSendMenu{
  position: absolute;
  right: 8px;
  bottom: calc(100% + 8px);
  min-width: 220px;
}

.private-mobile-video-hint{
  display: none;
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.25;
  color: rgba(40,40,40,0.62);
}

#privatePanel.is-hidden{
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
}

#privateShowBtn{
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(255,61,141,0.26);
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: none !important;
}

#privateDialogTabs{
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
  background: rgba(255,255,255,0.42);
}

#privateDialogTabs button{
  position: relative;
  min-height: 30px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,0.68);
  color: #374151;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

#privateDialogTabs button.active{
  border-color: rgba(37, 99, 235, 0.32);
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

#privateDialogTabs button[data-count]:not([data-count=""])::after{
  content: attr(data-count);
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
  font-size: 10px;
}

#privateDialogs {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

#privateDialogs.private-dialogs-telegram-folder-open{
  display: grid;
  grid-template-rows: 180px 14px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  white-space: normal;
}

#privateDialogs.private-dialogs-list{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 8px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  scrollbar-width: thin;
}

.private-dialog-search{
  flex: 0 0 auto;
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0 0 4px;
}

.private-dialog-search input{
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(255,255,255,0.88);
  color: #111827;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.private-dialog-search input:focus{
  border-color: rgba(37,99,235,0.36);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.private-dialog-search-telegram-inline{
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0 0 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.86));
}

.private-telegram-folder-top-row,
.private-telegram-folder-dialog-row{
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.private-telegram-folder-top-row{
  flex-direction: column;
  min-height: 84px;
  max-height: min(240px, 38vh);
  padding-bottom: 4px;
}

.private-telegram-folder-split{
  position: relative;
  width: 100%;
  min-width: 0;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: row-resize;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.private-telegram-folder-split::before{
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.26);
}

.private-telegram-folder-split::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  transform: translateX(-50%);
}

.private-telegram-folder-split:hover::before,
.private-telegram-folder-split:focus-visible::before,
#privateDialogs.is-resizing-telegram-folders .private-telegram-folder-split::before{
  background: rgba(37, 99, 235, 0.52);
}

.private-telegram-folder-split:focus-visible{
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}

.private-telegram-folder-top-row .private-dialog-item,
.private-telegram-folder-top-row .private-telegram-folder-wrap{
  width: 100%;
  max-width: none;
}

.private-telegram-folder-top-row .private-telegram-folder-wrap{
  flex: 0 0 auto;
}

.private-telegram-folder-top-row .private-telegram-folder-wrap > .private-telegram-folder-item{
  flex: 1 1 auto;
}

.private-telegram-folder-dialog-row{
  flex-direction: column;
  padding-top: 4px;
}

.private-telegram-folder-dialog-row .private-dialog-item{
  width: 100%;
  max-width: none;
  justify-content: space-between;
}

.private-dialog-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: none;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.65);
  color: inherit;
  font: inherit;
  white-space: nowrap;
  appearance: none;
}

#privateDialogs.private-dialogs-list .private-dialog-item{
  width: 100%;
  max-width: none;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border-color: transparent;
  background: transparent;
  white-space: normal;
}

#privateDialogs.private-dialogs-list .private-dialog-item:hover{
  background: rgba(255,255,255,0.58);
}

#privateDialogs.private-dialogs-list .private-dialog-item.active{
  background: rgba(255,61,141,0.12);
  border-color: rgba(255,61,141,0.18);
}

#privateDialogs.private-dialogs-list .private-dialog-item.unread{
  border-color: rgba(255,61,141,0.20);
  box-shadow: inset 3px 0 0 rgba(255,61,141,0.72);
}

.private-dialog-item.active {
  background: rgba(255,61,141,0.12);
  border-color: rgba(255,61,141,0.22);
}

.private-dialog-item.unread {
  border-color: rgba(255,61,141,0.34);
  box-shadow: 0 0 0 3px rgba(255,61,141,0.10);
}

.private-dialog-empty{
  cursor: default;
  color: rgba(55, 65, 81, 0.66);
}

.private-dialog-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#privateDialogs.private-dialogs-list .private-dialog-name{
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.private-dialog-text{
  min-width: 0;
  display: grid;
  gap: 3px;
}

.private-dialog-title{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.private-dialog-preview{
  min-width: 0;
  width: 100%;
  max-width: clamp(92px, 48%, 150px);
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

#privateDialogs.private-dialogs-list .private-dialog-item:not(.active) .private-dialog-preview-message{
  display: none;
}

.private-dialog-presence{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f9f6e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.private-group-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 16, 24, 0.48);
  backdrop-filter: blur(8px);
}

.private-group-picker {
  width: min(440px, 100%);
  max-height: min(620px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: #24131c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.private-group-picker h3 {
  margin: 0;
  font-size: 20px;
}

.private-group-picker-hint {
  margin: 0;
  color: rgba(36, 19, 28, 0.66);
  line-height: 1.45;
}

.private-group-picker-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.private-group-picker-row {
  display: grid;
  grid-template-columns: 22px 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.private-group-picker-row:has(input:checked) {
  border-color: rgba(255, 61, 141, 0.4);
  background: rgba(255, 61, 141, 0.1);
}

.private-group-picker-row input {
  accent-color: var(--accent);
}

.private-group-picker-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-position: center;
  background-size: cover;
  color: white;
  font-weight: 800;
}

.private-group-picker-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.private-group-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.private-group-picker-actions button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.private-group-picker-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: #24131c;
}

.private-group-picker-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 26px rgba(255, 61, 141, 0.22);
}

.private-group-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 16, 24, 0.52);
  backdrop-filter: blur(10px);
}

.private-group-create-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(740px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.98);
  color: #24131c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.30);
  overflow: hidden;
}

.private-group-create-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  color: #24131c;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.private-group-create-heading {
  padding-right: 36px;
}

.private-group-create-heading h3 {
  margin: 0;
  font-size: 22px;
}

.private-group-create-heading p {
  margin: 5px 0 0;
  color: rgba(36, 19, 28, 0.62);
  line-height: 1.4;
}

.private-group-create-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
}

.private-group-create-top {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.private-group-create-visual {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 61, 141, 0.10), rgba(138, 92, 246, 0.10));
}

.private-group-create-logo {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 61, 141, 0.46);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  background-position: center;
  background-size: cover;
  color: #be185d;
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
}

.private-group-create-logo.has-logo {
  border-style: solid;
  border-color: rgba(255, 61, 141, 0.34);
}

.private-group-create-visual span {
  color: rgba(36, 19, 28, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.private-group-create-fields {
  display: grid;
  gap: 10px;
}

.private-group-create-field {
  display: grid;
  gap: 6px;
}

.private-group-create-field span,
.private-group-create-member-title {
  color: rgba(36, 19, 28, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.private-group-create-field input {
  min-height: 44px;
  border: 1px solid rgba(255, 61, 141, 0.22);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #24131c;
  font: inherit;
  outline: none;
}

.private-group-create-field input:focus {
  border-color: rgba(255, 61, 141, 0.48);
  box-shadow: 0 0 0 3px rgba(255, 61, 141, 0.12);
}

.private-group-create-visibility {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.private-group-create-choice {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 900;
}

.private-group-create-choice:has(input:checked) {
  color: #be185d;
  border-color: rgba(255, 61, 141, 0.38);
  background: rgba(255, 61, 141, 0.10);
}

.private-group-create-choice input,
.private-group-create-member input {
  accent-color: var(--accent);
}

.private-group-create-members {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.private-group-create-member {
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.private-group-create-member:has(input:checked) {
  border-color: rgba(255, 61, 141, 0.4);
  background: rgba(255, 61, 141, 0.1);
}

.private-group-create-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-position: center;
  background-size: cover;
  color: white;
  font-weight: 900;
}

.private-group-create-member span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.private-group-create-error {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.95);
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
}

.private-group-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.private-group-create-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.private-group-create-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: #24131c;
}

.private-group-create-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 26px rgba(255, 61, 141, 0.22);
}

.private-group-create-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 560px) {
  .private-group-create-modal {
    padding: 16px;
  }

  .private-group-create-top {
    grid-template-columns: 1fr;
  }

  .private-group-create-visual {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
  }

  .private-group-create-logo {
    width: 76px;
    height: 76px;
  }

  .private-group-create-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.private-group-members-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10055;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 16, 24, 0.48);
  backdrop-filter: blur(8px);
}

.private-group-members-modal {
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.97);
  color: #24131c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.private-group-members-modal h3 {
  margin: 0;
  font-size: 20px;
}

.private-group-members-hint {
  margin: 0;
  color: rgba(36, 19, 28, 0.66);
  line-height: 1.45;
}

.private-group-members-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.private-group-members-row {
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.private-group-members-row:has(input:checked) {
  border-color: rgba(255, 61, 141, 0.4);
  background: rgba(255, 61, 141, 0.1);
}

.private-group-members-row input {
  accent-color: var(--accent);
}

.private-group-members-row input:disabled {
  opacity: 0.35;
}

.private-group-members-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-position: center;
  background-size: cover;
  color: #fff;
  font-weight: 900;
}

.private-group-members-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.private-group-members-role {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.private-group-members-role.role-owner {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.private-group-members-role.role-admin {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.private-group-members-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.private-group-members-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 26px rgba(255, 61, 141, 0.2);
  cursor: pointer;
  font-weight: 800;
}

.private-group-members-btn.secondary {
  color: #24131c;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.private-group-members-btn.danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.private-dialog-avatar{
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: center / cover no-repeat rgba(255,255,255,0.96);
  border: 1px solid rgba(255,61,141,0.14);
  box-shadow: 0 4px 10px rgba(255,61,141,0.12);
  background-image: url("/pictures/strawberry2.jpg");
}

#privateDialogs.private-dialogs-list .private-dialog-avatar{
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  box-shadow: 0 6px 16px rgba(15,23,42,0.12);
}

.private-dialog-avatar-my-room{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7c2, #ff8ec7);
  color: #7e2f55;
  font-size: 13px;
  font-weight: 900;
}

.private-dialog-avatar-group,
.private-header-avatar-group{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background-image: linear-gradient(135deg, #2563eb, #10b981);
  background-position: center;
  background-size: cover;
  cursor: default;
}

.private-header-avatar-group:hover,
.private-header-avatar-group:focus-visible{
  transform: none;
  box-shadow: 0 6px 18px rgba(37,99,235,0.18);
}

.private-dialog-group-role{
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.private-dialog-item-my-room{
  border-color: rgba(255, 193, 7, 0.28);
  background: rgba(255, 248, 214, 0.8);
}

#privatePanel.private-my-room-active #privateComposer,
#privatePanel.private-my-room-active #privateTypingIndicator,
#privatePanel.private-my-room-active #privateScrollDownBtn{
  display: none !important;
}

#privatePanel.private-my-room-active #privateHeaderCallActions .private-header-call-btn:not(.private-group-create-btn){
  display: none !important;
}

#privatePanel.private-my-room-active #privateChatContainer{
  padding: 12px;
}

#privatePanel.private-my-room-active #privateHeaderAvatar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: none !important;
  background: linear-gradient(135deg, #fff7c2, #ff8ec7) !important;
}

#privatePanel.private-my-room-active #privateHeaderAvatar::before{
  content: "★";
  color: #7e2f55;
  font-size: 18px;
  font-weight: 900;
}

.my-room-view{
  display: grid;
  gap: 14px;
  min-height: 100%;
}

.my-room-head{
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 247, 194, 0.88), rgba(255, 142, 199, 0.18));
  border: 1px solid rgba(255, 193, 7, 0.22);
}

.my-room-head h3{
  margin: 0;
  font-size: 22px;
  color: #4b2435;
}

.my-room-head p{
  margin: 6px 0 0;
  color: rgba(42,42,42,0.68);
  line-height: 1.35;
}

.my-room-app-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.my-room-app-tile{
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 7px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(255,61,141,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  color: #4b2435;
  box-shadow: 0 12px 28px rgba(80,28,52,0.10);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.my-room-app-tile:hover,
.my-room-app-tile:focus-visible{
  border-color: rgba(255,61,141,0.34);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(80,28,52,0.14);
}

.my-room-app-icon{
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 22px rgba(255,61,141,0.18);
}

.my-room-navigator-app-icon{
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.72), transparent 26px),
    linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255,61,141,0.18);
  overflow: hidden;
}

.my-room-navigator-app-icon__berry{
  position: relative;
  z-index: 1;
  transform: translate(-5px, 2px) rotate(-8deg);
  font-size: 29px;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(80,28,52,0.18));
}

.my-room-navigator-app-icon__arrow{
  position: absolute;
  right: 7px;
  bottom: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  transform: rotate(-42deg);
  box-shadow: 0 8px 16px rgba(37,99,235,0.25);
}

.my-room-navigator-app-icon.button{
  width: 30px;
  height: 30px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.16);
}

.my-room-navigator-app-icon.button .my-room-navigator-app-icon__berry,
.my-room-navigator-app-icon.mini .my-room-navigator-app-icon__berry,
.my-room-navigator-app-icon.titlebar .my-room-navigator-app-icon__berry,
.my-room-navigator-app-icon.app-title .my-room-navigator-app-icon__berry{
  font-size: 18px;
  transform: translate(-3px, 1px) rotate(-8deg);
}

.my-room-navigator-app-icon.button .my-room-navigator-app-icon__arrow,
.my-room-navigator-app-icon.mini .my-room-navigator-app-icon__arrow,
.my-room-navigator-app-icon.titlebar .my-room-navigator-app-icon__arrow,
.my-room-navigator-app-icon.app-title .my-room-navigator-app-icon__arrow{
  right: 3px;
  bottom: 3px;
  width: 14px;
  height: 14px;
  border-width: 1px;
  font-size: 8px;
}

.my-room-navigator-app-icon.titlebar,
.my-room-navigator-app-icon.app-title{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(255,61,141,0.14);
}

.my-room-navigator-app-icon.mini{
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.my-room-navigator-app-icon.mini .my-room-navigator-app-icon__berry{
  font-size: 25px;
}

.my-room-navigator-app-icon.mini .my-room-navigator-app-icon__arrow{
  right: 5px;
  bottom: 5px;
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.my-room-app-tile strong{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.my-room-app-tile small{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(75,36,53,0.62);
  font-size: 11px;
  line-height: 1.25;
}

.my-room-app-tile em{
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,61,141,0.12);
  color: #a41255;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.my-room-app-window{
  min-height: 360px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,61,141,0.16);
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 42px rgba(80,28,52,0.12);
}

.my-room-app-titlebar{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,61,141,0.12);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
}

.my-room-app-titlebar > div{
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.my-room-app-titlebar strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4b2435;
  font-size: 17px;
}

.my-room-app-title-icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  font-size: 19px;
}

.my-room-app-titlebar button{
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  color: #7e2f55;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.my-room-app-content{
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.my-room-youtube{
  display: grid;
  gap: 14px;
}

.my-room-youtube-card,
.my-room-youtube-upload{
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,61,141,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 28px rgba(80,28,52,0.08);
}

.my-room-youtube-card strong{
  color: #4b2435;
  font-size: 16px;
  font-weight: 900;
}

.my-room-youtube-card span{
  color: rgba(75,36,53,0.72);
  line-height: 1.35;
}

.my-room-youtube-card.collapsed{
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.my-room-youtube-connect-summary{
  min-width: 0;
  display: grid;
  gap: 3px;
}

.my-room-youtube-card.collapsed .my-room-youtube-connect-summary strong,
.my-room-youtube-card.collapsed .my-room-youtube-connect-summary span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-room-youtube-card.collapsed .my-room-youtube-actions{
  justify-content: flex-end;
}

.my-room-youtube-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.my-room-youtube .my-room-main-btn,
.my-room-youtube .my-room-secondary-btn,
.my-room-youtube .my-room-danger-btn{
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.my-room-youtube .my-room-main-btn{
  border: 0;
  background: linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255,61,141,0.18);
}

.my-room-youtube .my-room-secondary-btn{
  border: 1px solid rgba(255,61,141,0.18);
  background: rgba(255,255,255,0.94);
  color: #8a2b54;
}

.my-room-youtube .my-room-danger-btn{
  border: 1px solid rgba(220,38,38,0.22);
  background: rgba(254,242,242,0.96);
  color: #b91c1c;
}

.my-room-youtube .my-room-main-btn:disabled,
.my-room-youtube .my-room-secondary-btn:disabled,
.my-room-youtube .my-room-danger-btn:disabled{
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.my-room-youtube-upload label{
  display: grid;
  gap: 6px;
  color: #4b2435;
  font-weight: 800;
}

.my-room-youtube-upload input,
.my-room-youtube-upload textarea,
.my-room-youtube-upload select{
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 10px 12px;
}

.my-room-youtube-upload textarea{
  min-height: 92px;
  resize: vertical;
}

.my-room-youtube-preview{
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(75,36,53,0.12);
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.my-room-youtube-preview video{
  width: 100%;
  min-height: 220px;
  max-height: min(58vh, 460px);
  display: block;
  object-fit: contain;
  background: #111827;
}

.my-room-youtube-preview.recording video{
  transform: scaleX(-1);
}

.my-room-screen-preview.recording video{
  transform: none;
}

.my-room-youtube-preview-badge{
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.my-room-youtube-preview.recording .my-room-youtube-preview-badge::before{
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239,68,68,0.18);
}

.my-room-youtube-ready{
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.my-room-screen-recorder-card{
  gap: 14px;
}

.my-room-screen-recorder-toggle{
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}

.my-room-screen-recorder-toggle input{
  width: 18px;
  min-height: 18px;
  accent-color: #ff3d8d;
}

.my-room-screen-recorder-status{
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(75,36,53,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
  color: #4b2435;
}

.my-room-screen-recorder-status strong{
  font-weight: 900;
}

.my-room-screen-recorder-status span{
  color: rgba(75,36,53,0.72);
  line-height: 1.35;
}

.my-room-screen-recorder-status b{
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(239,68,68,0.1);
  color: #b91c1c;
  font-variant-numeric: tabular-nums;
}

.my-room-screen-download{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.my-room-learning{
  gap: 14px;
}

.my-room-learning-create-btn{
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255,61,141,0.2);
}

.my-room-learning-close-btn{
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.my-room-course-date-field.hidden{
  display: none;
}

.my-room-course-description-field,
.my-room-course-paid-field{
  grid-column: 1 / -1;
}

.my-room-course-paid-field{
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.my-room-course-paid-field input{
  width: auto !important;
  min-height: 0 !important;
}

.my-room-learning-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-room-learning-subtabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(34,197,94,0.14);
  border-radius: 14px;
  background: rgba(240,253,244,0.72);
}

.my-room-learning-tabs button{
  min-height: 38px;
  border: 1px solid rgba(255,61,141,0.16);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,0.94);
  color: #6f2348;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.my-room-learning-tabs button.active{
  background: linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(255,61,141,0.16);
}

.my-room-learning-subtabs button{
  min-height: 36px;
  border: 1px solid rgba(34,197,94,0.14);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,0.92);
  color: #476151;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.my-room-learning-subtabs button.active{
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.my-room-learning-course-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.my-room-learning-course-tabs button{
  min-height: 36px;
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  padding: 0 11px;
  background: rgba(255,255,255,0.94);
  color: #14532d;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.my-room-learning-course-tabs button.active{
  background: #16a34a;
  color: #fff;
}

.my-room-learning-course-list{
  display: grid;
  gap: 10px;
}

.my-room-learning-course-card{
  width: 100%;
  border: 1px solid rgba(34,197,94,0.16);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: left;
  background: rgba(255,255,255,0.94);
  color: #17211a;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22,101,52,0.08);
}

.my-room-learning-course-card strong{
  font-weight: 900;
}

.my-room-learning-course-card span{
  color: #476151;
  font-size: 13px;
  font-weight: 800;
}

.my-room-learning-progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(20,83,45,0.12);
  overflow: hidden;
}

.my-room-learning-progress span{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #16a34a;
}

.my-room-learning-create{
  gap: 10px;
}

.my-room-learning-form{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-room-learning-homework{
  grid-column: 1 / -1;
}

.my-room-learning-homework textarea,
.my-room-course-description-field textarea{
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
}

.my-room-course-payment-page{
  display: grid;
  gap: 14px;
}

.my-room-course-payment-summary{
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(34,197,94,0.18);
  background: linear-gradient(180deg, rgba(240,253,244,0.96), rgba(255,255,255,0.92));
}

.my-room-course-payment-summary span,
.my-room-course-payment-meta span{
  color: #476151;
  font-size: 12px;
  font-weight: 900;
}

.my-room-course-payment-summary strong{
  color: #166534;
  font-size: 28px;
  font-weight: 950;
}

.my-room-course-payment-summary small{
  color: rgba(22,101,52,0.72);
  font-weight: 800;
}

.my-room-course-payment-description{
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  color: rgba(50,31,43,0.78);
  line-height: 1.5;
  white-space: pre-wrap;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(75,36,53,0.10);
}

.my-room-course-payment-meta,
.my-room-course-payment-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.my-room-course-payment-actions .my-room-main-btn{
  min-height: 42px;
}

.my-room-learning-list{
  display: grid;
  gap: 12px;
}

.my-room-learning-card{
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,61,141,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 12px 28px rgba(80,28,52,0.08);
}

.my-room-learning-card.locked{
  opacity: 0.72;
}

.my-room-learning-cover{
  position: relative;
  min-height: 124px;
  border: 0;
  border-radius: 14px;
  background: center / cover no-repeat #111827;
  cursor: pointer;
  overflow: hidden;
}

.my-room-learning-cover::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,0.06), rgba(17,24,39,0.38));
}

.my-room-learning-cover span{
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #ff3d8d;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.my-room-learning-body{
  min-width: 0;
  display: grid;
  gap: 7px;
}

.my-room-learning-body small{
  color: #8a2b54;
  font-weight: 900;
}

.my-room-learning-body strong{
  color: #321f2b;
  font-size: 16px;
  font-weight: 900;
}

.my-room-learning-body p{
  margin: 0;
  color: rgba(50,31,43,0.76);
  line-height: 1.4;
  white-space: pre-wrap;
}

.my-room-learning-body em{
  color: #6b5863;
  font-size: 13px;
}

.my-room-learning-status{
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.my-room-learning-status.status-submitted{
  background: rgba(245,158,11,0.14);
  color: #92400e;
}

.my-room-learning-status.status-checked{
  background: rgba(34,197,94,0.14);
  color: #166534;
}

.my-room-learning-status.status-revision{
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
}

.my-room-learning-status.status-paid{
  background: rgba(16,185,129,0.14);
  color: #047857;
}

.my-room-learning-status.status-locked{
  background: rgba(100,116,139,0.14);
  color: #475569;
}

.my-room-learning-student{
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(168,85,247,0.12);
  color: #6b21a8;
  font-size: 12px;
  font-weight: 900;
}

.my-room-learning-homework-review{
  display: grid;
  gap: 12px;
}

.my-room-learning-homework-users{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.my-room-learning-homework-users button{
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(168,85,247,0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  color: #321f2b;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(80,28,52,0.06);
}

.my-room-learning-homework-users button.active{
  border-color: rgba(168,85,247,0.36);
  background: rgba(250,245,255,0.96);
  box-shadow: 0 12px 26px rgba(107,33,168,0.12);
}

.my-room-learning-homework-users strong{
  font-size: 14px;
  font-weight: 900;
}

.my-room-learning-homework-users span{
  color: #6b5863;
  font-size: 12px;
  font-weight: 800;
}

.my-room-learning-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.my-room-learning-actions .my-room-main-btn,
.my-room-learning-actions .my-room-secondary-btn,
.my-room-learning-actions select,
.my-room-learning-actions input{
  min-height: 38px;
  border-radius: 11px;
}

.my-room-learning-actions .my-room-learning-review-comment{
  flex: 1 1 100%;
}

.my-room-learning-answer,
.my-room-learning-answer-text{
  width: 100%;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 9px 10px;
}

.my-room-learning-answer{
  resize: vertical;
}

.my-room-learning-submission,
.my-room-learning-review-note{
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(75,36,53,0.12);
  background: rgba(255,255,255,0.72);
}

.my-room-learning-submission > span,
.my-room-learning-review-note > span{
  color: #8a2b54;
  font-size: 12px;
  font-weight: 900;
}

.my-room-learning-submission small{
  color: rgba(50,31,43,0.58);
  font-weight: 700;
}

.my-room-learning-review-comment{
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 9px 10px;
  resize: vertical;
}

.my-room-learning-access{
  gap: 10px;
}

.my-room-learning-access > input{
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 9px 11px;
}

.my-room-learning-user-results,
.my-room-learning-access-list{
  display: grid;
  gap: 8px;
}

.my-room-learning-user-result,
.my-room-learning-access-list span{
  min-height: 34px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.94);
  color: #321f2b;
  font: inherit;
  font-weight: 800;
}

.my-room-learning-user-result{
  cursor: pointer;
}

.my-room-learning-student-row{
  display: grid;
  gap: 6px;
  border: 1px solid rgba(75,36,53,0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.9);
}

.my-room-learning-student-row strong{
  color: #321f2b;
  font-weight: 900;
}

.my-room-learning-student-row > span{
  color: #6b5863;
  font-size: 13px;
  font-weight: 800;
}

.my-room-learning-student-actions,
.my-room-learning-danger-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-room-confirm-backdrop{
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(18,12,16,0.46);
}

.my-room-confirm-dialog{
  width: min(420px, 100%);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
  background: #fff;
  color: #321f2b;
  box-shadow: 0 26px 70px rgba(18,12,16,0.28);
}

.my-room-confirm-dialog strong{
  font-size: 18px;
  font-weight: 900;
}

.my-room-confirm-dialog p{
  margin: 0;
  color: #6b5863;
  line-height: 1.45;
}

.my-room-confirm-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.my-room-learning-actions select,
.my-room-learning-actions input{
  border: 1px solid rgba(75,36,53,0.14);
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 8px 10px;
}

.my-room-learning-cabinet-note{
  padding: 12px;
  border: 1px solid rgba(14,165,233,0.16);
  border-radius: 14px;
  background: rgba(224,242,254,0.74);
  color: #0c4a6e;
  font-weight: 800;
  line-height: 1.35;
}

.my-room-payments{
  gap: 14px;
}

.my-room-payment-notice{
  padding: 12px;
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 14px;
  background: rgba(236,253,245,0.82);
  color: #065f46;
  font-weight: 800;
  line-height: 1.35;
}

.my-room-payment-warning{
  padding: 12px;
  border: 1px solid rgba(245,158,11,0.26);
  border-radius: 14px;
  background: rgba(255,251,235,0.88);
  color: #92400e;
  font-weight: 900;
  line-height: 1.35;
}

.my-room-payment-form{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-room-payment-form label{
  display: grid;
  gap: 6px;
  color: #6f2348;
  font-weight: 900;
}

.my-room-payment-form input,
.my-room-payment-form select,
.my-room-payment-form textarea,
.my-room-payment-course-controls input,
.my-room-payment-course-controls select{
  min-height: 40px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2a1d1a;
  font: inherit;
  padding: 9px 11px;
}

.my-room-payment-notes{
  grid-column: 1 / -1;
}

.my-room-payment-form textarea{
  resize: vertical;
}

.my-room-payment-course-list,
.my-room-payment-order-list{
  display: grid;
  gap: 10px;
}

.my-room-payment-course-card,
.my-room-payment-order{
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,61,141,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(80,28,52,0.06);
}

.my-room-payment-course-card strong,
.my-room-payment-order strong{
  color: #321f2b;
  font-weight: 900;
}

.my-room-payment-course-card small,
.my-room-payment-order small,
.my-room-payment-order span{
  color: rgba(50,31,43,0.72);
  font-weight: 800;
}

.my-room-payment-course-controls{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.my-room-payment-course-controls label{
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f2348;
  font-weight: 900;
}

.my-room-payment-course-controls input[type="checkbox"]{
  min-height: 0;
  width: 18px;
  height: 18px;
  padding: 0;
}

.my-room-payment-course-controls input[type="number"]{
  width: 120px;
}

.my-room-payment-course-controls select{
  width: 96px;
}

@media (max-width: 700px){
  .my-room-learning-form,
  .my-room-learning-card,
  .my-room-payment-form{
    grid-template-columns: 1fr;
  }

  .my-room-learning-cover{
    min-height: 180px;
  }
}

.my-room-youtube-progress{
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255,61,141,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
}

.my-room-youtube-progress.hidden{
  display: none;
}

.my-room-youtube-progress > div{
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(75,36,53,0.10);
}

.my-room-youtube-progress > div span{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3d8d, #ffcf5a);
  transition: width 0.18s ease;
}

.my-room-youtube-progress strong{
  color: #7e2f55;
  font-size: 13px;
  font-weight: 900;
}

.my-room-youtube-details{
  display: grid;
  gap: 12px;
  padding: 0;
  border: 1px solid rgba(255,61,141,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 12px 28px rgba(80,28,52,0.08);
}

.my-room-youtube-details > summary{
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #4b2435;
  cursor: pointer;
  list-style: none;
}

.my-room-youtube-details > summary::-webkit-details-marker{
  display: none;
}

.my-room-youtube-details > summary span{
  display: grid;
  gap: 3px;
}

.my-room-youtube-details > summary strong{
  font-size: 15px;
  font-weight: 900;
}

.my-room-youtube-details > summary small{
  color: rgba(75,36,53,0.64);
  font-size: 12px;
  font-weight: 800;
}

.my-room-youtube-details > summary b{
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,61,141,0.10);
  color: #a32960;
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.16s ease;
}

.my-room-youtube-details[open] > summary b{
  transform: rotate(-90deg);
}

.my-room-youtube-details > :not(summary){
  margin: 0 14px 14px;
}

.my-room-youtube-shelf-create{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.my-room-youtube-shelf-create input,
.my-room-youtube-shelf-select{
  min-height: 36px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.94);
  color: #3a2832;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.my-room-youtube-shelf-create input{
  min-width: min(220px, 100%);
}

.my-room-youtube-shelf-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-room-youtube-shelf-bar button{
  min-height: 32px;
  border: 1px solid rgba(255,61,141,0.16);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255,255,255,0.92);
  color: #7e2f55;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.my-room-youtube-shelf-bar button.active{
  border-color: rgba(255,61,141,0.38);
  background: rgba(255,61,141,0.14);
  color: #8a174f;
}

.my-room-youtube-history{
  display: grid;
  gap: 12px;
}

.my-room-youtube-table-wrap{
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.my-room-youtube-table{
  width: 100%;
  min-width: 0;
  display: block;
  border-collapse: separate;
  border-spacing: 0;
  color: #3a2832;
  font-size: 13px;
}

.my-room-youtube-table thead{
  display: none;
}

.my-room-youtube-table tbody{
  display: grid;
  gap: 10px;
  min-width: min(100%, 360px);
}

.my-room-youtube-table tr{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(75,36,53,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 18px rgba(80,28,52,0.07);
}

.my-room-youtube-table th,
.my-room-youtube-table td{
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  text-align: left;
  vertical-align: middle;
}

.my-room-youtube-table td{
  display: grid;
  gap: 4px;
}

.my-room-youtube-table td::before{
  content: attr(data-label);
  color: rgba(75,36,53,0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-room-youtube-table th{
  color: rgba(75,36,53,0.68);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.my-room-youtube-table td:first-child{
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  font-weight: 800;
  font-size: 15px;
}

.my-room-youtube-table tr:last-child td{
  border-bottom: 0;
}

.my-room-youtube-table a{
  color: #b3225f;
  font-weight: 900;
  text-decoration: none;
}

.my-room-youtube-table-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.my-room-youtube-table-actions button{
  min-height: 40px;
  border: 1px solid rgba(255,61,141,0.18);
  border-radius: 10px;
  padding: 0 8px;
  background: rgba(255,255,255,0.94);
  color: #8a2b54;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.my-room-youtube-table-actions a{
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,61,141,0.18);
  border-radius: 10px;
  padding: 0 8px;
  background: rgba(255,255,255,0.94);
  text-align: center;
  font-size: 12px;
  white-space: normal;
}

.my-room-youtube-icon{
  width: 18px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #ff0000;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.my-room-youtube-table-actions button.danger{
  grid-column: 1 / -1;
  border-color: rgba(220,38,38,0.22);
  background: rgba(254,242,242,0.96);
  color: #b91c1c;
}

.modal-btn.primary.danger{
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

@media (max-width: 640px){
  .my-room-youtube-history{
    gap: 10px;
  }

  .my-room-youtube-details > summary{
    align-items: flex-start;
    min-height: 0;
  }

  .my-room-youtube-details > :not(summary){
    margin: 0 10px 10px;
  }

  .my-room-youtube-table tr{
    gap: 8px;
    padding: 10px;
  }

  .my-room-youtube-table td{
    gap: 4px;
  }

  .my-room-youtube-table-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .my-room-youtube-table-actions::before{
    grid-column: 1 / -1;
  }

  .my-room-youtube-table-actions button,
  .my-room-youtube-table-actions a{
    min-height: 40px;
  }

  .my-room-youtube-table-actions button.danger{
    grid-column: 1 / -1;
  }
}

.my-room-youtube-modal-card{
  width: min(520px, calc(100vw - 24px));
}

.my-room-youtube-modal-field,
.my-room-youtube-share-list{
  display: grid;
  gap: 8px;
}

.my-room-youtube-modal-field span{
  color: #4b2435;
  font-weight: 900;
}

.my-room-youtube-modal-field select{
  min-height: 42px;
  border: 1px solid rgba(75,36,53,0.14);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
}

.my-room-youtube-share-list{
  max-height: min(48vh, 360px);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(75,36,53,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
}

.my-room-youtube-share-row{
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #3a2832;
  font-weight: 800;
}

.my-room-youtube-share-row:hover{
  background: rgba(255,61,141,0.08);
}

.my-room-youtube-share-avatar{
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe4ef, #e0f2fe);
  background-size: cover;
  background-position: center;
  color: #8b2f57;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(75,36,53,0.10) inset;
}

.my-room-youtube-share-avatar.is-group{
  border-radius: 10px;
}

.my-room-youtube-share-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-watch-browser-shell iframe{
  min-height: 0;
}

.private-watch-browser-shell .private-watch-iframe-hint{
  position: static;
  margin: 0;
  border-radius: 0;
  background: rgba(5,10,20,0.86);
}

.my-room-tabs{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.my-room-tab{
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.86);
  color: #4b2435;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.my-room-tab.active{
  background: #ff3d8d;
  border-color: rgba(255,61,141,0.4);
  color: #fff;
}

.my-room-work-tabs{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.07);
}

.my-room-action-label{
  font-size: 13px;
  font-weight: 900;
  color: #4b2435;
  white-space: nowrap;
}

.my-room-action-select{
  width: min(100%, 240px);
  min-height: 38px;
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2f1d2d;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 7px 10px;
}

.my-room-run-tracker{
  display: grid;
  gap: 12px;
}

.my-room-run-launch{
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
}

.run-launch-copy{
  display: grid;
  gap: 5px;
}

.run-launch-copy strong{
  color: #4b2435;
  font-size: 18px;
}

.run-launch-copy span{
  color: rgba(42,42,42,0.68);
  line-height: 1.35;
}

.run-tracker-popup{
  position: fixed;
  z-index: 3800;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(75,36,53,0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 24px 70px rgba(20,20,30,0.28);
}

.run-tracker-popup.expanded{
  border-radius: 0;
  border-color: transparent;
}

.run-tracker-popup.hidden,
.run-tracker-mini-badge.hidden{
  display: none !important;
}

.run-tracker-popup.dragging,
.run-tracker-popup.resizing,
.run-tracker-mini-badge.dragging{
  user-select: none;
}

.run-tracker-popup-head{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ff3d8d, #ffcf5a);
  color: #fff;
  cursor: grab;
}

.run-tracker-popup-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.run-tracker-popup-controls{
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.run-tracker-popup-controls button{
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.24);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-popup-body{
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.run-tracker-popup.expanded .run-tracker-popup-head{
  position: sticky;
  top: 0;
}

.run-tracker-toast{
  position: absolute;
  z-index: 8;
  top: 58px;
  left: 50%;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(34, 28, 38, 0.94);
  color: #fff;
  box-shadow: 0 14px 36px rgba(20,20,30,0.28);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
}

.run-tracker-toast[data-tone="success"]{
  background: rgba(24, 126, 86, 0.95);
}

.run-tracker-toast[data-tone="error"]{
  background: rgba(185, 44, 61, 0.95);
}

.run-tracker-toast.hidden{
  display: none !important;
}

.run-tracker-resize-handle{
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  cursor: nwse-resize;
  touch-action: none;
}

.run-tracker-resize-handle::before{
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 11px;
  height: 11px;
  border-right: 2px solid rgba(75,36,53,0.34);
  border-bottom: 2px solid rgba(75,36,53,0.34);
}

.run-tracker-mini-badge{
  position: fixed;
  z-index: 3801;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,61,141,0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7c2, #ff8ec7);
  box-shadow: 0 14px 34px rgba(20,20,30,0.24);
  cursor: pointer;
}

.run-tracker-mini-badge span{
  font-size: 24px;
  line-height: 1;
  transform: translateY(2px);
}

.run-tracker-mini-badge strong{
  position: absolute;
  right: 7px;
  bottom: 5px;
  font-size: 18px;
  line-height: 1;
}

.run-tracker-toolbar{
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
}

.run-tracker-status-block{
  display: grid;
  gap: 4px;
}

.run-tracker-status-block strong{
  color: #4b2435;
  font-size: 17px;
}

.run-tracker-status-block span{
  color: rgba(42,42,42,0.68);
  line-height: 1.35;
}

#runTrackerStatus[data-kind="active"]{
  color: #0f766e;
}

#runTrackerStatus[data-kind="error"]{
  color: #b42318;
}

#runTrackerStatus[data-kind="done"]{
  color: #4b5563;
}

.run-tracker-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.presence-toggle{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  color: #4b2435;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.presence-toggle input{
  width: 16px;
  height: 16px;
  accent-color: #ff3d8d;
}

.run-tracker-primary-btn,
.run-tracker-secondary-btn,
.run-tracker-unit-toggle button{
  min-height: 38px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-primary-btn{
  background: #ff3d8d;
  color: #fff;
  border-color: rgba(255,61,141,0.4);
}

.run-tracker-secondary-btn{
  background: rgba(255,255,255,0.95);
  color: #4b2435;
}

.run-tracker-primary-btn:disabled,
.run-tracker-secondary-btn:disabled{
  cursor: default;
  opacity: 0.52;
}

.run-tracker-unit-toggle{
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(75,36,53,0.08);
}

.run-tracker-unit-toggle button{
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 10px;
  background: transparent;
  color: #4b2435;
}

.run-tracker-unit-toggle button.active{
  background: #4b2435;
  color: #fff;
}

.run-tracker-activity-tabs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.run-tracker-activity-tabs button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  color: #4b2435;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-activity-tabs button.active{
  border-color: rgba(255,61,141,0.36);
  background: rgba(255,61,141,0.12);
  color: #bf1d69;
}

.run-tracker-activity-tabs button:disabled{
  cursor: default;
  opacity: 0.5;
}

.run-tracker-stats{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.run-tracker-stats div{
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
}

.run-tracker-stats span{
  color: rgba(42,42,42,0.62);
  font-size: 12px;
  font-weight: 800;
}

.run-tracker-stats strong{
  color: #2f1d2d;
  font-size: 18px;
  line-height: 1.1;
}

.run-tracker-map{
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #e8eef1;
}

.run-tracker-map.hidden,
[data-run-gps-only].hidden,
[data-run-gym-only].hidden,
#runTrackerDistanceWrap.hidden{
  display: none !important;
}

.run-tracker-manual-fields{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
}

.run-tracker-manual-fields label{
  display: grid;
  gap: 5px;
  min-width: 0;
}

.run-tracker-manual-fields label.wide{
  grid-column: 1 / -1;
}

.run-tracker-manual-fields span{
  color: rgba(42,42,42,0.62);
  font-size: 12px;
  font-weight: 850;
}

.run-tracker-manual-fields input,
.run-tracker-gym-form input{
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(0,0,0,0.11);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.96);
  color: #2f1d2d;
  font: inherit;
}

.run-tracker-gym{
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
}

.run-tracker-gym-form{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 80px 90px auto;
  gap: 8px;
}

.run-tracker-gym-form button{
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #4b2435;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-gym-list{
  display: grid;
  gap: 6px;
}

.run-tracker-gym-set{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
}

.run-tracker-gym-set strong{
  min-width: 0;
  overflow: hidden;
  color: #2f1d2d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-tracker-gym-set span{
  color: rgba(42,42,42,0.68);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.run-tracker-gym-set button{
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: rgba(180,35,24,0.08);
  color: #b42318;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-photo{
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
}

.run-tracker-photo-preview{
  display: grid;
  gap: 8px;
}

.run-tracker-photo-preview.hidden{
  display: none;
}

.run-tracker-photo-preview img{
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.run-tracker-photo-preview button{
  justify-self: start;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(180,35,24,0.08);
  color: #b42318;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  cursor: pointer;
}

.run-tracker-player{
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
}

.run-tracker-playlist-form{
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 8px;
}

.run-tracker-playlist-form input{
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(0,0,0,0.11);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
}

.run-tracker-playlist-form button{
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #4b2435;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-file-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px dashed rgba(255,61,141,0.35);
  border-radius: 12px;
  background: rgba(255,61,141,0.08);
  color: #4b2435;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-file-btn.disabled{
  cursor: default;
  opacity: 0.56;
}

.run-tracker-file-btn input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.run-tracker-player audio{
  width: 100%;
}

.run-tracker-youtube{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #111;
}

.run-tracker-youtube.hidden{
  display: none;
}

.run-tracker-playlist{
  display: grid;
  gap: 6px;
}

.run-tracker-playlist-empty{
  color: rgba(42,42,42,0.62);
  font-size: 13px;
}

.run-tracker-track{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  color: #4b2435;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.run-tracker-track.active{
  background: rgba(255,61,141,0.12);
  border-color: rgba(255,61,141,0.28);
}

.run-tracker-track button{
  min-width: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.run-tracker-track button:disabled{
  cursor: default;
  opacity: 0.42;
}

.run-tracker-track-play{
  width: 30px;
  height: 30px;
  background: rgba(255,61,141,0.12) !important;
  color: #ff3d8d !important;
}

.run-tracker-track-title{
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-tracker-track-action{
  min-height: 30px;
  padding: 5px 8px;
  background: rgba(75,36,53,0.08) !important;
}

.run-tracker-track-action.danger{
  background: rgba(180,35,24,0.08) !important;
  color: #b42318;
}

.run-tracker-history{
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
}

.run-tracker-history-head{
  display: grid;
  gap: 3px;
}

.run-tracker-history-head strong{
  color: #4b2435;
  font-size: 15px;
}

.run-tracker-history-head span,
.run-tracker-history-empty{
  color: rgba(42,42,42,0.62);
  font-size: 13px;
  line-height: 1.35;
}

.run-tracker-history-list{
  display: grid;
  gap: 8px;
}

.run-tracker-history-card{
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(75,36,53,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
}

.run-tracker-history-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.run-tracker-history-title{
  display: grid;
  gap: 3px;
  min-width: 0;
}

.run-tracker-history-title strong{
  color: #2f1d2d;
  font-size: 14px;
}

.run-tracker-history-title span,
.run-tracker-history-meta{
  color: rgba(42,42,42,0.68);
  font-size: 12px;
  line-height: 1.35;
}

.run-tracker-history-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.run-tracker-history-delete{
  border: 0;
  border-radius: 10px;
  background: rgba(180,35,24,0.08);
  color: #b42318;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
  cursor: pointer;
}

.run-tracker-share-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
}

.run-tracker-share-select{
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(0,0,0,0.11);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: #2f1d2d;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.run-tracker-map-toggle{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  color: #4b2435;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 560px){
  .run-tracker-actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .run-tracker-actions .run-tracker-primary-btn,
  .run-tracker-actions .run-tracker-secondary-btn,
  .run-tracker-actions .presence-toggle{
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .run-tracker-unit-toggle{
    grid-column: 1 / -1;
    justify-self: start;
  }

  .run-tracker-activity-tabs,
  .run-tracker-manual-fields{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .run-tracker-stats{
    grid-template-columns: 1fr;
  }

  .run-tracker-gym-form{
    grid-template-columns: 1fr 1fr;
  }

  .run-tracker-gym-form input:first-child,
  .run-tracker-gym-form button{
    grid-column: 1 / -1;
  }

  .run-tracker-map{
    min-height: 300px;
  }

  .run-tracker-popup{
    border-radius: 0;
  }

  .run-tracker-popup.expanded{
    grid-template-rows: auto minmax(0, 1fr);
  }

  .run-tracker-popup.expanded .run-tracker-popup-head{
    position: sticky;
    top: 0;
    z-index: 12;
    min-width: 0;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  }

  .run-tracker-popup.expanded .run-tracker-popup-title{
    min-width: 0;
    overflow: hidden;
  }

  .run-tracker-popup.expanded .run-tracker-popup-title strong{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .run-tracker-popup.expanded .run-tracker-popup-controls{
    display: inline-flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    visibility: visible !important;
  }

  .run-tracker-popup.expanded .run-tracker-popup-controls button{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .run-tracker-playlist-form{
    grid-template-columns: 1fr;
  }

  .run-tracker-share-row{
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .run-tracker-track{
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .run-tracker-track-action{
    grid-column: span 1;
  }
}

@media (max-width: 768px), (orientation: landscape) and (pointer: coarse){
  body.run-tracker-expanded{
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.run-tracker-expanded #mobileTopbar,
  body.run-tracker-expanded #sidebar,
  body.run-tracker-expanded #main{
    display: none !important;
  }

  .run-tracker-resize-handle{
    width: 36px;
    height: 36px;
  }

  .run-tracker-resize-handle::before{
    right: 8px;
    bottom: 8px;
    width: 15px;
    height: 15px;
  }

  .run-tracker-popup.expanded{
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100dvw !important;
    max-width: 100dvw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 30000 !important;
  }

  .run-tracker-popup.expanded .run-tracker-popup-head{
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 52px;
    padding: max(8px, env(safe-area-inset-top)) 112px 8px 10px;
  }

  .run-tracker-popup.expanded .run-tracker-popup-title{
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .run-tracker-popup.expanded .run-tracker-popup-title strong{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .run-tracker-popup.expanded .run-tracker-popup-controls{
    position: fixed !important;
    z-index: 30010;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: max(8px, env(safe-area-inset-right));
    display: inline-flex !important;
    gap: 6px;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .run-tracker-popup.expanded .run-tracker-popup-controls button{
    display: inline-grid !important;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    background: rgba(75, 36, 53, 0.88);
    box-shadow: 0 8px 20px rgba(20,20,30,0.18);
    color: #fff;
    font-size: 16px;
    line-height: 1;
  }
}

.my-room-add-panel{
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(238,242,255,0.78));
  border: 1px solid rgba(79,70,229,0.14);
}

@media(max-width: 680px){
  .my-room-app-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .my-room-app-tile{
    min-height: 116px;
    padding: 12px 7px 10px;
    border-radius: 16px;
  }

  .my-room-app-icon{
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 24px;
  }

  .my-room-app-tile strong{
    font-size: 12px;
  }

  .my-room-app-tile small{
    display: none;
  }

  .my-room-app-window{
    min-height: calc(100dvh - 250px);
    border-radius: 16px;
  }

  .my-room-work-tabs{
    align-items: stretch;
    flex-direction: column;
  }
  .my-room-action-select{ width: 100%; }
}

.my-room-shelf-bar{
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.07);
}

.my-room-shelf-filters{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.my-room-shelf-chip{
  flex: 0 0 auto;
  border: 1px solid rgba(79,70,229,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  cursor: pointer;
}

.my-room-shelf-chip.active{
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  border-color: transparent;
}

.my-room-shelf-form{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.my-room-shelf-form input,
.my-room-item-shelf-select{
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.96);
  color: inherit;
  font: inherit;
  font-size: 12px;
  padding: 7px 9px;
}

.my-room-shelf-form button,
.my-room-shelf-actions button{
  border: 0;
  border-radius: 999px;
  background: rgba(255,61,141,0.12);
  color: #b3225f;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
  cursor: pointer;
}

.my-room-shelf-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-room-form{
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(140px, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.08);
}

.my-room-form label{
  display: grid;
  gap: 5px;
  min-width: 0;
}

.my-room-form span{
  font-size: 12px;
  font-weight: 800;
  color: rgba(42,42,42,0.66);
}

.my-room-form input,
.my-room-form select{
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.96);
  color: inherit;
  font: inherit;
  padding: 8px 10px;
}

.my-room-title-field,
.my-room-url-field{
  grid-column: 1 / -1;
}

.my-room-file-field,
.my-room-book-source-mode{
  grid-column: 1 / -1;
}

.my-room-book-source-mode{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(79,70,229,0.08);
}

.my-room-form .my-room-book-source-mode button{
  grid-column: auto;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(79,70,229,0.16);
  border-radius: 11px;
  background: rgba(255,255,255,0.82);
  color: #28304f;
  padding: 7px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-room-form .my-room-book-source-mode button.active{
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
}

.my-room-file-note{
  min-width: 0;
  color: rgba(42,42,42,0.58);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.my-room-shelf-field{
  grid-column: 1 / -1;
}

.my-room-form button{
  grid-column: 1 / -1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.my-room-section{
  display: grid;
  gap: 10px;
}

.my-room-section-title{
  display: grid;
  gap: 3px;
}

.my-room-section-title strong{
  color: #4b2435;
  font-size: 18px;
}

.my-room-section-title span,
.my-room-empty{
  color: rgba(42,42,42,0.62);
}

.my-room-list{
  display: grid;
  gap: 10px;
}

.my-room-friends-location{
  gap: 12px;
}

.my-room-friends-map-wrap{
  min-height: 360px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.7);
}

.my-room-friends-map{
  width: 100%;
  height: min(52vh, 460px);
  min-height: 360px;
}

.my-room-friend-map-marker{
  background: transparent;
  border: 0;
}

.my-room-friend-map-marker-inner{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 58px;
  color: #fff;
  transform: translateY(-50%);
}

.my-room-friend-map-marker-inner::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  background: #ea4335;
  box-shadow: 0 8px 18px rgba(60, 64, 67, 0.32);
  transform: translateX(-50%) rotate(-45deg);
}

.my-room-friend-map-marker-inner::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.95);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.28);
  transform: translateX(-50%);
}

.my-room-friend-map-marker-inner.is-driving::after{
  content: "🚗";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  left: auto;
  right: -10px;
  bottom: 9px;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(60, 64, 67, 0.32);
  transform: none;
}

.my-room-friend-map-marker-inner img,
.my-room-friend-map-initial{
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  background: #f8fafc;
  box-shadow: 0 2px 7px rgba(60, 64, 67, 0.28);
  transform: translateY(-6px);
}

.my-room-friend-map-initial{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #1f2937;
}

.my-room-friend-map-dot{
  display: none;
}

.my-room-friend-map-marker-inner strong{
  min-width: 0;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.my-room-open-strawberry-map{
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f2, #ecfdf5);
  color: #7f1d1d;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.1);
}

.my-room-open-strawberry-map em{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0;
}

.strawberry-map-window{
  position: fixed;
  z-index: 13000;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.28);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.my-room-navigator-window{
  z-index: 50090;
  min-height: min(720px, calc(100vh - 16px));
}

.my-room-navigator-mini{
  z-index: 50091;
}

.strawberry-map-window.hidden,
.strawberry-map-mini.hidden{
  display: none;
}

.strawberry-map-window.dragging,
.strawberry-map-mini.dragging{
  user-select: none;
}

.strawberry-map-titlebar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 0 0 0 12px;
  background: linear-gradient(180deg, #f8fafc, #e5e7eb);
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
  cursor: move;
}

.strawberry-map-brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #111827;
}

.strawberry-map-brand strong{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.strawberry-map-window-controls{
  display: grid;
  grid-template-columns: repeat(3, 46px);
  align-self: stretch;
}

.my-room-navigator-window .strawberry-map-window-controls{
  grid-template-columns: repeat(2, 46px);
  margin-left: auto;
}

.strawberry-map-window-controls button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.strawberry-map-window-controls button:hover{
  background: rgba(15, 23, 42, 0.08);
}

.strawberry-map-window-controls button:last-child:hover{
  background: #dc2626;
  color: #fff;
}

.strawberry-map-window-body{
  position: relative;
  min-height: 0;
  background: #e0f2fe;
}

.strawberry-map-canvas{
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.strawberry-map-empty{
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 22px;
  color: #334155;
  text-align: center;
  font-weight: 900;
}

.strawberry-map-mini{
  position: fixed;
  z-index: 13001;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.94);
  border-radius: 10px;
  background: #dcfce7;
  color: #fff;
  cursor: grab;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.28);
}

.strawberry-map-mini.dragging{
  cursor: grabbing;
}

.strawberry-map-mini-map{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(36deg, transparent 0 38%, rgba(21, 128, 61, 0.46) 39% 44%, transparent 45%),
    linear-gradient(126deg, transparent 0 42%, rgba(14, 165, 233, 0.5) 43% 50%, transparent 51%),
    linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.34) 1px, transparent 1px),
    #86efac;
  background-size: auto, auto, 18px 18px, 18px 18px, auto;
}

.strawberry-map-mini-fruit{
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 2px 7px rgba(0,0,0,0.24);
}

.strawberry-map-mini strong{
  position: relative;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(190, 18, 60, 0.92);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0;
}

.my-room-friends-location-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.my-room-friend-location-card{
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.16);
  background: rgba(255,255,255,0.88);
  color: #064e3b;
  text-decoration: none;
}

.my-room-friend-location-card strong{
  color: inherit;
  font-size: 14px;
}

.my-room-friend-location-card span{
  color: rgba(6, 78, 59, 0.68);
  font-size: 12px;
}

.my-room-friend-location-card .my-room-friend-battery{
  color: #047857;
  font-weight: 800;
}

.my-room-friend-location-card .my-room-friend-driving{
  color: #b91c1c;
  font-weight: 900;
}

.my-room-navigator{
  gap: 12px;
}

.my-room-navigator-window-body{
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #eff6ff;
}

.my-room-navigator-window-body.navigator-night{
  background: #07111f;
}

.my-room-navigator-window-body.navigator-night .leaflet-tile-pane{
  filter: brightness(0.62) contrast(1.2) saturate(0.68) hue-rotate(175deg);
}

.my-room-navigator-window-body.navigator-night .leaflet-container{
  background: #07111f;
}

.my-room-navigator-window-body .my-room-navigator-map{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  --navigator-map-rotation: 0deg;
}

.my-room-navigator-window-body .leaflet-control-container{
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.my-room-navigator-window-body.controls-visible .leaflet-control-container{
  opacity: 1;
  pointer-events: auto;
}

.my-room-navigator-mini-icon{
  position: relative;
  z-index: 1;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 2px 7px rgba(0,0,0,0.24);
}

.my-room-navigator-controls{
  position: absolute;
  z-index: 5;
  top: auto;
  bottom: max(91px, calc(env(safe-area-inset-bottom) + 91px));
  left: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 8px;
  min-height: 58px;
  max-height: min(190px, calc(100% - 164px));
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.my-room-navigator-tabs{
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 38px;
  flex: 0 0 auto;
}

.my-room-navigator-tabs button{
  min-height: 38px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  color: #1f2937;
  box-shadow: none;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.my-room-navigator-tabs button.active{
  background: #2563eb;
  color: #fff;
  border-color: rgba(37, 99, 235, 0.34);
}

.my-room-navigator-search-panel{
  display: none;
  grid-template-columns: repeat(5, minmax(108px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.my-room-navigator-search-panel.active{
  display: grid;
  max-height: max(0px, calc(100% - 46px));
  overflow: auto;
  padding-bottom: 1px;
}

.my-room-navigator-window-body.controls-visible .my-room-navigator-controls,
.my-room-navigator-window-body.controls-visible .my-room-navigator-saved,
.my-room-navigator-window-body.controls-visible .my-room-navigator-status,
.my-room-navigator-window-body.controls-visible .my-room-navigator-arrived{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.my-room-navigator-search{
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
}

.my-room-navigator-route-mode{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.my-room-navigator-controls input{
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,0.94);
  color: #1f2937;
  font: inherit;
}

.my-room-navigator-controls button{
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.my-room-navigator-search-panel > button:nth-of-type(2){
  background: #0f766e;
}

.my-room-navigator-search-panel > button:nth-of-type(3){
  background: #111827;
}

.my-room-navigator-search-panel > button:nth-of-type(4){
  background: #ea580c;
}

.my-room-navigator-search-panel > button:nth-of-type(5){
  background: #b91c1c;
}

.my-room-navigator-search-panel > button.active{
  background: #b91c1c;
}

.my-room-navigator-route-mode button{
  background: rgba(255,255,255,0.94);
  color: #1f2937;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.my-room-navigator-route-mode button.active{
  background: #2563eb;
  color: #fff;
  border-color: rgba(37, 99, 235, 0.36);
}

.my-room-navigator-window-body.is-driving .my-room-navigator-controls{
  display: none;
}

.my-room-navigator-window-body.is-driving.controls-visible .my-room-navigator-controls{
  display: none;
}

.my-room-navigator-window-body.is-driving .my-room-navigator-saved{
  display: none;
}

.my-room-navigator-window-body.is-driving .my-room-navigator-search,
.my-room-navigator-window-body.is-driving #myRoomNavigatorLocate,
.my-room-navigator-window-body.is-driving #myRoomNavigatorRoute,
.my-room-navigator-window-body.is-driving #myRoomNavigatorDrive{
  display: none;
}

.my-room-navigator-saved{
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  top: auto;
  bottom: 164px;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: min(190px, calc(100% - 258px));
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.88);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.my-room-navigator-window-body[data-navigator-panel="saved"] .my-room-navigator-controls{
  top: auto;
  bottom: max(91px, calc(env(safe-area-inset-bottom) + 91px));
  min-height: 58px;
  max-height: 86px;
}

.my-room-navigator-window.maximized .my-room-navigator-controls{
  bottom: max(105px, calc(env(safe-area-inset-bottom) + 105px));
  max-height: min(190px, calc(100% - 178px));
}

.my-room-navigator-window.maximized .my-room-navigator-window-body[data-navigator-panel="saved"] .my-room-navigator-controls{
  bottom: max(105px, calc(env(safe-area-inset-bottom) + 105px));
  max-height: 86px;
}

.my-room-navigator-saved:not(.active){
  display: none;
}

.my-room-navigator-save-row{
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(130px, 1fr) auto auto;
  gap: 6px;
  align-items: stretch;
}

.my-room-navigator-save-row select,
.my-room-navigator-save-row input[type="text"],
.my-room-navigator-photo-button,
.my-room-navigator-save-row button{
  min-height: 38px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.my-room-navigator-save-row select,
.my-room-navigator-save-row input[type="text"]{
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 0 8px;
  background: rgba(255,255,255,0.94);
  color: #1f2937;
}

.my-room-navigator-photo-button,
.my-room-navigator-save-row button{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 10px;
  background: #7c3aed;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.my-room-navigator-photo-button input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.my-room-navigator-save-row button{
  background: #db2777;
}

@media (min-width: 761px){
  .my-room-navigator-controls{
    left: 14px;
    right: 14px;
    bottom: max(131px, calc(env(safe-area-inset-bottom) + 131px));
    gap: 10px;
    padding: 10px;
    max-height: min(170px, calc(100% - 208px));
    border-radius: 16px;
  }

  .my-room-navigator-window-body[data-navigator-panel="saved"] .my-room-navigator-controls{
    bottom: max(131px, calc(env(safe-area-inset-bottom) + 131px));
    max-height: 86px;
  }

  .my-room-navigator-tabs{
    width: max-content;
    min-width: 230px;
    grid-template-columns: repeat(2, minmax(108px, auto));
    padding: 3px;
    gap: 3px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 12px;
    background: rgba(255,255,255,0.72);
  }

  .my-room-navigator-tabs button{
    min-height: 32px;
    border: 0;
    border-radius: 9px;
    padding: 0 12px;
    background: transparent;
    font-size: 12px;
  }

  .my-room-navigator-tabs button.active{
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
  }

  .my-room-navigator-search-panel{
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(82px, auto));
    gap: 8px;
    align-items: center;
  }

  .my-room-navigator-search{
    grid-column: 1 / -1;
  }

  .my-room-navigator-route-mode{
    grid-column: 1 / 2;
    grid-template-columns: repeat(2, minmax(74px, 1fr));
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.78);
  }

  .my-room-navigator-controls input{
    min-height: 40px;
    border-radius: 11px;
  }

  .my-room-navigator-controls button{
    min-width: 0;
    min-height: 36px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: none;
  }

  .my-room-navigator-route-mode button{
    min-height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #1f2937;
  }

  .my-room-navigator-route-mode button.active{
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
  }

  .my-room-navigator-search-panel > button{
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: rgba(255,255,255,0.94);
    color: #1f2937;
  }

  .my-room-navigator-search-panel > button[type="submit"]{
    background: #2563eb;
    border-color: rgba(37, 99, 235, 0.34);
    color: #fff;
  }

  .my-room-navigator-search-panel > button:nth-of-type(2),
  .my-room-navigator-search-panel > button:nth-of-type(3){
    background: rgba(255,255,255,0.94);
    color: #1f2937;
  }

  .my-room-navigator-search-panel > button:nth-of-type(4){
    background: #16a34a;
    border-color: rgba(22, 163, 74, 0.34);
    color: #fff;
  }

  .my-room-navigator-search-panel > button:nth-of-type(5),
  .my-room-navigator-search-panel > button.active{
    background: #dc2626;
    border-color: rgba(220, 38, 38, 0.34);
    color: #fff;
  }

  .my-room-navigator-window.maximized .my-room-navigator-controls{
    bottom: max(109px, calc(env(safe-area-inset-bottom) + 109px));
    max-height: min(170px, calc(100% - 184px));
  }

  .my-room-navigator-window.maximized .my-room-navigator-window-body[data-navigator-panel="saved"] .my-room-navigator-controls{
    bottom: max(109px, calc(env(safe-area-inset-bottom) + 109px));
    max-height: 86px;
  }

  .my-room-navigator-window.maximized .my-room-navigator-route-choices{
    bottom: max(255px, calc(env(safe-area-inset-bottom) + 255px));
  }
}

.my-room-navigator-places{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 2px;
  scrollbar-width: thin;
}

.my-room-navigator-places-empty{
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,0.58);
}

.my-room-navigator-place-card{
  display: grid;
  grid-template-columns: 40px minmax(128px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  flex: 0 0 min(360px, 88vw);
  min-height: 54px;
  padding: 7px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.my-room-navigator-place-card:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.my-room-navigator-place-card.coordinates-copied,
.my-room-navigator-suggestion.coordinates-copied{
  outline: 3px solid rgba(16, 185, 129, 0.42);
  outline-offset: 2px;
  background: rgba(236, 253, 245, 0.96);
}

.my-room-navigator-place-photo{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 21px;
  font-weight: 900;
}

.my-room-navigator-place-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-room-navigator-place-text{
  min-width: 0;
  display: grid;
  gap: 2px;
}

.my-room-navigator-place-text strong,
.my-room-navigator-place-text span{
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-room-navigator-place-text strong{
  color: #111827;
  font-size: 14px;
}

.my-room-navigator-place-text span{
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
}

.my-room-navigator-place-card button{
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: #ea580c;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.my-room-navigator-place-card button[data-action="delete"]{
  width: 34px;
  padding: 0;
  background: #e5e7eb;
  color: #475569;
  font-size: 20px;
  line-height: 1;
}

.my-room-navigator-suggestions{
  position: absolute;
  z-index: 7;
  top: auto;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.my-room-navigator-suggestions.hidden{
  display: none;
}

.my-room-navigator-suggestion{
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: #1f2937;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.my-room-navigator-suggestion:hover,
.my-room-navigator-suggestion:focus-visible{
  background: rgba(37, 99, 235, 0.1);
}

.my-room-navigator-status{
  position: absolute;
  z-index: 6;
  left: 14px;
  right: 14px;
  top: 92px;
  bottom: auto;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(239, 246, 255, 0.94);
  color: #1e40af;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.my-room-navigator-window-body.is-driving .my-room-navigator-status{
  top: 96px;
  bottom: auto;
  left: 50%;
  right: auto;
  width: min(520px, calc(100% - 28px));
  transform: translate(-50%, 12px);
}

.my-room-navigator-window-body.is-driving.controls-visible .my-room-navigator-status{
  transform: translate(-50%, 0);
}

.my-room-navigator-status.hidden{
  display: none;
}

.my-room-navigator-arrived{
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 104px;
  bottom: auto;
  width: min(360px, calc(100% - 28px));
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.96);
  color: #065f46;
  box-shadow: 0 18px 38px rgba(6, 95, 70, 0.18);
  backdrop-filter: blur(14px);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.my-room-navigator-arrived.hidden{
  display: none;
}

.my-room-navigator-window-body.controls-visible .my-room-navigator-arrived{
  transform: translate(-50%, 0);
}

.my-room-navigator-arrived strong{
  font-size: 18px;
  font-weight: 950;
}

.my-room-navigator-arrived span{
  font-size: 13px;
  font-weight: 800;
}

.my-room-navigator-status[data-tone="success"]{
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.96);
  color: #047857;
}

.my-room-navigator-status[data-tone="error"]{
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.my-room-navigator-route-choices{
  position: absolute;
  z-index: 6;
  left: 14px;
  right: 14px;
  bottom: max(307px, calc(env(safe-area-inset-bottom) + 307px));
  display: flex;
  gap: 8px;
  align-items: stretch;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.my-room-navigator-route-choices.hidden{
  display: none;
}

.my-room-navigator-route-choices button{
  flex: 0 0 min(172px, 52vw);
  min-height: 48px;
  display: grid;
  gap: 2px;
  align-content: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 11px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.96);
  color: #1f2937;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.my-room-navigator-route-choices button.active{
  background: #2563eb;
  border-color: rgba(37, 99, 235, 0.36);
  color: #fff;
  box-shadow: 0 9px 18px rgba(37, 99, 235, 0.18);
}

.my-room-navigator-route-choices.locked button,
.my-room-navigator-route-choices button:disabled{
  cursor: default;
}

.my-room-navigator-route-choices strong,
.my-room-navigator-route-choices span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-room-navigator-route-choices strong{
  font-size: 13px;
  font-weight: 950;
}

.my-room-navigator-route-choices span{
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  opacity: .76;
}

.my-room-navigator-guidance{
  position: absolute;
  z-index: 9;
  top: 14px;
  left: 14px;
  width: min(520px, calc(100% - 132px));
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
  transform: none;
  pointer-events: none;
}

.my-room-navigator-heading-indicator{
  position: absolute;
  z-index: 8;
  top: 14px;
  right: 14px;
  display: inline-grid;
  grid-template-columns: 30px auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.my-room-navigator-heading-indicator.hidden{
  display: none;
}

.my-room-navigator-heading-indicator__arrow{
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  transform: rotate(var(--navigator-heading, 0deg));
  transition: transform .22s linear;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.my-room-navigator-heading-indicator strong{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.my-room-navigator-guidance.hidden{
  display: none;
}

.my-room-navigator-guidance-icon{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.my-room-navigator-guidance-copy{
  min-width: 0;
  display: grid;
  gap: 3px;
}

.my-room-navigator-guidance-copy strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 950;
}

.my-room-navigator-guidance-copy span{
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 850;
}

.my-room-navigator-telemetry{
  position: absolute;
  z-index: 7;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: end;
  gap: 8px;
  pointer-events: none;
}

.my-room-navigator-window-body:not(.is-driving) .my-room-navigator-telemetry{
  display: none;
}

.my-room-navigator-return-btn{
  position: absolute;
  z-index: 8;
  left: 14px;
  bottom: 88px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  color: #1d4ed8;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  font: inherit;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.my-room-navigator-return-btn.hidden{
  display: none;
}

.my-room-navigator-return-btn.active{
  background: #2563eb;
  color: #fff;
}

.my-room-navigator-finish-btn{
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 14px;
  min-width: 128px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.24);
  backdrop-filter: blur(14px);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.my-room-navigator-finish-btn.hidden{
  display: none;
}

.my-room-navigator-window-body.is-driving .my-room-navigator-finish-btn{
  bottom: 94px;
}

.my-room-navigator-window.maximized .my-room-navigator-telemetry{
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 36px);
  z-index: 50120;
}

.my-room-navigator-window.maximized .my-room-navigator-return-btn{
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 76px);
  z-index: 50121;
}

.my-room-navigator-window.maximized .my-room-navigator-finish-btn{
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50121;
}

.my-room-navigator-window.maximized .my-room-navigator-window-body.is-driving .my-room-navigator-finish-btn{
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px);
}

.my-room-navigator-speed-card{
  min-width: 66px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 6px 7px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.84);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(14px);
  text-align: center;
}

.my-room-navigator-speed-card span,
.my-room-navigator-speed-card small{
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.my-room-navigator-speed-card strong{
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.my-room-navigator-speed-card.limit{
  width: 62px;
  min-width: 62px;
  border: 4px solid #ef4444;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #111827;
}

.my-room-navigator-speed-card.limit span{
  color: #6b7280;
}

.my-room-navigator-speed-card.limit strong{
  font-size: 18px;
}

.my-room-navigator-speed-card.limit strong.unknown{
  color: #9ca3af;
}

.my-room-navigator-speed-card.eta{
  min-width: 86px;
}

.my-room-navigator-speed-card.eta strong{
  font-size: 22px;
}

.my-room-navigator-speed-card.eta small{
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-room-navigator-unit-toggle{
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.my-room-navigator-unit-toggle button{
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,0.76);
  box-shadow: none;
  backdrop-filter: none;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  cursor: pointer;
}

.my-room-navigator-unit-toggle button.active{
  border-color: rgba(37, 99, 235, 0.36);
  background: #2563eb;
  color: #fff;
}

.my-room-navigator-map{
  width: 100%;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: #dbeafe;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-controls,
.my-room-navigator-window-body.navigator-night .my-room-navigator-saved,
.my-room-navigator-window-body.navigator-night .my-room-navigator-status,
.my-room-navigator-window-body.navigator-night .my-room-navigator-route-choices{
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: #dbeafe;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-controls input,
.my-room-navigator-window-body.navigator-night .my-room-navigator-route-mode button,
.my-room-navigator-window-body.navigator-night .my-room-navigator-tabs button,
.my-room-navigator-window-body.navigator-night .my-room-navigator-save-row select,
.my-room-navigator-window-body.navigator-night .my-room-navigator-save-row input[type="text"],
.my-room-navigator-window-body.navigator-night .my-room-navigator-place-card,
.my-room-navigator-window-body.navigator-night .my-room-navigator-suggestions,
.my-room-navigator-window-body.navigator-night .my-room-navigator-route-choices button{
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.9);
  color: #e5eefc;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-route-mode button.active,
.my-room-navigator-window-body.navigator-night .my-room-navigator-tabs button.active,
.my-room-navigator-window-body.navigator-night .my-room-navigator-unit-toggle button.active{
  background: #60a5fa;
  color: #07111f;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-places-empty{
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #bfdbfe;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-place-photo{
  background: rgba(30, 64, 175, 0.42);
  color: #dbeafe;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-place-text strong{
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-place-text span{
  color: #bfdbfe;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-place-card button[data-action="delete"]{
  background: rgba(51, 65, 85, 0.96);
  color: #e2e8f0;
}

.my-room-navigator-window-body.navigator-night .leaflet-popup-content-wrapper,
.my-room-navigator-window-body.navigator-night .leaflet-popup-tip{
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(0,0,0,0.36);
}

.my-room-navigator-window-body.navigator-night .leaflet-popup-content{
  color: #f8fafc;
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-guidance{
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(96, 165, 250, 0.24);
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-speed-card{
  background: rgba(2, 6, 23, 0.88);
}

.my-room-navigator-window-body.navigator-night .my-room-navigator-speed-card.limit{
  background: rgba(248, 250, 252, 0.96);
}

.my-room-navigator-live-pin{
  background: transparent;
  border: 0;
  z-index: 900 !important;
}

.my-room-navigator-live-marker{
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  box-shadow:
    0 0 0 8px rgba(37, 99, 235, 0.12),
    0 0 0 18px rgba(37, 99, 235, 0.06);
}

.my-room-navigator-live-marker span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 32px;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.42);
  clip-path: polygon(50% 0, 94% 100%, 50% 78%, 6% 100%);
  transform: translate(-50%, -50%) rotate(var(--heading, 0deg));
  transform-origin: 50% 50%;
  transition: transform 180ms ease-out;
}

.my-room-navigator-live-marker span::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.my-room-navigator-window-body.is-driving .my-room-navigator-live-marker::after{
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  border: 2px solid rgba(37, 99, 235, 0.22);
  animation: navigatorLivePulse 1.8s ease-out infinite;
}

@keyframes navigatorLivePulse{
  0%{
    opacity: .9;
    transform: scale(.72);
  }
  100%{
    opacity: 0;
    transform: scale(1.12);
  }
}

.my-room-navigator-window-body.is-driving .leaflet-overlay-pane path{
  filter: drop-shadow(0 6px 8px rgba(37, 99, 235, 0.24));
}

.my-room-navigator-speed-limit-pin{
  background: transparent;
  border: 0;
}

.my-room-navigator-window-body:not(.is-driving) .my-room-navigator-speed-limit-pin{
  display: none;
}

.leaflet-navigator-speed-limit-pane{
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(0);
  contain: paint;
}

.my-room-navigator-window-body:not(.is-driving) .leaflet-navigator-speed-limit-pane{
  display: none !important;
}

.my-room-navigator-speed-limit-sign{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 5px solid #ef4444;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #111827;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.my-room-navigator-place-pin{
  background: transparent;
  border: 0;
}

.my-room-navigator-place-marker{
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px 999px 999px 0;
  background: #ef4444;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.34);
  color: #fff;
  font-size: 22px;
  transform: rotate(-45deg);
  overflow: hidden;
}

.my-room-navigator-place-marker img,
.my-room-navigator-place-marker span{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  transform: rotate(45deg);
}

.my-room-navigator-place-marker img{
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.95);
}

.my-room-navigator-place-marker span{
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.96);
  color: #b91c1c;
  font-size: 18px;
}

@media (max-width: 760px){
  .my-room-navigator-controls{
    grid-template-columns: 1fr;
    top: auto;
    bottom: max(66px, calc(env(safe-area-inset-bottom) + 66px));
    left: 8px;
    right: 8px;
    gap: 6px;
    padding: 6px;
    min-height: 56px;
    max-height: min(198px, calc(100% - 152px));
  }

  .my-room-navigator-window-body[data-navigator-panel="saved"] .my-room-navigator-controls{
    top: auto;
    bottom: max(66px, calc(env(safe-area-inset-bottom) + 66px));
    min-height: 56px;
    max-height: 76px;
  }

  .my-room-navigator-search-panel{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .my-room-navigator-search{
    grid-column: 1 / -1;
  }

  .my-room-navigator-controls button{
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  #myRoomNavigatorFinish{
    grid-column: 1 / -1;
  }

  .my-room-navigator-window.maximized .my-room-navigator-finish-btn{
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 68px);
  }

  .my-room-navigator-window.maximized .my-room-navigator-controls{
    bottom: max(99px, calc(env(safe-area-inset-bottom) + 99px));
    max-height: min(198px, calc(100% - 166px));
  }

  .my-room-navigator-window.maximized .my-room-navigator-window-body[data-navigator-panel="saved"] .my-room-navigator-controls{
    bottom: max(99px, calc(env(safe-area-inset-bottom) + 99px));
    max-height: 76px;
  }

  .my-room-navigator-window-body.is-driving .my-room-navigator-controls{
    display: none;
  }

  .my-room-navigator-window-body.is-driving .my-room-navigator-status{
    top: 92px;
    bottom: auto;
    width: min(360px, calc(100% - 16px));
  }

  .my-room-navigator-save-row{
    grid-template-columns: minmax(94px, .72fr) minmax(118px, 1fr) auto;
    gap: 6px;
  }

  .my-room-navigator-saved{
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 150px;
    max-height: min(170px, calc(100% - 244px));
    padding: 6px;
  }

  .my-room-navigator-status{
    left: 8px;
    right: 8px;
    top: 92px;
    bottom: auto;
    padding: 8px 10px;
  }

  .my-room-navigator-route-choices{
    left: 8px;
    right: 8px;
    bottom: max(243px, calc(env(safe-area-inset-bottom) + 243px));
    padding: 6px;
  }

  .my-room-navigator-route-choices button{
    flex-basis: min(164px, 64vw);
  }

  .my-room-navigator-arrived{
    top: 104px;
    bottom: auto;
    width: min(320px, calc(100% - 18px));
    padding: 12px 14px;
  }

  .my-room-navigator-heading-indicator{
    top: 10px;
    right: 10px;
    grid-template-columns: 30px;
    padding: 6px;
  }

  .my-room-navigator-heading-indicator strong{
    display: none;
  }

  .my-room-navigator-guidance{
    top: 10px;
    left: 8px;
    width: calc(100% - 64px);
    min-height: 58px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .my-room-navigator-guidance-icon{
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 24px;
  }

  .my-room-navigator-save-row select,
  .my-room-navigator-save-row input[type="text"],
  .my-room-navigator-photo-button,
  .my-room-navigator-save-row button{
    min-height: 34px;
    font-size: 12px;
  }

  .my-room-navigator-photo-button{
    width: 36px;
    padding: 0;
    font-size: 0;
  }

  .my-room-navigator-photo-button::after{
    content: "📷";
    font-size: 16px;
  }

  .my-room-navigator-save-row button{
    grid-column: 1 / -1;
  }

  .my-room-navigator-place-card{
    grid-template-columns: 38px minmax(110px, 1fr) auto auto;
    flex-basis: min(330px, 92vw);
  }
}

.my-room-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.07);
}

.my-room-card-video{
  grid-template-columns: 132px minmax(190px, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  column-gap: 12px;
}

.my-room-video-cover{
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  min-height: 86px;
  border: 0;
  border-radius: 13px;
  background: center / cover no-repeat #111;
  cursor: pointer;
  overflow: hidden;
}

.my-room-video-cover::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.32));
}

.my-room-video-cover span{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #d0185f;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.my-room-card a{
  min-width: 0;
  color: #18384a;
  font-weight: 900;
  text-decoration: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.28;
}

.my-room-card > span{
  grid-column: 1;
  min-width: 0;
  color: rgba(42,42,42,0.58);
  font-size: 12px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.my-room-item-shelf-select{
  grid-column: 1;
  width: min(100%, 260px);
}

.my-room-card-video a,
.my-room-card-video > span,
.my-room-card-video .my-room-item-shelf-select{
  grid-column: 2;
}

.my-room-card-video a{
  overflow-wrap: break-word;
  word-break: normal;
}

.my-room-card button,
.my-room-card .my-room-download-btn,
.my-room-card .my-room-drive-btn,
.my-room-card .my-room-site-open-btn{
  grid-column: 2;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255,61,141,0.22);
  border-radius: 999px;
  background: rgba(255,61,141,0.1);
  color: #b3225f;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.15;
  white-space: normal;
}

.my-room-card .my-room-main-btn{
  min-height: 38px;
  margin-bottom: 7px;
}

.my-room-card .my-room-secondary-btn{
  min-height: 34px;
  margin-top: 7px;
}

.my-room-card-video > button:not(.my-room-video-cover){
  grid-column: 2;
  grid-row: auto;
  width: min(100%, 190px);
  margin: 0;
}

.my-room-card .my-room-watch-btn{
  grid-row: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
  color: #fff;
}

.my-room-card-video .my-room-watch-btn{
  grid-row: auto;
}

.my-room-card .my-room-read-btn{
  grid-row: 1;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-color: transparent;
  color: #fff;
}

.my-room-card .my-room-site-open-btn{
  grid-row: 1;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  border-color: transparent;
  color: #fff;
}

.my-room-card .my-room-download-btn{
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: transparent;
  color: #fff;
}

.my-room-card .my-room-drive-btn{
  background: linear-gradient(135deg, #fbbc04, #34a853);
  border-color: transparent;
  color: #102a13;
}

.my-room-card-book{
  grid-template-columns: minmax(0, 1fr) minmax(145px, auto);
  grid-auto-rows: minmax(36px, auto);
  row-gap: 9px;
  align-items: start;
  border-color: rgba(79,70,229,0.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(238,242,255,0.74));
}

.my-room-card-site{
  grid-template-columns: minmax(0, 1fr) minmax(145px, auto);
  grid-auto-rows: minmax(36px, auto);
  row-gap: 9px;
  align-items: start;
}

.my-room-card-site a:not(.my-room-site-open-btn),
.my-room-card-site > span,
.my-room-card-site .my-room-item-shelf-select{
  grid-column: 1;
}

.my-room-card-site .my-room-site-open-btn{
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100%;
  min-width: 145px;
  margin: 0 !important;
}

.my-room-card-site .my-room-share-btn{
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100%;
  min-width: 145px;
  margin: 0 !important;
}

.my-room-card-site .my-room-delete-btn{
  grid-column: 2 !important;
  grid-row: 3 !important;
  width: 100%;
  min-width: 145px;
  margin: 0 !important;
}

@media(max-width: 680px){
  .my-room-card-site{
    grid-template-columns: minmax(0, 1fr);
  }
  .my-room-card-site .my-room-site-open-btn,
  .my-room-card-site .my-room-share-btn,
  .my-room-card-site .my-room-delete-btn{
    grid-column: 1 !important;
    grid-row: auto !important;
    min-width: 0;
  }
}

.my-room-card-book .my-room-read-btn,
.my-room-card-book .my-room-download-btn,
.my-room-card-book .my-room-drive-btn,
.my-room-card-book .my-room-share-btn,
.my-room-card-book .my-room-delete-btn{
  width: 100%;
  min-width: 145px;
}

.my-room-card-book .my-room-download-btn{
  margin-top: 0;
}

.my-room-card-book a:not(.my-room-download-btn):not(.my-room-drive-btn),
.my-room-card-book > span,
.my-room-card-book .my-room-item-shelf-select{
  grid-column: 1;
}

.my-room-card-book .my-room-read-btn{
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}

.my-room-card-book .my-room-download-btn{
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
}

.my-room-card-book .my-room-drive-btn{
  grid-column: 2 !important;
  grid-row: 3 !important;
  margin: 0 !important;
}

.my-room-card-book .my-room-share-btn{
  grid-column: 2 !important;
  grid-row: 4 !important;
  margin: 0 !important;
}

.my-room-card-book .my-room-delete-btn{
  grid-column: 2 !important;
  grid-row: 5 !important;
  margin: 0 !important;
}

@media(max-width: 680px){
  .my-room-card-book{
    grid-template-columns: minmax(0, 1fr);
  }
  .my-room-card-book .my-room-read-btn,
  .my-room-card-book .my-room-download-btn,
  .my-room-card-book .my-room-drive-btn,
  .my-room-card-book .my-room-share-btn,
  .my-room-card-book .my-room-delete-btn{
    grid-column: 1 !important;
    grid-row: auto !important;
    min-width: 0;
  }
}

.my-room-card-video > button:not(.my-room-video-cover):not(.my-room-watch-btn){
  grid-column: 2;
  grid-row: auto;
}

@media(max-width: 520px){
  .my-room-card-video{
    grid-template-columns: minmax(0, 1fr);
  }
  .my-room-card-video .my-room-video-cover,
  .my-room-card-video a,
  .my-room-card-video > span,
  .my-room-card-video .my-room-item-shelf-select,
  .my-room-card-video > button:not(.my-room-video-cover){
    grid-column: 1;
  }
  .my-room-card-video .my-room-video-cover{
    grid-row: auto;
    min-height: 148px;
  }
  .my-room-card-video > button:not(.my-room-video-cover){
    width: 100%;
  }
}

.my-room-card .my-room-video-cover{
  grid-column: 1;
  grid-row: 1 / 4;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background-color: #111;
}

.pdf-reader-modal{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 61, 141, 0.18), transparent 34%),
    rgba(10, 16, 28, 0.92);
}

.pdf-reader-modal.hidden{
  display: none;
}

.pdf-reader-card{
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #efe3cf;
  color: #2f261d;
}

.pdf-reader-modal.is-windowed{
  background: rgba(10, 16, 28, 0.38);
  pointer-events: none;
}

.pdf-reader-modal.is-windowed .pdf-reader-card{
  position: fixed;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.32);
  pointer-events: auto;
}

.pdf-reader-card.dragging .pdf-reader-head{
  cursor: grabbing;
}

.pdf-reader-card.resizing{
  user-select: none;
}

.pdf-reader-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(84, 56, 31, 0.14);
  background: rgba(255,248,232,0.96);
  box-shadow: 0 8px 22px rgba(84, 56, 31, 0.1);
}

.pdf-reader-notice{
  position: absolute;
  left: 50%;
  top: calc(max(10px, env(safe-area-inset-top)) + 64px);
  z-index: 16;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 11px 16px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  background: rgba(255, 248, 232, 0.97);
  box-shadow: 0 18px 42px rgba(47, 38, 29, 0.22);
  color: #2f261d;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
}

.pdf-reader-notice.hidden{
  display: none;
}

.pdf-reader-notice[data-tone="info"]{
  border-color: rgba(14, 165, 233, 0.32);
}

.pdf-reader-notice[data-tone="error"]{
  border-color: rgba(239, 68, 68, 0.34);
}

@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse){
  .pdf-reader-card:not(.is-windowed){
    grid-template-rows: minmax(0, 1fr);
  }

  .pdf-reader-card:not(.is-windowed) .pdf-reader-head{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12;
    transform: translateY(calc(-100% - 6px));
    transition: transform .2s ease;
  }

  .pdf-reader-card:not(.is-windowed).reader-head-visible .pdf-reader-head{
    transform: translateY(0);
  }

  .pdf-reader-card:not(.is-windowed)::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    height: 28px;
    background: transparent;
  }

  .pdf-reader-card:not(.is-windowed) .pdf-reader-notice,
  .pdf-reader-modal:not(.is-windowed) .pdf-reader-card .pdf-reader-notice{
    top: max(12px, env(safe-area-inset-top));
  }
}

.pdf-reader-modal.is-windowed .pdf-reader-head{
  cursor: grab;
}

.pdf-reader-title-wrap{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdf-reader-brand{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,61,141,0.14), rgba(6,182,212,0.14));
  font-size: 20px;
}

.pdf-reader-title-wrap h3{
  min-width: 0;
  margin: 0;
  color: #2f261d;
  font-size: 17px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-reader-actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pdf-reader-actions .presence-toggle{
  min-height: 34px;
  padding: 5px 9px;
  color: #172033;
}

.pdf-reader-share-label{
  color: rgba(23,32,51,0.68);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pdf-reader-target-select{
  width: min(210px, 28vw);
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 30px 0 10px;
}

.pdf-reader-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  color: #172033;
  text-decoration: none;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.pdf-reader-action:disabled{
  opacity: .45;
  cursor: not-allowed;
}

.pdf-reader-zoom-label{
  min-width: 44px;
  color: rgba(47,38,29,.72);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.pdf-reader-action:hover,
.pdf-reader-action:focus-visible{
  border-color: rgba(255,61,141,0.34);
  color: #b3225f;
  outline: none;
}

.pdf-reader-frame-shell{
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(10px, 2vw, 28px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.62), transparent 36%),
    linear-gradient(90deg, rgba(84,56,31,.10), transparent 12%, transparent 88%, rgba(84,56,31,.10)),
    #efe3cf;
  box-sizing: border-box;
}

.pdf-reader-frame{
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 10px;
  background: #fff8e8;
  box-shadow: 0 0 0 1px rgba(84,56,31,.08), 0 18px 46px rgba(84,56,31,.18);
  transform: scale(var(--reader-zoom, 1));
  transform-origin: 0 0;
  color-scheme: light;
}

.pdf-reader-native-content{
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 46px 54px 86px;
  box-sizing: border-box;
  background: #fff8e8;
  color: #2f261d;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.78;
  box-shadow: 0 0 0 1px rgba(84,56,31,.08), 0 18px 46px rgba(84,56,31,.18);
}

.pdf-reader-native-content.hidden{
  display: none !important;
}

.pdf-reader-native-content h1{
  margin: 0 0 10px;
  color: #221a14;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.pdf-reader-native-author{
  margin: 0 0 22px;
  color: #7a6855;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.pdf-reader-native-content p{
  margin: 0 0 1.05em;
  font-size: calc(20px * var(--reader-zoom, 1));
  text-align: justify;
  text-justify: inter-word;
  text-align-last: auto;
  text-indent: 1.35em;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.pdf-reader-native-content h2{
  margin: 1.7em 0 .8em;
  color: #3a2a1f;
  font-size: calc(25px * var(--reader-zoom, 1));
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: normal;
}

.pdf-reader-native-space{
  height: 1.15em;
}

.pdf-reader-frame-shell.has-native-content .pdf-reader-frame{
  display: none;
}

.pdf-reader-frame[style*="--reader-zoom"]{
  width: calc(100% / var(--reader-zoom, 1));
  height: calc(100% / var(--reader-zoom, 1));
}

.pdf-reader-frame.pdf-reader-frame-native{
  width: 100%;
  height: 100%;
  transform: none;
}

.pdf-reader-frame.pdf-reader-frame-native[style*="--reader-zoom"]{
  width: 100%;
  height: 100%;
}

.pdf-reader-page-zone{
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 72px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: .42;
  transform: translateY(-50%);
  transition: opacity .16s ease, background .16s ease;
}

.pdf-reader-page-zone.left{ left: 0; }
.pdf-reader-page-zone.right{ right: 0; }

.pdf-reader-page-zone::before{
  content: "";
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,38,29,.2);
  color: #fff8e8;
  font: 900 30px Arial, sans-serif;
  box-shadow: 0 10px 22px rgba(47,38,29,.22);
  transform: translateY(-50%);
}

.pdf-reader-page-zone.left::before{
  content: "‹";
  left: 10px;
}

.pdf-reader-page-zone.right::before{
  content: "›";
  right: 10px;
}

.pdf-reader-page-zone:hover,
.pdf-reader-page-zone:focus-visible{
  opacity: .82;
  background: rgba(47,38,29,.04);
  outline: none;
}

@media(max-width: 680px){
  .pdf-reader-frame-shell{
    padding: 0;
  }
  .pdf-reader-frame{
    border-radius: 0;
    box-shadow: none;
  }
  .pdf-reader-page-zone{
    width: 44px;
    height: 62px;
  }
  .pdf-reader-page-zone::before{
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
  .pdf-reader-native-content{
    padding: 22px 18px 48px;
    box-shadow: none;
  }
  .pdf-reader-native-content h1{
    font-size: 26px;
  }
  .pdf-reader-native-content p{
    font-size: calc(18px * var(--reader-zoom, 1));
    line-height: 1.72;
    text-indent: 1em;
  }
  .pdf-reader-native-content h2{
    font-size: calc(22px * var(--reader-zoom, 1));
  }
}

.pdf-reader-resize-handle{
  display: none;
}

.pdf-reader-modal.is-windowed .pdf-reader-resize-handle{
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 26px;
  height: 26px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(15,23,42,0.18) 46% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 62%, rgba(15,23,42,0.18) 63% 69%, transparent 70%);
}

.pdf-reader-mini-badge{
  position: fixed;
  z-index: 2147483646;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.34), transparent 24%),
    linear-gradient(160deg, #ff7ab3 0%, #ff4d8d 34%, #ff375f 68%, #d4145a 100%);
  color: #ffffff;
  box-shadow:
    0 18px 36px rgba(212,20,90,0.34),
    inset 0 1px 0 rgba(255,255,255,0.34);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
}

.pdf-reader-mini-badge.hidden{
  display: none !important;
}

.pdf-reader-mini-badge.dragging{
  cursor: grabbing;
}

.pdf-reader-mini-badge-fruit{
  font-size: 23px;
  line-height: 1;
}

.pdf-reader-mini-badge-book{
  font-size: 24px;
  line-height: 1;
  margin-top: -4px;
  opacity: 0.96;
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.pdf-reader-mini-badge-label{
  max-width: 56px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-dialog-karma-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: #d97706;
}

.private-dialog-online-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.16);
}

.private-dialog-meta {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 18px;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #8a174d;
  background: transparent;
  box-shadow: none;
}

#privateDialogs.private-dialogs-list .private-dialog-meta{
  width: auto;
  min-width: 0;
  max-width: min(48vw, 210px);
  height: auto;
  padding: 0;
  justify-self: end;
  align-self: center;
  font-size: 11px;
  border-radius: 0;
}

.private-dialog-meta-label{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-dialog-meta-count{
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #ff3d8d;
  box-shadow: 0 4px 12px rgba(255,61,141,0.2);
}

.private-dialog-info{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,61,141,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

#privateDialogs.private-dialogs-list .private-dialog-info{
  width: 24px;
  height: 24px;
}

.private-dialog-avatar-telegram{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, #38bdf8, #2563eb);
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
}

#privateDialogs.private-dialogs-list .private-telegram-dialog-item .private-dialog-avatar-telegram{
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  font-size: 14px;
}

.private-telegram-folder-top-row .private-telegram-dialog-item .private-dialog-avatar-telegram,
.private-telegram-folder-dialog-row .private-telegram-dialog-item .private-dialog-avatar-telegram{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 12px;
}

.private-telegram-dialog-group .private-dialog-avatar-telegram{
  background-image: linear-gradient(135deg, #10b981, #2563eb);
}

.private-telegram-dialog-channel .private-dialog-avatar-telegram{
  background-image: linear-gradient(135deg, #7c3aed, #2563eb);
}

.private-telegram-dialog-bot .private-dialog-avatar-telegram{
  background-image: linear-gradient(135deg, #f59e0b, #2563eb);
}

.private-telegram-promoted-item{
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(255,255,255,0.94));
}

.private-telegram-promoted-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  border-radius: 999px;
  padding: 0 7px;
  margin-right: 6px;
  background: rgba(37,99,235,0.10);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.private-telegram-promoted-meta{
  gap: 6px;
}

.private-telegram-promoted-remove{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15,23,42,0.07);
  color: #334155;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.private-telegram-promoted-remove:hover,
.private-telegram-promoted-remove:focus-visible{
  background: rgba(220,38,38,0.12);
  color: #dc2626;
}

#privatePanel.private-telegram-mode #privateComposer,
#privatePanel.private-telegram-mode #privateTypingIndicator,
#privatePanel.private-telegram-mode #privateRecordUI,
#privatePanel.private-telegram-mode #privateVideoRecordUI,
#privatePanel.private-telegram-mode #privateHeaderCallActions .private-header-call-btn:not(.private-lock-now-btn):not(.private-telegram-header-action),
#privatePanel.private-telegram-mode #privateWatchPanel{
  display: none !important;
}

#privatePanel.private-telegram-mode.private-telegram-chat-open #privateChatContainer{
  overflow: hidden !important;
  padding: 0;
}

#privatePanel.private-telegram-mode.private-telegram-disconnected #privateDialogs{
  display: none !important;
}

#privatePanel.private-telegram-mode.private-telegram-disconnected #privateChatContainer{
  min-height: 0;
  padding: 10px;
}

#privatePanel.private-telegram-mode.private-telegram-chat-open #privateScrollDownBtn{
  left: auto !important;
  right: 12px !important;
  inset-inline-start: auto !important;
  inset-inline-end: 12px !important;
  bottom: 78px !important;
  transform: none !important;
  z-index: 30;
}

#privatePanel.private-telegram-mode.private-telegram-chat-open #privateDialogTabs,
#privatePanel.private-telegram-mode.private-telegram-chat-open #privateDialogs{
  display: none !important;
}

#privatePanel.private-strawberry-chat-open:not(.private-telegram-mode) #privateDialogTabs,
#privatePanel.private-strawberry-chat-open:not(.private-telegram-mode) #privateDialogs{
  display: none !important;
}

.private-telegram-view{
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

#privatePanel.private-telegram-disconnected .private-telegram-view{
  grid-template-rows: auto auto;
  align-content: start;
  overflow: auto;
}

#privatePanel.private-telegram-chat-open .private-telegram-view{
  grid-template-rows: minmax(0, 1fr) auto;
}

#privatePanel.private-telegram-chat-open .private-telegram-view.has-pinned-message{
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#privatePanel.private-telegram-chat-open .private-telegram-view.has-media-library{
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#privatePanel.private-telegram-chat-open .private-telegram-view.has-pinned-message.has-media-library{
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

#privatePanel.private-telegram-chat-open .private-telegram-head{
  display: none;
}

.private-telegram-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.private-telegram-title-wrap{
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.private-telegram-back{
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(239,246,255,0.96);
  color: #1d4ed8;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.private-telegram-back:hover,
.private-telegram-back:focus-visible{
  background: #dbeafe;
  outline: none;
}

.private-telegram-head strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.private-telegram-actions{
  display: inline-flex;
  gap: 6px;
}

.private-telegram-actions button,
.private-telegram-connect-actions button{
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  padding: 0 10px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.private-telegram-actions button.danger{
  background: #dc2626;
}

.private-telegram-folder-item,
.private-telegram-folder-add{
  min-width: auto;
  padding-inline: 10px;
  background: rgba(239,246,255,0.92);
  color: #1d4ed8;
}

.user-context-menu-title{
  padding: 6px 10px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.user-context-menu-check{
  width: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-weight: 900;
}

.private-telegram-folder-wrap{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.private-telegram-folder-wrap > .private-telegram-folder-item.active{
  border-radius: 999px 10px 10px 999px;
}

.private-telegram-folder-submenu{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 12px 999px 999px 12px;
  background: rgba(239,246,255,0.82);
}

.private-telegram-folder-dialog{
  min-height: 42px;
  max-width: none;
  padding: 7px 10px;
  background: rgba(255,255,255,0.92);
}

.private-telegram-folder-empty{
  min-height: 30px;
  padding: 4px 9px;
}

.private-telegram-folder-item.active{
  background: #1d4ed8;
  color: #fff;
}

.private-telegram-notice,
.private-telegram-connect{
  align-self: start;
  justify-self: stretch;
  width: min(100%, 460px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.88);
  color: #1f2937;
}

.private-telegram-notice.error{
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.94);
  color: #991b1b;
}

.private-telegram-connect input,
.private-telegram-form textarea{
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.96);
  color: #111827;
  font: inherit;
}

.private-telegram-code-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.private-telegram-connect-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.private-telegram-connect-actions button:disabled{
  opacity: 0.5;
  cursor: default;
}

.private-telegram-messages{
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}

.private-pinned-message-group{
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 7px;
  margin: 0 2px 8px;
  padding: 8px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
}

.private-pinned-message-group__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.private-pinned-message-list{
  display: grid;
  gap: 5px;
  max-height: min(220px, 32vh);
  overflow-y: auto;
  padding-right: 2px;
}

.private-pinned-message-banner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid rgba(37,99,235,0.10);
  border-radius: 10px;
  background: rgba(239,246,255,0.66);
}

.private-pinned-message-banner__body{
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  display: grid;
  gap: 2px;
  text-align: left;
  cursor: pointer;
}

.private-pinned-message-banner__body strong{
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.private-pinned-message-banner__body span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(15,23,42,0.78);
  font-size: 13px;
  font-weight: 700;
}

.private-pinned-message-banner__close{
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 9px;
  background: rgba(15,23,42,0.04);
  color: #334155;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.msg.pinned-message-flash,
.private-telegram-message.pinned-message-flash .private-telegram-bubble{
  animation: pinnedMessageFlash 1.4s ease;
}

@keyframes pinnedMessageFlash{
  0%,
  100%{
    box-shadow: inherit;
  }
  18%,
  72%{
    box-shadow: 0 0 0 4px rgba(37,99,235,0.18), 0 18px 34px rgba(37,99,235,0.16);
  }
}

.private-telegram-messages::before{
  content: "";
  margin-top: auto;
  flex: 0 0 auto;
}

.private-telegram-load-older{
  align-self: center;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(37,99,235,0.1);
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.private-telegram-folder-assign{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.private-telegram-folder-assign button{
  min-height: 32px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255,255,255,0.96);
  color: #111827;
  font: inherit;
}

.telegram-folder-modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,23,42,0.46);
  backdrop-filter: blur(8px);
}

.telegram-folder-modal{
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  color: #111827;
  box-shadow: 0 24px 70px rgba(15,23,42,0.28);
  overflow: hidden;
}

.telegram-folder-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(15,23,42,0.08);
  cursor: pointer;
}

.telegram-folder-modal strong{
  padding-right: 36px;
  font-size: 18px;
}

.telegram-folder-modal-chat{
  color: #64748b;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-folder-modal-create{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.telegram-folder-modal-create input,
.telegram-folder-modal-create button,
.telegram-folder-choice{
  min-height: 38px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.telegram-folder-modal-list{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.telegram-folder-choice{
  flex: 0 0 auto;
  text-align: left;
  cursor: pointer;
}

.telegram-folder-choice.active{
  border-color: rgba(37,99,235,0.44);
  background: #2563eb;
  color: #fff;
}

.telegram-folder-modal-members{
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.telegram-folder-modal-members-title{
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.telegram-folder-modal-bulk-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telegram-folder-modal-bulk-actions button{
  min-height: 34px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 11px;
  padding: 0 11px;
  background: #fff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.telegram-folder-modal-bulk-actions button.primary{
  border-color: rgba(37,99,235,0.42);
  background: #2563eb;
  color: #fff;
}

.telegram-folder-modal-chat-list{
  min-height: 0;
  max-height: min(360px, 45vh);
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.telegram-folder-chat-choice{
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 13px;
  background: rgba(248,250,252,0.9);
  cursor: pointer;
}

.telegram-folder-chat-choice:hover,
.telegram-folder-chat-choice.active{
  border-color: rgba(37,99,235,0.36);
  background: rgba(239,246,255,0.96);
}

.telegram-folder-chat-choice input{
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}

.telegram-folder-chat-avatar{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: center / cover no-repeat linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.telegram-folder-chat-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.telegram-folder-add-active,
.telegram-folder-chat-remove{
  min-height: 34px;
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 11px;
  padding: 0 11px;
  background: #fff;
  color: #1d4ed8;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.telegram-folder-add-active{
  justify-self: start;
  background: #2563eb;
  color: #fff;
}

.telegram-folder-chat-remove{
  color: #dc2626;
  border-color: rgba(220,38,38,0.18);
}

.telegram-folder-modal-empty{
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(248,250,252,0.95);
  color: #64748b;
  font-size: 13px;
}

.private-telegram-message{
  display: flex;
  justify-content: flex-start;
}

.private-telegram-message.me{
  justify-content: flex-end;
}

.private-telegram-bubble{
  position: relative;
  max-width: min(78%, 520px);
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: #111827;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.private-telegram-quote{
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 2px;
  border: 0;
  border-left: 3px solid rgba(37,99,235,0.72);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(37,99,235,0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.private-telegram-message.me .private-telegram-quote{
  border-left-color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.14);
}

.private-telegram-quote strong,
.private-telegram-quote span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-telegram-quote strong{
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
}

.private-telegram-message.me .private-telegram-quote strong{
  color: #fff;
}

.private-telegram-quote span{
  color: rgba(17,24,39,0.72);
  font-size: 12px;
  font-weight: 700;
}

.private-telegram-message.me .private-telegram-quote span{
  color: rgba(255,255,255,0.78);
}

.private-telegram-message-menu-btn{
  position: absolute;
  top: 4px;
  right: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.58);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .14s ease, background .14s ease, color .14s ease;
}

.private-telegram-message:hover .private-telegram-message-menu-btn,
.private-telegram-message:focus-within .private-telegram-message-menu-btn{
  opacity: 1;
}

.private-telegram-message-menu-btn:hover,
.private-telegram-message-menu-btn:focus-visible{
  opacity: 1;
  background: rgba(15,23,42,0.14);
  color: #111827;
  outline: none;
}

.private-telegram-message.me .private-telegram-message-menu-btn{
  left: 5px;
  right: auto;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
}

.private-telegram-message.me .private-telegram-message-menu-btn:hover,
.private-telegram-message.me .private-telegram-message-menu-btn:focus-visible{
  background: rgba(255,255,255,0.28);
  color: #fff;
}

@media (hover: none), (pointer: coarse){
  .private-telegram-message-menu-btn{
    opacity: 1;
  }
}

.user-context-menu-btn.danger{
  color: #dc2626;
}

.user-context-menu-btn.danger:hover,
.user-context-menu-btn.danger:active,
.user-context-menu-btn.danger:focus{
  background: rgba(220,38,38,0.10);
}

.private-telegram-bubble.has-audio{
  min-width: min(260px, 78vw);
  white-space: normal;
}

.private-telegram-bubble .voice-message-card{
  margin-top: 7px;
}

.private-telegram-bubble.voice-only .voice-message-card{
  margin-top: 0;
}

.private-telegram-bubble.has-audio audio{
  display: none;
}

.private-telegram-message.me .private-telegram-bubble{
  background: #2563eb;
  color: #fff;
  justify-items: end;
}

.private-telegram-sender{
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

div.private-telegram-sender{
  cursor: default;
}

.private-telegram-sender-avatar{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe center/cover no-repeat;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.16);
}

.private-telegram-sender-meta{
  min-width: 0;
  display: grid;
  gap: 1px;
}

.private-telegram-sender-meta strong,
.private-telegram-sender-meta span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-telegram-sender-meta strong{
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.15;
}

.private-telegram-sender-meta span{
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
}

.private-telegram-message-text{
  min-width: 0;
  font-size: var(--private-message-font-size, var(--message-font-size, 16px));
  line-height: 1.25;
}

.private-telegram-meta{
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 12px;
  color: rgba(17,24,39,0.56);
  white-space: nowrap;
}

.private-telegram-time{
  font-size: 11px;
  line-height: 1;
}

.private-telegram-read-status{
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.private-telegram-read-status.is-read{
  color: #7dd3fc;
}

.private-telegram-message.me .private-telegram-meta{
  color: rgba(255,255,255,0.72);
}

.private-telegram-form{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 8px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 18%, rgba(255,255,255,0.96));
}

.private-telegram-reply-preview{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(37,99,235,0.14);
  border-radius: 12px;
  background: rgba(239,246,255,0.94);
}

.private-telegram-form input[type="file"][hidden]{
  display: none !important;
}

.private-telegram-form textarea{
  min-height: 42px;
  max-height: 120px;
  height: 42px;
  padding-left: 50px;
  padding-right: 88px;
  resize: none;
}

.private-telegram-form button{
  border: 1px solid var(--stroke);
  background: var(--tool-btn-bg);
  color: rgba(30,30,30,0.86);
  border-radius: 11px;
  min-width: 36px;
  min-height: 36px;
  padding: 7px 9px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.private-telegram-form button:hover{
  background: var(--tool-btn-hover);
}

.private-telegram-tool{
  width: 36px;
  height: 36px;
  padding: 0;
}

.private-telegram-tool.recording{
  background: #ef4444;
  color: #fff;
}

.private-telegram-form .composer-media-icon{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.private-telegram-form .composer-media-icon svg{
  width: 20px;
  height: 20px;
  display: block;
}

.private-telegram-bubble.has-video,
.private-telegram-bubble.has-image{
  max-width: min(420px, 86%);
  white-space: normal;
}

.private-telegram-image-link{
  display: block;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.private-telegram-image{
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  object-fit: contain;
}

.chat-image-inline-zoomable{
  position: relative;
}

.chat-image-inline-zoom-btn{
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.68);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,0.22);
}

.chat-image-inline-zoom-btn:hover,
.chat-image-inline-zoom-btn:focus-visible{
  background: rgba(15,23,42,0.84);
  outline: none;
}

.private-attachment-card.chat-image-inline-zoomed .private-attachment-preview,
.private-telegram-image-link.chat-image-inline-zoomed .private-telegram-image{
  width: min(78vw, 680px);
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

.attachments-images.chat-image-inline-zoomed{
  aspect-ratio: auto;
  overflow: visible;
}

.attachments-images.chat-image-inline-zoomed .attachment-image{
  position: static;
  display: none;
  width: min(78vw, 680px);
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.attachments-images.chat-image-inline-zoomed .attachment-image.active{
  display: block;
}

.private-telegram-attachment{
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(37,99,235,0.1);
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (max-width: 560px){
  .private-telegram-form{
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }
}

#privatePanel {
  position: relative;
  overflow: visible;
}

#privateDesktopToggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-55%, -50%);
  width: 28px;
  height: 92px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  font-size: 22px;
  font-weight: 800;
  color: rgba(0,0,0,0.7);
  line-height: 1;
  overflow: visible;
}

.private-unread-badge{
  position: absolute;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff3d8d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(255,61,141,0.28);
  pointer-events: none;
  z-index: 2;
}

.private-unread-badge.hidden{
  display: none !important;
}

.private-telegram-unread-badge{
  background: #229ed9;
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.28);
}

#privateDesktopToggle.has-unread{
  box-shadow:
    0 8px 24px rgba(0,0,0,0.16),
    0 0 0 1px rgba(255, 61, 141, 0.18) inset;
}

#privateDesktopUnreadBadge{
  top: -6px;
  left: -6px;
}

#privateDesktopTelegramUnreadBadge{
  top: 15px;
  left: -6px;
}

#privateDesktopToggle::before {
  content: ">";
}

body.private-collapsed #privateDesktopToggle::before {
  content: "<";
}

@media (max-width: 768px) {
  #privateDesktopToggle {
    display: none !important;
  }
}

@media (max-width: 920px) and (max-height: 500px) and (pointer: coarse) {
  #privateDesktopToggle {
    display: none !important;
  }
}

/* ===== PRIVATE VOICE UI ===== */
#privateRecordUI {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  margin: 0 10px 8px;
  border: 1px solid rgba(255,61,141,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
}

body.private-recording #privateRecordUI {
  display: flex;
}

#privateVideoRecordUI {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 12px;
  margin: 0 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.private-video-recording #privateVideoRecordUI {
  display: flex;
}

body.private-video-previewing #privateVideoRecordUI {
  display: flex;
}

#privateVideoPreviewShell {
  --record-progress: 0%;
  position: relative;
  width: 94px;
  height: 94px;
  padding: 6px;
  border-radius: 999px;
  background:
    conic-gradient(from -90deg, #ff4f87 0 var(--record-progress), rgba(255,255,255,0.18) var(--record-progress) 100%);
  box-shadow:
    0 18px 34px rgba(255, 61, 141, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

body.private-video-recording #privateVideoPreviewShell {
  width: 282px;
  height: 282px;
  padding: 10px;
}

body.private-video-previewing #privateVideoPreviewShell {
  width: 154px;
  height: 154px;
  padding: 7px;
}

#privateVideoPreview {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(0,0,0,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  display: block;
  border: 4px solid rgba(255,255,255,0.82);
}

body.private-video-previewing #privateVideoPreview {
  border-width: 4px;
}

.private-video-record-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  z-index: 2;
}

.private-video-record-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3d8d;
  box-shadow: 0 0 0 6px rgba(255,61,141,0.14);
  flex: 0 0 10px;
}

.private-video-record-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
  white-space: nowrap;
  letter-spacing: 0.08em;
}

#privateVideoRecordTimer {
  min-width: 48px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(40,40,40,0.86);
  text-align: center;
  letter-spacing: 0.03em;
}

.private-video-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.private-video-preview-actions.hidden {
  display: none;
}

.private-video-preview-btn {
  appearance: none;
  border: 1px solid rgba(255,61,141,0.22);
  border-radius: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.private-video-preview-btn.secondary {
  background: rgba(255,255,255,0.92);
  color: rgba(40,40,40,0.82);
}

#privateRecordTimer {
  min-width: 38px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

#privateWaveCanvas {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 52px;
}

/* ===== PRIVATE AUDIO MESSAGES ===== */
.msg.has-audio {
  max-width: 320px;
}

.msg.voice-only .msg-body {
  display: none;
}

.msg.voice-only {
  min-width: 220px;
  padding: 7px 8px 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

.msg.has-audio audio {
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
}

.msg.has-audio .voice-message-card{
  margin-top: 6px;
}

.msg.voice-only .voice-message-card{
  margin-top: 2px;
}

.msg.has-video {
  max-width: min(360px, 100%);
}

.msg.video-only {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

.msg.video-only.me {
  background: transparent;
  border-color: transparent;
}

.msg.has-video video {
  width: 100%;
  max-width: 320px;
  max-height: 420px;
  display: block;
  margin-top: 6px;
  border-radius: 14px;
  background: rgba(0,0,0,0.92);
}

.msg.has-video video.private-video-bubble {
  width: 180px;
  height: 180px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 999px;
}

.private-video-bubble-wrap {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    0 18px 34px rgba(16, 10, 26, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.14), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, rgba(18, 12, 25, 0.08), rgba(18, 12, 25, 0.22));
  background-size: cover;
  background-position: center;
}

.private-video-bubble-wrap.has-preview {
  background-image: var(--video-preview-image);
}

.private-video-bubble-wrap .private-video-bubble {
  margin-top: 0;
  width: 180px;
  height: 180px;
  background: transparent;
  display: block;
}

.tg-video-poster {
  position: absolute;
  inset: 0;
  background-image: var(--video-preview-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.18s ease;
}

.tg-video-shell.has-preview.preview-visible .tg-video-poster {
  opacity: 1;
}

.tg-video-shell.has-preview.preview-visible .private-video-bubble {
  display: none;
}

.tg-video-shell.has-preview:not(.preview-visible) .private-video-bubble,
.tg-video-shell:not(.has-preview) .private-video-bubble {
  display: block;
}

.tg-video-shell {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  transform-origin: center center;
}

.tg-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.16), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.12));
  pointer-events: none;
  z-index: 2;
}

.private-video-bubble-wrap.preview-visible::after {
  background: none;
}

.private-video-bubble-wrap.preview-visible .tg-video-center-btn {
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.private-video-bubble-wrap.preview-visible .tg-video-ring,
.private-video-bubble-wrap.preview-visible .tg-video-compact-time,
.private-video-bubble-wrap.preview-visible .tg-video-speed-btn {
  opacity: 0;
}

.private-video-bubble-wrap.is-expanded {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  z-index: 1200;
}

.tg-video-center-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: 4;
  transition: opacity 0.18s ease;
}

.tg-video-center-btn:hover {
  transform: translate(-50%, -50%);
}

.tg-video-shell.is-playing .tg-video-center-btn {
  opacity: 0;
  pointer-events: none;
}

.private-video-bubble-wrap .tg-video-center-btn {
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.42);
  font-size: 20px;
}

.tg-video-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  pointer-events: none;
  z-index: 3;
}

.tg-video-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg);
}

.tg-video-ring-base,
.tg-video-ring-fill {
  fill: none;
  stroke-width: 6;
}

.tg-video-ring-base {
  stroke: rgba(255, 255, 255, 0.24);
}

.tg-video-ring-fill {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.16s linear;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.24));
}

.tg-video-compact-time {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 12, 24, 0.58);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}

.private-video-bubble-wrap .tg-video-controls {
  display: none;
}

.tg-video-controls {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tg-video-shell.controls-hidden .tg-video-controls {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.tg-video-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tg-video-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.tg-video-speed-btn {
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.tg-video-speed-btn.compact {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(0,0,0,0.56);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  font-size: 10px;
}

.tg-video-progress {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: #ff3d8d;
}

.tg-video-time {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.attachment-viewer-video-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.attachment-viewer-video-shell video {
  width: 100%;
  max-height: min(70vh, 720px);
  display: block;
  border-radius: 16px;
  background: #000;
}

.attachment-viewer-doc-shell{
  width: 100%;
  height: min(78vh, 760px);
  display: grid;
  place-items: stretch;
  background: #f8f2e8;
}

.attachment-viewer-doc-frame{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff8e8;
}

.private-attachment-doc-actions{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.private-attachment-doc-action{
  flex: 1 1 0;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  background: rgba(255,255,255,0.9);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
}

.private-attachment-doc-action.primary{
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.msg.has-attachment,
.msg.has-location {
  max-width: min(360px, 100%);
}

.msg.private-attachment-group {
  max-width: min(420px, 100%);
}

.private-attachment-card,
.private-location-card {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
}

.private-attachment-group-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.private-attachment-group-grid .private-attachment-card {
  margin-top: 0;
  min-width: 0;
}

.private-attachment-group-count {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 61, 141, 0.12);
  color: rgba(255, 61, 141, 0.92);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.private-media-library-panel {
  margin: 8px 10px 12px;
  padding: 10px;
  border: 1px solid rgba(255, 61, 141, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
}

.private-media-library-head,
.private-media-library-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.private-media-library-head strong {
  font-size: 13px;
  color: #111827;
}

.private-media-library-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.private-media-library-section {
  margin-top: 10px;
}

.private-media-library-section-title {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(17, 24, 39, 0.68);
  text-transform: uppercase;
}

.private-media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
}

.private-media-library-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.private-media-library-tile-audio {
  grid-column: span 2;
  gap: 8px;
  cursor: default;
  background: linear-gradient(135deg, rgba(255, 61, 141, 0.10), rgba(37, 99, 235, 0.08)), rgba(255, 255, 255, 0.96);
}

.private-media-library-audio-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.private-media-library-audio-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 61, 141, 0.16);
  color: #be185d;
}

.private-media-library-audio-icon svg {
  width: 19px;
  height: 19px;
}

.private-media-library-audio-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.private-media-library-audio-copy strong,
.private-media-library-audio-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-media-library-audio-copy strong {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.private-media-library-audio-copy span {
  color: rgba(17, 24, 39, 0.58);
  font-size: 10px;
}

.private-media-library-preview {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.08);
  color: #1d4ed8;
  font-weight: 900;
}

.private-media-library-preview img,
.private-media-library-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.private-media-library-title,
.private-media-library-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-media-library-title {
  font-size: 11px;
  font-weight: 800;
  color: #111827;
}

.private-media-library-meta {
  font-size: 10px;
  color: rgba(17, 24, 39, 0.58);
}

.private-media-library-tile audio {
  width: 100%;
  height: 34px;
}

.private-media-library-empty {
  padding: 14px 8px 8px;
  color: rgba(17, 24, 39, 0.62);
  font-size: 13px;
  text-align: center;
}

.private-media-library-btn.active {
  background: rgba(255, 61, 141, 0.16);
  color: #be185d;
}

.private-telegram-media-library-panel{
  margin: 0;
  max-height: min(44vh, 360px);
  overflow: auto;
}

.private-attachment-preview {
  width: 100%;
  max-width: 320px;
  max-height: 320px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(0,0,0,0.92);
}

.private-attachment-doc-preview{
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37,99,235,0.18);
  background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(14,165,233,0.10));
  color: #1d4ed8;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: .04em;
}

a.private-attachment-card.has-preview {
  background-image: var(--video-preview-image);
  background-size: cover;
  background-position: center;
}

.private-location-map {
  width: 100%;
  max-width: 320px;
  height: 180px;
  border: 0;
  border-radius: 12px;
  display: block;
  background: rgba(255,255,255,0.88);
}

.private-link-preview {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
}

.private-link-embed {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 12px;
  display: block;
  background: rgba(0,0,0,0.92);
}

.private-link-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: rgba(0,0,0,0.08);
}

.private-link-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: text-bottom;
}

.private-link-title {
  font-size: 12px;
  font-weight: 700;
}

.private-link-meta {
  font-size: 10px;
  line-height: 1.35;
  color: rgba(40,40,40,0.68);
  word-break: break-word;
}

.private-book-invite-card {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(320px, 100%);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 61, 141, 0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255, 244, 249, 0.96));
  box-shadow: 0 8px 20px rgba(120, 24, 62, 0.08);
}

.private-book-invite-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c51f66;
}

.private-book-invite-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #2b1820;
  word-break: break-word;
}

.private-book-invite-meta {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(43, 24, 32, 0.72);
}

.private-book-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.private-book-invite-btn {
  border: 1px solid rgba(197, 31, 102, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #7b2448;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

.private-book-invite-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff4f9a, #f52f78);
  color: #fff;
}

.private-background-offer-card{
  border-color: rgba(59, 130, 246, 0.24);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,246,255,0.96));
}

.private-background-offer-preview{
  height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

.private-background-offer-preview[data-private-bg-preview="space"]{
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.95) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 38%, rgba(125,211,252,.9) 0 1px, transparent 2px),
    linear-gradient(145deg, #070a1c, #15113a 52%, #061827);
}

.private-background-offer-preview[data-private-bg-preview="landing"]{
  background:
    linear-gradient(90deg, rgba(255, 253, 251, 0.84), rgba(255, 248, 244, 0.48)),
    url("/pictures/landing-travel-growth-hero.png") center / cover no-repeat;
}

.private-background-offer-preview[data-private-bg-preview="sport"]{
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, #0f7a3b, #0b5d2d 54%, #073b1f);
}

.private-background-offer-preview[data-private-bg-preview="romantic"]{
  background:
    radial-gradient(circle at 26% 30%, rgba(220,38,38,.28), transparent 18%),
    radial-gradient(circle at 74% 64%, rgba(220,38,38,.24), transparent 20%),
    linear-gradient(145deg, #fff1f6, #ffd7e7 48%, #fbcfe8);
}

.private-background-offer-preview[data-private-bg-preview="business"]{
  background:
    linear-gradient(90deg, rgba(71,85,105,.12) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #f8fafc, #e8eef5 48%, #d9e2ec);
}

.private-background-offer-preview[data-private-bg-preview="travel"]{
  background:
    radial-gradient(circle at 78% 18%, rgba(255,241,118,.9) 0 13px, transparent 14px),
    linear-gradient(180deg, rgba(125,211,252,.78) 0 38%, transparent 39%),
    linear-gradient(180deg, #9be8ff 0%, #67d5f4 38%, #21a8d8 39%, #0ea5c6 66%, #facc8b 67%, #f8b86a 100%);
}

.private-background-offer-preview[data-private-bg-preview="nature"]{
  background:
    radial-gradient(circle at 82% 20%, rgba(255,245,157,.85) 0 16px, transparent 17px),
    linear-gradient(180deg, #dff9ff 0%, #bae6fd 38%, #bbf7d0 39%, #4ade80 72%, #15803d 100%);
}

.private-background-offer-preview[data-private-bg-preview="minimal"],
.private-background-offer-preview[data-private-bg-preview="default"]{
  background:
    linear-gradient(135deg, rgba(15,23,42,.045) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.private-attachment-card:hover,
.private-location-card:hover {
  border-color: rgba(255,61,141,0.24);
}

.private-attachment-title,
.private-location-title {
  font-size: 12px;
  font-weight: 700;
}

.private-attachment-meta,
.private-location-meta {
  font-size: 10px;
  color: rgba(40,40,40,0.68);
  line-height: 1.35;
}

.msg.video-only .msg-body {
  display: none;
}

#privateChatContainer .msg .msg-translation,
.private-watch-msg .msg-translation{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(40,40,40,0.72);
}

#privateChatContainer .msg .msg-status{
  margin-left: auto;
  padding-left: 10px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(40,40,40,0.56);
  white-space: nowrap;
}

#privateChatContainer .msg[data-conversation-type="group"]{
  cursor: pointer;
}

#privateChatContainer .msg[data-conversation-type="group"] .group-read-details{
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,61,141,0.18);
  color: rgba(40,40,40,0.72);
  font-size: 11px;
  line-height: 1.25;
}

#privateChatContainer .msg[data-conversation-type="group"].me .group-read-details{
  background: rgba(255,255,255,0.58);
}

.group-read-details-title{
  font-weight: 700;
  margin-bottom: 4px;
}

.group-read-details-list{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.group-read-details-user{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,61,141,0.10);
  color: rgba(40,40,40,0.78);
}

.private-watch-panel.expanded{
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.private-watch-panel.expanded .private-watch-player{
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  z-index: 1;
}

.private-watch-panel.expanded .private-watch-chat{
  grid-column: 1 / -1;
  grid-row: 2 / 4;
  align-self: stretch;
  justify-self: end;
  width: 33.333%;
  max-width: calc(100% - 18px);
  height: calc(100% - 18px);
  max-height: calc(100% - 18px);
  margin: 9px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 8;
  pointer-events: auto;
}

.private-watch-panel.expanded .private-watch-messages{
  align-content: end;
  justify-items: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 8px 4px;
  background: transparent;
  scrollbar-width: thin;
}

.private-watch-panel.expanded .private-watch-msg{
  max-width: min(100%, 330px);
  padding: 7px 9px;
  color: rgba(255,255,255,0.96);
  background: rgba(5,9,20,0.08);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.private-watch-panel.expanded .private-watch-msg.me{
  background: rgba(255,61,141,0.14);
  border-color: rgba(255,255,255,0.72);
}

.private-watch-panel.expanded .private-watch-msg-top,
.private-watch-panel.expanded .private-watch-msg-body{
  color: rgba(255,255,255,0.96);
}

.private-watch-panel.expanded .private-watch-msg .voice-message-card{
  background: rgba(5,9,20,0.10);
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: none;
}

.private-watch-panel.expanded .private-watch-chat-form,
.private-watch-panel.expanded .private-watch-voice-ui{
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(5,9,20,0.10);
  box-shadow: none;
  opacity: 0.42;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.private-watch-panel.expanded .private-watch-chat-form.has-text,
body.private-watch-recording .private-watch-panel.expanded .private-watch-voice-ui{
  opacity: 1;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.88);
}

.private-watch-panel.expanded .private-watch-chat-form textarea,
.private-watch-panel.expanded .private-watch-chat-form input{
  color: rgba(255,255,255,0.94);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.private-watch-panel.expanded .private-watch-chat-form textarea::placeholder,
.private-watch-panel.expanded .private-watch-chat-form input::placeholder{
  color: rgba(255,255,255,0.68);
}

.private-watch-panel.expanded .private-watch-chat-form.has-text textarea,
.private-watch-panel.expanded .private-watch-chat-form.has-text input{
  color: rgba(24,24,27,0.94);
  background: rgba(255,255,255,0.94);
  border-color: rgba(255,61,141,0.26);
}

.private-watch-panel.expanded .private-watch-chat-form.has-text textarea::placeholder,
.private-watch-panel.expanded .private-watch-chat-form.has-text input::placeholder{
  color: rgba(24,24,27,0.52);
}

.private-watch-panel.expanded .private-watch-chat-form .private-watch-manual-btn,
.private-watch-panel.expanded .private-watch-chat-form .emoji-btn,
.private-watch-panel.expanded #privateWatchEmojiBtn{
  opacity: 0.58;
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
}

.private-watch-panel.expanded .private-watch-chat-form.has-text .private-watch-manual-btn,
.private-watch-panel.expanded .private-watch-chat-form.has-text .emoji-btn,
.private-watch-panel.expanded .private-watch-chat-form.has-text #privateWatchEmojiBtn{
  opacity: 1;
  color: var(--primary);
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,61,141,0.22);
}

.private-watch-panel:not(.hidden):not(.expanded){
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 0;
  row-gap: 0;
  overflow: hidden;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-player{
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  width: 100%;
  min-height: min(54vh, 560px);
  height: 100%;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head,
.private-watch-panel.expanded .private-watch-head{
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  margin: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.58;
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  z-index: 9;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head.is-lit,
.private-watch-panel.expanded .private-watch-head.is-lit{
  opacity: 1;
  background: rgba(255,255,255,0.86);
  border-color: rgba(255,255,255,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head:not(.is-lit) .private-watch-brand-label,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head:not(.is-lit) .private-watch-copy strong,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head:not(.is-lit) .private-watch-copy span,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head:not(.is-lit) .private-watch-presence-label,
.private-watch-panel.expanded .private-watch-head:not(.is-lit) .private-watch-brand-label,
.private-watch-panel.expanded .private-watch-head:not(.is-lit) .private-watch-copy strong,
.private-watch-panel.expanded .private-watch-head:not(.is-lit) .private-watch-copy span,
.private-watch-panel.expanded .private-watch-head:not(.is-lit) .private-watch-presence-label{
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat{
  grid-column: 1 / -1;
  grid-row: 2 / 4;
  align-self: stretch;
  justify-self: end;
  width: 33.333%;
  max-width: calc(100% - 16px);
  min-width: 0;
  height: calc(100% - 16px);
  max-height: calc(100% - 16px);
  min-height: 0;
  margin: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  z-index: 8;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-messages{
  align-content: end;
  justify-items: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 8px 4px;
  background: transparent;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-msg{
  max-width: min(100%, 330px);
  color: rgba(255,255,255,0.96);
  background: rgba(5,9,20,0.08);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-msg.me{
  background: rgba(255,61,141,0.14);
  border-color: rgba(255,255,255,0.72);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-msg-top,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-msg-body{
  color: rgba(255,255,255,0.96);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-msg .voice-message-card{
  background: rgba(5,9,20,0.10);
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: none;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat-form,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-voice-ui{
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(5,9,20,0.10);
  box-shadow: none;
  opacity: 0.42;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat-form.has-text,
body.private-watch-recording .private-watch-panel:not(.hidden):not(.expanded) .private-watch-voice-ui{
  opacity: 1;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.88);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat-form textarea,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat-form input{
  color: rgba(255,255,255,0.94);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat-form.has-text textarea,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat-form.has-text input{
  color: rgba(24,24,27,0.94);
  background: rgba(255,255,255,0.94);
  border-color: rgba(255,61,141,0.26);
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-manual{
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  width: min(360px, calc(66.667% - 16px));
  margin: 8px;
  z-index: 7;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-head,
.private-watch-panel.expanded .private-watch-head,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat,
.private-watch-panel.expanded .private-watch-chat,
.private-watch-panel:not(.hidden):not(.expanded) .private-watch-manual,
.private-watch-panel.expanded .private-watch-manual{
  z-index: auto;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-player{
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: min(54vh, 560px);
  height: auto;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-chat{
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: min(34vh, 260px);
  min-height: 0;
  margin: 0;
  padding: 0;
}

.private-watch-panel:not(.hidden):not(.expanded) .private-watch-manual{
  grid-row: 4;
  justify-self: stretch;
  width: 100%;
  margin: 0;
}

.private-watch-panel.expanded .private-watch-player{
  grid-row: 2;
}

.private-watch-panel.expanded .private-watch-chat{
  grid-row: 2;
}

.private-watch-youtube-tools,
.private-watch-player .private-watch-youtube-start-overlay{
  display: none !important;
}

.private-dialog-pin{
  display: inline-grid;
  place-items: center;
  max-width: 78px;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-room-investments{
  gap: 12px;
}

.my-room-investment-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.82);
  color: #115e59;
}

.my-room-investment-toolbar span{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 850;
}

.my-room-investment-toolbar button{
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(13, 148, 136, 0.24);
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  cursor: pointer;
}

.my-room-investment-toolbar button:disabled{
  opacity: 0.58;
  cursor: default;
}

.my-room-investment-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.my-room-investment-link{
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.my-room-investment-link:hover,
.my-room-investment-link:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.my-room-investment-link-botty{
  background: #38bdf8;
  color: #ffffff;
}

.my-room-investment-link-bybit{
  border: 1px solid rgba(247, 166, 0, 0.44);
  background: #111318;
  color: #f7a600;
}

.my-room-investment-grid{
  display: grid;
  grid-template-columns: minmax(96px, 1.1fr) repeat(3, minmax(78px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.08);
}

.my-room-investment-head-cell,
.my-room-investment-coin,
.my-room-investment-price{
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.my-room-investment-head-cell{
  min-height: 38px;
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
}

.my-room-investment-coin strong,
.my-room-investment-price strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #172554;
  font-size: 14px;
  font-weight: 950;
}

.my-room-investment-coin span,
.my-room-investment-price small,
.my-room-investment-price{
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.my-room-investment-price{
  font-size: 12px;
}

.my-room-investment-note{
  color: rgba(42, 42, 42, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.my-room-investment-error{
  color: #b91c1c;
}

.my-room-investment-journal{
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.my-room-investment-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.my-room-investment-summary-card{
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.my-room-investment-summary-card span{
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.my-room-investment-summary-card strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.my-room-investment-summary-card.positive strong{
  color: #047857;
}

.my-room-investment-summary-card.negative strong{
  color: #b91c1c;
}

.my-room-investment-journal-form{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.my-room-investment-journal-form label{
  display: grid;
  gap: 4px;
}

.my-room-investment-journal-form label span{
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.my-room-investment-journal-form input,
.my-room-investment-journal-form select{
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  padding: 7px 9px;
}

.my-room-investment-note-field{
  grid-column: span 3;
}

.my-room-investment-journal-form button{
  align-self: end;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  padding: 8px 11px;
  cursor: pointer;
}

.my-room-investment-journal-list{
  display: grid;
  gap: 8px;
}

.my-room-investment-journal-row{
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) repeat(3, minmax(90px, 1fr)) 32px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
}

.my-room-investment-journal-row strong,
.my-room-investment-journal-row span,
.my-room-investment-journal-row em,
.my-room-investment-journal-row small{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-room-investment-journal-row strong{
  color: #0f172a;
  font-size: 13px;
}

.my-room-investment-journal-row span,
.my-room-investment-journal-row small{
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.my-room-investment-journal-row small{
  grid-column: 1 / -2;
}

.my-room-investment-journal-row em{
  color: #047857;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.my-room-investment-journal-row em.negative{
  color: #b91c1c;
}

.my-room-investment-journal-row button{
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  background: rgba(248, 250, 252, 0.96);
  color: #64748b;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 560px){
  .my-room-investment-links,
  .my-room-investment-summary,
  .my-room-investment-journal-form{
    grid-template-columns: 1fr;
  }

  .my-room-investment-note-field{
    grid-column: auto;
  }

  .my-room-investment-journal-row{
    grid-template-columns: 1fr 30px;
  }

  .my-room-investment-journal-row span,
  .my-room-investment-journal-row em,
  .my-room-investment-journal-row small{
    grid-column: 1 / -1;
  }

  .my-room-investment-journal-row button{
    grid-column: 2;
    grid-row: 1;
  }

  .my-room-investment-grid{
    grid-template-columns: minmax(82px, 1fr) repeat(3, minmax(68px, 0.9fr));
  }

  .my-room-investment-head-cell,
  .my-room-investment-coin,
  .my-room-investment-price{
    padding: 8px 7px;
  }

  .my-room-investment-price strong{
    font-size: 12px;
  }
}
