* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.topbar {
    background: #111827;
    color: #fff;
}
.topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card, .auth-card, .stat-card {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.auth-card { max-width: 420px; margin: 80px auto; }
.auth-footer { text-align: center; margin-top: 16px; }
.auth-card a { color: #334e68; }
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card__label { display: block; color: #627d98; font-size: 13px; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
label { display: block; margin-bottom: 14px; font-weight: 600; }
input, textarea, select, button {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    font: inherit;
}
button {
    background: #111827;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}
.button-secondary { background: #486581; }
.button-danger { background: #9b1c1c; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.actions { display: flex; gap: 8px; }
.actions form { width: auto; }
.actions button { width: auto; padding: 6px 10px; font-size: 13px; }
.alert { background: #ebf8ff; border: 1px solid #90cdf4; padding: 12px; border-radius: 6px; margin-bottom: 16px; }
.alert code { display: block; margin-top: 8px; word-break: break-all; }
.alert-error { background: #fff5f5; border-color: #feb2b2; }
.muted { color: #627d98; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: #d3f9d8; color: #2b8a3e; }
.badge-danger { background: #ffe3e3; color: #c92a2a; }
.filter-bar { margin-bottom: 16px; }
.license-code {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 12px 0;
    word-break: break-all;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.checkbox-label input {
    width: auto;
    margin: 0;
}
pre {
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}
@media (max-width: 900px) {
    .stats, .grid-2 { grid-template-columns: 1fr; }
    .topbar__inner { flex-direction: column; gap: 12px; }
}
