/* Customer Social — a Facebook-style look. Everything is under .cs so the shared
   vendor.css (Bootstrap, Font Awesome) cannot reach in, except the icons. */
:root { --cs-blue:#1877f2; --cs-blue-d:#166fe5; --cs-blue-s:#e7f3ff; --cs-bg:#f0f2f5; --cs-card:#fff; --cs-line:#e4e6eb;
  --cs-text:#050505; --cs-mute:#65676b; --cs-hover:#f2f2f2; --cs-btn:#e4e6eb; --cs-soft:#f7f8fa; --cs-green:#42b72a; --cs-red:#e41e3f; --cs-top:56px; }
html, body { margin:0; padding:0; }
/* Thin (owner, 2026-11-06: "only thin, not so tall"): Noto Sans Khmer light at normal width, for Khmer and Latin alike. */
body.cs { background:var(--cs-bg); color:var(--cs-text); font:300 15px/1.5 "Noto Sans Khmer", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.cs b, .cs strong, .cs h1, .cs h2, .cs h3, .cs h4, .cs th { font-weight:500; }
.cs a { color:inherit; text-decoration:none; }
.cs * { box-sizing:border-box; }
.cs button { font:inherit; cursor:pointer; }
.cs img { max-width:100%; }
.cs .muted { color:var(--cs-mute); }
.cs .hide { display:none !important; }

/* top bar */
.cs-top { position:fixed; top:0; left:0; right:0; height:var(--cs-top); background:var(--cs-card); z-index:50; display:flex; align-items:center;
  padding:0 16px; box-shadow:0 1px 2px rgba(0,0,0,.12); gap:8px; transition:transform .25s; }
.cs-top .cs-logo { width:40px; height:40px; border-radius:50%; object-fit:cover; background:var(--cs-blue); flex:0 0 40px; }
.cs-top .cs-brand { font-weight:800; font-size:22px; color:var(--cs-blue); letter-spacing:-.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.cs-search { position:relative; }
.cs-search input { height:40px; border:0; border-radius:20px; background:var(--cs-bg); padding:0 14px 0 38px; width:240px; outline:none; font-size:15px; }
.cs-search i { position:absolute; left:14px; top:12px; color:var(--cs-mute); }
.cs-nav { flex:1; display:flex; justify-content:center; gap:6px; height:100%; }
.cs-nav a { position:relative; display:flex; align-items:center; justify-content:center; width:110px; height:100%; color:var(--cs-mute); font-size:22px; border-bottom:3px solid transparent; }
.cs-nav a:hover { background:var(--cs-hover); border-radius:8px; height:48px; margin-top:4px; }
.cs-nav a.on { color:var(--cs-blue); border-bottom-color:var(--cs-blue); border-radius:0; }
.cs-nav a.on:hover { height:100%; margin-top:0; }
.cs-right { display:flex; align-items:center; gap:8px; }
.cs-circle { position:relative; width:40px; height:40px; border-radius:50%; background:var(--cs-btn); display:inline-flex; align-items:center; justify-content:center; font-size:18px; color:var(--cs-text); border:0; }
.cs-circle.on { background:var(--cs-blue-s); color:var(--cs-blue); }
.cs-circle img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.cs-badge { position:absolute; top:-4px; right:-4px; background:var(--cs-red); color:#fff; font-size:11px; font-weight:700; min-width:19px; height:19px; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:0 5px; }
.cs-tabs { display:none; }

/* three columns */
.cs-wrap { display:flex; justify-content:space-between; gap:24px; padding:calc(var(--cs-top) + 16px) 16px 40px; max-width:1920px; margin:0 auto; }
.cs-left, .cs-side { width:340px; flex:0 0 340px; position:sticky; top:calc(var(--cs-top) + 16px); align-self:flex-start; max-height:calc(100vh - var(--cs-top) - 24px); overflow-y:auto; scrollbar-width:none; }
.cs-left::-webkit-scrollbar, .cs-side::-webkit-scrollbar { display:none; }
.cs-main { flex:0 1 680px; min-width:0; margin:0 auto; }
.cs-main.wide { flex-basis:1100px; }
.cs-row { display:flex; align-items:center; gap:12px; padding:8px; border-radius:8px; font-weight:600; }
.cs-row:hover { background:var(--cs-btn); }
.cs-row .ic { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:17px; flex:0 0 36px; }
.cs-row img.ic { object-fit:cover; }
.cs-h { color:var(--cs-mute); font-weight:600; font-size:17px; margin:16px 8px 6px; display:flex; justify-content:space-between; }
.cs-h a { color:var(--cs-blue); font-size:15px; font-weight:400; }
.cs-sep { border-top:1px solid #ced0d4; margin:8px; }

/* cards */
.cs-card { background:var(--cs-card); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.2); margin-bottom:16px; }
.cs-pad { padding:12px 16px; }

/* composer */
.cs-compose { padding:12px 16px 10px; }
.cs-compose .top { display:flex; gap:8px; align-items:center; padding-bottom:12px; border-bottom:1px solid var(--cs-line); }
.cs-av { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:0 0 40px; background:#ddd; }
.cs-av.sm { width:32px; height:32px; flex-basis:32px; }
.cs-fake { flex:1; height:40px; border-radius:20px; background:var(--cs-bg); border:0; text-align:left; padding:0 14px; color:var(--cs-mute); font-size:16px; }
.cs-fake:hover { background:var(--cs-btn); }
.cs-compose .acts { display:flex; padding-top:8px; }
.cs-compose .acts button { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; height:40px; border:0; background:transparent; border-radius:8px; color:var(--cs-mute); font-weight:600; }
.cs-compose .acts button:hover { background:var(--cs-hover); }

/* post */
.cs-post { padding-top:12px; }
.cs-post.hidden-post { opacity:.6; }
.cs-ph { display:flex; align-items:center; gap:8px; padding:0 16px 12px; }
.cs-ph .who { flex:1; min-width:0; }
.cs-ph .who b { display:block; font-size:15px; }
.cs-ph .who b a:hover { text-decoration:underline; }
.cs-ph .who small { color:var(--cs-mute); font-size:13px; }
.cs-verified { color:var(--cs-blue); font-size:13px; margin-left:3px; }
.cs-dots { width:36px; height:36px; border-radius:50%; border:0; background:transparent; color:var(--cs-mute); font-size:18px; }
.cs-dots:hover { background:var(--cs-hover); }
.cs-menu-pop { position:absolute; right:12px; top:44px; background:var(--cs-card); border-radius:8px; box-shadow:0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); padding:8px; z-index:30; min-width:240px; }
.cs-menu-pop button, .cs-menu-pop a { display:flex; width:100%; align-items:center; gap:12px; border:0; background:transparent; padding:8px; border-radius:6px; font-weight:600; text-align:left; }
.cs-menu-pop button:hover, .cs-menu-pop a:hover { background:var(--cs-hover); }
.cs-menu-pop i { width:20px; text-align:center; font-size:17px; }
.cs-body { padding:0 16px 12px; white-space:pre-wrap; word-wrap:break-word; }
.cs-body.big { font-size:24px; line-height:1.25; }
.cs-flag { margin:0 16px 10px; padding:6px 10px; background:#fff3cd; color:#7a5d00; border-radius:6px; font-size:13px; font-weight:600; }
.cs-media { display:grid; gap:2px; background:#000; }
.cs-media.n1 { grid-template-columns:1fr; }
.cs-media.n2 { grid-template-columns:1fr 1fr; }
.cs-media.n3 { grid-template-columns:1fr 1fr; } .cs-media.n3 > :first-child { grid-column:1 / 3; }
.cs-media.n4, .cs-media.nmany { grid-template-columns:1fr 1fr; }
.cs-media > * { position:relative; display:block; background:var(--cs-bg); overflow:hidden; }
.cs-media img { display:block; width:100%; height:100%; object-fit:cover; max-height:620px; cursor:zoom-in; }
.cs-media.n1 img { object-fit:contain; background:var(--cs-bg); max-height:720px; }
.cs-media.n2 > *, .cs-media.n3 > *, .cs-media.n4 > *, .cs-media.nmany > * { aspect-ratio:1 / 1; }
.cs-media.n3 > :first-child { aspect-ratio:2 / 1; }
.cs-media .more { position:absolute; inset:0; background:rgba(0,0,0,.45); color:#fff; font-size:32px; font-weight:700; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.cs-video { position:relative; background:#000; }
.cs-video video { display:block; width:100%; max-height:680px; background:#000; }
.cs-video .snd { position:absolute; right:12px; bottom:12px; width:36px; height:36px; border-radius:50%; border:0; background:rgba(0,0,0,.6); color:#fff; }
.cs-video .len { position:absolute; left:12px; bottom:12px; background:rgba(0,0,0,.6); color:#fff; font-size:12px; border-radius:4px; padding:2px 6px; }
.cs-prod { display:flex; gap:12px; margin:0 16px 12px; border:1px solid var(--cs-line); border-radius:8px; overflow:hidden; background:var(--cs-soft); }
.cs-prod img { width:120px; height:120px; object-fit:cover; flex:0 0 120px; background:var(--cs-card); }
.cs-prod .info { padding:10px 10px 10px 0; display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0; }
.cs-prod .info b { font-size:16px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.cs-prod .price { color:var(--cs-text); font-weight:700; font-size:17px; }
.cs-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:36px; padding:0 14px; border-radius:6px; border:0; font-weight:600; background:var(--cs-btn); color:var(--cs-text) !important; }
.cs-btn:hover { background:#d8dadf; }
.cs-btn.blue { background:var(--cs-blue); color:#fff !important; }
.cs-btn.blue:hover { background:var(--cs-blue-d); }
.cs-btn.soft { background:var(--cs-blue-s); color:var(--cs-blue) !important; }
.cs-btn.green { background:var(--cs-green); color:#fff !important; }
.cs-btn.block { width:100%; }
.cs-ev { margin:0 16px 12px; border:1px solid var(--cs-line); border-radius:8px; overflow:hidden; display:block; }
.cs-ev .cover { height:180px; background:linear-gradient(135deg,#1877f2,#7b2ff7) center/cover; }
.cs-ev .info { padding:10px 12px; }
.cs-ev .info small { color:var(--cs-red); font-weight:700; text-transform:uppercase; font-size:13px; }
.cs-ev .info b { display:block; font-size:17px; }
.cs-stats { display:flex; justify-content:space-between; align-items:center; margin:0 16px; padding:10px 0; color:var(--cs-mute); font-size:15px; }
.cs-stats .emo { display:inline-flex; align-items:center; gap:6px; }
.cs-stats .emo span.e { display:inline-flex; }
.cs-stats .emo span.e i { font-style:normal; width:20px; height:20px; border-radius:50%; background:var(--cs-card); display:inline-flex; align-items:center; justify-content:center; font-size:14px; margin-right:-4px; box-shadow:0 0 0 2px #fff; }
.cs-stats button { border:0; background:transparent; color:var(--cs-mute); }
.cs-stats button:hover { text-decoration:underline; }
.cs-bar { display:flex; margin:0 16px; border-top:1px solid var(--cs-line); padding:4px 0; position:relative; }
.cs-bar > button, .cs-bar > .rw > button { flex:1; height:36px; display:flex; align-items:center; justify-content:center; gap:8px; border:0; background:transparent; border-radius:6px; color:var(--cs-mute); font-weight:600; width:100%; }
.cs-bar > .rw { flex:1; position:relative; }
.cs-bar > button:hover, .cs-bar > .rw > button:hover { background:var(--cs-hover); }
.cs-bar .react.on { color:var(--cs-blue); }
.cs-bar .react.on.love { color:#f33e58; } .cs-bar .react.on.haha, .cs-bar .react.on.wow, .cs-bar .react.on.sad { color:#f7b125; } .cs-bar .react.on.angry { color:#e9710f; }
.cs-bar .react .em { font-size:18px; }
.cs-picker { position:absolute; bottom:40px; left:0; background:var(--cs-card); border-radius:30px; box-shadow:0 2px 12px rgba(0,0,0,.2); padding:5px 6px; display:flex; gap:2px; z-index:20; opacity:0; transform:translateY(8px); pointer-events:none; transition:.15s; }
.cs-picker.show { opacity:1; transform:none; pointer-events:auto; }
.cs-picker button { border:0; background:transparent; font-size:30px; width:44px; height:44px; border-radius:50%; transition:transform .12s; padding:0; }
.cs-picker button:hover { transform:scale(1.3) translateY(-4px); }
.cs-cms { padding:4px 16px 12px; border-top:1px solid var(--cs-line); margin:0 0; }
.cs-cms .more-c { border:0; background:transparent; color:var(--cs-mute); font-weight:600; padding:6px 0; }
.cs-cms .more-c:hover { text-decoration:underline; }
.cs-c { display:flex; gap:6px; margin:6px 0; align-items:flex-start; }
.cs-c .bub { background:var(--cs-bg); border-radius:18px; padding:8px 12px; max-width:calc(100% - 50px); }
.cs-c .bub b { font-size:13px; display:block; }
.cs-c .bub span { white-space:pre-wrap; word-wrap:break-word; }
.cs-c .meta { font-size:12px; color:var(--cs-mute); padding:2px 12px; display:flex; gap:12px; }
.cs-c .meta button { border:0; background:transparent; color:var(--cs-mute); font-weight:700; font-size:12px; padding:0; }
.cs-cform { display:flex; gap:6px; align-items:center; margin-top:8px; }
.cs-cform .box { flex:1; display:flex; background:var(--cs-bg); border-radius:20px; align-items:center; }
.cs-cform input { flex:1; height:36px; border:0; background:transparent; padding:0 12px; outline:none; font-size:15px; min-width:0; }
.cs-cform button { border:0; background:transparent; color:var(--cs-blue); width:36px; height:36px; font-size:16px; }
.cs-end { text-align:center; color:var(--cs-mute); padding:20px; }
.cs-loader { text-align:center; padding:20px; color:var(--cs-mute); }
.cs-skel { height:280px; background:linear-gradient(90deg,#fff 0,#f0f2f5 40%,#fff 80%); background-size:200% 100%; animation:cs-sk 1.2s infinite; border-radius:8px; margin-bottom:16px; }
@keyframes cs-sk { from { background-position:200% 0 } to { background-position:-200% 0 } }

/* side widgets */
.cs-sp { display:flex; gap:12px; padding:8px; border-radius:8px; align-items:center; }
.cs-sp:hover { background:var(--cs-btn); }
.cs-sp img { width:120px; height:120px; border-radius:8px; object-fit:cover; flex:0 0 120px; background:var(--cs-card); }
.cs-sp b { display:block; }
.cs-evmini { display:flex; gap:10px; padding:8px; border-radius:8px; align-items:center; }
.cs-evmini:hover { background:var(--cs-btn); }
.cs-date { width:44px; flex:0 0 44px; border-radius:8px; background:var(--cs-card); box-shadow:0 1px 2px rgba(0,0,0,.2); text-align:center; overflow:hidden; }
.cs-date small { display:block; background:var(--cs-red); color:#fff; font-size:11px; font-weight:700; padding:1px 0; }
.cs-date b { font-size:18px; }

/* modal */
.cs-modal { position:fixed; inset:0; background:rgba(244,244,244,.8); z-index:100; display:none; align-items:center; justify-content:center; padding:16px; }
.cs-modal.show { display:flex; }
.cs-dialog { background:var(--cs-card); border-radius:8px; width:500px; max-width:100%; box-shadow:0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); max-height:calc(100vh - 32px); display:flex; flex-direction:column; }
.cs-dialog header { position:relative; text-align:center; font-weight:700; font-size:20px; padding:16px; border-bottom:1px solid var(--cs-line); }
.cs-dialog header .x { position:absolute; right:12px; top:10px; }
.cs-dialog .in { padding:16px; overflow-y:auto; }
.cs-dialog textarea { width:100%; border:0; outline:none; resize:none; font-size:22px; min-height:110px; font-family:inherit; }
.cs-dialog textarea.small { font-size:15px; }
.cs-addbox { display:flex; align-items:center; justify-content:space-between; border:1px solid #ced0d4; border-radius:8px; padding:8px 14px; margin-top:10px; font-weight:600; }
.cs-addbox .ico { display:flex; gap:4px; }
.cs-addbox .ico button, .cs-addbox .ico label { width:36px; height:36px; border-radius:50%; border:0; background:transparent; display:inline-flex; align-items:center; justify-content:center; font-size:22px; cursor:pointer; margin:0; }
.cs-addbox .ico button:hover, .cs-addbox .ico label:hover { background:var(--cs-hover); }
.cs-prev { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:10px; }
.cs-prev > div { position:relative; aspect-ratio:1/1; border-radius:8px; overflow:hidden; background:#eee; }
.cs-prev img, .cs-prev video { width:100%; height:100%; object-fit:cover; display:block; }
.cs-prev .rm { position:absolute; top:4px; right:4px; width:26px; height:26px; border-radius:50%; border:0; background:var(--cs-card); box-shadow:0 1px 3px rgba(0,0,0,.3); }
.cs-prev .tag { position:absolute; left:4px; bottom:4px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; padding:1px 5px; border-radius:4px; }
.cs-err { color:var(--cs-red); font-weight:600; margin-top:8px; font-size:14px; }
.cs-pick-list { max-height:260px; overflow:auto; margin-top:8px; }
.cs-pick-list button { display:flex; gap:10px; align-items:center; width:100%; border:0; background:transparent; padding:6px; border-radius:6px; text-align:left; }
.cs-pick-list button:hover { background:var(--cs-hover); }
.cs-pick-list img { width:44px; height:44px; border-radius:6px; object-fit:cover; }
.cs-input { width:100%; height:40px; border:1px solid #ced0d4; border-radius:6px; padding:0 12px; font-size:15px; outline:none; font-family:inherit; }
.cs-input:focus { border-color:var(--cs-blue); box-shadow:0 0 0 2px var(--cs-blue-s); }
textarea.cs-input { height:auto; padding:10px 12px; }
.cs-label { font-weight:600; margin:12px 0 6px; display:block; }

/* lightbox */
.cs-lb { position:fixed; inset:0; background:rgba(0,0,0,.92); z-index:200; display:none; align-items:center; justify-content:center; }
.cs-lb.show { display:flex; }
.cs-lb img { max-width:96vw; max-height:92vh; object-fit:contain; }
.cs-lb button { position:absolute; border:0; background:rgba(255,255,255,.15); color:#fff; width:46px; height:46px; border-radius:50%; font-size:20px; }
.cs-lb .x { top:14px; right:14px; } .cs-lb .p { left:14px; top:50%; } .cs-lb .n { right:14px; top:50%; }

/* marketplace */
.cs-mk-head { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.cs-mk-head h1 { font-size:24px; margin:0; flex:1; }
.cs-chips { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; margin-bottom:10px; scrollbar-width:none; }
.cs-chips a { white-space:nowrap; padding:7px 14px; border-radius:18px; background:var(--cs-btn); font-weight:600; font-size:14px; }
.cs-chips a.on { background:var(--cs-blue-s); color:var(--cs-blue); }
.cs-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px; }
.cs-item { display:block; }
.cs-item .im { aspect-ratio:1/1; border-radius:8px; overflow:hidden; background:var(--cs-card); box-shadow:0 1px 2px rgba(0,0,0,.1); }
.cs-item img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s; }
.cs-item:hover img { transform:scale(1.03); }
.cs-item .pr { font-weight:700; font-size:17px; margin-top:6px; }
.cs-item .nm { font-size:15px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.cs-pd { display:flex; gap:0; background:var(--cs-card); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.2); overflow:hidden; }
.cs-pd .gal { flex:1 1 60%; background:var(--cs-card); display:flex; flex-direction:column; min-height:420px; }
.cs-pd .gal .big { flex:1; display:flex; align-items:center; justify-content:center; }
.cs-pd .gal .big img { width:100%; height:auto; max-height:640px; object-fit:contain; cursor:zoom-in; display:block; }
.cs-pd .gal .thumbs { display:flex; gap:6px; padding:8px; overflow-x:auto; }
.cs-pd .gal .thumbs img { width:60px; height:60px; object-fit:cover; border-radius:6px; opacity:.6; cursor:pointer; border:2px solid transparent; }
.cs-pd .gal .thumbs img.on { opacity:1; border-color:var(--cs-blue); }
.cs-pd .det { flex:0 0 380px; padding:20px; display:flex; flex-direction:column; gap:10px; }
.cs-pd h1 { font-size:24px; margin:0; }
.cs-pd .price { font-size:20px; font-weight:700; }
.cs-qty { display:flex; align-items:center; gap:8px; }
.cs-qty button { width:36px; height:36px; border-radius:50%; border:0; background:var(--cs-btn); font-size:18px; }
.cs-qty input { width:60px; text-align:center; height:36px; border:1px solid #ced0d4; border-radius:6px; font-size:16px; }
.cs-vars { display:flex; flex-wrap:wrap; gap:8px; }
.cs-vars label { border:1px solid #ced0d4; border-radius:6px; padding:6px 12px; cursor:pointer; font-weight:600; margin:0; }
.cs-vars input { display:none; }
.cs-vars input:checked + span { color:var(--cs-blue); }
.cs-vars label:has(input:checked) { border-color:var(--cs-blue); background:var(--cs-blue-s); }
.cs-toast { position:fixed; left:50%; bottom:80px; transform:translateX(-50%); background:#323436; color:#fff; padding:10px 18px; border-radius:8px; z-index:300; font-weight:600; box-shadow:0 4px 12px rgba(0,0,0,.3); }

/* profile */
.cs-prof-head { background:var(--cs-card); box-shadow:0 1px 2px rgba(0,0,0,.1); margin:calc(-16px) -16px 16px; }
.cs-prof-in { max-width:1100px; margin:0 auto; padding:0 16px; }
.cs-cover { height:350px; border-radius:0 0 8px 8px; background:linear-gradient(135deg,#d8dadf,#b0b3b8) center/cover; position:relative; }
.cs-cover .chg { position:absolute; right:16px; bottom:16px; }
.cs-prof-row { display:flex; align-items:flex-end; gap:16px; margin-top:-84px; padding:0 16px 16px; position:relative; flex-wrap:wrap; }
.cs-prof-row .pic { position:relative; }
.cs-prof-row .pic img { width:168px; height:168px; border-radius:50%; border:4px solid #fff; object-fit:cover; background:var(--cs-card); display:block; }
.cs-prof-row .pic label { position:absolute; right:8px; bottom:8px; margin:0; }
.cs-prof-row .nm { flex:1; padding-bottom:8px; min-width:200px; }
.cs-prof-row h1 { font-size:32px; margin:0; }
.cs-prof-tabs { display:flex; gap:4px; border-top:1px solid #ced0d4; margin:0 16px; }
.cs-prof-tabs a { padding:16px; font-weight:600; color:var(--cs-mute); border-bottom:3px solid transparent; }
.cs-prof-tabs a.on { color:var(--cs-blue); border-bottom-color:var(--cs-blue); }
.cs-prof-body { max-width:1100px; margin:0 auto; display:flex; gap:16px; align-items:flex-start; }
.cs-prof-body .l { flex:0 0 400px; position:sticky; top:calc(var(--cs-top) + 16px); }
.cs-prof-body .r { flex:1; min-width:0; }
.cs-about div { display:flex; gap:12px; align-items:center; padding:6px 0; }
.cs-about i { color:#8c939d; width:20px; text-align:center; font-size:18px; }
.cs-pgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; border-radius:8px; overflow:hidden; }
.cs-pgrid a { aspect-ratio:1/1; background:#eee; position:relative; display:block; }
.cs-pgrid img, .cs-pgrid video { width:100%; height:100%; object-fit:cover; display:block; }
.cs-pgrid .pl { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; text-shadow:0 1px 4px rgba(0,0,0,.6); }

/* events */
.cs-evcards { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.cs-evcard { background:var(--cs-card); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.2); overflow:hidden; display:flex; flex-direction:column; }
.cs-evcard .cover { aspect-ratio:2/1; background:linear-gradient(135deg,#1877f2,#7b2ff7) center/cover; }
.cs-evcard .in { padding:12px; flex:1; display:flex; flex-direction:column; gap:3px; }
.cs-evcard small.when { color:var(--cs-red); font-weight:700; text-transform:uppercase; font-size:13px; }
.cs-evcard b { font-size:17px; }
.cs-evcard .btns { display:flex; gap:6px; margin-top:auto; padding-top:8px; }
.cs-evcard .btns .cs-btn { flex:1; }
.cs-evhero { background:var(--cs-card); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.2); overflow:hidden; margin-bottom:16px; }
.cs-evhero .cover { aspect-ratio:2.6/1; background:linear-gradient(135deg,#1877f2,#7b2ff7) center/cover; }
.cs-evhero .in { padding:16px 20px; display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.cs-evhero .in .cs-date { width:64px; flex-basis:64px; } .cs-evhero .in .cs-date b { font-size:28px; }
.cs-evhero h1 { margin:0; font-size:28px; }
.cs-goers { display:flex; flex-wrap:wrap; gap:8px; }
.cs-goers img { width:36px; height:36px; border-radius:50%; object-fit:cover; }

/* menu page */
.cs-mgrid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cs-mtile { position:relative; background:var(--cs-card); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.15); padding:12px; display:flex; flex-direction:column; gap:8px; font-weight:600; }
.cs-mtile:hover { background:var(--cs-soft); }
.cs-mtile i { font-size:24px; }
.cs-mrow { display:flex; align-items:center; gap:12px; padding:12px; border-radius:8px; font-weight:600; background:var(--cs-card); margin-bottom:6px; box-shadow:0 1px 2px rgba(0,0,0,.1); }
.cs-mrow i.l { width:36px; height:36px; border-radius:50%; background:var(--cs-btn); display:inline-flex; align-items:center; justify-content:center; font-size:17px; }
.cs-mrow .r { margin-left:auto; color:var(--cs-mute); }
.cs-switch { position:relative; width:44px; height:24px; flex:0 0 44px; }
.cs-switch input { opacity:0; width:0; height:0; }
.cs-switch span { position:absolute; inset:0; background:#ccc; border-radius:12px; transition:.2s; cursor:pointer; }
.cs-switch span:before { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:var(--cs-card); border-radius:50%; transition:.2s; }
.cs-switch input:checked + span { background:var(--cs-blue); }
.cs-switch input:checked + span:before { transform:translateX(20px); }
.cs-notif { display:flex; gap:12px; align-items:center; padding:8px; border-radius:8px; }
.cs-notif:hover { background:var(--cs-hover); }
.cs-notif.unread { background:var(--cs-blue-s); }
.cs-notif .i { width:56px; height:56px; border-radius:50%; background:var(--cs-btn); display:flex; align-items:center; justify-content:center; font-size:26px; flex:0 0 56px; }
.cs-notif small { color:var(--cs-blue); font-weight:600; }
.cs-fab { display:none; }

/* phone: Facebook app style -- a top bar with a tab row under it, one column */
@media (max-width: 1100px) { .cs-side { display:none; } }
@media (max-width: 900px) {
  :root { --cs-top:52px; --cs-bot:56px; }
  .cs-left, .cs-search, .cs-nav { display:none; }
  .cs-top { height:auto; flex-wrap:wrap; padding:0; box-shadow:0 1px 2px rgba(0,0,0,.1); transition:transform .2s; }
  .cs-top .cs-headrow { display:flex; align-items:center; width:100%; padding:6px 12px; gap:8px; height:52px; }
  .cs-top .cs-brand { flex:1; min-width:0; font-size:26px; max-width:none; }
  .cs-top .cs-gap { display:none; }
  .cs-top .cs-logo { display:none; }
  .cs-burger { width:36px; height:40px; align-items:center; justify-content:center; font-size:24px; color:var(--cs-text); margin-left:-4px; }
  /* the Facebook app's bottom bar */
  .cs-tabs { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:50; background:var(--cs-card); border-top:1px solid var(--cs-line);
    height:calc(var(--cs-bot) + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); }
  .cs-tabs a { flex:1; display:flex; align-items:center; justify-content:center; color:var(--cs-mute); font-size:22px; border-top:3px solid transparent; position:relative; }
  .cs-tabs a.on { color:var(--cs-blue); border-top-color:var(--cs-blue); }
  .cs-tabs a.me img { width:30px; height:30px; border-radius:50%; object-fit:cover; display:block; box-shadow:0 0 0 1px var(--cs-line); }
  .cs-tabs a.me.on img { box-shadow:0 0 0 2px var(--cs-blue); }
  .cs-tabs .cs-badge { top:5px; right:calc(50% - 24px); }
  .cs-right .cs-hide-m { display:none; }
  .cs-wrap { padding:calc(var(--cs-top) + 8px) 0 calc(var(--cs-bot) + env(safe-area-inset-bottom) + 16px); gap:0; }
  .cs-toast { bottom:calc(var(--cs-bot) + 24px); }
  .cs-reel-new { bottom:calc(var(--cs-bot) + 18px) !important; }
  .cs-main { flex-basis:100%; }
  .cs-card { border-radius:0; margin-bottom:8px; box-shadow:none; }
  .cs-media.n1 img { max-height:none; }
  .cs-pd { flex-direction:column; border-radius:0; }
  .cs-pd .det { flex-basis:auto; }
  .cs-pd .gal { min-height:300px; }
  .cs-mk-head, .cs-chips, .cs-grid, .cs-evcards, .cs-pad-m { padding-left:10px; padding-right:10px; }
  .cs-grid { grid-template-columns:repeat(2, 1fr); gap:8px; }
  .cs-prof-head { margin:-8px 0 8px; }
  .cs-cover { height:200px; border-radius:0; }
  .cs-prof-row { flex-direction:column; align-items:center; text-align:center; margin-top:-90px; }
  .cs-prof-row .pic img { width:150px; height:150px; }
  .cs-prof-row h1 { font-size:26px; }
  .cs-prof-body { flex-direction:column; gap:0; }
  .cs-prof-body .l { position:static; flex-basis:auto; width:100%; }
  .cs-prof-body .r { width:100%; }
  .cs-evhero { border-radius:0; }
  .cs-top.away { transform:translateY(-100%); }
  .cs-tabs { transition:transform .2s; }
  .cs-tabs.away { transform:translateY(100%); }
  .cs-dialog { width:100%; height:100%; max-height:none; border-radius:0; }
  .cs-modal { padding:0; }
}

/* shop inside the social pages: cart, checkout, orders */
.cs-cline { display:flex; gap:12px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--cs-line); }
.cs-cline img { width:72px; height:72px; border-radius:8px; object-fit:cover; flex:0 0 72px; background:var(--cs-bg); }
.cs-cline .info { flex:1; min-width:0; }
.cs-cline .lt { white-space:nowrap; }
.cs-qty.sm { margin-top:6px; gap:6px; }
.cs-qty.sm button { width:30px; height:30px; font-size:16px; }
.cs-qty.sm input { width:46px; height:30px; font-size:15px; }
.cs-qty .rm { background:transparent !important; color:var(--cs-mute); }
.cs-ctotal { display:flex; justify-content:space-between; padding:14px 16px; font-size:18px; }
.cs-addr { display:flex; gap:10px; align-items:flex-start; border:1px solid #ced0d4; border-radius:8px; padding:10px 12px; margin:0 0 8px; cursor:pointer; font-weight:400; }
.cs-addr:has(input:checked) { border-color:var(--cs-blue); background:var(--cs-blue-s); }
.cs-addr input { margin-top:3px; }
.cs-order { display:flex; gap:12px; align-items:center; padding:12px 16px; }
.cs-order img { width:64px; height:64px; border-radius:8px; object-fit:cover; flex:0 0 64px; }
.cs-order .info { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cs-order .tot { white-space:nowrap; }
.cs-pill { display:inline-block; color:#fff; font-size:12px; font-weight:700; padding:2px 9px; border-radius:10px; }
.cs-steps { display:flex; margin-top:16px; }
.cs-steps > div { flex:1; text-align:center; font-size:13px; color:var(--cs-mute); position:relative; padding-top:22px; }
.cs-steps > div span { position:absolute; top:0; left:50%; width:16px; height:16px; margin-left:-8px; border-radius:50%; background:#ced0d4; z-index:1; }
.cs-steps > div:before { content:""; position:absolute; top:7px; left:-50%; right:50%; height:3px; background:#ced0d4; }
.cs-steps > div:first-child:before { display:none; }
.cs-steps > div.on { color:var(--cs-blue); font-weight:700; }
.cs-steps > div.on span, .cs-steps > div.on:before { background:var(--cs-blue); }
.cs-item .im { position:relative; }
.cs-qadd { position:absolute; right:8px; bottom:8px; width:38px; height:38px; border-radius:50%; border:0; background:var(--cs-blue); color:#fff; font-size:16px; box-shadow:0 2px 6px rgba(0,0,0,.3); }
.cs-qadd:hover { background:var(--cs-blue-d); }
.cs-cart-n.hide { display:none; }

/* friends */
.cs-fb { display:inline-flex; gap:6px; flex-wrap:wrap; }
.cs-pgrid2 { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:12px; }
.cs-person { background:var(--cs-card); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.2); overflow:hidden; display:flex; flex-direction:column; }
.cs-person .pic { display:block; aspect-ratio:1/1; background:var(--cs-bg); }
.cs-person .pic img { width:100%; height:100%; object-fit:cover; display:block; }
.cs-person .in { padding:10px 12px 12px; display:flex; flex-direction:column; gap:4px; }
.cs-person .in b { font-size:17px; }
.cs-person .mut { font-size:13px; }
.cs-person .cs-fb { flex-direction:column; }
.cs-person .cs-fb .cs-btn { width:100%; }
.cs-sreq { display:flex; gap:10px; padding:8px; border-radius:8px; align-items:flex-start; }
.cs-sreq img { width:56px; height:56px; border-radius:50%; object-fit:cover; }
.cs-sreq .cs-fb { margin-top:6px; } .cs-sreq .cs-btn { height:32px; padding:0 12px; }
.cs-stack { display:flex; margin-top:6px; } .cs-stack img { width:32px; height:32px; border-radius:50%; border:2px solid #fff; margin-right:-8px; object-fit:cover; }
.cs-fgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.cs-fgrid a { display:block; } .cs-fgrid img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; display:block; }
.cs-fgrid b { font-size:13px; display:block; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cs-row.on { background:var(--cs-btn); }
.cs-nav a .cs-badge { top:8px; right:28px; }
@media (max-width: 900px) { .cs-pgrid2 { grid-template-columns:repeat(2, 1fr); gap:8px; padding:0 8px; } .cs-person .in b { font-size:15px; } }
.cs-fr-chips { display:none; }
@media (max-width: 900px) { .cs-fr-chips { display:flex; max-width:100vw; } }

/* side columns as cards; one-line comment under a post */
.cs-sidecard { padding:4px 8px 8px; }
.cs-sidecard .cs-h { margin:10px 8px 6px; }
.cs-left .cs-sidecard { padding:8px; }
.cs-sp img { width:96px; height:96px; flex-basis:96px; }
/* Facebook comment: bubble with name and text, one small line under it */
.cs-c .cs-cbody { min-width:0; max-width:calc(100% - 40px); }
.cs-c .bub b { font-size:13px; display:block; line-height:1.3; white-space:nowrap; }
.cs-c .bub { display:inline-block; }
.cs-c .bub .txt { display:block; }
.cs-c .bub .txt { font-size:15px; }
.cs-c .meta { display:flex; gap:14px; align-items:center; padding:3px 12px 0; font-size:12px; color:var(--cs-mute); }
.cs-c .meta button { border:0; background:transparent; color:var(--cs-mute); font-weight:700; font-size:12px; padding:0; }
.cs-c .meta button:hover { text-decoration:underline; }
.cs-cms .list.fold .bub { cursor:pointer; }
.cs-cms .list.fold .bub .txt { display:block; max-height:2.7em; overflow:hidden; }
@media (max-width: 900px) { .cs-left .cs-sidecard { box-shadow:none; } }
.cs-setpics { position:relative; margin:10px 0 70px; }
.cs-setcover { height:180px; border-radius:8px; background:linear-gradient(135deg,#d8dadf,#b0b3b8) center/cover; position:relative; }
.cs-setcover label { position:absolute; right:10px; bottom:10px; margin:0; cursor:pointer; }
.cs-setav { position:absolute; left:16px; bottom:-60px; display:flex; align-items:flex-end; gap:10px; }
.cs-setav img { width:120px; height:120px; border-radius:50%; border:4px solid #fff; object-fit:cover; background:var(--cs-card); }
.cs-setav label { margin:0 0 8px; cursor:pointer; }
.cs-cam { cursor:pointer; background:var(--cs-btn); box-shadow:0 1px 3px rgba(0,0,0,.25); width:40px; height:40px; }
.cs-cover .chg { cursor:pointer; background:var(--cs-card); }
/* only the picture sits over the cover; name and buttons start below it */
@media (min-width: 901px) {
  .cs-prof-row { align-items:flex-start; }
  .cs-prof-row .nm { padding-top:96px; padding-bottom:0; }
  .cs-prof-row > div:last-child:not(.nm):not(.pic) { padding-top:104px; }
}

/* signed-out pages: landing, sign up, forgotten password, policies */
.cs-landing { background:var(--cs-bg); min-height:100vh; display:flex; flex-direction:column; }
.cs-land { flex:1; display:flex; align-items:center; justify-content:center; gap:40px; padding:80px 20px 60px; max-width:1000px; margin:0 auto; width:100%; flex-wrap:wrap; }
.cs-land-brand { flex:1 1 480px; max-width:560px; }
.cs-land-brand .logo { display:flex; align-items:center; gap:14px; }
.cs-land-brand .logo img { width:64px; height:64px; border-radius:50%; object-fit:cover; background:var(--cs-card); }
.cs-land-brand .logo span { color:var(--cs-blue); font-size:56px; font-weight:800; letter-spacing:-2px; line-height:1; }
.cs-land-brand h2 { font-size:26px; font-weight:400; line-height:32px; margin:16px 0 0; }
.cs-land-right { flex:0 0 396px; max-width:100%; }
.cs-land-card { padding:16px; text-align:center; margin:0; }
.cs-in { width:100%; height:52px; border:1px solid #dddfe2; border-radius:6px; padding:0 16px; font-size:17px; margin-bottom:12px; outline:none; font-family:inherit; background:var(--cs-card); }
.cs-in:focus { border-color:var(--cs-blue); box-shadow:0 0 0 2px #e7f3ff; }
.cs-signup .cs-in { height:40px; font-size:15px; padding:0 11px; background:#f5f6f7; margin-bottom:10px; }
.cs-big { height:48px; font-size:20px !important; font-weight:700; padding:0 16px; }
.cs-land-card .cs-btn.green.cs-big { font-size:17px !important; }
.cs-forgot { color:var(--cs-blue) !important; font-size:14px; display:inline-block; margin-top:16px; }
.cs-forgot:hover { text-decoration:underline; }
.cs-land-err { background:#ffebe8; border:1px solid #dd3c10; color:#1c1e21; border-radius:6px; padding:10px 12px; margin-bottom:12px; font-size:14px; text-align:left; }
.cs-land-note { text-align:center; font-size:14px; margin-top:24px; }
.cs-pw { position:relative; }
.cs-pw button { position:absolute; right:8px; top:8px; border:0; background:transparent; color:var(--cs-mute); width:36px; height:36px; }
.cs-signup .cs-pw button { top:2px; }
.cs-signup { width:432px; }
.cs-signup .row2 { display:flex; gap:10px; } .cs-signup .row2 .cs-in { flex:1; min-width:0; }
.cs-signup .row3 { display:flex; gap:10px; margin-bottom:10px; }
.cs-g { flex:1; display:flex; justify-content:space-between; align-items:center; border:1px solid #ccd0d5; border-radius:4px; height:36px; padding:0 10px; font-weight:400; margin:0; cursor:pointer; }
.cs-small { font-size:12px; color:var(--cs-mute); display:block; margin:2px 0 4px; }
.cs-small a { color:var(--cs-blue) !important; }
.cs-foot { background:var(--cs-card); padding:20px 16px; font-size:12px; color:var(--cs-mute); }
.cs-foot > div { max-width:980px; margin:0 auto; }
.cs-foot .langs { display:flex; gap:12px; flex-wrap:wrap; border-bottom:1px solid #dddfe2; padding-bottom:8px; margin-bottom:8px; }
.cs-foot .langs a.on { color:var(--cs-text); font-weight:700; }
.cs-foot .links { display:flex; gap:14px; flex-wrap:wrap; }
.cs-foot a:hover { text-decoration:underline; }
.cs-foot .copy { margin-top:16px; }
.cs-pubtop.away { transform:translateY(-100%); }
.cs-pubtop { transition:transform .2s; position:fixed; top:0; left:0; right:0; height:60px; background:var(--cs-card); display:flex; align-items:center; justify-content:space-between; padding:0 20px; box-shadow:0 1px 2px rgba(0,0,0,.1); z-index:10; }
.cs-pubtop .cs-brand { font-size:30px; font-weight:800; color:var(--cs-blue); letter-spacing:-1px; }
.cs-legal { display:flex; gap:20px; max-width:1100px; width:100%; margin:0 auto; padding:80px 16px 40px; align-items:flex-start; flex:1; }
.cs-legal aside { flex:0 0 280px; position:sticky; top:76px; }
.cs-legal main { flex:1; min-width:0; }
.cs-legal h1 { margin:0 0 16px; font-size:28px; }
.cs-legal-body { line-height:1.6; font-size:16px; }
.cs-faq { border-bottom:1px solid var(--cs-line); padding:12px 0; }
.cs-faq summary { font-weight:700; cursor:pointer; font-size:16px; }
.cs-faq p { margin:8px 0 0; }
.cs-leftfoot { font-size:13px; color:var(--cs-mute); padding:12px 8px; line-height:1.6; }
.cs-leftfoot a:hover { text-decoration:underline; }
/* account menu */
.cs-acct-wrap { position:relative; }
.cs-acct { position:absolute; right:0; top:48px; width:360px; background:var(--cs-card); border-radius:8px; box-shadow:0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); padding:12px; z-index:60; }
.cs-acct a { display:flex; align-items:center; gap:12px; padding:8px; border-radius:8px; font-weight:600; }
.cs-acct a:hover { background:var(--cs-hover); }
.cs-acct a i { width:36px; height:36px; border-radius:50%; background:var(--cs-btn); display:inline-flex; align-items:center; justify-content:center; font-size:17px; }
.cs-acct .cs-acct-me { box-shadow:0 2px 12px rgba(0,0,0,.15); margin-bottom:10px; padding:12px; font-size:17px; }
.cs-acct .cs-acct-me img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.cs-acct-foot { font-size:12px; color:var(--cs-mute); padding:8px; line-height:1.6; }
.cs-acct-foot a { display:inline; padding:0; font-weight:400; } .cs-acct-foot a:hover { background:none; text-decoration:underline; }
@media (max-width: 900px) {
  .cs-land { padding-top:30px; gap:20px; text-align:center; }
  .cs-land-brand { flex-basis:100%; } .cs-land-brand .logo { justify-content:center; } .cs-land-brand .logo span { font-size:40px; }
  .cs-land-brand h2 { font-size:18px; line-height:24px; }
  .cs-land-right { flex-basis:100%; }
  .cs-legal { flex-direction:column; padding-top:70px; } .cs-legal aside { position:static; flex-basis:auto; width:100%; }
  .cs-signup { width:100%; }
}
.cs-c .bub { max-width:100%; } .cs-c .bub .txt { overflow-wrap:anywhere; white-space:pre-wrap; }
.cs-c .cs-cbody { flex:0 1 auto; }
.cs-cms.shut { display:none; }

/* inside the feed: friend requests / people you may know rows, sponsored products */
.cs-strip { padding:12px 0 14px; }
.cs-strip-h { display:flex; justify-content:space-between; align-items:center; padding:0 16px 10px; }
.cs-strip-h b { font-size:17px; display:inline-flex; gap:6px; align-items:center; }
.cs-strip-h a { color:var(--cs-blue); }
.cs-strip-row { display:flex; gap:8px; overflow-x:auto; padding:0 16px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.cs-scard { flex:0 0 176px; border:1px solid var(--cs-line); border-radius:8px; overflow:hidden; scroll-snap-align:start; display:flex; flex-direction:column; background:var(--cs-card); }
.cs-scard .pic { display:block; aspect-ratio:1/1; background:var(--cs-bg); }
.cs-scard .pic img { width:100%; height:100%; object-fit:cover; display:block; }
.cs-scard .in { padding:8px 10px 10px; display:flex; flex-direction:column; gap:3px; flex:1; }
.cs-scard .in b { font-size:15px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cs-scard .mut { font-size:12px; }
.cs-scard .cs-fb { flex-direction:column; margin-top:auto; } .cs-scard .cs-fb .cs-btn { width:100%; height:34px; }
.cs-ad-img { display:block; background:var(--cs-bg); }
.cs-ad-img img { width:100%; max-height:560px; object-fit:contain; display:block; }
.cs-ad-foot { display:flex; align-items:center; gap:10px; padding:10px 16px 14px; background:var(--cs-soft); }
.cs-ad-foot .info { flex:1; min-width:0; display:flex; flex-direction:column; }
.cs-ad-foot small { color:var(--cs-mute); font-size:12px; }
.cs-ad-foot b { font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cs-ad-foot .price { font-weight:700; }
.cs-ad-foot .btns { display:flex; gap:6px; }
@media (max-width: 900px) { .cs-scard { flex-basis:150px; } }

/* Video tab (short videos, one per screen) */
.cs-reels-main { flex:0 1 auto !important; margin:0 auto; }
body.cs:has(.cs-reels) .cs-wrap { padding-bottom:0; }
.cs-reels { height:calc(100vh - var(--cs-top) - 32px); overflow-y:auto; scroll-snap-type:y mandatory; scrollbar-width:none; border-radius:12px; }
.cs-reels::-webkit-scrollbar { display:none; }
.cs-reel { height:100%; scroll-snap-align:start; scroll-snap-stop:always; display:flex; align-items:center; justify-content:center; padding:6px 0; }
.cs-reel-stage { position:relative; height:100%; aspect-ratio:9/16; max-width:100vw; background:#000; border-radius:12px; overflow:hidden; }
.cs-reel-stage video { width:100%; height:100%; object-fit:contain; display:block; background:#000; }
.cs-reel-tap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.85); font-size:64px; opacity:0; pointer-events:none; transition:opacity .2s; }
.cs-reel.paused .cs-reel-tap { opacity:1; }
.cs-reel-info { position:absolute; left:0; right:64px; bottom:0; padding:60px 14px 16px; color:#fff; background:linear-gradient(transparent, rgba(0,0,0,.65)); display:flex; flex-direction:column; gap:6px; }
.cs-reel-info .who { display:flex; align-items:center; gap:8px; color:#fff !important; }
.cs-reel-info .who img { width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid #fff; }
.cs-reel-info .cap { font-size:14px; white-space:pre-wrap; text-shadow:0 1px 2px rgba(0,0,0,.5); }
.cs-reel-info small { color:rgba(255,255,255,.8); }
.cs-reel-info .prod { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.18); backdrop-filter:blur(6px); border-radius:8px; padding:6px 8px; color:#fff !important; font-size:13px; }
.cs-reel-info .prod img { width:34px; height:34px; border-radius:6px; object-fit:cover; }
.cs-reel-info .prod span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cs-reel-acts { position:absolute; right:8px; bottom:24px; display:flex; flex-direction:column; gap:16px; align-items:center; }
.cs-reel-acts .ra { border:0; background:transparent; color:#fff !important; display:flex; flex-direction:column; align-items:center; gap:3px; font-size:12px; font-weight:600; text-shadow:0 1px 2px rgba(0,0,0,.6); }
.cs-reel-acts .ra i { width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:20px; }
.cs-reel-acts .ra.on i { background:var(--cs-blue); }
.cs-reel-empty { color:var(--cs-mute); text-align:center; }
.cs-reel-new { position:fixed; right:24px; bottom:24px; z-index:40; border:0; border-radius:24px; height:48px; padding:0 18px; background:var(--cs-blue); color:#fff; font-weight:700; box-shadow:0 4px 12px rgba(0,0,0,.25); display:flex; gap:8px; align-items:center; }
@media (max-width: 900px) {
  .cs-reels { height:calc(100vh - var(--cs-top) - var(--cs-bot) - 8px); border-radius:0; }
  .cs-reel { padding:0; }
  .cs-reel-stage { width:100vw; aspect-ratio:auto; border-radius:0; }
  .cs-reel-new { right:14px; bottom:18px; width:52px; height:52px; padding:0; justify-content:center; border-radius:50%; }
  .cs-reel-new span { display:none; }
  body.cs:has(.cs-reels) .cs-top.away, body.cs:has(.cs-reels) .cs-tabs.away { transform:none; }
}

/* Marketing promotions on prices */
.cs-price s { color:var(--cs-mute); font-weight:400; font-size:.85em; margin-left:4px; }
.cs-off { color:#e41e3f; font-style:normal; font-weight:700; font-size:.85em; }
.cs-gift { display:flex; gap:5px; align-items:baseline; color:#7a3fe0; font-size:12.5px; font-weight:600; line-height:1.35; margin-top:2px; }
.cs-gift .fa-gift { flex:none; font-size:.95em; }
.cs-badge-off { position:absolute; left:8px; top:8px; background:#e41e3f; color:#fff; font-weight:800; font-size:13px; padding:3px 8px; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.cs-badge-off.gift { background:#7a3fe0; }
.cs-deal-tag { position:absolute; right:8px; top:8px; background:#7a3fe0; color:#fff; font-weight:800; font-size:13px; line-height:1; padding:5px 9px; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,.3); white-space:nowrap; }
.cs-badge-off.big { font-size:18px; padding:6px 12px; left:14px; top:14px; }
.cs-ad-img { position:relative; }
.cs-promo { background:#fff0f2; color:#c4122f; border-radius:6px; padding:6px 10px; font-weight:600; font-size:14px; }

/* a video link in a post */
.cs-embed { position:relative; background:#000; aspect-ratio:16/9; }
.cs-embed.tall { aspect-ratio:9/16; max-height:720px; margin:0 auto; }
.cs-embed iframe, .cs-embed video { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.cs-reel-frame { width:100%; height:100%; border:0; display:block; }
.cs-embed iframe { overflow:hidden; }
.cs-embed.tall { width:min(100%, 405px); max-height:none; }
/* TikTok's player draws its own counts at the bottom right: ours go to the top right */
.cs-reel-stage.tk .cs-reel-acts { bottom:auto; top:90px; }
.cs-reel-stage.tk .cs-reel-info { right:90px; background:linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events:none; }
.cs-reel-stage.tk .cs-reel-info a { pointer-events:auto; }
.cs-reel-stage.tk .cs-reel-info { bottom:56px; padding-top:30px; background:none; text-shadow:0 1px 3px rgba(0,0,0,.8); }
/* the profile picture in the top bar: a true circle, photo shrunk to fit */
.cs-top .cs-circle { padding:0; flex:0 0 40px; }
.cs-acct-wrap .cs-circle { overflow:hidden; }
.cs-top .cs-circle img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.cs-acct-wrap { display:inline-flex; }

/* My account */
.cs-acc h2 { display:flex; align-items:center; gap:10px; margin:0 0 12px; font-size:22px; }
.cs-acc h2 .ic, .cs-acc-chips .ic { width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:16px; }
.cs-acc-row { display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid var(--cs-line); }
.cs-acc-row:last-child { border-bottom:0; }
a.cs-acc-row:hover { background:var(--cs-hover); }
.cs-acc-row .l { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.cs-acc-row .l small { color:var(--cs-mute); }
.cs-acc-row .r { white-space:nowrap; }
.cs-acc-total { font-size:18px; margin-bottom:10px; }
.cs-acc-table { overflow-x:auto; }
.cs-acc-table table { width:100%; border-collapse:collapse; font-size:14px; }
.cs-acc-table th, .cs-acc-table td { padding:8px; border-bottom:1px solid var(--cs-line); text-align:left; white-space:nowrap; }
.cs-acc-table th { color:var(--cs-mute); font-weight:600; }
.ok { color:#0a9d58; } .bad { color:#e41e3f; }
.cs-points { background:linear-gradient(135deg,#f7b928,#ff8a00); color:#fff; border-radius:12px; padding:16px; margin-bottom:12px; }
.cs-points .big { font-size:34px; font-weight:800; }
.cs-points .row { display:flex; gap:16px; flex-wrap:wrap; margin-top:6px; }
.cs-disc { border:1px solid var(--cs-line); border-radius:10px; padding:12px; margin-bottom:12px; }
.cs-disc .h { margin-bottom:10px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cs-acc-chips { display:none; }
.cs-prof-tabs a.ext { color:var(--cs-mute); font-weight:600; }
.cs-prof-tabs { overflow-x:auto; scrollbar-width:none; }
@media (max-width: 900px) { .cs-acc-chips { display:flex; padding:0 8px; } .cs-acc { border-radius:0; } }
/* #hashtags and @mentions */
.cs-tag { color:var(--cs-blue) !important; font-weight:600; }
a.cs-tag:hover { text-decoration:underline; }
/* "Change cover" sits under the name row's top edge: keep it on top so it can be clicked */
.cs-cover .chg { z-index:5; }
.cs-prof-row .pic label { z-index:5; }

/* long text: one line, then "See more" */
/* the gap under a one-line caption is a MARGIN (owner 2026-11-29: "the text to the image very too close"): padding
   inside a clamped box would show the top of the hidden second line, so it was 0 -- and the photo touched the text */
.cs-body.clamp { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; padding-bottom:0; margin-bottom:12px; }
.cs-seemore { border:0; background:transparent; color:var(--cs-mute); font-weight:700; padding:0 16px 12px; font-size:15px; }
.cs-seemore:hover { text-decoration:underline; }
/* YouTube cover + play, and the Watch on YouTube bar */
.cs-yt { cursor:pointer; overflow:hidden; }
.cs-yt img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cs-yt-title { position:absolute; left:0; right:0; top:0; padding:12px 14px 30px; color:#fff; font-weight:600; font-size:15px; background:linear-gradient(rgba(0,0,0,.65), transparent); text-shadow:0 1px 2px rgba(0,0,0,.6); }
.cs-yt-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:68px; height:48px; border:0; border-radius:12px; background:#ff0033; color:#fff; font-size:22px; box-shadow:0 2px 10px rgba(0,0,0,.4); }
.cs-yt:hover .cs-yt-play { background:#e0002d; }
.cs-yt-bar { display:flex; align-items:center; gap:8px; padding:9px 16px; background:var(--cs-soft); border-top:1px solid var(--cs-line); font-size:13px; color:var(--cs-mute) !important; }
.cs-yt-bar > i { color:#ff0033; font-size:18px; }
.cs-yt-bar span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cs-yt-bar b { color:var(--cs-text); white-space:nowrap; }
.cs-yt-bar:hover b { text-decoration:underline; }

/* MLM network */
.cs-mlm-top { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
.cs-mlm-top .box { background:linear-gradient(135deg,#7b2ff7,#1877f2); color:#fff; border-radius:10px; padding:12px; display:flex; flex-direction:column; }
.cs-mlm-top .box b { font-size:24px; }
.cs-ref { border:1px dashed #7b2ff7; border-radius:10px; padding:12px; margin-bottom:8px; }
.cs-ref .row { display:flex; gap:6px; margin-top:8px; } .cs-ref .row .cs-input { flex:1; min-width:0; }
.cs-node { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid var(--cs-line); border-radius:10px; background:var(--cs-card); }
.cs-node .av { width:32px; height:32px; border-radius:50%; background:#7b2ff7; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.cs-node .nm { display:flex; flex-direction:column; } .cs-node small { color:var(--cs-mute); }
.cs-tree, .cs-tree ul { list-style:none; margin:0; padding-left:22px; border-left:2px solid #e4e6eb; }
.cs-tree { padding-left:8px; border-left:0; } .cs-tree li { margin:6px 0; position:relative; }
.cs-tree ul li:before { content:""; position:absolute; left:-22px; top:20px; width:18px; border-top:2px solid #e4e6eb; }

/* a post being sent: faded, under a shade with a progress bar, at the top of the feed */
.cs-pending { position:relative; overflow:hidden; }
.cs-pending > :not(.cs-pend-shade) { opacity:.55; filter:grayscale(.3); }
.cs-pend-media { background:#000; }
.cs-pend-media video, .cs-pend-media img { width:100%; max-height:420px; object-fit:contain; display:block; }
.cs-pend-shade { position:absolute; inset:0; background:rgba(255,255,255,.35); display:flex; align-items:center; justify-content:center; padding:16px; }
.cs-pend-box { background:rgba(0,0,0,.72); color:#fff; border-radius:12px; padding:14px 18px; width:min(320px, 90%); display:flex; flex-direction:column; align-items:center; gap:8px; }
.cs-pend-box > i { font-size:26px; }
.cs-pend-box .lbl { font-weight:700; text-align:center; }
.cs-pend-box .bar { width:100%; height:6px; border-radius:3px; background:rgba(255,255,255,.25); overflow:hidden; }
.cs-pend-box .bar i { display:block; height:100%; width:0; background:#4ea1ff; border-radius:3px; transition:width .25s; }
.cs-pending.indef .bar i { width:40% !important; animation:cs-indef 1s infinite ease-in-out; }
@keyframes cs-indef { from { transform:translateX(-100%); } to { transform:translateX(250%); } }
.cs-pending.failed .cs-pend-box { background:rgba(228,30,63,.85); }
.cs-pend-box .acts { display:flex; gap:6px; }
.cs-just { animation:cs-pop .5s ease; }
@keyframes cs-pop { from { box-shadow:0 0 0 3px var(--cs-blue); } to { box-shadow:0 1px 2px rgba(0,0,0,.2); } }
.cs-invited { background:#efe7ff; color:#5b21b6; border-radius:6px; padding:6px 10px; font-size:13px; margin:-4px 0 10px; text-align:left; }
/* unfinished uploads on pages without the feed: a strip under the top bar */
.cs-upq { position:fixed; top:calc(var(--cs-top) + 8px); right:12px; width:min(340px, calc(100vw - 24px)); z-index:45; display:flex; flex-direction:column; gap:8px; }
.cs-pending.mini { margin:0; box-shadow:0 6px 20px rgba(0,0,0,.25); }
.cs-pending.mini .cs-pend-media, .cs-pending.mini .cs-body { display:none; }
.cs-pending.mini .cs-pend-shade { position:static; background:none; padding:0 10px 10px; }
.cs-pending.mini .cs-pend-box { width:100%; flex-direction:row; flex-wrap:wrap; padding:8px 12px; }
.cs-pending.mini .cs-pend-box > i { font-size:18px; } .cs-pending.mini .lbl { flex:1; font-size:13px; }

/* the website's content in the left column */
.cs-cmsbox { margin-top:12px; }
.cs-cmsitem { display:flex; gap:10px; padding:8px; border-radius:8px; align-items:center; }
.cs-cmsitem:hover { background:var(--cs-hover); }
.cs-cmsitem img, .cs-cmsitem .ph { width:64px; height:64px; border-radius:8px; object-fit:cover; flex:0 0 64px; background:var(--cs-bg); }
.cs-cmsitem .ph { display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; }
.cs-cmsitem div { min-width:0; display:flex; flex-direction:column; gap:1px; }
.cs-cmsitem small { font-weight:700; font-size:12px; text-transform:uppercase; }
.cs-cmsitem b { font-size:14px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.cs-cmsitem span { color:var(--cs-mute); font-size:12px; }

/* Full policies (legal_texts.py, owner 2026-11-04): last updated, contents, numbered sections. */
.cs-legal-body h2{font-size:18px;font-weight:700;margin:26px 0 8px;scroll-margin-top:70px}
.cs-legal-body p{margin:0 0 10px;line-height:1.75}
.cs-legal-upd{color:var(--cs-muted,#65676b);font-size:13px;margin:-4px 0 14px!important}
.cs-legal-toc{background:var(--cs-bg,#f0f2f5);border-radius:10px;padding:12px 16px;margin:0 0 8px}
.cs-legal-toc ol{margin:6px 0 0;padding-left:22px;columns:2;column-gap:28px}
.cs-legal-toc li{margin:3px 0;break-inside:avoid}
.cs-legal-toc a{color:var(--cs-blue,#1877f2);text-decoration:none}
@media(max-width:640px){.cs-legal-toc ol{columns:1}}

/* Profile dropdown carries Menu / Notifications / Cart / Events on desktop (owner 2026-11-04). */
.cs-acct a.on { background:var(--cs-hover); }
.cs-acct .cs-acct-n { margin-left:auto; position:static; min-width:22px; height:22px; padding:0 7px; border-radius:11px;
  background:#e41e3f; color:#fff; font-size:12px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.cs-acct .cs-acct-n.hide { display:none; }
.cs-acct-sep { height:1px; background:var(--cs-btn); margin:6px 4px; }
.cs-acct-wrap [data-acct] .cs-badge { position:absolute; top:-4px; right:-4px; }
.cs-acct-wrap [data-acct] { overflow:visible; }
.cs-acct-wrap [data-acct] > img { border-radius:50%; }
/* Log-in page: the website, as a clear button under the card (owner 2026-11-04). */
.cs-land-site { display:flex; align-items:center; justify-content:center; gap:8px; margin:14px 0 0; padding:12px 16px;
  background:var(--cs-card); border-radius:8px; box-shadow:0 2px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.06);
  color:var(--cs-blue,#1877f2); font-weight:700; font-size:16px; text-decoration:none; }
.cs-land-site:hover { background:#f5f9ff; text-decoration:none; }
/* "No account yet" — laid over the sign-up box itself (same size), fading into the form. */
.cs-signup { position:relative; }
.cs-ask { position:absolute; inset:0; z-index:5; background:var(--cs-card); border-radius:8px; display:flex; flex-direction:column;
  padding:16px; transition:opacity .35s ease, transform .35s ease; animation:csAskIn .25s ease; }
.cs-ask.gone { opacity:0; transform:scale(.98); pointer-events:none; }
@keyframes csAskIn { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:none; } }
.cs-ask-body { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:10px 16px; }
.cs-ask-ico { width:84px; height:84px; border-radius:50%; background:linear-gradient(135deg,#e7f3ff,#d4e8ff); color:var(--cs-blue,#1877f2);
  display:flex; align-items:center; justify-content:center; font-size:36px; margin-bottom:18px; box-shadow:0 0 0 8px #f3f8ff; }
.cs-ask-body h2 { margin:0 0 10px; font-size:24px; font-weight:800; }
.cs-ask-body p { margin:0 0 16px; font-size:16px; line-height:1.7; color:#4b4f56; max-width:340px; }
.cs-ask-phone { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:999px; background:var(--cs-bg);
  font-weight:700; font-size:17px; letter-spacing:.5px; }
.cs-ask-foot { padding:0 0 0; }

/* ==========================================================================
   Front page templates (Manage > Settings > Front page, owner 2026-11-05).
   <body class="cs cs-tpl-<key>">; "classic" is everything above, unchanged.
   Our own designs, each in the spirit of a kind of social app.
   ========================================================================== */

/* --- Photo gallery: one narrow column, square pictures first, light ---------- */
body.cs-tpl-gallery { --cs-bg:#fafafa; --cs-blue:#c026d3; --cs-blue-d:#a21caf; --cs-blue-s:#fdf4ff; }
.cs-tpl-gallery .cs-top { box-shadow:none; border-bottom:1px solid #e5e5e5; }
.cs-tpl-gallery .cs-top .cs-brand { background:linear-gradient(90deg, #f97316, #db2777, #7c3aed); -webkit-background-clip:text; background-clip:text; color:transparent; font-style:italic; }
.cs-tpl-gallery .cs-left { display:none; }
.cs-tpl-gallery .cs-main { flex-basis:520px; }
.cs-tpl-gallery .cs-card { box-shadow:none; border:1px solid #e7e7e7; border-radius:14px; }
.cs-tpl-gallery .cs-post { display:flex; flex-direction:column; }
.cs-tpl-gallery .cs-post > * { order:3; }
.cs-tpl-gallery .cs-post > .cs-ph { order:0; }
.cs-tpl-gallery .cs-post > :is(.cs-media, .cs-video, .cs-embed, .cs-ad-img) { order:1; }
.cs-tpl-gallery .cs-post > .cs-stats { order:2; }
.cs-tpl-gallery .cs-media, .cs-tpl-gallery .cs-media.n1 { background:var(--cs-card); }
.cs-tpl-gallery .cs-media > *, .cs-tpl-gallery .cs-media.n1 > * { aspect-ratio:1 / 1; }
.cs-tpl-gallery .cs-media.n1 img { object-fit:cover; max-height:none; background:var(--cs-card); }
.cs-tpl-gallery .cs-ph .cs-av { box-shadow:0 0 0 2px #fff, 0 0 0 4px #db2777; }
.cs-tpl-gallery .cs-bar { border-top:0; }

/* --- Professional: calm colours, framed cards ---------------------------------- */
body.cs-tpl-pro { --cs-bg:#eef1f5; --cs-blue:#1d4f91; --cs-blue-d:#163d70; --cs-blue-s:#e8eef7; --cs-line:#dfe3e8; font-size:14px; }
.cs-tpl-pro .cs-top { box-shadow:none; border-bottom:1px solid #dfe3e8; }
.cs-tpl-pro .cs-top .cs-brand { font-weight:700; letter-spacing:0; }
.cs-tpl-pro .cs-top .cs-logo { border-radius:8px; }
.cs-tpl-pro .cs-card { box-shadow:none; border:1px solid #dfe3e8; border-radius:10px; }
.cs-tpl-pro .cs-av, .cs-tpl-pro .cs-row img.ic { border-radius:8px; }
.cs-tpl-pro .cs-left, .cs-tpl-pro .cs-side { width:300px; flex-basis:300px; }
.cs-tpl-pro .cs-left .cs-sidecard > .cs-row:first-child { flex-direction:column; text-align:center; padding:18px 8px 14px; border-bottom:1px solid #dfe3e8; border-radius:0; margin-bottom:6px; }
.cs-tpl-pro .cs-left .cs-sidecard > .cs-row:first-child .ic { width:72px; height:72px; }
.cs-tpl-pro .cs-nav a.on { border-bottom-width:2px; }

/* --- Video channel: posts as a grid of wide tiles ------------------------------- */
body.cs-tpl-video { --cs-bg:#fff; --cs-blue:#e53935; --cs-blue-d:#c62828; --cs-blue-s:#fdecea; }
.cs-tpl-video .cs-top { box-shadow:none; }
.cs-tpl-video .cs-side { display:none; }
.cs-tpl-video .cs-left { width:240px; flex-basis:240px; }
.cs-tpl-video .cs-left .cs-card { box-shadow:none; }
.cs-tpl-video .cs-main { flex:1 1 auto; max-width:none; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:24px 16px; align-items:start; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) > :is(.cs-more, .cs-end, .cs-strip) { grid-column:1 / -1; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post { display:flex; flex-direction:column; padding-top:0; margin:0; box-shadow:none; background:transparent; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > * { order:3; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > :is(.cs-media, .cs-video, .cs-embed, .cs-ad-img, .cs-prod, .cs-ev) { order:0; border-radius:12px; overflow:hidden; margin:0 0 10px; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > .cs-ph { order:1; padding:0; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > .cs-body { order:2; padding:4px 0 0 52px; font-weight:600; -webkit-line-clamp:2; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > :is(.cs-bar, .cs-cms, .cs-stats, .cs-yt-bar) { display:none; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > .cs-ad-foot { order:2; padding:0; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-media { grid-template-columns:1fr !important; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-media > :not(:first-child) { display:none; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-media > *, .cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-video { aspect-ratio:16 / 9; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-media img, .cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-video video { width:100%; height:100%; object-fit:cover; max-height:none; }
.cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post:not(:has(.cs-media, .cs-video, .cs-embed, .cs-ad-img, .cs-prod, .cs-ev)) > .cs-body {
  order:0; aspect-ratio:16 / 9; margin:0 0 10px; padding:18px; border-radius:12px; background:linear-gradient(135deg, #fdecea, #f5f5f5);
  font-size:18px; display:block; overflow:hidden; }

/* --- Short videos: home is the full-screen player (views.feed), dark ---------- */
body.cs-tpl-shorts { --cs-bg:#0f0f10; --cs-card:#1c1c1f; --cs-line:#2c2c30; --cs-text:#f1f1f1; --cs-mute:#a1a1aa; --cs-hover:#26262a;
  --cs-blue:#22d3ee; --cs-blue-d:#06b6d4; --cs-blue-s:#083344; }
.cs-tpl-shorts :is(.cs-top, .cs-tabs, .cs-menu-pop, .cs-picker, .cs-dialog, .cs-acct, .cs-pd, .cs-evcard, .cs-evhero, .cs-mtile, .cs-mrow,
  .cs-person, .cs-prof-head, .cs-item .im, .cs-date, .cs-foot) { background:var(--cs-card); color:var(--cs-text); }
.cs-tpl-shorts .cs-top { box-shadow:0 1px 0 #26262a; }
.cs-tpl-shorts .cs-circle { background:#26262a; color:#f1f1f1; }
.cs-tpl-shorts .cs-search input, .cs-tpl-shorts input, .cs-tpl-shorts textarea, .cs-tpl-shorts select { background:#26262a; color:#f1f1f1; border-color:#3a3a40; }
.cs-tpl-shorts .cs-top .cs-brand { color:#f1f1f1; }
.cs-tpl-shorts .cs-card { box-shadow:none; }

/* --- Channel: posts as message bubbles in one column ----------------------------- */
body.cs-tpl-channel { --cs-bg:#d6e4ec; --cs-blue:#3390d6; --cs-blue-d:#2a7bbd; --cs-blue-s:#e4f1fb;
  background-image:radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size:18px 18px; }
.cs-tpl-channel .cs-side { display:none; }
.cs-tpl-channel .cs-main { flex-basis:640px; }
.cs-tpl-channel :is(#csFeed, #csPubPosts) .cs-post { max-width:580px; border-radius:16px 16px 16px 4px; box-shadow:0 1px 1px rgba(0,0,0,.13); margin-bottom:10px; }
.cs-tpl-channel :is(#csFeed, #csPubPosts) .cs-post .cs-media, .cs-tpl-channel :is(#csFeed, #csPubPosts) .cs-post .cs-video { margin:0 8px; border-radius:12px; overflow:hidden; }
.cs-tpl-channel .cs-ph .cs-av { width:34px; height:34px; }
.cs-tpl-channel .cs-ph .who b a { color:var(--cs-blue); }
.cs-tpl-channel .cs-bar { border-top:0; }
.cs-tpl-channel .cs-bar button { font-size:13px; }
.cs-tpl-channel .cs-compose, .cs-tpl-channel .cs-strip { border-radius:16px; }

@media (max-width: 900px) {
  .cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) { grid-template-columns:1fr; gap:16px; padding:0 10px; }
  .cs-tpl-gallery .cs-card, .cs-tpl-pro .cs-card { border-left:0; border-right:0; border-radius:0; }
  .cs-tpl-channel :is(#csFeed, #csPubPosts) .cs-post { margin:0 8px 10px; }
}

/* Each look its own phone design (owner 2026-11-16: "the mobile every thing like the same") -- the header,
   the cards and the buttons change, not only the colour. Signed in (.cs-top) and visitor (.cs-pubtop) alike. */
@media (max-width: 900px) {
  /* Photo gallery: white, no cards, full-width square pictures, the buttons as icons only */
  body.cs-tpl-gallery { --cs-bg:#fff; }
  .cs-tpl-gallery :is(.cs-top, .cs-pubtop) { box-shadow:none; border-bottom:1px solid #efefef; }
  .cs-tpl-gallery .cs-post { border:0 !important; border-bottom:1px solid #efefef !important; margin:0 0 6px; }
  .cs-tpl-gallery .cs-post > :is(.cs-media, .cs-video, .cs-embed) { margin-left:0; margin-right:0; border-radius:0; }
  .cs-tpl-gallery .cs-bar { justify-content:flex-start; gap:4px; padding:2px 6px; }
  .cs-tpl-gallery .cs-bar > :is(button, .rw), .cs-tpl-gallery .cs-bar > .rw > button { flex:0 0 auto; width:auto; }
  .cs-tpl-gallery .cs-bar > button, .cs-tpl-gallery .cs-bar > .rw > button { font-size:0; padding:8px 10px; }
  .cs-tpl-gallery .cs-bar button :is(i, .em) { font-size:23px; }
  .cs-tpl-gallery .cs-bar .cs-picker button { font-size:24px; }
  .cs-tpl-gallery .cs-post > .cs-body { font-size:14px; }

  /* Professional: a dark blue header, framed cards with space around them, smaller type */
  .cs-tpl-pro :is(.cs-top, .cs-pubtop) { background:#1d4f91; box-shadow:none; border-bottom:0; }
  .cs-tpl-pro :is(.cs-top, .cs-pubtop) .cs-brand { color:#fff; }
  .cs-tpl-pro :is(.cs-top, .cs-pubtop) :is(.cs-circle, .cs-pq-b) { background:rgba(255,255,255,.16); color:#fff; }
  .cs-tpl-pro .cs-card { border:1px solid #dfe3e8 !important; border-radius:10px !important; margin-left:10px; margin-right:10px; }
  .cs-tpl-pro .cs-post .cs-bar button { font-size:13px; text-transform:uppercase; letter-spacing:.03em; }

  /* Video channel: a black header, edge-to-edge 16:9 tiles */
  .cs-tpl-video :is(.cs-top, .cs-pubtop) { background:#0f0f0f; box-shadow:none; }
  .cs-tpl-video :is(.cs-top, .cs-pubtop) .cs-brand { color:#fff; }
  .cs-tpl-video :is(.cs-top, .cs-pubtop) :is(.cs-circle, .cs-pq-b) { background:#272727; color:#fff; }
  .cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) { padding:0; gap:18px; }
  .cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > :is(.cs-media, .cs-video, .cs-embed, .cs-ad-img, .cs-prod, .cs-ev) { border-radius:0; }
  .cs-tpl-video :is(#csFeed:not(.single), #csPubPosts) .cs-post > :is(.cs-ph, .cs-body) { padding-left:12px; padding-right:12px; }

  /* Channel: a blue header like a chat app, posts as bubbles that do not fill the screen */
  .cs-tpl-channel :is(.cs-top, .cs-pubtop) { background:#3390d6; box-shadow:none; }
  .cs-tpl-channel :is(.cs-top, .cs-pubtop) .cs-brand { color:#fff; }
  .cs-tpl-channel :is(.cs-top, .cs-pubtop) :is(.cs-circle, .cs-pq-b) { background:rgba(255,255,255,.2); color:#fff; }
  .cs-tpl-channel :is(#csFeed, #csPubPosts) .cs-post { max-width:88%; border-radius:18px 18px 18px 4px !important; }
  .cs-tpl-channel .cs-bar button { font-size:12px; }
}

/* Language: two buttons side by side, the one in use filled in -- one tap to switch. */
.cs-lang { display:flex; align-items:center; gap:12px; padding:8px; font-weight:600; }
.cs-lang > i { width:36px; height:36px; border-radius:50%; background:var(--cs-btn); display:inline-flex; align-items:center; justify-content:center; font-size:17px; flex:0 0 36px; }
.cs-lang.cs-mrow > i { width:36px; }
.cs-lang > span:first-of-type { flex:1 1 auto; min-width:0; }
.cs-lang-seg { display:inline-flex; background:var(--cs-btn); border-radius:999px; padding:3px; gap:2px; flex:0 0 auto; }
.cs .cs-lang-seg a, .cs-acct .cs-lang-seg a { display:inline-flex; align-items:center; padding:6px 14px; border-radius:999px; font-size:14px; font-weight:600;
  color:var(--cs-mute); background:transparent; gap:0; }
.cs .cs-lang-seg a.on, .cs-acct .cs-lang-seg a.on { background:var(--cs-card); color:var(--cs-blue); box-shadow:0 1px 3px rgba(0,0,0,.18); }
.cs-acct .cs-lang-seg a:hover { background:rgba(255,255,255,.6); }
.cs-lang-seg.big a { padding:9px 22px; font-size:15px; }

/* "… is better on the app": Facebook's install sheet, phones only. */
.cs-getapp-bg { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:200; opacity:0; pointer-events:none; transition:opacity .2s; }
.cs-getapp-bg.open { opacity:1; pointer-events:auto; }
.cs-getapp { position:fixed; left:0; right:0; bottom:0; z-index:201; background:var(--cs-card); border-radius:18px 18px 0 0; text-align:center;
  padding:28px 20px calc(16px + env(safe-area-inset-bottom, 0px)); transform:translateY(105%); transition:transform .28s ease; }
.cs-getapp.open { transform:none; }
.cs-getapp-logo { width:60px; height:60px; border-radius:50%; object-fit:cover; display:block; margin:0 auto 14px; }
.cs-getapp h3 { margin:0 0 8px; font-size:22px; font-weight:600; color:var(--cs-text); }
.cs-getapp p { margin:0 auto 18px; max-width:340px; color:var(--cs-mute); font-size:15px; }
.cs-getapp-ios { background:var(--cs-blue-s); color:var(--cs-text) !important; border-radius:10px; padding:10px; }
.cs-getapp button { display:block; width:100%; height:44px; border:0; border-radius:8px; font:inherit; font-weight:600; font-size:16px; margin-top:8px; cursor:pointer; }
.cs-getapp-go { background:var(--cs-blue); color:#fff; }
.cs-getapp-no { background:var(--cs-btn); color:var(--cs-text); }

/* Facebook-style icons (2026-11-09): outline grey, solid blue on the open page; two-tone menu pictures */
.cs-ni { width:26px; height:26px; display:block; }
.cs-ni.f, .cs-nav a.on .cs-ni.o, .cs-tabs a.on .cs-ni.o { display:none; }
.cs-nav a.on .cs-ni.f, .cs-tabs a.on .cs-ni.f { display:block; }
.cs-tabs .cs-ni { width:25px; height:25px; }
.cs-row .ic.art { background:none !important; border-radius:0; }
.cs-art { width:36px; height:36px; display:block; flex:0 0 auto; }
.cs-mtile .cs-art { width:30px; height:30px; }

/* Log-in page: the website's articles scrolling above the footer (2026-11-09) */
.cs-land-cms { max-width:1100px; width:100%; margin:0 auto 36px; padding:0 20px; box-sizing:border-box; }
.cs-land-cms-h { display:flex; justify-content:space-between; align-items:baseline; font-size:18px; margin:0 4px 12px; }
.cs-land-cms-h a { color:var(--cs-blue); font-size:15px; }
.cs-land-cms-view { overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent); mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent); }
.cs-land-cms-track { display:flex; gap:16px; width:max-content; padding:4px 0 8px; }
.cs-land-cms-track.run { animation:csLandCms calc(var(--n) * 5s) linear infinite; }
.cs-land-cms-view:hover .cs-land-cms-track, .cs-land-cms-view:active .cs-land-cms-track { animation-play-state:paused; }
@keyframes csLandCms { to { transform:translateX(calc(-50% - 8px)); } }
.cs-land-cms-card { flex:0 0 240px; background:var(--cs-card); border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.12); color:inherit; display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; }
.cs-land-cms-card:hover { text-decoration:none; transform:translateY(-3px); box-shadow:0 6px 16px rgba(0,0,0,.14); }
.cs-land-cms-card .pic { display:block; aspect-ratio:16/10; background:var(--cs-btn); }
.cs-land-cms-card .pic img, .cs-land-cms-card .ph { width:100%; height:100%; object-fit:cover; display:flex; align-items:center; justify-content:center; color:#fff; font-size:34px; }
.cs-land-cms-card .in { padding:10px 12px 12px; display:flex; flex-direction:column; gap:3px; }
.cs-land-cms-card .k { font-size:12px; font-weight:700; }
.cs-land-cms-card .tt { font-weight:600; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.7em; }
.cs-land-cms-card .d { font-size:12px; color:var(--cs-mute); }
@media (prefers-reduced-motion:reduce) { .cs-land-cms-track.run { animation:none; } .cs-land-cms-view { overflow-x:auto; } }
@media (max-width:600px) { .cs-land-cms-card { flex-basis:200px; } }
.cs-land-cms-card .pic { position:relative; overflow:hidden; }
.cs-land-cms-card .pic img, .cs-land-cms-card .pic .ph { position:absolute; inset:0; }

/* Top bar like Facebook's (2026-11-09): the tabs sit in the middle of the page -- the left (logo,
   search) and right (circles, picture) take equal room -- and the right has round grey buttons */
@media (min-width:901px) {
  .cs-top .cs-headrow, .cs-top > .cs-right { flex:1 1 0 !important; min-width:0; }
  .cs-top > .cs-right { justify-content:flex-end; }
  .cs-nav { flex:0 0 auto; }
  .cs-nav a { width:112px; }
}
.cs-bi { width:20px; height:20px; display:block; color:var(--cs-text); }
.cs-circle.on .cs-bi { color:var(--cs-blue); }
.cs-circle:hover { filter:brightness(.95); }
.cs-circle .cs-badge { top:-4px; right:-6px; }

/* Notifications like Facebook's (2026-11-09): the bell's dropdown and the page */
.cs-np-wrap { position:relative; }
.cs-np-pop { position:absolute; right:-52px; top:48px; width:360px; max-height:calc(100vh - 72px); overflow-y:auto; background:var(--cs-card); border-radius:8px;
  box-shadow:0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); padding:12px 8px 8px; z-index:60; overscroll-behavior:contain; }
.cs-np-pop.hide { display:none; }
.cs-np-pop .cs-np-load { padding:30px; text-align:center; color:var(--cs-mute); }
.cs-np-h { display:flex; align-items:center; justify-content:space-between; padding:0 8px; }
.cs-np-h h2 { margin:0; font-size:24px; font-weight:700; }
.cs-np-more { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--cs-mute); }
.cs-np-more:hover { background:var(--cs-hover); }
.cs-np-tabs { display:flex; gap:6px; padding:10px 8px 4px; }
.cs-np-tabs button { border:0; background:transparent; font-weight:600; font-size:15px; padding:8px 12px; border-radius:18px; color:var(--cs-text); cursor:pointer; }
.cs-np-tabs button:hover { background:var(--cs-hover); }
.cs-np-tabs button.on { background:var(--cs-blue-s); color:var(--cs-blue); }
.cs-np-sec { display:flex; justify-content:space-between; align-items:center; padding:10px 8px 4px; font-size:17px; }
.cs-np-sec a { color:var(--cs-blue); font-size:15px; }
.cs-np-row { display:flex; align-items:flex-start; gap:12px; padding:8px; border-radius:8px; color:inherit; position:relative; }
.cs-np-row:hover { background:var(--cs-hover); text-decoration:none; }
.cs-np-row .av { position:relative; flex:0 0 56px; width:56px; height:56px; }
.cs-np-row .av img, .cs-np-row .av .ini { width:56px; height:56px; border-radius:50%; object-fit:cover; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:20px; }
.cs-np-row .av .b { position:absolute; right:-4px; bottom:-2px; width:28px; height:28px; border-radius:50%; border:2px solid #fff; color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; }
.cs-np-row .tx { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; font-size:15px; line-height:1.33; color:var(--cs-text); }
.cs-np-row .tx a { color:inherit; }
.cs-np-row:not(.unread) .tx { color:var(--cs-mute); }
.cs-np-row:not(.unread) .tx b { color:var(--cs-text); }
.cs-np-row .ago { font-size:13px; color:var(--cs-mute); }
.cs-np-row.unread .ago { color:var(--cs-blue); font-weight:600; }
.cs-np-row .mut { font-size:13px; color:var(--cs-mute); }
.cs-np-row .cs-fb { display:flex; gap:8px; margin-top:8px; }
.cs-np-row .cs-fb .cs-btn { flex:1; justify-content:center; }
.cs-np-row .cs-fb .cs-btn i { display:none; }
.cs-np-row .dot { flex:0 0 12px; width:12px; height:12px; border-radius:50%; align-self:center; }
.cs-np-row.unread .dot { background:var(--cs-blue); }
.cs-np-empty { padding:30px 8px; text-align:center; color:var(--cs-mute); }
.cs-np .unread-only { display:none; }
.cs-np.only-unread .cs-np-row:not(.unread), .cs-np.only-unread .cs-np-sec { display:none; }
.cs-np.only-unread.none-unread .unread-only { display:block; }

/* Facebook's top bar shows only the logo on a computer, not the name (owner 2026-11-09) */
@media (min-width:901px) { .cs-top .cs-brand { display:none; } }

/* Share menu: Facebook, Telegram, Copy link, More (2026-11-09) */
.cs-share-menu { position:fixed; z-index:200; width:260px; background:var(--cs-card); border-radius:10px; padding:8px;
  box-shadow:0 12px 28px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); }
.cs-share-menu .h { font-weight:700; font-size:17px; padding:4px 8px 8px; }
.cs-share-menu button { display:flex; align-items:center; gap:12px; width:100%; border:0; background:none; padding:8px; border-radius:8px;
  font:inherit; font-weight:600; font-size:15px; color:var(--cs-text); cursor:pointer; text-align:left; }
.cs-share-menu button:hover { background:var(--cs-hover); }
.cs-share-menu .ic { width:36px; height:36px; border-radius:50%; background:var(--cs-btn); display:flex; align-items:center; justify-content:center; font-size:20px; }
.cs-share-menu [data-sh="fb"] .ic, .cs-share-menu [data-sh="tg"] .ic { background:none; font-size:32px; }
@media (max-width:600px) {
  .cs-share-menu { left:0 !important; right:0; top:auto !important; bottom:0; width:auto; border-radius:14px 14px 0 0; padding:12px 12px calc(12px + env(safe-area-inset-bottom)); }
}
.cs-share-toast { position:fixed; left:50%; bottom:80px; transform:translateX(-50%); background:#323436; color:#fff; padding:10px 18px; border-radius:8px; z-index:210; font-weight:600; }
/* the public post page (a shared link, signed out) */
.cs-pub-logo { display:flex; align-items:center; gap:10px; }
.cs-pub-logo img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.cs-pub-btns { display:flex; gap:8px; }
.cs-pub-main { max-width:680px; margin:16px auto 40px; padding:0 12px; width:100%; box-sizing:border-box; }
.cs-pub-cta { padding:20px; text-align:center; display:flex; flex-direction:column; gap:12px; align-items:center; }
.cs-public-post .cs-cform { opacity:.7; }
.cs-pub-main { margin-top:76px; }

/* Display: Light / Dark / Auto (owner 2026-11-09), picked in the profile menu and the phone menu,
   kept in this browser (localStorage csTheme). Auto follows the phone or computer. */
html[data-theme="dark"] { --cs-blue-s:#263951; --cs-bg:#18191a; --cs-card:#242526; --cs-line:#3e4042; --cs-text:#e4e6eb; --cs-mute:#b0b3b8; --cs-hover:#3a3b3c; --cs-btn:#3a3b3c; --cs-soft:#2d2e2f; color-scheme:dark; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] { --cs-blue-s:#263951; --cs-bg:#18191a; --cs-card:#242526; --cs-line:#3e4042; --cs-text:#e4e6eb; --cs-mute:#b0b3b8; --cs-hover:#3a3b3c; --cs-btn:#3a3b3c; --cs-soft:#2d2e2f; color-scheme:dark; } }
html[data-theme="dark"] .cs input, html[data-theme="dark"] .cs textarea, html[data-theme="dark"] .cs select { color:var(--cs-text); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cs input, html[data-theme="auto"] .cs textarea, html[data-theme="auto"] .cs select { color:var(--cs-text); } }
.cs-theme-seg a { cursor:pointer; }

/* App install bar (owner 2026-11-09): a bar along the bottom -- logo and words on the left,
   Install / Later on the right. Only while the app is NOT installed; Later hides it for 3 days. */
.cs-getapp-bg { display:none !important; }
.cs-getapp { position:fixed; left:12px; right:12px; bottom:12px; z-index:201; background:var(--cs-card); border-radius:12px; text-align:left;
  display:flex; align-items:center; gap:12px; padding:12px 14px; max-width:720px; margin:0 auto;
  box-shadow:0 8px 28px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.1); transform:translateY(160%); transition:transform .28s ease; }
.cs-getapp.open { transform:none; }
.cs-getapp-logo { width:44px; height:44px; margin:0; flex:0 0 44px; }
.cs-getapp .tx { flex:1; min-width:0; }
.cs-getapp h3 { margin:0; font-size:16px; }
.cs-getapp p { margin:2px 0 0; max-width:none; font-size:13px; }
.cs-getapp-ios { margin-top:6px !important; padding:6px 8px !important; }
.cs-getapp .btns { display:flex; gap:8px; flex:0 0 auto; }
.cs-getapp button { display:inline-block; width:auto; height:36px; margin:0; padding:0 16px; font-size:15px; }
@media (max-width:900px) { .cs-getapp { bottom:calc(64px + env(safe-area-inset-bottom, 0px)); left:8px; right:8px; } }
@media (max-width:420px) { .cs-getapp .btns { flex-direction:column; } .cs-getapp button { padding:0 12px; } }

/* staff: "Go to back office" right under the name in the profile menu */
.cs-acct a.cs-acct-back { background:var(--cs-blue-s); color:var(--cs-blue); margin:4px 0 6px; }
.cs-acct a.cs-acct-back i { background:var(--cs-blue); color:#fff; }
.cs-getapp:not(.open) { visibility:hidden; transform:translateY(calc(100% + 120px)); }

/* right column: "Please install <business>" (2026-11-09) */
.cs-install-card { display:flex; align-items:center; gap:12px; padding:14px 12px !important; }
.cs-install-card.hide { display:none !important; }
.cs-install-card img { width:52px; height:52px; border-radius:12px; object-fit:cover; flex:0 0 52px; box-shadow:0 1px 3px rgba(0,0,0,.15); }
.cs-install-card .tx { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; line-height:1.35; }
.cs-install-card .tx b { font-size:15px; }
.cs-install-card .tx .muted { font-size:13px; }
.cs-install-card .cs-btn { flex:0 0 auto; height:36px; padding:0 12px; }
.cs-install-card { flex-wrap:wrap; }
.cs-install-card .cs-install-how { flex:1 0 100%; order:3; font-size:13px; background:var(--cs-blue-s); border-radius:8px; padding:8px 10px; color:var(--cs-text); }

/* Pages before logging in (Marketplace, a product, laundry pickup -- owner 2026-11-10: "the
   market place not responsive"): the body is a column, so its row of content must not grow
   past the screen to fit the product pictures. */
.cs-landing > .cs-wrap { width:100%; min-width:0; box-sizing:border-box; }
.cs-landing .cs-main { min-width:0; width:100%; }
.cs-landing .cs-grid { grid-template-columns:repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.cs-landing .cs-item, .cs-landing .cs-item .im { min-width:0; }
.cs-landing .cs-mk-head form { min-width:0; }
@media (max-width:900px) {
  .cs-landing .cs-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cs-landing .cs-pubtop { padding:0 12px; gap:8px; }
  .cs-landing .cs-pubtop .cs-brand { font-size:22px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cs-landing .cs-pubtop .cs-btn { flex:0 0 auto; }
  .cs-landing .cs-mk-head h1 { font-size:20px; }
  .cs-landing .cs-mk-head form { flex:1 1 100% !important; max-width:none !important; order:3; }
}

.cs-lang > .cs-lang-seg { margin-left:auto; }   /* no label any more (owner 2026-11-16): icon left, switch right */
.cs .cs-lang-seg a, .cs-acct .cs-lang-seg a { justify-content:center; min-width:42px; font-size:16px; cursor:pointer; }   /* icons only (owner 2026-11-16) */
.cs-lang > .cs-lang-seg:first-of-type { flex:0 0 auto; }   /* the switch is the only span now: do not stretch it */
/* the name row with the language flags on its right (owner 2026-11-16) */
.cs-me-row { display:flex; align-items:center; gap:10px; }
.cs-me-row > a { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.cs-me-row > .cs-lang-seg { flex:0 0 auto; align-self:flex-start; }
.cs-acct .cs-me-row { padding-right:6px; }
.cs-acct .cs-me-row > .cs-acct-me { flex:1 1 auto; }
.cs-lang.cs-theme { justify-content:flex-end; }
/* one flag: the language in use; a tap switches to the other (owner 2026-11-16), inside the name card */
.cs-lang-one { flex:0 0 auto; width:38px; height:38px; border-radius:50%; background:var(--cs-btn); display:inline-flex;
  align-items:center; justify-content:center; font-size:20px; text-decoration:none; }
.cs-lang-one:hover { filter:brightness(.95); }
.cs-acct .cs-me-row { box-shadow:0 2px 12px rgba(0,0,0,.15); border-radius:8px; margin-bottom:10px; padding:0 12px 0 0; }
.cs-acct .cs-me-row > .cs-acct-me { box-shadow:none; margin-bottom:0; }
.cs-me-row > a.cs-lang-one { flex:0 0 38px; width:38px; padding:0; gap:0; margin:0; }

/* ==========================================================================
   Chat (owner 2026-11-16, chat.py / chat.html): the conversations left, the open one right;
   on a phone one at a time.
   ========================================================================== */
.cs-main.cs-chat-main { flex:1 1 auto; max-width:1100px; margin:0 auto; }
.cs-chat { display:flex; height:calc(100dvh - 96px); min-height:420px; background:var(--cs-card); border-radius:12px;
  box-shadow:0 1px 2px rgba(0,0,0,.12); overflow:hidden; }
.cs-chat-list { flex:0 0 340px; display:flex; flex-direction:column; border-right:1px solid var(--cs-line); min-width:0; }
.cs-chat-h { padding:14px 16px 6px; } .cs-chat-h h2 { margin:0; font-size:22px; }
.cs-chat-search { margin:6px 12px 8px; display:flex; align-items:center; gap:8px; background:var(--cs-btn); border-radius:999px; padding:0 12px; }
.cs-chat-search i { color:var(--cs-mute); }
.cs-chat-search input { border:0; background:transparent; height:36px; flex:1; outline:none; color:inherit; font:inherit; }
.cs-chat-convs { overflow-y:auto; flex:1; padding:0 6px 8px; }
.cs-chat-conv { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; color:inherit; text-decoration:none; }
.cs-chat-conv:hover { background:var(--cs-hover); } .cs-chat-conv.on { background:var(--cs-blue-s); }
.cs-chat-conv img { width:52px; height:52px; border-radius:50%; object-fit:cover; flex:0 0 52px; }
.cs-chat-conv .tx { flex:1; min-width:0; display:flex; flex-direction:column; }
.cs-chat-conv .tx b { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-chat-conv .tx small { color:var(--cs-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.cs-chat-conv.unread .tx b, .cs-chat-conv.unread .tx small { font-weight:700; color:var(--cs-text, #050505); }
.cs-chat-conv .n { background:var(--cs-blue); color:#fff; border-radius:999px; min-width:20px; height:20px; padding:0 6px; font-size:12px;
  font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.cs-chat-empty, .cs-chat-none { text-align:center; color:var(--cs-mute); padding:40px 20px; }
.cs-chat-none { margin:auto; display:flex; flex-direction:column; align-items:center; gap:8px; }
.cs-chat-thread { flex:1; display:flex; flex-direction:column; min-width:0; }
.cs-chat-top { display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--cs-line); box-shadow:0 1px 2px rgba(0,0,0,.04); }
.cs-chat-top .who { display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }
.cs-chat-top img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.cs-chat-back { display:none; width:36px; height:36px; align-items:center; justify-content:center; color:var(--cs-blue); font-size:18px; }
.cs-chat-msgs { flex:1; overflow-y:auto; padding:14px 14px 6px; display:flex; flex-direction:column; gap:4px; }
.cs-chat-hello { margin:auto; display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--cs-mute); }
.cs-chat-hello img { width:80px; height:80px; border-radius:50%; object-fit:cover; } .cs-chat-hello b { color:var(--cs-text, #050505); font-size:17px; }
.cs-msg { display:flex; flex-direction:column; align-items:flex-start; max-width:72%; }
.cs-msg.me { align-self:flex-end; align-items:flex-end; }
.cs-msg .b { background:var(--cs-btn); border-radius:18px; padding:8px 12px; white-space:normal; word-break:break-word; display:flex; flex-direction:column; gap:6px; }
.cs-msg.me .b { background:var(--cs-blue); color:#fff; }
.cs-msg .b img { max-width:240px; max-height:260px; border-radius:12px; display:block; }
.cs-msg .b:has(img):not(:has(span)) { padding:0; background:transparent; }
.cs-msg small { color:var(--cs-mute); font-size:11px; margin:2px 6px 4px; }
.cs-chat-seen { align-self:flex-end; color:var(--cs-mute); font-size:12px; padding:0 16px 4px; text-align:right; }
.cs-chat-send { display:flex; align-items:flex-end; gap:8px; padding:10px 12px; border-top:1px solid var(--cs-line); }
.cs-chat-pic, .cs-chat-go { width:38px; height:38px; flex:0 0 38px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--cs-blue); font-size:20px; cursor:pointer; border:0; background:transparent; margin:0; }
.cs-chat-box { flex:1; background:var(--cs-btn); border-radius:20px; padding:4px 12px; min-width:0; }
.cs-chat-box textarea { width:100%; border:0; background:transparent; resize:none; outline:none; font:inherit; color:inherit; padding:6px 0; max-height:140px; display:block; }
.cs-chat-prev { position:relative; display:inline-block; margin:6px 0 2px; }
.cs-chat-prev img { height:70px; border-radius:10px; display:block; }
.cs-chat-prev button { position:absolute; top:-6px; right:-6px; width:22px; height:22px; border-radius:50%; border:0; background:#333; color:#fff; cursor:pointer; line-height:1; }
@media (max-width: 900px) {
  .cs-main.cs-chat-main { padding:0 !important; }
  .cs-chat { border-radius:0; box-shadow:none; height:calc(100dvh - 112px); }
  .cs-chat-list { flex:1 1 auto; border-right:0; }
  .cs-chat.open .cs-chat-list, .cs-chat:not(.open) .cs-chat-thread { display:none; }
  .cs-chat-back { display:inline-flex; }
  .cs-msg { max-width:82%; }
}
.cs-chat-ph { font-weight:700; color:var(--cs-mute); font-size:13px; padding:12px 10px 4px; text-transform:uppercase; letter-spacing:.03em; }
.cs-chat-ph[hidden] { display:none; }
/* the message box: one slim line, grows as you type (owner 2026-11-16: "the input look not nice yet") */
.cs-chat-send { align-items:center; gap:6px; padding:8px 10px; }
.cs-chat-box { padding:9px 14px; border-radius:22px; display:flex; flex-direction:column; justify-content:center; min-height:40px; }
.cs-chat-box textarea { height:22px; min-height:22px; line-height:22px; padding:0; font-size:15px; overflow-y:auto; }
.cs-chat-box textarea::placeholder { color:var(--cs-mute); }
.cs-chat-pic, .cs-chat-go { width:40px; height:40px; flex-basis:40px; align-self:flex-end; }
.cs-chat-pic:hover, .cs-chat-go:hover { background:var(--cs-hover); }
.cs-chat-prev[hidden], .cs-chat-seen[hidden] { display:none !important; }

/* Chat on every page (chat_dock.js): the popups, the dropdown, the small windows */
.cs-ctoasts { position:fixed; left:16px; bottom:16px; z-index:900; display:flex; flex-direction:column; gap:8px; max-width:340px; }
.cs-ctoast { display:flex; align-items:center; gap:10px; padding:10px 12px; background:var(--cs-card); color:var(--cs-text, #050505);
  border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.18); text-decoration:none; animation:csToastIn .25s ease-out; transition:opacity .4s, transform .4s; }
.cs-ctoast.out { opacity:0; transform:translateY(10px); }
.cs-ctoast img { width:44px; height:44px; border-radius:50%; object-fit:cover; flex:0 0 44px; }
.cs-ctoast span { display:flex; flex-direction:column; min-width:0; flex:1; }
.cs-ctoast small { color:var(--cs-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-ctoast button { border:0; background:transparent; color:var(--cs-mute); font-size:20px; cursor:pointer; }
@keyframes csToastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@media (max-width: 900px) { .cs-ctoasts { left:8px; right:8px; bottom:auto; top:64px; max-width:none; } }

.cs-cdrop { position:fixed; z-index:950; width:360px; max-height:min(560px, calc(100vh - 80px)); display:flex; flex-direction:column;
  background:var(--cs-card); color:var(--cs-text, #050505); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.2); overflow:hidden; }
.cs-cdrop .h { display:flex; align-items:center; justify-content:space-between; padding:14px 16px 8px; }
.cs-cdrop .h b { font-size:22px; } .cs-cdrop .h a { color:var(--cs-blue); font-size:14px; }
.cs-cdrop .l { overflow-y:auto; padding:0 6px 8px; }
.cs-cdrop-wait { text-align:center; padding:20px; color:var(--cs-mute); }

.cs-dock { position:fixed; right:16px; bottom:0; z-index:940; display:flex; align-items:flex-end; gap:10px; pointer-events:none; }
.cs-dw { pointer-events:auto; width:328px; height:440px; display:flex; flex-direction:column; background:var(--cs-card); color:var(--cs-text, #050505);
  border-radius:10px 10px 0 0; box-shadow:0 8px 28px rgba(0,0,0,.22); overflow:hidden; }
.cs-dw.min { height:48px; }
.cs-dw.min .cs-dw-b, .cs-dw.min .cs-dw-f { display:none; }
.cs-dw-h { display:flex; align-items:center; gap:8px; padding:6px 6px 6px 10px; border-bottom:1px solid var(--cs-line); cursor:pointer; min-height:48px; }
.cs-dw-h img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.cs-dw-h b { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cs-dw-h .x { width:30px; height:30px; border:0; background:transparent; color:var(--cs-blue); border-radius:50%; display:inline-flex;
  align-items:center; justify-content:center; cursor:pointer; font-size:15px; }
.cs-dw-h .x:hover { background:var(--cs-hover); }
.cs-dw-b { flex:1; overflow-y:auto; padding:10px; display:flex; flex-direction:column; gap:3px; }
.cs-dw-b .cs-msg { max-width:80%; } .cs-dw-b .cs-msg .b img { max-width:200px; }
.cs-dw-f { display:flex; align-items:center; gap:4px; padding:6px 8px; border-top:1px solid var(--cs-line); }
.cs-dw-f .cs-chat-box { padding:8px 12px; min-height:36px; }
.cs-dw-f .cs-chat-pic, .cs-dw-f .cs-chat-go { width:34px; height:34px; flex-basis:34px; font-size:17px; }
@media (max-width: 900px) { .cs-dock, .cs-cdrop { display:none; } }
.cs-lang.cs-theme { justify-content:center; } .cs-lang.cs-theme > .cs-lang-seg { margin:0 auto; }   /* centred (owner 2026-11-16) */
.cs-lang.cs-theme > .cs-lang-seg { flex:1 1 auto; margin:0; display:flex; } .cs-lang.cs-theme > .cs-lang-seg a { flex:1; }   /* full width (owner 2026-11-16) */

/* Inside the shop's phone app (the page tells it apart by the app's YsChrome channel, see the flag in each
   template's head) Laundry and Cart are the app's own tabs: the round laundry and shop buttons in the top bar
   and the two cards at the top of the feed are left out there (owner 2026-11-17). The website keeps them. */
.cs-in-app .cs-pq-b.pk, .cs-in-app .cs-pq-b.sh,
.cs-in-app .cs-top .cs-pk-btn, .cs-in-app .cs-top .cs-cart-btn,
.cs-in-app .cs-mcards { display:none !important; }

/* Inside the shop's phone app the top bar carries the APP's icon and name -- Yeaksa -- not the company's logo and
   name (owner 2026-11-17). The picture is swapped by CSS (no flash), the name too: the real text is hidden and
   "Yeaksa" drawn in its place. On a phone the signed-in bar normally shows only the name; here it gets the icon. */
.cs-in-app .cs-logo, .cs-in-app .cs-pub-logo img { border-radius:10px; object-fit:cover; }
.cs-in-app .cs-top .cs-logo { display:block !important; width:36px; height:36px; flex:0 0 36px; }
.cs-in-app .cs-brand { font-size:0 !important; }
.cs-in-app .cs-brand::after { content:"Yeaksa"; font-size:26px; font-weight:800; letter-spacing:-.5px; color:var(--cs-blue); }

/* ---- lazy loading, as on Facebook (owner 2026-11-17); cs-lazy.js adds the classes ---- */
/* a picture is a soft grey block until it arrives, then fades in */
img.cs-lz { opacity:0; transition:opacity .3s ease; background:#e4e6eb; }
img.cs-lz.in { opacity:1; }
.cs-media img { background:#e4e6eb; }
/* posts far off-screen are not drawn until they are near (the browser keeps their size meanwhile) */
.cs-post { content-visibility:auto; contain-intrinsic-size:auto 560px; }
/* "more posts are coming": a grey post, as Facebook shows, instead of one grey bar */
.cs-skel-post { background:var(--cs-card,#fff); padding:14px 16px 16px; margin-bottom:8px; }
.cs-skel-post .row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.cs-skel-post .row i { width:40px; height:40px; border-radius:50%; flex:0 0 40px; }
.cs-skel-post .row b { height:11px; border-radius:6px; }
.cs-skel-post .row b:first-of-type { width:34%; margin-bottom:7px; }
.cs-skel-post .row b.s { width:22%; }
.cs-skel-post .row span { display:flex; flex-direction:column; flex:1; }
.cs-skel-post u { display:block; height:200px; border-radius:8px; margin-top:12px; text-decoration:none; }
.cs-skel-post i, .cs-skel-post b, .cs-skel-post u { background:linear-gradient(90deg,#e4e6eb 0,#f2f3f5 40%,#e4e6eb 80%); background-size:200% 100%; animation:cs-sk 1.2s infinite; }

/* A short text-only post on a colour (owner 2026-11-17): big white words, centred. */
.cs-body.cs-bg{color:#fff;font-size:24px;font-weight:700;line-height:1.3;text-align:center;min-height:240px;display:flex;align-items:center;justify-content:center;padding:28px 22px;margin:8px 0 0;border-radius:0;word-break:break-word}
.cs-body.cs-bg a{color:#fff;text-decoration:underline}


/* ---- the top bar on a computer (owner 2026-11-29: "arrange nicely gaps"): three columns like Facebook's -- the
   search on the left, the page icons in the TRUE middle of the screen whatever the two sides hold, the round
   buttons on the right -- with even gaps between them ---- */
@media (min-width: 901px) {
  .cs-top { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); column-gap:16px; padding:0 16px; }
  .cs-top > .cs-headrow { justify-self:start; flex:none !important; min-width:0; max-width:100%; gap:10px !important; }
  .cs-top > .cs-headrow > .cs-gap { display:none; }
  .cs-top > .cs-nav { justify-self:center; flex:none; gap:8px; }
  .cs-top > .cs-nav a { width:104px; border-radius:10px 10px 0 0; }
  .cs-top > .cs-right { justify-self:end; gap:10px; }
  .cs-search input { width:min(280px, 22vw); min-width:180px; }
}
/* the search's dropdown: people, then products, then "see all" */
.cs-search .cs-sug { position:absolute; top:46px; left:0; width:360px; max-width:calc(100vw - 24px); max-height:70vh; overflow-y:auto;
  background:var(--cs-card); border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.05); padding:8px; z-index:60; }
.cs-search .cs-sug.hide { display:none; }
.cs-sug-h { font-size:13px; font-weight:700; color:var(--cs-mute); padding:8px 8px 4px; }
.cs-sug-row { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:8px; color:inherit; text-decoration:none; }
.cs-sug-row:hover, .cs-sug-row.on { background:var(--cs-hover); }
.cs-sug-row img { width:36px; height:36px; flex:0 0 36px; border-radius:8px; object-fit:cover; background:var(--cs-bg); }
.cs-sug-row img.round { border-radius:50%; }
.cs-sug-row span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.cs-sug-row em { font-style:normal; font-size:13px; font-weight:700; color:var(--cs-blue); white-space:nowrap; }
.cs-sug-all { margin-top:4px; border-top:1px solid var(--cs-bg); border-radius:0 0 8px 8px; padding-top:10px; color:var(--cs-blue); }
.cs-sug-all i { width:36px; text-align:center; position:static; color:var(--cs-blue); }
.cs-sug-none { padding:14px 8px; color:var(--cs-mute); font-size:14px; }
