* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; background: #f4f6f8; color: #1f2933; }
a { color: #2463eb; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #182230; color: #fff; padding: 20px 16px; }
.brand { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.user { color: #b9c4d0; font-size: 13px; margin-bottom: 20px; }
.sidebar a { display: block; color: #e8edf3; padding: 10px 12px; border-radius: 6px; margin-bottom: 4px; }
.sidebar a:hover { background: #263548; }
.content { flex: 1; padding: 24px; }
.card { background: #fff; border: 1px solid #d9e1ea; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { font-size: 26px; font-weight: 700; margin-top: 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #d9e1ea; }
th, td { text-align: left; border-bottom: 1px solid #edf1f5; padding: 10px; font-size: 14px; }
th { background: #f8fafc; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
label { display: block; margin: 12px 0 6px; font-weight: 600; }
button, .btn { display: inline-block; border: 0; background: #2463eb; color: #fff; padding: 9px 14px; border-radius: 6px; cursor: pointer; }
.btn.secondary { background: #52606d; }
.login { max-width: 360px; margin: 80px auto; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checks label { font-weight: 400; margin: 0; }
.error { color: #d92d20; margin-bottom: 10px; }
.muted { color: #667085; }
.qr { width: 96px; height: 96px; border: 1px solid #d9e1ea; border-radius: 4px; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.inline-form input, .inline-form select { width: auto; min-width: 90px; }

button.danger, .danger { background: #d92d20; color: #fff; }
.qr.small { width: 58px; height: 58px; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid #d9e1ea; background: #f8fafc; }
.preview { width: 140px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid #d9e1ea; }
.inline-form.wide input { min-width: 140px; }
.inline-form.wide select { min-width: 100px; }