/* hySocial 2026 — responsive V16 Blackhole Chroma surface polish.
   Inspired by composable tool chips, prompt bars, and glass-card systems.
   Scoped: only hySocial shell, matching, settings, and persistent assistant.
   A later stylesheet overrides conflicting legacy selectors without deleting them. */
:root{
 --hsp-edge:rgba(88,201,247,.21);
 --hsp-surface:rgba(10,19,36,.86);
 --hsp-raised:linear-gradient(145deg,rgba(16,31,55,.97),rgba(19,16,42,.94));
 --hsp-accent:#35dcf4;--hsp-purple:#b56aff;
 --hsp-ring:linear-gradient(118deg,#35e6f4,#4b8dff 48%,#bc5dff 85%,#ff6dc7);
 --hsp-shadow:0 18px 48px rgba(0,0,0,.25),0 0 22px rgba(48,207,246,.06);
}
@keyframes hsp-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes hsp-aurora{0%,100%{transform:translate3d(-1%,-2%,0);opacity:.5}50%{transform:translate3d(2%,2%,0);opacity:.9}}
body[data-hysocial-page="hysocial"] .hs-sidebar{background:linear-gradient(185deg,rgba(7,15,32,.99),rgba(18,13,37,.98))!important;border-right:1px solid var(--hsp-edge)}
body[data-hysocial-page="hysocial"] .hs-sidebar-header{padding-top:19px}
body[data-hysocial-page="hysocial"] .hs-sidebar-header h1{font-size:22px;letter-spacing:-.035em;font-weight:900}
body[data-hysocial-page="hysocial"] .hs-main{background:radial-gradient(ellipse at 30% 0%,rgba(36,112,178,.055),transparent 58%)}
body[data-hysocial-page="hysocial"] .hs-tab[data-tab].active{background:linear-gradient(110deg,rgba(39,204,233,.18),rgba(139,65,238,.14))!important;box-shadow:inset 3px 0 #3de2f7,0 0 18px rgba(77,164,233,.07);border-radius:13px}
body[data-hysocial-page="hysocial"] :is(.hs-compose,.hs-post,.hs-feed-filter-card){
 background:var(--hsp-raised);border:1px solid var(--hsp-edge);
 box-shadow:var(--hsp-shadow);border-radius:19px;overflow:visible;
}
body[data-hysocial-page="hysocial"] .hs-compose :is(input,textarea){
 border-radius:13px;background:rgba(4,10,23,.72);border:1px solid rgba(104,145,204,.26)
}
body[data-hysocial-page="hysocial"] .hs-compose :is(input,textarea):focus{border-color:var(--hsp-accent);box-shadow:0 0 0 3px rgba(53,220,244,.11)}
body[data-hysocial-page="hysocial"] :is(.hs-post-btn,.hs-primary-btn){
 border-radius:12px;background:linear-gradient(110deg,#26ddeb,#6398ff 65%,#b26cf1)!important;color:#06182a!important;
 box-shadow:0 6px 22px rgba(50,186,238,.16)
}
body[data-hysocial-page="hysocial"] :is(.hs-filter-pill,.hs-menu-pill,.hs-filter-btn){border-radius:13px;min-height:38px}
body[data-hysocial-page="hysocial"] :is(.hs-post,.hs-compose):hover{border-color:rgba(99,202,249,.36)}
body[data-hysocial-page="hysocial"] .hs-workspace-header{border-bottom:1px solid var(--hsp-edge);background:linear-gradient(90deg,rgba(9,19,36,.96),rgba(25,17,45,.97));backdrop-filter:blur(24px)}
body[data-hysocial-page="hysocial"] #hs-workspace-frame{display:block;max-width:100%;min-width:0;border:0;background:#071020}
body[data-hysocial-page="hysocial"] #hs-workspace-panel{min-width:0}
/* hyMatch: full-width embedding without double-scroll, responsive controls */
body[data-hysocial-page="hysocial-dating"]{--hs-bg:#070c19;--hs-surface:#101d34;--hs-card:#0c172b;--hs-border:rgba(95,172,232,.24);--hs-text:#edf6ff;--hs-muted:#9eb3d0;--hs-pink:#ed64d0;--hs-purple:#ae7bff;--hs-accent:#42d8f3;background:var(--hs-bg)}
body[data-hysocial-page="hysocial-dating"] .hm-app{width:100%!important;max-width:none!important;min-height:0!important;height:100dvh!important;margin:0!important}
body[data-hysocial-page="hysocial-dating"] .hm-content{min-width:0;min-height:0}
body[data-hysocial-page="hysocial-dating"] .hm-panel{max-width:100%;min-width:0;min-height:0;scrollbar-width:thin;scrollbar-color:rgba(139,110,234,.4) transparent}
body[data-hysocial-page="hysocial-dating"] .hm-panel.active{animation:hsp-appear .24s ease}
body[data-hysocial-page="hysocial-dating"] .hm-tabbar{flex-shrink:0;background:linear-gradient(165deg,#081728,#1b1232);border-color:var(--hsp-edge);gap:7px}
body[data-hysocial-page="hysocial-dating"] .hm-tab{border-radius:13px;min-width:0;min-height:48px}
body[data-hysocial-page="hysocial-dating"] .hm-tab.active{background:linear-gradient(135deg,rgba(36,218,235,.19),rgba(194,70,246,.16));box-shadow:inset 3px 0 #39d8f1}
body[data-hysocial-page="hysocial-dating"] :is(.discover-empty,.hon-card,.match-card,.profile-section,.safety-card){
 border-radius:18px;box-shadow:0 16px 40px rgba(0,0,0,.22);
}
body[data-hysocial-page="hysocial-dating"] .discover-empty{min-height:240px;width:min(100%,540px);margin:auto;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px 20px;gap:14px}
body[data-hysocial-page="hysocial-dating"] .discover-empty[style*="display:none"]{display:none!important}
body[data-hysocial-page="hysocial-dating"] .discover-empty p{max-width:390px;line-height:1.55}
body[data-hysocial-page="hysocial-dating"] .discover-stack{max-width:min(100%,480px);height:min(70dvh,620px)}
body[data-hysocial-page="hysocial-dating"] .hon-card{max-width:min(100%,500px)}
body[data-hysocial-page="hysocial-dating"] .profile-save-btn{background:linear-gradient(110deg,#21dcea,#8c66ff 75%,#d85df2)}
body[data-hysocial-page="hysocial-dating"] .filters-panel{width:min(400px,100vw);max-width:100vw}
body[data-hysocial-page="hysocial-dating"] .hm-header{background:rgba(9,15,30,.92)}
@media(min-width:1050px){
 body[data-hysocial-page="hysocial-dating"] .hm-tabbar{width:112px}
 body[data-hysocial-page="hysocial-dating"] .hm-panel{padding:26px clamp(20px,3vw,55px)}
 body[data-hysocial-page="hysocial-dating"] .discover-empty{min-height:390px}
}
@media(min-width:769px) and (max-width:1049px){
 body[data-hysocial-page="hysocial-dating"] .hm-tabbar{width:72px}
 body[data-hysocial-page="hysocial-dating"] .hm-tab{padding:12px 4px;font-size:11px}
}
@media(max-width:768px){
 body[data-hysocial-page="hysocial-dating"] .hm-app{flex-direction:column;padding-top:52px}
 body[data-hysocial-page="hysocial-dating"] .hm-header{display:flex}
 body[data-hysocial-page="hysocial-dating"] .hm-panel{padding:14px 12px calc(100px + env(safe-area-inset-bottom))}
 body[data-hysocial-page="hysocial-dating"] .hm-tabbar{position:absolute;bottom:0;left:0;right:0;width:100%;z-index:101;display:flex;flex-direction:row;padding:5px;justify-content:space-around;gap:2px}
 body[data-hysocial-page="hysocial-dating"] .hm-tab{flex:1;padding:5px 2px;min-width:0}
 body[data-hysocial-page="hysocial-dating"] .discover-stack{height:min(59dvh,510px)}
}
@media(max-width:390px){
 body[data-hysocial-page="hysocial-dating"] .discover-empty{padding:18px 12px}
 body[data-hysocial-page="hysocial-dating"] .discover-stack{height:min(53dvh,430px)}
 body[data-hysocial-page="hysocial-dating"] .hm-panel{padding:9px 9px 100px}
}
/* Personal settings: native form controls and BeautifulUI-style context sections */
body[data-hysocial-page="hysocial-settings"]{--hs-bg:#07101f;--hs-glass:rgba(13,24,44,.92);--hs-glass-border:rgba(96,161,223,.22);--hs-text:#eff6ff;--hs-muted:#a0b2cd;background:radial-gradient(ellipse at 75% 0%,rgba(112,70,211,.11),transparent 55%),#07101f}
body[data-hysocial-page="hysocial-settings"] .hs-topbar{background:rgba(7,13,29,.9);border-bottom:1px solid var(--hsp-edge);backdrop-filter:blur(22px)}
body[data-hysocial-page="hysocial-settings"] .hs-sectnav{gap:8px;scrollbar-width:none;padding-bottom:15px}
body[data-hysocial-page="hysocial-settings"] .hs-sectnav button{min-height:42px;border-radius:12px;background:rgba(16,29,51,.83);border:1px solid rgba(102,157,223,.23);color:#b9cae5}
body[data-hysocial-page="hysocial-settings"] .hs-sectnav button.active{background:linear-gradient(116deg,rgba(48,220,236,.19),rgba(165,97,245,.2));border-color:rgba(62,218,244,.5);color:#effbff}
body[data-hysocial-page="hysocial-settings"] .hs-wrap{max-width:910px;display:grid;gap:16px;padding-bottom:120px}
body[data-hysocial-page="hysocial-settings"] .glass-card{background:linear-gradient(145deg,rgba(12,24,44,.96),rgba(23,18,43,.94));border:1px solid var(--hsp-edge);border-radius:19px;padding:clamp(16px,2.5vw,27px);margin:0;box-shadow:var(--hsp-shadow);min-width:0}
body[data-hysocial-page="hysocial-settings"] .glass-card h3{font-size:16px;letter-spacing:-.01em;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid rgba(116,155,220,.16)}
body[data-hysocial-page="hysocial-settings"] .settings-row{gap:18px;padding:14px 0;align-items:center}
body[data-hysocial-page="hysocial-settings"] .settings-label{font-size:13px;color:#eff9ff}
body[data-hysocial-page="hysocial-settings"] .settings-desc,body[data-hysocial-page="hysocial-settings"] .card-sub{line-height:1.55;color:#a2b5cf}
body[data-hysocial-page="hysocial-settings"] :is(.settings-input,.settings-select,input[type="text"],input[type="email"]){background:rgba(5,12,25,.8);border:1px solid rgba(102,162,228,.27);border-radius:11px;color:#e8f4ff;max-width:100%}
body[data-hysocial-page="hysocial-settings"] :is(.settings-input,.settings-select):focus{outline:2px solid #42d8f2;outline-offset:1px}
body[data-hysocial-page="hysocial-settings"] .toggle{background:#34435c}
body[data-hysocial-page="hysocial-settings"] .toggle.on{background:linear-gradient(100deg,#20cfde,#9470f7)}
body[data-hysocial-page="hysocial-settings"] .hs-topbar .save-btn{background:linear-gradient(110deg,#25d8e6,#6497ff);border-radius:11px;color:#08182a}
body[data-hysocial-page="hysocial-settings"] .danger-zone{border-color:rgba(240,91,135,.25)}
body[data-hysocial-page="hysocial-settings"] .danger-zone h3{color:#ffafc5}
@media(max-width:650px){
 body[data-hysocial-page="hysocial-settings"] .hs-wrap{padding:6px 10px 110px;gap:10px}
 body[data-hysocial-page="hysocial-settings"] .glass-card{padding:16px}
 body[data-hysocial-page="hysocial-settings"] .settings-row{flex-wrap:wrap}
 body[data-hysocial-page="hysocial-settings"] .settings-row .row-text{flex:1 1 195px}
 body[data-hysocial-page="hysocial-settings"] .settings-input{min-width:0;width:min(100%,270px)}
}
/* Hypatia compact assistant — clearer AI-native composer, tool chips, readable content */
#hy-escort-panel{border:1px solid rgba(100,193,250,.33);border-radius:21px;background:linear-gradient(150deg,rgba(8,16,32,.98),rgba(22,17,43,.98));box-shadow:0 28px 90px #000b,0 0 32px rgba(82,131,236,.12)}
#hy-escort-panel header{background:linear-gradient(120deg,rgba(18,47,64,.54),rgba(48,28,77,.5));padding:10px;gap:7px;min-height:65px}
#hy-escort-panel header strong{font-weight:870;letter-spacing:-.02em;font-size:15px}
#hy-escort-panel :is(#hy-escort-rich-toggle,#hy-escort-voice-toggle,#hy-escort-global-settings,#hy-escort-minimize){font-size:11px;min-height:38px;border-radius:11px;background:rgba(15,28,50,.9);border:1px solid rgba(94,176,240,.25);color:#dbedff;padding:6px 9px}
#hy-escort-voice-toggle{background:linear-gradient(120deg,rgba(32,222,219,.18),rgba(164,90,248,.19))!important;border-color:rgba(70,224,234,.37)!important;min-width:53px}
#hy-escort-panel #hy-escort-context{font-size:10px;color:#aac5de}
#hy-escort-panel #hy-escort-log{background:radial-gradient(ellipse at 70% 6%,rgba(100,65,194,.065),transparent 60%);gap:9px;padding:14px}
#hy-escort-panel .hy-escort-message{font-size:12px;line-height:1.6;padding:11px 12px;max-width:93%;border-radius:15px}
#hy-escort-panel .hy-escort-message.bot{background:linear-gradient(125deg,rgba(24,43,67,.85),rgba(27,29,55,.89));border:1px solid rgba(100,154,223,.26)}
#hy-escort-panel .hy-escort-message.user{background:linear-gradient(125deg,rgba(47,193,214,.23),rgba(95,80,211,.25));border:1px solid rgba(65,221,241,.26)}
#hy-escort-panel .hy-escort-quick{padding:8px 11px;gap:6px;flex-wrap:wrap}
#hy-escort-panel .hy-escort-quick button{border-radius:99px;background:rgba(28,46,71,.65);border:1px solid rgba(99,169,234,.29);color:#bfdff3;padding:7px 12px}
#hy-escort-panel .hy-escort-quick button:hover{border-color:#43daf3;background:rgba(48,172,218,.13)}
#hy-escort-panel #hy-escort-form{padding:11px;gap:7px;background:linear-gradient(90deg,rgba(12,28,49,.75),rgba(27,22,47,.75))}
#hy-escort-panel #hy-escort-input{background:rgba(3,10,25,.94);border:1px solid rgba(101,166,231,.33);border-radius:13px;font-size:13px;padding:12px;min-height:46px}
#hy-escort-panel #hy-escort-input:focus{border-color:#3de0f5;box-shadow:0 0 0 3px rgba(61,224,245,.12)}
#hy-escort-panel #hy-escort-form button{min-height:44px;min-width:44px;border-radius:12px}
#hy-escort-panel #hy-escort-form button[type="submit"]{background:linear-gradient(125deg,#21cfe5,#8b74fa);color:#06162b;border:0;font-size:18px}
#hy-escort-panel #hy-escort-rich-wrap .hy-escort-rich-tools{background:rgba(8,21,39,.7);border-bottom:1px solid var(--hsp-edge)}
#hy-escort-panel #hy-escort-rich-wrap .hy-escort-rich-tools button{border-radius:12px}
@media(max-width:420px){
 #hy-escort-panel header{gap:5px;padding:8px}
 #hy-escort-panel header strong{font-size:13px}
 #hy-escort-panel #hy-escort-rich-toggle{font-size:9px;max-width:77px}
 #hy-escort-panel #hy-escort-global-settings{min-width:36px}
 #hy-escort-panel #hy-escort-form{padding:7px}
 #hy-escort-panel .hy-escort-quick button{font-size:10px}
}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"]{--hs-bg:#f2f5fb;--hs-text:#142540;--hs-muted:#5f708a;background:#f2f5fb}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] .glass-card{background:linear-gradient(145deg,#fff,#f6f7fd);border-color:rgba(63,107,170,.24)}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] .glass-card :is(h3,.settings-label){color:#19334e}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] :is(.settings-desc,.card-sub){color:#536e88}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] :is(.settings-input,.settings-select){background:#f9fbff;color:#173047}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] .hs-sectnav button{background:#fff;color:#29476c}
@media(prefers-reduced-motion:reduce){
 body[data-hysocial-page="hysocial-dating"] .hm-panel.active{animation:none}
}

/* Consent panels: contextual option cards inspired by Beautiful UI;
   no preference defaults or consent semantics changed. */
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>h2{
 color:var(--hs-text,#f4f7ff);font-size:19px;line-height:1.3;letter-spacing:-.025em;
 margin:0 0 12px;display:flex;align-items:center;gap:10px
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>h2:before{
 content:"";width:4px;height:24px;border-radius:9px;background:linear-gradient(#3ee3f5,#a46df2)
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p:not(:has(label)){
 font-size:12px;line-height:1.75;color:#b1c0d5;padding:0 0 11px;max-width:76ch
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p:has(>label){
 margin:7px 0;max-width:100%;border:1px solid rgba(100,157,215,.18);
 background:rgba(13,28,51,.54);border-radius:13px;padding:0;overflow:hidden;
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p>label{
 display:flex;align-items:center;gap:12px;padding:11px 13px;line-height:1.55;flex-wrap:wrap;
 font-size:12px;color:#d5e4f7;cursor:pointer;
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p>label:has(input[type=checkbox]){
 min-height:46px;flex-wrap:nowrap
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing) input[type=checkbox]{
 appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;border-radius:7px;
 border:1px solid rgba(147,178,228,.5);background:rgba(3,11,25,.87);margin:0;position:relative;cursor:pointer
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing) input[type=checkbox]:checked{
 background:linear-gradient(120deg,#23ccda,#a071ed);border-color:#62e6ff
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing) input[type=checkbox]:checked:after{
 content:"";position:absolute;top:3px;left:6px;width:5px;height:9px;transform:rotate(45deg);
 border-right:2px solid #071426;border-bottom:2px solid #071426
}
body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset{
 border:1px solid rgba(94,163,225,.24);border-radius:14px;padding:13px;display:flex;
 flex-wrap:wrap;gap:8px;margin-top:12px;background:rgba(6,13,28,.3)
}
body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset legend{
 color:#b9dbec;font-size:12px;font-weight:750;padding:0 6px
}
body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset label{
 display:flex;align-items:center;gap:8px;min-height:38px;border-radius:10px;
 border:1px solid rgba(102,160,232,.18);background:rgba(19,35,57,.55);padding:7px 12px;
 color:#cbdaf0;font-size:12px;cursor:pointer
}
body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset label:has(input:checked){
 border-color:rgba(51,219,231,.5);background:rgba(35,189,216,.12)
}
body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing) :is(select,input:not([type=checkbox])){
 min-height:40px;min-width:0;max-width:100%;padding:8px 11px;border-radius:10px;
 border:1px solid rgba(104,160,224,.33);background:#0a1428;color:#e9f4ff
}
body[data-hysocial-page="hysocial-settings"] #nm-save{
 width:100%;margin-top:12px;border-radius:13px!important;min-height:47px!important;
 background:linear-gradient(110deg,#20d8e7,#7388ff)!important;color:#061426!important;
 font-weight:850!important
}
@media(max-width:600px){
 body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p>label{gap:9px;padding:9px}
 body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset{padding:8px;gap:6px}
}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p:has(>label),
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset{
 background:#f6f9ff;border-color:#d8e3f2
}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p>label{
 color:#25415e
}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] :is(#sec-ads,#sec-network-marketing)>p:not(:has(label)){
 color:#537089
}
html[data-mode="light"] body[data-hysocial-page="hysocial-settings"] #sec-ads fieldset label{
 background:#fff;color:#24425d
}
