* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; color: #1a1b23; background: #f5f6f8; line-height: 1.5; }
header { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.5rem; background: #1f2a44; }
header a { color: #fff; text-decoration: none; margin-left: 1rem; }
header .brand { font-weight: 700; margin-left: 0; }
header nav { display: flex; align-items: center; }
.menu { position: relative; }
.submenu { display: none; position: absolute; right: 0; top: 100%; z-index: 10; min-width: 12rem; padding: .4rem 0; background: #1f2a44; border-radius: 0 0 6px 6px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.menu:hover .submenu, .menu:focus-within .submenu { display: block; }
.submenu a { display: block; margin: 0; padding: .4rem 1rem; white-space: nowrap; }
.submenu a:hover, .submenu a:focus { background: #2c3a5c; }
main { max-width: 52rem; margin: 2rem auto; padding: 0 1rem; }
h1, h2 { line-height: 1.2; }
section, .card { background: #fff; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
a { color: #1f2a44; }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li { padding: .5rem 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
ul.list li:last-child { border-bottom: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid #eee; vertical-align: middle; }
th { font-size: .9rem; color: #666; }
td.actions { text-align: right; padding-right: 0; }
.table-wrap { overflow-x: auto; }
.muted { color: #666; font-size: .9rem; }
label { display: block; margin: .6rem 0 .2rem; font-weight: 600; }
input[type=text], input[type=email], input[type=date], textarea, input[type=file] { width: 100%; padding: .5rem; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
button { padding: .5rem 1rem; border: 0; border-radius: 6px; background: #1f2a44; color: #fff; font: inherit; cursor: pointer; margin-top: .8rem; }
button:hover { background: #2c3a5c; }
button.danger:hover { background: #a82020; }
button.danger { background: #c62828; margin: 0; padding: .3rem .7rem; }
.flash { padding: .7rem 1rem; border-radius: 6px; }
.flash.ok { background: #e3f6e6; }
.flash.error { background: #fde4e4; }
.desc { white-space: pre-wrap; }
.credit { text-align: center; }
