/* The public social pages (FD_SOCIAL=1, SO-1; SOCIAL.md): Home, Explore, tag pages, a room and a creator, drawn like a social app. Layout only: every colour, size and space is a
   token of ofork-tokens.css, and light is the default (dark follows the device there). No inline style exists on these pages; this file is allowed by exact URL in the CSP.
   A phone is the design (360 and 390 px); from 720 px the pages are one centred column. */

/* header: logo, search icon, Log in, Sign up */
.shell-top--social .o-topbar__end { gap: var(--o-space-1); margin-left: auto; }
.shell-top--social .o-topbar__end .o-btn--primary { margin-left: 0; }

/* the column */
.s-main > * { max-width: 40rem; }
.s-main { padding-bottom: var(--o-space-6); }
.s-main.s-has-join { padding-bottom: calc(8.5rem + var(--o-safe-bottom)); }
.shell-main.s-has-join + .shell-foot { padding-bottom: calc(8rem + var(--o-safe-bottom)); }
.s-copybox { position: fixed; left: -9999px; top: 0; }

/* the sticky join bar (visitors only) */
.s-join { position: fixed; inset: auto 0 0 0; z-index: var(--o-z-bar); display: grid; gap: var(--o-space-2); padding: var(--o-space-3) var(--o-gutter) calc(var(--o-space-3) + var(--o-safe-bottom)); background: var(--o-bg); border-top: 1px solid var(--o-line); }
.s-join > * { width: 100%; max-width: 40rem; margin-inline: auto; }
.s-join__text { margin: 0; font-size: var(--o-text-callout); color: var(--o-ink-2); line-height: var(--o-leading-snug); }
.s-join__text b { color: var(--o-ink); font-weight: var(--o-weight-bold); }
.s-join__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--o-space-3); }
.s-join__btns .o-btn { width: 100%; }

/* "Building right now" */
.s-now { padding-top: var(--o-space-3); border-bottom: 1px solid var(--o-line); }
.s-now__title { margin: 0; padding: var(--o-space-2) var(--o-gutter); font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); }
.s-now__row { display: flex; gap: var(--o-space-4); margin: 0; padding: var(--o-space-2) var(--o-gutter) var(--o-space-4); list-style: none; overflow-x: auto; scrollbar-width: none; }
.s-now__row::-webkit-scrollbar { display: none; }
.s-now__item { display: grid; justify-items: center; gap: var(--o-space-1); width: 5.75rem; color: inherit; text-decoration: none; }
.s-ring { display: grid; place-items: center; padding: 3px; border-radius: 50%; border: 3px solid var(--o-accent); }
.s-ring .o-avatar { --_av: 3.25rem; }
.s-now__name { max-width: 100%; font-size: var(--o-text-meta); text-align: center; }

/* cards between posts: the weekly theme, the hand-picked shelf */
.s-card { width: calc(100% - 2 * var(--o-gutter)); margin: var(--o-space-4) auto; padding: var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); }
.s-card--theme { padding: 0; border: 0; }
.s-card .d-block, .s-card .o-pad { padding-top: 0; padding-inline: 0; }
.s-card .o-sechead { padding-inline: 0; }
.s-card .d-shelf { padding-inline: 0; }
.s-card .o-section { margin: 0; padding: 0; }

/* a post */
.s-post { padding-bottom: var(--o-space-3); border-bottom: 1px solid var(--o-line); }
.s-post__head { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-2); padding: var(--o-space-3) var(--o-space-2) var(--o-space-3) var(--o-gutter); }
.s-who { display: flex; align-items: center; gap: var(--o-space-3); min-width: 0; flex: 1 1 auto; color: inherit; text-decoration: none; }
a.s-who:hover .s-who__text b { text-decoration: underline; }
.s-who__text { display: grid; min-width: 0; line-height: 1.25; }
.s-who__text b { font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); }
/* room · version · date wraps to a second line; only the @handle above it is cut (SO1-R4) */
.s-who__text .o-meta { white-space: normal; overflow-wrap: anywhere; }
.s-iconlink { display: inline-grid; place-items: center; flex: none; width: var(--o-tap); height: var(--o-tap); border-radius: 50%; color: var(--o-ink); text-decoration: none; }
.s-iconlink:hover, .s-act:hover { background: var(--o-hover); }
.s-media { --_ratio: 4 / 3; border-radius: 0; }
.s-media__link { position: absolute; inset: 0; z-index: 1; }
.s-play { position: absolute; left: var(--o-space-3); bottom: var(--o-space-3); z-index: 2; display: inline-flex; align-items: center; gap: var(--o-space-1); min-height: var(--o-btn-h); padding: 0 var(--o-space-4) 0 var(--o-space-3); border-radius: var(--o-radius-full); background: var(--o-accent); color: var(--o-on-accent); font-weight: var(--o-weight-bold); text-decoration: none; box-shadow: inset 0 0 0 1px var(--o-fill-edge); }
.s-vtag { position: absolute; right: var(--o-space-3); bottom: var(--o-space-3); z-index: 2; }
.s-actions { display: flex; align-items: center; gap: var(--o-space-1); padding: var(--o-space-1) var(--o-space-2) 0 var(--o-space-2); }
.s-actions__end { margin-left: auto; }
.s-act { display: inline-grid; place-items: center; width: var(--o-tap); height: var(--o-tap); border-radius: 50%; color: var(--o-ink); text-decoration: none; }
.s-act[data-done] { color: var(--o-accent-mark); }
.s-caption { margin: var(--o-space-1) var(--o-gutter) 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: var(--o-leading-snug); }
.s-caption__who { color: inherit; text-decoration: none; }
.s-caption__text { color: var(--o-ink); }
.s-tags { margin: 0 var(--o-gutter); }
.s-comments { margin: 0 var(--o-gutter); }
.s-comments a { display: inline-flex; align-items: center; min-height: var(--o-tap); color: var(--o-ink-2); text-decoration: none; }
.s-comments a:hover { color: var(--o-ink); text-decoration: underline; }
.s-feed { display: block; }

/* paging, empty states, headings */
.s-pager { display: flex; flex-wrap: wrap; gap: var(--o-space-3); padding: var(--o-space-5) var(--o-gutter) 0; }
.s-empty { margin: var(--o-space-5) var(--o-gutter); }
.s-empty .o-btn { margin-top: var(--o-space-3); }
.s-title { margin: 0; padding: var(--o-space-5) var(--o-gutter) var(--o-space-2); font-size: var(--o-text-title-1); font-weight: var(--o-weight-heavy); line-height: var(--o-leading-tight); letter-spacing: var(--o-tracking-display); overflow-wrap: anywhere; }
.s-sub { margin: 0; padding-inline: var(--o-gutter); color: var(--o-ink-2); max-width: var(--o-measure); overflow-wrap: anywhere; }
.s-heading { margin: 0; padding: var(--o-space-4) var(--o-gutter) var(--o-space-2); font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); overflow-wrap: anywhere; }

/* Explore: search, chips, the picture grid */
.s-search { padding: var(--o-space-3) var(--o-gutter) var(--o-space-1); }
.s-chips { padding: var(--o-space-2) var(--o-gutter) var(--o-space-3); gap: var(--o-space-2); }
.s-chips .o-chip { text-decoration: none; }
.s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 2px; }
.s-grid--equal { grid-auto-flow: row; }
.s-grid__cell { aspect-ratio: 1; min-width: 0; }
.s-grid__cell--big { grid-column: span 2; grid-row: span 2; }
.s-grid__cell--big.s-grid__cell--right { grid-column: 2 / span 2; }
.s-tile { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--o-game); color: var(--o-game-on); text-decoration: none; }
.s-tile .d-art { position: absolute; inset: 0; }
.s-tile > .d-pic { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--o-surface-2); }
.s-tile__name { position: absolute; left: var(--o-space-2); bottom: var(--o-space-2); z-index: 1; max-width: calc(100% - var(--o-space-4)); padding: 0.125rem 0.375rem; border-radius: var(--o-radius-xs); background: var(--o-media-chip); color: var(--o-on-media-chip); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: var(--o-text-meta); font-weight: var(--o-weight-bold); line-height: 1.2; }
.s-badge { position: absolute; top: var(--o-space-2); right: var(--o-space-2); z-index: 1; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: var(--o-radius-sm); background: var(--o-media-chip); color: var(--o-on-media-chip); font-family: var(--o-font-mono); font-size: var(--o-text-micro); line-height: 1.3; }
.s-tile:focus-visible { outline: var(--o-focus-width) solid var(--o-focus); outline-offset: -3px; }

/* tap targets are at least --o-tap (44 px) high: padding and min sizes, never bigger text (SO1-R5) */
.s-main .o-chip { min-height: var(--o-btn-h); }   /* FD-DENSITY-1: 36 px box, the chip's own ::after is the 44 px tap area */
.shell-top--social .o-iconbtn { min-width: var(--o-tap); min-height: var(--o-tap); }
.s-who { min-height: var(--o-tap); }
.s-creator .o-btn, .s-creator .cm-follow .o-btn { min-height: var(--o-btn-h); }
.s-caption__who { display: inline-block; padding-block: var(--o-space-3); margin-block: calc(-1 * var(--o-space-3)); }
.s-caption { padding-block: var(--o-space-3); margin-block: calc(var(--o-space-1) - var(--o-space-3)) calc(-1 * var(--o-space-3)); }
.s-tags a, .s-about .d-tags a, .s-pager .o-link, .s-update__foot a, .d-list a { display: inline-flex; align-items: center; min-height: var(--o-tap); }

/* the footer's short links (Help, Ajuda): 29 and 36 px wide before */
.s-main ~ .shell-foot a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--o-tap); }

/* a room */
.s-roombar { position: sticky; top: 0; z-index: var(--o-z-bar); background: var(--o-bg); display: flex; align-items: center; gap: var(--o-space-1); padding: 0 var(--o-space-2); min-height: var(--o-bar); border-bottom: 1px solid var(--o-line); }
.s-roombar__title { flex: 1 1 auto; min-width: 0; font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); }
.s-hero { --_ratio: 16 / 9; border-radius: 0; }
.s-room { padding: var(--o-space-4) var(--o-gutter) var(--o-space-2); }
.s-room__title { margin: 0 0 var(--o-space-3); font-size: var(--o-text-title-1); font-weight: var(--o-weight-heavy); line-height: var(--o-leading-tight); letter-spacing: var(--o-tracking-display); overflow-wrap: anywhere; }
.s-creator { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); }
.s-creator .o-btn { flex: none; }
.s-roomact { display: flex; align-items: center; gap: var(--o-space-2); margin-top: var(--o-space-3); }
.s-play-lg { flex: 1 1 auto; text-decoration: none; }
.s-grow { flex: 1 1 auto; }
.s-stats { display: flex; flex-wrap: wrap; gap: var(--o-space-1) var(--o-space-4); margin: var(--o-space-3) 0 0; font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); }
.s-about { margin: var(--o-space-3) 0 0; max-width: var(--o-measure); overflow-wrap: anywhere; line-height: var(--o-leading-snug); }
.s-about .d-tags { display: inline-flex; margin-left: var(--o-space-1); }
.s-tabs { margin-top: var(--o-space-3); }
.s-updates { padding-bottom: var(--o-space-2); }
.s-update { display: flex; gap: var(--o-space-3); padding: var(--o-space-4) var(--o-gutter); border-bottom: 1px solid var(--o-line); }
.s-update__pic { --_ratio: 1; flex: none; width: 4rem; align-self: flex-start; border-radius: var(--o-radius-md); }
.s-update__body { min-width: 0; flex: 1 1 auto; }
.s-ver { font-family: var(--o-font-mono); }
.s-update__title { margin: 0; font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); line-height: var(--o-leading-snug); overflow-wrap: anywhere; }
.s-update__text { margin: var(--o-space-1) 0 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--o-ink-2); line-height: var(--o-leading-snug); }
.s-update__foot { margin: var(--o-space-2) 0 0; overflow-wrap: anywhere; }
.s-update .o-ai { margin: var(--o-space-2) 0 0; }

/* a creator */
.s-profile__avatar { --_av: 4rem; }
.s-creatorpage .s-stats, .s-creatorpage .s-about { padding-inline: var(--o-gutter); }
.s-creatorpage .hub-own { padding-inline: var(--o-gutter); }

@media (min-width: 720px) {
  .s-media, .s-hero { border-radius: var(--o-radius-lg); }
  .s-media, .s-hero { margin-inline: 0; }
  .s-join { grid-template-columns: 1fr auto; align-items: center; column-gap: var(--o-space-5); }
  .s-join > * { max-width: none; margin-inline: 0; width: auto; }
  .s-join { padding-inline: max(var(--o-gutter), calc((100vw - 40rem) / 2)); }
  .s-join__btns { grid-template-columns: auto auto; }
}

/* ---- likes and saves (SO-2): the heart and the bookmark are form buttons ---- */
.s-actform { display: contents; margin: 0; }
button.s-act { border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
button.s-act:active { background: var(--o-press); }
.s-act.is-on .o-icon { fill: currentColor; }
.s-likes { margin: 0; padding: 0 var(--o-gutter); font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); }
.s-likes[hidden] { display: none; }
.s-update__act { display: flex; align-items: center; gap: var(--o-space-2); margin-top: var(--o-space-1); }
.s-update__act .s-likes { padding: 0; }
.s-roomact .s-actform, .s-actions .s-actform { display: contents; }
.s-refused { padding-top: var(--o-space-5); }
.s-newroom { padding-top: var(--o-space-5); }
.s-newroom__list { list-style: none; margin: var(--o-space-4) 0 0; padding: 0 var(--o-gutter); display: grid; gap: var(--o-space-3); }
.s-newroom__row { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); flex-wrap: wrap; padding: var(--o-space-3) 0; border-top: 1px solid var(--o-line); }
.s-newroom__origin { overflow-wrap: anywhere; min-width: 0; }
.s-first { padding-top: var(--o-space-5); }
.s-first__desc { margin: 0; color: var(--o-ink-2); }
.s-first__test { margin: var(--o-space-4) var(--o-gutter) 0; }
.s-first__list { list-style: none; margin: var(--o-space-4) 0 0; padding: 0 var(--o-gutter); display: grid; gap: var(--o-space-4); }
.s-first__plan { display: grid; gap: var(--o-space-2); padding: var(--o-space-4); border: 1px solid var(--o-line); border-radius: var(--o-radius-lg, 12px); }
.s-first__plan .o-btn { justify-self: start; }
.s-first .plan-price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-2) var(--o-space-3); margin: 0; font-family: var(--o-font-mono); }
.s-first .plan-inc { margin: 0; color: var(--o-ink-2); font-size: var(--o-text-callout); }
.s-first > .plan-inc { margin: var(--o-space-4) 0 0; padding-inline: var(--o-gutter); }
.s-first__name { margin: 0; font-size: var(--o-text-title-3); }
.s-first__pc { margin: var(--o-space-4) 0 0; padding-inline: var(--o-gutter); }

/* ---- signed-in Home (SO-2, sketch 05): Your room, Creators to follow, the Following / New chips ---- */
.s-fcards { padding-bottom: var(--o-space-2); border-bottom: 1px solid var(--o-line); }
.s-fcards__row { display: flex; gap: var(--o-space-3); margin: 0; padding: var(--o-space-1) var(--o-gutter) var(--o-space-4); list-style: none; overflow-x: auto; scrollbar-width: none; }
.s-fcards__row::-webkit-scrollbar { display: none; }
.s-fcard { flex: none; display: grid; justify-items: center; gap: var(--o-space-2); width: 9.5rem; padding: var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); }
.s-fcard__who { display: grid; justify-items: center; gap: var(--o-space-1); min-width: 0; width: 100%; color: inherit; text-decoration: none; text-align: center; }
.s-fcard__who b { max-width: 100%; font-size: var(--o-text-callout); }
.s-fcard form { margin: 0; width: 100%; }
.s-fcard .o-btn { width: 100%; }
.s-main > .s-chips { padding-top: var(--o-space-3); }

/* ---- Activity (SO-2, sketch 11) ---- */
.s-ac__list { margin: 0; padding: 0; list-style: none; }
.s-ac__row { display: flex; align-items: center; gap: var(--o-space-3); padding: var(--o-space-3) var(--o-gutter); position: relative; }
.s-ac__main { flex: 1 1 auto; min-width: 0; }
.s-ac__text { margin: 0; overflow-wrap: anywhere; line-height: var(--o-leading-snug); }
.s-ac__text b { font-weight: var(--o-weight-bold); }
.s-ac__link { color: inherit; text-decoration: none; }
.s-ac__link:hover { text-decoration: underline; }
.s-ac__time { white-space: nowrap; }
.s-ac__icon { display: inline-grid; place-items: center; background: var(--o-surface-2); color: var(--o-ink); flex: none; }
.s-ac__row .o-avatar { flex: none; }
.s-ac__row form { margin: 0; flex: none; }
.s-ac__new { position: absolute; top: var(--o-space-2); right: calc(var(--o-gutter) / 2); width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--o-accent-mark); }
.s-ac__group .s-heading { padding-top: var(--o-space-4); }

/* ---- mute and block menus, and the Muted and blocked list (SO-2) ---- */
.s-more { position: relative; display: inline-block; }
.s-more__btn { display: inline-grid; place-items: center; width: var(--o-tap); height: var(--o-tap); border-radius: 50%; color: var(--o-ink); cursor: pointer; list-style: none; }
.s-more__btn::-webkit-details-marker { display: none; }
.s-more__btn:hover { background: var(--o-hover); }
.s-more[open] > .s-more__btn { background: var(--o-hover); }
.s-more__panel { display: grid; gap: var(--o-space-1); max-width: 20rem; margin-top: var(--o-space-1); padding: var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-md); background: var(--o-bg); }
.s-more__panel form { margin: 0; }
.s-more__panel .o-btn { width: 100%; justify-content: flex-start; }
.s-more__panel .o-meta { margin: 0; white-space: normal; }
.s-me__more { padding: 0 var(--o-gutter); }
.s-bl__list { margin: 0; padding: 0; list-style: none; }
.s-bl__row { display: flex; align-items: center; gap: var(--o-space-3); padding: var(--o-space-3) var(--o-gutter); border-bottom: 1px solid var(--o-line); }
.s-bl__main { display: grid; flex: 1 1 auto; min-width: 0; }
.s-bl__main b { overflow-wrap: anywhere; }
.s-bl__row form { margin: 0; flex: none; }
.cm-act .s-more { margin-left: auto; }

/* ---- your profile and its edit page (SO-2, sketch 06) ---- */
.s-me__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); padding: var(--o-space-3) var(--o-gutter) 0; }
.s-me__handle { margin: 0; font-size: var(--o-text-title-2); font-weight: var(--o-weight-heavy); line-height: var(--o-leading-tight); overflow-wrap: anywhere; min-width: 0; }
.s-me__name { padding-inline: var(--o-gutter); font-weight: var(--o-weight-bold); color: var(--o-ink); }
.s-me__bio { padding-inline: var(--o-gutter); }
.s-stickers__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--o-space-1); margin: 0; padding: var(--o-space-3) var(--o-gutter); list-style: none; }
.s-sticker { display: grid; justify-items: center; align-content: start; gap: var(--o-space-1); min-width: 0; text-align: center; }
.s-sticker__dot { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--o-line); color: var(--o-ink-2); }
.s-sticker.is-earned .s-sticker__dot { border: 0; background: var(--o-accent); color: var(--o-on-accent); }
.s-sticker__name { font-size: 0.75rem; line-height: 1.2; overflow-wrap: anywhere; color: var(--o-ink-2); }
.s-sticker.is-earned .s-sticker__name { color: var(--o-ink); }
.s-sticker__dot .o-icon { width: 1.5rem; height: 1.5rem; }
.s-edit .s-ed { padding: var(--o-space-3) var(--o-gutter) 0; }
.s-ed--photo { display: flex; align-items: center; gap: var(--o-space-4); }
.s-ed__help { margin: var(--o-space-2) var(--o-gutter) 0; }
.s-ed__photoform { display: grid; gap: var(--o-space-2); min-width: 0; }
.s-ed__photoform form { margin: 0; display: grid; gap: var(--o-space-2); }
.s-file { position: relative; cursor: pointer; }
.s-form { display: grid; gap: var(--o-space-3); }
.s-notice { margin: var(--o-space-3) var(--o-gutter) 0; padding: var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-md); }
.s-act-share { text-decoration: none; }
.s-me__nobio { text-decoration: none; }
.s-me__bio { margin: var(--o-space-1) 0 0; }
.s-me__name { margin-bottom: 0; }
.s-me__nobio { display: inline-flex; align-items: center; min-height: var(--o-tap); }
/* a row of a list inside the app (Edit profile's @handle, Settings): label left, what it does right, 44 px tall */
.s-row { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); min-height: var(--o-tap); padding-block: var(--o-space-2); list-style: none; cursor: pointer; color: var(--o-ink); text-decoration: none; }
.s-row::-webkit-details-marker { display: none; }
.s-row__label { min-width: 0; overflow-wrap: anywhere; font-weight: var(--o-weight-semibold); }
.s-row__go { color: var(--o-ink-2); }
.s-ed--handle { border-top: 1px solid var(--o-line); margin-top: var(--o-space-4); }
.s-ed--handle[open] .s-row { margin-bottom: var(--o-space-2); }
.s-roombar h1.s-roombar__title { margin: 0; }
/* UX-1: Settings (sketch 12): grouped list rows, 44 px tall, Sign out last and quiet */
.s-list { margin: 0; padding: var(--o-space-2) var(--o-gutter); list-style: none; border-bottom: 1px solid var(--o-line); }
.s-list .s-row { padding-inline: 0; }
.s-row--static { cursor: default; }
.s-lang { display: inline-flex; gap: var(--o-space-1); }
.s-lang__on, .s-lang__link { display: inline-flex; align-items: center; min-height: var(--o-tap); padding-inline: var(--o-space-2); }
.s-lang__on { font-weight: var(--o-weight-bold); color: var(--o-ink); }
.s-lang__link { color: var(--o-ink-2); text-decoration: underline; }
.s-signout { margin: var(--o-space-4) var(--o-gutter) 0; }
.s-signout__btn { color: var(--o-danger); padding-inline: 0; justify-content: flex-start; }

/* ---- one app: the Projects tab and New project (PJ-2, FD_PROJECTS=1) ---- design-system tokens and components only */
.s-pj { padding-bottom: var(--o-space-6); }
.s-pj__group { padding-top: var(--o-space-3); }
.s-pj__server { margin: 0; padding: var(--o-space-3) var(--o-gutter) var(--o-space-1); font-size: var(--o-text-meta); font-weight: var(--o-weight-semibold); color: var(--o-ink-2); overflow-wrap: anywhere; }
.s-pj__list { list-style: none; margin: 0; padding: 0 var(--o-gutter); display: grid; }
.s-pj__row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--o-space-3); row-gap: var(--o-space-2); align-items: center; padding-block: var(--o-space-3); border-bottom: 1px solid var(--o-line); }
.s-pj__cover { display: block; width: 3rem; height: 3rem; border-radius: var(--o-radius-md); overflow: hidden; background: var(--o-surface-2); }
.s-pj__cover svg { display: block; width: 100%; height: 100%; }
.s-pj__text { display: grid; gap: 2px; min-width: 0; }
.s-pj__name { font-weight: var(--o-weight-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.s-pj__meta { font-size: var(--o-text-meta); color: var(--o-ink-2); overflow-wrap: anywhere; }
.s-pj__row[data-state="no_ai"] .s-pj__meta, .s-pj__row[data-state="cannot_start"] .s-pj__meta, .s-pj__row[data-state="frozen"] .s-pj__meta { color: var(--o-ink); }
.s-pj__time { font-size: var(--o-text-meta); color: var(--o-ink-3); }
.s-pj__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--o-space-2); }
.s-pj__down { margin: 0; padding: var(--o-space-2) var(--o-gutter); color: var(--o-ink); overflow-wrap: anywhere; }
.s-pj__again { margin: 0 var(--o-gutter); }
.s-pj__home { padding-top: var(--o-space-4); }
.s-pj__homerow { display: grid; gap: var(--o-space-2); margin: 0 var(--o-gutter); padding: var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-md); }
.s-pj__homeline { font-size: var(--o-text-callout); color: var(--o-ink-2); overflow-wrap: anywhere; }
.s-pj .s-empty { margin: var(--o-space-4) var(--o-gutter) 0; }
.s-pj__form { display: grid; gap: var(--o-space-4); padding: var(--o-space-3) var(--o-gutter) 0; }
.s-pj__field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--o-space-2); }
.s-pj__field > legend { padding: 0; margin-bottom: var(--o-space-1); }
.s-pj__starter { align-items: center; }
.s-pj__starter .o-choice__text { min-width: 0; overflow-wrap: anywhere; }
.s-pj__art { flex: none; width: 2.75rem; height: 2.75rem; border-radius: var(--o-radius-md); overflow: hidden; background: var(--o-surface-2); }
.s-pj__art svg { display: block; width: 100%; height: 100%; }
.s-pj__usage { margin: 0; }
.s-pj__create { justify-self: start; min-width: 8rem; }
.s-pj__notice, .s-pj__saved { margin: var(--o-space-3) var(--o-gutter) 0; }
.s-pj__servers { margin-top: var(--o-space-2); }
.s-pj__servers .o-tabs__tab { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.s-first__draft { margin: var(--o-space-3) var(--o-gutter) 0; }
@media (min-width: 900px) { .s-pj { max-width: 40rem; } }
.s-pj__link { color: inherit; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
.s-pj__link:hover { text-decoration: underline; }
a.s-pj__cover { color: inherit; }
.s-pj__pendinglist[hidden] { display: none; }
.s-pj__cover--pending { background: var(--o-surface-2); border: 1px dashed var(--o-control); }
.s-pj__pending .s-pj__meta { color: var(--o-warn); }
.s-pj__notice, .s-pj__saved, .s-first__draft { grid-template-columns: minmax(0, 1fr); }
.s-pj__notice .o-notice__actions { grid-column: 1; }
.s-pj__notice .o-btn { white-space: nowrap; }
.s-pj__homerow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.s-pj__homerow .s-pj__actions { grid-column: 2; }
/* MV-1 (Move all): the card above the project rows; same tokens, no new colours */
.s-pj__move { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--o-space-2); margin: var(--o-space-3) var(--o-gutter) 0; padding: var(--o-space-3); border: 1px solid var(--o-line); border-radius: var(--o-radius-md); }
.s-pj__moveserver { padding: 0; }
.s-pj__movetitle { margin: 0; font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); line-height: var(--o-leading-tight); overflow-wrap: anywhere; }
.s-pj__movelede { margin: 0; font-size: var(--o-text-callout); color: var(--o-ink-2); overflow-wrap: anywhere; }
.s-pj__movelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.s-pj__moverow { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); padding-block: var(--o-space-2); border-top: 1px solid var(--o-line); }
.s-pj__movetext { min-width: 0; }
.s-pj__movetext .s-pj__name { display: block; white-space: normal; overflow-wrap: anywhere; }
.s-pj__moverow .o-btn { flex: none; }
.s-pj__moveall { justify-self: start; }
.s-first__draft + .s-sub, .s-newroom .s-sub + .s-sub { margin-top: var(--o-space-3); }
.s-first__draft .o-notice__actions { grid-column: 1; }
.s-newroom .s-sub .o-btn { margin-top: var(--o-space-1); }

/* ---- FD-APP-REWORK-1 (the owner's design of 2026-11-23): signed-in Home and Profile ---- */
/* the Continue bar */
.s-cont { display: flex; align-items: center; gap: var(--o-space-3); min-height: 3.25rem; margin: var(--o-space-3) var(--o-gutter) 0; padding: var(--o-space-2) var(--o-space-3) var(--o-space-2) var(--o-space-2); border: 1px solid var(--o-line); border-radius: var(--o-radius-xl); background: var(--o-surface); color: inherit; text-decoration: none; }
.s-cont-slot[hidden].is-loading { display: block; min-height: 3.75rem; }   /* room for the bar while it is being fetched (review H1) */
.s-cont:active { background: var(--o-surface-2); }
.s-cont__tile { position: relative; display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; overflow: hidden; border-radius: var(--o-radius-md); background: var(--o-surface-2); }
.s-cont__tile svg { display: block; width: 100%; height: 100%; }
.s-cont__tile--plus { background: var(--o-accent); color: var(--o-on-accent); box-shadow: inset 0 0 0 1px var(--o-fill-edge); }
.s-cont__tile--plus .o-icon { stroke-width: 2.6; }
.s-cont__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-cont__text { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 0 var(--o-space-3); min-width: 0; }
.s-cont__name { min-width: 0; max-width: 100%; font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); line-height: 1.3; }
.s-cont__rook { display: inline-flex; align-items: center; gap: 6px; font-size: var(--o-text-meta); color: var(--o-ink-2); }
.s-cont__rook.is-on { color: var(--o-accent-mark); }
.s-cont__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.s-cont__go { display: inline-flex; align-items: center; flex: none; gap: 2px; color: var(--o-ink-2); font-size: var(--o-text-meta); }

/* underline tabs (FD-PROFILE-LOOK-1): a thin rule under the whole row; the active tab has a thick underline under its own label (black; the accent in dark mode) */
.s-ptabs { --_ul: var(--o-ink); gap: var(--o-space-4); margin-top: var(--o-space-4); padding-inline: var(--o-gutter); }
.s-ptab { padding: 0; font-size: var(--o-text-body); font-weight: var(--o-weight-bold); text-decoration: none; }
.s-ptab[aria-current="page"]::after { left: 0; right: 0; height: 3px; bottom: -1px; border-radius: 3px 3px 0 0; background: var(--_ul); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-ptabs { --_ul: var(--o-accent); } }
[data-theme="dark"] .s-ptabs { --_ul: var(--o-accent); }

/* the post card */
.s-feed--cards { display: grid; gap: var(--o-space-4); padding: var(--o-space-4) var(--o-gutter) 0; }
.s-fc { padding: 0 var(--o-space-2) var(--o-space-2); border: 1px solid var(--o-line); border-radius: var(--o-radius-xl); background: var(--o-surface); }
.s-fc__chrome { display: flex; align-items: center; justify-content: space-between; height: 1.375rem; padding: 0 var(--o-space-2); }
.s-fc__dashes { display: inline-flex; gap: 4px; }
.s-fc__dashes i { width: 1rem; height: 3px; border-radius: 2px; background: var(--o-control); }
.s-fc__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--o-control); }
.s-fc__dot.is-live { background: var(--o-accent-mark); }
.s-fc__cover { --_ratio: 20 / 9; border-radius: var(--o-radius-lg); background: var(--o-surface-2); }
.s-fc__chip { position: absolute; left: var(--o-space-2); top: var(--o-space-2); z-index: 2; max-width: calc(100% - var(--o-space-4)); padding: 0.25rem 0.5rem; border-radius: var(--o-radius-sm); background: var(--o-media-chip); color: var(--o-on-media-chip); font-family: var(--o-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-fc__pills { position: absolute; right: var(--o-space-2); bottom: var(--o-space-2); z-index: 2; display: flex; gap: var(--o-space-2); }
.s-fc__pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--o-space-1); min-height: var(--o-btn-h); padding: 0 var(--o-space-4) 0 var(--o-space-3); border-radius: var(--o-radius-lg); background: var(--o-accent); color: var(--o-on-accent); font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); text-decoration: none; box-shadow: inset 0 0 0 1px var(--o-fill-edge); }
.s-fc__pill:not(.s-fc__pill--play) { padding-inline: var(--o-space-4); }
.s-fc__pill::after, .s-play::after { content: ""; position: absolute; inset: calc((var(--o-tap) - var(--o-btn-h)) / -2) 0; }   /* FD-DENSITY-1: a 36 px pill, a 44 px tap area */
.s-fc__who { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-2); margin-top: var(--o-space-2); padding-inline: var(--o-space-1); }
.s-fc__who .s-who { gap: var(--o-space-2); }
.s-fc__who .o-avatar { --_av: 2rem; border-radius: var(--o-radius-md); background: var(--o-game-tint); color: var(--o-game-ink); font-size: 0.9375rem; }
.s-fc__who b { font-size: var(--o-text-headline); font-weight: var(--o-weight-medium); }
.s-fc__age { flex: none; color: var(--o-ink-2); font-size: var(--o-text-meta); }
.s-fc__titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--o-space-2); margin-top: var(--o-space-2); padding-inline: var(--o-space-1); }
.s-fc__title { margin: 0; min-width: 0; font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); line-height: var(--o-leading-tight); overflow-wrap: anywhere; }
.s-fc__title { position: relative; }
.s-fc__title a { color: inherit; text-decoration: none; }
.s-fc__title a::after { content: ""; position: absolute; inset: -10px 0; }   /* a 44 px tap area, the way .o-btn--sm gets one */
.s-fc__meta { margin: var(--o-space-1) 0 0; padding-inline: var(--o-space-1); color: var(--o-ink-2); font-size: var(--o-text-meta); overflow-wrap: anywhere; }
.s-fc__lin { margin: var(--o-space-1) 0 0; padding-inline: var(--o-space-1); }
/* FORK-IT-A1 (FD_FORK_LINEAGE=1): the lineage line and the fork-term notice, small mono type that wraps; no button, no count */
.s-lin { display: flex; flex-wrap: wrap; gap: 0 var(--o-space-4); color: var(--o-ink-2); font-size: var(--o-text-meta); overflow-wrap: anywhere; min-width: 0; }
.s-lin a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }   /* FORK-IT-D1: "from <title> by @creator" is a link only when ofork.dev's own table agrees; it reads as one */
.s-post__lin { margin: var(--o-space-1) 0 0; padding-inline: var(--o-gutter); }
.s-room__lin { margin: 0 0 var(--o-space-3); }
/* FORK-IT-C1A (FD_FORK=1): the outlined Fork it link on a card and on the room page (a plain link: the same bytes for everybody) */
.s-fc__fork { margin: var(--o-space-2) var(--o-space-1) 0; display: flex; width: fit-content; }
.s-room__fork { margin: var(--o-space-3) 0 0; display: flex; width: fit-content; }
.s-post__fork { margin: var(--o-space-2) var(--o-gutter) 0; display: flex; width: fit-content; }
/* FORK-IT-C1A (FD_FORK=1): the fork screen (/fork/<listing id>): the source, what you get, the term, where, the name, the tick, one lime button. Same gutter as New project. */
.s-fk { display: grid; gap: var(--o-space-3); align-content: start; padding-bottom: var(--o-space-6); }
.s-fk__src { display: grid; gap: var(--o-space-2); padding-inline: var(--o-gutter); margin-top: var(--o-space-2); }
.s-fk__cover { --_ratio: 20 / 9; border-radius: var(--o-radius-lg); background: var(--o-surface-2); }
.s-fk__title { margin: var(--o-space-2) 0 0; font-size: var(--o-text-title-2); font-weight: var(--o-weight-heavy); line-height: var(--o-leading-tight); overflow-wrap: anywhere; }
.s-fk__by { margin: 0; overflow-wrap: anywhere; }
.s-fk__get, .s-fk__term { margin: 0; padding-inline: var(--o-gutter); overflow-wrap: anywhere; }
.s-fk__label { color: var(--o-ink-2); font-size: var(--o-text-meta); }
.s-fk__on, .s-fk__none { margin: 0; overflow-wrap: anywhere; }
.s-fk .s-pj__notice { margin: 0 var(--o-gutter); }
.s-fk__go { width: 100%; }
/* FORK-IT-C1B (FD_FORK=1): New project's third choice and the Fork a project page (Saved, Popular, Search). Rows are the Projects tab's rows. */
.s-ff__choice { color: inherit; text-decoration: none; }
.s-ff__glyph { width: 1.375rem; height: 1.375rem; }   /* the radio's size: the art lines up with the starters' */
.s-ff__chev { width: 1.25rem; height: 1.25rem; color: var(--o-ink-3); }
.s-ff__tabs { margin-top: var(--o-space-2); }
.s-ff__back { margin: var(--o-space-2) 0 0; padding-inline: var(--o-gutter); font-size: var(--o-text-meta); }
.s-ff__search { margin: var(--o-space-3) var(--o-gutter) 0; }
.s-ff__note { margin: var(--o-space-4) var(--o-gutter) 0; overflow-wrap: anywhere; }
.s-ff__list { margin-top: var(--o-space-2); }
.s-ff__row--off .s-pj__name, .s-ff__row--off .s-pj__meta, .s-ff__off { color: var(--o-ink-3); }
.s-ff__row--off .s-pj__cover { opacity: 0.55; }
.s-ff .s-pager { padding-inline: var(--o-gutter); }
.s-fc__counts { display: flex; align-items: center; gap: var(--o-space-1); margin-top: var(--o-space-1); }
.s-fc__counts .s-act { color: var(--o-ink-2); }
.s-fc__counts .s-act.is-on { color: var(--o-accent-mark); }
.s-fc__grp { display: inline-flex; align-items: center; }
.s-fc__n { margin-left: -0.25rem; margin-right: var(--o-space-2); color: var(--o-ink); font-size: var(--o-text-callout); }
.s-fc__n[hidden] { display: none; }
.s-fc__counts--stat { gap: var(--o-space-4); padding-inline: var(--o-space-1); }
.s-fc__stat { display: inline-flex; align-items: center; gap: var(--o-space-1); min-height: var(--o-tap); color: var(--o-ink-2); text-decoration: none; }
.s-fc__stat .o-mono { color: var(--o-ink); font-size: var(--o-text-callout); }
.s-fc__counts .s-actions__end { margin-left: auto; }

/* the profile header, stats and shortcuts */
.s-ph { display: flex; align-items: center; gap: var(--o-space-3); padding: var(--o-space-4) var(--o-gutter) 0; }
.s-ph__avatar { --_av: 2.875rem; border-radius: 50%; background: var(--o-ink); color: var(--o-bg); font-size: 1.25rem; }   /* round: a black disc with a white letter (light), or the photo */
.s-ph__text { flex: 1 1 auto; min-width: 0; }
.s-ph__handle { margin: 0; font-size: var(--o-text-title-2); font-weight: var(--o-weight-heavy); line-height: var(--o-leading-tight); overflow-wrap: anywhere; }
.s-ph__name { margin: 2px 0 0; color: var(--o-ink-2); overflow-wrap: anywhere; }
.s-ph__stats { margin: 2px 0 0; color: var(--o-ink-2); font-size: var(--o-text-callout); line-height: 1.35; overflow-wrap: anywhere; text-wrap: balance; }   /* ONE line: followers, following, published */
/* the row of buttons: Edit profile, Share and the square gear (a visitor: Share and the menu), each at least 44 px high */
.s-ph__btns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-2); padding: var(--o-space-4) var(--o-gutter) 0; }
.s-ph__btns .o-btn { flex: 1 1 auto; min-width: 0; padding-inline: 0.5rem; white-space: nowrap; border-color: var(--o-line); border-radius: var(--o-radius-lg); text-decoration: none; }
.s-ph__btns .o-btn--icon { flex: none; width: var(--o-btn-h); }
@media (max-width: 380px) { .s-ph__stats { font-size: 0.8125rem; } }   /* 360 px: the line fits beside the avatar */
.s-ph__btns .s-me__more { flex: none; padding: 0; }
.s-ph__btns .s-me__more .s-more__btn { border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); }
.s-ph__btns .s-me__more .s-more__panel { position: absolute; right: 0; z-index: var(--o-z-sticky); min-width: 14rem; }
.s-ph__btns .hub-own { flex: 1 0 100%; margin: 0; padding: 0; }
.s-ph__bio { margin: var(--o-space-3) 0 0; padding-inline: var(--o-gutter); color: var(--o-ink-2); }
.s-ph__none { padding-block: var(--o-space-4); }
.s-ap .s-stickers { margin-top: var(--o-space-5); border-top: 1px solid var(--o-line); }
/* stickers, compact (the design leaves them out; they close the page, never open it) */
.s-ap .s-stickers__row { padding-block: var(--o-space-3); }
.s-ap .s-sticker__dot { width: 2.25rem; height: 2.25rem; }
.s-ap .s-sticker__dot .o-icon { width: 1.125rem; height: 1.125rem; }
.s-ap .s-sticker__name { font-size: 0.6875rem; }
@media (min-width: 720px) { .s-cont { margin-inline: 0; } }

/* ---- FD-APP-REWORK-2: Profile's Projects tab (the cards come after the page has drawn) and the gear in the header row */
.s-ppj { padding-top: var(--o-space-3); }
.s-ppj__new { margin-top: 0; }
.s-ppj__slot { margin-top: var(--o-space-3); }
.s-ppj__slot[hidden] { display: none; }
.s-ppj__wait, .s-ppj__fail { margin: 0; padding: var(--o-space-3) var(--o-gutter); }
.s-ppj__fail[hidden], .s-ppj__wait[hidden] { display: none; }
.s-ppj__fail .o-btn { margin-left: var(--o-space-2); }
.s-ppj__all { margin: var(--o-space-3) var(--o-gutter) 0; padding: 0; min-height: var(--o-tap); }
.s-pp__list { display: grid; gap: var(--o-space-3); }
.s-pp__group { display: grid; gap: var(--o-space-3); }
.s-pp__group.s-feed { gap: var(--o-space-4); padding: 0 var(--o-gutter); }
.s-pp__group > .s-pj__again, .s-pp__group > .s-newroom__list, .s-pp__group > .s-pj__homerow { margin-inline: var(--o-gutter); }
.s-pp__group > .s-pj__again { justify-self: start; }
.s-pp .s-pp__cover { position: relative; overflow: hidden; --_ratio: 20 / 9; }
.s-pp__art { position: absolute; inset: 0; display: block; }
.s-pp__art svg { display: block; width: 100%; height: 100%; }
.s-pp__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--o-surface-2); border: 0; }
.s-pp .s-media__link { z-index: 1; }
.s-pp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-1) var(--o-space-3); margin: var(--o-space-1) 0 0; padding-inline: var(--o-space-1); color: var(--o-ink-2); font-size: var(--o-text-meta); }
.s-pp__rook, .s-pp__new, .s-pp__pub { display: inline-flex; align-items: center; gap: 6px; }
.s-pp__rook.is-on { color: var(--o-accent-mark); }
.s-pp__dot, .s-pp__newdot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.s-pp__new { color: var(--o-ink); font-weight: var(--o-weight-semibold); }
.s-pp__newdot { background: var(--o-accent-mark); box-shadow: 0 0 0 1px var(--o-ink); }
.s-pp__pub { min-height: var(--o-tap); margin-block: -0.5rem; color: var(--o-ink-2); text-decoration: none; }
.s-pp__pub .o-icon { width: 1rem; height: 1rem; }
.s-pp__server { min-width: 0; overflow-wrap: anywhere; }

/* FD-APP-REWORK-3: the pinned project (the owner's design: the cover with its PINNED chip, the title and the template's word on it, Play) */
.s-pin { padding: var(--o-space-3) var(--o-gutter) 0; }
.s-pin__card { border-radius: var(--o-radius-xl); overflow: hidden; }
.s-pin__cover { --_ratio: 16 / 9; border-radius: var(--o-radius-xl); }
.s-pin__act { position: absolute; right: var(--o-space-2); top: var(--o-space-2); z-index: 2; }
.s-pin__act .s-pinbtn { background: var(--o-media-chip); color: var(--o-on-media-chip); }
.s-pin__bar { position: absolute; inset-inline: var(--o-space-2); bottom: var(--o-space-2); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--o-space-2); pointer-events: none; }
.s-pin__bar a { pointer-events: auto; }
.s-pin__text { min-width: 0; padding: 0.375rem 0.625rem; border-radius: var(--o-radius-md); background: var(--o-g-on); color: var(--o-on-media-chip); }   /* a solid chip (the game-fill ink, #0B0B0C in light and dark), so the drawing never shows through the title */
.s-pin__title { margin: 0; font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); line-height: var(--o-leading-tight); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-pin__type { display: block; font-size: var(--o-text-meta); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.s-pin__pills { position: static; flex: none; }
.s-pinform { margin: 0; }
.s-fc .s-pinform { padding-inline: var(--o-space-1); }
.s-pp__meta .s-pinform { margin-left: auto; margin-block: -0.5rem; }   /* Pin / Unpin sits at the end of the card's mono line */
.s-pinbtn { color: var(--o-ink-2); }
.s-pinpick { display: grid; gap: var(--o-space-2); padding: var(--o-space-4) var(--o-gutter) 0; }
/* the lineage, tokens and changes-kept line of an own project card (the server's own reports) */
.s-pp__facts { margin: var(--o-space-1) 0 0; padding-inline: var(--o-space-1); color: var(--o-ink-2); font-size: var(--o-text-meta); overflow-wrap: anywhere; }
/* the Tokens card (FD-PROFILE-LOOK-1): a rounded, bordered box: "Tokens used" left, the big number right, a thick rounded bar split by model, and a legend of coloured squares */
.s-meter-slot { padding: var(--o-space-3) var(--o-gutter) 0; }
.s-meter-slot[hidden] { display: none; }
.s-meter { margin: 0; padding: 0.5rem 0.625rem; border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); background: var(--o-bg); }
.s-meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--o-space-3); margin: 0; }
.s-meter__label { min-width: 0; color: var(--o-ink-2); font-size: var(--o-text-meta); }
.s-meter__figure { display: inline-flex; align-items: baseline; gap: var(--o-space-1); flex: none; }
.s-meter__n { font-size: 1.125rem; font-weight: var(--o-weight-heavy); color: var(--o-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.s-meter__al { font-size: 1.125rem; font-weight: var(--o-weight-heavy); color: var(--o-ink); line-height: 1.1; }   /* "at least": only when the server says the total is a lower bound */
.s-meter__bar { display: block; width: 100%; height: 0.3125rem; margin-top: 0.375rem; border-radius: 999px; overflow: hidden; background: var(--o-surface-2); }
.s-meter__bar .s-seg { stroke: var(--o-bg); stroke-width: 2; vector-effect: non-scaling-stroke; }   /* a small gap between the models */
/* the owner's picture's own two colours (FD-PROFILE-LOOK-1 review L4): violet and a muted orange */
.s-seg--1 { fill: #5B5AD1; background: #5B5AD1; }
.s-seg--2 { fill: #D77047; background: #D77047; }
.s-seg--3 { fill: var(--o-g-gold); background: var(--o-g-gold); }
.s-seg--4 { fill: var(--o-g-mint); background: var(--o-g-mint); }
.s-seg--o { fill: var(--o-ink-3); background: var(--o-ink-3); }
.s-meter__models { display: flex; flex-wrap: nowrap; gap: 0 var(--o-space-3); margin: 0.375rem 0 0; color: var(--o-ink-2); font-size: 0.75rem; line-height: 1.35; overflow: hidden; }   /* ONE line: a long name is cut with an ellipsis, never wrapped */
.s-meter__model { display: flex; align-items: baseline; flex: 0 1 auto; min-width: 0; white-space: nowrap; }   /* FOLLOWUPS-FD-1: when a legend entry is too long only the model NAME is cut (with an ellipsis); the share always shows */
.s-meter__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.s-meter__share { flex: none; }
.s-meter__model > i.s-seg { flex: none; }
.s-meter__more { flex: none; white-space: nowrap; }
i.s-seg { display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.3125rem; border-radius: 2px; vertical-align: baseline; }
.s-act-settings { text-decoration: none; }
/* UX-3 (FD_PROJECT_DETAILS=1): project covers and the live details on the Projects page. Appended to social.css only with the switch on. Design-system tokens only: white, black type, mono for small details. */
.s-pj__cover { position: relative; }
.s-pj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; border: 0; }
.s-pj__row--details { grid-template-columns: 3.5rem minmax(0, 1fr) var(--o-tap); }
.s-pj__row--details .s-pj__actions { grid-column: 2 / 4; }
.s-pj__chev { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-content: center; width: var(--o-tap); height: var(--o-tap); margin-block: calc(var(--o-tap) / -4); border-radius: var(--o-radius-md); color: var(--o-ink-2); text-decoration: none; }
.s-pj__chev .o-icon { transform: rotate(90deg); }
.s-pj__chev[aria-expanded="true"] .o-icon { transform: rotate(-90deg); }
.s-pj__chev:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
.s-pd { grid-column: 1 / -1; padding: var(--o-space-2) 0 var(--o-space-1); border-top: 1px solid var(--o-line); }
.s-pd__list { display: grid; margin: 0; }
.s-pd__row { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); align-items: start; gap: var(--o-space-2); padding-block: var(--o-space-1); border-bottom: 1px solid var(--o-line); }
.s-pd__row:last-child { border-bottom: 0; }
.s-pd__row dt { color: var(--o-ink-2); font-size: var(--o-text-meta); line-height: 1.35; overflow-wrap: anywhere; }
.s-pd__row dt small { display: block; color: var(--o-ink-3); }
.s-pd__row dd { margin: 0; display: grid; gap: 0.25rem; justify-items: end; text-align: right; font-size: var(--o-text-meta); overflow-wrap: anywhere; }
.s-pd__meter { width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--o-line); accent-color: var(--o-ink); appearance: none; -webkit-appearance: none; }
.s-pd__meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 3px; background: var(--o-line); }
.s-pd__meter::-webkit-meter-optimum-value, .s-pd__meter::-webkit-meter-suboptimum-value, .s-pd__meter::-webkit-meter-even-less-good-value { background: var(--o-ink); border-radius: 3px; }
.s-pd__meter::-moz-meter-bar { background: var(--o-ink); border-radius: 3px; }
.s-pd__h { margin: var(--o-space-3) 0 var(--o-space-1); color: var(--o-ink-2); font-size: var(--o-text-meta); font-weight: var(--o-weight-bold); }
.s-pd__installs { list-style: none; margin: 0; padding: 0; display: grid; }
.s-pd__installs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--o-space-2); padding-block: 0.25rem; font-size: var(--o-text-meta); overflow-wrap: anywhere; }
.s-pd__installs li span:last-child { color: var(--o-ink-2); text-align: right; }
.s-pd__note, .s-pd__foot, .s-pd__status { margin: var(--o-space-2) 0 0; }
.s-pd__wait { display: block; width: 100%; height: 4px; margin: var(--o-space-2) 0; border: 0; border-radius: 2px; background: var(--o-line); accent-color: var(--o-ink); appearance: none; -webkit-appearance: none; }
.s-pd__wait::-webkit-progress-bar { background: var(--o-line); border-radius: 2px; }
.s-pd__wait::-webkit-progress-value { background: var(--o-ink); border-radius: 2px; }
.s-pd__wait::-moz-progress-bar { background: var(--o-ink); border-radius: 2px; }
.s-pd__close { margin-top: var(--o-space-1); }
/* FD-UX-3 and FD-UX-3b (FD_PROJECT_FACTS=1): the project dropdown (glance, AI usage bars, Technical details fold) and the Server page (hero, three numbers, two thin charts, milestones, project cards, System fold).
   Appended to social.css only with the switch (shell/assets.mjs). Design-system tokens only: black type on the page, ONE lime accent, the per-game colours, no gradients, no shadows, no animation. Phone first (360 px). */

/* the small dot is the state of the reading (owner addendum: one reading per load, a Reload button for a live one): filled while the server answered, hollow when it did not */
.s-live { display: inline-block; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--o-accent-mark); vertical-align: middle; }
.s-live[data-stale] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--o-warn); }

/* ---------------------------------------------------------------- the dropdown */
.s-pf { display: grid; gap: var(--o-space-4); }
.s-pf__warn { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--o-space-1); }
.s-pf__warn li { padding: var(--o-space-3); border-radius: var(--o-radius-md); background: var(--o-warn-tint); color: var(--o-ink); font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); border-inline-start: 4px solid var(--o-warn); line-height: 1.35; }
.s-pf__glance { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--o-space-3) var(--o-space-4); }
.s-pf__row { min-width: 0; }
.s-pf__row dt { color: var(--o-ink-3); font-size: var(--o-text-meta); line-height: 1.3; }
.s-pf__row dd { margin: 2px 0 0; font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); line-height: 1.3; overflow-wrap: anywhere; }
.s-pf__h { margin: 0 0 var(--o-space-2); font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); }
.s-pf__prov { display: grid; gap: var(--o-space-1); }
.s-pf__prov + .s-pf__prov { margin-top: var(--o-space-3); }
.s-pf__phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--o-space-2); }
.s-pf__pname { font-size: var(--o-text-body); }
.s-pf__models { color: var(--o-ink-3); font-size: var(--o-text-meta); overflow-wrap: anywhere; }
.s-pf__big { margin-inline-start: auto; font-size: var(--o-text-meta); color: var(--o-ink-2); text-align: end; }
.s-pf__big b { font-size: var(--o-text-headline); color: var(--o-ink); font-variant-numeric: tabular-nums; }
.s-pf__quiet { margin: 0; color: var(--o-ink-3); font-size: var(--o-text-meta); }
.s-pf__note { margin: var(--o-space-2) 0 0; color: var(--o-ink-3); font-size: var(--o-text-meta); line-height: 1.35; }
.s-pf__tech, .s-sc__system { border-top: 1px solid var(--o-line); padding-top: var(--o-space-1); }
.s-pf__tech summary, .s-sc__system summary { min-height: var(--o-tap); display: flex; align-items: center; cursor: pointer; color: var(--o-ink-2); font-size: var(--o-text-meta); font-weight: var(--o-weight-semibold); }
.s-pf__tech summary::after, .s-sc__system summary::after { content: "+"; margin-inline-start: auto; font-size: var(--o-text-headline); color: var(--o-ink-3); }
.s-pf__tech[open] summary::after, .s-sc__system[open] summary::after { content: "\2212"; }
.s-pf__tech summary:focus-visible, .s-sc__system summary:focus-visible { outline: 2px solid var(--o-ink); outline-offset: 2px; }
.s-pf__tech[open] summary, .s-sc__system[open] summary { margin-bottom: var(--o-space-1); }
.s-pf__livebar { margin: 0; display: flex; align-items: center; gap: var(--o-space-1); flex-wrap: nowrap; }
.s-pf__livebar { justify-content: flex-end; }
.s-pf__updated { font-size: var(--o-text-meta); color: var(--o-ink-3); white-space: nowrap; }
/* FD-UX-5: Reload is a small icon button (a 44 px touch area, no border, no fill) with the muted "Updated ..." beside it: never a big bordered button above the content */
.s-reload { display: inline-grid; place-items: center; flex: none; width: var(--o-tap); height: var(--o-tap); margin: calc((var(--o-tap) - 1.5rem) / -2) 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--o-ink-2); font: inherit; cursor: pointer; }
.s-reload .o-icon { width: 1.125rem; height: 1.125rem; }
.s-reload:active { background: var(--o-press); }
.s-reload:disabled { opacity: 0.4; cursor: default; }
.s-reload:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
.s-pf__on, .s-pc__on, .s-pj__on { margin: 0; color: var(--o-ink-3); font-size: var(--o-text-meta); line-height: 1.3; overflow-wrap: anywhere; }   /* "On <server>": one quiet line, the system font */
.s-pf__on a, .s-pc__on a, .s-pj__on a { color: var(--o-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.s-pf__bar { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--o-line); accent-color: var(--o-game-ink, var(--o-ink-2)); appearance: none; -webkit-appearance: none; }
.s-pf__bar::-webkit-meter-bar { height: 6px; border: 0; border-radius: 3px; background: var(--o-line); }
.s-pf__bar::-moz-meter-bar { background: var(--o-game-ink, var(--o-ink-2)); border-radius: 3px; }
.s-pd__val { font-variant-numeric: tabular-nums; }
.s-pd__reload { margin-top: var(--o-space-2); }

/* a thin bar in the project's own colour (--o-game-ink: readable on the page in light and dark) */
.s-pf__bar::-webkit-meter-optimum-value, .s-pf__bar::-webkit-meter-suboptimum-value, .s-pf__bar::-webkit-meter-even-less-good-value { background: var(--o-game-ink, var(--o-ink-2)); border-radius: 3px; }

/* ---------------------------------------------------------------- the one Projects page: shared bits (FD-UX-6 has its own block at the end) */
.s-ps { display: grid; gap: var(--o-space-3); }
.s-ps .s-me__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); }
.s-sc__warn li { font-size: var(--o-text-body); }
/* FD-UX-5: the header row is the server's name (24 px like every page title) and the small reading bar; under it ONE modest sub-line; no giant sentence */
.s-ps__h3 { margin: 0 0 var(--o-space-1); font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); }
.s-ps__flash { margin: var(--o-space-3) var(--o-gutter) 0; }
.s-ps__rename summary { min-height: var(--o-tap); display: inline-flex; align-items: center; cursor: pointer; color: var(--o-ink-2); font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); list-style: none; text-decoration: underline; text-underline-offset: 2px; }
.s-ps__rename summary::-webkit-details-marker { display: none; }
.s-ps__rename[open] { flex-basis: 100%; }
.s-ps__renameform { display: grid; gap: var(--o-space-3); padding: var(--o-space-3) 0 var(--o-space-4); max-width: 28rem; }
/* FD-FIX-8: the quiet offer of the approval page (a hosted server whose machine is not shown): a soft surface, text and one text link; no button, so it never competes with the projects */
/* the quiet lower section: what the old "Your servers" page did, in a few plain rows */
.s-ps__lower { display: grid; gap: var(--o-space-3); padding: var(--o-space-5) var(--o-gutter) var(--o-space-6); margin-top: var(--o-space-4); border-top: 1px solid var(--o-line); }
.s-ps__srv { display: grid; gap: var(--o-space-2); padding: var(--o-space-3) 0; }
.s-ps__srv + .s-ps__srv { border-top: 1px solid var(--o-line); }
.s-ps__srvmeta { margin: 0; color: var(--o-ink-3); font-size: var(--o-text-meta); line-height: 1.35; overflow-wrap: anywhere; }
.s-ps__way { display: grid; gap: var(--o-space-2); justify-items: start; padding-top: var(--o-space-3); }
.s-ps__way p { margin: 0; }
.s-sc__nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-sc__nums li { display: grid; align-content: start; gap: 2px; min-width: 0; padding-inline: var(--o-space-2); border-inline-start: 1px solid var(--o-line); }
.s-sc__nums li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.s-sc__val { font-size: clamp(1.125rem, 5.2vw, 1.625rem); font-weight: var(--o-weight-heavy); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-sc__cap { color: var(--o-ink); font-size: var(--o-text-meta); font-weight: var(--o-weight-semibold); }

/* the two thin charts: one series each, one axis, a light midline, the line in a token colour */
.s-sc__charts { display: grid; gap: var(--o-space-4); }
.s-sc__chart { margin: 0; display: grid; gap: var(--o-space-1); min-width: 0; }
.s-sc__chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--o-space-3); }
.s-sc__ctitle { color: var(--o-ink-2); font-size: var(--o-text-meta); font-weight: var(--o-weight-semibold); }
.s-sc__now { font-size: var(--o-text-callout); font-variant-numeric: tabular-nums; text-align: end; }
.s-sc__plot { position: relative; height: 4.5rem; touch-action: pan-y; cursor: crosshair; border-radius: var(--o-radius-sm); }
.s-sc__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.s-sc__grid { stroke: var(--o-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.s-sc__line { fill: none; stroke: var(--o-accent-mark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
[data-chart="memory"] .s-sc__line { stroke: var(--o-g-sky-ink); }
.s-sc__cursor { stroke: var(--o-ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.s-sc__x { margin: 0; display: flex; justify-content: space-between; color: var(--o-ink-3); font-size: var(--o-text-micro); }

/* milestones: true ones only, compact stickers from the design system */
.s-sc__stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--o-space-2); }
.s-sc__stickers .o-sticker--ticket { min-height: 1.75rem; padding: 0.125rem 0.625rem; --_tilt: 0deg; transform: none; max-width: 100%; box-sizing: border-box; box-shadow: none; border-radius: 999px; }   /* FD-UX-5: compact, level, no cut-out ring; a long milestone (PT) wraps inside the row */
.s-sc__stickers .o-sticker--ticket b { font-size: var(--o-text-meta); letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }

/* the project cards: a thumbnail, the project's own colour as a thin edge, its state dot, what it uses as a short bar, the AI in plain words */
.s-sc__more { margin: 0; color: var(--o-ink-3); font-size: var(--o-text-meta); }
@media (min-width: 560px) {
  .s-sc__charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--o-space-5); }
}

/* ---------------------------------------------------------------- FD-UX-6: ONE Projects page. A server is a section: a compact card (name, reading, three numbers + a tiny CPU line, one count line, Details inline), then its projects.
   Dark first and dense, like a dashboard on a phone: system font, a 24-28 px page title, no gradients, no eyebrow, no mono. */
.s-pj--servers { display: grid; gap: var(--o-space-5); align-content: start; }
.s-sv { display: grid; gap: var(--o-space-3); min-width: 0; scroll-margin-top: var(--o-space-4); }
.s-sv__head { display: grid; gap: var(--o-space-2); margin-inline: var(--o-gutter); padding: var(--o-space-3) var(--o-space-4); border-radius: var(--o-radius-lg); background: var(--o-surface); min-width: 0; }
.s-sv__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--o-space-2); min-width: 0; }
.s-sv__who { display: grid; gap: 2px; min-width: 0; }
.s-sv__name { margin: 0; font-size: var(--o-text-title-3); font-weight: var(--o-weight-bold); line-height: var(--o-leading-tight); overflow-wrap: anywhere; }
.s-sv__updated { margin: 0; display: flex; align-items: center; gap: var(--o-space-1); min-height: 1.25rem; }
.s-sv__tools { display: flex; align-items: center; flex: none; margin: calc(var(--o-space-2) / -1) calc(var(--o-space-2) / -1) 0 0; }
.s-sv__tools .s-reload { margin: 0; }
.s-sv__menu { display: inline-grid; place-items: center; width: var(--o-tap); height: var(--o-tap); border-radius: 50%; color: var(--o-ink-2); }
.s-sv__menu:active { background: var(--o-press); }
.s-sv__menu:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
.s-sv__menu .o-icon { width: 1.25rem; height: 1.25rem; fill: currentColor; stroke: none; }
.s-sv__renameform { display: none; padding: var(--o-space-2) 0 var(--o-space-2); }
.s-sv__renameform:target { display: grid; scroll-margin-top: 4.5rem; }
.s-sv__renameacts { display: flex; gap: var(--o-space-2); }
.s-sv__nums { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; align-items: center; gap: var(--o-space-3); }
.s-sv__nums .s-sc__nums { min-width: 0; }
.s-sv__nums .s-sc__val { font-size: var(--o-text-headline); }
.s-sv__spark { display: block; width: 100%; height: 1.75rem; overflow: visible; }
.s-sv__quiet { margin: 0; color: var(--o-ink-2); font-size: var(--o-text-callout); line-height: 1.35; }
.s-sv__quiet a { display: inline-flex; align-items: center; min-height: 1.75rem; overflow-wrap: anywhere; }
.s-sv__details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); min-height: var(--o-tap); margin-block: calc(var(--o-space-1) / -1) calc(var(--o-space-2) / -1); cursor: pointer; }
.s-sv__details > summary::-webkit-details-marker { display: none; }
.s-sv__details > summary:focus-visible { outline: 2px solid var(--o-ink); outline-offset: 2px; border-radius: var(--o-radius-sm); }
.s-sv__line { color: var(--o-ink-2); font-size: var(--o-text-callout); min-width: 0; overflow-wrap: anywhere; }
.s-sv__line--bare { margin: 0; }
.s-sv__toggle { flex: none; color: var(--o-ink-2); font-size: var(--o-text-callout); font-weight: var(--o-weight-semibold); }
.s-sv__toggle::after { content: " +"; color: var(--o-ink-3); }
.s-sv__details[open] .s-sv__toggle::after { content: " \2212"; }
.s-sv__dbody { display: grid; gap: var(--o-space-4); padding: var(--o-space-3) 0 var(--o-space-1); border-top: 1px solid var(--o-line); margin-top: var(--o-space-2); min-width: 0; }
.s-sv__dbody:empty { display: none; }
.s-sv__facts { margin: 0; }
.s-sv__acts { display: flex; flex-wrap: wrap; gap: var(--o-space-2); }
.s-sv__projects { min-width: 0; }
.s-sv__projects > .s-pj__down, .s-sv__projects > .s-pj__again { margin-inline: var(--o-gutter); }
.s-sv__projects > .s-newroom__list { padding-inline: var(--o-gutter); }
.s-sv__connect { margin-top: var(--o-space-2); }
.s-pj--servers > .s-ps__flash { margin: 0 var(--o-gutter); }
.s-sv__acts { margin-inline-start: calc(var(--o-space-3) / -1); }   /* the quiet buttons' own padding lines their text up with the card's text */

/* ---------------------------------------------------------------- FD-SERVERS-TAB-1: the Servers tab of Profile (the same card as the Projects page) and the two buttons on a card: Open my server (the tab only) and Open server mechanic. */
.s-sv__btns { display: flex; flex-wrap: wrap; gap: var(--o-space-2); }
/* AD-2d: the server's address (read-only text) and the quiet "copied" line under Change address… */
.s-sv__addr { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--o-space-2); min-width: 0; color: var(--o-ink-2); font-size: var(--o-text-callout); line-height: 1.35; }
.s-sv__addrv { min-width: 0; overflow-wrap: anywhere; color: var(--o-ink); font-weight: var(--o-weight-medium, 500); user-select: all; }
.s-sv__copied { margin: 0; color: var(--o-ink-2); font-size: var(--o-text-callout); line-height: 1.35; }
.s-sv__copied[hidden] { display: none; }
.s-sps__list { display: grid; gap: var(--o-space-5); align-content: start; margin-top: var(--o-space-3); }
.s-sv--tab > .s-pj__down, .s-sv--tab > .s-pj__again { margin-inline: var(--o-gutter); }
.s-sps__empty { margin-inline: var(--o-gutter); }

/* SERVER-PAGES-1: the server card's state word and plan, and the ⋯ menu (a native <details>: no script, no style attribute) */
.s-sv__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-1); color: var(--o-ink-2); font-size: var(--o-text-callout); line-height: 1.35; min-width: 0; }
.s-sv__state { display: inline-flex; align-items: center; gap: var(--o-space-1); color: var(--o-ink); font-weight: var(--o-weight-semibold); }
.s-sv__state::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--o-accent-mark); flex: none; }
.s-sv__state[data-state="asleep"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--o-ink-3); }
.s-sv__state[data-state="down"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--o-warn); }
.s-sv__plan { min-width: 0; overflow-wrap: anywhere; }
.s-sv__more { position: relative; }
.s-sv__more > summary { list-style: none; cursor: pointer; }
.s-sv__more > summary::-webkit-details-marker { display: none; }
.s-sv__more > summary:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
.s-sv__menulist { position: absolute; inset-inline-end: 0; top: 100%; z-index: var(--o-z-sticky); margin: 0; padding: var(--o-space-1); list-style: none; min-width: 12.5rem; max-width: calc(100vw - 2 * var(--o-gutter)); background: var(--o-bg); border: 1px solid var(--o-border); border-radius: var(--o-radius-md); box-shadow: var(--o-shadow-2); }
.s-sv__item { display: flex; align-items: center; min-height: var(--o-tap); padding: 0 var(--o-space-3); color: var(--o-ink); font-size: var(--o-text-body); text-decoration: none; border-radius: var(--o-radius-sm); overflow-wrap: anywhere; }
.s-sv__item:active, .s-sv__item:hover { background: var(--o-press); }
.s-sv__item:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
/* FD-UX-2 (FD_PROJECT_CARDS=1): the project cards of the Projects page. Appended to social.css only with the switch on (shell/assets.mjs). Design-system tokens only: white, black type, mono for small details,
   no gradients, no shadows. The picture box is reserved by aspect-ratio (16 / 9), so a picture arriving moves nothing. */
.s-pc__list { gap: var(--o-space-5); padding-block: var(--o-space-3); grid-template-columns: minmax(0, 1fr); }
.s-pj__row.s-pc { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: var(--o-space-3); align-items: start; padding-block: 0 var(--o-space-4); border-bottom: 1px solid var(--o-line); }
.s-pc__pic { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--o-radius-lg); background: var(--o-surface-2); color: inherit; }
.s-pc__pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--o-media-frame); pointer-events: none; }
.s-pc .s-pj__img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--o-surface-2); border: 0; }
/* the example drawing and the chip show only while no cover is on the card (a cover that cannot load is removed by the details script, and they show again) */
.s-pc__pic:has(.s-pj__img) .s-pc__art, .s-pc__pic:has(.s-pj__img) .s-pc__tag { visibility: hidden; }
.s-pc__tag { position: absolute; z-index: 1; left: var(--o-space-2); top: var(--o-space-2); padding: 2px var(--o-space-2); border-radius: var(--o-radius-xs); background: var(--o-media-chip); color: var(--o-on-media-chip); font-size: var(--o-text-micro); font-weight: var(--o-weight-medium, 500); line-height: 1.4; }
/* the example drawings: the classes of social/project-card-art.mjs, each from a token */
.s-pc__art { display: block; width: 100%; height: 100%; background: var(--o-surface-2); --pc-tint: var(--o-surface); --pc-ink: var(--o-ink-3); }
.s-pc__art svg { display: block; width: 100%; height: 100%; }
.s-pc__art[data-kind="app"] { --pc-tint: var(--o-g-iris-tint); --pc-ink: var(--o-g-iris-ink); }
.s-pc__art[data-kind="website"] { --pc-tint: var(--o-g-sky-tint); --pc-ink: var(--o-g-sky-ink); }
.s-pc__art[data-kind="web"] { --pc-tint: var(--o-g-leaf-tint); --pc-ink: var(--o-g-leaf-ink); }
.s-pc__art[data-kind="game"] { --pc-tint: var(--o-g-mint-tint); --pc-ink: var(--o-g-mint-ink); }
.s-pc__art[data-kind="obby"] { --pc-tint: var(--o-g-lava-tint); --pc-ink: var(--o-g-lava-ink); }
.s-pc__art[data-kind="roblox"] { --pc-tint: var(--o-g-gold-tint); --pc-ink: var(--o-g-gold-ink); }
.s-pc__art[data-kind="community"] { --pc-tint: var(--o-g-grape-tint); --pc-ink: var(--o-g-grape-ink); }
.s-pc__art .t { fill: var(--pc-tint); }
.s-pc__art .k { fill: var(--pc-ink); }
.s-pc__art .r { fill: var(--o-raised); }
.s-pc__art .m { fill: var(--o-line); }
.s-pc__art .s { fill: none; stroke: var(--pc-ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
/* the text under the picture */
.s-pc__body { display: grid; gap: var(--o-space-2); min-width: 0; }
.s-pc__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px var(--o-space-2); min-width: 0; }
.s-pc .s-pj__name { font-size: var(--o-text-headline); line-height: var(--o-leading-tight); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; flex: 0 1 auto; }
.s-pc .s-pj__link { display: inline; overflow: visible; }
.s-pc__kind { flex: none; font-size: var(--o-text-meta); color: var(--o-ink-2); overflow-wrap: anywhere; }
.s-pc__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--o-space-1) var(--o-space-3); font-size: var(--o-text-meta); color: var(--o-ink-2); min-width: 0; }
.s-pc__stat { display: inline-flex; align-items: center; gap: var(--o-space-1); min-width: 0; overflow-wrap: anywhere; }
.s-pc__stat--state { color: var(--o-ink); font-weight: var(--o-weight-semibold); }
.s-pc__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--o-ink-3); background: transparent; }
.s-pc[data-state="ready"] .s-pc__dot { background: var(--o-ok); border-color: var(--o-ok); }
.s-pc[data-state="starting"] .s-pc__dot, .s-pc[data-state="setting_up"] .s-pc__dot, .s-pc[data-state="checking"] .s-pc__dot, .s-pc[data-state="no_ai"] .s-pc__dot { border-color: var(--o-warn); }
.s-pc[data-state="cannot_start"] .s-pc__dot, .s-pc[data-state="frozen"] .s-pc__dot { background: var(--o-danger); border-color: var(--o-danger); }
.s-pc__host { color: var(--o-ink-2); }
.s-pc .s-pj__meta[data-play-note] { display: block; }
.s-pc__actions { grid-column: 1; align-items: center; }
.s-pc .s-pj__chev { grid-column: auto; grid-row: auto; margin: 0 0 0 auto; }
.s-pc .s-pj__chats { grid-column: 1; }
.s-pc .s-pd { grid-column: 1; }
/* wider screens: a grid of cards of one fixed width, the picture keeps its 16 / 9 */
@media (min-width: 640px) {
  .s-pc__list { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); column-gap: var(--o-space-4); align-items: start; }
  .s-pj__row.s-pc { border-bottom: 0; padding-bottom: var(--o-space-2); }
}
@media (min-width: 900px) { .s-pj:has(.s-pc__list) { max-width: 64rem; } }
/* The inbox on Projects (unit BZ-4). Appended to social.css only with FD_INBOX=1; off, social.css is the file as it was. Tokens only: one accent (the lime dot), mono for the small counts, no gradient, no animation. */
.s-pj__new, .s-pj__chatnew { display: inline-flex; align-items: center; gap: var(--o-space-1); font-size: var(--o-text-meta); color: var(--o-ink); font-weight: var(--o-weight-semibold); white-space: nowrap; }
.s-pj__newdot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--o-accent-mark); box-shadow: 0 0 0 1px var(--o-ink); }
.s-pj__chats { grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--o-line); }
.s-pj__chatrow { border-bottom: 1px solid var(--o-line); }
.s-pj__chatrow:last-child { border-bottom: 0; }
.s-pj__chat { display: flex; align-items: center; gap: var(--o-space-2); min-height: 44px; color: inherit; text-decoration: none; }
.s-pj__chat:hover .s-pj__chatname { text-decoration: underline; }
.s-pj__chatname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--o-text-callout); color: var(--o-ink); }
.s-pj__chatsep { flex: none; color: var(--o-ink-3); }
.s-pj__chatgo { flex: none; display: inline-flex; margin-left: auto; color: var(--o-ink-3); }
.s-pj__chat:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
.s-pj__chatrow:has(.s-pj__chatnew) .s-pj__chatname { font-weight: var(--o-weight-semibold); }
.s-tabdot { position: absolute; top: 0.3rem; left: calc(50% + 0.55rem); width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--o-accent-mark); box-shadow: 0 0 0 2px var(--o-bg); }
.s-tabdot--inline { position: static; display: inline-block; margin-left: var(--o-space-1); vertical-align: middle; }
.s-tabbar .o-tabbar__item { position: relative; }

/* "Your identity" on the Profile page (FD_IDENTITY_CARD=1, unit BZ-1). Tokens and components only. */
.s-identity { margin: var(--o-space-6) var(--o-gutter) 0; display: grid; gap: var(--o-space-2); }
.s-identity__h { margin: 0; font-size: var(--o-text-title-3); font-weight: var(--o-weight-heavy); letter-spacing: -0.02em; }
.s-identity__help { margin: 0; }
.s-identity__list { margin: 0; padding: 0; list-style: none; display: grid; }
.s-identity__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--o-space-1) var(--o-space-3); padding: var(--o-space-3) 0; border-bottom: 1px solid var(--o-line); min-width: 0; }
.s-identity__who { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.s-identity__npub { grid-column: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--o-text-meta); color: var(--o-ink-2); }
.s-identity__copy { grid-column: 2; grid-row: 1 / span 2; min-height: var(--o-tap); }
.s-identity__full { grid-column: 1 / -1; overflow-wrap: anywhere; font-size: var(--o-text-meta); }
/* The Canvas (CANVAS-1; CANVAS-PLAN.md section 3). Rides on /assets/social.css only with FD_CANVAS=1 (shell/assets.mjs); off, social.css is the file as it was.
   Design C: white, black type, one lime accent, mono for small details, system fonts. The board is a size container: one cell is (width - gaps) / columns, rows are at least one cell
   and grow with their content (nothing is clipped), and type scales with the cell inside clamps, so one document draws at the page's 12 columns, at the feed cover's width and as a tile.
   Positions are the closed classes at the end of this file (generated by test-support/canvas-css-make.mjs; a test checks them). No colour here is new: the pixel look takes palette 6 of
   the drawn covers (social/cover-art.mjs) and the design tokens. */
.cv-page { max-width: 40rem; margin: 0 auto; padding-bottom: var(--o-space-8); }
.cv-top { position: sticky; top: 0; z-index: var(--o-z-bar); display: flex; align-items: center; gap: var(--o-space-2); min-height: var(--o-bar); padding: var(--o-space-1) var(--o-gutter) var(--o-space-1) var(--o-space-1); background: var(--o-bg); border-bottom: 1px solid var(--o-line); }
.cv-top__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cv-top__handle { font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); }
.cv-top__sub { font-size: var(--o-text-meta); color: var(--o-ink-2); }
.cv-top form { margin: 0; flex: none; }
.cv-top .cv-follow { flex: none; }
.cv-note { margin: var(--o-space-3) var(--o-gutter) 0; padding: var(--o-space-2) var(--o-space-3); border-radius: var(--o-radius-md); background: var(--o-accent-tint); color: var(--o-ink); font-size: var(--o-text-meta); }
.cv-more { margin: var(--o-space-4) var(--o-gutter) 0; font-size: var(--o-text-meta); }
.cv-closed { padding: var(--o-space-8) var(--o-gutter); text-align: center; }
.cv-closed h1 { margin: 0 0 var(--o-space-2); font-size: var(--o-text-title-2); }

/* --cv-u is a registered length: it is computed once on the board (against the board's container) and inherited as pixels, so a block may be a container of its own (a stat fits its number to its width) */
@property --cv-u { syntax: "<length>"; inherits: true; initial-value: 24px; }

/* themes: named tokens only */
.cv-t-default { --cv-bg: var(--o-surface); --cv-card: var(--o-raised); --cv-ink: var(--o-ink); --cv-ink2: var(--o-ink-2); --cv-line: var(--o-control); --cv-r: var(--o-radius-lg); --cv-edge: 1px solid var(--o-line);
  --cv-shadow: none; --cv-accent: var(--o-accent); --cv-on-accent: var(--o-on-accent); --cv-solid: var(--o-ink); --cv-on-solid: var(--o-bg); --cv-display: var(--o-font-text); --cv-case: none; --cv-track: -0.02em; }
.cv-t-pixel { --cv-bg: #1B2A41; --cv-card: #1B2A41; --cv-ink: #F4F4F1; --cv-ink2: #9DB4C0; --cv-line: #9DB4C0; --cv-r: 0; --cv-edge: 3px solid #F4F4F1; --cv-shadow: 4px 4px 0 #0B0B0C;
  --cv-accent: #C6FF3D; --cv-on-accent: #0B0B0C; --cv-solid: #FF7A66; --cv-on-solid: #0B0B0C; --cv-display: var(--o-font-mono); --cv-case: uppercase; --cv-track: 0.02em; color-scheme: dark; }

.cv-wrap { container-type: inline-size; --cv-gap: 6px; background: var(--cv-bg); color: var(--cv-ink); }
.cv-page .cv-wrap { margin-top: var(--o-space-3); padding: var(--o-space-5) var(--o-gutter) var(--o-space-6); }
.cv-board { --cv-u: calc((100cqw - (var(--cv-cols) - 1) * var(--cv-gap)) / var(--cv-cols)); display: grid; gap: var(--cv-gap); grid-template-columns: repeat(var(--cv-cols), minmax(0, 1fr)); grid-auto-rows: minmax(var(--cv-u), auto); }
.cv-b { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-b > * { flex: 1 1 auto; min-width: 0; }
.cv-b--zone { z-index: 0; }

/* profile */
.cv-prof { display: flex; align-items: center; gap: calc(var(--cv-u) * 0.35); }
.cv-prof__av { flex: none; display: grid; place-items: center; width: calc(var(--cv-u) * 1.8); height: calc(var(--cv-u) * 1.8); border-radius: 50%; background: var(--o-ink); color: var(--o-bg); font-weight: var(--o-weight-heavy); font-size: calc(var(--cv-u) * 0.85); }
.cv-prof__text { display: flex; flex-direction: column; min-width: 0; }
.cv-prof__handle { font-family: var(--cv-display); font-size: clamp(1rem, calc(var(--cv-u) * 0.78), 2.25rem); font-weight: var(--o-weight-heavy); letter-spacing: var(--cv-track); line-height: 1.05; text-transform: var(--cv-case); overflow-wrap: anywhere; }
.cv-prof__sub { font-size: clamp(0.6875rem, calc(var(--cv-u) * 0.42), 1rem); color: var(--cv-ink2); text-transform: var(--cv-case); }

/* project */
.cv-proj { display: flex; flex-direction: column; gap: calc(var(--cv-u) * 0.22); padding: calc(var(--cv-u) * 0.22); background: var(--cv-card); border: var(--cv-edge); border-radius: var(--cv-r); box-shadow: var(--cv-shadow); }
.cv-proj__cover { position: relative; flex: 1 1 auto; aspect-ratio: auto; min-height: calc(var(--cv-u) * 2.4); overflow: hidden; border-radius: calc(var(--cv-r) * 0.7); }   /* the cover fills what the block's rows leave above the bar */
.cv-proj__cover .d-art, .cv-proj__cover .d-art svg, .cv-proj__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-proj__bar { display: flex; align-items: center; gap: var(--o-space-2); margin-top: auto; min-width: 0; }
.cv-proj__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cv-proj__name { font-family: var(--cv-display); font-size: clamp(0.75rem, calc(var(--cv-u) * 0.5), 1.125rem); font-weight: var(--o-weight-bold); text-transform: var(--cv-case); }
.cv-proj__type { font-size: clamp(0.625rem, calc(var(--cv-u) * 0.36), 0.875rem); color: var(--cv-ink2); }
.cv-pill { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 1.75rem; padding: 0 0.625rem; border-radius: var(--o-radius-full); background: var(--o-ink); color: var(--o-bg); font-size: 0.75rem; font-weight: var(--o-weight-bold); text-decoration: none; }
.cv-pill::after { content: ""; position: absolute; inset: -8px -4px; }
.cv-pill .o-icon { width: 0.75rem; height: 0.75rem; }
.cv-pill--play { background: var(--cv-accent); color: var(--cv-on-accent); }

/* stats */
.cv-stat { container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; gap: var(--o-space-1); padding: calc(var(--cv-u) * 0.32); background: var(--cv-card); border: var(--cv-edge); border-radius: var(--cv-r); box-shadow: var(--cv-shadow); }
.cv-stat__label { font-size: clamp(0.625rem, calc(var(--cv-u) * 0.38), 0.9375rem); font-weight: var(--o-weight-semibold); }
.cv-stat__n { font-size: max(0.875rem, min(calc(var(--cv-u) * 1.02), 2.75rem, 21cqw)); font-weight: var(--o-weight-heavy); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }   /* a number never splits: it gets smaller to fit its block (21cqw fits "≥69,470") */
.cv-stat--tokens_used, .cv-stat--likes { background: var(--cv-accent); color: var(--cv-on-accent); border-color: var(--o-fill-edge); }
.cv-stat--projects { background: var(--cv-solid); color: var(--cv-on-solid); border-color: transparent; }
.cv-stat--tokens_by_model { justify-content: flex-start; }
.cv-stat__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--o-space-2); margin: 0; }
.cv-stat--tokens_by_model .cv-stat__label { font-weight: var(--o-weight-regular); color: var(--cv-ink2); }
.cv-stat--tokens_by_model .cv-stat__n { font-size: max(0.875rem, min(calc(var(--cv-u) * 0.6), 1.5rem, 12cqw)); }
.cv-bar { display: block; width: 100%; height: 0.5rem; margin-top: var(--o-space-2); border-radius: 4px; }
.cv-bar .s-seg { stroke: var(--cv-card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cv-legend { display: flex; flex-wrap: wrap; gap: 2px var(--o-space-3); margin: var(--o-space-2) 0 0; font-size: 0.6875rem; color: var(--cv-ink2); }

/* text */
.cv-b--text { justify-content: flex-end; }
.cv-title { margin: 0; font-family: var(--cv-display); font-size: clamp(1.5rem, calc(var(--cv-u) * 1.1), 1.75rem); font-weight: var(--o-weight-heavy); letter-spacing: var(--cv-track); line-height: 1.1; text-transform: var(--cv-case); }
.cv-big { margin: 0; font-family: var(--cv-display); font-size: clamp(1.5rem, calc(var(--cv-u) * 1.6), 4rem); font-weight: var(--o-weight-heavy); letter-spacing: var(--cv-track); line-height: 0.95; text-transform: var(--cv-case); overflow-wrap: anywhere; }
.cv-notes { padding: calc(var(--cv-u) * 0.4); background: var(--cv-card); border: var(--cv-edge); border-radius: var(--cv-r); box-shadow: var(--cv-shadow); font-size: clamp(0.75rem, calc(var(--cv-u) * 0.45), 1rem); line-height: 1.4; }
.cv-notes p { margin: 0; overflow-wrap: anywhere; }

/* links */
.cv-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 2.75rem; background: var(--cv-card); border: var(--cv-edge); border-radius: var(--cv-r); color: var(--cv-ink); text-decoration: none; }
.cv-link .o-icon { width: 1.25rem; height: 1.25rem; }
.cv-link__host { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.625rem; color: var(--cv-ink2); }

/* stickers: milestones computed from data, never streaks */
.cv-b--sticker { justify-content: center; align-items: flex-start; }
.cv-b--sticker > * { flex: none; }
.cv-stk { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--o-accent); color: var(--o-on-accent); font-size: clamp(0.6875rem, calc(var(--cv-u) * 0.42), 1rem); font-weight: var(--o-weight-bold); white-space: nowrap; transform: rotate(-2deg); box-shadow: 0 0 0 2px var(--o-sticker-cut), var(--o-sticker-shadow); }
.cv-stk--on_explore { transform: rotate(2deg); background: var(--o-raised); color: var(--o-ink); }

/* locked zones: open (the owner) = a dashed frame with its label; shut = shapes drawn from nothing */
.cv-zone { position: relative; border: 2px dashed var(--cv-line); border-radius: var(--cv-r); }
.cv-zone--open .cv-zone__label { position: absolute; top: -0.7rem; right: var(--o-space-3); z-index: 2; padding: 0 var(--o-space-2); background: var(--cv-bg); }
.cv-zone__label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: var(--o-weight-bold); color: var(--cv-ink); }
.cv-zone__label .o-icon { width: 0.875rem; height: 0.875rem; }
.cv-zone--shut { display: grid; grid-template: "a a" 1fr "l l" auto "b c" 1fr / 1fr 1fr; gap: var(--o-space-2); padding: var(--o-space-2); }
.cv-zone__g { display: block; min-height: 1.5rem; border-radius: var(--o-radius-md); background: var(--o-surface-2); filter: blur(3px); }
.cv-zone__g1 { grid-area: a; } .cv-zone__g2 { grid-area: b; } .cv-zone__g3 { grid-area: c; }
.cv-zone--shut .cv-zone__label { grid-area: l; justify-self: center; flex-direction: column; padding: var(--o-space-2) var(--o-space-3); border-radius: var(--o-radius-md); background: var(--o-raised); color: var(--o-ink); }

/* the pixel look: mono, upper case, square, hard edges, no font file */
.cv-t-pixel .cv-prof__av { display: none; }
.cv-t-pixel .cv-prof__handle { color: var(--cv-accent); font-size: clamp(1.75rem, calc(var(--cv-u) * 1.35), 4rem); letter-spacing: 0; }
.cv-t-pixel .cv-pill, .cv-t-pixel .cv-stk { border-radius: 0; font-family: var(--o-font-mono); text-transform: uppercase; box-shadow: 3px 3px 0 #0B0B0C; }
.cv-t-pixel .cv-pill { background: var(--cv-accent); color: #0B0B0C; }
.cv-t-pixel .cv-stk { transform: none; }
.cv-t-pixel .cv-stat { background: transparent; border: 3px solid var(--cv-accent); box-shadow: none; color: var(--cv-ink); font-family: var(--o-font-mono); text-transform: uppercase; }
.cv-t-pixel .cv-stat__n { color: var(--cv-accent); }
.cv-t-pixel .cv-stat--projects { border-color: var(--cv-solid); }
.cv-t-pixel .cv-stat--projects .cv-stat__n { color: var(--cv-solid); }
.cv-t-pixel .cv-proj__cover { border: 2px solid var(--cv-ink2); }
.cv-t-pixel .cv-notes { font-family: var(--o-font-mono); }
.cv-t-pixel .cv-zone__label, .cv-t-pixel .cv-link__host { font-family: var(--o-font-mono); }

/* the feed cover card and the Search tiles */
.cv-card { margin: 0 0 var(--o-space-5); overflow: hidden; border: 1px solid var(--o-line); border-radius: var(--o-radius-xl); background: var(--cv-bg); color: var(--cv-ink); }
.cv-card .cv-wrap { padding: var(--o-space-5) var(--o-space-4) var(--o-space-3); --cv-gap: 8px; }
.cv-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-2); padding: var(--o-space-2) var(--o-space-4) var(--o-space-4); }
.cv-chip { display: inline-flex; align-items: center; gap: var(--o-space-2); min-width: 0; min-height: 2.75rem; padding: 0 var(--o-space-3) 0 4px; border-radius: var(--o-radius-full); background: var(--o-raised); color: var(--o-ink); text-decoration: none; font-size: var(--o-text-body); }
.cv-chip__av { flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--o-ink); color: var(--o-bg); font-size: 0.8125rem; font-weight: var(--o-weight-heavy); }
.cv-card__open { flex: none; }
.cv-tabs { margin: 0 var(--o-gutter) var(--o-space-3); }
.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--o-space-4) var(--o-space-3); align-items: start; padding: 0 var(--o-gutter); }
.cv-tile { position: relative; min-width: 0; }
.cv-tile .cv-wrap { zoom: 0.6; --cv-gap: 6px; padding: var(--o-space-5) var(--o-space-4); overflow: hidden; border-radius: calc(var(--o-radius-lg) / 0.6); border: 1px solid var(--o-line); }   /* a small copy of the feed cover, as in the owner's picture 1: the cover is laid out as in the feed and drawn at 60 % (review L7) */
.cv-tile__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--o-radius-lg); }
.cv-tile__who { display: flex; align-items: center; gap: var(--o-space-2); min-width: 0; margin-top: var(--o-space-2); font-size: var(--o-text-callout); }
.cv-tile__who .cv-chip__av { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
@media (min-width: 900px) { .cv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- the editor (CANVAS-2A, picture 7): one form; every tap is a submit, the drag script only fills the same fields ---- */
.cv-edmain { padding: 0; }
.cv-ed { max-width: 40rem; margin: 0 auto; padding-bottom: calc(6.5rem + var(--o-safe-bottom)); }
.cv-ed__default { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
.cv-ed__bar { position: sticky; top: 0; z-index: var(--o-z-bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--o-space-2); min-height: var(--o-bar); padding: var(--o-space-1) var(--o-gutter); background: var(--o-bg); border-bottom: 1px solid var(--o-line); }
.cv-ed__cancel { justify-self: start; display: inline-flex; align-items: center; min-height: var(--o-tap); color: var(--o-ink-2); font-size: var(--o-text-headline); text-decoration: none; }
.cv-ed__title { margin: 0; font-size: var(--o-text-headline); font-weight: var(--o-weight-heavy); white-space: nowrap; }
.cv-ed__done { justify-self: end; }
.cv-ed__msg { margin: var(--o-space-3) var(--o-gutter) 0; padding: var(--o-space-2) var(--o-space-3); border-radius: var(--o-radius-md); background: var(--o-accent-tint); color: var(--o-ink); font-size: var(--o-text-callout); }
.cv-ed__msg--bad { background: var(--o-surface); box-shadow: inset 3px 0 0 var(--o-danger); }
.cv-ed__wrap { margin: var(--o-space-3) var(--o-gutter) 0; padding: var(--o-space-3) var(--o-space-3) var(--o-space-6); overflow: hidden; border: 1px solid var(--o-line); border-radius: var(--o-radius-xl); }
.cv-ed__board { --cv-gap: 5px; background-image: url("/assets/canvas-dots.svg"); background-size: calc(var(--cv-u) + var(--cv-gap)) calc(var(--cv-u) + var(--cv-gap)); background-position: -1px -1px; }
.cv-ed__in { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; pointer-events: none; }
.cv-ed__in > * { flex: 1 1 auto; min-width: 0; }
.cv-ed__pick { position: absolute; inset: -2px; z-index: 2; margin: 0; padding: 0; background: transparent; border: 0; border-radius: var(--cv-r); cursor: pointer; touch-action: none; }
.cv-ed__b.is-sel { z-index: 6; outline: 2px solid var(--o-ink); outline-offset: 3px; border-radius: var(--cv-r); }
.cv-ed__h { position: absolute; z-index: 7; width: 14px; height: 14px; border-radius: 50%; background: var(--o-raised); border: 2px solid var(--o-ink); pointer-events: none; }
.cv-ed__h--nw { top: -10px; left: -10px; } .cv-ed__h--ne { top: -10px; right: -10px; } .cv-ed__h--sw { bottom: -10px; left: -10px; }
.cv-ed__h--se { right: -12px; bottom: -12px; width: 20px; height: 20px; pointer-events: auto; cursor: nwse-resize; touch-action: none; }
.cv-ed__ph { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px; overflow: hidden; border: 1.5px dashed var(--o-control); border-radius: var(--cv-r); background: var(--cv-card); color: var(--cv-ink2); font-size: 0.6875rem; line-height: 1.25; }
.cv-ed__ph b { color: var(--cv-ink); font-size: 0.75rem; }
.cv-ed__frame { position: relative; z-index: 5; pointer-events: none; border: 4px solid var(--o-ink); border-radius: var(--o-radius-xl); box-shadow: 0 0 0 4px var(--o-accent); }
.cv-ed__frame.is-sel { box-shadow: 0 0 0 4px var(--o-accent), 0 0 0 6px var(--o-ink); }
.cv-ed__frame .cv-ed__h { pointer-events: auto; touch-action: none; }
.cv-ed__flabel { position: absolute; left: 50%; bottom: -1.1rem; z-index: 6; transform: translateX(-50%); min-height: 2rem; padding: 0 var(--o-space-3); border: 0; border-radius: var(--o-radius-md); background: var(--o-ink); color: var(--o-bg); font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); white-space: nowrap; pointer-events: auto; cursor: grab; touch-action: none; }
.cv-ed__end { display: block; visibility: hidden; }
.cv-ed__hint { margin: var(--o-space-3) var(--o-gutter) 0; color: var(--o-ink-2); font-size: var(--o-text-callout); text-align: center; }
.cv-ed__nums { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); margin: var(--o-space-3) var(--o-gutter) 0; }
.cv-ed__asof { margin: 0; color: var(--o-ink-2); font-family: var(--o-font-mono); font-size: var(--o-text-meta); }
.cv-ed__nums .o-btn { flex: none; }

/* the inspector: the selected block's fields; steppers are submits of the same form */
.cv-ins { display: grid; gap: var(--o-space-3); margin: var(--o-space-4) var(--o-gutter) 0; padding: var(--o-space-4); border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); background: var(--o-raised); }
.cv-ins__head { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-2); min-width: 0; }
.cv-ins__title { margin: 0; min-width: 0; font-size: var(--o-text-headline); font-weight: var(--o-weight-heavy); overflow-wrap: anywhere; }
.cv-ins__rm { flex: none; }
.cv-ins__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--o-space-2) var(--o-space-3); }
.cv-step { display: grid; gap: 4px; min-width: 0; }
.cv-step__label { font-size: var(--o-text-meta); font-weight: var(--o-weight-semibold); color: var(--o-ink-2); }
.cv-step__row { display: flex; align-items: stretch; min-width: 0; }
.cv-step__b { flex: none; width: var(--o-tap); min-height: var(--o-tap); border: 1px solid var(--o-control); background: var(--o-bg); color: var(--o-ink); font-size: 1.25rem; font-weight: var(--o-weight-bold); cursor: pointer; }
.cv-step__b:first-child { border-radius: var(--o-radius-md) 0 0 var(--o-radius-md); }
.cv-step__b:last-child { border-radius: 0 var(--o-radius-md) var(--o-radius-md) 0; }
.cv-step__in { flex: 1 1 auto; width: 0; min-width: 2.5rem; padding-inline: 4px; border-radius: 0; border-inline: 0; text-align: center; font-family: var(--o-font-mono); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.cv-step__in::-webkit-inner-spin-button, .cv-step__in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cv-field { display: grid; gap: 4px; min-width: 0; }
.cv-field__text { min-height: 4.5rem; resize: vertical; }
.cv-ins__help { margin: 0; color: var(--o-ink-2); font-size: var(--o-text-meta); }
.cv-ins__apply { justify-self: start; }

/* Who can open (picture 4): a native disclosure; opened, its body is the design system's bottom sheet and the summary's own layer is the scrim (a tap on it closes the sheet) */
.cv-who { margin: var(--o-space-4) var(--o-gutter) 0; }
.cv-who__row { display: flex; align-items: center; gap: var(--o-space-2); min-height: 3.25rem; padding: 0 var(--o-space-4); border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); background: var(--o-raised); list-style: none; cursor: pointer; font-size: var(--o-text-headline); }
.cv-who__row::-webkit-details-marker { display: none; }
.cv-who__row .o-icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--o-ink-2); }
.cv-who__label { flex: 1 1 auto; min-width: 0; color: var(--o-ink-2); }
.cv-who__val { flex: none; font-weight: var(--o-weight-heavy); }
.cv-who__now[data-off] { display: none; }
.cv-who[open] > .cv-who__row::before { content: ""; position: fixed; inset: 0; z-index: var(--o-z-scrim); background: var(--o-scrim); cursor: default; }
.cv-sheet { max-width: 40rem; margin-inline: auto; }
.cv-sheet__title { margin: 0 0 var(--o-space-2); font-size: var(--o-text-title-2); }
.cv-opt__text b { display: block; font-size: var(--o-text-headline); }
.cv-opt__text span { display: block; color: var(--o-ink-2); font-size: var(--o-text-callout); }
.cv-sheet__zones { display: flex; align-items: center; justify-content: space-between; gap: var(--o-space-3); min-height: 3.5rem; padding-block: var(--o-space-2); border-bottom: 1px solid var(--o-line); }
.cv-sheet__ztext { display: grid; min-width: 0; }
.cv-sheet__ztext b { font-size: var(--o-text-headline); }
.cv-sheet__ztext span { color: var(--o-ink-2); font-size: var(--o-text-callout); }
.cv-sheet__zones .o-btn { flex: none; }
.cv-sheet__line { margin: var(--o-space-3) 0 0; padding: var(--o-space-3); border-radius: var(--o-radius-md); background: var(--o-surface); font-size: var(--o-text-callout); }
.cv-sheet__line--private, .cv-sheet__line--signal { display: none; }
.cv-who[data-vis="only_me"] .cv-sheet__line--public { display: none; }
.cv-who[data-vis="only_me"] .cv-sheet__line--private, .cv-who:not([data-vis="everyone"]) .cv-sheet__line--signal { display: block; }
@supports selector(:has(a)) {   /* the lines and the row's word follow the radio as it is tapped, before Apply */
  .cv-who.cv-who .cv-sheet__line, .cv-who.cv-who .cv-who__now { display: none; }
  .cv-who:not(:has(.o-radio[value="only_me"]:checked)) .cv-sheet__line--public, .cv-who:has(.o-radio[value="only_me"]:checked) .cv-sheet__line--private, .cv-who:not(:has(.o-radio[value="everyone"]:checked)) .cv-sheet__line--signal { display: block; }
  .cv-who:has(.o-radio[value="everyone"]:checked) .cv-who__now--everyone, .cv-who:has(.o-radio[value="followers"]:checked) .cv-who__now--followers,
  .cv-who:has(.o-radio[value="connections"]:checked) .cv-who__now--connections, .cv-who:has(.o-radio[value="only_me"]:checked) .cv-who__now--only_me { display: inline; }
}

/* the toolbar: Project · Image · Video · Stat · Text · Icon */
.cv-ed__tools { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--o-z-sticky); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 40rem; margin-inline: auto; padding: var(--o-space-2) var(--o-gutter) calc(var(--o-space-2) + var(--o-safe-bottom)); background: var(--o-bg); border-top: 1px solid var(--o-line); }
.cv-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 3.75rem; padding: 6px 0; border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); background: var(--o-raised); color: var(--o-ink); font-size: 0.75rem; font-weight: var(--o-weight-semibold); cursor: pointer; }
.cv-tool .o-icon { width: 1.375rem; height: 1.375rem; }
.cv-tool span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-tool:disabled { background: var(--o-surface); color: var(--o-ink-disabled); cursor: not-allowed; }
.cv-ed__soon { margin: var(--o-space-3) var(--o-gutter) 0; color: var(--o-ink-2); font-size: var(--o-text-meta); text-align: center; }

/* the owner's Edit canvas, and the operator Profile's one door to the canvas */
.cv-top .cv-edit { flex: none; }
/* CANVAS-SWITCH: Profile | Canvas, plain links in the segmented control; full width, 44 px targets */
.cv-switch { padding: var(--o-space-3) var(--o-gutter) 0; }
.cv-switch .o-segmented { display: grid; width: 100%; }
.cv-switch .o-segmented__opt { min-height: 2.75rem; color: var(--o-ink-2); text-decoration: none; }
.cv-switch .o-segmented__opt[aria-current="page"] { background: var(--o-raised); color: var(--o-ink); box-shadow: inset 0 0 0 1px var(--o-control), var(--o-shadow-1); }
.cv-switch .o-segmented__opt:focus-visible { outline: var(--o-focus-width) solid var(--o-focus); outline-offset: 1px; }

/* Start your canvas (picture 3) */
.cv-stmain { padding: 0; }
.cv-st { max-width: 40rem; margin: 0 auto; padding: 0 var(--o-gutter) var(--o-space-8); }
.cv-st__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--o-bar); margin-inline: calc(var(--o-space-2) * -1); }
.cv-st__skip { display: inline-flex; align-items: center; min-height: var(--o-tap); padding: 0 var(--o-space-2); color: var(--o-ink-2); font-size: var(--o-text-headline); font-weight: var(--o-weight-semibold); text-decoration: none; }
.cv-st__title { margin: var(--o-space-3) 0 var(--o-space-2); font-size: 1.75rem; font-weight: var(--o-weight-heavy); letter-spacing: -0.03em; line-height: 1.1; }
.cv-st__sub { margin: 0; color: var(--o-ink-2); font-size: var(--o-text-headline); line-height: 1.4; }
.cv-st__build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: var(--o-space-3); margin-top: var(--o-space-5); padding: var(--o-space-4); border: 2px solid var(--o-ink); border-radius: var(--o-radius-xl); }
.cv-st__h2 { margin: 0 0 var(--o-space-2); font-size: var(--o-text-title-3); font-weight: var(--o-weight-heavy); }
.cv-st__p { margin: 0 0 var(--o-space-4); color: var(--o-ink-2); font-size: var(--o-text-callout); line-height: 1.4; }
.cv-st__peek { align-self: start; max-height: 15rem; overflow: hidden; border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); }
.cv-st__peek .cv-wrap { zoom: 0.42; padding: 14px; }
.cv-st__h { margin: var(--o-space-6) 0 var(--o-space-3); font-size: var(--o-text-title-3); font-weight: var(--o-weight-heavy); }
.cv-st__layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--o-space-3); }
.cv-st__layout { display: grid; gap: var(--o-space-2); justify-items: center; min-width: 0; color: var(--o-ink); font-size: var(--o-text-headline); text-decoration: none; }
.cv-mini { container-type: inline-size; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; padding: 8px; border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); background: var(--o-surface); }
.cv-mini .cv-board { --cv-gap: 3px; --cv-cols: 12; }
.cv-mini__b { display: block; border-radius: 3px; background: var(--o-surface-2); }
.cv-mini__b--ink { background: var(--o-ink); }
.cv-mini__b--accent { background: var(--o-accent); }
.cv-st__blank { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; margin-top: var(--o-space-5); border: 2px dashed var(--o-control); border-radius: var(--o-radius-lg); color: var(--o-ink); font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); text-decoration: none; }

/* ---- positions (generated: test-support/canvas-css-make.mjs; do not edit by hand) ---- */
.cv-n6 { --cv-cols: 6; }
.cv-n7 { --cv-cols: 7; }
.cv-n8 { --cv-cols: 8; }
.cv-n9 { --cv-cols: 9; }
.cv-n10 { --cv-cols: 10; }
.cv-n11 { --cv-cols: 11; }
.cv-n12 { --cv-cols: 12; }
.cv-rows6 { grid-template-rows: repeat(6, minmax(var(--cv-u), auto)); }
.cv-rows7 { grid-template-rows: repeat(7, minmax(var(--cv-u), auto)); }
.cv-rows8 { grid-template-rows: repeat(8, minmax(var(--cv-u), auto)); }
.cv-rows9 { grid-template-rows: repeat(9, minmax(var(--cv-u), auto)); }
.cv-rows10 { grid-template-rows: repeat(10, minmax(var(--cv-u), auto)); }
.cv-rows11 { grid-template-rows: repeat(11, minmax(var(--cv-u), auto)); }
.cv-rows12 { grid-template-rows: repeat(12, minmax(var(--cv-u), auto)); }
.cv-rows13 { grid-template-rows: repeat(13, minmax(var(--cv-u), auto)); }
.cv-rows14 { grid-template-rows: repeat(14, minmax(var(--cv-u), auto)); }
.cv-rows15 { grid-template-rows: repeat(15, minmax(var(--cv-u), auto)); }
.cv-rows16 { grid-template-rows: repeat(16, minmax(var(--cv-u), auto)); }
.cv-rows17 { grid-template-rows: repeat(17, minmax(var(--cv-u), auto)); }
.cv-rows18 { grid-template-rows: repeat(18, minmax(var(--cv-u), auto)); }
.cv-rows19 { grid-template-rows: repeat(19, minmax(var(--cv-u), auto)); }
.cv-rows20 { grid-template-rows: repeat(20, minmax(var(--cv-u), auto)); }
.cv-rows21 { grid-template-rows: repeat(21, minmax(var(--cv-u), auto)); }
.cv-rows22 { grid-template-rows: repeat(22, minmax(var(--cv-u), auto)); }
.cv-rows23 { grid-template-rows: repeat(23, minmax(var(--cv-u), auto)); }
.cv-rows24 { grid-template-rows: repeat(24, minmax(var(--cv-u), auto)); }
.cv-rows25 { grid-template-rows: repeat(25, minmax(var(--cv-u), auto)); }
.cv-rows26 { grid-template-rows: repeat(26, minmax(var(--cv-u), auto)); }
.cv-rows27 { grid-template-rows: repeat(27, minmax(var(--cv-u), auto)); }
.cv-rows28 { grid-template-rows: repeat(28, minmax(var(--cv-u), auto)); }
.cv-rows29 { grid-template-rows: repeat(29, minmax(var(--cv-u), auto)); }
.cv-rows30 { grid-template-rows: repeat(30, minmax(var(--cv-u), auto)); }
.cv-rows31 { grid-template-rows: repeat(31, minmax(var(--cv-u), auto)); }
.cv-rows32 { grid-template-rows: repeat(32, minmax(var(--cv-u), auto)); }
.cv-rows33 { grid-template-rows: repeat(33, minmax(var(--cv-u), auto)); }
.cv-rows34 { grid-template-rows: repeat(34, minmax(var(--cv-u), auto)); }
.cv-rows35 { grid-template-rows: repeat(35, minmax(var(--cv-u), auto)); }
.cv-rows36 { grid-template-rows: repeat(36, minmax(var(--cv-u), auto)); }
.cv-rows37 { grid-template-rows: repeat(37, minmax(var(--cv-u), auto)); }
.cv-rows38 { grid-template-rows: repeat(38, minmax(var(--cv-u), auto)); }
.cv-rows39 { grid-template-rows: repeat(39, minmax(var(--cv-u), auto)); }
.cv-rows40 { grid-template-rows: repeat(40, minmax(var(--cv-u), auto)); }
.cv-rows41 { grid-template-rows: repeat(41, minmax(var(--cv-u), auto)); }
.cv-rows42 { grid-template-rows: repeat(42, minmax(var(--cv-u), auto)); }
.cv-rows43 { grid-template-rows: repeat(43, minmax(var(--cv-u), auto)); }
.cv-rows44 { grid-template-rows: repeat(44, minmax(var(--cv-u), auto)); }
.cv-rows45 { grid-template-rows: repeat(45, minmax(var(--cv-u), auto)); }
.cv-rows46 { grid-template-rows: repeat(46, minmax(var(--cv-u), auto)); }
.cv-rows47 { grid-template-rows: repeat(47, minmax(var(--cv-u), auto)); }
.cv-rows48 { grid-template-rows: repeat(48, minmax(var(--cv-u), auto)); }
.cv-x0 { grid-column-start: 1; }
.cv-x1 { grid-column-start: 2; }
.cv-x2 { grid-column-start: 3; }
.cv-x3 { grid-column-start: 4; }
.cv-x4 { grid-column-start: 5; }
.cv-x5 { grid-column-start: 6; }
.cv-x6 { grid-column-start: 7; }
.cv-x7 { grid-column-start: 8; }
.cv-x8 { grid-column-start: 9; }
.cv-x9 { grid-column-start: 10; }
.cv-x10 { grid-column-start: 11; }
.cv-x11 { grid-column-start: 12; }
.cv-w1 { grid-column-end: span 1; }
.cv-w2 { grid-column-end: span 2; }
.cv-w3 { grid-column-end: span 3; }
.cv-w4 { grid-column-end: span 4; }
.cv-w5 { grid-column-end: span 5; }
.cv-w6 { grid-column-end: span 6; }
.cv-w7 { grid-column-end: span 7; }
.cv-w8 { grid-column-end: span 8; }
.cv-w9 { grid-column-end: span 9; }
.cv-w10 { grid-column-end: span 10; }
.cv-w11 { grid-column-end: span 11; }
.cv-w12 { grid-column-end: span 12; }
.cv-y0 { grid-row-start: 1; }
.cv-y1 { grid-row-start: 2; }
.cv-y2 { grid-row-start: 3; }
.cv-y3 { grid-row-start: 4; }
.cv-y4 { grid-row-start: 5; }
.cv-y5 { grid-row-start: 6; }
.cv-y6 { grid-row-start: 7; }
.cv-y7 { grid-row-start: 8; }
.cv-y8 { grid-row-start: 9; }
.cv-y9 { grid-row-start: 10; }
.cv-y10 { grid-row-start: 11; }
.cv-y11 { grid-row-start: 12; }
.cv-y12 { grid-row-start: 13; }
.cv-y13 { grid-row-start: 14; }
.cv-y14 { grid-row-start: 15; }
.cv-y15 { grid-row-start: 16; }
.cv-y16 { grid-row-start: 17; }
.cv-y17 { grid-row-start: 18; }
.cv-y18 { grid-row-start: 19; }
.cv-y19 { grid-row-start: 20; }
.cv-y20 { grid-row-start: 21; }
.cv-y21 { grid-row-start: 22; }
.cv-y22 { grid-row-start: 23; }
.cv-y23 { grid-row-start: 24; }
.cv-y24 { grid-row-start: 25; }
.cv-y25 { grid-row-start: 26; }
.cv-y26 { grid-row-start: 27; }
.cv-y27 { grid-row-start: 28; }
.cv-y28 { grid-row-start: 29; }
.cv-y29 { grid-row-start: 30; }
.cv-y30 { grid-row-start: 31; }
.cv-y31 { grid-row-start: 32; }
.cv-y32 { grid-row-start: 33; }
.cv-y33 { grid-row-start: 34; }
.cv-y34 { grid-row-start: 35; }
.cv-y35 { grid-row-start: 36; }
.cv-y36 { grid-row-start: 37; }
.cv-y37 { grid-row-start: 38; }
.cv-y38 { grid-row-start: 39; }
.cv-y39 { grid-row-start: 40; }
.cv-y40 { grid-row-start: 41; }
.cv-y41 { grid-row-start: 42; }
.cv-y42 { grid-row-start: 43; }
.cv-y43 { grid-row-start: 44; }
.cv-y44 { grid-row-start: 45; }
.cv-y45 { grid-row-start: 46; }
.cv-y46 { grid-row-start: 47; }
.cv-y47 { grid-row-start: 48; }
.cv-y48 { grid-row-start: 49; }
.cv-y49 { grid-row-start: 50; }
.cv-y50 { grid-row-start: 51; }
.cv-y51 { grid-row-start: 52; }
.cv-y52 { grid-row-start: 53; }
.cv-y53 { grid-row-start: 54; }
.cv-y54 { grid-row-start: 55; }
.cv-y55 { grid-row-start: 56; }
.cv-y56 { grid-row-start: 57; }
.cv-y57 { grid-row-start: 58; }
.cv-y58 { grid-row-start: 59; }
.cv-y59 { grid-row-start: 60; }
.cv-y60 { grid-row-start: 61; }
.cv-y61 { grid-row-start: 62; }
.cv-y62 { grid-row-start: 63; }
.cv-y63 { grid-row-start: 64; }
.cv-y64 { grid-row-start: 65; }
.cv-y65 { grid-row-start: 66; }
.cv-y66 { grid-row-start: 67; }
.cv-y67 { grid-row-start: 68; }
.cv-y68 { grid-row-start: 69; }
.cv-y69 { grid-row-start: 70; }
.cv-y70 { grid-row-start: 71; }
.cv-y71 { grid-row-start: 72; }
.cv-y72 { grid-row-start: 73; }
.cv-y73 { grid-row-start: 74; }
.cv-y74 { grid-row-start: 75; }
.cv-y75 { grid-row-start: 76; }
.cv-y76 { grid-row-start: 77; }
.cv-y77 { grid-row-start: 78; }
.cv-y78 { grid-row-start: 79; }
.cv-y79 { grid-row-start: 80; }
.cv-y80 { grid-row-start: 81; }
.cv-y81 { grid-row-start: 82; }
.cv-y82 { grid-row-start: 83; }
.cv-y83 { grid-row-start: 84; }
.cv-y84 { grid-row-start: 85; }
.cv-y85 { grid-row-start: 86; }
.cv-y86 { grid-row-start: 87; }
.cv-y87 { grid-row-start: 88; }
.cv-y88 { grid-row-start: 89; }
.cv-y89 { grid-row-start: 90; }
.cv-y90 { grid-row-start: 91; }
.cv-y91 { grid-row-start: 92; }
.cv-y92 { grid-row-start: 93; }
.cv-y93 { grid-row-start: 94; }
.cv-y94 { grid-row-start: 95; }
.cv-y95 { grid-row-start: 96; }
.cv-h1 { grid-row-end: span 1; }
.cv-h2 { grid-row-end: span 2; }
.cv-h3 { grid-row-end: span 3; }
.cv-h4 { grid-row-end: span 4; }
.cv-h5 { grid-row-end: span 5; }
.cv-h6 { grid-row-end: span 6; }
.cv-h7 { grid-row-end: span 7; }
.cv-h8 { grid-row-end: span 8; }
.cv-h9 { grid-row-end: span 9; }
.cv-h10 { grid-row-end: span 10; }
.cv-h11 { grid-row-end: span 11; }
.cv-h12 { grid-row-end: span 12; }
.cv-h13 { grid-row-end: span 13; }
.cv-h14 { grid-row-end: span 14; }
.cv-h15 { grid-row-end: span 15; }
.cv-h16 { grid-row-end: span 16; }
.cv-h17 { grid-row-end: span 17; }
.cv-h18 { grid-row-end: span 18; }
.cv-h19 { grid-row-end: span 19; }
.cv-h20 { grid-row-end: span 20; }
.cv-h21 { grid-row-end: span 21; }
.cv-h22 { grid-row-end: span 22; }
.cv-h23 { grid-row-end: span 23; }
.cv-h24 { grid-row-end: span 24; }
.cv-fh6 { grid-row-end: span 6; }
.cv-fh7 { grid-row-end: span 7; }
.cv-fh8 { grid-row-end: span 8; }
.cv-fh9 { grid-row-end: span 9; }
.cv-fh10 { grid-row-end: span 10; }
.cv-fh11 { grid-row-end: span 11; }
.cv-fh12 { grid-row-end: span 12; }
.cv-fh13 { grid-row-end: span 13; }
.cv-fh14 { grid-row-end: span 14; }
.cv-fh15 { grid-row-end: span 15; }
.cv-fh16 { grid-row-end: span 16; }
.cv-fh17 { grid-row-end: span 17; }
.cv-fh18 { grid-row-end: span 18; }
.cv-fh19 { grid-row-end: span 19; }
.cv-fh20 { grid-row-end: span 20; }
.cv-fh21 { grid-row-end: span 21; }
.cv-fh22 { grid-row-end: span 22; }
.cv-fh23 { grid-row-end: span 23; }
.cv-fh24 { grid-row-end: span 24; }
.cv-fh25 { grid-row-end: span 25; }
.cv-fh26 { grid-row-end: span 26; }
.cv-fh27 { grid-row-end: span 27; }
.cv-fh28 { grid-row-end: span 28; }
.cv-fh29 { grid-row-end: span 29; }
.cv-fh30 { grid-row-end: span 30; }
.cv-fh31 { grid-row-end: span 31; }
.cv-fh32 { grid-row-end: span 32; }
.cv-fh33 { grid-row-end: span 33; }
.cv-fh34 { grid-row-end: span 34; }
.cv-fh35 { grid-row-end: span 35; }
.cv-fh36 { grid-row-end: span 36; }
.cv-fh37 { grid-row-end: span 37; }
.cv-fh38 { grid-row-end: span 38; }
.cv-fh39 { grid-row-end: span 39; }
.cv-fh40 { grid-row-end: span 40; }
.cv-fh41 { grid-row-end: span 41; }
.cv-fh42 { grid-row-end: span 42; }
.cv-fh43 { grid-row-end: span 43; }
.cv-fh44 { grid-row-end: span 44; }
.cv-fh45 { grid-row-end: span 45; }
.cv-fh46 { grid-row-end: span 46; }
.cv-fh47 { grid-row-end: span 47; }
.cv-fh48 { grid-row-end: span 48; }
/* APP-ON-CANVAS-1: the App block on the Canvas (served only with FD_SOCIAL=1, FD_CANVAS=1 and FD_CANVAS_APPS=1). It reuses the project card's classes (.cv-proj*); only the host line and the owner's "why" are new. Tokens only. */
.cv-app__host { color: var(--cv-ink2); font-size: clamp(0.5625rem, calc(var(--cv-u) * 0.32), 0.8125rem); }   /* its own line under the kind word, so a long host is not cut by the Open pill */
.cv-app__why { margin: 0; padding-top: calc(var(--cv-u) * 0.12); font-size: clamp(0.625rem, calc(var(--cv-u) * 0.36), 0.8125rem); line-height: 1.35; color: var(--cv-ink2); }
.cv-app[data-app="stale"] .cv-proj__type { color: var(--cv-ink2); }
.cv-ins__help.cv-app__why { font-size: var(--o-text-sm, 0.875rem); }

/* ==================================================== CANVAS-3: the operator Profile (rides on social.css only with FD_OPERATOR_PROFILE=1)
   Night shift: white, black type, the one lime accent only where the design system already puts it (the tab underline in dark), mono for small facts. A control page: plain rows, no showcase. */
.op-head { display: flex; align-items: center; gap: var(--o-space-3); padding: var(--o-space-3) var(--o-gutter) 0; }
.op-head__avatar { --_av: 2.5rem; flex: none; border-radius: 50%; background: var(--o-ink); color: var(--o-bg); font-size: 1.0625rem; }
.op-head__handle { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--o-text-title-2); font-weight: var(--o-weight-heavy); line-height: var(--o-leading-tight); overflow-wrap: anywhere; }
.op-head__gear { flex: none; width: var(--o-btn-h); padding: 0; border-color: var(--o-line); border-radius: var(--o-radius-lg); text-decoration: none; }
.op-head__gear .o-icon { flex: none; width: 1.125rem; height: 1.125rem; }
.op-h2 { margin: 0; padding: 0 0 var(--o-space-2); font-size: var(--o-text-headline); font-weight: var(--o-weight-bold); overflow-wrap: anywhere; }
.op-h3 { margin: 0; padding: var(--o-space-4) 0 var(--o-space-2); font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); color: var(--o-ink-2); }
.op-added { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: var(--o-space-3) var(--o-gutter) 0; }
.op-added .o-notice__actions { margin-top: 0; }

/* Needs your attention: one row each, one action */
.op-attn { margin: var(--o-space-4) var(--o-gutter) 0; }
.op-attn[hidden] { display: none; }
.op-attn__row { gap: var(--o-space-3); min-height: 3rem; }
.op-attn__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--o-warn); }
.op-attn__row[data-attn="unread"] .op-attn__dot { background: var(--o-ink); }
.op-attn__text { font-size: var(--o-text-callout); line-height: 1.35; overflow-wrap: anywhere; }
.op-attn__go { flex: none; white-space: nowrap; }
.op-attn__carry { display: none; }

/* the tabs and the Usage tab */
.op-tabs { margin-top: var(--o-space-4); }
.op-usage .s-meter-slot { margin-top: var(--o-space-3); }
.op-use { padding-inline: var(--o-gutter); }
.op-use__row { gap: var(--o-space-3); }
.op-use__name { display: block; font-weight: var(--o-weight-semibold); overflow-wrap: anywhere; }
.op-use__value { white-space: normal; text-align: right; max-width: 55%; }
.op-use__empty { margin: var(--o-space-3) var(--o-gutter) 0; }

/* Add to canvas on a project card (the place the Pin button had) */
.s-pp__oncv { display: inline-flex; align-items: center; gap: 6px; min-height: var(--o-tap); margin-block: -0.5rem; color: var(--o-ink-2); text-decoration: none; }
.s-pp__oncv .o-icon { width: 0.875rem; height: 0.875rem; }

/* Tools: one list of rows */
.op-tools { margin: var(--o-space-6) var(--o-gutter) 0; }
.op-tool { text-decoration: none; }
.op-tool > .o-icon:first-child { flex: none; width: 1.25rem; height: 1.25rem; }
.op-tool > .o-icon:last-child { flex: none; width: 1rem; height: 1rem; }
.op-tool .o-listrow__text { font-weight: var(--o-weight-medium); overflow-wrap: anywhere; }
.op-tool .o-listrow__text small { font-weight: var(--o-weight-regular); overflow-wrap: anywhere; }
.op-page .s-identity { margin-top: var(--o-space-5); }

/* Activity: Activity · Saved · Liked */
.op-actabs { margin-top: var(--o-space-3); }
.op-activity .s-feed { margin-top: var(--o-space-3); }

/* the Canvas editor's profile block: name, bio, photo (their forms sit after the editor's form, empty) */
.cv-pf__form { display: none; }
.cv-pf__photo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--o-space-2) var(--o-space-3); }
.cv-pf__avatar { --_av: 3rem; flex: none; border-radius: 50%; background: var(--o-ink); color: var(--o-bg); }
.cv-pf__file { flex: 1 1 12rem; }
.cv-pf__file .o-input { padding-block: 0.5rem; }
.cv-pf__save { justify-self: start; }
/* CANVAS-2B: photos on a canvas, Add a photo in the editor, Search -> People, Download my canvas (served only with FD_SOCIAL=1, FD_CANVAS=1 and FD_CANVAS_MEDIA=1; off, social.css is the file as it was).
   Design tokens only; no new colour. A photo fills its block (object-fit: cover), with the theme's own corner and edge. */
.cv-img { position: relative; margin: 0; min-height: calc(var(--cv-u) * 2); overflow: hidden; border-radius: var(--cv-r); border: var(--cv-edge); background: var(--cv-card); box-shadow: var(--cv-shadow); }
.cv-img__i { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* the editor: Add a photo, and Download my canvas */
.cv-up .cv-up__file { padding: var(--o-space-2); }
.cv-up__row { display: flex; flex-wrap: wrap; gap: var(--o-space-2); margin-top: var(--o-space-3); }
.cv-ed__dl { margin: var(--o-space-2) var(--o-gutter) 0; text-align: center; font-size: var(--o-text-meta); }

/* Search -> People: one row per person, the whole row opens the canvas (one link over it); the cover is a small inert copy */
.cv-people { list-style: none; margin: var(--o-space-3) 0 0; padding: 0; display: grid; gap: 0; }
.cv-person { position: relative; display: flex; align-items: center; gap: var(--o-space-3); min-width: 0; padding: var(--o-space-3) var(--o-gutter); border-bottom: 1px solid var(--o-line); }
.cv-person__av { flex: none; width: 2.75rem; height: 2.75rem; overflow: hidden; font-weight: var(--o-weight-heavy); }
.cv-person__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-person__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cv-person__handle { font-size: var(--o-text-callout); font-weight: var(--o-weight-bold); }
.cv-person__name { font-size: var(--o-text-meta); color: var(--o-ink-2); }
.cv-person__thumb { flex: none; width: 4.5rem; max-height: 6rem; overflow: hidden; border: 1px solid var(--o-line); border-radius: var(--o-radius-md); }
.cv-person__thumb .cv-wrap { zoom: 0.25; --cv-gap: 4px; padding: var(--o-space-3); }
.cv-person__link { position: absolute; inset: 0; z-index: 2; border-radius: 0; }
.cv-person__link:focus-visible { outline: 2px solid var(--o-ink); outline-offset: -2px; }
.cv-ppl__hint { margin: var(--o-space-4) var(--o-gutter); }

/* ---- CANVAS-4 (FD_CANVAS_FORK=1): the poster and mono looks, Fork this canvas, Forked by, the editor's Look picker. Rides on /assets/social.css only with the switch (shell/assets.mjs); off, social.css
   is the file as it was. No colour here is new: poster takes the drawn covers' coral (palette 6 of social/cover-art.mjs, as the pixel look does) with the design tokens' black and white; mono is the
   design tokens (it follows the phone's light or dark setting) in the mono stack; lime is --o-accent. System fonts only, no gradient, no animation, no style attribute anywhere. ---- */

/* poster: one strong colour block (the whole board, as bea's card in picture 1), black type, very big heavy system type; fixed colours in light and dark, like a printed poster */
.cv-t-poster { --cv-bg: #FF7A66; --cv-card: #FFFFFF; --cv-ink: #0B0B0C; --cv-ink2: #0B0B0C; --cv-line: #0B0B0C; --cv-r: var(--o-radius-md); --cv-edge: 2px solid #0B0B0C; --cv-shadow: none;
  --cv-accent: #C6FF3D; --cv-on-accent: #0B0B0C; --cv-solid: #0B0B0C; --cv-on-solid: #FFFFFF; --cv-display: var(--o-font-text); --cv-case: none; --cv-track: -0.045em; color-scheme: light; }
.cv-t-poster .cv-big { font-size: clamp(2.5rem, calc(var(--cv-u) * 2.7), 6.5rem); line-height: 0.92; letter-spacing: -0.05em; }
.cv-t-poster .cv-title { font-size: clamp(1.75rem, calc(var(--cv-u) * 1.5), 3.25rem); line-height: 1; }
.cv-t-poster .cv-prof__handle { font-size: clamp(1.5rem, calc(var(--cv-u) * 1.25), 3.5rem); }
.cv-t-poster .cv-prof__sub { color: #0B0B0C; font-weight: var(--o-weight-semibold); }
.cv-t-poster .cv-prof__av { background: #0B0B0C; color: #FFFFFF; }
.cv-t-poster .cv-proj { padding: 6px; border: 0; border-radius: 4px; background: #FFFFFF; }
.cv-t-poster .cv-proj__cover { border-radius: 2px; }
.cv-t-poster .cv-proj__type { color: #0B0B0C; }
.cv-t-poster .cv-pill { background: #0B0B0C; color: #FFFFFF; }
.cv-t-poster .cv-pill--play { background: #C6FF3D; color: #0B0B0C; }
.cv-t-poster .cv-stat, .cv-t-poster .cv-stat--tokens_used, .cv-t-poster .cv-stat--likes, .cv-t-poster .cv-stat--projects { padding: 6px 0 0; background: transparent; color: #0B0B0C; border: 0; border-top: 3px solid #0B0B0C; border-radius: 0; }
.cv-t-poster .cv-stat__n { font-size: max(1.25rem, min(calc(var(--cv-u) * 1.5), 4rem, 26cqw)); letter-spacing: -0.05em; }
.cv-t-poster .cv-notes { padding: 0; background: transparent; border: 0; font-size: clamp(0.875rem, calc(var(--cv-u) * 0.55), 1.25rem); font-weight: var(--o-weight-semibold); line-height: 1.3; }
.cv-t-poster .cv-link { background: transparent; border: 2px solid #0B0B0C; color: #0B0B0C; }
.cv-t-poster .cv-link__host { color: #0B0B0C; }
.cv-t-poster .cv-stk { background: #FFFFFF; color: #0B0B0C; }
.cv-t-poster .cv-zone { border-color: #0B0B0C; }

/* mono: white (the page's own colours: dark when the phone is dark), the mono stack, rules between rows, Project blocks numbered 01, 02... by a CSS counter (no number is written into the page), and
   no other colour block: the one lime block is Fork this canvas (lu.codes in picture 1) */
.cv-t-mono { --cv-bg: var(--o-bg); --cv-card: var(--o-bg); --cv-ink: var(--o-ink); --cv-ink2: var(--o-ink-2); --cv-line: var(--o-ink); --cv-r: 0; --cv-edge: 1px solid var(--o-ink); --cv-shadow: none;
  --cv-accent: var(--o-accent); --cv-on-accent: var(--o-on-accent); --cv-solid: var(--o-ink); --cv-on-solid: var(--o-bg); --cv-display: var(--o-font-mono); --cv-case: none; --cv-track: -0.02em; font-family: var(--o-font-mono); }
.cv-t-mono .cv-board { counter-reset: cv-row; }
.cv-t-mono .cv-prof { align-items: flex-end; padding-bottom: 8px; border-bottom: 3px solid var(--o-ink); }
.cv-t-mono .cv-prof__av { display: none; }
.cv-t-mono .cv-prof__handle { font-size: clamp(1.375rem, calc(var(--cv-u) * 1.05), 2.75rem); font-weight: var(--o-weight-bold); }
.cv-t-mono .cv-b--project { counter-increment: cv-row; }
.cv-t-mono .cv-b--project > .cv-proj { flex: none; }
.cv-t-mono .cv-proj { flex-direction: row; align-items: center; gap: 10px; padding: 9px 0; background: transparent; border: 0; border-bottom: 1px solid var(--o-ink); border-radius: 0; }   /* one rule under each row (the profile's heavy rule is the line above the first) */
.cv-t-mono .cv-proj::before { content: counter(cv-row, decimal-leading-zero); flex: none; color: var(--o-ink-2); font-size: clamp(0.75rem, calc(var(--cv-u) * 0.45), 1rem); font-variant-numeric: tabular-nums; }
.cv-t-mono .cv-proj__cover { display: none; }
.cv-t-mono .cv-proj__bar { flex: 1 1 auto; margin-top: 0; }
.cv-t-mono .cv-proj__text { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; }
.cv-t-mono .cv-proj__name { font-weight: var(--o-weight-bold); font-size: clamp(0.8125rem, calc(var(--cv-u) * 0.5), 1.125rem); }
.cv-t-mono .cv-proj__type { flex: none; }
.cv-t-mono .cv-pill, .cv-t-mono .cv-pill--play { border-radius: 0; background: transparent; color: var(--o-ink); box-shadow: inset 0 0 0 1px var(--o-ink); font-family: var(--o-font-mono); }
.cv-t-mono .cv-stat, .cv-t-mono .cv-stat--tokens_used, .cv-t-mono .cv-stat--likes, .cv-t-mono .cv-stat--projects { padding: 8px 0 0; background: transparent; color: var(--o-ink); border: 0; border-top: 1px solid var(--o-ink); border-radius: 0; }
.cv-t-mono .cv-stat__label { font-weight: var(--o-weight-regular); color: var(--o-ink-2); }
.cv-t-mono .cv-stat__n { font-weight: var(--o-weight-bold); letter-spacing: -0.04em; }
.cv-t-mono .cv-title { font-weight: var(--o-weight-bold); }
.cv-t-mono .cv-big { font-weight: var(--o-weight-bold); letter-spacing: -0.04em; }
.cv-t-mono .cv-notes { padding: 0; background: transparent; border: 0; }
.cv-t-mono .cv-link { border-radius: 0; }
.cv-t-mono .cv-stk, .cv-t-mono .cv-stk--on_explore { border-radius: 0; background: transparent; color: var(--o-ink); box-shadow: inset 0 0 0 1px var(--o-ink); transform: none; font-family: var(--o-font-mono); }
.cv-t-mono .cv-zone { border-width: 1px; }

/* Fork this canvas: the lime block of picture 2, in every look */
.cv-fork { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 3.5rem; padding: calc(var(--cv-u) * 0.35) calc(var(--cv-u) * 0.4); border: 1px solid var(--o-fill-edge);
  border-radius: var(--cv-r); background: var(--o-accent); color: var(--o-on-accent); box-shadow: var(--cv-shadow); text-decoration: none; }
.cv-fork .o-icon { width: 1.5rem; height: 1.5rem; margin-bottom: auto; }
.cv-fork__t { font-family: var(--cv-display); font-size: clamp(0.9375rem, calc(var(--cv-u) * 0.62), 1.5rem); font-weight: var(--o-weight-heavy); letter-spacing: var(--cv-track); line-height: 1.05; text-transform: var(--cv-case); }
.cv-fork__s { font-size: clamp(0.6875rem, calc(var(--cv-u) * 0.36), 0.875rem); line-height: 1.3; }
a.cv-fork:focus-visible { outline: var(--o-focus-width) solid var(--o-focus); outline-offset: 2px; }
.cv-t-pixel .cv-fork { border: 0; border-radius: 0; box-shadow: 4px 4px 0 #0B0B0C; font-family: var(--o-font-mono); }
.cv-t-pixel .cv-fork__t { font-family: var(--o-font-mono); text-transform: uppercase; letter-spacing: 0.02em; }
.cv-t-poster .cv-fork { border: 2px solid #0B0B0C; }

/* Forked by: the count and the names of people whose own canvas is open to Everyone */
.cv-fby { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: calc(var(--cv-u) * 0.35); background: var(--cv-card); color: var(--cv-ink); border: var(--cv-edge); border-radius: var(--cv-r); box-shadow: var(--cv-shadow); }
.cv-fby__t { margin: 0; font-family: var(--cv-display); font-size: clamp(0.9375rem, calc(var(--cv-u) * 0.55), 1.25rem); font-weight: var(--o-weight-heavy); letter-spacing: var(--cv-track); line-height: 1.1; text-transform: var(--cv-case); }
.cv-fby__n, .cv-fby__more { margin: 0; color: var(--cv-ink2); font-family: var(--o-font-mono); font-size: 0.75rem; }
.cv-fby__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cv-fby__who { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 2.25rem; color: var(--cv-ink); font-family: var(--o-font-mono); font-size: 0.8125rem; text-decoration: none; }
.cv-fby__av { flex: none; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1.5px solid currentColor; border-radius: 50%; font-size: 0.6875rem; font-weight: var(--o-weight-bold); }
.cv-t-pixel .cv-fby { border: 3px solid #F4F4F1; box-shadow: none; }
.cv-t-pixel .cv-fby__t { color: var(--cv-accent); font-family: var(--o-font-mono); text-transform: uppercase; }
.cv-t-pixel .cv-fby__av, .cv-t-mono .cv-fby__av { border-radius: 0; }
.cv-t-mono .cv-fby { border-width: 1px 0; }

/* the editor's Look picker (radios of the editor's form) and the fork blocks */
.cv-look, .cv-forks { margin: var(--o-space-4) var(--o-gutter) 0; padding: var(--o-space-4); min-width: 0; border: 1px solid var(--o-line); border-radius: var(--o-radius-lg); background: var(--o-raised); }
.cv-look__t, .cv-forks__t { float: left; width: 100%; margin: 0 0 var(--o-space-3); padding: 0; font-size: var(--o-text-headline); font-weight: var(--o-weight-heavy); }
.cv-look__list { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--o-space-2); }
.cv-look__o { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 4px; min-width: 0; padding: 6px; border: 1px solid var(--o-line); border-radius: var(--o-radius-md); cursor: pointer; }
.cv-look__o:has(.cv-look__r:checked) { border-color: var(--o-ink); box-shadow: inset 0 0 0 1px var(--o-ink); }
.cv-look__sw { grid-column: 1 / -1; display: grid; align-content: end; gap: 3px; width: 100%; aspect-ratio: 4 / 3; padding: 6px; border: 1px solid var(--o-line); border-radius: 6px; background: var(--o-surface); }
.cv-look__sw i { display: block; height: 4px; border-radius: 2px; background: var(--o-surface-2); }
.cv-look__sw i:first-child { width: 70%; height: 8px; background: var(--o-ink); }
.cv-look__sw i:last-child { width: 45%; background: var(--o-accent); }
.cv-look__sw--pixel { border-radius: 0; background: #1B2A41; }
.cv-look__sw--pixel i { border-radius: 0; background: #9DB4C0; }
.cv-look__sw--pixel i:first-child { background: #C6FF3D; }
.cv-look__sw--pixel i:last-child { background: #FF7A66; }
.cv-look__sw--poster { background: #FF7A66; }
.cv-look__sw--poster i, .cv-look__sw--poster i:last-child { background: #0B0B0C; }
.cv-look__sw--poster i:first-child { width: 90%; height: 14px; }
.cv-look__sw--mono { border-radius: 0; background: var(--o-bg); }
.cv-look__sw--mono i { height: 1px; border-radius: 0; background: var(--o-ink); }
.cv-look__sw--mono i:first-child { height: 3px; }
.cv-look__sw--mono i:last-child { height: 8px; width: 60%; background: var(--o-accent); }
.cv-look__r { margin: 0; }
.cv-look__w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--o-text-meta); font-weight: var(--o-weight-semibold); }
.cv-look .cv-ins__help { margin-top: var(--o-space-3); }
.cv-look__apply { margin-top: var(--o-space-3); }
.cv-forks__add { display: flex; flex-wrap: wrap; gap: var(--o-space-2); margin-top: var(--o-space-3); }
.cv-forks .cv-ins__help { clear: both; }
