/* Reserve no permanent space. The refresh hint floats inside the reading area. */
html.has-pull-refresh,
.has-pull-refresh body { overscroll-behavior-y: none; }
.pull-refresh {
 position: fixed;
 z-index: 100;
 display: flex;
 align-items: center;
 gap: 9px;
 width: max-content;
 max-width: calc(100vw - 32px);
 padding: 11px 16px;
 border: 1px solid #a38af650;
 border-radius: 999px;
 background: #20202e;
 color: #e7e0ff;
 box-shadow: 0 5px 22px #0003;
 font-size: 13px;
 font-weight: 500;
 line-height: 1.5;
 pointer-events: none;
 transform: translate(-50%, var(--pull-distance, 44px));
}
.pull-refresh[hidden] { display: none; }
.pull-refresh svg { width: 20px; height: 20px; flex: none; color: #b9a4ff; }
.pull-refresh[data-state="ready"] svg { transform: rotate(180deg); }
.pull-refresh[data-state="loading"] svg { animation: pull-refresh-spin .85s linear infinite; }
.pull-refresh[data-state="message"] svg { display: none; }
:root[data-theme="light"] .pull-refresh { background: #fff; color: #5d458e; border-color: #a38af670; box-shadow: 0 5px 22px #35245215; }
:root[data-theme="light"] .pull-refresh svg { color: #7859bb; }
@keyframes pull-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pull-refresh[data-state="loading"] svg { animation: none; } }
@media (forced-colors: active) { .pull-refresh { background: Canvas; color: CanvasText; border-color: CanvasText; } .pull-refresh svg { color: CanvasText; } }
