/* OF Page Builder (pages/of-page.js) — variant B "checklist leads" (Lasse 19.11.2026):
   checklist as navigation left, the picked point in the middle, the OnlyFans page right.
   Phone: the checklist, a tap opens the point; "Page" opens the preview. ui-v2 tokens only.
   Doc: docs/platforms/OF-PAGE-BUILDER.md */

#ofpb-modal { z-index: 205; overflow: hidden; overscroll-behavior: contain; padding: 0 !important;
  /* Safari / the Mac app (WKWebView) cut the builder off halfway (Lasse 24.11.2026): the overlay's backdrop blur makes
     WebKit paint the tall scroller into a clipped layer. The builder covers the screen anyway: no blur, no dim. */
  backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--v2-bg, #F5F4F1); }
/* one scroller only (Lasse 19.11.2026, "the lower half is gone"): the overlay and the modal never scroll, only .ofpb-body does;
   the modal is exactly one screen high (dvh for iOS), so no dark overlay shows below it */
#ofpb-modal > .modal.modal-fs { height: 100vh; height: 100dvh; height: 100%; min-height: 0; overflow: hidden; }   /* 100% of the fixed overlay: dvh is off in some WKWebViews */
.ofpb { background: var(--v2-bg, #F5F4F1); font-family: var(--v2-font, Inter, system-ui, sans-serif); color: var(--v2-ink, #141414); text-align: left; }
.ofpb .modal-body.ofpb-body { padding: 0; background: var(--v2-bg, #F5F4F1); overflow: auto; flex: 1; min-height: 0; }
.ofpb-lay { display: grid; grid-template-columns: 290px minmax(0, 1fr) 400px; gap: 18px; padding: 20px 24px 40px; align-items: start; max-width: 1640px; margin: 0 auto; }
.ofpb-nav, .ofpb-pv { position: sticky; top: 20px; }
.ofpb-pv > .ofpb-card { max-height: calc(100dvh - 140px); overflow: auto; overscroll-behavior: contain; }
.ofpb-nav > .ofpb-card { max-height: calc(100dvh - 140px); overflow: auto; }
.ofpb-mid { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* back button only on the phone (see the 768 px block) */
.ofpb-back { display: none !important; }

/* dots: ok green, warn yellow, err red, manual = ring, skip = faint */
.ofpb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--v2-ink3, #736F67); }
.ofpb-dot.is-ok { background: var(--v2-ok, #157F3D); }
.ofpb-dot.is-warn { background: #E0A526; }
.ofpb-dot.is-err { background: var(--v2-err, #C23B3B); }
.ofpb-dot.is-manual { background: transparent; box-shadow: inset 0 0 0 2px var(--v2-ink3, #736F67); }
.ofpb-dot.is-skip { background: var(--v2-line, #E7E5E0); }

/* cards */
.ofpb-card { background: var(--v2-surface, #fff); border: 1px solid var(--v2-line, #E7E5E0); border-radius: var(--v2-r-card, 12px); overflow: hidden; min-width: 0; }
.ofpb-ch { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--v2-line2, #F0EEEA); }
.ofpb-ch h3 { margin: 0; font: 600 15px/1.2 var(--v2-font); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--v2-ink); }
.ofpb-cb { padding: 14px 16px; }
.ofpb-cb + .ofpb-cb { border-top: 1px solid var(--v2-line2, #F0EEEA); }
.ofpb-sec { font: 600 11.5px/1 var(--v2-font); color: var(--v2-ink2, #57544E); background: var(--v2-soft, #F3F1EC); border-radius: var(--v2-r-chip, 6px); padding: 5px 7px; white-space: nowrap; }
.ofpb-sub { margin: 4px 0 8px; font: 600 12.5px/1.2 var(--v2-font); color: var(--v2-ink2); text-transform: none; }

/* icon + text buttons, one height (36) */
.ofpb-ib { display: inline-flex; align-items: center; justify-content: center; width: var(--v2-h-ctl, 36px); height: var(--v2-h-ctl, 36px); flex: none;
  border-radius: var(--v2-r-ctl, 9px); border: 1px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-ink2); cursor: pointer; padding: 0; }
.ofpb-ib:hover { color: var(--v2-ink); border-color: var(--v2-ink3); }
.ofpb-ib.is-on { background: var(--v2-gold-soft, #F6EED8); border-color: var(--v2-gold, #B8922A); color: var(--v2-gold-ink, #86660F); }
.ofpb-ib.is-err { color: var(--v2-err); }
.ofpb-ib:disabled { opacity: .45; cursor: default; }
.ofpb-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--v2-h-ctl, 36px); padding: 0 14px; border-radius: var(--v2-r-ctl, 9px); border: 1px solid var(--v2-line);
  background: var(--v2-surface); font: 600 13px/1 var(--v2-font); color: var(--v2-ink); white-space: nowrap; cursor: pointer; flex: none; }
.ofpb-btn:hover { border-color: var(--v2-ink3); }
.ofpb-btn.is-gold { background: var(--v2-gold); border-color: var(--v2-gold); color: #111; }
.ofpb-btn.is-danger { color: var(--v2-err); }
.ofpb-btn:disabled { opacity: .5; cursor: default; }
.ofpb-btn .hdr-i, .ofpb-ib .hdr-i { flex: none; }
.ofpb-busy { pointer-events: none; opacity: .6; }

/* rows */
.ofpb-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 0; border-bottom: 1px solid var(--v2-line2); font-size: 13.5px; }
.ofpb-row:last-child { border-bottom: 0; }
.ofpb-row .l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofpb-row .v { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ofpb-row .v.is-err { color: var(--v2-err); } .ofpb-row .v.is-ok { color: var(--v2-ok); } .ofpb-row .v.is-warn { color: #B07A0E; }
.ofpb-row > .hdr-i { color: var(--v2-ink2); flex: none; }
.ofpb-input { height: var(--v2-h-ctl, 36px); min-width: 0; flex: 1; padding: 0 10px; border-radius: var(--v2-r-ctl); border: 1px solid var(--v2-line);
  background: var(--v2-surface); color: var(--v2-ink); font: 500 14px/1 var(--v2-font); }
.ofpb-input:focus { outline: 2px solid var(--v2-gold); outline-offset: 0; border-color: transparent; }
.ofpb-num { width: 64px; flex: none; text-align: center; }

/* KPI tiles */
.ofpb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ofpb-kpi { background: var(--v2-soft); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.ofpb-kpi b { display: block; font: 650 20px/1.1 var(--v2-font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ofpb-kpi span { display: block; margin-top: 4px; font: 500 12px/1.2 var(--v2-font); color: var(--v2-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofpb-kpi.is-err b { color: var(--v2-err); } .ofpb-kpi.is-warn b { color: #B07A0E; } .ofpb-kpi.is-ok b { color: var(--v2-ok); }

/* the 8 slots */
.ofpb-slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.ofpb-slot { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 9px; border: 1px dashed var(--v2-line);
  font: 600 11px/1.15 var(--v2-font); color: var(--v2-ink3); text-align: center; min-width: 0; }
.ofpb-slot b { font: 650 15px/1 var(--v2-font); }
.ofpb-slot.is-on { border: 1px solid var(--v2-ok); background: var(--v2-ok-soft, rgba(21,127,61,.1)); color: var(--v2-ok); }

/* switch */
.ofpb-sw { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--v2-switch-off, #D9D6CF); flex: none; border: 0; cursor: pointer; padding: 0; }
.ofpb-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s ease; }
.ofpb-sw.is-on { background: var(--v2-gold); } .ofpb-sw.is-on::after { left: 19px; }

/* chips */
.ofpb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--v2-r-chip, 6px); font: 600 11.5px/1.5 var(--v2-font);
  background: var(--v2-soft); color: var(--v2-ink2); white-space: nowrap; }
.ofpb-chip.is-paid { background: #E6F7FE; color: #0090C8; }
.ofpb-chip.is-ok { background: var(--v2-ok-soft); color: var(--v2-ok); }
.ofpb-chip.is-err { background: var(--v2-err-soft, rgba(194,59,59,.1)); color: var(--v2-err); }
.ofpb-chip.is-warn { background: rgba(224,165,38,.16); color: #9A6A08; }
.ofpb-chip.is-btn { cursor: pointer; border: 0; }

/* nav (checklist) */
.ofpb-ring { --p: 0; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--v2-gold) calc(var(--p) * 1%), var(--v2-track, #EDEBE6) 0); font: 650 12px/1 var(--v2-font); font-variant-numeric: tabular-nums; }
.ofpb-ring > span { width: 32px; height: 32px; border-radius: 50%; background: var(--v2-surface); display: grid; place-items: center; }
.ofpb-navl { padding: 6px 10px 10px; }
.ofpb-ni { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: none;
  color: var(--v2-ink); font: 500 13.5px/1.2 var(--v2-font); text-align: left; cursor: pointer; }
.ofpb-ni:hover { background: var(--v2-soft); }
.ofpb-ni.is-sel { background: var(--v2-gold-soft); }
.ofpb-ni .l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofpb-ni .hdr-i { color: var(--v2-ink2); flex: none; }
.ofpb-sep { height: 1px; background: var(--v2-line2); margin: 6px 8px; }
.ofpb-ni.is-page { display: none; }

/* posts: grid + plan rows */
.ofpb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.ofpb-tile { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--v2-soft) center/cover no-repeat; cursor: pointer; border: 0; padding: 0; }
.ofpb-tile.is-sel { outline: 3px solid var(--v2-gold); outline-offset: -3px; }
.ofpb-tile.is-old::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px var(--v2-err); }
.ofpb-tile i { position: absolute; z-index: 1; font: 600 10.5px/1 var(--v2-font); font-style: normal; color: #fff; background: rgba(0,0,0,.6); border-radius: 5px; padding: 4px 5px; }
.ofpb-tile .pr { right: 4px; top: 4px; background: #00aff0; }
.ofpb-tile .vd { left: 4px; top: 4px; }
.ofpb-tile .sl { left: 4px; bottom: 4px; background: var(--v2-gold); color: #111; }
.ofpb-tile .ct { right: 4px; bottom: 4px; background: #1f9d55; }
.ofpb-tile .pn { left: 4px; top: 4px; background: var(--v2-gold); color: #111; }
.ofpb-pick { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 10px; border-radius: 10px; background: var(--v2-soft); }
.ofpb-pick img, .ofpb-pick .ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--v2-line); }
.ofpb-pick .t { flex: 1; min-width: 0; }
.ofpb-pick .t1 { font: 600 13px/1.2 var(--v2-font); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ofpb-pick .t2 { margin-top: 4px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofpb-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ofpb-seg8 { display: flex; gap: 4px; flex-wrap: wrap; }
.ofpb-seg8 button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--v2-line); background: var(--v2-surface); font: 600 12px/1 var(--v2-font); color: var(--v2-ink2); cursor: pointer; padding: 0; }
.ofpb-seg8 button.is-on { background: var(--v2-gold); border-color: var(--v2-gold); color: #111; }

.ofpb-plan { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--v2-line2); }
.ofpb-plan:last-child { border-bottom: 0; }
.ofpb-plan .th { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--v2-soft); }
.ofpb-plan .t { flex: 1; min-width: 0; }
.ofpb-plan .t1 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font: 600 13px/1.2 var(--v2-font); }
.ofpb-plan .cap { display: block; width: 100%; margin-top: 5px; padding: 3px 0; border: 0; background: none; font: 400 13.5px/1.35 var(--v2-font); color: var(--v2-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; cursor: text; border-radius: 4px; }
.ofpb-plan .cap:hover { outline: 1px dashed var(--v2-ink3); outline-offset: 2px; }
.ofpb-plan .cap.is-empty { color: var(--v2-ink3); }
.ofpb-plan input.cap { white-space: normal; outline: 2px solid var(--v2-gold); outline-offset: 2px; }
.ofpb-plan.is-skipped .th, .ofpb-plan.is-skipped .cap { opacity: .4; }
.ofpb-plan .ofpb-acts .ofpb-ib { width: 34px; height: 34px; }
.ofpb-day { margin: 12px 0 2px; font: 600 12.5px/1 var(--v2-font); color: var(--v2-ink2); }
.ofpb-day:first-child { margin-top: 0; }

/* price ladder */
.ofpb-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ofpb-step { padding: 10px; border-radius: 10px; background: var(--v2-soft); min-width: 0; }
.ofpb-step b { display: block; font: 650 18px/1 var(--v2-font); font-variant-numeric: tabular-nums; }
.ofpb-step span .hdr-i { display: inline-block; vertical-align: -1px; }
.ofpb-step span { display: block; margin-top: 6px; font: 500 12px/1.3 var(--v2-font); color: var(--v2-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofpb-step.is-err { box-shadow: inset 0 0 0 1.5px var(--v2-err); } .ofpb-step.is-err b { color: var(--v2-err); }
.ofpb-step.is-warn b { color: #B07A0E; }

/* picture + header */
.ofpb-imgs { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 14px; align-items: start; }
.ofpb-img { border-radius: 10px; overflow: hidden; background: var(--v2-soft) center/cover no-repeat; }
.ofpb-img.is-cover { aspect-ratio: 10 / 3; }
.ofpb-img.is-av { aspect-ratio: 1; border-radius: 50%; }
.ofpb-feat { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* framework text inside a section + the framework popup / page — Handoff's markdown look (share_page.css .doc)
   in ui-v2 tokens: calm type, clear heading levels, tables with a round frame and quiet lines, quotes with a rule */
.ofpb-md { font: 400 15px/1.65 var(--v2-font, Inter, system-ui, sans-serif); color: var(--v2-ink); overflow-wrap: anywhere; }
.ofpb-md > :first-child { margin-top: 0; }
.ofpb-md h1 { font: 650 26px/1.25 var(--v2-font); letter-spacing: -.015em; margin: 0 0 .6em; }
.ofpb-md h2 { font: 650 21px/1.3 var(--v2-font); letter-spacing: -.01em; margin: 1.8em 0 .55em; scroll-margin-top: 16px; }
.ofpb-md h3 { font: 600 17px/1.35 var(--v2-font); margin: 1.5em 0 .45em; scroll-margin-top: 16px; }
.ofpb-md h4 { font: 600 15px/1.35 var(--v2-font); margin: 1.2em 0 .4em; }
.ofpb-md p { margin: .55em 0; }
.ofpb-md ul, .ofpb-md ol { margin: .55em 0; padding-left: 1.35em; }
.ofpb-md li { margin: .3em 0; padding-left: .15em; }
.ofpb-md li::marker { color: var(--v2-ink3); }
.ofpb-md strong { font-weight: 650; }
.ofpb-md a { color: var(--v2-gold-ink); }
.ofpb-md hr { border: 0; border-top: 1px solid var(--v2-line); margin: 1.8em 0; }
.ofpb-md code { font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--v2-soft); border-radius: 5px; padding: 1px 5px; }
.ofpb-md blockquote { margin: .9em 0; padding: 10px 14px; border-left: 3px solid var(--v2-gold); background: var(--v2-soft); border-radius: 0 10px 10px 0; color: var(--v2-ink); }
.ofpb-md .ofpb-md-tw { margin: .8em 0 1em; border: 1px solid var(--v2-line); border-radius: 10px; overflow: auto; background: var(--v2-surface); }
.ofpb-md table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.ofpb-md th { text-align: left; font: 600 12.5px/1.3 var(--v2-font); color: var(--v2-ink2); background: var(--v2-soft); padding: 8px 12px; white-space: nowrap; }
.ofpb-md td { padding: 8px 12px; border-top: 1px solid var(--v2-line2); vertical-align: top; }
.ofpb-md li.ofpb-md-task { list-style: none; margin-left: -1.35em; display: flex; gap: 8px; align-items: baseline; }
.ofpb-md .ofpb-md-box { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--v2-ink3); flex: none; transform: translateY(2px); }
.ofpb-fwsec.ofpb-md h2, .ofpb-fwsec.ofpb-md h3 { margin-top: 0; }
.ofpb-fwpage { max-width: 760px; margin: 0 auto; padding: 28px 18px 60px; }
#ofpb-fw-modal { z-index: 215; }
.ofpb-fwbody { max-width: 760px; margin: 0 auto; padding: 22px 18px 60px; }

/* the OnlyFans page (preview) — OF's own look, light/dark like the profile popup (.prf-of) */
.ofpb-of { --pbg: #fff; --pfg: #242529; --pmut: #8a96a3; --psep: #f1f2f4; background: var(--pbg); color: var(--pfg); font-family: Roboto, -apple-system, system-ui, sans-serif; }
.ofpb-of .cov { position: relative; height: 180px; background: #333 center/cover no-repeat; }
.ofpb-of .cov .top { position: absolute; left: 0; right: 0; top: 0; padding: 12px 16px 28px; color: #fff; font: 500 19px/1.2 Roboto, sans-serif; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.ofpb-of .cov .top small { display: block; font: 400 13px/1.4 Roboto, sans-serif; opacity: .92; }
.ofpb-of .usr { position: relative; height: 58px; }
.ofpb-of .av { position: absolute; left: 14px; top: -40px; width: 94px; height: 94px; border-radius: 50%; border: 3px solid var(--pbg); background: #555 center/cover no-repeat; cursor: pointer; }
.ofpb-of .av.has-story { box-shadow: 0 0 0 3px #00aff0; }
.ofpb-of .info { padding: 4px 16px 14px; }
.ofpb-of .nm { font: 500 19px/24px Roboto, sans-serif; display: flex; align-items: center; gap: 5px; }
.ofpb-of .hd { font-size: 14px; color: var(--pmut); overflow-wrap: anywhere; }
.ofpb-of .bio { margin-top: 10px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; cursor: pointer; }
.ofpb-of .lnk { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; color: #00aff0; flex-wrap: wrap; }
.ofpb-of .sub { border-top: 8px solid var(--psep); padding: 12px 16px 14px; }
.ofpb-of .sub .t { font: 500 14px/1 Roboto, sans-serif; text-transform: uppercase; color: var(--pmut); margin-bottom: 10px; }
.ofpb-of .sub .b { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 20px; border-radius: 999px; background: #00aff0; color: #fff; font: 500 14px/1 Roboto, sans-serif; text-transform: uppercase; }
.ofpb-of .oftabs { display: flex; border-top: 8px solid var(--psep); border-bottom: 1px solid var(--psep); }
.ofpb-of .oftabs > div { flex: 1; text-align: center; padding: 13px 0; font: 500 13px/1 Roboto, sans-serif; text-transform: uppercase; color: var(--pmut); }
.ofpb-of .oftabs > div.on { color: var(--pfg); box-shadow: inset 0 -2px 0 var(--pfg); }
.ofpb-of .nopin { display: flex; align-items: center; gap: 10px; margin: 10px 12px; padding: 12px; border: 1.5px dashed var(--v2-err); border-radius: 10px; color: var(--v2-err); font: 500 13.5px/1.3 Roboto, sans-serif; cursor: pointer; }
.ofpb-of .pinned { position: relative; margin: 10px 12px; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #444 center/cover no-repeat; cursor: pointer; }
.ofpb-of .pinned i { position: absolute; left: 8px; top: 8px; font: 600 11px/1 Roboto, sans-serif; font-style: normal; background: rgba(0,0,0,.6); color: #fff; padding: 5px 7px; border-radius: 6px; }
.ofpb-of .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ofpb-of .tile { position: relative; aspect-ratio: 1; background: #444 center/cover no-repeat; cursor: pointer; }
.ofpb-of .tile i { position: absolute; z-index: 1; font-style: normal; font: 600 10.5px/1 Roboto, sans-serif; color: #fff; background: rgba(0,0,0,.55); border-radius: 5px; padding: 4px 5px; }
.ofpb-of .tile .pr { right: 5px; top: 5px; background: #00aff0; }
.ofpb-of .tile .vd { left: 5px; top: 5px; }
.ofpb-of .tile .sl { left: 5px; bottom: 5px; background: var(--v2-gold); color: #111; }
.ofpb-of .tile .ct { right: 5px; bottom: 5px; background: #1f9d55; }
.ofpb-of .tile.is-old::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 2px var(--v2-err); }
.ofpb-of .tile.is-plan { outline: 2px dashed var(--v2-gold); outline-offset: -2px; }
.ofpb-of .tile.is-plan .pl { left: 5px; bottom: 5px; background: var(--v2-gold); color: #111; }
.ofpb-of .tile.is-wait .pl { background: #E0A526; }

/* skeleton */
.ofpb .skel { position: relative; overflow: hidden; border-radius: 8px; background: var(--v2-soft); }
.ofpb .skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); animation: ofpbsk 1.3s infinite; }
@keyframes ofpbsk { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ofpb .skel::after { animation: none; } }
.ofpb-err { display: flex; align-items: center; gap: 10px; color: var(--v2-err); font: 500 13.5px/1.3 var(--v2-font); padding: 12px 0; }
.ofpb-empty { padding: 18px 0; text-align: center; font: 500 13.5px/1.3 var(--v2-font); color: var(--v2-ink2); }

@media (prefers-color-scheme: dark) {
  .ofpb-of { --pbg: #161618; --pfg: #fefefe; --psep: #0d0d0f; }
  .ofpb-chip.is-paid { background: rgba(0,175,240,.16); color: #4cc6f5; }
  .ofpb-chip.is-warn { color: #F2C14E; }
  .ofpb-row .v.is-warn, .ofpb-kpi.is-warn b, .ofpb-step.is-warn b { color: #F2C14E; }
}

@media (max-width: 1180px) {
  .ofpb-lay { grid-template-columns: 260px minmax(0, 1fr); }
  .ofpb-pv { display: none; }
  .ofpb-ni.is-page { display: flex; }
  .ofpb-lay[data-view="pv"] .ofpb-mid { display: none; }
  .ofpb-lay[data-view="pv"] .ofpb-pv { display: block; position: static; }
}
@media (max-width: 768px) {
  .ofpb-lay { display: block; padding: 12px 12px calc(30px + env(safe-area-inset-bottom)); }
  .ofpb-nav { position: static; }
  .ofpb-nav > .ofpb-card { max-height: none; }
  .ofpb-mid, .ofpb-pv { display: none; }
  .ofpb-lay[data-view="mid"] .ofpb-nav, .ofpb-lay[data-view="pv"] .ofpb-nav { display: none; }
  .ofpb-lay[data-view="mid"] .ofpb-mid { display: flex; }
  .ofpb-lay[data-view="pv"] .ofpb-pv { display: block; position: static; }
  .ofpb-lay[data-view="pv"] .ofpb-pv > .ofpb-card { max-height: none; }
  .ofpb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofpb-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ofpb-imgs { grid-template-columns: minmax(0, 1fr); }
  .ofpb-imgs .ofpb-img.is-av { width: 140px; }
  .ofpb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ofpb-input { font-size: 16px; }
  .ofpb .ofpb-back { display: inline-flex !important; }
  .ofpb-plan { flex-wrap: wrap; }
  .ofpb-plan .t { flex-basis: calc(100% - 68px); }
  .ofpb-plan .ofpb-acts { width: 100%; justify-content: flex-start; padding-left: 68px; }
}

/* .hdr-i is display:block app-wide: inline where an icon sits inside text */
.ofpb-tile i, .ofpb-of .tile i, .ofpb-of .pinned i { display: inline-flex; align-items: center; gap: 3px; }
.ofpb-of .lnk span { display: inline-flex; align-items: center; gap: 5px; }
.ofpb-chip .hdr-i { display: inline-block; }

/* own pin post editor */
.ofpb-add { display: grid; place-items: center; background: none; border: 1.5px dashed var(--v2-line); color: var(--v2-ink2); }
.ofpb-add:hover { border-color: var(--v2-gold); color: var(--v2-gold-ink); }
.ofpb-ta { display: block; width: 100%; height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.45; resize: vertical; box-sizing: border-box; margin-bottom: 6px; font-family: var(--v2-font); }

/* bio edited in place */
.ofpb-bio-ta { min-height: 120px; font-size: 14.5px; }
.ofpb-bio-ta.is-dirty { border-color: var(--v2-gold); }
.ofpb-bio-acts { display: inline-flex; gap: 6px; align-items: center; }
.ofpb-bio-acts[hidden] { display: none; }
@media (max-width: 768px) { .ofpb-bio-ta { font-size: 16px; } }

/* bio in its 5 lines (framework §3) */
.ofpb-bl { display: grid; grid-template-columns: 22px 104px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--v2-line2); }
.ofpb-bl:last-child { border-bottom: 0; }
.ofpb-bl-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--v2-soft); font: 650 12px/1 var(--v2-font); }
.ofpb-bl-l { font: 600 13px/1.2 var(--v2-font); }
.ofpb-bl-t { width: 100%; height: auto; min-height: var(--v2-h-ctl, 36px); padding: 8px 10px; resize: none; overflow: hidden; line-height: 1.35; font: 400 14px/1.35 var(--v2-font); box-sizing: border-box; }
.ofpb-bls.is-dirty .ofpb-bl-t { border-color: var(--v2-gold); }
.ofpb-bl-s { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 12.5px/1.2 var(--v2-font); white-space: nowrap; overflow: hidden; }
.ofpb-bl-s .v { overflow: hidden; text-overflow: ellipsis; }
.ofpb-bl-s .v.is-err { color: var(--v2-err); } .ofpb-bl-s .v.is-warn { color: #B07A0E; }
@media (max-width: 768px) {
  .ofpb-bl { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 6px; }
  .ofpb-bl-n { grid-row: 1; grid-column: 1; } .ofpb-bl-l { grid-row: 1; grid-column: 2; }
  .ofpb-bl-s { grid-row: 1; grid-column: 3; justify-content: flex-end; max-width: 60vw; }
  .ofpb-bl-t { grid-row: 2; grid-column: 1 / -1; font-size: 16px; }
}

/* bio: one block per line (label + field + light), its framework part 3.x underneath */
.ofpb-blk .ofpb-bl { border-bottom: 0; padding: 0 0 4px; }
.ofpb-blk .ofpb-fwsec { margin-top: 12px; font-size: 14.5px; }
.ofpb-blk .ofpb-fwsec h3 { font-size: 15px; color: var(--v2-ink2); margin-bottom: .3em; }
.ofpb-blk #ofpb-bio-checks { margin-bottom: 14px; }
.ofpb-ex { all: unset; cursor: pointer; border-radius: 4px; text-decoration: underline dotted var(--v2-ink3); text-underline-offset: 3px; }
.ofpb-ex:hover, .ofpb-ex:focus-visible { background: var(--v2-gold-soft); color: var(--v2-gold-ink); text-decoration-color: var(--v2-gold); }

/* tables: own heads (the app's global th is uppercase), words never broken mid-word, phone scrolls the table */
.ofpb-md th { text-transform: none; letter-spacing: 0; }
.ofpb-md td, .ofpb-md th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.ofpb-md td:first-child { min-width: 96px; }
.ofpb-md .ofpb-ex { display: inline; }
@media (max-width: 768px) { .ofpb-md table { min-width: 560px; } .ofpb-md { font-size: 15px; } }

/* bio: the 5 lines compact on top, each line's framework part folds open under it (Lasse 19.11.2026) */
.ofpb-bls .ofpb-blk { border-bottom: 1px solid var(--v2-line2); }
.ofpb-bls .ofpb-blk:last-child { border-bottom: 0; }
.ofpb-bls .ofpb-bl { grid-template-columns: 22px 104px minmax(0, 1fr) 150px 36px; padding: 8px 0; border-bottom: 0; }
.ofpb-fold-b .hdr-i { transition: transform .2s ease; }
.ofpb-fold-b.is-on .hdr-i { transform: rotate(180deg); }
.ofpb-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .25s ease, opacity .2s ease; }
.ofpb-fold.is-open { grid-template-rows: 1fr; opacity: 1; }
.ofpb-fold-in { overflow: hidden; min-height: 0; }
.ofpb-fold.is-open .ofpb-fold-in > .ofpb-fwsec { padding: 6px 0 14px; }
.ofpb-blk .ofpb-fwsec { margin-top: 0; }
.ofpb-row-fold { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .ofpb-fold, .ofpb-fold-b .hdr-i { transition: none; } }
@media (max-width: 768px) {
  .ofpb-bls .ofpb-bl { grid-template-columns: 22px minmax(0, 1fr) auto 36px; }
  .ofpb-bls .ofpb-bl-s { grid-column: 3; }
  .ofpb-bls .ofpb-fold-b { grid-row: 1; grid-column: 4; }
}

/* banner + picture: change on hover (tap on the phone) */
.ofpb-img-ch { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
.ofpb-img-ov { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s ease; border-radius: inherit; }
.ofpb-img-ch:hover .ofpb-img-ov, .ofpb-img-ch:focus-visible .ofpb-img-ov { opacity: 1; }
@media (hover: none) { .ofpb-img-ov { opacity: 1; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); place-items: end center; padding-bottom: 10px; } }

/* bio: live-save status in the card head (no button) */
.ofpb-bio-st { display: inline-flex; align-items: center; gap: 6px; }
.ofpb-bio-s { display: inline-flex; align-items: center; gap: 6px; height: 36px; font: 600 12.5px/1 var(--v2-font); color: var(--v2-ink2); }
.ofpb-bio-s.is-ok { color: var(--v2-ok); } .ofpb-bio-s.is-err { color: var(--v2-err); }
.ofpb-bio-s .hdr-i[data-spin], .ofpb-bio-s .hdr-i { flex: none; }
.ofpb-bio-s:not(.is-ok):not(.is-err) .hdr-i { animation: hdrSpin .9s linear infinite; }

/* feed: multi-select + paid posts greyed (the paid poster's, no actions here) */
.ofpb-tile.is-off { opacity: .35; cursor: default; filter: grayscale(.6); }
.ofpb-tile .ck { left: auto; right: 4px; top: 4px; bottom: auto; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1.5px #fff; }
.ofpb-tile .ck .hdr-i { opacity: 0; }
.ofpb-tile.is-picked { outline: 3px solid var(--v2-gold); outline-offset: -3px; }
.ofpb-tile.is-picked .ck { background: var(--v2-gold); box-shadow: none; color: #111; }
.ofpb-tile.is-picked .ck .hdr-i { opacity: 1; }
.ofpb-paid .ofpb-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
/* Welcome bubbles (lib/of-welcome-seq.js): one row per bubble, chat-bubble field, check on the right */
.ofpb-wsb { display: grid; grid-template-columns: 22px minmax(0, 1fr) 170px 30px; gap: 10px; align-items: center; padding: 5px 0; }
.ofpb-wsb-t { border-radius: 16px 16px 4px 16px; background: var(--v2-soft); }
.ofpb-wsb-add { margin-top: 6px; }
.ofpb-exs { display: flex; flex-wrap: wrap; gap: 6px; }
.ofpb-exs .ofpb-chip { padding: 5px 10px; font-size: 12.5px; }
@media (max-width: 768px) {
  .ofpb-wsb { grid-template-columns: 22px minmax(0, 1fr) 30px; row-gap: 4px; }
  .ofpb-wsb .ofpb-bl-n { grid-row: 1; grid-column: 1; }
  .ofpb-wsb .ofpb-wsb-t { grid-row: 1; grid-column: 2; font-size: 16px; }
  .ofpb-wsb > :last-child { grid-row: 1; grid-column: 3; }
  .ofpb-wsb .ofpb-bl-s { grid-row: 2; grid-column: 2; justify-content: flex-start; max-width: none; }
  .ofpb-wsb .ofpb-bl-s:empty { display: none; }
}

/* welcome: 4-bubble opener roles (framework §8.1) */
.ofpb-wsb.is-roles { grid-template-columns: 22px 132px minmax(0, 1fr) 170px 30px; }
.ofpb-wsb-role { font: 600 12.5px/1.2 var(--v2-font); color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofpb-row-fold .ofpb-sec { flex: none; }
@media (max-width: 768px) {
  .ofpb-wsb.is-roles { grid-template-columns: 22px minmax(0, 1fr) 30px; }
  .ofpb-wsb.is-roles .ofpb-wsb-role { grid-row: 1; grid-column: 2; }
  .ofpb-wsb.is-roles .ofpb-wsb-t { grid-row: 2; grid-column: 1 / -1; }
  .ofpb-wsb.is-roles .ofpb-bl-s { grid-row: 3; grid-column: 1 / -1; }
  .ofpb-wsb.is-roles > :last-child { grid-row: 1; grid-column: 3; }
}

/* avatar (framework §1) */
.ofpb-avr { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--v2-line2); }
.ofpb-avr:last-child { border-bottom: 0; }
.ofpb-avr-l { font: 600 13px/1.2 var(--v2-font); }
.ofpb-avr-s { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.ofpb-av-ch button { width: auto; padding: 0 10px; height: 32px; }
.ofpb-avex { display: grid; gap: 6px; }
.ofpb-avls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ofpb-avl { display: grid; gap: 6px; align-content: start; }
.ofpb-avl .ofpb-sub { margin: 0 0 2px; }
.ofpb-avsb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 768px) {
  .ofpb-avr { grid-template-columns: minmax(0, 1fr) auto; }
  .ofpb-avr > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .ofpb-avr .ofpb-bl-t, .ofpb-avr input, .ofpb-avl input { font-size: 16px; }
  .ofpb-avls { grid-template-columns: minmax(0, 1fr); }
}

/* only sentence as a cloze (avatar) */
#ofpb-only { display: grid; gap: 10px; }
.ofpb-only-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ofpb-cloze { font: 600 17px/2.1 var(--v2-font); color: var(--v2-ink); }
.ofpb-gap { display: inline-grid; vertical-align: top; max-width: 100%; margin: 2px 0; }
.ofpb-gap::after, .ofpb-gap > textarea { grid-area: 1 / 1; font: inherit; line-height: 1.45; padding: 3px 10px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 3ch; }
.ofpb-gap::after { content: attr(data-v) ' '; visibility: hidden; border: 1px solid transparent; }
.ofpb-gap > textarea { width: 100%; height: 100%; resize: none; overflow: hidden; border: 1px solid var(--v2-gold); border-radius: 8px; background: var(--v2-soft); color: var(--v2-ink);
  outline: none; -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.ofpb-gap.is-empty > textarea { border-style: dashed; border-color: var(--v2-err, #c0392b); }
.ofpb-gap > textarea::placeholder { color: var(--v2-ink2); font-weight: 500; }
.ofpb-gap > textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--v2-gold) 30%, transparent); }
@media (max-width: 768px) { .ofpb-gap::after, .ofpb-gap > textarea { font-size: 16px; } }
.ofpb-only-prop { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--v2-r-ctl); background: var(--v2-soft); }
.ofpb-only-prop .l { flex: 1; font-size: 14px; line-height: 1.45; }
.ofpb-only-src { font-size: 12.5px; color: var(--v2-ink); }
@media (max-width: 768px) { .ofpb-cloze { font-size: 16px; } }

/* automations block (free / paid / stories) */
.ofpb-hsel { width: auto; min-width: 92px; height: 34px; padding: 0 8px; }
.ofpb-auto .ofpb-row { flex-wrap: wrap; }
.ofpb-auto select.ofpb-hsel { width: 96px !important; flex: none; }

/* feed planner: slot board (variant A, mig 447) */
.ofpb-fboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ofpb-fslot { border: 1px solid var(--v2-line); border-radius: var(--v2-r-card); padding: 10px; display: grid; gap: 8px; align-content: start; cursor: pointer; background: var(--v2-surface); min-width: 0; }
.ofpb-fslot:hover { border-color: var(--v2-gold); }
.ofpb-fslot.is-open { outline: 2px solid var(--v2-gold); outline-offset: -1px; }
.ofpb-fsh { display: flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--v2-font); min-width: 0; }
.ofpb-fsh > span:not(.ofpb-dot) { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.ofpb-fsh .ofpb-dot { flex: none; }
.ofpb-fsh b { font-size: 12px; opacity: .7; }
.ofpb-fsh em { font-style: normal; font-variant-numeric: tabular-nums; }
.ofpb-fth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ofpb-fth .ofpb-tile { border-radius: 6px; }
.ofpb-fadd { aspect-ratio: 1; border: 1px dashed var(--v2-line); border-radius: 6px; background: transparent; color: var(--v2-ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.ofpb-fadd:hover { border-color: var(--v2-gold); }
.ofpb-fsf { min-height: 22px; display: flex; flex-wrap: wrap; gap: 4px; }
.ofpb-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; margin-bottom: 6px; }
.ofpb-fgrid.is-used { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; opacity: .75; }
.ofpb-fsc { display: grid; gap: 5px; align-content: start; min-width: 0; }
.ofpb-fsa { display: flex; gap: 4px; justify-content: center; }
.ofpb-fsa .ofpb-ib { width: 32px; height: 32px; }
.ofpb-fsr { font-size: 12px; line-height: 1.3; color: var(--v2-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ofpb-fstars { display: flex; justify-content: center; gap: 2px; }
.ofpb-fstars button { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; color: color-mix(in srgb, var(--v2-ink) 35%, transparent); cursor: pointer; display: grid; place-items: center; }
.ofpb-fstars button.is-on { color: var(--v2-gold); }
@media (max-width: 768px) {
  .ofpb-fboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofpb-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofpb-fstars button { width: 30px; height: 30px; }
}

/* stories: next 3 with generated caption (mig 449) */
.ofpb-sngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ofpb-snx { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ofpb-snimg { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--v2-soft); }
.ofpb-sncap { display: grid; gap: 6px; }
@media (max-width: 768px) { .ofpb-sngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
