/* Four pixels lift the 48px control to the centre of the 56px Ask bubble. */
.reader.one .report-filter-button { position: fixed; z-index: 35; left: max(16px, calc(50% - 224px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); min-width: 48px; height: 48px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow-float, 0 4px 14px rgba(17,18,20,.16)); font: 500 14px/20px Manrope, sans-serif; }
.report-filter-button .ic { width: 24px; height: 24px; }
.report-filter-button b { display: grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 4px; border-radius: 999px; background: var(--color-ember, #B44744); color: #fff; font-size: 12px; }
html.watching .report-filter-button, html:has(#sheet:not([hidden])) .report-filter-button, .reader.opening .report-filter-button { visibility: hidden; }
.rf-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 18px 0; }
.rf-pill, .rf-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; border-radius: 999px; padding: 8px 12px; background: var(--fill); color: var(--ink); font: 500 14px/20px Manrope, sans-serif; }
.rf-pill { background: var(--panel); border: 1px solid var(--rule); }
.rf-pill span[aria-hidden] { font-size: 20px; }
.rf-chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.rf-chip .pfp, .rf-chip .face { width: 26px; height: 26px; flex: none; font-size: 10px; }
.rf-chip bdi { overflow-wrap: anywhere; }
.rf-clear { min-height: 44px; padding: 8px; color: var(--text2); background: transparent; text-decoration: underline; font: 500 14px/20px Manrope, sans-serif; }
.rf-empty { padding: 0 18px; color: var(--text2); }
#sheet[data-name="report-filter"], #sheet[data-name="report-filter"].open { background: var(--panel); color: var(--ink); max-height: 88dvh; }
.rf-sheet { font-family: Manrope, sans-serif; }
.rf-sheet fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.rf-sheet legend { font-size: 14px; color: var(--text2); margin-bottom: 8px; }
.rf-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-sheet p { margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--text2); }
.rf-actions { display: flex; align-items: center; gap: 16px; position: sticky; bottom: 0; background: var(--panel); padding: 12px 0 0; }
/* The filter's Show action is the shared Gradient edge (titanium.css section 4, owner 24 Oct 2026); these lines only size it. */
.rf-actions .ti-primary { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; border-radius: 999px; padding: 0 18px 0 20px; position: relative; isolation: isolate; border: 0; background: var(--ti-btn-surface, var(--panel, #fff)); color: var(--ti-btn-ink, var(--text, #1D1D1F)); font: 500 16px/22px Manrope, sans-serif; }
.rf-actions .ti-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none; background: var(--ti-btn-edge, linear-gradient(in oklab 112deg, #C65A64 0%, #E38B7D 34%, #F0B69C 70%, #F3D4AE 100%)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.rf-actions .ti-primary-arrow { width: 22px; height: 22px; flex: none; position: relative; display: grid; place-items: center; border-radius: 0; background: none; color: var(--ti-btn-arrow-ink, #B44744); }
.rf-actions .ti-primary-arrow::after { display: none; }  /* this arrow is the icon inside it */
.rf-actions .ti-primary-arrow svg { width: 22px; height: 22px; }
.rf-actions .ti-primary:active { background: var(--ti-btn-surface-press, #FAEFED); }
.rf-actions .ti-primary:active .ti-primary-arrow { transform: translateX(3px); }
.report-filter-button:focus-visible, .rf-pill:focus-visible, .rf-chip:focus-visible, .rf-clear:focus-visible, .rf-actions .ti-primary:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
@media (min-width: 980px) {
  .reader.one .report-filter-button { left: calc(var(--rail) + max(16px, (100% - var(--rail)) / 2 - 224px)); }
  #sheet[data-name="report-filter"], #sheet[data-name="report-filter"].open { left: 50%; right: auto; top: 50%; bottom: auto; width: min(440px, calc(100% - 32px)); max-height: 80dvh; border-radius: 24px; transform: translate(-50%, -45%); }
  #sheet[data-name="report-filter"].open { transform: translate(-50%, -50%); }
}
/* On a wide screen Ask sits in the corner beside the reading column; the filter stands right above it, in the same gutter,
   so neither covers a card. */
@media (min-width: 1024px) {
  .reader.one .report-filter-button { left: auto; right: 36px; bottom: 104px; width: 48px; padding: 0; }
  /* It stays round here, with the count as a dot on its corner, so it never reaches the cards. */
  .reader.one .report-filter-button > span { display: none; }
  .reader.one .report-filter-button > b { position: absolute; top: -4px; right: -4px; }
  .rf-pills { padding-inline: 0; }
}
