#aibp-comm { --vh: 100vh; position: fixed; inset: 0; z-index: 99990; transform: translateZ(0); overflow: hidden; background: #0d0a17; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; text-align: left; }
#aibp-comm h2, #aibp-comm h3, #aibp-comm h4, #aibp-comm p, #aibp-comm ul { font-family: inherit; letter-spacing: normal; text-transform: none; }
#aibp-comm button { text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }
/* Themes colour headings, labels and text themselves; inside the community everything takes our colours. */
#aibp-comm h1, #aibp-comm h2, #aibp-comm h3, #aibp-comm h4, #aibp-comm h5, #aibp-comm h6, #aibp-comm p, #aibp-comm label, #aibp-comm span,
#aibp-comm b, #aibp-comm strong, #aibp-comm small, #aibp-comm li, #aibp-comm div, #aibp-comm i, #aibp-comm em, #aibp-comm code { color: inherit; }
#aibp-comm .sheet, #aibp-comm .viewer, #aibp-comm .side, #aibp-comm .top { color: #fff; }
#aibp-comm h1, #aibp-comm h2, #aibp-comm h3, #aibp-comm h4 { font-weight: 800; background: none; border: 0; padding: 0; }
#aibp-comm input, #aibp-comm textarea, #aibp-comm select { color: #fff; background-color: rgba(255,255,255,.06); }
#aibp-comm input::placeholder, #aibp-comm textarea::placeholder { color: rgba(255,255,255,.5); opacity: 1; }
#aibp-comm input[type=checkbox], #aibp-comm input[type=radio] { background-color: transparent; }
/* With the website header (desktop): the community sits below it. */
@media (min-width: 1100px) {
  body.aibp-comm-hdr #aibp-comm { top: var(--hdr, 0px); --vh: calc(100vh - var(--hdr, 0px)); z-index: 50; }
  body.aibp-comm-hdr.aibp-comm-full #aibp-comm { top: var(--abar, 0px); --vh: calc(100vh - var(--abar, 0px)); z-index: 99990; }
}
#aibp-comm .hdr-toggle { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 6px; }
#aibp-comm .hdr-toggle:hover { color: #fff; border-color: rgba(255,255,255,.35); }
body.aibp-comm-full #aibp-comm .hdr-toggle svg { transform: rotate(180deg); }
body.aibp-comm-page { overflow: hidden; }
/* Signed-in users with the WordPress admin bar: start below it on phones and tablets too. */
@media (max-width: 782px) { body.admin-bar #aibp-comm { top: 46px; --vh: calc(100vh - 46px); } }
@media (min-width: 783px) and (max-width: 1099px) { body.admin-bar #aibp-comm { top: 32px; --vh: calc(100vh - 32px); } }

  #aibp-comm {
    --bg: #0d0a17; --ink: #ffffff; --muted: rgba(255,255,255,.72); --brand: #3d2276; --brand-2: #5a35a8;
    --gold: #f5c453; --card: #17122a; --line: rgba(255,255,255,.12); --radius: 22px; --sheet: #1a1430; --danger: #ff8a80;
  }
  #aibp-comm, #aibp-comm * { box-sizing: border-box; }
  #aibp-comm button { font: inherit; color: inherit; }
  #aibp-comm a { color: inherit; }
  #aibp-comm :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

  #aibp-comm .top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
  #aibp-comm .top-inner { width: min(100%, 440px); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  #aibp-comm .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
  #aibp-comm .brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: .02em; flex: none; }
  #aibp-comm .brand-text { white-space: nowrap; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  #aibp-comm .brand-text span { color: var(--muted); font-weight: 600; }
  @media (max-width: 420px) { #aibp-comm .brand-text span { display: none; } }
  #aibp-comm .pill { white-space: nowrap; font-size: 13px; font-weight: 800; padding: 8px 13px; border-radius: 999px; background: var(--gold); color: #1d1233; text-decoration: none; }

  #aibp-comm .feed { height: var(--vh); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; }
  #aibp-comm .feed::-webkit-scrollbar { display: none; }
  #aibp-comm .post { height: var(--vh); scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; position: relative; }
  #aibp-comm .card { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--card); }
  #aibp-comm .stage { position: absolute; inset: 0; top: calc(env(safe-area-inset-top) + 58px); overflow: hidden; background: #fff; }
  @media (min-width: 900px) {
    #aibp-comm .top { background: transparent; border-bottom: 0; justify-content: flex-start; }
    #aibp-comm .top-inner { width: 100%; }
    #aibp-comm .stage { top: 0; }
    #aibp-comm .progress { top: 0 !important; }
    #aibp-comm .card { width: min(440px, 100vw - 32px); height: calc(var(--vh) - 32px); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--line); }
  }
  #aibp-comm .stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
  #aibp-comm .stage .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #6b6480; font-size: 14px; background: #f6f5f9; }
  #aibp-comm .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none;
    background: linear-gradient(to top, rgba(10,6,20,.95) 0%, rgba(10,6,20,.82) 38%, rgba(10,6,20,0) 100%); }
  #aibp-comm .tap-zone { position: absolute; inset: 0; background: transparent; border: 0; cursor: zoom-in; }

  #aibp-comm .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 76px calc(env(safe-area-inset-bottom) + 20px) 18px; }
  @media (min-width: 900px) { #aibp-comm .meta { padding-bottom: 20px; } }
  #aibp-comm .creator { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  #aibp-comm .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; border: 2px solid rgba(255,255,255,.9); flex: none; }
  #aibp-comm .who { min-width: 0; }
  #aibp-comm .who b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #aibp-comm .who small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  #aibp-comm .who .handle { font-size: 11.5px; opacity: .72; margin-top: 1px; letter-spacing: .01em; }
  #aibp-comm .caption { font-size: 15px; line-height: 1.4; margin: 0 0 12px; color: rgba(255,255,255,.94); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #aibp-comm .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  #aibp-comm .agent-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 10px 5px 8px; border-radius: 999px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); text-decoration: none; }
  #aibp-comm .agent-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
  #aibp-comm .tag { font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }
  #aibp-comm .cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 14px; border: 0;
    background: var(--gold); color: #1d1233; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px rgba(245,196,83,.25); }
  #aibp-comm .cta:active { transform: scale(.98); }
  #aibp-comm .cta.alt { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; border: 1px solid var(--line); }

  #aibp-comm .rail { position: absolute; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 92px); display: flex; flex-direction: column; gap: 14px; align-items: center; }
  @media (min-width: 900px) { #aibp-comm .rail { bottom: 92px; } }
  #aibp-comm .rail button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(13,10,23,.5);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; cursor: pointer; }
  #aibp-comm .rail button svg { width: 22px; height: 22px; }
  #aibp-comm .rail label { display: block; font-size: 11.5px; font-weight: 700; text-align: center; margin-top: 4px; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.7); }

  #aibp-comm .progress { position: absolute; left: 0; top: calc(env(safe-area-inset-top) + 58px); height: 3px; background: var(--gold); width: 0; z-index: 2; }

  #aibp-comm .nav { display: none; position: fixed; right: max(16px, calc(50vw - 300px)); top: 50%; transform: translateY(-50%); z-index: 15; flex-direction: column; gap: 12px; }
  @media (min-width: 900px) and (hover: hover) { #aibp-comm .nav { display: flex; } }
  #aibp-comm .nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #1d1733; cursor: pointer; display: grid; place-items: center; }
  #aibp-comm .nav button:disabled { opacity: .35; cursor: default; }

  #aibp-comm .end { text-align: center; padding: 32px 24px; max-width: 420px; }
  #aibp-comm .end h2 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
  #aibp-comm .end p { color: var(--muted); line-height: 1.5; margin: 0 0 20px; }
  #aibp-comm .end .links { margin-top: 16px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 14px; }
  #aibp-comm .end .links a, #aibp-comm .end .links button { color: var(--muted); font-weight: 700; background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }

  /* Expanded view */
  #aibp-comm .viewer { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; background: var(--bg); }
  #aibp-comm .viewer.open { display: flex; animation: up .28s cubic-bezier(.2,.8,.2,1); }
  @keyframes up { from { transform: translateY(24px); } to { transform: none; } }
  #aibp-comm .v-head { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; border-bottom: 1px solid var(--line); }
  #aibp-comm .v-head button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; flex: none; }
  #aibp-comm .v-title { flex: 1; min-width: 0; }
  #aibp-comm .v-title b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #aibp-comm .v-title small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #aibp-comm .v-body { flex: 1; position: relative; background: #fff; }
  #aibp-comm .v-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
  #aibp-comm .v-foot { display: flex; gap: 10px; align-items: center; padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid var(--line); background: #120d22; }
  #aibp-comm .v-foot .cta { flex: 1; }
  #aibp-comm .v-foot .note { font-size: 12.5px; color: var(--muted); max-width: 46%; line-height: 1.35; }
  @media (max-width: 420px) { #aibp-comm .v-foot .note { display: none; } }

  /* Sheets: report, block, more */
  #aibp-comm .scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: none; align-items: flex-end; justify-content: center; }
  #aibp-comm .scrim.open { display: flex; }
  #aibp-comm .sheet { width: min(100%, 460px); max-height: 88vh; max-height: 88dvh; overflow-y: auto; background: var(--sheet); border-radius: 22px 22px 0 0; border: 1px solid var(--line);
    padding: 10px 18px calc(env(safe-area-inset-bottom) + 18px); animation: up .22s ease-out; }
  @media (min-width: 600px) { #aibp-comm .scrim { align-items: center; } #aibp-comm .sheet { border-radius: 22px; padding-bottom: 18px; } }
  #aibp-comm .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 0 auto 12px; }
  #aibp-comm .sheet h3 { font-size: 18px; margin: 4px 0 6px; }
  #aibp-comm .sheet p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
  #aibp-comm .sheet p a { color: #fff; }
  #aibp-comm .menu { list-style: none; margin: 0 0 6px; padding: 0; }
  #aibp-comm .menu button, #aibp-comm .menu a { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 6px; background: none; border: 0;
    border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
  #aibp-comm .menu li:last-child button, #aibp-comm .menu li:last-child a { border-bottom: 0; }
  #aibp-comm .menu svg { width: 22px; height: 22px; flex: none; }
  #aibp-comm .menu .danger { color: var(--danger); }
  #aibp-comm .reasons { display: grid; gap: 8px; margin: 0 0 12px; }
  #aibp-comm .reasons label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; }
  #aibp-comm .reasons input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
  #aibp-comm .reasons label:has(input:checked) { border-color: var(--gold); background: rgba(245,196,83,.08); }
  #aibp-comm textarea { width: 100%; min-height: 80px; resize: vertical; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff;
    padding: 12px; font: inherit; font-size: 15px; margin-bottom: 12px; }
  #aibp-comm .row { display: flex; gap: 10px; }
  #aibp-comm .row .cta { flex: 1; }
  #aibp-comm .blist { list-style: none; margin: 0 0 12px; padding: 0; }
  #aibp-comm .blist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 600; }
  #aibp-comm .blist button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 14px; }
  #aibp-comm .err { color: var(--danger); font-size: 14px; margin: -4px 0 12px; display: none; }

  #aibp-comm h1.brand-text { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.2; }
  #aibp-comm .ssr { padding: 80px 20px 40px; max-width: 640px; margin: 0 auto; }
  #aibp-comm .ssr-post { padding: 16px 0; border-bottom: 1px solid var(--line); }
  #aibp-comm .ssr-post h2 { font-size: 18px; margin: 0 0 6px; } #aibp-comm .ssr-post p { margin: 0 0 6px; line-height: 1.5; }
  #aibp-comm .ssr-meta { color: var(--muted); font-size: 14px; } #aibp-comm .ssr a { color: #fff; }
  #aibp-comm img.brand-mark { display: block; object-fit: cover; padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
  #aibp-comm .pill { border: 0; cursor: pointer; font-family: inherit; }
  #aibp-comm .pill.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid var(--line); }
  #aibp-comm .rail button.liked { background: var(--gold); border-color: var(--gold); color: #1d1233; }
  #aibp-comm .rail button.liked svg path { fill: #1d1233; }
  #aibp-comm .rail button { color: #fff; }
  #aibp-comm #v-like { color: #fff; } #aibp-comm #v-like.liked { color: var(--gold); } #aibp-comm #v-like.liked svg path { fill: var(--gold); }
  #aibp-comm .sheet.wide { width: min(100%, 560px); }
  #aibp-comm .sheet .small { font-size: 13px; }
  #aibp-comm .warn { background: rgba(245,196,83,.1); border: 1px solid rgba(245,196,83,.45); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
  #aibp-comm .warn.stop { background: rgba(255,138,128,.1); border-color: rgba(255,138,128,.55); }
  #aibp-comm .warn ul { margin: 6px 0; padding-left: 18px; } #aibp-comm .warn code { font-size: 13px; background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 5px; }
  #aibp-comm .deps, #aibp-comm .mine { list-style: none; margin: 0 0 10px; padding: 0; }
  #aibp-comm .deps button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; margin-bottom: 8px;
    border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); text-align: left; cursor: pointer; }
  #aibp-comm .deps button:not(:disabled):hover { border-color: var(--gold); }
  #aibp-comm .deps button:disabled { cursor: default; opacity: .55; }
  #aibp-comm .deps b, #aibp-comm .mine b { display: block; font-size: 15px; overflow-wrap: anywhere; }
  #aibp-comm .deps small, #aibp-comm .mine small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
  #aibp-comm .deps .st { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; flex: none; }
  #aibp-comm .mine li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #aibp-comm .mine li > div:first-child { min-width: 0; }
  #aibp-comm .mine .acts { display: flex; gap: 8px; flex: none; }
  #aibp-comm .mine button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 13px; min-height: 40px; }
  #aibp-comm .blist small { color: var(--muted); font-weight: 500; font-size: 13px; }
  #aibp-comm .pv { height: 44vh; height: 44dvh; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 6px; }
  #aibp-comm .pv { position: relative; }
  #aibp-comm .pv-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; text-align: center; background: #f6f5f9; color: #4a4560; font-size: 14px; }
  #aibp-comm .pv-load[hidden] { display: none; }
  #aibp-comm .pv-load .spin { border-color: #ddd8ea; border-top-color: #5a35a8; }
  #aibp-comm .pv[hidden] { display: none; }
  #aibp-comm .pv-note { background: rgba(255,138,128,.1); border: 1px solid rgba(255,138,128,.5); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
  #aibp-comm .pv-note[hidden], #aibp-comm .sheet p[hidden], #aibp-comm .sheet form[hidden] { display: none; }
  #aibp-comm .pv-note.info { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
  #aibp-comm .pv iframe { width: 100%; height: 100%; border: 0; }
  #aibp-comm .sheet label.f { display: block; font-weight: 700; font-size: 14px; margin: 6px 0 8px; }
  #aibp-comm .sheet form .row, #aibp-comm .sheet > .row { margin-top: 20px; }
  #aibp-comm .sheet form textarea { margin-bottom: 16px; }
  #aibp-comm .sheet .as { padding: 4px 0 14px; }
  #aibp-comm .sheet .warn { margin-bottom: 18px; }
  #aibp-comm .sheet label.f small { font-weight: 500; color: var(--muted); }
  #aibp-comm .sheet input[type=text] { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; padding: 11px 12px; font: inherit; font-size: 15px; margin-bottom: 16px; }
  #aibp-comm .chk { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; cursor: pointer; }
  #aibp-comm .chk input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin: 1px 0 0; }
  #aibp-comm .chk a { color: var(--gold); }
  #aibp-comm .tag.ro { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); cursor: help; font-family: inherit; line-height: 1.2; }
  #aibp-comm .v-strip { padding: 7px 14px; font-size: 12.5px; font-weight: 700; text-align: center; background: #2a2045; color: #f5e6b8; border-bottom: 1px solid var(--line); }
  #aibp-comm .tag.ok { color: #8be0a4; border-color: rgba(139,224,164,.45); background: rgba(139,224,164,.08); cursor: help; font-family: inherit; line-height: 1.2; }
  #aibp-comm .warn .tip { display: block; margin-top: 8px; color: var(--muted); }
  #aibp-comm .as { font-size: 14px; color: var(--muted); padding: 2px 0 10px; } #aibp-comm .as b { color: #fff; }
  #aibp-comm .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 480px) { #aibp-comm .two { grid-template-columns: 1fr; } }
  #aibp-comm .at { position: relative; } #aibp-comm .at span { position: absolute; left: 12px; top: 11px; color: var(--muted); } #aibp-comm .at input { padding-left: 26px !important; }
  #aibp-comm .wait { text-align: center; padding: 30px 10px; color: var(--muted); }
  #aibp-comm .spin { width: 32px; height: 32px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  #aibp-comm .done { text-align: center; } #aibp-comm .done .ok { width: 56px; height: 56px; margin: 6px auto 10px; border-radius: 50%; background: rgba(139,224,164,.15); color: #8be0a4; display: grid; place-items: center; font-size: 28px; }
  /* ---------- Desktop: sidebar, the post in the middle, details on the right ---------- */
  #aibp-comm .dnav, #aibp-comm .dfoot, #aibp-comm .side, #aibp-comm .dsign { display: none; }
  @media (min-width: 1100px) {
    #aibp-comm .top { right: auto; bottom: 0; width: 260px; padding: 28px 20px; align-items: stretch; justify-content: flex-start; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 0; }
    #aibp-comm .top-inner { width: 100%; height: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 22px; }
    #aibp-comm .brand-text { white-space: normal; font-size: 16px; line-height: 1.25; }
    #aibp-comm .brand-text span { display: block; font-size: 14px; }
    #aibp-comm .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 12px; }
    #aibp-comm .dnav { display: flex; flex-direction: column; gap: 4px; }
    #aibp-comm .dnav button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: none; font-weight: 700; font-size: 16px; cursor: pointer; text-align: left; color: rgba(255,255,255,.86); }
    #aibp-comm .dnav button:hover { background: rgba(255,255,255,.06); }
    #aibp-comm .dnav button.on { background: rgba(255,255,255,.1); color: var(--gold); }
    #aibp-comm .dnav svg { width: 22px; height: 22px; flex: none; }
    #aibp-comm .dnav .need { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
    #aibp-comm .dsign { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.04); }
    #aibp-comm .dsign b { display: block; font-size: 15px; margin-bottom: 6px; }
    #aibp-comm .dsign p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
    #aibp-comm .dsign-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
    #aibp-comm .dsign-btn:hover { background: rgba(255,255,255,.08); }
    #aibp-comm #share-yours { min-height: 48px; font-size: 15px; border-radius: 14px; }
    #aibp-comm #show-all { display: none !important; }
    #aibp-comm .dfoot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; font-size: 13px; color: var(--muted); line-height: 1.5; }
    #aibp-comm .dfoot p { margin: 0 0 4px; }
    #aibp-comm .dfoot a { color: var(--muted); text-decoration: none; font-weight: 600; } #aibp-comm .dfoot a:hover { color: #fff; }
    #aibp-comm .feed { margin-left: 260px; margin-right: 380px; }
    #aibp-comm .card { width: min(460px, calc((var(--vh) - 48px) * .58)); height: calc(var(--vh) - 48px); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--line); }
    #aibp-comm .card .meta, #aibp-comm .card .rail, #aibp-comm .card .shade { display: none; }
    #aibp-comm .stage { top: 0; } #aibp-comm .progress { top: 0 !important; }
    #aibp-comm .nav { right: 404px; }
    #aibp-comm .side { display: flex; flex-direction: column; gap: 18px; position: fixed; top: 0; right: 0; bottom: 0; width: 380px; padding: 36px 28px; border-left: 1px solid var(--line); overflow-y: auto; background: var(--bg); z-index: 5; }
    #aibp-comm .s-creator { display: flex; gap: 14px; align-items: center; }
    #aibp-comm .s-creator .avatar { width: 52px; height: 52px; font-size: 18px; }
    #aibp-comm .s-creator b { display: block; font-size: 19px; line-height: 1.25; }
    #aibp-comm .s-creator small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
    #aibp-comm .s-cap { font-size: 16px; line-height: 1.55; margin: 0; color: rgba(255,255,255,.94); }
    #aibp-comm .side .chips { margin: 0; }
    #aibp-comm .s-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
    #aibp-comm .s-acts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-size: 12.5px; font-weight: 700; color: #fff; }
    #aibp-comm .s-acts button:hover { border-color: rgba(255,255,255,.35); }
    #aibp-comm .s-acts svg { width: 22px; height: 22px; }
    #aibp-comm .s-acts button.liked { background: var(--gold); border-color: var(--gold); color: #1d1233; }
    #aibp-comm .s-acts button.liked svg path { fill: #1d1233; }
    #aibp-comm .s-note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
    #aibp-comm .side h4 { margin: 10px 0 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
    #aibp-comm .s-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
    #aibp-comm .s-next button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; }
    #aibp-comm .s-next button:hover { background: rgba(255,255,255,.05); border-color: var(--line); }
    #aibp-comm .s-next .avatar { width: 36px; height: 36px; font-size: 13px; }
    #aibp-comm .s-next b { display: block; font-size: 14px; } #aibp-comm .s-next small { display: block; font-size: 12.5px; color: var(--muted); }
    #aibp-comm .s-empty h2 { font-size: 24px; margin: 0 0 8px; } #aibp-comm .s-empty p { color: var(--muted); line-height: 1.5; }
  }
  #aibp-comm .toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translate(-50%, 20px); opacity: 0; z-index: 120;
    background: #fff; color: #1d1233; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
  #aibp-comm .toast.show { opacity: 1; transform: translate(-50%, 0); }
  #aibp-comm .loading { height: var(--vh); display: grid; place-items: center; color: var(--muted); }
  @media (prefers-reduced-motion: reduce) { #aibp-comm .viewer.open, #aibp-comm .sheet { animation: none; } }
/* Dynamic viewport height where supported (older Android WebViews only know vh; an unknown unit in --vh would collapse the feed). */
@supports (height: 100dvh) {
  #aibp-comm { --vh: 100dvh; }
  @media (min-width: 1100px) {
    body.aibp-comm-hdr #aibp-comm { --vh: calc(100dvh - var(--hdr, 0px)); }
    body.aibp-comm-hdr.aibp-comm-full #aibp-comm { --vh: calc(100dvh - var(--abar, 0px)); }
  }
  @media (max-width: 782px) { body.admin-bar #aibp-comm { --vh: calc(100dvh - 46px); } }
  @media (min-width: 783px) and (max-width: 1099px) { body.admin-bar #aibp-comm { --vh: calc(100dvh - 32px); } }
}
