.clock-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.header-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.period-icon {
    width: 0.7rem;
    height: 0.7rem;
    opacity: 0.85;
}

.dash-clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-height: 0;
    padding: 0.75rem 0.85rem;
}

.clock-meta {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(243, 235, 224, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.clock-stats {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.clock-stats .ui-cell-grid {
    grid-template-columns: repeat(2, 1fr);
}

.clock-pulse {
    padding-top: 0.35rem;
    border-top: 1px solid rgba(243, 235, 224, 0.06);
}

.time-stage {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 1.25rem;
    align-items: center;
    width: 100%;
}

.hour-block { grid-row: 1 / 3; align-self: center; }
.minute-block { align-self: end; padding-bottom: 0.15rem; }
.second-block { align-self: start; padding-top: 0.15rem; }

.hour-label,
.unit-label {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 0.15rem;
}

.hour-slot {
    height: clamp(3.5rem, 16vw, 5.5rem);
    overflow: hidden;
}

.hour-value {
    font-family: "DM Mono", monospace;
    font-size: clamp(3.5rem, 16vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--cream);
    display: block;
}

.minute-block,
.second-block { text-align: right; }

.minute-block.minute-flash .unit-value {
    animation: minuteFlash 0.5s ease;
}

@keyframes minuteFlash {
    0% { color: var(--cream); text-shadow: 0 0 12px rgba(255, 92, 77, 0.8); }
    100% { color: var(--coral); text-shadow: none; }
}

.unit-slot {
    height: 2.2rem;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}

.unit-value {
    font-family: "DM Mono", monospace;
    font-size: clamp(1.75rem, 6vw, 2.2rem);
    font-weight: 500;
    line-height: 1;
    color: var(--cream);
}

.minute-block .unit-value { color: var(--coral); }

.second-with-ring {
    position: relative;
    width: clamp(2.6rem, 10vw, 3.25rem);
    height: clamp(2.6rem, 10vw, 3.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.second-ring-wrap {
    position: absolute;
    inset: -2px;
    pointer-events: none;
}

.second-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.second-ring-bg {
    fill: none;
    stroke: rgba(243, 235, 224, 0.08);
    stroke-width: 2;
}

.second-ring-fill {
    fill: none;
    stroke: var(--mint);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(94, 228, 199, 0.45));
}

.second-block .unit-value {
    position: relative;
    z-index: 1;
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    color: var(--mint);
    font-variant-numeric: tabular-nums;
}

.date-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem 0.6rem;
    transition: opacity 0.3s ease;
}

.date-strip.date-changed {
    animation: dateFlash 0.5s ease;
}

@keyframes dateFlash {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.date-part {
    font-family: "DM Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
}

.date-part.highlight {
    color: var(--cream);
    font-weight: 500;
}

.date-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--violet);
    opacity: 0.6;
}

.stat-item {
    text-align: left;
    position: relative;
    cursor: default;
}

.stat-item[data-tip]:hover::after,
.stat-item[data-tip]:focus-within::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    font-family: "DM Mono", monospace;
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    background: rgba(22, 20, 31, 0.95);
    border: 1px solid rgba(243, 235, 224, 0.1);
    color: var(--cream-dim);
    z-index: 5;
    pointer-events: none;
}

.stat-value.stat-pop {
    animation: statPop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes statPop {
    0% { transform: scale(1.15); color: var(--mint); }
    100% { transform: scale(1); }
}

.dash-footer,
.version-tag,
.sync-dot {
    display: none;
}
