*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
    color: #14202b;
    background: #f3f5f7;
    line-height: 1.45;
}

a { color: #1f4b73; }

.top {
    background: #14202b;
    color: #f3f5f7;
}

.top-inner,
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    gap: 1rem;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav a, .nav button.link {
    color: #d7dee6;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.nav a:hover, .nav button.link:hover { color: #fff; }

main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }

h1 { font-size: 1.4rem; margin: 0 0 1rem; }

.flash {
    background: #e5f4ea;
    border: 1px solid #b7dcc3;
    color: #1f5a32;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.errors {
    background: #fdeeee;
    border: 1px solid #e8b4b4;
    color: #8a1f1f;
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pills { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.pill {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #e6ebf0;
    color: #14202b;
    text-decoration: none;
    font-size: 0.85rem;
}

.pill.is-active { background: #14202b; color: #fff; }

.btn {
    display: inline-block;
    background: #1f4b73;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font: inherit;
    cursor: pointer;
}

.btn:hover { background: #16375a; }

.btn-secondary { background: #5b6b78; }
.btn-secondary:hover { background: #46535e; }

.btn-danger { background: #9b2c2c; }
.btn-danger:hover { background: #7a1f1f; }

.card {
    background: #fff;
    border: 1px solid #d9e0e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

th, td {
    text-align: left;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid #e6ebf0;
    vertical-align: top;
}

th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #5b6b78; }

.status {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 650;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

.status-ok { background: #d9f2e1; color: #1f5a32; }
.status-error { background: #fde0e0; color: #8a1f1f; }
.status-unknown { background: #eceff2; color: #5b6b78; }

.form-row { margin-bottom: 0.85rem; }

label { display: block; font-weight: 600; margin-bottom: 0.3rem; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="date"] {
    width: 100%;
    max-width: 32rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #c5ced6;
    border-radius: 6px;
    font: inherit;
}

.check { display: flex; gap: 0.5rem; align-items: center; }

.muted { color: #5b6b78; font-size: 0.9rem; }

.login-box {
    max-width: 24rem;
    margin: 4rem auto;
}

.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
