/* Production cards follow the V4 reference composition, using live journal data. */
.v4-merged-card { --fill: #a8c9d9; --empty: #e4edf1; }
.v4-desire { --fill: #deb4af; --empty: #f0e4e0; }
.v4-create { --fill: #b3d3bf; --empty: #e2ece1; }
.v4-card-heading { min-height: 0; padding: 28px 30px 0; }
.v4-card-heading .card-top { align-items: center; }
.v4-card-heading .timer-icon { background: #ffffffa8; border: 1px solid #ffffffb8; }
.v4-card-heading .card-index { font-size: .59rem; letter-spacing: .18em; }
.v4-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.v4-card-title-row .timer-name { margin: 0; font-size: clamp(2.35rem, 3vw, 2.95rem); line-height: 1.1; }
.v4-state-tag { flex: none; border: 1px solid var(--edge); border-radius: 999px; padding: 6px 10px; background: #ffffff50; color: var(--text); font-size: .69rem; line-height: 1; }
.v4-card-heading .timer-translation { margin-top: 13px; min-height: 18px; font-size: .75rem; }
.v4-merged-card .goal-progress { display: flex; flex-direction: column; padding: 20px 30px 24px; }
.v4-merged-card .goal-progress-body { margin: 6px 0 0; justify-content: center; }
.v4-merged-card .goal-pie { width: clamp(160px, 15vw, 215px); background: var(--empty); box-shadow: 0 0 0 1px #ffffffa8, 0 0 0 8px color-mix(in srgb, var(--fill) 18%, transparent); }
.v4-pie-center { z-index: 1; max-width: 85%; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.v4-pie-center > strong { color: var(--text); font: 400 clamp(2rem, 2.8vw, 3.05rem)/1 Georgia, "Songti SC", serif; letter-spacing: -.04em; white-space: nowrap; }
.v4-pie-center > strong small { font-size: .48em; letter-spacing: 0; }
.v4-pie-center > span { color: var(--text); opacity: .8; font-size: .71rem; white-space: nowrap; }
.v4-merged-card .goal-pie-status { color: #fff; }
.v4-merged-card .goal-progress.is-complete .v4-pie-center,
.v4-merged-card .goal-progress.is-exhausted .v4-pie-center { opacity: 0; }
.v4-merged-card .goal-progress-copy[hidden] { display: none !important; }
.v4-card-reading { min-height: 82px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 30px 0 16px; text-align: center; }
.v4-card-reading > strong { color: var(--text); font: 400 clamp(2.05rem, 2.75vw, 2.95rem)/1 Georgia, "Songti SC", serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v4-card-reading > strong small { font-size: .45em; margin-right: .18em; }
.v4-card-reading > span { color: var(--text); font-size: .72rem; }
.v4-card-details { display: grid; gap: 13px; margin-top: auto; padding-top: 21px; border-top: 1px solid var(--edge); }
.v4-card-details > div { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: .75rem; }
.v4-card-details > div > span { color: var(--text); }
.v4-card-details strong { color: var(--text); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.v4-merged-card .timer-card.v4-card-action { min-height: 62px; padding: 18px 30px; }
.v4-merged-card .timer-action { width: 100%; font-size: .78rem; font-weight: 600; }
.v4-desire .timer-card.v4-card-action:disabled { opacity: 1; cursor: default; }
.v4-merged-card .goal-progress.is-bedtime-locked { filter: none; opacity: 1; }
.v4-merged-card:has(.goal-progress.is-bedtime-locked) .goal-pie { filter: grayscale(1); opacity: .62; }
@media (max-width: 1050px) and (min-width: 761px) {
  .v4-card-heading { padding-inline: 20px; }
  .v4-merged-card .goal-progress { padding-inline: 20px; }
  .v4-merged-card .timer-card.v4-card-action { padding-inline: 20px; }
  .v4-merged-card .goal-pie { width: clamp(130px, 17vw, 175px); }
  .v4-card-title-row { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .v4-card-heading { padding: 22px 23px 0; }
  .v4-card-title-row { margin-top: 18px; }
  .v4-card-title-row .timer-name { font-size: 2.5rem; }
  .v4-merged-card .goal-progress { padding: 18px 23px 22px; }
  .v4-merged-card .goal-pie { width: min(48vw, 180px); }
  .v4-card-reading { margin: 28px 0 14px; }
  .v4-card-reading > strong { font-size: 2.25rem; }
  .v4-card-details { gap: 12px; }
  .v4-merged-card .timer-card.v4-card-action { padding: 17px 23px; }
}
