:root {
    --cobalt: rgb(42, 59, 102);
    --slate: rgb(118, 175, 223);
    --gold: rgb(233, 199, 145);
    --ink: rgb(33, 42, 67);
    --surface: rgb(245, 248, 252);
    --white: rgb(255, 255, 255);
    --border: rgba(42, 59, 102, 0.12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(118, 175, 223, 0.2), rgba(233, 199, 145, 0.18));
}

.page-shell {
    min-height: 100vh;
    padding: 2rem;
}

.content-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.topbar, .panel, .auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(42, 59, 102, 0.12);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.panel, .auth-card {
    padding: 1.5rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-header.split {
    align-items: flex-start;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate);
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

h1, h2, h3, p { margin-top: 0; }
.muted { color: rgba(33, 42, 67, 0.68); }

.job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.job-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(42, 59, 102, 0.12);
}

.job-card__header, .search-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.status-pill {
    background: rgba(233, 199, 145, 0.3);
    color: var(--cobalt);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0;
}

dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: rgba(33, 42, 67, 0.6);
    margin-bottom: 0.25rem;
}

dd {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button.primary {
    background: var(--cobalt);
    color: var(--white);
}

.button.secondary {
    background: rgba(118, 175, 223, 0.14);
    color: var(--cobalt);
}

.auth-card {
    max-width: 420px;
    margin: 3rem auto;
}

.stacked-form, .search-label {
    display: grid;
    gap: 1rem;
}

label span {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.table-shell {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

thead {
    background: var(--cobalt);
    color: var(--white);
}

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

tbody tr:nth-child(even) {
    background: rgba(118, 175, 223, 0.08);
}

.empty-state, .empty-cell {
    text-align: center;
    color: rgba(33, 42, 67, 0.7);
    padding: 2rem;
}

.flash-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.flash {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(233, 199, 145, 0.3);
}

@media (max-width: 768px) {
    .page-shell { padding: 1rem; }
    .topbar, .panel-header, .job-card__header, dl { display: block; }
    dl { grid-template-columns: 1fr; }
}
