/* #SECTION: DROP F.1 — PUBLIC VIEW (shared build/team route stub) */
/* ══════════════════════════════════════════════════════════════════
   Public view route (#/b/<code>, #/t/<code>, #/u/<name>).
   Card-centred layout occupying the main area with a sticky FAB.
   Signed-out visitors get the sidebar hidden (no nav target); signed-in
   viewers keep the sidebar so they can get back to their own app.
   Share-toggle UI, username modal, likes, and full read-only detail
   renderers are Drop F.2+ — this file contains the stub layout only.
   ══════════════════════════════════════════════════════════════════ */

/* When a public route is active, the body gets class "pub-route".
   If the viewer is also signed in, additionally "pub-route-authed". */
body.pub-route:not(.pub-route-authed) .sb{display:none !important}
body.pub-route:not(.pub-route-authed) .main{margin-left:0 !important}

/* Make the public page take the full viewport height so the FAB can anchor
   reliably to the bottom regardless of card content length. */
#pg-public{
  display:none;
  min-height:100vh;
  position:relative;
  padding:0;
}
#pg-public.show{display:flex;flex-direction:column}

/* Minimal brand strip at top — keeps visitors oriented on a share link */
.pub-brand{
  display:flex;align-items:center;gap:.5rem;
  padding:.9rem 1.1rem;
  font-size:.82rem;font-weight:700;color:var(--muted);
}
.pub-brand-mark{
  width:22px;height:22px;border-radius:6px;
  background:linear-gradient(135deg,#ef4444 0%,#f59e0b 100%);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:900;font-size:.62rem;
  box-shadow:0 2px 6px rgba(245,158,11,.3);
}

/* Wrapper centres the card in the viewport with room for the FAB */
.pub-wrap{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:.5rem 1.25rem 7rem;
  gap:1rem;
  max-width:480px;
  margin:0 auto;
  width:100%;
  box-sizing:border-box;
}

.pub-card{
  width:100%;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  padding:2rem 1.5rem 1.75rem;
  text-align:center;
  box-shadow:0 4px 24px rgba(0,0,0,.25);
  position:relative;
  overflow:hidden;
}

/* Type-tinted radial glow behind the sprite.
   Inline style sets the gradient stops from the Pokémon's type colours. */
.pub-glow{
  position:absolute;
  top:-50px;left:50%;transform:translateX(-50%);
  width:280px;height:280px;
  filter:blur(20px);
  pointer-events:none;
  z-index:0;
}
/* :not(.pub-glow) is critical — without it, the universal child rule forces
   position:relative on the absolutely-positioned glow div, which makes it
   take up 280×280px of flex flow and pushes all card content downward. */
.pub-card > :not(.pub-glow){position:relative;z-index:1}

.pub-sprite{
  width:150px;height:150px;
  object-fit:contain;
  display:block;
  margin:0 auto .75rem;
  image-rendering:auto;
  filter:drop-shadow(0 6px 20px rgba(0,0,0,.4));
}

.pub-types{
  display:flex;justify-content:center;gap:.4rem;
  margin-bottom:.9rem;flex-wrap:wrap;
}
.pub-type-chip{
  font-size:.7rem;font-weight:800;letter-spacing:.04em;
  padding:.22rem .55rem;border-radius:999px;
  text-transform:uppercase;color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
}

.pub-name{
  font-size:1.5rem;font-weight:800;
  color:var(--text);
  margin:0 0 .25rem;
  letter-spacing:-.02em;
  line-height:1.15;
  word-wrap:break-word;
  overflow-wrap:break-word;
}

.pub-author{
  font-size:.92rem;color:var(--muted);
  margin-bottom:1.25rem;
}
.pub-author a{
  color:var(--text2);
  text-decoration:none;
  font-weight:700;
}
.pub-author a:hover{color:var(--red)}

.pub-meta{
  font-size:.78rem;color:var(--muted);line-height:1.4;
  padding:.85rem 1rem;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:12px;
  display:flex;align-items:center;gap:.55rem;justify-content:center;text-align:left;
}
[data-theme="light"] .pub-meta{background:rgba(0,0,0,.03)}
.pub-meta-icon{font-size:1rem;flex-shrink:0}

.pub-404{font-size:2.5rem;margin-bottom:.5rem}
.pub-loading{font-size:1rem;color:var(--muted);padding:2rem}

/* Sticky "Create your build" FAB (signed-out) / "Back to my app" (signed-in).
   Anchored to the viewport bottom with safe-area respect so it clears the
   home indicator on iPhone and any bottom nav chrome. */
.pub-cta{
  position:fixed;
  bottom:calc(env(safe-area-inset-bottom,0px) + 22px);
  left:50%;transform:translateX(-50%);
  background:var(--red);color:#fff;
  border:none;border-radius:999px;
  padding:.95rem 1.75rem;
  font-size:.95rem;font-weight:700;
  box-shadow:0 6px 20px rgba(239,68,68,.45),0 2px 4px rgba(0,0,0,.3);
  cursor:pointer;z-index:50;
  white-space:nowrap;
  display:flex;align-items:center;gap:.5rem;
  font-family:inherit;
}
.pub-cta .cta-arrow{font-size:1.05rem;line-height:1}
.pub-cta:active{transform:translateX(-50%) scale(.96)}
.pub-cta:hover{background:#dc2626}
[data-theme="light"] .pub-cta:hover{background:#b91c1c}

/* Drop F.2.1 v7: when signed-in viewing a public page, the mobile bottom nav
   stays visible (~72px tall). Push the FAB above it so it doesn't get stuck
   behind the nav bar. Only applies at mobile widths (nav is in sidebar on desktop). */
@media (max-width:899px){
  body.pub-route-authed .pub-cta{
    bottom:calc(72px + env(safe-area-inset-bottom,0px) + 22px);
  }
}

/* #SECTION: DROP F.2a — BUILD EDITOR SHARE CARD */
/* ══════════════════════════════════════════════════════════════════
   Share toggle card injected into the build editor form when editing
   an existing build (hidden for new/draft builds). Lives inside .editor
   above the sticky save-bar, styled as a regular .ed-card so it fits
   the existing vertical stack. Active state picks up a subtle red tint.
   ══════════════════════════════════════════════════════════════════ */

.ed-share-card{
  transition:border-color .2s,background .2s;
}
.ed-share-card.active{
  border-color:rgba(239,68,68,.5);
  background:linear-gradient(180deg,rgba(239,68,68,.04) 0%,var(--card) 100%);
}

.ed-share-head{
  display:flex;align-items:center;justify-content:space-between;gap:.7rem;
}
.ed-share-title{display:flex;align-items:center;gap:.55rem;flex:1;min-width:0}
.ed-share-title > i{font-size:1rem;color:var(--muted);transition:color .2s}
.ed-share-card.active .ed-share-title > i{color:var(--red)}
.ed-share-title h3{
  font-size:.92rem;font-weight:700;color:var(--text);
  margin:0;letter-spacing:-0.01em;
}
.ed-share-title .label-sub{
  display:block;margin-top:2px;
  font-size:.7rem;color:var(--muted);font-weight:500;
}

/* Toggle switch */
.ed-share-toggle{
  position:relative;
  width:48px;height:28px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:999px;
  cursor:pointer;flex-shrink:0;
  transition:background .2s,border-color .2s,opacity .2s;
  -webkit-tap-highlight-color:transparent;
}
.ed-share-toggle .knob{
  position:absolute;top:2px;left:2px;
  width:22px;height:22px;
  background:var(--muted);
  border-radius:50%;
  transition:left .2s cubic-bezier(.4,0,.2,1),background .2s,box-shadow .2s;
  box-shadow:0 2px 4px rgba(0,0,0,.3);
}
.ed-share-toggle.on{background:var(--red);border-color:var(--red)}
.ed-share-toggle.on .knob{
  left:calc(100% - 24px);
  background:#fff;
  box-shadow:0 2px 8px rgba(239,68,68,.5);
}
.ed-share-toggle.loading{opacity:.5;pointer-events:none;cursor:wait}
.ed-share-toggle:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* Revealed body when toggled ON */
.ed-share-body{
  margin-top:.9rem;
  padding-top:.9rem;
  border-top:1px solid var(--border);
  display:flex;flex-direction:column;gap:.55rem;
  animation:edShareReveal .25s ease;
}
@keyframes edShareReveal{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

.ed-share-url-row{display:flex;gap:.5rem;align-items:stretch}

.ed-share-url{
  flex:1;min-width:0;
  background:var(--input-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:.55rem .7rem;
  font-family:'SF Mono','Menlo',Consolas,monospace;
  font-size:.75rem;color:var(--text2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  display:flex;align-items:center;
  user-select:all;
  -webkit-user-select:all;
}

.ed-share-copy-btn{
  flex-shrink:0;
  min-width:44px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:0 .75rem;
  color:var(--text);
  font-size:.78rem;font-weight:700;
  cursor:pointer;
  display:flex;align-items:center;gap:.3rem;
  transition:all .15s;
  font-family:inherit;
  white-space:nowrap;
}
.ed-share-copy-btn:hover{background:var(--surface2);border-color:var(--border2)}
.ed-share-copy-btn:active{transform:scale(.95)}
.ed-share-copy-btn.copied{
  background:var(--green-bg);
  border-color:var(--green);
  color:var(--green);
}
[data-theme="light"] .ed-share-copy-btn.copied{
  background:rgba(22,163,74,.1);
  border-color:var(--green);
  color:var(--green);
}

.ed-share-hint{
  font-size:.7rem;color:var(--muted);
  line-height:1.4;
  display:flex;align-items:flex-start;gap:.4rem;
}
.ed-share-hint > i{
  color:var(--muted2);font-size:.85rem;
  margin-top:1px;flex-shrink:0;
}
.ed-share-hint strong{color:var(--text2);font-weight:700}

/* #SECTION: DROP F.2 — FULL PUBLIC DETAIL */
/* ══════════════════════════════════════════════════════════════════
   Replaces the F.1 stub public view with a full read-only build/team
   detail renderer. New classes live in the .pub-* namespace (builds)
   and .pt-* namespace (teams). Build detail pill uses .bd-pill-*.
   ══════════════════════════════════════════════════════════════════ */

/* Scroll container inside pg-public (replaces .pub-wrap centered layout) */
#pg-public .scroll-area{
  flex:1;overflow-y:auto;padding:0 0 6rem;
  -webkit-overflow-scrolling:touch;
}

/* Hero wrapper for the main sprite card */
.pub-hero{padding:0 1.1rem}
.pub-hero .pub-card{
  padding:1.75rem 1.25rem 1.4rem;
  border-radius:22px;
}

/* Shiny variant — gold/red glow + subtle sparkle */
.pub-card.shiny .pub-glow{
  background:radial-gradient(circle,rgba(245,158,11,.35) 0%,rgba(239,68,68,.18) 40%,transparent 70%) !important;
}

/* Sprite wrap (for shiny badge overlay) */
.pub-sprite-wrap{
  position:relative;
  display:inline-block;
  margin:0 auto .5rem;
}

/* SHINY badge — gold→red pill, top-right of sprite */
.pub-shiny-badge{
  position:absolute;top:4px;right:-6px;
  background:linear-gradient(135deg,#f59e0b 0%,#ef4444 100%);
  color:#fff;
  font-size:.6rem;font-weight:900;letter-spacing:.07em;
  padding:.24rem .55rem;border-radius:999px;
  box-shadow:0 3px 12px rgba(245,158,11,.55),0 0 0 2px var(--card);
  display:flex;align-items:center;gap:.2rem;
  text-transform:uppercase;
  z-index:3;
}
.pub-shiny-badge .star{font-size:.7rem;filter:drop-shadow(0 0 2px rgba(255,255,255,.4))}

/* Floating sparkle points for shiny sprites */
.pub-card.shiny .pub-sprite-wrap::before,
.pub-card.shiny .pub-sprite-wrap::after{
  content:'✦';
  position:absolute;
  color:#fbbf24;
  font-size:.9rem;
  opacity:.85;
  filter:drop-shadow(0 0 4px rgba(251,191,36,.6));
  animation:pubSparkle 2.2s ease-in-out infinite;
  pointer-events:none;
}
.pub-card.shiny .pub-sprite-wrap::before{top:8px;left:0px;animation-delay:.3s}
.pub-card.shiny .pub-sprite-wrap::after{bottom:14px;right:2px;animation-delay:1.1s}
@keyframes pubSparkle{
  0%,100%{opacity:.2;transform:scale(.85)}
  50%{opacity:.95;transform:scale(1.15)}
}

/* Meta chip row on hero (format + archetype) */
.pub-meta-row{
  display:flex;gap:.4rem;flex-wrap:wrap;justify-content:center;
  margin-top:.85rem;
}
.pub-meta-chip{
  font-size:.7rem;font-weight:700;
  padding:.3rem .65rem;border-radius:8px;
  background:var(--surface);border:1px solid var(--border);
  color:var(--text2);
  display:flex;align-items:center;gap:.3rem;
}
.pub-meta-chip strong{color:var(--text);font-weight:800}

/* Section headers */
.pub-section{padding:0 1.1rem;margin-top:1rem}
.pub-section-head{
  font-size:.68rem;font-weight:800;color:var(--muted);
  letter-spacing:.08em;text-transform:uppercase;
  margin-bottom:.5rem;
  display:flex;align-items:center;justify-content:space-between;gap:.4rem;
}
.pub-section-head .sub{
  color:var(--muted2);font-weight:600;
  text-transform:none;letter-spacing:0;font-size:.66rem;
}
.pub-section-head .count{color:var(--text2);font-weight:700;font-variant-numeric:tabular-nums}

/* 2-col grid for Ability + Nature */
.pub-2col{
  display:grid;grid-template-columns:1fr 1fr;gap:.5rem;
}
.pub-info-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:.6rem .75rem;
  display:flex;flex-direction:column;gap:.2rem;min-width:0;
}
.pub-info-card .label{
  font-size:.62rem;font-weight:800;color:var(--muted);
  letter-spacing:.06em;text-transform:uppercase;
}
.pub-info-card .val{
  font-size:.88rem;color:var(--text);font-weight:700;line-height:1.2;
  overflow:hidden;text-overflow:ellipsis;
}
.pub-info-card .val-sub{
  font-size:.66rem;color:var(--muted);font-weight:600;
  margin-top:1px;display:flex;gap:.35rem;flex-wrap:wrap;
}
.pub-info-card .nat-up{color:var(--green);font-weight:800}
.pub-info-card .nat-down{color:#fb7185;font-weight:800}

/* Full-width info row (used for held item) */
.pub-info-row{
  background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:.65rem .85rem;
  display:flex;align-items:center;gap:.7rem;
}
.pub-info-row .item-img{
  width:30px;height:30px;object-fit:contain;flex-shrink:0;
}
.pub-info-row .item-text{flex:1;min-width:0}
.pub-info-row .item-text .name{
  font-size:.88rem;font-weight:700;color:var(--text);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pub-info-row .item-text .desc{
  font-size:.66rem;color:var(--muted);font-weight:500;
  margin-top:1px;line-height:1.35;
}
.pub-info-row.empty{opacity:.75}
.pub-info-row.empty .val{
  font-size:.82rem;color:var(--muted);font-weight:600;
}

/* Stats section */
.pub-stats{
  background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:.75rem .9rem;
}
.pub-stat-row{
  display:grid;grid-template-columns:34px 1fr 42px;
  align-items:center;gap:.55rem;margin-bottom:.35rem;
}
.pub-stat-row:last-child{margin-bottom:0}
.pub-stat-label{
  font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
}
.pub-stat-bar-track{
  height:8px;background:var(--surface);border-radius:999px;overflow:hidden;
}
.pub-stat-bar-fill{
  height:100%;border-radius:999px;
  transition:width .3s ease;
}
.pub-stat-val{
  font-size:.82rem;font-weight:800;color:var(--text);
  text-align:right;font-variant-numeric:tabular-nums;
}
.pub-stat-row.hp .pub-stat-label{color:#a78bfa} .pub-stat-row.hp .pub-stat-bar-fill{background:#a78bfa}
.pub-stat-row.atk .pub-stat-label{color:#f97316} .pub-stat-row.atk .pub-stat-bar-fill{background:#f97316}
.pub-stat-row.def .pub-stat-label{color:#3b82f6} .pub-stat-row.def .pub-stat-bar-fill{background:#3b82f6}
.pub-stat-row.spa .pub-stat-label{color:#fdba74} .pub-stat-row.spa .pub-stat-bar-fill{background:#fdba74}
.pub-stat-row.spd .pub-stat-label{color:#7dd3fc} .pub-stat-row.spd .pub-stat-bar-fill{background:#7dd3fc}
.pub-stat-row.spe .pub-stat-label{color:#fb7185} .pub-stat-row.spe .pub-stat-bar-fill{background:#fb7185}

/* Move cards — 2x2 grid with full-bleed type gradients */
.pub-moves{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.pub-move{
  position:relative;border-radius:12px;
  padding:.65rem .7rem;color:#fff;overflow:hidden;
  min-height:86px;
  display:flex;flex-direction:column;justify-content:space-between;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.pub-move::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.35) 100%);
  pointer-events:none;
}
.pub-move > *{position:relative;z-index:1}
.pub-move-name{
  font-size:.9rem;font-weight:800;letter-spacing:-0.01em;
  line-height:1.1;
}
.pub-move-foot{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:.3rem;margin-top:.5rem;
}
.pub-move-cat{
  font-size:.58rem;font-weight:800;letter-spacing:.06em;
  padding:.15rem .35rem;border-radius:4px;
  background:rgba(0,0,0,.35);text-transform:uppercase;
}
.pub-move-power{
  font-size:.68rem;font-weight:700;opacity:.95;
  font-variant-numeric:tabular-nums;
}

/* Type gradient classes (reused across public views) */
.t-Normal{background:linear-gradient(135deg,#A8A77A,#6D6D4E)}
.t-Fire{background:linear-gradient(135deg,#EE8130,#9C531F)}
.t-Water{background:linear-gradient(135deg,#6390F0,#445E9C)}
.t-Electric{background:linear-gradient(135deg,#F7D02C,#A1871F)}
.t-Grass{background:linear-gradient(135deg,#7AC74C,#4E8234)}
.t-Ice{background:linear-gradient(135deg,#96D9D6,#638D8D)}
.t-Fighting{background:linear-gradient(135deg,#C22E28,#7D1F1A)}
.t-Poison{background:linear-gradient(135deg,#A33EA1,#6B2A6B)}
.t-Ground{background:linear-gradient(135deg,#E2BF65,#927D44)}
.t-Flying{background:linear-gradient(135deg,#A98FF3,#6D5E9C)}
.t-Psychic{background:linear-gradient(135deg,#F95587,#A13959)}
.t-Bug{background:linear-gradient(135deg,#A6B91A,#6D7815)}
.t-Rock{background:linear-gradient(135deg,#B6A136,#786824)}
.t-Ghost{background:linear-gradient(135deg,#735797,#4C3A65)}
.t-Dragon{background:linear-gradient(135deg,#6F35FC,#4924A1)}
.t-Dark{background:linear-gradient(135deg,#705746,#49392F)}
.t-Steel{background:linear-gradient(135deg,#B7B7CE,#787887)}
.t-Fairy{background:linear-gradient(135deg,#D685AD,#9B6470)}

/* Empty moves fallback */
.pub-empty-moves{
  background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:1rem;text-align:center;
  color:var(--muted);font-size:.78rem;font-weight:600;
}

/* ───────────────────────────────────────────────────────────────
   Public TEAM detail (.pt-*)
   ─────────────────────────────────────────────────────────────── */
.pt-hero{padding:0 1.1rem}
.pt-hero-card{
  position:relative;background:var(--card);
  border:1px solid var(--border);border-radius:22px;
  padding:1.8rem 1.25rem 1.4rem;text-align:center;overflow:hidden;
}
.pt-hero-glow{
  position:absolute;top:-60px;left:50%;transform:translateX(-50%);
  width:400px;height:240px;filter:blur(40px);pointer-events:none;
  background:radial-gradient(ellipse,rgba(59,130,246,.28),rgba(107,53,252,.15) 50%,transparent 75%);
  z-index:0;
}
/* :not(.pt-hero-glow) is critical — without it, the universal child rule
   overrides .pt-hero-glow's position:absolute, making the blur-sized div
   claim its full 400×240px in the flex flow and pushing content down. */
.pt-hero-card > :not(.pt-hero-glow){position:relative;z-index:1}
.pt-hero-emoji{
  font-size:2.2rem;margin-bottom:.3rem;display:block;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.pt-hero-name{
  font-size:1.55rem;font-weight:800;color:var(--text);
  margin:0 0 .4rem;letter-spacing:-0.02em;line-height:1.15;
  word-wrap:break-word;
}
.pt-hero-meta{
  display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;
  margin-bottom:.75rem;
}
.pt-hero-chip{
  font-size:.7rem;font-weight:700;
  padding:.3rem .65rem;border-radius:8px;
  background:var(--surface);border:1px solid var(--border);
  color:var(--text2);
}
.pt-hero-chip strong{color:var(--text);font-weight:800}

/* Roster grid */
.pt-roster{display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
.pt-mem{
  position:relative;background:var(--card);
  border:1px solid var(--border);border-radius:14px;
  padding:.85rem .75rem .7rem;text-align:center;
  overflow:hidden;transition:all .2s;
}
.pt-mem.tappable{cursor:pointer}
.pt-mem.tappable:hover{
  border-color:var(--border2);
  background:var(--card-hover);
}
.pt-mem.tappable:active{transform:scale(.98)}
.pt-mem.private{opacity:.78}
.pt-mem-empty-slot{
  border-style:dashed;opacity:.45;
  display:flex;align-items:center;justify-content:center;
  min-height:130px;
}
.pt-mem-empty-icon{
  font-size:1.2rem;font-weight:900;color:var(--muted2);line-height:1;
}

.pt-mem-sprite{
  width:80px;height:80px;object-fit:contain;
  display:block;margin:0 auto;
}
.pt-mem-name{
  font-size:.78rem;font-weight:800;color:var(--text);
  letter-spacing:-0.01em;line-height:1.15;
  margin-top:.15rem;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pt-mem-types{
  display:flex;justify-content:center;gap:.25rem;
  margin-top:.35rem;flex-wrap:wrap;
}
.pt-mem-type-chip{
  font-size:.54rem;font-weight:800;padding:.1rem .35rem;
  border-radius:4px;color:#fff;
  letter-spacing:.04em;text-transform:uppercase;
}

/* Corner badges on member cards */
.pt-mem-lock,.pt-mem-link{
  position:absolute;top:.45rem;right:.5rem;
  width:22px;height:22px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.68rem;z-index:2;
}
.pt-mem-lock{
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--muted);
}
.pt-mem-link{
  background:var(--green-bg2);
  border:1px solid var(--green);
  color:var(--green);
}

/* Team type coverage */
.pt-coverage{
  background:var(--card);border:1px solid var(--border);
  border-radius:14px;padding:.8rem .85rem;
}
.pt-cov-row{
  display:flex;align-items:flex-start;gap:.55rem;
  margin-bottom:.5rem;font-size:.7rem;
}
.pt-cov-row:last-child{margin-bottom:0}
.pt-cov-label{
  flex-shrink:0;width:64px;padding-top:.2rem;
  color:var(--muted);font-weight:700;
  text-transform:uppercase;font-size:.62rem;letter-spacing:.04em;
}
.pt-cov-bar{
  flex:1;display:flex;gap:3px;flex-wrap:wrap;
}
.pt-cov-pill{
  font-size:.56rem;font-weight:800;padding:.15rem .4rem;
  border-radius:4px;letter-spacing:.03em;
  text-transform:uppercase;white-space:nowrap;
}
.pt-cov-none{color:var(--muted);font-size:.7rem;font-weight:500;font-style:italic}

.pt-empty{
  background:var(--card);border:1px solid var(--border);
  border-radius:14px;padding:2rem;text-align:center;
  color:var(--muted);font-size:.82rem;
}

/* ───────────────────────────────────────────────────────────────
   Build / Team DETAIL — Public Pill (.bd-pill-*)
   Small "🌐 Public" pill that expands to show URL + Copy + Share.
   Also used on team detail via #tdPill (same classes).
   ─────────────────────────────────────────────────────────────── */

.bd-pill-wrap{
  padding:0 1rem;
  margin:.5rem 0 0;
}
.bd-pill{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.38rem .7rem;
  background:var(--green-bg);
  border:1px solid rgba(34,197,94,.4);
  border-radius:999px;
  font-size:.72rem;font-weight:700;color:var(--green);
  cursor:pointer;user-select:none;
  transition:all .15s;
  -webkit-tap-highlight-color:transparent;
}
.bd-pill:hover{background:rgba(34,197,94,.18)}
.bd-pill > i{font-size:.85rem}
.bd-pill .chev{
  font-size:.7rem;margin-left:.1rem;
  transition:transform .2s;
}
.bd-pill.open .chev{transform:rotate(90deg)}
.bd-pill:focus-visible{outline:2px solid var(--green);outline-offset:3px}

.bd-pill-panel{
  max-height:0;overflow:hidden;
  transition:max-height .25s ease,margin-top .2s ease;
}
.bd-pill.open + .bd-pill-panel{max-height:200px;margin-top:.55rem}
.bd-pill-panel-inner{
  background:linear-gradient(180deg,rgba(34,197,94,.07) 0%,var(--card) 100%);
  border:1px solid rgba(34,197,94,.35);
  border-radius:12px;
  padding:.7rem .8rem;
  display:flex;flex-direction:column;gap:.5rem;
}
.bd-pill-stats{
  font-size:.66rem;color:var(--muted);font-weight:600;
  letter-spacing:.03em;
}
.bd-pill-url-row{display:flex;gap:.45rem;align-items:stretch}
.bd-pill-url{
  flex:1;min-width:0;
  background:var(--input-bg);border:1px solid var(--border);
  border-radius:9px;padding:.48rem .65rem;
  font-family:'SF Mono',Menlo,Consolas,monospace;
  font-size:.7rem;color:var(--text2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  display:flex;align-items:center;
  user-select:all;-webkit-user-select:all;
}
.bd-pill-btn{
  flex-shrink:0;background:var(--surface);
  border:1px solid var(--border);border-radius:9px;
  padding:0 .7rem;height:auto;min-height:36px;
  color:var(--text);font-size:.72rem;font-weight:700;
  cursor:pointer;display:flex;align-items:center;gap:.25rem;
  font-family:inherit;transition:all .15s;
}
.bd-pill-btn:hover{background:var(--surface2)}
.bd-pill-btn:active{transform:scale(.95)}
.bd-pill-btn.primary{
  background:var(--green);border-color:var(--green);color:#052e16;
}
.bd-pill-btn.primary:hover{background:#16a34a;border-color:#16a34a}

/* ───────────────────────────────────────────────────────────────
   Customise Panel Extensions (.ed-customise, .ed-check-*)
   Collapsible accordion inside the editor share card.
   ─────────────────────────────────────────────────────────────── */

.ed-customise{
  background:var(--input-bg);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
}
.ed-customise-summary{
  display:flex;align-items:center;justify-content:space-between;
  padding:.65rem .75rem;
  cursor:pointer;user-select:none;
  transition:background .15s;
  -webkit-tap-highlight-color:transparent;
}
.ed-customise-summary:hover{background:var(--surface)}
.ed-customise-summary .left{
  display:flex;align-items:center;gap:.5rem;flex:1;min-width:0;
}
.ed-customise-summary .left > i{font-size:1rem;color:var(--muted)}
.ed-customise-summary .title{
  font-size:.82rem;font-weight:700;color:var(--text);
}
.ed-customise-summary .sub{
  font-size:.66rem;color:var(--muted);font-weight:600;
  margin-top:1px;
}
.ed-customise-summary .chev{
  color:var(--muted);font-size:.95rem;
  transition:transform .25s;
  flex-shrink:0;
}
.ed-customise.open .ed-customise-summary .chev{transform:rotate(90deg)}
.ed-customise.open .ed-customise-summary{background:var(--surface)}

.ed-customise-body{
  max-height:0;overflow:hidden;
  transition:max-height .3s ease;
}
.ed-customise.open .ed-customise-body{max-height:500px}
.ed-customise-inner{
  padding:.3rem .55rem .65rem;
  display:flex;flex-direction:column;gap:.35rem;
  border-top:1px solid var(--border);
}

.ed-check-row{
  display:flex;align-items:center;gap:.6rem;
  padding:.5rem .6rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:8px;
  cursor:pointer;user-select:none;
  transition:all .15s;
  -webkit-tap-highlight-color:transparent;
}
.ed-check-row:hover{background:var(--surface2)}
.ed-check-row.off{opacity:.55}
.ed-check-row.loading{opacity:.6;pointer-events:none}
.ed-check-row:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.ed-check{
  width:18px;height:18px;flex-shrink:0;
  border-radius:5px;
  border:2px solid var(--border2);
  background:var(--bg2);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:.7rem;
  transition:all .15s;
}
.ed-check-row.on .ed-check{
  background:var(--red);border-color:var(--red);
}
.ed-check-label{
  font-size:.8rem;font-weight:700;color:var(--text);
  flex:1;line-height:1.15;
}
.ed-check-sub{
  font-size:.64rem;color:var(--muted);font-weight:500;
  margin-top:2px;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}

/* Light theme adjustments */
[data-theme="light"] .bd-pill{background:rgba(22,163,74,.08);border-color:rgba(22,163,74,.4);color:#16a34a}
[data-theme="light"] .bd-pill:hover{background:rgba(22,163,74,.14)}
[data-theme="light"] .bd-pill-panel-inner{background:linear-gradient(180deg,rgba(22,163,74,.06) 0%,var(--card) 100%);border-color:rgba(22,163,74,.3)}
[data-theme="light"] .bd-pill-btn.primary{background:#16a34a;border-color:#16a34a;color:#fff}

