/* CLAY PROJECTS, clay.site/projects (lib/projects.js). Loaded AFTER /editor-ui.css.
   Two materials and they never mix:
   - the PAGE is clay.site: white, Inter, big black type, Biro for a small note, terracotta only for
     a handwritten stroke, black pills. Every value below in the first half is studio.css's own.
   - the BAR, the SIDE SHEETS and the CENTRE MODALS are the old editor's black ones, drawn by
     editor-ui.css (.ed-bar, .ed-panel, .scrim/.sheet, .btn, .input, .cf-row, .dev-float). The few
     rules the editor keeps in site.css instead (the phone sheet, the centred modal, the device
     frame) are copied here with their numbers, and say where from. */

@font-face { font-family: "Inter"; src: url(/fonts/Inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Biro"; src: url(/fonts/Biro.woff2) format("woff2"); font-display: swap; }

.pj {
  --ink: #111; --ink-2: #333; --grey: #5f5f5f; --grey-2: #8a8a8a; --line: #e6e4e1; --slot: #f2f1ef;
  --band: #f6f5f3; --paper: #fff;
  --clay: #c87f5e; --clay-text: #9c5538; --clay-soft: #f7eee9; --clay-line: #ecd8cd;
  --radius: 24px; --radius-s: 14px; --max: 1120px; --gutter: 20px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Biro", var(--sans);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 0 0 1px rgba(17,17,17,.06), 0 18px 40px -22px rgba(17,17,17,.22);
  --shadow-up: 0 0 0 1px rgba(17,17,17,.07), 0 28px 56px -26px rgba(17,17,17,.32);
  /* the editor's own curve (editor-ui.css .ed-bar, .ed-panel, site.css .wrap) */
  --ed-curve: cubic-bezier(.32,.72,0,1);
  /* the bento bar's blue + (public/lab/bento.html --bar-accent) */
  --plus: #0885FE; --plus-hi: #2F9BFE;
  /* the bento bar's spring (public/lab/bento.html --m-spring, from public/dashboard.css) */
  --m-spring: linear(0, 0.0247, 0.0866, 0.171, 0.2666, 0.3654, 0.4618, 0.5521, 0.6341, 0.7066,
                     0.7694, 0.8226, 0.8669, 0.9031, 0.9322, 0.955, 0.9725, 0.9857, 0.9953, 1.002,
                     1.0065, 1.0092, 1.0106, 1.0111, 1.0109, 1.0103, 1.0094, 1.0083, 1.0072,
                     1.0061, 1.0051, 1.0042, 1.0034, 1.0027, 1.002, 1.0015, 1);
  --m-open: 570ms; --m-shut: 220ms; --m-shut-e: cubic-bezier(.4,0,1,1); --m-step: 22ms;
}
@media (min-width: 760px) { .pj { --gutter: 32px; } }

html { -webkit-text-size-adjust: 100%; }
body.pj { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
.pj *, .pj *::before, .pj *::after { box-sizing: border-box; }
.pj img { max-width: 100%; display: block; }
.pj a { color: inherit; }
.pj [hidden] { display: none !important; }

/* ── the page's own pieces (studio.css values) ─────────────────────────────────────────────── */
.pj-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 var(--gutter); background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.pj-top-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pj-mark { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.pj-mark img { width: 24px; height: 24px; flex: 0 0 auto; }
.pj-mark span { display: none; }
.pj-crumb { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pj-crumb b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-crumb a { font-size: 13px; color: var(--grey); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-crumb a:hover { color: var(--ink); }
.pj-top-r { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.pj-hand { font-family: var(--hand); color: var(--clay); font-size: 28px; line-height: 1.1; transform: rotate(-2deg); display: inline-block; }
.pj-lead { font-size: clamp(18px, 2vw, 22px); color: var(--grey); line-height: 1.45; max-width: 34ch; margin: 18px 0 0; }

.pj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 17px/1 var(--sans); border-radius: 999px; padding: 18px 28px; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform .15s var(--ease), background .15s; white-space: nowrap; }
.pj-btn:hover { background: #2b2b2b; }
.pj-btn:active { transform: scale(.97); }
.pj-btn.sm { font-size: 15px; padding: 12px 18px; }
.pj-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pj-btn.ghost:hover { background: var(--band); }
.pj-btn svg { width: 18px; height: 18px; }
.pj-wide { width: 100%; }

.pj-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--band);
  font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; line-height: 1.2; text-decoration: none; }
.pj-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #12b76a; }
.pj-pill.draft { background: var(--clay-soft); color: var(--clay-text); }
.pj-pill.draft .dot { background: var(--clay); }
.pj-pill.link:hover { background: #eeece9; }

.pj-main { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 160px; }
@media (min-width: 760px) { .pj-main { padding-top: 48px; } }

/* a view arriving: the studio's reveal, once */
.pj-in { animation: pj-rise .7s var(--ease) both; }
.pj-in.d1 { animation-delay: .06s; } .pj-in.d2 { animation-delay: .12s; } .pj-in.d3 { animation-delay: .18s; }
@keyframes pj-rise { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) { .pj-in { animation: none; } }

/* ── SIGN IN ───────────────────────────────────────────────────────────────────────────────── */
.pj-signin { max-width: 440px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
@media (min-width: 760px) { .pj-signin { padding-top: 96px; } }
.pj-signin h1 { margin: 6px 0 0; font-size: clamp(48px, 9vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; }
.pj-form { margin-top: 32px; display: grid; gap: 14px; }
.pj-form.busy { opacity: .6; pointer-events: none; }
.pj-f { display: grid; gap: 6px; }
.pj-f span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pj-input { width: 100%; font: 400 17px/1.3 var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 16px;
  padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .15s; }
.pj-input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.pj-or { display: flex; align-items: center; gap: 12px; color: var(--grey-2); font-size: 14px; }
.pj-or::before, .pj-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pj-msg { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--clay-soft); color: var(--clay-text); font-size: 15px; font-weight: 500; }
.pj-msg.bad { background: #fdecea; color: #a12a1a; }

/* ── SITES ─────────────────────────────────────────────────────────────────────────────────── */
.pj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 32px; }
.pj-head h1 { margin: 4px 0 0; font-size: clamp(48px, 8vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.pj-head .pj-btn { flex: 0 0 auto; }
@media (max-width: 759px) { .pj-head .pj-btn { display: none; } }

.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 759px) { .pj-grid { grid-template-columns: 1fr; gap: 18px; } }

.pj-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; text-decoration: none; color: inherit; cursor: pointer; border: 0; text-align: left;
  font: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .pj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); } }
.pj-card:active { transform: scale(.985); }
.pj-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pj-shot { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--slot);
  container-type: inline-size; isolation: isolate; }
.pj-shot iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; pointer-events: none;
  transform-origin: 0 0; transform: scale(var(--s, .3)); opacity: 0; transition: opacity .5s var(--ease); background: #fff; }
.pj-shot iframe.on { opacity: 1; }
.pj-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17,17,17,.06); pointer-events: none; z-index: 2; }
.pj-shot .pj-blank { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--hand); color: var(--grey-2); font-size: 24px; transform: rotate(-2deg); }
.pj-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 8px 4px; }
.pj-info > div { min-width: 0; }
.pj-name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-addr { margin: 3px 0 0; font-size: 14.5px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-meta { margin: 0; padding: 4px 8px 8px; font-size: 13.5px; color: var(--grey-2); }

/* NEW PROJECT, AND ITS HOVER "a bit smoother": a slow, gentle lift on one long curve, the grey
   warming with it and the + turning and growing a touch. The entrance (.pj-in) fills BACKWARDS only
   on a card: an animation that still holds `transform` after it ends (fill both) beats every
   transition on it, so the hover lift used to jump rather than glide. */
.pj-card.pj-in { animation-fill-mode: backwards; }
.pj-card.new { background: var(--band); box-shadow: none; align-items: center; justify-content: center; text-align: center; min-height: 300px; gap: 14px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), background-color .55s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .pj-card.new:hover { transform: translateY(-3px) scale(1.008); box-shadow: none; background: #f1efec; } }
.pj-card.new:active { transform: scale(.99); transition-duration: .2s; }
.pj-card.new .pj-hand { font-size: 24px; }
.pj-card.new b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.pj-plusdot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pj-plusdot svg { width: 28px; height: 28px; }
@media (hover: hover) { .pj-card.new:hover .pj-plusdot { transform: rotate(90deg) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .pj-card.new, .pj-plusdot { transition: background-color .2s linear; }
  .pj-card.new:hover, .pj-card.new:active, .pj-card.new:hover .pj-plusdot { transform: none; }
}
@media (max-width: 759px) { .pj-card.new { min-height: 200px; } }

/* ── THE FIRST SCREEN, for an account with nothing in it yet: one idea, the whole screen ───── */
.pj-empty { text-align: center; min-height: calc(100dvh - 64px - 28px - 160px); display: grid; place-content: center; padding: 0 0 12px; }
@media (min-width: 760px) { .pj-empty { min-height: calc(100dvh - 64px - 48px - 160px); } }
.pj-empty h1 { margin: 14px auto 0; font-size: clamp(46px, 7.6vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.pj-empty .pj-lead { margin: 30px auto 0; max-width: 40ch; }
.pj-under { position: relative; white-space: nowrap; }
/* the studio's hand-drawn line under the one word that matters, drawn as it arrives (studio.css) */
.pj-under::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14 C 60 4, 140 4, 200 10 S 280 16, 296 6' fill='none' stroke='%23c87f5e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); animation: pj-draw 1s .55s var(--ease) forwards; }
@keyframes pj-draw { to { clip-path: inset(0 0 0 0); } }
.pj-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
body.pj-first .pj-top-r a.pj-btn { display: none; }

/* the handwritten note pointing at the blue + in the bar: placed by projects.js off the button */
.pj-note { position: fixed; z-index: 59; pointer-events: none; font-family: var(--hand); color: var(--clay); font-size: 26px; line-height: 1;
  transform: rotate(-4deg); white-space: nowrap; opacity: 0; transition: opacity .6s var(--ease) .9s; }
.pj-note.on { opacity: 1; }
.pj-note svg { position: absolute; overflow: visible; }
.pj-note path { fill: none; stroke: var(--clay); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 140; stroke-dashoffset: 140; }
.pj-note.on path { animation: pj-stroke 1.1s 1.2s var(--ease) forwards; }
@keyframes pj-stroke { to { stroke-dashoffset: 0; } }
@media (max-width: 759px) { .pj-note { font-size: 22px; } }

/* ── A TAB THAT COMES NEXT ─────────────────────────────────────────────────────────────────── */
.pj-soon { padding-top: 12px; }
.pj-soon h1 { margin: 4px 0 0; font-size: clamp(48px, 8vw, 84px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.pj-soon .pj-slot { margin-top: 36px; border-radius: var(--radius); background: var(--band); min-height: 280px; display: grid; place-items: center; }
.pj-soon .pj-slot .pj-hand { font-size: 30px; color: var(--grey-2); }
.pj-out-row { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--grey); font-size: 15px; }

/* ════════════════════════════════════════════════════════════════════════════════════════════
   THE EDITOR'S BLACK PIECES. editor-ui.css draws them; below are only the editor's own extras
   that live in site.css, and what the dashboard puts in the bar that the editor never had.
   ════════════════════════════════════════════════════════════════════════════════════════════ */

/* the bar: editor-ui.css .ed-bar, shown (body.is-owner) and given the same arrival */
.pj-bar { font-family: var(--ed-face); z-index: 60; bottom: calc(18px + env(safe-area-inset-bottom)); }
.pj-bar.flip { overflow: hidden; transition: width .55s var(--ed-curve), transform .55s var(--ed-curve); }
.pj-bar a { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; color: var(--ed-ink); background: transparent;
  padding: 8px 12px; border-radius: var(--ed-r-pill); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.pj-bar a:hover { background: var(--ed-hair-2); }
.pj-bar a svg { width: 16px; height: 16px; flex: 0 0 16px; }
/* the tab you are on: the bento bar's chip, an island ON the material (--bar-chip) */
.pj-bar [aria-current="page"] { background: rgba(255,255,255,.14); }
/* the blue +, the bento bar's [data-primary] */
.pj-bar .pj-plus { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; background: var(--plus); color: #fff; margin-right: 4px; }
.pj-bar .pj-plus:hover { background: var(--plus-hi); }
.pj-bar .pj-plus svg { width: 20px; height: 20px; flex-basis: 20px; }
.pj-bar .sep { align-self: stretch; }
.pj-bar .pj-pub { margin-left: 6px; }
.pj-bar button:active, .pj-bar a:active { transform: scale(.96); }
/* swapping what the bar holds: the bento bar's pane out and items in (public/lab/bento.html) */
.pj-bar .pj-row { display: flex; align-items: center; gap: 4px; }   /* the pills never touch (fb__nUv8EI3mXqy) */
.pj-bar .pj-row.leaving { position: absolute; left: 8px; top: 8px; bottom: 8px; pointer-events: none; animation: pj-pane-out var(--m-shut) var(--m-shut-e) forwards; }
.pj-bar .pj-row.in > * { animation: pj-item-in var(--m-open) var(--m-spring) both; animation-delay: calc(60ms + var(--i, 0) * var(--m-step)); }
@keyframes pj-pane-out { to { opacity: 0; filter: blur(7px); transform: scale(.93); } }
@keyframes pj-item-in { from { opacity: 0; filter: blur(6px); transform: scale(.86); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pj-bar .pj-row.in > *, .pj-bar .pj-row.leaving { animation: none; } }
.pj-bar .only-fone { display: none; }
.pj-bar:not(.pj-over) { overflow-x: hidden; }
.pj-bar.pj-tight button > span, .pj-bar.pj-tight a > span { display: none; }
.pj-bar.pj-tight .pj-pub > span { display: inline; }
.pj-bar.pj-tight button, .pj-bar.pj-tight a { padding: 10px; }
/* the phone: the editor's words come off and the glyph is the button (site.css, max-width 560) */
@media (max-width: 760px) {
  .pj-bar .only-desk { display: none; }
  .pj-bar .only-fone { display: inline-flex; }
}
@media (max-width: 560px) {
  .pj-bar button > span, .pj-bar a > span { display: none; }
  .pj-bar button, .pj-bar a { padding: 11px; }
  .pj-bar .pj-plus { padding: 0; width: 38px; height: 38px; }
  .pj-bar .pj-pub > span { display: inline; }
  .pj-bar .pj-pub { padding: 9px 14px; }
}

/* the side sheet on a phone comes up from the bottom (site.css, max-width 700) */
@media (max-width: 700px) {
  .pj .ed-panel { width: 100vw; max-height: 82dvh; top: auto; bottom: 0; border-left: 0; border-top: 1px solid var(--ed-hair-2);
    border-radius: 22px 22px 0 0; transform: translateY(102%); box-shadow: 0 -24px 60px -24px rgba(0,0,0,0.7); }
  .pj .ed-panel.open { transform: translateY(0); }
  body.pj.panel-open .pj-bar { display: none; }
}
/* the desk: the bar steps aside for the open panel (site.css body.panel-open .ed-bar) */
/* a desk with a sheet open: the site makes room for it, and the bar centres on what is left with its
   words off, as the editor's bar does when it runs out of room (editor-ui.css .ed-tight) */
@media (min-width: 701px) {
  body.pj.panel-open .pj-bar { transform: translateX(calc(-50% - min(200px, 46vw))); }
  body.pj.panel-open .pj-bar button > span, body.pj.panel-open .pj-bar a > span { display: none; }
  body.pj.panel-open .pj-bar .pj-pub > span { display: inline; }
  body.pj.panel-open .pj-stage { right: min(400px, 92vw); }
}
.pj-pscrim { position: fixed; inset: 0; z-index: 79; background: rgba(4,4,6,.35); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
@media (max-width: 700px) { body.panel-open .pj-pscrim { opacity: 1; pointer-events: auto; } }
.pj .ed-panel { z-index: 80; }
.pj .ep-head h2 { color: var(--ed-ink); }
.pj .ep-sub { color: var(--ed-dim); }

/* the centre modal: the editor's .scrim/.sheet, centred from 640 (site.css) */
@media (min-width: 640px) {
  .pj .scrim { place-items: center; padding: 24px; }
  .pj .sheet { border-radius: 26px; }
  /* the picker (lib/asset-picker.js) is a bottom sheet in the editor; here it is a centre modal like
     every other one on the dashboard, so it is not cut off by the bottom of a desk screen */
  .pj .fm-scrim { align-items: center; padding: 24px; }
  .pj .fm-scrim .fm-card { border-radius: 26px; border-bottom: 1px solid var(--ed-hair-2); max-height: calc(100vh - 48px); }
  .pj .fm-scrim .fm-grab { display: none; }
}
.pj .scrim { z-index: 120; }
.pj .scrim.out { animation: pj-fade-out .2s ease forwards; }
.pj .scrim.out .sheet { animation: pj-sheet-out .2s ease forwards; }
@keyframes pj-fade-out { to { opacity: 0; } }
@keyframes pj-sheet-out { to { transform: translateY(16px); opacity: 0; } }
.pj .sheet .sub { font-size: 14.5px; line-height: 1.5; }
.pj .sheet-actions .btn { padding: 14px 20px; }
.pj .save-pill { bottom: calc(96px + env(safe-area-inset-bottom)); right: 50%; transform: translate(50%, 6px); }
.pj .save-pill.show { transform: translate(50%, 0); }

/* rows inside a sheet: the editor's .cf-row with the dashboard's contents */
.pj-rows { display: grid; gap: 8px; }
.pj-rows .cf-row { align-items: center; }
.pj-rows .cf-val { white-space: normal; }
.pj-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ed-ok);
  background: rgba(111,207,139,.12); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.pj-act { flex: 0 0 auto; padding: 9px 14px !important; font-size: 13px !important; border-radius: 999px !important; }
.pj-sub-msg { display: grid; gap: 4px; margin-top: 8px; }
.pj-sub-msg div { font-size: 13.5px; color: var(--ed-body); overflow-wrap: anywhere; }
.pj-sub-msg div b { color: var(--ed-dim); font-weight: 500; margin-right: 6px; }
.pj-copy { display: flex; align-items: center; gap: 8px; background: var(--ed-fill); border: 1px solid var(--ed-hair); border-radius: var(--ed-r-field); padding: 6px 6px 6px 14px; }
.pj-copy span { flex: 1; min-width: 0; color: var(--ed-ink); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-inline { display: flex; gap: 8px; }
.pj-inline .input { flex: 1; min-width: 0; }
.pj-inline .btn { flex: 0 0 auto; padding: 12px 18px; }
.pj-empty-row { padding: 28px 16px; text-align: center; color: var(--ed-dim); font-size: 14.5px; border: 1px dashed var(--ed-hair-2); border-radius: var(--ed-r-card); }
.pj-big { display: grid; gap: 8px; }
.pj-big a, .pj-big button { text-decoration: none; }
.pj-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--ed-hair-2); border: 0; position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.pj-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ed-curve); }
.pj-switch[aria-checked="true"] { background: var(--ed-ok); }
.pj-switch[aria-checked="true"]::after { transform: translateX(18px); }

/* ── THE SITE, in the editor's desktop / mobile frame ─────────────────────────────────────── */
body.pj-siteview { overflow: hidden; }
body.pj-siteview .pj-main { max-width: none; padding: 0; }
.pj-stage { position: fixed; left: 0; right: 0; top: 92px; bottom: calc(112px + env(safe-area-inset-bottom)); display: grid; place-items: center; padding: 0 44px;
  transition: right .36s cubic-bezier(.32,.72,0,1); }
/* the frame: site.css's device frame around .wrap, the same outline, ring, radius and curve,
   and `max-width` is what moves, as it is in the editor */
.pj-frame { position: relative; width: 100%; height: 100%; max-width: 1480px; background: #fff; border-radius: 22px;
  outline: 12px solid #101013; box-shadow: 0 0 0 13px #26262b, 0 40px 90px -26px rgba(0,0,0,.55);
  transition: max-width .45s cubic-bezier(.32,.72,0,1), border-radius .45s cubic-bezier(.32,.72,0,1), height .45s cubic-bezier(.32,.72,0,1); }
.pj-frame.mobile { max-width: 400px; border-radius: 40px; height: min(100%, 860px); }
.pj-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #fff; }
.pj-frame .pj-wait { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--hand); color: var(--grey-2); font-size: 26px; border-radius: inherit; }
.pj .dev-float { top: 12px; z-index: 40; }
@media (max-width: 760px) {
  .pj .dev-float { display: none; }
  body.pj-siteview .pj-top-r [data-ai] { display: none; }
  .pj-stage { top: 64px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 0 12px; }
  .pj-frame, .pj-frame.mobile { max-width: none; height: 100%; border-radius: 22px; outline: 0; box-shadow: var(--shadow); }
}

/* ── NEW PROJECT: the editor's centre modal, wider for the starting points ────────────────── */
.pj .sheet.pj-new { width: min(760px, 100%); max-width: 760px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.pj-new-head { display: flex; align-items: center; gap: 10px; padding: 24px var(--ed-pad-modal) 4px; flex: 0 0 auto; }
.pj-new-head h2 { margin: 0 !important; flex: 1; font-size: var(--ed-t-title) !important; }
.pj-new-sub { padding: 0 var(--ed-pad-modal); margin: 0 0 18px; color: var(--ed-dim); font-size: 14.5px; flex: 0 0 auto; }
.pj-new-body { padding: 0 var(--ed-pad-modal) 28px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.pj-new-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px var(--ed-pad-modal) calc(22px + env(safe-area-inset-bottom)); flex: 0 0 auto; border-top: 1px solid var(--ed-hair); }
.pj-new-foot .grow { flex: 1; }
.pj-new-foot .btn { padding: 14px 22px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pj-new-foot .btn svg { width: 17px; height: 17px; }
@media (max-width: 639px) {
  .pj-new-head { padding: 20px 20px 4px; } .pj-new-sub, .pj-new-body { padding-left: 20px; padding-right: 20px; }
  .pj-new-foot { padding-left: 20px; padding-right: 20px; }
  .pj-new-foot .btn { flex: 1 1 auto; justify-content: center; }
  .pj-new-foot .grow { display: none; }
}
.pj-starts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 639px) { .pj-starts { grid-template-columns: 1fr 1fr; gap: 8px; } }
.pj-start { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: var(--ed-ink);
  background: var(--ed-fill); border: 1px solid var(--ed-hair); border-radius: var(--ed-r-card); padding: 16px 14px 16px; min-height: 148px;
  transition: background .15s, border-color .15s, transform .35s var(--ed-curve); }
.pj-start:hover { background: var(--ed-fill-2); border-color: var(--ed-hair-2); transform: translateY(-2px); }
.pj-start:active { transform: scale(.97); }
.pj-start.on { border-color: var(--ed-ink); background: var(--ed-fill-2); }
.pj-start i { width: 42px; height: 42px; border-radius: 50%; background: var(--ed-fill-2); display: grid; place-items: center; margin-bottom: auto; color: var(--ed-ink); }
.pj-start i svg { width: 21px; height: 21px; }
.pj-start b { font-size: 15.5px; font-weight: 700; line-height: 1.25; margin-top: 14px; }
.pj-start span { font-size: 12.5px; color: var(--ed-dim); line-height: 1.35; }
@media (max-width: 639px) { .pj-start { min-height: 128px; padding: 14px 12px; } }
.pj-q { margin: 0 0 22px; }
.pj-q > label { display: block; font-size: var(--ed-t-meta); color: var(--ed-dim); margin: 0 0 8px; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-chips .fb-kind { padding: 10px 16px; }
.pj .pj-new .input { height: 54px; font-size: 16px; }
.pj .pj-new .textarea { font-size: 15px; line-height: 1.55; min-height: 176px; }
.pj-hint-line { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; padding: 12px 14px; border-radius: var(--ed-r-field);
  background: var(--ed-fill); border: 1px solid var(--ed-hair); color: var(--ed-body); font-size: 13.5px; line-height: 1.45; }
.pj-hint-line svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ed-dim); }
.pj-hint-line a { color: var(--ed-ink); font-weight: 600; }
.pj-maps { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: var(--ed-r-field); background: var(--ed-fill);
  border: 1px solid var(--ed-hair); font-size: 13.5px; color: var(--ed-body); cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.pj-maps svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pj-maps .pj-switch { margin-left: auto; }
.pj-step-in > * { animation: pj-item-in .5s var(--m-spring) both; animation-delay: calc(var(--i, 0) * 28ms); }
@media (prefers-reduced-motion: reduce) { .pj-step-in > * { animation: none; } }

/* view transitions: a card's picture becomes the frame */
::view-transition-group(pj-frame) { animation-duration: .5s; animation-timing-function: cubic-bezier(.32,.72,0,1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* ════════════════════════════════════════════════════════════════════════════════════════════
   PART 2: Inbox, Library, Tools, Domains, Account, and a site's Visitors.
   The page pieces are the studio's white cards and black pills above; what opens is the editor's
   black side sheet and centre modal, with the editor's tokens (--ed-*). Signal colours only for
   status (kit.kitchen): green is live or done, amber is waiting, the clay is "to fix".
   ════════════════════════════════════════════════════════════════════════════════════════════ */
.pj { --ok: #12b76a; --ok-soft: #e7f6ee; --wait: #b25e09; --wait-soft: #fdf1e1; }
.pj-loading { padding: 40px 0; font-family: var(--hand); font-size: 26px; color: var(--grey-2); transform: rotate(-2deg); }
.pj-dim2 { color: var(--grey); font-size: 14.5px; margin: 10px 0 0; }
.pj-head-acts { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 759px) { .pj-head { flex-wrap: wrap; } .pj-head-acts { width: 100%; } .pj-head-acts .pj-btn { flex: 1; } }

/* a white card on the white page: the studio's card, a section of a tab */
.pj-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 0 0 20px; }
@media (max-width: 759px) { .pj-box { padding: 20px 18px; border-radius: 20px; } }
.pj-box h2, .pj-h2 { margin: 0 0 6px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.pj-h2-out { margin: 34px 0 14px; }
.pj-box p { margin: 6px 0 0; color: var(--grey); font-size: 15.5px; line-height: 1.5; }
.pj-box > .pj-hand { font-size: 24px; margin-bottom: 4px; }
.pj-quiet { background: var(--band); box-shadow: none; text-align: center; padding: 48px 24px; }
.pj-quiet .pj-hand { font-size: 28px; color: var(--grey-2); }
.pj-quiet p { max-width: 46ch; margin: 12px auto 0; }
.pj-locked { padding: 32px; }
.pj-locked h2 { font-size: clamp(26px, 3.4vw, 34px); max-width: 20ch; }
.pj-locked p { max-width: 52ch; margin-bottom: 22px; }
.pj-note-line { margin: 14px 0 0 !important; padding: 12px 16px; border-radius: 14px; background: var(--clay-soft); color: var(--clay-text) !important; font-size: 14.5px !important; }

/* the filter: segmented pills on the page (the kit.kitchen tabs, in the studio's band) */
.pj-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--band); margin: 0 0 18px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pj-seg::-webkit-scrollbar { display: none; }
.pj-seg button { border: 0; background: transparent; font: 600 14.5px/1 var(--sans); color: var(--grey); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.pj-seg button:hover { color: var(--ink); }
.pj-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,17,.08), 0 0 0 1px rgba(17,17,17,.04); }
.pj-seg button i { font-style: normal; font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(17,17,17,.07); display: inline-grid; place-items: center; }
.pj-seg button[aria-selected="true"] i { background: var(--ink); color: #fff; }
.pj-seg-wrap { display: flex; flex-wrap: nowrap; margin: 18px 0 0; }
/* the same control inside a black sheet */
.pj-seg.dark { background: var(--ed-fill-2); border: 1px solid var(--ed-hair); }
.pj-seg.dark button { color: var(--ed-dim); font-family: inherit; font-size: 13px; padding: 8px 14px; }
.pj-seg.dark button[aria-selected="true"] { background: var(--ed-ink); color: var(--ed-base); box-shadow: none; }
.pj-seg.dark button.lock { opacity: .45; }

/* rows: the /lock/chat inbox, in white (lock.css .fb-list / .fb-row) */
.pj-list { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pj-list.flat { box-shadow: inset 0 0 0 1px var(--line); margin: 14px 0 16px; }
.pj-irow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 18px; cursor: pointer; font: inherit; color: inherit; transition: background .15s var(--ease); }
div.pj-irow { cursor: default; }
.pj-irow:last-child { border-bottom: 0; }
button.pj-irow:hover { background: #fafaf9; }
button.pj-irow:active { background: var(--band); }
.pj-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--band); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.pj-av svg { width: 21px; height: 21px; }
.pj-irow-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pj-irow-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pj-irow-top b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-irow-prev { font-size: 14px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-irow-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--grey-2); max-width: 46%; text-align: right; }
.pj-irow-r > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pj-irow-shot { flex: none; width: 64px; height: 44px; border-radius: 10px; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px rgba(17,17,17,.08); }
.pj-link { color: var(--ink); font-weight: 600; font-size: 14px; }
@media (max-width: 559px) {
  .pj-irow { padding: 14px; gap: 12px; }
  .pj-irow-shot { display: none; }
  .pj-av { width: 38px; height: 38px; font-size: 15px; }
}

/* a state: a small pill, the signal colour and nothing else (open is ink, doing is amber, done is green) */
.pj-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.3; white-space: nowrap;
  background: var(--band); color: var(--ink-2); }
.pj-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pj-st:empty { display: none; }
.pj-st.open { background: #eef4ff; color: #1d4ed8; }
.pj-st.doing { background: var(--wait-soft); color: var(--wait); }
.pj-st.done { background: var(--ok-soft); color: #08744a; }
.pj-st.fix { background: var(--clay-soft); color: var(--clay-text); }
.pj-st.improve { background: var(--wait-soft); color: var(--wait); }
/* …and the same pill inside a black sheet */
.ed-panel .pj-st { background: var(--ed-fill-2); color: var(--ed-body); }
.ed-panel .pj-st.open { background: rgba(96,165,250,.14); color: #93c5fd; }
.ed-panel .pj-st.doing { background: rgba(232,163,61,.14); color: var(--ed-warn); }
.ed-panel .pj-st.done { background: rgba(111,207,139,.13); color: var(--ed-ok); }

/* ── INBOX: one item, in the black side sheet ─────────────────────────────────────────────── */
.pj-fb { display: grid; gap: 14px; justify-items: start; }
.pj-fb-note { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--ed-ink); letter-spacing: -.01em; white-space: pre-wrap; overflow-wrap: anywhere; }
.pj-facts { width: 100%; display: grid; gap: 1px; border-radius: var(--ed-r-card); overflow: hidden; background: var(--ed-hair); border: 1px solid var(--ed-hair); }
.pj-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; background: var(--ed-panel); font-size: 14px; }
.pj-facts span { color: var(--ed-dim); flex: none; }
.pj-facts b { color: var(--ed-ink); font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pj-facts a { color: inherit; }
.pj-dim { color: var(--ed-dim); font-weight: 400; }
.pj-shots { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pj-shots a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--ed-hair-2); aspect-ratio: 4 / 3; background: var(--ed-fill); }
.pj-shots img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pj-shots a:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pj-thread { display: grid; gap: 8px; }
.pj-msg-row { padding: 10px 14px; border-radius: 14px; background: var(--ed-fill-2); max-width: 92%; justify-self: start; }
.pj-msg-row.me { justify-self: end; background: rgba(255,255,255,.12); }
.pj-msg-row.priv { background: transparent; border: 1px dashed var(--ed-hair-2); }
.pj-msg-by { font-size: 12px; color: var(--ed-dim); margin-bottom: 3px; }
.pj-msg-tx { font-size: 14.5px; line-height: 1.45; color: var(--ed-body); white-space: pre-wrap; overflow-wrap: anywhere; }
.pj .pj-note-box { width: 100%; min-height: 88px; font-size: 15px; }
.pj-row2, .pj-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pj-acts { margin-top: 20px; }
.pj-row2 .btn, .pj-acts .btn { padding: 12px 18px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; }
.pj-acts .btn.primary { flex: 1; justify-content: center; }
.pj-row2 .btn svg, .pj-acts .btn svg { width: 16px; height: 16px; }

/* ── LIBRARY ──────────────────────────────────────────────────────────────────────────────── */
.pj-search { position: relative; display: block; margin: 0 0 22px; max-width: 520px; }
.pj-search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--grey-2); pointer-events: none; }
.pj-search .pj-input { padding-left: 46px; background: var(--band); box-shadow: none; }
.pj-search .pj-input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.pj-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
@media (max-width: 559px) { .pj-lib { grid-template-columns: 1fr 1fr; gap: 12px; } }
.pj-tile { display: flex; flex-direction: column; gap: 0; padding: 8px; border: 0; border-radius: 20px; background: #fff; box-shadow: var(--shadow); cursor: pointer; text-align: left;
  font: inherit; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; }
@media (hover: hover) { .pj-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); } }
.pj-tile:active { transform: scale(.98); }
.pj-tile-pic { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--slot); }
.pj-tile-pic img, .pj-tile-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-tile-tx { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px 4px; min-width: 0; }
.pj-tile-tx b { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-tile-tx span { font-size: 12.5px; color: var(--grey-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-drop { width: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--band); font: inherit; color: var(--ink); padding: 32px; transition: border-color .2s, background .2s; }
.pj-drop b { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.pj-drop span { color: var(--grey); max-width: 36ch; }
.pj-drop:hover { border-color: #cfcbc6; }
body.pj-dropping .pj-main { outline: 3px dashed var(--plus); outline-offset: -12px; border-radius: 28px; }
.pj-lib-big { border-radius: var(--ed-r-card); overflow: hidden; background: var(--ed-fill); border: 1px solid var(--ed-hair); display: grid; place-items: center; max-height: 46dvh; }
.pj-lib-big img, .pj-lib-big video { max-width: 100%; max-height: 46dvh; object-fit: contain; }
/* the editor's picker on this page sits above the bar */
.pj .fm-scrim { z-index: 125; }

/* ── TOOLS ────────────────────────────────────────────────────────────────────────────────── */
.pj-tool-h { display: flex; gap: 16px; align-items: flex-start; }
.pj-tool-h > div { flex: 1; min-width: 0; }
.pj-tool-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pj-tool-ic svg { width: 24px; height: 24px; }
.pj-tool-h p { max-width: 62ch; }
.pj-tool-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.pj-tool-go .pj-dim2 { margin: 0; flex: 1; min-width: 220px; }
.pj-tool-next .pj-tool-ic { background: var(--band); color: var(--ink); }
.pj-tool-next .pj-tool-h { align-items: center; }
.pj-btn.busy { opacity: .6; pointer-events: none; }
@media (max-width: 559px) { .pj-tool-h { flex-wrap: wrap; } .pj-tool-next .pj-btn { width: 100%; } .pj-tool-go .pj-btn { width: 100%; } }
.pj-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 36px 0 20px; }
.pj-sum h2 { margin: 2px 0 0; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.pj-sum p { margin: 10px 0 0; color: var(--grey); }
.pj-sum-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 559px) { .pj-sum-acts { width: 100%; } .pj-sum-acts .pj-btn { flex: 1 1 auto; } }
.pj-site-res-h { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.pj-site-res-h h3 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.pj-site-res-h p { margin: 2px 0 0; font-size: 14px; }
.pj-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-finds { display: grid; }
.pj-find { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.pj-find > div { flex: 1; min-width: 0; }
.pj-find b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.pj-find > div > span { display: inline-block; margin-top: 2px; font-size: 13px; color: var(--grey-2); font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.pj-find p { margin: 4px 0 0 !important; font-size: 14px !important; }
.pj-find-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--grey); }
.pj-find-ic svg { width: 16px; height: 16px; }
.pj-find.fix .pj-find-ic { background: var(--clay-soft); color: var(--clay-text); }
.pj-find.improve .pj-find-ic { background: var(--wait-soft); color: var(--wait); }
.pj-find.ok .pj-find-ic { background: var(--ok-soft); color: #08744a; }
.pj-find.ok b { font-weight: 500; color: var(--ink-2); }
.pj-find-sev { flex: none; font-size: 12.5px; color: var(--grey-2); padding-top: 6px; }
@media (max-width: 559px) { .pj-find-sev { display: none; } }
.pj-fine { display: none; }
.pj-site-res.all .pj-fine { display: grid; }
.pj-more { margin-top: 8px; border: 0; background: none; padding: 8px 0; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── DOMAINS ──────────────────────────────────────────────────────────────────────────────── */
.pj-plan-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pj-plan-line > div { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.pj-plan-line b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.pj-plan-line span { color: var(--grey); font-size: 15px; }
.pj-meter { height: 8px; border-radius: 8px; background: var(--band); overflow: hidden; margin-top: 8px; }
.pj-meter i { display: block; height: 100%; border-radius: 8px; background: var(--ink); transition: width .8s var(--ease); }
.pj-meter.warn i { background: var(--wait); }
.pj-meter.full i { background: var(--clay); }
.pj-findbox { display: flex; gap: 10px; margin: 16px 0 0; }
.pj-findbox .pj-search { flex: 1; margin: 0; max-width: none; }
@media (max-width: 559px) { .pj-findbox { flex-direction: column; } }
.pj-dres { display: grid; margin-top: 16px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.pj-drow { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.pj-drow:last-child { border-bottom: 0; }
.pj-drow b { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 650; overflow-wrap: anywhere; }
.pj-drow > span { color: var(--grey); font-size: 14.5px; white-space: nowrap; }
.pj-drow.off b { color: var(--grey-2); font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(17,17,17,.25); }
.pj-drow.off { padding-right: 18px; }
.pj-recs { display: grid; border: 1px solid var(--ed-hair); border-radius: var(--ed-r-card); overflow: hidden; }
.pj-rec { display: grid; grid-template-columns: 64px 64px 1fr; gap: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--ed-body); background: var(--ed-panel); border-top: 1px solid var(--ed-hair); }
.pj-rec:first-child { border-top: 0; }
.pj-rec.h { color: var(--ed-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; background: transparent; }
.pj-rec code { font: 13px ui-monospace, Menlo, monospace; color: var(--ed-ink); overflow-wrap: anywhere; }
.pj-probs, .pj-steps { margin: 0; padding-left: 20px; color: var(--ed-body); font-size: 14px; line-height: 1.55; display: grid; gap: 6px; }
.ed-panel .pj-facts.dark { margin-bottom: 4px; }
.ed-panel textarea[readonly] { min-height: 180px; font: 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--ed-body); }

/* ── ACCOUNT ──────────────────────────────────────────────────────────────────────────────── */
.pj-acct-plan { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.pj-acct-plan-l { flex: 1; min-width: 240px; }
.pj-acct-plan h2 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 2px 0 0; }
.pj-acct-plan-r { display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
@media (max-width: 559px) { .pj-acct-plan-r { width: 100%; } }
.pj-acct-plan .pj-note-line { flex-basis: 100%; }
.pj-feats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; }
.pj-feats li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); }
.pj-feats li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.pj-uses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin-top: 14px; }
@media (max-width: 559px) { .pj-uses { grid-template-columns: 1fr; } }
.pj-use-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); }
.pj-use-top b { font-weight: 650; white-space: nowrap; }
.pj-use-top b i { font-style: normal; color: var(--grey-2); font-weight: 500; }
.pj-pack { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pj-pack > div { display: grid; gap: 3px; min-width: 0; }
.pj-pack b { font-size: 16px; font-weight: 650; }
.pj-pack span { font-size: 14.5px; color: var(--grey); line-height: 1.45; }
/* the Language row: the ghost button's shape, a select inside it (lib/projectscopy.js) */
.pj-lang { margin-top: 0; padding-top: 0; border-top: 0; flex-wrap: wrap; }
.pj-lang > div { flex: 1 1 260px; }
.pj-lang select.pj-btn { appearance: none; -webkit-appearance: none; font-family: inherit; font-weight: 600; max-width: 100%; padding-right: 38px; }
.pj-lang select.pj-btn, .pj-lang select.pj-btn:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.pj-switch.light { background: #d9d6d2; }
.pj-switch.light[aria-checked="true"] { background: var(--ok); }
.pj-linkbox { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--band); }
.pj-linkbox span { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border-radius: 18px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.pj-nums > div { background: #fff; padding: 16px; display: grid; gap: 2px; }
.pj-nums b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.pj-nums span { font-size: 13px; color: var(--grey); }
@media (max-width: 559px) { .pj-nums { grid-template-columns: 1fr 1fr; } .pj-nums > div:last-child { grid-column: 1 / -1; } }
/* change plan: the editor's upgrade sheet pieces (.pr-*), four across */
.pj .sheet.pj-plansheet { width: min(1040px, 100%); max-width: 1040px; }
.pj-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 899px) { .pj-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .pj-plans { grid-template-columns: 1fr; } }
.pj-plan { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--ed-r-card); background: var(--ed-fill); border: 1px solid var(--ed-hair); }
.pj-plan.cur { border-color: var(--ed-hair-2); background: var(--ed-fill-2); }
.pj-plan h3 { margin: 0; font-size: 20px; color: var(--ed-ink); }
.pj-plan .pr-amt { font-size: 34px; }
.pj-plan .pr-feats { margin: 4px 0 auto; padding-top: 14px; gap: 6px; display: grid; }
.pj-plan .pr-feats li { font-size: 13.5px; }
.pj-plan .pr-go { margin-top: 14px; padding: 13px; }
.pj-plansheet .pr-ivtog { margin: 0 0 18px; }

/* ── A SITE'S VISITORS (the side sheet) ───────────────────────────────────────────────────── */
.pj-an-big { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 2px; }
.pj-an-big b { font-family: var(--ed-display); font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ed-ink); }
.pj-an-big span { color: var(--ed-dim); font-size: 15px; }
.pj-an-big i { font-style: normal; font-weight: 700; margin-left: 4px; }
.pj-an-big i.up { color: var(--ed-ok); } .pj-an-big i.down { color: var(--ed-danger); }
.pj-an-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ed-hair); border: 1px solid var(--ed-hair); border-radius: var(--ed-r-card); overflow: hidden; margin: 14px 0; }
.pj-an-row > div { background: var(--ed-panel); padding: 12px 14px; display: grid; gap: 2px; }
.pj-an-row b { font-size: 20px; color: var(--ed-ink); }
.pj-an-row span { font-size: 12px; color: var(--ed-dim); }
.pj-an-bars { display: flex; align-items: flex-end; height: 120px; gap: 0; padding: 10px 0 0; border-bottom: 1px solid var(--ed-hair-2); }
.pj-an-bars span { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 2px; }
.pj-an-bars i { display: block; width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: var(--ed-ink); opacity: .85; }
.pj-an-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ed-quiet); margin-top: 6px; }
.pj-an-best { margin: 14px 0 0; font-size: 14px; color: var(--ed-body); }
.pj-an-list { display: grid; gap: 6px; }
.pj-an-list > div { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.pj-an-list span { flex: 1; min-width: 0; position: relative; padding: 7px 10px; border-radius: 8px; color: var(--ed-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 0; }
.pj-an-list span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ed-fill-2); border-radius: 8px; z-index: -1; }
.pj-an-list b { color: var(--ed-ink); font-variant-numeric: tabular-nums; }
/* a pj-btn that is a link: `.pj a { color: inherit }` above is stronger than `.pj-btn` alone */
.pj a.pj-btn { color: #fff; }
.pj a.pj-btn.ghost { color: var(--ink); }
/* a tab's own actions stay on a phone (part 1 hides the page heading's lone button there) */
@media (max-width: 759px) { .pj-head .pj-head-acts .pj-btn { display: inline-flex; } }
/* a state change on a thread: a line, not a bubble */
.pj-msg-state { justify-self: center; font-size: 12.5px; color: var(--ed-dim); padding: 2px 0; }
@media (max-width: 559px) {
  .pj .pj-irow-shot { display: none; }
  .pj-irow-r { max-width: 34%; }
}
/* on a phone the sheets cover the bottom, where the pill sits: it comes in at the top instead */
@media (max-width: 700px) {
  body.pj.sheet-open .save-pill, body.pj.panel-open .save-pill { bottom: auto; top: calc(14px + env(safe-area-inset-top)); }
}
.pj-drow b { overflow-wrap: break-word; }
@media (max-width: 559px) { .pj-drow > span { display: none; } .pj-drow.off > span { display: inline; } }

/* ONE FACE. The editor's sheets, bar and picker carry their own faces (Figtree, Bricolage Display)
   on their own elements; on the dashboard every one of them is the page's Inter, so a sheet reads
   as the same product as the page under it. :is() takes the id's weight, so this wins over
   editor-ui.css's `:root, .ed, #ed-bar, …, .scrim, .fm-scrim` block and its `.scrim` re-statements. */
body.pj, body.pj :is(.ed, #ed-bar, #ed-panel, .ed-panel, .ed-bar, .scrim, .fm-scrim, .save-pill) {
  --ed-face: var(--sans); --ed-display: var(--sans); --qck-font: var(--sans);
}

/* OTHER LANGUAGES: a Finnish or German heading is often one long word ("Verkkotunnukset.") that is
   wider than a phone at the English size. Those languages get a size that fits and may break inside
   a word where the language allows it; English keeps its own. */
html:not([lang="en"]) .pj-head h1 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 559px) { html:not([lang="en"]) .pj-head h1 { font-size: clamp(36px, 11vw, 48px); } }

/* THE REAL AI MARKS (lib/ownerbar.js marks, off clay.site/hosting): Claude in its own clay, ChatGPT
   in the ink it stands on, the same two the landing page and the owner bar draw */
.pj-ai-mark { width: 18px; height: 18px; flex: 0 0 auto; fill: currentColor; }
.pj-ai-mark.mark-claude { fill: #d97757; }
.pj-ai-pill .pj-ai-mark { width: 15px; height: 15px; }

/* THE CONNECTED AI APPS AS AN AVATAR STACK (P.aiStack): one round logo per app, the second
   slightly over the first, the name in a small black tooltip on hover and on focus */
.pj-avs { display: inline-flex; align-items: center; padding-left: 8px; }
.pj-av { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: -8px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--paper), inset 0 0 0 1px var(--line);
  color: var(--ink); outline: none; cursor: default; transition: transform .25s var(--ease); }
.pj-av:nth-child(1) { z-index: 3; } .pj-av:nth-child(2) { z-index: 2; } .pj-av:nth-child(3) { z-index: 1; }
.pj-av:hover, .pj-av:focus-visible { transform: translateY(-1px); z-index: 4; }
.pj-av:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.pj-av .pj-ai-mark { width: 18px; height: 18px; }
.pj-av.chatgpt .pj-ai-mark { fill: var(--ink); }
.pj-av.other b { font-size: 14px; font-weight: 700; }
.pj-av[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -3px);
  padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 12.5px/1.2 var(--sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s var(--ease); z-index: 3; }
.pj-av:hover::after, .pj-av:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .pj-av, .pj-av[data-tip]::after { transition: none; } }

/* COPY, AND SAY SO: filled and edged so it reads as a button; pressed, it turns the green of the
   copy buttons on clay.site/mcp (mcp-setup.css .copy.did, #146c3b) and says Copied */
.pj .btn.pj-copy-btn { background: var(--ed-fill-2); color: var(--ed-ink); box-shadow: inset 0 0 0 1px var(--ed-hair-2); }
.pj .btn.pj-copy-btn:hover { background: var(--ed-hair-2); }
.pj .btn.did, .pj .btn.did:hover, .pj .btn-copy.did, .pj .btn-copy.did:hover { background: #146c3b; color: #fff; box-shadow: none; filter: none; }

/* a question somebody describes something in: a few lines, room to really prompt */
.pj .pj-new .textarea.pj-q-ta { min-height: 116px; font-size: 16px; line-height: 1.5; }

/* CONNECT YOUR AI, in the side sheet: the setup steps of clay.site/mcp */
.pj-code { margin: 10px 0 4px; }
.pj-code span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; font-size: 13px; }
.pj-ctabs { margin: 22px 0 6px; }
.pj-ctabs button { display: inline-flex; align-items: center; gap: 7px; }
.pj-ctabs .pj-ai-mark { width: 15px; height: 15px; }
.pj-ctabs button[aria-selected="true"] .pj-ai-mark:not(.mark-claude) { fill: var(--ed-base); }
.pj-csteps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.pj-cstep { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px; border-radius: var(--ed-r-card); background: var(--ed-panel); border: 1px solid var(--ed-hair); }
.pj-cnum { font-size: 13px; font-weight: 700; color: var(--ed-dim); padding-top: 2px; }
.pj-cstep b { display: block; color: var(--ed-ink); font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.pj-cstep p { margin: 0 0 6px; color: var(--ed-body); font-size: 14px; line-height: 1.5; }
.pj-cstep p:last-child { margin-bottom: 0; }
.pj-cstep p b { display: inline; font-size: inherit; margin: 0; }
.pj-cstep a { color: var(--ed-ink); font-weight: 600; }
.pj-cstep .pj-dim { color: var(--ed-dim); font-size: 13px; }
.pj-how .pj-cstep p { margin: 0; }
/* over a centre modal (New project's first-time hint) the sheet comes above it */
body.pj.sheet-open .ed-panel { z-index: 110; }

/* who sees the Feedback button: three rows, one chosen */
.pj-mode { gap: 12px; }
.pj-mode .pj-radio { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; margin-left: auto; box-shadow: inset 0 0 0 1.5px var(--ed-hair-2); }
.pj-mode.on { border-color: var(--ed-hair-2); background: var(--ed-fill-2); }
.pj-mode.on .pj-radio { box-shadow: inset 0 0 0 6px var(--ed-ink); }
.pj-mode:disabled { opacity: .5; cursor: default; }
.pj .ed-panel button.cf-row > svg:last-child { width: 16px; height: 16px; color: var(--ed-dim); margin-left: auto; flex: 0 0 auto; }
.pj .btn-copy svg, .pj .pj-act svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.pj .pj-btn.did, .pj .pj-btn.did:hover { background: #146c3b; color: #fff; box-shadow: none; }
.pj-linkbox button span { flex: none; }

/* Hand over on a plan that has not got it: in the bar, greyed (the sheet says why) */
.pj-bar [data-act].pj-dim-act { opacity: .45; }
/* a client on the Share sheet: copy their invite link, take them off, put them back */
.pj-cl-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
@media (max-width: 559px) { .pj-cl-acts .pj-act span { display: none; } .pj-cl-acts .pj-act svg { margin-right: 0; } }

/* the referral link's own code: clay.site/r/ [ code ] Save */
.pj-refedit { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin: -4px 0 16px; }
.pj-refedit[hidden] { display: none; }
.pj-refin { display: flex; align-items: center; gap: 0; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding-left: 16px; min-width: 0; }
.pj-refin span { color: var(--grey); font-size: 15px; white-space: nowrap; }
.pj-refin .pj-input { box-shadow: none; padding-left: 2px; min-width: 0; }
.pj-refedit .pj-dim2 { grid-column: 1 / -1; margin: 0; }
.pj-refedit .pj-dim2.bad { color: #a12a1a; }

/* THE CLIENT'S PAGES (lib/agency.js: /client, /client/handover, /agency): the same page as
   /projects, a column of white cards under the Biro note and the big heading */
.pj-cl { max-width: 760px; }
.pj-cl > .pj-msg { margin: 0 0 20px; }
.pj-cl-hi { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow); }
.pj-cl-hi h2 { font-size: 24px; }
.pj-cl-hi p { color: var(--ink-2); font-size: 16.5px; }
.pj-cl-small { color: var(--grey); font-size: 14px; }
.pj-box p.pj-cl-small { font-size: 14px; }
.pj-cl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pj-cl-top h2 { margin: 0; }
.pj-cl-top a:not(.pj-btn) { color: var(--ink); font-weight: 600; }
.pj-cl-top .pj-btn { flex: 0 0 auto; }
@media (max-width: 559px) { .pj-cl-top { flex-direction: column; } .pj-cl-top .pj-btn { width: 100%; } }
.pj-cl-site h2 a { color: inherit; text-decoration: none; }
.pj-cl-take { margin: 14px 0 0 !important; }
.pj-cl-lbl { margin: 26px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.pj-cl-list { display: grid; gap: 10px; }
.pj-cl-fb { padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.pj-cl-fb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pj-cl-fb > p { margin: 8px 0 0; color: var(--ink); font-size: 15.5px; white-space: pre-wrap; }
.pj-cl-reply { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--band); font-size: 14px; }
.pj-cl-reply b { font-weight: 650; }
.pj-cl-reply p { margin: 4px 0 0 !important; color: var(--ink-2) !important; font-size: 14.5px !important; white-space: pre-wrap; }
.pj-cl-write { margin: 18px 0 0; }
.pj-cl-write summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.pj-cl-write form { display: grid; gap: 10px; margin-top: 10px; justify-items: start; }
.pj-cl-write textarea { box-shadow: inset 0 0 0 1px var(--line); resize: vertical; }
.pj-cl-opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.pj-cl-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.pj-cl-opt > span { display: grid; gap: 2px; }
.pj-cl-opt input, .pj-cl-chk input { accent-color: #111; width: 18px; height: 18px; }
.pj-cl-chk { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.pj-cl-inline { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.pj-cl-inline .pj-input { flex: 1 1 220px; box-shadow: inset 0 0 0 1px var(--line); }
.pj-cstep > div { min-width: 0; }
.pj-cstep .pj-code { max-width: 100%; }
.pj-cstep p { overflow-wrap: anywhere; }
[data-connect] { margin-top: 12px; }
.pj .ed-panel .sheet-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pj .ed-panel .sheet-actions .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* THE CLIENT'S DASHBOARD (/client): each site a card with its live preview on top */
.pj-cl-shot { display: block; margin: -8px -8px 18px; }
.pj-cl-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
@media (max-width: 559px) { .pj-cl-btns { width: 100%; } .pj-cl-btns .pj-btn { flex: 1 1 auto; } }
.pj-box p.pj-cl-or { margin: 10px 0 0; }
.pj-cl-lbl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pj-cl-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; letter-spacing: 0; text-transform: none; }
.pj-cl-own { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pj-cl-own p { margin: 0 !important; }
.pj-cl-make { background: var(--band); box-shadow: none; }
.pj-cl-sheetform { display: grid; gap: 14px; margin-top: 16px; }
.pj-cl-sheetform .textarea { width: 100%; min-height: 140px; font-size: 16px; }

/* SHARED SITES (lib/agency.js roles): on a card, whose it is and what this person may do; in the
   Share sheet, a View / Edit picker per person; the welcome from an invite's link */
.pj-shared { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 6px 8px 0; font-size: 13.5px; color: var(--grey-2); }
.pj-role-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--band); color: var(--ink); font-size: 12.5px; font-weight: 650; }
.pj-role-pill svg { width: 14px; height: 14px; }
.pj-role-pill.edit { background: #eef4ff; color: #1d4ed8; }
.pj-welcome { margin: 0 0 22px; }
.pj .ed-panel .pj-role { flex: 0 0 auto; height: 36px; padding: 0 30px 0 12px; border-radius: 999px; border: 1px solid var(--ed-hair-2);
  background: var(--ed-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  color: var(--ed-ink); font: inherit; font-size: 13.5px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; color-scheme: dark; }
.pj .ed-panel .pj-invite .pj-role { height: auto; border-radius: var(--ed-r-field); }
.pj .ed-panel .pj-role:disabled { opacity: .5; }
.pj-roles-key { display: grid; gap: 4px; margin: 10px 0 0; }
.pj-roles-key p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ed-dim); }
.pj-roles-key b { color: var(--ed-body); font-weight: 600; }
.pj-notes-form { margin-top: 4px; }
@media (max-width: 559px) { .pj-invite { flex-wrap: wrap; } .pj-invite .input { flex: 1 1 100%; } .pj-invite .pj-role { flex: 1 1 auto; } }

/* ── the Inbox: what a piece of feedback is (Idea · Bug · Question, chosen on the site's own form)
   and the line its sender wrote under each picture (public/projects-inbox.js) ─────────────────── */
.pj-kind { flex: none; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.3;
  white-space: nowrap; background: rgba(17,17,17,.07); color: var(--ink-2); }
.pj-kind.bug { background: var(--clay-soft); color: var(--clay-text); }
.pj-fb-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pj-fb-tags .pj-kind { background: var(--ed-fill-2); color: var(--ed-body); }
.pj-fb-tags .pj-kind.bug { background: var(--clay-soft); color: var(--clay-text); }
.pj-shots figure { margin: 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.pj-shots figure a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--ed-hair-2); aspect-ratio: 4 / 3; background: var(--ed-fill); }
.pj-shots figure:only-child { grid-column: 1 / -1; }
.pj-shots figure:only-child a { aspect-ratio: 16 / 10; }
.pj-shots figcaption { font-size: 13.5px; line-height: 1.4; color: var(--ed-body); overflow-wrap: anywhere; }
.pj-shots figcaption.auto { color: var(--ed-dim); font-size: 12.5px; }

/* ── Account: Form messages (the digest, and the account's own mail server) ─────────────────── */
.pj-fm-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pj-fm-row > div:first-child { display: grid; gap: 3px; min-width: 0; flex: 1 1 260px; }
.pj-fm-row b { font-size: 16px; font-weight: 650; }
.pj-fm-row > div:first-child span { font-size: 14.5px; color: var(--grey); line-height: 1.45; }
.pj-fm-row .pj-seg { margin: 0; flex: none; }
.pj-fm-row .pj-seg button { padding: 9px 14px; font-size: 14px; }
.pj-fm-state { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.pj-fm-state.bad { color: #b42318; }
.pj-fm-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 1 auto; min-width: 0; }
.pj-fm-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; margin-top: 18px; }
.pj-fm-form[hidden] { display: none; }
.pj-fm-form .pj-f { grid-column: span 3; }
.pj-fm-form .pj-f.s2 { grid-column: span 2; }
.pj-fm-form .pj-f.s4 { grid-column: span 4; }
.pj-fm-form .pj-f.s6 { grid-column: 1 / -1; }
.pj-fm-form .pj-input { padding: 13px 16px; font-size: 16px; }
.pj-fm-form select.pj-input { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.pj-fm-form .pj-f small { font-size: 12.5px; color: var(--grey); }
.pj-fm-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.pj-fm-acts .pj-fm-say { font-size: 14px; color: var(--grey); }
.pj-fm-acts .pj-fm-say.bad { color: #b42318; }
@media (max-width: 559px) {
  .pj-fm-form { grid-template-columns: 1fr 1fr; }
  .pj-fm-form .pj-f, .pj-fm-form .pj-f.s4 { grid-column: 1 / -1; }
  .pj-fm-form .pj-f.s2 { grid-column: span 1; }
}
/* a person on the Share sheet: who on the first line, what they may do and the actions on the second */
.pj .ed-panel .cf-row:has(> .pj-person-acts) { flex-wrap: wrap; row-gap: 10px; }
.pj .ed-panel .cf-row:has(> .pj-person-acts) .cf-tx { flex: 1 1 0; min-width: 0; }
.pj .ed-panel .cf-row:has(> .pj-person-acts) .cf-name { overflow-wrap: anywhere; }
.pj-person-acts { flex: 1 1 100% !important; flex-wrap: nowrap !important; justify-content: flex-start !important; padding-left: 56px; }
.pj-person-acts .pj-act:last-child { margin-left: auto; }

/* on a phone the link gets its own line: two buttons beside it left room for "h..." and nothing else */
@media (max-width: 560px) {
  .pj-linkbox { flex-wrap: wrap; border-radius: 22px; padding: 14px 6px 6px; }
  .pj-linkbox > span { flex: 1 0 100%; padding: 0 12px 6px; white-space: normal; overflow-wrap: anywhere; }
  .pj-linkbox > button { flex: 1; justify-content: center; }
}

/* a site's own mail server, in the editor's dark Forms panel (card fb_5jLoofQAx_pA) */
.ed-panel .pj-fm-site .pj-fm-row { border-top-color: rgba(255,255,255,.1); margin-top: 24px; }
.ed-panel .pj-fm-site .pj-fm-row b { color: #fff; }
.ed-panel .pj-fm-site .pj-fm-row > div:first-child span { color: rgba(255,255,255,.6); }
.ed-panel .pj-fm-site .pj-fm-state { color: rgba(255,255,255,.85); }
.ed-panel .pj-fm-site .pj-fm-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-panel .pj-fm-site .pj-fm-form .pj-f { grid-column: span 1; display: grid; gap: 6px; }
.ed-panel .pj-fm-site .pj-fm-form .pj-f.s4 { grid-column: span 2; }
.ed-panel .pj-fm-site .pj-fm-form .input { width: 100%; box-sizing: border-box; }
.ed-panel .pj-fm-site .pj-fm-btns .btn-sec, .ed-panel .pj-fm-site .pj-fm-acts .btn-sec { width: auto; }
.ed-panel .pj-fm-site .btn.primary, .ed-panel .pj-fm-site .btn-sec { display: inline-flex; align-items: center; gap: 8px; }
.ed-panel .pj-fm-site .btn.primary svg, .ed-panel .pj-fm-site .btn-sec svg { width: 18px; height: 18px; }
