:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #1e2a32;
  --muted: #5b6a70;
  --line: #e2e9e6;
  --accent: #246c5a;      /* EffiBridge brand green, sampled from the logo */
  --accent-soft: #e7f1ee;
  --accent-border: #bcd8cf;
  --accent-ink: #ffffff;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #cf222e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { height: 26px; width: auto; }
.login-mark { display: block; height: 52px; width: auto; margin: 0 auto 1.1rem; }
.nav-form { display: flex; align-items: center; gap: 0.75rem; margin: 0; }

main.wrap { padding: 2rem 1.25rem 3rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.card.narrow { max-width: 430px; margin: 3rem auto 1.5rem; }
.card.narrow h1, .card.narrow > .muted { text-align: center; }

h1 { font-size: 1.35rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.muted { color: var(--muted); }
.empty { padding: 1rem 0; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin: 1rem 0 0.3rem; }
input[type="email"], input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  margin-top: 0.9rem;
}
.checkbox-row input { accent-color: var(--accent); width: 1rem; height: 1rem; }

button[type="submit"] {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
button[type="submit"]:hover { filter: brightness(1.08); }
button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }

button.link-button, button.link-button[type="submit"] {
  background: none; border: 0; color: var(--accent);
  cursor: pointer; font-size: 0.9rem; padding: 0;
  width: auto; margin: 0; font-weight: 600;
}
button.link-button:hover { text-decoration: underline; filter: none; }

.banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.error { color: var(--bad); font-size: 0.92rem; margin: 0.75rem 0 0; }
.error a { color: var(--accent); }

.dropzone {
  display: block;
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  margin-top: 1rem;
  font-weight: 400;
}
.dropzone input[type="file"] { display: none; }
.dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-label { display: block; color: var(--muted); }
.dropzone-file { display: block; margin-top: 0.4rem; font-weight: 600; }

table.runs { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.runs th, table.runs td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
table.runs th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-success { background: #dafbe1; color: var(--ok); }
.badge-partial { background: #fff8c5; color: var(--warn); }
.badge-failed { background: #ffebe9; color: var(--bad); }

.queued { text-align: center; padding: 1.5rem 0; }
.queued h1 { color: var(--ok); }

.footer { padding-bottom: 2rem; color: var(--muted); font-size: 0.85rem; }
