/* Promptly shared patterns (DESIGN-SYSTEM.md §8.10, §8.12), the classes behind FD.ui.pattern.*
 * (ui/patterns.js). Lane L0, DECK-202. Errors and confirms reuse the Notice and Dialog classes in
 * primitives.css; this file adds only the empty, loading, reconnecting and expiry states.
 */

/* ---- Empty: centred muted 14 px sentence ---- */
.p-empty {
  margin: 0; padding: 48px 0 /* DS §7 / mock value: s-48 */; text-align: center; font-family: var(--p-font);
  font-size: var(--p-fs-body-s); line-height: var(--p-lh-body-s); color: var(--p-muted);
}

/* ---- Loading, first time only: 14 px spinner + one muted 14 px line ---- */
.p-loading {
  display: flex; align-items: center; gap: var(--p-s-10); padding: var(--p-s-16) var(--p-s-4); font-family: var(--p-font);
  font-size: var(--p-fs-body-s); line-height: var(--p-lh-body-s); color: var(--p-muted);
}

/* ---- Reconnecting: the offline notice on one line at the top of the app shell ---- */
.p-reconnecting {
  display: flex; align-items: center; gap: var(--p-s-10); min-height: var(--p-h-btn); padding: var(--p-s-6) var(--p-s-8) var(--p-s-6) var(--p-s-16);
  border-radius: var(--p-r-notice); font-family: var(--p-font); color: var(--p-ink);
  background: color-mix(in oklch, var(--p-warn) var(--p-tint-notice), transparent);
}
.p-reconnecting__text {
  flex: 1; min-width: 0; font-size: var(--p-fs-body-s); line-height: var(--p-lh-body-s);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-reconnecting__title { font-weight: 600; }

/* ---- Expiry fallback (FD.ui.timer draws the full bar once content.js is loaded) ---- */
.p-expiry { display: flex; align-items: baseline; gap: var(--p-s-8); flex-wrap: wrap; font-family: var(--p-font); font-size: var(--p-fs-body-s); }
.p-expiry__label { color: var(--p-muted); }
.p-expiry__time { margin-left: auto; font-family: var(--p-mono); font-size: var(--p-fs-caption); color: var(--p-ink); }
.p-expiry--low .p-expiry__time { color: var(--p-warn); }
.p-expiry--expired .p-expiry__time { color: var(--p-bad); }
.p-expiry__renew { flex-basis: auto; margin-left: auto; }
