/* 列表底部「加载更多」（views/load-more.js 的 LoadMore）+ 握手重试提示（HelloRetry）。
   计划页、对话列表、远程页、左上角主机切换共用；公用件（.btn / .tip / .muted）在 style.css 里。 */

/* ───────── 加载更多 ───────── */

.lm { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px 4px; text-align: center; }
.lm-btn { min-width: 180px; justify-content: center; }
.lm-end { padding: 14px 8px 6px; }
.lm-row { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lm-loading { display: grid; gap: 10px; padding: 10px 0 4px; }
.lm-skel { display: grid; gap: 8px; }
.lm-skel i { display: block; height: 44px; border-radius: 10px; background: var(--panel-2); animation: lm-breathe 1.6s ease-in-out infinite; }
.lm-skel i:nth-child(2) { width: 82%; animation-delay: .2s; }
@keyframes lm-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.lm-spin { display: inline-block; flex: none; width: 13px; height: 13px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: lm-spin .8s linear infinite; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* 对话列表（.pane-list .list）里：贴着列表，不要卡片外的大空白 */
.pane-list .lm { padding: 10px 12px 14px; }
.pane-list .lm-loading { padding: 8px 12px 12px; }
.pane-list .lm-skel i { height: 52px; }

/* 计划页「已结束」那一栏：和计划卡同宽 */
.pl-more { margin: 4px 0 16px; }
.pl-more .lm { padding-top: 4px; }

/* ───────── 握手重试中 ───────── */

.hello-retry { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; margin-top: 10px;
  border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 13.5px; }
.hello-retry .lm-spin { color: var(--warn); }
.hello-retry .btn { flex: none; }
.tip .hello-retry { margin-top: 8px; background: transparent; border: 0; padding: 0; }
/* 主机切换下拉里那一条：窄、贴着菜单 */
.dropdown .hello-retry.compact { margin: 0 0 6px; padding: 8px 10px; }
.dropdown .hello-retry .btn { padding: 5px 10px; border-radius: 8px; background: var(--panel); }
.hostbtn .hs-retry { flex: none; font-size: 12px; color: var(--warn); white-space: nowrap; }

@media (max-width: 600px) {
  .lm-btn { width: 100%; min-height: 40px; }
  .hello-retry { flex-wrap: wrap; }
  .hello-retry .btn { min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .lm-skel i, .lm-spin { animation: none; }
}
