:root {
  --fg: #1b1f24;
  --muted: #5b6670;
  --bg: #f5f6f8;
  --card: #fff;
  --line: #dfe3e8;
  --accent: #3b2f8f;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #cf222e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  flex-wrap: wrap;
}
header a {
  color: #fff;
  text-decoration: none;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
}
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
nav .spacer {
  flex: 1;
}
main {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1.25rem;
}
h1 {
  font-size: 1.5rem;
  margin: 0.2rem 0 1rem;
}
h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
th,
td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
}
td.arrow {
  width: 2rem;
  text-align: center;
  font-size: 1.2rem;
}
td.actions {
  white-space: nowrap;
}
small,
.muted {
  color: var(--muted);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 640px;
}
.card.narrow {
  max-width: 380px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
}
label.check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}
input[type='text'],
input[type='password'],
input:not([type]),
select {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
button,
a.button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.small {
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}
button.danger {
  background: var(--bad);
}
button.link {
  background: none;
  padding: 0;
  text-decoration: underline;
}
form.inline {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  margin: 0;
}
.buttons {
  display: flex;
  gap: 0.6rem;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid currentColor;
}
.pill.ok {
  color: var(--ok);
}
.pill.warn {
  color: var(--warn);
}
.pill.bad {
  color: var(--bad);
}
.pill.off {
  color: var(--muted);
}
.flash {
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid;
}
.flash.ok {
  color: var(--ok);
  background: #e9f7ee;
}
.flash.error,
.error {
  color: var(--bad);
}
.flash.error {
  background: #fdecee;
}
table.log td {
  font-size: 0.85rem;
}
tr.error td {
  color: var(--bad);
}
tr.warn td {
  color: var(--warn);
}
.run-status {
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card);
  margin: 0.5rem 0 1rem;
}
.run-status.running {
  color: var(--warn);
  border-color: var(--warn);
}
.run-status.done {
  color: var(--ok);
  border-color: var(--ok);
}
.run-status.warn {
  color: var(--warn);
  border-color: var(--warn);
}
.run-status.failed {
  color: var(--bad);
  border-color: var(--bad);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.run-status.unavailable {
  color: var(--warn);
  border-color: var(--warn);
}
.live-note {
  color: var(--warn);
}

/* "Sign in with Google" button, following https://developers.google.com/identity/branding-guidelines (light theme,
   rectangular): white fill, 1px #747775 stroke, #1F1F1F Google Sans Medium 14/20, the standard-colour G at 20px on white.
   Do not restyle the logo, colours or label. */
button.gsi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 4px;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.25px;
  white-space: nowrap;
}
button.gsi-button svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}
button.gsi-button:hover:not(:disabled) {
  background-image: linear-gradient(rgba(48, 48, 48, 0.08), rgba(48, 48, 48, 0.08));
}
button.gsi-button:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}
button.gsi-button:disabled {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(31, 31, 31, 0.12);
  color: rgba(31, 31, 31, 0.38);
  cursor: default;
}
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.notice.warn {
  border-color: #b7791f;
}
.notice h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.notice p {
  margin: 0.35rem 0;
}
