:root {
    --ink: #162338;
    --muted: #677389;
    --line: #dfe5ed;
    --surface: #ffffff;
    --canvas: #f4f7fa;
    --brand: #0b6bcb;
    --brand-dark: #084f97;
    --danger: #a52c32;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: var(--brand); }
button, input { font: inherit; }
button, .secondary-button {
    border: 0; border-radius: 8px; padding: .72rem 1rem; cursor: pointer;
    background: var(--brand); color: white; font-weight: 700; text-decoration: none;
}
button:hover { background: var(--brand-dark); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(100%, 430px); padding: 2.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 50px rgba(22,35,56,.08); }
.brand-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--brand); color: white; font-weight: 900; letter-spacing: .04em; }
.brand-mark.small { width: 40px; height: 40px; border-radius: 10px; font-size: .8rem; margin-right: .75rem; }
.eyebrow { margin: 1.5rem 0 .25rem; color: var(--brand); font-weight: 800; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; margin-top: 1.75rem; }
label { display: grid; gap: .45rem; font-weight: 700; font-size: .9rem; }
input { width: 100%; min-width: 0; border: 1px solid #c9d2df; border-radius: 8px; padding: .75rem .8rem; color: var(--ink); background: white; }
input:focus { outline: 3px solid rgba(11,107,203,.16); border-color: var(--brand); }
.alert { margin-top: 1.25rem; border-radius: 8px; padding: .8rem 1rem; background: #fff0f0; color: var(--danger); font-size: .9rem; }
.topbar { min-height: 72px; padding: 0 max(1.25rem, calc((100vw - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.topbar > div, .account { display: flex; align-items: center; gap: .75rem; }
.account { color: var(--muted); font-size: .9rem; }
.link-button { padding: .25rem; background: none; color: var(--brand); }
.link-button:hover { background: none; text-decoration: underline; }
.container { width: min(1240px, calc(100% - 2.5rem)); margin: 2.5rem auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.5rem; }
.page-heading .eyebrow { margin-top: 0; }
.page-heading .muted { margin-bottom: 0; }
.search { width: min(100%, 600px); display: flex; gap: .6rem; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; background: #e8edf3; color: var(--ink); white-space: nowrap; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(22,35,56,.04); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
th { color: var(--muted); background: #f8fafc; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:hover { background: #f9fbfd; }
.download { font-weight: 700; text-decoration: none; }
.empty { padding: 3.5rem; text-align: center; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem; }
.pagination a { min-width: 36px; padding: .5rem; border-radius: 7px; text-align: center; text-decoration: none; }
.pagination a.active { background: var(--brand); color: white; }
@media (max-width: 760px) {
    .topbar { padding: .75rem 1.25rem; align-items: flex-start; }
    .account { align-items: flex-end; flex-direction: column; gap: .25rem; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .search { flex-wrap: wrap; }
    .search input { flex-basis: 100%; }
    .login-card { padding: 1.5rem; }
}
