* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    margin: 0; background: #f5f6f8; color: #1f2937;
}
.nav {
    background: #111827; color: #fff; padding: 0 24px; display: flex; align-items: center; height: 56px;
}
.nav .brand { font-weight: 700; font-size: 18px; margin-right: 28px; color: #fff; text-decoration: none; }
.nav a { color: #cbd5e1; text-decoration: none; margin-right: 20px; font-size: 14px; }
.nav a:hover, .nav a.active { color: #fff; }
.container { max-width: 1080px; margin: 24px auto; padding: 0 24px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 16px; }
.sub { color: #6b7280; font-size: 13px; margin-bottom: 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
input, select {
    width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 14px;
    background: #fff;
}
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > .col { flex: 1; min-width: 160px; }
.btn {
    display: inline-block; background: #2563eb; color: #fff; border: none; border-radius: 7px;
    padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #1d4ed8; }
.btn.gray { background: #6b7280; }
.btn.gray:hover { background: #4b5563; }
.btn.red { background: #dc2626; }
.btn.small { padding: 5px 12px; font-size: 12px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
th { color: #6b7280; font-weight: 600; background: #fafbfc; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.on { background: #dcfce7; color: #166534; }
.badge.off { background: #f3f4f6; color: #6b7280; }
.badge.rocket { background: #eff6ff; color: #1d4ed8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.product { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.product img { width: 100%; height: 170px; object-fit: contain; background: #fafafa; }
.product .body { padding: 10px 12px; }
.product .name { font-size: 13px; line-height: 1.35; height: 54px; overflow: hidden; }
.product .price { font-weight: 700; margin-top: 6px; }
.product .meta { margin-top: 6px; display: flex; gap: 6px; }
code { background: #f3f4f6; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
