* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f9; color: #263238; font: 15px Arial, sans-serif; }
header { background: #1e293b; color: #fff; padding: 18px 4%; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
nav { display:flex; align-items:center; gap:18px; }
header a, .link-button { color:#fff; text-decoration:none; }
main { max-width:1250px; margin:30px auto; padding:0 20px; }
h1 { font-size:25px; }
h2 { font-size:19px; margin-top:0; }
.card { background:#fff; border-radius:9px; padding:22px; margin-bottom:22px; box-shadow:0 1px 5px #0001; }
.narrow { max-width:430px; margin:70px auto; }
label { display:block; margin:12px 0 7px; }
input { padding:10px; border:1px solid #cbd5e1; border-radius:5px; max-width:100%; }
input[type=password] { width:100%; }
button { border:0; border-radius:5px; padding:10px 14px; cursor:pointer; background:#2563eb; color:white; }
button.danger { background:#dc2626; }
.link-button { background:transparent; padding:0; }
form button { margin-top:8px; }
.inline { display:inline; }
.create-form { display:flex; gap:10px; flex-wrap:wrap; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.stats .card { margin:0; }
.stats strong { display:block; font-size:30px; margin-bottom:8px; }
.stats span, small, .muted { color:#64748b; }
table { width:100%; border-collapse:collapse; }
th,td { text-align:left; padding:12px; border-bottom:1px solid #e5e7eb; vertical-align:top; }
th { background:#f8fafc; }
.table-wrap { overflow-x:auto; }
.actions { min-width:280px; }
.actions form { margin-bottom:8px; }
.actions input[type=file] { display:block; max-width:250px; }
.ok { color:#15803d; }
.warn { color:#b45309; }
.bad,.error { color:#b91c1c; }
.notice { background:#dcfce7; border-radius:7px; padding:16px; overflow-wrap:anywhere; }
.notice code { display:block; margin:12px 0; font-family:monospace; }
@media(max-width:700px) { .stats { grid-template-columns:1fr; } header { align-items:flex-start; flex-direction:column; } nav { flex-wrap:wrap; } }
