* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; background: #f4f6f8; color: #222; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.nav { background: #1f2937; color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.nav a { color: #e5e7eb; font-weight: 500; }
.nav a.brand { color: #fff; font-size: 18px; font-weight: 700; margin-right: 18px; }
.nav .spacer { flex: 1; }
.nav .user { color: #cbd5e1; font-size: 14px; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); margin-bottom: 20px; }
h1 { margin-top: 0; font-size: 22px; }
h2 { font-size: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7280; }
.btn { display: inline-block; padding: 8px 14px; background: #2563eb; color: #fff; border-radius: 6px; border: 0; cursor: pointer; font-size: 14px; }
.btn:hover { background: #1d4ed8; text-decoration: none; }
.btn.secondary { background: #6b7280; }
.btn.danger { background: #dc2626; }
.btn.small { padding: 4px 10px; font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit;
}
label { display: block; font-size: 13px; color: #374151; margin-bottom: 4px; font-weight: 500; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 16px; }
.row .field { flex: 1; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.flash.info { background: #dbeafe; color: #1e3a8a; }
.flash.success { background: #d1fae5; color: #065f46; }
.flash.error { background: #fee2e2; color: #991b1b; }
.login-wrap { max-width: 380px; margin: 80px auto; }
.muted { color: #6b7280; font-size: 13px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #e5e7eb; color: #374151; }
.tag.green { background: #d1fae5; color: #065f46; }
.tag.amber { background: #fef3c7; color: #92400e; }
audio { width: 280px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
