* { box-sizing: border-box; }
html,body { margin:0; padding:0; font-family: -apple-system, Segoe UI, Tahoma, Arial, sans-serif; background:#f4f6f8; color:#1d2939; }
a { color:#0b74d0; text-decoration:none; }
a:hover { text-decoration:underline; }
.top { display:flex; align-items:center; gap:18px; background:#fff; padding:12px 20px; border-bottom:1px solid #e4e7ec; }
.top .brand { font-weight:700; color:#075e54; font-size:18px; }
.top nav { display:flex; align-items:center; gap:14px; flex:1; }
.top nav a { color:#344054; padding:6px 10px; border-radius:6px; }
.top nav a:hover { background:#f2f4f7; text-decoration:none; }
.top .sp { flex:1; }
.top .user { color:#475467; font-size:14px; }
.top .btn-link { background:#f2f4f7; }
.container { max-width:980px; margin:24px auto; padding:0 16px; }
.card { background:#fff; border:1px solid #e4e7ec; border-radius:10px; padding:20px; margin-bottom:16px; }
.card h2 { margin:0 0 12px 0; font-size:18px; }
label { display:block; margin:10px 0 4px; font-size:14px; color:#344054; }
input[type=text], input[type=password], textarea, select {
  width:100%; padding:10px 12px; border:1px solid #d0d5dd; border-radius:8px; font-size:14px;
  font-family:inherit;
}
textarea { min-height:100px; }
button, .btn {
  background:#075e54; color:#fff; border:0; padding:10px 16px; border-radius:8px; cursor:pointer;
  font-size:14px;
}
button.secondary, .btn.secondary { background:#f2f4f7; color:#344054; border:1px solid #d0d5dd; }
button.danger, .btn.danger { background:#d92d20; }
.flash { padding:10px 14px; border-radius:8px; margin-bottom:12px; font-size:14px; }
.flash.ok { background:#ecfdf3; color:#067647; border:1px solid #abefc6; }
.flash.err { background:#fef3f2; color:#b42318; border:1px solid #fecdca; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:right; padding:10px; border-bottom:1px solid #e4e7ec; font-size:14px; }
th { color:#475467; font-weight:600; background:#fafbfc; }
.status-pill { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.status-connected { background:#ecfdf3; color:#067647; }
.status-qr { background:#fff6e5; color:#b54708; }
.status-disconnected { background:#fef3f2; color:#b42318; }
.qr-box { text-align:center; padding:20px; }
.qr-box img { max-width:280px; width:100%; border:1px solid #e4e7ec; border-radius:12px; padding:12px; background:#fff; }
.center { max-width:420px; margin:60px auto; }
.key-once { background:#fff7ed; border:1px solid #fed7aa; padding:12px; border-radius:8px; word-break:break-all; font-family:monospace; font-size:13px; }
code { background:#f2f4f7; padding:2px 6px; border-radius:4px; font-size:13px; }
pre { background:#1d2939; color:#e4e7ec; padding:14px; border-radius:8px; overflow:auto; font-size:13px; }
.muted { color:#667085; font-size:13px; }
.row { display:flex; gap:10px; align-items:center; }
