/* ===================== BOING SOCIAL — shared look =====================
   Used by feed, messages, groups, profile, planner and mod pages. Same colours and fonts as
   the rest of the site. */
:root{--bg:#0b1018;--bg2:#0f1621;--card:#131c29;--card2:#172234;--line:#22304a;--line2:#2a3a55;--ink:#e9f2ec;--muted:#93a9bd;--dim:#6b7f95;
 --frog:#58c96e;--frog2:#7bed9f;--frogbg:#14311f;--gold:#ffd873;--red:#ff6b81;--blue:#5aa9e6;--r:16px;}
*{margin:0;padding:0;box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body.bs{background:var(--bg);color:var(--ink);font-family:'Work Sans',system-ui,sans-serif;min-height:100vh;font-size:15px;line-height:1.5;}
body.bs h1,body.bs h2,body.bs h3,.bs-display{font-family:'Baloo 2',cursive;line-height:1.1;}
body.bs a{color:inherit;text-decoration:none;}
body.bs button{font-family:inherit;cursor:pointer;}
.bs-hide{display:none!important;}
.bs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}

/* ---- top bar ---- */
.bs-nav{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;height:62px;padding:0 clamp(12px,3vw,32px);
 background:rgba(11,16,24,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line);}
.bs-brand{display:flex;align-items:center;gap:9px;font-family:'Baloo 2',cursive;font-weight:700;font-size:19px;flex:none;}
.bs-brand img{width:32px;height:32px;border-radius:50%;}
.bs-links{display:flex;gap:2px;margin-left:10px;flex:1;min-width:0;}
.bs-links a{padding:7px 12px;border-radius:10px;color:var(--muted);font-size:14.5px;font-weight:500;white-space:nowrap;position:relative;}
.bs-links a:hover{color:#fff;background:#141d2b;}
.bs-links a.on{color:#fff;background:#16233a;}
.bs-links a .bs-badge{position:static;margin-left:5px;vertical-align:1px;}
.bs-right{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none;}
.bs-ico{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#101826;color:#cfdcea;display:flex;align-items:center;justify-content:center;position:relative;}
.bs-ico:hover{border-color:var(--line2);color:#fff;}
.bs-ico svg{width:20px;height:20px;}
.bs-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;
 font-size:11px;font-weight:800;line-height:19px;text-align:center;border:2px solid var(--bg);}
.bs-me{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;background:var(--frogbg);border:1px solid #2f7a47;padding:3px 12px 3px 3px;border-radius:100px;max-width:190px;}
.bs-me span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bs-join{background:var(--frog);color:#0f2a17;font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;padding:10px 16px;border:2px solid #0f2a17;box-shadow:3px 3px 0 rgba(123,237,159,.35);white-space:nowrap;}
/* bottom tabs on phones */
.bs-tabs{display:none;}
@media(max-width:860px){
 .bs-links{display:none;}
 .bs-nav{height:56px;}
 .bs-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(11,16,24,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));}
 .bs-tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;font-weight:600;color:var(--dim);position:relative;padding:3px 0;}
 .bs-tabs a svg{width:22px;height:22px;}
 .bs-tabs a.on{color:var(--frog2);}
 .bs-tabs .bs-badge{top:-3px;right:calc(50% - 22px);}
 body.bs{padding-bottom:calc(66px + env(safe-area-inset-bottom));}
 .bs-me span{display:none;}.bs-me{padding:3px;}
}

/* ---- layout ---- */
.bs-wrap{max-width:1180px;margin:0 auto;padding:22px clamp(12px,3vw,28px) 60px;}
.bs-3col{display:grid;grid-template-columns:260px minmax(0,1fr) 300px;gap:22px;align-items:start;}
.bs-2col{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start;}
.bs-side{position:sticky;top:84px;display:flex;flex-direction:column;gap:16px;}
@media(max-width:1100px){.bs-3col{grid-template-columns:minmax(0,1fr) 300px;}.bs-3col>.bs-left{display:none;}}
@media(max-width:860px){.bs-3col,.bs-2col{grid-template-columns:minmax(0,1fr);}.bs-3col>.bs-right-col,.bs-2col>.bs-right-col{display:none;}
 .bs-wrap{padding-top:14px;}}
.bs-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);}
.bs-pad{padding:18px;}
.bs-h{font-size:22px;}
.bs-sub{color:var(--muted);font-size:14px;}
.bs-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;}
.bs-title h2{font-size:18px;}
.bs-title a,.bs-link{color:var(--frog2);font-size:13px;font-weight:600;}
.bs-empty{text-align:center;color:var(--dim);font-size:14px;padding:26px 14px;line-height:1.6;}
.bs-empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:4px;}
.bs-row{display:flex;align-items:center;gap:10px;}
.bs-grow{flex:1;min-width:0;}
.bs-ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bs-chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:100px;background:#1c283b;border:1px solid var(--line);color:#9fb6cc;}
.bs-chip.g{background:var(--frogbg);border-color:#2f7a47;color:#9ff0b5;}
.bs-chip.y{background:#2b2414;border-color:#6b5a2a;color:var(--gold);}
.bs-chip svg{width:12px;height:12px;}

/* ---- buttons & inputs ---- */
.bs-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1.5px solid transparent;border-radius:11px;padding:9px 16px;font-size:14px;font-weight:700;
 background:var(--frog);color:#0f2a17;white-space:nowrap;transition:filter .12s,transform .12s;}
.bs-btn:hover{filter:brightness(1.08);}
.bs-btn:active{transform:translateY(1px);}
.bs-btn:disabled{opacity:.5;cursor:default;filter:none;transform:none;}
.bs-btn.ghost{background:transparent;color:var(--ink);border-color:var(--line2);}
.bs-btn.ghost:hover{background:#16213280;}
.bs-btn.soft{background:#1a2638;color:#dbe7f3;}
.bs-btn.danger{background:transparent;color:var(--red);border-color:#5a2a36;}
.bs-btn.sm{padding:6px 11px;font-size:13px;border-radius:9px;}
.bs-btn.big{padding:13px 22px;font-size:15px;}
.bs-btn svg{width:16px;height:16px;}
.bs-in{width:100%;background:var(--bg2);border:1.5px solid #2a3548;border-radius:12px;color:#fff;font:inherit;font-size:15px;padding:10px 13px;}
.bs-in:focus{outline:none;border-color:var(--frog);}
textarea.bs-in{resize:none;line-height:1.5;display:block;}
select.bs-in{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#93a9bd 50%),linear-gradient(135deg,#93a9bd 50%,transparent 50%);
 background-position:calc(100% - 17px) 55%,calc(100% - 12px) 55%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px;}
.bs-label{display:block;font-size:13px;font-weight:600;color:#c3d2e4;margin:14px 0 6px;}
.bs-help{font-size:12.5px;color:var(--dim);margin-top:5px;line-height:1.5;}
.bs-err{color:#ff8fa3;font-size:13.5px;min-height:18px;margin-top:8px;}
.bs-seg{display:inline-flex;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:2px;}
.bs-seg button{border:none;background:none;color:var(--muted);font-weight:700;font-size:13.5px;padding:7px 14px;border-radius:9px;position:relative;}
.bs-seg button.on{background:#1d2a40;color:#fff;}
.bs-seg .bs-badge{position:static;display:inline-block;margin-left:5px;border:none;height:17px;line-height:17px;min-width:17px;font-size:10.5px;}
.bs-radio{display:flex;flex-direction:column;gap:8px;}
.bs-radio label{display:flex;gap:11px;align-items:flex-start;padding:11px 13px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer;background:var(--bg2);}
.bs-radio label:has(input:checked){border-color:var(--frog);background:#10231a;}
.bs-radio input{margin-top:3px;accent-color:var(--frog);}
.bs-radio b{display:block;font-size:14px;}
.bs-radio small{display:block;color:var(--muted);font-size:12.5px;line-height:1.45;}
.bs-switch{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer;}
.bs-switch input{width:18px;height:18px;accent-color:var(--frog);}

/* ---- people ---- */
.bs-av{border-radius:50%;background:#182131;flex:none;display:block;object-fit:cover;}
.bs-av.q{display:flex;align-items:center;justify-content:center;color:#4a5b70;font-weight:800;}
.bs-user{display:flex;align-items:center;gap:10px;min-width:0;}
.bs-user b{font-weight:700;}
.bs-user:hover b{text-decoration:underline;}
.bs-person{display:flex;align-items:center;gap:11px;padding:9px 6px;border-radius:12px;}
.bs-person+.bs-person{border-top:1px solid #1a2436;}
.bs-person .bs-grow b{display:block;font-size:14.5px;}
.bs-person .bs-grow small{display:block;color:var(--dim);font-size:12.5px;}

/* ---- posts ---- */
.bs-compose{padding:14px 16px;}
.bs-compose textarea{min-height:54px;background:transparent;border:none;padding:6px 2px;font-size:16px;}
.bs-compose textarea:focus{border:none;}
.bs-compose .bs-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:10px;margin-top:6px;}
.bs-count{font-size:12px;color:var(--dim);}
.bs-count.over{color:var(--red);}
.bs-post{padding:16px 18px 10px;}
.bs-posts{display:flex;flex-direction:column;gap:14px;}
.bs-post-head{display:flex;align-items:center;gap:11px;}
.bs-post-head .bs-grow{line-height:1.25;}
.bs-post-head small{color:var(--dim);font-size:12.5px;}
.bs-body{white-space:pre-wrap;word-break:break-word;font-size:15.5px;line-height:1.55;margin:10px 0 4px;}
.bs-acts{display:flex;align-items:center;gap:4px;margin:4px -8px 0;}
.bs-act{display:inline-flex;align-items:center;gap:6px;background:none;border:none;color:var(--muted);font-size:13.5px;font-weight:600;padding:7px 9px;border-radius:9px;}
.bs-act:hover{background:#18233480;color:#fff;}
.bs-act svg{width:18px;height:18px;}
.bs-act.liked{color:var(--red);}
.bs-act.liked svg{fill:var(--red);}
.bs-more{margin-left:auto;}
.bs-comments{border-top:1px solid var(--line);margin:8px -18px 0;padding:10px 18px 4px;background:#111a27;border-radius:0 0 var(--r) var(--r);}
.bs-cmt{display:flex;gap:9px;padding:6px 0;}
.bs-cmt .bs-bub{background:#1a2536;border-radius:12px;padding:7px 11px;min-width:0;}
.bs-cmt .bs-bub b{font-size:13px;}
.bs-cmt .bs-bub div{white-space:pre-wrap;word-break:break-word;font-size:14px;}
.bs-cmt small{display:block;color:var(--dim);font-size:11.5px;margin:2px 0 0 11px;}
.bs-cmt small button{background:none;border:none;color:var(--dim);font-size:11.5px;margin-left:8px;}
.bs-cmt small button:hover{color:#fff;}
.bs-cmt-form{display:flex;gap:8px;padding:8px 0 10px;}
.bs-cmt-form input{border-radius:100px;padding:8px 14px;font-size:14px;}

/* ---- chat ---- */
.bs-chat{display:flex;flex-direction:column;min-height:0;}
.bs-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:3px;overscroll-behavior:contain;}
.bs-day{text-align:center;color:var(--dim);font-size:12px;font-weight:600;margin:12px 0 6px;}
.bs-msg{display:flex;gap:8px;align-items:flex-end;max-width:80%;position:relative;}
.bs-msg.mine{align-self:flex-end;flex-direction:row-reverse;}
.bs-msg .bs-bub{background:#1b2738;border-radius:16px 16px 16px 5px;padding:8px 12px;white-space:pre-wrap;word-break:break-word;font-size:15px;line-height:1.45;min-width:0;}
.bs-msg.mine .bs-bub{background:#1d5a33;border-radius:16px 16px 5px 16px;color:#effff3;}
.bs-msg .bs-who{font-size:12px;font-weight:700;margin-bottom:1px;}
.bs-msg .bs-t{font-size:10.5px;color:var(--dim);margin:0 4px 3px;white-space:nowrap;opacity:0;transition:opacity .15s;}
.bs-msg.mine .bs-t{color:#8fbf9d;}
.bs-msg:hover .bs-t,.bs-msg.tap .bs-t{opacity:1;}
.bs-msg .bs-flag{background:none;border:none;color:#4a5b70;padding:4px;opacity:0;transition:opacity .15s;align-self:center;}
.bs-msg:hover .bs-flag,.bs-msg.tap .bs-flag{opacity:1;}
.bs-msg .bs-flag:hover{color:var(--red);}
.bs-msg .bs-flag svg{width:15px;height:15px;}
.bs-msg.gap{margin-top:9px;}
/* touch screens: the time and the report button take no room until the message is tapped */
@media(hover:none){.bs-msg{max-width:88%;}.bs-msg .bs-t,.bs-msg .bs-flag{display:none;}
 .bs-msg.tap .bs-t,.bs-msg.tap .bs-flag{display:inline-flex;opacity:1;}}
.bs-msg .bs-avs{width:28px;flex:none;}
.bs-send{display:flex;gap:8px;align-items:flex-end;padding:12px;border-top:1px solid var(--line);}
.bs-send textarea{border-radius:18px;padding:10px 15px;max-height:140px;min-height:44px;}
.bs-send .bs-btn{border-radius:50%;width:44px;height:44px;padding:0;flex:none;}
.bs-note{font-size:12.5px;color:var(--muted);background:#111a27;border:1px dashed var(--line2);border-radius:12px;padding:10px 12px;line-height:1.5;margin:6px auto 12px;max-width:520px;text-align:center;}

/* ---- menus, dialogs, toasts ---- */
.bs-menu{position:fixed;z-index:80;background:#162033;border:1px solid var(--line2);border-radius:13px;padding:5px;min-width:190px;box-shadow:0 18px 50px rgba(0,0,0,.5);}
.bs-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:none;color:var(--ink);padding:9px 11px;border-radius:9px;font-size:14px;}
.bs-menu button:hover{background:#1f2c44;}
.bs-menu button.danger{color:#ff8fa3;}
.bs-menu svg{width:16px;height:16px;flex:none;}
.bs-modal{position:fixed;inset:0;z-index:90;background:rgba(5,9,14,.78);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;animation:bsIn .15s ease-out;}
.bs-modal .bs-box{background:var(--card);border:1px solid var(--line);border-top:3px solid var(--frog);border-radius:18px;width:100%;max-width:440px;max-height:calc(100vh - 32px);overflow:auto;padding:22px;box-shadow:0 30px 80px rgba(0,0,0,.5);}
.bs-modal h3{font-size:22px;margin-bottom:4px;}
.bs-modal .bs-btns{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap;}
@keyframes bsIn{from{opacity:0}to{opacity:1}}
.bs-toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:95;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:min(420px,calc(100vw - 24px));}
@media(max-width:860px){.bs-toasts{bottom:calc(80px + env(safe-area-inset-bottom));}}
.bs-toast{pointer-events:auto;background:#1a283d;border:1px solid var(--line2);border-left:3px solid var(--frog);color:#fff;border-radius:12px;padding:11px 14px;font-size:14px;
 box-shadow:0 12px 34px rgba(0,0,0,.45);display:flex;gap:10px;align-items:center;animation:bsUp .2s ease-out;width:100%;}
.bs-toast.err{border-left-color:var(--red);}
.bs-toast a{color:var(--frog2);font-weight:700;margin-left:auto;white-space:nowrap;}
@keyframes bsUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bs-pop{position:absolute;right:0;top:48px;width:min(380px,calc(100vw - 20px));max-height:min(520px,calc(100vh - 90px));overflow:auto;background:#141e2e;border:1px solid var(--line2);border-radius:16px;
 box-shadow:0 24px 60px rgba(0,0,0,.55);z-index:60;padding:8px;}
.bs-pop h4{font-family:'Baloo 2',cursive;font-size:18px;padding:6px 10px 8px;}
.bs-note-row{display:flex;gap:11px;padding:10px;border-radius:12px;align-items:flex-start;font-size:14px;line-height:1.4;}
.bs-note-row.new{background:#152337;}
.bs-note-row small{display:block;color:var(--dim);font-size:12px;margin-top:2px;}
.bs-note-row .bs-row{margin-top:7px;}
.bs-gate{max-width:560px;margin:40px auto;text-align:center;padding:34px 26px;}
.bs-gate h1{font-size:34px;margin:12px 0 8px;}
.bs-gate p{color:var(--muted);line-height:1.65;}
.bs-gate .bs-btn{margin-top:20px;}
.bs-spin{width:22px;height:22px;border:3px solid #22304a;border-top-color:var(--frog);border-radius:50%;animation:bsSpin .8s linear infinite;margin:30px auto;}
@keyframes bsSpin{to{transform:rotate(360deg)}}
.bs-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--dim);}
.bs-live i{width:8px;height:8px;border-radius:50%;background:#4a5b70;}
.bs-live.on i{background:var(--frog);box-shadow:0 0 0 3px rgba(88,201,110,.2);}
