:root {
    color-scheme: light;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #20242a;
    --muted: #667085;
    --line: #d9dee7;
    --accent: #1769aa;
    --warning: #fff7df;
    --error: #ffe9e9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    gap: 16px;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.page-heading,
.toolbar,
.status-panel,
.detail-card,
.auth-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

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

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

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.summary-card,
.job-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.summary-card span,
dt,
.empty {
    color: var(--muted);
}

.summary-card strong {
    display: block;
    font-size: 28px;
}

.job-section {
    margin-top: 24px;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.job-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.score {
    min-width: 42px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e7f1fb;
    color: #104f82;
    font-weight: 700;
    text-align: center;
}

dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
}

dd {
    margin: 0;
}

button,
.button-link {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    padding: 10px 14px;
    text-decoration: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    padding: 10px;
}

.form {
    display: grid;
    gap: 14px;
}

.auth-panel {
    max-width: 420px;
    margin: 64px auto;
}

.notice {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 16px 0;
    padding: 12px 14px;
}

.notice.warning {
    background: var(--warning);
}

.notice.error {
    background: var(--error);
}

.notice.success {
    background: #e9f8ef;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

.description {
    white-space: normal;
}

@media (max-width: 720px) {
    .site-header,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }
}
