/* ==========================================================================
   JORIE DAILY — phase449.css · Phase 44.9 (additive only)
   Journal privacy (Today confirmation, Journal month cards), the two monthly
   download controls, the password dialog, and per-activity notes.
   Built only from the existing tokens, so light, dark and Winter Arc follow.
   ========================================================================== */

/* ---------- Today · saved-entry confirmation (replaces the entry's text) --- */
.journal-saved {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 16px;
  min-height: 152px;
  padding: 22px 22px;
  border-radius: var(--jd-radius-inner, var(--radius-md));
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(var(--pink-rgb) / 0.32), transparent 55%),
    var(--surface-sunk);
}
.journal-saved[hidden] { display: none; }
.journal-saved__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--burgundy);
  box-shadow: 0 10px 22px -14px rgb(var(--burgundy-rgb) / 0.8);
}
.journal-saved__icon .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.journal-saved__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.journal-saved__text { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.journal-saved__lock {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.journal-saved__lock .icon { width: 12px; height: 12px; }
.journal-saved.is-in { animation: rise 520ms var(--ease-out) both; }
:root[data-theme="dark"] .journal-saved__icon { color: var(--burgundy); }
@media (max-width: 519px) {
  .journal-saved { grid-template-columns: auto minmax(0, 1fr); padding: 18px; min-height: 0; }
  .journal-saved__lock { grid-column: 2; justify-self: start; }
}

/* ---------- Journal page · month cards ------------------------------------ */
.jdate--static { cursor: default; }
.jdate--static:hover { transform: none; border-color: var(--line-2); }
.jmonth__private {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.jmonth__private .icon { width: 13px; height: 13px; flex: none; }

/* The two monthly downloads: always present, side by side on wider screens. */
.jdl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.jmonth--empty .jdl { margin-top: 14px; }
.jdl__item { display: grid; align-content: start; gap: 8px; min-width: 0; }
.jdl__btn { width: 100%; justify-content: center; gap: 8px; }
.jdl__btn .icon { width: 16px; height: 16px; flex: none; }
.jdl__btn.is-locked,
.jdl__btn:disabled { opacity: 0.62; cursor: not-allowed; box-shadow: none; }
.jdl__btn.is-locked:hover,
.jdl__btn:disabled:hover { transform: none; }
.jdl__note {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.4;
  text-align: center;
  color: var(--ink-3);
}
.jdl__note .icon { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1.5px; }
.jdl__item[data-state="ready"] .jdl__note { color: var(--ink-2); }
@media (max-width: 559px) {
  .jdl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- Journal password dialog --------------------------------------- */
.jx-dialog .sheet__inner { max-width: 440px; }
.jx-sub { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.jx-field { margin-top: 2px; }
.jx-field .password-visibility { display: block; }
.jx-field .input { width: 100%; }
.jx-status { min-height: 1.2em; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.jx-status:empty { display: none; }
.jx-dialog .sheet__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
@media (max-width: 519px) {
  .jx-dialog .sheet__actions .btn { flex: 1 1 100%; }
}

/* ---------- Per-activity notes (same look as the workout notes) ----------- */
.act .anotes {
  margin-top: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--act-a, var(--accent)) 38%, transparent);
}
:root[data-theme="dark"] .act .anotes { background: rgb(var(--pink-rgb) / 0.08); }
.act .anotes.wnotes--empty { margin-top: 8px; padding: 0; background: none; }
.act .anotes .wnotes__head { margin-bottom: 8px; }
.act .anotes.wnotes--empty .wnotes__head { margin-bottom: 0; }
.act .anotes .wnotes__text { font-size: var(--fs-sm); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .journal-saved.is-in { animation: none; }
}
