:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif; background: #f4f6f8; color: #1f2933; }
a { color: #0f6b4c; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: #12352b; color: white; }
.topbar a { color: white; margin-left: 16px; text-decoration: none; }
.topbar a.active { font-weight: 700; text-decoration: underline; }
.brand { font-weight: 700; }
main { max-width: 1180px; margin: 0 auto; padding: 20px; }
.card { background: white; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.narrow { max-width: 520px; margin: 24px auto; }
h1, h2 { margin: 0 0 8px; }
.muted { color: #667085; }
.page-title, .pager, .search-form, .filters, .batch-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.batch-bar { margin: 12px 0; }
.page-title { justify-content: space-between; }
.filters { margin: 12px 0; }
.filters a { padding: 6px 10px; border-radius: 999px; text-decoration: none; background: #eef2f4; color: #344054; }
.filters a.active { background: #12352b; color: white; }
label { display: block; margin: 12px 0; font-size: 14px; }
input, textarea, select { width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; }
.search-form input, .search-form select { width: auto; min-width: 180px; margin: 0; }
button, .button { border: 0; background: #0f6b4c; color: white; border-radius: 8px; padding: 8px 14px; text-decoration: none; cursor: pointer; display: inline-block; }
.button.secondary { background: #e8eeeb; color: #12352b; }
button.danger { background: #b42318; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border-bottom: 1px solid #eaecf0; padding: 10px 8px; text-align: left; vertical-align: top; font-size: 14px; }
.break { word-break: break-all; }
.center { text-align: center; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; background: #eef2f4; }
.badge.pending { background: #fff4d6; color: #8a5a00; }
.badge.issued, .badge.success { background: #e5f6ee; color: #0f6b4c; }
.badge.expired, .badge.failed { background: #fde8e6; color: #b42318; }
.badge.rejected, .badge.red { background: #fde8e6; color: #b42318; }
.row-red { background: #fff8f7; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.flash.success { background: #e5f6ee; }
.flash.error { background: #fde8e6; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.grid strong { display: block; margin-top: 4px; }
