/* ── Timer view layout ── */
.timer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-bottom: 16px;
}

/* ── SVG ring ── */
.timer-ring-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: 36px;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 8;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 628.318;  /* 2π × 100 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear, stroke .5s;
}

.timer-ring-progress.finished { stroke: var(--accent); }

/* ── Display inside ring ── */
.timer-display-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-time {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Controls ── */
.timer-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 8px;
}

/* ── Session player ── */
.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 22px 16px;
}
.session-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.session-back-btn:active { background: rgba(255,255,255,.22); }
.session-back-btn svg { width: 20px; height: 20px; stroke: white; }
.session-title-sm {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.session-end-btn {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  padding: 8px 14px;
  border-radius: 20px;
  transition: background .2s;
}
.session-end-btn:active { background: rgba(255,255,255,.12); }

/* ── Progress bar ── */
.session-progress-bar {
  height: 3px;
  background: rgba(255,255,255,.15);
  margin: 0 22px;
  border-radius: 2px;
  overflow: hidden;
}
.session-progress-fill {
  height: 100%;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: width .8s ease;
  width: 0%;
}

/* ── Session body ── */
.session-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 24px;
  text-align: center;
}

.session-step-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  max-width: 340px;
  transition: opacity .5s ease;
}
.session-step-text.fade-out { opacity: 0; }
.session-step-text.fade-in  { opacity: 1; }

.session-elapsed {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 24px;
  font-variant-numeric: tabular-nums;
}

/* ── Session controls ── */
.session-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 22px calc(var(--nav-height) + 24px);
}

.session-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.session-play-btn:active { transform: scale(.94); background: rgba(255,255,255,.25); }
.session-play-btn svg { width: 28px; height: 28px; stroke: white; fill: white; }

.session-skip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.session-skip-btn:active { background: rgba(255,255,255,.18); }
.session-skip-btn svg { width: 22px; height: 22px; stroke: rgba(255,255,255,.8); }
