* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f5f7;
  color: #1c1e21;
  margin: 0;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 24px 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 20px; margin: 0; }
.topbar a, .topbar button { color: #555; text-decoration: none; font-size: 14px; background: none; border: none; cursor: pointer; }
.card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.channel-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.channel-row:last-child { border-bottom: none; }
.channel-row a { text-decoration: none; color: #1c1e21; font-weight: 600; }
.status { font-size: 12px; padding: 3px 8px; border-radius: 12px; font-weight: 600; }
.status.WORKING { background: #e3f5e6; color: #1e7d33; }
.status.SCAN_QR_CODE { background: #fff4d6; color: #9a6a00; }
.status.STARTING { background: #e8eefc; color: #2953b3; }
.status.FAILED, .status.STOPPED { background: #fbe3e3; color: #a02020; }
.status.UNKNOWN { background: #eee; color: #777; }
.btn { display: inline-block; background: #2953b3; color: #fff; border: none; padding: 9px 16px; border-radius: 6px; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn.secondary { background: #eee; color: #333; }
.btn.danger { background: #a02020; }
input[type=text], input[type=password] {
  width: 100%; padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; margin-bottom: 12px;
}
label { font-size: 13px; color: #555; display: block; margin-bottom: 4px; }
.error { background: #fbe3e3; color: #a02020; padding: 10px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.notice { background: #e3f5e6; color: #1e7d33; padding: 10px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.qr-box { text-align: center; padding: 16px; }
.qr-box img { max-width: 260px; border: 1px solid #eee; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eee; }
.dir-out { color: #2953b3; }
.dir-in { color: #1e7d33; }
.muted { color: #888; font-size: 12px; }
form.inline { display: inline; }
