body { font-family: -apple-system, Arial, sans-serif; max-width: 420px; margin: 60px auto; padding: 0 16px; color: #222; box-sizing: border-box; }
h1 { font-size: 20px; }
h2 { font-size: 16px; margin-top: 28px; }
label { display: block; margin: 14px 0 4px; font-size: 13px; color: #555; }
input, select { width: 100%; padding: 10px; font-size: 16px; box-sizing: border-box; }
input[type="checkbox"] { width: auto; margin-right: 6px; vertical-align: middle; }
.cap-label { display: block; font-size: 14px; margin: 6px 0; font-weight: normal; }
button { margin-top: 18px; padding: 12px 16px; font-size: 16px; min-height: 44px; cursor: pointer; width: 100%; }
button.secondary { background: #fff; border: 1px solid #ccc; }
button.small { width: auto; margin-top: 0; padding: 8px 12px; font-size: 14px; min-height: 36px; }
button.danger { color: #b42318; border-color: #b42318; }
.error { color: #b42318; font-size: 13px; margin-top: 10px; }
.hint { color: #666; font-size: 12px; }
img#qr { display: block; max-width: 200px; width: 100%; height: auto; margin: 12px 0; }
code.backup { display: block; font-family: monospace; background: #f5f5f5; padding: 10px; margin: 8px 0; word-break: break-all; }
a.next { display: inline-block; margin-top: 16px; }
a { color: #0a5; }
hr { border: none; border-top: 1px solid #eee; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
table th, table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
table th { font-size: 12px; color: #666; font-weight: normal; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 3px; background: #eef; color: #335; margin-right: 4px; }
.card { border: 1px solid #eee; border-radius: 6px; padding: 12px; margin: 10px 0; }
.toplink { font-size: 13px; }
@media (max-width: 480px) {
  body { margin: 24px auto; }
}
