* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2430; background: #f3f5f8; }
.top { background: #1f3a5f; color: #fff; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.brand { font-weight: 700; font-size: 17px; }
.brand .sub { font-weight: 400; opacity: .75; margin-left: 6px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
nav a, nav .link { color: #fff; text-decoration: none; opacity: .9; font-size: 14px; }
nav a:hover, nav .link:hover { opacity: 1; text-decoration: underline; }
nav a.owner { font-weight: 600; }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
.card { background: #fff; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.card.narrow { max-width: 420px; margin: 40px auto; }
.card.issued { border: 2px solid #2e7d32; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 4px 0 10px; }
h3 { font-size: 16px; margin: 4px 0 6px; }
.muted { color: #66707f; }
.small { font-size: 13px; }
.error { background: #fdecea; color: #8a1c13; padding: 8px 12px; border-radius: 6px; }
.notice { background: #e8f5e9; color: #1b5e20; padding: 8px 12px; border-radius: 6px; }
.secret { font: 600 18px/1.4 ui-monospace, Consolas, monospace; background: #f1f8e9; padding: 10px 12px; border-radius: 6px; word-break: break-all; user-select: all; }
label { display: block; margin: 8px 0; font-size: 14px; }
input { display: block; width: 100%; max-width: 420px; padding: 8px 10px; font-size: 15px; border: 1px solid #c3cad4; border-radius: 6px; margin-top: 3px; }
.inline label { display: inline-block; margin: 0 6px 0 0; }
.inline input { display: inline-block; width: auto; }
form.inline { display: inline; }
button, a.button { display: inline-block; padding: 7px 14px; font-size: 14px; border-radius: 6px; border: 1px solid #1f3a5f; background: #1f3a5f; color: #fff; cursor: pointer; text-decoration: none; margin: 2px 0; }
button.link { background: none; border: none; padding: 0; margin: 0; }
button.danger { background: #fff; color: #a32015; border-color: #a32015; }
.actions form button { padding: 4px 9px; font-size: 13px; }
.stack button { margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.tile { background: #f6f8fb; border-radius: 6px; padding: 10px 12px; font-size: 13px; color: #4b5563; }
.tile .n { font-size: 24px; font-weight: 700; color: #1d2430; }
.tile .n.small { font-size: 15px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 6px 0 12px; }
.scroll { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; }
table.grid th, table.grid td { border-bottom: 1px solid #e3e7ec; padding: 5px 8px; text-align: left; white-space: nowrap; }
table.grid th { background: #f6f8fb; font-weight: 600; text-transform: capitalize; }
table.grid td.num, table.grid th.num { text-align: right; }
table.narrowtable { width: auto; margin-bottom: 10px; }
tr.off td { color: #9aa3ad; }
.pager { margin-top: 10px; display: flex; gap: 16px; }
code { background: #f1f3f6; padding: 1px 5px; border-radius: 4px; }
