/* ============ CARE TIMES PAGE ============
   Builds on styles.css (tokens, gate, nav, modals, hearts). */

.times-page { --ring-size: 176px; --ring-len: 414.7; }
.gate.instant { transition: none; }

/* ---- Nav ---- */
.times-nav {
  gap: 0.9rem;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem 0.85rem 0.42rem 0.55rem;
  border-radius: 999px;
  background: rgba(217, 108, 138, 0.08);
  border: 1px solid rgba(217, 108, 138, 0.14);
  color: var(--rose);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.4s var(--ease-fluid), transform 0.4s var(--ease-spring);
}
.nav-back:hover { background: var(--rose-mist); transform: translateX(-2px); }
.nav-back svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-tag svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Hero ---- */
.t-hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 7.2rem 1.2rem 2.4rem;
  text-align: center;
}
.t-title {
  margin-top: 1.1rem;
  font-size: clamp(2.3rem, 9.5vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.t-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--rose), var(--rose-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.t-sub {
  margin: 1.1rem auto 0;
  max-width: 520px;
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.85;
}

.today-shell {
  max-width: 520px;
  margin: 2.2rem auto 0;
  background: rgba(217, 108, 138, 0.06);
  border: 1px solid rgba(217, 108, 138, 0.12);
  border-radius: 1.7rem;
  padding: 0.4rem;
}
.today-card {
  background: linear-gradient(180deg, #FFFDFB, #FDF6F2);
  border-radius: 1.3rem;
  padding: 1.1rem 1.25rem 1.15rem;
  box-shadow: var(--shadow-ambient), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  text-align: left;
  transition: background 0.6s var(--ease-fluid), border-color 0.6s var(--ease-fluid);
}
.today-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}
.today-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rose);
  animation: today-pulse 2.2s var(--ease-fluid) infinite;
}
@keyframes today-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 108, 138, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(217, 108, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 108, 138, 0); }
}
.today-line {
  margin-top: 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.today-ar {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: right;
}
.today-ar:empty { display: none; }
.today-card[data-state="due"] {
  background: linear-gradient(180deg, #FFF7F9, #FDEDF1);
}
.today-shell:has(.today-card[data-state="due"]) {
  border-color: rgba(217, 108, 138, 0.3);
  background: rgba(217, 108, 138, 0.1);
}

/* ---- Medicine cards ---- */
.t-main { position: relative; z-index: 1; }
.meds {
  display: grid;
  gap: 1.3rem;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem 1.2rem 3rem;
}
.med-shell {
  background: rgba(217, 108, 138, 0.06);
  border: 1px solid rgba(217, 108, 138, 0.12);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  transition: transform 0.7s var(--ease-fluid), border-color 0.6s var(--ease-fluid), background 0.6s var(--ease-fluid);
}
.med-shell[data-state="today"],
.med-shell[data-state="overdue"] {
  background: rgba(217, 108, 138, 0.11);
  border-color: rgba(217, 108, 138, 0.28);
}
.med-card {
  background: linear-gradient(180deg, #FFFDFB, #FDF6F2);
  border-radius: calc(var(--radius-xl) - 0.5rem);
  padding: 1.5rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-ambient), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  text-align: center;
}
.med-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}
.med-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--rose-mist);
  color: var(--rose);
  display: grid;
  place-items: center;
}
.med-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.med-name { flex: 1; min-width: 0; }
.med-name h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}
.med-rhythm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.med-rhythm svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.med-state-chip {
  flex-shrink: 0;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(217, 108, 138, 0.08);
  border: 1px solid rgba(217, 108, 138, 0.18);
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.5s var(--ease-fluid), color 0.5s var(--ease-fluid);
}
.med-shell[data-state="today"] .med-state-chip {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  animation: chip-glow 2s var(--ease-fluid) infinite;
}
.med-shell[data-state="overdue"] .med-state-chip {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--maroon-paper);
}
.med-shell[data-state="unset"] .med-state-chip,
.med-shell[data-state="loading"] .med-state-chip {
  background: rgba(122, 97, 105, 0.08);
  border-color: rgba(122, 97, 105, 0.2);
  color: var(--ink-soft);
}
@keyframes chip-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 108, 138, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(217, 108, 138, 0); }
}

/* Ring */
.med-ring-wrap {
  position: relative;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 1.5rem auto 0;
}
.med-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.ring-track {
  fill: none;
  stroke: rgba(217, 108, 138, 0.13);
  stroke-width: 10;
  transition: stroke-dasharray 0.5s var(--ease-fluid);
}
.ring-progress {
  fill: none;
  stroke: url(#ring-gradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--ring-len);
  stroke-dashoffset: var(--ring-len);
  transition: stroke-dashoffset 1.6s var(--ease-fluid), opacity 0.5s var(--ease-fluid);
}
.med-shell[data-state="unset"] .ring-track,
.med-shell[data-state="loading"] .ring-track { stroke-dasharray: 2 9; }
.med-shell[data-state="unset"] .ring-progress,
.med-shell[data-state="loading"] .ring-progress { opacity: 0; }
.med-shell[data-state="today"] .ring-progress,
.med-shell[data-state="overdue"] .ring-progress {
  filter: drop-shadow(0 0 9px rgba(217, 108, 138, 0.55));
}
.med-shell[data-state="overdue"] .ring-progress { stroke: var(--maroon-soft); }
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem;
}
.ring-num {
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease-fluid);
}
.ring-num.is-word {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--rose);
}
.med-shell[data-state="overdue"] .ring-num { color: var(--maroon); }
.med-shell[data-state="unset"] .ring-num { color: var(--ink-soft); }
.ring-label {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}

.med-msg {
  margin: 1.1rem auto 0;
  max-width: 340px;
  min-height: 1.9em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
  text-align: center;
}
.med-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.med-dates div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 108, 138, 0.12);
  border-radius: 1rem;
  padding: 0.7rem 0.6rem;
}
.med-dates dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.med-dates dd {
  margin-top: 0.22rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.med-dates div:last-child dd { color: var(--rose); }

.med-take {
  width: 100%;
  min-height: 3.4rem;
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 20px 48px -16px rgba(61, 44, 51, 0.4);
  transition: transform 0.6s var(--ease-fluid), box-shadow 0.6s var(--ease-fluid), background 0.6s var(--ease-fluid), opacity 0.3s;
}
.med-take:hover { transform: translateY(-2px); box-shadow: 0 26px 56px -18px rgba(61, 44, 51, 0.5); }
.med-take:active { transform: scale(0.98); }
.med-take:disabled { opacity: 0.55; cursor: progress; transform: none; }
.med-take:focus-visible { outline: 3px solid rgba(217, 108, 138, 0.35); outline-offset: 3px; }
.med-take .cta-icon { transition: transform 0.6s var(--ease-spring), background 0.6s var(--ease-fluid); }
.med-take:hover .cta-icon { transform: scale(1.12) rotate(-8deg); }
.med-shell[data-state="today"] .med-take,
.med-shell[data-state="overdue"] .med-take {
  background: linear-gradient(145deg, var(--rose), var(--rose-soft));
  color: #fff;
  box-shadow: 0 20px 48px -14px rgba(217, 108, 138, 0.6);
}
.med-shell[data-state="today"] .med-take .cta-icon,
.med-shell[data-state="overdue"] .med-take .cta-icon { background: rgba(255, 255, 255, 0.22); }

.med-undo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 108, 138, 0.22);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease-fluid), color 0.3s var(--ease-fluid), transform 0.35s var(--ease-spring);
}
.med-undo:hover { background: var(--rose-mist); color: var(--rose); }
.med-undo:active { transform: scale(0.96); }
.med-undo.is-armed {
  background: var(--rose-mist);
  color: var(--rose);
  border-color: rgba(217, 108, 138, 0.45);
}
.med-undo[hidden] { display: none; }
.med-undo svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.med-note {
  margin-top: 1.3rem;
  padding: 0.95rem 1.05rem;
  border-radius: 1.1rem;
  background: var(--rose-mist);
  text-align: right;
}
.med-note-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rose);
}
.med-note-kicker svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
  stroke: none;
}
.med-note p {
  margin-top: 0.3rem;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.95;
  color: var(--ink);
}

.med-diary { margin-top: 1rem; text-align: left; }
.med-diary summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(217, 108, 138, 0.14);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.3s var(--ease-fluid);
}
.med-diary summary:hover { background: #fff; }
.med-diary summary::-webkit-details-marker { display: none; }
.med-diary summary svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.med-diary summary em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
}
.med-diary ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0 0.2rem;
  display: grid;
  gap: 0.25rem;
}
.med-diary li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink);
  animation: diary-in 0.5s var(--ease-fluid) both;
}
.med-diary li:nth-child(2) { animation-delay: 0.05s; }
.med-diary li:nth-child(3) { animation-delay: 0.1s; }
.med-diary li:nth-child(4) { animation-delay: 0.15s; }
@keyframes diary-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.med-diary li svg {
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  fill: var(--rose);
  stroke: none;
}
.med-diary li.is-seed svg { fill: var(--rose-soft); }
.med-diary li .diary-when {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}
.med-diary li.is-empty { color: var(--ink-soft); font-weight: 300; }

/* ---- Reminders ---- */
.remind {
  padding: 3rem 1.2rem 4rem;
  text-align: center;
}
.remind .section-head { margin-bottom: 1.8rem; }
.remind-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.remind-btn { margin-top: 0; }
.remind-hint {
  max-width: 320px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---- Strength ---- */
.strength {
  padding: 3rem 1.2rem 5rem;
  text-align: center;
}
.strength .section-title { margin-top: 1.1rem; }
.strength .heart-btn { margin-top: 2.4rem; }
.strength .love-message {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

/* ---- Footer ---- */
.t-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.2rem 3.4rem;
  border-top: 1px solid rgba(217, 108, 138, 0.1);
}
.t-footer-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 108, 138, 0.26);
  background: rgba(217, 108, 138, 0.05);
  color: var(--rose);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.3s var(--ease-fluid), transform 0.35s var(--ease-spring);
}
.t-footer-home:hover { background: var(--rose-mist); transform: translateY(-1px); }
.t-footer-home svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- "I took it" sheet ---- */
.take-card { padding: 1.6rem 1.4rem 1.5rem; }
.take-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.take-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}
.take-head h3 {
  margin-top: 0.2rem;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.35;
}
.take-sub {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.take-dates {
  display: flex;
  gap: 0.5rem;
  margin: 1rem -1.4rem 0;
  padding: 0.3rem 1.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.take-dates::-webkit-scrollbar { display: none; }
.date-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 4.7rem;
  min-height: 3.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(217, 108, 138, 0.18);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
  align-content: center;
  text-align: center;
  transition: transform 0.35s var(--ease-spring), background 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
}
.date-chip strong { font-size: 0.86rem; font-weight: 700; }
.date-chip span { font-size: 0.74rem; color: var(--ink-soft); }
.date-chip:hover { transform: translateY(-2px); }
.date-chip[aria-checked="true"] {
  background: linear-gradient(145deg, var(--rose), var(--rose-soft));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(217, 108, 138, 0.65);
}
.date-chip[aria-checked="true"] span { color: rgba(255, 255, 255, 0.85); }
.date-chip:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.take-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.take-yes {
  flex: 1;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.2rem;
}
.take-yes:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---- Celebration ---- */
.taken-msg {
  margin-top: 0.7rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.95;
  color: var(--ink);
}
.taken-next {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(217, 108, 138, 0.08);
  border: 1px solid rgba(217, 108, 138, 0.18);
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 600;
}
.taken-next:empty { display: none; }

/* ---- Calendar options ---- */
.cal-sub {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.cal-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.55rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(217, 108, 138, 0.16);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.3s var(--ease-fluid), transform 0.35s var(--ease-spring), box-shadow 0.3s var(--ease-fluid);
}
.cal-option:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(61, 44, 51, 0.25);
}
.cal-option:active { transform: scale(0.99); }
.cal-option-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: var(--rose-mist);
  color: var(--rose);
  display: grid;
  place-items: center;
}
.cal-option-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cal-option-text { flex: 1; min-width: 0; }
.cal-option strong { display: block; font-size: 0.95rem; font-weight: 700; }
.cal-option small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cal-option-arrow {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--ink-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cal-option.is-disabled { opacity: 0.45; pointer-events: none; }
.cal-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--rose);
  line-height: 1.6;
}
.cal-note[hidden] { display: none; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 95;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 16px 40px -14px rgba(61, 44, 51, 0.5);
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  transition: opacity 0.4s var(--ease-fluid), transform 0.5s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: none; }

/* ---- Desktop ---- */
@media (min-width: 768px) {
  .times-page { --ring-size: 200px; }
  .t-hero { padding-top: 8.5rem; }
  .meds {
    max-width: 1000px;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    padding-top: 2rem;
  }
  .med-card { padding: 1.8rem 1.7rem 1.6rem; }
  .remind, .strength { padding: 5rem 1.2rem 6rem; }
  .take-dates { margin: 1rem 0 0; padding: 0.3rem 0; flex-wrap: wrap; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .ring-progress { transition: none; }
  .today-dot, .med-state-chip { animation: none; }
}
