:root {
    --brand: #1c6fc0;
    --brand-dark: #14538f;
    --ink: #1a1a1a;
    --muted: #667;
    --line: #d7dee8;
    --bg: #f4f6f9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.topbar {
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
}
.topbar__brand { font-weight: 800; letter-spacing: 0.3px; }
.topbar__nav { display: flex; align-items: center; gap: 18px; }
.topbar__nav a { color: #fff; text-decoration: none; opacity: 0.92; }
.topbar__nav a:hover { opacity: 1; text-decoration: underline; }
.topbar__user { opacity: 0.8; font-size: 14px; }
.topbar__logout { font-weight: 600; }

.container { max-width: 860px; margin: 28px auto; padding: 0 16px; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px 26px;
    box-shadow: 0 1px 3px rgba(20, 40, 80, 0.05);
}
.card--narrow { max-width: 380px; margin: 8vh auto; }

h1 { margin: 0 0 18px; font-size: 22px; }
h1 small { color: var(--muted); font-weight: 500; font-size: 15px; }

label { display: block; margin: 0 0 14px; font-weight: 600; font-size: 14px; }
input, select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 9px 10px;
    font: inherit;
    font-weight: 400;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}
input[type="file"] { padding: 6px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.inline { display: inline-flex; align-items: flex-end; gap: 10px; margin: 0; }
.inline label { margin: 0; }
.inline input[type="file"] { width: auto; }

.btn {
    display: inline-block;
    padding: 9px 16px;
    font: inherit;
    font-weight: 600;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #eef1f6;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #e3e8f0; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--danger { background: #fff; border-color: #e0b4b4; color: #b42318; }
.btn--danger:hover { background: #fdf0f0; }

.hint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.muted { color: var(--muted); }

.alert { padding: 10px 14px; border-radius: 7px; margin: 0 0 16px; font-size: 14px; }
.alert--error { background: #fdecea; color: #b42318; border: 1px solid #f3c5bf; }
.alert--ok { background: #e8f5ec; color: #1a7f37; border: 1px solid #b6dcc1; }

table.list { width: 100%; border-collapse: collapse; margin-top: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: 13px; color: var(--muted); }
