.ses {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  width: 100%;
}

.ses-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.ses-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
}

.ses-meta .finish {
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--hue, var(--c-amber));
}

/* The item being worked on is the headline; the clock supports it. A room needs
   to know WHAT it is doing more often than exactly how many seconds are left. */
.ses-now {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
  color: var(--c-ink);
}

.ses-time {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-size: clamp(3rem, 12vw, 8rem);
  color: var(--hue, var(--c-amber));
}

/* The last half minute is when a facilitator needs to start wrapping up. */
.ses-time.is-low {
  color: var(--c-abort);
}

.ses-bar {
  width: 100%;
  max-width: 40rem;
  height: 8px;
  margin: var(--space-2) 0;
  border-radius: 999px;
  background: var(--hue-tint, var(--c-amber-tint));
  overflow: hidden;
}

.ses-bar-fill {
  height: 100%;
  background: var(--hue, var(--c-amber));
  transform-origin: left center;
  transition: transform 250ms linear;
}

/* What comes next is on screen at all times, so nobody has to ask. */
.ses-next {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--c-line);
  color: var(--c-ink-muted);
  font-size: var(--text-sm);
}

.next-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.72rem;
}

.next-name {
  font-weight: 700;
  color: var(--c-ink);
  font-size: var(--text-base);
}

.next-minutes {
  font-variant-numeric: tabular-nums;
}

/* --- The plan ------------------------------------------------------------ */

.ses-total {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink-muted);
}

.ses-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  counter-reset: item;
}

.plan-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--hue-tint, var(--c-amber-tint));
  color: var(--c-ink);
  border-left: 4px solid var(--hue, var(--c-amber));
}

.plan-name {
  font-weight: 600;
}

.plan-minutes {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--c-ink-muted);
  flex: none;
}

/* --- Finished ------------------------------------------------------------ */

.ses-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  animation: done-in 420ms cubic-bezier(0.16, 1.2, 0.3, 1) both;
}

@keyframes done-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.done-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-confirm);
}

.done-body {
  margin: 0;
  color: var(--c-ink-muted);
}

/* --- Setup --------------------------------------------------------------- */

.ses-agenda {
  width: 100%;
  max-width: 28rem;
}

.ses-agenda textarea {
  font: inherit;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  width: 100%;
  resize: vertical;
  min-height: 8rem;
}

.ses-hint {
  margin: 0;
  color: var(--c-ink-muted);
  font-size: var(--text-sm);
  text-align: center;
  text-wrap: balance;
}

.ses-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

/* --- Fullscreen ---------------------------------------------------------- */

.toy.is-fullscreen .ses {
  justify-content: center;
  height: 100%;
}

.toy.is-fullscreen .ses-agenda {
  opacity: 0;
  transition: opacity 200ms ease;
}

.toy.is-fullscreen .ses-agenda:focus-within,
.toy.is-fullscreen:hover .ses-agenda {
  opacity: 1;
}
