.clock-pulse .pulse-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.pulse-header__titles {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.pulse-phase {
    font-family: "DM Mono", monospace;
    font-size: 0.45rem;
    letter-spacing: 0.08em;
    color: rgba(154, 143, 130, 0.65);
}

.bpm-display {
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--coral);
    flex-shrink: 0;
}

.dash-clock[data-pulse-phase="deepNight"] .bpm-display,
.dash-clock[data-pulse-phase="night"] .bpm-display {
    color: rgba(157, 122, 255, 0.85);
}

.dash-clock[data-pulse-phase="noon"] .bpm-display,
.dash-clock[data-pulse-phase="afternoon"] .bpm-display {
    color: var(--coral);
}

.dash-clock[data-pulse-phase="deepNight"] .pulse-line,
.dash-clock[data-pulse-phase="night"] .pulse-line {
    opacity: 0.72;
}

.dash-clock[data-pulse-phase="deepNight"] .heartbeat-flash,
.dash-clock[data-pulse-phase="night"] .heartbeat-flash {
    animation: heartFlashSoft 0.25s ease;
}

@keyframes heartFlashSoft {
    0% { filter: brightness(1.1); }
    100% { filter: brightness(1); }
}

.pulse-line {
    height: 36px;
    overflow: hidden;
    opacity: 0.88;
    position: relative;
    flex: 1;
}

.pulse-line svg {
    width: 100%;
    height: 100%;
}

.pulse-path {
    fill: none;
    stroke: url(#pulseGrad);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pulse-path.beating {
    animation: pulseDraw var(--pulse-duration, 1s) linear forwards;
}

.pulse-glow {
    fill: none;
    stroke: url(#pulseGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: var(--pulse-glow-opacity, 0.18);
    filter: blur(2px);
}

.pulse-glow.beating {
    animation: pulseDraw var(--pulse-duration, 1s) linear forwards;
}

.pulse-trail {
    fill: none;
    stroke: url(#pulseGrad);
    stroke-width: 6;
    stroke-linecap: round;
    opacity: 0;
    filter: blur(4px);
}

.pulse-trail.beating {
    animation: pulseTrail 0.35s ease forwards;
}

@keyframes pulseDraw {
    from { stroke-dashoffset: var(--pulse-length, 800); }
    to { stroke-dashoffset: 0; }
}

@keyframes pulseTrail {
    0% { opacity: 0.35; stroke-width: 10; }
    100% { opacity: 0; stroke-width: 14; }
}

.pulse-baseline {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(243, 235, 224, 0.06);
}

.heartbeat-flash {
    animation: heartFlash 0.2s ease;
}

@keyframes heartFlash {
    0% { filter: brightness(1.25); }
    100% { filter: brightness(1); }
}
