/* save-progress.css - C143 "Save your progress": the soft card, the "Not saved" pill, the sheet's "What gets saved" box.
   Only drawn where accounts exist (js/save-progress.js). Remove this line from index.html and the JS still works unstyled. */

/* ------------------------------------------------------------ soft card (non-modal, above the bottom tabs) */
.sp-card {
  position: fixed; z-index: 60;
  left: 12px; right: 12px; bottom: calc(var(--nav-h, 66px) + var(--safe-b, 0px) + 12px);
  max-width: 440px; margin: 0 auto;
  background: var(--surface, #161D30); color: var(--text, #F4EFE4);
  border: 1px solid var(--border-strong, rgba(244, 239, 228, .15)); border-radius: 18px;
  box-shadow: var(--shadow-3, 0 26px 70px rgba(0, 0, 0, .62));
  padding: 16px 16px 14px; font-family: var(--font, system-ui, sans-serif);
  opacity: 0; transform: translateY(16px); transition: opacity .2s ease, transform .22s ease;
  max-height: calc(100vh - var(--nav-h, 66px) - 40px); overflow-y: auto;
}
.sp-card.on { opacity: 1; transform: none; }
html[data-motion="off"] .sp-card { transition: none; }
@media (min-width: 900px) { .sp-card { left: auto; right: 24px; bottom: 24px; width: 380px; margin: 0; } }

.sp-x {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: transparent; color: var(--text-3, #8F98AE); font-size: 22px; line-height: 34px; cursor: pointer;
}
.sp-x:hover { background: var(--surface-2, #1F2840); color: var(--text, #F4EFE4); }
.sp-top { display: flex; align-items: center; gap: 10px; margin: 0 34px 6px 0; }
.sp-ico {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft, rgba(245, 184, 61, .16)); color: var(--accent, #F5B83D);
}
.sp-ico svg { width: 22px; height: 22px; }
.sp-h { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.sp-sub { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: var(--text-2, #B9BFCF); }

.sp-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips li {
  font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2, #1F2840); color: var(--text, #F4EFE4); border: 1px solid var(--border, rgba(244, 239, 228, .08));
}
.sp-why { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.35; color: var(--text-2, #B9BFCF); }
.sp-why li { display: flex; gap: 8px; align-items: flex-start; }
.sp-why svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; color: var(--good, #4CC38A); }

.sp-btns { display: flex; gap: 8px; }
.sp-btn {
  flex: 1 1 auto; min-height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 15px; padding: 0 14px;
  background: var(--accent, #F5B83D); color: var(--accent-ink, #1A1406);
}
.sp-btn.sp-alt {
  flex: 0 0 auto; background: transparent; color: var(--text-2, #B9BFCF);
  border: 1px solid var(--border-strong, rgba(244, 239, 228, .15));
}
.sp-btn:focus-visible, .sp-x:focus-visible, .sp-pill:focus-visible { outline: 2px solid var(--accent, #F5B83D); outline-offset: 2px; }

/* ------------------------------------------------------------ "Not saved" pill (header on phones, side rail on desktop) */
.sp-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  height: 34px; padding: 0 11px 0 9px; border-radius: 999px; cursor: pointer;
  border: 1px dashed color-mix(in srgb, var(--warn, #F2B134) 70%, transparent);
  background: color-mix(in srgb, var(--warn, #F2B134) 12%, transparent);
  color: var(--text, #F4EFE4); font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.sp-pill svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--warn, #F2B134); }
.sp-pill:hover { background: color-mix(in srgb, var(--warn, #F2B134) 20%, transparent); }
.sp-pill-rail { width: 100%; justify-content: flex-start; height: 40px; padding: 0 14px; font-size: 14px; }
/* phones: the header is busy, so the pill is "Save", then only the crossed-out cloud (its aria-label says the rest) */
@media (max-width: 560px) { .sp-pill-top .sp-pill-long { display: none; } .sp-pill-top { padding: 0 9px 0 7px; } }
@media (max-width: 440px) { .sp-pill-top .sp-pill-t { display: none; } .sp-pill-top { width: 34px; padding: 0; justify-content: center; } }

/* ------------------------------------------------------------ the sign-in sheet: "What gets saved" */
.sp-lead { margin: -4px 0 14px; padding: 10px 12px 4px; border-radius: 12px; background: var(--surface-2, #1F2840); }
.sp-lead-k { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3, #8F98AE); }
.sp-lead .sp-chips { margin-bottom: 6px; }
.sp-lead .sp-chips li { background: var(--surface, #161D30); }
