/* ============================================================
   Agent Ibex Content Studio — post.html styles.
   Studio chrome = flat craft (design-system vars).
   Social cards = REAL chrome (X & LinkedIn rendered authentically,
   system fonts, real platform colors) — that contrast is the point.
   ============================================================ */

.wrap-wide { max-width: 1800px; margin: 0 auto; padding: 0 24px; }

/* ---------- page head ---------- */
.studio-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; padding: 34px 0 22px;
}
.studio-head h1 { margin: 8px 0 10px; }
.studio-head .lead { max-width: 560px; margin: 0; font-size: 1.02rem; }
.head-stats {
  display: flex; gap: 34px; background: var(--paper);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px 26px; flex-shrink: 0;
}
.head-stats .stat .num { font-size: 1.55rem; }
.head-stats .stat .num em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- studio grid ---------- */
.studio {
  display: grid; grid-template-columns: 296px minmax(0, 1fr) 340px;
  gap: 22px; align-items: start; margin-top: 8px;
}

/* ---------- left rail steps ---------- */
.step { padding: 16px; margin-bottom: 16px; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-head h3 { margin: 0; font-size: 0.95rem; }

.sel {
  width: 100%; appearance: none; -webkit-appearance: none;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  color: var(--ink); background: var(--paper);
  border: var(--border-thin); border-radius: var(--radius-sm);
  padding: 11px 36px 11px 12px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232f271d' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sel:focus { outline: 3px solid var(--water-light); outline-offset: 1px; }

.biz-meta { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.biz-meta .bm {
  background: var(--cream-2); border: var(--border-thin); border-radius: 6px;
  padding: 7px 10px;
}
.biz-meta .bm .v { font-family: var(--font-display); font-size: 0.82rem; line-height: 1.1; }
.biz-meta .bm .k { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 3px; }
.biz-meta .bm-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.biz-teaser { grid-column: 1 / -1; font-size: 0.75rem; color: var(--ink-soft); line-height: 1.45;
  border-top: 2px dashed var(--stone-light); padding-top: 9px; }

/* ---------- option blocks (channel / tone) ---------- */
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  border: var(--border-thin); border-radius: var(--radius-sm);
  background: var(--paper); padding: 10px 12px; user-select: none;
  transition: transform 0.06s steps(2), box-shadow 0.06s steps(2), background 0.06s;
}
.opt:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-xs); }
.opt.on { background: var(--sun); border: var(--border); box-shadow: var(--shadow-xs); }
.opt .glyph {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border: var(--border-thin); border-radius: 7px; background: #fff;
}
.opt .glyph svg { display: block; }
.opt .ot { min-width: 0; }
.opt .ot .t { font-weight: 700; font-size: 0.86rem; line-height: 1.15; }
.opt .ot .d { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-top: 2px; }
.opt.on .ot .d { color: var(--ink); }
.opt .dot { margin-left: auto; width: 14px; height: 14px; border-radius: 50%;
  border: var(--border-thin); background: var(--paper); flex-shrink: 0; }
.opt.on .dot { background: var(--ink); box-shadow: inset 0 0 0 3px var(--sun); }

/* channel glyph colors */
.g-x { background: #0f1419 !important; }
.g-li { background: #0a66c2 !important; }
.g-li span { font-family: Arial, sans-serif; font-weight: 900; color: #fff; font-size: 19px; }
.g-log { background: var(--terracotta) !important; }

/* ---------- ship-it controls ---------- */
.varrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.varrow .v-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.vpips { display: inline-flex; gap: 5px; }
.vpips i { width: 10px; height: 10px; border: var(--border-thin); background: var(--paper); display: block; }
.vpips i.on { background: var(--terracotta); }

.meter-wrap { margin-bottom: 12px; }
.meter-top { display: flex; justify-content: space-between; font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); margin-bottom: 5px; }
.meter-top .over { color: var(--terracotta); }
.meter { height: 12px; border: var(--border-thin); border-radius: 6px; background: var(--paper);
  overflow: hidden; box-shadow: inset 2px 2px 0 rgba(47,39,29,0.12); }
.meter i { display: block; height: 100%; background: var(--water);
  border-right: 2px solid var(--ink); transition: width 0.25s steps(6); }
.meter i.warn { background: var(--sun); }
.meter i.over { background: var(--terracotta); }

.ship-btns { display: grid; gap: 9px; }
.ship-btns .btn { width: 100%; justify-content: center; }

.draft-status {
  margin-top: 13px; display: flex; align-items: center; gap: 10px;
  border-top: 2px dashed var(--stone-light); padding-top: 11px;
}
.draft-status .ava-mini {
  width: 40px; height: 40px; border: var(--border-thin); border-radius: 8px;
  background: var(--sky); overflow: hidden; flex-shrink: 0;
}

.draft-status .ds-t { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.6; color: var(--ink-soft); }
.draft-status .ds-t b { color: var(--ink); }
.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- stage (center) ---------- */
.stage { padding: 18px 20px 22px; }
.stage-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stage-head h3 { margin: 0; }
.stage-head .live-dot { width: 10px; height: 10px; background: var(--terracotta);
  border: 2px solid var(--ink); border-radius: 50%; }
.stage-head .hint { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); margin-left: auto; }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.slot {
  background:
    linear-gradient(rgba(47,39,29,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,39,29,0.05) 1px, transparent 1px),
    var(--cream-2);
  background-size: 20px 20px;
  border: 2px dashed var(--stone); border-radius: var(--radius-sm);
  padding: 34px 14px 14px; position: relative; min-height: 200px;
}
.slot-tab {
  position: absolute; top: -2px; left: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  background: var(--ink); color: var(--cream); padding: 4px 10px;
  border-radius: 0 0 6px 6px; display: inline-flex; gap: 7px; align-items: center;
}
.slot-tab .mut { color: var(--water-light); }
.slot.adapt .slot-tab { background: var(--stone); color: var(--ink); }

/* ============================================================
   X (Twitter) card — authentic chrome. White, #0f1419 text,
   #536471 secondary, #1d9bf0 accents, 16px radius, system font.
   ============================================================ */
.xcard, .licard { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.xcard {
  background: #fff; color: #0f1419;
  border: 1px solid #cfd9de; border-radius: 16px;
  padding: 12px 14px 6px;
  font-size: 15px; line-height: 20px;
}
.xcard * { text-transform: none; letter-spacing: normal; }
.x-row { display: flex; gap: 10px; }
.x-ava {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky); overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.x-main { flex: 1; min-width: 0; }
.x-head { display: flex; align-items: center; gap: 4px; min-width: 0; }
.x-name { font-weight: 700; font-size: 15px; color: #0f1419; white-space: nowrap; }
.x-badge { flex-shrink: 0; display: inline-flex; }
.x-meta { color: #536471; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-dots { margin-left: auto; color: #536471; font-weight: 700; letter-spacing: 1px; font-size: 14px; padding: 0 2px; }
.x-text { margin-top: 2px; font-size: 15px; line-height: 20px; color: #0f1419;
  white-space: pre-wrap; word-wrap: break-word; }
.x-link { color: #1d9bf0; }
.x-tags-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.x-actions { display: flex; align-items: center; margin-top: 8px; margin-left: -8px; }
.x-act {
  display: flex; align-items: center; gap: 5px; color: #536471;
  font-size: 13px; padding: 4px 8px; border-radius: 999px; cursor: pointer;
  flex: 1 0 auto;
}
.x-act svg { width: 18px; height: 18px; display: block; }
.x-act:hover { color: #1d9bf0; }
.x-act.rp:hover { color: #00ba7c; }
.x-act.lk:hover { color: #f91880; }
.x-spacer { flex: 4 1 auto; }
.x-act.end { flex: 0 0 auto; }

/* ============================================================
   LinkedIn card — authentic chrome. 8px radius, hairline ring,
   reaction stack, 4-button action bar.
   ============================================================ */
.licard {
  background: #fff; color: rgba(0,0,0,0.9);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 3px rgba(0,0,0,0.06);
  padding: 12px 16px 0; overflow: hidden;
  font-size: 14px; line-height: 1.4;
}
.licard * { text-transform: none; letter-spacing: normal; }
.li-head { display: flex; gap: 8px; align-items: flex-start; }
.li-ava {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky); overflow: hidden;
}

.li-id { min-width: 0; flex: 1; }
.li-name { font-weight: 600; font-size: 14px; color: rgba(0,0,0,0.9); display: flex; gap: 4px; }
.li-name .li-deg { color: rgba(0,0,0,0.6); font-weight: 400; }
.li-sub { font-size: 12px; color: rgba(0,0,0,0.6); line-height: 1.33;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-time { font-size: 12px; color: rgba(0,0,0,0.6); display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.li-time svg { width: 12px; height: 12px; }
.li-dots { color: rgba(0,0,0,0.6); font-weight: 700; font-size: 15px; padding: 2px 4px; }
.li-text { margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(0,0,0,0.9);
  white-space: pre-wrap; word-wrap: break-word; }
.li-link { color: #0a66c2; font-weight: 600; }
.li-hash { color: #0a66c2; font-weight: 600; }
.li-counts {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 12px; color: rgba(0,0,0,0.6);
}
.li-react { display: flex; align-items: center; gap: 5px; min-width: 0; }
.li-react .stack { display: inline-flex; }
.li-react .stack i { width: 16px; height: 16px; border-radius: 50%; display: inline-grid;
  place-items: center; border: 1.5px solid #fff; margin-left: -5px; }
.li-react .stack i:first-child { margin-left: 0; }
.li-react .stack svg { width: 9px; height: 9px; }
.rx-like { background: #378fe9; }
.rx-celeb { background: #6dae4f; }
.rx-love { background: #df704d; }
.li-counts .r { white-space: nowrap; }
.li-actions { display: flex; padding: 4px 0 6px; }
.li-act {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  color: rgba(0,0,0,0.6); font-weight: 600; font-size: 14px;
  padding: 11px 4px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.li-act:hover { background: rgba(0,0,0,0.05); }
.li-act svg { width: 19px; height: 19px; display: block; }

/* ============================================================
   Link-preview cards — what the real feeds unfurl for the
   ibex.market/b/... URL at the tail of every post. The og:image
   is the listing's image slot (placeholder until photos arrive).
   X = summary_large_image: rounded card, 1.91:1 art, white title
   overlaid on the image bottom, "From" domain line under.
   LI = full-bleed image + light-gray title bar.
   ============================================================ */
.xprev {
  display: block; text-decoration: none; cursor: pointer;
  margin-top: 12px; border: 1px solid #cfd9de; border-radius: 16px;
  overflow: hidden; background: #fff;
}
.xprev-img {
  position: relative; aspect-ratio: 1.91 / 1; overflow: hidden;
  background: linear-gradient(180deg, #d8ecf9 0%, #a9d2f0 52%, #8fc3ee 100%);
  border-bottom: 1px solid #cfd9de;
}
.xprev-img .art-ph { position: absolute; inset: 0; }
.xprev-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; display: block;
  padding: 30px 12px 9px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.68) 100%);
}
.xprev-title {
  display: block; color: #fff; font-size: 15px; line-height: 20px;
  font-weight: 400; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xprev-dom {
  padding: 8px 12px 9px; color: #536471; font-size: 15px; line-height: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xprev:hover .xprev-img .art-ph { filter: brightness(0.94); }

/* LinkedIn: full-bleed to the card edges (licard pads 12/16/0) */
.liprev {
  display: block; text-decoration: none; cursor: pointer;
  margin: 10px -16px 0;
}
.liprev-img {
  position: relative; aspect-ratio: 1.91 / 1; overflow: hidden;
  background: linear-gradient(180deg, #d8ecf9 0%, #a9d2f0 52%, #8fc3ee 100%);
}
.liprev-img .art-ph { position: absolute; inset: 0; }
.liprev-bar {
  background: #f3f6f8; padding: 8px 12px 9px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.liprev-title {
  color: rgba(0,0,0,0.9); font-weight: 600; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.liprev-dom {
  color: rgba(0,0,0,0.6); font-size: 12px; line-height: 1.4; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* mini feed posts get the same card, tightened to the rail */
.minix .xprev { margin-top: 8px; }
.minix .xprev-title { font-size: 12.5px; line-height: 16px; }
.minix .xprev-scrim { padding: 20px 9px 6px; }
.minix .xprev-dom { padding: 5px 9px 6px; font-size: 11.5px; line-height: 16px; }

/* ============================================================
   VOICE POSTS — quote-post & repost chrome.
   X: quoted tweet embeds as a bordered card inside the post;
   pure reposts carry a small "Agent Ibex reposted" line on top.
   LI: repost-with-commentary embeds the original post in an
   inset box; pure reposts carry a "Agent Ibex reposted this" strip.
   ============================================================ */
.x-rp {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px 26px; color: #536471;
  font-size: 13px; font-weight: 700; line-height: 16px;
}
.x-rp svg { width: 15px; height: 15px; flex-shrink: 0; }
.x-rp span { white-space: nowrap; }

.xquote {
  margin-top: 10px; padding: 9px 12px 10px;
  border: 1px solid #cfd9de; border-radius: 16px;
  background: #fff; cursor: pointer;
}
.xquote:hover { background: #f7f9f9; }
.xq-head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.xq-ava {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky); overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.xq-name { font-weight: 700; font-size: 14px; color: #0f1419; white-space: nowrap; }
.xq-meta { color: #536471; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.xq-text {
  margin-top: 3px; font-size: 14px; line-height: 19px; color: #0f1419;
  white-space: pre-wrap; word-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* LinkedIn: "Agent Ibex reposted this" strip across the card top
   (licard pads 12/16/0, so pull the strip out to the edges) */
.li-rpline {
  margin: -12px -16px 10px; padding: 6px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  color: rgba(0,0,0,0.6); font-size: 12px; font-weight: 600;
}
.li-rpline svg { width: 14px; height: 14px; flex-shrink: 0; }

/* LinkedIn: embedded original post inside a repost-with-commentary */
.liembed {
  margin-top: 10px; padding: 10px 12px 2px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 8px;
}
.liembed .li-ava { width: 40px; height: 40px; }
.liembed .li-name { font-size: 13px; }
.liembed .li-sub, .liembed .li-time { font-size: 11px; }
.liembed .li-text { font-size: 13px; line-height: 18px; margin-top: 6px; }
.liembed .li-counts {
  margin-top: 6px; padding: 6px 0 4px; border-bottom: 0;
  font-size: 11px;
}
.liembed .li-counts .stack i { width: 13px; height: 13px; }
.liembed .li-counts .stack svg { width: 7px; height: 7px; }

/* feed rail: repost line + mini quoted-tweet embed */
.minix { flex-wrap: wrap; }
.mx-rp {
  flex: 0 0 100%; display: flex; align-items: center; gap: 5px;
  margin: 0 0 3px 39px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint);
}
.mx-rp svg { width: 11px; height: 11px; flex-shrink: 0; }
.mxq {
  width: 100%; margin-top: 7px; padding: 6px 9px 7px;
  border: var(--border-thin); border-radius: 8px; background: var(--paper);
}
.mxq-h { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink); min-width: 0; }
.mxq-h .h { color: var(--ink-faint); font-weight: 400; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.mxq-ava {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky); overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.mxq-t {
  margin-top: 3px; font-size: 11.5px; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============================================================
   "Agent Ibex's log" teaser card — OUR channel, so flat craft.
   ============================================================ */
.logcard {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; text-align: left;
}
.log-thumb { height: 168px; overflow: hidden; position: relative;
  border-bottom: var(--border); background: var(--sky); display: grid; place-items: center; }
.log-thumb .art-ph { position: absolute; inset: 0; }
.log-thumb .thumb-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: var(--sun); padding: 4px 9px; border-radius: 4px;
}
.log-body { padding: 18px 20px 16px; }
.log-kicker { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--terracotta); margin-bottom: 7px; }
.log-title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.12;
  text-transform: uppercase; margin: 0 0 9px; }
.log-dek { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 13px; }
.log-meta { display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.log-meta .arr { margin-left: auto; font-family: var(--font-display); color: var(--terracotta);
  font-size: 1rem; }

/* ---------- mini x post (feed rail) ---------- */
.minix { display: flex; gap: 9px; padding: 11px 2px; border-top: 1px dashed var(--stone-light); }
.minix:first-child { border-top: 0; }
.minix .x-ava { width: 30px; height: 30px; }
.minix .mx-id { font-size: 12.5px; color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.minix .mx-id .x-badge svg { width: 13px; height: 13px; }
.minix .mx-id span.h { color: var(--ink-faint); font-weight: 400; font-size: 11.5px; }
.minix .mx-t { font-size: 12.5px; line-height: 1.42; color: var(--ink); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.minix .mx-stats { display: flex; gap: 14px; margin-top: 6px;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; color: var(--ink-faint); }

/* ---------- feed rail ---------- */
.feed { padding: 0; overflow: hidden; }
.feed-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: var(--border-thin); background: var(--cream-2);
}
.feed-head h3 { margin: 0; font-size: 0.88rem; }
.feed-head .hint { margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem;
  font-weight: 700; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 0.06em; }
.profile { border-bottom: var(--border-thin); }
.banner { position: relative; height: 84px; overflow: hidden;
  border-bottom: var(--border-thin); }
.banner .art-ph { position: absolute; inset: 0; }
.p-row { padding: 0 16px 12px; }
.p-ava {
  width: 62px; height: 62px; border-radius: 50%; margin-top: -30px;
  border: 3px solid var(--ink); background: var(--sky); overflow: hidden;
  display: grid; place-items: end center; position: relative;
  box-shadow: var(--shadow-xs);
}

.p-name { display: flex; align-items: center; gap: 5px; font-family: var(--font-display);
  font-size: 1.02rem; margin-top: 8px; text-transform: uppercase; }
.p-name svg { width: 16px; height: 16px; }
.p-handle { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); font-weight: 700; }
.p-bio { font-size: 0.8rem; line-height: 1.45; margin-top: 8px; }
.p-meta { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint);
  font-weight: 700; margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; }
.p-fols { font-size: 0.78rem; margin-top: 8px; color: var(--ink-soft); display: flex; gap: 14px; }
.p-fols b { color: var(--ink); font-family: var(--font-display); font-size: 0.86rem; }
.feed-posts { padding: 4px 14px 14px; }
.feed-posts .fp-label { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint);
  padding: 10px 2px 0; }

/* ---------- queue (bottom rail) ---------- */
.queue-sec { margin-top: 26px; }
.queue-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.queue-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.queue-head .hint { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); margin-left: auto; }
.queue-list { display: grid; gap: 10px; }
.qrow {
  display: grid; grid-template-columns: 96px 34px minmax(0,1fr) auto 150px;
  align-items: center; gap: 14px;
  background: var(--paper); border: var(--border-thin); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); padding: 11px 16px;
}
.qrow.posted { background: var(--cream-2); }
.q-status .chip { font-size: 0.64rem; padding: 3px 10px; }
.q-glyph { width: 30px; height: 30px; border-radius: 7px; border: var(--border-thin);
  display: grid; place-items: center; }
.q-glyph svg { width: 14px; height: 14px; }
.q-glyph span { font-family: Arial, sans-serif; font-weight: 900; color: #fff; font-size: 14px; }
.q-text { font-size: 0.82rem; line-height: 1.4; color: var(--ink); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-text .muted-line { color: var(--ink-faint); }
.q-tag { display: flex; gap: 6px; }
.q-when { text-align: right; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.5; }
.q-when b { color: var(--ink); }
.q-when .st { color: var(--leaf); }
.qrow.posted .q-when .st { color: var(--water-deep); }
.q-stats { display: flex; gap: 10px; justify-content: flex-end; font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px);
  background: var(--ink); color: var(--cream); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  padding: 13px 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(.2,1.4,.4,1); z-index: 200;
  display: flex; gap: 10px; align-items: center; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast .px-dot { width: 10px; height: 10px; }

/* flash on regenerate */
@keyframes slotflash { 0% { opacity: 0.25; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
.slot.flash > div:last-child { animation: slotflash 0.28s steps(4); }

@media (max-width: 1500px) {
  .studio { grid-template-columns: 280px minmax(0,1fr); }
  .feed { display: none; }
}
@media (max-width: 1100px) {
  .studio { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr; }
  .head-stats { display: none; }
  .qrow { grid-template-columns: 90px 30px minmax(0,1fr) 120px; }
  .q-tag { display: none; }
}

/* ---------- letter avatars (no artwork) ---------- */
.ava-l {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.85rem; color: var(--ink);
  line-height: 1; user-select: none;
}
.xq-ava .ava-l, .mxq-ava .ava-l { font-size: 0.48rem; }
.p-ava .ava-l { font-size: 1.25rem; }
.ava-mini .ava-l { font-size: 0.95rem; }
