.pulse-screen {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: #000;
  color: var(--text-primary);
}

.pulse-screen:focus {
  border-color: transparent;
  box-shadow: none;
}

.pulse-header {
  height: 68px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pulse-header h1 {
  font-size: 30px;
  line-height: 1;
}

#phase-label {
  min-width: 112px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(28, 30, 33, 0.82);
  color: var(--warm);
  text-align: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.pulse-orb {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 10px auto 0;
  display: grid;
  place-items: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  width: 360px;
  height: 360px;
  transform: rotate(-90deg);
}

.pulse-ring circle {
  fill: none;
  stroke-linecap: round;
}

.track {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 16;
}

.progress {
  stroke: var(--accent-strong);
  stroke-width: 16;
  stroke-dasharray: 829.38;
  stroke-dashoffset: 829.38;
  filter: drop-shadow(0 0 12px rgba(112, 231, 255, 0.45));
  transition: stroke-dashoffset 220ms linear, stroke 260ms ease;
}

.breath {
  stroke: rgba(255, 209, 102, 0.6);
  stroke-width: 8;
  transform-origin: 160px 160px;
  transition: transform 800ms ease, opacity 800ms ease;
}

.pulse-readout {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.pulse-readout strong {
  font-size: 72px;
  line-height: 0.9;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.pulse-readout span {
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.pulse-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pulse-button {
  min-width: 0;
  height: 66px;
  border: 0;
  border-radius: 18px;
  background: rgba(28, 30, 33, 0.9);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.pulse-button.primary {
  background: rgba(53, 214, 255, 0.2);
  color: var(--accent-strong);
}

.pulse-footer {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.pulse-screen[data-breath="hold"] .breath {
  opacity: 0.45;
  transform: scale(1.02);
}

.pulse-screen[data-breath="exhale"] .breath {
  opacity: 0.75;
  transform: scale(0.72);
}

.pulse-screen[data-mode="rest"] .progress {
  stroke: var(--success);
}

.pulse-screen[data-mode="micro"] .progress {
  stroke: var(--warm);
}
