/* diwaniya-page.css — extracted from diwaniya.html (Wave 108) so the ~50KB
   page CSS is cached across visits instead of re-downloaded in the HTML. */


  /* ── مرفقات الميديا في منطقة الكتابة ─────────────── */
  .compose-media-bar {
    display: flex; gap: 4px; padding: 8px 0 0;
  }
  .media-btn {
    background: none; border: none; cursor: pointer;
    color: var(--soft); padding: 6px; border-radius: var(--r-sm);
    display: grid; place-items: center;
    transition: color 0.15s, background 0.15s;
  }
  .media-btn:hover { color: var(--white); background: var(--slate); }

  .media-preview-row {
    display: none; gap: 8px; flex-wrap: wrap;
    padding: 8px 0; margin-bottom: 4px;
  }
  .media-thumb { position: relative; }
  .media-thumb-inner {
    width: 80px; height: 80px; border-radius: var(--r-sm);
    background: var(--slate); overflow: hidden;
    border: 1px solid var(--line);
  }
  .media-remove-btn {
    position: absolute; top: -6px; left: -6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--char); border: 1px solid var(--line);
    color: var(--soft); cursor: pointer; display: grid; place-items: center;
    z-index: 2; transition: color 0.15s;
  }
  .media-remove-btn:hover { color: var(--white); }
  .media-progress {
    margin-top: 4px; height: 3px;
    background: var(--slate); border-radius: 2px; overflow: hidden;
  }
  .media-progress-bar { height: 100%; background: var(--white); transition: width 0.2s; }
  /* Upload status strip shown while media is uploading */
  .compose-upload-status {
    display: none; align-items: center; gap: 8px;
    font-size: 12px; color: var(--soft); padding: 4px 0 6px;
  }
  .compose-upload-status.active { display: flex; }
  .compose-upload-spinner {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--line); border-top-color: var(--white);
    animation: spin .7s linear infinite; flex-shrink: 0;
  }
  @keyframes spin { to { transform: rotate(360deg); } }


  /* ── بانر المنشورات الجديدة ──────────────────────── */
  .sq8-new-posts-banner {
    display: block; width: 100%;
    background: var(--char); border: none; border-bottom: var(--hair-soft);
    color: var(--white); font-size: 14px; font-family: var(--font-ar);
    padding: 12px 20px; text-align: center; cursor: pointer;
    transition: background 0.15s;
  }
  .sq8-new-posts-banner:hover { background: var(--slate); }

  /* ── أزرار التحكم بالتريندينج ────────────────────── */
  .trending-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--slate); border: none; border-radius: var(--r-pill);
    color: var(--soft); font-size: 12px; font-family: var(--font-ar);
    padding: 4px 10px; cursor: pointer; text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .trending-tag:hover { background: var(--line); color: var(--white); }
  .trending-tag .tag-count { color: var(--mute); font-family: var(--font-en); font-size: 11px; }
  body { overflow-x: hidden; background: #000000; }

  /* ── Layout ── */
  .dw-layout {
    display: grid;
    grid-template-columns: 275px minmax(480px, 600px) minmax(300px, 1fr);
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 0;
  }
  @media (min-width: 1101px) {
    .dw-layout {
      padding-inline: max(20px, calc((100vw - 1380px) / 2));
    }
  }
  @media (max-width: 1100px) {
    .dw-layout {
      grid-template-columns: 72px minmax(0, 1fr) 280px;
      max-width: none;
      padding-inline: 0;
    }
  }
  @media (max-width: 800px)  { .dw-layout { grid-template-columns: 1fr; padding-inline: 0; } }

  /* ── Sidebar ── */
  .dw-sidebar {
    position: sticky; top: 60px; height: calc(100vh - 60px);
    display: flex; flex-direction: column; gap: 4px;
    padding: 24px 20px; overflow-y: auto;
    border-left: var(--hair);
  }
  body[dir="ltr"] .dw-sidebar { border-left: none; border-right: var(--hair); }
  @media (max-width: 800px) { .dw-sidebar { display: none; } }

  .dw-brand { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 6px 10px; text-decoration: none; }
  .dw-brand-mark { display: none; } /* logo now lives in the unified top bar */
  .dw-brand-mark svg { width: 100%; height: 100%; display: block; }
  .dw-brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--white); }
  @media (max-width: 1100px) { .dw-brand-name, .dw-nav-label { display: none; } .dw-brand { justify-content: center; padding: 6px; } .dw-sidebar { align-items: center; padding: 24px 12px; } .dw-nav-btn { justify-content: center; } }

  /* ── Suggested Creatives Widget ── */
  .sc-widget { display:none; flex-direction:column; gap:0; margin-top:8px; background:var(--char); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
  @media (max-width: 1100px) { .sc-widget { display: none !important; } }
  .sc-widget-head { font-size:12px; font-weight:700; color:var(--soft); padding:10px 14px 8px; letter-spacing:.04em; display:flex; align-items:center; gap:6px; }
  .sc-widget-head svg { width:13px; height:13px; flex-shrink:0; }
  .sc-row { display:flex; align-items:center; gap:9px; padding:8px 14px; border-top:1px solid var(--line); transition:background .15s; }
  .sc-row:hover { background:var(--elev); }
  .sc-ava { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:700; color:#fff; flex-shrink:0; }
  .sc-info { flex:1; min-width:0; }
  .sc-name { font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .sc-cat { font-size:11px; color:var(--mute); margin-top:1px; }
  .sc-supp { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; color:var(--soft); border:1px solid var(--line); border-radius:999px; padding:3px 10px; white-space:nowrap; text-decoration:none; transition:border-color .15s,color .15s; flex-shrink:0; }
  .sc-supp:hover { border-color:rgba(255,255,255,.3); color:var(--white); }
  .sc-supp svg { width:11px; height:11px; }
  .sc-widget-foot { display:flex; justify-content:center; padding:8px; border-top:1px solid var(--line); }
  .sc-widget-foot a { font-size:12px; color:var(--mute); text-decoration:none; transition:color .15s; }
  .sc-widget-foot a:hover { color:var(--soft); }

  .dw-nav-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 999px; font-size: 16px;
    color: var(--paper); transition: .18s; cursor: pointer; font-weight: 400;
  }
  .dw-nav-btn:hover, .dw-nav-btn.active { background: var(--char); color: var(--white); }
  .dw-nav-btn svg { flex-shrink: 0; width: 22px; height: 22px; }
  .dw-nav-label { font-size: 17px; }

  .dw-compose-btn {
    margin-top: 16px; padding: 14px 22px; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font-size: 16px;
    font-weight: 700; cursor: pointer; transition: .18s; text-align: center;
  }
  .dw-compose-btn:hover { background: var(--accent-strong); }
  .dw-login-btn { margin-top: 12px; padding: 13px 20px; border-radius: 999px; background: transparent; border: 1px solid var(--white); color: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; transition: .18s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-ar); }
  .dw-login-btn:hover { background: var(--white); color: var(--black); }
  .dw-login-btn:hover svg { color: var(--black); }
  .dw-controls { display: none; } /* lang/theme now live in the unified top bar */
  .dw-ctrl-btn { flex: 1; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer; font-family: var(--font-en); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: .18s; }
  .dw-ctrl-btn:hover { border-color: var(--white); color: var(--white); }
  /* Personal welcome */
  .dw-welcome { padding: 18px 20px; border-bottom: var(--hair); }
  .dw-welcome-hi { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--white); }
  .dw-welcome-sub { font-size: 14px; color: var(--soft); margin-top: 3px; }
  /* Starter card — feels like a majlis invitation cushion */

  /* (Warm light theme tokens now come from diwaniya-theme.css) */

  .dw-me { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-top: auto; transition: .18s; }
  .dw-me:hover { background: var(--char); }
  .dw-me .me-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
  .dw-me .me-info { flex: 1; min-width: 0; }
  .dw-me .me-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dw-me .me-handle { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-en); }
  @media (max-width: 1100px) { .dw-me .me-info { display: none; } }

  /* ── Feed ── */
  .dw-feed {
    border-left: var(--hair);
    border-right: var(--hair);
    min-height: 100vh;
    min-width: 0;
    width: 100%;
    max-width: 600px;
    justify-self: center;
  }
  .dw-feed-header {
    background: transparent;
    padding: 0;
    display: flex; align-items: center;
  }
  .mobile-login-btn {
    display: none; align-items: center; gap: 7px;
    margin: 10px 16px;
    padding: 8px 16px; border-radius: var(--r-pill);
    background: var(--accent); color: var(--on-accent);
    font-weight: 700; font-size: 13.5px; cursor: pointer;
    border: none; font-family: var(--font-ar);
  }
  @media (max-width: 800px) { .mobile-login-btn.show { display: inline-flex; } }
  .dw-feed-head-text { text-align: center; }
  .dw-feed-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
  .dw-feed-live { font-size: 12px; color: var(--soft); margin-top: 2px; display: none; align-items: center; gap: 5px; justify-content: center; }
  .dw-feed-live.show { display: flex; }
  .dw-feed-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 1.4s ease-in-out infinite; }
  .dw-tabs { display: flex; gap: 0; margin-top: 0; }
  .dw-tab {
    flex: 1; padding: 14px 0; text-align: center; font-size: 14px;
    color: var(--mute); cursor: pointer; font-weight: 500;
    position: relative; border-bottom: none;
    transition: color .18s ease, font-weight .18s ease;
  }
  .dw-tab::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 72%; height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1);
  }
  .dw-tab.active { color: var(--white); font-weight: 700; }
  .dw-tab.active::after { transform: translateX(-50%) scaleX(1); }

  /* ── Compose ── */
  .dw-compose {
    display: flex; gap: 10px; padding: 10px 16px;
    border-bottom: var(--hair);
  }
  .dw-compose .compose-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
  .dw-compose .compose-right { flex: 1; }
  .dw-compose textarea {
    width: 100%; background: transparent; border: none; outline: none;
    font-size: 16px; font-family: var(--font-ar); color: var(--white);
    resize: none; min-height: 38px; line-height: 1.5;
    placeholder-color: var(--mute);
  }
  body.light .dw-compose textarea { color: var(--black); }
  .dw-compose textarea::placeholder { color: var(--mute); }
  .compose-seasonal { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px 0 10px; }
  .compose-seasonal-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 13px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent;
    font-size: 12px; font-weight: 600; color: var(--soft);
    cursor: pointer; font-family: var(--font-ar);
    transition: border-color .15s, color .15s;
  }
  .compose-seasonal-chip:hover { border-color: var(--white); color: var(--white); }
  .compose-seasonal-label { font-size: 11px; font-weight: 400; color: var(--mute); }
  .compose-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: var(--hair-soft); }
  .post-btn {
    padding: 8px 20px; border-radius: 999px; background: var(--accent);
    color: var(--on-accent); font-size: 14px; font-weight: 700; cursor: pointer;
    transition: .18s;
  }
  .post-btn:hover { background: var(--accent-strong); }
  .post-btn:disabled { opacity: 0.4; cursor: default; }



  /* diwaniya-specific: keep accent-soft bg on filled-state hover */
  .post-action.on-like:hover svg     { background: var(--accent-soft); }
  .post-action.on-repost:hover svg   { background: var(--accent-soft); }
  .post-action.on-bookmark:hover svg { background: var(--accent-soft); }

  /* diwaniya-specific menu overrides (sq8-post.css has the base) */
  body.light .post-menu-btn:hover { color: var(--black); }
  .post-menu-dropdown { background: var(--card); border: var(--hair); }
  body.light .post-menu-dropdown button { color: var(--black); }
  .post-menu-dropdown button:hover { background: var(--char); }
  /* ── Report modal ── */
  .report-overlay {
    display: none; position: fixed; inset: 0; z-index: 900;
    background: rgba(0,0,0,.72); backdrop-filter: blur(8px);
    align-items: flex-end; justify-content: center;
  }
  .report-overlay.open { display: flex; }
  .report-sheet {
    background: var(--ink); border: 1px solid var(--line);
    border-radius: 22px 22px 0 0; width: 100%; max-width: 560px;
    padding: 24px 22px 32px; box-shadow: 0 -8px 40px rgba(0,0,0,.7);
  }
  .report-sheet h3 { margin: 0 0 18px; font-size: 17px; font-weight: 700; }
  .report-reasons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .report-reason {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px;
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .report-reason:hover { border-color: rgba(255,255,255,.3); background: var(--char); }
  .report-reason.selected { border-color: var(--white); background: rgba(255,255,255,.06); }
  body.light .report-reason.selected { border-color: var(--black); background: rgba(0,0,0,.06); }
  .report-reason span { font-size: 14px; font-weight: 500; }
  .report-reason-dot {
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--mute);
    flex-shrink: 0; transition: border-color .15s;
  }
  .report-reason.selected .report-reason-dot { border-color: var(--white); background: var(--white); }
  body.light .report-reason.selected .report-reason-dot { border-color: var(--black); background: var(--black); }
  .report-btns { display: flex; gap: 10px; }
  .report-submit {
    flex: 1; background: var(--white); color: #000; border: 0;
    border-radius: 999px; padding: 12px; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: var(--font-ar);
    transition: opacity .15s;
  }
  .report-submit:disabled { opacity: .4; cursor: default; }
  .report-cancel {
    flex: 1; background: none; color: var(--white); border: 1px solid var(--line);
    border-radius: 999px; padding: 12px; font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: var(--font-ar); transition: background .15s;
  }
  .report-cancel:hover { background: var(--char); }
  body.light .report-cancel { color: var(--black); }
  .post-replies { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }

  /* ── Content Warning overlay ─────────────────── */
  .cw-wrap { position: relative; }
  .cw-overlay {
    position: relative; z-index: 4;
    background: var(--char); border: 1px solid var(--line); border-radius: var(--r-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 20px 16px; margin-top: 8px; text-align: center;
  }
  .cw-label { font-size: 12px; color: var(--soft); }
  .cw-reveal-btn {
    background: var(--white); color: var(--black); border: none;
    border-radius: 999px; font-size: 13px; font-weight: 700;
    font-family: var(--font-ar); padding: 5px 18px; cursor: pointer;
    transition: opacity .15s;
  }
  .cw-reveal-btn:hover { opacity: .85; }
  .cw-content { display: none; }
  .cw-wrap.revealed .cw-overlay { display: none; }
  .cw-wrap.revealed .cw-content { display: block; }

  /* ── Feed infinite scroll sentinel ──────────── */
  #feedSentinel { height: 40px; }
  .dw-reply { display: flex; gap: 10px; padding: 8px 0; }
  .reply-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .reply-input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--white); font-family: var(--font-ar); font-size: 14px; }
  .reply-send { background: var(--white); color: #000; border: 0; border-radius: 999px; padding: 0 18px; font-weight: 700; cursor: pointer; font-family: var(--font-ar); }
  .reply-send:disabled { opacity: .45; cursor: default; }
  .reply-img-btn { width: 34px; height: 34px; border-radius: 50%; background: none; border: 1px solid var(--line); color: var(--mute); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: .15s; padding: 0; }
  .reply-img-btn:hover { color: var(--white); border-color: rgba(255,255,255,.28); }
  .reply-img-prev { display: none; align-items: center; gap: 8px; width: 100%; padding-right: 44px; }
  .reply-img-prev img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
  .reply-img-prev .rip-label { font-size: 12px; color: var(--mute); }
  .reply-img-clear { width: 22px; height: 22px; border-radius: 50%; background: var(--slate); border: none; color: var(--white); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; flex-shrink: 0; }
  /* Avatars: show photo when available */
  .post-ava img, .dw-reply .post-ava img { width:100%; height:100%; border-radius:50%; object-fit:cover; display:block; }
  /* Notifications */
  .nt-dot { position: absolute; top: 3px; inset-inline-start: 17px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 10px; font-weight: 800; font-family: var(--font-en); display: none; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; border: 2px solid var(--black); }
  .nt-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1000; align-items: flex-start; justify-content: center; }
  .nt-panel { background: var(--ink); border: 1px solid var(--line); border-radius: 16px; width: min(560px, 94vw); max-height: 84vh; margin-top: 6vh; overflow: hidden; display: flex; flex-direction: column; }
  .nt-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; }
  .nt-close { background: none; border: 0; color: var(--mute); font-size: 26px; cursor: pointer; line-height: 1; }
  .nt-list { overflow-y: auto; }
  .nt-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .nt-item.nt-unread { background: var(--accent-soft); }
  .nt-glyph { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
  .nt-ava { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
  .nt-body { flex: 1; min-width: 0; }
  .nt-line { font-size: 14px; color: var(--soft); }
  .nt-line b { color: var(--white); }
  .nt-prev { font-size: 13px; color: var(--mute); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nt-time { font-size: 12px; color: var(--mute); margin-top: 3px; font-family: var(--font-en); }
  .nt-empty { padding: 48px 24px; text-align: center; color: var(--mute); font-size: 14px; }

  /* ── Room card in feed ── */
  .room-card-inline {
    border: var(--hair); border-radius: 16px; padding: 16px;
    margin-top: 10px; transition: .2s;
  }
  .room-card-inline:hover { border-color: var(--paper); }
  .rci-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .rci-live { display: flex; align-items: center; gap: 6px; font-family: var(--font-en); font-size: 11px; letter-spacing: 0.15em; color: var(--white); background: var(--char); padding: 4px 10px; border-radius: 999px; }
  .rci-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: blink 1.4s ease-in-out infinite; }
  .rci-title { font-size: 16px; font-weight: 600; }
  .rci-speakers { display: flex; gap: -6px; margin-top: 8px; }
  .rci-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 2px solid var(--black); margin-inline-start: -6px; }
  .rci-ava:first-child { margin-inline-start: 0; }
  .rci-count { color: var(--soft); font-size: 13px; margin-top: 8px; }

  /* ── Right panel ── */
  .dw-right {
    position: sticky; top: 60px; height: calc(100vh - 60px);
    padding: 20px 16px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 24px;
    min-width: 0;
    max-width: 380px;
    justify-self: stretch;
  }
  @media (max-width: 800px) {
    .dw-right {
      display: flex;
      position: static;
      height: auto;
      width: 100%;
      padding: 18px 16px 96px;
      border-top: var(--hair);
    }
  }
  /* ── Who to Follow widget ────────────────────────────────── */
  .wtf-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--line);
  }
  .wtf-item:last-child { border-bottom: none; padding-bottom: 0; }
  .wtf-ava {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: var(--white);
    overflow: hidden; text-decoration: none;
  }
  .wtf-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .wtf-info { flex: 1; min-width: 0; }
  .wtf-name {
    display: block; font-size: 13px; font-weight: 700; color: var(--white);
    text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.light .wtf-name { color: var(--black); }
  .wtf-name:hover { text-decoration: underline; }
  .wtf-handle { font-size: 11px; color: var(--mute); }
  .wtf-follow-btn {
    flex-shrink: 0; background: var(--white); color: var(--black);
    border: none; border-radius: 999px;
    font-size: 12px; font-weight: 700; font-family: inherit;
    padding: 4px 14px; cursor: pointer; transition: opacity .15s;
  }
  .wtf-follow-btn:hover { opacity: .85; }
  .wtf-follow-btn.following {
    background: transparent; color: var(--soft); border: 1px solid var(--line);
  }
  .wtf-mutual { font-size: 11px; color: var(--mute); margin-top: 1px; }

  .rmb-shared { font-size: 11px; color: var(--mute); margin-top: 1px; }

  /* ── @mention autocomplete dropdown ── */
  .mention-drop {
    position: absolute; z-index: 9999;
    background: var(--char); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.55);
    min-width: 210px; max-width: 270px;
    overflow: hidden; display: none;
  }
  .mention-drop.open { display: block; animation: menu-pop .12s ease; }
  .mention-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; cursor: pointer; transition: background .1s;
  }
  .mention-item:hover, .mention-item.active { background: var(--slate); }
  .mention-item-ava {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    overflow: hidden; color: var(--white);
  }
  .mention-item-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .mention-item-info { min-width: 0; }
  .mention-item-name { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.light .mention-item-name { color: var(--black); }
  .mention-item-handle { font-size: 11px; color: var(--mute); }

  .dw-panel { background: var(--char); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
  .dw-panel h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }

  .live-room-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px 0; border-bottom: var(--hair-soft); cursor: pointer; transition: .15s;
  }
  .live-room-card:last-child { border-bottom: none; padding-bottom: 0; }
  .live-room-card:hover .lrc-title { color: var(--white); }
  .lrc-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.15em; color: var(--soft); }
  .lrc-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--white); flex-shrink: 0; animation: blink 1.4s ease-in-out infinite; }
  .lrc-title { font-size: 14px; font-weight: 500; color: var(--paper); transition: .15s; }
  .lrc-meta { color: var(--mute); font-size: 12px; font-family: var(--font-en); }
  .lrc-avas { display: flex; margin-top: 4px; }
  .lrc-av { width: 26px; height: 26px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 2px solid var(--char); margin-inline-start: -6px; }
  .lrc-av:first-child { margin-inline-start: 0; }
  .lrc-av.lrc-more { background: transparent; border-color: var(--line); color: var(--mute); font-family: var(--font-en); font-size: 9px; }

  /* ── Upcoming room cards ── */
  .upcoming-room-card {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 0; border-bottom: var(--hair-soft); cursor: pointer; transition: .15s;
  }
  .upcoming-room-card:last-child { border-bottom: none; padding-bottom: 0; }
  .upcoming-room-card:hover .urc-title { color: var(--white); }
  .urc-icon {
    width: 34px; height: 34px; border-radius: 8px; background: var(--slate);
    display: grid; place-items: center; flex-shrink: 0; color: var(--soft);
  }
  .urc-body { flex: 1; min-width: 0; }
  .urc-title { font-size: 13px; font-weight: 500; color: var(--paper); transition: .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .urc-time { font-size: 11px; color: var(--mute); margin-top: 3px; font-family: var(--font-ar); }
  .urc-recur {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600; color: var(--soft);
    border: 1px solid var(--line); border-radius: 4px;
    padding: 1px 6px; margin-inline-start: 6px; vertical-align: middle;
  }


  /* ── Mobile bottom nav ── */
  .dw-mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(16px);
    border-top: var(--hair);
    padding: 8px 0 env(safe-area-inset-bottom);
    justify-content: space-around;
  }
  body.light .dw-mobile-nav { background: rgba(246,246,246,0.92); }
  @media (max-width: 800px) { .dw-mobile-nav { display: flex; } }
  .mn-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 16px; color: var(--soft); cursor: pointer; transition: .15s; }
  .mn-btn.active, .mn-btn:hover { color: var(--white); }
  body.light .mn-btn.active, body.light .mn-btn:hover { color: var(--black); }
  .mn-btn svg { width: 22px; height: 22px; }
  .mn-btn span { font-size: 10px; }

  @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
  @keyframes speaking { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); } 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255,255,255,0); } }

  /* ═══════════════════════════════════════════════════════════
     Polished micro-interactions (merged from v2 while keeping exact identity)
     ═══════════════════════════════════════════════════════════ */
  @keyframes heartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
  }
  @keyframes repostSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(180deg); }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .post-action {
    transition: color .15s ease, background .15s ease, transform .15s ease;
  }
  .post-action svg {
    transition: transform .15s ease, background .15s ease;
  }
  .post-action.on-like svg {
    animation: heartPop .36s var(--spring, cubic-bezier(.34,1.56,.64,1));
    fill: var(--white);
  }
  .post-action.on-repost svg {
    animation: repostSpin .3s var(--smooth, cubic-bezier(.4,0,.2,1));
  }

  /* Elegant toast system (non-intrusive, matches monochrome identity) */
  .dw-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--char);
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    z-index: 9999;
    opacity: 0;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
  }
  .dw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }
  body.light .dw-toast {
    background: #f4f4f4;
    color: #111;
    border-color: #ddd;
  }

  /* Character counter ring styles */
  #charCounter {
    transition: opacity .15s ease;
  }
  #charRing {
    transition: stroke-dashoffset .1s linear, stroke .15s ease;
  }
  #charCount.warning {
    color: #c9a26f !important;
  }
  #charCount.danger {
    color: #c45c5c !important;
  }

  /* Skeleton styles for feed (high-impact polish) */
  @keyframes skel-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  .post-skel {
    display: flex;
    gap: 18px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255,255,255,.03);
  }
  .post-skel .skel-ava,
  .post-skel .skel-line {
    background: linear-gradient(90deg, var(--slate) 25%, var(--elev) 50%, var(--slate) 75%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s ease-in-out infinite;
  }
  .post-skel .skel-ava {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .post-skel .skel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .post-skel .skel-line {
    height: 14px;
    border-radius: 4px;
  }
  .post-skel .skel-line.short { width: 60%; }
  .post-skel .skel-line.medium { width: 85%; }

  body.light .post-skel .skel-ava,
  body.light .post-skel .skel-line {
    background: linear-gradient(90deg, #E8E8E8 25%, #F0F0F0 50%, #E8E8E8 75%);
    background-size: 200% 100%;
  }

  /* Auth loading overlay — shown while OAuth return resolves (no flash) */
  .auth-loading {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: var(--ink);
    flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  }
  .auth-loading.show { display: flex; }
  .auth-loading__logo { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; }
  .auth-loading__logo svg { width: 100%; height: 100%; display: block; }
  .auth-loading__spinner {
    width: 28px; height: 28px;
    border: 2.5px solid var(--line);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .auth-loading__text { font-size: 15px; color: var(--soft); }

  @media (max-width: 760px) {
    .dw-layout { grid-template-columns: 1fr !important; padding-top: 0; padding-inline: 0; }
    .dw-sidebar, .dw-rooms { display: none; }
    .dw-feed { border: none; max-width: none; justify-self: stretch; }
  }

  /* ── News / Obituary post type badges ── */
  .post-type-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px 3px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    margin-bottom: 7px; border: 1px solid;
  }
  .news-badge { border-color: rgba(255,255,255,.16); color: var(--soft); background: rgba(255,255,255,.06); }
  .obit-badge { border-color: rgba(255,255,255,.09); color: var(--mute); background: rgba(255,255,255,.03); }
  /* Obituary post: slightly reverent, subdued background */
  .dw-post.post-obituary { background: rgba(255,255,255,.008); }
  .dw-post.post-obituary:hover { background: rgba(255,255,255,.022); }
  /* Deceased name — prominent */
  .obit-deceased {
    font-size: 18.5px; font-weight: 800; letter-spacing: -.02em;
    color: var(--white); margin: 5px 0 10px; line-height: 1.25;
  }
  .obit-meta-row {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-bottom: 8px; font-size: 13px; color: var(--mute);
  }
  .obit-meta-item { display: flex; align-items: center; gap: 5px; }
  .obit-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; }
  .obit-dua {
    font-size: 14.5px; color: var(--soft); line-height: 1.75;
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  /* ── News feed section separators ── */
  .news-section-head {
    padding: 14px 26px 9px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.07em;
    color: var(--mute); text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    border-top: 1px solid rgba(255,255,255,.04);
    background: rgba(255,255,255,.012);
    margin-top: 2px;
  }
  .news-section-head::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--soft); flex-shrink: 0;
  }
  .obit-section-head::before { background: var(--mute); }
  /* ── News headline & excerpt ── */
  .news-headline {
    font-size: 17px; font-weight: 800; letter-spacing: -.02em;
    color: var(--white); margin: 5px 0 5px; line-height: 1.3;
  }
  .news-excerpt { font-size: 14px; color: var(--soft); line-height: 1.7; }
  /* ── News image (inline) ── */
  .news-img {
    width: 100%; max-height: 220px; border-radius: 12px;
    object-fit: cover; margin-top: 10px; display: block;
    border: 1px solid var(--line);
  }
  /* ── External source badge ── */
  .source-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 8px 2px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    font-size: 11px; color: var(--soft); font-weight: 600;
  }
  /* ── External read-more link ── */
  .news-ext-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 13px; border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12.5px; color: var(--soft);
    text-decoration: none; margin-top: 10px;
    transition: border-color .15s, color .15s;
  }
  .news-ext-link:hover { border-color: rgba(255,255,255,.3); color: var(--white); }
  .news-ext-link svg { flex-shrink: 0; }
  /* ── External source post: square avatar, distinct coloring ── */
  .post-ava.ext-source-ava {
    border-radius: 10px;            /* square-ish, not a circle */
    font-size: 13px; font-weight: 800;
    background: #1c1c1c !important;
    border: 1.5px solid rgba(255,255,255,.15);
    letter-spacing: -.01em;
  }
  .post-external .post-meta .post-handle { display: none; }
  .ext-handle-label {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 12px; color: var(--mute); font-family: var(--font-ar);
  }
  .ext-handle-label svg { flex-shrink: 0; opacity: .7; }
  /* Slightly inset left-border for external posts (visual cue) */
  .dw-post.post-external::before {
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.12) 28%, rgba(255,255,255,.12) 72%, transparent);
  }

  /* ── Poll compose editor ─────────────────────────────── */
  .compose-tool-btn {
    background: none; border: none; cursor: pointer;
    color: var(--mute); padding: 5px 7px; border-radius: 8px;
    display: grid; place-items: center; transition: color .15s, background .15s;
  }
  .compose-tool-btn:hover { color: var(--white); background: var(--slate); }
  .compose-tool-btn.active { color: var(--white); background: var(--slate); }
  body.light .compose-tool-btn:hover { color: var(--black); }
  body.light .compose-tool-btn.active { color: var(--black); }

  .poll-editor {
    display: none;
    margin: 10px 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    animation: poll-fade-in .18s ease;
  }
  @keyframes poll-fade-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

  .poll-opt-inp {
    display: block; width: 100%; box-sizing: border-box;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 8px; color: var(--white);
    font-family: var(--font-ar); font-size: 14px;
    padding: 8px 12px; margin-bottom: 8px; outline: none;
    transition: border-color .15s;
  }
  .poll-opt-inp:focus { border-color: rgba(255,255,255,.3); }
  body.light .poll-opt-inp { color: var(--black); background: rgba(0,0,0,0.04); }

  .poll-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
  .poll-add-btn {
    background: none; border: 1px solid var(--line); border-radius: 999px;
    color: var(--soft); font-size: 12px; font-family: var(--font-ar);
    padding: 4px 12px; cursor: pointer; transition: .15s;
  }
  .poll-add-btn:hover { color: var(--white); border-color: var(--soft); }
  .poll-add-btn:disabled { opacity: .35; cursor: not-allowed; }

  .poll-dur-sel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; color: var(--soft); font-size: 12px;
    font-family: var(--font-ar); padding: 4px 10px; cursor: pointer; outline: none;
  }

  /* ── Poll widget in feed ─────────────────────────────── */
  .poll-widget { margin-top: 12px; }
  .poll-widget-loading { color: var(--mute); font-size: 13px; padding: 8px 0; }

  .poll-opts-list { display: flex; flex-direction: column; gap: 8px; }
  .poll-opt-btn {
    width: 100%; text-align: start;
    background: transparent; border: 1px solid var(--line);
    border-radius: 8px; color: var(--white);
    font-family: var(--font-ar); font-size: 14px;
    padding: 9px 14px; cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .poll-opt-btn:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
  body.light .poll-opt-btn { color: var(--black); }

  /* Results view (after voting or expired) */
  .poll-results-list { display: flex; flex-direction: column; gap: 6px; }
  .poll-result-row {
    position: relative; border-radius: 8px; overflow: hidden;
    padding: 8px 12px;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 38px;
  }
  .poll-result-row.my-vote { border-color: rgba(255,255,255,.4); }
  .poll-result-bar {
    position: absolute; inset-block: 0; inset-inline-start: 0;
    background: rgba(255,255,255,.1); border-radius: 8px;
    transition: width .5s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
  }
  .poll-result-row.my-vote .poll-result-bar { background: rgba(255,255,255,.18); }
  .poll-result-label {
    position: relative; font-size: 13px; color: var(--white);
    font-family: var(--font-ar); font-weight: 500; flex: 1;
  }
  body.light .poll-result-label { color: var(--black); }
  .poll-result-check { position: relative; font-size: 12px; color: var(--white); margin-inline-start: 4px; }
  .poll-result-pct {
    position: relative; font-size: 12px; font-weight: 700;
    color: var(--soft); font-family: var(--font-en); white-space: nowrap;
  }
  .poll-result-row.my-vote .poll-result-pct { color: var(--white); }

  .poll-meta {
    margin-top: 10px; font-size: 12px; color: var(--mute);
    display: flex; align-items: center; gap: 6px;
  }
  .poll-expired-label { font-size: 11px; color: var(--mute); }

  /* ════════ Wave 1: اقتباس + حضور حي + بحث ════════ */

  /* ── Repost dropdown ── */
  .repost-wrap { position: relative; }
  .repost-menu {
    display: none; position: absolute;
    bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--char); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
    min-width: 148px; z-index: 300;
    box-shadow: 0 6px 24px rgba(0,0,0,.55);
  }
  .repost-menu.open { display: block; animation: menu-pop .14s ease; }
  .repost-menu button {
    width: 100%; text-align: start; background: none; border: none;
    color: var(--white); font-family: var(--font-ar);
    font-size: 13.5px; padding: 11px 16px; cursor: pointer;
    display: flex; align-items: center; gap: 9px;
    transition: background .12s; border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .repost-menu button:last-child { border-bottom: none; }
  body.light .repost-menu button { color: var(--black); }
  .repost-menu button:hover { background: var(--slate); }
  .repost-menu button svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .75; }

  /* ── Quote card embedded in feed ── */
  .quote-card {
    margin-top: 10px; border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 14px;
    cursor: pointer; transition: border-color .15s;
    background: rgba(255,255,255,.018);
  }
  .quote-card:hover { border-color: rgba(255,255,255,.28); }
  .qc-header { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
  .qc-ava { width: 20px; height: 20px; border-radius: 50%; display:grid; place-items:center; font-size:8px; font-weight:700; flex-shrink:0; color:#fff; }
  .qc-name { font-size: 13px; font-weight: 700; color: var(--white); }
  body.light .qc-name { color: var(--black); }
  .qc-handle { font-size: 12px; color: var(--mute); font-family: var(--font-en); }
  .qc-body { font-size: 13.5px; color: var(--soft); line-height: 1.65; word-break: break-word; }
  body.light .qc-body { color: var(--mute); }

  /* ── Link preview card (compact) ── */
  .lp-card {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
    text-decoration: none; color: inherit;
    cursor: pointer; transition: border-color .15s, background .15s;
    overflow: hidden;
  }
  .lp-card:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.032); }
  body.light .lp-card { background: rgba(0,0,0,.03); }
  body.light .lp-card:hover { background: rgba(0,0,0,.055); }
  .lp-thumb {
    flex-shrink: 0; width: 62px; height: 62px;
    border-radius: 8px; overflow: hidden;
    background: var(--slate);
  }
  .lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .lp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .lp-title {
    font-size: 13px; font-weight: 600; color: var(--white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.4;
  }
  body.light .lp-title { color: var(--black); }
  .lp-desc {
    font-size: 12px; color: var(--mute); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .lp-domain {
    font-size: 11px; color: var(--soft);
    font-family: var(--font-en); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* Compose preview strip (shown while typing) */
  .lp-compose-wrap {
    display: none; position: relative; margin-top: 8px;
  }
  .lp-compose-wrap.show { display: block; }
  .lp-compose-dismiss {
    position: absolute; top: 8px; inset-inline-start: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,.6); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); padding: 0; z-index: 2;
  }
  .lp-compose-dismiss svg { pointer-events: none; }
  .lp-compose-loading {
    font-size: 12px; color: var(--mute); padding: 8px 0;
    display: flex; align-items: center; gap: 6px;
  }

  /* ── Quote compose modal ── */
  .quote-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 700;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(10px);
    align-items: flex-start; justify-content: center;
    padding: 40px 16px 20px;
  }
  .quote-modal-overlay.open { display: flex; }
  .quote-modal-card {
    background: var(--ink); border: 1px solid var(--line);
    border-radius: 22px; width: 100%; max-width: 560px;
    display: flex; flex-direction: column; overflow: hidden;
    max-height: calc(100dvh - 60px);
    box-shadow: 0 16px 48px rgba(0,0,0,.7);
  }
  .qm-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
  }
  .qm-title { font-size: 17px; font-weight: 700; }
  .qm-close {
    background: none; border: 0; color: var(--mute); font-size: 26px;
    cursor: pointer; line-height: 1; padding: 0 4px;
    transition: color .15s;
  }
  .qm-close:hover { color: var(--white); }
  .qm-body { padding: 16px 20px; flex: 1; overflow-y: auto; }
  .qm-compose { display: flex; gap: 12px; margin-bottom: 14px; }
  .qm-ava {
    width: 40px; height: 40px; border-radius: 50%; background: var(--slate);
    display:grid; place-items:center; font-weight:700; font-size:14px;
    flex-shrink:0; overflow:hidden;
  }
  .qm-ava img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
  .qm-textarea {
    flex: 1; background: transparent; border: none; outline: none;
    font-size: 17px; font-family: var(--font-ar); color: var(--white);
    resize: none; min-height: 72px; line-height: 1.55;
  }
  body.light .qm-textarea { color: var(--black); }
  .qm-textarea::placeholder { color: var(--mute); }
  .qm-quoted {
    border: 1px solid var(--line); border-radius: 14px;
    padding: 12px 14px; margin-bottom: 4px;
    background: rgba(255,255,255,.02);
  }
  .qm-q-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
  .qm-q-ava { width: 20px; height: 20px; border-radius: 50%; display:grid; place-items:center; font-size:8px; font-weight:700; color:#fff; flex-shrink:0; }
  .qm-q-name { font-size: 13px; font-weight: 700; color: var(--white); }
  body.light .qm-q-name { color: var(--black); }
  .qm-q-handle { font-size: 12px; color: var(--mute); font-family: var(--font-en); }
  .qm-q-body { font-size: 13.5px; color: var(--soft); line-height: 1.65; word-break: break-word; }
  .qm-foot {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 12px 20px; border-top: 1px solid var(--line); gap: 12px;
  }
  .qm-char { font-size: 12px; color: var(--mute); font-family: var(--font-en); }
  .qm-submit-btn {
    padding: 9px 24px; border-radius: 999px; background: var(--accent);
    color: var(--on-accent); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: .18s; border: none; font-family: var(--font-ar);
  }
  .qm-submit-btn:hover { background: var(--accent-strong); }
  .qm-submit-btn:disabled { opacity: .38; cursor: default; }

  /* ── Live friends strip ("رفقانك في ديوان الآن") ── */
  .live-friends-strip {
    display: none; align-items: center;
    padding: 10px 20px; border-bottom: var(--hair);
    background: rgba(255,255,255,.014);
    overflow-x: auto; scrollbar-width: none; gap: 0;
  }
  .live-friends-strip::-webkit-scrollbar { display: none; }
  .live-friends-strip.show { display: flex; }
  .lfs-label {
    font-size: 11.5px; font-weight: 700; color: var(--mute);
    white-space: nowrap; margin-inline-end: 12px; flex-shrink: 0;
    display: flex; align-items: center; gap: 5px;
    letter-spacing: .03em;
  }
  .lfs-label::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--white); animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
  }
  .lfs-card {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 8px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--char);
    cursor: pointer; transition: .15s; flex-shrink: 0;
    margin-inline-end: 8px; text-decoration: none; max-width: 190px;
  }
  .lfs-card:hover { border-color: rgba(255,255,255,.28); background: var(--slate); }
  .lfs-ava {
    width: 24px; height: 24px; border-radius: 50%;
    display:grid; place-items:center; font-size:9px; font-weight:700;
    color:#fff; flex-shrink:0;
  }
  .lfs-ava img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
  .lfs-info { min-width: 0; }
  .lfs-name { font-size: 12px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.light .lfs-name { color: var(--black); }
  .lfs-room { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ── Mobile search button in feed header ── */
  .mobile-search-btn {
    display: none; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    color: var(--soft); text-decoration: none;
    transition: color .15s, background .15s;
    margin-inline-start: auto; margin-inline-end: 4px;
  }
  .mobile-search-btn:hover { color: var(--white); background: var(--char); }
  .mobile-search-btn svg { width: 19px; height: 19px; }
  @media (max-width: 800px) { .mobile-search-btn { display: flex; } }
  /* Push subscribe banner */
  .dw-push-banner { display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--char);border-bottom:var(--hair);font-size:13px; }
  .dw-push-text   { flex:1;color:var(--soft);line-height:1.4; }
  .dw-push-enable { flex-shrink:0;padding:6px 14px;border-radius:999px;background:var(--white);color:var(--black);font-weight:700;font-size:12.5px;border:none;cursor:pointer;font-family:var(--font-ar); }
  .dw-push-enable:hover { opacity:.85; }
  .dw-push-dismiss { flex-shrink:0;background:none;border:none;color:var(--mute);cursor:pointer;font-size:18px;line-height:1;padding:0 4px; }
  body.light .dw-push-enable { background:var(--black);color:var(--white); }
