/* Little Pulse · going online (cloud.js): the Sign in button, what Saved
   says, the account in the Saved menu, and the sign-in panel.
   Hairlines and fills, no shadows; the pink focus ring is the only ring. */

/* the top bar */
.lp-bar .lpo-in { min-height: 44px; margin-left: 14px; }
.lpo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; display: inline-block; margin-right: 2px; }
.lp-bar .saved { display: inline-flex; align-items: center; gap: 6px; }
.lpo-off { font-style: italic; }

/* the account, in the Saved menu */
.svc-pop .lpo-who { display: grid; gap: 1px; padding: 8px 10px 4px; font-size: 13.5px; color: var(--lp-mid); overflow-wrap: anywhere; }
.svc-pop .lpo-who b { color: var(--lp-ink); font-weight: 700; font-size: 14.5px; }
.svc-pop .it.lpo-soft { color: var(--lp-mid); font-weight: 500; }

/* the panel */
.lpo-veil { position: fixed; inset: 0; z-index: 64; background: rgba(255, 255, 255, .72); }
.lpo-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 65; width: min(420px, 100vw); background: #fff; border-left: 1px solid var(--lp-line2);
  padding: 72px 32px 32px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; }
.lpo-veil[hidden], .lpo-panel[hidden] { display: none; }
.lpo-x { position: absolute; top: 14px; right: 18px; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--lp-mid); }
.lpo-x:hover { background: var(--lp-inset); color: var(--lp-ink); }
.lpo-panel h2 { font-family: var(--fd); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; color: var(--lp-ink); margin: 0 0 6px; }
/* the heading takes focus only so a screen reader starts there; no ring */
.lpo-panel h2:focus, .lpo-panel h2:focus-visible { outline: none; box-shadow: none; }
.lpo-p { font-size: 16px; line-height: 1.5; color: var(--lp-mid); margin: 0; }
.lpo-p b { color: var(--lp-ink); overflow-wrap: anywhere; }
.lpo-g { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: var(--r-pill); background: #fff;
  border: 1px solid var(--lp-line2); font-size: 15px; font-weight: 700; color: var(--lp-ink); }
.lpo-g:hover { background: var(--lp-inset); }
.lpo-g svg { width: 18px; height: 18px; flex: none; }
.lpo-or { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--lp-mut); }
.lpo-or::before, .lpo-or::after { content: ""; flex: 1; border-top: 1px solid var(--lp-line); }
.lpo-form { display: flex; flex-direction: column; gap: 8px; }
.lpo-form label { font-size: 14px; font-weight: 600; color: var(--lp-ink); }
.lpo-form input { min-height: 48px; padding: 0 14px; border-radius: var(--r-m); background: var(--lp-inset); border: 0; font: inherit; font-size: 16px; color: var(--lp-ink); }
.lpo-form input:focus { outline: none; box-shadow: var(--focus); }
.lpo-msg { font-size: 14px; line-height: 1.45; color: var(--lp-ink); font-style: italic; margin: 0; min-height: 0; }
.lpo-msg:empty { display: none; }
.lpo-main { justify-content: center; min-height: 48px; font-size: 15px; }
.lpo-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lpo-lnk { min-height: 44px; padding: 0 2px; font-size: 15px; font-weight: 700; color: var(--pink-deep); background: none; }
.lpo-lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.lpo-lnk:disabled { opacity: .5; }
.lpo-keep { align-self: center; }
.lpo-pts { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.45; color: var(--lp-mid); }
.lpo-pts b { color: var(--lp-ink); }
.lpo-help { font-size: 14px; font-style: italic; color: var(--lp-mid); margin: 0; }

/* copying up, the first time */
.lpo-prog { height: 4px; border-radius: 2px; background: var(--lp-inset); overflow: hidden; }
.lpo-prog i { display: block; height: 100%; background: var(--teal); border-radius: 2px; transform-origin: left center; transition: transform 240ms ease-out; }
.lpo-list { list-style: none; margin: 0; padding: 0; }
.lpo-list li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--lp-line); font-size: 15px; font-weight: 700; color: var(--lp-ink); }
.lpo-list li:last-child { border-bottom: 1px solid var(--lp-line); }
.lpo-list li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpo-up { color: var(--teal-deep); font-size: 14px; }
.lpo-ing { color: var(--lp-mid); font-size: 14px; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .lpo-panel:not([hidden]) { animation: lpo-in 220ms ease-out; }
  .lpo-veil:not([hidden]) { animation: lpo-fade 220ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .lpo-panel:not([hidden]), .lpo-veil:not([hidden]) { animation: lpo-fade 160ms ease-out; }
  .lpo-prog i { transition: none; }
}
@keyframes lpo-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lpo-fade { from { opacity: 0; } to { opacity: 1; } }

/* on a phone: the same box, the whole width */
@media (max-width: 600px) {
  .lpo-panel { width: 100vw; border-left: 0; padding: 72px 20px 24px; }
  .lp-bar .lpo-in { margin-left: 4px; padding: 6px 12px; }
}
/* a narrow phone, signed out: Saved keeps its menu (the arrow), Sign in gets the room */
@media (max-width: 480px) {
  .lp-bar:has(.lpo-in) .saved-s { display: none; }
  .lp-bar:has(.lpo-in) .svc-b { min-width: 44px; padding: 0; justify-content: center; margin-right: 0; }
  .lp-bar .lpo-in { margin-left: 0; padding: 0 6px; min-width: 44px; justify-content: center; }
}
@media (max-width: 900px) {
  .lpo-off.saved-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lpo-off.saved-l + .saved-s { display: inline; font-style: italic; }
}
@media print { .lpo-veil, .lpo-panel, .lpo-in { display: none !important; } }
