* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    margin: 0;
    padding: 20px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #c8102e;
    padding: 16px 20px;
    border-radius: 8px;
    color: #fff;
}
.topbar h1 {
    color: #fff;
}
.login-box, .form-box {
    max-width: 480px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-top: 6px solid #c8102e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.login-box h1, .form-box h1 {
    color: #c8102e;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
input[type=text], input[type=url], input[type=password], input[type=file] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
input[type=text]:focus, input[type=url]:focus, input[type=password]:focus {
    border-color: #c8102e;
    outline: none;
}
input[type=color] {
    width: 60px;
    height: 36px;
    border: none;
    padding: 0;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.checkbox input { width: auto; }
button, .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
button:hover, .btn:hover {
    background: #a30d25;
}
.btn.secondary {
    background: #4a4a4a;
}
.btn.secondary:hover {
    background: #333;
}
.btn.download {
    background: #1a1a1a;
}
.btn.download:hover {
    background: #000;
}
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #c8102e;
}
.hint {
    font-size: 13px;
    color: #555;
    background: #fff5f5;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #c8102e;
}
table.qrtable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
table.qrtable th, table.qrtable td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}
table.qrtable th {
    background: #c8102e;
    color: #fff;
    font-weight: 600;
}
table.qrtable tr:hover {
    background: #fff5f5;
}
.truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.big-number {
    font-size: 32px;
    font-weight: 700;
    color: #c8102e;
}
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; margin-top: 30px; color: #c8102e; }
.download-box {
    max-width: 480px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-top: 6px solid #c8102e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    text-align: center;
}
.download-box img {
    margin: 20px 0;
    border: 8px solid #f5f5f5;
    border-radius: 8px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.username {
    font-size: 14px;
    color: #fff;
}
.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #16a34a;
}