:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f4f6fa;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f4f6fa; }
a { color: #3155a6; }
.topbar {
    min-height: 64px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background: #18233a;
}
.topbar a { color: white; text-decoration: none; }
.brand { font-size: 1.15rem; font-weight: 700; }
.topbar nav { display: flex; align-items: center; gap: 1.25rem; }
.topbar form { margin: 0; }
.link-button {
    border: 0;
    padding: 0;
    color: white;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.container { max-width: 1400px; margin: 2rem auto; padding: 0 1.25rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; }
.page-heading h1, h1 { margin-bottom: .25rem; }
.page-heading p { margin-top: 0; color: #68738a; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stats-grid article, .panel, .login-card {
    padding: 1.25rem;
    border: 1px solid #e0e5ef;
    border-radius: .65rem;
    background: white;
    box-shadow: 0 2px 8px rgb(30 45 75 / 6%);
}
.stats-grid strong { display: block; font-size: 1.8rem; }
.stats-grid span { color: #68738a; }
.two-column, .three-column { display: grid; gap: 1rem; margin: 1rem 0; }
.two-column { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.three-column { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.panel { overflow-x: auto; }
.panel h2 { margin-top: 0; font-size: 1.1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; border-bottom: 1px solid #e6e9ef; text-align: left; }
th { color: #566078; font-size: .8rem; text-transform: uppercase; }
dl { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: .65rem 1rem; }
dt { font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; }
ol { padding-left: 1.25rem; }
ol li { padding: .35rem; }
ol li strong { float: right; }
.filters { display: flex; gap: .75rem; margin: 1rem 0; flex-wrap: wrap; }
input, select, button {
    min-height: 40px;
    padding: .55rem .7rem;
    border: 1px solid #cbd2df;
    border-radius: .4rem;
    font: inherit;
}
button { color: white; background: #3155a6; border-color: #3155a6; cursor: pointer; }
.badge { padding: .25rem .5rem; border-radius: 1rem; font-size: .8rem; }
.badge.success { color: #0e6245; background: #daf5e9; }
.badge.muted { color: #626979; background: #e9ecf2; }
.pagination { display: flex; justify-content: center; gap: 1rem; margin: 1rem; }
.login-card { max-width: 430px; margin: 5rem auto; }
.login-card form { display: grid; gap: .6rem; }
.validation { color: #a5212d; }
@media (max-width: 700px) {
    .topbar { align-items: flex-start; flex-direction: column; gap: .75rem; padding: 1rem; }
    .topbar nav { flex-wrap: wrap; }
    th, td { white-space: nowrap; }
}
