:root {
  --bg: #0d0f14;
  --panel: #161a23;
  --line: #262c39;
  --text: #e6e9ef;
  --dim: #8b93a7;
  --accent: #4dffa3;
  --section: #4da3ff;
  --drop: #ff4d6d;
  --build: #ffb84d;
  --still: #9d7dff;
}

* { box-sizing: border-box; }

/* Author styles beat the UA stylesheet, so any rule setting `display` on a
   class silently un-hides an element carrying the `hidden` attribute. The
   download link did exactly that and offered a build that had not happened. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

header h1 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
  letter-spacing: .01em;
}

header h1 span { color: var(--dim); font-weight: 400; }

.spacer { flex: 1; }

main { padding: 24px 22px 60px; max-width: 1180px; margin: 0 auto; }

h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
  margin: 0 0 12px;
  font-weight: 600;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

button, .btn {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--dim); }
button:disabled { opacity: .4; cursor: not-allowed; }

button.primary, .btn.primary {
  background: var(--accent);
  color: #04120a;
  border-color: var(--accent);
  font-weight: 600;
}

select {
  background: #0a0c11;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  color: var(--dim);
  font-weight: 500;
  font-size: 12px;
  padding: 0 10px 8px 0;
  border-bottom: 1px solid var(--line);
}
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
.num { font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.tag.ok { color: var(--accent); border-color: rgba(77,255,163,.35); }
.tag.warn { color: var(--build); border-color: rgba(255,184,77,.35); }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 34px 20px;
  text-align: center;
  color: var(--dim);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: rgba(77,255,163,.05); }

.bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

.muted { color: var(--dim); font-size: 13px; }
.empty { color: var(--dim); font-size: 13.5px; padding: 16px 0; }

#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--accent);
  color: #04120a;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform .22s ease;
  pointer-events: none;
  max-width: 90vw;
  z-index: 50;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--drop); color: #fff; }

.centre { max-width: 420px; margin: 12vh auto; text-align: center; }
.centre p { color: var(--dim); }

kbd {
  background: #0a0c11;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  font: 12px ui-monospace, monospace;
  min-width: 24px;
  display: inline-block;
  text-align: center;
}

input[type=text], input[type=date], input:not([type]) {
  background: #0a0c11;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
}
input[type=date] { color-scheme: dark; }

button.danger { color: var(--drop); border-color: rgba(255,77,109,.3); }
button.danger:hover { border-color: var(--drop); }

a { color: var(--section); }
td a.btn, td button { padding: 5px 12px; font-size: 13px; }

/* Numbered steps: the project page is a sequence, not a pile of panels. */
.step { position: relative; padding-left: 52px; }
.step > .n {
  position: absolute; left: 18px; top: 16px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--line); color: var(--dim);
}
.step.done > .n { background: var(--accent); color: #04120a; }
.step h2 { margin-top: 2px; }
.step .hint { color: var(--dim); font-size: 13px; margin: -4px 0 12px; }

.drop.small { padding: 20px 16px; }
.rig-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
