/* The chat surface is intentionally identical at every width. Desktop only
   changes the surrounding two-column composition in the final media block. */
@media (width <= 820px), (min-width: 821px) {
  body:has(.uza-web-shell.chat-open) .uza-approved-bottom-nav.uza-shared-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:has(.uza-web-shell.chat-open) .uza-web-shell > .uza-sidebar.under-brand,
  body:has(.uza-web-shell.chat-open) .uza-web-shell > .uza-sidebar,
  body:has(.uza-web-shell.chat-open) .uza-sidebar-nav,
  body:has(.uza-web-shell.chat-open) .uza-sidebar-avatar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .uza-web-shell.chat-open,
  .uza-web-shell.chat-open > .uza-web-center {
    background: #0e0e11 !important;
    color: #f5f5f7 !important;
    font-family: "Inter", sans-serif !important;
  }

  .uza-web-shell.chat-open .uza-chat-pane {
    background:
      radial-gradient(
        circle at 18% 5%,
        rgba(183, 180, 205, 0.2) 0%,
        rgba(120, 118, 140, 0.11) 22%,
        rgba(55, 54, 65, 0.05) 42%,
        transparent 62%
      ),
      radial-gradient(
        circle at 82% 4%,
        rgba(156, 151, 173, 0.11) 0%,
        rgba(95, 91, 108, 0.06) 30%,
        transparent 58%
      ),
      radial-gradient(
        ellipse at 50% 18%,
        rgba(255, 255, 255, 0.035) 0%,
        rgba(255, 255, 255, 0.015) 30%,
        transparent 58%
      ),
      linear-gradient(
        180deg,
        #32313b 0%,
        #26252e 16%,
        #1c1b22 34%,
        #141418 58%,
        #0e0e11 78%,
        #09090b 100%
      ) !important;
    color: #f5f5f7 !important;
    font-family: "Inter", sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.28) !important;
  }

  .uza-web-shell.chat-open .uza-chat-pane::before {
    content: "";
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(255, 255, 255, 0.012) 18%,
      transparent 35%,
      transparent 100%
    );
    position: absolute;
    inset: 0;
  }

  .uza-web-shell.chat-open .uza-chat-loading-layer {
    position: absolute;
    z-index: 10000;
    inset: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: max(14px, env(safe-area-inset-top, 0px)) 17px max(15px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background:
      radial-gradient(circle at 18% 4%, rgba(183,180,205,.16), transparent 39%),
      linear-gradient(180deg, #2b2a33 0%, #18171e 30%, #0e0e11 72%, #09090b 100%);
    opacity: 1;
    transition: opacity 190ms ease-out;
    pointer-events: auto;
  }

  .uza-web-shell.chat-open .uza-chat-loading-layer.is-leaving {
    opacity: 0;
    pointer-events: none;
  }

  .uza-chat-loading-head {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) repeat(3, 42px);
    align-items: center;
    gap: 8px;
    min-height: 58px;
  }

  .uza-chat-loading-head > i,
  .uza-chat-loading-head > em,
  .uza-chat-loading-head b,
  .uza-chat-loading-messages > i,
  .uza-chat-loading-composer > i,
  .uza-chat-loading-composer > b {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(255,255,255,.075);
  }

  .uza-chat-loading-head > i { width: 48px; height: 48px; border-radius: 50%; }
  .uza-chat-loading-head > em { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
  .uza-chat-loading-head > span { display: grid; gap: 8px; padding-inline: 2px 6px; }
  .uza-chat-loading-head b { width: min(150px, 76%); height: 11px; border-radius: 999px; }
  .uza-chat-loading-head b + b { width: min(94px, 54%); height: 8px; opacity: .7; }

  .uza-chat-loading-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 13px;
    padding: 38px 3px 22px;
  }

  .uza-chat-loading-messages > i { height: 45px; border-radius: 21px; }
  .uza-chat-loading-messages > i:nth-child(1) { width: 62%; }
  .uza-chat-loading-messages > i:nth-child(2) { align-self: flex-end; width: 43%; background: rgba(255,255,255,.055); }
  .uza-chat-loading-messages > i:nth-child(3) { width: 74%; height: 66px; }
  .uza-chat-loading-messages > i:nth-child(4) { align-self: flex-end; width: 55%; background: rgba(255,255,255,.055); }

  .uza-chat-loading-composer { display: grid; grid-template-columns: 1fr 48px; gap: 9px; }
  .uza-chat-loading-composer > i { height: 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; }
  .uza-chat-loading-composer > b { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }

  .uza-chat-loading-head > i::after,
  .uza-chat-loading-head > em::after,
  .uza-chat-loading-head b::after,
  .uza-chat-loading-messages > i::after,
  .uza-chat-loading-composer > i::after,
  .uza-chat-loading-composer > b::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.07) 46%, transparent 72%);
    transform: translateX(-115%);
    animation: uza-chat-loading-sheen 1.55s ease-in-out infinite;
  }

  .uza-web-shell.chat-open img.uza-avatar-image:not(.uza-approved-image-ready),
  .uza-web-shell.chat-open img.uza-message-image:not(.uza-approved-image-ready) {
    opacity: 0 !important;
  }

  .uza-web-shell.chat-open img.uza-avatar-image.uza-approved-image-ready,
  .uza-web-shell.chat-open img.uza-message-image.uza-approved-image-ready {
    opacity: 1 !important;
    transition: opacity 210ms ease-out !important;
  }

  .uza-web-shell.chat-open .uza-avatar-fallback,
  .uza-web-shell.chat-open .uza-message-image-wrap,
  .uza-web-shell.chat-open .uza-approved-media-tile {
    background-color: #29282d !important;
    background-image: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)) !important;
  }

  .uza-web-shell.chat-open img.uza-approved-image-error {
    opacity: 0 !important;
  }

  .uza-web-shell.chat-open .uza-chat-pane button,
  .uza-web-shell.chat-open .uza-chat-pane textarea,
  .uza-web-shell.chat-open .uza-chat-pane p,
  .uza-web-shell.chat-open .uza-chat-pane span,
  .uza-web-shell.chat-open .uza-chat-pane strong,
  .uza-web-shell.chat-open .uza-chat-pane small,
  .uza-web-shell.chat-open .uza-chat-pane time {
    font-family: "Inter", sans-serif !important;
  }

  .uza-web-shell.chat-open .uza-chat-header {
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: calc(82px + env(safe-area-inset-top, 0px)) !important;
    padding: max(12px, env(safe-area-inset-top, 0px)) 13px 10px !important;
    box-shadow: none !important;
    order: 0 !important;
  }

  .uza-web-shell.chat-open .uza-pinned-audio {
    z-index: 24;
    box-sizing: border-box;
    color: #f5f5f7;
    background:
      linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 38%),
      rgba(28, 27, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    grid-template-columns: 108px minmax(0, 1fr) 40px 36px;
    align-items: center;
    gap: 5px;
    flex: none;
    order: 1;
    width: auto;
    min-height: 52px;
    margin: 0;
    padding: 5px 8px;
    display: grid;
    position: absolute !important;
    top: 82px !important;
    right: 12px !important;
    left: 12px !important;
    overflow: hidden;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
    animation: uza-approved-audio-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .uza-web-shell.chat-open .uza-pinned-audio-transport {
    grid-template-columns: repeat(3, 34px);
    gap: 2px;
  }

  .uza-web-shell.chat-open .uza-pinned-audio button {
    color: #f5f5f7;
    background: transparent;
    border: 0;
    border-radius: 50%;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
  }

  .uza-web-shell.chat-open .uza-pinned-audio button:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .uza-web-shell.chat-open .uza-pinned-audio-copy {
    min-width: 0;
  }

  .uza-web-shell.chat-open .uza-pinned-audio-copy strong,
  .uza-web-shell.chat-open .uza-pinned-audio-copy small {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .uza-web-shell.chat-open .uza-pinned-audio-copy strong {
    font-size: 12px;
    font-weight: 650;
  }

  .uza-web-shell.chat-open .uza-pinned-audio-copy small {
    color: #aaa9af;
    font-size: 10px;
  }

  .uza-web-shell.chat-open .uza-pinned-audio .progress {
    transform-origin: left center;
    background: #9bea12;
    height: 2px;
    transition: transform 90ms linear;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .uza-web-shell.chat-open .uza-pinned-audio.uza-audio-ending {
    pointer-events: none;
    animation: uza-approved-audio-out 260ms cubic-bezier(0.4, 0, 1, 1) both;
  }

  .uza-web-shell.chat-open .uza-chat-searchbar,
  .uza-web-shell.chat-open .uza-pinned-message {
    order: 2;
  }

  .uza-web-shell.chat-open .uza-message-stage {
    order: 3;
  }

  .uza-web-shell.chat-open .uza-composer-area {
    order: 4;
  }

  .uza-web-shell.chat-open .uza-mobile-chat-back {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-mobile-chat-back svg {
    width: 23px !important;
    height: 23px !important;
  }

  .uza-web-shell.chat-open .uza-chat-person {
    color: #f5f5f7 !important;
    gap: 10px !important;
    margin-left: 6px !important;
  }

  .uza-web-shell.chat-open .uza-chat-avatar-wrap,
  .uza-web-shell.chat-open .uza-chat-avatar-wrap .uza-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .uza-web-shell.chat-open .uza-chat-avatar-wrap {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
  }

  .uza-web-shell.chat-open .uza-chat-avatar-wrap .uza-avatar {
    position: relative !important;
    z-index: 1 !important;
  }

  .uza-web-shell.chat-open .uza-chat-avatar-wrap > i {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-chat-avatar-wrap::after {
    content: "" !important;
    box-sizing: border-box !important;
    background: #9bea12 !important;
    border: 2px solid #34333d !important;
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
    opacity: 0;
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    z-index: 5 !important;
    pointer-events: none !important;
    transform: scale(0.25);
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-chat-avatar-wrap::after {
    content: "" !important;
    box-sizing: border-box !important;
    background: #9bea12 !important;
    border: 2px solid #34333d !important;
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 1;
    transform: scale(1);
    box-shadow: none !important;
    animation:
      uza-online-arrive 460ms cubic-bezier(0.22, 1, 0.36, 1) both,
      uza-online-breathe 2.8s ease-in-out 700ms infinite !important;
  }

  .uza-web-shell.chat-open .uza-chat-avatar-wrap::after,
  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-chat-avatar-wrap::after {
    content: none !important;
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-chat-person > span {
    gap: 3px !important;
  }

  .uza-web-shell.chat-open .uza-chat-person strong {
    color: #f5f5f7 !important;
    letter-spacing: -0.25px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
  }

  .uza-web-shell.chat-open .uza-chat-person small {
    color: #a3a2a7 !important;
    max-width: min(42vw, 184px) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
  }

  .uza-web-shell.chat-open .uza-chat-identity-status {
    transition: color 360ms ease, opacity 260ms ease, transform 320ms ease !important;
  }

  .uza-web-shell.chat-open .uza-chat-person small.online,
  .uza-web-shell.chat-open .uza-chat-identity-status.online {
    color: #86c84a !important;
  }

  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-chat-identity-status {
    animation: uza-online-copy-arrive 520ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  .uza-web-shell.chat-open .uza-chat-identity-handle,
  .uza-web-shell.chat-open .uza-chat-identity-divider {
    display: inline !important;
  }

  .uza-web-shell.chat-open .uza-chat-identity-handle {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-chat-identity-divider { display: none !important; }

  .uza-web-shell.chat-open .uza-chat-identity-divider {
    color: #76757b !important;
    margin-inline: 4px !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-actions {
    gap: 7px !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-actions > button {
    color: #f2f2f4 !important;
    background: linear-gradient(145deg, #3b3a40, #242428) !important;
    border: 1px solid #55545a !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-actions > button:disabled,
  .uza-web-shell.chat-open .uza-approved-camera:disabled {
    color: #76757b !important;
    background: #242328 !important;
    border-color: #3a393f !important;
    opacity: 0.42 !important;
    filter: saturate(0) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-actions > button:hover,
  .uza-web-shell.chat-open .uza-chat-header-actions > button:focus-visible {
    color: #fff !important;
    background: #45454a !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-actions > button svg {
    width: 23px !important;
    height: 23px !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-menu {
    backdrop-filter: none !important;
    background: #1d1c1f !important;
    border: 1px solid #45444a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-menu button {
    color: #e0e0e2 !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-menu button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .uza-web-shell.chat-open .uza-chat-header-menu button svg {
    color: #f2f2f4 !important;
  }

  .uza-web-shell.chat-open .uza-message-stage {
    scrollbar-color: #45444a transparent !important;
    background: transparent !important;
    background-image: none !important;
  }

  .uza-web-shell.chat-open .uza-message-stack {
    gap: 9px !important;
    padding: 14px 18px 22px !important;
  }

  .uza-web-shell.chat-open .uza-message-line {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .uza-web-shell.chat-open .uza-message-line.theirs {
    align-items: flex-start !important;
  }

  .uza-web-shell.chat-open .uza-message-line.mine {
    align-items: flex-end !important;
  }

  .uza-web-shell.chat-open .uza-approved-time-marker { display: none !important; }

  .uza-web-shell.chat-open .uza-day-pill {
    color: #86c84a !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 2px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble {
    color: #f4f4f5 !important;
    background: #45454a !important;
    border: 0 !important;
    border-radius: 21px !important;
    max-width: 72% !important;
    padding: 11px 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
  }

  /* Keep the approved breathing room on ordinary text bubbles. The legacy
     Telegram-channel rule is intentionally more specific than the base rule. */
  .uza-web-shell.chat-open .uza-message-line .uza-message-bubble:not(.has-media):not(.has-audio):has(> p:not(.uza-emoji-only-content)) {
    padding: 11px 15px !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble::before,
  .uza-web-shell.chat-open .uza-message-bubble::after,
  .uza-web-shell.chat-open .uza-message-line::before,
  .uza-web-shell.chat-open .uza-message-line::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    clip-path: none !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble.mine {
    background: #303034 !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble.theirs {
    background: #45454a !important;
  }

  .uza-web-shell.chat-open .uza-message-line:is(.group-start, .group-middle, .group-end, .group-single) .uza-message-bubble {
    border-radius: 21px !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble.has-media {
    background: #3f3f44 !important;
    border-radius: 24px !important;
    padding: 5px 5px 8px !important;
  }

  .uza-web-shell.chat-open .uza-message-image-wrap,
  .uza-web-shell.chat-open .uza-message-image,
  .uza-web-shell.chat-open .uza-message-video {
    border-radius: 20px !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble p {
    color: #f4f4f5 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }

  .uza-web-shell.chat-open .uza-approved-message-footer {
    color: #85848a !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 13px !important;
    margin: -1px 8px 0 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: flex !important;
  }

  .uza-web-shell.chat-open .uza-message-line.mine .uza-approved-message-footer {
    align-self: flex-end !important;
  }

  .uza-web-shell.chat-open .uza-message-line.theirs .uza-approved-message-footer {
    align-self: flex-start !important;
  }

  .uza-web-shell.chat-open .uza-approved-footer-time { color: #9bea12 !important; }
  .uza-web-shell.chat-open .uza-approved-footer-separator { color: #55545a !important; }
  .uza-web-shell.chat-open .uza-approved-footer-status {
    color: #8d8c92 !important;
    align-items: center !important;
    gap: 3px !important;
    display: inline-flex !important;
  }

  .uza-web-shell.chat-open .uza-approved-footer-ticks {
    letter-spacing: -2px !important;
    color: #a3a2a7 !important;
    padding-left: 1px !important;
  }

  .uza-web-shell.chat-open .uza-message-sender {
    color: #f5f5f7 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .uza-web-shell.chat-open .uza-message-meta,
  .uza-web-shell.chat-open .uza-message-meta span {
    color: #a3a2a7 !important;
  }

  .uza-web-shell.chat-open .uza-message-meta time {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-message-bubble > p > .uza-message-meta,
  .uza-web-shell.chat-open .uza-message-bubble > .uza-message-meta {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-message-line.theirs .uza-message-meta {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-delivery-ticks,
  .uza-web-shell.chat-open .uza-message-bubble.mine .uza-message-meta svg {
    color: #8d8c92 !important;
  }

  .uza-web-shell.chat-open .uza-chat-header .uza-verified-standard-shell {
    fill: #e5e5e7 !important;
    transition: fill 360ms ease !important;
  }

  .uza-web-shell.chat-open .uza-chat-header .uza-verified-standard-check {
    fill: none !important;
    stroke: #161619 !important;
    transition: stroke 360ms ease !important;
  }

  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-verified-standard-shell {
    fill: #9bea12 !important;
  }

  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-verified-standard-check {
    stroke: #0e0e11 !important;
  }

  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-verified {
    animation: none !important;
    transform: none !important;
  }

  .uza-web-shell.chat-open .uza-reaction-pills button {
    color: #f2f2f4 !important;
    background: #2c2b2f !important;
    border: 1px solid #55545a !important;
    border-radius: 999px !important;
    height: 30px !important;
    padding: 3px 11px !important;
    font-size: 13px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-reaction-pills button.mine {
    background: #3b3b40 !important;
    border-color: #686769 !important;
  }

  /* The invitation artwork is the message bubble. Do not wrap it in a second
     generic grey bubble; keep reactions directly below the card on both sides. */
  .uza-web-shell.chat-open
    .uza-message-line:has(.uza-special-invite-card)
    > .uza-message-bubble {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: min(390px, 72vw) !important;
    max-width: min(390px, 72vw) !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .uza-web-shell.chat-open
    .uza-message-line:has(.uza-special-invite-card)
    .uza-special-invite-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .uza-web-shell.chat-open
    .uza-message-line:has(.uza-special-invite-card)
    > .uza-message-bubble
    > .uza-reaction-pills {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-host > .uza-message-bubble,
  .uza-web-shell.chat-open .uza-message-line:has(> .uza-approved-media-album) > .uza-message-bubble,
  .uza-web-shell.chat-open .uza-approved-album-source:not(.uza-approved-album-host) {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-album {
    width: min(78vw, 360px) !important;
    max-width: 100% !important;
    position: relative !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-tiles {
    align-items: center !important;
    min-height: 126px !important;
    display: flex !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-tile {
    background: #2c2b2f !important;
    border: 0 !important;
    border-radius: 20px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 142px !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-tile + .uza-approved-media-tile {
    margin-left: -22px !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-tile:nth-child(1) { transform: rotate(-5deg) translateY(8px) !important; }
  .uza-web-shell.chat-open .uza-approved-media-tile:nth-child(2) { z-index: 2 !important; transform: translateY(-3px) !important; }
  .uza-web-shell.chat-open .uza-approved-media-tile:nth-child(3) { z-index: 1 !important; transform: rotate(5deg) translateY(8px) !important; }
  .uza-web-shell.chat-open .uza-approved-media-tile:nth-child(4) { z-index: 3 !important; transform: translateY(2px) !important; }

  .uza-web-shell.chat-open .uza-approved-media-album.count-1 .uza-approved-media-tile {
    width: min(100%, 300px) !important;
    flex: none !important;
    transform: none !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-album.count-2 .uza-approved-media-tile {
    transform: none !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-host.is-focused:has(> .uza-message-bubble > .uza-reaction-picker)
    > .uza-message-bubble {
    background: #1d1c1f !important;
    border: 1px solid #45444a !important;
    border-radius: 999px !important;
    display: block !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    padding: 7px 9px !important;
    position: fixed !important;
    left: 50% !important;
    bottom: max(78px, calc(66px + env(safe-area-inset-bottom, 0px))) !important;
    z-index: 2147483400 !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34) !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-host.is-focused:has(> .uza-message-bubble > .uza-reaction-picker)
    > .uza-message-bubble
    > :not(.uza-reaction-picker) {
    display: none !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-host.is-focused
    > .uza-message-bubble
    > .uza-reaction-picker {
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-host.is-focused
    > .uza-message-bubble
    > .uza-reaction-picker
    button {
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    font-size: 22px !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-host.is-focused
    > .uza-message-bubble
    > .uza-reaction-picker
    button:hover,
  .uza-web-shell.chat-open
    .uza-approved-album-host.is-focused
    > .uza-message-bubble
    > .uza-reaction-picker
    button:focus-visible {
    background: rgba(255, 255, 255, 0.09) !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-tile img,
  .uza-web-shell.chat-open .uza-approved-media-tile video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .uza-web-shell.chat-open .uza-approved-media-more::after {
    content: attr(data-more) !important;
    color: #f5f5f7 !important;
    background: rgba(14, 14, 17, 0.64) !important;
    place-items: center !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    display: grid !important;
    position: absolute !important;
    inset: 0 !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions,
  .uza-web-shell.chat-open .uza-approved-invite-reactions {
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    gap: 5px !important;
    margin: 0 0 0 3px !important;
    display: flex !important;
    position: relative !important;
    z-index: 5 !important;
    transform: translateY(-3px) !important;
  }

  .uza-web-shell.chat-open .uza-approved-invite-reactions {
    margin: 0 !important;
    transform: none !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions button,
  .uza-web-shell.chat-open .uza-approved-invite-reactions button {
    color: #f5f5f7 !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 999px !important;
    align-items: center !important;
    display: inline-flex !important;
    gap: 5px !important;
    min-height: 29px !important;
    height: 30px !important;
    padding: 3px 5px 3px 8px !important;
    box-shadow: none !important;
    transform-origin: center !important;
    animation: uza-approved-reaction-swap-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      opacity 180ms ease,
      transform 180ms ease !important;
  }

  @keyframes uza-approved-reaction-swap-in {
    from { opacity: 0; transform: translateY(2px) scale(0.88); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions .uza-approved-reaction-emoji,
  .uza-web-shell.chat-open .uza-approved-invite-reactions .uza-approved-reaction-emoji {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions .uza-reaction-avatars,
  .uza-web-shell.chat-open .uza-approved-invite-reactions .uza-reaction-avatars {
    align-items: center !important;
    display: flex !important;
    min-width: 18px !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions .uza-reaction-avatars .uza-avatar,
  .uza-web-shell.chat-open .uza-approved-invite-reactions .uza-reaction-avatars .uza-avatar {
    border: 0 !important;
    border-radius: 50% !important;
    place-items: center !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin-left: -5px !important;
    font-size: 7px !important;
    display: grid !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-reactions
    .uza-reaction-avatars
    .uza-avatar-image,
  .uza-web-shell.chat-open
    .uza-approved-invite-reactions
    .uza-reaction-avatars
    .uza-avatar-image {
    border-radius: inherit !important;
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    opacity: 1 !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-album-reactions
    .uza-reaction-avatars
    .uza-avatar
    > span[aria-hidden="true"],
  .uza-web-shell.chat-open
    .uza-approved-invite-reactions
    .uza-reaction-avatars
    .uza-avatar
    > span[aria-hidden="true"] {
    position: relative !important;
    z-index: 1 !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions .uza-reaction-avatars .uza-avatar:first-child,
  .uza-web-shell.chat-open .uza-approved-invite-reactions .uza-reaction-avatars .uza-avatar:first-child {
    margin-left: 0 !important;
  }

  .uza-web-shell.chat-open .uza-approved-album-reactions .uza-reaction-overflow,
  .uza-web-shell.chat-open .uza-approved-invite-reactions .uza-reaction-overflow {
    color: #d8d8da !important;
    margin-left: 3px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
  }

  .uza-web-shell.chat-open
    .uza-approved-message-footer:has(> .uza-approved-album-reactions),
  .uza-web-shell.chat-open
    .uza-approved-message-footer:has(> .uza-approved-invite-reactions) {
    flex-wrap: nowrap !important;
  }

  .uza-web-shell.chat-open .uza-message-toolbar,
  .uza-web-shell.chat-open .uza-message-more-menu,
  .uza-web-shell.chat-open .uza-reaction-picker {
    backdrop-filter: none !important;
    background: #1d1c1f !important;
    border-color: #45444a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  }

  .uza-web-shell.chat-open .uza-message-quote {
    background: rgba(255, 255, 255, 0.055) !important;
    border-left-color: #a3a2a7 !important;
  }

  .uza-web-shell.chat-open .uza-message-quote strong {
    color: #e0e0e2 !important;
  }

  .uza-web-shell.chat-open .uza-chat-empty-state {
    color: #a3a2a7 !important;
  }

  .uza-web-shell.chat-open .uza-chat-empty-orb {
    color: #e0e0e2 !important;
    background: #1d1c1f !important;
    border: 1px solid #45444a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-composer-area {
    background: transparent !important;
    border: 0 !important;
    padding: 7px 14px max(9px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .uza-web-shell.chat-open .uza-composer-row {
    align-items: center !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 52px 0 0 !important;
    position: relative !important;
  }

  .uza-web-shell.chat-open .uza-composer-box {
    box-sizing: border-box !important;
    background: #2c2b2f !important;
    border: 1px solid #55545a !important;
    border-radius: 24px !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 5px 0 17px !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-composer-box:focus-within {
    border-color: #686769 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-composer-box textarea {
    color: #fff !important;
    grid-column: 1 !important;
    max-height: 116px !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    line-height: 22px !important;
  }

  .uza-web-shell.chat-open .uza-composer-box textarea::placeholder {
    color: #a09fa4 !important;
  }

  .uza-web-shell.chat-open .uza-emoji-anchor {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-approved-camera {
    color: #f2f2f4 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    grid-column: 2 !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: grid !important;
  }

  .uza-web-shell.chat-open .uza-approved-camera svg {
    width: 24px !important;
    height: 24px !important;
  }

  .uza-web-shell.chat-open .uza-attach-wrap.composer-trailing {
    position: absolute !important;
    top: 50% !important;
    right: -51px !important;
    transform: translateY(-50%) !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
  }

  .uza-web-shell.chat-open .uza-composer-round.plus {
    color: #f2f2f4 !important;
    background: #29292e !important;
    border: 1px solid #444349 !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-send-button.record-mode {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-send-button:not(.record-mode) {
    color: #161619 !important;
    background: #e8e8ea !important;
    border: 1px solid #e8e8ea !important;
    border-radius: 50% !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  }

  .uza-web-shell.chat-open .uza-composer-row:has(.uza-send-button:not(.record-mode)) {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 7px !important;
    padding-right: 0 !important;
  }

  .uza-web-shell.chat-open .uza-composer-row:has(.uza-send-button:not(.record-mode))
    .uza-attach-wrap.composer-trailing {
    display: none !important;
  }

  .uza-web-shell.chat-open .uza-attach-wrap.composer-trailing:has(.uza-attachment-menu) {
    top: calc(50% - 22px) !important;
    transform: none !important;
    z-index: 2147482500 !important;
  }

  body.uza-approved-attachment-open {
    overflow: hidden !important;
  }

  .uza-approved-attachment-focus-layer {
    backdrop-filter: blur(13px) saturate(0.82) !important;
    -webkit-backdrop-filter: blur(13px) saturate(0.82) !important;
    background: rgba(6, 6, 8, 0.76) !important;
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 2147482400 !important;
    animation: uza-attachment-focus-in 180ms ease-out both !important;
  }

  body.uza-approved-attachment-open
    .uza-web-shell.chat-open
    .uza-attach-wrap.composer-trailing
    > .uza-composer-round.plus {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.uza-approved-attachment-open .uza-web-shell.chat-open .uza-attachment-backdrop {
    display: none !important;
  }

  body.uza-approved-attachment-open .uza-web-shell.chat-open .uza-attachment-menu {
    color: #f5f5f7 !important;
    background: #171719 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 26px !important;
    box-sizing: border-box !important;
    display: block !important;
    font-family: "Inter", sans-serif !important;
    width: min(430px, calc(100vw - 20px)) !important;
    max-width: none !important;
    max-height: min(68dvh, 430px) !important;
    margin: 0 !important;
    padding: 8px 13px 13px !important;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: max(76px, calc(66px + env(safe-area-inset-bottom, 0px))) !important;
    z-index: 2147482600 !important;
    transform: translateX(-50%) !important;
    overflow: hidden auto !important;
    outline: none !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58) !important;
    animation: uza-attachment-sheet-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  .uza-web-shell.chat-open .uza-attachment-handle {
    background: #55545a !important;
    border-radius: 999px !important;
    display: block !important;
    width: 42px !important;
    height: 4px !important;
    margin: 0 auto 10px !important;
  }

  .uza-web-shell.chat-open .uza-attachment-menu > header {
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 2px 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .uza-web-shell.chat-open .uza-attachment-menu > header > span {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .uza-web-shell.chat-open .uza-attachment-menu > header small {
    color: #a3a2a7 !important;
    letter-spacing: 1.4px !important;
    font-size: 9px !important;
    font-weight: 650 !important;
  }

  .uza-web-shell.chat-open .uza-attachment-menu > header strong {
    color: #f5f5f7 !important;
    letter-spacing: -0.35px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
  }

  .uza-web-shell.chat-open .uza-attachment-menu > header > button {
    color: #e0e0e2 !important;
    background: #29292e !important;
    border: 1px solid #45444a !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding-top: 12px !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid > button {
    color: #e8e8ea !important;
    background: #222226 !important;
    border: 1px solid #3f3e44 !important;
    border-radius: 17px !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 13px !important;
    min-width: 0 !important;
    min-height: 68px !important;
    padding: 10px 12px !important;
    text-align: left !important;
    box-shadow: none !important;
    transition: background 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid > button:hover,
  .uza-web-shell.chat-open .uza-attachment-grid > button:focus-visible {
    background: #2c2b2f !important;
    border-color: #686769 !important;
    outline: none !important;
    transform: translateY(-1px) !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid > button > span:first-child {
    color: #f2f2f4 !important;
    background: #303034 !important;
    border: 1px solid #4a4950 !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid > button > span:last-child {
    display: grid !important;
    gap: 4px !important;
    justify-items: start !important;
    min-width: 0 !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid strong {
    color: #f5f5f7 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
  }

  .uza-web-shell.chat-open .uza-attachment-grid small {
    color: #85848a !important;
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 11px !important;
    font-weight: 450 !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
}

@keyframes uza-chat-loading-sheen {
  0%, 22% { transform: translateX(-115%); }
  78%, 100% { transform: translateX(115%); }
}

@keyframes uza-attachment-sheet-in {
  from { opacity: 0; transform: translate(-50%, 20px) scale(0.975); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes uza-attachment-focus-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes uza-online-arrive {
  0% { opacity: 0; transform: scale(0.25) translate(6px, -6px); }
  65% { opacity: 1; transform: scale(1.16) translate(0, 0); }
  100% { opacity: 1; transform: scale(1) translate(0, 0); }
}

@keyframes uza-online-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.82); }
}

@keyframes uza-online-copy-arrive {
  0% { color: #a3a2a7; opacity: 0; transform: translateY(5px); }
  100% { color: #86c84a; opacity: 1; transform: translateY(0); }
}

html.uza-media-viewer-open,
html.uza-media-viewer-open body {
  overflow: hidden !important;
}

.uza-approved-viewer {
  color: #f5f5f7;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(180deg, #34333d 0, #24232b 13%, #111115 31%, #0b0b0d 100%);
  font-family: "Inter", sans-serif;
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  animation: uza-viewer-in 180ms ease-out both;
}

.uza-approved-viewer *,
.uza-approved-viewer *::before,
.uza-approved-viewer *::after {
  box-sizing: border-box;
}

.uza-approved-viewer button,
.uza-approved-viewer textarea {
  font: inherit;
}

.uza-approved-viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  min-height: 100%;
}

.uza-approved-viewer-header {
  align-items: center;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: calc(70px + env(safe-area-inset-top, 0px));
  padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
  position: relative;
  z-index: 5;
}

.uza-approved-viewer-back,
.uza-approved-viewer-nav,
.uza-approved-viewer-zoom button,
.uza-approved-viewer-react,
.uza-approved-viewer-reply button {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-tap-highlight-color: transparent;
}

.uza-approved-viewer-back {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.uza-approved-viewer-back svg,
.uza-approved-viewer-nav svg,
.uza-approved-viewer-reply button svg {
  width: 24px;
  height: 24px;
}

.uza-approved-viewer-header > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.uza-approved-viewer-header strong {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uza-approved-viewer-header small {
  color: #a3a2a7;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.2;
}

.uza-approved-viewer-count {
  color: #d8d8da;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.uza-approved-viewer-main {
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.uza-approved-viewer-stage {
  cursor: zoom-in;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.uza-approved-viewer-stage.zoomed { cursor: grab; }
.uza-approved-viewer-stage.zoomed:active { cursor: grabbing; }

.uza-approved-viewer-stage.portrait-scroll:not(.zoomed) {
  align-content: start;
  cursor: grab;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: #55545a transparent;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.uza-approved-viewer-stage.portrait-scroll:not(.zoomed):active { cursor: grabbing; }

.uza-approved-viewer-stage img,
.uza-approved-viewer-stage video {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center;
  transition: transform 180ms ease-out;
  will-change: transform;
  -webkit-user-drag: none;
}

.uza-approved-viewer-stage.portrait-scroll:not(.zoomed) img {
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: none;
}

.uza-approved-viewer-nav {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
}

.uza-approved-viewer-nav.previous { left: 12px; }
.uza-approved-viewer-nav.next { right: 12px; }
.uza-approved-viewer-nav[hidden] { display: none; }

.uza-approved-viewer-zoom {
  align-items: center;
  display: flex;
  gap: 2px;
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
}

.uza-approved-viewer-zoom button {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.uza-approved-viewer-zoom output {
  color: #d8d8da;
  background: rgba(14, 14, 17, 0.58);
  min-width: 48px;
  padding: 6px 5px;
  text-align: center;
  font-size: 11px;
  border-radius: 999px;
}

.uza-approved-viewer-footer {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 560px);
  justify-content: center;
  gap: 9px;
  padding: 9px 14px max(11px, env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 5;
}

.uza-approved-viewer-react {
  align-items: center;
  border-radius: 24px;
  display: flex;
  gap: 7px;
  min-height: 46px;
  padding: 0 14px;
}

.uza-approved-viewer-react > span {
  font-size: 25px;
  line-height: 1;
}

.uza-approved-viewer-react > b {
  font-size: 12px;
  font-weight: 600;
}

.uza-approved-viewer-reply {
  align-items: center;
  background: #2c2b2f;
  border: 1px solid #55545a;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  min-height: 46px;
  padding: 0 4px 0 15px;
}

.uza-approved-viewer-reply textarea {
  color: #f5f5f7;
  background: transparent;
  border: 0;
  outline: 0;
  resize: none;
  width: 100%;
  max-height: 88px;
  padding: 11px 0;
  font-size: 14px;
  line-height: 22px;
}

.uza-approved-viewer-reply textarea::placeholder { color: #a09fa4; }

.uza-approved-viewer-reply button {
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
}

.uza-approved-viewer button:hover,
.uza-approved-viewer button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

@keyframes uza-viewer-in {
  from { opacity: 0; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

@media (width <= 620px) {
  .uza-approved-viewer-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding-inline: 10px;
  }

  .uza-approved-viewer-back {
    width: 40px;
    height: 40px;
  }

  .uza-approved-viewer-nav {
    background: rgba(14, 14, 17, 0.44);
    width: 38px;
    height: 38px;
  }

  .uza-approved-viewer-nav.previous { left: 6px; }
  .uza-approved-viewer-nav.next { right: 6px; }

  .uza-approved-viewer-footer {
    grid-template-columns: 46px minmax(0, 1fr);
    padding-inline: 10px;
  }

  .uza-approved-viewer-react {
    border-radius: 50%;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
  }

  .uza-approved-viewer-react > b { display: none; }
}

.uza-approved-batch-layer {
  background: rgba(7, 7, 9, 0.82);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 18px;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  animation: uza-batch-backdrop-in 180ms ease-out both;
}

.uza-approved-batch-sheet {
  color: #f5f5f7;
  background: #171719;
  border: 1px solid #45444a;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  width: min(100%, 460px);
  max-height: min(82vh, 660px);
  padding: 18px;
  overflow: auto;
  animation: uza-batch-sheet-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.uza-approved-batch-sheet > header,
.uza-approved-batch-sheet > footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.uza-approved-batch-sheet > header span {
  display: grid;
  gap: 3px;
}

.uza-approved-batch-sheet > header small {
  color: #86c84a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.uza-approved-batch-sheet > header strong {
  font-size: 19px;
  line-height: 1.15;
}

.uza-approved-batch-close {
  color: #f5f5f7;
  background: #29292e;
  border: 1px solid #45444a;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 25px;
  line-height: 1;
}

.uza-approved-batch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 12px;
}

.uza-approved-batch-grid article {
  background: #0e0e11;
  border: 1px solid #3f3e44;
  border-radius: 15px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.uza-approved-batch-grid img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.uza-approved-batch-grid article > button {
  color: #fff;
  background: rgba(14, 14, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  padding: 0;
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 18px;
  line-height: 1;
}

.uza-approved-batch-note {
  color: #a3a2a7;
  min-height: 18px;
  margin: 0 0 15px;
  font-size: 12px;
  line-height: 1.45;
}

.uza-approved-batch-note.error { color: #ff8998; }

.uza-approved-batch-sheet > footer { justify-content: flex-end; }

.uza-approved-batch-sheet > footer button {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 650;
}

.uza-approved-batch-sheet > footer .secondary {
  color: #e0e0e2;
  background: #29282d;
  border: 1px solid #54525a;
}

.uza-approved-batch-sheet > footer .primary {
  color: #161619;
  background: #e8e8ea;
  border: 1px solid #e8e8ea;
  min-width: 126px;
}

.uza-approved-batch-sheet > footer button:disabled { opacity: 0.62; }

@keyframes uza-batch-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes uza-batch-sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes uza-approved-audio-in {
  from { opacity: 0; filter: blur(4px); transform: translateY(-7px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes uza-approved-audio-out {
  from { opacity: 1; filter: blur(0); transform: translateY(0); }
  to { opacity: 0; filter: blur(4px); transform: translateY(-7px); }
}

@media (width <= 520px) {
  .uza-approved-batch-layer { padding: 12px; }
  .uza-approved-batch-sheet { border-radius: 22px; padding: 15px; }
  .uza-approved-batch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-chat-avatar-wrap::after,
  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-chat-identity-status,
  .uza-web-shell.chat-open .uza-chat-header.uza-approved-online .uza-verified,
  .uza-approved-batch-layer,
  .uza-approved-batch-sheet,
  .uza-web-shell.chat-open .uza-pinned-audio,
  .uza-web-shell.chat-open .uza-pinned-audio.uza-audio-ending {
    animation: none !important;
  }
}

@media (min-width: 821px) {
  body.uza-chat-loading {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #06070a !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-web-shell.chat-open
    > .uza-web-center {
    position: relative !important;
    z-index: 2 !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-web-shell.chat-open
    .uza-chat-pane {
    position: relative !important;
    z-index: 3 !important;
    isolation: isolate !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-web-shell.chat-open
    .uza-chat-header-actions
    > button[aria-label="Pesquisar na conversa"] {
    display: none !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-web-shell > .uza-sidebar.under-brand {
    display: none !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav,
  body.uza-conversations-approved.uza-conversations-desktop-columns:has(.uza-web-shell.chat-open)
    .uza-approved-bottom-nav.uza-shared-bottom-nav {
    position: fixed !important;
    z-index: 1002 !important;
    left: max(16px, calc(50% - 720px + 16px)) !important;
    right: auto !important;
    bottom: 10px !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 388px !important;
    height: 68px !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 28px !important;
    background: rgba(29, 28, 31, 0.96) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 6px;
    left: 7px;
    width: calc((100% - 26px) / 4);
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition: transform 360ms cubic-bezier(0.2, 0.86, 0.24, 1);
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav[data-active-index="1"]::before {
    transform: translate3d(calc(100% + 2.4px), 0, 0);
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav[data-active-index="2"]::before {
    transform: translate3d(calc(200% + 4.8px), 0, 0);
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav[data-active-index="3"]::before {
    transform: translate3d(calc(300% + 7.2px), 0, 0);
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav > button {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    place-items: center !important;
    min-width: 0 !important;
    height: 54px !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #f2f2f4 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    filter: none !important;
  }

  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav > button:nth-child(3) svg {
    width: 25px !important;
    height: 25px !important;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  body.uza-conversations-approved.uza-conversations-desktop-columns
    .uza-approved-bottom-nav.uza-shared-bottom-nav {
    width: 358px !important;
  }
}
