/* ============================================================
   Gen-Z Social — design system
   FILE-SIZE-OK: one stylesheet by design — no build step, paired with the single app.js.
   Palette (the Gen-Z logo): Ink #0E0E12 · Lime #C6FF3D (dark-theme accent) · Violet #7B5CFF (#6E4FF6 = light-theme accent)
            Surface #FFFFFF · Canvas #F4F3F9 · Heart #F0345C
   Type: Noto Sans Khmer for Khmer text; Suwannaphum (loaded Latin-only) keeps Latin text as it was
   ============================================================ */
:root{
  /* gen-z.social: the logo's colours. "--blue" / "--gold" are the accent (names kept from als.social): violet here, lime in
     the dark theme, where text on it is --on-accent (dark) */
  --brand-lime:#C6FF3D; --brand-violet:#7B5CFF; --brand-ink:#0E0E12;
  --blue:#6E4FF6; --blue-dark:#5534DB; --blue-soft:#EFEBFF;
  --ink:#121119; --ink-2:#4C4A5E; --ink-3:#8B899E;
  --canvas:#F4F3F9; --surface:#FFFFFF; --surface-2:#EFEEF6; --line:#E5E2EF;
  --blue-soft-2:#DDD5FF;
  --heart:#F0345C; --green:#0FA968; --gold:#6E4FF6; --gold-rgb:110,79,246;
  --on-accent:#fff;
  --r:14px; --r-sm:10px;
  --shadow:0 1px 2px rgba(18,17,25,.07),0 4px 16px rgba(18,17,25,.05);
  --shadow-lg:0 8px 40px rgba(18,17,25,.16);
  --nav-bar:65px;                                        /* visible nav height */
  --nav-h:calc(65px + env(safe-area-inset-top, 0px) + var(--imp-h, 0px));    /* nav + iOS status-bar inset (PWA standalone) + the Login As strip */
  --font:'Suwannaphum','Noto Sans Khmer',serif;
}
/* ===== Dark mode = the logo: lime on near-black (gen-z.social) ===== */
html[data-theme="dark"]{
  --blue:#C6FF3D; --blue-dark:#A6DB2A; --blue-soft:rgba(198,255,61,.12); --blue-soft-2:rgba(198,255,61,.22);
  --gold:#C6FF3D; --gold-rgb:198,255,61;
  --ink:#EDEDF2; --ink-2:#B3B2C2; --ink-3:#7F7E91;
  --canvas:#0E0E12; --surface:#16161D; --surface-2:#1F1F28; --line:rgba(255,255,255,.09);
  --on-accent:#0E0E12;
  --shadow:0 1px 2px rgba(0,0,0,.5),0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:0 14px 50px rgba(0,0,0,.6);
}
html[data-theme="dark"] body{background:var(--canvas)}
html[data-theme="dark"] .nav{background:rgba(14,14,18,.88);box-shadow:0 1px 0 rgba(0,0,0,.2),0 6px 22px rgba(0,0,0,.4)}
html[data-theme="dark"] .nav-mark{background:linear-gradient(135deg,#a8d4ff 0%,var(--blue) 55%,var(--blue-dark) 100%);box-shadow:0 4px 12px rgba(var(--gold-rgb),.32),inset 0 1px 0 rgba(255,255,255,.25)}
html[data-theme="dark"] .nav-mark,html[data-theme="dark"] .btn-primary,html[data-theme="dark"] .chip.active,html[data-theme="dark"] .ru-mode.active{color:var(--on-accent)}
html[data-theme="dark"] .btn-primary svg{fill:var(--on-accent)}
html[data-theme="dark"] .icon-btn{background:var(--surface-2)}
html[data-theme="dark"] .icon-btn:hover{background:#272730}
/* always-dark components (reel modal / episodes / reels feed): cool the warm-brown surfaces in dark mode */
html[data-theme="dark"] .rum,html[data-theme="dark"] .ep-sheet{background:#16161d}
html[data-theme="dark"] .rum-tab,html[data-theme="dark"] .rum-input,html[data-theme="dark"] .rum-chip,html[data-theme="dark"] .rum-mt,html[data-theme="dark"] .rum-track,html[data-theme="dark"] .rum-x,html[data-theme="dark"] .rum-drama-card,html[data-theme="dark"] .ep-thumb{background:#1f1f28}
html[data-theme="dark"] .rum-drop{background:#18181f}
html[data-theme="dark"] .rum-track:hover{background:#272730}
html[data-theme="dark"] .rum-x:hover{background:#272730}
html[data-theme="dark"] .nav-search:focus-within,html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field textarea:focus,html[data-theme="dark"] .field select:focus{box-shadow:0 0 0 4px rgba(var(--gold-rgb),.12)}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .field select{background:var(--surface-2)}
html[data-theme="dark"] ::selection{color:var(--on-accent)}
html[data-theme="dark"] .story .s-av{background:var(--surface-2)}
/* Always-dark media UIs (upload modal, the GEN-Z player, episodes) keep the lime accent in BOTH themes — the light
   theme's violet would have poor contrast on their dark surface (gen-z.social) */
.rum, .reels-stage, .ep-sheet{
  --gold:#C6FF3D; --gold-rgb:198,255,61;
  --blue:#C6FF3D; --blue-dark:#A6DB2A; --blue-soft:rgba(198,255,61,.16);
  --on-accent:#0E0E12;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--canvas);color:var(--ink);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:var(--font);cursor:pointer;border:none;background:none;color:inherit;font-size:inherit}
input,textarea,select{font-family:var(--font);font-size:15px;color:var(--ink)}
::selection{background:var(--blue);color:var(--on-accent)}
:focus-visible{outline:3px solid rgba(var(--gold-rgb),.45);outline-offset:2px;border-radius:6px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ---------- Top navigation ---------- */
.nav{position:fixed;inset:0 0 auto 0;height:var(--nav-h);padding-top:calc(env(safe-area-inset-top, 0px) + var(--imp-h, 0px));background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px);border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(18,17,25,.02),0 6px 22px rgba(18,17,25,.05);display:flex;align-items:center;gap:12px;padding-left:16px;padding-right:16px;z-index:100}
.nav-logo{display:flex;align-items:center;gap:9px;flex-shrink:0;font-weight:900;letter-spacing:-1px;line-height:1;transition:transform .18s cubic-bezier(.34,1.56,.64,1)}
.nav-logo:hover{transform:translateY(-1px)}
.nav-logo:active{transform:scale(.96)}
.nav-mark{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;font-size:24px;color:var(--on-accent);background:linear-gradient(135deg,#7B5CFF 0%,var(--blue) 55%,var(--blue-dark) 100%);border-radius:13px;box-shadow:0 4px 12px rgba(var(--gold-rgb),.32),inset 0 1px 0 rgba(255,255,255,.25)}
.nav-mark em{font-style:normal;color:var(--heart)}
.nav-logo-img{width:40px;height:40px;border-radius:11px;object-fit:cover;flex-shrink:0;box-shadow:0 4px 12px rgba(var(--gold-rgb),.28)}
.nav-word{font-size:25px;color:var(--blue)}
.nav-word em{font-style:normal;color:var(--heart)}
.nav-search{flex:0 1 280px;display:flex;align-items:center;gap:8px;background:var(--canvas);border:1.5px solid transparent;border-radius:999px;padding:8px 15px;color:var(--ink-3);transition:border-color .15s,background .15s,box-shadow .15s}
.nav-search:focus-within{background:var(--surface);border-color:var(--blue);box-shadow:0 0 0 4px rgba(var(--gold-rgb),.1)}
.nav-search svg{width:18px;height:18px;flex-shrink:0}
.nav-search input{flex:1;border:none;background:none;outline:none;min-width:0;color:var(--ink)}
.nav-tabs{position:absolute;left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:4px}
.nav-tab{display:flex;align-items:center;justify-content:center;width:92px;height:var(--nav-bar);color:var(--ink-2);position:relative;border-radius:10px 10px 0 0;transition:background .15s,color .15s}
.nav-tab:hover{background:var(--canvas);color:var(--blue)}
.nav-tab.active{color:var(--blue)}
.nav-tab.active::after{content:'';position:absolute;left:10px;right:10px;bottom:0;height:3px;background:linear-gradient(90deg,var(--blue),#7B5CFF);border-radius:3px 3px 0 0}
.nav-tab svg{width:26px;height:26px}
.nav-ico-gif{width:30px;height:30px;object-fit:contain;display:block}
/* gen-z.social: GEN-Z's icon (inline SVG, the owner's play mark) in the brand accent; the text colour on accent fills */
svg.gz-ic{color:var(--blue);overflow:visible}
.btn-primary svg.gz-ic,.chip.active svg.gz-ic,.pd-upload svg.gz-ic,.post-reel-badge svg.gz-ic{color:inherit}
.feat-card .feat-ic svg.gz-ic{width:18px;height:18px;vertical-align:-3px;color:#C6FF3D}
.cmp-opt[data-opt="video"] .cmp-opt-ic svg.gz-ic{width:20px;height:20px;color:inherit}
/* Animated outline play button (Watch nav) — draws the circle then the triangle, loops */
.nav-ico-play{width:29px;height:29px;display:block;overflow:visible}
.nav-ico-play .np-draw{fill:none;stroke:url(#navPlayGrad);stroke-width:11;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.nav-ico-play .np-c{animation:npDraw 3.4s cubic-bezier(.65,0,.35,1) infinite}
.nav-ico-play .np-t{animation:npDraw 3.4s cubic-bezier(.65,0,.35,1) infinite;animation-delay:.7s}
@keyframes npDraw{0%{stroke-dashoffset:1}35%{stroke-dashoffset:0}82%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@media (prefers-reduced-motion:reduce){.nav-ico-play .np-draw{animation:none;stroke-dashoffset:0}}
.nav-ico-cart{width:26px;height:26px}
.nav-lottie{display:flex;align-items:center;justify-content:center;width:26px;height:26px}
.nav-lottie svg{width:100%!important;height:100%!important}
.nav-lottie svg path{fill:currentColor}   /* gen-z.social: the animated Home icon (blue in its file) takes the tab's colour */
.nav-lottie.mob{width:24px;height:24px}
.nav-right{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.nav-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid var(--surface);box-shadow:0 0 0 2px var(--blue);transition:box-shadow .15s,transform .15s}
.nav-avatar:hover{transform:scale(1.05);box-shadow:0 0 0 2px var(--blue-dark)}
.icon-btn{width:40px;height:40px;border-radius:50%;background:var(--canvas);display:flex;align-items:center;justify-content:center;color:var(--ink);transition:background .15s}
.icon-btn:hover{background:var(--line)}
.icon-btn svg{width:20px;height:20px}

/* ---------- Layout ---------- */
.shell{display:grid;grid-template-columns:280px minmax(0,640px) 300px;gap:24px;max-width:1280px;margin:0 auto;padding:calc(var(--nav-h) + 20px) 16px 80px;align-items:start}
.col-side{position:sticky;top:calc(var(--nav-h) + 16px);align-self:start}
.page-full{padding-top:var(--nav-h)}
@media (max-width:1100px){.shell{grid-template-columns:minmax(0,640px) 300px;justify-content:center}.col-left{display:none}}
@media (max-width:860px){.shell{grid-template-columns:minmax(0,640px)}.col-right{display:none}}

/* ---------- Cards & common ---------- */
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:var(--r-sm);font-weight:700;transition:filter .15s,background .15s}
.btn-primary{background:var(--blue);color:var(--on-accent)}
.btn-primary:hover{filter:brightness(1.12)}
.btn-soft{background:var(--blue-soft);color:var(--blue)}
.btn-soft:hover{background:var(--blue-soft-2)}
.btn-ghost{background:var(--canvas);color:var(--ink)}
.btn-ghost:hover{background:var(--line)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.avatar{border-radius:50%;object-fit:cover;background:var(--blue-soft)}
.av-32{width:32px;height:32px}.av-40{width:40px;height:40px}.av-48{width:48px;height:48px}
.muted{color:var(--ink-3);font-size:13px}
.divider{height:1px;background:var(--line);margin:8px 0}
.chip{display:inline-flex;align-items:center;padding:7px 14px;border-radius:999px;background:var(--canvas);font-weight:700;font-size:13px;color:var(--ink-2);transition:.15s}
.chip:hover{background:var(--line)}
.chip.active{background:var(--blue);color:var(--on-accent)}

/* ---------- Left rail ---------- */
.rail{display:flex;flex-direction:column;gap:2px}
.rail-item{display:flex;align-items:center;gap:12px;padding:2px 12px;border-radius:var(--r-sm);font-weight:700;transition:background .15s;color:var(--ink)}
.rail-item:hover{background:var(--line)}
.rail-item .ric{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--surface);box-shadow:var(--shadow);color:var(--blue)}
.rail-item .ric svg{width:20px;height:20px}

/* ---------- Stories ---------- */
.stories{display:flex;gap:10px;overflow-x:auto;padding:4px;scrollbar-width:none}
.stories::-webkit-scrollbar{display:none}
.story{position:relative;flex:0 0 112px;height:190px;border-radius:var(--r);overflow:hidden;cursor:pointer;box-shadow:var(--shadow)}
.story img.bg{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.story:hover img.bg{transform:scale(1.06)}
.story::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,17,25,.25),transparent 35%,transparent 60%,rgba(18,17,25,.65))}
.story .s-av{position:absolute;top:10px;left:10px;width:38px;height:38px;border-radius:50%;border:3px solid var(--blue);z-index:2;object-fit:cover;background:#fff}
.story .s-name{position:absolute;left:10px;right:10px;bottom:8px;color:#fff;font-weight:700;font-size:12.5px;z-index:2;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.story.create{background:var(--surface)}
.story.create .plus{position:absolute;left:50%;bottom:34px;transform:translateX(-50%);width:38px;height:38px;border-radius:50%;background:var(--blue);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-size:24px;border:4px solid var(--surface);z-index:2}
.story.create::after{background:none}
.story.create .s-name{color:var(--ink);text-shadow:none;text-align:center}

/* ---------- Composer ---------- */
.composer{padding:14px 16px}
.composer-top{display:flex;gap:10px;align-items:center}
.composer-input{flex:1;background:var(--canvas);border:none;border-radius:999px;padding:11px 18px;color:var(--ink-2);text-align:left;font-size:15px;transition:background .15s}
.composer-input:hover{background:var(--line)}
.composer-actions{display:flex;margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
.composer-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;border-radius:var(--r-sm);font-weight:700;color:var(--ink-2)}
.composer-actions button:hover{background:var(--canvas)}
.dot-video{color:var(--heart)}.dot-photo{color:var(--green)}.dot-reel{color:var(--gold)}

/* ---------- Post card ---------- */
.post{margin-bottom:18px;animation:rise .35s ease both}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.post-head{display:flex;align-items:center;gap:10px;padding:13px 16px 5px}
.post-head .who{flex:1;min-width:0}
.post-head .who b{display:block;font-size:15px}
.post-menu-btn{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink-3);background:transparent;border:none;cursor:pointer;transition:background .15s}
.post-menu-btn:hover{background:var(--canvas);color:var(--ink)}
.post-menu-btn svg{width:20px;height:20px}
/* post options dropdown */
.pm-backdrop{position:fixed;inset:0;z-index:120}
.pm-menu{position:fixed;z-index:121;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.28);padding:8px;max-height:86vh;overflow-y:auto;animation:pmIn .12s ease}
@keyframes pmIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.pm-item{display:flex;align-items:flex-start;gap:7px;width:100%;text-align:left;padding:4px 4px;border:none;background:transparent;border-radius:9px;cursor:pointer;color:var(--ink)}
.pm-item:hover{background:var(--canvas)}
.pm-ic{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--ink-2)}
.pm-ic svg{width:16px;height:16px}
.pm-tx{display:flex;flex-direction:column;gap:1px;min-width:0;padding-top:2px}
.pm-tx b{font-size:13px;font-weight:700;line-height:1}
.pm-tx span{font-size:11.5px;color:var(--ink-3);line-height:1.3}
.pm-danger .pm-tx b{color:var(--heart)}
.pm-sep{height:1px;background:var(--line);margin:7px 8px}
.post-text{padding:10px 16px;white-space:pre-wrap;word-wrap:break-word}
/* Caption "See more": show first 2 lines/paragraphs, fold the rest behind a toggle */
.pt-collapsible .pt-rest{display:none}
.pt-collapsible.expanded .pt-rest{display:inline}
.pt-collapsible:not(.expanded) .pt-clip::after{content:'… '}
.pt-toggle{margin-left:4px;padding:0;border:0;background:none;color:var(--ink-3);font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.pt-toggle:hover{text-decoration:underline}
.post-media{margin-top:2px;background:#000;overflow:hidden;display:flex;align-items:center;justify-content:center;container-type:inline-size}
/* feed single image / video: media taller than 4:5 is auto-cropped to 4:5 (125cqw = 1.25×width). Full media stays in the lightbox. */
.post-media img{width:100%;object-fit:cover;max-height:680px;max-height:125cqw}
.post-media .vp video{object-fit:cover;max-height:680px;max-height:125cqw}
.post-media img[data-imgbox]{cursor:zoom-in}

/* Multi-photo album collage (Facebook-style) */
.post-gallery{margin-top:2px;display:grid;gap:3px;background:var(--surface)}
.post-gallery .pg-cell{position:relative;overflow:hidden;background:var(--surface-2);cursor:pointer}
.post-gallery .pg-cell img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.post-gallery .pg-cell:hover img{transform:scale(1.03)}
.post-gallery.g2{grid-template-columns:1fr 1fr;aspect-ratio:2/1.05}
.post-gallery.g3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;aspect-ratio:1.7/1}
.post-gallery.g3 .pg-cell:first-child{grid-row:1/3}
.post-gallery.g4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;aspect-ratio:1/1}
.post-gallery.g5{grid-template-columns:repeat(6,1fr);grid-template-rows:1fr 1fr;aspect-ratio:1.5/1}
.post-gallery.g5 .pg-cell:nth-child(1){grid-column:1/4}
.post-gallery.g5 .pg-cell:nth-child(2){grid-column:4/7}
.post-gallery.g5 .pg-cell:nth-child(3){grid-column:1/3}
.post-gallery.g5 .pg-cell:nth-child(4){grid-column:3/5}
.post-gallery.g5 .pg-cell:nth-child(5){grid-column:5/7}
.pg-more{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);color:#fff;font-size:30px;font-weight:800}
/* Multi-photo album — in-feed peek carousel (~1.5 slides, no arrows) */
.post-carousel{position:relative;margin-top:2px;background:var(--surface);overflow:hidden}
.post-carousel .pc-track{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-right:6px}
.post-carousel .pc-track::-webkit-scrollbar{display:none}
.post-carousel .pc-slide{flex:0 0 66.5%;scroll-snap-align:start;aspect-ratio:1/1;max-height:560px;background:#000;border-radius:10px;overflow:hidden;cursor:pointer}
.post-carousel .pc-slide img{width:100%;height:100%;object-fit:cover;display:block}
.post-carousel .pc-arrow{display:none}
.post-carousel .pc-count{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.6);color:#fff;font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;z-index:2}
.post-carousel .pc-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;gap:6px;justify-content:center;z-index:2;pointer-events:none}
.post-carousel .pc-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);transition:background .15s,transform .15s}
.post-carousel .pc-dot.on{background:#fff;transform:scale(1.35)}
/* In-feed reel post (5:6 auto-crop, opens reels watcher on click) */
.post-reel{position:relative;margin-top:2px;background:#000;overflow:hidden;cursor:pointer;aspect-ratio:5/6;max-height:680px;margin-left:auto;margin-right:auto}
.post-reel-vid{width:100%;height:100%;object-fit:cover;display:block}
.post-reel-badge{position:absolute;top:10px;left:10px;display:flex;align-items:center;gap:5px;background:rgba(0,0,0,.55);color:#fff;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;z-index:2}
.post-reel-badge svg{width:15px;height:15px;fill:currentColor}
/* composer multi-photo preview */
.cp-prev-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:12px}
.cp-thumb{position:relative;aspect-ratio:1/1;border-radius:8px;overflow:hidden;background:var(--surface-2)}
.cp-thumb img{width:100%;height:100%;object-fit:cover;display:block}
/* photo album popup: carousel + actions/comments */
/* Full-screen photo viewer: image fills the screen (full width on mobile); zoom acts on the whole image, not a small boxed card */
.lb-back{position:fixed;inset:0;z-index:130;background:rgba(0,0,0,.94)}
.lb-card{width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;background:none;border-radius:0;overflow:hidden;display:flex;flex-direction:column}
.lb-carousel{position:relative;background:none;flex:1;min-height:0}
.lb-track{height:100%;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lb-track::-webkit-scrollbar{display:none}
.lb-slide{flex:0 0 100%;height:100%;scroll-snap-align:center;overflow:hidden;background:none;display:flex;align-items:center;justify-content:center}
.lb-slide img{max-width:100%;max-height:100%;object-fit:contain;display:block;transform-origin:center center;will-change:transform}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.9);color:#111;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.3);z-index:2}
.lb-nav:hover{background:#fff}
.lb-nav svg{width:20px;height:20px}
.lb-nav[hidden]{display:none}
.lb-prev{left:10px}
.lb-next{right:10px;transform:translateY(-50%) rotate(180deg)}
.lb-count{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.6);color:#fff;font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:999px;z-index:2}
.lb-carousel .pc-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;gap:6px;justify-content:center;z-index:2;pointer-events:none}
.lb-carousel .pc-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);transition:background .15s,transform .15s}
.lb-carousel .pc-dot.on{background:#fff;transform:scale(1.35)}
.lb-foot{flex:1;min-height:0;display:flex;flex-direction:column}
.lb-scroll{flex:1;min-height:0;overflow-y:auto}
.lb-foot .post-stats{padding:12px 16px 8px}
.lb-comments.open{display:block;padding:0 16px 8px}
/* composer is a fixed footer row — always visible, never pushed off-screen */
.lb-foot .comment-form{flex:0 0 auto;margin:0;background:var(--surface);padding:10px 16px;border-top:1px solid var(--line)}
.lb-x{position:fixed;top:calc(env(safe-area-inset-top, 0px) + 20px);right:16px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer;z-index:131}
.lb-x svg{width:22px;height:22px}

/* In-feed Reels carousel (injected every 5 posts) */
.reel-shelf{padding:14px 0 16px;margin-bottom:18px}
.reel-shelf-head{display:flex;align-items:center;gap:8px;padding:0 16px 12px}
.reel-shelf-head .rs-ic svg{width:22px;height:22px;color:var(--blue);display:block}
.reel-shelf-head b{font-size:16px}
.reel-shelf-head .rs-all{margin-left:auto;font-size:13px;font-weight:600;color:var(--blue)}
.reel-shelf-row{display:flex;gap:10px;overflow-x:auto;padding:0 16px;scroll-snap-type:x mandatory;scrollbar-width:none}
.reel-shelf-row::-webkit-scrollbar{display:none}
.reel-chip{position:relative;flex:0 0 150px;height:266px;border-radius:14px;overflow:hidden;background:#000;scroll-snap-align:start;box-shadow:var(--shadow);text-decoration:none}
.reel-chip-vid{width:100%;height:100%;object-fit:cover;display:block}
.reel-chip-grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),transparent 38%,transparent 58%,rgba(0,0,0,.72))}
.reel-chip-likes{position:absolute;top:8px;right:8px;display:flex;align-items:center;gap:4px;color:#fff;font-size:12px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.reel-chip-likes svg{width:13px;height:13px}
.reel-chip-user{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:center;gap:6px;color:#fff;font-size:12.5px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.reel-chip-user img{width:24px;height:24px;border-radius:50%;border:2px solid #fff;object-fit:cover;flex:0 0 auto}
.reel-chip-user{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* People you may know — in-feed carousel (after the 3rd post) */
.pyk{padding:14px 0 16px;margin-bottom:18px}
.pyk-head{display:flex;align-items:center;gap:9px;padding:0 16px 12px}
.pyk-head .pyk-ic svg{width:22px;height:22px;color:var(--ink-3);display:block}
.pyk-head b{font-size:16px}
.pyk-row{display:flex;gap:10px;overflow-x:auto;padding:0 16px 2px;scroll-snap-type:x mandatory;scrollbar-width:none}
.pyk-row::-webkit-scrollbar{display:none}
.pyk-card{position:relative;flex:0 0 168px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);scroll-snap-align:start;box-shadow:var(--shadow)}
.pyk-photo{display:block;width:100%;aspect-ratio:1/1;background:var(--surface-2)}
.pyk-photo img{width:100%;height:100%;object-fit:cover;display:block}
.pyk-x{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;border:none;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.pyk-x svg{width:15px;height:15px}
.pyk-body{padding:10px 11px 12px}
.pyk-name{display:block;font-weight:700;font-size:15px;color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pyk-mutual{display:flex;align-items:center;gap:6px;color:var(--ink-3);font-size:12.5px;margin:5px 0 11px;min-height:18px}
.pyk-mutual.pyk-empty{margin:5px 0 11px}
.pyk-mavs{display:inline-flex}
.pyk-mavs img{width:18px;height:18px;border-radius:50%;object-fit:cover;border:1.5px solid var(--surface);margin-left:-6px}
.pyk-mavs img:first-child{margin-left:0}
.pyk-add{width:100%;padding:10px;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;border:1.5px solid transparent;background:var(--blue-soft);color:var(--blue);box-shadow:none;transition:background .16s,color .16s,border-color .16s,transform .1s,box-shadow .16s}
.pyk-add svg{width:17px;height:17px;fill:currentColor}
.pyk-add:hover{background:var(--blue);color:var(--on-accent);border-color:var(--blue);box-shadow:0 6px 18px rgba(var(--gold-rgb),.32)}
.pyk-add:hover svg{fill:#fff}
.pyk-add:active{transform:scale(.95)}
.pyk-add.pyk-added{background:transparent;color:var(--ink-3);border-color:var(--line);box-shadow:none}
.pyk-add.pyk-added:hover{background:var(--surface-2);color:var(--ink-2);border-color:var(--line);box-shadow:none}
/* ALS Earn products in the feed (earnShelf, after every 7th post): "View all in Earn" above a swipeable row of product
   cards; ‹ › only where there is a mouse. Each card is a link to the product on earn.als.social (the Earn link handler). */
.earn-shelf{padding:14px 0 16px;margin-bottom:18px}
.earn-shelf-head{display:flex;align-items:center;gap:9px;padding:0 16px 12px}
.earn-shelf-head .ens-ic{width:26px;height:26px;border-radius:50%;display:block;flex:0 0 auto}
.earn-shelf-head b{font-size:16px;white-space:nowrap}
.earn-shelf-head .ens-all{margin-left:auto;display:inline-flex;align-items:center;gap:2px;padding:7px 9px 7px 14px;border-radius:999px;background:linear-gradient(135deg,#1aa54f,#0f6b3c);color:#fff;font-size:13px;font-weight:800;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(15,107,60,.3);-webkit-tap-highlight-color:transparent;transition:transform .12s,filter .15s}
.earn-shelf-head .ens-all svg{width:15px;height:15px;flex:0 0 auto}
@media (hover:hover){.earn-shelf-head .ens-all:hover{filter:brightness(1.08)}}
.earn-shelf-head .ens-all:active{transform:scale(.96)}
.earn-shelf-head .ens-all:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.earn-shelf-wrap{position:relative}
.earn-shelf-row{display:flex;gap:10px;overflow-x:auto;padding:0 16px 4px;scroll-snap-type:x mandatory;scroll-padding:0 16px;scrollbar-width:none;overscroll-behavior-x:contain}
.earn-shelf-row::-webkit-scrollbar{display:none}
.earn-prod{flex:0 0 148px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);scroll-snap-align:start;box-shadow:var(--shadow);text-decoration:none;color:var(--ink);-webkit-tap-highlight-color:transparent;transition:transform .12s,border-color .15s}
@media (hover:hover){.earn-prod:hover{border-color:var(--green)}}
.earn-prod:active{transform:scale(.97)}
.earn-prod:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
/* square whatever the photo's own shape: the img is out of flow, so it can't stretch the aspect-ratio box */
.enp-ph{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:#fff}
.enp-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.enp-off{position:absolute;top:7px;left:7px;padding:3px 7px;border-radius:999px;background:#e11d48;color:#fff;font-style:normal;font-size:11px;font-weight:800;line-height:1.2}
.enp-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:9px 10px 0;font-size:13.5px;font-weight:600;line-height:1.55;min-height:3.1em;word-break:break-word}
.enp-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 7px;margin:auto 10px 11px;padding-top:6px}
.enp-price b{font-size:15px;font-weight:800;color:var(--green)}
.enp-price s{font-size:12px;color:var(--ink-3)}
.ens-nav{display:none;position:absolute;top:56px;z-index:3;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lg);align-items:center;justify-content:center;cursor:pointer}
.ens-nav svg{width:18px;height:18px}
.ens-prev{left:6px}
.ens-prev svg{transform:scaleX(-1)}
.ens-next{right:6px}
@media (hover:hover) and (pointer:fine){.earn-shelf .ens-nav{display:flex}}
.earn-shelf .ens-nav[hidden]{display:none}
.set-toggle-ic img{width:26px;height:26px;border-radius:50%;display:block}
.post-stats{display:flex;justify-content:space-between;padding:10px 16px 8px;color:var(--ink-3);font-size:13.5px}
.post-stats .likes{display:flex;align-items:center;gap:6px}
.like-bubble{width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,var(--heart),#FF7A9C);display:inline-flex;align-items:center;justify-content:center;color:#fff}
.like-bubble svg{width:11px;height:11px}
.post-actions{display:flex;border-top:1px solid var(--line);margin:0 12px;padding:4px 0}
.post-actions button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;border-radius:var(--r-sm);font-weight:700;color:var(--ink-2);transition:background .12s}
.post-actions button:hover{background:var(--canvas)}
.post-actions button svg{width:19px;height:19px}
.post-actions button.liked{color:var(--heart)}
.post-actions button.liked svg{animation:pop .35s cubic-bezier(.2,2.2,.5,1)}
@keyframes pop{0%{transform:scale(.5)}60%{transform:scale(1.35)}100%{transform:scale(1)}}

/* ---------- Comments ---------- */
.comments{padding:6px 16px 14px;display:none}
.comments.open{display:block}
.comments [data-clist]{max-height:360px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
#cc-list,#rc-list{max-height:60vh;overflow-y:auto;overscroll-behavior:contain}
.comment{display:flex;gap:8px;margin-top:10px}
.comment .bubble{background:var(--canvas);border-radius:14px;padding:8px 12px;max-width:85%}
.comment .bubble b{font-size:13.5px;display:block}
.comment-form{display:flex;gap:8px;margin-top:12px;align-items:center}
.comment-form input{flex:1;background:var(--canvas);border:none;border-radius:999px;padding:9px 16px;outline:none}
.comment-form button{color:var(--blue)}

/* ============================================================
   VIDEO PLAYER — the beautiful one
   ============================================================ */
.vp{position:relative;width:100%;background:#000;overflow:hidden;--accent:var(--blue)}
.vp video{width:100%;max-height:680px;cursor:pointer}
.vp.theater video{max-height:82vh}
/* Fullscreen: fill the whole screen. Without this the video keeps its feed caps (max-height:680px /
   125cqw + object-fit:cover) so it sits small at the top with black around it — "not full on desktop". */
.vp:fullscreen{width:100vw;height:100vh;max-height:none}
.vp:fullscreen video,.post-media .vp:fullscreen video{width:100%;height:100%;max-height:none;object-fit:contain}
.vp:-webkit-full-screen{width:100vw;height:100vh;max-height:none}
.vp:-webkit-full-screen video,.post-media .vp:-webkit-full-screen video{width:100%;height:100%;max-height:none;object-fit:contain}
.vp-scrim{position:absolute;inset:auto 0 0 0;height:110px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));opacity:0;transition:opacity .25s;pointer-events:none}
.vp-controls{position:absolute;inset:auto 0 0 0;padding:0 14px 10px;opacity:0;transition:opacity .25s;color:#fff}
.vp:hover .vp-controls,.vp:hover .vp-scrim,.vp.paused .vp-controls,.vp.paused .vp-scrim,.vp.touch .vp-controls,.vp.touch .vp-scrim{opacity:1}
.post-media.pm-nobar .vp-controls,.post-media.pm-nobar .vp-scrim{display:none}   /* a timeline video that opens full screen on a tap: no control bar */
.vp-seek{position:relative;height:18px;display:flex;align-items:center;cursor:pointer}
.vp-track{position:relative;width:100%;height:4px;border-radius:4px;background:rgba(255,255,255,.28);transition:height .15s}
.vp-seek:hover .vp-track{height:6px}
.vp-buffer{position:absolute;left:0;top:0;bottom:0;background:rgba(255,255,255,.4);border-radius:4px;width:0}
.vp-fill{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:4px;width:0}
.vp-knob{position:absolute;top:50%;width:13px;height:13px;border-radius:50%;background:#fff;transform:translate(-50%,-50%) scale(0);transition:transform .15s;box-shadow:0 1px 6px rgba(0,0,0,.5)}
.vp-seek:hover .vp-knob{transform:translate(-50%,-50%) scale(1)}
.vp-row{display:flex;align-items:center;gap:4px;margin-top:2px}
.vp-row .grow{flex:1}
.vp-btn{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:#fff;transition:background .15s}
.vp-btn:hover{background:rgba(255,255,255,.15)}
.vp-btn svg{width:21px;height:21px;fill:currentColor}
.vp-time{font-size:12.5px;font-weight:700;padding:0 8px;letter-spacing:.3px;font-variant-numeric:tabular-nums;opacity:.95}
.vp-vol{display:flex;align-items:center}
.vp-vol input{width:0;opacity:0;transition:.2s;accent-color:#fff;cursor:pointer}
.vp-vol:hover input{width:68px;opacity:1;margin-right:6px}
.vp-speed{font-size:12.5px;font-weight:900;width:auto;padding:0 10px}
.vp-big{display:none}
.vp-big svg{width:34px;height:34px;fill:#fff;margin-left:4px}
.vp-views{position:absolute;top:10px;left:12px;background:rgba(18,17,25,.55);backdrop-filter:blur(6px);color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;opacity:0;transition:opacity .25s}
.vp:hover .vp-views,.vp.paused .vp-views{opacity:1}

/* ---------- Watch page ---------- */
.watch-wrap{max-width:1100px;margin:0 auto;padding:24px 16px 80px}
.watch-wrap h1{font-size:26px;font-weight:900;margin-bottom:4px}
.watch-wrap .sub{color:var(--ink-3);margin-bottom:20px}
.watch-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.watch-head h1{margin-bottom:4px}
.watch-head .btn svg{width:17px;height:17px;fill:currentColor}
.watch-item{margin-bottom:26px}
.watch-player{border-radius:var(--r) var(--r) 0 0;overflow:hidden;background:#000}
.watch-player .video-js{width:100%}
.watch-player .vjs-poster{background-size:cover}
.watch-meta{padding:14px 16px}
.watch-meta h3{font-size:17px;margin-bottom:8px}
/* ---- Watch carousels (by category + interleaved marketplace) ---- */
.wc-sec{margin-bottom:26px}
.wc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding:0 2px}
.wc-head h2{font-size:18px;font-weight:900;display:flex;align-items:center;gap:8px;color:var(--ink)}
.wc-head h2 svg{width:20px;height:20px;fill:none;stroke:currentColor}
.wc-count{font-size:12px;font-weight:800;color:var(--ink-3);background:var(--surface-2);padding:3px 11px;border-radius:999px;flex:0 0 auto}
.wc-more{font-size:13px;font-weight:800;color:var(--blue);flex:0 0 auto}
.wc-rail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 8px;-ms-overflow-style:none;scrollbar-width:none}
.wc-rail::-webkit-scrollbar{display:none}
.wc-card{flex:0 0 auto;width:260px;scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .12s,border-color .15s,box-shadow .15s}
.wc-card:hover{transform:translateY(-3px);border-color:rgba(var(--gold-rgb),.4);box-shadow:var(--shadow-lg)}
.wc-card:active{transform:scale(.985)}
.wc-thumb{position:relative;aspect-ratio:16/9;background:var(--canvas);display:flex;align-items:center;justify-content:center;overflow:hidden}
.wc-thumb img{width:100%;height:100%;object-fit:cover}
/* a KLYPS / video card: the whole poster at its own shape, never cut to the 16:9 box (wcThumbHtml) — a vertical
   one stands in the middle over a blurred copy of itself. DOM order paints the copy, then the picture, then the
   play button and the views badge, so none of them needs a z-index. */
.wc-vcard .wc-thumb img.wc-pic{position:relative;object-fit:contain}
.wc-vcard .wc-thumb img.wc-bg{position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);max-width:none;object-fit:cover;filter:blur(18px) brightness(.6);pointer-events:none}
.wc-thumb-ph{color:var(--muted)}.wc-thumb-ph svg{width:34px;height:34px}
.wc-play{position:absolute;inset:0;margin:auto;width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s}
.wc-play svg{width:20px;height:20px;fill:#fff;margin-left:2px}
.wc-card:hover .wc-play{opacity:1}
.wc-badge{position:absolute;right:6px;bottom:6px;font-size:11px;font-weight:700;color:#fff;background:rgba(0,0,0,.7);padding:2px 7px;border-radius:6px}
.wc-info{display:flex;gap:10px;padding:10px 12px}
.wc-av{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 34px}
.wc-txt{min-width:0}
.wc-txt b{display:block;font-size:14px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wc-txt span{font-size:12px;color:var(--ink-3)}
/* product cards in the marketplace rail */
.wc-sec-prod{background:linear-gradient(135deg,rgba(var(--gold-rgb),.06),transparent 60%);border:1px solid var(--line);border-radius:16px;padding:14px;margin:0 0 26px}
.wc-pcard{width:188px}
.wc-pthumb{aspect-ratio:1}
.wc-pinfo{flex-direction:column;gap:3px}
.wc-pinfo b{font-size:14px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.wc-price{font-size:15px;font-weight:900;color:var(--blue)}
@media (max-width:560px){.wc-card{width:230px}.wc-pcard{width:160px}}
/* Reels browse — portrait cards in the carousels */
.rb-card{flex:0 0 auto;width:152px;scroll-snap-align:start;display:block;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:transform .12s,border-color .15s,box-shadow .15s}
.rb-card:hover{transform:translateY(-3px);border-color:rgba(var(--gold-rgb),.4);box-shadow:var(--shadow-lg)}
.rb-card:active{transform:scale(.985)}
.rb-thumb{position:relative;aspect-ratio:9/16;background:var(--canvas);display:flex;align-items:center;justify-content:center;overflow:hidden}
.rb-thumb img{width:100%;height:100%;object-fit:cover}
.rb-ph{color:var(--muted)}.rb-ph svg{width:34px;height:34px}
.rb-play{position:absolute;inset:0;margin:auto;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s}
.rb-play svg{width:18px;height:18px;fill:#fff;margin-left:2px}
.rb-card:hover .rb-play{opacity:1}
.rb-views{position:absolute;left:6px;bottom:6px;display:flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:#fff;background:rgba(0,0,0,.6);padding:2px 7px;border-radius:6px}
.rb-views svg{width:12px;height:12px;fill:#fff}
.rb-meta{display:flex;align-items:center;gap:8px;padding:8px 9px}
.rb-av{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:0 0 28px}
.rb-t{min-width:0}
.rb-t b{display:block;font-size:13px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rb-t span{font-size:11.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
@media (max-width:560px){.rb-card{width:135px}}
/* Reels page: every reel in a grid — 5 columns on desktop, 4 on tablets, 2 on phones (phones load more as you scroll,
   wider screens get numbered pages of 30; viewReelsBrowse) */
.rb-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;transition:opacity .15s}
.rb-grid .rb-card{width:auto}
.rb-grid.rb-loading{opacity:.45;pointer-events:none}
.rb-grid>.spinner,.rb-grid>.empty{grid-column:1 / -1}
.rb-foot{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:44px;margin-top:22px}
.rb-pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.rb-pg{min-width:40px;height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:border-color .15s,color .15s,background .15s}
.rb-pg:hover:not(:disabled):not(.on){border-color:var(--blue);color:var(--blue)}
.rb-pg.on{background:var(--blue);border-color:var(--blue);color:var(--on-accent);cursor:default}
.rb-pg:disabled{opacity:.45;cursor:default}
.rb-pg-gap{color:var(--ink-3);padding:0 2px}
.rb-note{color:var(--ink-3);font-size:13px;text-align:center}
.rb-err{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;color:var(--ink-2)}
@media (max-width:1023px){.rb-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}}
@media (max-width:680px){
  .rb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rb-wrap{padding-bottom:calc(var(--mob-nav-gap, 16px) + var(--mob-nav-h, 56px) + 28px)}   /* the end clears the floating menu */
}

/* ============================================================
   REELS PLAYER — full-screen vertical snap
   ============================================================ */
.reels-stage{position:fixed;inset:0;background:#05080F;z-index:90;display:flex;align-items:center;justify-content:center}
.reels-scroll{height:100dvh;width:100%;max-width:480px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none}
.reels-scroll::-webkit-scrollbar{display:none}
.reel{position:relative;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;padding:12px 0}
.reel-frame{position:relative;width:100%;height:calc(100dvh - 24px);max-height:860px;border-radius:18px;overflow:hidden;background:#0B1B33;box-shadow:0 12px 60px rgba(0,0,0,.6)}
.reel-frame video{width:100%;height:100%;object-fit:cover;cursor:pointer}
/* The clip itself (a KLYPS or a video, in the KLYPS viewer and the Watch player) always plays whole, at its own shape —
   never cut to fill the frame (owner 2026-11-29: "take out auto crop function from KLYPS watch, make all KLYPS videos
   play in Original Size"). The space it leaves (a landscape or square clip, or a 9:16 one on a phone taller than 9:16)
   shows .reel-bg: a blurred, darkened copy of its thumbnail, just before it in the card. position:relative paints the
   clip over that copy (both positioned → document order). A clip without a thumbnail keeps black bars. Ad videos sit
   deeper in the card and keep their own rules. max-width:none: the base img rule (max-width:100%) cut the copy's
   overhang on the right only, so the blur faded to the frame's navy along that edge (.wc-bg and .se-bg had the same). */
.reel-frame>video{position:relative;object-fit:contain;background:#000}
.reel-frame>.reel-bg~video{background:transparent}
.reel-bg{position:absolute;inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);max-width:none;object-fit:cover;filter:blur(24px) brightness(.62);pointer-events:none}
/* Wide screens: a landscape clip gets a 16:9 frame instead of being letterboxed into the 480px phone column;
   portrait and square clips keep the column. The scroller spans the full width so the mouse wheel works
   anywhere on the page. */
@media (min-width:900px){
  .reels-scroll{max-width:none}
  .reels-scroll>.reel{max-width:480px;margin:0 auto}
  .reels-scroll>.reel.is-landscape{max-width:min(1100px,calc(100vw - 180px))}
  .reel.is-landscape .reel-frame{height:auto;aspect-ratio:16/9;max-height:calc(100dvh - 24px)}
  /* while a video ad plays, the card takes the ad's shape instead of its KLYPS's (playReelVideoAd sets the class): a square
     or vertical ad in the phone-width column, a landscape one in the wide frame */
  .reels-scroll>.reel.ad-tall{max-width:480px}
  .reel.ad-tall .reel-frame{height:calc(100dvh - 24px);aspect-ratio:auto;max-height:860px}
  .reels-scroll>.reel.ad-wide{max-width:min(1100px,calc(100vw - 180px))}
  .reel.ad-wide .reel-frame{height:auto;aspect-ratio:16/9;max-height:calc(100dvh - 24px)}
}
/* anti-flash poster overlay: covers the black gap between play() and first decoded frame */
/* thumbnail held over a reel/clip until its first frame is on screen (holdPosterUntilFrame). It sits
   right after the <video> with no z-index: above the picture, under the gradient, captions and buttons.
   The slate background shows only while the thumbnail itself is still downloading — never flat black. */
.reel-thumb-hold{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;background:#1b2130;transition:opacity .26s ease}
.reel-thumb-hold.gone{opacity:0}
/* …and in the KLYPS / Watch player it is whole as well, like the clip under it, with the blurred copy showing round it */
.reel-frame>.reel-thumb-hold{object-fit:contain;background:transparent}
/* rotate-to-fullscreen button — only on LANDSCAPE clips (KLYPS or video), mobile only (hidden by default) */
.clip-rotate{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:6;display:none;align-items:center;justify-content:center;padding:7px 12px;border-radius:12px;background:rgba(5,8,15,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:none;cursor:pointer}
.clip-rotate img{width:30px;height:18px;display:block;object-fit:contain}
@media (max-width:680px){
  .reel.is-landscape .clip-rotate{display:inline-flex;top:calc(var(--safe-top) + 22px)}   /* 32px tall: centred on Back's line (safe-top + 38px), the frame being the whole screen */
}
/* rotate-to-fullscreen overlay: video turned 90° to fill the screen in landscape */
.clip-fs-back{position:fixed;inset:0;z-index:9999;background:#000}
.clip-fs-stage{position:absolute;top:50%;left:50%;width:100vh;height:100vw;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center center}
video.clip-fs-vid{width:100%;height:100%;object-fit:contain;background:#000}
.clip-fs-close{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:5;width:42px;height:42px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;border:none;font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}
.reel-top{position:absolute;bottom:0;left:0;right:0;height:4px;background:rgba(255,255,255,.2);z-index:5}
.reel-top i{display:block;height:100%;width:0;background:#22c55e;border-radius:0 3px 3px 0}
.reel-grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,8,15,.35),transparent 22%,transparent 55%,rgba(5,8,15,.78));pointer-events:none}
.reel-info{position:absolute;left:14px;right:74px;bottom:16px;color:#fff;z-index:4}
.reel-user{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.reel-user a img{width:38px;height:38px;border-radius:50%;border:2px solid #fff}
.reel-user b{font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.reel-follow{margin-left:4px;padding:4px 12px;border:1.5px solid rgba(255,255,255,.85);border-radius:8px;color:#fff;font-size:12.5px;font-weight:700;backdrop-filter:blur(4px)}
.reel-cap{font-size:14px;text-shadow:0 1px 6px rgba(0,0,0,.6);margin-bottom:8px}
/* Reel caption: 2-line clamp with "Load More" → expands into a 100px scrollable box */
.reel-cap-c:not(.expanded) .reel-cap-body{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reel-cap-c.expanded .reel-cap-body{max-height:100px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:6px}
.reel-cap-c.expanded .reel-cap-body::-webkit-scrollbar{width:4px}
.reel-cap-c.expanded .reel-cap-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.4);border-radius:4px}
.reel-cap-more{margin-top:3px;background:none;border:0;padding:0;color:#fff;font-weight:800;font-size:13px;cursor:pointer;text-shadow:0 1px 6px rgba(0,0,0,.6);opacity:.95}
.reel-cap-more:hover{text-decoration:underline}
.reel-music{display:flex;align-items:center;gap:8px;font-size:12.5px;opacity:.92}
/* the sound line's music note (MUSIC_NOTE in app.js, "music 01" from AnimateIcons / Hugeicons, MIT): its component's
   bounce (the note) and flag wiggle (the stem's flag, turning on the stem's foot at 13.49,17), 0.6 s, here every 2.4 s while
   the clip plays; still while it's paused, and for anyone who asked for less motion. Replaced the spinning disc + "🎵". */
.reel-note{flex:none;display:inline-flex;width:16px;height:16px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
.reel-note svg{width:100%;height:100%;overflow:visible}
.reel-note .mn-b{animation:mnBounce 2.4s ease-in-out infinite}
.reel-note .mn-f{transform-box:view-box;transform-origin:13.4922px 17px;animation:mnFlag 2.4s ease-in-out infinite}
@keyframes mnBounce{0%{transform:translateY(0)}6.25%{transform:translateY(-3.5px)}12.5%{transform:translateY(0)}18.75%{transform:translateY(-1.5px)}25%,100%{transform:translateY(0)}}
@keyframes mnFlag{0%{transform:rotate(0)}6.25%{transform:rotate(-9deg)}12.5%{transform:rotate(7deg)}18.75%{transform:rotate(-3deg)}25%,100%{transform:rotate(0)}}
.reel.user-paused .reel-note .mn-b,.reel.user-paused .reel-note .mn-f{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.reel-note .mn-b,.reel-note .mn-f{animation:none}}
@keyframes spin{to{transform:rotate(360deg)}}
/* the sound line's text runs right to left (owner 2026-11-29: "running as marquee effect from right to left, so users can
   see full of long text"), like the video apps' own: a 140 px window (narrower when the row is short of room) where .mq,
   two copies of the text each with a 36 px gap after it, slides by one copy (-50%) and starts over — a seamless loop
   whose pace setMarquee sets (--mq-dur, 32 px a second). Both ends fade. It stops while the clip is paused, and stays
   still (the text faded at its end, as before) for anyone who asked for less motion. */
.reel-music .mtxt{display:block;width:140px;min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 86%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 86%,transparent)}
.mq{display:inline-flex;animation:mq var(--mq-dur,8s) linear infinite}
.mq>span{flex:none;padding-right:36px}
@keyframes mq{to{transform:translateX(-50%)}}
.reel.user-paused .mq{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){
  .mq{animation:none}
  .mq>span+span{display:none}
  .reel-music .mtxt{-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
}
/* KLYPS player (owner 2026-11-29): the name sits at the top of its row and the sound (♪ "Original sound") right under it,
   both beside the photo; the Follow button stays after them, centred on the row as before. The two lines together stand
   about as tall as the 38 px photo. */
.reel-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.reel-who>b{line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
/* the row lines up at the top, so the photo stays level with the name even when a long name takes two lines (it's
   clamped there; a long name used to wrap to as many as five lines on a 320 px phone); the Follow button keeps the middle */
.reel-user.has-who{align-items:flex-start}
.reel-user.has-who>.reel-follow{align-self:center}
/* a long name never squeezes the photo or the button (the base img max-width:100% let the row shrink the photo to a
   sliver on a 320 px phone); the sound text shrinks inside its column instead, under its fade */
.reel-user>a,.reel-user>.reel-follow{flex:none}
.reel-who .reel-music{min-width:0;max-width:100%;gap:5px}
.reel-who .reel-music .mtxt{min-width:0}
/* KLYPS player: the elapsed / total time under the caption ("00:45 / 01:20"), and a big ▶ while you've paused it */
.reel-time{margin-top:6px;font-size:12.5px;font-weight:700;color:#fff;opacity:.92;font-variant-numeric:tabular-nums;letter-spacing:.2px;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.reel-time:empty{display:none}
/* KLYPS speed: the gauge button beside the clock ("1x"; blue once changed) → "Playback controls", a dark sheet like the
   video apps' own (always dark: it sits over the video) with .5x · 1x · 1.5x · 2x · 3x; the chosen one has a blue ring. */
.reel-foot{display:flex;align-items:center;gap:10px;margin-top:6px}
.reel-foot .reel-time{margin-top:0}
.reel-speed{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px 0 8px;border-radius:999px;border:1px solid rgba(255,255,255,.5);
  background:rgba(0,0,0,.32);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;font:inherit;font-size:12.5px;font-weight:800;line-height:1;
  font-variant-numeric:tabular-nums;cursor:pointer;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.reel-speed svg{width:15px;height:15px;flex:none}
.reel-speed.on{background:#2d88ff;border-color:#2d88ff;text-shadow:none}
.pbk-back{position:fixed;inset:0;z-index:520;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.45);opacity:0;transition:opacity .2s}
.pbk-back.show{opacity:1}
.pbk-sheet{width:100%;max-width:560px;background:#242526;color:#e4e6eb;border-radius:22px 22px 0 0;padding:10px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow:0 -10px 40px rgba(0,0,0,.45);transform:translateY(30px);transition:transform .22s ease}
.pbk-back.show .pbk-sheet{transform:none}
.pbk-grab{width:44px;height:5px;border-radius:3px;background:#5d5f63;margin:0 auto 6px}
.pbk-head{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;padding:2px 8px 12px}
.pbk-head b{text-align:center;font-size:19px;font-weight:800;color:#fff}
.pbk-x{width:44px;height:44px;border:0;border-radius:50%;background:none;color:#e4e6eb;display:flex;align-items:center;justify-content:center;cursor:pointer}
.pbk-x:hover{background:rgba(255,255,255,.08)}
.pbk-x svg{width:26px;height:26px}
.pbk-row{display:flex;align-items:center;gap:14px;margin:0 16px;padding:14px 4px 10px;border-top:1px solid #3a3b3c;font-size:17px;font-weight:600;color:#fff}
.pbk-ic{display:flex;width:28px;height:28px}
.pbk-ic svg{width:28px;height:28px}
.pbk-chips{display:flex;gap:10px;margin:0 16px 8px;padding:10px 12px;border-radius:12px;background:#1c1d1f}
.pbk-chip{flex:1 1 0;min-width:0;max-width:92px;height:46px;border-radius:10px;border:1px solid #3e4042;background:#242526;color:#e4e6eb;
  font:inherit;font-size:16.5px;font-weight:500;font-variant-numeric:tabular-nums;cursor:pointer;transition:border-color .15s,background .15s}
.pbk-chip:hover{background:#2f3031}
.pbk-chip[aria-checked="true"]{border:2px solid #2d88ff;color:#fff;font-weight:800}
.pbk-chip:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (min-width:681px){
  .pbk-back{align-items:center;padding:20px}
  .pbk-sheet{max-width:440px;border-radius:18px;padding:16px 0 14px;transform:scale(.96)}
  .pbk-grab{display:none}
}
.reel-paused-ic{position:absolute;inset:0;margin:auto;z-index:5;width:78px;height:78px;border-radius:50%;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:none}
.reel-paused-ic svg{width:34px;height:34px;fill:#fff;margin-left:5px}
.reel.user-paused .reel-paused-ic{display:flex;animation:reelPausePop .18s ease-out}
@keyframes reelPausePop{from{transform:scale(.7);opacity:0}to{transform:none;opacity:1}}
/* the right-side rail of the KLYPS / Watch players: plain icons, no circle behind them, and bigger (owner 2026-11-28; they
   were 21px in a 42px see-through circle). A soft shadow keeps a white icon readable over a bright picture. Liked = a red
   heart, saved = a blue bookmark (the circle used to take those colours).
   Closer to the edge (owner, same day: "move all react on the right a bit to the right edge"): the column is a fixed 44px
   at 4px, so the icons are 8px from the edge (were 14px, ~17px in Khmer) whatever the labels say. A label up to 44px
   wide is centred under its icon (min-width + text-align); a wider one ("រាយការណ៍" 54px, "Episodes") keeps its right
   edge on the column's (align-items:flex-end) and runs out to the left, never past the screen edge. */
.reel-rail{position:absolute;right:4px;bottom:22px;display:flex;flex-direction:column;gap:12px;align-items:center;z-index:4}
.reel-rb{width:44px;display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:#fff;font-size:12.5px;font-weight:700;text-shadow:0 1px 5px rgba(0,0,0,.6)}
.reel-rb>.rico+span{min-width:44px;text-align:center;white-space:nowrap}
.reel-rb .rico{width:44px;height:42px;display:flex;align-items:center;justify-content:center;transition:transform .15s}
@media (hover:hover){ .reel-rb:hover .rico{transform:scale(1.1)} }   /* a mouse only: a phone's tap leaves :hover stuck on the icon */
.reel-rb .rico svg{width:36px;height:36px;fill:#fff;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))}
.reel-rb.liked .rico svg{fill:var(--heart);animation:pop .4s cubic-bezier(.2,2.2,.5,1)}
.reel-mute{position:absolute;top:14px;right:14px;z-index:5;width:40px;height:40px;border-radius:50%;background:rgba(5,8,15,.5);backdrop-filter:blur(6px);color:#fff;display:flex;align-items:center;justify-content:center}
.reel-mute svg{width:19px;height:19px;fill:#fff}
.reels-close{position:fixed;top:16px;left:16px;z-index:95;width:44px;height:44px;border-radius:50%;background:transparent;border:2px solid rgba(255,255,255,.7);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s}
.reels-close:hover{background:rgba(255,255,255,.15);border-color:#fff}
.reels-close svg{width:22px;height:22px}
/* Mobile (incl. installed PWA): clear the iOS status bar with safe-area + a 10px buffer */
@media (max-width:680px){
  /* Regular browser tabs (Safari/Chrome): the browser chrome already provides top spacing,
     so use the real inset (≈0 at top, the notch when scrolled) → header sits flush. The
     installed-PWA floor is restored in the display-mode:standalone block below. */
  :root{--safe-top:env(safe-area-inset-top, 0px);--nav-h:calc(65px + var(--safe-top) + 10px + var(--imp-h, 0px))}
  /* nav top padding is set in the mobile block below (.nav padding shorthand) */
  /* full-screen Reels viewer has no nav — push its top controls below the status bar */
  .reels-close{top:calc(var(--safe-top) + 16px)}
  /* progress bar now lives at the BOTTOM — lift it above the home indicator */
  .reel-top{top:auto;bottom:env(safe-area-inset-bottom, 0px)}
  /* reels sound button + reels-AD sound button: align on the same row as the back (<) circle */
  .reel-mute,.reel-vad-sound{top:calc(var(--safe-top) + 16px)}
  /* story-viewer header offset is handled in the base .sv-bars/.sv-head rules (max(safe-area, …)) */
}
/* Installed PWA (Add to Home Screen) draws under the status bar and some devices report a
   0 inset — restore a floor there so the header still clears it. Regular tabs are unaffected. */
@media (display-mode: standalone){ :root{ --safe-top: max(env(safe-area-inset-top, 0px), 44px) } }
/* NATIVE iOS/Android app (Capacitor): both apps draw edge to edge (iOS ios.contentInset "never"; Android 15+ always), so
   the header clears the status bar with its inset — env() on iOS; on Android Capacitor's --safe-area-inset-top (WebView
   140+ also passes env(); older WebViews get the app padded natively and both read 0). No web floor of 44px here. */
html.native{--safe-top:var(--safe-area-inset-top, env(safe-area-inset-top, 0px));--nav-h:calc(var(--nav-bar) + var(--safe-top) + var(--imp-h, 0px))}
html.native .nav{padding-top:calc(var(--safe-top) + var(--imp-h, 0px))}
.reel-heart-burst{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:6}
.reel-heart-burst svg{width:110px;height:110px;fill:var(--heart);filter:drop-shadow(0 4px 20px rgba(240,52,92,.6));animation:burst .8s ease forwards}
@keyframes burst{0%{transform:scale(0) rotate(-12deg);opacity:0}25%{transform:scale(1.25) rotate(4deg);opacity:1}60%{transform:scale(1);opacity:1}100%{transform:scale(.9) translateY(-30px);opacity:0}}
.reel-title{font-weight:900}
.reel-follow.following{background:rgba(255,255,255,.18);border-color:transparent}
.reel-rb.saved .rico svg{fill:#C6FF3D}   /* the dark theme's --gold: the player is always dark */
/* post button */
.reel-sentinel{height:2px}
/* VAST ad overlay (Google IMA) — sits above the video, below close/cat controls */
.reel-ad{position:absolute;inset:0;z-index:7;background:#000}
/* a coming ad slot's video loads here, off screen, until its slot takes it (preloadAdVideo) */
.reel-ad-hold{position:fixed;left:0;top:0;width:2px;height:2px;overflow:hidden;opacity:0;pointer-events:none;z-index:-1}
.reel-ad>div{width:100%;height:100%}
/* self-hosted video ad overlay */
.reel-vad{display:block}
.reel-vad-vid{width:100%;height:100%;display:block}
/* an ad's video plays whole, at its own shape, on black (2026-11-29: the player's ".reel-frame video{object-fit:cover}"
   reached ad videos too, and cut a square ad top and bottom in the wide frame). Same specificity as that rule, later. */
.reel-ad video{object-fit:contain;background:#000}
.reel-vad-bar{position:absolute;left:14px;right:14px;bottom:18px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px}
.reel-vad-label{background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:5px 9px;border-radius:6px}
.reel-vad-cta{position:absolute;left:14px;right:14px;bottom:74px;display:block;text-align:center;background:var(--blue);color:var(--on-accent);font-weight:800;font-size:15px;padding:12px 16px;border-radius:10px;text-decoration:none;z-index:2;box-shadow:0 6px 20px rgba(var(--gold-rgb),.45)}
.reel-vad-tap{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:2}
.reel-vad-tap[hidden]{display:none}
.reel-vad-tap svg{width:28px;height:28px;color:#fff;margin-left:3px}
.reel-vad-sound{position:absolute;top:14px;right:14px;z-index:3;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);border:none;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.reel-vad-sound svg{width:18px;height:18px;fill:#fff;color:#fff}
.reel-vad-skip{background:rgba(0,0,0,.6);color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:8px 16px;font-size:13.5px;font-weight:700;cursor:pointer}
.reel-vad-skip:disabled{opacity:.7;cursor:default}
.ad-badge.on{background:#dff3e8;color:#1a8a52}
html[data-theme="dark"] .ad-badge.on{background:rgba(34,165,101,.18);color:#46c98a}
.reel-empty{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#fff;text-align:center;padding:20px}
.reel-empty svg{width:54px;height:54px;fill:rgba(255,255,255,.5)}
.lb-post{position:absolute;left:50%;bottom:calc(18px + env(safe-area-inset-bottom, 0px));transform:translateX(-50%);z-index:5;padding:9px 18px;border-radius:999px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-weight:700;font-size:14px;border:1px solid rgba(255,255,255,.25)}
.lb-post:hover{background:rgba(255,255,255,.26)}
.reel-end{scroll-snap-align:start;scroll-snap-stop:always}   /* the last card of someone's KLYPS (opened from their profile) */
/* reel upload modal */
.ru-modes{display:flex;gap:8px;margin-bottom:16px}
.ru-mode{flex:1;padding:10px;border-radius:var(--r-sm);background:var(--canvas);font-weight:700;color:var(--ink-2)}
.ru-mode.active{background:var(--blue);color:var(--on-accent)}
.ru-thumbs{display:flex;align-items:center;gap:8px;margin-top:12px;overflow-x:auto;padding-bottom:4px}
.ru-thumb-label{font-size:13px;font-weight:700;color:var(--ink-2);flex-shrink:0}
.ru-thumb{width:50px;height:80px;object-fit:cover;border-radius:8px;border:2.5px solid transparent;cursor:pointer;flex-shrink:0}
.ru-thumb.sel{border-color:var(--blue)}
.ru-cats{display:flex;flex-wrap:wrap;gap:7px}
.ru-music-tabs{display:flex;gap:7px;margin-bottom:10px}
.ru-mt{flex:1;padding:8px;border-radius:var(--r-sm);background:var(--canvas);font-weight:700;font-size:13px;color:var(--ink-2)}
.ru-mt.active{background:var(--blue-soft);color:var(--blue)}
.ru-music-lib{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto}
.ru-track{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r-sm);background:var(--canvas);text-align:left}
.ru-track svg{width:20px;height:20px;fill:var(--blue);flex-shrink:0}
.ru-track span{display:flex;flex-direction:column;line-height:1.2}
.ru-track b{font-size:14px}
.ru-track i{font-size:12px;color:var(--ink-3);font-style:normal}
.ru-track.sel{background:var(--blue-soft);outline:2px solid var(--blue)}

/* ---------- Reel upload modal — dark "Upload Reel" concept ---------- */
/* size the backdrop to the DYNAMIC viewport so the modal (and its footer button) sits ABOVE Safari's bottom toolbar */
.rum-back{bottom:auto;height:100vh;height:100dvh}
.rum{width:100%;max-width:520px;background:#14110a;border:1px solid rgba(var(--gold-rgb),.2);border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 60px rgba(var(--gold-rgb),.06);overflow:hidden;max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;animation:rise .25s}
.rum-head{padding:20px 24px 16px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.rum-title{font-size:18px;font-weight:900;color:#f3efe6;display:flex;align-items:center;gap:9px}
.rum-title svg{width:21px;height:21px;color:var(--gold);fill:var(--gold)}
.rum-sub{font-size:12.5px;color:#9a9385;margin-top:4px}
.rum-x{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#1d1810;border:1px solid rgba(255,255,255,.08);color:#9a9385;font-size:15px;display:flex;align-items:center;justify-content:center;transition:background .15s}
.rum-x:hover{background:#2a2316;color:#f3efe6}
.rum-body{flex:1 1 auto;min-height:0;padding:20px 24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}
/* sticky Publish footer — always visible, clears the iOS home indicator */
.rum-foot{flex-shrink:0;padding:12px 24px calc(12px + env(safe-area-inset-bottom, 0px));border-top:1px solid rgba(255,255,255,.07)}
.rum-foot .rum-submit{margin-top:0}
.rum-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rum-tab{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border-radius:12px;border:1.5px solid rgba(255,255,255,.1);background:#1d1810;color:#9a9385;font-weight:800;font-size:14px;transition:all .15s}
.rum-tab svg{width:16px;height:16px}
.rum-tab.active{border-color:var(--gold);background:rgba(var(--gold-rgb),.1);color:var(--gold);box-shadow:0 0 0 3px rgba(var(--gold-rgb),.08)}
.rum-drop{border:2px dashed rgba(255,255,255,.14);border-radius:16px;padding:30px 16px;text-align:center;cursor:pointer;background:#181309;transition:all .15s}
.rum-drop:hover,.rum-drop.drag{border-color:var(--gold);background:rgba(var(--gold-rgb),.05)}
.rum-drop.ready{border-color:rgba(var(--gold-rgb),.5);border-style:solid;background:rgba(var(--gold-rgb),.04);padding:16px}
.rum-drop.busy{cursor:default}
.rum-drop.sm{padding:16px}
.rum-drop-ic{width:54px;height:54px;margin:0 auto 12px;border-radius:50%;background:rgba(var(--gold-rgb),.1);display:flex;align-items:center;justify-content:center;color:var(--gold)}
.rum-drop.ready .rum-drop-ic{display:none}
.rum-drop-ic svg{width:26px;height:26px}
.rum-drop-t{font-size:15px;font-weight:800;color:#e8e2d5}
.rum-drop-s{font-size:12.5px;color:#8a8478;margin-top:5px;word-break:break-word}
.rum-thumbs{display:flex;align-items:center;gap:8px;margin-top:12px;overflow-x:auto;padding-bottom:4px}
.rum-thumb-label{font-size:13px;color:#bdb6a6;flex-shrink:0}
.rum-thumb{width:50px;height:80px;object-fit:cover;border-radius:8px;border:2.5px solid transparent;cursor:pointer;flex-shrink:0}
.rum-thumb.sel{border-color:var(--gold)}
.rum-field{display:flex;flex-direction:column}
.rum-field>label{font-size:13.5px;font-weight:800;color:#cfc8b8;margin-bottom:8px}
.rum-field>label span{color:#857f72;font-weight:400}
.rum-input{background:#1d1810;border:1.5px solid rgba(255,255,255,.1);border-radius:10px;padding:11px 14px;color:#f3efe6;font-family:var(--font);font-size:14px;outline:none;width:100%;resize:vertical;transition:border-color .15s}
.rum-input:focus{border-color:var(--gold)}
/* Admin "Upload as" owner picker (inside the uploader modal) */
.rum-owner-field{background:rgba(var(--gold-rgb),.06);border:1px solid rgba(var(--gold-rgb),.25);border-radius:12px;padding:12px}
.rum-owner{position:relative}
.rum-owner-list{position:relative;margin-top:6px;max-height:230px;overflow-y:auto;background:#15110a;border:1px solid rgba(255,255,255,.1);border-radius:10px;display:none}
.rum-owner-opt{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;background:none;border:none;border-bottom:1px solid rgba(255,255,255,.05);cursor:pointer;text-align:left}
.rum-owner-opt:hover{background:rgba(var(--gold-rgb),.08)}
.rum-owner-opt img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}
.rum-owner-opt div{display:flex;flex-direction:column;min-width:0}
.rum-owner-opt b{font-size:14px;color:#f3efe6}
.rum-owner-opt i{font-size:12px;color:#8a8478;font-style:normal}
.rum-owner-empty{padding:12px;color:#8a8478;font-size:13px;text-align:center}
.rum-owner-chip{display:flex;align-items:center;gap:10px;background:#1d1810;border:1.5px solid rgba(var(--gold-rgb),.5);border-radius:10px;padding:8px 10px;margin-bottom:8px}
.rum-owner-chip img{width:38px;height:38px;border-radius:50%;object-fit:cover}
.rum-owner-chip div{display:flex;flex-direction:column;flex:1;min-width:0}
.rum-owner-chip b{font-size:14px;color:#f3efe6}
.rum-owner-chip i{font-size:12px;color:#8a8478;font-style:normal}
.rum-owner-chip button{background:none;border:none;color:#cfc8b8;cursor:pointer;font-size:15px;padding:4px 8px}
/* Admin → Upload Media section */
.admin-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.admin-upload-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:22px;border-radius:16px;border:1px solid var(--border);background:var(--card);cursor:pointer;text-align:left;transition:transform .12s,box-shadow .12s}
.admin-upload-card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.admin-upload-card b{font-size:16px;color:var(--text)}
.admin-upload-card i{font-size:12.5px;color:var(--muted);font-style:normal}
.auc-ic{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.auc-ic svg{width:24px;height:24px;color:#fff}
.auc-ic.pink{background:linear-gradient(135deg,#E91E63,#9C27B0)}
.auc-ic.blue{background:linear-gradient(135deg,#1976D2,#0D47A1)}
.admin-upload-note .auc-note-ic{display:inline-flex;vertical-align:-3px}
.admin-upload-note .auc-note-ic svg{width:15px;height:15px}
.admin-upload-recent{margin-top:22px}
.admin-upload-recent-t{font-size:14px;color:var(--text);margin-bottom:10px}
.au-recent-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}
.au-recent-item{flex-shrink:0;width:84px;text-decoration:none}
.au-recent-item img,.au-recent-ph{width:84px;height:134px;border-radius:10px;object-fit:cover;display:block;background:var(--card2,#1f1f28)}
.au-recent-ph{display:flex;align-items:center;justify-content:center;color:var(--muted)}
.au-recent-ph svg{width:26px;height:26px}
.au-recent-item span{display:block;font-size:11.5px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:560px){.admin-upload-grid{grid-template-columns:1fr}}
.rum-input::placeholder{color:#6e695e}
.rum-cats{display:flex;flex-wrap:wrap;gap:8px}
.rum-chip{padding:8px 16px;border-radius:999px;background:#1d1810;border:1px solid rgba(255,255,255,.1);color:#bdb6a6;font-size:13px;font-weight:700;transition:all .15s}
.rum-chip:hover{border-color:rgba(var(--gold-rgb),.4)}
.rum-chip.active{background:rgba(var(--gold-rgb),.12);border-color:var(--gold);color:var(--gold)}
.rum-chip-add{border-style:dashed;color:var(--gold);background:transparent}
.rum-newcat-wrap{display:inline-flex;align-items:center;gap:6px;margin-left:4px}
.rum-newcat-in{padding:8px 12px;border-radius:999px;background:#1f1f28;border:1px solid var(--gold);color:#fff;font-size:13px;font-weight:600;width:170px;outline:none}
.rum-newcat-go{padding:8px 14px;border-radius:999px;background:var(--gold);border:none;color:#1a1408;font-size:13px;font-weight:800;cursor:pointer}
.rum-newcat-go:disabled{opacity:.5;cursor:default}
.rum-newcat-x{width:30px;height:30px;border-radius:999px;background:transparent;border:1px solid rgba(255,255,255,.18);color:#bdb6a6;font-size:13px;cursor:pointer}
/* Category selector — searchable list + inline "＋ New" (Psar-style) */
.rum-catsel{position:relative}
.rum-catpick{display:flex;gap:8px;align-items:stretch}
.rum-catbox{position:relative;flex:1;min-width:0}
.rum-catinput{padding-right:34px}
.rum-catic{position:absolute;right:11px;top:0;bottom:0;display:flex;align-items:center;color:#857f72;pointer-events:none}
.rum-catic[data-mode="clear"]{pointer-events:auto;cursor:pointer;color:#bdb6a6;font-size:14px;font-weight:700}
.rum-catic svg{width:15px;height:15px}
.rum-catmenu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:70;background:#15110a;border:1px solid rgba(255,255,255,.12);border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.55);max-height:210px;overflow-y:auto}
.rum-catopt{display:block;width:100%;text-align:left;padding:9px 13px;background:none;border:none;border-bottom:1px solid rgba(255,255,255,.05);color:#d8d2c4;font-size:13.5px;font-weight:600;cursor:pointer;font-family:var(--font)}
.rum-catopt:last-child{border-bottom:none}
.rum-catopt:hover{background:rgba(255,255,255,.05)}
.rum-catopt.sel{background:rgba(var(--gold-rgb),.12);color:var(--gold);font-weight:800}
.rum-catempty{padding:11px 13px;font-size:12.5px;color:#857f72;line-height:1.4}
.rum-catnew{flex-shrink:0;display:inline-flex;align-items:center;padding:0 16px;border-radius:999px;border:1.5px dashed var(--gold);background:transparent;color:var(--gold);font-size:13px;font-weight:800;cursor:pointer;font-family:var(--font);white-space:nowrap}
.rum-catnew:hover{background:rgba(var(--gold-rgb),.08)}
.rum-catadd{display:flex;gap:8px;align-items:stretch}
.rum-catadd-in{flex:1}
.rum-catadd-go{flex-shrink:0;display:inline-flex;align-items:center;padding:0 18px;border-radius:999px;border:none;background:var(--gold);color:#1a1408;font-size:13px;font-weight:800;cursor:pointer;font-family:var(--font)}
.rum-catadd-go:disabled{opacity:.5;cursor:default}
.rum-catadd-x{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border-radius:999px;background:transparent;border:1px solid rgba(255,255,255,.18);color:#bdb6a6;font-size:14px;cursor:pointer}
.rum-mtabs{display:flex;gap:8px;margin-bottom:10px}
.rum-mt{flex:1;padding:9px;border-radius:10px;background:#1d1810;border:1px solid rgba(255,255,255,.1);color:#9a9385;font-weight:700;font-size:13px;transition:all .15s}
.rum-mt.active{background:rgba(var(--gold-rgb),.12);border-color:var(--gold);color:var(--gold)}
#ru-music-lib.ru-music-lib{display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto}
.rum-track{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;background:#1d1810;border:1px solid rgba(255,255,255,.08);color:#e8e2d5;text-align:left;transition:all .15s}
.rum-track:hover{background:#241d12}
.rum-track svg{width:20px;height:20px;fill:var(--gold);flex-shrink:0}
.rum-track span{display:flex;flex-direction:column;line-height:1.25}
.rum-track b{font-size:14px}
.rum-track i{font-size:12px;color:#8a8478;font-style:normal}
.rum-track.sel{background:rgba(var(--gold-rgb),.12);border-color:var(--gold)}
.rum-submit{margin-top:4px;width:100%;padding:14px;border-radius:12px;background:var(--gold);color:var(--on-accent);font-weight:900;font-size:15px;transition:filter .15s}
.rum-submit:hover{filter:brightness(1.08)}
/* merged uploader: Reel|Video type toggle + featured (share) image */
.rum-type{display:flex;gap:8px;margin-bottom:14px;background:rgba(127,127,127,.12);padding:5px;border-radius:14px}
.rum-typebtn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:11px;border-radius:10px;font-weight:800;font-size:14.5px;color:var(--ink-2);background:transparent;border:none;cursor:pointer;transition:all .15s}
.rum-typebtn svg{width:18px;height:18px}
.rum-typebtn.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.rum-share{display:flex;gap:12px;align-items:stretch}
.rum-share .rum-drop.sm{flex:1}
.rum-share-prev{width:120px;height:68px;object-fit:cover;border-radius:10px;border:1px solid var(--line);flex:0 0 auto}
.rum-hint{font-size:12px;color:var(--ink-3);margin:6px 2px 0}
/* music trim: drag a window over the song timeline */
.rum-trim{margin-top:12px;background:rgba(127,127,127,.10);border-radius:12px;padding:12px}
.rum-trim-lbl{font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:9px}
.rum-trim-track{position:relative;height:44px;border-radius:9px;overflow:hidden;touch-action:none;cursor:default;
  background:repeating-linear-gradient(90deg,rgba(127,127,127,.22) 0 2px,transparent 2px 7px),linear-gradient(var(--canvas),var(--canvas))}
.rum-trim-win{position:absolute;top:0;bottom:0;left:0;min-width:28px;background:rgba(62,123,250,.28);border:2px solid var(--blue);border-radius:9px;cursor:grab;box-sizing:border-box;box-shadow:0 0 0 100vmax rgba(0,0,0,.18)}
.rum-trim-win::before,.rum-trim-win::after{content:'';position:absolute;top:50%;transform:translateY(-50%);width:3px;height:18px;border-radius:3px;background:var(--blue)}
.rum-trim-win::before{left:5px}.rum-trim-win::after{right:5px}
.rum-trim-win:active{cursor:grabbing}
.rum-trim-row{display:flex;align-items:center;justify-content:space-between;margin-top:9px}
.rum-trim-play{font-size:13px;font-weight:800;color:var(--blue);padding:6px 14px;border:1px solid var(--blue);border-radius:999px;background:transparent;cursor:pointer}
.rum-trim-times{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.rum-submit:disabled{opacity:.6;cursor:not-allowed}
/* drama card in modal */
.rum-drama-card{border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#1d1810;padding:14px 16px}
.rum-drama-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;color:#e8e2d5}
.rum-drama-toggle input{width:18px;height:18px;accent-color:var(--gold);flex-shrink:0}
.rum-drama-ic{display:flex}
.rum-drama-ic svg{width:20px;height:20px;fill:var(--gold)}
.rum-drama-toggle b{font-size:14px}
.rum-drama-hint{margin-left:auto;font-size:12.5px;color:#857f72}
.rum-drama-fields{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.rum-drama-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* drama badge on a reel */
.reel-drama{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;padding:5px 11px;border-radius:999px;background:rgba(var(--gold-rgb),.18);backdrop-filter:blur(6px);color:#e6f0ff;font-size:12.5px;font-weight:700;width:max-content;max-width:90%}
.reel-drama svg{width:15px;height:15px;fill:var(--gold);flex-shrink:0}
.reel-drama span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* episodes sheet */
.ep-back{align-items:flex-end}
@media (min-width:640px){.ep-back{align-items:center}}
.ep-sheet{width:100%;max-width:560px;max-height:80vh;background:#14110a;border:1px solid rgba(var(--gold-rgb),.2);border-radius:20px 20px 0 0;overflow:hidden;display:flex;flex-direction:column;animation:rise .25s}
@media (min-width:640px){.ep-sheet{border-radius:20px}}
.ep-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.07);color:#f3efe6;font-size:16px}
.ep-grid{padding:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px;overflow-y:auto}
.ep-card{text-align:left;color:#cfc8b8}
.ep-thumb{position:relative;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#1d1810;display:flex;align-items:center;justify-content:center;border:2px solid transparent}
.ep-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.ep-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.ep-thumb svg{width:28px;height:28px;fill:#4a4438}
.ep-card.cur .ep-thumb{border-color:var(--gold)}
.ep-no{position:absolute;left:6px;bottom:6px;padding:2px 7px;border-radius:6px;background:rgba(0,0,0,.65);color:#fff;font-size:11px;font-weight:800;z-index:2}
.ep-t{margin-top:6px;font-size:12.5px;font-weight:600;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ---------- Profile dashboard (gold style, theme-aware) ---------- */
.pd-page{background:var(--canvas);min-height:100vh}
.pd-wrap{max-width:920px;margin:0 auto;padding:24px 16px 80px}
.pd-hero{position:relative;background:radial-gradient(ellipse at 50% 38%,#271a5c 0%,#17113a 42%,#0b0a16 72%,#050508 100%);border:1px solid rgba(123,92,255,.35);border-radius:20px;overflow:hidden;box-shadow:var(--shadow-lg),0 0 60px rgba(var(--gold-rgb),.18);margin-bottom:20px}
/* animated glowing data-squares backdrop */
.pd-hero-fx{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.pd-sq{position:absolute;border-radius:2px;opacity:.2;will-change:opacity,transform;animation:pdSq ease-in-out infinite}
.pd-sq.f{background:#2f6bff;box-shadow:0 0 8px rgba(59,130,246,.85)}
.pd-sq.o{border:1px solid rgba(120,170,255,.8)}
.pd-sq.b{background:#dbe7ff;box-shadow:0 0 11px rgba(207,224,255,.95)}
@keyframes pdSq{0%,100%{opacity:.1;transform:translateY(0)}50%{opacity:.85;transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.pd-sq{animation:none;opacity:.45}}
.pd-hero-top{position:relative;z-index:1}
/* readable content on the dark hero (both themes) */
.pd-hero .pd-name-row h1{color:#fff}
.pd-hero .pd-edit{color:rgba(255,255,255,.65)}
.pd-hero .pd-edit:hover{color:#9ec3ff}
.pd-hero .pd-role{color:#e2dbff;background:rgba(123,92,255,.2);border-color:rgba(123,92,255,.55)}
.pd-hero .pd-meta{color:rgba(255,255,255,.66)}
.pd-hero .pd-stat{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:rgba(255,255,255,.72)}
.pd-hero .pd-stat:hover{border-color:rgba(198,255,61,.5)}
.pd-hero .pd-stat b{color:#fff}
.pd-hero .pd-bio{color:rgba(255,255,255,.8)}
.pd-hero .pd-actions{border-top-color:rgba(255,255,255,.12)}
.pd-hero .pd-act{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}
.pd-hero .pd-act:hover{border-color:rgba(198,255,61,.6);color:#eaffbf}
.pd-hero .pd-act.primary{background:var(--gold);border-color:var(--gold);color:var(--on-accent)}
.pd-hero-bar{position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,var(--gold) 30%,#7B5CFF 70%,transparent);box-shadow:0 0 18px rgba(var(--gold-rgb),.5);z-index:2}
.pd-hero-glow{position:absolute;top:0;left:0;right:0;height:180px;background:radial-gradient(ellipse at 50% -20%,rgba(var(--gold-rgb),.14),transparent 70%);pointer-events:none}
.pd-hero-top{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:32px 22px 22px;position:relative}
.pd-avatar-wrap{position:relative;flex-shrink:0}
.pd-avatar{width:92px;height:92px;border-radius:50%;object-fit:cover;border:2px solid rgba(var(--gold-rgb),.5);background:var(--surface-2);box-shadow:0 0 0 6px rgba(var(--gold-rgb),.12),0 0 22px rgba(var(--gold-rgb),.25)}
.pd-cam{position:absolute;right:-2px;bottom:-2px;width:30px;height:30px;border-radius:50%;background:var(--gold);display:flex;align-items:center;justify-content:center;border:3px solid var(--surface)}
.pd-cam svg{width:15px;height:15px;fill:var(--on-accent)}
.pd-cam.busy{opacity:.5}
/* the profile photo opens big in the lightbox (openAvatarLightbox) */
.pd-avatar-btn{display:block;padding:0;margin:0;border:0;background:none;border-radius:50%;line-height:0;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.pd-avatar-btn .pd-avatar{transition:transform .18s ease,filter .18s ease}
@media (hover:hover){.pd-avatar-btn:hover .pd-avatar{transform:scale(1.04);filter:brightness(1.06)}}
.pd-avatar-btn:active .pd-avatar{transform:scale(.97)}
.pd-avatar-btn:focus-visible{outline:2px solid var(--gold);outline-offset:5px}
.lb-avatar .lb-slide{padding:56px 16px 24px;box-sizing:border-box}
.lb-avatar .lb-slide img{width:min(100%,720px,calc(100vh - 80px));width:min(100%,720px,calc(100dvh - 80px));height:auto;max-height:100%;object-fit:contain;border-radius:18px;animation:lbAvIn .22s ease-out}
@keyframes lbAvIn{from{opacity:0;transform:scale(.72)}to{opacity:1;transform:none}}
/* a Page's / Group's header photo opens the same way (wireAvatarZoom): the picture zooms inside its circle on hover */
.av-zoom{cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.av-zoom img{transition:transform .18s ease,filter .18s ease}
@media (hover:hover){.av-zoom:hover img{transform:scale(1.06);filter:brightness(1.06)}}
.av-zoom:active img{transform:scale(.97)}
.av-zoom:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.pd-id{flex:1;min-width:0;padding-top:2px}
.pd-id{width:100%}
.pd-name-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.pd-name-row h1{font-size:24px;font-weight:900;color:var(--ink);line-height:1.2}
.pd-edit{color:var(--ink-3);display:flex}
.pd-edit svg{width:16px;height:16px}
.pd-edit:hover{color:var(--gold)}
.pd-role{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:800;letter-spacing:.1em;padding:5px 12px;border-radius:999px;background:rgba(var(--gold-rgb),.12);color:var(--gold);border:1px solid rgba(var(--gold-rgb),.4)}
html[data-theme="dark"] .pd-role{color:var(--gold)}
.pd-role.admin{background:rgba(96,165,250,.14);color:#3b82f6;border-color:rgba(96,165,250,.4)}
html[data-theme="dark"] .pd-role.admin{color:#7fb4ff}
.pd-meta{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-bottom:14px;color:var(--ink-3);font-size:13px}
.pd-meta span{display:flex;align-items:center;gap:6px}
.pd-meta svg{width:13px;height:13px}
.pd-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;width:100%}
/* minmax(0,1fr) + wrap: with real counts ("12.9K Followers") three pills no longer fit a phone on one line each */
.pd-stat{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;text-align:center;padding:11px 8px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;color:var(--ink-3);font-size:12.5px;transition:border-color .15s,transform .12s}
.pd-stat:hover{border-color:rgba(var(--gold-rgb),.4)}
.pd-stat:active{transform:scale(.97)}
.pd-stat .ic{display:flex}
.pd-stat .ic svg{width:14px;height:14px;fill:var(--ink-3)}
.pd-stat .ic.heart svg{fill:#ff6b8a}
.pd-stat b{font-weight:800;color:var(--ink)}
.pd-stat b.heart{color:#ff6b8a}
.pd-bio{margin-top:12px;color:var(--ink-2);font-size:14px;line-height:1.5;text-align:center}
.pd-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:14px 26px 20px;border-top:1px solid var(--line)}
.pd-act{display:flex;align-items:center;gap:8px;padding:10px 18px;border-radius:12px;font-size:13.5px;font-weight:700;background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2);transition:border-color .15s,color .15s,transform .12s,box-shadow .15s}
.pd-act svg{width:15px;height:15px;fill:currentColor}
.pd-act:hover{border-color:rgba(var(--gold-rgb),.5);color:var(--gold)}
.pd-act:active{transform:scale(.96)}
.pd-act.primary{background:var(--gold);color:var(--on-accent);border-color:var(--gold);box-shadow:0 6px 18px rgba(var(--gold-rgb),.3)}
.pd-act.primary svg{fill:var(--on-accent)}
.pd-act.primary:hover{filter:brightness(1.08);color:var(--on-accent)}
.pd-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:26px}
.pd-tile{position:relative;display:flex;align-items:center;gap:14px;padding:15px 16px;background:linear-gradient(145deg,var(--tile-a),var(--tile-b));border:1px solid var(--tile-bd);border-radius:16px;text-align:left;box-shadow:0 4px 16px rgba(var(--gold-rgb),.07);transition:transform .15s,border-color .15s,box-shadow .15s;overflow:hidden}
/* soft accent glow in the corner of each card */
.pd-tile::after{content:"";position:absolute;top:-40%;right:-15%;width:130px;height:130px;border-radius:50%;background:var(--tile-glow);filter:blur(26px);opacity:.55;pointer-events:none;transition:opacity .2s}
.pd-tile:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(var(--gold-rgb),.16)}
.pd-tile:hover::after{opacity:.9}
.pd-tile:active{transform:scale(.985)}
/* ---- tile gradient tones (light mode defaults) ---- */
.pd-tile{--tile-a:#ffffff;--tile-b:#eef2fb;--tile-bd:#e3e8f1;--tile-glow:rgba(var(--gold-rgb),.18)}
.pd-tile.t-gold{--tile-b:#eaf0ff;--tile-glow:rgba(var(--gold-rgb),.22)}
.pd-tile.t-green{--tile-b:#e7f6ee;--tile-bd:#d6ebdf;--tile-glow:rgba(22,163,74,.22)}
.pd-tile.t-blue{--tile-b:#e9f1ff;--tile-bd:#d8e6fb;--tile-glow:rgba(59,130,246,.24)}
.pd-tile.t-pink{--tile-b:#fdeaf0;--tile-bd:#f6d9e2;--tile-glow:rgba(240,52,92,.2)}
.pd-tile.t-slate{--tile-b:#eef1f6;--tile-bd:#e1e6ee;--tile-glow:rgba(120,135,160,.18)}
/* ---- tile gradient tones (dark mode) ---- */
html[data-theme="dark"] .pd-tile{--tile-a:#18223a;--tile-b:#0c1322;--tile-bd:rgba(255,255,255,.08);--tile-glow:rgba(80,130,255,.28)}
html[data-theme="dark"] .pd-tile.t-gold{--tile-a:#1a2747;--tile-b:#0b1120;--tile-glow:rgba(70,120,255,.34)}
html[data-theme="dark"] .pd-tile.t-green{--tile-a:#10271d;--tile-b:#0a1320;--tile-bd:rgba(22,163,74,.22);--tile-glow:rgba(22,200,120,.3)}
html[data-theme="dark"] .pd-tile.t-blue{--tile-a:#122544;--tile-b:#0a1120;--tile-bd:rgba(59,130,246,.24);--tile-glow:rgba(59,130,246,.36)}
html[data-theme="dark"] .pd-tile.t-pink{--tile-a:#2a1622;--tile-b:#120a12;--tile-bd:rgba(240,52,92,.22);--tile-glow:rgba(240,52,92,.32)}
html[data-theme="dark"] .pd-tile.t-slate{--tile-a:#1f1f28;--tile-b:#0f0f15;--tile-bd:rgba(255,255,255,.08);--tile-glow:rgba(150,165,190,.22)}
.pd-tile>*{position:relative;z-index:1}
.pd-tile:hover .pd-tile-ch{opacity:1;transform:translateX(3px)}
.pd-tile-ic{width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pd-tile-ic svg{width:21px;height:21px}
.pd-tile-ic.gold{background:rgba(var(--gold-rgb),.14)}.pd-tile-ic.gold svg{fill:var(--gold);stroke:var(--gold)}
.pd-tile-ic.pink{background:rgba(255,107,138,.14)}.pd-tile-ic.pink svg{fill:#ff6b8a}
.pd-tile-ic.blue{background:rgba(96,165,250,.14)}.pd-tile-ic.blue svg{fill:none;stroke:#3b82f6}
.pd-tile-ic.green{background:rgba(22,163,74,.14)}.pd-tile-ic.green svg{fill:#16a34a;stroke:#16a34a}
html[data-theme="dark"] .pd-tile-ic.blue svg{stroke:#7fb4ff}
.pd-tile-t{flex:1;min-width:0}
.pd-tile-t b{display:block;color:var(--ink);font-size:15px;font-weight:700;margin-bottom:1px}
.pd-tile-t i{font-size:12.5px;color:var(--ink-3);font-style:normal}
.pd-tile-ch{color:var(--ink-3);opacity:.55;display:flex;transition:opacity .15s,transform .15s}
.pd-tile-ch svg{width:16px;height:16px}
.pd-tabs{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.pd-tab{display:flex;align-items:center;gap:7px;padding:11px 16px;color:var(--ink-3);font-weight:800;font-size:14px;border-bottom:2.5px solid transparent;margin-bottom:-1px}
.pd-tab svg{width:17px;height:17px;fill:currentColor}
.pd-tab span{color:var(--ink-3);font-weight:600;opacity:.8}
.pd-tab.active{color:var(--gold);border-bottom-color:var(--gold)}
.pd-tab.active svg{fill:var(--gold)}
.pd-sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px;flex-wrap:wrap}
.pd-sec-head h2{font-size:18px;font-weight:900;color:var(--ink)}
.pd-sec-head h2 span{color:var(--ink-3);font-weight:400}
.pd-more-wrap{display:flex;justify-content:center;margin:18px 0 4px}
.pd-more{min-width:160px}
.pd-more:disabled{opacity:.6;cursor:progress}
.pd-upload{padding:9px 18px;border-radius:999px;background:var(--gold);color:var(--on-accent);font-weight:800;font-size:13.5px;box-shadow:0 6px 18px rgba(var(--gold-rgb),.3)}
.pd-upload:hover{filter:brightness(1.08)}
.pd-reels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.pd-reel{cursor:pointer;border-radius:14px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);transition:transform .15s,border-color .15s}
.pd-reel:hover{transform:translateY(-3px);border-color:rgba(var(--gold-rgb),.4)}
.pd-reel-thumb{position:relative;aspect-ratio:9/16;background:var(--surface-2);overflow:hidden}
.pd-reel-thumb img{width:100%;height:100%;object-fit:cover}
.pd-reel-noimg{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.pd-reel-noimg svg{width:40px;height:40px;fill:var(--ink-3);opacity:.5}
.pd-live{position:absolute;top:8px;left:8px;padding:3px 9px;border-radius:7px;background:rgba(var(--gold-rgb),.92);color:var(--on-accent);font-size:10.5px;font-weight:800;letter-spacing:.03em}
.pd-live.off{background:rgba(255,77,77,.8);color:#fff}
.pd-reel-ep{position:absolute;top:8px;right:8px;padding:3px 8px;border-radius:7px;background:rgba(0,0,0,.6);color:#e6f0ff;font-size:10.5px;font-weight:800}
.pd-reel-info{padding:10px 12px}
.pd-reel-title{font-size:13px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}
.pd-reel-title.pd-dim{color:var(--ink-3);font-weight:400;font-style:italic}
.pd-reel-stats{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--ink-3)}
.pd-reel-stats .ago{margin-left:auto;opacity:.7}
.pd-empty{padding:48px 24px;text-align:center;color:var(--ink-3)}
.pd-empty .big{font-size:42px;margin-bottom:10px}
.pd-empty p{margin-bottom:14px}
@media (max-width:560px){
  .pd-hero-top{padding:26px 18px 18px}
  .pd-actions{padding:14px 18px 18px}
  .pd-reels-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
  /* tiles: 2 columns on mobile, horizontal list-item layout (same as desktop) */
  .pd-tiles{grid-template-columns:repeat(2,1fr);gap:10px}
  .pd-tile{padding:13px;gap:10px}
  .pd-tile-ic{width:40px;height:40px;border-radius:12px}
  .pd-tile-ic svg{width:19px;height:19px}
  .pd-tile-t b{font-size:13.5px}
  .pd-tile-t i{font-size:11px}
  .pd-tile-ch{align-self:center}
  .pd-tile-ch svg{width:15px;height:15px}
}

/* ---------- Marketplace v2 (psar concept) ---------- */
.mk2-wrap{max-width:1280px;margin:0 auto;padding:22px 16px 80px}
.mk2-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:26px}
.mk2-top h1{font-size:26px;font-weight:900;flex:1;min-width:140px}
.mk2-top .market-search{flex:0 1 320px}
.mk2-top .btn svg{width:16px;height:16px;fill:currentColor}
.section{margin-bottom:30px}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}
.section-title{font-size:18px;font-weight:900;color:var(--ink)}
.section-link{font-size:13.5px;color:var(--blue);font-weight:700}
.section-link:hover{filter:brightness(1.1)}
.cat-carousel{display:flex;gap:14px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.cat-carousel::-webkit-scrollbar{display:none}
.cat-card{flex:0 0 150px;border-radius:18px;overflow:hidden;color:#fff;box-shadow:0 6px 24px rgba(0,0,0,.18);cursor:pointer;user-select:none;text-align:center;transition:transform .15s,box-shadow .15s}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.28)}
.cat-card.cat-active{outline:3px solid #fff;outline-offset:-3px}
.cat-top{padding:16px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:9px}
.cat-ic{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}
.cat-name{font-weight:800;font-size:12px;letter-spacing:.05em;line-height:1.3}
.cat-foot{background:rgba(0,0,0,.16);padding:7px 10px;font-size:11.5px;opacity:.92}
.listings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.listing-card-wrap{position:relative}
.listing-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;transition:transform .15s,box-shadow .15s,border-color .15s}
.listing-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:rgba(var(--gold-rgb),.5)}
.listing-card-image{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--surface-2);padding:8px}
.listing-card-image-placeholder{width:100%;aspect-ratio:4/3;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:42px}
.listing-card-badge{position:absolute;top:8px;left:8px;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:#fff8e1;color:#ef4444;border:1px solid rgba(239,68,68,.25);z-index:2}
.listing-card-body{padding:10px 12px 12px;flex:1;display:flex;flex-direction:column}
.listing-card-price{font-size:17px;font-weight:800;color:var(--ink);margin-bottom:3px}
.listing-card-title{font-size:14px;font-weight:600;color:var(--ink);line-height:1.35;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.listing-card-meta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--ink-3)}
.listing-card-location{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.listing-card-watchlist{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;background:rgba(10,13,18,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer;z-index:2;transition:transform .15s}
.listing-card-watchlist:hover{transform:scale(1.12)}
/* minmax(0,1fr): with 1fr a listing's long one-line location widened its column past the screen (Marketplace, a listing's related items) */
@media (max-width:560px){.listings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cat-card{flex-basis:130px}}

/* ---------- Listing detail (psar concept) ---------- */
.ld-wrap{max-width:1180px;margin:0 auto;padding:18px 16px 80px}
.breadcrumb{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-3);margin-bottom:16px;flex-wrap:wrap}
.breadcrumb a{color:var(--blue);font-weight:600}
.breadcrumb .bc-sep{color:var(--ink-3);opacity:.6}
.breadcrumb .bc-cur{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40vw}
.ld-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.ld-main{min-width:0}
.card-pad{padding:18px 20px}
.ld-img{display:flex;align-items:center;justify-content:center;background:var(--surface-2);padding:10px;margin-bottom:16px;min-height:280px;overflow:hidden}
.ld-img img{max-width:100%;max-height:440px;object-fit:contain;border-radius:8px}
.ld-img-ph{font-size:72px}
.ld-headrow{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.ld-headrow .ld-head{flex:1;min-width:0;margin-bottom:0}
.ld-qr{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px}
.ld-qr-box{width:168px;height:168px;background:#fff;border-radius:12px;padding:9px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center}
.ld-qr-box img,.ld-qr-box canvas,.ld-qr-box table{width:100%!important;height:100%!important;border-radius:4px}
.ld-qr span{font-size:11.5px;font-weight:700;color:var(--ink-3);letter-spacing:.02em}
@media (max-width:560px){.ld-headrow{gap:12px}.ld-headrow .ld-head h1{font-size:20px}.ld-qr-box{width:112px;height:112px;padding:6px}.ld-qr span{font-size:10px}}
.ld-head{margin-bottom:16px}
.ld-head h1{font-size:24px;font-weight:900;margin-bottom:10px;line-height:1.25}
.ld-price-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.ld-price{font-size:24px;font-weight:900;color:var(--blue)}
.badge{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;border:1px solid var(--line)}
.badge-gray{background:var(--surface-2);color:var(--ink-3)}
.badge-orange{background:#fff8e1;color:#ef4444;border-color:rgba(239,68,68,.25)}
.badge-verified{background:rgba(96,165,250,.14);color:#2f7fd6;border-color:rgba(96,165,250,.4)}
html[data-theme="dark"] .badge-verified{color:#7fb4ff}
html[data-theme="dark"] .badge-orange{background:rgba(239,68,68,.14)}
.ld-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--ink-3)}
.ld-desc{margin-bottom:16px}
.ld-desc h3,.ld-contact h3,.ld-cs-h{font-size:15px;font-weight:800;margin-bottom:8px}
.ld-desc p{font-size:14.5px;line-height:1.7;white-space:pre-wrap;color:var(--ink-2)}
.ld-contact{margin-bottom:16px}
.ld-contact h3{margin-bottom:0}
.ld-sep{height:1px;background:var(--line);margin:12px 0 14px}
.ld-contact-inner{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ld-mini{display:flex;align-items:center;gap:10px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:8px 10px;margin-bottom:12px}
.ld-mini img{width:52px;height:44px;object-fit:cover;border-radius:6px;flex-shrink:0}
.ld-mini b{font-size:13.5px;display:block;line-height:1.3}
.ld-mini-price{font-size:13px;color:var(--blue);font-weight:700}
.ld-contact-inner label{display:block;font-size:13px;font-weight:700;margin:0 0 4px}
.ld-contact-inner label i{color:var(--heart);font-style:normal}
.ld-input{width:100%;background:var(--surface-2);border:1.5px solid var(--line);border-radius:var(--r-sm);padding:10px 12px;color:var(--ink);font-family:var(--font);font-size:14px;outline:none;margin-bottom:10px;transition:border-color .15s}
.ld-input:focus{border-color:var(--blue)}
.ld-input-err{border-color:#E0245E!important;background:rgba(224,36,94,.06)}
.ld-textarea{min-height:150px;resize:vertical;margin-bottom:0}
.ld-msg-col{display:flex;flex-direction:column;gap:10px}
.ld-full{width:100%}
.ld-hint{text-align:center;font-size:13px;color:var(--ink-3);margin-top:2px}
.ld-hint a{color:var(--blue);font-weight:700}
.ld-disclaimer{font-size:12px;color:var(--ink-3);line-height:1.55;margin-top:12px}
/* sidebar */
.ld-sidebar{position:sticky;top:calc(var(--nav-h) + 16px);display:flex;flex-direction:column;gap:14px}
.ld-buy{display:flex;flex-direction:column;gap:10px}
.ld-qty{display:flex;align-items:center;gap:10px;margin-bottom:4px;font-size:13.5px}
.qty-step{display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden}
.qty-step button{width:34px;height:34px;font-size:18px;font-weight:700;color:var(--ink);background:var(--surface-2)}
.qty-step button:hover{background:var(--line)}
.qty-step input{width:44px;height:34px;text-align:center;border:none;border-left:1px solid var(--line);border-right:1px solid var(--line);background:var(--surface);color:var(--ink);font-weight:700;font-family:var(--font)}
.ld-seller{overflow:hidden}
.ld-seller-cover{height:72px;background:linear-gradient(135deg,var(--blue),var(--blue-dark));background-size:cover;background-position:center}
.ld-seller-body{padding:0 16px 16px;margin-top:-26px}
.ld-seller-av{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid var(--surface);background:var(--surface-2);display:block;margin-bottom:8px}
.ld-seller-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.ld-seller-name a{font-weight:800;font-size:15px;color:var(--ink)}
.ld-seller-count{font-size:13px;margin-bottom:12px}
.ld-related{margin-top:30px}
@media (max-width:860px){.ld-grid{grid-template-columns:1fr}.ld-sidebar{position:static}}
@media (max-width:560px){.ld-contact-inner{grid-template-columns:1fr}}

/* ---------- Marketplace (legacy detail page) ---------- */
.market-wrap{max-width:1180px;margin:0 auto;padding:24px 16px 80px}
.market-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.market-head h1{font-size:26px;font-weight:900;flex:1}
.market-search{display:flex;align-items:center;gap:8px;background:var(--surface);border-radius:999px;padding:10px 16px;box-shadow:var(--shadow);min-width:240px}
.market-search svg{width:18px;height:18px;flex-shrink:0;color:var(--ink-3)}
.market-search input{border:none;outline:none;background:none;flex:1;min-width:0;color:var(--ink)}
.market-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:14px;scrollbar-width:none}
.market-cats::-webkit-scrollbar{display:none}
.market-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(218px,1fr));gap:16px}
.mk-card{cursor:pointer;transition:transform .18s,box-shadow .18s}
.mk-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.mk-img{aspect-ratio:4/3;overflow:hidden;background:var(--blue-soft)}
.mk-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.mk-card:hover .mk-img img{transform:scale(1.05)}
.mk-body{padding:11px 13px 13px}
.mk-price{font-weight:900;font-size:17px}
.mk-title{font-size:14px;color:var(--ink-2);margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mk-loc{font-size:12.5px;color:var(--ink-3);margin-top:5px}
.mk-detail{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:760px){.mk-detail{grid-template-columns:1fr}}
.mk-detail-img{border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.mk-detail-info h2{font-size:24px;font-weight:900}
.mk-detail-info .price{font-size:28px;font-weight:900;color:var(--blue);margin:6px 0 14px}
.seller-row{display:flex;align-items:center;gap:10px;padding:12px;background:var(--canvas);border-radius:var(--r-sm);margin-top:16px}

/* ---------- Profile ---------- */
.profile-cover{height:280px;border-radius:0 0 var(--r) var(--r);overflow:hidden;background:linear-gradient(120deg,var(--blue-dark),var(--blue))}
.profile-cover img{width:100%;height:100%;object-fit:cover}
.profile-bar{max-width:1000px;margin:-48px auto 0;padding:0 24px;display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}
.profile-bar .pav{width:140px;height:140px;border-radius:50%;border:5px solid var(--surface);object-fit:cover;background:#fff;box-shadow:var(--shadow)}
.profile-bar .pinfo{flex:1;padding-bottom:14px;min-width:200px}
.profile-bar h1{font-size:28px;font-weight:900}
.profile-body{max-width:680px;margin:24px auto 0;padding:0 16px 80px}

/* ---------- Right rail ---------- */
.sug{display:flex;align-items:center;gap:10px;padding:9px 0}
.sug .si{flex:1;min-width:0}
.sug b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-card{padding:16px}
.side-card h4{font-size:16px;color:var(--ink-2);margin-bottom:6px}

/* ---------- Auth ---------- */
.auth-stage{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;position:relative;overflow:hidden;background:radial-gradient(125% 125% at 25% 12%,#3b2c9c 0%,#291e70 36%,#18133d 70%,#0E0E12 100%)}
.auth-stage>.auth-hero,.auth-stage>.auth-panel{position:relative;z-index:3}
.auth-hero{display:flex;flex-direction:column;justify-content:center;padding:8vw;color:#fff}
.auth-hero .logo{font-size:54px;font-weight:900;letter-spacing:-2px}
.auth-hero .logo em{font-style:normal;color:#FF8FAB}
.auth-wordmark{display:block;width:min(300px,100%);height:auto}   /* gen-z.social: the logo instead of the name in text */
.auth-hero p{font-size:21px;max-width:420px;opacity:.92;margin-top:14px;font-weight:300}
.auth-hero .feat{display:flex;gap:12px;margin-top:34px;flex-wrap:wrap}
.feat-card{display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);padding:12px 17px;border-radius:14px;font-size:14px;font-weight:800;color:#fff;transition:transform .12s,background .15s,border-color .15s}
.feat-card .feat-ic{font-size:18px;line-height:1}
.feat-card:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.4);transform:translateY(-2px)}
.feat-card:active{transform:scale(.97)}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:24px}
.auth-card{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-lg);padding:34px;width:100%;max-width:410px}
.auth-card h2{font-size:24px;font-weight:900;margin-bottom:4px}
.auth-card .sub{color:var(--ink-3);margin-bottom:20px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:700;color:var(--ink-2);margin-bottom:5px}
.field input,.field textarea,.field select{width:100%;border:1.5px solid var(--line);border-radius:var(--r-sm);padding:11px 14px;outline:none;background:var(--surface);transition:border .15s}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue)}
.auth-or{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--ink-3);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-social{display:flex;flex-direction:column;align-items:center;gap:10px}
.auth-social #google-signin{min-height:40px;color-scheme:light}
.fb-btn{display:flex;align-items:center;justify-content:center;gap:9px;width:300px;max-width:100%;padding:11px 16px;border-radius:999px;background:#1877F2;color:#fff;font-weight:700;font-size:14.5px;border:none;cursor:pointer;transition:filter .15s,transform .1s}
.fb-btn:hover{filter:brightness(1.06)}
.fb-btn:active{transform:scale(.98)}
.fb-btn svg{flex:0 0 18px}
.gbtn{display:flex;align-items:center;justify-content:center;gap:9px;width:300px;max-width:100%;padding:11px 16px;border-radius:999px;background:#fff;color:#3c4043;font-weight:700;font-size:14.5px;border:1px solid #dadce0;cursor:pointer;transition:filter .15s,transform .1s}
.gbtn:hover{background:#f7f8f9}
.gbtn:active{transform:scale(.98)}
.gbtn svg{flex:0 0 18px}
html[data-theme=dark] .gbtn{background:#1a73e8;color:#fff;border-color:transparent}
html[data-theme=dark] .gbtn:hover{filter:brightness(1.06)}
.auth-switch{text-align:center;margin-top:16px;color:var(--ink-3)}
.auth-switch button{color:var(--blue);font-weight:700}
.auth-terms{text-align:center;margin:16px 4px 0;font-size:12.5px;line-height:1.55;color:var(--ink-3)}
.auth-terms a{color:var(--blue);font-weight:600}
.auth-forgot{text-align:right;margin:-6px 0 12px}
.auth-forgot button{color:var(--blue);font-weight:700;font-size:13px}
/* sign-in card: "Remember me" on the left, "Forgot password?" on the right */
.auth-opts{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:-6px 0 14px}
.auth-opts .auth-forgot{margin:0}
.auth-remember{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-2);cursor:pointer;user-select:none;-webkit-user-select:none}
.auth-remember input{width:17px;height:17px;margin:0;accent-color:var(--blue);cursor:pointer;flex:none}
/* the eye button inside a password box */
.pw-wrap{position:relative}
.field .pw-wrap input{padding-right:48px}
.pw-wrap input::-ms-reveal,.pw-wrap input::-ms-clear{display:none}   /* Edge draws its own eye otherwise */
.pw-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;border-radius:9px;color:var(--ink-3);background:none;cursor:pointer}
.pw-eye:hover{color:var(--ink)}
.pw-eye:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.pw-eye svg{width:20px;height:20px}
.demo-hint{margin-top:14px;text-align:center;font-size:13px;background:var(--blue-soft);color:var(--blue);padding:9px;border-radius:var(--r-sm);font-weight:700}
/* mobile auth: single column, compact hero (logo + feature cards), tagline hidden */
@media (max-width:860px){
  .auth-stage{grid-template-columns:1fr}
  .auth-hero{display:flex;flex-direction:column;justify-content:flex-start;padding:26px 18px 4px}
  .auth-hero .logo{font-size:36px;text-align:center}
  .auth-wordmark{width:min(190px,56vw);margin:0 auto}
  .auth-hero p{display:none}
  .auth-hero .feat{margin-top:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
  .feat-card{justify-content:center;padding:16px 10px;font-size:14px}
  .auth-panel{padding:18px 18px 30px}
}

/* ---------- Modal ---------- */
.modal-back{position:fixed;inset:0;background:rgba(18,17,25,.55);backdrop-filter:blur(3px);z-index:200;display:flex;align-items:center;justify-content:center;padding:18px;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.modal{background:var(--surface);border-radius:18px;box-shadow:var(--shadow-lg);width:100%;max-width:520px;max-height:88vh;overflow-y:auto;animation:rise .25s}
.modal-head{display:flex;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:2}
.modal-head h3{flex:1;text-align:center;font-size:19px;font-weight:900}
.modal-body{padding:20px}
.upload-zone{border:2px dashed var(--line);border-radius:var(--r);padding:26px;text-align:center;color:var(--ink-3);cursor:pointer;transition:.15s;margin-bottom:14px}
.upload-zone:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}
.upload-preview{max-height:300px;border-radius:var(--r);margin:0 auto 14px}

/* ---------- Toast & misc ---------- */
#toast-root{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:500;display:flex;flex-direction:column;gap:8px;align-items:center}
.toast{background:var(--blue);color:var(--on-accent);padding:11px 22px;border-radius:999px;font-weight:700;font-size:14px;box-shadow:var(--shadow-lg);animation:rise .25s}
.toast.err{background:var(--heart);color:#fff}
/* Undo bar (undoBar in app.js): a dark rounded bar for ~3 s after a post-menu choice — the message, then "Undo".
   Phones: just above the floating bottom menu (where toasts go too); wider screens: near the bottom edge. */
.undo-bar{position:fixed;left:50%;bottom:24px;z-index:460;display:flex;align-items:center;gap:16px;width:min(560px,calc(100% - 24px));
  padding:14px 16px 14px 18px;border-radius:16px;background:#1f2023;color:#fff;box-shadow:0 12px 32px rgba(0,0,0,.32);
  font-size:15px;line-height:1.35;opacity:0;transform:translate(-50%,14px);transition:opacity .22s ease,transform .22s ease}
.undo-bar.show{opacity:1;transform:translate(-50%,0)}
.undo-msg{flex:1;min-width:0}
.undo-btn{flex:0 0 auto;background:none;border:0;padding:6px 4px;margin:-6px -2px -6px 0;color:#6ea8ff;font:inherit;font-weight:700;cursor:pointer}
.undo-btn:hover{text-decoration:underline}
html[data-theme="dark"] .undo-bar{background:#3a3b3c}
html[data-theme="dark"] .undo-btn{color:#8ab4f8}
@media (max-width:680px){
  .undo-bar,#toast-root{bottom:calc(var(--mob-nav-gap, 16px) + var(--mob-nav-h, 56px) + 10px)}
  body:has(.msgr.has-thread) .undo-bar,body:has(.msgr.has-thread) #toast-root{bottom:calc(env(safe-area-inset-bottom, 0px) + 16px)}   /* no menu in a chat */
  /* the news feed slid its menu away (scrolling down): the bar drops to the edge, and rises with the menu */
  .undo-bar{transition:opacity .22s ease,transform .22s ease,bottom .25s ease}
  #toast-root{transition:bottom .25s ease}
  body:has(#app .mob-nav.mob-nav-hide) .undo-bar,body:has(#app .mob-nav.mob-nav-hide) #toast-root{bottom:calc(env(safe-area-inset-bottom, 0px) + 16px)}
}
/* Live alert toasts (5s poll: friend request / profile visit / new post from followed) — rise from the bottom and fade away within 2s */
#alert-stack{position:fixed;left:0;right:0;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:1200;display:flex;flex-direction:column-reverse;align-items:center;gap:8px;padding:0 12px;pointer-events:none}
@media(min-width:681px){#alert-stack{bottom:26px;align-items:flex-start;left:auto;right:20px;padding:0}}
.al-toast{pointer-events:auto;display:flex;align-items:center;gap:10px;max-width:340px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);border-radius:999px;padding:7px 16px 7px 7px;text-decoration:none;color:var(--ink);will-change:transform,opacity;animation:alRise 2s ease both}
.al-toast img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.al-toast .al-ic{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--blue);color:var(--on-accent);font-size:17px;flex:0 0 auto}
.al-toast .al-ic-profile_view{background:#0EA5E9}.al-toast .al-ic-follow{background:#16a34a}.al-toast .al-ic-newpost{background:#7C3AED}
.al-toast .al-txt{font-size:13.5px;font-weight:600;line-height:1.3;color:var(--ink)}
.al-toast .al-txt b{font-weight:800}
@keyframes alRise{0%{opacity:0;transform:translateY(26px)}14%{opacity:1;transform:translateY(0)}72%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-14px)}}
.spinner{width:34px;height:34px;border:3.5px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin:40px auto}
.empty{text-align:center;padding:50px 20px;color:var(--ink-3)}
.empty .big{font-size:44px;margin-bottom:8px}

/* ---------- Mobile bottom nav ---------- */
.mob-nav{display:none;position:fixed;inset:auto 0 0 0;background:var(--surface);border-top:1px solid var(--line);z-index:100;padding-bottom:env(safe-area-inset-bottom)}
.mob-nav .row{display:flex}
.mob-nav a{flex:1;display:flex;flex-direction:column;align-items:center;padding:8px 0 6px;color:var(--ink-3);font-size:10.5px;font-weight:700;gap:2px}
.mob-nav a.active{color:var(--blue)}
.mob-nav svg{width:24px;height:24px}
@media (max-width:680px){
  .mob-nav{display:block}
  .nav-tabs,.nav-search{display:none}
  .shell{padding-bottom:120px}
  .nav{padding:calc(var(--safe-top) + 10px + var(--imp-h, 0px)) 14px 0;gap:10px}
  .nav-logo{margin-right:auto}
  /* full-width feed cards (edge-to-edge media) */
  .shell{padding-left:0;padding-right:0}
  main>.card,#feed .card{border-radius:0;box-shadow:none}
  .post{margin-bottom:8px}
  /* a profile's Timeline tab: the same full-width cards (out past .pd-wrap's 16px sides) */
  #pf-posts{max-width:none;margin-left:-16px;margin-right:-16px;padding-left:0;padding-right:0}
  #pf-posts>.card{border-radius:0;box-shadow:none}
}
/* Phones: the header is not pinned — it scrolls away with the page (its room, padding-top:var(--nav-h), stays).
   Pages and apps that draw under the status bar (the iOS / Android apps, an installed PWA) keep a strip in the
   header's colour behind the clock, so the page never scrolls under it; in a browser tab --safe-top is 0. */
@media (max-width:680px){
  .nav{position:absolute}
  body::before{content:'';position:fixed;inset:0 0 auto 0;height:var(--safe-top);z-index:99;pointer-events:none;
    background:rgba(255,255,255,.82);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}
  html[data-theme="dark"] body::before{background:rgba(14,14,18,.88)}
  /* (body-prefixed: their own rules come LATER in this file, and an equal-specificity override above them loses) */
  body .sxi{top:var(--safe-top)}   /* Settings pill bar: sticks under the status bar now, not under a pinned header */
  body .anx{position:absolute}     /* admin notch: hangs from the header, so it scrolls away with it */
  /* every page (round 105; was the news feed only): the bottom menu slides away while you scroll down, back as you scroll up (mobNavAutoHide in app.js) */
  .mob-nav{transition:transform .25s ease}
  .mob-nav.mob-nav-hide{transform:translateY(calc(100% + 2px))}
}
/* the "Gen-Z Social" wordmark only from 480 px: at 431–455 px (iPhone 16/17 Pro Max = 440 pt) it pushed the header's last
   button (the bell) off the screen (owner 2026-11-24, iOS 3.5 build 13 / Android 311) */
@media (max-width:479px){.nav-word{display:none}}
@media (max-width:430px){
  .nav-mark{width:38px;height:38px;font-size:23px;border-radius:12px}
}

/* ---------- Admin panel ---------- */
.admin-wrap{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;max-width:1280px;margin:0 auto;padding:22px 16px 90px;align-items:start}
.admin-side{position:sticky;top:calc(var(--nav-h) + 20px);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;box-shadow:var(--shadow)}
.admin-side-title{display:flex;align-items:center;gap:9px;font-weight:900;font-size:15px;color:var(--blue);padding:6px 10px 12px}
.admin-side-title svg{width:20px;height:20px}
.admin-side nav{display:flex;flex-direction:column;gap:2px}
.admin-link2{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:var(--r-sm);color:var(--ink-2);font-weight:700;transition:background .15s,color .15s}
.admin-link2 svg{width:20px;height:20px;flex-shrink:0}
.admin-link2:hover{background:var(--canvas)}
.admin-link2.active{background:var(--blue-soft);color:var(--blue)}
.admin-back{margin-top:8px;color:var(--ink-3)}
/* sidebar groups + Settings submenu */
.admin-grp{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);padding:14px 12px 6px;border-top:1px solid var(--line);margin-top:8px}
.admin-grp:first-of-type{border-top:none;margin-top:0;padding-top:6px}
.admin-sub{border-radius:var(--r-sm)}
.admin-sub-sum{list-style:none;cursor:pointer}
.admin-sub-sum::-webkit-details-marker{display:none}
.admin-sub-arr{margin-left:auto;transition:transform .2s}
.admin-sub-arr svg{width:15px;height:15px}
.admin-sub[open] .admin-sub-arr{transform:rotate(90deg)}
.admin-sub-items{display:flex;flex-direction:column;gap:1px;padding:3px 0 3px 14px;margin-left:9px;border-left:1.5px solid var(--line)}
.admin-sublink{padding:7px 12px;border-radius:8px;color:var(--ink-3);font-size:13px;font-weight:600;transition:background .15s,color .15s}
.admin-sublink:hover{background:var(--canvas);color:var(--ink-2)}
.admin-sublink.active{background:var(--blue-soft);color:var(--blue);font-weight:700}
.admin-main{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px;box-shadow:var(--shadow)}
@media (max-width:980px){.admin-main{padding:16px}}
.admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.admin-head h1{font-size:26px;font-weight:900;display:flex;align-items:center;gap:10px}
.admin-head h1 svg{width:24px;height:24px}
/* settings page */
.set-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:22px;flex-wrap:wrap}
.set-tab{display:flex;align-items:center;gap:7px;padding:11px 16px;color:var(--ink-3);font-weight:700;font-size:14px;border-bottom:2.5px solid transparent;margin-bottom:-1px}
.set-tab svg{width:16px;height:16px}
.set-tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.set-toggle-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px dashed var(--line);margin-bottom:18px}
.set-toggle-ic{width:42px;height:42px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.set-toggle-ic svg{width:22px;height:22px}
.set-toggle-t{flex:1;min-width:0}
.set-sep{height:1px;background:var(--line);margin:6px 0 22px}
.set-toggle-row.set-sub{padding-left:56px;border-bottom:none;margin-bottom:10px}
.set-link{color:var(--blue);font-weight:600}
.grp-badge{display:inline-block;padding:3px 10px;border-radius:999px;color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.02em;vertical-align:middle}
.inv-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.inv-row code{font-weight:800;font-size:15px;letter-spacing:.06em;color:var(--blue)}
.set-note-warn{background:rgba(224,161,0,.12);color:#B07d00}
.up-watermark-box{width:90px;height:90px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink-3)}
.up-watermark-box svg{width:26px;height:26px}
.set-cols{display:flex;gap:28px;margin-bottom:8px}
.set-cols-label{flex:0 0 150px;font-size:13.5px;color:var(--ink-2);padding-top:2px}
.set-cols .set-checks{flex:1}
@media(max-width:680px){.set-cols{flex-direction:column;gap:10px}.set-cols-label{flex:none}}
.set-group-head{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:800;letter-spacing:.06em;color:var(--ink-3);text-transform:uppercase;margin:6px 0 14px}
.set-group-head svg{width:18px;height:18px}
.set-btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.btn-danger{background:#E0455A;color:#fff;display:inline-flex;align-items:center;gap:7px}
.btn-danger:hover{filter:brightness(.94)}
.btn-danger svg{width:17px;height:17px}
.btn-warning{background:#E0A100;color:#fff;display:inline-flex;align-items:center;gap:7px}
.btn-success{background:#22A565;color:#fff;display:inline-flex;align-items:center;gap:7px}
.btn-warning:hover,.btn-success:hover{filter:brightness(.94)}
.btn-warning svg,.btn-success svg{width:17px;height:17px}
.set-btn-row .grow{flex:1}
.set-cards{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.set-card{display:flex;flex-direction:column;align-items:center;gap:10px;width:130px;padding:20px 12px;border:2px solid var(--line);border-radius:14px;background:var(--surface);cursor:pointer;transition:border-color .15s,background .15s}
.set-card:hover{border-color:var(--ink-3)}
.set-card.selected{border-color:var(--blue);background:var(--blue-soft)}
.set-card-ic{width:54px;height:54px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;color:var(--ink-2);text-transform:lowercase}
.set-card span{font-size:14px;font-weight:700;color:var(--ink-3)}
.set-card.selected span{color:var(--ink)}
.set-radios{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.set-radio{display:flex;align-items:center;gap:7px;font-size:14px;color:var(--ink);cursor:pointer}
.set-radio input{width:16px;height:16px;accent-color:var(--blue);cursor:pointer}
.set-checks{display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.set-inline{display:flex;gap:10px;align-items:center}
.set-inline .set-input{flex:1}
.set-inline .set-inline-unit{flex:0 0 130px}
.set-note{display:flex;align-items:center;gap:10px;background:var(--blue-soft);color:var(--blue);border-radius:var(--r-sm);padding:13px 16px;font-size:13.5px;font-weight:600;margin-bottom:20px}
.set-note svg{width:20px;height:20px;flex-shrink:0}
.priv-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}
.priv-item{display:flex;flex-direction:column;gap:8px;min-width:0}
.priv-item>label{font-size:13.5px;color:var(--ink-2)}
.priv-ic{width:38px;height:38px;border-radius:8px;background:var(--surface-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink-2)}
.priv-ic svg{width:19px;height:19px}
@media (max-width:760px){.priv-grid{grid-template-columns:1fr}}
.set-toggle-t b{font-size:16px;font-weight:800}
.set-switch{display:inline-block;position:relative;width:50px;height:28px;flex-shrink:0;vertical-align:middle}
.set-switch input{position:absolute;opacity:0;width:0;height:0}
.set-switch span{position:absolute;inset:0;background:rgba(130,135,148,.45);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);border-radius:999px;transition:background .2s;cursor:pointer}
.set-switch span::before{content:'';position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.set-switch input:checked + span{background:var(--green)}
.set-switch input:checked + span::before{transform:translateX(22px)}
.set-field{display:flex;flex-direction:column;margin-bottom:20px;max-width:760px}
.set-field>label{font-size:14px;font-weight:800;color:var(--ink);margin-bottom:8px}
.set-field .ad-dim{margin-top:6px;font-size:13px}
.set-input{width:100%;background:var(--surface-2);border:1.5px solid var(--line);border-radius:var(--r-sm);padding:11px 14px;color:var(--ink);font-family:var(--font);font-size:14px;outline:none;resize:vertical;transition:border-color .15s}
.set-input:focus{border-color:var(--blue)}
select.set-input{background:var(--surface);cursor:pointer}
#set-panel .btn-primary{margin-top:6px}
.set-placeholder{padding:56px 24px;text-align:center;color:var(--ink-3)}
/* Profile editor (Edit Profile → #/settings) — Sngine-style section cards */
.eps{max-width:920px;margin:0 auto;display:flex;flex-direction:column;gap:22px;padding:81px 0 40px}
.eps-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px 26px 22px}
.eps-title{font-size:26px;font-weight:900;letter-spacing:-.5px;margin:0 0 20px;color:var(--ink)}
.eps-warn{display:flex;align-items:center;gap:10px;background:rgba(245,166,35,.12);border:1px solid rgba(245,166,35,.3);color:#e0941a;border-radius:12px;padding:14px 16px;font-weight:700;font-size:14px;margin-bottom:22px}
.eps-warn svg{width:20px;height:20px;flex-shrink:0;fill:currentColor}
.eps-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.eps-grid-3{grid-template-columns:1fr 1fr 1fr;margin-top:16px}
.eps-f{display:flex;flex-direction:column;margin-bottom:16px;min-width:0}
.eps-grid .eps-f,.eps-grid-3 .eps-f{margin-bottom:0}
.eps-f>label{font-size:13px;color:var(--muted);margin:0 0 5px 2px;font-weight:600}
.eps-in{width:100%;background:var(--surface-2);border:none;border-bottom:1.5px solid var(--line);border-radius:8px 8px 0 0;padding:12px 14px;color:var(--ink);font-family:var(--font);font-size:15.5px;outline:none;resize:vertical;transition:border-color .15s}
.eps-in:focus{border-bottom-color:var(--blue)}
select.eps-in{cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px;padding-right:38px}
textarea.eps-in{min-height:90px;border-radius:8px;border:1.5px solid var(--line)}
.eps-hint{font-size:12.5px;color:var(--muted);margin:6px 0 0 2px}
.eps-actions{display:flex;justify-content:center;margin-top:24px}
.eps-save{min-width:200px;border-radius:999px;font-weight:800;padding:13px 28px}
@media(max-width:680px){.eps-grid,.eps-grid-3{grid-template-columns:1fr}.eps-card{padding:20px 18px}.eps-title{font-size:22px}}
.set-ph-ic{width:64px;height:64px;margin:0 auto 16px;border-radius:18px;background:var(--canvas);display:flex;align-items:center;justify-content:center;color:var(--ink-3)}
.set-ph-ic svg{width:32px;height:32px}
.set-placeholder h3{color:var(--ink);font-size:18px;margin-bottom:6px}

/* ---------- Maintenance mode ---------- */
.maint{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(135deg,#0E0E12 0%,#3a2a9a 60%,#7B5CFF 100%)}
.maint-card{max-width:460px;width:100%;text-align:center;color:#fff;padding:20px}
.maint-mark{width:74px;height:74px;margin:0 auto 24px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:44px;font-weight:900;color:#fff;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 40px rgba(0,0,0,.25)}
.maint-mark em{font-style:normal;color:var(--heart)}
.maint-card h1{font-size:30px;font-weight:900;margin-bottom:12px}
.maint-card p{font-size:16px;line-height:1.55;color:rgba(255,255,255,.85);margin-bottom:26px;white-space:pre-wrap}
.maint-staff{background:rgba(255,255,255,.16);color:#fff;font-weight:700}
.maint-staff:hover{background:rgba(255,255,255,.26)}
.maint-banner{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:150;background:var(--gold);color:var(--on-accent);padding:10px 18px;border-radius:999px;font-size:13px;font-weight:700;box-shadow:0 8px 30px rgba(0,0,0,.3);max-width:92vw}
.maint-banner a{color:var(--on-accent);text-decoration:underline;font-weight:800;margin-left:4px}

/* ---------- Login As (admin): a strip across the top of the header while an administrator browses as someone ----------
   html.imp-on sets --imp-h, and every header offset (--nav-h, the .nav top padding, .nav-tabs, .setx-side) adds it, so
   the strip pushes the page down instead of covering it. On phones it scrolls away with the header; the menu has
   "Back to admin" too. Amber = acting as someone else (app.js impBarHtml / impBack). */
html.imp-on{--imp-h:36px}
.imp-bar{position:absolute;left:0;right:0;top:env(safe-area-inset-top, 0px);height:var(--imp-h);display:flex;align-items:center;justify-content:center;gap:10px;padding:0 12px;
  background:#F5A524;color:#2a1a00;font-size:13px;font-weight:700;line-height:1.2;z-index:3;box-shadow:inset 0 -1px 0 rgba(0,0,0,.08)}
.imp-av{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0;box-shadow:0 0 0 2px rgba(255,255,255,.75)}
.imp-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imp-t b{font-weight:900}
.imp-back{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;height:26px;padding:0 12px 0 10px;border:0;border-radius:999px;background:#2a1a00;color:#fff;
  font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;transition:transform .15s,background .15s}
.imp-back:hover{background:#000}
.imp-back:active{transform:scale(.96)}
.imp-back:disabled{opacity:.6;cursor:default}
.imp-back svg{width:15px;height:15px;flex-shrink:0}
@media (max-width:680px){ .imp-bar{top:var(--safe-top);padding:0 10px} }
html.native .imp-bar{top:var(--safe-top)}
.nm-item.nm-imp,.nm-item.nm-imp .nm-i{color:#8a5200}
html[data-theme="dark"] .nm-item.nm-imp,html[data-theme="dark"] .nm-item.nm-imp .nm-i{color:#F5A524}

/* ---------- Photo cropper ---------- */
.crop-stage{display:flex;justify-content:center}
.crop-frame{position:relative;width:300px;height:300px;max-width:76vw;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--surface-2);cursor:grab;touch-action:none;box-shadow:0 0 0 2px var(--blue) inset}
.crop-frame:active{cursor:grabbing}
.crop-frame img{position:absolute;max-width:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;pointer-events:none}
.crop-zoom{display:flex;align-items:center;gap:12px;margin-top:18px;color:var(--ink-3)}
.crop-zoom span{font-size:18px;font-weight:800;width:14px;text-align:center}
.crop-zoom input[type=range]{flex:1;accent-color:var(--blue);cursor:pointer}
.crop-hint{text-align:center;font-size:12.5px;color:var(--ink-3);margin-top:10px}
.crop-actions{display:flex;gap:10px;margin-top:16px}
.crop-actions .btn{flex:1}
.admin-head p{margin-top:2px;font-size:14px}
.admin-head-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1.5px solid var(--line);border-radius:999px;padding:9px 15px;color:var(--ink-3);min-width:230px;transition:border-color .15s}
.admin-search:focus-within{border-color:var(--blue)}
.admin-search svg{width:18px;height:18px;flex-shrink:0}
.admin-search input{flex:1;border:none;background:none;outline:none;min-width:0;color:var(--ink)}
.admin-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:14px}
.stat-card{display:block;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s}
a.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.stat-ic{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue);margin-bottom:10px}
.stat-ic svg{width:22px;height:22px}
.stat-v{font-size:28px;font-weight:900;line-height:1}
.stat-l{font-size:13px;color:var(--ink-3);font-weight:700;margin-top:4px}
.admin-mini{display:flex;gap:14px;margin-top:14px;flex-wrap:wrap}
.mini-card{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);padding:14px 22px;box-shadow:var(--shadow)}
.mini-card b{font-size:22px;font-weight:900;display:block}
.mini-card span{font-size:12.5px;color:var(--ink-3);font-weight:700}
.mus-ic{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:var(--blue-soft);color:var(--blue);display:flex;align-items:center;justify-content:center}
.mus-ic svg{width:19px;height:19px}
.mus-play svg{fill:currentColor}
/* ---- AuroraUI admin dashboard ---- */
.aurora-dash{position:relative}
.aurora-dash::before{content:"";position:absolute;inset:-30px -16px;z-index:0;pointer-events:none;border-radius:28px;
  background:
    radial-gradient(42% 52% at 12% -5%, rgba(99,102,241,.20), transparent 70%),
    radial-gradient(46% 56% at 88% 8%, rgba(236,72,153,.16), transparent 70%),
    radial-gradient(50% 60% at 35% 105%, rgba(34,211,238,.15), transparent 72%),
    radial-gradient(44% 54% at 95% 95%, rgba(34,197,94,.13), transparent 72%);
  filter:blur(26px)}
.aurora-dash .admin-stats,.aurora-dash .admin-mini{position:relative;z-index:1}
:root{--aurora-glass:linear-gradient(150deg,rgba(255,255,255,.82),rgba(255,255,255,.5));--aurora-bd:rgba(255,255,255,.7)}
html[data-theme="dark"]{--aurora-glass:linear-gradient(150deg,rgba(34,44,72,.62),rgba(16,22,38,.5));--aurora-bd:rgba(255,255,255,.10)}
.aurora-card{position:relative;overflow:hidden;background:var(--aurora-glass);border:1px solid var(--aurora-bd);box-shadow:0 8px 30px rgba(var(--gold-rgb),.10),inset 0 1px 0 rgba(255,255,255,.25);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition:transform .16s,box-shadow .16s,border-color .16s}
.stat-card.aurora-card:hover,.mini-card.aurora-card:hover{transform:translateY(-3px);box-shadow:0 16px 44px rgba(var(--gold-rgb),.20),inset 0 1px 0 rgba(255,255,255,.3)}
.aurora-card>*{position:relative;z-index:1}
.aurora-glow{position:absolute;z-index:0;width:150px;height:150px;border-radius:50%;top:-52px;right:-44px;filter:blur(34px);opacity:.5;pointer-events:none;transition:opacity .2s}
.aurora-card:hover .aurora-glow{opacity:.8}
.stat-v{position:relative;z-index:1}
/* aurora hues — glow blob + icon tile tint */
.a-blue .aurora-glow{background:#3b82f6}.a-blue .stat-ic{background:rgba(59,130,246,.18);color:#3b82f6}
.a-violet .aurora-glow{background:#8b5cf6}.a-violet .stat-ic{background:rgba(139,92,246,.18);color:#8b5cf6}
.a-pink .aurora-glow{background:#ec4899}.a-pink .stat-ic{background:rgba(236,72,153,.18);color:#ec4899}
.a-green .aurora-glow{background:#22c55e}.a-green .stat-ic{background:rgba(34,197,94,.18);color:#16a34a}
.a-amber .aurora-glow{background:#f59e0b}.a-amber .stat-ic{background:rgba(245,158,11,.18);color:#E0820F}
.a-cyan .aurora-glow{background:#22d3ee}.a-cyan .stat-ic{background:rgba(34,211,238,.18);color:#0891b2}
.a-rose .aurora-glow{background:#f43f5e}.a-rose .stat-ic{background:rgba(244,63,94,.18);color:#f43f5e}
.a-indigo .aurora-glow{background:#6366f1}.a-indigo .stat-ic{background:rgba(99,102,241,.18);color:#6366f1}
html[data-theme="dark"] .a-green .stat-ic{color:#22c55e}
html[data-theme="dark"] .a-amber .stat-ic{color:#f59e0b}
html[data-theme="dark"] .a-cyan .stat-ic{color:#22d3ee}
/* ---- Dashboard stat cards (dark "styledark" look): label + icon-circle, big colored value, gradient accent line ---- */
.stat-card.sc{position:relative;overflow:hidden;display:block;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 16px 15px;box-shadow:var(--shadow);transition:transform .15s,border-color .15s,box-shadow .15s}
html[data-theme="dark"] .stat-card.sc{background:#0f1117;border-color:rgba(255,255,255,.07);box-shadow:0 6px 22px rgba(0,0,0,.35)}
.stat-card.sc:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.sc-line{position:absolute;top:0;left:0;right:0;height:2px}
.sc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:14px}
.sc-label{font-size:10.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);line-height:1.35;max-width:74%}
.sc-ic{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--ink-3)}
html[data-theme="dark"] .sc-ic{background:rgba(255,255,255,.06)}
.sc-ic svg{width:16px;height:16px}
.sc-val{font-size:28px;font-weight:900;line-height:1;margin-bottom:6px}
.sc-sub{font-size:12px;font-weight:600;color:var(--ink-3)}
.mini-card.sc{position:relative;overflow:hidden}
.mini-card.sc b{font-size:24px}
/* per-card hue: value colour + top accent line + icon tint */
.sc-blue .sc-val{color:#5b8cff}.sc-blue .sc-line{background:linear-gradient(90deg,#5b8cff,transparent 80%)}.sc-blue .sc-ic{color:#5b8cff}
.sc-violet .sc-val{color:#a78bfa}.sc-violet .sc-line{background:linear-gradient(90deg,#a78bfa,transparent 80%)}.sc-violet .sc-ic{color:#a78bfa}
.sc-pink .sc-val{color:#f472b6}.sc-pink .sc-line{background:linear-gradient(90deg,#f472b6,transparent 80%)}.sc-pink .sc-ic{color:#f472b6}
.sc-green .sc-val{color:#34d399}.sc-green .sc-line{background:linear-gradient(90deg,#34d399,transparent 80%)}.sc-green .sc-ic{color:#34d399}
.sc-amber .sc-val{color:#fbbf24}.sc-amber .sc-line{background:linear-gradient(90deg,#fbbf24,transparent 80%)}.sc-amber .sc-ic{color:#fbbf24}
.sc-cyan .sc-val{color:#22d3ee}.sc-cyan .sc-line{background:linear-gradient(90deg,#22d3ee,transparent 80%)}.sc-cyan .sc-ic{color:#22d3ee}
.sc-rose .sc-val{color:#fb7185}.sc-rose .sc-line{background:linear-gradient(90deg,#fb7185,transparent 80%)}.sc-rose .sc-ic{color:#fb7185}
.sc-indigo .sc-val{color:#818cf8}.sc-indigo .sc-line{background:linear-gradient(90deg,#818cf8,transparent 80%)}.sc-indigo .sc-ic{color:#818cf8}
.admin-table-wrap{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);overflow-x:auto;box-shadow:var(--shadow)}
.admin-table{width:100%;border-collapse:collapse;font-size:14px}
.admin-table th{text-align:left;padding:12px 14px;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface)}
.admin-table td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
.admin-table tr:last-child td{border-bottom:none}
.admin-table tbody tr:hover{background:var(--surface)}
.ad-user{display:flex;align-items:center;gap:10px}
.ad-user img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--blue-soft);flex-shrink:0}
.ad-user b{display:block;font-weight:700;white-space:nowrap}
.ad-user span{font-size:12.5px;color:var(--ink-3)}
.ad-dim{color:var(--ink-3);white-space:nowrap}
.modal-body p.ad-dim{white-space:normal}   /* explanations in pop-ups wrap (the Telegram code form ran off phone screens) */
.ad-text{max-width:300px;min-width:160px;white-space:normal}
.ad-thumb{width:46px;height:46px;border-radius:9px;object-fit:cover;background:var(--canvas)}
.ad-thumb-vid,.ad-thumb-empty{display:flex;align-items:center;justify-content:center;color:var(--ink-3)}
.ad-thumb-vid{background:var(--ink);color:#fff}
.ad-thumb-vid svg,.ad-thumb-empty svg{width:20px;height:20px}
.ad-thumb-story{width:38px;height:60px;border-radius:7px}
.ad-badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--canvas);color:var(--ink-2)}
.ad-badge-admin{background:var(--blue-soft);color:var(--blue)}
.ad-actions{display:flex;gap:5px;justify-content:flex-end}
/* Admin tables with checkboxes (cfg.bulk — Admin › Products): the select column, a checked row, the bulk bar */
.admin-table th.ad-sel,.admin-table td.ad-sel{width:46px;padding:0 0 0 8px;text-align:center}
.admin-table td.ad-sel label{display:flex;align-items:center;justify-content:center;width:38px;height:46px;margin:0;cursor:pointer}
.admin-table .ad-sel input{width:18px;height:18px;margin:0;accent-color:var(--gold);cursor:pointer;vertical-align:middle}
.admin-table .ad-sel input:disabled{cursor:default;opacity:.4}
.admin-table tbody tr.ad-row-sel,.admin-table tbody tr.ad-row-sel:hover{background:rgba(var(--gold-rgb),.10)}
.ad-bulk{position:sticky;bottom:16px;z-index:6;display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px 10px 16px;background:var(--surface);border:1px solid rgba(var(--gold-rgb),.4);border-radius:14px;box-shadow:var(--shadow-lg)}
.ad-bulk[hidden]{display:none}
.ad-bulk-n{flex:1;min-width:0;font-weight:700}
.ad-bulk .btn{white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.ad-bulk .btn svg{width:16px;height:16px}
@media (max-width:680px){.ad-bulk{bottom:calc(env(safe-area-inset-bottom,0px) + 84px);padding:8px 8px 8px 14px}.ad-bulk .btn{padding-left:12px;padding-right:12px}}
/* phones (≤760px, where admin tables become stacked cards): the checkbox sits in the card's top-right corner instead of
   a line of its own, and a checked card is tinted (the card rule outranks the desktop row tint) */
@media (max-width:760px){
  .admin-main .admin-table:not(.stf-dt) tbody tr:has(> td.ad-sel){position:relative}
  .admin-main .admin-table:not(.stf-dt) tbody td.ad-sel{position:absolute;top:4px;right:4px;display:block;width:auto!important;padding:0;border:0;z-index:1}
  .admin-main .admin-table:not(.stf-dt) tbody td.ad-sel label{width:44px;height:44px}
  .admin-main .admin-table:not(.stf-dt) tbody tr.ad-row-sel{background:rgba(var(--gold-rgb),.10);border-color:rgba(var(--gold-rgb),.6)}
}
.ad-ib{width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:var(--canvas);color:var(--ink-2);transition:background .15s,color .15s}
.ad-ib:hover{background:var(--line);color:var(--ink)}
.ad-ib svg{width:17px;height:17px}
.ad-ib.on{background:var(--blue-soft);color:var(--blue)}
.ad-ib.danger:hover{background:rgba(240,52,92,.16);color:var(--heart)}
.ad-empty{padding:34px;text-align:center;color:var(--ink-3);font-weight:700}
.admin-foot{display:flex;align-items:center;justify-content:space-between;margin-top:14px;flex-wrap:wrap;gap:10px}
.admin-pager{display:flex;align-items:center;gap:12px}
.admin-pager .btn{padding:8px 16px}
.ad-confirm-msg{font-size:15px;line-height:1.5;margin-bottom:18px}
.ad-confirm-btns{display:flex;gap:10px;justify-content:flex-end}
.btn-danger{background:var(--heart);color:#fff}
.btn-danger:hover{filter:brightness(1.08)}
.ad-check{display:flex;align-items:center;gap:9px;font-weight:700;color:var(--ink-2);cursor:pointer}
.ad-check input{width:18px;height:18px}
@media (max-width:760px){
  .admin-wrap{grid-template-columns:1fr;gap:16px}
  .admin-side{position:static}
  .admin-side nav{flex-direction:row;flex-wrap:wrap}
  .admin-link2{padding:8px 12px}
  .admin-link2.admin-back{width:100%}
}

/* ---------- Messenger ---------- */
.msg-link{position:relative}
.msg-link.active{background:var(--blue-soft);color:var(--blue)}
.msg-badge{position:absolute;top:-2px;right:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#FF3B5C;color:#fff;font-size:10.5px;font-weight:800;line-height:17px;text-align:center;border:2px solid var(--surface);box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.msgr{display:grid;grid-template-columns:340px minmax(0,1fr);gap:0;max-width:1180px;margin:0 auto;height:calc(100vh - var(--nav-h));margin-top:var(--nav-h);background:var(--surface);border-left:1px solid var(--line);border-right:1px solid var(--line)}
.msgr-list{display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0}
.msgr-list-head{padding:16px 18px 10px}
.msgr-list-head h2{display:flex;align-items:center;gap:9px;font-size:21px;font-weight:900;color:var(--ink)}
.msgr-list-head h2 svg{width:24px;height:24px;color:var(--blue)}
.msgr-search{display:flex;align-items:center;gap:8px;margin:0 14px 8px;padding:9px 14px;background:var(--canvas);border:1.5px solid transparent;border-radius:999px;color:var(--ink-3);transition:border-color .15s,background .15s}
.msgr-search:focus-within{background:var(--surface);border-color:var(--blue)}
.msgr-search svg{width:17px;height:17px;flex-shrink:0}
.msgr-search input{flex:1;border:none;background:none;outline:none;min-width:0;color:var(--ink);font-size:14px}
.msgr-convs{flex:1;overflow-y:auto;padding:4px 8px 16px}
.conv{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:12px;transition:background .12s}
.conv:hover{background:var(--canvas)}
.conv.active{background:var(--blue-soft)}
.conv-av{width:50px;height:50px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--blue-soft)}
/* the chat list's online status: a green dot (online), or the minutes since (within the hour) */
.conv-avw{position:relative;display:block;flex-shrink:0;width:50px;height:50px}
.conv-on{position:absolute;right:-3px;bottom:-3px;width:16px;height:16px;border-radius:50%;background:#31a24c;border:3px solid var(--surface)}
.conv.active .conv-on{border-color:var(--blue-soft)}
.conv-ago{position:absolute;right:-7px;bottom:-5px;min-width:22px;padding:0 5px;border-radius:999px;background:#e7f6ea;color:#1f7a35;font-size:10.5px;font-weight:800;font-style:normal;line-height:16px;text-align:center;box-shadow:0 0 0 2px var(--surface)}
html[data-theme="dark"] .conv-ago{background:#173a22;color:#7fd99a}
/* under my newest message: "✓ Sent" → "Seen · 2:15 PM" (their picture) / "Seen by …" */
.bub-status{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:1px 10px 8px;font-size:11.5px;font-weight:600;color:rgba(29,51,16,.62)}
.bub-status.seen{color:rgba(29,51,16,.85)}
.bub-st-faces{display:inline-flex}
.bub-st-faces img{width:16px;height:16px;border-radius:50%;object-fit:cover;border:1.5px solid rgba(255,255,255,.9);margin-left:-5px;background:#fff}
.bub-st-faces img:first-child{margin-left:0}
.conv-main{flex:1;min-width:0}
.conv-top{display:flex;align-items:baseline;gap:8px}
.conv-top b{flex:1;font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv-time{font-size:11.5px;color:var(--ink-3);flex-shrink:0}
.conv-prev{display:flex;align-items:center;gap:8px;margin-top:2px}
.conv-prev span{flex:1;font-size:13px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conv.unread .conv-prev span{color:var(--ink-2);font-weight:600}
.conv.unread .conv-top b{font-weight:800}
.conv-dot{flex-shrink:0;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--blue);color:var(--on-accent);font-size:11px;font-weight:800;line-height:18px;text-align:center}
.msgr-noconv{padding:30px 20px;text-align:center;color:var(--ink-3);font-size:13.5px;line-height:1.6}
/* Hold a chat (touch ~0.5 s / right-click) → its options (openChatMenu in app.js). No iOS link preview or text selection
   while holding; the row dims a little as it is pressed. Muted chats show a crossed bell, blocked ones a soft preview.
   The sheet sits above toasts and the undo bar (500 / 460): the last choice's toast must not cover an option. */
.msgr-convs .conv{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.conv.pressing{background:var(--surface-2);transform:scale(.985);transition:background .12s,transform .25s}
.conv-muted{flex:none;display:inline-flex;color:var(--ink-3)}
.conv-muted svg{width:14px;height:14px}
.conv.is-blocked .conv-prev span{font-style:italic}
.conv.is-blocked .conv-av{filter:grayscale(1);opacity:.7}
.conv-archlink,.conv-archhead{display:flex;align-items:center;gap:12px;width:100%;padding:10px 11px;margin:0 0 2px;border:0;border-radius:12px;background:none;
  color:var(--ink);font:inherit;font-size:14.5px;font-weight:700;text-align:left;cursor:pointer}
.conv-archlink:hover,.conv-archhead:hover{background:var(--canvas)}
.conv-archlink svg{flex:none;width:22px;height:22px;padding:12px;box-sizing:content-box;border-radius:50%;background:var(--surface-2);color:var(--ink-2)}
.conv-archhead svg{flex:none;width:22px;height:22px;color:var(--ink-2)}
.conv-archlink span,.conv-archhead span{flex:1}
.conv-archlink i,.conv-archhead i{font-style:normal;font-size:12.5px;font-weight:700;color:var(--ink-3)}
.cm-back{position:fixed;inset:0;z-index:510;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.42);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity .2s}
.cm-back.show{opacity:1}
.cm-sheet{width:100%;max-width:520px;max-height:80vh;overflow-y:auto;background:var(--surface);border-radius:20px 20px 0 0;box-shadow:var(--shadow-lg);
  padding:8px 10px calc(12px + env(safe-area-inset-bottom, 0px));transform:translateY(24px);transition:transform .22s ease}
.cm-back.show .cm-sheet{transform:none}
.cm-sheet::before{content:'';display:block;width:38px;height:4px;margin:2px auto 6px;border-radius:2px;background:var(--line)}
.cm-head{display:flex;align-items:center;gap:11px;padding:6px 6px 10px;border-bottom:1px solid var(--line);margin-bottom:6px}
.cm-head img,.cm-ini{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:var(--blue-soft)}
.cm-ini{display:flex;align-items:center;justify-content:center;color:var(--blue)}
.cm-ini svg{width:22px;height:22px}
.cm-head b{flex:1;min-width:0;font-size:15.5px;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-x{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:var(--surface-2);color:var(--ink-2);display:flex;align-items:center;justify-content:center;cursor:pointer}
.cm-x svg{width:16px;height:16px}
.cm-list{display:flex;flex-direction:column}
.cm-item{display:flex;align-items:center;gap:14px;width:100%;padding:12px 10px;border:0;border-radius:12px;background:none;color:var(--ink);
  font:inherit;font-size:15.5px;font-weight:600;text-align:left;cursor:pointer}
.cm-item:hover,.cm-item:active{background:var(--surface-2)}
.cm-ic{flex:none;width:38px;height:38px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.cm-ic svg{width:20px;height:20px}
.cm-item.danger{color:var(--heart)}
.cm-item.danger .cm-ic{color:var(--heart);background:rgba(240,52,92,.1)}
@media (min-width:681px){
  .cm-back{align-items:center;padding:20px}
  .cm-sheet{max-width:380px;border-radius:18px;padding:8px 10px 10px;transform:scale(.96)}
  .cm-sheet::before{display:none}
}
.msgr-thread{display:flex;flex-direction:column;min-height:0;background:var(--canvas)}
.msgr-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink-3);padding:30px}
.msgr-empty-ic{width:74px;height:74px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);margin-bottom:14px}
.msgr-empty-ic svg{width:36px;height:36px;color:var(--blue)}
.msgr-empty h3{font-size:18px;font-weight:800;color:var(--ink);margin-bottom:5px}
.msgr-empty p{font-size:14px;max-width:300px}
.msgr-th-head{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line);min-height:62px}
.msgr-back{display:none;width:38px;height:38px;border-radius:50%;align-items:center;justify-content:center;color:var(--ink);flex-shrink:0}
.msgr-back:hover{background:var(--canvas)}
.msgr-back svg{width:22px;height:22px}
.msgr-th-user{display:flex;align-items:center;gap:11px;min-width:0}
.msgr-th-user img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--blue-soft)}
.msgr-th-user b{display:flex;align-items:center;gap:5px;font-size:15px;font-weight:800;color:var(--ink)}
.msgr-th-user i{display:block;font-style:normal;font-size:12.5px;color:var(--ink-3)}
.msgr-verified{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--blue);color:var(--on-accent);font-size:10px;font-weight:900}
.msgr-msgs{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:3px;padding:18px 16px}
.msgr-th-empty{margin:auto;text-align:center;color:var(--ink-3);font-size:14px}
.bubble-row{display:flex;align-items:flex-end;gap:8px;max-width:76%}
.bubble-row.them{align-self:flex-start}
.bubble-row.me{align-self:flex-end;flex-direction:row-reverse}
.bubble-av{width:26px;height:26px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--blue-soft)}
.bubble{position:relative;padding:9px 13px 7px;border-radius:16px;font-size:14.5px;line-height:1.4}
.bubble span{white-space:pre-wrap;word-break:break-word}
.bubble a.bub-link{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;word-break:break-all;-webkit-touch-callout:none}   /* every web address in a chat (round 127; ALS Earn's alone before): the bubble's own ink, readable in every chat theme; no iPhone link preview over the hold-for-menu */
.bubble time{display:block;margin-top:2px;font-size:10.5px;opacity:.6;text-align:right}
.bubble-row.them .bubble{background:var(--surface);color:var(--ink);border-bottom-left-radius:5px;box-shadow:0 1px 2px rgba(18,17,25,.06)}
.bubble-row.me .bubble{background:var(--blue);color:var(--on-accent);border-bottom-right-radius:5px}
.bubble-stack{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%}
.bubble-row.me .bubble-stack{align-items:flex-end}
.bubble-row.them .bubble-stack{align-items:flex-start}
.bubble-meta-time{padding:2px 8px;background:none!important;box-shadow:none!important}
.bubble-meta-time time{opacity:.55;color:var(--ink-3)}
.mp-card{display:flex;gap:11px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px;width:252px;max-width:100%;box-shadow:0 1px 3px rgba(18,17,25,.08);transition:border-color .15s}
.mp-card:hover{border-color:var(--blue)}
.mp-card img,.mp-card-ph{width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0;background:var(--surface-2)}
.mp-card-ph{display:flex;align-items:center;justify-content:center;font-size:26px}
.mp-card-b{min-width:0;display:flex;flex-direction:column;gap:2px}
.mp-card-b b{font-size:13.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}
.mp-card-price{font-size:13.5px;font-weight:800;color:var(--blue)}
.mp-card-link{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--ink-3);font-weight:600;margin-top:1px}
.mp-card-link svg{width:12px;height:12px}
.msgr-compose{display:flex;align-items:center;gap:9px;padding:11px 14px;background:var(--surface);border-top:1px solid var(--line)}
.msgr-compose input{flex:1;border:1.5px solid var(--line);background:var(--canvas);border-radius:999px;padding:11px 17px;font-size:14.5px;color:var(--ink);outline:none;transition:border-color .15s}
.msgr-compose input[type="text"],.msgr-compose>input:not([type]){flex:1;border:1.5px solid var(--line);background:var(--canvas);border-radius:999px;padding:11px 17px;font-size:14.5px;color:var(--ink);outline:none;transition:border-color .15s}
.msgr-compose input:focus{border-color:var(--blue);background:var(--surface)}
.msgr-send{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:var(--blue);color:var(--on-accent);display:flex;align-items:center;justify-content:center;transition:filter .15s}
.msgr-send:hover{filter:brightness(1.08)}
.msgr-send svg{width:21px;height:21px}
/* Chat attachment buttons */
.msgr-attach{width:40px;height:40px;flex-shrink:0;border-radius:50%;background:var(--canvas);color:var(--muted);display:flex;align-items:center;justify-content:center;border:1.5px solid var(--line);transition:all .15s}
.msgr-attach:hover{color:var(--blue);border-color:var(--blue)}
.msgr-attach svg{width:20px;height:20px}
.msgr-mic.recording{background:#e53935;color:#fff;border-color:#e53935;animation:micpulse 1s ease-in-out infinite}
@keyframes micpulse{0%,100%{box-shadow:0 0 0 0 rgba(229,57,53,.5)}50%{box-shadow:0 0 0 7px rgba(229,57,53,0)}}
/* Chat attachment bubbles */
.msg-att{display:block;max-width:min(78vw,300px)}
.msg-att-img{border-radius:16px;overflow:hidden;line-height:0}
.msg-att-img img{width:100%;max-width:260px;max-height:340px;object-fit:cover;display:block;cursor:zoom-in}
.msg-att-voice{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:8px 12px}
.bubble-row.me .msg-att-voice{background:var(--blue);border-color:transparent}
.bubble-row.me .msg-att-voice .msg-att-vic svg,.bubble-row.me .msg-att-dur{color:var(--on-accent)}
.msg-att-voice audio{height:34px;max-width:200px}
.msg-att-vic svg{width:20px;height:20px;color:var(--blue)}
.msg-att-dur{font-size:12px;color:var(--muted);flex-shrink:0}
.msg-att-file{display:flex;align-items:center;gap:11px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:11px 14px;text-decoration:none;min-width:180px}
.bubble-row.me .msg-att-file{background:var(--blue)}
.bubble-row.me .msg-att-file b,.bubble-row.me .msg-att-file i,.bubble-row.me .msg-att-fic svg{color:var(--on-accent)}
.msg-att-fic{width:38px;height:38px;border-radius:10px;background:rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.msg-att-fic svg{width:20px;height:20px;color:var(--blue)}
.msg-att-fmeta{display:flex;flex-direction:column;min-width:0}
.msg-att-fmeta b{font-size:13.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.msg-att-fmeta i{font-size:11.5px;color:var(--muted);font-style:normal}
@media (max-width:760px){
  /* reserve the full bottom-nav footprint (56px + the iOS/Android home-indicator inset)
     so the message composer isn't hidden behind .mob-nav in the installed PWA */
  .msgr{grid-template-columns:1fr;height:calc(100dvh - var(--nav-h) - 56px - env(safe-area-inset-bottom));border:none}
  .msgr-list{border-right:none}
  .msgr .msgr-thread{display:none}
  .msgr.has-thread .msgr-list{display:none}
  .msgr.has-thread .msgr-thread{display:flex}
  .msgr-back{display:flex}
  .bubble-row{max-width:85%}
}
/* Phones: an open conversation is full screen — no header nav, no bottom nav. The ‹ back button (top left) goes to
   the conversation list, where both bars are back. The chat header / prompt box keep clear of the status bar and
   the home indicator themselves now. Without :has() (old browsers) the layout stays as it was, bars included. */
@supports selector(:has(a)){
  @media (max-width:760px){
    body:has(.msgr.has-thread) .nav,
    body:has(.msgr.has-thread) .mob-nav{display:none}
    .msgr.has-thread{height:100dvh;margin-top:0}
    .msgr.has-thread .msgr-th-head{padding-top:calc(10px + var(--safe-top, env(safe-area-inset-top, 0px)));min-height:calc(62px + var(--safe-top, env(safe-area-inset-top, 0px)))}
    .msgr.has-thread .msgr-compose.pbx-wrap{padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px))}
  }
}

/* ---------- Cart · Checkout · Orders ---------- */
.shop-wrap{max-width:1080px;margin:0 auto;padding:22px 16px 90px}
.shop-h1{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:900;color:var(--ink);margin-bottom:18px}
.shop-h1 svg{width:26px;height:26px;color:var(--blue)}
.shop-count{font-size:14px;font-weight:600;color:var(--ink-3)}
.shop-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.shop-main{display:flex;flex-direction:column;gap:14px}
.shop-side{position:sticky;top:calc(var(--nav-h) + 20px)}
.sum-card h3,.co-card h3{font-size:16px;font-weight:800;color:var(--ink);margin-bottom:14px}
.sum-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:14px;color:var(--ink-2)}
.sum-row b{color:var(--ink);font-weight:700}
.sum-free{color:#22A565!important}
.sum-total{border-top:1px solid var(--line);margin-top:6px;padding-top:12px;font-size:17px}
.sum-total b{font-size:19px;font-weight:900;color:var(--blue)}
.shop-cta{width:100%;margin-top:12px;justify-content:center}
.sum-cod{margin-top:12px;text-align:center;font-size:12px;color:var(--ink-3)}
.shop-empty{text-align:center;padding:60px 20px;color:var(--ink-3)}
.shop-empty-ic{width:84px;height:84px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);margin:0 auto 16px}
.shop-empty-ic svg{width:40px;height:40px;color:var(--blue)}
.shop-empty h2{font-size:20px;font-weight:800;color:var(--ink);margin-bottom:6px}
.shop-empty p{margin-bottom:18px}
.shop-empty .btn{display:inline-flex;gap:7px}
/* cart item */
.ci{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px}
.ci-img{width:84px;height:84px;border-radius:10px;overflow:hidden;flex-shrink:0;background:var(--surface-2)}
.ci-img img{width:100%;height:100%;object-fit:cover}
.ci-ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:30px}
.ci-body{flex:1;min-width:0}
.ci-title{display:block;font-size:15px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci-title:hover{color:var(--blue)}
.ci-seller{font-size:12.5px;color:var(--ink-3);margin:2px 0 6px}
.ci-price{font-size:14px;font-weight:700;color:var(--blue)}
.ci-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.ci-qty{display:flex}
.ci-remove{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--ink-3);background:var(--canvas)}
.ci-remove:hover{background:#FFE3E9;color:#E0245E}
html[data-theme="dark"] .ci-remove:hover{background:rgba(224,36,94,.18)}
.ci-remove svg{width:17px;height:17px}
.ci-line{font-size:15px;font-weight:800;color:var(--ink)}
/* checkout */
.co-card{}
.co-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.co-field{display:flex;flex-direction:column;gap:5px}
.co-field.co-wide{grid-column:1/-1}
.co-field label{font-size:12.5px;font-weight:700;color:var(--ink-2)}
.co-field label i{color:#E0245E;font-style:normal}
.co-field input,.co-field textarea{border:1.5px solid var(--line);background:var(--canvas);border-radius:10px;padding:11px 13px;font-size:14px;color:var(--ink);outline:none;transition:border-color .15s,background .15s}
.co-field input:focus,.co-field textarea:focus{border-color:var(--blue);background:var(--surface)}
.co-field textarea{min-height:64px;resize:vertical}
.co-pay{display:flex;align-items:center;gap:13px;padding:13px 15px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;margin-bottom:10px;transition:border-color .15s,background .15s}
.co-pay:last-child{margin-bottom:0}
.co-pay.selected{border-color:var(--blue);background:var(--blue-soft)}
.co-pay.disabled{opacity:.55;cursor:not-allowed}
.co-pay input{accent-color:var(--blue);width:18px;height:18px;flex-shrink:0}
.co-pay-ic{font-size:22px}
.co-pay div{flex:1}
.co-pay b{display:block;font-size:14.5px;font-weight:700;color:var(--ink)}
.co-pay i{font-style:normal;font-size:12.5px;color:var(--ink-3)}
.co-pay-check{width:22px;height:22px;border-radius:50%;background:var(--blue);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.co-items{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;max-height:240px;overflow-y:auto}
.co-li{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-2)}
.co-li-q{flex-shrink:0;color:var(--blue);font-weight:800}
.co-li-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.co-li b{color:var(--ink);font-weight:700}
/* order confirmation + history */
.ord-success{text-align:center;padding:24px 16px 30px}
.ord-check{width:64px;height:64px;border-radius:50%;background:#22A565;color:#fff;font-size:34px;font-weight:900;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;box-shadow:0 8px 24px rgba(34,165,101,.35)}
.ord-success h1{font-size:26px;font-weight:900;color:var(--ink);margin-bottom:8px}
.ord-success p{color:var(--ink-2);max-width:460px;margin:0 auto;line-height:1.55}
.ord-meta{font-size:14px;color:var(--ink-2);line-height:1.6}
.ord-pay{margin-top:12px;display:flex;gap:8px}
.ords{display:flex;flex-direction:column;gap:12px}
.ord-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ord-row:hover{border-color:var(--blue)}
.ord-row-l{display:flex;flex-direction:column;gap:3px}
.ord-row-l b{font-size:15px;color:var(--ink)}
.ord-row-r{display:flex;align-items:center;gap:8px}
.ord-row-r b{font-size:16px;font-weight:800;color:var(--blue)}
/* the phone checkout bar (renderCart adds it) — only while the cart's summary card is still below the fold */
.cart-bar{display:none}
@media (max-width:860px){
  /* minmax(0,1fr), not 1fr: a 1fr column is at least as wide as its longest line, so a long one-line item name (or
     the order's delivery timeline) made the page wider than the phone — the − qty + buttons, the bin and the totals
     ran off the right edge and the page scrolled sideways. Items first, then the summary (checkout: the delivery form
     before "Place Order"). */
  .shop-grid{grid-template-columns:minmax(0,1fr)}
  .shop-main,.shop-side{min-width:0}
  .shop-side{position:static}
  .cart-bar{display:flex;align-items:center;gap:12px;position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom, 0px));max-width:560px;margin:0 auto;z-index:90;padding:9px 9px 9px 16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);transition:opacity .2s,transform .2s,visibility .2s}
  .cart-bar.off{opacity:0;visibility:hidden;transform:translateY(14px);pointer-events:none}
  .cart-bar-sum{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
  .cart-bar-sum span{font-size:12px;font-weight:600;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cart-bar-sum b{font-size:19px;font-weight:900;color:var(--blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cart-bar-go{flex:0 0 auto;min-height:44px;padding:10px 20px;border-radius:12px}
}
@media (max-width:680px){
  /* clear the bottom tab bar (56px + the home-indicator inset in the installed app) */
  .shop-wrap{padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px))}
  .cart-bar{bottom:calc(66px + env(safe-area-inset-bottom, 0px))}
}
@media (max-width:560px){
  .shop-wrap{padding-top:16px}
  .shop-h1{font-size:22px;margin-bottom:14px}
  .co-form{grid-template-columns:1fr}
  .ord-row{flex-direction:column;align-items:flex-start;gap:8px}
  .ord-pay{flex-wrap:wrap}
  /* a cart item: picture + name (2 lines) / seller / price, then a footer row: − qty +, the line total, the bin */
  .ci{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center}
  .ci-img{width:72px;height:72px}
  .ci-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;line-height:1.3}
  .ci-seller{margin:3px 0 4px}
  .ci-actions{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;padding-top:12px;border-top:1px solid var(--line)}
  .ci-qty button{width:38px;height:36px}
  .ci-qty input{width:44px;height:36px}
  .ci-line{order:1;margin-left:auto;font-size:16px}
  .ci-remove{order:2;width:36px;height:36px}
  .ci-qty,.ci-remove{flex:none}            /* a long line total (riel) must not squeeze the − qty + buttons */
  .ci-line{white-space:nowrap}
}
@media (max-width:360px){
  /* small phones: room for 9-digit riel totals beside a full-size − qty + */
  .ci-actions{gap:8px}
  .ci-qty button{width:34px}
  .ci-qty input{width:36px}
  .ci-line{font-size:15px}
  .cart-bar{gap:10px;padding-left:14px}
  .cart-bar-sum b{font-size:17px}
  .cart-bar-go{padding:10px 16px}
}

/* Profile avatars: rounded-square instead of circle (scales across sizes) */
.avatar,
.nav-avatar,
.story .s-av,
.reel-chip-user img,
.pyk-mavs img,
.reel-user a img,
.pd-avatar,
.ld-seller-av,
.profile-bar .pav,
.ad-user img,
.conv-av,
.msgr-th-user img,
.bubble-av{
  border-radius:25%;
}

/* ---------- Getting Started — 3-step onboarding wizard ---------- */
.gs-overlay{position:fixed;inset:0;z-index:4000;background:rgba(17,24,39,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
.gs-card{position:relative;background:linear-gradient(135deg,#17122e 0%,#4a35c9 48%,#7B5CFF 100%);color:#fff;border-radius:20px;width:100%;max-width:560px;box-shadow:0 24px 70px rgba(0,0,0,.45);overflow:hidden;animation:gsPop .25s ease}
.gs-bg{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.gs-card>.gs-head,.gs-card>.gs-steps,.gs-card>.gs-body{position:relative;z-index:1}
@keyframes gsPop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.gs-head{padding:22px 24px 14px;text-align:center;border-bottom:1px solid rgba(255,255,255,.16)}
.gs-head h2{margin:0;font-size:21px;font-weight:900;color:#fff}
.gs-head p{margin:5px 0 0;color:rgba(255,255,255,.72);font-size:13.5px}
.gs-steps{display:flex;gap:8px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.16)}
.gs-step{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:11px 6px;border:1.5px solid rgba(255,255,255,.28);border-radius:13px;background:rgba(255,255,255,.10);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:rgba(255,255,255,.85);font-size:12px;font-weight:700;cursor:pointer;transition:.15s;text-align:center}
.gs-step:hover{border-color:#fff;background:rgba(255,255,255,.18)}
.gs-step.active{background:#fff;border-color:#fff;color:#4a35c9}
.gs-step-ic{display:inline-flex}.gs-step-ic svg{width:20px;height:20px}
.gs-body{padding:24px;max-height:62vh;overflow-y:auto}
.gs-welcome{text-align:center;font-size:20px;font-weight:800;margin-bottom:2px;color:#fff}
.gs-welcome span{color:#9ec5ff}
.gs-sub{text-align:center;color:rgba(255,255,255,.72);font-size:13.5px;margin:2px 0 18px}
.gs-title{text-align:center;font-size:18px;font-weight:800;margin:0;color:#fff}
.gs-avatar-wrap{position:relative;width:140px;height:140px;margin:8px auto 8px}
.gs-avatar-wrap img{width:140px;height:140px;border-radius:50%;object-fit:cover;border:4px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1)}
.gs-cam{position:absolute;right:4px;bottom:4px;width:42px;height:42px;border-radius:50%;border:3px solid #fff;background:var(--blue);color:var(--on-accent);display:flex;align-items:center;justify-content:center;cursor:pointer}
.gs-cam svg{width:20px;height:20px}
.gs-cam.busy{opacity:.6;pointer-events:none}
.gs-form{display:flex;flex-direction:column;gap:11px;margin-top:6px}
.gs-sec-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:rgba(255,255,255,.7);margin-top:6px}
.gs-input{width:100%}
.gs-card .set-input{background:rgba(255,255,255,.96);color:#11203a;border:1px solid rgba(255,255,255,.4)}
.gs-card .set-input::placeholder{color:#6b7280}
.gs-card .set-input:focus{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.gs-row{display:flex;gap:11px}
.gs-row .gs-half{flex:1;min-width:0}
.gs-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.gs-actions-split{justify-content:space-between}
.gs-actions .btn{min-width:120px;justify-content:center}
.gs-person{display:flex;align-items:center;gap:12px;padding:9px 4px;border-bottom:1px solid rgba(255,255,255,.14)}
.gs-person:last-child{border-bottom:0}
.gs-person-name{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.gs-person-name b{font-size:14.5px;color:#fff}
.gs-person-name .muted{font-size:12.5px;color:rgba(255,255,255,.65)}
.gs-person .btn-soft{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.3)}
.gs-following{background:#fff!important;color:#4a35c9!important;border-color:#fff!important}
@media(max-width:560px){.gs-step span:not(.gs-step-ic){display:none}.gs-row{flex-direction:column}.gs-actions-split{flex-direction:column-reverse}.gs-actions .btn{width:100%}}

/* Admin categories — two-column (Reels & Videos) */
.cat-wrap{display:grid;grid-template-columns:1fr 1fr;gap:22px}
@media(max-width:900px){.cat-wrap{grid-template-columns:1fr}}
.cat-block h2{margin:0;font-size:17px;font-weight:800;display:flex;align-items:center;gap:8px}
.cat-block h2 svg{width:20px;height:20px}
.cat-add{display:flex;gap:8px;margin-bottom:12px}
.cat-add .set-input{flex:1}
.cat-slug{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:2px 7px;font-size:12px;color:var(--ink-3)}

/* ============================================================
   Animated cosmic background for auth (login) pages
   ============================================================ */
.auth-bg{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.auth-bg>*{position:absolute}

/* flowing gradient ribbons */
.auth-bg .wave{border-radius:46% 54% 50% 50%/60% 50% 50% 40%;filter:blur(8px);opacity:.85;mix-blend-mode:screen}
.auth-bg .wave-tl{width:62vw;height:34vw;min-width:620px;min-height:320px;top:-16vw;left:-12vw;
  background:linear-gradient(118deg,#2a1d7a 0%,#7B5CFF 44%,#C6FF3D 66%,rgba(198,255,61,0) 74%);
  animation:auth-waveA 18s ease-in-out infinite}
.auth-bg .wave-br{width:74vw;height:40vw;min-width:760px;min-height:380px;right:-18vw;bottom:-18vw;
  background:linear-gradient(122deg,rgba(123,92,255,0) 26%,#5b3fd9 42%,#7B5CFF 62%,#b4a3ff 82%);
  animation:auth-waveB 22s ease-in-out infinite}
@keyframes auth-waveA{0%,100%{transform:rotate(-8deg) translate(0,0)}50%{transform:rotate(-5deg) translate(2vw,1.4vw)}}
@keyframes auth-waveB{0%,100%{transform:rotate(-10deg) translate(0,0)}50%{transform:rotate(-13deg) translate(-2vw,-1.2vw)}}

/* glowing spheres with orbital rings */
.auth-bg .orb{border-radius:50%;animation:auth-float 9s ease-in-out infinite}
.auth-bg .orb::before,.auth-bg .orb::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:1.5px solid rgba(150,140,240,.28)}
.auth-bg .orb-orange{background:radial-gradient(circle at 36% 30%,#f4ffd2,#C6FF3D 46%,#8fcf12 78%);box-shadow:0 0 42px 9px rgba(198,255,61,.42)}
.auth-bg .orb-blue{background:radial-gradient(circle at 36% 30%,#e8e2ff,#7B5CFF 46%,#4a35c9 80%);box-shadow:0 0 40px 9px rgba(123,92,255,.5)}
.auth-bg .orb.o1{width:84px;height:84px;top:-26px;right:6vw;animation:auth-glow 5s ease-in-out infinite}
.auth-bg .orb.o1::before{width:168px;height:168px}.auth-bg .orb.o1::after{width:240px;height:240px;border-color:rgba(150,140,240,.16)}
.auth-bg .orb.o2{width:60px;height:60px;top:18%;left:-30px;animation:auth-glow 6.5s ease-in-out infinite}
.auth-bg .orb.o2::before{width:118px;height:118px}.auth-bg .orb.o2::after{width:172px;height:172px;border-color:rgba(150,140,240,.16)}
.auth-bg .orb.o3{width:70px;height:70px;bottom:-12px;left:31%;animation:auth-glow 5.6s ease-in-out infinite}
.auth-bg .orb.o3::before{width:140px;height:140px}.auth-bg .orb.o3::after{width:206px;height:206px;border-color:rgba(150,140,240,.16)}
.auth-bg .orb.b1{width:46px;height:46px;top:42%;left:17%;animation:auth-glow 7s ease-in-out infinite}
.auth-bg .orb.b1::before{width:96px;height:96px}.auth-bg .orb.b1::after{width:140px;height:140px;border-color:rgba(150,140,240,.16)}
.auth-bg .orb.b2{width:74px;height:74px;bottom:18%;right:11%;animation:auth-glow 5.2s ease-in-out infinite}
.auth-bg .orb.b2::before{width:150px;height:150px}.auth-bg .orb.b2::after{width:224px;height:224px;border-color:rgba(150,140,240,.16)}
@keyframes auth-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.28)}}
@keyframes auth-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* dot grids */
.auth-bg .agrid{width:90px;height:90px;opacity:.5;background-image:radial-gradient(rgba(255,255,255,.7) 1.4px,transparent 1.6px);background-size:18px 18px;animation:auth-twinkle 4.5s ease-in-out infinite}
.auth-bg .agrid.g1{top:7%;left:50%}
.auth-bg .agrid.g2{top:40%;left:2%;background-image:radial-gradient(rgba(255,255,255,.7) 1.4px,transparent 1.6px),radial-gradient(rgba(255,180,70,.85) 1.4px,transparent 1.6px);background-position:0 0,18px 36px;animation-delay:1.2s}
.auth-bg .agrid.g3{bottom:5%;right:18%;animation-delay:2.1s}
@keyframes auth-twinkle{0%,100%{opacity:.25}50%{opacity:.6}}

/* small floating geometric shapes */
.auth-bg .sh{display:block;animation:auth-drift 8s ease-in-out infinite}
.auth-bg .sh.x{width:18px;height:18px}
.auth-bg .sh.x::before,.auth-bg .sh.x::after{content:'';position:absolute;left:50%;top:0;width:2px;height:100%;background:rgba(255,255,255,.6);transform:translateX(-50%) rotate(45deg)}
.auth-bg .sh.x::after{transform:translateX(-50%) rotate(-45deg)}
.auth-bg .sh.x.orange::before,.auth-bg .sh.x.orange::after{background:rgba(255,140,55,.85)}
.auth-bg .sh.x.sm{width:12px;height:12px;opacity:.7}
.auth-bg .sh.dia{width:20px;height:20px;border:2px solid rgba(255,255,255,.5);transform:rotate(45deg)}
.auth-bg .sh.dia.sm{width:13px;height:13px}
.auth-bg .sh.dia.fill{border:none;background:#ff9b2e;box-shadow:0 0 12px rgba(255,150,40,.6);transform:rotate(45deg)}
.auth-bg .sh.sq{width:12px;height:12px;background:rgba(255,255,255,.5)}
.auth-bg .sh.sq.orange{background:#ff9b2e;box-shadow:0 0 10px rgba(255,150,40,.5)}
.auth-bg .sh.dot{width:6px;height:6px;border-radius:50%;background:#fff;opacity:.85}
.auth-bg .sh.squiggle{width:64px;height:12px;opacity:.5;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12'%3E%3Cpath d='M0 7 Q8 1 16 7 T32 7 T48 7 T64 7' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E")}
.auth-bg .sh.squiggle.sm{width:44px}
@keyframes auth-drift{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-12px) rotate(8deg)}}
.auth-bg .sh.dia,.auth-bg .sh.dia.fill{animation:auth-drift-dia 8s ease-in-out infinite}
@keyframes auth-drift-dia{0%,100%{transform:translateY(0) rotate(45deg)}50%{transform:translateY(-12px) rotate(57deg)}}

@media (max-width:860px){.auth-bg .wave-tl{opacity:.6}}
@media (prefers-reduced-motion:reduce){.auth-bg *{animation:none!important}}

/* Single post page (public / shareable #/post/:id) */
.sp-top{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.sp-logo{display:flex;align-items:center;gap:8px;font-weight:900;font-size:18px;color:var(--ink)}
.sp-logo .nav-mark{width:32px;height:32px;font-size:18px}
.sp-actions{display:flex;gap:8px}
.sp-wrap{max-width:600px;margin:0 auto;padding:18px 14px 90px}
.sp-cta{text-align:center;padding:24px;margin-top:14px}
.sp-cta b{font-size:18px;display:block}
.sp-cta p{margin:4px 0 0}
.sp-cta .btn{margin-top:14px}

/* Guest (Newsfeed Public) — composer placeholder + nav sign-up */
.composer-guest{text-align:center;padding:22px}
.composer-guest b{font-size:17px;display:block}
.composer-guest p{margin:4px 0 14px}
.rl-prompt .modal{max-width:380px}

/* Post status flags (scheduled / pending approval — author only) */
.post-flag{margin:0 0 4px;padding:7px 12px;border-radius:9px;font-size:13px;font-weight:700;display:inline-flex;gap:6px}
.post-flag.pending{background:rgba(245,158,11,.16);color:#b45309}
.post-flag.sched{background:var(--blue-soft);color:var(--blue)}
html[data-theme="dark"] .post-flag.pending{color:#fbbf24}

/* Fullscreen story viewer */
.story-viewer{position:fixed;inset:0;z-index:300;background:rgba(8,10,16,.96);display:flex;align-items:center;justify-content:center}
/* blurred backdrop fills the screen behind the media so portrait stories read as fullscreen (no dark bars) while the media itself stays uncropped (contain) and centered */
.story-viewer .sv-blur{position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;filter:blur(26px) brightness(.55);transform:scale(1.12);pointer-events:none}
.story-viewer .sv-img,.story-viewer .sv-vid{max-width:min(440px,100%);max-height:100%;width:auto;object-fit:contain;border-radius:8px}
/* Mobile: story media goes truly fullscreen — absolutely positioned to fill the viewport so object-fit:contain
   centers it (a flex item with width/height:100% collapses to aspect-ratio via min-width:auto and drifts off-centre). */
@media (max-width:680px){
  .story-viewer .sv-img,.story-viewer .sv-vid{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:0}
  /* portrait/overflow videos crop to fill the mobile screen (cover) instead of letterboxing over the blur */
  .story-viewer .sv-vid.sv-fill{object-fit:cover}
}
.sv-bars{position:absolute;top:max(calc(env(safe-area-inset-top, 0px) + 16px), 58px);left:12px;right:12px;display:flex;gap:5px;z-index:3}
.sv-bar{flex:1;height:3px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden}
.sv-bar i{display:block;height:100%;width:0;background:#fff}
.sv-head{position:absolute;top:max(calc(env(safe-area-inset-top, 0px) + 30px), 72px);left:14px;right:14px;display:flex;align-items:center;gap:9px;z-index:3;color:#fff}
.sv-head .sv-av-link{flex:0 0 auto;display:block;line-height:0}
.sv-head .sv-av{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.5)}
.sv-head .sv-name-link{color:#fff;text-decoration:none}
.sv-head .sv-name-link:hover .sv-name{text-decoration:underline}
.sv-head .sv-name{font-size:14px;font-weight:800}
.sv-head .sv-time{font-size:12px;opacity:.7}
.sv-head .sv-follow{flex:0 0 auto;background:#fff;color:#111;border:none;border-radius:999px;padding:5px 14px;font-size:12.5px;font-weight:800;cursor:pointer;line-height:1;white-space:nowrap;transition:opacity .15s ease,background .15s ease,color .15s ease}
.sv-head .sv-follow:hover{opacity:.9}
.sv-head .sv-follow:active{transform:translateY(1px)}
.sv-head .sv-follow.following{background:rgba(255,255,255,.22);color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.sv-head .sv-follow:disabled{opacity:.55;cursor:default}
.sv-head .sv-x{margin-left:auto;background:none;border:none;color:#fff;font-size:22px;cursor:pointer;line-height:1}
.sv-nav{position:absolute;top:0;bottom:0;width:35%;background:none;border:none;cursor:pointer}
.sv-prev{left:0}.sv-next{right:0}
/* Animated viewers ticker: full names fade in above the seen-pill, rise ~100px, fade out; the list loops forever */
.sv-foot{position:absolute;left:0;right:0;bottom:calc(env(safe-area-inset-bottom, 0px) + 22px);z-index:4;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none}
.sv-viewers{position:relative;width:100%;height:120px}
.sv-viewer-name{position:absolute;bottom:0;left:50%;color:#fff;font-weight:800;font-size:15px;white-space:nowrap;text-shadow:0 1px 8px rgba(0,0,0,.75);opacity:0;will-change:transform,opacity;animation:svViewerRise 2.6s cubic-bezier(.25,.8,.35,1) forwards}
@keyframes svViewerRise{
  0%{opacity:0;transform:translate(-50%,10px) scale(.92)}
  18%{opacity:1;transform:translate(-50%,-8px) scale(1)}
  72%{opacity:1;transform:translate(-50%,-74px) scale(1)}
  100%{opacity:0;transform:translate(-50%,-100px) scale(1)}
}
.sv-seen{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font-size:13px;font-weight:700}
.sv-seen svg{width:16px;height:16px}
/* Story reaction bar — tap an emoji to react; EVERY tap increments the count under the icon + floats up */
.sv-react{position:relative;display:flex;align-items:flex-start;gap:2px;pointer-events:auto;background:rgba(0,0,0,.4);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:6px 8px;max-width:94vw}
.sv-rx{display:inline-flex;flex-direction:column;align-items:center;gap:1px;background:none;border:none;line-height:1;cursor:pointer;padding:2px 3px;border-radius:12px;transition:transform .12s ease}
.sv-rx-emoji{font-size:23px;line-height:1;display:block;transition:transform .12s ease}
.sv-rx:hover .sv-rx-emoji{transform:scale(1.3) translateY(-2px)}
.sv-rx:active .sv-rx-emoji{transform:scale(1.1)}
.sv-rx-count{font-size:10px;font-weight:800;color:#fff;line-height:1;min-height:11px;letter-spacing:.02em;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.sv-rx.pop .sv-rx-emoji{animation:svRxPop .4s cubic-bezier(.2,2,.4,1)}
@keyframes svRxPop{0%{transform:scale(1)}40%{transform:scale(1.55) translateY(-4px)}100%{transform:scale(1)}}
.sv-rx-float{position:absolute;bottom:100%;font-size:30px;pointer-events:none;will-change:transform,opacity;animation:svRxFloat 1.5s cubic-bezier(.25,.8,.35,1) forwards}
@keyframes svRxFloat{
  0%{opacity:0;transform:translate(-50%,4px) scale(.5)}
  18%{opacity:1;transform:translate(-50%,-14px) scale(1.15)}
  100%{opacity:0;transform:translate(-50%,-150px) scale(1.5) rotate(8deg)}
}

/* video-story play badge on the thumbnail */
.story .s-vbadge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:2}
.story .s-vbadge svg{width:16px;height:16px;fill:#fff;color:#fff;margin-left:2px}
/* Stories row: one tile per person — a count pill when they have several, a pale ring once you have seen them all,
   and a tile shrinks away when its person leaves the row */
.story .s-count{position:absolute;top:10px;right:8px;z-index:2;display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 7px 0 6px;border-radius:999px;background:rgba(0,0,0,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;font-size:11.5px;font-weight:800;line-height:1}
.story .s-count svg{width:12px;height:12px}
.story.seen .s-av{border-color:rgba(255,255,255,.75)}
.story:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.story.leaving{flex:0 0 0;margin-right:-10px;opacity:0;transform:scale(.85);pointer-events:none;transition:flex-basis .28s ease,margin .28s ease,opacity .2s ease,transform .28s ease}

/* Story viewer, one person at a time: the stage slides between people (swipe left / right), a finger held on it
   pauses, a swipe down closes — so the browser must not pan, select or open a save-image menu under the finger */
.story-viewer{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:contain}
.story-viewer .sv-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;will-change:transform}
.story-viewer img{-webkit-user-drag:none;-webkit-touch-callout:none}
/* the global img,video{display:block} reset beats [hidden]: a video story left the emptied photo on top (a broken-image icon) */
.story-viewer .sv-img[hidden],.story-viewer .sv-vid[hidden]{display:none}
.sv-bars.many{gap:3px}
.sv-bars.lots{gap:1.5px}
.sv-gnav{display:none}
@media (min-width:681px) and (hover:hover){
  .sv-gnav{display:flex;position:absolute;top:50%;z-index:6;width:46px;height:46px;margin-top:-23px;border:none;border-radius:50%;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;align-items:center;justify-content:center;cursor:pointer;transition:background .15s ease}
  .sv-gnav:hover{background:rgba(255,255,255,.3)}
  .sv-gnav svg{width:22px;height:22px}
  .sv-gprev{left:max(14px,calc(50% - 300px))}
  .sv-gnext{right:max(14px,calc(50% - 300px))}
}
.sv-gnav[hidden]{display:none}
/* Your own story: "⌃ 21 viewers" bottom-left with the newest viewers under it, fading out (Facebook-style); a tap opens
   the Viewers panel (.svp). Only the owner gets it — the server names viewers to the owner alone. */
.story-viewer .sv-vl{position:absolute;left:14px;bottom:calc(env(safe-area-inset-bottom, 0px) + 18px);z-index:5;display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  max-width:min(72%,290px);margin:0;padding:6px 8px 4px;border:0;background:none;color:#fff;text-align:left;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.story-viewer .sv-vl[hidden]{display:none}
.story-viewer .sv-react[hidden]{display:none}   /* its display:flex beat [hidden] — the bar showed on your own story */
.sv-vl-head{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:210px;max-width:100%;padding-bottom:9px;border-bottom:1px solid rgba(255,255,255,.38);text-shadow:0 1px 6px rgba(0,0,0,.55)}
.sv-vl-head svg{width:22px;height:22px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
.sv-vl-head b{font-size:18px;font-weight:800;letter-spacing:.1px}
.sv-vl-rows{display:flex;flex-direction:column;gap:9px;margin-top:4px}
.sv-vl-row{display:flex;align-items:center;gap:12px}
.sv-vl-row:nth-child(2){opacity:.86}.sv-vl-row:nth-child(3){opacity:.68}.sv-vl-row:nth-child(4){opacity:.5}
.sv-vl-av{position:relative;flex:0 0 36px;width:36px;height:36px}
.sv-vl-av img{display:block;width:36px;height:36px;border-radius:50%;object-fit:cover;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.sv-vl-av i{position:absolute;right:-5px;bottom:-4px;width:19px;height:19px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:12px;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.sv-vl-name{max-width:210px;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.sv-vl-none{font-size:13px;opacity:.85;text-shadow:0 1px 6px rgba(0,0,0,.6)}
@media (min-width:681px){ .story-viewer .sv-vl{left:max(14px,calc(50% - 206px))} }   /* over the story column, not the screen edge */
/* Story → share to your timeline: the Share pill under the reactions (on your own story bottom right, clear of the
   viewers list), and the share screen (Facebook-style: the picture, whose story, your words, Public, Share) */
.sv-share{pointer-events:auto;display:inline-flex;align-items:center;gap:7px;background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.16);color:#fff;border-radius:999px;padding:8px 16px 8px 12px;font-size:13.5px;font-weight:800;line-height:1;cursor:pointer}
.sv-share svg{width:18px;height:18px;flex:0 0 auto}
.sv-share:hover{background:rgba(0,0,0,.58)}
.sv-share:active{transform:translateY(1px)}
.sv-share:focus-visible{outline:2px solid #fff;outline-offset:2px}
.sv-share[hidden]{display:none}
.sv-foot.mine{align-items:flex-end;padding-right:14px}
@media (min-width:681px){ .sv-foot.mine{padding-right:max(14px,calc(50% - 206px))} }
.sss{position:fixed;inset:0;z-index:320;display:flex;flex-direction:column;background:#0d1017;color:#fff;animation:sssIn .18s ease-out}
@keyframes sssIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.sss-top{display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top, 0px) + 12px) 14px 10px}
.sss-x{flex:0 0 auto;width:40px;height:40px;border-radius:50%;border:none;background:rgba(255,255,255,.1);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.sss-x:hover{background:rgba(255,255,255,.18)}
.sss-title{font-size:16px;font-weight:800}
.sss-media{position:relative;flex:1 1 auto;min-height:120px;margin:0 14px;border-radius:18px;overflow:hidden;background:#000;display:flex;align-items:center;justify-content:center}
.sss-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(26px) brightness(.5);transform:scale(1.15)}
.sss-pic{position:relative;max-width:100%;max-height:100%;object-fit:contain}
.sss-play{position:absolute;width:58px;height:58px;border-radius:50%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;color:#fff}
.sss-play svg{width:26px;height:26px}
.sss-panel{box-sizing:border-box;width:100%;max-width:560px;margin:0 auto;padding:12px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);display:flex;flex-direction:column;gap:10px}
.sss-who{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.82)}
.sss-av{width:26px;height:26px;border-radius:50%;object-fit:cover}
.sss-text{box-sizing:border-box;width:100%;min-height:48px;max-height:28vh;resize:none;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:14px;color:#fff;padding:11px 13px;font:inherit;font-size:16px}
.sss-text::placeholder{color:rgba(255,255,255,.55)}
.sss-text:focus{outline:none;border-color:rgba(255,255,255,.45)}
.sss-note{margin:0;font-size:13px;color:#ffb4b4}
.sss-note[hidden]{display:none}
.sss-bar{display:flex;align-items:center;gap:10px}
.sss-aud{display:inline-flex;align-items:center;gap:7px;padding:10px 15px;border-radius:999px;background:rgba(255,255,255,.1);font-size:14px;font-weight:700}
.sss-aud svg{width:16px;height:16px}
.sss-go{margin-left:auto;display:inline-flex;align-items:center;gap:8px;border:none;border-radius:999px;background:#2563eb;color:#fff;padding:12px 28px;font-size:15px;font-weight:800;cursor:pointer}
.sss-go svg{width:18px;height:18px}
.sss-go:not(:disabled):hover{background:#1d4fd8}
.sss-go:disabled{opacity:.55;cursor:default}
.sss-go:focus-visible,.sss-x:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (min-width:681px){ .sss-media{flex:0 1 auto;width:min(420px,calc(100% - 28px));height:min(60vh,620px);margin:0 auto} }
.story-tag{font-weight:700}

/* The Viewers panel: full screen on phones, a card on wider screens */
.svp{position:fixed;inset:0;z-index:330;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);color:var(--ink);
  padding-top:env(safe-area-inset-top, 0px);opacity:0;transform:translateY(24px);transition:opacity .22s ease,transform .26s cubic-bezier(.2,.8,.3,1)}
.svp.show{opacity:1;transform:none}
.svp>*{flex-shrink:0}   /* the panel scrolls as one; a long list must not squeeze the strip (it then spilled its thumbnails over the top) */
@media (min-width:681px){
  .svp{inset:auto;top:50%;left:50%;width:min(480px,calc(100% - 32px));height:min(780px,calc(100% - 48px));border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.45);transform:translate(-50%,calc(-50% + 24px))}
  .svp.show{transform:translate(-50%,-50%)}
}
.svp-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 4px}
.svp-ttl{font-size:16px;font-weight:800}
.svp-x{flex:0 0 40px;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--surface-2);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer}
.svp-x svg{width:18px;height:18px}
.svp-strip{display:flex;align-items:flex-end;gap:10px;overflow-x:auto;padding:10px 16px 18px;scrollbar-width:none}
.svp-strip::-webkit-scrollbar{display:none}
.svp-th{position:relative;flex:0 0 auto;width:92px;aspect-ratio:9/16;padding:0;border:0;background:none;cursor:pointer;opacity:.6;transform:scale(.88);transform-origin:bottom center;transition:opacity .2s,transform .2s}
.svp-th img{display:block;width:100%;height:100%;object-fit:cover;border-radius:12px;background:var(--surface-2)}
.svp-th i{position:absolute;inset:0;margin:auto;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.svp-th i svg{width:12px;height:12px;fill:#fff;margin-left:2px}
.svp-th.on{opacity:1;transform:none}
.svp-th.on img{box-shadow:0 8px 22px rgba(0,0,0,.2)}
.svp-th.on::after{content:'';position:absolute;left:8%;right:8%;bottom:-11px;height:3px;border-radius:3px;background:var(--ink)}
.svp-tabs{display:flex;gap:8px;padding:2px 16px 8px}
.svp-tab{padding:9px 16px;border:0;border-radius:999px;background:none;color:var(--ink-2);font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.svp-tab.on{background:var(--blue-soft);color:var(--blue)}
.svp-body{flex:1 0 auto;padding:4px 16px calc(env(safe-area-inset-bottom, 0px) + 24px)}
.svp-body>.spinner{margin:40px auto}
.svp-h{display:flex;align-items:center;justify-content:space-between;margin:12px 0 4px}
.svp-h b{font-size:20px;font-weight:800}
.svp-list{display:flex;flex-direction:column}
.svp-row{position:relative;display:flex;align-items:center;gap:14px;padding:10px 0}
.svp-av{display:block;flex:0 0 56px;width:56px;height:56px;padding:2px;border-radius:50%}
.svp-av.ring{background:linear-gradient(135deg,#3b82f6,#a855f7)}
.svp-av img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid var(--surface)}
.svp-who{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;color:var(--ink);text-decoration:none}
.svp-who small{font-size:12.5px;color:var(--ink-3)}
.svp-who b{max-width:100%;font-size:16.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.svp-rx{margin-top:2px;font-size:18px;line-height:1.2}
.svp-when{flex:0 0 auto;font-size:12.5px;color:var(--ink-3)}
.svp-more{flex:0 0 36px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-2);font-size:20px;font-weight:800;line-height:1;cursor:pointer}
.svp-more:hover{background:var(--surface-2)}
.svp-menu{position:absolute;right:0;top:52px;z-index:2;min-width:180px;display:flex;flex-direction:column;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-lg)}
.svp-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:var(--ink);font-weight:600}
.svp-menu a:hover{background:var(--surface-2)}
.svp-menu svg{width:18px;height:18px}
.svp-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 10px;color:var(--ink-3);text-align:center}
.svp-empty svg{width:34px;height:34px}
.svp-empty p{color:var(--ink);font-weight:700}
.svp-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 14px}
.svp-kpi{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:14px;background:var(--surface-2)}
.svp-kpi b{font-size:22px;font-weight:800}
.svp-kpi span{font-size:13px;color:var(--ink-3)}
.svp-rxs{display:flex;flex-direction:column;gap:8px}
.svp-rxc{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-weight:600;text-transform:capitalize}
.svp-rxc i{font-style:normal;font-size:20px}
.svp-rxc b{margin-left:auto}
.svp-note{color:var(--ink-3)}
/* over the viewer: the sign-in prompt a guest's reaction / Follow opens (z 200 would sit behind it); the floating
   create button (z 900) hides while a story is open */
.story-viewer ~ .modal-back{z-index:310}
body:has(> .story-viewer) .cfab{display:none}
body:has(> .lb-back) .cfab{display:none}   /* a photo open in the lightbox: no + button floating over it */

/* Story creator: the picked photos / clips in play order — remove one, retry a failed one, add more */
.st-zone small{display:block;margin-top:6px;font-size:12.5px;opacity:.8}
.st-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.st-tray[hidden],.st-zone[hidden]{display:none}
.st-item,.st-add{position:relative;aspect-ratio:9/16;border-radius:10px;overflow:hidden}
.st-item{background:var(--surface-2)}
.st-item img{width:100%;height:100%;object-fit:cover;display:block}
.st-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--ink-3)}
.st-ph svg{width:26px;height:26px}
.st-vid{position:absolute;top:50%;left:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.st-vid svg{width:13px;height:13px;fill:#fff;margin-left:2px}
.st-n{position:absolute;top:5px;left:5px;z-index:2;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.st-del{position:absolute;top:4px;right:4px;z-index:2;width:24px;height:24px;padding:0;border:none;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:12px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.st-state{position:absolute;inset:0;z-index:1;display:none;flex-direction:column;align-items:center;justify-content:center;padding:6px;background:rgba(0,0,0,.45);color:#fff;font-size:12px;font-weight:800;text-align:center}
.st-item.wait .st-state,.st-item.up .st-state,.st-item.err .st-state{display:flex}
.st-state i{position:absolute;left:0;bottom:0;height:4px;background:var(--blue);transition:width .15s linear}
.st-item.err .st-state{background:rgba(185,28,28,.62);cursor:pointer}
.st-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;border:2px dashed var(--line);background:none;color:var(--ink-3);cursor:pointer;font:inherit;font-size:12px;font-weight:700}
.st-add b{font-size:26px;line-height:1;font-weight:500}
.st-add:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}

/* Upload progress bar (every upload panel) */
.up-bar{display:flex;align-items:center;gap:10px;margin:10px 0 4px}
.up-track{flex:1;height:8px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.up-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--blue),#7B5CFF);border-radius:6px;transition:width .2s ease}
.up-pct{font-size:12.5px;font-weight:800;color:var(--blue);min-width:42px;text-align:right;white-space:nowrap}
.up-bar.processing .up-track i{width:100%!important;background:linear-gradient(90deg,var(--blue),#9cc0ff,var(--blue));background-size:200% 100%;animation:up-ind 1.1s linear infinite}
.up-bar.processing .up-pct{color:var(--ink-3)}
@keyframes up-ind{0%{background-position:200% 0}100%{background-position:-200% 0}}
.rum .up-track,.rum-drop+.up-bar .up-track{background:rgba(255,255,255,.14)}

/* Drama episodes sheet — multi-season grouping */
.ep-scroll{flex:1;overflow-y:auto}
.ep-season{color:#f3efe6;font-weight:800;font-size:14px;padding:16px 20px 0;opacity:.85}
.ep-season + .ep-grid{padding-top:10px}

/* ============================================================
   Store Management — seller dashboard (PDF concept)
   ============================================================ */
.sm{max-width:560px;margin:0 auto;display:flex;flex-direction:column}
.sm-seg{display:flex;gap:4px;background:var(--surface-2);border-radius:14px;padding:5px;margin-bottom:18px}
.sm-seg-btn{flex:1;padding:11px 0;border:none;background:none;border-radius:10px;font-weight:800;font-size:14px;color:var(--ink-3);cursor:pointer;transition:background .15s,color .15s}
.sm-seg-btn.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
/* revenue card */
.sm-rev{position:relative;overflow:hidden;background:#16181d;color:#fff;border-radius:18px;padding:22px;margin-bottom:24px}
.sm-rev-glow{position:absolute;top:-40px;right:-30px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(22,163,74,.55),transparent 65%);pointer-events:none}
.sm-rev-label{font-size:12px;font-weight:800;letter-spacing:.1em;color:rgba(255,255,255,.55);position:relative}
.sm-rev-amt{font-size:46px;font-weight:900;letter-spacing:-1.5px;line-height:1.05;margin:6px 0 16px;position:relative}
.sm-rev-row{display:flex;align-items:center;gap:18px;position:relative}
.sm-rev-stat b{font-size:19px;font-weight:900;display:block}
.sm-rev-stat span{font-size:12.5px;color:rgba(255,255,255,.5)}
.sm-rev-sep{width:1px;align-self:stretch;background:rgba(255,255,255,.14)}
.sm-trend{margin-left:auto;font-weight:800;font-size:15px}
.sm-trend.up{color:#34d77b}.sm-trend.down{color:#ff6b6b}
/* section header */
.sm-h{font-size:12.5px;font-weight:800;letter-spacing:.08em;color:var(--ink-3);text-transform:uppercase;margin:6px 2px 12px}
.sm-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);margin-bottom:24px}
/* chart */
.sm-chart{display:flex;align-items:flex-end;gap:8px;height:150px;padding:18px 16px 12px}
.sm-barwrap{flex:1;display:flex;flex-direction:column;align-items:center;height:100%}
.sm-bar{flex:1;width:100%;max-width:34px;display:flex;align-items:flex-end;margin:0 auto}
.sm-bar i{display:block;width:100%;border-radius:9px;background:#cfe9da}
.sm-bar i.hot{background:var(--positive,#16A34A)}
.sm-barwrap span{font-size:12px;color:var(--ink-3);font-weight:700;margin-top:8px}
/* action tiles + sources */
.sm-acts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}
.sm-act{display:flex;flex-direction:column;align-items:center;gap:7px;padding:18px 8px;margin:0;text-align:center}
.sm-act-ic{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center}
.sm-act-ic svg{width:21px;height:21px}
.sm-act-ic.orange{background:#fdecd2;color:#e0820f}.sm-act-ic.navy{background:#e3e7f0;color:#33415e}
.sm-act-ic.red{background:#fbe0e0;color:#dc2626}.sm-act-ic.blue{background:#dfeafe;color:#2563eb}
.sm-act-ic.green{background:#d8f3e3;color:#16a34a}.sm-act-ic.gray{background:#e9ebef;color:#6b7280}
.sm-act b{font-size:24px;font-weight:900}
.sm-act>span:last-child{font-size:13px;color:var(--ink-2);font-weight:700}
.c-orange{color:#e0820f}.c-navy{color:#33415e}.c-red{color:#dc2626}
/* best sellers */
.sm-list{padding:6px 0}
.sm-best{padding:12px 16px}
.sm-best-top{display:flex;align-items:center;gap:11px}
.sm-best-top img,.sm-best-ph{width:34px;height:34px;border-radius:9px;object-fit:cover;flex:0 0 34px;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
.sm-best-ph svg{width:18px;height:18px;color:var(--ink-3)}
.sm-best-top b{flex:1;font-size:15px;font-weight:800}
.sm-best-top em{font-style:normal;font-weight:900;font-size:16px}
.sm-best-bar{height:6px;border-radius:6px;background:var(--surface-2);margin:9px 0 2px;margin-left:45px;overflow:hidden}
.sm-best-bar i{display:block;height:100%;border-radius:6px}
/* payment */
.sm-pay{padding:4px 0}
.sm-pay-row{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-size:14px;color:var(--ink-2)}
.sm-pay-row+.sm-pay-row{border-top:1px solid var(--line)}
.sm-pay-row b{color:var(--ink)}
.sm-pill{font-weight:800;font-size:13px;padding:4px 11px;border-radius:999px}
.sm-pill.red{background:#fbe0e0;color:#dc2626}.sm-pill.orange{background:#fdecd2;color:#c9760b}.sm-pill.green{background:#d8f3e3;color:#15803d}
/* low stock */
.sm-low{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-size:14.5px}
.sm-low+.sm-low{border-top:1px solid var(--line)}
.sm-low b{font-weight:800}
/* top customers */
.sm-cust{display:flex;align-items:center;gap:12px;padding:12px 16px;color:var(--ink)}
.sm-cust+.sm-cust{border-top:1px solid var(--line)}
.sm-cust-n{width:18px;color:var(--ink-3);font-weight:800;text-align:center}
.sm-cust-av{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:var(--ink-2)}
.sm-cust b{flex:1;font-size:15px;font-weight:700}
.sm-cust em{font-style:normal;font-weight:900}
.sm-empty{padding:20px;text-align:center;color:var(--ink-3);font-size:14px}

/* Store Management — full page */
.sm-page{max-width:560px;margin:0 auto;padding:18px 14px 90px}
.sm-page-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.sm-back{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--line);color:var(--ink);flex:0 0 38px}
.sm-back svg{width:20px;height:20px}
.sm-page-head h1{font-size:24px;font-weight:900}
.sm-page .sm{max-width:none}
/* store-management tabs */
.sm-tabs{display:flex;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:5px;margin-bottom:18px}
.sm-tab{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;padding:9px 4px;border-radius:10px;font-weight:800;font-size:12.5px;color:var(--muted)}
.sm-tab span{overflow:hidden;text-overflow:ellipsis}
.sm-tab svg{width:17px;height:17px;flex:0 0 17px}
@media(max-width:380px){.sm-tab span{display:none}}
.sm-tab.active{background:var(--blue);color:var(--on-accent)}
/* ---- POS ---- */
.pos{padding-bottom:84px}
.pos-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 12px;margin-bottom:14px}
.pos-search svg{width:18px;height:18px;color:var(--muted);flex:0 0 18px}
.pos-search input{flex:1;border:0;background:none;padding:12px 0;font-size:15px;color:var(--ink);outline:none}
/* product picker — list view */
.pos-grid{display:flex;flex-direction:column;gap:8px}
.pos-prod{display:flex;flex-direction:row;align-items:center;gap:12px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 12px 8px 8px;overflow:hidden;transition:transform .08s,border-color .15s}
.pos-prod:active{transform:scale(.99)}
.pos-prod.in{border-color:#16a34a;box-shadow:0 0 0 1px #16a34a inset}
.pos-prod.oos{opacity:.5}
.pos-prod-img{position:relative;flex:0 0 54px;width:54px;height:54px;border-radius:10px;background:var(--canvas);display:flex;align-items:center;justify-content:center;overflow:hidden}
.pos-prod-img img{width:100%;height:100%;object-fit:cover}
.pos-prod-ph{color:var(--muted)}.pos-prod-ph svg{width:24px;height:24px}
.pos-stock{position:absolute;left:3px;top:3px;font-size:9px;font-weight:800;background:rgba(0,0,0,.62);color:#fff;padding:1px 5px;border-radius:20px;line-height:1.5}
.pos-stock.low{background:#E0820F}.pos-stock.out{background:#DC2626}
.pos-prod-qty{position:absolute;right:3px;top:3px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;background:#16a34a;color:#fff;font-size:11px;font-weight:900;border-radius:50%;padding:0 5px}
.pos-prod-t{flex:1;min-width:0;font-size:14px;font-weight:700;line-height:1.3;padding:0;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pos-prod-p{flex:0 0 auto;font-size:15px;font-weight:900;padding:0;color:var(--ink);white-space:nowrap}
/* cart drawer + bottom bar */
.pos-cart{position:fixed;left:50%;transform:translateX(-50%);bottom:70px;width:min(560px,calc(100% - 24px));max-height:50vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25);padding:8px;z-index:40}
.pos-citem{display:flex;align-items:center;gap:10px;padding:9px 6px;border-bottom:1px solid var(--line)}
.pos-ci-t{flex:1;font-size:13.5px;font-weight:700;color:var(--ink);display:flex;flex-direction:column}
.pos-ci-t em{font-style:normal;font-weight:600;font-size:11.5px;color:var(--muted)}
.pos-ci-p{font-size:13.5px;font-weight:900;color:var(--ink);min-width:62px;text-align:right}
.pos-qty{display:flex;align-items:center;gap:2px;background:var(--canvas);border:1px solid var(--line);border-radius:20px;padding:2px}
.pos-qty button{width:26px;height:26px;border-radius:50%;font-size:16px;font-weight:900;color:var(--ink);display:flex;align-items:center;justify-content:center}
.pos-qty b{min-width:22px;text-align:center;font-size:13px;font-weight:800}
.pos-clear{width:100%;padding:10px;margin-top:4px;font-weight:800;font-size:13px;color:#DC2626}
.pos-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(560px,100%);display:flex;gap:10px;align-items:center;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);z-index:101}
/* on mobile, lift the checkout bar + cart drawer above the fixed bottom nav */
@media (max-width:680px){
  .pos-bar{bottom:calc(60px + env(safe-area-inset-bottom));padding-bottom:10px}
  .pos-cart{bottom:calc(130px + env(safe-area-inset-bottom))}
}
.pos-cartbtn{flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--canvas);border:1px solid var(--line);border-radius:12px;padding:11px 14px;font-weight:900;font-size:16px;color:var(--ink)}
.pos-bag{position:relative;display:flex;align-items:center;color:var(--muted)}
.pos-bag svg{width:22px;height:22px}
.pos-bag i{position:absolute;right:-9px;top:-7px;min-width:17px;height:17px;display:flex;align-items:center;justify-content:center;background:#16a34a;color:#fff;font-size:10px;font-weight:900;border-radius:50%;font-style:normal;padding:0 4px}
.pos-charge{flex:0 0 auto;padding:12px 26px;font-size:15px;border-radius:12px}
.pos-empty{text-align:center;padding:48px 20px;color:var(--muted)}
.pos-empty-ic{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.pos-empty-ic svg{width:30px;height:30px}
.pos-empty h3{font-size:18px;font-weight:900;color:var(--ink);margin-bottom:6px}
.pos-empty p{margin-bottom:16px}
/* charge modal */
.pos-sum{background:var(--canvas);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:14px}
.pos-sum-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:3px 0;color:var(--muted)}
.pos-sum-row b{color:var(--ink);font-weight:800}
.pos-sum-tot{display:flex;justify-content:space-between;gap:10px;font-size:15px;font-weight:900;color:var(--ink);border-top:1px solid var(--line);margin-top:6px;padding-top:8px}
.pos-pay{display:flex;gap:10px}
.pos-payopt{flex:1;cursor:pointer}
.pos-payopt input{position:absolute;opacity:0}
.pos-payopt span{display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--line);border-radius:12px;padding:11px 12px;font-weight:800;font-size:14px;color:var(--ink)}
.pos-payopt span i{font-style:normal;font-weight:600;font-size:11.5px;color:var(--muted)}
.pos-payopt input:checked+span{border-color:#16a34a;background:rgba(22,163,74,.08)}
/* stock field + owner listing actions */
.ms-opt{font-weight:400;color:var(--muted);font-size:12px}
.ld-owner-acts{display:flex;gap:10px;margin-top:10px}
.ld-owner-acts .btn{flex:1;display:flex;align-items:center;justify-content:center;gap:6px}
.ld-owner-acts .btn svg{width:16px;height:16px}
.ld-del{color:#DC2626}
.ld-soldout{text-align:center;font-weight:900;color:#DC2626;background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.3);border-radius:10px;padding:12px}
.ld-instock{font-size:13px;font-weight:700;color:#16a34a;margin-bottom:8px}
/* ---- Seller Orders (list) ---- */
.so-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.so-head h2{font-size:22px;font-weight:900}
.so-add{width:40px;height:40px;border-radius:12px;background:#16a34a;color:#fff;display:flex;align-items:center;justify-content:center}
.so-add svg{width:22px;height:22px;stroke:#fff;fill:none}
.so-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 12px;margin-bottom:12px}
.so-search svg{width:18px;height:18px;color:var(--muted);flex:0 0 18px}
.so-search input{flex:1;border:0;background:none;padding:12px 0;font-size:15px;color:var(--ink);outline:none}
.so-chips{display:flex;gap:8px;overflow-x:auto;margin-bottom:14px;-ms-overflow-style:none;scrollbar-width:none}
.so-chips::-webkit-scrollbar{display:none}
.so-chip{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 14px;border-radius:20px;background:var(--surface);border:1px solid var(--line);font-weight:700;font-size:13.5px;color:var(--ink)}
.so-chip i{font-style:normal;color:var(--muted);font-weight:800}
.so-chip.active{background:var(--ink);color:var(--surface)}
.so-chip.active i{color:var(--surface);opacity:.7}
.so-list{display:flex;flex-direction:column;gap:10px}
.so-card{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.so-av{flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:var(--canvas);display:flex;align-items:center;justify-content:center;color:var(--muted)}
.so-av svg{width:18px;height:18px}
.so-mid{flex:1;min-width:0}
.so-name{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.so-name b{font-size:15px;font-weight:800;color:var(--ink)}
.so-code{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.5px}
.so-badges{display:flex;gap:6px;margin-top:5px;flex-wrap:wrap}
.so-badge{font-size:11px;font-weight:800;padding:3px 9px;border-radius:20px}
.so-badge.green{background:rgba(22,163,74,.13);color:#16a34a}
.so-badge.red{background:rgba(220,38,38,.12);color:#DC2626}
.so-badge.orange{background:rgba(224,130,15,.14);color:#E0820F}
.so-badge.navy{background:rgba(30,41,59,.12);color:#334155}
.so-badge.blue{background:rgba(37,99,235,.13);color:#2563EB}
.so-right{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.so-right b{font-size:17px;font-weight:900;color:var(--ink)}
.so-right svg{width:18px;height:18px;color:var(--muted)}
/* ---- Order detail ---- */
.od-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.od-head-t{flex:1;display:flex;flex-direction:column;line-height:1.2}
.od-head-t b{font-size:20px;font-weight:900}
.od-head-t span{font-size:13px;color:var(--muted)}
.od-src{font-size:12px;font-weight:800;color:var(--muted);background:var(--surface);border:1px solid var(--line);padding:5px 11px;border-radius:20px}
.od-cust{display:flex;align-items:center;gap:12px;padding:14px}
.od-cust-av{width:46px;height:46px;border-radius:50%;background:var(--canvas);display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--muted)}
.od-cust-i{display:flex;flex-direction:column;line-height:1.3}
.od-cust-i b{font-size:16px;font-weight:800}
.od-cust-i span{font-size:13px;color:var(--ink)}
.od-rel{display:flex;align-items:center;gap:8px;background:rgba(22,163,74,.07);border:1px solid rgba(22,163,74,.25);border-radius:12px;padding:11px 14px;margin:10px 0;font-size:13.5px;color:var(--ink)}
.od-rel svg{width:18px;height:18px;color:#16a34a;flex:0 0 18px}
.od-badges{display:flex;gap:8px;margin:6px 0 4px}
.od-sec{font-size:11px;font-weight:800;letter-spacing:.8px;color:var(--muted);margin:18px 0 8px}
.od-items{padding:6px 14px}
.od-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.od-q{flex:0 0 26px;width:26px;height:26px;border-radius:7px;background:var(--canvas);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.od-it-t{flex:1;font-size:14px;font-weight:600;color:var(--ink)}
.od-item b{font-size:14px;font-weight:800}
.od-total{display:flex;justify-content:space-between;align-items:center;padding:12px 0 6px;font-weight:900}
.od-total span{font-size:15px}.od-total b{font-size:20px}
.od-pay{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;font-weight:800}
.od-pay.ok{color:#16a34a}.od-pay.due{color:#E0820F}
.od-mini{padding:8px 16px;font-size:13px;border-radius:10px}
.od-deliver{display:flex;align-items:flex-start;gap:12px;padding:14px}
.od-deliver-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:rgba(22,163,74,.1);display:flex;align-items:center;justify-content:center}
.od-deliver-ic svg{width:20px;height:20px;color:#16a34a}
.od-deliver div{display:flex;flex-direction:column;gap:3px}
.od-deliver b{font-size:14px;font-weight:700}.od-deliver span{font-size:13px;color:var(--muted)}
.od-ship{display:flex;align-items:center;gap:12px;padding:14px;margin-top:10px}
.od-ship-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:rgba(var(--gold-rgb),.10);display:flex;align-items:center;justify-content:center;font-size:18px}
.od-ship-ic svg{width:20px;height:20px;color:var(--blue)}
.od-ship-fields{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
.od-ship-sel,.od-ship-track{width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);font-size:13px;font-weight:600}
.od-ship-sel:focus,.od-ship-track:focus{outline:none;border-color:var(--blue)}
.od-ship .od-mini{align-self:stretch;white-space:nowrap}
.od-fulfill{padding:18px 14px}
.od-flow{display:flex;align-items:flex-start;margin-bottom:16px}
.od-node{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 auto;width:62px}
.od-dot{width:30px;height:30px;border-radius:50%;background:var(--canvas);border:2px solid var(--line);display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:900}
.od-node.done .od-dot{background:#16a34a;border-color:#16a34a}
.od-node.cur .od-dot{box-shadow:0 0 0 4px rgba(22,163,74,.18)}
.od-node em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted);text-align:center}
.od-node.done em{color:var(--ink)}
.od-line{flex:1;height:3px;border-radius:3px;background:var(--line);margin-top:14px}
.od-line.done{background:#16a34a}
.od-advance{width:100%}
.ord-flow-card{padding:10px 2px 0}
.ord-flow-card .od-flow{margin-bottom:0}
.od-complete{text-align:center;font-weight:900;color:#16a34a;padding:8px}
.od-actions{display:flex;gap:10px;margin-top:18px}
.od-actions .btn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px}
.od-actions .btn svg{width:17px;height:17px}
/* receipt */
.rcpt{border:1px dashed var(--line);border-radius:12px;padding:14px;margin-bottom:14px;font-size:13px}
.rcpt-h{display:flex;flex-direction:column;align-items:center;gap:2px;margin-bottom:8px}
.rcpt-h b{font-size:16px}.rcpt-h span{font-size:11px;color:var(--muted)}
.rcpt-cust{text-align:center;color:var(--muted);margin-bottom:10px}
.rcpt-row{display:flex;justify-content:space-between;padding:3px 0}
.rcpt-tot{display:flex;justify-content:space-between;border-top:1px dashed var(--line);margin-top:8px;padding-top:8px;font-weight:900;font-size:15px}
.rcpt-pay{text-align:center;font-weight:900;letter-spacing:2px;margin-top:10px;color:var(--ink)}
/* ---- Inbox ---- */
.ib-list{display:flex;flex-direction:column;gap:8px}
.ib-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.ib-row svg{width:18px;height:18px;color:var(--muted);flex:0 0 18px}
.ib-av{position:relative;flex:0 0 46px;width:46px;height:46px;border-radius:50%;overflow:visible;background:var(--canvas);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--muted)}
.ib-av img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.ib-unread{position:absolute;right:-3px;top:-3px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;background:#DC2626;color:#fff;font-size:10px;font-weight:900;border-radius:50%;font-style:normal;padding:0 5px;border:2px solid var(--surface)}
.ib-mid{flex:1;min-width:0}
.ib-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ib-top b{font-size:15px;font-weight:800;color:var(--ink)}
.ib-time{font-size:11.5px;color:var(--muted);flex:0 0 auto}
.ib-msg{font-size:13.5px;color:var(--ink);margin:2px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ib-prod{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--muted);background:var(--canvas);border:1px solid var(--line);border-radius:8px;padding:4px 8px;width:fit-content;max-width:100%}
.ib-prod img{width:22px;height:22px;border-radius:5px;object-fit:cover}
.ib-prod-ph{display:flex}.ib-prod-ph svg{width:14px;height:14px}
.ib-prod span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-dark{background:#111;color:#fff}
.btn-dark svg{width:16px;height:16px;fill:none;stroke:#fff}
/* ---- Products list ---- */
.so-chip2{flex:0 0 auto;display:flex;align-items:center;gap:5px;padding:8px 14px;border-radius:20px;background:var(--surface);border:1px solid var(--line);font-weight:700;font-size:13.5px;color:var(--ink)}
.so-chip2.active{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}
.pc-list{display:flex;flex-direction:column;gap:12px}
.pc-card{display:flex;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.pc-img{flex:0 0 88px;width:88px;height:88px;border-radius:14px;overflow:hidden;background:var(--canvas);display:flex;align-items:center;justify-content:center;font-size:34px}
.pc-img img{width:100%;height:100%;object-fit:cover}
.pc-info{flex:1;min-width:0}
.pc-name{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pc-name b{font-size:17px;font-weight:800;color:var(--ink)}
.pc-name svg{width:18px;height:18px;color:var(--muted);flex:0 0 18px}
.pc-meta{display:flex;align-items:center;gap:8px;margin:5px 0}
.pc-cat{font-size:12px;font-weight:800;color:#16a34a;background:rgba(22,163,74,.12);padding:3px 9px;border-radius:20px}
.pc-code{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.5px}
.pc-price{display:flex;align-items:baseline;gap:6px;margin-top:6px}
.pc-price b{font-size:20px;font-weight:900;color:var(--ink)}
.pc-stock{font-size:13px;color:var(--muted)}
.pc-vchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pc-vchip{font-size:12px;font-weight:700;color:var(--ink);background:var(--canvas);border:1px solid var(--line);padding:4px 9px;border-radius:8px}
.pc-vchip.low{color:#E0820F}
.pc-vchip.out{color:#DC2626;background:rgba(220,38,38,.1);border-color:rgba(220,38,38,.25)}
/* ---- Product detail ---- */
.pdv-edit{display:flex;align-items:center;gap:6px;padding:8px 16px;font-size:13px}
.pdv-edit svg{width:16px;height:16px}
.pdv-main{position:relative;width:100%;aspect-ratio:1/.78;border-radius:16px;overflow:hidden;background:var(--canvas);display:flex;align-items:center;justify-content:center}
.pdv-main img{width:100%;height:100%;object-fit:cover}
.pdv-ph{font-size:60px}
.pdv-cat{position:absolute;left:12px;top:12px;font-size:12px;font-weight:800;color:#16a34a;background:rgba(255,255,255,.92);padding:5px 11px;border-radius:20px}
.pdv-count{position:absolute;right:12px;top:12px;font-size:12px;font-weight:800;color:#fff;background:rgba(0,0,0,.55);padding:4px 10px;border-radius:20px}
.pdv-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}
.pdv-thumb{flex:0 0 60px;width:60px;height:60px;border-radius:12px;overflow:hidden;border:2px solid transparent}
.pdv-thumb img{width:100%;height:100%;object-fit:cover}
.pdv-thumb.active{border-color:#16a34a}
.pdv-code{display:inline-block;margin-top:14px;font-size:12px;font-weight:700;color:var(--muted);background:var(--surface);border:1px solid var(--line);padding:3px 10px;border-radius:8px}
.pdv-title{font-size:28px;font-weight:900;margin:8px 0 4px}
.pdv-price{display:flex;align-items:baseline;gap:8px;margin-bottom:14px}
.pdv-price b{font-size:26px;font-weight:900}
.pdv-price span{font-size:14px;color:var(--muted)}
.pdv-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pdv-stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 8px;text-align:center}
.pdv-stat b{display:block;font-size:21px;font-weight:900;color:var(--ink)}
.pdv-stat span{font-size:12px;color:var(--muted)}
.pdv-desc{padding:14px;font-size:14px;color:var(--ink)}
.pdv-vtable{padding:4px 0;overflow:hidden}
.pdv-vrow{display:grid;grid-template-columns:1.5fr .9fr .6fr .6fr .6fr;align-items:center;gap:6px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:14px}
.pdv-vrow:last-child{border-bottom:0}
.pdv-vrow span:not(.pdv-vn){text-align:right;font-weight:700}
.pdv-vhead{background:var(--canvas)}
.pdv-vhead span{font-size:10.5px;font-weight:800;letter-spacing:.5px;color:var(--muted)}
.pdv-vn{font-weight:800;color:var(--ink)}
.pdv-held{color:var(--ink-3)}
.pdv-held.on{color:#E0820F}
.pdv-avail{color:#16a34a;font-weight:900!important}
.pdv-hint{font-size:12.5px;color:var(--muted);margin:8px 2px 0;line-height:1.4}
.pdv-share{padding:14px}
.pdv-cap{font-size:13px;line-height:1.5;color:var(--ink);white-space:pre-wrap;border-left:3px solid var(--line);padding-left:12px;margin-bottom:12px}
.pdv-copy{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}
.pdv-addorder{width:100%;margin-top:12px;display:flex;align-items:center;justify-content:center;gap:8px;color:#16a34a}
.pdv-addorder svg{width:18px;height:18px;stroke:#16a34a}
/* ---- Product editor ---- */
.pe-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:var(--ink-2);margin:18px 2px 8px}
.pe-label span{font-size:12px;font-weight:600;color:var(--muted)}
.pe-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pe-photo{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.pe-photo img{width:100%;height:100%;object-fit:cover}
.pe-cover{position:absolute;left:6px;top:6px;font-size:10px;font-weight:800;color:#fff;background:#16a34a;padding:3px 8px;border-radius:20px}
.pe-mkcover{position:absolute;left:6px;top:6px;font-size:10px;font-weight:800;color:#fff;background:rgba(0,0,0,.55);padding:3px 8px;border-radius:20px}
.pe-rm{position:absolute;right:6px;top:6px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:13px;font-weight:900;display:flex;align-items:center;justify-content:center}
.pe-addphoto{aspect-ratio:1;border:2px dashed var(--blue);border-radius:14px;background:var(--blue-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--blue);font-weight:800;font-size:13px}
.pe-addphoto svg{width:24px;height:24px;stroke:var(--blue);fill:none}
.pe-input{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:13px 14px;font-size:15px;color:var(--ink);outline:none}
.pe-input:focus{border-color:var(--blue)}
.pe-textarea{resize:vertical;min-height:80px;font-family:inherit}
.pe-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.pe-cat{flex:0 0 auto;display:flex;align-items:center;gap:5px;padding:10px 16px;border-radius:22px;background:var(--surface);border:1px solid var(--line);font-weight:800;font-size:14px;color:var(--ink)}
.pe-cat.active{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.pe-variants{display:flex;flex-direction:column;gap:12px}
.pe-var{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.pe-var-top{display:flex;gap:10px;margin-bottom:10px}
.pe-vdel{flex:0 0 46px;width:46px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#DC2626}
.pe-vdel svg{width:18px;height:18px}
.pe-var-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pe-fld label{display:block;font-size:11px;font-weight:800;letter-spacing:.5px;color:var(--muted);margin-bottom:5px}
.pe-money{position:relative}
.pe-money span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:700}
.pe-money .pe-input{padding-left:26px}
.pe-addvar{display:flex;align-items:center;justify-content:center;gap:6px;padding:13px;border:2px dashed var(--green);border-radius:14px;background:rgba(15,169,104,.07);color:var(--green);font-weight:800;font-size:14px}
.pe-addvar svg{width:18px;height:18px;stroke:var(--green);fill:none}
.pe-savebig{width:100%;margin-top:20px;padding:15px;font-size:16px}
/* ---- Order-status timeline card (messenger bubble) ---- */
.ostat{display:block;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:13px 14px;max-width:300px;color:var(--ink)}
.ostat-h{font-size:13.5px;font-weight:800;margin-bottom:12px}
.ostat-flow{display:flex;align-items:flex-start}
.ostat-node{display:flex;flex-direction:column;align-items:center;gap:5px;flex:0 0 auto;width:52px}
.ostat-node span{width:24px;height:24px;border-radius:50%;background:var(--canvas);border:2px solid var(--line);display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:900}
.ostat-node.done span{background:#16a34a;border-color:#16a34a}
.ostat-node em{font-style:normal;font-size:10px;font-weight:700;color:var(--muted);text-align:center}
.ostat-node.done em{color:var(--ink)}
.ostat-line{flex:1;height:3px;border-radius:3px;background:var(--line);margin-top:11px}
.ostat-line.done{background:#16a34a}
.ostat-complete{text-align:center;font-weight:800;color:#16a34a;font-size:13px;margin-top:10px}
/* seller "process order" CTA under an order-alert message */
.msg-process{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:2px;background:var(--blue);color:var(--on-accent);font-weight:800;font-size:13.5px;padding:10px 16px;border-radius:13px;box-shadow:0 4px 14px rgba(var(--gold-rgb),.28);transition:transform .12s,filter .15s}
.msg-process svg{width:16px;height:16px;fill:none;stroke:#fff}
.msg-process:hover{filter:brightness(1.07)}
.msg-process:active{transform:scale(.97)}
/* ---- Notification center ---- */
.ntf-wrap{max-width:620px;margin:0 auto;padding:22px 16px 90px}
.ntf-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.ntf-head h1{font-size:24px;font-weight:900;display:flex;align-items:center;gap:10px}
.ntf-head h1 svg{width:24px;height:24px;fill:none;stroke:currentColor}
.ntf-list{display:flex;flex-direction:column;gap:8px}
.ntf-row{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;transition:border-color .15s,transform .1s}
.ntf-row:hover{border-color:rgba(var(--gold-rgb),.4)}
.ntf-row:active{transform:scale(.99)}
.ntf-row.unread{background:linear-gradient(90deg,rgba(var(--gold-rgb),.07),var(--surface) 60%);border-color:rgba(var(--gold-rgb),.22)}
.ntf-av{position:relative;flex:0 0 46px;width:46px;height:46px;border-radius:50%;overflow:visible;background:var(--canvas);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--muted)}
.ntf-av img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.ntf-ic{position:absolute;right:-3px;bottom:-3px;width:21px;height:21px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--blue);color:var(--on-accent);font-size:11px;font-style:normal;border:2px solid var(--surface)}
.ntf-ic-like{background:#F0345C}.ntf-ic-comment{background:#2563EB}.ntf-ic-follow{background:#16a34a}.ntf-ic-video,.ntf-ic-reel{background:#7C3AED}.ntf-ic-mention{background:#E0820F}.ntf-ic-profile_view{background:#0EA5E9}
.ntf-mid{flex:1;min-width:0}
.ntf-txt{font-size:14px;color:var(--ink);line-height:1.35}
.ntf-txt b{font-weight:800}
.ntf-txt i{font-style:normal;color:var(--ink-2)}
.ntf-time{font-size:12px;color:var(--ink-3)}
.ntf-dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:var(--blue)}
.ntf-empty{text-align:center;padding:54px 20px;color:var(--ink-3)}
.ntf-empty-ic{width:66px;height:66px;margin:0 auto 14px;border-radius:50%;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.ntf-empty-ic svg{width:30px;height:30px;fill:none;stroke:var(--muted)}
.ntf-empty h3{font-size:18px;font-weight:900;color:var(--ink);margin-bottom:6px}
/* ---- Search ---- */
.nav-search-m{display:none}
@media (max-width:680px){.nav-search-m{display:flex}}
/* ---- Sidebar menu (from profile avatar / menu icon) — now on desktop too ---- */
.nav-menu-btn{display:flex}
@media (max-width:680px){
  .nav-hide-mobile{display:none!important}
}
.nm-back{position:fixed;inset:0;z-index:400;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0;transition:opacity .25s}
.nm-back.show{opacity:1}
.nm-panel{position:absolute;top:0;right:0;height:100%;width:min(330px,88%);background:var(--surface);box-shadow:-12px 0 44px rgba(0,0,0,.32);padding:calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 22px);display:flex;flex-direction:column;gap:14px;overflow-y:auto;transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.nm-back.show .nm-panel{transform:translateX(0)}
.nm-top{display:flex;align-items:center;justify-content:space-between}
.nm-top b{font-size:19px;font-weight:900;color:var(--ink)}
.nm-x{width:34px;height:34px;border-radius:50%;background:var(--surface-2);color:var(--ink);display:flex;align-items:center;justify-content:center;font-size:15px}
.nm-user{display:flex;align-items:center;gap:12px;padding:13px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.nm-user img{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:0 0 48px}
.nm-logo{width:48px;height:48px;flex:0 0 48px;border-radius:13px;background:var(--blue);color:var(--on-accent);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:22px}
.nm-user b{font-size:15px;font-weight:800;color:var(--ink);display:block}
.nm-user span{font-size:12.5px;color:var(--ink-3)}
.nm-grid{display:flex;flex-direction:column;gap:10px}
.nm-card{display:flex;flex-direction:row;align-items:center;gap:13px;padding:13px 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;font-weight:800;font-size:15px;color:var(--ink);text-align:left;transition:transform .12s,border-color .15s,background .15s}
.nm-card>b{flex:1;min-width:0}
.nm-card:hover{border-color:var(--blue)}
.nm-card:active{transform:scale(.985)}
.nm-ic{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue)}
.nm-ic svg{width:21px;height:21px}
.nm-ic.blue{background:rgba(59,130,246,.14);color:#3b82f6}
.nm-ic.red{background:rgba(240,52,92,.14);color:#F0345C}
.nm-card.nm-primary{background:var(--blue);border-color:var(--blue);color:var(--on-accent)}
.nm-card.nm-primary .nm-ic{background:rgba(255,255,255,.2);color:#fff}
.srch-wrap{max-width:620px;margin:0 auto;padding:18px 16px 90px}
.srch-bar{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px;margin-bottom:16px;position:sticky;top:8px;z-index:5}
.srch-bar svg{width:20px;height:20px;color:var(--muted);flex:0 0 20px}
.srch-bar input{flex:1;border:0;background:none;padding:14px 0;font-size:16px;color:var(--ink);outline:none}
.srch-clear{flex:0 0 auto;color:var(--muted);font-size:15px;padding:6px}
.srch-sec{font-size:11px;font-weight:800;letter-spacing:.6px;color:var(--muted);text-transform:uppercase;margin:14px 2px 8px}
.srch-row{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;transition:background .12s}
.srch-row:hover{background:var(--surface-2)}
.srch-av{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:0 0 46px}
.srch-pim{width:46px;height:46px;border-radius:11px;flex:0 0 46px;background:var(--canvas);display:flex;align-items:center;justify-content:center;font-size:22px;overflow:hidden}
.srch-pim img{width:100%;height:100%;object-fit:cover}
.srch-t{min-width:0}
.srch-t b{display:block;font-size:15px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.srch-t span{font-size:13px;color:var(--ink-3)}
.srch-t .srch-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* a long place name shortens */
.srch-t .ver-tick{width:16px;height:16px;vertical-align:-3px}
.srch-hint{text-align:center;color:var(--ink-3);padding:50px 20px}
.srch-hint svg{width:40px;height:40px;opacity:.5;margin-bottom:12px}
.srch-hint p{font-size:15px}
/* Search history: the Search page's recent searches (an empty box), and the top bar's drop-down (desktop) */
.srch-recent{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:4px 6px 12px}
.srch-rec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 4px 6px 10px}
.srch-rec-clear{font-size:13px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--blue);padding:4px 8px;border-radius:8px}
.srch-rec-clear:hover{background:var(--surface-2)}
.srch-rec{display:flex;align-items:center;gap:12px;padding:7px 4px 7px 10px;border-radius:12px;cursor:pointer;transition:background .12s}
.srch-rec:hover,.srch-rec:focus-visible{background:var(--surface-2);outline:none}
.srch-rec-ic{width:40px;height:40px;border-radius:50%;background:var(--canvas);color:var(--ink-3);display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.srch-rec:hover .srch-rec-ic,.srch-rec:focus-visible .srch-rec-ic{background:var(--surface)}
.srch-rec-ic svg{width:20px;height:20px}
.srch-rec-q{flex:1;min-width:0;font-size:15px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.srch-rec-x{flex:0 0 36px;width:36px;height:36px;border-radius:50%;color:var(--ink-3);font-size:14px;display:flex;align-items:center;justify-content:center}
.srch-rec-x:hover{background:var(--canvas);color:var(--ink)}
.srch-rec-note{font-size:12.5px;color:var(--ink-3);margin:12px 10px 0}
.nav-search{position:relative}
.nsh-drop{position:absolute;top:calc(100% + 10px);left:-6px;width:max(calc(100% + 12px),340px);max-height:min(70vh,520px);overflow-y:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(18,17,25,.16),0 2px 6px rgba(18,17,25,.06);padding:6px;z-index:120}
.nsh-drop[hidden]{display:none}
.nsh-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 6px 4px 8px}
.nsh-head b{font-size:15px;font-weight:800}
.nsh-clear{font-size:13px;font-weight:700;color:var(--blue);padding:4px 8px;border-radius:8px}
.nsh-clear:hover{background:var(--surface-2)}
.nsh-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:5px 4px 5px 8px;border-radius:10px;cursor:pointer}
.nsh-row:hover,.nsh-row.on{background:var(--surface-2)}
.nsh-ic{width:32px;height:32px;border-radius:50%;background:var(--canvas);color:var(--ink-3);display:flex;align-items:center;justify-content:center;flex:0 0 32px}
.nsh-row:hover .nsh-ic,.nsh-row.on .nsh-ic{background:var(--surface)}
.nsh-ic svg{width:17px;height:17px}
.nsh-go .nsh-ic{color:var(--blue)}
.nsh-q{flex:1;min-width:0;font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nsh-x{flex:0 0 30px;width:30px;height:30px;border-radius:50%;color:var(--ink-3);font-size:13px;display:flex;align-items:center;justify-content:center}
.nsh-x:hover{background:var(--canvas);color:var(--ink)}
.nsh-empty{padding:14px 10px;color:var(--ink-3);font-size:14px;text-align:center}
/* Search results: the box + tabs stay under the top bar; each kind is a card (All) or one long card / grid (a tab) */
.srch-top{position:sticky;top:var(--nav-h);z-index:6;background:var(--canvas);margin:-8px -16px 12px;padding:8px 16px 8px}
.srch-top .srch-bar{position:static;margin-bottom:0}
.sr-tabs{display:flex;gap:4px;margin-top:10px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.sr-tabs::-webkit-scrollbar{display:none}
.sr-tabs[hidden]{display:none}
@media (min-width:681px){.sr-tabs{flex-wrap:wrap;overflow:visible}}   /* a mouse can't swipe a row sideways: every tab in sight */
.sr-tab{flex:0 0 auto;padding:7px 14px;border-radius:999px;font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;transition:background .12s,color .12s}
.sr-tab:hover{background:var(--surface-2)}
.sr-tab.on{background:var(--blue-soft);color:var(--blue)}
.sr-sec{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:4px 6px 8px;margin-bottom:12px}
.sr-sec-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 6px 2px 10px}
.sr-sec-h h3{font-size:17px;font-weight:800;color:var(--ink);margin:0}
.sr-see{font-size:14px;font-weight:700;color:var(--blue);padding:6px 10px;border-radius:8px}
.sr-see:hover{background:var(--surface-2)}
.sr-hit{font-weight:800}
.sr-row{display:flex;align-items:center;gap:10px;padding:8px 6px 8px 10px;border-radius:12px}
.sr-main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;color:inherit}
.sr-row:hover{background:var(--surface-2)}
.sr-av{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:0 0 56px;background:var(--canvas)}
.sr-pic{width:64px;height:64px;border-radius:12px;flex:0 0 64px;overflow:hidden;background:var(--canvas);color:var(--ink-3);display:flex;align-items:center;justify-content:center}
.sr-pic.round{border-radius:50%}
.sr-pic img{width:100%;height:100%;object-fit:cover}
.sr-pic svg{width:26px;height:26px}
.sr-t{min-width:0;display:flex;flex-direction:column;gap:2px}
.sr-t b{font-size:15.5px;font-weight:700;color:var(--ink);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-t b.sr-2l{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sr-t .ver-tick{width:16px;height:16px;vertical-align:-3px;margin-left:3px}
.sr-sub{font-size:13px;color:var(--ink-3);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sr-fr{display:flex;align-items:center;font-size:13px;color:var(--ink-3);margin-top:3px}
.sr-faces{display:inline-flex;vertical-align:middle;margin-right:6px}
.sr-faces img{width:20px;height:20px;border-radius:50%;object-fit:cover;border:2px solid var(--surface);margin-left:-7px;background:var(--canvas)}
.sr-faces img:first-child{margin-left:0}
.sr-act{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:10px;background:var(--blue-soft);color:var(--blue);font-size:14px;font-weight:700;white-space:nowrap;transition:background .12s}
.sr-act:hover{background:var(--blue-soft-2)}
.sr-act.soft{background:var(--surface-2);color:var(--ink)}
.sr-act svg{width:17px;height:17px}
.sr-act:disabled{opacity:.6}
@media (max-width:480px){.sr-act{padding:8px 11px}.sr-row{gap:8px}}
.sr-posts{display:flex;flex-direction:column;gap:10px;padding:6px 4px 2px}
.sr-post{display:block;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);color:var(--ink)}
.sr-post-pic{position:relative;display:block;aspect-ratio:16/10;background:#000}
.sr-post-pic img{width:100%;height:100%;object-fit:cover;display:block}
.sr-post-pic::after{content:'';position:absolute;left:0;right:0;bottom:0;height:34%;background:linear-gradient(transparent,rgba(0,0,0,.45));pointer-events:none}   /* the count stays readable on a light photo */
.sr-play{position:absolute;z-index:1;inset:0;margin:auto;width:52px;height:52px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none}
.sr-play svg{width:24px;height:24px;margin-left:2px}
.sr-rx{position:absolute;z-index:1;left:10px;bottom:9px;display:inline-flex;align-items:center;gap:5px;color:#fff;font-size:14px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.sr-rx svg{width:17px;height:17px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
.sr-post-body{display:block;padding:10px 12px 12px}
.sr-by{display:flex;align-items:center;gap:6px;font-size:14px;min-width:0}
.sr-by img{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:0 0 24px}
.sr-by b{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-by .ver-tick{width:15px;height:15px;flex:0 0 15px}
.sr-time{color:var(--ink-3);font-size:13px;white-space:nowrap}
.sr-post-txt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:6px;font-size:14.5px;line-height:1.45;white-space:pre-line}
.sr-post-txt-only .sr-post-txt{-webkit-line-clamp:4;font-size:15.5px}
.sr-stats{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;color:var(--ink-3)}
.sr-like{width:18px;height:18px;border-radius:50%;background:var(--blue);color:var(--on-accent);display:inline-flex;align-items:center;justify-content:center}
.sr-like svg{width:11px;height:11px}
.sr-cmt{margin-left:auto}
.sr-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;padding:6px 6px 4px}
.sr-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:6px 6px 4px}
.sr-vid{display:flex;flex-direction:column;gap:5px;color:var(--ink);min-width:0}
.sr-vid-pic{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.sr-vid-pic img{width:100%;height:100%;object-fit:cover;display:block}
.sr-vid .sr-play{width:40px;height:40px}.sr-vid .sr-play svg{width:18px;height:18px}
.sr-vid-t{font-size:14px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sr-vid-by{font-size:12.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-vid-by b{font-weight:600}
.sr-reel{position:relative;display:block;aspect-ratio:9/16;border-radius:10px;overflow:hidden;background:#000;color:#fff}
.sr-reel img{width:100%;height:100%;object-fit:cover;display:block}
.sr-reel::after{content:'';position:absolute;left:0;right:0;bottom:0;height:55%;background:linear-gradient(transparent,rgba(0,0,0,.7));pointer-events:none}
.sr-reel-t{position:absolute;z-index:1;left:7px;right:7px;bottom:25px;font-size:12px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.sr-reel-v{position:absolute;z-index:1;left:7px;bottom:6px;display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:700;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.sr-reel-v svg{width:12px;height:12px}
.sr-prod{display:flex;flex-direction:column;gap:2px;color:var(--ink);min-width:0}
.sr-prod-pic{aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--canvas);display:flex;align-items:center;justify-content:center;font-size:34px;margin-bottom:4px}
.sr-prod-pic img{width:100%;height:100%;object-fit:cover;display:block}
.sr-prod b{font-size:15.5px;font-weight:800}
.sr-prod-t{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sr-prod-l{font-size:12.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sr-cats{display:flex;flex-wrap:wrap;gap:8px;padding:8px 8px 6px}
.sr-cat{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:var(--surface-2);color:var(--ink);font-size:14px}
.sr-cat b{font-weight:600}
.sr-more{min-height:44px;display:flex;justify-content:center;align-items:center;padding:8px}
.srch-hint-sub{font-size:13.5px !important;margin-top:6px;opacity:.85}
/* ---- PWA install banner ---- */
.pwa-banner{position:fixed;left:50%;transform:translate(-50%,160%);bottom:calc(14px + env(safe-area-inset-bottom));width:min(440px,calc(100% - 22px));display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 44px rgba(0,0,0,.32);padding:12px 14px;z-index:300;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.pwa-banner.show{transform:translate(-50%,0)}
@media (max-width:680px){.pwa-banner{bottom:calc(70px + env(safe-area-inset-bottom))}}
.pwa-ico{width:46px;height:46px;border-radius:12px;flex:0 0 46px}
.pwa-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pwa-txt b{font-size:14.5px;font-weight:800;color:var(--ink)}
.pwa-txt span{font-size:12px;color:var(--ink-3);line-height:1.4}
.pwa-install{flex:0 0 auto;padding:9px 16px;font-size:13px;border-radius:11px}
.pwa-x{flex:0 0 auto;align-self:flex-start;color:var(--muted);font-size:14px;padding:2px 5px}

/* ---- Change Log ---- */
.cl-wrap{max-width:760px;margin:0 auto;padding:26px 16px 90px}
.cl-load{display:flex;justify-content:center;padding:60px 0}
.cl-empty{text-align:center;color:var(--ink-3);padding:60px 0}
.cl-hero{text-align:center;padding:18px 0 30px;border-bottom:1px solid var(--line);margin-bottom:30px}
.cl-kicker{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.cl-hero h1{font-size:34px;font-weight:900;margin:8px 0 6px;letter-spacing:-.5px}
.cl-hero p{color:var(--ink-3);font-size:15px;margin:0}
.cl-meta{display:flex;gap:10px;justify-content:center;margin-top:16px;flex-wrap:wrap}
.cl-pill{font-size:12.5px;font-weight:800;padding:6px 14px;border-radius:999px;background:linear-gradient(135deg,var(--blue),#7B5CFF);color:var(--on-accent)}
.cl-pill.ghost{background:var(--canvas);color:var(--ink-2);border:1px solid var(--line)}
.cl-timeline{position:relative;padding-left:0}
.cl-rel{display:grid;grid-template-columns:140px minmax(0,1fr);gap:22px;padding:0 0 26px;position:relative}
.cl-rel::before{content:'';position:absolute;left:139px;top:6px;bottom:-4px;width:2px;background:var(--line)}
.cl-rel:last-child::before{display:none}
.cl-rel-side{text-align:right;padding-top:2px;position:relative}
.cl-rel-side::after{content:'';position:absolute;right:-9px;top:6px;width:14px;height:14px;border-radius:50%;background:var(--blue);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.cl-ver{display:block;font-size:13px;font-weight:900;color:var(--ink);font-variant-numeric:tabular-nums}
.cl-date{display:block;font-size:12px;color:var(--ink-3);margin-top:3px}
.cl-rel-body{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow)}
.cl-rel-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.cl-rel-head h2{font-size:18px;font-weight:800;margin:0}
.cl-tag{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:var(--canvas);color:var(--blue);border:1px solid var(--line)}
.cl-changes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.cl-changes li{display:flex;gap:10px;align-items:flex-start}
.cl-badge{flex:0 0 auto;font-size:10.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:3px 8px;border-radius:6px;margin-top:1px;min-width:64px;text-align:center}
.cl-feature .cl-badge{background:rgba(34,197,94,.14);color:#16a34a}
.cl-improvement .cl-badge{background:rgba(62,123,250,.14);color:var(--blue)}
.cl-fix .cl-badge{background:rgba(245,158,11,.16);color:#d97706}
.cl-text{font-size:14.5px;line-height:1.55;color:var(--ink-2)}
.cl-foot{text-align:center;color:var(--ink-3);font-size:13px;margin-top:24px}
.cl-foot a{color:var(--blue);font-weight:700}
html[data-theme=dark] .cl-feature .cl-badge{background:rgba(34,197,94,.2);color:#4ade80}
html[data-theme=dark] .cl-fix .cl-badge{background:rgba(245,158,11,.2);color:#fbbf24}
@media (max-width:600px){
  .cl-hero h1{font-size:27px}
  .cl-rel{grid-template-columns:1fr;gap:8px}
  .cl-rel::before{display:none}
  .cl-rel-side{text-align:left;display:flex;align-items:center;gap:8px}
  .cl-rel-side::after{display:none}
  .cl-date::before{content:'·';margin-right:6px}
  .cl-ver,.cl-date{display:inline}
}

/* ---------- Moderation: report modal, action sheet, block ---------- */
.rep-reasons{display:flex;flex-direction:column;gap:8px}
.rep-reason{display:block;width:100%;text-align:left;padding:11px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--text);font-weight:600;cursor:pointer;transition:.12s}
.rep-reason:hover{border-color:var(--blue)}
.rep-reason.active{border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
.sheet-actions{display:flex;flex-direction:column;gap:8px}
.sheet-act{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);font-weight:700;font-size:15px;cursor:pointer}
.sheet-act svg{width:20px;height:20px}
.sheet-act:hover{border-color:var(--blue)}
.sheet-act.danger{color:#e0444e}
.sheet-act.danger:hover{border-color:#e0444e;background:rgba(224,68,78,.08)}
.pd-act-more,.msgr-th-more{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;padding:0;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:11px;cursor:pointer}
.pd-act-more svg,.msgr-th-more svg{width:20px;height:20px}
.msgr-th-more{margin-left:auto}
.pd-act-more:hover,.msgr-th-more:hover{border-color:var(--blue);color:var(--blue)}
.admin-table tr.ad-row-done{opacity:.55}

/* ===== Admin → Edit User (full-page editor with tabs) ===== */
.aue-wrap{max-width:1000px;margin:0 auto;padding:22px 16px 90px}
.aue{max-width:100%}
.aue-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 16px;flex-wrap:wrap}
.aue-title{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}
.aue-title svg{width:22px;height:22px;color:var(--ink-3)}
.aue-title .crumb{color:var(--blue)}
.aue-actions{display:flex;gap:10px;flex-wrap:wrap}
.aue-actions .btn{white-space:nowrap;padding:10px 18px;border-radius:12px;font-weight:800}
.aue-actions .btn svg{width:18px;height:18px;flex:0 0 auto}
.aue-back{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.aue-back:hover{background:var(--line);border-color:var(--ink-3)}
.aue-loginas{background:linear-gradient(135deg,#ffd45e,#f5a623);color:#3a2600;box-shadow:0 6px 16px rgba(245,166,35,.32)}
.aue-loginas:hover{filter:brightness(1.04);transform:translateY(-1px)}
.aue-loginas:active{transform:translateY(0)}
.aue-top{display:flex;align-items:center;gap:18px;margin-bottom:22px;flex-wrap:wrap}
.aue-avatar{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--line);flex:0 0 auto}
.aue-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;flex:1;min-width:260px}
.aue-card{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.aue-srow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 16px;border-bottom:1px solid var(--line)}
.aue-srow:last-child{border-bottom:0}
.aue-srow b{font-weight:600;color:var(--ink-2)}
.aue-pill{background:rgba(127,127,127,.18);padding:3px 11px;border-radius:20px;font-weight:700;font-size:13px;white-space:nowrap}
.aue-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:18px}
.aue-tab{display:flex;align-items:center;gap:7px;padding:12px 14px;color:var(--ink-3);font-weight:700;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer;font-size:15px}
.aue-tab svg{width:18px;height:18px}
.aue-tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.aue-tab:hover{color:var(--ink)}
.aue-panel{display:none}
.aue-panel.active{display:block;animation:fadeIn .15s ease}
.aue-field{display:grid;grid-template-columns:210px 1fr;gap:16px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line)}
.aue-field:last-child{border-bottom:0}
.aue-field>label{font-weight:700;padding-top:9px}
.aue-fc{min-width:0}
.aue-fc .help{color:var(--ink-3);font-size:13px;margin-top:7px;line-height:1.45}
.aue-fc textarea.set-input{min-height:86px;resize:vertical}
.aue-uname{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.aue-uname .pfx{display:flex;align-items:center;background:rgba(127,127,127,.14);padding:0 12px;color:var(--ink-3);white-space:nowrap;font-size:14px;border-right:1px solid var(--line)}
.aue-uname input{border:0!important;border-radius:0!important;flex:1;background:transparent}
.aue-foot{display:flex;justify-content:flex-end;gap:10px;padding:22px 0 10px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:8px}
@media(max-width:680px){.aue-stats{grid-template-columns:1fr}.aue-field{grid-template-columns:1fr;gap:8px}.aue-field>label{padding-top:0}.aue-avatar{width:84px;height:84px}.aue-foot{justify-content:stretch}.aue-foot .btn{flex:1}}

/* ===== Admin → Edit User → Profile tab (sectioned, two-column) ===== */
.aue-sec{padding:20px 0;border-bottom:1px solid var(--line)}
.aue-sec:first-child{padding-top:6px}
.aue-sec:last-child{border-bottom:0}
.aue-sec-h{font-size:12px;font-weight:800;letter-spacing:.13em;color:var(--ink-3);text-transform:uppercase;margin:0 0 18px}
.aue-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
.aue-g{display:flex;flex-direction:column;min-width:0}
.aue-g.full{grid-column:1/-1}
.aue-g>label{font-weight:600;font-size:14px;margin-bottom:8px;color:var(--ink-2)}
.aue-g .set-input{width:100%}
.aue-g textarea.set-input{min-height:92px;resize:vertical}
.aue-bd{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.aue-soc{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.aue-soc-ic{display:flex;align-items:center;justify-content:center;width:48px;flex:0 0 48px;background:rgba(127,127,127,.12);border-right:1px solid var(--line)}
.aue-soc-ic svg{width:22px;height:22px}
.aue-soc input{border:0!important;border-radius:0!important;background:transparent;flex:1;min-width:0}
@media(max-width:680px){.aue-grid{grid-template-columns:1fr}}

/* ===== Admin → Edit User → Privacy tab ===== */
.aue-panel[data-panel="privacy"] .set-toggle-row{padding:16px 0}
.aue-pv-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;margin-top:18px}
.aue-pv-item{display:flex;flex-direction:column;min-width:0}
.aue-pv-item>label{font-weight:600;font-size:14px;margin-bottom:8px;color:var(--ink-2)}
.aue-pv-ic{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:rgba(127,127,127,.14);color:var(--ink-2);margin-bottom:8px}
.aue-pv-ic svg{width:18px;height:18px}
.aue-pv-item .set-input{width:100%}
@media(max-width:680px){.aue-pv-grid{grid-template-columns:1fr}}

/* ===== Admin → Edit User → Security tab (login-history DataTable) ===== */
.aue-dt-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.aue-dt-show,.aue-dt-search{display:flex;align-items:center;gap:9px;color:var(--ink-2);font-size:14px;font-weight:600}
.aue-dt-show select{width:auto;padding:9px 30px 9px 12px}
.aue-dt-search input{width:230px;max-width:48vw}
.aue-dt-wrap{border:1px solid var(--line);border-radius:12px;overflow-x:auto}
.aue-dt{width:100%;border-collapse:collapse;min-width:580px}
.aue-dt th,.aue-dt td{padding:13px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:14px;vertical-align:middle}
.aue-dt tbody tr:last-child td{border-bottom:0}
.aue-dt th{background:var(--surface-2);font-weight:800;cursor:pointer;white-space:nowrap;user-select:none}
.aue-dt th:hover{color:var(--blue)}
.aue-dt-ar{font-size:11px;opacity:.8}
.aue-dt-ar.dim{opacity:.3}
.aue-dt tbody tr:hover{background:rgba(127,127,127,.06)}
.aue-dt-idc{text-align:center;font-weight:700;width:56px}
.aue-dt-actc{text-align:center;width:84px}
.aue-dt-del{width:34px;height:34px;border-radius:50%;background:#e0455e;color:#fff;display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer;transition:filter .15s}
.aue-dt-del:hover{filter:brightness(1.08)}
.aue-dt-del svg{width:15px;height:15px}
.aue-dt-empty{padding:34px 16px;text-align:center;color:var(--ink-3)}
.aue-dt-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
.aue-dt-info{color:var(--ink-3);font-size:14px}
.aue-dt-pages{display:flex;gap:6px;flex-wrap:wrap}
.aue-dt-pg{padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--ink-3);cursor:pointer;font-weight:700;font-size:14px}
.aue-dt-pg.num{color:var(--blue)}
.aue-dt-pg.active{background:var(--blue);color:var(--on-accent);border-color:var(--blue)}
.aue-dt-pg.disabled{opacity:.5;cursor:not-allowed;color:var(--ink-3)}
@media(max-width:680px){.aue-dt-top,.aue-dt-foot{flex-direction:column;align-items:stretch}.aue-dt-search input{width:100%;max-width:none}}

/* ===== Admin → Edit User → Membership tab ===== */
.aue-fc.aue-strong{font-weight:700;font-size:16px;padding-top:7px}
.aue-fc.aue-dim2{color:var(--ink-3);padding-top:7px}
.aue-boost-n{font-weight:700;font-size:15px;margin-bottom:8px}
.aue-bar{height:12px;border-radius:7px;background:rgba(127,127,127,.22);overflow:hidden;max-width:760px}
.aue-bar>i{display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,var(--blue),#8e8ee6);transition:width .3s}

/* ===== Admin → Edit User → Extra tab ===== */
.aue-sub-h{font-size:12px;font-weight:800;letter-spacing:.13em;color:var(--ink-3);text-transform:uppercase;margin:6px 0;padding-top:18px;border-top:1px solid var(--line)}
.aue-soc-ic{font-weight:800;font-size:16px}
.aue-mk-bal{display:inline-block;background:var(--blue-soft);color:var(--blue);font-weight:800;padding:6px 14px;border-radius:8px;margin-top:6px}

/* ===== Admin → MODULES → CMS list (Pages/Groups/Events/Blogs/Offers) ===== */
.cms-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}
.cms-stat{position:relative;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:22px 20px;overflow:hidden}
.cms-stat b{display:block;font-size:32px;font-weight:900;line-height:1.05}
.cms-stat span{color:var(--ink-3);font-weight:600}
.cms-stat-ic{position:absolute;right:-8px;top:50%;transform:translateY(-50%);opacity:.13;pointer-events:none}
.cms-stat-ic svg{width:92px;height:92px;color:var(--ink)}
.cms-search{display:flex;gap:10px;margin-bottom:6px}
.cms-search input{flex:1;max-width:440px}
.cms-search-hint{color:var(--ink-3);font-size:13px;margin-bottom:18px}
.cms-table td{vertical-align:middle}
.cms-table .ad-user img,.cms-ph{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.cms-ph{display:inline-flex;align-items:center;justify-content:center;background:rgba(127,127,127,.2);color:var(--ink-3)}
.cms-ph svg{width:17px;height:17px}
.cms-table .ad-user{display:flex;align-items:center;gap:10px}
a.cms-pagelink{color:var(--blue);font-weight:700;cursor:pointer}
a.cms-pagelink:hover{text-decoration:underline}
.cms-verif{display:inline-block;padding:4px 16px;border-radius:18px;font-weight:800;font-size:13px;color:#fff}
.cms-verif.yes{background:#1faa59}
.cms-verif.no{background:#e0455e}
.cms-act{display:inline-flex;gap:8px}
.cms-act button{width:36px;height:36px;border-radius:50%;border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:#fff;transition:filter .15s}
.cms-act button:hover{filter:brightness(1.1)}
.cms-act .edit{background:var(--blue)}
.cms-act .del{background:#e0455e}
.cms-act button svg{width:15px;height:15px}
.cms-pg{display:flex;align-items:center;gap:16px;margin-top:18px;flex-wrap:wrap}
.cms-pg-info{color:var(--ink-3)}
.cms-pg-list{display:flex;gap:4px;flex-wrap:wrap}
.cms-pg-list a{padding:7px 13px;border-radius:8px;color:var(--blue);cursor:pointer;font-weight:700}
.cms-pg-list a.active{background:var(--surface-2);border:1px solid var(--line);color:var(--ink)}
.cms-pg-list a:hover{background:var(--surface-2)}

/* ===== Admin → CMS item full-page editor ===== */
.aue-view{background:#3a9cb0;color:#fff}
.aue-view:hover{filter:brightness(1.07);transform:translateY(-1px)}
.cms-avatar-ph{display:inline-flex;align-items:center;justify-content:center;background:#5b6b7a;color:#d6dee6}
.cms-avatar-ph svg{width:54px;height:54px}
.cms-owner{display:flex;align-items:center;gap:12px}
.cms-owner .ad-user{display:flex;align-items:center;gap:9px}
.cms-owner .ad-user img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.cms-own-edit{width:34px;height:34px;border-radius:50%;background:rgba(127,127,127,.22);border:0;color:var(--ink-2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.cms-own-edit:hover{background:rgba(127,127,127,.34)}
.cms-own-edit svg{width:15px;height:15px}

/* ===== Public Page profile ===== */
.pp-wrap{max-width:1000px;margin:0 auto;padding:0 12px 80px}
.pp-cover{height:300px;border-radius:0 0 16px 16px;overflow:hidden;background:linear-gradient(135deg,#2a2f45,#1a1d2e)}
.pp-cover img{width:100%;height:100%;object-fit:cover}
.pp-id{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 8px;margin-top:-46px;flex-wrap:wrap}
.pp-id-main{display:flex;align-items:flex-end;gap:16px;min-width:0}
.pp-avatar{width:104px;height:104px;border-radius:50%;overflow:hidden;flex:0 0 auto;border:4px solid var(--surface);background:#5b6b7a;display:inline-flex;align-items:center;justify-content:center;color:#d6dee6}
.pp-avatar img{width:100%;height:100%;object-fit:cover}
.pp-avatar svg{width:46px;height:46px}
.pp-id-txt{padding-bottom:6px;min-width:0}
.pp-id-txt h1{font-size:26px;font-weight:900;display:flex;align-items:center;gap:8px;margin:0}
.pp-verif{display:inline-flex;color:var(--on-accent);background:var(--blue);border-radius:50%;width:22px;height:22px;align-items:center;justify-content:center}
.pp-verif svg{width:14px;height:14px}
.pp-handle{color:var(--ink-3)}
.pp-id-acts{padding-bottom:8px}
.pp-like svg{width:18px;height:18px;vertical-align:-3px}
.pp-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin:16px 0 18px;padding:0 4px}
.pp-tab{display:flex;align-items:center;gap:8px;padding:12px 16px;color:var(--ink-3);font-weight:700;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:none;cursor:pointer}
.pp-tab svg{width:18px;height:18px}
.pp-tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.pp-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}
.pp-about h3{font-size:18px;font-weight:800;margin:0 0 10px}
.pp-about-txt{color:var(--ink-2);margin:0 0 12px;line-height:1.5}
.pp-about-row{display:flex;align-items:center;gap:9px;padding:7px 0;color:var(--ink-2);border-top:1px solid var(--line)}
.pp-about-row svg{width:18px;height:18px;color:var(--ink-3);flex:0 0 auto}
.pp-composer{padding:14px}
.pp-composer textarea{width:100%;border:0;background:transparent;resize:vertical;min-height:58px;color:var(--ink);font:inherit;outline:none}
.pp-c-actions{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:10px;margin-top:8px}
.pp-c-thumb{height:38px;border-radius:6px;vertical-align:middle}
.pp-chips{display:flex;gap:8px;overflow-x:auto;margin-bottom:16px}
.pp-chip{padding:8px 16px;border-radius:20px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);font-weight:700;cursor:pointer;white-space:nowrap}
.pp-chip.active{background:var(--blue);color:var(--on-accent);border-color:var(--blue)}
.pp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.pp-grid-item{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
.pp-grid-item img{width:100%;height:100%;object-fit:cover}
.pp-grid-ph{color:var(--ink-3)}.pp-grid-ph svg{width:30px;height:30px}
.pp-grid-play{position:absolute;inset:0;margin:auto;width:40px;height:40px;background:rgba(0,0,0,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}
.pp-grid-play svg{width:20px;height:20px}
@media(max-width:820px){.pp-body{grid-template-columns:minmax(0,1fr)}.pp-cover{height:200px}.pp-avatar{width:84px;height:84px}}

/* ===== Feed sidebars: Pages discover / promote ===== */
.pages-disc h4{margin:0 0 12px}
.disc-page{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.disc-page:first-child{border-top:0}
.disc-page-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.disc-av{width:42px;height:42px;border-radius:50%;overflow:hidden;flex:0 0 auto;background:#5b6b7a;display:inline-flex;align-items:center;justify-content:center;color:#d6dee6}
.disc-av img{width:100%;height:100%;object-fit:cover}
.disc-av svg{width:20px;height:20px}
.disc-txt{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.disc-txt b{display:flex;align-items:center;gap:5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.disc-txt .muted{font-size:12.5px}
.disc-verif{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;background:var(--blue);color:var(--on-accent);border-radius:50%;flex:0 0 auto}
.disc-verif svg{width:10px;height:10px}
.disc-like{padding:6px 14px;font-size:13px;flex:0 0 auto}

/* ===== Public Page — beautiful redesign + owner photo controls ===== */
.pp-wrap{max-width:1040px;margin:0 auto;padding:18px 12px 90px}
.pp-head{padding:0;overflow:hidden;border-radius:18px}
.pp-cover{position:relative;height:300px;border-radius:0;overflow:hidden;background:linear-gradient(135deg,#3b2f6b,#1a1d2e 55%,#0e2a4a)}
.pp-cover-img{width:100%;height:100%;object-fit:cover;display:block}
.pp-cover-img[hidden]{display:none}
.pp-cover-grad{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.4),transparent 42%);pointer-events:none}
.pp-cover-edit{position:absolute;top:14px;right:14px;display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:0;border-radius:10px;background:rgba(0,0,0,.45);backdrop-filter:blur(6px);color:#fff;font-weight:700;cursor:pointer}
.pp-cover-edit:hover{background:rgba(0,0,0,.62)}
.pp-cover-edit svg{width:17px;height:17px}
.pp-id{display:flex;align-items:flex-end;gap:18px;padding:0 22px 16px;margin-top:-50px;position:relative;flex-wrap:wrap}
.pp-avatar-wrap{position:relative;flex:0 0 auto}
.pp-avatar{width:124px;height:124px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;border:4px solid var(--surface);background:#5b6b7a;color:#d6dee6;box-shadow:0 6px 22px rgba(0,0,0,.32)}
.pp-avatar img{width:100%;height:100%;object-fit:cover}
.pp-avatar svg{width:52px;height:52px}
.pp-avatar-cam{position:absolute;right:5px;bottom:5px;width:36px;height:36px;border-radius:50%;border:3px solid var(--surface);background:var(--blue);color:var(--on-accent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pp-avatar-cam:hover{filter:brightness(1.12)}
.pp-avatar-cam svg{width:17px;height:17px}
.pp-id-info{flex:1;min-width:0;padding-bottom:6px}
.pp-id-info h1{font-size:27px;font-weight:900;display:flex;align-items:center;gap:8px;margin:0 0 3px;line-height:1.1}
.pp-id-acts{padding-bottom:8px;display:flex;gap:8px}
.pp-tabs{display:flex;gap:2px;overflow-x:auto;border-top:1px solid var(--line);border-bottom:0;padding:4px 12px 0;margin:0}
.pp-body{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start;margin-top:18px}
.pp-about{padding:18px}
.pp-about h3{margin:0 0 6px}
.pp-about-txt{margin:0 0 8px}
.pp-about-row{display:flex;align-items:center;gap:11px;padding:9px 0;border-top:1px solid var(--line);color:var(--ink-2)}
.pp-ab-ic{width:34px;height:34px;border-radius:9px;background:rgba(127,127,127,.14);display:inline-flex;align-items:center;justify-content:center;color:var(--ink-2);flex:0 0 auto}
.pp-ab-ic svg{width:17px;height:17px}
/* phones: one column that may shrink below its widest line (1fr = minmax(auto,1fr) let the tab row widen event pages to 411px) */
.pp-side,.pp-main{min-width:0}
@media(max-width:820px){.pp-body{grid-template-columns:minmax(0,1fr)}.pp-cover{height:200px}.pp-avatar{width:96px;height:96px}.pp-id{margin-top:-40px;padding:0 16px 14px}}

/* ===== Admin CMS list — professional header + stat cards ===== */
.cms-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;flex-wrap:wrap}
.cms-head-t{display:flex;align-items:center;gap:13px}
.cms-head-ic{width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,#4f7cff,#7b5cff);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(79,124,255,.35);flex:0 0 auto}
.cms-head-ic svg{width:23px;height:23px}
.cms-head h1{font-size:24px;font-weight:900;margin:0}
.cms-new-btn{background:linear-gradient(135deg,#4f7cff,#7b5cff);color:#fff;font-weight:800;padding:11px 20px;border-radius:12px;box-shadow:0 8px 20px rgba(79,124,255,.32);border:0}
.cms-new-btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.cms-new-btn:active{transform:translateY(0)}
.cms-new-btn svg{width:18px;height:18px}
/* colorful stat cards (override earlier flat .cms-stat) */
.cms-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.cms-stat{display:flex;align-items:center;gap:16px;background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:20px;overflow:visible;transition:transform .16s ease,box-shadow .16s ease}
.cms-stat:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.22)}
.cms-stat-chip{width:56px;height:56px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:#fff}
.cms-stat-chip svg{width:27px;height:27px}
.cms-stat-meta b{display:block;font-size:30px;font-weight:900;line-height:1;letter-spacing:-.5px}
.cms-stat-meta span{color:var(--ink-3);font-weight:600;font-size:14px}
.cms-stat--blue{border-color:rgba(79,124,255,.32)}
.cms-stat--blue .cms-stat-chip{background:linear-gradient(135deg,#4f7cff,#7b5cff);box-shadow:0 8px 18px rgba(79,124,255,.4)}
.cms-stat--green{border-color:rgba(34,192,127,.32)}
.cms-stat--green .cms-stat-chip{background:linear-gradient(135deg,#22c07f,#12a866);box-shadow:0 8px 18px rgba(34,192,127,.4)}
.cms-stat--pink{border-color:rgba(255,93,143,.32)}
.cms-stat--pink .cms-stat-chip{background:linear-gradient(135deg,#ff5d8f,#ff7a59);box-shadow:0 8px 18px rgba(255,93,143,.4)}
@media(max-width:760px){.cms-stats{grid-template-columns:1fr}}

/* ===== CMS group editor extras ===== */
.aue-sep{height:1px;background:var(--line);margin:18px 0}
.cms-priv{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;color:var(--ink-2);white-space:nowrap}
.cms-priv svg{width:17px;height:17px;color:var(--ink-3);flex:0 0 auto}
.cms-table-group .cms-act{flex-direction:column;gap:8px;align-items:flex-start}

/* ===== Floating "+" create menu ===== */
.cfab{position:fixed;right:20px;bottom:20px;z-index:900;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
.cfab-btn{width:60px;height:60px;border-radius:18px;border:0;background:linear-gradient(135deg,#6d5ef0,#8e7bff);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(109,94,240,.45);transition:transform .2s,filter .2s;pointer-events:auto}
.cfab-btn:hover{filter:brightness(1.06)}
.cfab-plus{width:26px;height:26px;transition:transform .25s}
.cfab.open .cfab-plus{transform:rotate(135deg)}
.cfab-menu{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:2px;min-width:224px;transform-origin:bottom right;opacity:0;transform:scale(.92) translateY(10px);pointer-events:none;transition:opacity .15s ease,transform .15s ease}
.cfab.open .cfab-menu{opacity:1;transform:scale(1) translateY(0);pointer-events:auto}
.cfab-item{display:flex;align-items:center;gap:14px;padding:11px 14px;border:0;background:none;color:var(--ink);font-weight:600;font-size:15px;cursor:pointer;border-radius:10px;width:100%;text-align:left}
.cfab-item:hover{background:var(--surface)}
.cfab-ic{width:30px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-2);flex:0 0 auto}
.cfab-ic svg{width:24px;height:24px}
/* Mobile: the create (+) lives in the footer nav center; hide the floating FAB button and center its menu above the footer */
.mob-create{flex:1;display:flex;align-items:center;justify-content:center;background:none;border:0;cursor:pointer;padding:0}
.mob-create svg{width:44px;height:44px;padding:10px;border-radius:14px;color:#fff;background:linear-gradient(135deg,#6d5ef0,#8e7bff);box-shadow:0 6px 16px rgba(109,94,240,.4)}
.mob-create:active svg{filter:brightness(.95)}
@media(max-width:680px){
  .cfab{left:0;right:0;bottom:72px;align-items:center}
  .cfab-btn{display:none}
  /* 2-column pill grid (theme-aware via --surface/--line/--ink) */
  .cfab-menu{transform-origin:bottom center;width:min(92vw,430px);min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}
  .cfab-item{gap:9px;padding:11px 13px;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--ink);font-size:13.5px;font-weight:700;width:100%;transition:transform .12s ease,border-color .12s ease,background .12s ease}
  .cfab-item:hover{background:var(--surface);border-color:var(--blue)}
  .cfab-item:active{transform:scale(.97);background:var(--blue-soft);border-color:var(--blue)}
  .cfab-item:last-child:nth-child(odd){grid-column:1 / -1}   /* odd count → last pill spans the full width */
  .cfab-ic{width:20px}
  .cfab-ic svg{width:19px;height:19px}
}

/* ===== CMS category table — order pill ===== */
.cat-order{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:26px;padding:0 9px;border-radius:14px;background:#3a9cb0;color:#fff;font-weight:800;font-size:13px}

/* ===== Public Events discover ===== */
.ev-wrap{max-width:1240px;margin:0 auto;padding:0 14px 90px}
.ev-hero{position:relative;background:linear-gradient(120deg,#2a1d5e,#1a1d2e 70%);border-radius:0 0 20px 20px;padding:36px 28px 30px;overflow:hidden;margin-bottom:20px}
.ev-hero-in h1{font-size:40px;font-weight:900;margin:0}
.ev-hero-in p{color:var(--ink-2);font-size:17px;margin:4px 0 0}
.ev-hero-ic{position:absolute;right:24px;top:50%;transform:translateY(-50%);opacity:.18;color:#fff}
.ev-hero-ic svg{width:150px;height:150px}
.ev-filters{padding:16px}
.ev-filter-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.ev-pill{flex:1;min-width:160px;border:1px solid var(--line);border-radius:24px;background:var(--surface-2);color:var(--ink);padding:11px 16px;font-weight:600}
.ev-search{display:flex;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.ev-search input{flex:1;border:0!important;border-radius:0!important;background:var(--surface-2)}
.ev-search .btn{border-radius:0;background:var(--surface-3,#3a3a3a);color:var(--ink)}
.ev-tabs{display:flex;gap:8px;overflow-x:auto;margin:18px 0}
.ev-tab{display:flex;align-items:center;gap:7px;padding:9px 16px;border-radius:10px;border:0;background:var(--surface-2);color:var(--ink-2);font-weight:700;cursor:pointer;white-space:nowrap}
.ev-tab svg{width:17px;height:17px}
.ev-tab.active{background:var(--blue-soft);color:var(--blue)}
.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.ev-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:transform .15s,box-shadow .15s}
.ev-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.25)}
.ev-card-cover{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#3b2f6b,#1a1d2e);display:flex;align-items:center;justify-content:center}
.ev-card-cover img{width:100%;height:100%;object-fit:cover}
.ev-card-ph{color:rgba(255,255,255,.4)}.ev-card-ph svg{width:42px;height:42px}
.ev-card-priv{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.55);color:#fff;padding:3px 10px;border-radius:14px;font-size:12px;font-weight:700;text-transform:capitalize}
.ev-card-body{padding:14px 16px}
.ev-card-date{color:var(--blue);font-weight:800;font-size:13px;margin-bottom:4px}
.ev-card-body h3{font-size:17px;font-weight:800;margin:0 0 6px;line-height:1.25}
.ev-card-loc{color:var(--ink-3);font-size:13.5px;display:flex;align-items:center;gap:5px;margin-bottom:6px}
.ev-card-loc svg{width:15px;height:15px;flex:0 0 auto}
.ev-card-meta{color:var(--ink-3);font-size:13px}
.ev-empty{text-align:center;padding:60px 16px;color:var(--ink-2)}
.ev-empty-ic{color:var(--ink-3);opacity:.5;margin-bottom:14px}.ev-empty-ic svg{width:60px;height:60px}
.ev-empty-t{font-weight:800;font-size:18px;margin-bottom:16px}
.ev-cp-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:6px 0}
.ev-cp-row b{font-size:16px;font-weight:800}
.ev-cp-row .ad-dim{margin:2px 0 0}

/* ===== Admin MONEY accordion — green icons ===== */
.admin-money .admin-link2 > svg{color:#22c55e}

/* ===== Admin → Money → Earnings → Payments ===== */
.pay-export{background:#3aa657;color:#fff;font-weight:800}
.pay-export:hover{filter:brightness(1.06)}
.pay-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}
.pay-chart{position:relative;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:18px;min-height:320px;display:flex;flex-direction:column}
.pay-chart-h{position:relative;text-align:center;font-weight:800;font-size:18px}
.pay-chart-menu{position:absolute;right:0;top:-2px;width:36px;height:30px;border-radius:7px;background:#f4f4f4;color:#333;border:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.pay-chart-menu svg{width:16px;height:16px}
.pay-chart-empty{flex:1;display:flex;align-items:center;justify-content:center;color:var(--ink-3);font-weight:600}
.pay-chart-credit{position:absolute;right:14px;bottom:10px;color:var(--ink-3);opacity:.45;font-size:12px}
.pay-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px 40px;margin-bottom:24px}
.pay-stat{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 0}
.pay-stat b{display:block;font-size:34px;font-weight:900;line-height:1;letter-spacing:-.5px}
.pay-stat span{color:var(--ink-2);font-weight:600}
.pay-stat-ic{color:var(--ink-3);opacity:.35;flex:0 0 auto}
.pay-stat-ic svg{width:80px;height:80px}
@media(max-width:760px){.pay-charts,.pay-stats{grid-template-columns:1fr}}

/* ===== Money pages — polish (beautiful/professional) ===== */
.pay-charts.one{grid-template-columns:1fr}
.pay-charts.one .pay-chart{min-height:500px}
.pay-chart{border-radius:16px;transition:box-shadow .15s}
.pay-chart:hover{box-shadow:0 10px 26px rgba(0,0,0,.18)}
.pay-chart-empty{flex-direction:column;gap:8px}
.pay-chart-empty-ic{opacity:.2}.pay-chart-empty-ic svg{width:54px;height:54px}
.pay-stat{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:20px 22px;transition:transform .15s,box-shadow .15s}
.pay-stat:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.2)}
.pay-stat b{font-size:32px}
.pay-table thead th{background:var(--surface-2)}
.money-soon{text-align:center;padding:60px 20px;max-width:520px;margin:34px auto;background:var(--surface-2);border:1px solid var(--line);border-radius:18px}
.money-soon-ic{display:inline-flex;width:64px;height:64px;border-radius:16px;align-items:center;justify-content:center;background:rgba(34,197,94,.14);color:#22c55e;margin-bottom:14px}
.money-soon-ic svg{width:32px;height:32px}
.money-soon h2{font-size:22px;font-weight:900;margin:0 0 6px}
.money-soon p{color:var(--ink-3);margin:0 0 16px}
.money-soon-badge{display:inline-block;background:var(--blue-soft);color:var(--blue);font-weight:800;padding:5px 14px;border-radius:20px;font-size:13px}

/* ===== CSS grouped bar chart (Pro Packages) ===== */
.bar-wrap{display:flex;gap:10px;flex:1;min-height:300px;padding:10px 4px 0}
.bar-yaxis{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;color:var(--ink-3);font-size:12px;padding-bottom:22px;min-width:18px}
.bar-plot{flex:1;display:flex;align-items:flex-end;gap:4px;border-left:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 4px}
.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end}
.bar-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;width:100%;height:calc(100% - 22px)}
.bar{width:13px;max-width:40%;border-radius:3px 3px 0 0;transition:opacity .15s}
.bar:hover{opacity:.8}
.bar-x{font-size:11px;color:var(--ink-3);margin-top:6px}
.bar-legend{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:12px;color:var(--ink-2);font-weight:600;font-size:13px}
.bar-legend span{display:inline-flex;align-items:center;gap:7px}
.bar-legend i{width:11px;height:11px;border-radius:50%}

/* ===== System Ads place cell ===== */
.sa-place{display:inline-flex;align-items:center;gap:7px}
.sa-place svg{width:17px;height:17px;color:var(--ink-3);flex:0 0 auto}

/* ===== Wallet settings (warning banner + payment checkboxes) ===== */
.money-warn{background:rgba(245,166,35,.12);border:1px solid rgba(245,166,35,.4);color:#f0a93a;font-weight:700;padding:14px 18px;border-radius:12px;margin-bottom:20px}
.money-warn a{color:#f0a93a;opacity:.75;text-decoration:underline}
.money-warn a:hover{opacity:1}
.wal-pm{display:flex;flex-wrap:wrap;gap:18px 26px}
.wal-cb{display:inline-flex;align-items:center;gap:8px;font-weight:600;cursor:pointer}
.wal-cb input{width:17px;height:17px;accent-color:var(--blue)}

/* ===== Money payment-request notice banners ===== */
.money-note{display:flex;align-items:flex-start;gap:12px;padding:15px 18px;border-radius:12px;margin-bottom:16px;font-weight:600;line-height:1.45}
.money-note-ic{flex:0 0 auto}.money-note-ic svg{width:24px;height:24px;display:block}
.money-note.warn{background:rgba(245,166,35,.12);border:1px solid rgba(245,166,35,.4);color:#f0a93a}
.money-note.info{background:rgba(58,134,216,.12);border:1px solid rgba(58,134,216,.4);color:#6db0ef}

/* ===== Pro packages list ===== */
.pkg-name{display:inline-flex;align-items:center;gap:9px;color:var(--blue);font-weight:700;cursor:pointer}
.pkg-name:hover{text-decoration:underline}
.pkg-ic{flex:0 0 auto;color:var(--blue)}.pkg-ic svg{width:20px;height:20px;display:block}
.pkg-perm{color:var(--blue);cursor:pointer}.pkg-perm:hover{text-decoration:underline}
.pk-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pk-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}

/* ===== Package full-page editor (PDF) ===== */
.pkg-ic img{width:22px;height:22px;border-radius:5px;object-fit:cover;display:block}
.pk-row{display:flex;gap:10px}.pk-row .pk-unit{max-width:150px}
.pk-color{display:flex;gap:10px;align-items:center}
.pk-color #pk-color{width:60px;height:40px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;cursor:pointer}
.pk-icon-btn{width:96px;height:96px;border:1px dashed var(--line);border-radius:14px;background:var(--surface-2);color:var(--ink-3);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s}
.pk-icon-btn:hover{border-color:var(--blue)}
.pk-icon-btn svg{width:30px;height:30px}
.pk-icon-btn img{width:100%;height:100%;object-fit:cover;border-radius:13px}
.pk-tog{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.pk-tog-l b{display:block;font-weight:700}.pk-tog-l p{margin:3px 0 0}
.aue-sep.dot{border-top:1px dashed var(--line);background:none;height:0;margin:14px 0}
.spinner.sm{width:22px;height:22px;border-width:3px}

/* ===== Pro subscribers list ===== */
.sub-user{display:inline-flex;align-items:center;gap:10px;color:var(--blue);font-weight:700}
.sub-user:hover{text-decoration:underline}
.sub-av{width:32px;height:32px;border-radius:50%;overflow:hidden;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-3)}
.sub-av img{width:100%;height:100%;object-fit:cover}
.sub-ini{font-weight:800;color:var(--ink-2);font-size:13px}
.sub-rem{color:var(--ink-3);font-weight:600}
.aue-dt-pg.active{background:var(--blue);border-color:var(--blue);color:var(--on-accent)}

/* ===== Affiliates settings (levels + radios) ===== */
.aff-radios{display:flex;flex-wrap:wrap;gap:14px 24px}
.aff-radio{display:inline-flex;align-items:center;gap:8px;font-weight:600;cursor:pointer}
.aff-radio input{width:16px;height:16px;accent-color:var(--blue)}
.aff-level{padding:4px 0}
.aff-level-h{font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--ink-3);text-transform:uppercase;margin:14px 0 10px}

/* ===== field sub-label (Points System) ===== */
.aue-sublabel{display:block;font-size:12px;color:var(--ink-3);font-weight:500;margin-top:2px}

/* ===== Paid Modules banner ===== */
.pm-banner{display:flex;gap:14px;align-items:flex-start;background:#6c5ce7;color:#fff;padding:16px 20px;border-radius:14px;margin-bottom:22px}
.pm-banner-ic{flex:0 0 auto}.pm-banner-ic svg{width:26px;height:26px}
.pm-banner b{font-weight:800}
.pm-banner p{margin:4px 0 0;line-height:1.5;opacity:.95}
.pm-banner a{color:#ffd27a;font-weight:800;text-decoration:underline}

/* ===== Marketplace admin (products/orders) ===== */
.mk-search{display:flex;gap:10px;margin-bottom:6px}
.mk-search .set-input{flex:1}
.mk-search .btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.mk-search-hint{color:var(--ink-3);font-size:13px;margin-bottom:16px}
.mk-table th{white-space:nowrap}
.mk-view{display:inline-flex;align-items:center;gap:6px;background:var(--surface-3);color:var(--ink-2);font-weight:600;padding:7px 14px}
.mk-view svg{width:15px;height:15px}
.mk-pg{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:14px;color:var(--ink-3)}
.mk-pg-list{display:flex;gap:6px;align-items:center}
.mk-pg-list a{padding:6px 12px;border-radius:8px;cursor:pointer;color:var(--blue);font-weight:700}
.mk-pg-list a:hover{background:var(--surface-2)}
.mk-pg-list a.active{color:var(--ink-3);cursor:default;font-weight:600}

/* ===== Marketplace categories order badge ===== */
.mc-order{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border-radius:14px;background:#2aa9bf;color:#fff;font-weight:800;font-size:13px}

/* ===== Admin Customization group (orange icons, like reference) ===== */
.admin-custom .admin-link2 svg{color:#ef6c2e}

/* ===== Custom Fields list ===== */
.cf-yes{color:#16a34a;font-weight:700}

/* ===== Static Pages + Colored Posts ===== */
.yn{display:inline-block;padding:4px 12px;border-radius:14px;font-weight:800;font-size:12px;color:#fff}
.yn-y{background:#16a34a}.yn-n{background:#e23a3a}
.sp-addr{display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface-2)}
.sp-addr .sp-prefix{padding:0 12px;color:var(--ink-3);background:var(--surface-3);align-self:stretch;display:flex;align-items:center;font-size:13px;white-space:nowrap}
.sp-addr .set-input{border:0;border-radius:0;background:transparent;flex:1}
.cp-preview{width:240px;height:135px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;text-align:center}
.cp-preview-lg{width:100%;max-width:560px;height:360px;font-size:34px}
.cp-color{display:flex;gap:10px;align-items:center}
.cp-color input[type=color]{width:120px;height:40px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;cursor:pointer}
.cp-color .set-input{flex:1}

/* ===== Reactions + Emojis ===== */
.rx-emoji{font-size:26px;line-height:1}
.em-img{width:30px;height:30px;object-fit:contain;display:block}
.em-native{font-size:26px;line-height:1}

/* ===== Stickers / Gifts asset preview + bigger upload tile ===== */
.asset-img{width:72px;height:72px;object-fit:contain;border-radius:8px;background:var(--surface-3);display:block}
.pk-icon-btn.ia-up{width:130px;height:130px}

/* ===== FB-style post reactions + comment replies ===== */
.post-stats{align-items:center}
.rx-summary{display:inline-flex;align-items:center;gap:7px;min-height:20px;cursor:pointer}
.rx-summary:hover [data-like-count]{text-decoration:underline}
.rx-stack{display:inline-flex}
.rx-chip{font-size:17px;line-height:1;margin-left:-4px}
/* "Who reacted" modal — reaction filter tabs, reactor list, See More */
.rxl{background:var(--surface);border-radius:16px;box-shadow:var(--shadow-lg);width:100%;max-width:460px;max-height:86vh;display:flex;flex-direction:column;overflow:hidden;animation:rise .25s}
.rxl-head{display:flex;align-items:center;gap:6px;padding:10px 10px 9px;border-bottom:1px solid var(--line)}
.rxl-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;flex:1;scrollbar-width:none}
.rxl-tabs::-webkit-scrollbar{display:none}
.rxl-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;background:none;border:0;border-radius:999px;padding:7px 13px;color:var(--ink-2);font-weight:800;font-size:15px;cursor:pointer;line-height:1}
.rxl-tab i{font-style:normal;font-weight:700;color:var(--ink-3);font-size:13px}
.rxl-tab .rxl-tab-e{font-size:19px}
.rxl-tab.on{background:var(--surface-2);color:var(--ink)}
.rxl-tab.on i{color:var(--ink-2)}
.rxl-x{flex:0 0 auto;width:34px;height:34px;border:0;background:none;color:var(--ink-3);font-size:19px;cursor:pointer;border-radius:50%}
.rxl-x:hover{background:var(--surface-2)}
.rxl-list{flex:1;overflow-y:auto;padding:4px 2px}
.rxl-row{display:flex;align-items:center;gap:12px;padding:8px 14px}
.rxl-av{position:relative;flex:0 0 52px;width:52px;height:52px}
.rxl-av img{width:52px;height:52px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.rxl-emoji{position:absolute;right:-2px;bottom:-2px;font-size:18px;line-height:1;background:var(--surface);border-radius:50%;padding:0 1px}
.rxl-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-decoration:none}
.rxl-name{display:flex;align-items:center;gap:5px;font-size:16px;font-weight:800;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rxl-name .ver-tick{width:16px;height:16px;flex:0 0 auto}
.rxl-pro{display:inline-flex;align-items:center;gap:2px;font-size:11px;font-weight:800;color:#e2683a;border:1px solid #e2683a;border-radius:999px;padding:1px 7px;flex:0 0 auto}
.rxl-mutual{font-size:13px;color:var(--ink-3)}
.rxl-btn{flex:0 0 auto;font-size:14px;font-weight:800;padding:8px 18px;border-radius:999px;cursor:pointer;line-height:1;border:1.5px solid var(--green);color:var(--green);background:none}
.rxl-btn.is-add:hover{background:var(--green);color:#fff}
.rxl-btn.is-friend,.rxl-btn.is-following{cursor:default;opacity:.92}
.rxl-foot{padding:8px;border-top:1px solid var(--line)}
.rxl-more{width:100%;background:var(--surface-2);border:0;border-radius:10px;padding:13px;color:var(--blue);font-weight:800;font-size:16px;cursor:pointer}
.rxl-more:hover{background:var(--canvas)}
.rxl-empty{padding:30px;text-align:center;color:var(--ink-3)}
.rx-chip:first-child{margin-left:0}
.rx-meta{color:var(--ink-3);text-align:right}
.rx-react-wrap{position:relative;flex:1;display:flex}
.rx-react{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px;border-radius:var(--r-sm);font-weight:700;color:var(--ink-2);transition:background .12s}
.rx-react:hover{background:var(--canvas)}
.rx-react svg{width:19px;height:19px;fill:var(--heart)}
.rx-react.reacted{font-weight:800}
.rx-emoji{font-size:18px;line-height:1}
.rx-share{flex:0 0 auto!important;margin-left:auto}
.rx-picker{position:absolute;bottom:calc(100% + 8px);left:0;display:flex;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:5px 9px;box-shadow:0 12px 32px rgba(0,0,0,.28);opacity:0;transform:translateY(8px) scale(.9);transform-origin:bottom left;pointer-events:none;transition:opacity .16s,transform .16s;z-index:40}
.rx-react-wrap.rx-open .rx-picker{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.rx-opt{font-size:30px;line-height:1;background:none;border:0;cursor:pointer;padding:2px 3px;transition:transform .12s}
.rx-opt:hover{transform:scale(1.35) translateY(-6px)}
/* comments: replies + reply form */
.comment-main{flex:1;min-width:0}
.comment-main .bubble b a{color:inherit}
.comment-foot{display:flex;align-items:center;gap:16px;padding:3px 0 0 13px;font-size:12px}
.c-reply{font-weight:700;color:var(--ink-3);cursor:pointer;background:none;border:0;padding:0}
.c-reply:hover{color:var(--blue);text-decoration:underline}
.comment-replies{margin-top:8px;padding-left:14px;border-left:2px solid var(--line)}
.comment-replies:empty{display:none}
.reply-form{margin-top:8px}
/* round 146: the "…" on your own comment (Edit / Delete) — beside the bubble, which keeps its 85% width; on a desktop it
   shows when the comment is hovered or the button has focus, on a touch screen always. The edit box takes the bubble's place. */
.c-line{display:flex;align-items:center;gap:2px;min-width:0}
.comment .c-line>.bubble{flex:0 1 85%;min-width:0}
.c-more{flex:none;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-3);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .15s,background .15s,color .15s}
.c-more svg{width:16px;height:16px}
.c-more:hover,.c-more.on{background:var(--canvas);color:var(--ink)}
@media (hover:hover){.c-more{opacity:0}.c-line:hover>.c-more,.c-more:focus-visible,.c-more.on{opacity:1}}
.cm-backdrop{z-index:329}   /* above the comment sheets (.modal-back 200, 310 over a story) */
.cm-menu{z-index:330;padding:6px}
.cm-menu .pm-item{align-items:center;padding:5px 6px}
.cm-menu .pm-tx{padding-top:0}
.cm-menu .pm-tx b{font-size:13.5px}
.comment-main>.c-line[hidden],.comment-main>.comment-foot[hidden]{display:none}   /* their display:flex would beat [hidden] */
.c-edit{margin-top:2px}
.c-edit textarea{display:block;width:100%;min-height:38px;resize:none;background:var(--canvas);border:1px solid var(--line);border-radius:14px;padding:8px 12px;font:inherit;font-size:14.5px;line-height:1.4;color:var(--ink);outline:none}
.c-edit textarea:focus{border-color:var(--blue)}
.c-edit-foot{display:flex;align-items:center;gap:8px;padding:5px 0 0 12px;font-size:12px}
.c-edit-foot .muted{flex:1;min-width:0}
.c-edit-cancel{background:none;border:0;padding:5px 8px;color:var(--ink-2);font-weight:700;cursor:pointer;border-radius:999px}
.c-edit-cancel:hover{background:var(--canvas)}
.c-edit-save{padding:6px 16px;font-size:13px;border-radius:999px}

/* ===== Share modal + embedded shared post ===== */
.sh-url{display:flex;gap:8px;margin-bottom:16px}
.sh-url input{flex:1;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:11px 14px;color:var(--ink);font-size:14px}
.sh-copy{flex:0 0 auto;width:46px;border:1px solid var(--line);border-radius:10px;background:var(--surface-3);color:var(--ink-2);cursor:pointer;display:flex;align-items:center;justify-content:center}
.sh-copy:hover{background:var(--line)}.sh-copy svg{width:18px;height:18px}
.sh-social{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.sh-soc{width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .12s,filter .12s}
.sh-soc:hover{transform:translateY(-2px);filter:brightness(1.08)}.sh-soc svg{width:24px;height:24px}
.sh-div{height:1px;background:var(--line);margin:18px 0}
.sh-to{text-align:center;font-weight:800;font-size:18px;margin:0 0 16px}
.sh-targets{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.sh-t{flex:1 1 130px;max-width:170px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:var(--surface-2);border:2px solid var(--line);border-radius:12px;color:var(--ink-2);font-weight:700;cursor:pointer;transition:.12s}
.sh-t:hover{border-color:var(--ink-3)}
.sh-t.active{border-color:var(--blue);color:var(--ink)}
.sh-t-ic{width:42px;height:42px;border-radius:50%;background:var(--surface-3);display:flex;align-items:center;justify-content:center;color:var(--ink-2)}
.sh-t.active .sh-t-ic{background:var(--blue-soft);color:var(--blue)}
.sh-t-ic svg{width:22px;height:22px}
.sh-pick{margin-top:14px}
.sh-msg-f{margin-top:16px}
.sh-foot{display:flex;justify-content:flex-end;margin-top:16px}
/* embedded shared post (quote) */
.post-embed{display:block;margin:0 16px 4px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface-2)}
.post-embed:hover{background:var(--canvas)}
.post-embed-head{display:flex;align-items:center;gap:10px;padding:10px 12px}
.post-embed-head .who b{font-size:14px}.post-embed-head .who .muted{display:block;font-size:12px}
.post-embed-story .post-embed-head .avatar{box-shadow:0 0 0 2px var(--surface-2),0 0 0 4px var(--blue)}   /* a shared story: the ring says it opens as a story */
.post-embed-text{padding:0 12px 10px;font-size:14px;line-height:1.4;white-space:pre-wrap;word-break:break-word}
.post-embed-media img{width:100%;max-height:320px;object-fit:cover;display:block}

/* ===== Combined Create Post composer ===== */
.cmp-modal .modal-head{display:none}
.cmp-modal .modal-body{padding:0}
.cmp{display:flex;flex-direction:column}
.av-44{width:44px;height:44px}
.cmp-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.cmp-who{flex:1;min-width:0;line-height:1.2}.cmp-who b{display:inline}
.cmp-feel-lbl{color:var(--ink-3);font-weight:600}
.cmp-postbtn{border-radius:999px;padding:9px 26px}
.cmp-text{width:100%;border:0;outline:0;background:none;color:var(--ink);font-size:19px;line-height:1.5;padding:18px;min-height:120px;resize:none;font-family:inherit}
.cmp-text.cmp-text-colored{min-height:200px;border-radius:0;text-align:center;font-weight:800;font-size:24px;display:flex;align-items:center;justify-content:center}
.cmp-patterns{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 12px}
.cmp-pat{width:44px;height:44px;border-radius:10px;border:2px solid transparent;cursor:pointer}
.cmp-pat.sel{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}
.cmp-poll{padding:0 18px 12px;display:flex;flex-direction:column;gap:8px}
.cmp-poll-add{align-self:flex-start;color:var(--blue);font-weight:700;background:none;border:0;cursor:pointer;padding:4px 0}
.cp-prev-grid{padding:0 18px}
.cmp-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--line);position:relative}
.cmp-bar-g{display:flex;align-items:center;gap:4px}
.cmp-ic{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink-2);cursor:pointer;background:none;border:0;font-size:20px;font-weight:800;transition:background .12s}
.cmp-ic:hover{background:var(--canvas)}
.cmp-ic svg{width:22px;height:22px}
.cmp-ic.cmp-expand svg{transition:transform .2s}
.cmp-ic.cmp-expand.open svg{transform:rotate(180deg)}
.cmp-emoji-pop{position:absolute;bottom:54px;right:48px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.3);padding:8px;display:grid;grid-template-columns:repeat(7,1fr);gap:2px;z-index:20}
.cmp-emoji-pop button{font-size:22px;background:none;border:0;cursor:pointer;padding:3px;border-radius:8px}
.cmp-emoji-pop button:hover{background:var(--canvas)}
/* create-post options as professional colored pills (icon in a tinted circle + label) */
.cmp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 16px;border-top:1px solid var(--line)}
@media(max-width:560px){.cmp-grid{grid-template-columns:repeat(3,1fr)}}
.cmp-opt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px 6px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);cursor:pointer;color:var(--ink);font-weight:700;font-size:12px;line-height:1.25;text-align:center;transition:transform .13s ease,box-shadow .13s ease,border-color .13s ease}
.cmp-opt:hover{transform:translateY(-1px);box-shadow:var(--shadow);border-color:transparent}
.cmp-opt:active{transform:translateY(0);box-shadow:none}
.cmp-opt-ic{width:40px;height:40px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
.cmp-opt-ic svg{width:22px;height:22px}
.cmp-opt[data-opt="photos"] .cmp-opt-ic{color:#0fa968;background:rgba(15,169,104,.15)}
.cmp-opt[data-opt="album"] .cmp-opt-ic{color:#0ea5e9;background:rgba(14,165,233,.15)}
.cmp-opt[data-opt="feeling"] .cmp-opt-ic{color:#eab308;background:rgba(234,179,8,.18)}
.cmp-opt[data-opt="colored"] .cmp-opt-ic{color:#e23a5e;background:rgba(226,58,94,.15)}
.cmp-opt[data-opt="product"] .cmp-opt-ic{color:#e2683a;background:rgba(226,104,58,.15)}
.cmp-opt[data-opt="poll"] .cmp-opt-ic{color:#7c3aed;background:rgba(124,58,237,.16)}
.cmp-opt[data-opt="video"] .cmp-opt-ic{color:#f0345c;background:rgba(240,52,92,.15)}
.cmp-sched{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-top:1px solid var(--line)}
.cmp-sched-l b{display:block;font-weight:800}.cmp-sched-l span{color:var(--ink-3);font-size:13.5px}
.cmp-feel-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.cmp-feel-opt{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);cursor:pointer;font-weight:600;text-align:left}
.cmp-feel-opt:hover{background:var(--canvas)}.cmp-feel-opt span{font-size:20px}
/* colored post + feeling + poll in feed */
.post-colored{margin:0 0 4px;padding:36px 22px;min-height:180px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:800;font-size:26px;line-height:1.35;white-space:pre-wrap;word-break:break-word}
.post-feeling{color:var(--ink-3);font-weight:500;margin-right:5px}
.post-poll{margin:2px 16px 10px;display:flex;flex-direction:column;gap:8px}
.poll-opt{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);cursor:pointer;font-weight:600;text-align:left}
.poll-opt:hover{border-color:var(--blue)}
.poll-opt.voted{border-color:var(--blue)}
.poll-fill{position:absolute;left:0;top:0;bottom:0;background:var(--blue-soft);width:0;transition:width .3s;z-index:0}
.poll-opt.voted .poll-fill{background:var(--blue-soft-2,rgba(79,123,255,.25))}
.poll-label,.poll-pct{position:relative;z-index:1}
.poll-pct{color:var(--ink-3);font-weight:800}
.poll-total{color:var(--ink-3);font-size:13px;padding-left:2px}

/* ===== Edit post modal (photo grid) ===== */
.ep-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.ep-thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--surface-3)}
.ep-thumb img{width:100%;height:100%;object-fit:cover}
.ep-rm{position:absolute;top:5px;right:5px;width:24px;height:24px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;cursor:pointer;font-size:13px;line-height:1;display:flex;align-items:center;justify-content:center}
.ep-rm:hover{background:#e23a3a}

/* ===== Friend-requests dropdown ===== */
.fr-back{position:fixed;inset:0;z-index:129}
.fr-pop{position:fixed;z-index:130;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 44px rgba(0,0,0,.32);overflow:hidden;max-height:80vh;display:flex;flex-direction:column;animation:pmIn .12s ease}
.fr-head{font-weight:800;font-size:16px;padding:14px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}
.fr-count{min-width:22px;padding:1px 8px;border-radius:999px;background:var(--canvas);border:1px solid var(--line);font-size:12.5px;font-weight:700;color:var(--ink-2);text-align:center}   /* round 112 */
.fr-more{display:block;margin:6px auto 10px}
.fr-list{overflow-y:auto;padding:6px}
.fr-empty{padding:26px 16px;text-align:center}
.fr-item{display:flex;gap:12px;align-items:flex-start;padding:10px;border-radius:12px}
.fr-item:hover{background:var(--canvas)}
.fr-av img{width:52px;height:52px;border-radius:50%;object-fit:cover;background:var(--surface-3)}
.fr-info{flex:1;min-width:0;line-height:1.25}
.fr-info b{font-size:14.5px}.fr-info .muted{display:block;font-size:12.5px;margin-bottom:8px}
.fr-acts{display:flex;gap:8px}
.fr-acts .btn{padding:7px 0;flex:1;font-size:13.5px}

/* ===== Mobile pull-to-refresh ===== */
html{overscroll-behavior-y:contain}   /* suppress the browser's own pull-to-refresh so ours is the only one */
.ptr-ind{position:fixed;top:0;left:50%;transform:translateX(-50%) translateY(-64px);z-index:200;width:42px;height:42px;border-radius:50%;background:var(--surface);box-shadow:0 4px 18px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .18s}
.ptr-ind.on{opacity:1}
.ptr-spin{width:22px;height:22px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%}
.ptr-ind.ready{box-shadow:0 4px 22px rgba(79,123,255,.5)}
.ptr-ind.ready .ptr-spin{border-color:var(--blue-soft);border-top-color:var(--blue)}
.ptr-ind.spinning{transition:transform .25s}
.ptr-ind.spinning .ptr-spin{animation:spin .7s linear infinite}
/* the message history and the conversation list scroll on their own — never chain into the page */
.msgr-msgs,.msgr-convs{overscroll-behavior:contain}

/* ===== Home timeline: one steady first paint ===== */
/* skeleton cards hold the timeline's place while its first page loads (shaped like real posts) */
.post-skel{pointer-events:none;--sk-shine:rgba(255,255,255,.6)}
html[data-theme="dark"] .post-skel{--sk-shine:rgba(255,255,255,.06)}
.post-skel .sk{display:block;background:var(--surface-2);border-radius:8px;position:relative;overflow:hidden}
.post-skel .sk::after{content:'';position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--sk-shine),transparent);animation:skShine 1.4s ease-in-out infinite}
@keyframes skShine{to{transform:translateX(100%)}}
.post-skel .sk-head{display:flex;align-items:center;gap:10px;padding:13px 16px 8px}
.post-skel .sk-av{width:40px;height:40px;flex:0 0 40px;border-radius:50%}
.post-skel .sk-lines{flex:1;display:flex;flex-direction:column;gap:7px}
.post-skel .sk-l1{width:44%;height:12px}
.post-skel .sk-l2{width:28%;height:10px}
.post-skel .sk-txt{width:72%;height:12px;margin:6px 16px 12px}
.post-skel .sk-media{border-radius:0;aspect-ratio:4/5;max-height:560px}
.post-skel .sk-bar{display:flex;gap:22px;padding:12px 16px 14px}
.post-skel .sk-bar .sk{width:46px;height:14px}
@media (prefers-reduced-motion:reduce){.post-skel .sk::after{animation:none}}
/* a timeline brought back from the parked copy: its cards were already seen — don't replay the fade-in */
.post.no-rise,.reel-shelf.no-rise,.pyk.no-rise{animation:none}
/* the "X and N others reacted" line keeps its room while it loads, so nothing below jumps */
.post-reacted.rx-pending{min-height:34px}   /* + its -4px/6px margins = the 36px a filled line takes */
/* timeline video: its thumbnail covers the picture until the first real frame is on screen (armVpThumb).
   Phones drop the poster as soon as play() starts and showed black until the video decoded. Placed
   right after the <video> with no z-index → under the views badge, play button and control bar. */
.vp-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;background:var(--surface-2);transition:opacity .22s ease}
.vp.vp-live .vp-thumb{opacity:0}
.vp:fullscreen .vp-thumb{object-fit:contain;background:#000}
.vp:-webkit-full-screen .vp-thumb{object-fit:contain;background:#000}

/* ===== Messenger thread — Telegram-style green/doodle theme ===== */
.msgr-thread{
  --tg-grad:linear-gradient(155deg,#a6ce80 0%,#c4dd95 48%,#e9ef9d 100%);
  --tg-doodle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 130 130'%3E%3Cg fill='none' stroke='%23315a1c' stroke-opacity='0.12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 30c-3-4-10-3-10 2 0 5 10 10 10 10s10-5 10-10c0-5-7-6-10-2z'/%3E%3Ccircle cx='92' cy='24' r='9'/%3E%3Cpath d='M88 24h8M92 20v8'/%3E%3Cpath d='M60 64l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Ccircle cx='30' cy='92' r='9'/%3E%3Cpath d='M26 94c2 2 6 2 8 0'/%3E%3Ccircle cx='27' cy='90' r='1'/%3E%3Ccircle cx='33' cy='90' r='1'/%3E%3Cpath d='M104 86c-3-4-10-3-10 2 0 5 10 9 10 9s10-4 10-9c0-5-7-6-10-2z'/%3E%3Cpath d='M104 36l4 4-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
  background:var(--tg-doodle) repeat, var(--tg-grad);
}
/* header → translucent bar with a name pill */
.msgr-thread .msgr-th-head{background:rgba(255,255,255,.32);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.35)}
.msgr-thread .msgr-back{background:rgba(255,255,255,.6);border-radius:50%;color:#2c4a1c}
.msgr-thread .msgr-th-user{background:rgba(255,255,255,.55);border-radius:999px;padding:6px 16px 6px 8px;box-shadow:0 2px 8px rgba(40,70,20,.12)}
.msgr-thread .msgr-th-user b{color:#1d3310}
.msgr-thread .msgr-th-user i{color:#3f8e3f;font-weight:700}
.msgr-thread .msgr-th-user i.is-off{color:#5a6c50;font-weight:600}   /* "Online 5 minutes ago" — softer than "Online" */
.msgr-thread .msgr-th-user img{box-shadow:0 0 0 2px rgba(255,255,255,.7)}
.msgr-thread .msgr-th-more{background:rgba(255,255,255,.55);border-radius:50%;color:#2c4a1c}
/* bubbles on the green background */
.msgr-thread .msgr-msgs .bubble-row.them .bubble{background:rgba(255,255,255,.96);color:#1b2c12;box-shadow:0 1px 2px rgba(30,50,15,.12)}
.msgr-thread .msgr-msgs .bubble-row.me .bubble{background:rgba(72,118,64,.92);color:#fff;box-shadow:0 1px 2px rgba(30,50,15,.18)}
.msgr-thread .msgr-msgs .bubble time{opacity:.7}
.msgr-thread .msgr-th-empty,.msgr-thread .msgr-th-empty *{color:#2c4a1c}
.msgr-thread .msgr-th-empty{background:rgba(255,255,255,.45);border-radius:14px;padding:10px 16px;align-self:center;margin:auto;font-weight:600}
/* composer → soft translucent bar, rounded white input, circular buttons */
.msgr-thread .msgr-compose{background:rgba(255,255,255,.4);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.4);padding:10px 12px;gap:8px}
.msgr-thread .msgr-compose input,
.msgr-thread .msgr-compose input[type="text"],
.msgr-thread .msgr-compose>input:not([type]){background:#fff;border:0;border-radius:999px;box-shadow:0 1px 4px rgba(30,50,15,.12);color:#1b2c12}
.msgr-thread .msgr-compose input:focus{background:#fff;box-shadow:0 0 0 2px rgba(95,160,82,.5)}
.msgr-thread .msgr-compose input::placeholder{color:#6f8a5e}
.msgr-thread .msgr-attach{background:rgba(255,255,255,.85);border:0;color:#3f7a2f;box-shadow:0 1px 4px rgba(30,50,15,.14)}
.msgr-thread .msgr-attach:hover{color:#2c5a1c;background:#fff}
.msgr-thread .msgr-send{background:#5fa052;color:#fff}
.msgr-thread .msgr-send:hover{filter:brightness(1.06)}

/* ===== Combined profile menu — bottom sheet on mobile ===== */
.nm-handle{width:42px;height:4px;border-radius:2px;background:var(--ink-3);opacity:.4;margin:2px auto 16px;display:none}
.nm-back .nm-user{background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:6px 4px 18px;margin-bottom:8px}
.nm-back .nm-user img{box-shadow:0 0 0 2px #e0a32e}
.nm-back .nm-user b{font-size:21px}
.nm-role{color:#e0a32e;font-weight:800;font-size:14px}
.nm-x{margin-left:auto;flex:0 0 38px;width:38px;height:38px;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s,transform .1s}
.nm-x svg{width:17px;height:17px}
.nm-x:hover{color:var(--ink);background:var(--canvas)}
.nm-x:active{transform:scale(.92)}
.nm-list{display:flex;flex-direction:column;gap:2px}
.nm-item{display:flex;align-items:center;gap:16px;padding:15px 8px;font-weight:800;font-size:17px;color:var(--ink);text-align:left;background:none;border:0;cursor:pointer;border-radius:12px;width:100%}
.nm-item:hover{background:var(--surface-2)}
.nm-item:active{background:var(--surface-2)}
.nm-i{width:30px;flex:0 0 30px;display:inline-flex;align-items:center;justify-content:center;color:var(--blue)}
.nm-i svg{width:26px;height:26px}
.nm-item.nm-danger{color:#e0533a}.nm-item.nm-danger .nm-i{color:#e0533a}
.nm-item.nm-primary{color:var(--blue)}
.nm-sep{height:1px;background:var(--line);margin:8px 4px}
/* footer "Me" → user avatar */
.mob-me-av{width:24px;height:24px;border-radius:50%;object-fit:cover}
.mob-nav .mob-me.active .mob-me-av{box-shadow:0 0 0 2px var(--blue)}
@media(max-width:680px){
  .nm-panel{top:auto;right:0;left:0;bottom:0;width:100%;height:auto;max-height:88vh;border-radius:24px 24px 0 0;transform:translateY(100%);box-shadow:0 -14px 48px rgba(0,0,0,.42);padding:14px 18px calc(env(safe-area-inset-bottom,0px) + 24px)}
  .nm-back.show .nm-panel{transform:translateY(0)}
  .nm-handle{display:block}
}

/* ===== Round-square profile icons (header + footer) + 2-column pill menu (mobile) ===== */
.nav-avatar{border-radius:30%}
.mob-me-av{width:26px;height:26px;border-radius:30%;object-fit:cover;border:1.5px solid var(--surface);box-shadow:0 0 0 1.5px var(--ink-3)}
.mob-nav .mob-me.active .mob-me-av{box-shadow:0 0 0 2px var(--blue)}
@media(max-width:680px){
  .nm-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .nm-item{background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:13px 16px;font-size:15px;gap:10px;font-weight:700}
  .nm-item:hover,.nm-item:active{background:var(--canvas);border-color:var(--blue)}
  .nm-i{flex:0 0 24px;width:24px}.nm-i svg{width:22px;height:22px}
  .nm-sep{grid-column:1 / -1;height:2px;background:transparent;margin:2px 0}
  .nm-item.nm-danger{grid-column:1 / -1;justify-content:center;background:rgba(224,83,58,.12);border-color:rgba(224,83,58,.35)}
  .nm-item.nm-imp{grid-column:1 / -1;justify-content:center;background:rgba(245,165,36,.16);border-color:rgba(245,165,36,.55)}   /* Login As: the way back, full width */
}

/* ===== Verified blue tick (post header) ===== */
.ver-tick{display:inline-block;width:19px;height:19px;vertical-align:-4px;margin-left:4px;flex:0 0 auto;object-fit:contain}
.pd-name-row h1 .ver-tick{width:26px;height:26px;vertical-align:-5px;margin-left:7px}
.who a b{display:inline}

/* ===== Admin Users Stats ===== */
.ustat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.ustat{display:flex;align-items:center;gap:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:18px 20px;transition:transform .15s,box-shadow .15s,border-color .15s}
.ustat[href]:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.18);border-color:var(--blue)}
.ustat-ic{width:46px;height:46px;flex:0 0 46px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue)}
.ustat-ic svg{width:24px;height:24px}
.ustat-m b{display:block;font-size:26px;font-weight:900;line-height:1.1}
.ustat-m span{color:var(--ink-3);font-size:13.5px}

/* ===== List Users (redesign) ===== */
.ul-stats{grid-template-columns:repeat(4,1fr)}
@media(max-width:760px){.ul-stats{grid-template-columns:1fr 1fr}}
.ul-name{display:inline-flex;align-items:center;gap:9px;color:var(--blue);font-weight:700}
.ul-name img{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.ul-name:hover{text-decoration:underline}
.ul-link{color:var(--blue)}.ul-link:hover{text-decoration:underline}
.ul-table .ver-tick{width:16px;height:16px;margin-left:4px}
.ul-table th,.ul-table td{white-space:nowrap}

/* ===== Users Stats (date-range table) ===== */
.cms-head-acts{display:flex;gap:10px;align-items:center}
.us-reset{background:#e2453f;color:#fff}.us-reset:hover{filter:brightness(1.06)}
.us-reset svg{width:16px;height:16px}
.us-filters{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:18px}
.us-col{flex:1 1 320px;min-width:270px}
.us-row{display:flex;gap:8px;align-items:center}
.us-row .set-input{flex:1;min-width:0}
.us-row .btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.us-row input[type=date]{flex:1}

/* ===== Users Groups (System + Custom) ===== */
.ug-h{font-size:18px;font-weight:800;margin:6px 0 14px}
.ug-perm{color:var(--blue)}.ug-perm:hover{text-decoration:underline}
.ug-manage{display:inline-flex;width:38px;height:38px;border-radius:50%;background:#2aa9bf;color:#fff;align-items:center;justify-content:center}
.ug-manage:hover{filter:brightness(1.08)}
.ug-manage svg{width:20px;height:20px}

/* ===== Permissions Groups ===== */
.pg-type{font-size:12.5px;font-weight:800;letter-spacing:.08em;color:var(--ink-3);text-transform:uppercase;margin:18px 0 8px}
.perm-ed{display:flex;flex-direction:column;gap:14px;max-height:60vh;overflow:auto;padding-right:4px}
.perm-sec h4{font-size:13px;font-weight:800;margin:0 0 8px;color:var(--ink-2)}
.perm-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.perm-row{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}
.perm-row input{width:17px;height:17px;flex:0 0 auto;accent-color:var(--blue)}
@media(max-width:560px){.perm-grid{grid-template-columns:1fr}}

/* ===== Permissions Group form (Add New / Edit) ===== */
.pg-back{background:var(--surface-3,#3a3b3e);color:var(--ink);display:inline-flex;align-items:center;gap:7px}
.pg-back:hover{filter:brightness(1.1)}
.pg-form{max-width:880px}
.perm-shead{font-size:12.5px;font-weight:800;letter-spacing:.07em;color:var(--ink-3);text-transform:uppercase;margin:26px 0 6px;padding-top:18px;border-top:1px solid var(--line)}
.perm-shead:first-of-type{border-top:0;padding-top:0;margin-top:8px}
.perm-field{display:grid;grid-template-columns:200px 1fr;gap:10px 18px;align-items:start;padding:12px 0}
.perm-field>label{font-weight:700;font-size:14.5px;padding-top:9px}
.perm-field-in{min-width:0}
.perm-field-in .set-input{width:100%}
.perm-hint{color:var(--ink-3);font-size:13px;margin-top:6px}
.perm-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 2px;border-bottom:1px solid var(--line)}
.perm-toggle-l{display:flex;align-items:center;gap:16px;min-width:0}
.perm-toggle-ic{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;color:#6c63ff}
.perm-toggle-ic svg{width:30px;height:30px}
.perm-toggle-tx{min-width:0}
.perm-toggle-tx b{display:block;font-size:16px;font-weight:700;line-height:1.3}
.perm-toggle-tx span{color:var(--ink-3);font-size:13.5px}
.perm-badge{display:inline-block;font-size:11px;font-weight:700;color:#7c83ff;background:rgba(108,99,255,.16);padding:1px 7px;border-radius:6px;vertical-align:middle;margin-left:4px}
/* iOS-style switch */
.perm-switch{flex:0 0 auto;cursor:pointer;display:inline-block}
.perm-switch input{position:absolute;opacity:0;width:0;height:0}
.perm-sw{display:block;width:48px;height:27px;border-radius:14px;background:#54565b;position:relative;transition:background .18s}
.perm-sw::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;transition:transform .18s}
.perm-switch input:checked + .perm-sw{background:#6c63ff}
.perm-switch input:checked + .perm-sw::after{transform:translateX(21px)}
.perm-switch input:focus-visible + .perm-sw{box-shadow:0 0 0 3px rgba(108,99,255,.4)}
.perm-sub{padding:6px 0 10px;border-bottom:1px solid var(--line)}
.perm-lvl{font-size:12px;font-weight:800;letter-spacing:.06em;color:var(--ink-3);text-transform:uppercase;margin:16px 0 2px}
.pg-form-foot{padding:22px 0 6px}
.pg-form-foot .btn{min-width:150px}
@media(max-width:620px){.perm-field{grid-template-columns:1fr;gap:4px}.perm-field>label{padding-top:0}.perm-toggle-tx b{font-size:15px}}

/* ===== Profile menu — wallet + points balance pills ===== */
/* Wallet & Points cards — vivid gradient cards with white content: look sharp on both light and dark panels */
.nm-bal{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:2px 18px 14px}
.nm-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:11px;padding:13px 14px;border-radius:16px;color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.22)}
.nm-card-wallet{background:linear-gradient(135deg,#16b981,#0e9f6e 52%,#0a7a55)}
.nm-card-points{background:linear-gradient(135deg,#fbb534,#f5860f 52%,#e15a0c)}
.nm-card::after{content:'';position:absolute;right:-22px;top:-26px;width:86px;height:86px;border-radius:50%;background:rgba(255,255,255,.14);pointer-events:none}
.nm-card::before{content:'';position:absolute;left:-16px;bottom:-30px;width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}
.nm-card-ic{position:relative;z-index:1;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.nm-card-ic svg{width:22px;height:22px}
.nm-card-tx{position:relative;z-index:1;display:flex;flex-direction:column;min-width:0;line-height:1.15}
.nm-card-lbl{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.82}
.nm-card-val{font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}

/* ===== Share panel ("Share to" bottom sheet) ===== */
.shp-back{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .25s}
.shp-back.show{opacity:1}
.shp{width:100%;max-width:600px;background:var(--surface,#1f2023);border-radius:20px 20px 0 0;padding:18px 0 calc(16px + env(safe-area-inset-bottom));transform:translateY(100%);transition:transform .28s cubic-bezier(.2,.8,.2,1);box-shadow:0 -10px 40px rgba(0,0,0,.45)}
.shp-back.show .shp{transform:translateY(0)}
@media(min-width:680px){.shp-back{align-items:center}.shp{border-radius:20px;transform:translateY(24px)}.shp-back.show .shp{transform:none}}
.shp-head{display:flex;align-items:center;justify-content:center;position:relative;padding:2px 18px 14px;min-height:30px}
.shp-title{font-size:19px;font-weight:800}
.shp-x,.shp-back-btn{position:absolute;top:-2px;background:none;border:0;color:var(--ink-2);cursor:pointer;padding:6px;display:flex}
.shp-x{right:14px}.shp-back-btn{left:14px}
.shp-x svg,.shp-back-btn svg{width:22px;height:22px}
.shp-row{display:flex;gap:4px;overflow-x:auto;padding:6px 14px 4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.shp-row::-webkit-scrollbar{display:none}
.shp-item{flex:0 0 auto;width:80px;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:9px;padding:6px 2px;color:var(--ink)}
.shp-ic{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:transform .12s}
.shp-ic svg{width:30px;height:30px}
.shp-label{font-size:13px;text-align:center;line-height:1.2;color:var(--ink-2)}
.shp-item:active .shp-ic{transform:scale(.9)}
/* Send-to-friends sub-view */
.shp-search{padding:2px 18px 10px}
.shp-search input{width:100%;background:var(--surface-2,#2a2b2e);border:1px solid var(--line);border-radius:12px;padding:11px 14px;color:var(--ink);font-size:15px;outline:none}
.shp-search input:focus{border-color:var(--blue)}
.shp-people{max-height:46vh;overflow-y:auto;padding:0 10px 4px}
.shp-person{width:100%;display:flex;align-items:center;gap:12px;background:none;border:0;cursor:pointer;padding:9px 10px;border-radius:12px;color:var(--ink);text-align:left}
.shp-person:hover{background:var(--surface-2,#2a2b2e)}
.shp-person img{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.shp-person-n{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.shp-person-n b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shp-person-n i{font-style:normal;color:var(--ink-3);font-size:13px}
.shp-send-lbl{font-weight:800;color:var(--blue);font-size:14px;flex:0 0 auto}
.shp-person.done{opacity:.65}
.shp-person.done .shp-send-lbl{color:#22c55e}
.shp-empty{padding:24px;text-align:center}

/* ===== Group page (redesigned, two-column) ===== */
.gp-wrap{display:grid;grid-template-columns:360px 1fr;gap:18px;max-width:1200px;margin:0 auto;padding:18px;align-items:start}
@media(max-width:900px){.gp-wrap{grid-template-columns:1fr}}
.gp-side{display:flex;flex-direction:column;gap:16px}
.gp-side>.card,.gp-main>.card{background:var(--surface,#1b1c1f);border:1px solid var(--line);border-radius:16px}
.gp-card{overflow:hidden;padding-bottom:18px}
.gp-cover{position:relative;height:170px;background:var(--surface-2,#26282c)}
.gp-cover-img{width:100%;height:100%;object-fit:cover;display:block}
.gp-cover-img[hidden]{display:none}   /* a group without a cover: no broken-image icon (as .pp-cover-img) */
.gp-cover-grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.28),transparent 45%)}
.gp-cover-ctrl{position:absolute;top:12px;right:12px;display:flex;gap:8px}
.gp-cc-btn{display:inline-flex;align-items:center;gap:6px;background:rgba(20,20,22,.7);color:#fff;border:0;border-radius:9px;padding:7px 11px;font-size:13.5px;font-weight:600;cursor:pointer}
.gp-cc-btn:hover{background:rgba(20,20,22,.92)}
.gp-cc-btn svg{width:17px;height:17px}
.gp-cc-ico{padding:7px}
.gp-av-wrap{position:relative;width:120px;margin:-60px auto 0;z-index:2}
.gp-av{display:flex;width:120px;height:120px;border-radius:50%;background:var(--surface-2,#33363b);border:5px solid var(--surface,#1b1c1f);align-items:center;justify-content:center;overflow:hidden;color:var(--ink-3)}
.gp-av img{width:100%;height:100%;object-fit:cover}
.gp-av svg{width:46px;height:46px}
.gp-av-cam{position:absolute;right:4px;bottom:6px;width:34px;height:34px;border-radius:50%;background:#15171a;border:2px solid var(--surface,#1b1c1f);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.gp-av-cam svg{width:17px;height:17px}
.gp-name{text-align:center;font-size:26px;font-weight:800;margin:12px 0 6px;display:flex;align-items:center;justify-content:center;gap:5px}
.gp-meta{color:var(--ink-2);font-size:14.5px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;padding:0 16px;line-height:1.6}
.gp-meta-i{display:inline-flex;align-items:center;gap:5px}
.gp-meta-i svg{width:15px;height:15px}
.gp-meta b{color:var(--ink)}
.gp-dot{color:var(--ink-3)}
.gp-reviews{text-align:center;color:var(--ink-2);font-size:14.5px;margin-top:5px}
.gp-acts{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:16px;padding:0 16px}
.gp-join{flex:1;max-width:170px;border:0;border-radius:11px;padding:12px 16px;font-size:15.5px;font-weight:700;cursor:pointer;background:var(--blue);color:var(--on-accent);transition:filter .12s}
.gp-join:hover{filter:brightness(1.05)}
.gp-join.joined{background:#27ae60;color:#fff}
.gp-boost{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:11px;padding:12px 18px;font-size:15.5px;font-weight:700;cursor:pointer;background:#f3b53c;color:#3a2c00}
.gp-boost:hover{filter:brightness(1.04)}
.gp-boost svg{width:18px;height:18px}
.gp-more{width:46px;height:46px;flex:0 0 46px;border:0;border-radius:50%;background:var(--surface-2,#2b2d31);color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.gp-more svg{width:20px;height:20px}
.gp-search{display:flex;align-items:center;gap:10px;padding:12px}
.gp-search input{flex:1;background:var(--surface-2,#26282c);border:1px solid var(--line);border-radius:10px;padding:12px 14px;color:var(--ink);font-size:15px;outline:none}
.gp-search input:focus{border-color:var(--blue)}
.gp-q-btn{width:48px;height:46px;flex:0 0 48px;border:0;border-radius:12px;background:var(--blue);color:var(--on-accent);cursor:pointer;display:flex;align-items:center;justify-content:center}
.gp-q-btn svg{width:20px;height:20px}
.gp-invite{padding:16px}
.gp-invite h3{font-size:18px;font-weight:800;margin:0 0 12px}
.gp-inv{display:flex;align-items:center;gap:11px;padding:8px 0}
.gp-inv>a{flex:0 0 auto;display:block}
.gp-inv>a img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.gp-inv-n{flex:1;min-width:0;display:flex;align-items:center;gap:6px;font-weight:600;font-size:15px;overflow:hidden}
.gp-inv-n a{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gp-inv-n .ver-tick{width:16px;height:16px}
.gp-pro{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:800;color:#ff5a3c;border:1px solid #ff5a3c;border-radius:9px;padding:1px 7px;flex:0 0 auto}
.gp-inv-btn{flex:0 0 auto;border:1.5px solid var(--blue);background:none;color:var(--blue);border-radius:18px;padding:6px 18px;font-weight:700;font-size:14px;cursor:pointer}
.gp-inv-btn:hover{background:var(--blue);color:var(--on-accent)}
.gp-inv-btn.done{border-color:var(--ink-3);color:var(--ink-3);cursor:default}
.gp-inv-empty{padding:8px 0}
.gp-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.gp-tabs{display:flex;gap:6px;padding:10px;overflow-x:auto;scrollbar-width:none}
.gp-tabs::-webkit-scrollbar{display:none}
.gp-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;background:none;border:0;border-radius:12px;padding:11px 18px;color:var(--ink-2);font-size:15.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.gp-tab svg{width:20px;height:20px}
.gp-tab.active{background:var(--surface-2,#2b2d31);color:var(--ink)}
.gp-tab-ico{margin-left:auto;padding:11px}
.gp-composer{display:flex;align-items:center;gap:11px;padding:14px}
.gp-comp-av img{width:42px;height:42px;border-radius:50%;object-fit:cover;display:block}
.gp-composer textarea{flex:1;background:var(--surface-2,#26282c);border:1px solid var(--line);border-radius:22px;padding:12px 16px;color:var(--ink);font-size:15px;resize:none;outline:none;font-family:inherit;height:46px}
.gp-composer textarea:focus{border-color:var(--blue)}
.gp-c-photo{width:42px;height:42px;flex:0 0 auto;border:0;border-radius:50%;background:var(--surface-2,#2b2d31);color:var(--ink-2);cursor:pointer;display:flex;align-items:center;justify-content:center}
.gp-c-photo svg{width:20px;height:20px}
.gp-c-thumb{width:42px;height:42px;border-radius:8px;object-fit:cover}
.gp-filterbar{padding:10px}
.gp-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.gp-chips::-webkit-scrollbar{display:none}
.gp-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;background:var(--surface-2,#26282c);border:0;border-radius:10px;padding:9px 16px;color:var(--ink-2);font-size:14.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.gp-chip.active{background:var(--blue);color:var(--on-accent)}
.gp-country{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-weight:700;font-size:15px;padding:0 4px}
.gp-country svg{width:18px;height:18px}
.gp-menu{position:absolute;z-index:9000;background:var(--surface,#1b1c1f);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.4);padding:6px;min-width:180px;display:flex;flex-direction:column}
.gp-menu button{text-align:left;background:none;border:0;color:var(--ink);padding:10px 14px;border-radius:8px;font-size:14.5px;cursor:pointer}
.gp-menu button:hover{background:var(--surface-2,#26282c)}
.gp-menu-danger{color:#e2453f!important}

/* ===== Cover drag-to-reposition ===== */
.cover-reposing{cursor:grab}
.cover-reposing img{cursor:grab;-webkit-user-drag:none;user-select:none}
.cover-grabbing,.cover-grabbing img{cursor:grabbing!important}
.cover-reposing .gp-cover-ctrl,.cover-reposing .pp-cover-ctrl{display:none}
.cover-repos-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:linear-gradient(transparent,rgba(0,0,0,.72));z-index:6}
.cover-repos-hint{color:#fff;font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:8px;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.cover-repos-hint svg{width:18px;height:18px}
.cover-repos-acts{display:flex;gap:8px;flex:0 0 auto}
.cover-repos-bar .btn{padding:8px 16px}
.cover-repos-bar .btn-ghost{background:rgba(255,255,255,.18);color:#fff}
.pp-cover-ctrl{position:absolute;top:14px;right:14px;display:flex;gap:8px;z-index:3}
.pp-cover-ctrl .pp-cover-edit{position:static}
.pp-cover-move{padding:8px!important}
.pp-cover-move svg{width:18px;height:18px}

/* ===== Page view (redesigned, per PDF) ===== */
.pp2-wrap{max-width:1200px;margin:0 auto;padding:0 0 18px}
.pp2-head{border-radius:0 0 16px 16px;overflow:visible;margin-bottom:18px;background:var(--surface,#1b1c1f);padding:0}
.pp2-cover{border-radius:0}
.pp2-id{display:flex;align-items:center;gap:18px;padding:14px 24px 4px;flex-wrap:wrap}
.pp2-av-wrap{position:relative;flex:0 0 auto;margin-top:-66px}
.pp2-av{display:flex;width:120px;height:120px;border-radius:50%;background:var(--surface-2,#33363b);border:5px solid var(--surface,#1b1c1f);align-items:center;justify-content:center;overflow:hidden;color:var(--ink-3)}
.pp2-av img{width:100%;height:100%;object-fit:cover}
.pp2-av svg{width:46px;height:46px}
.pp2-av-cam{position:absolute;right:4px;bottom:8px;width:34px;height:34px;border-radius:50%;background:#15171a;border:2px solid var(--surface,#1b1c1f);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.pp2-av-cam svg{width:17px;height:17px}
.pp2-id-info{flex:1 1 180px;min-width:0}   /* a 180px basis: on a phone the Like row wraps below the name instead of covering it */
.pp2-id-info h1{display:flex;align-items:center;gap:6px;font-size:30px;font-weight:800;margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.pp2-id-info h1{font-size:22px;line-height:1.25}}   /* long page names (old als.social pages) on phones */
.pp2-handle{color:var(--ink-3);font-size:15px}
.pp2-id-acts{display:flex;align-items:center;gap:10px}
.pp2-like{padding:11px 22px;font-size:15.5px;border-radius:11px;display:inline-flex;align-items:center;gap:7px}
.pp2-like svg{width:18px;height:18px}
.pp2-more{width:46px;height:46px;flex:0 0 46px;border:0;border-radius:50%;background:var(--surface-2,#2b2d31);color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.pp2-more svg{width:20px;height:20px}
.pp2-tabs{display:flex;gap:6px;padding:14px 16px 10px;overflow-x:auto;scrollbar-width:none;justify-content:center;flex-wrap:wrap}
.pp2-tabs::-webkit-scrollbar{display:none}
.pp2-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;background:none;border:0;border-radius:20px;padding:10px 18px;color:var(--ink-2);font-size:15.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.pp2-tab svg{width:20px;height:20px}
.pp2-tab.active{background:var(--surface-2,#2b2d31);color:var(--ink)}
.pp2-body{display:grid;grid-template-columns:340px 1fr;gap:18px;padding:0 18px;align-items:start}
@media(max-width:900px){.pp2-body{grid-template-columns:1fr}}
.pp2-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.pp2-side>.card{background:var(--surface,#1b1c1f);border:1px solid var(--line);border-radius:16px;padding:16px}
.pp2-side>.gp-search{padding:12px}
.pp2-about h3,.pp2-invite h3,.pp2-events h3,.pp2-photos h3,.pp2-invite-full h3{font-size:18px;font-weight:800;margin:0 0 12px}
.pp2-bio{color:var(--ink);margin:0 0 12px;font-size:15px}
.pp2-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.pp2-card-head h3{margin:0}
.pp2-seeall{color:var(--blue);font-weight:700;font-size:14px;cursor:pointer}
.pp2-main{display:flex;flex-direction:column;gap:16px;min-width:0}
/* round 128: where the page is one column (phones, ≤900 px) the owner's post form sits in the header, above the tab row */
.pp2-ctop{padding:6px 16px 0}
.pp2-ctop .gp-composer{margin:0;padding:10px;gap:8px;border:1px solid var(--line);border-radius:14px;box-shadow:none;background:var(--surface-2,#26282c)}
.pp2-ctop .gp-comp-av img{width:36px;height:36px}
.pp2-ctop .gp-composer textarea{min-width:0;height:40px;padding:9px 14px;font-size:14px;line-height:20px;background:var(--surface,#1b1c1f)}
.pp2-ctop .gp-composer textarea:placeholder-shown{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* empty: the hint on one line (wrapped, half its second line showed); typing wraps as usual */
.pp2-ctop .gp-c-photo{width:38px;height:38px}
.pp2-ctop #pp2-c-post{flex:0 0 auto;min-height:38px;padding:0 14px}
.pp2-ev{display:flex;align-items:center;gap:11px;padding:7px 0}
.pp2-ev-av{width:42px;height:42px;flex:0 0 auto;border-radius:10px;overflow:hidden;background:var(--surface-2,#2b2d31);display:flex;align-items:center;justify-content:center;color:var(--ink-3)}
.pp2-ev-av img{width:100%;height:100%;object-fit:cover}
.pp2-ev-av svg{width:20px;height:20px}
.pp2-ev-n{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.pp2-ev-n b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp2-ev-n b a{color:var(--ink)}
.pp2-ev-n i{font-style:normal;color:var(--ink-3);font-size:13px}
.pp2-ev-btn{flex:0 0 auto;border:1.5px solid var(--blue);background:none;color:var(--blue);border-radius:18px;padding:6px 14px;font-weight:700;font-size:13.5px;cursor:pointer}
.pp2-ev-btn.on{background:var(--blue);color:var(--on-accent)}
.pp2-ph-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.pp2-ph{aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--surface-2,#2b2d31);display:block}
.pp2-ph img{width:100%;height:100%;object-fit:cover}

/* Telegram OTP sign-in button */
.tg-btn{display:flex;align-items:center;justify-content:center;gap:9px;width:300px;max-width:100%;padding:11px 16px;border-radius:999px;background:#28a8e8;color:#fff;font-weight:700;font-size:14.5px;border:none;cursor:pointer;transition:filter .15s,transform .1s;margin-top:10px}
.tg-btn:hover{filter:brightness(1.06)}
.tg-btn:active{transform:scale(.98)}
.tg-btn svg{flex:0 0 18px}

/* Telegram phone geo badge */
.tg-geo{display:inline-block;margin-left:6px;font-size:13px;font-weight:700;color:var(--blue);vertical-align:middle}

/* ===== Language switcher (header) + admin Languages page ===== */
.lang-switch{display:inline-flex;align-items:center;gap:3px;background:var(--surface-2,#222);border:1px solid var(--line);border-radius:11px;padding:3px;margin:0 2px}
.lang-flag{border:0;background:none;cursor:pointer;font-size:17px;line-height:1;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;filter:grayscale(.5) opacity(.6);transition:.15s}
.lang-flag:hover{filter:none}
.lang-flag.active{background:var(--blue);filter:none;box-shadow:0 2px 8px rgba(var(--gold-rgb),.4)}
.lang-row{display:inline-flex;align-items:center;gap:10px}
.lang-row .lang-flag-lg{font-size:22px;line-height:1}
.lang-row i{font-style:normal;font-size:12.5px}
.lang-radio{width:18px;height:18px;accent-color:var(--blue);cursor:pointer}
.lang-presets{display:flex;flex-wrap:wrap;gap:8px}
.lang-preset{background:var(--surface-2,#26282c);border:1px solid var(--line);border-radius:10px;padding:8px 13px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.lang-preset:hover{border-color:var(--blue)}
.le-list{max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:4px}
.le-row{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;align-items:center}
.le-en{font-size:13.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.le-tr{font-size:14px}
@media(max-width:560px){.le-row{grid-template-columns:1fr}.le-en{font-weight:700;color:var(--ink)}}

/* ===== Mobile: cart + messages moved to the footer nav ===== */
.mob-nav .mob-ic{position:relative;display:inline-flex}
.mob-nav .mob-ic .msg-badge{top:-4px;right:-7px;border-color:var(--surface)}
@media (max-width:680px){ .nav-deskonly{display:none!important} }
@media (max-width:400px){ .mob-nav a{font-size:9.5px} .mob-nav svg{width:22px;height:22px} .mob-nav .row{padding:0 2px} }

/* ===== Phones: the bottom menu as a floating pill — a native port of the 21st.dev "FloatingNav" (React + framer-motion
   + lucide there). A solid white pill (near-black in dark mode) with a hairline border and a deep shadow floats 16 px
   above the bottom edge (above the home indicator in the apps); the items share its width evenly; a soft blue pill
   slides behind the active item (placeMobInd in app.js — framer's spring 400/30 as a CSS linear() curve, a
   cubic-bezier where linear() is unknown). Icons only on phones; the words show from 640 px, and to screen readers
   always (.mob-lbl). The full-width .mob-nav stays a transparent, click-through carrier, so the news feed's
   slide-away (.mob-nav-hide) still moves everything. ===== */
:root{--mob-nav-gap:max(16px, calc(env(safe-area-inset-bottom, 0px) + 6px));--mob-nav-h:56px}
.mob-nav{background:none;border:0;pointer-events:none;padding:0 8px var(--mob-nav-gap)}
.mob-nav .row{pointer-events:auto;position:relative;display:flex;align-items:center;justify-content:space-between;
  width:100%;max-width:496px;margin:0 auto;padding:8px 4px;border-radius:999px;
  background:#fff;border:1px solid #e5e7eb;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)}
html[data-theme="dark"] .mob-nav .row{background:#171717;border-color:#1f2937}
.mob-nav .mob-ind{position:absolute;top:4px;bottom:4px;left:0;width:0;border-radius:999px;pointer-events:none;background:rgba(var(--gold-rgb),.12);
  transition:left .5s cubic-bezier(.3,1.25,.5,1),width .5s cubic-bezier(.3,1.25,.5,1),opacity .2s;
  transition:left .5s linear(0, 0.061, 0.199, 0.366, 0.53, 0.674, 0.791, 0.88, 0.944, 0.985, 1.011, 1.023, 1.028, 1.028, 1.024, 1.02, 1.015, 1.011, 1.007, 1.004, 1.002, 1.001, 1, 0.999, 0.999, 0.999, 1),width .5s linear(0, 0.061, 0.199, 0.366, 0.53, 0.674, 0.791, 0.88, 0.944, 0.985, 1.011, 1.023, 1.028, 1.028, 1.024, 1.02, 1.015, 1.011, 1.007, 1.004, 1.002, 1.001, 1, 0.999, 0.999, 0.999, 1),opacity .2s}
html[data-theme="dark"] .mob-nav .mob-ind{background:rgba(var(--gold-rgb),.14)}
.mob-nav .row a,.mob-nav .row .mob-create{position:relative;z-index:1;flex:1 1 0;min-width:0;height:38px;padding:8px;gap:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;color:#4b5563;font-size:14px;font-weight:500}
.mob-nav .row a.active{color:#4b5563}
html[data-theme="dark"] .mob-nav .row a,html[data-theme="dark"] .mob-nav .row a.active{color:#d1d5db}
.mob-nav .row a>svg,.mob-nav .row .mob-ic>svg{width:22px;height:22px}
/* 3D icons (Canva → public/img/nav3d, scripts/nav3d.canva.json): 30 px in the 38 px slot (4 px above and below — the side
   padding stays 8 px on every slot, see the flex note below); the "+" a little larger, as the main action */
.mob-nav .row .mob-3d{display:block;width:30px;height:30px;object-fit:contain;pointer-events:none;-webkit-user-drag:none;user-select:none}
.mob-nav .row a{padding:4px 8px}
.mob-nav .row .mob-create .mob-3d{width:34px;height:34px}
.mob-nav .row .mob-3d{transition:transform .12s ease}
.mob-nav .row a:active .mob-3d,.mob-nav .row .mob-create:active .mob-3d{transform:scale(.9)}   /* a press you can feel */
.mob-nav .row .mob-me-av{width:24px;height:24px}
.mob-nav .row .msg-badge{border-color:#fff}
html[data-theme="dark"] .mob-nav .row .msg-badge{border-color:#171717}
/* "+" (create): the 3D blue→violet plus button (34 px) in its share of the pill */
.mob-nav .row .mob-create{padding:1px 8px;background:none;border:0;cursor:pointer}   /* same side padding as the links: with flex-basis 0 the padding is each slot's starting width */
.mob-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (min-width:640px){
  .mob-nav .row a{height:auto}
  .mob-nav .row .mob-lbl{position:static;width:auto;height:auto;overflow:visible;clip-path:none;margin-top:4px;font-size:12px;line-height:16px}
}
/* what sits just above the menu clears the floating pill — and goes back down to its own place when the menu slides
   away (mobNavAutoHide, every page since round 105). Each keeps its own transitions (cart bar show/hide, banner slide-in). */
@media (max-width:680px){
  body .cfab{bottom:calc(var(--mob-nav-gap) + var(--mob-nav-h) + 10px);transition:bottom .25s ease}
  body .cart-bar{bottom:calc(var(--mob-nav-gap) + var(--mob-nav-h) + 6px);transition:opacity .2s,transform .2s,visibility .2s,bottom .25s ease}
  body .pos-bar{bottom:calc(var(--mob-nav-gap) + var(--mob-nav-h) + 6px);transition:bottom .25s ease}
  body .pwa-banner{bottom:calc(var(--mob-nav-gap) + var(--mob-nav-h) + 8px);transition:transform .35s cubic-bezier(.2,.8,.2,1),bottom .25s ease}
  body:has(#app .mob-nav.mob-nav-hide) .cfab{bottom:calc(env(safe-area-inset-bottom, 0px) + 16px)}
  body:has(#app .mob-nav.mob-nav-hide) .cart-bar{bottom:calc(12px + env(safe-area-inset-bottom, 0px))}
  body:has(#app .mob-nav.mob-nav-hide) .pos-bar{bottom:0}
  body:has(#app .mob-nav.mob-nav-hide) .pwa-banner{bottom:calc(14px + env(safe-area-inset-bottom, 0px))}
}

/* ============================================================
   POST CARD v2 — feed post redesign
   Refines the base .post rules above rather than replacing them, so every
   view that reuses .post-* (profile, pages, groups, watch) inherits it.
   All existing data-* hooks are untouched; this is presentation only.
   ============================================================ */

.post{
  --pc-pad:16px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:0 1px 2px rgba(18,17,25,.04), 0 6px 20px -8px rgba(18,17,25,.10);
  transition:box-shadow .25s ease, border-color .25s ease, transform .25s ease;
  animation:pcRise .4s cubic-bezier(.22,.9,.3,1) both;
  overflow:clip;
}
@media (hover:hover){
  .post:hover{
    border-color:color-mix(in srgb, var(--blue) 22%, var(--line));
    box-shadow:0 2px 4px rgba(18,17,25,.05), 0 14px 34px -12px rgba(18,17,25,.20);
  }
}
@keyframes pcRise{from{opacity:0;transform:translateY(14px) scale(.994)}to{opacity:1;transform:none}}
html[data-theme="dark"] .post{box-shadow:0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6)}

/* ---------- header ---------- */
.post-head{padding:14px var(--pc-pad) 8px;gap:11px;align-items:flex-start}
.post-av{position:relative;flex:0 0 auto;border-radius:50%;display:block}
/* a soft brand ring reads as "identity" without the noise of a hard border */
/* box-shadow ring rather than a z-index:-1 pseudo — a negative z-index would
   paint behind the card's own background and never be seen. */
.post-av .avatar{box-shadow:0 0 0 0 color-mix(in srgb, var(--blue) 45%, transparent);transition:transform .25s cubic-bezier(.2,1.6,.4,1), box-shadow .25s ease}
.post-av:hover .avatar{box-shadow:0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent)}
.post-av:hover .avatar{transform:scale(1.05)}
.post-head .who b{font-size:15px;font-weight:700;letter-spacing:-.1px;line-height:1.3}
.post-head .who a:hover b{text-decoration:underline;text-underline-offset:2px}
.post-head .who .muted{display:block;font-size:12.5px;color:var(--ink-3);line-height:1.35}
.post-feeling{font-weight:400;color:var(--ink-2)}
/* the menu stays quiet until the card is engaged — but always visible on touch */
.post-menu-btn{opacity:.55;transition:opacity .2s, background .15s, transform .15s}
@media (hover:hover){.post:hover .post-menu-btn{opacity:1}}
@media (hover:none){.post-menu-btn{opacity:1}}
.post-menu-btn:active{transform:scale(.92)}

/* ---------- body ---------- */
.post-text{padding:2px var(--pc-pad) 12px;font-size:15px;line-height:1.62;color:var(--ink)}
.pt-toggle{color:var(--blue)}

/* ---------- media ---------- */
/* Inset + rounded reads as a deliberate frame instead of a full-bleed slab,
   and keeps the card's corner radius meaningful. */
.post-media,.post-gallery,.post-carousel,.post-reel{
  margin:0 var(--pc-pad) 2px;
  border-radius:14px;
  overflow:hidden;
  position:relative;
  isolation:isolate;
}
.post-media{border:1px solid var(--line);background:var(--surface-2)}
html[data-theme="dark"] .post-media{background:#0c1017}
/* Links in posts (linkifyHtml / linkCardHtml in app.js): blue links in the text, and the first link's card under it,
   framed like the post's media — a YouTube video plays in place (16:9, Shorts 9:16 up to 75% of the screen), any other
   link shows its picture (1.91:1, like Facebook's cards), the site in small capitals, the title and one line of text. */
.post-link{color:var(--blue);font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.post-link:hover{text-decoration:underline}
.lp{margin:0 var(--pc-pad, 16px) 4px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface-2)}
.lp[hidden]{display:none}
.lp-box{background:#000}
.lp-stage{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;background:#000;cursor:pointer;overflow:hidden}
.lp-stage img{width:100%;height:100%;object-fit:cover;display:block}
.lp-play{position:absolute;inset:0;margin:auto;width:68px;height:48px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.45));transition:transform .15s}
.lp-play svg{width:100%;height:100%;display:block}
.lp-stage:hover .lp-play,.lp-stage:focus-visible .lp-play{transform:scale(1.08)}
.lp-frame{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}
.lp-short .lp-stage,.lp-short .lp-frame{width:min(100%, calc(min(75vh, 640px) * 9 / 16));aspect-ratio:9/16;margin:0 auto}
.lp-meta{display:flex;flex-direction:column;gap:2px;padding:9px 14px 11px;min-width:0;color:var(--ink);text-decoration:none}
.lp-site{font-size:12px;color:var(--ink-3);text-transform:uppercase;letter-spacing:.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-title{font-size:15px;font-weight:700;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lp-title:empty{display:none}
.lp-desc{font-size:13px;line-height:1.4;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.lp-link{display:block;color:inherit;text-decoration:none}
@media (hover:hover){.lp-link:hover .lp-title{text-decoration:underline}}
.lp-by{text-transform:none;letter-spacing:0}
.lp-mini{display:flex;align-items:center;gap:12px;padding-left:14px}
.lp-mini .lp-meta{padding-left:0}
.lp-mini-ic{flex:none;width:36px;height:36px;display:flex}
.lp-mini-ic svg{width:100%;height:100%}
.lp-img{display:block;aspect-ratio:1.91/1;background:#0c1017;overflow:hidden}
.lp-img img{width:100%;height:100%;object-fit:cover;display:block}
.post-media img{transition:transform .5s cubic-bezier(.2,.8,.3,1)}
@media (hover:hover){.post-media:hover img[data-imgbox]{transform:scale(1.02)}}
.post-gallery{gap:2px}
.post-gallery .pg-cell:first-child{border-top-left-radius:14px;border-bottom-left-radius:14px}

/* double-tap heart burst */
.pm-burst{
  position:absolute;left:50%;top:50%;z-index:5;
  font-size:78px;line-height:1;pointer-events:none;
  translate:-50% -50%;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.45));
  animation:pmBurst .85s cubic-bezier(.2,1.5,.35,1) forwards;
}
@keyframes pmBurst{
  0%{opacity:0;scale:.3;rotate:-14deg}
  22%{opacity:1;scale:1.12;rotate:5deg}
  45%{scale:.95;rotate:0deg}
  70%{opacity:1;scale:1}
  100%{opacity:0;scale:1.25;translate:-50% -84%}
}

/* ---------- comments ---------- */
.post .comments{padding:0 var(--pc-pad)}
.post .comments.open{border-top:1px solid var(--line);padding-top:10px;margin-top:2px;animation:pcFade .28s ease both}
@keyframes pcFade{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.comment-form{margin:10px 0 14px}
.comment-form input{
  border:1px solid transparent;padding:10px 16px;font-size:14px;
  transition:border-color .18s, background .18s, box-shadow .18s;
}
.comment-form input:focus{
  background:var(--surface);border-color:var(--blue);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent);
}
.comment-form button{
  width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;transition:background .15s, transform .12s;
}
.comment-form button:hover{background:var(--blue-soft)}
.comment-form button:active{transform:scale(.9)}

/* ---------- flags ---------- */
.post-flag{margin:0 var(--pc-pad) 8px;border-radius:10px;font-size:12.5px;font-weight:600;padding:7px 11px}

/* ---------- narrow screens ---------- */
@media (max-width:600px){
  .post{--pc-pad:13px;border-radius:16px;margin-bottom:12px}
  .post-media,.post-gallery,.post-carousel,.post-reel{margin-left:0;margin-right:0;border-radius:0;border-left:none;border-right:none}
  .post-actions{margin:0 6px}
}

/* Honour the OS setting — the burst and stagger are decoration, not information. */
@media (prefers-reduced-motion:reduce){
  .post,.pm-burst,.rx-emoji,.rx-picker button,.post .comments.open{animation:none!important}
  .post,.post-media img,.post-actions button,.rx-react,.post-head .avatar{transition:none!important}
  .post-av:hover .avatar,.post-media:hover img[data-imgbox]{transform:none}
}

/* ============================================================
   POST ACTION BAR v3 — icon+count row with reactor social proof
   Layout follows the Facebook video card: faces float over the media,
   the bar is compact icon+count buttons, and a "… reacted" line sits
   underneath. Existing data-* hooks are unchanged.
   ============================================================ */

/* ---------- reactor faces over the media ---------- */
.rf-stack{
  position:absolute;left:14px;bottom:12px;z-index:4;
  display:flex;align-items:center;pointer-events:none;
  animation:rfIn .45s cubic-bezier(.2,1.2,.35,1) both;
}
@keyframes rfIn{from{opacity:0;transform:translateY(10px) scale(.85)}to{opacity:1;transform:none}}
/* each face overlaps the one to its LEFT, so z-index climbs with position —
   that is the order in the reference card, and it keeps every badge visible
   except where the next avatar deliberately clips it. */
.rf{position:relative;display:block;margin-right:-11px}
.rf:nth-child(1){z-index:1}.rf:nth-child(2){z-index:2}.rf:nth-child(3){z-index:3}
.rf img{
  width:46px;height:46px;border-radius:50%;object-fit:cover;display:block;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 3px 12px rgba(0,0,0,.45);
  background:var(--surface-2);
}
.rf-badge{
  position:absolute;right:-1px;bottom:-1px;
  width:20px;height:20px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-style:normal;line-height:1;
  border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35);
}
@media (max-width:600px){
  .rf-stack{left:10px;bottom:10px}
  .rf img{width:40px;height:40px}
  .rf{margin-right:-9px}
  .rf-badge{width:19px;height:19px;font-size:10.5px}
}

/* ---------- the bar ---------- */
.post-bar{
  display:flex;align-items:center;gap:4px;
  padding:6px 8px;margin:2px 6px 0;
  border-top:1px solid var(--line);
}
.pb-spacer{flex:1 1 auto;min-width:8px}
.pb-btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 11px;border-radius:12px;
  color:var(--ink-2);font-weight:600;font-size:14.5px;line-height:1;
  transition:background .16s ease,color .16s ease,transform .12s ease;
}
.pb-btn .pb-ico{display:flex;align-items:center;justify-content:center;width:22px;height:22px}
.pb-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9}
/* the heart/like glyphs in this icon set are solid paths, not strokes */
.pb-btn svg path[fill]:not([fill="none"]){stroke:none}
.pb-n{font-variant-numeric:tabular-nums;letter-spacing:-.2px}
.pb-n:empty{display:none}
@media (hover:hover){.pb-btn:hover{background:var(--canvas);color:var(--ink)}}
.pb-btn:active{transform:scale(.93)}
.pb-btn:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.rx-react.reacted{background:transparent}
.rx-react.reacted .rx-emoji{font-size:20px}
.pb-save.on{color:var(--blue)}
.pb-save.on svg{fill:currentColor;stroke:currentColor}
/* round 114: views — the eye and the number beside Save (not a button: nothing to press) */
.pb-views{display:inline-flex;align-items:center;gap:5px;padding:8px 6px 8px 2px;color:var(--ink-3);font-weight:600;font-size:13.5px;line-height:1;cursor:default;white-space:nowrap}
.pb-views .pb-ico{display:flex;align-items:center;justify-content:center;width:19px;height:19px}
.pb-views svg{width:19px;height:19px}

/* top-reaction pills on the right, mirroring the reference */
.rx-summary{
  display:inline-flex;align-items:center;gap:0;
  font-size:13.5px;color:var(--ink-3);cursor:pointer;
  padding:4px 6px;border-radius:999px;transition:background .15s;
}
.rx-summary:empty{display:none}
.rx-summary:hover{background:var(--canvas)}
.rx-summary img,.rx-summary .rx-chip{
  width:22px;height:22px;border-radius:50%;margin-left:-5px;
  border:2px solid var(--surface);display:inline-flex;align-items:center;justify-content:center;font-size:11px;
}
.rx-summary img:first-child,.rx-summary .rx-chip:first-child{margin-left:0}

/* ---------- "Tito In and others reacted" ---------- */
/* The text sits where the old padding:2px 16px 12px put it; margin + padding split that so a
   tap/hover highlight has room around the text. */
.post-reacted{
  display:flex;align-items:center;gap:8px;
  margin:-4px 8px 6px;padding:6px 8px;border-radius:10px;
  font-size:13.5px;color:var(--ink-2);
}
.post-reacted[hidden]{display:none}
/* filled → a button that opens "who reacted" (openReactionsList), like the emojis on the right */
.post-reacted[role=button]{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s}
@media (hover:hover){.post-reacted[role=button]:hover{background:var(--canvas)}}
.post-reacted[role=button]:active{background:var(--canvas)}
.post-reacted[role=button]:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.rf-mini{display:inline-flex;align-items:center;flex:0 0 auto}
.rf-mini img{
  width:22px;height:22px;border-radius:50%;object-fit:cover;
  margin-left:-7px;border:2px solid var(--surface);background:var(--surface-2);
}
.rf-mini img:first-child{margin-left:0}
.rf-txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-txt b{font-weight:700;color:var(--ink)}

@media (max-width:600px){
  .post-bar{margin:2px 4px 0;padding:5px 4px}
  .pb-btn{padding:8px 9px;gap:6px;font-size:14px}
  .post-reacted{margin:-4px 6px 5px;padding:6px 7px;font-size:13px}   /* text at the old 2px 13px 11px */
}
@media (prefers-reduced-motion:reduce){
  .rf-stack{animation:none}
  .pb-btn{transition:none}
}

/* Bare emoji in the summary — no coloured disc behind it. Resets the shared
   .rx-summary chip rule above, which still sizes the avatar <img> variant. */
.post-bar .rx-summary .rx-stack{display:inline-flex;align-items:center}
.post-bar .rx-summary .rx-chip{
  width:auto;height:auto;border-radius:0;
  border:0;box-shadow:none;background:none;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:19px;line-height:1;margin-left:3px;
}
.post-bar .rx-summary .rx-chip:first-child{margin-left:0}

/* The old 3-equal-buttons bar left .rx-react-wrap/.rx-react at flex:1, which
   stretched the react column and spread the rest across the row. In the v3 bar
   every action is a compact, equally-sized button grouped hard left; only
   .pb-spacer flexes, so the reaction discs stay pinned right. */
.post-bar .rx-react-wrap{flex:0 0 auto;display:flex}
.post-bar .rx-react{
  flex:0 0 auto;
  justify-content:center;
  gap:7px;
  padding:8px 11px;
  border-radius:12px;
  font-weight:600;
}

/* ============================================================
   PROFILE TABS — friends / photos / videos / pages / groups / events
   ============================================================ */

/* Nine tabs no longer fit on a phone, so the bar scrolls horizontally
   instead of wrapping into a second row that pushes content down. */
.pd-tabs{
  overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
  flex-wrap:nowrap;
}
.pd-tabs::-webkit-scrollbar{display:none}
.pd-tab{flex:0 0 auto;white-space:nowrap}
.pd-tab span{
  font-size:12px;font-weight:700;
  background:var(--surface-2);color:var(--ink-2);
  padding:1px 7px;border-radius:999px;
}
.pd-tab.active span{background:color-mix(in srgb,var(--gold) 18%,transparent);color:var(--gold)}

/* Phones: the strip above becomes a Menu button + the section you're on, opening a sheet from the left with every
   section in a vertical list (native port of the 21st.dev "navbars": shadcn Sheet + VerticalNav; openPdSheet). */
.pd-mnav{display:none}
@media (max-width:680px){
  .pd-tabs{display:none}
  .pd-mnav{display:flex;align-items:center;gap:10px;margin:0 12px 14px}
}
.pd-mnav-btn{flex:none;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;
  background:var(--surface);color:var(--ink);transition:background .15s}
.pd-mnav-btn svg{width:22px;height:22px}
.pd-mnav-btn:active,.pd-mnav-cur:active{background:var(--surface-2)}
.pd-mnav-cur{flex:1;min-width:0;height:40px;display:flex;align-items:center;gap:8px;padding:0 14px;border-radius:8px;
  background:var(--surface-2);color:var(--ink);font-size:15px;font-weight:800;text-align:left}
.pd-mnav-cur b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-mnav-ic{display:inline-flex;color:var(--gold)}
.pd-mnav-ic svg{width:17px;height:17px;fill:currentColor}
.pd-mnav-n{margin-left:auto;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:700;
  background:color-mix(in srgb,var(--gold) 18%,transparent);color:var(--gold)}
/* the sheet: slides in from the left over a dimmed page (open .5 s, close .3 s, as shadcn's Sheet) */
.pd-sheet-back{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,.6);opacity:0;transition:opacity .3s ease;touch-action:none}
.pd-sheet-back.open{opacity:1;transition-duration:.5s}
.pd-sheet{position:fixed;inset:0 auto 0 0;z-index:301;width:260px;max-width:82vw;display:flex;flex-direction:column;
  padding-top:var(--safe-top,0px);background:var(--surface);border-right:1px solid var(--line);
  box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  transform:translateX(-100%);transition:transform .3s ease-in-out}
.pd-sheet.open{transform:none;transition-duration:.5s}
.pd-sheet-x{position:absolute;top:calc(var(--safe-top,0px) + 16px);right:14px;width:30px;height:30px;display:grid;place-items:center;
  border-radius:6px;color:var(--ink);opacity:.7;transition:opacity .15s}
.pd-sheet-x:hover,.pd-sheet-x:focus-visible{opacity:1}
.pd-sheet-x svg{width:16px;height:16px}
.pd-sheet-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 12px calc(24px + env(safe-area-inset-bottom,0px))}
.pd-sheet-h{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:8px 40px 8px 12px;font-size:18px;font-weight:700;color:var(--ink)}
.pd-sheet-h img{flex:none;width:34px;height:34px;border-radius:50%;object-fit:cover}
.pd-sheet-h span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pd-sheet-nav{display:flex;flex-direction:column;gap:4px}
.pd-sheet-item{display:flex;align-items:center;gap:10px;width:100%;height:42px;padding:8px 14px;border-radius:8px;
  color:var(--ink);font-size:14.5px;font-weight:600;text-align:left;transition:background .15s,color .15s}
.pd-sheet-item svg{flex:none;width:17px;height:17px}
.pd-sheet.prof .pd-sheet-item svg,.pd-mnav:not(.sxm) .pd-mnav-ic svg{fill:currentColor}   /* the profile's tab icons are drawn filled */
.pd-sheet-item .klyps-ic,.pd-mnav-ic .klyps-ic{flex:none;width:20px;height:20px;margin:0 -1.5px}   /* KLYPS's logo image, in the 17px icon column */
.pd-sheet-item:hover,.pd-sheet-item:focus-visible{background:var(--surface-2);outline:none}
.pd-sheet-item.active{background:color-mix(in srgb,var(--gold) 15%,transparent);color:var(--gold);font-weight:800}
.pd-sheet-item em{margin-left:auto;font-style:normal;font-size:12px;font-weight:700;color:var(--ink-3)}
/* Settings: the same bar (.sxm) — sticky under the status bar — and sheet, with groups that fold open */
.sxm{display:none}
@media (max-width:680px){
  body .sxi{display:none}   /* the island bar gives way on phones (its own rules come later in this file) */
  .sxm{display:flex;align-items:center;gap:10px;position:sticky;top:var(--safe-top,0px);z-index:60;margin:0 0 12px;padding:8px 0;background:var(--canvas)}
}
.sxm .pd-mnav-ic svg{fill:none}
.sxm .pd-mnav-cur{gap:8px}
.sxm-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-3);font-size:14px;font-weight:600}
.sxm-sub::before{content:'›';margin-right:8px}
.pd-sheet-item.off,.pd-sheet-subitem.off{color:var(--ink-3);cursor:default}
.pd-sheet-item.off:hover{background:none}
.pd-sheet-item .sxi-tag,.pd-sheet-subitem .sxi-tag{margin-left:auto}
.pd-sheet-gbtn.in{color:var(--gold)}
.pd-sheet-chev{margin-left:auto;display:inline-flex;transition:transform .2s}
.pd-sheet-chev svg{width:15px;height:15px}
.pd-sheet-group.open .pd-sheet-chev{transform:rotate(90deg)}
.pd-sheet-sub{display:none;flex-direction:column;gap:2px;margin:2px 0 6px 27px;padding-left:10px;border-left:1px solid var(--line)}
.pd-sheet-group.open .pd-sheet-sub{display:flex}
.pd-sheet-subitem{display:flex;align-items:center;gap:8px;min-height:36px;padding:6px 12px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ink-2)}
.pd-sheet-subitem:not(.off):hover{background:var(--surface-2);color:var(--ink)}
.pd-sheet-subitem.active{background:color-mix(in srgb,var(--gold) 15%,transparent);color:var(--gold);font-weight:700}
.pd-sheet-item.active em{color:inherit}

/* ---------- friends ---------- */
.pd-friends-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pd-fr{
  display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;
  padding:16px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);
  transition:transform .2s,border-color .2s,box-shadow .2s;
  min-width:0;   /* a grid item: without it one long @username widens its card past a phone screen */
}
@media (hover:hover){.pd-fr:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:var(--shadow)}}
/* the avatar only (> img): the verified tick inside the name is an <img> too, and ".pd-fr img" drew it 76px wide */
.pd-fr>img{width:76px;height:76px;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.pd-fr b{display:flex;align-items:center;justify-content:center;max-width:100%;min-width:0;font-size:14px;line-height:1.3}
.pd-fr-nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}   /* a long name shortens; the tick stays */
.pd-fr .ver-tick{width:16px;height:16px;margin-left:4px}
.pd-fr i{font-style:normal;font-size:12.5px;color:var(--ink-3);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- photos ---------- */
.pd-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px}
.pd-ph{display:block;aspect-ratio:1;overflow:hidden;border-radius:8px;background:var(--surface-2)}
.pd-ph img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
@media (hover:hover){.pd-ph:hover img{transform:scale(1.06)}}

/* ---------- videos ---------- */
.pd-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.pd-vid{display:flex;flex-direction:column;gap:6px}
.pd-vid-th{
  position:relative;display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden;
  background:#000;border:1px solid var(--line);
}
.pd-vid-th img{width:100%;height:100%;object-fit:cover}
.pd-vid-play{
  position:absolute;inset:0;margin:auto;width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.55);color:#fff;
}
.pd-vid-play svg{width:20px;height:20px;fill:currentColor}
.pd-vid b{font-size:14px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pd-vid i{font-style:normal;font-size:12.5px;color:var(--ink-3)}
@media (hover:hover){.pd-vid:hover b{color:var(--gold)}}

/* ---------- pages / groups / events ---------- */
.pd-cms-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.pd-cms{
  display:flex;flex-direction:column;gap:8px;padding-bottom:12px;
  border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
@media (hover:hover){.pd-cms:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:var(--shadow)}}
.pd-cms-img{display:block;aspect-ratio:16/9;background:var(--surface-2);overflow:hidden}
.pd-cms-img img{width:100%;height:100%;object-fit:cover}
.pd-cms-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:34px}
.pd-cms b{font-size:15px;padding:0 12px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pd-cms i{font-style:normal;font-size:12.5px;color:var(--ink-3);padding:0 12px}

@media (max-width:600px){
  .pd-friends-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}
  .pd-fr>img{width:62px;height:62px}
  .pd-photo-grid{grid-template-columns:repeat(3,1fr);gap:3px}
  .pd-video-grid,.pd-cms-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .pd-fr,.pd-cms,.pd-ph img{transition:none!important}
  .pd-fr:hover,.pd-cms:hover{transform:none}
}

/* Required-field marker + invalid state (Telegram sign-up name field) */
.field label .req{color:var(--heart);font-weight:700;margin-left:2px}
.field input.err{
  border-color:var(--heart)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--heart) 16%,transparent)!important;
}
.tg-name-hint{margin-top:5px;font-size:12px;color:var(--heart)}

/* Language picker on the signed-out auth screens (login / register / activate /
   forgot). The stage has no nav, so this floats top-right above the artwork. */
.auth-lang{
  position:absolute;top:16px;right:18px;z-index:6;
}
.auth-lang .lang-switch{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.22);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.auth-lang .lang-flag{filter:grayscale(.35) opacity(.85)}
.auth-lang .lang-flag:hover{filter:none}
.auth-lang .lang-flag.active{background:var(--blue);filter:none}
@supports not (backdrop-filter:blur(2px)){
  .auth-lang .lang-switch{background:rgba(0,0,0,.42)}
}
@media (max-width:600px){
  .auth-lang{top:10px;right:10px}
  .auth-lang .lang-flag{width:27px;height:27px;font-size:15px}
}

/* ---------- user menu footer (copyright · language · static page links) ---------- */
/* .nm-panel already supplies 16px side padding, so bleed the divider out to the
   panel edges rather than nesting a second inset. */
.nm-foot{
  margin:auto -16px 0;padding:14px 16px 0;
  border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:8px;
}
.nm-foot-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.nm-copy{font-size:12.5px;color:var(--ink-3)}
.nm-lang{display:inline-flex;align-items:center;gap:6px}
.nm-lang svg{width:16px;height:16px;color:var(--ink-3);flex:0 0 auto}
.nm-lang .lang-switch{margin:0}
.nm-lang .lang-flag{width:26px;height:26px;font-size:15px}
.nm-foot-links{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:12.5px;line-height:1.6}
.nm-foot-links a{color:var(--ink-2)}
.nm-foot-links a:hover{color:var(--blue);text-decoration:underline}
.nm-foot-links i{color:var(--ink-3);font-style:normal}

/* ---------- static page view ---------- */
.sp-page{max-width:820px;margin:0 auto;padding:26px 28px}
.sp-title{font-size:26px;line-height:1.25;margin-bottom:14px}
.sp-body{line-height:1.7;color:var(--ink)}
.sp-body h2{font-size:19px;margin:22px 0 8px}
.sp-body h3{font-size:16px;margin:18px 0 6px}
.sp-body p{margin:0 0 12px}
.sp-body ul,.sp-body ol{margin:0 0 12px 20px}
.sp-body a{color:var(--blue);text-decoration:underline}
.sp-body img{max-width:100%;border-radius:10px;margin:8px 0}
@media (max-width:600px){.sp-page{padding:18px 15px}.sp-title{font-size:21px}}

/* ============================================================
   WALLET PAGE
   ============================================================ */
.wl-hero{
  position:relative;overflow:hidden;
  padding:calc(var(--nav-h) + 34px) 26px 74px;
  background:linear-gradient(135deg,#221a4d 0%,#2b2260 46%,#1e1840 100%);
  color:#fff;
}
.wl-hero-in{position:relative;z-index:2;max-width:1100px;margin:0 auto}
.wl-hero h1{font-size:40px;line-height:1.1;letter-spacing:-.5px;margin-bottom:6px}
.wl-hero p{font-size:16px;opacity:.86;font-weight:600}
/* decorative wallet mark, echoing the reference banner */
.wl-hero-art{
  position:absolute;right:6%;top:50%;translate:0 -50%;
  width:190px;height:150px;border-radius:34px;
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
  z-index:1;
}
.wl-hero-art::after{
  content:'';position:absolute;right:-14px;top:52%;translate:0 -50%;
  width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.10);
}
.wl-hero::before{
  content:'';position:absolute;left:-90px;top:-120px;width:340px;height:340px;border-radius:50%;
  background:rgba(255,255,255,.045);
}

.wl-card{max-width:1100px;margin:-56px auto 26px;padding:8px 26px 26px;position:relative;z-index:3}

.wl-tabs{display:flex;justify-content:center;gap:6px;padding:12px 0 10px;border-bottom:1px solid var(--line);margin-bottom:20px}
.wl-tab{
  display:inline-flex;align-items:center;gap:9px;
  padding:10px 20px;border-radius:999px;
  color:var(--ink-3);font-weight:700;font-size:15px;
  transition:background .16s,color .16s;
}
.wl-tab svg{width:21px;height:21px}
.wl-tab:hover{color:var(--ink);background:var(--canvas)}
.wl-tab.on{background:var(--surface-2);color:var(--ink)}

.wl-sec-lbl{font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--ink-3);margin:18px 0 4px}
.wl-sec-lbl:first-child{margin-top:4px}
.wl-amount{font-size:56px;line-height:1.05;font-weight:400;letter-spacing:-1.5px;margin-bottom:6px}
.wl-note{font-size:14px;color:var(--ink-2);line-height:1.6;margin:6px 0 0;max-width:820px}

.wl-acts{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 6px}
.wl-act{
  display:inline-flex;align-items:center;gap:11px;
  padding:13px 26px;border-radius:999px;
  background:var(--surface-2);color:var(--ink);
  font-weight:600;font-size:15px;
  transition:background .16s,transform .12s,opacity .16s;
}
.wl-act:hover:not(.is-off){background:var(--canvas)}
.wl-act:active:not(.is-off){transform:scale(.97)}
.wl-act.is-off{opacity:.45;cursor:not-allowed}
.wl-act-ic{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 auto}
.wl-act-ic svg{width:20px;height:20px}
.wl-act-ic.receive{color:#38bdf8}
.wl-act-ic.add{color:#4ade80}
.wl-act-ic.affiliate{color:#f43f5e}
.wl-act-ic.points{color:#6366f1}
.wl-act-ic.market{color:#c084fc}

.wl-tx-lbl{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.wl-tx{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.wl-tx:last-child{border-bottom:none}
.wl-tx-ic{
  flex:0 0 auto;width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;
}
.wl-tx-ic.in{background:color-mix(in srgb,var(--green) 16%,transparent);color:var(--green)}
.wl-tx-ic.out{background:color-mix(in srgb,var(--heart) 16%,transparent);color:var(--heart)}
.wl-tx-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.wl-tx-tx b{font-size:14.5px}
.wl-tx-tx i{font-style:normal;font-size:12.5px;color:var(--ink-3)}
.wl-tx-amt{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.wl-tx-amt.in{color:var(--green)}
.wl-tx-amt.out{color:var(--ink)}

.wl-empty{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:56px 16px 40px;color:var(--ink-3)}
.wl-empty svg{width:64px;height:64px;opacity:.5}
.wl-empty p{font-weight:700;color:var(--ink-2);font-size:15px}

@media (max-width:700px){
  .wl-hero{padding:calc(var(--nav-h) + 26px) 16px 66px}
  .wl-hero h1{font-size:30px}
  .wl-hero p{font-size:14px}
  .wl-hero-art{width:120px;height:96px;right:-10px;border-radius:24px}
  .wl-card{margin:-50px 10px 18px;padding:6px 15px 20px}
  .wl-amount{font-size:40px}
  .wl-acts{gap:9px}
  .wl-act{padding:11px 17px;font-size:14px;flex:1 1 auto;justify-content:center}
  .wl-tab{padding:9px 15px;font-size:14px}
}
@media (prefers-reduced-motion:reduce){.wl-act{transition:none}}

/* ============================================================
   UPGRADE TO PRO
   ============================================================ */
.pro-hero{
  position:relative;overflow:hidden;padding:calc(var(--nav-h) + 32px) 26px 30px;color:#fff;
  background:linear-gradient(135deg,#3a2a7a 0%,#4b3499 48%,#2b2060 100%);
}
.pro-hero::before{content:'';position:absolute;right:-70px;top:-90px;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.06)}
.pro-hero-in{position:relative;z-index:2;max-width:1100px;margin:0 auto}
.pro-hero h1{font-size:34px;line-height:1.15;letter-spacing:-.4px;margin-bottom:5px}
.pro-hero p{opacity:.86;font-weight:600}

#pro-body{max-width:1100px;margin:0 auto;padding:18px 0 30px}

.pro-status{
  display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;
  padding:18px 22px;margin-bottom:20px;
}
.pro-status-lbl{display:block;font-size:11.5px;font-weight:700;letter-spacing:.11em;color:var(--ink-3);margin-bottom:3px}
.pro-status b{display:block;font-size:21px;line-height:1.2}
.pro-status i{font-style:normal;font-size:12.5px;color:var(--ink-3)}
.pro-status-r{text-align:right;border-radius:12px;padding:6px 10px;margin:-6px -10px;transition:background .15s}
.pro-status-r:hover{background:var(--canvas)}

.pro-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.pro-card{
  position:relative;display:flex;flex-direction:column;gap:8px;
  padding:22px 20px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
@media (hover:hover){.pro-card:hover{transform:translateY(-4px);border-color:var(--pk);box-shadow:var(--shadow)}}
.pro-card.is-current{border-color:var(--pk);box-shadow:0 0 0 1px var(--pk) inset}
.pro-card.is-current::after{
  content:'CURRENT';position:absolute;top:14px;right:14px;
  font-size:10px;font-weight:800;letter-spacing:.09em;
  background:var(--pk);color:#fff;padding:3px 8px;border-radius:999px;
}
.pro-card-ic{
  width:46px;height:46px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--pk) 16%,transparent);color:var(--pk);margin-bottom:2px;
}
.pro-card-ic svg{width:24px;height:24px}
.pro-card-ic img{width:26px;height:26px;object-fit:contain}
.pro-card-name{font-size:16px}
.pro-card-price{font-size:30px;font-weight:700;letter-spacing:-.6px;line-height:1.1}
.pro-card-price i{font-style:normal;font-size:13px;font-weight:600;color:var(--ink-3);letter-spacing:0}
.pro-card-desc{font-size:13.5px;color:var(--ink-2);line-height:1.5}
.pro-card-feat{list-style:none;margin:4px 0 6px;padding:0;display:flex;flex-direction:column;gap:6px}
.pro-card-feat li{position:relative;padding-left:20px;font-size:13.5px;color:var(--ink-2)}
.pro-card-feat li::before{content:'✓';position:absolute;left:0;color:var(--green);font-weight:800}
.pro-btn{
  margin-top:auto;width:100%;padding:11px;border-radius:11px;
  background:var(--pk);color:#fff;font-weight:700;font-size:14.5px;
  transition:filter .15s,transform .12s;
}
.pro-btn:hover{filter:brightness(1.08)}
.pro-btn:active{transform:scale(.97)}
.pro-btn.is-short{background:var(--surface-2);color:var(--ink-2)}
.pro-btn.is-current{background:transparent;color:var(--pk);box-shadow:0 0 0 1.5px var(--pk) inset}
.pro-foot{margin-top:16px;font-size:13px;color:var(--ink-3);text-align:center}

@media (max-width:700px){
  .pro-hero{padding:calc(var(--nav-h) + 24px) 16px 22px}
  .pro-hero h1{font-size:26px}
  #pro-body{padding:14px 12px 24px}
  .pro-status{padding:15px 16px}
  .pro-status-r{text-align:left}
  .pro-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.pro-card,.pro-btn{transition:none}.pro-card:hover{transform:none}}

/* ============================================================
   SETTINGS SHELL (sidebar + panel) and POINTS SYSTEM
   ============================================================ */
/* .nav is position:fixed, so every top-level view must reserve its height —
   .page-full does this with padding-top:var(--nav-h). Without it the panel
   rendered 45px underneath the nav (the sidebar only looked right because
   position:sticky happened to push it clear). */
.setx{display:grid;grid-template-columns:290px 1fr;gap:22px;max-width:1240px;margin:0 auto;padding:calc(var(--nav-h) + 20px) 18px 40px;align-items:start}
.setx-h1{font-size:30px;letter-spacing:-.4px;margin:4px 0 16px}
.setx-side{position:sticky;top:calc(var(--nav-bar) + var(--imp-h, 0px) + 14px)}
.setx-nav{display:flex;flex-direction:column;gap:2px}
.setx-item{
  display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;
  color:var(--ink);font-weight:600;font-size:15px;transition:background .15s,color .15s;
}
.setx-item:hover{background:var(--surface-2)}
.setx-item.on{background:color-mix(in srgb,var(--blue) 14%,transparent);color:var(--blue)}
.setx-item.off{color:var(--ink-3)}
.setx-ic{flex:0 0 auto;width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--surface-2)}
.setx-ic svg{width:17px;height:17px}
.setx-item.on .setx-ic{background:var(--blue);color:var(--on-accent)}
.setx-item.on .setx-ic svg{stroke:#fff;fill:none}
.setx-chev{margin-left:auto;display:flex;transition:transform .2s}
.setx-chev svg{width:15px;height:15px}
.setx-group.open .setx-chev{transform:rotate(90deg)}
.setx-sub{display:none;flex-direction:column;gap:1px;margin:2px 0 6px 34px;padding-left:12px;border-left:1px solid var(--line)}
.setx-group.open .setx-sub{display:flex}
.setx-subitem{padding:8px 10px;border-radius:9px;font-size:14px;color:var(--ink-2)}
.setx-subitem:hover{background:var(--surface-2);color:var(--ink)}
.setx-subitem.on{color:var(--blue);font-weight:700}
.setx-subitem.off{color:var(--ink-3)}

.setx-main{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px 26px;min-height:420px}
.setx-title{font-size:22px;margin-bottom:6px}
.setx-sub{color:var(--ink-2);font-size:14px;margin-bottom:18px}
.setx-lbl{display:block;font-size:11.5px;font-weight:700;letter-spacing:.12em;color:var(--ink-3);margin-bottom:6px}
.setx-soon{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:58px 20px;color:var(--ink-3)}
.setx-soon svg{width:44px;height:44px;opacity:.5}
.setx-soon h2{font-size:17px;color:var(--ink-2)}
.setx-soon p{font-size:14px;max-width:420px}
.setx-list{display:flex;flex-direction:column}
.setx-row{display:flex;align-items:center;gap:10px;padding:12px 2px;border-bottom:1px solid var(--line)}
.setx-row:last-child{border-bottom:none}
.setx-row b{font-size:14.5px}
.setx-row-m{font-size:12.5px;color:var(--ink-3)}
.setx-row-btn{margin-left:auto;padding:7px 14px;font-size:13.5px}
/* the profile editor is embedded, so drop its standalone page chrome */
.setx-main .eps{max-width:none;gap:0}
.setx-main .eps-card{background:transparent;border:none;box-shadow:none;padding:0}

/* ---------- points ---------- */
.pts-note{display:flex;gap:14px;padding:16px 18px;border-radius:14px;background:var(--surface-2);margin-bottom:20px}
.pts-note-ic{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--blue)}
.pts-note-ic svg{width:19px;height:19px}
.pts-note p{font-size:14px;line-height:1.75;color:var(--ink-2)}
.pts-note a{color:var(--blue);text-decoration:underline}
.pts-pill{display:inline-block;padding:1px 9px;border-radius:999px;font-weight:700;font-size:12.5px;color:#fff}
.pts-pill.green{background:var(--green)}
.pts-pill.amber{background:#e0a11b}

.pts-rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-bottom:26px}
.pts-rule{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:24px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.pts-rule-ic{position:relative;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--blue) 15%,transparent);color:var(--blue)}
.pts-rule-ic svg{width:22px;height:22px}
.pts-rule-ic i{
  position:absolute;right:-6px;bottom:-4px;font-style:normal;
  background:var(--blue);color:var(--on-accent);font-size:11px;font-weight:700;
  padding:2px 7px;border-radius:999px;border:2px solid var(--surface);
}
.pts-rule b{font-size:14px;font-weight:600;color:var(--ink-2);line-height:1.4}

.pts-bal{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.pts-bal-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border-radius:14px;border:1px solid var(--line)}
.pts-bal-card span{font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--ink-3)}
.pts-bal-card b{font-size:32px;letter-spacing:-.6px}
.pts-bal-card.points{background:color-mix(in srgb,var(--blue) 10%,transparent)}
.pts-bal-card.money{background:color-mix(in srgb,var(--green) 10%,transparent)}
.pts-transfer{width:100%;margin-bottom:20px}
.pts-bal+.pts-note{margin-top:4px}
.pts-tx-lbl{border-top:1px solid var(--line);padding-top:20px;margin-top:22px}
.pts-amt{margin-left:auto;font-weight:700;font-variant-numeric:tabular-nums}
.pts-amt.in{color:var(--green)}
.pts-amt.out{color:var(--ink-2)}

@media (max-width:900px){
  .setx{grid-template-columns:1fr;gap:14px;padding:calc(var(--nav-h) + 14px) 12px 30px}
  .setx-side{position:static}
  .setx-h1{font-size:24px;margin-bottom:10px}
  .setx-main{padding:18px 15px;border-radius:14px}
  .pts-bal{grid-template-columns:1fr}
  .pts-rules{grid-template-columns:1fr 1fr;gap:10px}
}
@media (max-width:520px){   /* phones: the earning rules two to a row, compact, under the balance + history */
  .pts-rules{grid-template-columns:1fr 1fr;gap:10px}
  .pts-rule{padding:16px 10px;gap:10px}
  .pts-rule b{font-size:13px}
}
.pts-reset{color:var(--ink-3);font-size:13px}

/* ============================================================
   SETTINGS · SECURITY + PRIVACY
   ============================================================ */
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.sec-head .setx-title{margin:0}
.sec-danger{display:inline-flex;align-items:center;gap:8px;background:#d9534f;color:#fff;font-weight:600;font-size:14px;padding:10px 18px;border-radius:999px;transition:filter .15s}
.sec-danger:hover{filter:brightness(1.08)}
.sec-danger:disabled{opacity:.6;cursor:not-allowed}

.sec-warn{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border-radius:14px;background:color-mix(in srgb,#e0a11b 14%,transparent);margin-bottom:22px}
.sec-warn-ic{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e0a11b;color:#1a1a1a}
.sec-warn-ic svg{width:19px;height:19px}
.sec-warn p{color:#e0a11b;font-weight:600;font-size:15px}

/* float-label field, matching the reference's filled inputs */
.sec-f{position:relative;margin-bottom:18px}
.sec-f input{width:100%;background:var(--surface-2);border:none;border-bottom:1px solid var(--line);border-radius:10px 10px 0 0;padding:26px 16px 10px;font:inherit;font-size:15px;color:var(--ink);outline:none;transition:border-color .18s,background .18s}
.sec-f input:focus{border-bottom-color:var(--blue);background:var(--canvas)}
.sec-f label{position:absolute;left:16px;top:16px;color:var(--ink-3);font-size:15px;pointer-events:none;transition:.16s}
.sec-f input:focus + label,.sec-f input:not(:placeholder-shown) + label{top:7px;font-size:11.5px;letter-spacing:.04em}
.sec-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sec-hint{font-size:13px;color:var(--ink-3);margin:-10px 0 4px}
.sec-actions{display:flex;justify-content:center;margin-top:22px}
.sec-save{padding:12px 34px;border-radius:999px;font-weight:600}
.sec-off{background:#d9534f;color:#fff;padding:12px 30px;border-radius:999px;font-weight:600}

.sec-note{display:flex;gap:14px;padding:18px 20px;border-radius:14px;background:var(--surface-2);margin-bottom:22px}
.sec-note.on{background:color-mix(in srgb,var(--green) 13%,transparent)}
.sec-note-ic{flex:0 0 auto;width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--ink-2)}
.sec-note-ic svg{width:19px;height:19px}
.sec-note b{display:block;font-size:15px;margin-bottom:2px}
.sec-note p{color:var(--ink-2);font-size:14.5px;line-height:1.5}

.sec-steps{margin:6px 0 20px 20px;display:flex;flex-direction:column;gap:8px}
.sec-steps li{font-size:15px;color:var(--ink)}
.sec-steps a{color:var(--blue)}
.sec-enrol{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;margin-bottom:8px}
.sec-enrol-t{text-align:center;font-size:15px;margin-bottom:12px}
.sec-qr{display:flex;align-items:center;justify-content:center;min-height:220px}
.sec-qr canvas{max-width:100%;height:auto;border-radius:6px}
.sec-token{display:block;background:#f0b429;color:#1a1a1a;font-weight:700;font-size:20px;letter-spacing:.06em;text-align:center;padding:14px 10px;border-radius:8px;cursor:pointer;word-break:break-all}
.sec-activate{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}

.sec-table-wrap{overflow-x:auto}
.sec-table{width:100%;border-collapse:collapse;font-size:14.5px}
.sec-table th{text-align:left;padding:12px 10px;color:var(--ink-2);font-weight:600;border-bottom:1px solid var(--line);white-space:nowrap}
.sec-table td{padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.sec-table tr:last-child td{border-bottom:none}
.sec-ip{font-variant-numeric:tabular-nums;word-break:break-all}
.sec-cur{display:inline-block;font-size:11px;font-weight:700;background:var(--blue);color:var(--on-accent);padding:2px 7px;border-radius:999px;margin-left:6px}
.sec-x{width:30px;height:30px;border-radius:50%;background:#d9534f;color:#fff;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;transition:filter .15s}
.sec-x:hover{filter:brightness(1.1)}
.sec-x:disabled{opacity:.5}

.priv-tog{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 0}
.priv-tog b{display:block;font-size:15.5px;margin-bottom:3px}
.priv-tog p{color:var(--ink-2);font-size:14px;line-height:1.5;max-width:640px}
.priv-sep{height:1px;background:var(--line);margin:10px 0 20px}
.priv-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.priv-f{position:relative;background:var(--surface-2);border-bottom:1px solid var(--line);border-radius:10px 10px 0 0;padding:9px 14px 6px}
.priv-f label{display:block;font-size:12.5px;color:var(--ink-3);margin-bottom:2px}
.priv-sel{width:100%;background:transparent;border:none;outline:none;font:inherit;font-size:16px;color:var(--ink);padding:2px 0 4px;cursor:pointer}
.priv-sel option{background:var(--surface);color:var(--ink)}

@media (max-width:760px){
  .sec-grid,.sec-enrol,.priv-grid{grid-template-columns:1fr}
  .sec-head{flex-direction:column;align-items:stretch}
  .sec-danger{justify-content:center}
}

/* ============================================================
   SETTINGS · notifications / addresses / membership / withdrawals / affiliates
   ============================================================ */
.nt-email{display:flex;gap:26px;align-items:flex-start;flex-wrap:wrap;margin-top:6px}
.nt-email-l{font-size:15.5px;font-weight:600;min-width:150px;padding-top:4px}
.nt-email-r{flex:1;min-width:260px;display:flex;flex-direction:column;gap:10px}
.nt-cb{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px}
.nt-cb input{width:18px;height:18px;accent-color:var(--blue);cursor:pointer;flex:0 0 auto}
.nt-cb-sep{height:1px;background:var(--line);margin:4px 0}

.addr-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:#4caf68;color:#fff;font-weight:600;font-size:15px;padding:13px;border-radius:999px;margin:6px 0 18px;transition:filter .15s}
.addr-add:hover{filter:brightness(1.06)}
.addr-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.addr-card{border:1px solid var(--line);border-radius:14px;padding:16px}
.addr-top{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.addr-top b{font-size:15px}
.addr-def{font-size:10px;font-weight:800;letter-spacing:.08em;background:var(--blue);color:var(--on-accent);padding:2px 7px;border-radius:999px}
.addr-del{margin-left:auto;width:28px;height:28px;border-radius:50%;color:var(--ink-3);display:flex;align-items:center;justify-content:center}
.addr-del:hover{background:var(--surface-2);color:var(--heart)}
.addr-del svg{width:15px;height:15px}
.addr-card p{font-size:14px;color:var(--ink-2);line-height:1.5}
.addr-card i{font-style:normal;font-size:13px;color:var(--ink-3)}

.mb-row{display:flex;align-items:flex-start;gap:16px;padding:11px 0;flex-wrap:wrap}
.mb-k{flex:0 0 175px;font-size:15px;color:var(--ink)}
.mb-v{flex:1;min-width:200px;display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink-2)}
.mb-bar{flex:1;height:5px;border-radius:99px;background:var(--surface-2);overflow:hidden;min-width:120px}
.mb-bar i{display:block;height:100%;background:var(--blue)}

.wd-bal{background:#4aa3c7;color:#fff;font-weight:700;padding:4px 12px;border-radius:6px;font-size:15px}
.wd-in{width:100%;background:var(--surface-2);border:none;border-bottom:1px solid var(--line);border-radius:8px 8px 0 0;padding:12px 14px;font:inherit;font-size:15px;color:var(--ink);outline:none}
.wd-in:focus{border-bottom-color:var(--blue)}
.wd-methods{gap:22px;flex-wrap:wrap}
.wd-m{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:15px;color:var(--ink)}
.wd-m input{width:17px;height:17px;accent-color:var(--blue);cursor:pointer}
.wd-status{margin-left:auto;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:3px 9px;border-radius:999px;background:var(--surface-2);color:var(--ink-2)}
.wd-status.pending{background:color-mix(in srgb,#e0a11b 22%,transparent);color:#e0a11b}
.wd-status.approved,.wd-status.paid{background:color-mix(in srgb,var(--green) 20%,transparent);color:var(--green)}
.wd-status.declined{background:color-mix(in srgb,var(--heart) 20%,transparent);color:var(--heart)}
.sec-note.info{background:color-mix(in srgb,#4a9bd9 14%,transparent)}
.sec-note.info b,.sec-note.info p{color:#5aa9e6}
.sec-note.info a{color:var(--blue);text-decoration:underline}

.aff-s{width:42px;height:42px;border-radius:9px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:17px;transition:transform .15s}
.aff-s:hover{transform:translateY(-2px)}

/* ---------- Settings › Affiliates: the "shine border" card style (a 21st.dev ShineBorder + shadcn card, ported) ----------
   .afx-main lets the cards sit on the page itself; .shb = the summary card's border, where a light scans round it (the
   component's mask sweep, blue → red → teal); .paused stops it (the card's pause button: WCAG 2.2.2); reduced motion
   gets a still gradient ring. Colours are the site's tokens, so dark mode follows. app.js renderAffiliateSettings. */
.setx-main.afx-main{background:none;border:0;padding:0;min-height:0;box-shadow:none}
.afx-title{margin:2px 0 14px}
.afx{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.afx-wide{grid-column:1 / -1}
.afx-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.afx-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 0}
.afx-hl{display:flex;align-items:center;gap:12px;min-width:0}
.afx-hl-t{min-width:0}
.afx-ic{width:40px;height:40px;border-radius:12px;background:var(--blue-soft);color:var(--blue);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.afx-ic svg{width:20px;height:20px}
.afx-ttl{font-size:14.5px;font-weight:800;color:var(--ink);line-height:1.3}
.afx-sub{font-size:12px;color:var(--ink-3);line-height:1.35;margin-top:1px}
.afx-hr{display:flex;align-items:center;gap:8px;flex-shrink:0}
.afx-bd{padding:18px 20px 20px;display:flex;flex-direction:column;gap:16px}
/* the badge: a teal pill with a pulsing dot (grey when the admins turned the program off) */
.afx-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid rgba(45,212,191,.3);background:rgba(45,212,191,.1);color:#0f8f83;font-size:12px;font-weight:800;line-height:1.5;white-space:nowrap}
.afx-dot{width:6px;height:6px;border-radius:50%;background:#2dd4bf;animation:afxPulse 2s cubic-bezier(.4,0,.6,1) infinite}
@keyframes afxPulse{50%{opacity:.5}}
.afx-badge.off{border-color:var(--line);background:var(--surface-2);color:var(--ink-3)}
.afx-badge.off .afx-dot{background:var(--ink-3);animation:none}
html[data-theme="dark"] .afx-badge:not(.off){color:#2dd4bf}
/* you */
.afx-me{display:flex;align-items:center;gap:14px;min-width:0}
.afx-av{width:56px;height:56px;border-radius:50%;object-fit:cover;flex-shrink:0;box-shadow:0 0 0 2px rgba(var(--gold-rgb),.2)}
html[data-theme="dark"] .afx-av{box-shadow:0 0 0 2px rgba(var(--gold-rgb),.28)}
.afx-me-t{display:flex;flex-direction:column;min-width:0}
.afx-me-t>b{font-size:16px;font-weight:800;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.afx-me-t>span{font-size:13.5px;color:var(--ink-3)}
.afx-me-t small{font-size:12px;color:var(--ink-3)}
.afx-me-t small b{color:var(--ink-2);font-weight:800}
/* the numbers: a 2 × 2 of soft tiles */
.afx-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.afx-tile{border-radius:10px;background:var(--surface-2);padding:11px 12px;min-width:0}
.afx-tile span{display:block;font-size:12px;color:var(--ink-3)}
.afx-tile b{display:block;font-size:15px;font-weight:800;color:var(--ink);margin-top:2px;overflow-wrap:anywhere}
/* the note: the teal "all good" strip (grey when the program is off) */
.afx-ok{display:flex;align-items:center;gap:9px;border-radius:10px;border:1px solid rgba(45,212,191,.24);background:rgba(45,212,191,.07);padding:11px 14px;color:#0f8f83}
.afx-ok p{margin:0;font-size:13.5px;font-weight:700;line-height:1.45}
.afx-ok svg{width:17px;height:17px;flex-shrink:0}
.afx-ok.off{border-color:var(--line);background:var(--surface-2);color:var(--ink-2)}
html[data-theme="dark"] .afx-ok:not(.off){color:#2dd4bf}
/* outline buttons: Withdraw earnings, Download QR, See More */
.afx-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-size:14px;font-weight:800;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}
.afx-btn:hover{background:var(--surface-2);border-color:color-mix(in srgb,var(--blue) 30%,var(--line))}
.afx-btn:disabled{opacity:.6;cursor:default}
.afx-btn svg{width:16px;height:16px;flex-shrink:0}
.afx-btn-sm{width:auto;min-height:36px;font-size:13px;align-self:flex-start}
.afx-btn[hidden]{display:none}
/* your link */
.afx-link{display:flex;align-items:center;gap:8px;border-radius:10px;background:var(--surface-2);padding:5px 5px 5px 14px}
.afx-link input{flex:1;min-width:0;border:0;background:none;color:var(--ink);font:inherit;font-size:14px;outline:none;padding:6px 0}
.afx-copy{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border:0;border-radius:8px;background:var(--blue);color:var(--on-accent);font:inherit;font-size:13px;font-weight:800;cursor:pointer;flex-shrink:0;transition:background .15s}
html[data-theme="dark"] .afx-copy{color:#06223f}
.afx-copy.ok,html[data-theme="dark"] .afx-copy.ok{background:#0f8f83;color:#fff}
.afx-copy svg{width:15px;height:15px}
.afx-qr{display:flex;align-items:center;gap:16px}
.afx-qr-img{width:132px;height:132px;flex-shrink:0;border-radius:12px;background:#fff;border:1px solid var(--line);padding:6px;display:flex;align-items:center;justify-content:center}
.afx-qr-img img{width:100%;height:100%;display:block}
.afx-qr-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.afx-qr-t>b{font-size:14px;font-weight:800;color:var(--ink)}
.afx-qr-t>span{font-size:12.5px;color:var(--ink-3);margin-bottom:6px}
.afx-lbl{font-size:12px;font-weight:700;color:var(--ink-3);margin-bottom:8px}
.afx-share{display:flex;flex-wrap:wrap;gap:8px}
.afx-share .aff-s{width:40px;height:40px;border-radius:12px;font-size:16px}
/* the people you referred */
.afx-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 9px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:12.5px;font-weight:800;flex-shrink:0}
.afx-list{display:flex;flex-direction:column}
.afx-row{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--line);min-width:0}
.afx-row:last-child{border-bottom:0}
.afx-row-av{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}
.afx-row-t{display:flex;flex-direction:column;min-width:0}
.afx-row-t b{font-size:14px;font-weight:800;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.afx-row-t span{font-size:12.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.afx-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:14px 8px 6px;color:var(--ink-3);font-size:13px}
.afx-empty b{color:var(--ink);font-size:15px}
/* the shine border: a 2px ring round the summary card, where a light scans */
.shb{position:relative;border-radius:18px;overflow:hidden;padding:2px;border:1px solid var(--line);box-shadow:var(--shadow);isolation:isolate}
.shb-scan{position:absolute;inset:0;pointer-events:none;z-index:0}
.shb-scan::before{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,#3b82f6,#ef4444,#2dd4bf);opacity:.9;filter:blur(4px);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 15%,#000 25%,transparent 40%);mask-image:linear-gradient(to bottom,transparent 0%,#000 15%,#000 25%,transparent 40%);
  -webkit-mask-size:100% 300%;mask-size:100% 300%;animation:shbScan 3s linear infinite}
@keyframes shbScan{0%{-webkit-mask-position:0% -100%;mask-position:0% -100%}100%{-webkit-mask-position:0% 200%;mask-position:0% 200%}}
.shb.paused .shb-scan::before,.shb.paused .afx-dot{animation-play-state:paused}   /* the pause button stills both */
.shb-in{position:relative;z-index:1;border:0;border-radius:16px;box-shadow:none;height:100%}
.shb-pause{width:28px;height:28px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink-3);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;padding:0}
.shb-pause:hover{color:var(--ink);background:var(--surface-2)}
.shb-pause svg{width:12px;height:12px}
@media (prefers-reduced-motion:reduce){
  /* a still ring instead of the scan (the global .01 ms rule would flicker it); nothing to pause */
  .shb-scan::before{animation:none!important;-webkit-mask-image:none;mask-image:none;opacity:.45}
  .afx-dot{animation:none!important}
  .shb-pause{display:none}
}
@media (max-width:900px){ .afx{grid-template-columns:minmax(0,1fr)} }
@media (max-width:680px){
  .afx{gap:14px}
  .afx-hd{padding:16px 16px 0}
  .afx-bd{padding:16px}
  .afx-qr-img{width:112px;height:112px}
}

@media (max-width:760px){
  .mb-k{flex:0 0 100%}
  .nt-email-l{min-width:100%}
}

/* ---------- Verification ---------- */
.ver-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:6px}
.ver-lbl{font-size:16px;margin-bottom:10px}
.ver-drop{
  position:relative;width:100%;aspect-ratio:16/9;border-radius:10px;
  border:2px dashed var(--line);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;overflow:hidden;
  color:var(--ink-3);transition:border-color .18s,background .18s;
}
.ver-drop:hover{border-color:var(--blue);background:var(--canvas)}
.ver-drop svg{width:38px;height:38px}
.ver-drop i{position:absolute;inset:0;background-size:cover;background-position:center;display:none}
.ver-drop.has i{display:block}
.ver-drop.has span{display:none}
.ver-drop.has{border-style:solid;border-color:var(--green)}
.ver-hint{font-size:15px;color:var(--ink-2);margin:12px 0 20px}
.ver-info textarea{
  width:100%;background:var(--surface-2);border:none;border-bottom:1px solid var(--line);
  border-radius:10px 10px 0 0;padding:26px 16px 10px;font:inherit;font-size:15px;color:var(--ink);
  outline:none;resize:vertical;transition:border-color .18s;
}
.ver-info textarea:focus{border-bottom-color:var(--blue)}
.ver-info label{position:absolute;left:16px;top:16px;color:var(--ink-3);font-size:15px;pointer-events:none;transition:.16s}
.ver-info textarea:focus + label,.ver-info textarea:not(:placeholder-shown) + label{top:7px;font-size:11.5px}

.ver-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:44px 20px 50px}
.ver-badge{
  width:110px;height:110px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:3px solid color-mix(in srgb,var(--green) 45%,transparent);
  color:var(--green);
}
.ver-badge svg{width:62px;height:62px}
.ver-badge.pending{border-color:color-mix(in srgb,#e0a11b 45%,transparent);color:#e0a11b}
.ver-badge.pending svg{width:46px;height:46px}
.ver-done h3{font-size:28px;font-weight:400;letter-spacing:-.3px}
.ver-done p{color:var(--ink-2);font-size:15.5px}
@media (max-width:600px){.ver-grid{grid-template-columns:1fr}}

/* ---------- Account Settings ---------- */
.acc-warn{
  display:flex;flex-direction:column;gap:12px;align-items:flex-start;
  padding:20px;border-radius:14px;margin-bottom:20px;
  background:color-mix(in srgb,var(--heart) 13%,transparent);
}
.acc-warn-ic{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#d9534f;color:#fff}
.acc-warn-ic svg{width:19px;height:19px}
.acc-warn p{color:#e5675f;font-size:15px;line-height:1.6}
.acc-warn p b{font-weight:700}
.acc-resend{background:#4caf68;color:#fff;font-weight:600;font-size:14.5px;padding:11px 22px;border-radius:999px;transition:filter .15s}
.acc-resend:hover{filter:brightness(1.07)}
.acc-resend:disabled{opacity:.6;cursor:not-allowed}

/* ---------- Admin top bar (Dashboard lives here, not in the sidebar) ---------- */
.admin-top{
  display:flex;align-items:center;gap:26px;flex-wrap:wrap;
  max-width:1280px;margin:0 auto;padding:16px 16px 0;
}
.admin-top-title{display:flex;align-items:center;gap:9px;font-weight:800;font-size:17px;letter-spacing:-.2px}
.admin-top-title svg{width:20px;height:20px;color:var(--blue)}
.admin-top-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.admin-top-link{
  display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:10px;
  color:var(--ink-2);font-weight:600;font-size:14.5px;
  transition:background .15s,color .15s;
}
.admin-top-link svg{width:18px;height:18px}
.admin-top-link:hover{background:var(--surface-2);color:var(--ink)}
.admin-top-link.active{background:var(--blue);color:var(--on-accent)}
.admin-top-link.active svg{stroke:#fff;fill:none}
/* the sidebar no longer carries the panel title, so start it level with the content */
.admin-side .admin-grp:first-child{margin-top:0}
@media (max-width:700px){
  .admin-top{padding:12px 12px 0;gap:14px}
  .admin-top-title{font-size:15.5px}
}

/* ---------- Admin → Staff: staff members, roles & permissions ---------- */
.admin-top-role{font-size:12px;font-weight:800;color:var(--blue);background:var(--blue-soft);padding:3px 10px;border-radius:999px;letter-spacing:0;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
/* where the panel title sits in the narrow sidebar, the role chip gets its own line under it */
.admin-side-title{flex-wrap:wrap;row-gap:6px}
.admin-side-title>span:not(.admin-top-role){white-space:nowrap}
.admin-side-title .admin-top-role{margin-left:29px;max-width:calc(100% - 29px)}
.ad-badge-staff{background:rgba(108,99,255,.14);color:#6c63ff}
.ul-role{margin-left:8px;font-size:11px;padding:2px 8px;vertical-align:middle}
.ad-lock{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;color:var(--ink-3);cursor:help}
.ad-lock svg{width:16px;height:16px}
.stf-sub{margin:3px 0 0;color:var(--ink-3);font-size:13.5px;max-width:580px}
.stf-note{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px dashed var(--line);border-radius:12px;margin-bottom:16px;background:var(--surface-2);flex-wrap:wrap}
.stf-note>svg{width:26px;height:26px;color:#6c63ff;flex:0 0 auto}
.stf-note>div{flex:1;min-width:200px}
.stf-note b{display:block}
.stf-note span{color:var(--ink-3);font-size:13.5px}
.stf-dt .ad-user span{white-space:normal;word-break:break-word}
.stf-dt td{vertical-align:middle}
.stf-acc{width:auto;min-width:170px;max-width:240px;padding:8px 12px}
.stf-you{font-size:12px;font-weight:700;color:var(--ink-3);margin-left:8px}
.stf-foot{color:var(--ink-3);font-size:13px;margin:12px 2px 0}
.stf-desc{color:var(--ink-3);font-size:13px;margin-top:3px;max-width:360px}
.stf-chips{display:flex;flex-wrap:wrap;gap:6px;max-width:440px}
.stf-chip{font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--canvas);color:var(--ink-2);white-space:nowrap}
.stf-chip.more{background:var(--blue-soft);color:var(--blue)}
.stf-count{color:var(--ink-3);font-size:12px;margin-top:6px}
.stf-link{color:var(--blue);font-weight:700}
/* Add Staff modal */
.stf-seg{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--canvas);margin-bottom:6px}
.stf-seg button{flex:1;border:0;background:transparent;padding:9px 10px;border-radius:9px;font:700 14px var(--font);color:var(--ink-2);cursor:pointer}
.stf-seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.14)}
.stf-lbl{display:block;font-weight:700;font-size:13.5px;margin:14px 0 6px}
.stf-lbl i{font-style:normal;font-weight:600;color:var(--ink-3);margin-left:4px}
.stf-hint{color:var(--ink-3);font-size:13px;margin:8px 0 0;line-height:1.45}
.stf-results{margin-top:8px;max-height:250px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
.stf-res{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:8px 10px;border-radius:10px;border:1.5px solid transparent;background:transparent;cursor:pointer;color:var(--ink);font-family:var(--font)}
.stf-res:hover{background:var(--surface-2)}
.stf-res.on{border-color:var(--blue);background:var(--blue-soft)}
.stf-res img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:var(--blue-soft)}
.stf-res span{flex:1;min-width:0}
.stf-res b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stf-res i{display:block;font-style:normal;font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stf-res svg{width:18px;height:18px;color:var(--blue);flex:0 0 auto}
.stf-btns{margin-top:20px}
/* role editor */
.stf-form{max-width:1000px}
.stf-field{display:grid;grid-template-columns:170px minmax(0,1fr);gap:8px 18px;align-items:center;padding:8px 0}
.stf-field>label{font-weight:700;font-size:14.5px}
.stf-mhead{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.stf-mhead .perm-shead{margin:0;padding:0;border:0}
.stf-mtools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stf-mtools span{font-size:13px;font-weight:700;color:var(--ink-3);margin-right:4px}
.stf-mtools .btn{padding:7px 14px;font-size:13px}
/* masonry-style columns: short groups don't leave holes under them */
.stf-groups{columns:3 280px;column-gap:14px;margin-top:14px}
.stf-grp{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;margin:0 0 14px;break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid}
.stf-grp-h{display:flex;align-items:center;gap:8px;padding:11px 14px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.stf-grp-h b{font-weight:800;font-size:14px}
.stf-grp-n{font-size:12px;font-weight:700;color:var(--ink-3)}
.stf-grp-all{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--ink-2);cursor:pointer}
.stf-grp-all input{width:16px;height:16px;accent-color:#6c63ff;cursor:pointer;margin:0}
.stf-mod{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);cursor:pointer}
.stf-mod:last-child{border-bottom:0}
.stf-mod:hover{background:rgba(127,127,127,.06)}
.stf-mod-tx{min-width:0}
.stf-mod-tx b{display:block;font-size:14.5px;font-weight:700}
.stf-mod-tx i{display:block;font-style:normal;font-size:12.5px;color:var(--ink-3);margin-top:1px}
.stf-mod .perm-sw{width:42px;height:24px}
.stf-mod .perm-sw::after{width:18px;height:18px}
.stf-mod .perm-switch input:checked + .perm-sw::after{transform:translateX(18px)}
.stf-savebar{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;padding:14px 0 2px;background:var(--surface);border-top:1px solid var(--line);z-index:3}
.stf-savebar-sp{flex:1}
@media (max-width:700px){
  .stf-field{grid-template-columns:1fr;gap:6px}
  /* staff + roles tables become stacked cards: name, then access/modules, then when/who + actions */
  .stf-dt{display:block;min-width:0;width:100%}
  .stf-dt thead{display:none}
  .stf-dt tbody{display:block}
  .stf-dt tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px;padding:14px;border-bottom:1px solid var(--line)}
  .stf-dt tbody tr:last-child{border-bottom:0}
  .stf-dt td{display:block;padding:0;border:0;min-width:0}
  .stf-dt td:nth-child(1),.stf-dt td:nth-child(2),.stf-dt td.aue-dt-empty{grid-column:1/-1}
  .stf-dt .aue-dt-actc{width:auto}
  .stf-dt .stf-acc{width:100%;max-width:none}
  .stf-when[data-label]::before{content:attr(data-label) ': ';color:var(--ink-3);font-weight:600}
  .stf-savebar{position:static}
  .stf-savebar .btn{flex:1 1 auto;justify-content:center}
  .stf-savebar-sp{display:none}
}

/* ---------- Telegram sign-ups without a real name: the alert + the Basic Settings notice ---------- */
.nmq{text-align:center;padding:2px 2px 0}
.nmq-ic{width:58px;height:58px;margin:0 auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue)}
.nmq-ic svg{width:28px;height:28px}
.nmq p{color:var(--ink-2);font-size:15px;line-height:1.55;margin:0 0 18px}
.nmq p b{color:var(--ink)}
.nmq-go{width:100%;padding:12px 18px;font-size:15px}
.eps-need-name{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;margin:0 0 18px;border-radius:12px;background:var(--blue-soft);border:1px solid rgba(var(--gold-rgb),.28)}
.eps-need-name>svg{width:22px;height:22px;flex:0 0 auto;color:var(--blue);margin-top:1px}
.eps-need-name b{display:block;font-weight:800;color:var(--ink)}
.eps-need-name span{display:block;color:var(--ink-2);font-size:13.5px;margin-top:2px;line-height:1.45}
.eps-in.eps-in-need{border-bottom-color:var(--blue);box-shadow:0 0 0 3px rgba(var(--gold-rgb),.2)}

/* ---------- Settings on phones: "island" nav (native port of the morphing island navbar) ---------- */
.sxi{display:none}
@media (max-width:900px){
  .setx-side .setx-nav{display:none}                      /* the vertical menu becomes the bar below */
  .setx-h1{margin-bottom:0}
  .setx{grid-template-columns:minmax(0,1fr)}               /* the long pill row must not widen the page */
  .sxi{display:block;position:sticky;top:var(--nav-h);z-index:60;min-width:0;padding-top:8px;
    background:linear-gradient(var(--canvas) 0 8px,transparent 8px)}   /* page-coloured strip under the header: nothing scrolls by above the bar */
  .sxi-bar{position:relative;padding:5px;border-radius:999px;
    background:color-mix(in srgb,var(--surface) 84%,transparent);
    -webkit-backdrop-filter:saturate(170%) blur(18px);backdrop-filter:saturate(170%) blur(18px);
    border:1px solid color-mix(in srgb,var(--line) 90%,transparent);
    box-shadow:0 8px 30px rgba(18,17,25,.07)}
  html[data-theme="dark"] .sxi-bar{box-shadow:0 8px 32px rgba(0,0,0,.45)}
  .sxi-track{position:relative;display:flex;gap:2px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;border-radius:999px;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34px,#000 calc(100% - 34px),transparent 100%);
            mask-image:linear-gradient(90deg,transparent 0,#000 34px,#000 calc(100% - 34px),transparent 100%)}
  .sxi.at-start .sxi-track{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 34px),transparent 100%);mask-image:linear-gradient(90deg,#000 calc(100% - 34px),transparent 100%)}
  .sxi.at-end .sxi-track{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 34px);mask-image:linear-gradient(90deg,transparent 0,#000 34px)}
  .sxi.at-start.at-end .sxi-track{-webkit-mask-image:none;mask-image:none}
  .sxi-track::-webkit-scrollbar{display:none}
  .sxi-item{position:relative;z-index:1;flex:0 0 auto;scroll-snap-align:center;display:inline-flex;align-items:center;gap:7px;
    padding:6px 13px 6px 6px;border:0;border-radius:999px;background:none;color:var(--ink-2);
    font:600 13.5px/1.2 var(--font);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;
    transition:color .2s,transform .15s}
  .sxi-item:active{transform:scale(.96)}
  .sxi-item.on,.sxi-item.open{color:var(--ink)}
  .sxi-item:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
  .sxi-ic{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    background:var(--surface-2);color:var(--ink-2);transition:background .2s,color .2s}
  .sxi-ic svg{width:14px;height:14px}
  .sxi-item.on .sxi-ic{background:var(--blue);color:var(--on-accent)}
  .sxi-chev{display:flex;margin-left:-2px;color:var(--ink-3);transition:transform .25s ease,color .2s}
  .sxi-chev svg{width:13px;height:13px}
  .sxi-item.open .sxi-chev{transform:rotate(180deg);color:var(--ink)}
  /* the sliding pill behind the current section (framer-motion layoutId → a spring-ish transition) */
  .sxi-pill{position:absolute;left:0;top:0;bottom:0;z-index:0;border-radius:999px;opacity:0;pointer-events:none;
    background:color-mix(in srgb,var(--blue) 14%,transparent);
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 22%,transparent);
    transition:transform .5s cubic-bezier(.34,1.3,.5,1),width .5s cubic-bezier(.34,1.3,.5,1),opacity .2s}
  .sxi-pill.no-anim{transition:none}
  /* carousel arrows, over the faded ends */
  .sxi-arrow{position:absolute;top:50%;z-index:2;width:30px;height:30px;margin-top:-15px;border:0;border-radius:50%;padding:0;
    display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink-2);
    background:var(--surface);box-shadow:0 1px 6px rgba(18,17,25,.14);transition:opacity .2s}
  .sxi-arrow svg{width:15px;height:15px}
  .sxi-arrow.prev{left:5px}
  .sxi-arrow.prev svg{transform:rotate(180deg)}
  .sxi-arrow.next{right:5px}
  .sxi.at-start .sxi-arrow.prev,.sxi.at-end .sxi-arrow.next{opacity:0;pointer-events:none}
  /* the panel under the bar: rises in, then morphs (height + content) between sections */
  .sxi-drop{position:absolute;left:0;right:0;top:calc(100% + 8px);overflow:hidden;border-radius:22px;
    background:color-mix(in srgb,var(--surface) 96%,transparent);
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid var(--line);
    box-shadow:0 24px 50px -12px rgba(18,17,25,.2),0 0 0 1px rgba(18,17,25,.03);
    opacity:0;transform:translateY(10px) scale(.98);transform-origin:50% 0;
    transition:height .45s cubic-bezier(.32,1.2,.42,1),opacity .2s ease,transform .35s cubic-bezier(.32,1.25,.42,1)}
  html[data-theme="dark"] .sxi-drop{box-shadow:0 30px 70px -15px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.04)}
  .sxi-drop.show{opacity:1;transform:none}
  .sxi-drop-in{padding:14px 10px 10px;max-height:calc(100dvh - var(--nav-h) - 170px);overflow-y:auto;overscroll-behavior:contain}
  .sxi-drop-in.swap{animation:sxi-swap .3s ease}
  .sxi-dh{padding:0 8px 8px}
  .sxi-dk{margin:0;font:700 11px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
  .sxi-ds{margin:3px 0 0;font-size:12.5px;color:var(--ink-2)}
  .sxi-dl{display:flex;flex-direction:column;gap:2px}
  .sxi-di{display:flex;align-items:center;gap:12px;padding:9px 8px;border-radius:16px;color:var(--ink);text-decoration:none;
    -webkit-tap-highlight-color:transparent;transition:background .15s}
  .sxi-di:active,.sxi-di:hover{background:var(--surface-2)}
  .sxi-di.on{background:color-mix(in srgb,var(--blue) 10%,transparent)}
  .sxi-di.off{opacity:.55;cursor:default}
  .sxi-di-ic{flex:0 0 auto;width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2)}
  .sxi-di-ic svg{width:17px;height:17px}
  .sxi-di.on .sxi-di-ic{background:var(--blue);border-color:var(--blue);color:var(--on-accent)}
  .sxi-di-tx{flex:1;min-width:0}
  .sxi-di-tx b{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700}
  .sxi-di-tx>span{display:block;margin-top:1px;font-size:12.5px;color:var(--ink-3)}
  .sxi-tag{font-style:normal;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue)}
  .sxi-di-go{display:flex;color:var(--ink-3);opacity:.6;transition:transform .2s,opacity .2s}
  .sxi-di-go svg{width:15px;height:15px}
  .sxi-di.on .sxi-di-go{opacity:1;color:var(--blue)}
}
@keyframes sxi-swap{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){
  .sxi-pill,.sxi-drop,.sxi-chev,.sxi-item,.sxi-arrow,.sxi-di-go{transition:none}
  .sxi-drop-in.swap{animation:none}
}

/* ---------- Settings search (phones): a field above the pill bar ---------- */
.sxs{display:none}
@media (max-width:900px){
  .sxs{display:block;position:relative;z-index:70;min-width:0}
  .sxs-box{display:flex;align-items:center;gap:8px;height:46px;padding:0 6px 0 15px;border-radius:999px;cursor:text;
    background:color-mix(in srgb,var(--surface) 84%,transparent);border:1px solid color-mix(in srgb,var(--line) 90%,transparent);
    box-shadow:0 6px 22px rgba(18,17,25,.05);transition:border-color .15s,box-shadow .15s}
  .sxs-box:focus-within,.sxs.open .sxs-box{border-color:color-mix(in srgb,var(--blue) 55%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 18%,transparent)}
  .sxs-ic{display:flex;color:var(--ink-3)}
  .sxs-ic svg{width:18px;height:18px}
  .sxs-in{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;color:var(--ink);font:500 16px var(--font);-webkit-appearance:none;appearance:none}   /* 16px: iOS doesn't zoom in */
  .sxs-in::placeholder{color:var(--ink-3)}
  .sxs-in::-webkit-search-cancel-button,.sxs-in::-webkit-search-decoration{-webkit-appearance:none;display:none}
  .sxs-clear{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--surface-2);color:var(--ink-2);cursor:pointer}
  .sxs-clear svg{width:14px;height:14px}
  .sxs-clear[hidden]{display:none}   /* display:flex above would otherwise beat [hidden] */
  .sxs-pop{position:absolute;left:0;right:0;top:calc(100% + 8px);overflow:hidden;border-radius:20px;
    background:color-mix(in srgb,var(--surface) 97%,transparent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
    border:1px solid var(--line);box-shadow:0 24px 50px -12px rgba(18,17,25,.22);animation:sxs-pop .22s cubic-bezier(.32,1.25,.42,1)}
  html[data-theme="dark"] .sxs-pop{box-shadow:0 30px 70px -15px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.04)}
  .sxs-list{padding:8px;max-height:min(58vh,440px);overflow-y:auto;overscroll-behavior:contain}
  .sxs-h{margin:3px 8px 6px;font:700 11px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
  .sxs-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 8px;border:0;border-radius:14px;background:none;text-align:left;
    color:var(--ink);font-family:var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent}
  .sxs-row.on,.sxs-row:active{background:var(--surface-2)}
  .sxs-row-ic{flex:0 0 auto;width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;
    border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2)}
  .sxs-row-ic svg{width:16px;height:16px}
  .sxs-row-tx{flex:1;min-width:0}
  .sxs-row-tx b{display:block;font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sxs-row-tx b mark{background:color-mix(in srgb,var(--blue) 24%,transparent);color:inherit;border-radius:4px;padding:0 1px}
  .sxs-row-tx>span{display:block;margin-top:1px;font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sxs-none{padding:16px 10px;text-align:center}
  .sxs-none b{display:block;font-size:14.5px}
  .sxs-none span{display:block;margin-top:3px;font-size:13px;color:var(--ink-3)}
}
@keyframes sxs-pop{from{opacity:0;transform:translateY(6px) scale(.98)}}
/* a setting opened from the search glows for a moment */
.sxs-hit{border-radius:12px;animation:sxs-hit 2.2s ease}
@keyframes sxs-hit{0%,100%{box-shadow:0 0 0 0 transparent}15%,65%{box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 55%,transparent);background-color:color-mix(in srgb,var(--blue) 9%,transparent)}}
@media (prefers-reduced-motion:reduce){.sxs-pop{animation:none}.sxs-hit{animation:none;outline:3px solid var(--blue);outline-offset:2px}}

/* ---------- Admin on phones: the "notch" nav (native port of the adaptive notch navigation bar) ---------- */
.anx,.anx-back{display:none}
@media (max-width:760px){
  .admin-side,.admin-top{display:none}                    /* the notch carries the menu (and the Dashboard link) */
  .admin-wrap{padding-top:70px}                            /* room under the notch */
  /* the notch: inverted colours, hanging from the header, flared into it by the two wings */
  .anx{display:flex;flex-direction:column;position:fixed;z-index:101;top:calc(var(--nav-h) - 1px);left:50%;transform:translateX(-50%);
    width:min(380px,calc(100vw - 44px));padding:0 8px;border-radius:0 0 24px 24px;background:var(--ink);color:var(--canvas);
    box-shadow:0 14px 34px -12px rgba(0,0,0,.4)}
  .anx-wing{position:absolute;top:0;width:14px;height:14px;color:var(--ink);overflow:visible;pointer-events:none}
  .anx-wl{right:100%}
  .anx-wr{left:100%}
  .anx-bar{display:flex;align-items:center;gap:8px;height:46px}
  .anx-logo,.anx-home{flex:0 0 auto;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:var(--canvas)}
  .anx-logo{border-radius:9px;background:color-mix(in srgb,var(--canvas) 14%,var(--ink))}
  .anx-home{border-radius:50%;color:color-mix(in srgb,var(--canvas) 62%,var(--ink));-webkit-tap-highlight-color:transparent}
  .anx-home:active{background:color-mix(in srgb,var(--canvas) 10%,var(--ink))}
  .anx-logo svg,.anx-home svg{width:16px;height:16px}
  .anx-trigger{flex:1;min-width:0;height:34px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:0;border-radius:999px;
    background:none;color:var(--canvas);font:700 13.5px/1 var(--font);cursor:pointer;-webkit-tap-highlight-color:transparent}
  .anx-trigger:active,.anx.open .anx-trigger{background:color-mix(in srgb,var(--canvas) 10%,var(--ink))}
  .anx-tic{display:flex;flex:0 0 auto;color:color-mix(in srgb,var(--canvas) 62%,var(--ink))}
  .anx-tic svg{width:16px;height:16px}
  .anx-cur{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .anx-tchev{display:flex;flex:0 0 auto;color:color-mix(in srgb,var(--canvas) 62%,var(--ink));transition:transform .2s ease}
  .anx-tchev svg{width:14px;height:14px}
  .anx.open .anx-tchev{transform:rotate(180deg)}
  .anx-trigger:focus-visible,.anx-row:focus-visible,.anx-si:focus-visible,.anx-home:focus-visible{outline:2px solid color-mix(in srgb,var(--canvas) 60%,var(--ink));outline-offset:1px}
  /* the drawer opens by growing its grid row 0fr → 1fr */
  .anx-drawer{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s ease-out,opacity .2s ease-out}
  .anx.open .anx-drawer{grid-template-rows:1fr;opacity:1}
  .anx-in{min-height:0;overflow:hidden}
  .anx-list{max-height:calc(100dvh - var(--nav-h) - 150px);overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 12px;scrollbar-width:none}
  .anx-list::-webkit-scrollbar{display:none}
  .anx-grp{margin:12px 10px 4px;font:700 10.5px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.09em;text-transform:uppercase;
    color:color-mix(in srgb,var(--canvas) 48%,var(--ink))}
  .anx-role{display:flex;align-items:center;gap:7px;margin:6px 10px 0;font-size:12px;font-weight:700;color:color-mix(in srgb,var(--canvas) 72%,var(--ink))}
  .anx-role svg{width:13px;height:13px}
  .anx-row,.anx-si{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:12px;background:none;text-align:left;
    color:color-mix(in srgb,var(--canvas) 70%,var(--ink));font:600 14px/1.25 var(--font);text-decoration:none;cursor:pointer;
    -webkit-tap-highlight-color:transparent;transition:background .15s,color .15s}
  .anx-row:active,.anx-si:active{background:color-mix(in srgb,var(--canvas) 8%,var(--ink))}
  .anx-row.on,.anx-si.on{background:color-mix(in srgb,var(--canvas) 16%,var(--ink));color:var(--canvas);font-weight:700}
  .anx-row.cur{color:var(--canvas)}
  .anx-ic{flex:0 0 auto;width:18px;display:flex;justify-content:center}
  .anx-ic svg{width:17px;height:17px}
  .anx-lbl{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .anx-ck,.anx-chev{flex:0 0 auto;display:flex}
  .anx-ck svg,.anx-chev svg{width:14px;height:14px}
  .anx-chev{color:color-mix(in srgb,var(--canvas) 50%,var(--ink));transition:transform .2s ease}
  .anx-sub.open .anx-chev{transform:rotate(180deg)}
  .anx-subs{display:grid;grid-template-rows:0fr;transition:grid-template-rows .22s ease-out}
  .anx-sub.open .anx-subs{grid-template-rows:1fr}
  .anx-subs-in{min-height:0;overflow:hidden;margin-left:19px;padding-left:9px;border-left:1px solid color-mix(in srgb,var(--canvas) 16%,var(--ink))}
  .anx-si{padding:7px 10px;font-size:13.5px}
  /* the page dims while the drawer is open; a tap on it closes the drawer */
  .anx-back{display:block;position:fixed;inset:0;z-index:99;background:rgba(0,0,0,.25);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
    opacity:0;pointer-events:none;transition:opacity .2s ease-out}
  html[data-theme="dark"] .anx-back{background:rgba(0,0,0,.45)}
  .anx-back.on{opacity:1;pointer-events:auto}
}
@media (prefers-reduced-motion:reduce){.anx-drawer,.anx-subs,.anx-tchev,.anx-chev,.anx-back{transition:none}}

/* ---------- Admin on phones: the search button + field in the notch ---------- */
@media (max-width:760px){
  .anx-sbtn{flex:0 0 auto;width:30px;height:30px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:50%;
    background:none;color:color-mix(in srgb,var(--canvas) 62%,var(--ink));cursor:pointer;-webkit-tap-highlight-color:transparent}
  .anx-sbtn:active,.anx.searching .anx-sbtn{background:color-mix(in srgb,var(--canvas) 10%,var(--ink));color:var(--canvas)}
  .anx-sbtn:focus-visible{outline:2px solid color-mix(in srgb,var(--canvas) 60%,var(--ink));outline-offset:1px}
  .anx-sbtn svg{width:17px;height:17px}
  .anx-sbtn svg+svg,.anx.searching .anx-sbtn svg:first-child{display:none}
  .anx.searching .anx-sbtn svg+svg{display:block}
  .anx-q{display:none;flex:1;min-width:0;height:34px;align-items:center;padding:0 14px;border-radius:999px;background:color-mix(in srgb,var(--canvas) 12%,var(--ink))}
  .anx.searching .anx-q{display:flex}
  .anx.searching .anx-trigger,.anx.searching .anx-home,.anx.searching .anx-role{display:none}
  .anx-qin{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:none;color:var(--canvas);font:500 16px var(--font);-webkit-appearance:none;appearance:none}   /* 16px: iOS doesn't zoom in */
  .anx-qin::placeholder{color:color-mix(in srgb,var(--canvas) 50%,var(--ink))}
  .anx-qin::-webkit-search-cancel-button,.anx-qin::-webkit-search-decoration{-webkit-appearance:none;display:none}
  .anx-res{max-height:calc(100dvh - var(--nav-h) - 150px);overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 12px;scrollbar-width:none}
  .anx-res::-webkit-scrollbar{display:none}
  .anx-res[hidden],.anx-list[hidden]{display:none}
  .anx-hit.kb{background:color-mix(in srgb,var(--canvas) 12%,var(--ink))}
  .anx-rt{flex:1;min-width:0}
  .anx-rt b{display:block;font-size:14px;font-weight:700;color:var(--canvas);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .anx-rt b mark{background:color-mix(in srgb,var(--blue) 45%,transparent);color:inherit;border-radius:4px;padding:0 1px}
  .anx-rt i{display:block;margin-top:1px;font-style:normal;font-size:12px;font-weight:600;color:color-mix(in srgb,var(--canvas) 55%,var(--ink));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .anx-none{margin:14px 10px;text-align:center}
  .anx-none b{display:block;font-size:14px;color:var(--canvas)}
  .anx-none span{display:block;margin-top:3px;font-size:12.5px;color:color-mix(in srgb,var(--canvas) 55%,var(--ink))}
}

/* ---------- Admin inbox badges, Verification Requests, Support Center, Payment Requests ---------- */
@media(min-width:681px){#alert-stack{left:20px;right:auto}}   /* live-alert pop-ups: bottom-left on desktop, clear of the floating + button */
.admin-side [data-badge]::after,#anx [data-badge]::after{content:attr(data-badge);flex:0 0 auto;min-width:19px;height:19px;padding:0 6px;box-sizing:border-box;border-radius:10px;background:#e11d48;color:#fff;font-size:11px;font-weight:800;line-height:19px;text-align:center;margin-left:auto}
.admin-sublink[data-badge]{display:flex;align-items:center;gap:8px}
.admin-sub-sum[data-badge]::after{order:1}
.admin-sub-sum[data-badge] .admin-sub-arr{order:2;margin-left:6px}
.admin-sub[open]>.admin-sub-sum[data-badge]::after{display:none}
#anx .anx-has[data-badge]::after{order:1;margin-left:0}
#anx .anx-has .anx-chev{order:2}
#anx .anx-sub.open>.anx-has[data-badge]::after{display:none}
#anx .anx-logo.has-inbox{position:relative}
#anx .anx-logo.has-inbox::after{content:'';position:absolute;top:-3px;right:-3px;width:10px;height:10px;border-radius:50%;background:#e11d48;box-shadow:0 0 0 2px var(--ink)}
.hub-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 16px}
.hub-tab{padding:7px 14px;border-radius:999px;background:var(--canvas);color:var(--ink-2);font-weight:700;font-size:13.5px}
.hub-tab span{display:inline-block;min-width:20px;padding:0 6px;margin-left:4px;border-radius:9px;background:var(--surface);color:var(--ink-3);font-size:11.5px;line-height:18px;text-align:center}
.hub-tab.on{background:var(--blue);color:var(--on-accent,#fff)}
.hub-tab.on span{background:rgba(255,255,255,.22);color:inherit}
.hub-search{display:flex;align-items:center;gap:8px;max-width:420px;margin:0 0 14px;position:relative}
.hub-search svg{position:absolute;left:12px;width:16px;height:16px;color:var(--ink-3);pointer-events:none}
.hub-search .set-input{padding-left:36px;width:100%}
.hub-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:44px 16px;color:var(--ink-3);text-align:center}
.hub-empty svg{width:40px;height:40px;opacity:.55}
.hub-empty p{margin:0;font-weight:600}
.hub-ini{display:inline-flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue);font-weight:800}
.hub-user{display:flex;align-items:center;gap:10px;min-width:0;color:var(--ink);text-decoration:none}
.hub-user img,.hub-user .hub-ini{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.hub-user span{display:flex;flex-direction:column;min-width:0}
.hub-user b{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-user i{font-style:normal;color:var(--ink-3);font-size:12.5px}
.hub-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.hub-card{border:1px solid var(--line);border-radius:var(--r);padding:14px;background:var(--surface);display:flex;flex-direction:column;gap:10px;min-width:0}
.hub-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hub-when{color:var(--ink-3);font-size:12.5px;white-space:nowrap}
.hub-note{margin:0;padding:9px 11px;border-radius:var(--r-sm);background:var(--canvas);color:var(--ink-2);font-size:13.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.hub-note-staff{background:var(--blue-soft)}
.hub-docs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hub-docs figure{margin:0;display:flex;flex-direction:column;gap:5px}
.hub-docs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--canvas)}
.hub-docs figcaption{font-size:12px;color:var(--ink-3);font-weight:700;text-align:center}
.hub-nodoc{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;border-radius:var(--r-sm);background:var(--canvas);color:var(--ink-3);font-size:12.5px}
.hub-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hub-actions .btn{padding:8px 14px;font-size:13.5px}
.hub-actions .btn svg{width:16px;height:16px}
.hub-danger{color:#e11d48}
.hub-chip{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;text-transform:capitalize;white-space:nowrap;background:var(--canvas);color:var(--ink-2)}
.hub-chip-open,.hub-chip-pending{background:rgba(37,99,235,.12);color:var(--blue)}
.hub-chip-answered{background:rgba(245,158,11,.16);color:#b45309}
.hub-chip-approved,.hub-chip-paid{background:rgba(22,163,74,.14);color:#15803d}
.hub-chip-declined{background:rgba(225,29,72,.12);color:#e11d48}
html[data-theme="dark"] .hub-chip-answered{color:#fbbf24}
html[data-theme="dark"] .hub-chip-approved,html[data-theme="dark"] .hub-chip-paid{color:#4ade80}
.hub-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--surface)}
.hub-row{display:flex;align-items:center;gap:12px;padding:12px 14px;color:var(--ink);text-decoration:none;border-top:1px solid var(--line);min-width:0}
.hub-row:first-child{border-top:0}
.hub-row:hover{background:var(--canvas)}
.hub-row.new{box-shadow:inset 3px 0 0 var(--blue)}
.hub-row>img,.hub-row>.hub-ini{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.hub-row-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hub-row-m b{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-row-m i,.hub-row-m em{font-style:normal;color:var(--ink-3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-row-m em{color:var(--ink-2)}
.hub-row-r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}
.hub-row-r time,.hub-count{font-size:12px;color:var(--ink-3);white-space:nowrap}
.hub-dot{width:9px;height:9px;border-radius:50%;background:var(--blue)}
.hub-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 12px;color:var(--ink-3);font-weight:700;font-size:13.5px;text-decoration:none}
.hub-back svg{width:16px;height:16px}
.hub-acct{max-width:220px;overflow-wrap:anywhere}
.aue-dt .btn-sm,.btn-sm{padding:6px 11px;font-size:12.5px;white-space:nowrap}
.sup-wrap{max-width:760px;margin:0 auto;padding:18px 16px 90px}
.sup-hero{display:flex;align-items:center;gap:14px;margin:6px 0 18px}
.sup-hero-ic{width:52px;height:52px;flex:0 0 auto;border-radius:16px;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue)}
.sup-hero-ic svg{width:28px;height:28px}
.sup-hero h1{margin:0;font-size:22px}
.sup-hero p{margin:3px 0 0;color:var(--ink-3)}
.sup-form{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);box-shadow:var(--shadow)}
.sup-form .field{margin:0;display:flex;flex-direction:column;gap:6px;min-width:0}
.sup-form label{font-weight:700;font-size:13.5px;color:var(--ink-2)}
.sup-form .set-input{width:100%;box-sizing:border-box}
.sup-form-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:12px}
.sup-form .btn{align-self:flex-start}
.sup-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sup-h2{font-size:16px;margin:24px 0 10px}
.sup-none{margin:0}
.sup-sent{display:flex;flex-direction:column;align-items:center;gap:6px;padding:34px 16px;text-align:center;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.sup-sent svg{width:38px;height:38px;color:var(--blue)}
.sup-sent h3{margin:4px 0 0}
.sup-sent p{margin:0;color:var(--ink-3)}
.sup-head h1{margin:0 0 6px;font-size:20px;overflow-wrap:anywhere}
.sup-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--ink-3);font-size:13px}
.sup-from{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13.5px;color:var(--ink-2);overflow-wrap:anywhere}
.sup-from img,.sup-from .hub-ini{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.sup-thread{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.sup-msg{max-width:min(560px,88%);padding:10px 13px;border-radius:16px 16px 16px 6px;background:var(--canvas);align-self:flex-start}
.sup-msg.me{align-self:flex-end;border-radius:16px 16px 6px 16px;background:var(--blue-soft)}
.sup-msg-h{display:flex;align-items:center;gap:7px;margin-bottom:3px;font-size:12.5px}
.sup-msg-h time{color:var(--ink-3);margin-left:auto;padding-left:8px}
.sup-team{padding:1px 7px;border-radius:999px;background:var(--blue);color:var(--on-accent,#fff);font-size:10.5px;font-weight:800}
.sup-msg-b{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:14px}
.sup-reply{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.sup-reply .set-input{width:100%;box-sizing:border-box}
.sup-reply-a{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.sup-reply-a select.set-input{width:auto;margin-right:auto}
.sup-reply-a .btn,.sup-form .btn,.hub-actions .btn{white-space:nowrap}
.sup-reply-a .btn svg,.sup-form .btn svg{width:16px;height:16px;flex:0 0 auto}
.auth-contact{margin-top:14px;text-align:center;font-size:13.5px}
.auth-contact a{color:var(--ink-3);font-weight:700}
@media (max-width:640px){
  .sup-form-row{grid-template-columns:minmax(0,1fr)}
  .hub-cards{grid-template-columns:minmax(0,1fr)}
  .hub-row{align-items:flex-start}
  .sup-reply-a .btn{flex:1}
  .sup-reply-a select.set-input{flex-basis:100%;width:100%}
}

/* ---------- Settings › Image Compression: "try it" preview ---------- */
.img-try input[type=file]{max-width:100%}
.img-try-out:empty{display:none}
.img-try-out{margin-top:12px}
.img-try-orig{margin:0 0 10px;color:var(--ink-2);font-size:13.5px}
.img-try-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:640px}
.img-try-grid figure{margin:0;display:flex;flex-direction:column;gap:6px}
.img-try-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--canvas)}
.img-try-grid figcaption{font-size:12.5px;color:var(--ink-3);display:flex;flex-direction:column;gap:1px}
.img-try-grid figcaption b{color:var(--ink);font-size:13px}
@media (max-width:480px){.img-try-grid{grid-template-columns:minmax(0,1fr)}}

/* ==========================================================================
   Admin panel on phones (≤760px): every page fits the screen.
   Additive and phone-only — everything sits inside one media query, so desktop is unchanged.
   · help/hint text wraps instead of running off the screen; flex & grid children may shrink
   · page heads, stat tiles and form rows stack or wrap; buttons keep their label on one line
   · data tables (.aue-dt / .admin-table families) become stacked cards: one bordered card per
     row, each cell a "label / value" line whose label is the column header (copied into the
     cell's data-label by the small script at the end of app.js); the actions cell is a
     full-width button row. The staff tables (.stf-dt) keep their own card layout.
   Only theme tokens are used, so light and dark both work. The .anx notch is left alone.
   ========================================================================== */
@media (max-width:760px){
  /* ---- shell: a little more room for the content ---- */
  .admin-wrap,.aue-wrap{padding-left:10px;padding-right:10px}
  .admin-main{padding:16px 14px;overflow-wrap:break-word}

  /* ---- text that never wrapped ---- */
  .admin-main .ad-dim{white-space:normal}                         /* help lines, page subtitles */
  .admin-main pre,.admin-main code{white-space:pre-wrap;overflow-wrap:anywhere}

  /* ---- page heads: the title block may shrink; buttons stay on one line ---- */
  .admin-main :is(.admin-head,.cms-head,.aue-head)>*{min-width:0}
  .admin-main :is(.admin-head,.cms-head,.aue-head) :is(.btn,button,a.btn){white-space:nowrap;flex:0 0 auto}
  .admin-main .admin-head h1,.admin-main .cms-head h1{font-size:22px}
  .admin-main .cms-head-t{min-width:0}
  .admin-main .cms-head-t h1{min-width:0}
  .admin-main .cms-head-acts{flex-wrap:wrap}

  /* ---- generic: flex/grid children may shrink, media and fields never exceed their box ---- */
  .admin-main :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea){max-width:100%;min-width:0}
  .admin-main .set-toggle-t,.admin-main .pk-tog-l,.admin-main .aue-fc,.admin-main .aue-g{min-width:0}
  .admin-main .set-toggle-row.set-sub{padding-left:16px}
  .admin-main .admin-search{min-width:0;flex:1 1 auto}
  .admin-main .us-col{min-width:0;flex-basis:100%}

  /* ---- grids that blew out or crushed their tiles ---- */
  .admin-main .cat-wrap{grid-template-columns:minmax(0,1fr)}
  .admin-main .ul-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .admin-main .ul-stats .pay-stat{padding:14px;gap:8px;min-width:0}
  .admin-main .ul-stats .pay-stat>div{min-width:0}
  .admin-main .ul-stats .pay-stat b{font-size:26px}
  .admin-main .ul-stats .pay-stat-ic svg{width:40px;height:40px}

  /* ---- narrow phones: rows of 2–3 fields that would leave each field too small ---- */
  @media (max-width:420px){
    .admin-main .us-row{flex-wrap:wrap}
    .admin-main .us-row input[type=date]{flex:1 1 130px}                 /* from | to, then the Filter button */
    .admin-main .aue-bd{grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-main .aue-bd>:first-child{grid-column:1/-1}                    /* birthday: month, then day | year */
    .admin-main .aue-uname{flex-wrap:wrap}                                /* a long URL prefix sits above its field */
    .admin-main .aue-uname .pfx{flex:1 1 100%;padding:7px 12px;border-right:0;border-bottom:1px solid var(--line);white-space:normal;overflow-wrap:anywhere}
    .admin-main .aue-uname input{flex:1 1 100%}
  }

  /* ---- data tables → stacked cards ---- */
  .admin-main .admin-table-wrap{border:0;border-radius:0;background:none;box-shadow:none}
  .admin-main .aue-dt-wrap:not(:has(> .stf-dt)){border:0;border-radius:0;background:none;box-shadow:none}   /* own rule: :has() support varies */
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt){display:block;width:100%;min-width:0;border:0;background:none}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) thead{display:none}
  /* a sortable table keeps its sort controls: its sortable headers become a row of chips */
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt):has(.aue-dt-ar) thead{display:block;margin-bottom:10px}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt):has(.aue-dt-ar) thead tr{display:flex;flex-wrap:wrap;gap:6px}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt):has(.aue-dt-ar) thead th{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;
    border:1px solid var(--line);border-radius:999px;background:var(--surface-2);font-size:12.5px;line-height:1.2}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt):has(.aue-dt-ar) thead th:not(:has(.aue-dt-ar)){display:none}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody tr{display:block;min-width:0;padding:2px 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}
  /* a cell = a two-column line: the label (::before) | everything inside the cell (one anonymous cell) */
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td,th){
    display:table;table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%!important;min-width:0;max-width:none;
    padding:9px 0;border:0;border-bottom:1px solid var(--line);background:none;
    text-align:left!important;white-space:normal!important;vertical-align:top;font-size:14px;overflow-wrap:anywhere}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td,th):last-child{border-bottom:0}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td,th)[data-label]:not([data-label=""])::before{
    content:attr(data-label);display:table-cell;width:clamp(86px,36%,150px);padding:2px 12px 0 0;vertical-align:top;
    font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);line-height:1.35;overflow-wrap:break-word}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td,th) :is(div,p,span,a,b,code,img,video,input:not([type=checkbox],[type=radio]),select,textarea){max-width:100%}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td,th) :is(.ad-dim,.ad-user b,.ad-text){white-space:normal}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) .ad-text{min-width:0;max-width:none}
  /* unlabelled cells (empty column header, e.g. a thumbnail column) and empty-state rows: full width */
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td,th):is([data-label=""],[colspan]){display:block}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody td[colspan]{padding:16px 4px;text-align:center!important;color:var(--ink-3)}
  /* the actions cell: a full-width row of buttons under a divider */
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td[data-label="Actions"],td.aue-dt-actc,td.ad-actions,td[data-label=""]:last-child:not(:first-child)){
    display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:10px 0;margin-top:-1px;border-top:1px solid var(--line)}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td[data-label="Actions"],td.aue-dt-actc,td.ad-actions)::before{content:none!important;display:none!important}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) tbody :is(td[data-label="Actions"],td.aue-dt-actc,td.ad-actions,td[data-label=""]:last-child:not(:first-child)) .cms-act{flex-direction:row;flex-wrap:wrap;align-items:center}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) .aue-dt-empty{padding:18px 4px}
  .admin-main :is(.aue-dt,.admin-table):not(.stf-dt) :is(tr,td,th)[hidden]{display:none!important}
}

/* ---------- Desktop header: the 4 centre tabs as a floating pill (floating-nav style) ----------
   Labels under the icons and a soft pill that slides to the active tab (placeNavInd in app.js).
   Phones keep the bottom mob-nav: .nav-tabs is display:none at ≤680px. */
.nav-tabs{top:calc(env(safe-area-inset-top, 0px) + var(--imp-h, 0px) + var(--nav-bar) / 2);transform:translate(-50%,-50%);align-items:center;gap:2px;padding:4px;
  background:var(--surface);border:1px solid var(--line);border-radius:999px;box-shadow:0 10px 28px rgba(18,17,25,.10),0 2px 6px rgba(18,17,25,.06)}
html[data-theme="dark"] .nav-tabs{box-shadow:0 10px 28px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.3)}
.nav-tabs .nav-tab{flex-direction:column;gap:4px;width:auto;min-width:80px;height:50px;padding:0 14px;border-radius:999px;z-index:1;background:none;color:var(--ink-2)}
.nav-tabs .nav-tab:hover{background:none;color:var(--blue)}
.nav-tabs .nav-tab.active{color:var(--blue)}
.nav-tabs .nav-tab.active::after{content:none}
.nav-tabs .nav-tab svg{width:22px;height:22px}
/* round 146: the Market tab's store icon (AnimateIcons StoreIcon, MIT) — on hover the roof and walls draw themselves, then
   the door springs up from the doorstep (its motion, ported from motion/react) */
.st-ic .st-b{stroke-dasharray:1;stroke-dashoffset:0}
.st-ic .st-door{transform-box:view-box;transform-origin:12px 21px}
.nav-store:hover .st-ic .st-b,.nav-store:focus-visible .st-ic .st-b{animation:stDraw .5s cubic-bezier(.16,1,.3,1) both}
.nav-store:hover .st-ic .st-b2,.nav-store:focus-visible .st-ic .st-b2{animation-delay:.08s}
.nav-store:hover .st-ic .st-door,.nav-store:focus-visible .st-ic .st-door{animation:stDoor .4s cubic-bezier(.34,1.4,.64,1) .5s both}
@keyframes stDraw{from{stroke-dashoffset:1;opacity:0}to{stroke-dashoffset:0;opacity:1}}
@keyframes stDoor{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.nav-store .st-ic *{animation:none!important}}
.nav-tabs .nav-lottie{width:22px;height:22px}
.nav-tabs .nav-ico-gif{width:24px;height:24px}
.nav-tabs .nav-ico-play{width:22px;height:22px}
.fnav-lbl{font-size:11px;font-weight:600;line-height:1;letter-spacing:.01em;white-space:nowrap}
.nav-tab.active .fnav-lbl{font-weight:700}
.fnav-ind{position:absolute;top:4px;bottom:4px;left:0;width:0;border-radius:999px;background:var(--blue-soft);opacity:0;pointer-events:none;z-index:0;
  transition:transform .5s cubic-bezier(.34,1.36,.64,1),width .5s cubic-bezier(.34,1.36,.64,1),opacity .2s}
html[data-theme="dark"] .fnav-ind{background:rgba(var(--gold-rgb),.14)}
.fnav-ind.on{opacity:1}
@media (max-width:1320px){.nav-tabs .nav-tab{min-width:66px;padding:0 8px}}
@media (max-width:1100px){.nav-tabs .nav-tab{min-width:64px;padding:0 8px}}
.nav-tabs.compact{padding:3px}
.nav-tabs.compact .nav-tab{min-width:44px;height:42px;padding:0 4px}
.nav-tabs.compact .fnav-lbl{display:none}
.nav-tabs.compact .fnav-ind{top:3px;bottom:3px}
@media (prefers-reduced-motion:reduce){.fnav-ind{transition:opacity .2s}}

/* Messages in the centre pill: the unread badge sits on the icon's top-right corner */
.nav-tabs .fnav-ic{position:relative;display:inline-flex}
.nav-tabs .fnav-ic .msg-badge{top:-7px;right:-12px;border:2px solid var(--surface)}

/* ===== Messages › conversation: prompt-box composer (native port of the ai-prompt-box style) =====
   One rounded dark box over the chat backdrop: growing textarea, photo · file actions, and one round button
   (mic when empty → arrow when there is something to send → red stop while recording). */
.msgr-thread .msgr-compose.pbx-wrap,.msgr-compose.pbx-wrap{display:block;background:transparent;border:0;padding:8px 12px 12px;-webkit-backdrop-filter:none;backdrop-filter:none}
.pbx{border-radius:24px;border:1px solid #444;background:#1F2023;padding:8px;box-shadow:0 8px 30px rgba(0,0,0,.24);transition:border-color .3s,box-shadow .3s}
.pbx.recording{border-color:rgba(239,68,68,.7)}
.pbx.drag{border-color:#9b87f5;box-shadow:0 0 0 3px rgba(155,135,245,.25),0 8px 30px rgba(0,0,0,.24)}
.pbx-files{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 4px}
.pbx-files[hidden]{display:none}
.pbx-chip{position:relative}
.pbx-img{width:64px;height:64px;border-radius:12px;overflow:hidden;cursor:pointer}
.pbx-img img{width:100%;height:100%;object-fit:cover;display:block}
.pbx-doc{display:inline-flex;align-items:center;gap:8px;max-width:min(320px,100%);padding:9px 36px 9px 11px;border-radius:12px;background:#2E3033;color:#E5E7EB;font-size:13px}
.pbx-doc svg{width:16px;height:16px;flex-shrink:0;color:#9CA3AF}
.pbx-doc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pbx-x{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.7);color:#fff;display:grid;place-items:center;border:0;padding:0;cursor:pointer}
.pbx-x svg{width:12px;height:12px}
.pbx-doc .pbx-x{top:50%;transform:translateY(-50%);right:8px}
.pbx-text{transition:opacity .3s}
.pbx textarea{display:block;width:100%;min-height:44px;max-height:240px;resize:none;border:0;outline:none;box-shadow:none;background:transparent;color:#F3F4F6;font-family:inherit;font-size:16px;line-height:1.45;padding:10px 12px;margin:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#444 transparent}
.pbx textarea::placeholder{color:#9CA3AF;opacity:1}
.pbx textarea:disabled{opacity:.5}
.pbx textarea::-webkit-scrollbar{width:6px}
.pbx textarea::-webkit-scrollbar-track{background:transparent}
.pbx textarea::-webkit-scrollbar-thumb{background:#444;border-radius:3px}
.pbx textarea::-webkit-scrollbar-thumb:hover{background:#555}
.pbx.recording .pbx-text{height:0;overflow:hidden;opacity:0}
.pbx-rec{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:12px 0}
.pbx-rec[hidden]{display:none}
.pbx-rec-h{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.pbx-dot{width:8px;height:8px;border-radius:50%;background:#ef4444;animation:pbxPulse 1s ease-in-out infinite}
.pbx-time{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;color:rgba(255,255,255,.8)}
.pbx-bars{width:100%;height:40px;display:flex;align-items:center;justify-content:center;gap:2px;padding:0 16px}
.pbx-bars i{width:2px;border-radius:2px;background:rgba(255,255,255,.5);animation:pbxPulse .8s ease-in-out infinite}
@keyframes pbxPulse{0%,100%{opacity:1}50%{opacity:.35}}
.pbx-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px}
.pbx-left{display:flex;align-items:center;gap:4px;transition:opacity .3s}
.pbx.recording .pbx-left{opacity:0;visibility:hidden}
.pbx-ic{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#9CA3AF;background:transparent;border:0;padding:0;cursor:pointer;transition:background .2s,color .2s}
.pbx-ic:hover{background:rgba(75,85,99,.3);color:#D1D5DB}
.pbx-ic svg{width:20px;height:20px}
.pbx-div{position:relative;width:1.5px;height:24px;margin:0 4px;flex-shrink:0}
.pbx-div::before{content:'';position:absolute;inset:0;border-radius:999px;background:linear-gradient(to top,transparent,rgba(155,135,245,.7),transparent);
  clip-path:polygon(0% 0%,100% 0%,100% 40%,140% 50%,100% 60%,100% 100%,0% 100%,0% 60%,-40% 50%,0% 40%)}
.pbx-send{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:0;padding:0;cursor:pointer;background:transparent;color:#9CA3AF;transition:background .2s,color .2s,opacity .2s;flex-shrink:0}
.pbx-send svg{width:20px;height:20px}
.pbx-send[data-mode="send"],.pbx-send[data-mode="busy"]{background:#fff;color:#1F2023}
.pbx-send[data-mode="send"] svg{width:16px;height:16px}
.pbx-send[data-mode="send"]:hover{background:rgba(255,255,255,.8)}
.pbx-send[data-mode="mic"]:hover{background:rgba(75,85,99,.3);color:#D1D5DB}
.pbx-send[data-mode="stop"]{color:#ef4444}
.pbx-send[data-mode="stop"]:hover{background:rgba(75,85,99,.3);color:#f87171}
.pbx-send[data-mode="busy"]{cursor:default}
.pbx-send[data-mode="busy"] svg{width:14px;height:14px;animation:pbxPulse 1s ease-in-out infinite}
.pbx-send[data-mode="idle"]{opacity:.45;cursor:default}
.pbx-send:focus-visible,.pbx-ic:focus-visible{outline:2px solid #9b87f5;outline-offset:1px}
@media (hover:hover){
  .pbx [data-tip]{position:relative}
  .pbx [data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;z-index:5;pointer-events:none;
    background:#1F2023;border:1px solid #333;color:#fff;font-size:12px;font-weight:500;line-height:1.3;padding:5px 10px;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.35)}
  .pbx .pbx-send[data-tip]:hover::after{left:auto;right:0;transform:none}
}
@media (prefers-reduced-motion:reduce){.pbx-dot,.pbx-bars i,.pbx-send[data-mode="busy"] svg{animation:none}}
/* the floating create (+) button would sit on top of the send button — not while Messages is open */
body:has(.msgr) .cfab-btn{display:none}

/* ---------- Messages: reply · edit · delete — ⋯ menu, reply quotes, "edited", deleted placeholder, swipe to reply ---------- */
.msgr-msgs{overflow-x:hidden;touch-action:pan-y pinch-zoom}
.bubble-row{position:relative;transition:transform .18s ease}
.bubble-row.swiping{transition:none}
.bub-more{position:absolute;top:50%;margin-top:-14px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:0;padding:0;
  background:rgba(255,255,255,.7);color:#2c4a1c;box-shadow:0 1px 3px rgba(30,50,15,.16);cursor:pointer;opacity:0;pointer-events:none;transition:opacity .15s,background .15s;z-index:2}
.bubble-row.them .bub-more{left:100%;margin-left:6px}
.bubble-row.me .bub-more{right:100%;margin-right:6px}
.bub-more svg{width:16px;height:16px}
.bub-more:hover{background:#fff}
.bub-more:focus-visible{opacity:1;pointer-events:auto;outline:2px solid #9b87f5;outline-offset:1px}
.bubble-row.show-more .bub-more{opacity:1;pointer-events:auto}
@media (hover:hover){
  .bubble-row:hover .bub-more{opacity:1;pointer-events:auto}
  /* keeps the row hovered on the way to its ⋯ (under the ⋯ itself: z-index above) */
  .bubble-row[data-mid]::after{content:'';position:absolute;top:0;bottom:0;width:40px}
  .bubble-row.them[data-mid]::after{left:100%}
  .bubble-row.me[data-mid]::after{right:100%}
}
@media (hover:none){
  /* a hold opens the menu (Copy text is in it), so no text selection / iOS callout on messages */
  .msgr-msgs .bubble-row{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
}
.bub-edited{font-style:normal;margin-right:2px}
.bubble.bubble-deleted span{font-style:italic;opacity:.8}
.msgr-thread .msgr-msgs .bubble-row.them .bubble.bubble-deleted{background:rgba(255,255,255,.72);box-shadow:none}
.msgr-thread .msgr-msgs .bubble-row.me .bubble.bubble-deleted{background:rgba(72,118,64,.62);box-shadow:none}
/* the quote a reply carries (tap → jumps to the message it answers) */
.bub-quote{display:block;width:100%;min-width:150px;max-width:100%;margin:0 0 5px;padding:5px 9px 6px;border:0;border-left:3px solid #4f8a3f;border-radius:8px;
  background:rgba(72,118,64,.1);color:inherit;font:inherit;text-align:left;cursor:pointer}
.bub-quote b{display:block;font-size:12px;font-weight:800;line-height:1.3;color:#3f7a2f}
.bubble .bub-quote span,.bub-quote span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-word;font-size:12.5px;line-height:1.35;opacity:.85}
.bubble-row.me .bub-quote{background:rgba(255,255,255,.16);border-left-color:rgba(255,255,255,.85)}
.bubble-row.me .bub-quote b{color:#fff}
.bubble-stack>.bub-quote{margin:0;border-radius:12px;background:rgba(255,255,255,.92);color:#1b2c12;box-shadow:0 1px 2px rgba(30,50,15,.12)}
.bubble-row.me .bubble-stack>.bub-quote{background:rgba(72,118,64,.9);color:#fff}
.bub-quote:hover{filter:brightness(.97)}
.bub-quote:focus-visible{outline:2px solid #9b87f5;outline-offset:1px}
.bubble-row.bub-flash{border-radius:16px;animation:bubFlash 1.5s ease}
@keyframes bubFlash{0%,100%{background:transparent;box-shadow:0 0 0 0 transparent}20%,65%{background:rgba(255,255,255,.5);box-shadow:0 0 0 6px rgba(255,255,255,.5)}}
/* swipe to reply */
.bubble-row.swiping::before{content:'';position:absolute;top:50%;left:-36px;width:28px;height:28px;margin-top:-14px;border-radius:50%;opacity:.4;transform:scale(.75);transition:opacity .15s,transform .15s;
  background:rgba(255,255,255,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c4a1c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 17-5-5 5-5'/%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E") center/16px no-repeat}
.bubble-row.swipe-ready::before{opacity:1;transform:scale(1)}
/* the message menu and the delete choices */
.msg-menu .modal{max-width:380px}
.msg-menu-prev{margin:-4px 0 12px;padding:8px 12px;border-left:3px solid var(--blue);border-radius:8px;background:var(--canvas);color:var(--ink-2);font-size:13.5px;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.msg-del-note{margin:12px 2px 0;font-size:12.5px;line-height:1.45;color:var(--ink-3)}
/* the reply / edit bar inside the prompt box */
.pbx-ctx{display:flex;align-items:center;gap:10px;margin:0 0 6px;padding:7px 8px 7px 10px;border-radius:16px;background:#2A2B2F;border-left:3px solid #9b87f5}
.pbx-ctx[hidden]{display:none}
.pbx-ctx-ic{flex-shrink:0;display:grid;place-items:center;color:#9b87f5}
.pbx-ctx-ic svg{width:18px;height:18px}
.pbx-ctx-main{flex:1;min-width:0;display:block;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.pbx-ctx-main b{display:block;font-size:12.5px;font-weight:700;line-height:1.3;color:#c4b5fd}
.pbx-ctx-main span{display:block;font-size:13px;line-height:1.35;color:#D1D5DB;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pbx-ctx .pbx-ctx-x{position:static;flex-shrink:0;width:26px;height:26px;background:rgba(255,255,255,.1)}
.pbx-ctx .pbx-ctx-x:hover{background:rgba(255,255,255,.2)}
.pbx.editing .pbx-left{visibility:hidden}
.pbx-send[data-mode="save"]{background:#9b87f5;color:#fff}
.pbx-send[data-mode="save"] svg{width:16px;height:16px}
.pbx-send[data-mode="save"]:hover{background:#8b75f0}
.pbx-send[data-mode="save"]:disabled{opacity:.45;cursor:default}

/* Admin → Users: live search — the table fades while a newer search loads; matches are marked */
.aue-dt-wrap.ul-busy{opacity:.5;transition:opacity .15s}
mark.ul-hit{background:rgba(250,204,21,.38);color:inherit;border-radius:3px;padding:0 1px}
.ul-sub{font-size:12px;color:var(--ink-3);margin:2px 0 0;word-break:break-all}
.ul-search input[type="search"]::-webkit-search-cancel-button{cursor:pointer}

/* ---------- Admin sidebar search (desktop): the phone notch's "Search pages & settings", above the menu ---------- */
.asq{margin:0 0 4px}
.asq-box{display:flex;align-items:center;gap:8px;height:40px;padding:0 10px 0 11px;border:1px solid var(--line);border-radius:var(--r-sm);
  background:var(--canvas);color:var(--ink-3);cursor:text;transition:border-color .15s,box-shadow .15s,background .15s}
.asq-box:focus-within{border-color:var(--blue);background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 18%,transparent)}
.asq-ic{display:grid;place-items:center;flex-shrink:0}
.asq-ic svg{width:16px;height:16px}
.asq-in{flex:1;min-width:0;height:100%;border:0;outline:0;box-shadow:none;background:transparent;color:var(--ink);font:inherit;font-size:13px;padding:0}
.asq-in::placeholder{color:var(--ink-3);opacity:1}
.asq-in::-webkit-search-cancel-button{cursor:pointer}
/* while searching, the results take the menu's place (as in the phone drawer) */
.admin-side.asq-on>.admin-grp,.admin-side.asq-on>nav,.admin-side.asq-on>.admin-back{display:none}
.asq-res{display:flex;flex-direction:column;gap:2px;margin-top:6px;max-height:calc(100vh - var(--nav-h) - 150px);overflow-y:auto;overscroll-behavior:contain}
.asq-res[hidden]{display:none}
.asq-grp{margin:0;padding:8px 10px 4px;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.asq-hit{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:var(--r-sm);background:transparent;
  color:var(--ink-2);font:inherit;text-align:left;cursor:pointer}
.asq-hit:hover,.asq-hit.kb{background:var(--blue-soft);color:var(--ink)}
.asq-hic{flex-shrink:0;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--canvas);color:var(--ink-3)}
.asq-hit.kb .asq-hic{color:var(--blue)}
.asq-hic svg{width:16px;height:16px}
.asq-rt{display:flex;flex-direction:column;min-width:0}
.asq-rt b{font-size:13.5px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asq-rt i{font-style:normal;font-size:11.5px;line-height:1.3;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asq-rt b mark{background:color-mix(in srgb,var(--blue) 22%,transparent);color:inherit;border-radius:4px;padding:0 1px}
.asq-none{margin:0;padding:14px 10px;font-size:13px;line-height:1.45;color:var(--ink-3)}
.asq-none b{display:block;margin-bottom:2px;color:var(--ink-2)}
.asq-tip{margin:6px 0 0;padding:8px 10px 2px;border-top:1px solid var(--line);font-size:11px;color:var(--ink-3)}
.asq-tip kbd{display:inline-block;min-width:16px;margin-right:2px;padding:0 4px;border:1px solid var(--line);border-radius:4px;background:var(--surface);
  font:700 10.5px/16px ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}
/* Messages list: the unread count stays a small round badge (the preview-text rule `.conv-prev span` matched it too) */
.conv .conv-prev span.conv-dot,.conv.unread .conv-prev span.conv-dot{flex:none;font-size:11px;font-weight:800;color:var(--on-accent);overflow:visible;text-overflow:clip}
/* Phones: the Messages list never grows past the screen. A long last message (its preview is one unbroken line) set the
   minimum width of the single `1fr` column and pushed the list — times, unread badges — off to the right. */
@media (max-width:760px){.msgr{grid-template-columns:minmax(0,1fr)}}

/* ---------- Live alerts: a small card that fades in just below the header, stays 4 s, fades out (owner 2026-11-24; was 2 s in all), for every activity that concerns
   me. Replaces the old bottom pill; at most 3 stack downwards. ---------- */
#alert-stack{position:fixed;top:calc(var(--nav-h) + 8px);bottom:auto;left:0;right:0;z-index:1200;display:flex;flex-direction:column;
  align-items:center;gap:8px;padding:0 12px;pointer-events:none}
.al-toast{pointer-events:auto;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(360px,100%);padding:8px 14px 8px 8px;
  border-radius:14px;background:var(--surface);border:1px solid var(--line);color:var(--ink);text-decoration:none;
  box-shadow:0 12px 32px rgba(15,23,42,.16),0 2px 6px rgba(15,23,42,.08);animation:alCard 4.7s ease both;will-change:opacity,transform}
.al-toast:hover{border-color:var(--blue)}
.al-toast .al-av{position:relative;flex:0 0 auto;width:38px;height:38px}
.al-toast .al-av img{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block}
.al-toast .al-av .al-ic{width:38px;height:38px;font-size:18px}
.al-toast .al-badge{position:absolute;right:-5px;bottom:-4px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  font-size:11.5px;line-height:1;background:var(--surface);box-shadow:0 0 0 2px var(--surface),0 1px 3px rgba(0,0,0,.18)}
.al-toast .al-txt{min-width:0;font-size:13px;font-weight:600;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.al-toast .al-txt b{font-weight:800}
.al-toast .al-txt i{font-style:normal;color:var(--ink-2)}
/* 4.7 s: in .28 s, fully visible 4 s, out .4 s (the fade-out as before) */
@keyframes alCard{0%{opacity:0;transform:translateY(-10px) scale(.98)}6%{opacity:1;transform:none}91.5%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-6px)}}
@keyframes alCardFade{0%{opacity:0}6%{opacity:1}91.5%{opacity:1}100%{opacity:0}}
/* reduced motion: a still card that fades in and out — !important + a class beats the site-wide `*{animation-duration:.01ms!important}`,
   which would end the animation at once (the card vanished, or before this round stayed invisible at its last frame) */
@media (prefers-reduced-motion:reduce){.al-toast{animation:alCardFade 4.7s ease both!important}}

/* A shared colored post: its colored card inside the share, a little smaller than in the feed */
.post-embed .post-colored{margin:0 12px 12px;border-radius:12px;min-height:150px;padding:28px 18px;font-size:22px}
/* Reels player on phones: full screen, edge to edge (owner 2026-11-29: "move full section from users profiles, titles,
   description, timelapes bar abit to fit the bottom free space, then make all videos KLYPS to verticle center of full
   screen phone"). The clip's frame is the whole screen — no 12px card margins, no rounded corners, no 860px cap — so a
   clip that doesn't fill it sits in the middle of the screen itself (the iPhone app's home bar used to push it ~17px up).
   The overlays keep clear of the home bar (env(safe-area-inset-bottom)): the progress bar runs along the bottom, just
   above it; the caption block (name, sound, title, description, time + speed) and the right-side buttons sit 16px lower
   than they did in the card, the time row 12px off the bottom. Until then the card stopped above the home bar, with the
   bar along its bottom edge. Desktop keeps the card. */
@media (max-width:680px){
  .reel{padding:0}
  .reel-frame{height:100dvh;max-height:none;border-radius:0;box-shadow:none}
  .reel-top{bottom:env(safe-area-inset-bottom, 0px)}
  .reel-info{bottom:calc(12px + env(safe-area-inset-bottom, 0px))}
  .reel-rail{bottom:calc(18px + env(safe-area-inset-bottom, 0px))}
  .reel-vad-bar{bottom:calc(18px + env(safe-area-inset-bottom, 0px))}
  .reel-vad-cta{bottom:calc(74px + env(safe-area-inset-bottom, 0px))}
}

/* A shared reel / video in the timeline: a rounded 4:5 card that plays in place, the original author over the top,
   the caption on one line ("… more") and a sound button along the bottom. Tap the picture → full screen. */
.se-reel{position:relative;display:block;aspect-ratio:4/5;width:min(calc(100% - 2*var(--pc-pad,16px)),520px,62vh);margin:0 auto 6px;border-radius:14px;overflow:hidden;background:#0b0e14;isolation:isolate;color:#fff;-webkit-tap-highlight-color:transparent}
.se-vid,.se-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.se-vid.clip-contain{object-fit:contain}
.se-bg{inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);max-width:none;filter:blur(24px) brightness(.62);pointer-events:none}
.se-open{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;cursor:pointer;background:linear-gradient(to bottom,rgba(0,0,0,.5) 0,rgba(0,0,0,.14) 18%,rgba(0,0,0,0) 30%,rgba(0,0,0,0) 64%,rgba(0,0,0,.66) 100%)}
.se-open:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.se-who{position:absolute;top:12px;left:12px;max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.se-who:hover .se-nm{text-decoration:underline}
.se-av{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;background:#fff;box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
.se-names{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.se-names b{display:flex;align-items:center;min-width:0;font-size:15.5px;font-weight:700}
.se-nm{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.se-names .ver-tick{width:17px;height:17px;margin-left:5px;vertical-align:0}
.se-meta{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:12.5px;font-weight:500;color:rgba(255,255,255,.9)}
.se-meta svg{width:13px;height:13px;flex:none}
.se-foot{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:flex-end;gap:10px;padding:0 12px 12px 14px;pointer-events:none}
.se-cap{flex:1;min-width:0;display:flex;align-items:baseline;padding-bottom:7px;font-size:15px;line-height:1.4;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.se-cap-t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.se-more{flex:none;pointer-events:auto;margin:0;padding:0 0 0 5px;border:0;background:none;color:rgba(255,255,255,.78);font:inherit;font-weight:600;cursor:pointer}
.se-more[hidden]{display:none}
.se-mute{flex:none;pointer-events:auto;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.62);color:#fff;cursor:pointer}
.se-mute svg{width:20px;height:20px;fill:currentColor}
.post-reel-mute{position:absolute;right:12px;bottom:12px;z-index:5}   /* a KLYPS post's sound button: the shared card's, bottom right */
.se-capx .se-open{background:linear-gradient(to bottom,rgba(0,0,0,.5) 0,rgba(0,0,0,.14) 18%,rgba(0,0,0,.22) 40%,rgba(0,0,0,.86) 100%)}
.se-capx .se-cap{display:block}
.se-capx .se-cap-t{display:block;max-height:9.8em;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:auto;overscroll-behavior:contain}
.se-capx .se-more{padding:4px 0 0}

/* Share sheet (Reels viewer), Facebook-style: a handle, a composer card ("Share now" puts it on your feed with your
   words above it), your recent chats ("Send in Messages"), then the other apps. Follows the site theme. */
.shp-fb{position:relative;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;padding-top:6px}
.shp-grab{display:flex;justify-content:center;padding:6px 0 14px;touch-action:none;cursor:grab}
.shp-grab span{width:42px;height:5px;border-radius:3px;background:var(--ink-3);opacity:.55}
.shp-fb > .shp-x{position:absolute;top:10px;right:12px}
@media (max-width:679px){.shp-fb > .shp-x{display:none}}
@media (min-width:680px){.shp-fb{padding-top:50px}.shp-fb .shp-grab{display:none}}
.shc{position:relative;margin:0 14px 20px;padding:14px 14px 10px;border-radius:16px;background:var(--surface-2,#2a2b2e);border:1px solid var(--line)}
.shc-top{display:flex;align-items:flex-start;gap:12px}
.shc-av{width:50px;height:50px;border-radius:50%;object-fit:cover;flex:none}
.shc-who{flex:1;min-width:0}
.shc-who > b{display:block;font-size:17px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shc-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.shc-pill{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px 0 11px;border:0;border-radius:8px;background:var(--surface-3,rgba(127,127,127,.2));color:var(--ink);font:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.shc-pill svg{width:16px;height:16px;flex:none}
.shc-pill > svg:last-child{width:20px;height:20px;margin:0 -4px 0 -3px}
.shc-pill:disabled{opacity:.55;cursor:default}
.shc-pub{cursor:default;font-weight:600}
.shc-menu{position:absolute;z-index:3;left:76px;top:90px;min-width:170px;padding:6px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 32px rgba(0,0,0,.28)}
.shc-menu[hidden],.shc-emo[hidden],.shc-tag[hidden],.shc-pick[hidden]{display:none}
.shc-menu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:none;color:var(--ink);font:inherit;font-size:15px;text-align:left;cursor:pointer}
.shc-menu button:hover{background:var(--surface-2)}
.shc-menu button[aria-checked="true"]{color:var(--blue);font-weight:700}
.shc-pick{margin-top:10px}
.shc-pick select{width:100%}
.shc-text{display:block;width:100%;min-height:54px;max-height:150px;margin:12px 0 4px;padding:0;border:0;outline:none;resize:none;background:transparent;color:var(--ink);font:inherit;font-size:17px;line-height:1.45}
.shc-text::placeholder{color:var(--ink-3)}
.shc-text:disabled{opacity:.6}
.shc-emo{display:flex;gap:2px;overflow-x:auto;margin:0 -6px 4px;padding:2px 0;scrollbar-width:none}
.shc-emo::-webkit-scrollbar{display:none}
.shc-emo button{flex:none;width:40px;height:40px;border:0;border-radius:10px;background:none;font-size:24px;line-height:1;cursor:pointer}
.shc-emo button:active{background:var(--surface-3)}
.shc-tag{margin:2px 0 8px}
.shc-tag-q{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px;outline:none}
.shc-tag-q:focus{border-color:var(--blue)}
.shc-tag-list{max-height:210px;overflow-y:auto;margin-top:4px}
.shc-tu{display:flex;align-items:center;gap:10px;width:100%;padding:7px 6px;border:0;border-radius:10px;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.shc-tu:hover{background:var(--surface)}
.shc-tu img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.shc-tu span{display:flex;flex-direction:column;min-width:0}
.shc-tu b{font-size:14.5px}
.shc-tu i{font-style:normal;font-size:12.5px;color:var(--ink-3)}
.shc-none{padding:8px 6px}
.shc-note,.sh-note{margin:4px 0 10px;padding:9px 12px;border-radius:10px;background:color-mix(in srgb,#f5b324 16%,transparent);color:var(--ink);font-size:14px;line-height:1.4}
.shc-bar{display:flex;align-items:center;gap:4px}
.shc-ic{width:42px;height:42px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:none;color:var(--ink-2);cursor:pointer}
.shc-ic svg{width:27px;height:27px}
.shc-ic:hover{background:var(--surface-3)}
.shc-go{margin-left:auto;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 22px;border:0;border-radius:10px;background:var(--blue);color:var(--on-accent);font:inherit;font-size:17px;font-weight:700;cursor:pointer}
html[data-theme="dark"] .shc-go{background:var(--blue-dark)}   /* white on the light dark-mode blue is too faint */
.shc-go:disabled{opacity:.55;cursor:default}
.shc-spin{width:17px;height:17px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
.shp-sec{padding-bottom:4px}
.shp-h{margin:0 18px 10px;font-size:19px;font-weight:800;letter-spacing:-.01em}
.shp-ppl{display:flex;gap:4px;overflow-x:auto;padding:2px 12px 16px;scrollbar-width:none}
.shp-ppl::-webkit-scrollbar{display:none}
.shp-ppl > .spinner{margin:14px auto}
.shp-pp{flex:none;width:78px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:2px;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer}
.shp-pp-av{position:relative;width:64px;height:64px}
.shp-pp-av img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.shp-pp-av i{position:absolute;right:-2px;bottom:-2px;width:24px;height:24px;display:none;place-items:center;border-radius:50%;background:#22c55e;color:#fff;border:2px solid var(--surface)}
.shp-pp-av i svg{width:13px;height:13px}
.shp-pp.sent .shp-pp-av i{display:grid}
.shp-pp.busy{opacity:.55}
.shp-pp-n{font-size:13.5px;line-height:1.25;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.shp-pp.sent .shp-pp-n{color:#22c55e;font-weight:700}
.shp-fb .shp-label{color:var(--ink)}
@media (max-width:679px){.shp-fb.typing .shp-sec{display:none}}

/* A reel / post of this site linked in a chat message: a card like the feed's shared-reel card */
.mrc{position:relative;display:block;width:min(232px,64vw);aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:#0b0e14;color:#fff;text-decoration:none;isolation:isolate;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.mrc-wait{background:linear-gradient(110deg,var(--surface-2) 30%,var(--surface-3) 50%,var(--surface-2) 70%);background-size:200% 100%;animation:mrcShim 1.2s linear infinite}
@keyframes mrcShim{to{background-position:-200% 0}}
.mrc-img,.mrc-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.mrc-bg{display:none;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);filter:blur(18px) brightness(.6)}
.mrc-wide .mrc-bg{display:block}
.mrc-wide .mrc-img{object-fit:contain}
.mrc-shade{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 0,rgba(0,0,0,0) 30%,rgba(0,0,0,0) 58%,rgba(0,0,0,.66) 100%)}
.mrc-who{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:center;gap:7px;min-width:0;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.mrc-who > img:first-child{width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none;box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
.mrc-who b{min-width:0;font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mrc-who .ver-tick{width:15px;height:15px;margin-left:0}
.mrc-play{position:absolute;top:50%;left:50%;width:50px;height:50px;margin:-25px 0 0 -25px;border-radius:50%;background:rgba(0,0,0,.45);display:grid;place-items:center}
.mrc-play svg{width:22px;height:22px;fill:#fff;margin-left:3px}
.mrc-cap{position:absolute;left:10px;right:10px;bottom:10px;font-size:13.5px;line-height:1.35;text-shadow:0 1px 3px rgba(0,0,0,.6);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.mrc-tcard,.mrc-gone{aspect-ratio:auto;padding:12px;background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.mrc-text{display:flex;flex-direction:column;gap:8px}
.mrc-tcard .mrc-who{position:static;text-shadow:none}
.mrc-tx{font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.mrc-none{font-size:13.5px;color:var(--ink-3)}

/* Reels ad overlay: the bottom bar ("Sponsored" · Skip) sits on the bottom edge, inside the screen. The rule for
   Google's VAST container (.reel-ad>div = full size) used to stretch it over the whole clip, which put the bar
   mid-screen and pushed the Skip button half off the right edge. */
.reel-vad>.reel-vad-bar{width:auto;height:auto}

/* Reels Ads admin (round 26): an ad that can't play, and the editor's preview of the ad video */
.ad-link{margin-top:4px;font-size:12px;line-height:1.35}
.ad-link:empty{display:none}
.ad-bad{color:#dc2626;font-weight:600}
.ad-good{color:#16a34a;font-weight:600}
html[data-theme="dark"] .ad-bad{color:#f87171}
html[data-theme="dark"] .ad-good{color:#4ade80}
.ad-prev-wrap{margin-top:10px;display:flex;justify-content:center;background:#0b0e14;border-radius:10px;overflow:hidden}
.ad-prev-wrap[hidden]{display:none}
.ad-prev{height:240px;max-width:100%;aspect-ratio:9/16;object-fit:contain;background:#000;display:block}
.ad-prev-st{margin:6px 0 0;font-size:12.5px}
.ad-prev-st:empty{display:none}

/* Reels on phones: the reel's and the ad's sound buttons sit on the Back (<) button's line. Back is fixed to the screen,
   its centre safe-top + 38px down; the clip's frame is the whole screen (see "Reels player on phones: full screen"), so a
   40px button's top is safe-top + 18px and the 34px ad button's + 21px (the rotate button's is with .clip-rotate). (The
   phone rule ".reel-mute,.reel-vad-sound{top:…}" above lost to the base .reel-vad-sound rule further down, which left the
   ad's button up under the status bar in the installed app.) Until 2026-11-29 the clip was a card 12px down, capped at
   860px and centred on tall phones, and these tops took that off. */
@media (max-width:680px){
  .reel-frame .reel-mute{top:calc(var(--safe-top) + 18px)}
  .reel-vad>.reel-vad-sound{top:calc(var(--safe-top) + 21px)}
}

/* ---------- Group chats (Messages) ---------- */
.msgr-list-head{display:flex;align-items:center;gap:10px}
.msgr-list-head h2{flex:1;min-width:0}
.msgr-newgroup{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:13px;font-weight:800;white-space:nowrap;flex-shrink:0}
.msgr-newgroup svg{width:16px;height:16px}
.msgr-newgroup:hover{filter:brightness(.97)}
/* the Messages list's Personal | Group tabs: a two-part switch; the red count = chats with unread messages on that tab */
.msgr-tabs{display:flex;gap:4px;margin:0 14px 6px;padding:4px;border-radius:999px;background:var(--canvas)}
.msgr-tab{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;border:0;border-radius:999px;background:none;color:var(--ink-3);font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:background .15s,color .15s}
.msgr-tab:hover{color:var(--ink)}
.msgr-tab.on{background:var(--surface);color:var(--blue);box-shadow:0 1px 3px rgba(0,0,0,.14)}
.msgr-tab-n{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#FF3B5C;color:#fff;font-size:11px;font-style:normal;font-weight:800;line-height:18px;text-align:center}
.msgr-tab-n[hidden]{display:none}
.msgr-noconv-btn{margin-top:14px}
.cg-ini{display:inline-flex;align-items:center;justify-content:center;border-radius:25%;background:linear-gradient(135deg,var(--blue),#7c5cff);color:var(--on-accent);font-weight:800;letter-spacing:.3px;flex-shrink:0;overflow:hidden;line-height:1}
.cg-ini svg{width:55%;height:55%}
.conv-av.cg-ini{width:50px;height:50px;font-size:17px}
.cg-th-av{width:42px;height:42px;border-radius:25%;object-fit:cover;flex-shrink:0}
.cg-th-av.cg-ini{font-size:15px}
.msgr-th-group{background:none;border:0;padding:0;cursor:pointer;text-align:left;color:inherit;font:inherit}
.msgr-th-group div{min-width:0}
.msgr-th-group b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bubble-row.sys{align-self:center;max-width:92%}
.bubble-sys{padding:4px 12px;border-radius:12px;background:rgba(24,44,14,.46);color:#fff;font-size:12.5px;font-weight:600;text-align:center;line-height:1.4;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);overflow-wrap:anywhere}
.bubble-sys time{margin-left:6px;opacity:.75;font-size:11px;font-weight:500}
.bub-name{display:block;font-size:12.5px;font-weight:800;line-height:1.3;margin:0 0 2px;color:var(--blue);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bubble-stack>.bub-name{align-self:flex-start;max-width:100%;margin:0;padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.92);box-shadow:0 1px 2px rgba(30,50,15,.12)}
.cg-picker .modal{max-width:440px}
.cg-picker .cg-name{width:100%;margin-bottom:10px}
.cg-picker .cg-search{margin:0 0 8px}
.cg-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.cg-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 3px;border-radius:999px;background:var(--blue-soft);color:var(--ink);font-size:13px;font-weight:700}
.cg-chip img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.cg-chip i{font-style:normal;color:var(--ink-3);font-size:11px}
.cg-results{max-height:min(46vh,360px);overflow-y:auto;margin-bottom:12px}
.cg-res{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border-radius:12px;text-align:left;background:none;border:0;cursor:pointer;color:inherit}
.cg-res:hover{background:var(--canvas)}
.cg-res img{width:40px;height:40px;border-radius:25%;object-fit:cover;flex-shrink:0}
.cg-res span{flex:1;min-width:0}
.cg-res b{display:block;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cg-res i{display:block;font-style:normal;font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cg-tick{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;color:transparent;flex-shrink:0}
.cg-tick svg{width:14px;height:14px}
.cg-res.on .cg-tick{background:var(--blue);border-color:var(--blue);color:var(--on-accent)}
.cg-hint{color:var(--ink-3);font-size:13.5px;text-align:center;padding:18px 6px}
.cg-go{width:100%}
.cg-row-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.cg-info-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.cg-info-av{width:56px;height:56px;border-radius:25%;object-fit:cover;flex-shrink:0}
.cg-info-av.cg-ini{font-size:20px}
.cg-info-head div{min-width:0}
.cg-info-head b{display:block;font-size:17px;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
.cg-info-head i{display:block;font-style:normal;font-size:13px;color:var(--ink-3)}
.cg-info-head i a{color:var(--blue);font-weight:700}
/* the group photo: admins get the Page's camera badge on it; a spinner while a new one uploads; a tap shows it big */
.cg-info-avw{position:relative;flex-shrink:0;line-height:0}
.cg-av-cam{position:absolute;right:-6px;bottom:-6px;width:28px;height:28px;padding:0;border-radius:50%;background:#15171a;border:2px solid var(--surface,#1b1c1f);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.cg-av-cam svg{width:14px;height:14px}
.cg-info-avw.busy{pointer-events:none}
.cg-info-avw.busy .cg-info-av{opacity:.45}
.cg-info-avw.busy::after{content:'';position:absolute;top:50%;left:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;animation:spin .8s linear infinite}
.cg-info-av.av-zoom{cursor:zoom-in}
.cg-info-acts{margin-bottom:8px}
.cg-members{max-height:min(46vh,380px);overflow-y:auto;margin:6px 0 10px;border-top:1px solid var(--line);padding-top:6px}
.cg-mem{display:flex;align-items:center;gap:8px;padding:2px 0}
.cg-mem a{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:6px;border-radius:10px;color:inherit}
.cg-mem a:hover{background:var(--canvas)}
.cg-mem img:not(.ver-tick){width:38px;height:38px;border-radius:25%;object-fit:cover;flex-shrink:0}   /* not the verified tick inside the name */
.cg-mem span{min-width:0;flex:1}
.cg-mem b{display:block;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cg-mem b em{font-style:normal;font-weight:500;color:var(--ink-3)}
.cg-mem .ver-tick{width:15px;height:15px;vertical-align:-2px}
.cg-admin{display:inline-block;margin-top:2px;padding:1px 8px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-style:normal;font-size:11px;font-weight:800}
.cg-mem-more{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink-3);flex-shrink:0}
.cg-mem-more:hover{background:var(--canvas)}
.cg-mem-more svg{width:18px;height:18px}

/* ---------- Stickers: ":STK-<id>:" codes (old als.social) drawn as pictures + the comment / chat pickers ---------- */
.stk{display:inline-block;width:1.9em;height:1.9em;object-fit:contain;vertical-align:-.5em;margin:0 1px}
.stk.stk-big{display:block;width:108px;height:108px;margin:4px 0 2px}
.comment .bubble .stk.stk-big{margin-top:6px}
.stk-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;flex-shrink:0;color:var(--ink-3);background:none;border:0;cursor:pointer;padding:0}
.stk-btn:hover{color:var(--blue);background:var(--canvas)}
.stk-btn svg{width:22px;height:22px}
.comment-form .stk-btn{margin-right:-2px}
.stk-sheet .modal{max-width:460px}
.stk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px;max-height:min(58vh,460px);overflow-y:auto;padding:2px}
.stk-pick{aspect-ratio:1;border-radius:14px;padding:7px;background:var(--canvas);border:0;cursor:pointer;transition:transform .12s ease}
.stk-pick:hover{background:var(--blue-soft);transform:scale(1.04)}
.stk-pick img{width:100%;height:100%;object-fit:contain;pointer-events:none}
/* a chat message that is only a sticker: no bubble, the time on a small pill below */
.msgr-thread .msgr-msgs .bubble-row .bubble.bubble-stk{background:transparent;box-shadow:none;padding:0}
.msgr-thread .msgr-msgs .bubble-row .bubble.bubble-stk time{display:inline-block;margin-top:2px;padding:1px 8px;border-radius:999px;background:rgba(24,44,14,.42);color:#fff;opacity:1}
.bubble.bubble-stk .bub-name{padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.92);display:inline-block}
.reel-cap .stk.stk-big,.se-cap .stk.stk-big,.mrc .stk.stk-big{display:inline-block;width:64px;height:64px;margin:2px 0}

/* ===== KLYPS (was "Reels" — Meta's trademark): the logo replaces the Reels icon everywhere. One image,
   /img/klyps/klyps-128.webp (9 KB, from the 1.9 MB original; -64 / -512 also in the folder), sized like the icon it
   replaced in each place (the old SVG rules no longer reach an <img>). ===== */
.klyps-ic{display:inline-block;flex:0 0 auto;width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.32em;border-radius:24%;-webkit-user-drag:none;user-select:none}
.post-reel-badge .klyps-ic{width:17px;height:17px;vertical-align:middle}
.reel-shelf-head .rs-ic .klyps-ic{display:block;width:28px;height:28px}
.dot-reel .klyps-ic{width:24px;height:24px}
.btn .klyps-ic{width:22px;height:22px}
.pd-tab .klyps-ic{width:20px;height:20px}
.rum-typebtn .klyps-ic{width:22px;height:22px}
.rb-ph .klyps-ic{width:46px;height:46px;opacity:.92}
.pd-reel-noimg .klyps-ic{width:48px;height:48px;opacity:.92}
.reel-empty .klyps-ic{width:76px;height:76px}
.au-recent-ph .klyps-ic{width:34px;height:34px}
.ad-thumb-vid .klyps-ic{width:24px;height:24px}
.sc-ic .klyps-ic{width:24px;height:24px}
.auc-ic.pink:has(.klyps-ic){background:none}
.auc-ic .klyps-ic{width:48px;height:48px}
/* the phone footer: the logo badge in place of the 3D clapper, a touch smaller so its glow sits inside the slot */
.mob-nav .row .mob-3d.mob-klyps{width:30px;height:30px;border-radius:24%}
/* the KLYPS page title wears the logo */
.rb-title{display:flex;align-items:center;gap:10px}
.rb-logo{flex:0 0 40px;width:40px;height:40px;border-radius:24%;object-fit:contain}

/* Sign-in / sign-up card: "Get the app" — App Store + Android APK badges (appBadgesHtml; hidden in the apps) */
.auth-apps{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);text-align:center}
.auth-apps-t{font-size:13px;font-weight:700;color:var(--ink-2);margin-bottom:10px}
.auth-apps-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.app-badge{display:inline-flex;align-items:center;gap:9px;min-width:150px;padding:8px 14px 8px 12px;border-radius:12px;background:#0b0b0d;color:#fff;
  border:1px solid rgba(255,255,255,.18);text-decoration:none;text-align:left;line-height:1.15;transition:transform .15s,box-shadow .15s}
.app-badge:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.25)}
.app-badge svg{width:26px;height:26px;flex:none}
.app-badge:last-child svg{color:#3ddc84}
.app-badge small{display:block;font-size:10.5px;opacity:.85;font-weight:500}
.app-badge b{display:block;font-size:16px;font-weight:700;letter-spacing:.1px}
.auth-apps-note{margin:9px 0 0;font-size:11.5px;line-height:1.45;color:var(--ink-3)}
@media (max-width:420px){
  .auth-apps-row{flex-wrap:nowrap;gap:8px}
  .app-badge{flex:1 1 0;min-width:0;padding:7px 9px;gap:7px}
  .app-badge svg{width:22px;height:22px}
  .app-badge small{font-size:9.5px;white-space:nowrap}
  .app-badge b{font-size:14px;white-space:nowrap}
}
/* Page viewers (pgViewsHtml / openPageViewers in app.js): the count by the @handle and in About — a link for the page's
   admins — and the list sheet (the reactions list's look; a heart on the avatar of people who like the page). */
.pp2-views{display:inline-flex;align-items:center;gap:5px;margin-left:10px;color:var(--ink-3);font-size:15px;vertical-align:middle}
.pp2-views svg{width:16px;height:16px;flex:none}
.pp2-views-link{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.pp2-views.is-link,.pp2-views-row .pp2-views-link{color:var(--blue)}
.pp2-views-link:hover{text-decoration:underline}
.pv-title{flex:1;display:flex;align-items:center;gap:8px;padding:2px 6px;font-size:16px;color:var(--ink)}
.pv-title svg{width:20px;height:20px;color:var(--blue);flex:none}
.pv-title i{font-style:normal;font-weight:700;color:var(--ink-3)}
.pv-note{margin:8px 16px 2px;font-size:12.5px;line-height:1.45;color:var(--ink-3)}
.pv-like{position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:50%;background:var(--heart);border:2px solid var(--surface);
  display:flex;align-items:center;justify-content:center;color:#fff}
.pv-like svg{width:11px;height:11px;fill:currentColor;stroke:none}
.pv-liked{color:var(--heart);font-weight:600}
@media (max-width:600px){.pp2-views{display:flex;margin:3px 0 0}}   /* phones: its own line under the @handle */

/* ---------- Admin › Dashboard (round 64): the owner's "Hello Admin!" design — soft cards on a warm haze ----------
   app.js renderAdminDashboard / dshLineChart / dshBarChart / dshGauge / dshKpiCard. Series colours come from app.js
   (DSH_COL, validated light + dark); everything else is the site's tokens so dark mode follows. */
.admin-main.dsh-main{background:none;border:0;padding:0;box-shadow:none}
.dsh{position:relative;border-radius:22px;padding:26px 24px 28px;transition:opacity .2s;
  background:radial-gradient(900px 420px at 72% -8%,rgba(255,176,140,.20),transparent 62%),radial-gradient(760px 520px at -8% 38%,rgba(150,176,255,.16),transparent 60%),radial-gradient(700px 400px at 100% 100%,rgba(255,196,214,.14),transparent 60%),var(--canvas)}
html[data-theme="dark"] .dsh{background:radial-gradient(900px 420px at 72% -8%,rgba(255,140,90,.08),transparent 62%),radial-gradient(760px 520px at -8% 38%,rgba(91,130,224,.10),transparent 60%),var(--canvas)}
.dsh.dsh-busy{opacity:.55;pointer-events:none}
.dsh-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.dsh-hello h1{font-size:30px;font-weight:800;letter-spacing:-.4px;color:var(--ink);line-height:1.2}
.dsh-hello p{margin-top:8px;font-size:14px;color:var(--ink-2);max-width:440px;line-height:1.55}
.dsh-tools{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;flex-shrink:0}
.dsh-selw{position:relative;display:inline-flex;align-items:center}
.dsh-selw select{appearance:none;-webkit-appearance:none;font:inherit;font-size:14px;font-weight:700;color:var(--ink);background:var(--surface);border:1px solid var(--line);
  border-radius:12px;height:42px;padding:0 36px 0 14px;cursor:pointer;box-shadow:0 8px 22px rgba(18,17,25,.07)}
.dsh-selw select:disabled{opacity:.5;cursor:default}
.dsh-selw svg{position:absolute;right:10px;width:18px;height:18px;color:var(--ink-2);pointer-events:none}
.dsh-year select{min-width:104px}
.dsh-search{display:flex;align-items:center;gap:8px;height:42px;width:min(320px,100%);padding:0 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 22px rgba(18,17,25,.07)}
.dsh-search svg{width:18px;height:18px;color:var(--ink-3);flex-shrink:0}
.dsh-search input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:14px;color:var(--ink);outline:none}
.dsh-ovh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.dsh-ovh h2{font-size:26px;font-weight:800;color:var(--ink);letter-spacing:-.3px}
.dsh-cta{display:inline-flex;align-items:center;gap:4px;height:42px;padding:0 20px;border-radius:12px;background:linear-gradient(180deg,#F7A350,#EC7A2C);color:#fff;font-weight:800;font-size:14px;
  box-shadow:0 10px 24px rgba(236,122,44,.32);text-decoration:none;transition:transform .15s,box-shadow .15s}
.dsh-cta:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(236,122,44,.38)}
/* five KPI cards */
.dsh-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:20px}
.dsh-kpi{display:flex;align-items:center;gap:12px;min-width:0;padding:16px 14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 12px 30px rgba(18,17,25,.07);color:inherit;text-decoration:none;transition:transform .15s,box-shadow .15s}
a.dsh-kpi:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(18,17,25,.11)}
.dsh-ring{flex-shrink:0;display:block}
.dsh-ring-in{fill:var(--surface);filter:drop-shadow(0 3px 6px rgba(18,17,25,.12))}
.dsh-ring-ar{stroke:var(--ink-2)}
.dsh-kpi-t{display:flex;flex-direction:column;min-width:0}
.dsh-kpi-t b{font-size:26px;font-weight:800;color:var(--ink);line-height:1.1;letter-spacing:-.3px;white-space:nowrap}
.dsh-kpi-t span{font-size:14px;color:var(--ink-2);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dsh-kpi-t small{font-size:11.5px;font-weight:800;margin-top:3px;color:var(--ink-3);white-space:nowrap}
.dsh-kpi-t small.good{color:#0E8F5B}.dsh-kpi-t small.bad{color:#D0453F}
html[data-theme="dark"] .dsh-kpi-t small.good{color:#3DD598}html[data-theme="dark"] .dsh-kpi-t small.bad{color:#FF7A73}
.dsh-kpi-t small em{font-style:normal;font-weight:600;color:var(--ink-3)}
/* the four chart cards */
.dsh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.dsh-c-line,.dsh-c-bars{grid-column:span 2}
.dsh-card{position:relative;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px 20px 16px;box-shadow:0 14px 34px rgba(18,17,25,.07)}
.dsh-ch{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dsh-ch h3{font-size:16px;font-weight:800;color:var(--ink)}
.dsh-ch-r{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dsh-pick select{font-size:15px;font-weight:800}
.dsh-by{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--ink-2)}
.dsh-by select{height:38px;font-size:13.5px}
.dsh-dl{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 8px 20px rgba(18,17,25,.07);transition:color .15s,background .15s;flex-shrink:0;padding:0}
.dsh-dl:hover{color:var(--ink);background:var(--surface-2)}
.dsh-dl svg{width:19px;height:19px}
.dsh-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:14px;font-size:12.5px;color:var(--ink-2)}
.dsh-legend span{display:inline-flex;align-items:center;gap:7px}
.dsh-key{display:inline-block;width:14px;height:3px;border-radius:2px;flex-shrink:0}
.dsh-key.dot{width:10px;height:3px;background:repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px)!important;color:var(--ink-3)}
.dsh-note{font-size:11.5px;color:var(--ink-3);margin-top:4px}
.dsh-plot{position:relative;margin-top:2px;outline:none;border-radius:12px}
.dsh-plot:focus-visible{box-shadow:0 0 0 2px var(--blue)}
.dsh-svg{display:block;overflow:visible;touch-action:pan-y}
.dsh-ax{font-size:11.5px;fill:var(--ink-3);font-variant-numeric:tabular-nums}
.dsh-ax.dim{opacity:.45}
.dsh-base{stroke:var(--line);stroke-width:1}
.dsh-cross{stroke:var(--ink-3);stroke-width:1;opacity:.55}
.dsh-ln{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.dsh-mk{stroke:var(--surface);stroke-width:2.5}
.dsh-tot{fill:none;stroke:var(--ink-3);stroke-width:1.6;stroke-dasharray:.1 5;stroke-linecap:round;opacity:.9}
.dsh-trk{opacity:.16}
.dsh-col.on .dsh-trk{opacity:.3}
.dsh-col.on path{filter:brightness(1.08)}
/* the tooltip: a soft white card pinned at the top of the plot */
.dsh-tip{position:absolute;top:0;transition:left .12s ease,top .12s ease;min-width:150px;max-width:calc(100% - 8px);padding:10px 14px 11px;background:var(--surface);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 14px 34px rgba(18,17,25,.14);pointer-events:none;z-index:2;display:flex;align-items:center;gap:12px}
.dsh-tip[hidden]{display:none}
.dsh-tip-t{display:block;font-size:13.5px;font-weight:800;color:var(--ink);margin-bottom:5px;white-space:nowrap}
.dsh-tip-g{display:grid;grid-template-columns:repeat(2,auto);gap:3px 14px}
.dsh-tip-r{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-3);white-space:nowrap}
.dsh-tip-r b{color:var(--ink);font-weight:800;font-size:12.5px}
.dsh-tip-ring{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.dsh-tip-ring b{position:absolute;font-size:10px;font-weight:800;color:var(--ink)}
/* Active Members: the half gauge */
.dsh-gauge{display:flex;justify-content:center;margin-top:10px}
.dsh-gauge-svg{width:100%;max-width:300px;height:auto;overflow:visible}
.dsh-g-trk{stroke:#F4EEE9}
html[data-theme="dark"] .dsh-g-trk{stroke:var(--surface-2)}
.dsh-g-btn{fill:var(--surface);filter:drop-shadow(0 4px 10px rgba(18,17,25,.14))}
.dsh-g-ic{color:var(--ink-2)}
.dsh-g-v{font-size:34px;font-weight:800;fill:var(--ink)}
.dsh-g-sub{text-align:center;font-size:13px;color:var(--ink-2);margin-top:6px;line-height:1.5}
.dsh-g-sub b{color:var(--ink)}
.dsh-g-mini{display:flex;justify-content:center;gap:18px;margin-top:8px;font-size:12.5px;color:var(--ink-3)}
.dsh-g-mini b{color:var(--ink);font-weight:800}
/* Profile Statistics: thin progress bars */
.dsh-pf{display:flex;flex-direction:column;gap:18px;margin-top:20px}
.dsh-pf-h{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--ink);margin-bottom:8px}
.dsh-pf-h b{font-weight:800}
.dsh-pf-bar{height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.dsh-pf-bar i{display:block;height:100%;border-radius:inherit;min-width:4px}
.dsh-pf-a{background:linear-gradient(90deg,#F7A55B,#E8792B)}
.dsh-pf-b{background:linear-gradient(90deg,#4FC3E8,#3E5A9A)}
.dsh-pf-c{background:linear-gradient(90deg,#7BD389,#1E9E91)}
.dsh-pf-d{background:linear-gradient(90deg,#C084FC,#7C3AED)}
.dsh-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (max-width:1180px){ .dsh-kpis{grid-template-columns:repeat(3,minmax(0,1fr))} .dsh-tools{flex-wrap:wrap} }
@media (max-width:980px){ .dsh-grid{grid-template-columns:minmax(0,1fr)} .dsh-c-line,.dsh-c-bars{grid-column:auto} }
@media (max-width:680px){
  .dsh{padding:18px 12px 20px;border-radius:18px}
  .dsh-hello h1{font-size:24px}
  .dsh-tools{width:100%;flex-shrink:1}.dsh-search{flex:1;width:auto;min-width:0}
  .dsh-ovh h2{font-size:21px}
  .dsh-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dsh-kpi{padding:12px 10px;gap:8px}.dsh-kpi .dsh-ring{width:48px;height:48px}
  .dsh-kpi-t b{font-size:21px}.dsh-kpi-t span{font-size:13px}
  .dsh-card{padding:16px 14px 12px}
  .dsh-by>span:first-child{display:none}
}

/* Admin › Users › edit › Security: the phones registered for push + the test (round 65; app.js mountAuePush) */
.aue-push{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:16px;background:var(--surface-2)}
.aue-push-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14.5px;color:var(--ink)}
.aue-push-off{font-size:12.5px;color:var(--heart)}
.aue-push-l{list-style:none;margin:10px 0 12px;padding:0;display:flex;flex-direction:column;gap:6px}
.aue-push-l li{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;font-size:13.5px;color:var(--ink)}
.aue-push-l li span{color:var(--ink-3);font-size:12.5px}
.aue-push-none{font-size:13px;color:var(--ink-2);line-height:1.55;margin:8px 0 2px}
.aue-push-res{margin-top:10px;display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:1.5}
.aue-push-r.ok{color:#0E8F5B}.aue-push-r.bad{color:#D0453F}
html[data-theme="dark"] .aue-push-r.ok{color:#3DD598}html[data-theme="dark"] .aue-push-r.bad{color:#FF7A73}

/* banned accounts (round 66): the suspended card for visitors, the note administrators see on the profile */
.pf-suspended b{display:block;font-size:17px;color:var(--ink);margin:6px 0 4px}
.pf-suspended p{color:var(--ink-2);max-width:420px;margin:0 auto;line-height:1.55}
.pf-ban-note{margin:0 0 12px;padding:10px 14px;border-radius:12px;background:rgba(208,69,63,.1);border:1px solid rgba(208,69,63,.35);color:#B93A34;font-size:13.5px;font-weight:700}
html[data-theme="dark"] .pf-ban-note{color:#FF8A84}

/* Store apps (round 67): "Get the app" on phones in a browser, "Update available" in the apps — a card above the
   bottom menu (app.js storeCard / maybeShowAppCard / checkAppUpdate) */
.app-card{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom, 0px));transform:translate(-50%,160%);width:min(460px,calc(100% - 20px));z-index:300;
  display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:18px;
  box-shadow:0 18px 50px rgba(18,17,25,.28);transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.app-card.show{transform:translate(-50%,0)}
.app-card-ic{width:48px;height:48px;border-radius:12px;box-shadow:0 2px 8px rgba(18,17,25,.15)}
.app-card-t{display:flex;flex-direction:column;min-width:0}
.app-card-t b{font-size:15px;font-weight:800;color:var(--ink);line-height:1.3}
.app-card-t span{font-size:12.5px;color:var(--ink-2);line-height:1.45;margin-top:2px}
.app-card-act{grid-column:1 / -1;display:flex;gap:10px;align-items:center}
.app-card-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:12px;background:#111;color:#fff;font-weight:800;font-size:14.5px;text-decoration:none}
html[data-theme="dark"] .app-card-btn{background:#fff;color:#111}
.app-card-btn svg{width:20px;height:20px;flex-shrink:0}
.app-card-x{height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
@media (max-width:680px){ .app-card{bottom:calc(84px + env(safe-area-inset-bottom, 0px))} }   /* above the bottom menu (72 px incl. its margin) */
@media (prefers-reduced-motion:reduce){ .app-card{transition:none!important} }

/* Admin › Settings › Telegram alerts (round 68) */
.tg-st{padding:12px 14px;border-radius:12px;font-size:14px;margin-bottom:14px;border:1px solid var(--line)}
.tg-st.on{background:rgba(14,143,91,.08);border-color:rgba(14,143,91,.3);color:#0E8F5B}
.tg-st.off{background:rgba(208,69,63,.08);border-color:rgba(208,69,63,.3);color:#B93A34}
html[data-theme="dark"] .tg-st.on{color:#3DD598}html[data-theme="dark"] .tg-st.off{color:#FF8A84}
.tg-act{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}#set-panel .tg-act .btn{margin:0}

/* ALS Earn: the header tab's round icon, the footer's Earn (where Cart was), the cart in the phone header, and the
   in-app sheet on phones (openEarnSheet) */
.nav-tab .nav-ico-earn{border-radius:50%;box-shadow:0 0 0 1.5px rgba(22,163,74,.35)}
.mob-earn .mob-earn-ic{border-radius:50%}
@media (max-width:680px){ .nav-right .nav-cart{display:flex} }
html.earn-open,html.earn-open body{overflow:hidden}
.earn-sheet{position:fixed;inset:0;z-index:460;display:flex;flex-direction:column;background:var(--surface);animation:earnIn .22s ease}
@keyframes earnIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.earn-bar{display:flex;align-items:center;gap:8px;padding:calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;background:var(--surface);border-bottom:1px solid var(--line)}
.earn-btn{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--canvas);color:var(--ink)}
.earn-btn svg{width:19px;height:19px}
.earn-t{flex:1;min-width:0;display:flex;align-items:center;gap:9px}
.earn-t img{width:32px;height:32px;border-radius:50%;flex:0 0 32px}
.earn-t span{min-width:0}
.earn-t b{display:block;font-size:15px;font-weight:800;color:var(--ink);line-height:1.2}
.earn-t i{display:block;font-style:normal;font-size:12px;color:var(--ink-3);line-height:1.2}
.earn-body{position:relative;flex:1;min-height:0;background:#fff}
.earn-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}
.earn-body .spinner{position:absolute;top:38%;left:50%;margin-left:-16px}
.earn-sheet.loaded .earn-body .spinner{display:none}

/* ---- Profile (round 82): the member's own link, About, Saved (posts | KLYPS), who sees your friends ---- */
.pd-link{display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;margin:-4px auto 14px;padding:5px 5px 5px 12px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--ink-2)}
.pd-link-ic{display:flex;color:var(--blue)}
.pd-link-ic svg{width:15px;height:15px}
.pd-link-url{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--ink)}
.pd-link-btn{flex:0 0 auto;padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font-size:12.5px;font-weight:700;cursor:pointer}
.pd-link-btn:hover{border-color:var(--blue);color:var(--blue)}
.pd-intro{margin:0 0 22px;padding:16px 18px}
.pd-in-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.pd-in-head h2{margin:0;font-size:17px}
.pd-in-edit{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--blue);text-decoration:none}
.pd-in-edit svg{width:14px;height:14px}
.pd-in-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.pd-in-row{display:flex;align-items:flex-start;gap:11px;font-size:14.5px;line-height:1.4;color:var(--ink-2)}
.pd-in-ic{flex:0 0 22px;display:flex;justify-content:center;padding-top:1px;color:var(--ink-3)}
.pd-in-ic svg{width:18px;height:18px}
.pd-in-t{min-width:0;overflow-wrap:anywhere}
.pd-in-t b{font-weight:600;color:var(--ink)}
.pd-in-t a{font-weight:600;color:var(--blue);text-decoration:none}
.pd-in-sub{display:block;margin-top:2px;font-style:normal;font-size:13px;color:var(--ink-3)}
.pd-in-folded:not(.pd-in-open) .pd-in-row:nth-child(n+6){display:none}
.pd-in-more{margin-top:12px;padding:0;border:0;background:none;color:var(--blue);font-size:13.5px;font-weight:700;cursor:pointer}
.pd-socs{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.pd-soc{padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2);font-size:13px;font-weight:700;text-decoration:none}
.pd-soc:hover{border-color:var(--blue);color:var(--blue)}
.pd-in-nudge{margin:0;font-size:14px;color:var(--ink-3)}
.pd-sv-sw{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 16px}
.pd-sv{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font-size:14px;font-weight:700;cursor:pointer}
.pd-sv svg,.pd-sv img{width:17px;height:17px}
.pd-sv span{font-weight:500;opacity:.75}
.pd-sv.on{background:var(--blue);border-color:var(--blue);color:var(--on-accent)}
.pd-fr-who{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--ink-3)}
.pd-fr-who select{padding:7px 10px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:13px;font-weight:600}
/* the profile photo's story ring: blue = stories up (a tap plays them), grey = none (a tap opens the photo); a clear gap
   between the ring and the photo (the border is transparent: the hero shows through it) */
.pd-avatar-btn.pd-ring-story .pd-avatar,.pd-avatar-btn.pd-ring-none .pd-avatar{border:3px solid transparent;background-clip:content-box;box-shadow:0 0 0 3px var(--pd-ring)}
.pd-avatar-btn.pd-ring-story{--pd-ring:var(--blue);cursor:pointer}
.pd-avatar-btn.pd-ring-none{--pd-ring:#9aa3b1}

/* ---- Profile › Activity (round 83): your activity log ---- */
.act-note{display:flex;align-items:center;gap:7px;margin:-6px 0 14px;font-size:13px;color:var(--ink-3)}
.act-note svg{width:14px;height:14px;flex:0 0 14px}
.act-day{margin:18px 2px 8px;font-size:12.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--ink-3)}
.act-it{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;margin-bottom:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none}
a.act-it:hover{border-color:var(--blue)}
.act-ic{flex:0 0 34px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--blue-soft);color:var(--blue)}
.act-ic svg{width:17px;height:17px}
.act-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.act-h{font-size:14.5px;font-weight:700;color:var(--ink)}
.act-who{display:flex;align-items:center;gap:7px;min-width:0;font-size:13px;color:var(--ink-2)}
.act-who img{width:20px;height:20px;flex:0 0 20px;border-radius:50%;object-fit:cover}
.act-who b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.act-snip,.act-quote{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:13px;color:var(--ink-2)}
.act-quote{font-style:italic}
.act-reason,.act-gone{font-size:12.5px;color:var(--ink-3)}
.act-gone{font-style:italic}
.act-t{font-size:12px;color:var(--ink-3)}
.act-th{flex:0 0 52px;width:52px;height:52px;border-radius:10px;object-fit:cover;background:var(--surface-2)}
/* the sign-up form's honeypot (round 86): out of sight and out of the tab order — people leave it empty, form bots fill it */
.hp-field{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
.feat-card .feat-ic img{width:22px;height:22px;display:block;object-fit:contain}   /* the sign-in page's Earn card (round 88) */

/* ---- the feed's right column for logged-out visitors: Pro users (round 89) ---- */
.pro-user{display:flex;align-items:center;gap:10px;padding:8px 0;color:inherit;text-decoration:none}
.pro-user + .pro-user{border-top:1px solid var(--line)}
.pro-user:hover b{color:var(--blue)}
.pu-i{min-width:0;display:flex;flex-direction:column;gap:2px}
.pu-i b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pu-pkg{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700}
.pu-pkg svg{width:14px;height:14px;flex:0 0 14px}
/* round 90: Sign in with Apple (the iPhone app) — Apple's look: black on light, white on dark, the size of its neighbours;
   the phone-code fallback link under the social buttons */
.apple-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:300px;max-width:100%;padding:11px 16px;border-radius:999px;background:#000;color:#fff;font-weight:700;font-size:14.5px;border:none;cursor:pointer;transition:filter .15s,transform .1s}
.apple-btn:active{transform:scale(.98)}
.apple-btn svg{flex:0 0 18px;margin-top:-2px}
html[data-theme=dark] .apple-btn{background:#fff;color:#000}
.auth-alt-link{display:block;margin:12px auto 0;background:none;border:0;padding:4px 6px;color:var(--ink-3);font:inherit;font-size:12.5px;text-decoration:underline;cursor:pointer}
.auth-alt-link:hover{color:var(--ink-2)}
/* round 91: the human check (Turnstile shows only when it needs a tap; the apps' frame grows to fit it) */
.human-box{display:flex;justify-content:center;margin:2px 0 12px}
.human-box:empty{margin:0}
.human-frame{display:block;width:100%;max-width:320px;height:0;border:0;margin:0 auto;transition:height .2s;color-scheme:normal}

/* ---- Pro members: a small 3D badge on the top-left of their profile photos (owner 2026-11-24; isPro / proBadge / proWrap
   in app.js). It only ever sits in an element that holds just the photo (.pro-av positions it) or in .pro-wrap around a
   photo that shares a row with text; nobody else's markup changes. ---- */
.pro-av{position:relative}
.pro-wrap{display:inline-block;line-height:0;flex-shrink:0;vertical-align:middle}
.pro-3d{position:absolute;top:-3px;left:-3px;z-index:2;width:46%;min-width:14px;max-width:22px;aspect-ratio:1/1;background:url(/img/pro-3d.png?v=1) center/contain no-repeat;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.3))}
/* Where it sits: its CENTRE on the photo's outline at the corner — half in, half out (owner 2026-11-24). -3px does that on
   a round photo (search, who reacted, a shared video's author). The app's avatars are rounded squares (25% corners, see
   "Profile avatars: rounded-square"), whose corner curve lies much nearer the box corner, so those get their own offset:
   centre = r(1-1/√2) in from each side (r = 25% of the side), minus half the badge. */
.post-av>.pro-3d,.sug>a>.pro-3d,.pro-user .pro-wrap>.pro-3d{top:-6.3px;left:-6.3px}   /* 40 px photos (badge 18.4 px) */
.comment>a>.pro-3d,.post-embed-head .pro-wrap>.pro-3d{top:-5px;left:-5px}            /* 32 px (badge 14.7 px) */
.reel-user a>.pro-3d{top:-6px;left:-6px}                                               /* 38 px, KLYPS player */
.pd-avatar-wrap>.pro-3d{top:-8px;left:-8px;width:30%;max-width:42px}   /* the profile page's 92 px photo: on its ring (3 px, outside) */
.pyk-photo>.pro-3d{top:8px;left:8px;width:22%;max-width:32px}         /* People you may know cards (a photo, not an outline) */

/* ---- Your own new post on the feed: it slides in on top and is lit for a moment (owner 2026-11-24, feedPrepend) ---- */
.post.post-new{animation:postNewIn .45s cubic-bezier(.2,.9,.3,1.15) both,postNewGlow 2.4s ease-out}
@keyframes postNewIn{from{opacity:0;transform:translateY(-12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes postNewGlow{0%,35%{outline:2px solid color-mix(in srgb,var(--blue) 75%,transparent);outline-offset:0}100%{outline:2px solid transparent;outline-offset:5px}}

/* ---- Pro boosts (round 96): the Sponsored label, a sponsored page / group / event card, the Boost sheet, My boosts ---- */
.ad-spons{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--ink-2)}
.post.post-ad .ad-spons::before{content:"";width:6px;height:6px;border-radius:50%;background:#f3b53c}
.ad-card{margin-bottom:16px;overflow:hidden;padding:0}
.ad-card-top{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;font-size:13px}
.ad-card-top .ad-spons::before{content:"";width:6px;height:6px;border-radius:50%;background:#f3b53c}
.ad-kind{color:var(--ink-2);font-weight:600}
.ad-card-cover{display:block;aspect-ratio:16/7;background:var(--surface-2);overflow:hidden}
.ad-card-cover img{width:100%;height:100%;object-fit:cover;display:block}
.ad-card-body{display:flex;align-items:center;gap:12px;padding:12px 14px}
.ad-card-av{flex:0 0 auto;width:48px;height:48px;border-radius:25%;overflow:hidden;background:var(--surface-2)}
.ad-card-av img{width:100%;height:100%;object-fit:cover;display:block}
.ad-card-txt{flex:1;min-width:0;color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:2px}
.ad-card-txt b{font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-card-txt span{font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-card-cta{flex:0 0 auto;padding:9px 14px;font-size:14px;text-decoration:none;white-space:nowrap}
.pp2-boost,.pp-boost{padding:10px 16px;font-size:14.5px}
.bst-modal .modal{max-width:440px}
.bst-modal .ad-dim,.bst-page .ad-dim{white-space:normal}   /* .ad-dim is nowrap (made for tables) */
.bst-ic{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f3b53c;color:#3a2c00;flex:0 0 auto}
.bst-ic svg{width:22px;height:22px}
.bst-what{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.bst-what>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.bst-what b{font-size:15px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.bst-stat{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px;font-size:14px}
.bst-stat b{font-size:20px}
.bst-st{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;background:var(--surface-2);color:var(--ink-2)}
.bst-st-active{background:color-mix(in srgb,#16a34a 16%,transparent);color:#15803d}
.bst-st-paused{background:color-mix(in srgb,#f3b53c 22%,transparent);color:#a16207}
.bst-acts{display:flex;gap:8px;margin-bottom:12px}
.bst-acts .btn{flex:1}
.bst-stop{color:#dc2626}
.bst-lbl{display:block;font-weight:700;font-size:14px;margin:4px 0 6px}
.bst-note{font-size:12.5px;margin:8px 0 12px}
.bst-go{width:100%}
.bst-all{display:block;text-align:center;margin-top:12px;font-weight:700;color:var(--blue);text-decoration:none}
.bst-pro{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:6px 0}
.bst-page{max-width:720px;margin:0 auto;padding:18px 14px 40px}
.bst-h1{display:flex;align-items:center;gap:12px;font-size:24px;margin:4px 0 16px}
.bst-allow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;padding:16px}
.bst-al{display:flex;flex-direction:column;gap:5px;min-width:0}
.bst-al .mb-bar{min-width:0}
.bst-how{font-size:13px;margin:12px 2px 16px}
.bst-list{display:flex;flex-direction:column;gap:10px}
.bst-row{display:flex;align-items:center;gap:12px;padding:10px 12px;flex-wrap:wrap}
.bst-thumb{flex:0 0 auto;width:52px;height:52px;border-radius:12px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center;color:var(--ink-2)}
.bst-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.bst-thumb svg{width:22px;height:22px}
.bst-row-t{flex:1;min-width:140px;display:flex;flex-direction:column;gap:3px}
.bst-row-t a{color:inherit;text-decoration:none}
.bst-row-t b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bst-row-acts{display:flex;gap:6px}
.bst-row-acts .btn{padding:7px 12px;font-size:13px}
@media (max-width:520px){.bst-allow{grid-template-columns:1fr}.bst-row-acts{width:100%}.bst-row-acts .btn{flex:1}}

/* ---- Round 97: the ⚡ Boost button beside a post's ••• (the member's own post, when they can boost); gold while it boosts ---- */
.post-boost-btn{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:0;cursor:pointer;
  background:color-mix(in srgb,#f3b53c 20%,transparent);color:#b7791f;transition:transform .15s,background .15s}
.post-boost-btn svg{width:18px;height:18px}
.post-boost-btn:hover{background:color-mix(in srgb,#f3b53c 34%,transparent)}
.post-boost-btn:active{transform:scale(.92)}
.post-boost-btn[aria-disabled="true"]{opacity:.38;filter:grayscale(1);cursor:not-allowed}   /* round 111: a share can't be boosted */
.post-boost-btn[aria-disabled="true"]:hover{background:none}
.post-boost-btn.on{background:#f3b53c;color:#3a2c00;box-shadow:0 0 0 0 rgba(243,181,60,.55);animation:boostPulse 2.4s ease-out infinite}
@keyframes boostPulse{0%{box-shadow:0 0 0 0 rgba(243,181,60,.55)}70%{box-shadow:0 0 0 9px rgba(243,181,60,0)}100%{box-shadow:0 0 0 0 rgba(243,181,60,0)}}
@media (prefers-reduced-motion:reduce){.post-boost-btn.on{animation:none}}

/* ---------- Admin › Users › List Pro Users (round 98) ---------- */
.pu-card{font:inherit;color:inherit;text-align:left;width:100%;cursor:pointer}
.pu-card:hover{border-color:var(--blue)}
.pu-card.on{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-soft)}
.pu-card b{font-variant-numeric:tabular-nums}
.pu-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.pu-filters .set-input{width:auto;flex:1 1 170px;padding:9px 12px}
.pu-pkg{display:inline-flex;align-items:center;gap:8px}
.pu-pkg .pkg-ic{color:inherit}
.pu-pkg b{color:var(--ink);font-weight:700}
.pu-tag{display:inline-block;margin-top:5px;padding:2px 8px;border-radius:999px;background:var(--canvas);color:var(--ink-2);font-size:11.5px;font-weight:700;white-space:nowrap}
.pu-st{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}
.pu-st-on{background:#e3f7ea;color:#147a3b}
.pu-st-soon,.pu-tag-old{background:#fff1d6;color:#8a5200}
.pu-st-off{background:var(--canvas);color:var(--ink-3)}
html[data-theme="dark"] .pu-st-on{background:rgba(34,197,94,.16);color:#79e2a4}
html[data-theme="dark"] :is(.pu-st-soon,.pu-tag-old){background:rgba(245,166,35,.16);color:#ffc768}
.pu-ban{color:#e23a3a;font-weight:700}
.pu-ini{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--canvas);color:var(--ink-2);font-weight:800;font-size:13px}
.pu-gone{color:var(--ink-2);cursor:default}
.pu-gone:hover{text-decoration:none}
.pu-buys{color:var(--blue);font-weight:700;cursor:pointer}
.pu-buys:hover{text-decoration:underline}
@media (max-width:760px){.admin-main .pu-filters .set-input{flex:1 1 140px}}
.pu-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 12px;border-radius:999px;background:var(--blue-soft);color:var(--ink);font-size:13.5px;align-self:center}
.pu-chip button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:0;border-radius:50%;background:none;color:var(--ink-2);cursor:pointer}
.pu-chip button:hover{background:var(--surface-2);color:var(--ink)}
.pu-chip button svg{width:14px;height:14px}

/* ---------- Pro package badges (round 99): each package's own 3D badge ---------- */
.pro-card-feat li.pro-card-badge{display:flex;align-items:center;gap:8px;padding-left:0;font-weight:700;color:var(--ink)}
.pro-card-feat li.pro-card-badge::before{content:none}
.pro-card-badge img{width:30px;height:30px;flex:0 0 auto;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.pk-badges{display:flex;flex-wrap:wrap;gap:10px}
.pk-badge{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:92px;padding:10px 10px 8px;border:2px solid var(--line);border-radius:14px;
  background:var(--surface-2);color:var(--ink-2);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s}
.pk-badge img{width:46px;height:46px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.pk-badge:hover{border-color:var(--blue)}
.pk-badge.on{border-color:var(--blue);background:var(--blue-soft);color:var(--ink)}

/* ---------- My Boost (round 102): the profile tile + the report page ---------- */
.pd-tile.t-pro{--tile-b:#f3ecff;--tile-bd:#e4d8fb;--tile-glow:rgba(124,58,237,.26)}
html[data-theme="dark"] .pd-tile.t-pro{--tile-a:#231a3d;--tile-b:#0f0b1c;--tile-bd:rgba(124,58,237,.3);--tile-glow:rgba(150,100,255,.36)}
.pd-tile-ic.pro{background:rgba(124,58,237,.12)}
.pd-tile-ic.pro img{width:36px;height:36px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.bst-h1 small{display:block;font-size:13.5px;font-weight:600;color:var(--ink-3);margin-top:2px}
.bst-h2{font-size:17px;margin:22px 0 10px}
.mb-pkg{display:flex;align-items:center;gap:16px;padding:16px;margin-bottom:14px;flex-wrap:wrap}
.mb-pkg-badge{width:64px;height:64px;flex:0 0 auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.mb-pkg-t{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:4px}
.mb-pkg-k{font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3)}
.mb-pkg-t b{font-size:20px}
.mb-pkg-st{align-self:flex-start;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:800}
.mb-pkg-st.on{background:#e3f7ea;color:#147a3b}.mb-pkg-st.soon{background:#fff1d6;color:#8a5200}.mb-pkg-st.off{background:var(--canvas);color:var(--ink-3)}
html[data-theme="dark"] .mb-pkg-st.on{background:rgba(34,197,94,.16);color:#79e2a4}
html[data-theme="dark"] .mb-pkg-st.soon{background:rgba(245,166,35,.16);color:#ffc768}
.mb-pkg-holds{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:2px}
.mb-pkg-holds i{font-style:normal;font-size:12.5px;color:var(--ink-2)}
.mb-pkg-acts{display:flex;gap:8px;flex-wrap:wrap}
.bst-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.bst-stat{padding:14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.bst-stat b{font-size:24px;font-variant-numeric:tabular-nums;line-height:1.1}
.bst-stat span{font-size:12.5px;color:var(--ink-3);font-weight:600}
.bst-chart{padding:14px 16px}
.bst-chart-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.bst-bars{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:4px;height:120px;align-items:end}
.bst-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.bst-bar i{display:block;width:100%;max-width:22px;min-height:2px;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,#a78bfa,#6d28d9)}
.bst-bar em{font-style:normal;font-size:10px;color:var(--ink-3);margin-bottom:2px;white-space:nowrap}
.bst-bar span{font-size:10.5px;color:var(--ink-3);margin-top:4px}
@media (max-width:520px){.bst-stats{grid-template-columns:1fr 1fr 1fr;gap:6px}.bst-stat{padding:10px}.bst-stat b{font-size:19px}.bst-stat span{font-size:11px}.bst-bar em{display:none}}
/* round 105 — the posting ban: Admin › Users › edit › Account (.aue-pban), and the member's own note above the composer */
.aue-pban .aue-fc{display:flex;flex-direction:column;gap:10px}
.aue-pban-st{font-size:14px;color:var(--muted)}
.aue-pban-st.on{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:10px;color:var(--ink);
  background:rgba(208,69,63,.08);border:1px solid rgba(208,69,63,.3)}
.aue-pban-st.on span{font-size:13px}
.aue-pban-st.on small{font-size:12px;color:var(--muted)}
.aue-pban-row{display:flex;flex-wrap:wrap;gap:8px}
.aue-pban-row select{flex:0 0 150px}
.aue-pban-row input{flex:1 1 220px;min-width:0}
.aue-pban-acts{display:flex;flex-wrap:wrap;gap:8px}
.composer .pban-note{font-weight:600}
.ad-badge-pban{background:rgba(208,69,63,.12);color:#c0392b}
/* round 117 — the news-feed limit: Admin › Users › edit › Account (#aue-feed, the posting ban's layout) and its badge in the
   user lists; amber, not the ban's red — the member can still post */
#aue-feed .aue-pban-row select{flex:0 1 230px;min-width:0}
.aue-pban-st.on.aue-feed-st{background:rgba(230,145,30,.09);border-color:rgba(230,145,30,.38)}
.ad-badge-feed{background:rgba(230,145,30,.14);color:#a85a06}
[data-theme="dark"] .ad-badge-feed{color:#f2a650}

/* ---- Round 110 (owner 2026-11-25): a boosted post's call-to-action strip, under the post in the feed, and the "floating dots"
   button — the owner's design, ported from a React component (FloatingDotsCta) to plain CSS: a blue pill whose white dots rise
   and fade (fdc-floating-points), with an arrow that draws itself on hover (fdc-dash). The dots run about five seconds when the
   button comes into view (.fdc-live, set by app.js) and again on hover / focus — nothing keeps moving (WCAG 2.2.2). ---- */
.post-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px var(--pc-pad,16px) 12px;padding:10px 10px 10px 14px;
  border:1px solid var(--line);border-radius:14px;background:var(--canvas)}
.post-cta-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.post-cta-k{font-size:11.5px;font-weight:600;color:var(--ink-2)}
.post-cta-host{font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fdc-button{position:relative;flex:0 0 auto;display:inline-flex;max-width:64%;padding:2px;border:0;border-radius:12px;cursor:pointer;text-decoration:none;
  background:linear-gradient(#0a4fc4,#2f8cff);box-shadow:0 4px 10px -2px rgba(10,79,196,.5);text-shadow:1px 1px rgba(0,0,0,.28);
  transition:box-shadow .3s ease,transform .15s ease;-webkit-tap-highlight-color:transparent}
.fdc-button::before{content:"";position:absolute;inset:1px;border-radius:11px;background:linear-gradient(180deg,#3b8bff 0%,#0e5fe3 100%);pointer-events:none}
.fdc-button:hover{box-shadow:0 6px 16px -2px rgba(10,79,196,.62)}
.fdc-button:active{transform:scale(.97);box-shadow:0 1px 3px rgba(10,79,196,.4)}
.fdc-button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.fdc-points_wrapper{position:absolute;inset:0;z-index:1;overflow:hidden;border-radius:inherit;pointer-events:none}
.fdc-point{position:absolute;bottom:-10px;width:2px;height:2px;border-radius:9999px;background:#fff;pointer-events:none;
  animation-name:none;animation-timing-function:ease-in-out;animation-iteration-count:2}
.fdc-live .fdc-point{animation-name:fdc-floating-points}
.fdc-button:hover .fdc-point,.fdc-button:focus-visible .fdc-point{animation-name:fdc-floating-points-again;animation-iteration-count:infinite}
.fdc-point:nth-child(1){left:10%;opacity:1;animation-duration:2.5s;animation-delay:.2s}
.fdc-point:nth-child(2){left:30%;opacity:.7;animation-duration:2.5s;animation-delay:.5s}
.fdc-point:nth-child(3){left:25%;opacity:.8;animation-duration:2.5s;animation-delay:.1s}
.fdc-point:nth-child(4){left:44%;opacity:.6;animation-duration:2s}
.fdc-point:nth-child(5){left:50%;opacity:1;animation-duration:1.5s}
.fdc-point:nth-child(6){left:75%;opacity:.5;animation-duration:1.5s;animation-delay:1.5s}
.fdc-point:nth-child(7){left:88%;opacity:.9;animation-duration:2.2s;animation-delay:.2s}
.fdc-point:nth-child(8){left:58%;opacity:.8;animation-duration:2.25s;animation-delay:.2s}
.fdc-point:nth-child(9){left:98%;opacity:.6;animation-duration:2.6s;animation-delay:.1s}
.fdc-point:nth-child(10){left:65%;opacity:1;animation-duration:2.5s;animation-delay:.2s}
.fdc-inner{position:relative;z-index:2;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;padding:8px 15px 8px 17px;
  color:#fff;font-size:14.5px;font-weight:700;line-height:1.3;white-space:nowrap}
.fdc-inner>span{overflow:hidden;text-overflow:ellipsis}
.fdc-icon{flex:0 0 auto;width:18px;height:18px}
.fdc-button:hover .fdc-icon path,.fdc-button:focus-visible .fdc-icon path{animation:fdc-dash .9s linear forwards}
@keyframes fdc-floating-points{0%{transform:translateY(0)}85%{opacity:0}100%{transform:translateY(-55px);opacity:0}}
@keyframes fdc-floating-points-again{0%{transform:translateY(0)}85%{opacity:0}100%{transform:translateY(-55px);opacity:0}}
@keyframes fdc-dash{0%{stroke-dasharray:0,20;stroke-dashoffset:0}50%{stroke-dasharray:10,10;stroke-dashoffset:-5}100%{stroke-dasharray:20,0;stroke-dashoffset:-10}}
@media (prefers-reduced-motion:reduce){.fdc-point{display:none}.fdc-button:hover .fdc-icon path,.fdc-button:focus-visible .fdc-icon path{animation:none}}
@media (max-width:600px){.post-cta{padding:9px 9px 9px 12px;gap:10px}.fdc-inner{padding:8px 13px 8px 15px;font-size:14px}}
/* the Boost sheet: the button's fields (+ a live preview) when starting, and the current button with "Edit button" while it runs */
.bst-cta{display:flex;flex-direction:column;gap:8px;margin:14px 0 4px}
.bst-cta .bst-lbl .ad-dim{font-weight:400}
.bst-cta-prev .post-cta,.bst-cta-live .post-cta{margin:2px 0 0}
.bst-cta-live{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.bst-cta-form{display:flex;flex-direction:column;gap:8px}
.bst-cta-edit{align-self:flex-start}
/* round 118 — the Boost sheet's button: Call to Action | Send Message (a chat with the owner) */
.bst-cta-kind{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--canvas);border:1px solid var(--line)}
.bst-cta-kind button{flex:1 1 0;min-width:0;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink-2);
  font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.bst-cta-kind button[aria-checked="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.18)}
.bst-cta-kind button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.bst-cta-link{display:flex;flex-direction:column;gap:8px}
.bst-cta-link[hidden],.bst-cta-form[hidden]{display:none}   /* their display:flex would beat [hidden] */
.bst-cta-msgnote{margin:0}
.fdc-msg .fdc-icon{transition:transform .2s ease}
.fdc-msg .fdc-icon path{animation:none!important}           /* the arrow's dash effect doesn't suit the speech bubble */
.fdc-msg:hover .fdc-icon,.fdc-msg:focus-visible .fdc-icon{transform:rotate(-8deg) scale(1.06)}
@media (prefers-reduced-motion:reduce){.fdc-msg .fdc-icon{transition:none}.fdc-msg:hover .fdc-icon,.fdc-msg:focus-visible .fdc-icon{transform:none}}

/* ---- Round 119 (owner 2026-11-25): Settings › Uploads › Adult Images Detection — the status box under the settings ---- */
.up-adult-st{display:flex;flex-direction:column;gap:4px;padding:11px 13px;border-radius:10px;border:1px solid var(--line);background:var(--canvas);font-size:13.5px;color:var(--ink-2)}
.up-adult-st b{font-size:14px;color:var(--ink)}
.up-adult-st.on{border-color:rgba(46,160,67,.4);background:rgba(46,160,67,.07)}
.up-adult-err{color:#c0392b}
[data-theme="dark"] .up-adult-err{color:#ff8a80}
.up-adult-list{display:flex;flex-direction:column;margin-top:10px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.up-adult-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:8px 12px;border-top:1px solid var(--line);font-size:13px;color:var(--ink-2)}
.up-adult-row:first-child{border-top:0}
.up-adult-row a{display:flex;align-items:center;gap:8px;min-width:0;color:var(--ink)}
.up-adult-row a img{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:0 0 26px}
.up-adult-row a b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-adult-row span{grid-column:1;min-width:0}
.up-adult-row small{grid-column:2;grid-row:1;align-self:center;color:var(--muted);white-space:nowrap}
.set-field p.ad-dim{white-space:normal}   /* a settings help line wraps on every width (.ad-dim is nowrap; the long Vision key help ran off a desktop) */

/* ---- Round 122 (owner 2026-11-26): the KLYPS upload panel on psar.online's "Upload Reel" flow (openUpload) — the upload /
   processing bars, "✓ Video ready" + Replace, "Choose Thumbnail" tiles, the music library rows, Trim, the error line and
   Cancel + Post. Always-dark like the rest of .rum (cooled in dark mode below). ---- */
.rum [hidden]{display:none!important}   /* .rum-field etc. are display:flex — [hidden] must still hide them */
.rum-up{border:1.5px solid rgba(255,255,255,.1);border-radius:14px;background:#181309;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.rum-up-t{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px;color:#e8e2d5;min-width:0}
.rum-up-t span{display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rum-up-t b{color:var(--gold);font-variant-numeric:tabular-nums;flex:0 0 auto}
.rum-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.rum-bar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--gold);transition:width .2s ease}
.rum-shim i{width:40%;animation:rum-shim 1.2s ease-in-out infinite}
@keyframes rum-shim{0%{transform:translateX(-110%)}100%{transform:translateX(260%)}}
.rum-spin{width:15px;height:15px;flex:0 0 15px;border-radius:50%;border:2px solid rgba(var(--gold-rgb),.25);border-top-color:var(--gold);animation:spin .8s linear infinite}
@media (prefers-reduced-motion:reduce){.rum-shim i{animation:none;width:100%;opacity:.5}.rum-spin{animation-duration:2.4s}}
.rum-ready{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1.5px solid rgba(34,197,94,.45);border-radius:14px;background:rgba(34,197,94,.07);padding:12px 14px}
.rum-ready-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.rum-ready-t b{font-size:14.5px;color:#4ade80}
.rum-ready-t span{font-size:12.5px;color:#8a8478;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rum-replace{flex:0 0 auto;padding:8px 14px;border-radius:999px;border:1.5px solid rgba(255,255,255,.18);background:transparent;color:#e8e2d5;font-size:13px;font-weight:800;cursor:pointer}
.rum-replace:hover{border-color:var(--gold);color:var(--gold)}
.rum-thumbs2{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
.rum-thumb2{position:relative;flex:0 0 72px;width:72px;aspect-ratio:9/16;padding:0;border-radius:10px;border:2.5px solid transparent;background:#0d0a05;overflow:hidden;cursor:pointer}
.rum-thumb2 img{width:100%;height:100%;object-fit:cover;display:block}
.rum-thumb2.sel{border-color:#22c55e}
.rum-thumb2-ok{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#22c55e;color:#06210f;font-size:12px;font-weight:900;display:none;align-items:center;justify-content:center}
.rum-thumb2.sel .rum-thumb2-ok{display:flex}
.rum-thumb2:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.rum-warn{font-size:13px;color:#f5b041;margin:0}
.rum-msearch{margin-bottom:8px}
.rum-mlist{display:flex;flex-direction:column;gap:6px;max-height:232px;overflow-y:auto}
.rum-trk{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 6px;border-radius:10px;background:#1d1810;border:1px solid rgba(255,255,255,.08)}
.rum-trk.sel{border-color:#22c55e;background:rgba(34,197,94,.08)}
.rum-trk-play{flex:0 0 34px;width:34px;height:34px;border-radius:50%;border:none;background:rgba(var(--gold-rgb),.14);color:var(--gold);font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.rum-trk-pick{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:none;padding:4px 2px;cursor:pointer;text-align:left;color:#e8e2d5}
.rum-trk-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.rum-trk-t b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rum-trk-t i{font-size:12px;color:#8a8478;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rum-trk-pick em{font-style:normal;font-size:12px;color:#8a8478;font-variant-numeric:tabular-nums}
.rum-trk-ok{width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#22c55e;color:#06210f;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;visibility:hidden}
.rum-trk.sel .rum-trk-ok{visibility:visible}
.rum-mready{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1.5px solid rgba(34,197,94,.45);border-radius:12px;background:rgba(34,197,94,.07);padding:10px 12px}
.rum-mready span{display:flex;align-items:center;gap:8px;min-width:0;font-size:13.5px}
.rum-mready b{color:#4ade80;flex:0 0 auto}
.rum-mready i{font-style:normal;color:#bdb6a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rum-trim2{margin-top:10px;border-radius:12px;background:rgba(127,127,127,.1);padding:12px;display:flex;flex-direction:column;gap:10px}
.rum-trim2-h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#e8e2d5}
.rum-trim2-h span{color:#bdb6a6;font-variant-numeric:tabular-nums}
.rum-trim2-bar{position:relative;height:10px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.rum-trim2-bar i{position:absolute;top:0;bottom:0;left:0;width:0;border-radius:inherit;background:var(--gold)}
.rum-trim2-row{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:10px;font-size:12.5px;font-weight:700;color:#cfc8b8}
.rum-trim2-row input{width:100%;accent-color:var(--gold)}
.rum-trim2-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rum-trim2-foot span{font-size:12px;color:#8a8478}
.rum-err{border-radius:10px;padding:10px 12px;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.4);color:#fca5a5;font-size:13.5px;line-height:1.4}
.rum-foot{display:flex;gap:10px}
.rum-cancel{flex:0 0 auto;padding:14px 18px;border-radius:12px;border:1.5px solid rgba(255,255,255,.14);background:transparent;color:#cfc8b8;font-weight:800;font-size:14.5px;cursor:pointer}
.rum-cancel:hover{border-color:rgba(255,255,255,.3);color:#f3efe6}
.rum-cancel:disabled{opacity:.45;cursor:not-allowed}
.rum-foot .rum-submit{flex:1}
html[data-theme="dark"] .rum-up,html[data-theme="dark"] .rum-trk{background:#1f1f28}
html[data-theme="dark"] .rum-thumb2{background:#0c1018}
