# Code review, 16 Nov 2026 (late), branch review/ato-user-pages-16nov

Base: bot2-ato-user-combined-16nov @ a0c36d0 (= bot2-ato-audit-stars-16nov @ 622a3ef + user page mock in
preview-only/user-page-16nov). Nothing merged or deployed to production.

## Fixed here (small, no redesign)
1. Theme script in the page head and shared/topbar.js read and wrote localStorage without a guard on the member
   path. Where storage is blocked (Safari private mode, cookies off) the script threw and the theme was never set.
   Now every read/write goes through a guarded helper (LS / lsGet / lsSet). Cache keys bumped to ?v=20261116b.
2. "N / 150 words" under the review text never changed while typing. It now counts live (server still enforces
   150 words / 1,500 characters).
3. Signed-in members on a school with no reviews were told "Sign in free to write the first one". They now see
   "No reviews yet. Be the first to write one." Guests are unchanged.
4. User page mock: an unknown ?plan= value crashed the page (blank screen); an unknown ?t= left it unstyled.
   Both now fall back to the defaults (founding / amethyst).
5. Preview-only: added a "School owner / staff (own page)" state to preview-only/plans (no star review, no
   anonymous, official replies, unlimited school vote). The generator itself still has no school view.

Tests: 139 passed (138 before + 1 new).
