* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}
a { color: #60a5fa; }
.wrap { max-width: 480px; margin: 0 auto; padding: 60px 20px; }
.wrap.wide { max-width: 760px; }
h1 { font-size: 22px; margin: 0 0 4px; }
p.sub { color: #94a3b8; margin: 0 0 24px; }
.card { background: #1e293b; border-radius: 10px; padding: 24px; }
label { display: block; font-size: 13px; color: #94a3b8; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid #334155;
  background: #0f172a; color: #e2e8f0; font-size: 14px;
}
button {
  margin-top: 20px; width: 100%; padding: 11px; border: none; border-radius: 6px;
  background: #3b82f6; color: white; font-size: 14px; font-weight: 600; cursor: pointer;
}
button:hover { background: #2563eb; }
button.secondary { background: #334155; }
button.secondary:hover { background: #475569; }
button.danger { background: #ef4444; }
button.danger:hover { background: #dc2626; }
.error { color: #f87171; font-size: 13px; margin-top: 10px; min-height: 16px; }
.toggle { text-align: center; margin-top: 16px; font-size: 13px; color: #94a3b8; }
.toggle a { cursor: pointer; }
header.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.machine-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; border-bottom: 1px solid #334155;
}
.machine-row:last-child { border-bottom: none; }
.machine-info .name { font-weight: 600; }
.machine-info .meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; margin-left: 8px; }
.badge.online { background: #166534; color: #bbf7d0; }
.badge.offline { background: #475569; color: #cbd5e1; }
.empty { color: #94a3b8; text-align: center; padding: 30px 0; }
