/* Shared chrome for mini apps: top bar with a way back to the hub, and the content column. */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: .75rem;
  padding: calc(var(--safe-top) + .6rem) 1rem .6rem;
  color: #fff; background: var(--clr-base-strong);
}
.top h1 { font-size: 1.15rem; color: #fff; margin-left: auto; }
.top__back {
  display: inline-flex; align-items: center; gap: .15rem;
  min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.top__back svg { width: 22px; height: 22px; }
.top :focus-visible { outline-color: var(--clr-accent-soft); }

.wrap { max-width: 560px; margin: 0 auto; padding: 1rem 1rem calc(var(--safe-bottom) + 2rem); display: grid; gap: 1.5rem; }

/* Reminder block (shared/reminder.js) */
.reminder { background: var(--clr-surface); border-radius: var(--radius); padding: .25rem 1rem 1rem; box-shadow: 0 1px 3px rgba(18, 48, 46, .08); }
.reminder > :not(summary) { margin-top: .8rem; }
.reminder summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.reminder p { margin: 0; }
.reminder__text { color: var(--clr-muted); font-size: .9rem; }
.reminder__field { display: grid; gap: .3rem; font-weight: 600; }
.reminder__field input { min-height: 48px; padding: .5rem .8rem; border: 1.5px solid var(--clr-border); border-radius: 12px; background: #fff; font-weight: 400; max-width: 100%; }
.reminder__field input[type=time] { max-width: 10rem; }
.reminder .btn { width: 100%; }
.reminder__status { color: var(--clr-base-strong); font-weight: 600; }
.reminder__status:empty { display: none; }

/* Praise toast (shared/praise.js) */
.praise {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 1.25rem); z-index: 20;
  width: max-content; max-width: min(92vw, 480px); padding: .65rem 1.4rem; border-radius: 999px;
  color: #fff; background: var(--clr-base-strong); font-size: .875rem; font-weight: 600; text-align: center;
  box-shadow: 0 8px 24px rgba(18, 48, 46, .3);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.praise--on { opacity: 1; transform: translate(-50%, 0); }
