/* How it works, the end of step 3 · Build it with you: where each version runs (on Work's head),
   the release (always the person's, with what was measured on main, one command's result a line),
   and Reach live on BuffApe Cloud (how it runs: health, requests, errors, speed, backups, watched
   from outside). how-build.css draws the board before them. Only tokens. */

/* Where it runs: this computer, the test server, production */
.envs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.env {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 30px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: var(--border) solid var(--line);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.env i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.env.off i {
  background: var(--line-strong);
}
.env .mono {
  font-size: 12px;
}

/* The release: always the person's */
.rel-yes {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-radius: var(--radius-card);
  border: var(--border) solid var(--accent-line);
  background: var(--accent-tint);
}
.rel-yes-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.rel-yes-h b {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}
.rel-yes small {
  font-size: 14px;
  color: var(--text);
}
.rel-yes .btnx {
  margin-top: var(--space-1);
}
/* What was measured on main, each line a command's result */
.msr {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: var(--border) solid var(--line);
  background: var(--surface);
}
.m-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border) solid var(--line);
}
.m-h b {
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}
.ok-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 12px;
  font-weight: var(--weight-semibold);
}
.cw .ok-chip svg {
  width: 12px;
  height: 12px;
}
.msr ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.msr li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: 5px var(--space-4);
  border-bottom: var(--border) solid var(--line);
}
.msr li > i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok-tint);
  color: var(--ok);
}
.cw .msr li svg {
  width: 14px;
  height: 14px;
}
.msr li b,
.msr li small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.msr li b {
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.msr li small {
  font-size: 13px;
  color: var(--text-muted);
}
.msr code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.m-note {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  color: var(--text-muted);
}

/* Live: how the app runs on BuffApe Cloud */
.lv-health {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--ok-tint);
  color: var(--ok);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}
.lv-health i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.lv-tabs {
  display: flex;
  gap: var(--space-5);
  border-bottom: var(--border) solid var(--line);
  font-size: 14px;
}
.lv-tabs > * {
  padding-bottom: var(--space-2);
  color: var(--text-muted);
}
.lv-tabs b {
  margin-bottom: -1px;
  border-bottom: 2px solid var(--accent);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}
.ape-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.lv-run {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: calc(-1 * var(--space-2));
}
.lv-c {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  border: var(--border) solid var(--line);
  background: var(--surface);
}
.lv-c small,
.lv-c span {
  font-size: 13px;
  color: var(--text-muted);
}
.lv-c small {
  color: var(--text);
}
.lv-c b {
  font-size: 24px;
  line-height: 1.2;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}

@container (max-width: 960px) {
  .msr code,
  .msr li small {
    display: none;
  }
  .lv-run {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width: 680px) {
  .envs .env:first-child,
  .rel-yes small,
  .m-note,
  .lv-tabs,
  .ape-line,
  .lv-c:nth-child(n + 5) {
    display: none;
  }
  .msr li {
    padding-block: 5px;
  }
  .lv-c b {
    font-size: 20px;
  }
}
