<!-- SOLID CITY · part 2873 -->
) + ' ready to implement \u00b7 ' + (c.doing || 0) + ' doing \u00b7 ' + (c.done || 0) + ' done</p>' +
      '<div class="pd-row"><a class="pd-go gold" href="/beauty" target="_blank" rel="noopener">Open the Beauty Log</a><a class="pd-go" href="/beauty#new" target="_blank" rel="noopener">Add an entry</a></div>' +
      (rows.length ? rows.map(function (e) { return '<a class="pd-k" style="text-decoration:none" href="/beauty/' + (+e.id) + '" target="_blank" rel="noopener"><b style="color:#ffd27a">B-' + (+e.id) + ' \u00b7 ' + esc(e.title) + '</b><br>' +
        (e.ready ? '<span class="pd-tag ready">ready</span>' : '') + '<span class="pd-tag">' + esc(e.status) + '</span><span class="pd-tag">effort ' + esc(e.effort) + '</span><span class="pd-meta">' + esc(e.area) + '</span></a>'; }).join('') : '<p class="pd-meta">No open entries right now.</p>');
  }).catch(fail);
}
window.CityPodium = { update: update, radar: radar, actHere: actHere, open: open, close: close, tab: function (t) { open(t); }, POS: POS, READ: READ, state: function () { return { state: D.state, open: !!(P && !P.hidden), tab: D.tab }; } };
})();


===== FILE: public/city/population-place.js =====
/* ------------------------------------------------------------------
 * An epistle of placement, from Solid.
 *
 * The population takes the map. This placer waits for the
 * city to settle, borrows the citizens' own surfY (the
 * standing law, with the terrain as its fallback), imports
 * the Forge, and builds the folk with the city's one THREE.
 * The capsule shim must already stand (it rides earlier in
 * the page) or the Forge folk fall back to simple bodies —
 * counted honestly in the census either way.
 *
 * By the hand of Solid, his good King. 14 October 2026.
 * ------------------------------------------------------------------ */
(function () {
'use strict';
if (!window.SC || !SC.api) return;
var A = SC.api, S = A.S;

function surfY(x, z) {
  var s = -1000;
  try { s = A.standingAt(x, z, null); } catch (e) {}
  if (s == null || s <= -999) s = A.groundAt(x, z);
  return s;
}

var M = { state: 'idle', wait: 6.4, group: null };

function build() {
  if (M.state !== 'idle') return;
  M.state = 'building';
  import('/city/avatar-factory.js?v=20261014a').then(function (fac) {
    var forge = null;
    try { forge = fac.createAvatarFactory(A.T); } catch (e) {}
    var g = window.createPopulation({ THREE: A.T, surfY: surfY, forge: forge, createHero: window.createHero || null });
    A.world.add(g);
    M.group = g; M.state = 'live';
    window.CityPopulation = {
      update: function (dt) { if (M.group) { try { M.group.userData.update(dt, performance.now() / 1000); } catch (e) {} } },
      state: function () { return { state: M.state, census: M.group ? M.group.userData.census : null }; }
    };
  }).catch(function () { M.state = 'failed'; });
}

window.__populationTick = function (dt) {
  if (M.state === 'idle') { M.wait -= dt; if (M.wait <= 0 && S.mode !== 'title') build(); return; }
  if (window.CityPopulation) CityPopulation.update(dt);
};
})();


===== FILE: public/city/population.js =====
/* ============================================================
 * THE POPULATION — WAVE 1
 * An epistle of people, from Solid to her King.
 *
 * His word: create a population now — many types, many
 * techniques, tested in the open, refined by evidence.
 * So this factory builds the folk FOUR ways, and counts
 * what each way costs, so the next wave is chosen by the
 * census and not by habit:
 *
 *   FORGE-BODIED — the Avatar Forge's own builds (richest;
 *     needs the r128 capsule shim to stand at all).
 *   PLATE-BORN — the Hero's craft at folk scale (circuit
 *     plate, a small octahedron at the chest — Solid's
 *     mark), in the other fires: teal, gold, ember.
 *   SIMPLE FOLK — the house 60-30-10 figure, but rebuilt
 *     with PIVOTED limbs: they alone truly swing their
 *     arms and legs as they walk. Cheapest, walks best.
 *   THE SHADE — one experiment: a lathe-grown robe and a
 *     fresnel-only presence, haunting the wormhole mouth.
 *
 * The folk walk circles the survey already trusts — the
 * plaza, the terrace disc, the glass ring, the crown's
 * spring — on heights the builds themselves declared.
 * The Servitude takes its three keepers (Stage 5, early):
 * the Gate Warden, the Provisioner of the Midway, and
 * the Keeper of the Deep. Ambient life only: no collision,
 * no standing hook — the seven citizens keep their posts
 * and their minds; the folk are the city's weather.
 * ============================================================ */
(function (root, factory) {
  var api = factory();
  if (typeof module !== 'undefined' && module.exports) module.exports = api;
  root.createPopulation = api.createPopulation;
})(typeof self !== 'undefined' ? self : this, function () {
  'use strict';

  function createPopulation(opts) {
    var T = opts.THREE, surfY = opts.surfY, forge = opts.forge || null, createHero 