/* AppKit 共用元件（岩點貓、紅點貓）：頂端列 .bar、圓形圖示鈕 .icon-btn、膠囊鈕 .btn、右下「＋」.rfab。
   顏色用各 App 的主題變數（--bg、--surface-2、--accent、--text…）；各 App 只在自己的樣式表覆蓋差異（紅點貓的鈕比較高、岩點貓的字標與發光陰影）。
   載入順序：這個檔在 App 自己的樣式表之前。
   English: shared structural styles for the top bar, icon button, pill button and floating action button. */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px;
  padding: calc(10px + var(--safe-t)) 12px 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 次要按鈕一律灰底（圓形／膠囊），主要動作用主色 */
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--text); flex: none; background: none; transition: background-color .12s; }
.icon-btn:active:not(:disabled), .icon-btn:focus-visible { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.icon-btn.danger { color: var(--danger); }
.btn { padding: 12px 18px; border-radius: 999px; background: var(--surface-2); font-weight: 700; display: inline-flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: var(--line); }
.btn.primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.danger { color: var(--danger); }
.btn.danger-fill { background: var(--danger); color: var(--on-danger); }
.btn:disabled, .icon-btn:disabled, .text-btn:disabled { opacity: .35; cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* 列表項目進場、載入中的骨架（兩個 App 共用的動態） */
@keyframes item-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* 「＋」：全 App 一樣 56 px（上方的按鈕 40 px） */
.rfab { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + var(--safe-b)); z-index: 6; width: 56px; height: 56px; pointer-events: none; }
.rfab-btn { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; pointer-events: auto;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px var(--shadow-c, var(--shadow)); transition: transform .12s, scale .12s, background .2s, color .2s; }
.rfab-btn:active { scale: .94; }
.rfab-btn svg { width: 28px; height: 28px; }

/* 兩款 Viewer 共用的帳號選單底部：來源（如有）、隱私、條款、版本。 */
