:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172433;
    background: #f4f7fb;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

a {
    color: #1768ac;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #52708e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.subtitle,
.muted {
    color: #66788a;
}

.subtitle {
    margin-bottom: 0;
}

.run-id {
    display: block;
    max-width: 360px;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

.table-wrap,
.panel {
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(23 36 51 / 4%);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: top;
}

th {
    color: #526579;
    background: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdff;
}

.actions {
    white-space: nowrap;
}

.actions a + a {
    margin-left: 12px;
}

.notice {
    padding: 18px 20px;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    background: #fff;
    color: #526579;
}

.notice-error {
    border-color: #f2c6c3;
    background: #fff8f7;
    color: #9c302a;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: #8291a0;
    font-size: 0.9rem;
}

.panel {
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading p {
    margin-bottom: 0;
}

.button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #1768ac;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.button:hover {
    background: #10578f;
    text-decoration: none;
}

.button-secondary {
    border: 1px solid #d5e0eb;
    background: #fff;
    color: #1768ac;
}

.button-secondary:hover {
    background: #f5f9fd;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 14px 24px;
    margin: 0;
}

.details-grid dt {
    color: #66788a;
    font-weight: 600;
}

.details-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.preserve-lines {
    white-space: pre-wrap;
}

.table-meta,
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.table-meta {
    margin: 0 2px 12px;
    color: #66788a;
    font-size: 0.9rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow-wrap: anywhere;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-success {
    background: #e8f6ee;
    color: #167043;
}

.badge-danger {
    background: #fff0ef;
    color: #a23832;
}

.pagination {
    margin-top: 18px;
}

.pagination a,
.pagination .disabled {
    padding: 9px 13px;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    background: #fff;
}

.pagination .disabled {
    color: #9aa8b5;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
        padding-top: 28px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel {
        padding: 18px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .details-grid dd {
        margin-bottom: 12px;
    }
}
