.epoch-page {
    display: grid;
    gap: 0;
    margin-top: 0;
}

.epoch-panel {
    margin: 0 0 16px;
    border-radius: 8px;
    display: grid;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(120deg, #35418f, #826be3);
    box-shadow: var(--shadow);
    color: #fff;
}

.epoch-now {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.epoch-now span {
    color: rgba(255,255,255,.78);
    font-weight: 700;
}

.epoch-now strong {
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 2px rgba(0,0,0,.25);
}

.epoch-tabs {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}

.epoch-tabs button,
.epoch-now button,
.epoch-result-grid button {
    border-radius: 7px;
}

.epoch-tabs button {
    background: transparent;
    color: rgba(255,255,255,.78);
}

.epoch-tabs button.is-active {
    background: #fff;
    color: var(--accent);
}

.epoch-mode-panel {
    display: none;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
    gap: 14px;
    align-items: end;
}

.epoch-mode-panel.is-active {
    display: grid;
}

.epoch-mode-panel[data-epoch-panel="datetime"] {
    grid-template-columns: minmax(0, 1fr);
}

.epoch-panel label {
    display: grid;
    gap: 7px;
    color: rgba(255,255,255,.82);
    font-weight: 800;
}

.epoch-panel input,
.epoch-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 12px;
    font: inherit;
}

.epoch-main-input input {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.epoch-date-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(80px, 1fr));
    gap: 12px;
}

.epoch-results {
    width: 100%;
    justify-self: stretch;
    margin: 0 0 28px;
    padding: 18px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.epoch-results h2 {
    margin-bottom: 14px;
    padding-left: 0;
}

.epoch-result-grid {
    display: grid;
    gap: 10px;
}

.epoch-result-grid > div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.epoch-result-grid span {
    color: var(--muted);
    font-weight: 700;
}

.epoch-result-grid code {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.epoch-result-grid button {
    padding: 8px 10px;
    background: #eef3fb;
    color: var(--accent);
    font-size: 14px;
}

.epoch-result-grid button.is-copied {
    background: #35b86b;
    color: #fff;
}

.epoch-seo-text {
    max-width: none;
}

@media (max-width: 860px) {
    .epoch-mode-panel { grid-template-columns: minmax(0, 1fr); }
    .epoch-date-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .epoch-result-grid > div { grid-template-columns: minmax(0, 1fr) auto; }
    .epoch-result-grid span { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .epoch-page {
            gap: 0;
        }

    .epoch-panel {
            padding: 18px;
        }

    .epoch-mode-panel.is-active,
    .epoch-date-grid,
    .epoch-result-grid > div {
            grid-template-columns: 1fr;
        }

    .epoch-tabs {
            width: 100%;
        }

    .epoch-tabs button {
            flex: 1;
            padding-right: 10px;
            padding-left: 10px;
        }

    .epoch-result-grid button {
            width: 100%;
        }
}

