.tp-session {
  --tp-ink: #203c32;
  --tp-green: #2f664f;
  --tp-wash: #f0f4ea;
  --tp-line: #d3dcce;
  color: var(--tp-ink);
  font: inherit;
  text-align: left;
  min-inline-size: 0;
}

.tp-session *, .tp-session *::before, .tp-session *::after { box-sizing: border-box; }
.tp-session [hidden] { display: none !important; }
.tp-session .tp-heading {
  margin: 0 0 .65rem;
  color: var(--tp-ink);
  font: inherit;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 620;
  line-height: 1.13;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.tp-session .tp-heading:focus { outline: none; }
.tp-session .tp-lead, .tp-cue p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #40564b;
  text-wrap: pretty;
}
.tp-progress {
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.tp-count, .tp-cue-label, .tp-phase, .tp-clock, .tp-source {
  font-size: .875rem;
}
.tp-count {
  font-weight: 600;
  color: #546b5b;
  white-space: nowrap;
}
.tp-segments {
  max-width: 8rem;
  display: flex;
  flex: 1;
  gap: .25rem;
}
.tp-segments i {
  border-radius: 3px;
  height: 4px;
  flex: 1;
  background: var(--tp-line);
}
.tp-segments .tp-on { background: var(--tp-green); }
.tp-cue, .tp-notes {
  margin: 1.05rem 0 0;
  padding: .85rem 1rem;
  border-radius: .9rem;
  background: var(--tp-wash);
}
.tp-cue-label, .tp-notes dt {
  display: block;
  font-weight: 650;
  color: #486051;
  margin: 0 0 .25rem;
}
.tp-cue p, .tp-notes dd { color: var(--tp-ink); }
.tp-field, .tp-options {
  display: block;
  margin: 1.15rem 0 0;
  border: 0;
  padding: 0;
  min-width: 0;
}
.tp-field > span, .tp-field-title {
  display: block;
  padding: 0;
  font-size: .92rem;
  font-weight: 650;
  margin: 0 0 .45rem;
}
.tp-textarea {
  width: 100%;
  display: block;
  padding: .8rem .9rem;
  line-height: 1.5;
  font: inherit;
  font-size: max(1rem, 16px);
  background-color: #fff;
  color: var(--tp-ink);
  border: 1px solid #aebfae;
  border-radius: .7rem;
  resize: vertical;
  min-height: 5rem;
}
.tp-textarea::placeholder { color: #68756a; opacity: 1; }
.tp-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .8rem;
  min-height: 2.75rem;
  background: #fcfdfa;
  border: 1px solid var(--tp-line);
  border-radius: .7rem;
  margin: .35rem 0;
  cursor: pointer;
  color: var(--tp-ink);
  font-size: 1rem;
  line-height: 1.35;
}
.tp-option:has(input:checked) { background: #ebf3e8; border-color: var(--tp-green); }
.tp-option input {
  appearance: auto;
  accent-color: var(--tp-green);
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: none;
}
.tp-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: 1.35rem; }
.tp-session .tp-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .68rem 1.2rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: var(--tp-ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  line-height: 1.2;
  font-weight: 600;
}
.tp-session .tp-secondary {
  background: transparent;
  border-color: var(--tp-line);
  color: var(--tp-ink);
}
.tp-session .tp-button:hover { background: var(--tp-green); color: #fff; }
.tp-session .tp-secondary:hover { background: var(--tp-wash); color: var(--tp-ink); }
.tp-session :is(button, a, input, textarea):focus-visible { outline: 3px solid #567d56; outline-offset: 2px; }
.tp-session > .tp-button { margin-top: 1rem; }
.tp-complete-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--tp-wash);
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  color: var(--tp-green);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.tp-notes dt { font-size: .88rem; }
.tp-notes dd { margin: 0; font-size: 1rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-notes dd + dt { margin-top: .65rem; }
.tp-source {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: #416651;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: .18em;
  margin-top: 1rem;
}
.tp-timer {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7rem, 28vw, 9rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #ceddcc;
  margin: 1.3rem auto .75rem;
  background: #f4f7ee;
  isolation: isolate;
}
.tp-orb {
  position: absolute;
  inset: .35rem;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(ellipse at 32% 23%, #ebedc4, #b9d8b2 48%, #79a58b);
  box-shadow: inset 1px 1px 7px #fff6;
  transform: scale(var(--tp-scale, .74));
  transition: transform .12s linear;
}
.tp-timer-value {
  color: #214536;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.tp-breath .tp-timer-value { font: 3rem/1 Georgia, serif; }
.tp-focus { background: conic-gradient(#819b71 var(--tp-arc, 0deg), var(--tp-wash) 0); }
.tp-focus .tp-orb { inset: .45rem; background: #fcfdf8; box-shadow: none; transform: none; }
.tp-session .tp-phase, .tp-session .tp-clock {
  margin: 0 auto;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tp-session .tp-phase { font-size: 1.09rem; font-weight: 650; }
.tp-session .tp-clock { margin-top: .15rem; color: #51685a; }
.tp-focus ~ .tp-clock { display: none; }
.tp-timer ~ .tp-actions { justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .tp-orb { transition: none; transform: scale(.9); }
}
