.brand-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eceef1;
}
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2430;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #2f6fed;
    border: 1px solid #d7d9e0;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 0.15s, border-color 0.15s;
}
.back-btn:hover {
    background: #eef2ff;
    border-color: #2f6fed;
}

* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
    margin: 0;
    padding: 0;
}
.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}
.wrap-wide {
    max-width: 1100px;
}
h1 { font-size: 1.6rem; margin-bottom: 4px; }
h2 { font-size: 1.15rem; margin-top: 28px; }
p.subtitle { color: #6b7280; margin-top: 0; }

.card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 0.9rem; }
input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7d9e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}
textarea { min-height: 80px; resize: vertical; }

button, .btn {
    display: inline-block;
    background: #2f6fed;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 14px;
}
button.secondary, .btn.secondary { background: #6b7280; }
button.danger, .btn.danger { background: #d64545; }

.flash {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.flash.error { background: #fde2e2; color: #9c1f1f; }
.flash.success { background: #dff3e3; color: #1f7a3d; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; table-layout: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eceef1; font-size: 0.9rem; vertical-align: middle; }
th { color: #6b7280; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; white-space: nowrap; }
tr:hover { background: #fafbfc; }
a { color: #2f6fed; }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e6edff;
    color: #2f6fed;
    font-size: 0.85rem;
    font-weight: 600;
}

.timeline { list-style: none; padding: 0; margin: 10px 0; }
.timeline li {
    padding: 10px 0 10px 18px;
    border-left: 2px solid #e6edff;
    position: relative;
    margin-left: 6px;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f6fed;
}
.timeline .date { color: #6b7280; font-size: 0.8rem; }

.qr-box { text-align: center; margin: 16px 0; }
.qr-box img { border: 1px solid #eceef1; border-radius: 8px; padding: 10px; background: #fff; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.top-bar form { margin: 0; }
.top-bar button.secondary { margin-top: 0; }

.code-box {
    font-family: monospace;
    font-size: 1.4rem;
    letter-spacing: 2px;
    background: #f4f5f7;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
}
