:root{--bg:#121317;--panel:#1b1d23;--panel2:#21242b;--surface:#262930;--surface2:#30333c;--stroke:#33363e;--text:#f5f3f1;--muted:#94939a;--muted2:#6e707a;--orange:#ff803f;--orange2:#ffa264;--o-dim:#433027;--green:#65d5a4;--radius:16px;--shadow:0 22px 80px rgba(0,0,0,.36)}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;min-height:100%;font-family:'DM Sans',system-ui,sans-serif;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}img{max-width:100%}h1,h2,h3,h4,p{margin:0}h1,h2,h3,.brand,.section-heading{font-family:Outfit,'DM Sans',sans-serif}a{color:var(--orange2)}.hidden{display:none!important}.ico{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.ico svg{width:20px;height:20px;stroke-width:1.9}.icon-sm svg{width:17px;height:17px}.icon-lg svg{width:24px;height:24px}.screen{height:100dvh;min-height:500px;display:flex;overflow:hidden}.rail{width:78px;flex-shrink:0;background:#17191d;border-right:1px solid #2d3036;display:flex;flex-direction:column;align-items:center;padding:20px 10px 18px;gap:8px}.rail-brand{width:54px;height:54px;display:grid;place-items:center;background:linear-gradient(145deg,#ff9950,#f3692f);border-radius:20px;margin-bottom:21px;box-shadow:0 8px 26px #e8612530}.rail-brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 3px #89330020)}.rail-btn{width:50px;height:50px;border:0;background:none;color:#888b96;border-radius:16px;display:grid;place-items:center;position:relative;transition:background .18s,color .18s}.rail-btn:hover{background:#292c34;color:#eee}.rail-btn.active{background:#3d302c;color:var(--orange)}.rail-btn.active:before{position:absolute;content:'';background:var(--orange);width:4px;height:23px;border-radius:0 4px 4px 0;left:-14px}.rail-label{font-size:9px;font-weight:800;letter-spacing:.05em;margin-top:-2px}.rail-bottom{margin-top:auto;display:flex;flex-direction:column;gap:7px}.avatar{flex-shrink:0;background:linear-gradient(130deg,#795de3,#d15c85);border-radius:36%;display:grid;place-items:center;color:white;font-weight:800;position:relative;overflow:hidden;font-family:Outfit}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.sm{width:34px;height:34px;font-size:13px}.avatar.md{width:44px;height:44px;font-size:17px}.avatar.lg{width:54px;height:54px;font-size:20px}.avatar.xl{width:84px;height:84px;font-size:30px}.avatar .online-dot{position:absolute;bottom:0;right:0;width:10px;height:10px;border:2px solid var(--panel);border-radius:100%;background:var(--green)}.sidebar{width:308px;flex-shrink:0;background:var(--panel);border-right:1px solid var(--stroke);display:flex;flex-direction:column;overflow:hidden}.sidebar-top{padding:30px 20px 18px}.eyebrow{text-transform:uppercase;font-size:10px;color:var(--orange2);font-weight:800;letter-spacing:.16em}.sidebar-title{display:flex;align-items:center;justify-content:space-between;margin:8px 0 19px}.sidebar-title h2{font-size:30px;letter-spacing:-1.1px}.plus-btn{border:1px solid #474047;width:36px;height:36px;background:#302a2d;color:var(--orange2);border-radius:12px;display:grid;place-items:center}.plus-btn:hover{background:var(--orange);color:white}.searchbox{height:43px;background:#121417;border:1px solid #2e3036;border-radius:12px;display:flex;align-items:center;gap:10px;color:var(--muted);padding:0 13px}.searchbox input{background:none;border:0;color:white;outline:none;min-width:0;flex:1;font-size:13px}.searchbox:focus-within{border-color:#ff803f7c}.sidebar-content{overflow:auto;flex:1;padding:7px 10px 22px}.side-section{display:flex;align-items:center;justify-content:space-between;margin:20px 10px 10px;font-size:11px;color:#888992;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.side-section button{background:none;border:0;color:var(--orange2);font-size:11px}.side-row{display:flex;align-items:center;gap:12px;padding:12px 11px;border-radius:13px;cursor:pointer;transition:background .15s;min-height:69px}.side-row:hover{background:#2b2d35}.side-row.selected{background:#343037}.side-row .grow{flex:1;min-width:0}.side-row .grow strong{font-size:13px;font-weight:800;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-row .grow p{font-size:11px;color:var(--muted);margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-row time{font-size:10px;color:#777881}.squad-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(135deg,#f9a35c,#c84d31);font-size:21px}.piece-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;font-size:23px}.main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#191a20}.main-top{flex-shrink:0;min-height:85px;padding:18px 30px;background:#1e2026;border-bottom:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;gap:16px}.head-left{display:flex;align-items:center;gap:13px;min-width:0}.head-left .title-area{min-width:0}.head-left h2{font-size:19px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.head-left p{font-size:11px;color:var(--muted);margin-top:3px}.head-actions{display:flex;gap:8px}.round-btn{border:0;background:transparent;color:#a4a5ad;width:38px;height:38px;display:grid;place-items:center;border-radius:12px}.round-btn:hover{background:#34363e;color:white}.main-body{flex:1;min-height:0;overflow:auto;position:relative;scrollbar-color:#4b4d56 transparent}.empty-content{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;gap:11px}.empty-content img{width:min(200px,45vw);filter:drop-shadow(0 14px 20px #0004)}.empty-content h2{font-size:29px}.empty-content p{max-width:380px;color:var(--muted);line-height:1.6;font-size:14px}.btn{border:0;background:var(--orange);color:#1f1110;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:11px 17px;transition:transform .16s,background .16s;min-height:42px}.btn:hover:not(:disabled){background:#ff9958;transform:translateY(-1px)}.btn.secondary{color:#eee;background:#30333b;border:1px solid #42454d}.btn.secondary:hover{background:#3c3f49}.btn.ghost{color:#e9e9e9;background:none}.btn.ghost:hover{background:#353740}.btn.sm{font-size:12px;min-height:34px;padding:8px 12px}.btn.danger{background:#6d3440;color:#fff}.btn.full{width:100%}.btn.block{display:flex;width:100%}.btn .ico svg{width:17px;height:17px}.chat-history{height:100%;display:flex;flex-direction:column}.chat-scroll{overflow:auto;flex:1;padding:32px 7% 18px;display:flex;flex-direction:column;gap:15px}.chat-bubble-wrap{display:flex;gap:11px;align-items:flex-end;max-width:77%}.chat-bubble-wrap.mine{align-self:flex-end;flex-direction:row-reverse}.bubble-content{min-width:0}.bubble-name{font-size:11px;color:#e9a773;font-weight:800;margin:0 0 6px 4px}.bubble{padding:13px 16px;border-radius:17px 17px 17px 5px;background:#2c2f38;color:#edeef0;font-size:13px;line-height:1.6;word-break:break-word;white-space:pre-wrap}.mine .bubble{background:linear-gradient(140deg,#f58b45,#e76e32);color:#2b1710;border-radius:17px 17px 5px 17px;font-weight:600}.bubble-meta{font-size:10px;color:#7f828e;margin:5px 2px 0}.mine .bubble-meta{text-align:right}.bubble-actions{display:flex;gap:4px;margin-top:5px}.react-chip{font-size:11px;border:1px solid #4c4e56;background:#2e3038;color:#eee;padding:4px 8px;border-radius:15px;cursor:pointer}.react-chip.mine-react{border-color:var(--orange);background:#4e352b}.emoji-inline{background:none;border:0;color:#999aa2;font-size:12px;padding:4px}.emoji-inline:hover{color:var(--orange)}.attachment{max-width:280px;max-height:240px;display:block;border-radius:12px;cursor:pointer}.attachment-pdf{color:inherit;font-size:12px}.composer-wrap{padding:12px clamp(15px,6%,85px) 25px;background:#191a20;flex-shrink:0}.composer{display:flex;align-items:center;gap:9px;background:#292b33;border:1px solid #3e4049;border-radius:17px;padding:7px 9px}.composer:focus-within{border-color:#f0885066}.composer textarea{min-width:0;flex:1;resize:none;border:0;background:none;color:white;outline:none;font-size:13px;line-height:1.5;max-height:120px;min-height:22px;padding:8px 0}.composer textarea::placeholder{color:#777a83}.send-btn{border:0;width:38px;height:38px;flex-shrink:0;background:var(--orange);border-radius:12px;color:#21130e;display:grid;place-items:center}.send-btn:hover{background:#ff9f5a}.notice{font-size:11px;color:#81848c;margin:8px 4px 0}.content-pad{padding:30px clamp(18px,4vw,55px);max-width:1300px;margin:auto;width:100%}.page-title{font-size:32px;letter-spacing:-1px}.page-subtitle{color:var(--muted);font-size:13px;line-height:1.6;margin-top:6px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading{font-size:20px;font-weight:800}.card{background:#24262d;border:1px solid #353740;border-radius:19px;padding:20px}.card:hover{border-color:#4b4341}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.piece-grid-card{overflow:hidden;padding:0;cursor:pointer}.piece-card-banner{height:90px;display:flex;align-items:center;justify-content:center;font-size:38px}.piece-card-inner{padding:18px}.piece-card-inner h3{font-size:18px}.piece-card-inner p{font-size:12px;color:var(--muted);line-height:1.5;margin-top:6px;min-height:35px}.tag{display:inline-flex;gap:5px;align-items:center;padding:5px 9px;background:#3a3330;border:1px solid #54443d;color:#e4b493;font-size:10px;font-weight:800;border-radius:10px}.tag.green{background:#223a34;border-color:#375d4e;color:#7ce4b2}.tag.neutral{background:#32343c;border-color:#444751;color:#bebec5}.piece-hero{border-radius:18px;overflow:hidden;background:#272930;border:1px solid #393b42;margin-bottom:21px}.piece-banner{height:150px;display:flex;align-items:center;justify-content:center;gap:25px;position:relative;overflow:hidden}.piece-banner .giant-icon{font-size:88px;filter:drop-shadow(0 12px 18px #0003);z-index:1}.piece-banner:before,.piece-banner:after{content:'';width:200px;height:200px;border:1px solid #ffffff2f;border-radius:100%;position:absolute}.piece-banner:before{left:-70px;top:-70px}.piece-banner:after{right:-50px;bottom:-115px}.piece-info{padding:21px 25px;display:flex;justify-content:space-between;align-items:center;gap:12px}.piece-info h2{font-size:24px}.piece-info p{font-size:12px;color:#a9a7ae;margin-top:5px;line-height:1.5}.tabs{display:flex;gap:5px;border-bottom:1px solid var(--stroke);margin-bottom:22px;overflow-x:auto}.tabs button{white-space:nowrap;padding:13px 20px;border:0;border-bottom:2px solid transparent;background:none;color:#91929b;font-size:13px;font-weight:800}.tabs button.active{color:var(--orange2);border-bottom-color:var(--orange)}.post-card{background:#24262e;border:1px solid #34363f;border-radius:17px;padding:22px;cursor:pointer;transition:border-color .2s}.post-card:hover{border-color:#835742}.post-card h3{font-size:18px;margin:10px 0 9px}.post-card .post-body{font-size:13px;color:#b7b5bd;line-height:1.65;white-space:pre-wrap}.post-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:#94939c}.post-footer{display:flex;align-items:center;gap:16px;margin-top:18px;color:#aaabb1;font-size:11px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gallery-card{background:#292b32;border:1px solid #353841;border-radius:14px;overflow:hidden}.gallery-card img{width:100%;aspect-ratio:1;object-fit:cover;display:block;cursor:pointer}.gallery-card .gallery-info{padding:12px}.gallery-card p{font-size:12px;overflow-wrap:anywhere}.gallery-card .post-meta{margin-top:9px}.friend-row{display:flex;align-items:center;gap:14px;padding:17px;border-bottom:1px solid #383a43}.friend-row:last-child{border:0}.friend-row .friend-data{flex:1;min-width:0}.friend-row strong{font-size:13px}.friend-row p{color:var(--muted);font-size:11px;margin-top:4px}.flex{display:flex;align-items:center;gap:9px}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:12px}.dim{color:#71737c}.field{display:flex;flex-direction:column;gap:7px;margin:12px 0}.field label{font-size:12px;font-weight:800;color:#cbc8ca}.input{width:100%;border-radius:12px;border:1px solid #41434a;background:#17191e;color:#f8f5f3;padding:12px 13px;outline:none;font-size:13px}.input:focus{border-color:#f68b4d}.input::placeholder{color:#737681}.textarea{min-height:94px;resize:vertical}.hint{font-size:11px;color:#8f929b;line-height:1.5}.top-spacer{margin-top:18px}.divider{height:1px;background:#363841;margin:20px 0}.modal-outer{position:fixed;inset:0;z-index:50;background:#090b0dbb;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:18px}.modal-panel{background:#24262d;border:1px solid #41434b;border-radius:24px;width:min(100%,480px);max-height:min(94dvh,850px);overflow:auto;box-shadow:var(--shadow);padding:28px}.modal-head{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:21px}.modal-head h2{font-size:24px}.modal-head p{font-size:12px;color:var(--muted);margin-top:6px}.login-layout{min-height:100dvh;display:grid;grid-template-columns:1.1fr .9fr;background:#18191d}.login-art{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:7vh 7vw;background:radial-gradient(ellipse at 50% 50%,#704023 0%,#34231e 43%,#1a1b20 85%);position:relative;overflow:hidden;text-align:center}.login-art::before,.login-art::after{content:'';position:absolute;width:500px;height:500px;border-radius:50%;border:1px solid #ffffff12}.login-art::before{transform:scale(1.3)}.login-art::after{transform:scale(.8)}.login-art img{max-width:min(350px,65%);max-height:42vh;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(0 30px 35px #0007);animation:float 5s ease-in-out infinite}.login-art h1{font-size:clamp(44px,6vw,90px);letter-spacing:-.06em;z-index:2}.login-art h1 span,.brand span{color:var(--orange)}.login-art p{font-size:15px;color:#d9b8a6;position:relative;z-index:2;margin-top:7px}.login-panel{display:flex;flex-direction:column;justify-content:center;max-width:440px;width:100%;padding:60px 32px;margin:auto}.login-panel .eyebrow{margin-bottom:9px}.login-panel h2{font-size:36px;letter-spacing:-1px}.login-panel>p{color:#96949d;font-size:13px;line-height:1.6;margin:8px 0 22px}.login-panel .field{margin:9px 0}.login-tabs{display:flex;gap:7px;margin-bottom:16px}.login-tabs button{flex:1;border:1px solid #41434a;background:#23252c;color:#aaa8b1;padding:10px;border-radius:10px;font-weight:800}.login-tabs button.selected{background:#3f3029;color:#ffb783;border-color:#91583b}.login-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.tiny-link{background:none;border:0;color:#dba57d;font-size:11px;padding:4px;cursor:pointer}.setup-box{border:1px solid #654734;border-radius:15px;background:#312620;padding:17px;margin:20px 0}.setup-box h3{font-size:16px}.setup-box p{font-size:12px;color:#ceb19e;line-height:1.6;margin-top:7px}.setup-box details{font-size:11px;color:#e7be9d;margin-top:12px;line-height:1.7}.setup-box code{word-break:break-all;color:#ffdba9}.loading-screen{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.loading-screen img{width:150px;animation:float 3.5s ease-in-out infinite}.loading-screen h1{font-size:45px;letter-spacing:-2px}.loading-screen h1 span{color:var(--orange)}.loading-screen p{color:var(--muted);font-size:12px;margin-top:8px}.toast{background:#303038;color:white;border:1px solid #6c5a4e;border-radius:13px;box-shadow:0 12px 40px #0007;padding:13px 17px;font-size:13px;max-width:360px;animation:toastIn .2s ease-out}#toaster{position:fixed;right:22px;bottom:22px;z-index:99;display:flex;flex-direction:column;gap:8px}.status-box{display:flex;align-items:center;gap:9px;padding:11px 14px;border-radius:12px;background:#29302c;color:#8fe5b6;font-size:12px}.warning{background:#3d3025;color:#ffc293}.preview-ribbon{position:fixed;z-index:100;left:50%;top:12px;transform:translateX(-50%);background:#f7ad49;color:#301a0d;font-weight:800;padding:8px 18px;border-radius:100px;box-shadow:0 8px 30px #0006;font-size:12px;white-space:nowrap}.preview-ribbon button{border:0;border-left:1px solid #a86435;margin-left:10px;padding-left:12px;background:transparent;color:#3a1c13;font-weight:900}.kicker{color:var(--orange2);letter-spacing:.1em;font-size:10px;font-weight:900;text-transform:uppercase}.member-avatars{display:flex}.member-avatars .avatar{margin-left:-8px;border:3px solid #1e2026}.member-avatars .avatar:first-child{margin-left:0}.auth-warning{background:#3b2d26;border:1px solid #755139;border-radius:12px;color:#f5c3a3;padding:13px;font-size:12px;line-height:1.6}.pick-color{width:35px;height:35px;border-radius:12px;border:2px solid transparent;cursor:pointer}.pick-color.selected{outline:2px solid white;outline-offset:2px}.compact-stats{display:flex;gap:13px;color:#9d9ca4;font-size:11px;margin-top:13px}.member-checkbox{display:flex;gap:10px;align-items:center;padding:9px 0;font-size:13px}.member-checkbox input{accent-color:var(--orange)}.mobile-back{display:none}.modal-footer{display:flex;gap:8px;justify-content:flex-end;margin-top:23px}.unread-dot{width:8px;height:8px;border-radius:100%;background:var(--orange)}.profile-banner{height:125px;border-radius:17px;background:linear-gradient(130deg,#7841a5,#da784d);position:relative;margin-bottom:54px}.profile-banner .avatar{position:absolute;bottom:-40px;left:23px;border:5px solid #24262d}.profile-head{margin:0 4px 20px}.profile-head h2{font-size:25px}.profile-head p{color:var(--muted);font-size:12px;margin-top:5px}.linklike{border:0;background:none;color:#ffa76c;font-weight:800;font-size:12px}.post-detail-body{white-space:pre-wrap;color:#d9d6d6;font-size:13px;line-height:1.8}.reply-item{padding:15px 0;border-bottom:1px solid #393b42}.reply-item p{font-size:13px;white-space:pre-wrap;margin-top:8px;line-height:1.5}.button-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.backdrop-img{position:fixed;inset:0;background:#000e;z-index:110;display:flex;align-items:center;justify-content:center;padding:30px;cursor:zoom-out}.backdrop-img img{max-height:90vh;max-width:92vw;object-fit:contain}.notice-inline{padding:16px;border:1px dashed #494b54;border-radius:13px;font-size:12px;color:#a6a4ac;line-height:1.6}.card-mini{padding:13px;border:1px solid #3b3d45;border-radius:12px;background:#24262c}.mobile-only{display:none}@keyframes float{50%{transform:translateY(-11px)}}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1100px){.sidebar{width:270px}.main-top{padding:16px 20px}.gallery-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.screen{flex-direction:column;min-height:0}.rail{height:66px;width:100%;position:absolute;bottom:0;left:0;z-index:20;flex-direction:row;justify-content:space-around;padding:7px 12px env(safe-area-inset-bottom);border-right:0;border-top:1px solid var(--stroke);background:#17191df7;order:3}.rail-brand,.rail-bottom{display:none}.rail-btn{width:58px;height:48px;border-radius:12px}.rail-btn.active:before{left:8px;top:-6px;width:43px;height:3px;border-radius:10px}.rail-label{font-size:9px}.sidebar{width:100%;flex:1;min-height:0;border:0;padding-bottom:72px}.sidebar-top{padding:22px 19px 13px}.sidebar-title h2{font-size:27px}.main{display:none;position:absolute;inset:0 0 66px;z-index:10}.screen.in-detail .main{display:flex}.screen.in-detail .sidebar{display:none}.main-top{min-height:65px;padding:10px 12px}.main-top h2{font-size:16px}.mobile-back{display:grid}.head-actions .round-btn{width:34px}.chat-scroll{padding:19px 14px}.chat-bubble-wrap{max-width:88%}.composer-wrap{padding:10px 11px 12px}.content-pad{padding:22px 17px}.page-title{font-size:27px}.grid-2,.grid-3{grid-template-columns:1fr}.gallery-grid{grid-template-columns:repeat(2,1fr);gap:9px}.piece-info{padding:15px;align-items:flex-start}.piece-info h2{font-size:21px}.piece-banner{height:120px}.tabs button{padding:11px 13px;font-size:12px}.login-layout{display:block}.login-art{display:none}.login-panel{min-height:100dvh;padding:30px 24px 50px}.login-panel:before{content:'🍗 tender.';font-family:Outfit;font-size:28px;font-weight:900;color:var(--orange);margin-bottom:35px}.modal-panel{padding:22px;border-radius:21px}.mobile-only{display:flex}.empty-content img{width:130px}.empty-content h2{font-size:24px}#toaster{bottom:76px;left:16px;right:16px}.toast{max-width:none}.preview-ribbon{top:3px;font-size:10px}}@media(min-width:761px) and (max-width:940px){.sidebar{width:250px}.rail{width:68px}.rail-btn.active:before{left:-9px}.content-pad{padding:24px}}
/* Tender 0.2 — The Crispy Update. Original UI remains intact. */
:root{--orange:var(--personal-accent,#ff803f);--orange2:#ffb381;--bg:#111318;--panel:#1b1e25;--panel2:#22252d;--surface:#292c35;--surface2:#323640;--stroke:#353944;--text:#f7f4ef;--muted:#aba6a5;--radius:18px}
body{background:var(--bg);}
.screen{background:radial-gradient(circle at 83% 5%,color-mix(in srgb,var(--orange) 6%,transparent),transparent 28%),var(--bg)}
.rail{background:linear-gradient(180deg,#191b21,#15161c);box-shadow:8px 0 30px #00000012;z-index:2}
.rail-brand{border-radius:19px;transition:transform .25s ease;}
.rail-brand:hover{transform:rotate(-8deg) scale(1.08)}
.rail-btn{transition:transform .18s,color .18s,background .18s;}
.rail-btn:hover{transform:translateY(-2px)}
.sidebar{background:linear-gradient(180deg,var(--panel),var(--bg));}
.side-row{border:1px solid transparent;transition:background .18s,border-color .18s,transform .18s;}
.side-row:hover{transform:translateX(2px);border-color:var(--stroke)}
.side-row.selected{border-color:color-mix(in srgb,var(--orange) 45%,transparent);background:color-mix(in srgb,var(--orange) 12%,var(--panel));}
.main-top{background:color-mix(in srgb,var(--panel) 90%,transparent);backdrop-filter:blur(15px);border-bottom-color:var(--stroke)}
.main-body,.content-pad{scrollbar-color:var(--surface2) transparent;scrollbar-width:thin;}
.btn,.send-btn,.plus-btn{transition:transform .14s,filter .18s,box-shadow .18s;}
.btn:hover:not(:disabled),.send-btn:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.08)}
.btn:active,.send-btn:active{transform:scale(.98)}
.card,.post-card,.gallery-card{border:1px solid var(--stroke);box-shadow:0 10px 28px #00000018;transition:border-color .2s,transform .2s,box-shadow .2s;}
.post-card:hover,.gallery-card:hover{border-color:color-mix(in srgb,var(--orange) 35%,var(--stroke));box-shadow:0 14px 34px #00000022;}
.avatar{border-radius:34%;background:linear-gradient(145deg,var(--orange),#c354a9);}
.unread-badge{position:absolute;right:1px;top:1px;min-width:19px;height:19px;display:inline-grid;place-items:center;padding:0 5px;border-radius:999px;background:#ef3c51;color:#fff;font-weight:800;font-size:10px;font-family:Outfit,sans-serif;box-shadow:0 2px 9px #ef3c515c;border:2px solid var(--panel);line-height:1}
.side-row .unread-badge{position:static;font-size:11px;min-width:20px;height:20px;flex-shrink:0}
.chat-history{position:relative;background:radial-gradient(circle at 95% 10%,color-mix(in srgb,var(--orange) 4%,transparent),transparent 36%)}
.chat-scroll{scroll-behavior:smooth}
.chat-bubble-wrap{animation:tender-rise .17s ease-out both;}
.bubble{line-height:1.47;word-wrap:break-word;overflow-wrap:anywhere;}
.bubble-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.bubble-pending{opacity:.65;}
.receipt{font-size:10px;color:var(--orange2);}
.inline-attachment{max-width:min(380px,75vw);margin-top:9px;border:1px solid var(--stroke);overflow:hidden;border-radius:14px;background:#00000028;}
.inline-attachment img{display:block;max-height:340px;width:100%;object-fit:contain;cursor:zoom-in;background:#111;}
.inline-attachment span,.inline-attachment>div{display:block;font-size:11px;opacity:.7;padding:7px 10px;overflow-wrap:anywhere;}
.inline-attachment audio{display:block;max-width:100%;min-width:240px;min-height:42px;padding:4px 6px;}
.attachment-card{display:flex;align-items:center;gap:9px;margin-top:8px;border:1px solid #ffffff22;background:#ffffff0a;border-radius:12px;padding:10px 14px;color:var(--text);max-width:100%;text-align:left;overflow:hidden}
.attachment-card span:not(.ico){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.message-link{color:#ffc493;text-decoration:underline;text-underline-offset:3px;word-break:break-all;}
.gif-preview{display:block;max-width:260px;max-height:290px;width:auto;height:auto;border-radius:12px;margin-top:6px;}
.inline-custom-emoji{display:inline-block;width:24px;height:24px;object-fit:contain;vertical-align:middle;}
.pinned-strip{display:flex;align-items:center;gap:10px;padding:9px 16px;border-bottom:1px solid var(--stroke);background:color-mix(in srgb,var(--orange) 8%,var(--panel));color:var(--text);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.reply-quote{font-size:11px;color:var(--orange2);border-left:3px solid var(--orange);padding:4px 9px;margin:3px 0 5px;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;background:#ffffff09;border-radius:0 7px 7px 0;}
.composer-wrap{border-top:1px solid var(--stroke)}
.composer{background:var(--surface);border:1px solid color-mix(in srgb,var(--orange) 10%,var(--stroke));border-radius:17px;box-shadow:0 5px 28px #00000018;}
.composer:focus-within{border-color:color-mix(in srgb,var(--orange) 60%,var(--stroke));box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 11%,transparent);}
.composer .round-btn{height:35px;width:35px;flex-shrink:0;}
.composer-extra{font-weight:800;font-size:11px;}
.composer-footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;font-size:11px;min-height:20px;color:var(--muted);padding:5px 10px 0;}
#typing-line:not(:empty){color:var(--orange2);}
#file-status:not(:empty){color:var(--orange2)}
.composer-reply{display:flex;align-items:center;justify-content:space-between;color:var(--orange2);font-size:12px;padding:7px 12px;margin-bottom:5px;background:var(--surface);border-radius:10px;}
.composer-reply button{border:none;background:transparent;color:var(--text);font-size:18px}
.emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:15px 0 8px;max-height:330px;overflow:auto}
.emoji-option{aspect-ratio:1;border:1px solid var(--stroke);border-radius:10px;background:var(--surface);font-size:25px;display:grid;place-items:center;transition:transform .15s,border-color .15s;min-width:0}
.emoji-option:hover{transform:scale(1.1);border-color:var(--orange)}
.emoji-option img{width:28px;height:28px;object-fit:contain;}
.poll-card{width:min(330px,72vw);display:grid;gap:7px;margin:8px 0 4px;}
.poll-card strong{margin-bottom:4px;font-size:13px;}
.poll-option{position:relative;isolation:isolate;overflow:hidden;display:flex;justify-content:space-between;gap:10px;border:1px solid var(--stroke);background:#fff1;color:var(--text);border-radius:10px;text-align:left;padding:9px 11px;font-size:13px;}
.poll-option:hover{border-color:var(--orange)}
.poll-option.poll-selected{border-color:var(--orange)}
.poll-option small{opacity:.75;flex-shrink:0;}
.poll-progress{position:absolute;z-index:-1;background:color-mix(in srgb,var(--orange) 24%,transparent);top:0;bottom:0;left:0;transition:width .4s;}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:15px;}
.profile-banner.crispy-profile{background-size:cover;background-position:center;position:relative;min-height:165px;border:1px solid var(--stroke);background-color:var(--surface2);background-image:radial-gradient(circle at 72% 12%,#fc874755,#0000 46%),linear-gradient(115deg,#523226,#242832);}
.profile-banner.crispy-profile .avatar{box-shadow:0 8px 24px #0008;border:4px solid var(--panel);}
.banner-hint{position:absolute;right:14px;top:13px;font-weight:700;font-size:12px;color:#fff9;text-shadow:0 1px 8px #0008;}
.effect-glow .avatar{filter:drop-shadow(0 0 12px #ff9c57aa)}
.effect-float .avatar{animation:float-buffalo 4s ease-in-out infinite}
.effect-sparkle .avatar{box-shadow:0 0 12px var(--orange),0 0 24px #ffb96b}
.piece-hero.layout-cards .piece-info{border-radius:0 0 22px 22px;background:var(--surface);padding:18px}
.piece-hero.layout-compact .piece-banner{height:110px}
.notification-feed,.search-results{display:grid;gap:9px;max-height:60vh;overflow:auto;padding:8px 0;}
.activity-row,.saved-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:13px;background:var(--surface);color:var(--text);border-radius:12px;border:1px solid var(--stroke);}
.activity-row:hover,.saved-row:hover{border-color:var(--orange)}
.activity-row.fresh{background:color-mix(in srgb,var(--orange) 12%,var(--surface));}
.activity-row>span:nth-child(2),.saved-row{flex:1;display:grid;gap:4px;}
.activity-row small{color:var(--muted);font-size:11px}
.activity-row .unread-badge{position:static;margin-left:auto}
.role-entry{padding:10px 0;border-bottom:1px solid var(--stroke);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.role-entry .role-assign{flex:1;min-width:160px;max-width:240px}
.chat-empty{display:grid;place-items:center;gap:8px;text-align:center;margin:auto;padding:15px}
.chat-empty img{width:96px;filter:drop-shadow(0 8px 24px #d9634860);}
.dragover .chat-history:after{content:'Drop to attach • Buffalo has it 🍗';position:absolute;inset:10px;z-index:5;border:3px dashed var(--orange);border-radius:18px;display:grid;place-items:center;background:#1b1d23ec;color:var(--orange2);font-weight:800;pointer-events:none;}
@keyframes tender-rise{from{opacity:.45;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes float-buffalo{50%{transform:translateY(-7px)}}
[data-tender-theme="light"]{--bg:#f7f4ee;--panel:#fffdfa;--panel2:#f7f0ea;--surface:#f1ebe6;--surface2:#e7e0da;--stroke:#ded5cc;--text:#292222;--muted:#706662}
[data-tender-theme="light"] .rail{background:#f5eee6}
[data-tender-theme="light"] .rail-btn{color:#655b56}
[data-tender-theme="light"] .sidebar{background:var(--panel)}
[data-tender-theme="light"] .bubble{color:#292222}
[data-tender-theme="light"] .chat-scroll{background:#fcfaf7}
[data-tender-theme="midnight"]{--bg:#0c0e19;--panel:#141627;--panel2:#1c2136;--surface:#222842;--surface2:#333954;--stroke:#333a56;--text:#f0f2ff;--muted:#9da5c4}
[data-tender-theme="cozy"]{--bg:#211816;--panel:#30231e;--panel2:#382a24;--surface:#433128;--surface2:#513a2d;--stroke:#614a3e;--text:#fff1e5;--muted:#d0ad9a}
@media(max-width:1120px){.composer-extra{padding:5px;min-width:32px}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:730px){.settings-grid{grid-template-columns:1fr}.main-top{min-height:62px}.composer{gap:2px;}.composer-extra{font-size:10px}.emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.chat-scroll{padding-bottom:14px}.rail .unread-badge{top:-1px;right:7px}.banner-hint{font-size:10px}}
@media(max-width:380px){.composer-extra{display:none}.emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.composer .round-btn{width:30px;height:33px}.composer-wrap{padding:7px}}
@media(prefers-reduced-motion:reduce){.chat-bubble-wrap,.effect-float .avatar,.rail-brand,.btn{animation:none!important;transition:none!important}}

.sticker-emoji{width:110px;height:110px;max-width:25vw;max-height:25vw;display:block;margin:6px 2px;}
@media(max-width:760px){.rail{padding-left:3px;padding-right:3px;gap:1px}.rail>.rail-btn{min-width:0;max-width:72px;width:20%;flex:1;padding:3px 0}.rail-label{font-size:9px;white-space:nowrap}.rail-btn.active:before{width:55%;left:22%}.rail-btn .unread-badge{right:0}}

/* ==========================================================
   Tender 0.3 · Night Shift (private beta)
   Original Tender visual language; not Discord assets or clone.
   ========================================================== */
:root {
  --bg:#090b10;--panel:#10131b;--panel2:#151924;--surface:#1a202b;
  --surface2:#252b38;--stroke:#242b37;--text:#f1f3fa;--muted:#989fac;
  --orange:var(--personal-accent,#f47735);--orange2:#ffb88e;
  --radius:11px;--tender-info-width:248px;--tender-row-pad:8px;
  --tender-font-scale:1;--tender-accent-2:#aa68ff;
}
html,body,#root{background:var(--bg);font-size:calc(14px * var(--tender-font-scale))}
.screen{background:var(--bg)!important}
.rail{width:69px;padding:16px 8px 14px;gap:7px;border-right:1px solid var(--stroke);background:#0c0f16!important;box-shadow:none!important;transition:width .22s ease}
.rail-brand{width:48px;height:48px;margin-bottom:18px;border-radius:16px;background:linear-gradient(135deg,var(--orange),var(--tender-accent-2));box-shadow:0 8px 18px #0006}
.rail-brand img{width:40px;height:40px}
.rail-btn{width:49px;height:47px;border-radius:13px;color:#9aa3b7}
.rail-btn.active{background:color-mix(in srgb,var(--orange) 14%,#171923);color:var(--orange)}
.rail-btn.active:before{left:-10px;width:3px;height:22px}
.rail-toggle{height:39px}
.rail-expanded .rail{width:181px;align-items:stretch;padding-left:10px;padding-right:10px}
.rail-expanded .rail-brand{align-self:center}
.rail-expanded .rail-btn{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 13px;gap:13px}
.rail-expanded .rail-label{font-size:12px;letter-spacing:0;font-weight:750;margin:0}
.rail-expanded .rail-bottom{align-items:stretch}
.rail-expanded .rail-btn.active:before{left:-10px}
.sidebar{width:270px;background:#10131b!important;border-right:1px solid var(--stroke)}
.sidebar-top{padding:19px 13px 13px;background:#10131b}
.sidebar-title{margin:5px 0 12px}
.sidebar-title h2{font-size:22px;letter-spacing:-.55px}
.eyebrow{font-size:9px;letter-spacing:.11em;opacity:.75}
.searchbox{height:37px;border:1px solid #29303d;background:#0c0f17;border-radius:9px}
.sidebar-content{padding:6px 7px 17px}
.side-row{border-radius:8px;padding:var(--tender-row-pad) 10px;min-height:49px;gap:9px}
.side-row:hover{background:#1a2030}
.side-row.selected{background:color-mix(in srgb,var(--orange) 12%,#1b2230);box-shadow:inset 2px 0 var(--orange)}
.side-row .avatar.md,.side-row .squad-avatar,.side-row .piece-avatar{width:35px;height:35px;border-radius:12px}
.side-row .grow strong{font-size:12px;font-weight:700}
.side-row .grow p{font-size:10px;margin-top:2px}
.main{background:#11141c}
.main-top{min-height:61px;padding:10px 19px;background:#141923!important;border-bottom:1px solid var(--stroke);backdrop-filter:none!important}
.main-top h2{font-size:17px}
.main-top .title-area p{font-size:10px}
.main-top .round-btn{width:34px;height:34px}
.round-btn:hover{background:#30384a}
.btn{border-radius:9px;min-height:36px;font-weight:750}
.btn.sm{min-height:30px}
.main-body{background:#11141c}
.chat-history{min-height:0;background:#11141c!important}
.chat-scroll{scroll-behavior:auto;position:relative;gap:0;padding:18px 20px 12px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.chat-bubble-wrap,.chat-bubble-wrap.mine{
  display:flex!important;align-items:flex-start;align-self:stretch!important;
  flex-direction:row!important;max-width:none;width:100%;
  padding:var(--tender-row-pad) 8px;border-radius:7px;gap:12px;
  animation:none!important;transition:background .14s ease;
}
.chat-bubble-wrap:hover{background:#ffffff09}
.chat-bubble-wrap .avatar.md{height:35px;width:35px;border-radius:50%;font-size:13px}
.bubble-content{display:flex;flex-direction:column;min-width:0;flex:1}
.bubble-name{font-size:12px;margin:0 0 3px;color:var(--orange2)}
.bubble{width:100%;max-width:none!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;color:var(--text)!important;border-radius:0;line-height:1.55;font-size:13px}
.bubble-meta{font-size:10px;color:var(--muted);opacity:0;transition:opacity .14s}
.chat-bubble-wrap:hover .bubble-meta,.bubble-pending .bubble-meta,.chat-bubble-wrap:focus-within .bubble-meta{opacity:1}
.bubble-actions{opacity:0;transition:opacity .12s}
.chat-bubble-wrap:hover .bubble-actions,.chat-bubble-wrap:focus-within .bubble-actions,.bubble-actions:has(.react-chip){opacity:1}
.chat-bubble-wrap .bubble-actions{margin-top:3px}
.chat-bubble-wrap.mine{background:transparent}
.chat-bubble-wrap.mine:hover{background:#ffffff09}
.chat-bubble-wrap.message-grouped{padding-top:2px;padding-bottom:2px}
.message-grouped .avatar{visibility:hidden;height:13px!important}
.message-grouped .bubble-name{display:none}
.message-grouped .bubble-meta{position:absolute;right:16px}
.composer-wrap{margin:0;padding:10px 18px 14px;border-top:0;background:#11141c;z-index:3;flex-shrink:0}
.composer{background:#1e2531;border:1px solid #303746;border-radius:10px;gap:5px;min-height:47px;box-shadow:none}
.composer:focus-within{border-color:color-mix(in srgb,var(--orange) 55%,#2b3547);box-shadow:0 0 0 2px color-mix(in srgb,var(--orange) 12%,transparent)}
.composer textarea{font-size:13px}
.composer-footer{padding:4px 4px 0}
.chat-jump-new{position:absolute;bottom:95px;right:22px;z-index:4;padding:8px 13px;border:1px solid #464e66;border-radius:25px;color:white;background:#262e41;box-shadow:0 7px 25px #0008;font-size:12px;font-weight:700}
.chat-jump-new[hidden]{display:none!important}
.chat-empty{min-height:100%;align-content:center;gap:7px}
.chat-empty h3{font-size:18px}
.chat-empty img{width:75px}
.info-panel{width:var(--tender-info-width);flex:0 0 var(--tender-info-width);min-width:190px;max-width:380px;min-height:0;display:none;flex-direction:column;background:#10141d;border-left:1px solid var(--stroke);overflow:hidden;transition:width .13s}
.has-info:not(.info-hidden) .info-panel{display:flex}
.info-head{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border-bottom:1px solid var(--stroke)}
.info-heading,.info-count{font-size:10px;letter-spacing:.095em;color:var(--muted);font-weight:800}
.info-overview{padding:19px 17px;border-bottom:1px solid var(--stroke)}
.info-overview h3{font-size:16px;overflow-wrap:anywhere}
.info-overview p{color:var(--muted);font-size:11px;line-height:1.45;margin-top:6px;overflow-wrap:anywhere}
.info-emblem{height:44px;width:44px;background:linear-gradient(135deg,var(--orange),var(--tender-accent-2));border-radius:13px;display:grid;place-items:center;margin-bottom:13px;font-size:24px}
.info-count{padding:15px 14px 7px;display:flex;justify-content:space-between}
.info-count strong{color:var(--text)}
.info-members{flex:1;min-height:0;overflow:auto;padding:4px 8px 12px}
.info-member{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:8px}
.info-member:hover{background:#1d2430}
.info-member .avatar.md{height:30px;width:30px;border-radius:50%;font-size:12px}
.info-person{min-width:0;display:grid;gap:2px}
.info-person strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.info-person small{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.info-resizer{border-top:1px solid var(--stroke);padding:11px 12px;display:flex;align-items:center;gap:10px;font-size:10px;color:var(--muted)}
.info-resizer input{min-width:0;width:100%;accent-color:var(--orange)}
.piece-body{display:flex!important;flex-direction:column;overflow:hidden!important;padding:0;min-height:0}
.piece-top-scroll{flex:0 0 auto;max-height:185px;overflow:auto;scrollbar-width:thin}
.piece-body:not(:has(.piece-chat-history)) .piece-top-scroll{flex:1;max-height:none}
.piece-chat-history{flex:1;height:auto!important;min-height:0!important;display:flex;flex-direction:column}
.piece-chat-history .chat-scroll{flex:1;min-height:0}
.piece-hero{margin:0 0 8px!important}
.piece-banner{height:60px!important}
.piece-info{padding:9px 12px}
.piece-info h2{font-size:16px}
.piece-info p{font-size:11px}
.giant-icon{font-size:24px!important}
.piece-top-scroll .content-pad{padding:9px 16px 0}
.tabs{margin-top:8px}
.tabs button{padding:7px 12px;font-size:11px}
.appearance-studio{border:1px solid var(--stroke);background:linear-gradient(155deg,#181d29,#11141d)}
.appearance-studio .section-row{flex-wrap:wrap}
html[data-tender-gradient="violet"]{--tender-accent-2:#a567ff}
html[data-tender-gradient="ocean"]{--tender-accent-2:#58abff}
html[data-tender-gradient="forest"]{--tender-accent-2:#48dca7}
html[data-tender-gradient="rose"]{--tender-accent-2:#ff73a1}
html[data-tender-wallpaper="dots"] .chat-scroll{background-image:radial-gradient(#ffffff0d 1px,transparent 1px);background-size:20px 20px}
html[data-tender-wallpaper="grid"] .chat-scroll{background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:26px 26px}
html[data-tender-wallpaper="aurora"] .chat-scroll{background-image:radial-gradient(ellipse at 15% 10%,color-mix(in srgb,var(--orange) 12%,transparent),transparent 55%),radial-gradient(ellipse at 84% 80%,color-mix(in srgb,var(--tender-accent-2) 12%,transparent),transparent 58%)}
html[data-tender-wallpaper="image"] .chat-scroll{background-image:linear-gradient(#0b0e16ae,#0b0e16ae),var(--tender-chat-image);background-position:center;background-size:cover}
html[data-tender-fx="off"] *,html[data-tender-fx="off"] *:before,html[data-tender-fx="off"] *:after{animation:none!important;transition:none!important}
html[data-tender-theme="light"]{--bg:#f1f2f7;--panel:#fff;--panel2:#f7f8fd;--surface:#fff;--surface2:#e9edf6;--stroke:#d9dde8;--text:#202333;--muted:#677184}
html[data-tender-theme="light"] .main,html[data-tender-theme="light"] .main-body,html[data-tender-theme="light"] .chat-history,html[data-tender-theme="light"] .composer-wrap{background:#f8f9fc!important}
html[data-tender-theme="light"] .sidebar,html[data-tender-theme="light"] .rail,html[data-tender-theme="light"] .main-top,html[data-tender-theme="light"] .info-panel{background:#fff!important}
html[data-tender-theme="light"] .chat-bubble-wrap:hover{background:#e9ebf3}
html[data-tender-theme="light"] .bubble{color:#262c36!important}
html[data-tender-theme="light"] .composer{background:#f0f2f8}
@media(max-width:1200px){.info-panel{display:none!important}}
@media(max-width:940px) and (min-width:761px){.sidebar{width:225px}}
@media(max-width:760px){
 .screen{min-height:0}
 .rail,.rail-expanded .rail{height:64px;width:100%;padding:5px 9px env(safe-area-inset-bottom);flex-direction:row;justify-content:space-around;align-items:center;background:#10131cf6!important}
 .rail>.rail-btn,.rail-expanded .rail>.rail-btn{width:20%;height:46px;padding:3px;display:grid;justify-content:center;place-items:center;gap:0}
 .rail-label,.rail-expanded .rail-label{font-size:9px;font-weight:700}
 .rail-toggle,.rail-expanded .rail-toggle{display:none!important}
 .rail-bottom,.rail-expanded .rail-bottom{display:none}
 .sidebar{width:100%;padding-bottom:68px}
 .main{inset:0 0 64px}
 .main-top{min-height:55px;padding:8px 11px}
 .chat-scroll{padding:12px 9px 8px}
 .chat-bubble-wrap,.chat-bubble-wrap.mine{gap:8px}
 .chat-bubble-wrap .avatar.md{width:30px;height:30px}
 .composer-wrap{padding:6px 9px 9px}
 .composer-extra{display:none}
 .piece-top-scroll{max-height:158px}
 .piece-top-scroll .content-pad{padding:5px 9px 0}
 .piece-banner{height:44px!important}
 .piece-info p{max-height:26px;overflow:hidden}
 .tabs button{padding:7px 9px}
 .info-panel{display:none!important}
 .chat-jump-new{right:12px;bottom:77px}
}
@media(prefers-reduced-motion:reduce){.screen *, .screen *:before,.screen *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Command palette, embeds, and rich chat controls */
.composer-assist{max-height:235px;overflow:auto;background:#1b202d;border:1px solid var(--stroke);border-radius:10px 10px 5px 5px;box-shadow:0 -8px 24px #0005;margin:0 0 5px}
.composer-assist[hidden]{display:none}
.assist-row{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;border:0;background:transparent;color:var(--text);text-align:left;border-bottom:1px solid #ffffff09;font-size:12px}
.assist-row:hover,.assist-row:focus-visible{background:#2c3344;outline:none}
.assist-row strong{min-width:72px;font-size:12px;color:var(--orange2)}
.assist-row span{flex:1;color:var(--muted)}
.assist-row small{color:#748095;font-size:10px}
.assist-row .avatar{width:23px;height:23px;border-radius:50%;font-size:11px}
.command-list{display:grid;max-height:50vh;overflow:auto;gap:5px}
.command-item{padding:10px 11px;border-radius:8px;display:grid;gap:4px;background:var(--panel2)}
.command-item strong{color:var(--orange2);font-size:12px}
.command-item small{color:var(--muted)}
.trivia-game{display:grid;gap:18px}
.trivia-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.rich-embed{display:flex;align-items:start;gap:12px;width:min(100%,490px);padding:13px 14px;border:1px solid var(--stroke);border-left:4px solid var(--embed-accent,var(--orange));border-radius:5px 10px 10px 5px;background:color-mix(in srgb,var(--panel2) 95%,var(--embed-accent))}
.rich-embed-main{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.rich-embed-author{font-size:11px;font-weight:700;color:var(--muted)}
.rich-embed-title{font-size:14px;font-weight:800;color:var(--text)}
.rich-embed-body{font-size:12px;line-height:1.6;color:var(--text);white-space:normal;overflow-wrap:anywhere}
.rich-embed-footer{font-size:10px;color:var(--muted);padding-top:8px}
.rich-embed-thumb{width:78px;height:78px;object-fit:cover;border-radius:7px;flex-shrink:0}
@media(max-width:600px){.trivia-options{grid-template-columns:1fr}.rich-embed-thumb{width:58px;height:58px}.assist-row small{display:none}}


/* Tender 0.3 release: user profile popouts and uploaded Piece pictures */
.piece-avatar{display:inline-grid;place-items:center;flex-shrink:0;overflow:hidden;isolation:isolate;border-radius:13px}
.piece-avatar-image{width:100%;height:100%;display:block;object-fit:cover;min-width:0;min-height:0}
.piece-card-banner .piece-icon-card{width:62px;height:62px;border-radius:18px;font-size:30px;box-shadow:0 10px 25px #0004;border:2px solid #ffffff20}
.piece-icon-hero{width:58px;height:58px;border-radius:18px;font-size:30px;box-shadow:0 8px 21px #0005;border:2px solid #ffffff45}
.piece-hero-edit{position:relative;display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;margin:3px;background:none;cursor:pointer;min-width:58px;min-height:58px;border-radius:18px}
.piece-hero-edit:hover .piece-icon-hero,.piece-hero-edit:focus-visible .piece-icon-hero{outline:2px solid #fff;outline-offset:2px}
.piece-hero-pencil{position:absolute;right:-6px;bottom:-5px;border:2px solid #1a1d25;border-radius:50%;display:grid;place-items:center;width:23px;height:23px;background:var(--orange);color:#1c140f;font-size:14px;font-weight:900;box-shadow:0 4px 11px #0007}
.piece-editor-preview{display:flex;align-items:center;gap:15px;background:var(--panel2);border:1px solid var(--stroke);padding:15px;border-radius:12px;margin:4px 0 15px}
.piece-editor-preview strong{font-size:14px;color:var(--text)}
.piece-editor-preview p{margin-top:5px}
.piece-icon-preview{width:70px;height:70px;border-radius:19px;font-size:36px;border:2px solid #ffffff2b}
.piece-image-preview{width:100%;max-width:160px;aspect-ratio:1;margin-top:10px;overflow:hidden;border-radius:16px;border:2px solid var(--orange);box-shadow:0 8px 28px #0005}
.piece-image-preview[hidden]{display:none}
.piece-image-preview img{width:100%;height:100%;object-fit:cover;display:block}
.piece-card-banner{display:flex;align-items:center;justify-content:center}
.piece-hero .piece-banner{display:flex;align-items:center;justify-content:center;overflow:visible}
.profile-click{padding:0;border:0;background:none;color:inherit;cursor:pointer;text-align:left;font:inherit;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.profile-click:hover,.profile-click:focus-visible{outline:none}
.profile-click:focus-visible .avatar{outline:2px solid var(--orange);outline-offset:3px}
.profile-click.profile-name{justify-content:flex-start;font-weight:800;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-name:hover,.profile-name:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;color:var(--orange2)}
.profile-face{flex-shrink:0;border-radius:13px}
.profile-face .avatar{pointer-events:none}
.bubble-name .profile-name{color:var(--orange2);font-size:12px}
.friend-data .profile-name{font-size:13px}
.side-row .profile-face .avatar.md{width:35px;height:35px}
.side-row .profile-name{display:block;font-size:12px}
.info-member-button{width:100%;border:0;background:transparent;text-align:left;color:var(--text);cursor:pointer;font:inherit}
.info-member-button:hover,.info-member-button:focus-visible{background:#262c39;outline:none}
.info-member-button:focus-visible{box-shadow:inset 2px 0 var(--orange)}
.profile-popout{overflow:hidden;border-radius:12px;border:1px solid var(--stroke);background:var(--panel)}
.profile-popout .profile-banner{border-radius:0;min-height:175px}
.profile-popout .profile-banner .avatar{width:78px;height:78px;border-radius:50%;font-size:28px;box-shadow:0 8px 26px #0009}
.profile-popout-body{display:flex;flex-direction:column;gap:14px;padding:18px 20px 22px}
.profile-popout-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.profile-popout-head h2{font-size:23px;overflow-wrap:anywhere;line-height:1.1}
.profile-popout-head p{font-size:13px;color:var(--muted);margin-top:4px}
.profile-popout-body h3{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--orange2)}
.profile-about{color:var(--text);font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.profile-status{border-radius:8px;background:var(--surface);padding:10px 12px;color:var(--text);font-size:13px}
.profile-popout-actions{display:flex;gap:9px;flex-wrap:wrap}
.post-meta .profile-name{font-weight:700;font-size:inherit}
@media(max-width:760px){
 .piece-icon-hero,.piece-hero-edit{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:13px}
 .piece-hero-pencil{right:-9px;bottom:-7px}
 .piece-editor-preview{padding:11px}
 .profile-popout .profile-banner{min-height:145px}
 .profile-popout-body{padding:15px}
}


/* =======================================================
   Tender 0.3.2 — compact messaging + polished settings
   ======================================================= */
/* Critical fix: flex layout must not distribute each message
   over the entire chat viewport or stretch its row height. */
.chat-history,.piece-chat-history{min-height:0;overflow:hidden}
.chat-scroll,.piece-chat-history .chat-scroll{
 display:block!important;flex:1 1 0!important;min-height:0!important;
 overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 padding:18px clamp(12px,2.1vw,32px) 16px!important;
 scrollbar-gutter:stable;scroll-behavior:auto
}
.chat-scroll>.chat-bubble-wrap{
 display:flex!important;align-items:flex-start!important;
 width:100%!important;max-width:none!important;
 flex:0 0 auto!important;min-height:0!important;
 height:auto!important;margin:0!important;
 padding:4px 10px!important;gap:11px!important;
 border-radius:6px;position:relative
}
.chat-scroll>.chat-bubble-wrap:not(.message-grouped){margin-top:9px!important}
.chat-scroll>.chat-bubble-wrap:first-child{margin-top:0!important}
.chat-scroll>.chat-bubble-wrap.message-grouped{padding-top:2px!important;padding-bottom:2px!important}
.chat-bubble-wrap .profile-face{width:35px;min-width:35px;min-height:24px;margin:0!important;align-self:flex-start}
.chat-bubble-wrap .profile-face .avatar{width:35px;height:35px}
.chat-bubble-wrap.message-grouped .profile-face{visibility:hidden;min-height:16px;height:17px}
.chat-bubble-wrap.message-grouped .profile-face .avatar{visibility:hidden}
.chat-bubble-wrap .bubble-content{
 width:0;min-width:0;flex:1 1 0;display:block!important;
 padding:0!important;gap:0!important
}
.chat-bubble-wrap .bubble-name{margin:0 0 2px!important;line-height:1.3;min-height:0}
.chat-bubble-wrap .bubble,.chat-bubble-wrap.mine .bubble{
 font-size:14px!important;line-height:1.42!important;
 font-weight:450!important;min-height:0!important;
 white-space:pre-wrap;overflow-wrap:anywhere
}
.chat-bubble-wrap .bubble-meta{
 opacity:0;display:inline-flex!important;position:static!important;
 margin:2px 0 0!important;padding:0!important;font-size:10px
}
.chat-bubble-wrap .bubble-actions{
 margin:2px 0 0!important;padding:0!important;min-height:0;
 opacity:0;display:flex;flex-wrap:wrap
}
.chat-bubble-wrap:not(:hover):not(:focus-within) .bubble-actions:empty{display:none}
.chat-bubble-wrap:not(:hover):not(:focus-within) .bubble-meta{display:none!important}
.chat-bubble-wrap.message-grouped .bubble-meta{display:none}
.chat-bubble-wrap:hover .bubble-meta,.chat-bubble-wrap:focus-within .bubble-meta{display:inline-flex!important}
.chat-bubble-wrap:hover{background:var(--surface,#232734)50}
.chat-scroll>.chat-empty{min-height:100%;padding:45px 18px}
@media(max-width:760px){
 .chat-scroll,.piece-chat-history .chat-scroll{padding:10px 6px!important}
 .chat-scroll>.chat-bubble-wrap{padding:4px 5px!important;gap:8px!important}
 .chat-bubble-wrap .profile-face,.chat-bubble-wrap .profile-face .avatar{min-width:30px;width:30px;height:30px}
 .chat-bubble-wrap .bubble{font-size:13px!important}
}
/* Draggable navigation and info-panel separators. */
.screen{--tender-sidebar-width:270px;--tender-info-width:248px}
.screen>.sidebar{width:var(--tender-sidebar-width)!important;flex:0 0 var(--tender-sidebar-width)!important;min-width:210px;max-width:420px}
.screen>.info-panel{width:var(--tender-info-width)!important;flex:0 0 var(--tender-info-width)!important;min-width:190px;max-width:430px;transition:none!important}
.splitter{
 position:relative;flex:0 0 5px;cursor:col-resize;
 background:#0b0d13;z-index:8;touch-action:none;user-select:none;
 outline:0
}
.splitter:after{content:'';position:absolute;inset:0 1px;background:#252c3a;transition:background .15s}
.splitter:hover:after,.splitter:focus-visible:after,.splitter.dragging:after{background:var(--orange)}
.splitter:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}
.screen.info-hidden .splitter-info,.screen:not(.has-info) .splitter-info{display:none!important}
@media(max-width:1200px){.splitter-info{display:none!important}}
@media(max-width:760px){
 .screen>.sidebar{width:100%!important;max-width:none;flex:1!important;min-width:0}
 .splitter{display:none!important}
}
/* Discord-inspired settings, with Tender's own orange character. */
.settings-page{padding:0!important;background:var(--bg)!important}
.settings-layout{display:grid;grid-template-columns:210px minmax(0,1fr);height:100%;min-height:0}
.settings-navigation{
 padding:27px 10px 24px 18px;
 border-right:1px solid var(--stroke);background:var(--panel);
 display:flex;flex-direction:column;gap:3px;overflow:auto;min-width:0
}
.settings-nav-label{margin:8px 9px 12px;color:var(--muted);letter-spacing:.12em;font-size:10px;font-weight:900}
.settings-nav-item{
 border:0;display:flex;align-items:center;gap:13px;
 padding:12px 13px;border-radius:9px;color:var(--muted);
 background:transparent;text-align:left;font-size:13px;font-weight:700;
 transition:background .12s,color .12s;min-height:43px
}
.settings-nav-item .ico{opacity:.82}
.settings-nav-item:hover,.settings-nav-item:focus-visible{background:var(--surface2);color:var(--text)}
.settings-nav-item.active{background:color-mix(in srgb,var(--orange) 15%,var(--panel2));color:var(--text);box-shadow:inset 3px 0 var(--orange)}
.settings-content{min-width:0;overflow:auto;padding:35px clamp(20px,4.1vw,64px) 80px;max-height:100%;scrollbar-width:thin}
.settings-section-head{margin:0 0 23px}
.settings-section-head h1{font-size:clamp(24px,2.2vw,33px);letter-spacing:-.035em;font-weight:850;margin:6px 0 9px}
.settings-section-head p{font-size:13px;color:var(--muted);line-height:1.65}
.settings-card{
 background:var(--panel2);border:1px solid var(--stroke);border-radius:14px;
 padding:24px;margin:0 0 17px;box-shadow:0 6px 18px #0001;max-width:800px
}
.settings-card h3{font-size:16px;font-weight:800;margin:0 0 10px}
.settings-card>p,.settings-card-title p{font-size:12px;color:var(--muted);margin:0 0 15px;line-height:1.5}
.settings-card-title{margin-bottom:19px}
.settings-card-title h3{margin-bottom:5px}
.settings-profile-preview{margin-bottom:17px;max-width:800px;background:var(--panel2);border-radius:14px;border:1px solid var(--stroke);overflow:hidden}
.settings-profile-preview .profile-banner{margin:0!important;border:0;border-radius:0}
.settings-profile-preview .profile-banner .avatar{width:72px;height:72px;border-radius:50%}
.settings-preview-identity{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:46px 23px 18px}
.settings-preview-identity h2{font-size:20px;letter-spacing:-.03em}
.settings-preview-identity p{font-size:12px;color:var(--muted);margin-top:4px}
.settings-fields,.settings-card form{display:grid;gap:15px}
.settings-two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.settings-card .field{min-width:0}
.settings-card .field label{font-weight:750;font-size:12px;color:var(--text);display:flex;align-items:center;gap:7px}
.settings-card .input{background:var(--bg);border-color:var(--stroke);border-radius:8px}
.settings-card .input:focus{border-color:var(--orange);outline:2px solid color-mix(in srgb,var(--orange) 20%,transparent)}
.settings-card .textarea{min-height:105px;resize:vertical}
.settings-card .btn{justify-self:start}
.settings-card .hint{margin:5px 0 0;font-size:11px}
.field-caption{font-weight:450;color:var(--muted);font-size:11px}
.settings-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--stroke);padding-top:14px}
.settings-readonly{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--stroke);padding:15px 0;font-size:12px;align-items:center}
.settings-readonly span{color:var(--muted)}
.settings-readonly strong,.settings-readonly code{overflow-wrap:anywhere;text-align:right}
.account-identity{display:flex;align-items:center;gap:14px;padding-bottom:16px}
.account-identity .avatar{width:55px;height:55px;border-radius:15px}
.account-identity div{flex:1}
.account-identity p{font-size:12px;color:var(--muted)}
.settings-footer{max-width:800px;margin-top:25px;padding:15px 0;border-top:1px solid var(--stroke);font-size:11px;color:var(--muted)}
.shortcut-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--stroke);font-size:12px;color:var(--muted)}
kbd{display:inline-block;background:var(--surface);border:1px solid var(--stroke);border-bottom-width:2px;color:var(--text);border-radius:6px;padding:4px 8px;font-size:11px}
.settings-card .button-group{margin-top:12px}
.settings-card .profile-banner{overflow:visible}
.settings-content .appearance-studio{max-width:800px}
@media(max-width:900px){
 .settings-layout{grid-template-columns:170px minmax(0,1fr)}
 .settings-navigation{padding:15px 8px}
 .settings-nav-item{padding:9px}
 .settings-content{padding:25px 18px 60px}
}
@media(max-width:760px){
 .settings-layout{display:flex;flex-direction:column}
 .settings-navigation{flex:0 0 auto;display:flex;flex-direction:row;gap:5px;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:1px solid var(--stroke);padding:10px}
 .settings-nav-label{display:none}
 .settings-nav-item{white-space:nowrap;padding:8px 10px;min-height:38px}
 .settings-content{overflow:auto;flex:1;min-height:0;padding:20px 12px 110px}
 .settings-card{padding:17px}
 .settings-two-fields{grid-template-columns:1fr}
 .settings-preview-identity{padding:46px 15px 14px}
 .settings-preview-identity .btn{font-size:11px}
}

/* Tender's own decision dialogs: never fall back to window.confirm */
.tender-confirm{display:grid;gap:14px;justify-items:start}
.tender-confirm-icon{width:46px;height:46px;border-radius:14px;background:color-mix(in srgb,var(--orange) 15%,var(--surface));font-size:23px;display:grid;place-items:center}
.tender-confirm p{font-size:13px;color:var(--muted);line-height:1.65;max-width:460px}
.tender-confirm-actions{display:flex;gap:10px;justify-content:flex-end;width:100%;margin-top:13px}
.tender-confirm-actions .btn{min-width:105px}
.modal-panel:has(.tender-confirm){max-width:480px;border-radius:18px;box-shadow:0 28px 85px #000a}
.modal-panel:has(.tender-confirm) .modal-head{margin-bottom:5px}
.tender-dragging,.tender-dragging *{cursor:col-resize!important;user-select:none!important}
.info-resize-hint{padding:9px 11px;border-top:1px solid var(--stroke);font-size:10px;color:var(--muted);text-align:center}
.notification-settings .button-group{display:flex;flex-wrap:wrap;gap:9px}
.notification-settings .btn{min-width:0;max-width:100%}
.profile-pronouns{font-size:12px;color:var(--muted);padding:0 2px}
.profile-popout-head h2{margin-bottom:4px}
.profile-popout-body{gap:10px}
.profile-popout .profile-status{border:1px solid var(--stroke);background:var(--surface)}
@media(max-width:760px){
 .tender-confirm-actions{display:grid;grid-template-columns:1fr 1fr}
 .tender-confirm-actions .btn{min-width:0}
}

/* No invisible toolbars may take up message-row height. */
.chat-scroll>.chat-bubble-wrap .bubble-actions{
 display:none!important;position:absolute;z-index:11;right:18px;top:-12px;
 align-items:center;flex-wrap:nowrap;gap:4px;opacity:1!important;
 background:var(--panel2);border:1px solid var(--stroke);border-radius:9px;
 padding:4px 6px!important;margin:0!important;min-height:34px;
 box-shadow:0 8px 25px #0008;
}
.chat-scroll>.chat-bubble-wrap:hover .bubble-actions,
.chat-scroll>.chat-bubble-wrap:focus-within .bubble-actions,
.chat-scroll>.chat-bubble-wrap:focus .bubble-actions{display:flex!important}
.chat-scroll>.chat-bubble-wrap .bubble-meta{display:none!important}
.chat-scroll>.chat-bubble-wrap:hover .bubble-meta,
.chat-scroll>.chat-bubble-wrap:focus-within .bubble-meta{
 display:inline-flex!important;position:absolute!important;right:20px;
 top:calc(100% - 5px);z-index:3;background:var(--panel);padding:2px 6px!important;
 border-radius:5px;border:1px solid var(--stroke);white-space:nowrap
}
.chat-scroll>.chat-bubble-wrap{overflow:visible}
.chat-scroll>.chat-bubble-wrap:hover{background:color-mix(in srgb,var(--surface) 50%,transparent)}
.bubble-reactions{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 1px}
.bubble-reactions:empty{display:none}
.bubble-reactions .react-chip{border-radius:6px;padding:2px 8px;font-size:11px;min-height:23px}
.chat-scroll>.chat-bubble-wrap:focus-visible{outline:1px solid var(--orange);outline-offset:0}
@media(hover:none){
 .chat-scroll>.chat-bubble-wrap:focus .bubble-actions,
 .chat-scroll>.chat-bubble-wrap:focus-within .bubble-actions{display:flex!important}
 .chat-scroll>.chat-bubble-wrap .bubble-actions{top:-11px;right:4px;max-width:calc(100% - 4px);overflow-x:auto}
}


/* =======================================================
   Tender 0.3.3 · Reply Revival, Profiles & Piece Invites
   ======================================================= */

/* Replies: discoverable for mouse users and touch users, never
   obstruct the composer or trigger a full chat render. */
.composer-reply{
 display:flex;align-items:center;gap:11px;padding:10px 13px!important;margin-bottom:7px;
 background:var(--panel2)!important;border:1px solid var(--stroke);
 border-radius:9px;color:var(--text);min-height:52px
}
.composer-reply-bar{width:3px;flex:0 0 3px;align-self:stretch;background:var(--orange);border-radius:4px}
.composer-reply-content{flex:1;display:grid;gap:3px;min-width:0}
.composer-reply-content strong{font-size:11px;font-weight:850;color:var(--orange2)}
.composer-reply-content span{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer-reply .round-btn{width:28px;height:28px;flex-shrink:0;border:0;background:var(--surface);color:var(--text)}
.reply-quick-action{display:flex!important;align-items:center;gap:5px;color:var(--orange2)!important;padding:5px 8px!important;border-radius:6px!important;font-size:11px!important;font-weight:750}
.reply-quick-action:hover{background:color-mix(in srgb,var(--orange) 16%,var(--panel))}
.reply-ref{
 display:flex!important;align-items:center;gap:5px;max-width:min(490px,100%);width:max-content;
 background:color-mix(in srgb,var(--orange) 6%,var(--panel))!important;
 border:0!important;border-left:3px solid var(--orange)!important;border-radius:0 7px 7px 0;
 padding:5px 10px!important;margin:3px 0 6px;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;font-size:11px;color:var(--muted);cursor:pointer;text-align:left
}
.reply-ref strong{color:var(--orange2)}
.reply-ref:hover,.reply-ref:focus-visible{background:color-mix(in srgb,var(--orange) 13%,var(--panel))!important;outline:0}
.chat-bubble-wrap.reply-target-highlight{animation:tender-target-highlight 1.65s ease-out}
@keyframes tender-target-highlight{0%,40%{background:color-mix(in srgb,var(--orange) 24%,transparent)}100%{background:transparent}}
@media(hover:none){
 .chat-scroll>.chat-bubble-wrap .bubble-actions{display:flex!important;position:static!important;
   width:max-content;max-width:100%;box-shadow:none;min-height:30px!important;margin-top:4px!important;
   background:transparent;border:none;padding:0!important;opacity:.94!important;gap:3px}
 .reply-quick-action{padding:4px 7px!important}
}

/* Private DM panel: one person, not a fake server member list. */
.info-panel:has(.dm-profile-panel){background:#12151e}
.dm-profile-panel{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}
.dm-profile-cover{display:block;position:relative;border:0;background:none;width:100%;padding:0 0 27px;cursor:pointer;text-align:left}
.dm-profile-banner{
 background:linear-gradient(122deg,color-mix(in srgb,var(--orange) 32%,#161e35),#222c51 55%,#3a2c43);
 background-size:cover;background-position:center;width:100%;height:118px;border-bottom:1px solid #ffffff20
}
.dm-profile-avatar{position:absolute;bottom:2px;left:17px;border:5px solid #12151e;border-radius:50%;display:grid;place-items:center}
.dm-profile-avatar .avatar{width:65px;height:65px;border-radius:50%;font-size:25px}
.dm-profile-cover:hover .dm-profile-avatar{filter:brightness(1.1)}
.dm-profile-body{padding:14px 16px 25px;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.dm-profile-name{font-size:18px;font-weight:850;letter-spacing:-.02em;display:flex;align-items:center;justify-content:space-between;gap:6px;
 text-align:left;background:none;border:0;padding:0;color:var(--text);cursor:pointer;overflow-wrap:anywhere}
.dm-profile-name:hover{text-decoration:underline}
.dm-profile-name .ico{opacity:.6}
.dm-profile-handle{font-size:11px;color:var(--muted);margin-top:-6px}
.profile-presence{display:inline-flex;align-items:center;gap:6px;align-self:start;
 font-size:10px;font-weight:700;color:#b1dfb9;padding:4px 7px;border-radius:6px;background:#2c594033}
.profile-presence:before{content:'';height:7px;width:7px;border-radius:50%;background:#45d483}
.profile-presence.idle{color:#f2d2a0;background:#ffad5430}
.profile-presence.idle:before{background:#f6bb55}
.profile-presence.dnd{color:#f6aaa6;background:#fb666333}
.profile-presence.dnd:before{background:#f26d72}
.dm-profile-status,.profile-dialog-status{background:var(--surface);border:1px solid var(--stroke);border-radius:9px;padding:10px 11px;
 font-size:12px;color:var(--text);line-height:1.4;overflow-wrap:anywhere}
.dm-profile-actions{display:flex;gap:6px;flex-wrap:wrap;padding:5px 0 9px}
.dm-profile-about{border-top:1px solid var(--stroke);padding-top:13px;margin-top:1px}
.dm-profile-about h3,.profile-detail-section h3{font-size:10px;font-weight:850;letter-spacing:.095em;color:var(--muted);margin:0 0 9px}
.dm-profile-about p{font-size:12px;line-height:1.7;color:var(--text);overflow-wrap:anywhere;white-space:normal}
.dm-view-full{margin-top:5px;width:100%;justify-content:center;display:flex;gap:7px}
.profile-shared-pieces{display:grid;gap:5px;margin-top:8px}
.profile-piece-row{border:0;display:flex;align-items:center;gap:10px;border-radius:8px;padding:7px;
 background:var(--surface);width:100%;min-width:0;text-align:left;color:var(--text);cursor:pointer}
.profile-piece-row:hover,.profile-piece-row:focus-visible{background:var(--surface2);outline:1px solid var(--stroke)}
.profile-piece-row .piece-avatar{width:34px;height:34px;border-radius:11px;font-size:16px}
.profile-piece-row>span:nth-child(2){flex:1;min-width:0;display:grid;gap:2px}
.profile-piece-row strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-piece-row small{font-size:9px;color:var(--muted)}
.profile-piece-row>.ico{color:var(--muted)}
.profile-detail-count{display:inline-block;min-width:19px;text-align:center;background:var(--surface2);color:var(--text);
 font-size:10px;border-radius:8px;padding:2px 6px;margin-left:5px}
.profile-detail-empty{color:var(--muted);font-size:12px}

/* Full, genuinely populated profile dialog with an original Tender design. */
.modal-panel:has(.tender-profile-dialog){width:min(900px,calc(100vw - 24px))!important;max-width:900px;
 max-height:min(88dvh,780px);padding:0!important;border:1px solid #303746;background:#10131b;
 overflow:hidden;box-shadow:0 28px 115px #000b;border-radius:16px}
.modal-panel:has(.tender-profile-dialog)>.modal-head{display:flex;align-items:center;padding:10px 19px 10px 23px;
 margin:0!important;background:#151923;border-bottom:1px solid #2c3242;min-height:49px}
.modal-panel:has(.tender-profile-dialog)>.modal-head h2{font-size:12px}
.modal-panel:has(.tender-profile-dialog)>.modal-head p{display:none}
.tender-profile-dialog{display:grid;grid-template-columns:minmax(260px,40%) minmax(0,1fr);
 height:min(73dvh,645px);min-height:350px;overflow:hidden}
.profile-dialog-identity{min-width:0;display:flex;flex-direction:column;overflow:auto;background:#11141c;
 border-right:1px solid #2b3141}
.profile-dialog-banner{height:178px;flex:0 0 178px;background:linear-gradient(135deg,#4e3c69,#222c52 54%,#47332c);
 background-position:center;background-size:cover;position:relative;border-bottom:1px solid #ffffff10}
.profile-dialog-id{padding:0 23px 25px;position:relative;margin-top:-46px;display:flex;flex-direction:column;gap:15px;min-width:0}
.profile-dialog-avatar{width:max-content;border:5px solid #11141c;border-radius:50%;box-shadow:0 5px 20px #0007}
.profile-dialog-avatar .avatar{width:87px;height:87px;border-radius:50%;font-size:36px}
.profile-dialog-name-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between}
.profile-dialog-name-row h2{font-size:23px;letter-spacing:-.03em;overflow-wrap:anywhere}
.profile-dialog-name-row p{font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.profile-dialog-buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.profile-dialog-buttons .btn{display:inline-flex;align-items:center;gap:6px}
.profile-dialog-meta{display:grid;gap:6px;border-top:1px solid var(--stroke);padding-top:17px;margin-top:3px;
 color:var(--muted);font-size:10px;line-height:1.5}
.profile-dialog-content{display:flex;flex-direction:column;min-height:0;background:#191c25}
.profile-dialog-tabs{display:flex;flex-shrink:0;align-items:center;gap:20px;padding:19px 23px 0;
 border-bottom:1px solid var(--stroke);font-size:12px;color:var(--muted);font-weight:750}
.profile-dialog-tabs>span{padding:0 0 12px;white-space:nowrap}
.profile-dialog-tabs>.active{border-bottom:2px solid var(--orange2);color:var(--text)}
.profile-dialog-scroll{padding:21px 23px 35px;overflow:auto;min-height:0;scrollbar-width:thin;flex:1}
.profile-detail-section{padding:16px 17px;margin:0 0 12px;border:1px solid var(--stroke);border-radius:11px;
 background:#212630;display:grid;gap:2px;overflow-wrap:anywhere}
.profile-detail-section h3{margin:0 0 7px;color:#cbd0dd}
.profile-detail-section p,.profile-detail-about{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.profile-detail-section>.hint{color:var(--muted)}
.profile-detail-section .profile-shared-pieces{margin-top:1px}
.profile-detail-section .profile-piece-row{background:#2a303e}
.profile-detail-section .profile-piece-row:hover{background:#343d4e}
@media(max-width:730px){
 .modal-panel:has(.tender-profile-dialog){width:calc(100vw - 12px)!important;max-height:94dvh}
 .tender-profile-dialog{grid-template-columns:1fr;height:auto;min-height:0;max-height:calc(94dvh - 49px);overflow-y:auto}
 .profile-dialog-identity{overflow:visible;border-right:0}
 .profile-dialog-banner{height:104px;flex-basis:104px}
 .profile-dialog-id{margin-top:-31px;padding:0 15px 17px;gap:8px}
 .profile-dialog-avatar .avatar{height:64px;width:64px;font-size:25px}
 .profile-dialog-name-row h2{font-size:19px}
 .profile-dialog-content{overflow:visible;min-height:240px}
 .profile-dialog-tabs{padding:10px 15px 0}
 .profile-dialog-scroll{padding:14px;overflow:visible;min-height:0}
}

/* Rich public community invitation embeds, similar usefulness to Discord
   invite previews, with Tender's independent design & safety rules. */
.tender-piece-invite{display:block;width:min(400px,100%);border:1px solid #343b4d;border-radius:12px;
 background:#1a202b;overflow:hidden;margin:11px 0 6px;box-shadow:0 6px 19px #0004;color:var(--text);white-space:normal}
.invite-card-banner,.invite-card-gradient{width:100%;height:82px;object-fit:cover;display:block}
.invite-card-gradient{background:linear-gradient(125deg,color-mix(in srgb,var(--invite-color,#f47735) 55%,#1c2339),#222644 55%,#131823)}
.invite-card-body{padding:13px 16px 15px}
.invite-card-heading{font-size:9px;letter-spacing:.11em;font-weight:900;color:#b6bece;display:flex;align-items:center;gap:7px}
.invite-card-tag{margin-left:auto;font-size:9px;font-weight:750;color:#80dbac;border-radius:5px;background:#80dbac1c;padding:3px 6px}
.invite-card-community{display:flex;align-items:center;gap:12px;margin:12px 0;min-width:0}
.invite-card-icon{width:50px;height:50px;min-width:50px;border-radius:14px;font-size:25px;box-shadow:0 4px 13px #0005}
.invite-card-details{display:grid;gap:4px;min-width:0}
.invite-card-details strong{font-size:15px;line-height:1.25;color:var(--text);overflow-wrap:anywhere}
.invite-card-details>span{font-size:11px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
.invite-card-bottom{display:flex;align-items:center;gap:11px;justify-content:space-between;border-top:1px solid #ffffff12;padding-top:12px}
.invite-member-count{display:inline-flex;align-items:center;gap:6px;color:#b8c0cb;font-size:10px}
.invite-join{display:inline-flex;align-items:center;gap:5px;border-radius:7px!important;padding:7px 11px!important}
.invite-share-modal .invite-preview{width:100%;margin:5px 0 19px}
.invite-field-label{display:block;font-size:11px;font-weight:800;color:var(--muted);margin-bottom:7px}
.invite-share-modal .button-group{margin:10px 0}
.invite-picker-list{display:grid;gap:8px;max-height:360px;overflow:auto}
.invite-picker-item{display:flex;align-items:center;gap:10px;width:100%;padding:11px;background:var(--surface);border:1px solid var(--stroke);
 border-radius:10px;color:var(--text);text-align:left;cursor:pointer}
.invite-picker-item:hover{background:var(--surface2)}
.invite-picker-item .piece-avatar{height:37px;width:37px;font-size:20px}
.invite-picker-item>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.invite-picker-item strong{font-size:12px}
.invite-picker-item small{font-size:10px;color:var(--muted)}
@media(max-width:450px){
 .tender-piece-invite{width:100%}
 .invite-card-body{padding:11px}
 .invite-card-icon{width:43px;height:43px;min-width:43px}
 .invite-card-bottom{gap:5px}
 .invite-member-count{font-size:9px}
}

/* Friends profile page uses the same truthful data as full profile cards. */
.friend-profile-page{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);
 max-width:930px;gap:18px;margin:0 auto;padding:25px 24px 55px;min-height:0}
.friend-profile-primary{min-width:0;background:var(--panel2);border:1px solid var(--stroke);
 border-radius:15px;overflow:hidden;align-self:start;box-shadow:0 8px 24px #0002}
.friend-profile-cover{height:142px;background:linear-gradient(135deg,#554173,#282f52 55%,#42312b);background-size:cover;background-position:center}
.friend-profile-identity{padding:0 20px 23px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.friend-profile-avatar{padding:0;border:5px solid var(--panel2);background:none;border-radius:50%;margin-top:-40px;cursor:pointer}
.friend-profile-avatar .avatar{width:74px;height:74px;border-radius:50%;font-size:25px}
.friend-profile-avatar:hover{outline:2px solid var(--orange)}
.friend-profile-identity h1{font-size:24px;letter-spacing:-.03em;overflow-wrap:anywhere}
.friend-profile-identity>p{font-size:12px;color:var(--muted)}
.friend-profile-cta{margin-top:8px;display:flex;flex-wrap:wrap;gap:7px}
.friend-profile-secondary{min-width:0;display:grid;align-content:start;gap:10px}
.friend-profile-section-title{font-size:10px;letter-spacing:.11em;font-weight:800;color:var(--muted);padding:12px 0 4px}
.friend-profile-secondary .profile-detail-section{margin:0}
.friend-full-profile{justify-self:start;display:inline-flex;gap:8px;align-items:center;margin-top:9px}
@media(max-width:980px){.friend-profile-page{grid-template-columns:1fr;max-width:670px;padding:16px}}
@media(max-width:760px){.friend-profile-cover{height:105px}.friend-profile-identity{padding:0 15px 19px}}
