.domain-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.domain-details {
    margin-top: 0;
}

.history-summary > strong {
    display: block;
    margin: 18px 0 5px;
    color: var(--blue);
    font-size: 46px;
    line-height: 1;
}

.history-summary > span {
    font-weight: 700;
}

.history-summary > p,
.empty-state {
    color: var(--muted);
}

.history-summary > p {
    max-width: 420px;
}

.domain-history {
    margin-top: 20px;
}

.timeline {
    position: relative;
}

.timeline::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 8px;
    width: 2px;
    background: #e2e8ef;
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #98a4b0;
    box-shadow: 0 0 0 2px #dfe6ee;
}

.timeline-dot.success { background: var(--green); box-shadow: 0 0 0 2px #bfe8d8; }
.timeline-dot.info { background: var(--blue); box-shadow: 0 0 0 2px #c9ddfb; }
.timeline-dot.warning { background: var(--amber); box-shadow: 0 0 0 2px #f1d89f; }
.timeline-dot.danger { background: var(--red); box-shadow: 0 0 0 2px #f3c4c4; }

.timeline-body {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
}

.timeline-body p {
    margin: 10px 0;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.timeline-head time {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.expiry-change,
.history-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expiry-change {
    color: #405164;
}

.expiry-change b {
    color: var(--blue);
}

.history-links {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
}

.history-links span {
    color: var(--muted);
}

@media (max-width: 760px) {
    .domain-header {
        align-items: flex-start;
        gap: 18px;
    }

    .domain-actions {
        flex-direction: column;
        align-items: flex-end;
    }

    .timeline-head {
        flex-direction: column;
        gap: 5px;
    }
}
