/* ============================================================
   FEED — Phase 2 of the web feed refresh (2026-09-05)
   ------------------------------------------------------------
   One timeline container with hairline rows, the app's post card one
   for one: 40px avatar · identity line · body · media inset · 30px
   action pills. Loads after home.css and overrides its card-era rules
   for the same class names (.post, .post_header, .text_content, ...),
   which the feature scripts still read as hooks.
   ============================================================ */

/* The list is the container. .saved_list / .org_posts_list / the
   profile tabs render the same rows, so they get the same frame. */
.m_feed,
.org_posts_list,
.prf_tab_content:has(> .fd_row) {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--container);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  box-shadow: var(--light-shadow) 0 2px 14px;
  overflow: clip;
}
.m_feed { margin-top: 14px; }

/* ---- row ---- */
.fd_row { position: relative; background: transparent; border-bottom: 1px solid var(--border-color); border-radius: 0; }
.fd_row:last-child { border-bottom: 0; }
.fd_row_in { display: flex; gap: 12px; padding: 16px 16px 14px; }
.post.fd_row .post_clickable { cursor: pointer; }
.post.fd_row .post_clickable:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.fd_av { flex-shrink: 0; align-self: flex-start; text-decoration: none; }
.fd_avatar, .fd_avatar img, .fd_avatar .prof_img_fallback { width: 40px; height: 40px; }
.fd_avatar .prof_img_fallback { font-size: 15px; }
.fd_body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---- identity line: name · verified · rank · @handle · time · community · ⋮ ---- */
.fd_idl { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; font-size: 13px; color: var(--text-tertiary); line-height: 20px; }
.fd_name { min-width: 0; flex: 0 1 auto; color: var(--text-primary); text-decoration: none; }
.fd_name:hover .fd_nm { text-decoration: underline; }
.fd_nm { display: block; margin: 0; font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd_vf { color: var(--blue); font-size: 15px; line-height: 1; flex-shrink: 0; }
.fd_chip { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #111; white-space: nowrap; flex-shrink: 0; }
.fd_handle, .fd_time, .fd_sep { white-space: nowrap; flex-shrink: 0; color: var(--text-tertiary); line-height: 20px; }
.fd_ctx { color: var(--text-secondary); font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.fd_ctx:hover { text-decoration: underline; }
.fd_tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-secondary); background: var(--elevated-surface); border: 1px solid var(--border-color); white-space: nowrap; flex-shrink: 0; }
.fd_tag i { font-size: 13px; }
.fd_tag_paid { color: var(--text-gold); background: var(--warning-muted); border-color: transparent; }
.fd_opt { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.fd_opt .ico-actn { font-size: 20px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-tertiary); }
.fd_opt .ico-actn:hover { background: var(--surface); color: var(--text-primary); }

/* ---- bodies ---- */
.fd_content { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.fd_txt { padding: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-primary); overflow-wrap: anywhere; }
.fd_txt.text_large p { font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.fd_gist_t { padding: 0; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.fd_gist_b { padding: 0; margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-secondary); -webkit-line-clamp: 3; line-clamp: 3; }
.fd_more { display: inline-block; padding: 0; font-size: 14px; font-weight: 500; color: var(--text-blue); text-decoration: none; }
.fd_more:hover { text-decoration: underline; }
.fd_meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-tertiary); flex-wrap: wrap; min-width: 0; }
.fd_meta i { font-size: 14px; line-height: 1; }
.fd_reposted { margin-top: -4px; }
.fd_reposted i { transform: rotate(0deg); }

/* repost quote */
.fd_quote { display: block; border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; margin: 0; text-decoration: none; color: inherit; background: var(--container); }
.fd_quote:hover { background: var(--surface); }
.fd_quote_h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-tertiary); margin-bottom: 6px; min-width: 0; }
.fd_quote_av, .fd_quote_av img, .fd_quote_av .prof_img_fallback { width: 28px; height: 28px; }
.fd_quote_av .prof_img_fallback { font-size: 12px; }
.fd_quote_nm { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.fd_quote_t { padding: 0; margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.fd_quote_b { padding: 0; margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fd_quote_gone { border-style: dashed; font-size: 13px; }

/* media: inset, rounded, hairline */
.fd_media { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); background: var(--elevated-surface); }

/* ---- action pills (the app's _ActionTile: 30px capsule, 17px icon, 12.5/600) ---- */
.fd_acts { padding: 0; }
.fd_pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd_pills .b_btn, .fd_pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 20px;
  background: var(--elevated-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary-intermediate);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.fd_pill i, .fd_pills .b_btn i { font-size: 17px; line-height: 1; color: inherit; display: inline-block; vertical-align: middle; }
.fd_pill .p_acn_count, .fd_pills .b_btn .p_acn_count { background: transparent; padding: 0; margin: 0; border-radius: 0; font-size: 12.5px; font-weight: 600; color: inherit; line-height: 1; }
.fd_pill .p_acn_count[hidden] { display: none; }
.fd_pill:hover { color: var(--text-primary); border-color: var(--border-highlight); }
.fd_pill.liked, .fd_pill_split.liked { color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.fd_pill.liked i, .fd_pill.liked .p_acn_nme, .fd_pill.liked .p_acn_count { color: var(--red); background: transparent; }
.fd_pill.on, .fd_pill_split.downvoted { color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); border-color: color-mix(in srgb, var(--blue) 30%, transparent); }
/* gist like/downvote: one capsule, a hairline between the two directions */
.fd_pill_split { padding: 0; gap: 0; overflow: hidden; }
.fd_pills .fd_pill_split .fd_half { flex: none; height: 30px; padding: 0 11px; border: 0; border-radius: 0; background: transparent; color: inherit; }
.fd_pills .fd_pill_split .fd_half + .fd_half { border-left: 1px solid var(--border-highlight); padding: 0 10px; }
.fd_pill_split.liked .downvote_btn, .fd_pill_split.downvoted .like_btn { color: var(--text-secondary-intermediate); }
.fd_pill_split.liked .like_btn, .fd_pill_split.liked .like_btn i, .fd_pill_split.liked .like_btn .p_acn_count { color: var(--red); background: transparent; }
.fd_pill_split.downvoted .downvote_btn { color: var(--blue); opacity: 1; }
.fd_pill_repost i { transform: rotate(90deg) scaleX(1); }
.sr_only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- poll row ---- */
.fd_poll_q { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--text-primary); text-decoration: none; }
.fd_poll_q:hover { text-decoration: underline; }
.fd_ballot { display: flex; flex-direction: column; gap: 8px; }
.fd_opt { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--border-color); overflow: hidden; font-size: 14px; font-weight: 500; color: var(--text-primary); text-decoration: none; }
.fd_opt:hover { border-color: var(--border-highlight); }
.fd_opt_bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--pct, 0%); background: var(--elevated-highlight); }
.fd_opt.lead { border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.fd_opt.lead .fd_opt_bar { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.fd_opt_lab, .fd_opt_pct { position: relative; }
.fd_opt_lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd_opt.mine .fd_opt_lab::after { content: "✓"; margin-left: 8px; color: var(--blue); font-weight: 700; }
.fd_opt_pct { font-size: 13px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; margin-left: 10px; }
.fd_poll_meta .fd_poll_open { margin-left: auto; color: var(--text-blue); text-decoration: none; font-weight: 500; }
.fd_poll_meta .fd_poll_open:hover { text-decoration: underline; }

/* ---- event row ---- */
.fd_evt { display: block; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; background: var(--container); }
.fd_evt:hover { background: var(--surface); }
.fd_evt_ban { position: relative; aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--elevated) 0%, var(--elevated-surface) 100%); }
.fd_evt_ban img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd_evt_info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.fd_evt_t { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.fd_evt_fr { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border-color); }
.fd_free { font-size: 13px; font-weight: 700; color: var(--green); }
.fd_price { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* ---- empty state ---- */
.fd_empty { padding: 44px 24px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.fd_empty_t { font-size: 17px; font-weight: 700; }
.fd_empty_s { font-size: 14px; color: var(--text-secondary); max-width: 360px; }
.fd_empty_btn { margin-top: 8px; height: 36px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--blue); color: var(--text-primary-inverted); }

/* ---- stories tray ---- */
.story_tray { padding: 14px 16px 12px; margin-bottom: 14px; border: 1px solid var(--dark-border); box-shadow: var(--light-shadow) 0 2px 14px; }
.story_tray_scroll { gap: 18px; }
.story_tray_item { width: 64px; }
.story_tray_ring { width: 60px; height: 60px; padding: 2px; }
.story_tray_ring_unseen { background: var(--text-primary); }
.story_tray_ring_seen { background: var(--elevated); }
.story_tray_avatar { width: 56px; height: 56px; border: 2px solid var(--container); box-sizing: border-box; }
.story_tray_name { font-size: 11.5px; color: var(--text-secondary); max-width: 64px; }

/* ---- composer placeholder ---- */
.n_pldr_post_widget { padding: 14px 16px 12px; }
.n_pldr_post_widget .prof_img, .n_pldr_post_widget .prof_img img, .n_pldr_post_widget .prof_img .prof_img_fallback { width: 40px; height: 40px; }
.pldr_post_txt { height: 44px; margin-left: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-color); font-size: 15px; }
.pldr_post_txt:empty::before { line-height: 42px; padding-left: 14px; }
.pldr_opt_row { padding-top: 12px; align-items: center; }
.pldr_tools { gap: 4px; }
.pldr_opt_row .pldr_tool { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; margin: 0; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.pldr_opt_row .pldr_tool:hover { background: var(--surface); color: var(--text-primary) !important; }
.pldr_opt_row .pldr_tool .btn_icon { font-size: 18px; top: 0; line-height: 0; }
.pldr_opt_row .pldr_post_btn { display: inline-flex; align-items: center; height: 34px; min-width: 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--elevated-surface); color: var(--text-tertiary); font-size: 14px; font-weight: 600; cursor: default; }

/* ============================================================
   POLLS TRACK — P.5 inline ballot in the feed row (2026-09-05)
   ============================================================ */
.fd_hint { font-size: 12.5px; color: var(--text-tertiary); margin: 2px 0 -4px; }
button.fd_opt_btn { width: 100%; justify-content: flex-start; gap: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
button.fd_opt_btn:hover { background: var(--surface); }
button.fd_opt_btn.sel { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, transparent); }
button.fd_opt_btn:disabled { cursor: default; opacity: .7; }
.fd_opt_radio, .fd_opt_check { width: 18px; height: 18px; border: 2px solid var(--border-highlight); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.fd_opt_radio { border-radius: 50%; } .fd_opt_check { border-radius: 5px; }
.fd_opt_btn.sel .fd_opt_radio { border-color: var(--blue); } .fd_opt_btn.sel .fd_opt_radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.fd_opt_btn.sel .fd_opt_check { border-color: var(--blue); background: var(--blue); } .fd_opt_btn.sel .fd_opt_check::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.fd_vote_bar { display: flex; justify-content: flex-end; padding-top: 2px; }
.fd_vote_btn { height: 32px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--blue); color: var(--text-primary-inverted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fd_vote_btn:disabled { background: var(--elevated-surface); color: var(--text-tertiary); cursor: default; }
.fd_err { font-size: 12.5px; color: var(--text-error); }
.fd_row_poll.busy .fd_ballot { opacity: .6; pointer-events: none; }
.fd_ballot [hidden] { display: none !important; }
@keyframes fd_row_fresh_in { from { background: color-mix(in srgb, var(--blue) 10%, transparent); } to { background: transparent; } }
.fd_row_fresh { animation: fd_row_fresh_in 1.2s ease-out; }
