@media (max-width: 969px) {
  body.addon-comments-sheet-open {
    overflow: hidden;
    touch-action: none;
  }

  .addon-comments-sheet {
    position: fixed;
    inset: 0;
    z-index: 1048;
    pointer-events: none;
  }

  .addon-comments-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  /* ── اللوح الرئيسي */
  .addon-comments-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 65dvh;
    max-height: 65dvh;
    background: #1a1a1a;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    transform: translateY(102%);
    transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  }

  .addon-comments-sheet.is-open {
    pointer-events: auto;
  }

  .addon-comments-sheet.is-open .addon-comments-sheet__backdrop {
    opacity: 1;
  }

  .addon-comments-sheet.is-open .addon-comments-sheet__panel {
    transform: translateY(0);
  }

  /* ── الهاندل — مثل Instagram */
  .addon-comments-sheet__handle-wrap {
    padding: 14px 0 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    touch-action: none;
    user-select: none;
    cursor: grab;
  }

  .addon-comments-sheet__handle {
    width: 32px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
  }

  /* ── الهيدر */
  .addon-comments-sheet__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
    touch-action: none;
    user-select: none;
    position: relative;
  }

  .addon-comments-sheet__back {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 26px;
    line-height: 1;
    padding: 0 2px;
    flex: 0 0 auto;
    position: absolute;
    left: 16px;
  }

  .addon-comments-sheet__title {
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    flex: 1 1 auto;
    letter-spacing: 0.01em;
  }

  /* ── إخفاء زر الإغلاق */
  .addon-comments-sheet__close {
    display: none !important;
  }

  /* ── جسم التعليقات */
  .addon-comments-sheet__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px max(20px, env(safe-area-inset-bottom));
    min-height: 180px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .addon-comments-sheet__body::-webkit-scrollbar {
    display: none;
  }

  /* ── حقل الكتابة */
  .addon-comments-sheet__composer {
    flex: 0 0 auto;
    padding: 10px 12px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #1a1a1a;
  }

  .addon-comments-sheet__composer .comment {
    margin-bottom: 0;
  }

  .addon-comments-sheet__composer .comment-form {
    align-items: flex-end;
  }

  /* ── layout الرئيسي: صورة + حاوية النص */
  .addon-comments-sheet__composer .d-flex.x_user_info.gap-2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* ── الصورة الشخصية */
  .addon-comments-sheet__composer .comment-avatar,
  .addon-comments-sheet__composer .comment-avatar.flex-0 {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    display: block !important;
    align-self: center !important;
  }

  .addon-comments-sheet__composer .comment-avatar img,
  .addon-comments-sheet__composer .comment-avatar.flex-0 img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 2px solid rgba(255, 255, 255, 0.10) !important;
  }

  /* comment-data */
  .addon-comments-sheet__composer .comment-data,
  .addon-comments-sheet__composer .comment-data.flex-1 {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-width: 0 !important;
  }

  /* ── حاوية النص والأدوات — كبسولة واحدة مثل Instagram */
  .addon-comments-sheet__composer .x-form.comment-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    background: #252525 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 22px !important;
    padding: 5px 5px 5px 14px !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
  }

  .addon-comments-sheet__composer .x-form.comment-form:focus-within {
    border-color: rgba(255, 255, 255, 0.20) !important;
    background: #2a2a2a !important;
  }

  /* ── مربع النص — شفاف داخل الكبسولة */
  .addon-comments-sheet__composer textarea.js_post-comment {
    flex: 1 1 auto !important;
    width: 0 !important;
    min-height: 30px !important;
    max-height: 100px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 5px 8px 5px 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    resize: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .addon-comments-sheet__composer textarea.js_post-comment::-webkit-scrollbar {
    display: none !important;
  }

  .addon-comments-sheet__composer textarea.js_post-comment::placeholder {
    color: rgba(255, 255, 255, 0.30) !important;
  }

  /* ── الأدوات داخل الكبسولة */
  .addon-comments-sheet__composer .x-form-tools {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex: 0 0 auto !important;
    padding: 0 4px 0 0 !important;
  }

  .addon-comments-sheet__composer .x-form-tools li {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* ── إخفاء زر الإيموجي فقط */
  .addon-comments-sheet__composer li.x-form-tools-emoji.js_emoji-menu-toggle.lh-1 {
    display: none !important;
  }

  /* أيقونات الأدوات — دائرية متساوية */
  .addon-comments-sheet__composer .x-form-tools a,
  .addon-comments-sheet__composer .x-form-tools form {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: background 0.15s ease !important;
    cursor: pointer !important;
  }

  .addon-comments-sheet__composer .x-form-tools a:active,
  .addon-comments-sheet__composer .x-form-tools form:active {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  .addon-comments-sheet__composer .x-form-tools svg {
    color: rgba(255, 255, 255, 0.45) !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }

  /* ── زر الإرسال — pill أنيق */
  .addon-comments-sheet__composer button[type="submit"],
  .addon-comments-sheet__composer .js_post-comment-btn,
  .addon-comments-sheet__composer input[type="submit"] {
    background: #3a3a3a !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border: none !important;
    border-radius: 18px !important;
    height: 36px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0.01em !important;
  }

  .addon-comments-sheet__composer button[type="submit"]:active,
  .addon-comments-sheet__composer .js_post-comment-btn:active {
    background: #484848 !important;
    transform: scale(0.95) !important;
  }

  /* ── التعليقات */
  .addon-comments-sheet__body > .post-comments {
    display: block !important;
    padding-bottom: 0;
  }

  .addon-comments-sheet__body .addon-comments-mobile-layout {
    display: none !important;
  }

  .addon-comments-sheet__body .x_comms_list {
    max-height: none;
  }

  .addon-comments-sheet__body .x_comms_list > div,
  .addon-comments-sheet__body .comments-list > div,
  .addon-comments-sheet__body .media.comment,
  .addon-comments-sheet__body .comment-item {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
  }
}