* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #f6f7f5;
  color: #1c2b22;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 24px;
  width: 100%;
  max-width: 420px;
  margin-top: 8vh;
}
h1 { font-size: 22px; margin: 0 0 8px; }
p.sub { color: #5b6b60; margin: 0 0 24px; font-size: 15px; }
input[type="email"], input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d5dcd7;
  border-radius: 10px;
  margin-bottom: 16px;
}
button, .btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #1a5c3a;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}
button:active, .btn:active { background: #144a2e; }
.error { color: #b3261e; font-size: 14px; margin: -8px 0 16px; }
.dashboard { width: 100%; max-width: 420px; margin-top: 6vh; }
.dashboard h1 { font-size: 20px; }
.upload-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 22px 20px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  cursor: pointer;
  color: #1c2b22;
}
.upload-btn:active { background: #eef2ef; }
.upload-btn .icon { font-size: 28px; }
.status-banner {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  display: none;
}
.status-banner.show { display: block; }
.status-banner.success { background: #e4f3e8; color: #1a5c3a; }
.status-banner.failure { background: #fbe9e7; color: #b3261e; }
.signed-in-as { color: #5b6b60; font-size: 14px; margin-bottom: 24px; }
input[type="file"] { display: none; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5e9e6; font-size: 14px; }
.admin-wrap { max-width: 720px; width: 100%; margin-top: 4vh; }
.admin-wrap .card { max-width: none; margin-top: 0; margin-bottom: 24px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.connected { background: #e4f3e8; color: #1a5c3a; }
.pill.disconnected { background: #fbe9e7; color: #b3261e; }
.small-btn { width: auto; display: inline-block; padding: 8px 16px; font-size: 14px; }
label.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
