* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: #f3f5f8; color: #1f2933; }
body.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
h1 { margin: 0; font-size: 1.4rem; }
.muted { color: #6b7785; font-size: .9rem; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 1.5rem; }

.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; }
.login h1 { margin-bottom: .25rem; }
.login label { margin-top: 1rem; font-size: .85rem; font-weight: 600; }
.login input { margin-top: .35rem; padding: .65rem .75rem; border: 1px solid #cfd6de; border-radius: 6px; font-size: 1rem; }
.login input:focus { outline: 2px solid #2563eb33; border-color: #2563eb; }
.login button { margin-top: 1.5rem; }

button, .btn { background: #2563eb; color: #fff; border: 0; border-radius: 6px; padding: .65rem 1rem; font-size: .95rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #1d4ed8; }
.btn { padding: .35rem .75rem; font-size: .85rem; }
button.link { background: none; color: #2563eb; padding: 0; font-size: inherit; }
button.link:hover { text-decoration: underline; background: none; }

.alert { margin-top: 1rem; padding: .6rem .8rem; border-radius: 6px; background: #eef4ff; color: #1e3a8a; font-size: .9rem; }
.alert.error { background: #fdecec; color: #9b1c1c; }

header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: #fff; border-bottom: 1px solid #e3e8ee; }
header .user { display: flex; gap: .75rem; align-items: center; font-size: .9rem; }
header form { margin: 0; }
main { max-width: 1000px; margin: 2rem auto; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.toolbar input { padding: .5rem .75rem; border: 1px solid #cfd6de; border-radius: 6px; width: 260px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .65rem .5rem; border-bottom: 1px solid #eef1f4; text-align: left; font-size: .92rem; }
th a { color: #1f2933; text-decoration: none; }
tbody tr:hover { background: #f8fafc; }
.r { text-align: right; }
.ext { display: inline-block; min-width: 42px; text-align: center; font-size: .7rem; text-transform: uppercase; background: #eef1f4; color: #52606d; border-radius: 4px; padding: .15rem .3rem; margin-right: .4rem; }
.empty { text-align: center; padding: 2rem 0; }
