/* OWNER UX — make the pre-existing admin, beta roles and credits discoverable.
   No permissions changed. RBAC and RPC functions stay on Neon. */
.side{
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(127,191,212,.52) transparent;
  -webkit-overflow-scrolling:touch;
}
.side>.navgroup{flex:0 0 auto}
.side>.historybox{flex:1 0 148px;min-height:148px}
.side>.credit{flex:0 0 auto}
.side #ownerNav[hidden],.side .navbtn[hidden]{display:none!important}
.side #ownerNav:not([hidden]){
 border:1px solid rgba(133,226,215,.28);
 border-radius:15px;
 padding:10px 9px;
 margin:1px 0 3px;
 background:linear-gradient(135deg,rgba(49,136,154,.15),rgba(105,89,173,.12));
 flex:0 0 auto;
}
.side #ownerNav:not([hidden]) .navlabel{color:#bde7ea}
.side #adminBtn:not([hidden]){
 background:linear-gradient(105deg,rgba(73,159,173,.24),rgba(126,105,226,.20));
 border:1px solid rgba(128,224,217,.35);
 color:#f1fcff;
 font-weight:750;
}
.side #adminBtn:not([hidden]):hover{border-color:rgba(146,255,226,.8);background:rgba(71,170,166,.3)}
#adminModal .modal-card{
 width:min(96vw,940px);
 max-height:min(88dvh,940px);
 overflow-y:auto;
 overscroll-behavior-y:contain;
 scrollbar-width:thin;
 scrollbar-color:#507389 transparent;
}
#adminModal .nexus-admin-search{
 position:sticky;
 top:-1px;
 z-index:3;
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 gap:6px 12px;
 border:1px solid rgba(143,198,221,.25);
 border-radius:13px;
 padding:12px 13px;
 margin:13px 0;
 background:rgba(13,28,49,.97);
 backdrop-filter:blur(16px);
}
#adminModal .nexus-admin-search label{
 grid-column:1/-1;
 font-size:12px;font-weight:800;color:#c8e7f5;
}
#adminModal .nexus-admin-search input{
 margin:0;
 min-width:0;
 background:rgba(5,14,29,.8);
 border:1px solid rgba(135,188,211,.38);
 color:#f2faff;
 font-size:15px;
}
#adminModal .nexus-admin-search input:focus-visible{outline:2px solid #91f0df;outline-offset:1px}
#adminModal #adminUserSearchResult{align-self:center;font-size:11px;white-space:nowrap}
#adminModal #adminUsers{
 display:grid;
 gap:10px;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
 scrollbar-color:rgba(117,174,199,.52) transparent;
 max-height:min(49dvh,560px);
 padding-right:5px;
}
#adminModal .admin-user[hidden]{display:none!important}
#adminModal .admin-user{
 border-color:rgba(155,206,235,.2);
 background:linear-gradient(130deg,rgba(23,43,66,.9),rgba(13,24,43,.96));
}
#adminModal .admin-user .admin-actions{gap:8px}
#adminModal .admin-user .admin-actions button{min-height:35px}
@media(max-width:820px){
 .side{overflow-y:auto}
 #adminModal .modal-card{padding:16px;width:100%;max-height:calc(100dvh - 20px)}
 #adminModal #adminUsers{max-height:44dvh}
 #adminModal .nexus-admin-search{grid-template-columns:1fr}
 #adminModal .nexus-admin-search input,#adminModal .nexus-admin-search #adminUserSearchResult{grid-column:1/-1}
}

/* After sign-in, show the actual composer/workspace instead of a second fake chat. */
body.nexus-authenticated #intro .aether-showcase,
body.nexus-authenticated #intro .aether-section-heading{display:none!important}
body.nexus-authenticated #intro{padding-top:18px;padding-bottom:12px}
body.nexus-authenticated #intro .aether-hero{
 grid-template-columns:minmax(0,1fr);
 gap:0;
 min-height:0;
 width:min(100%,900px);
 margin:0 auto;
}
body.nexus-authenticated #intro .aether-story{text-align:center}
body.nexus-authenticated #intro .aether-story h1{
 font-size:clamp(29px,3.3vw,49px);
 line-height:1.13;
 max-width:880px;
 margin:13px auto;
}
body.nexus-authenticated #intro .aether-story h1 .aether-gradient{display:inline}
body.nexus-authenticated #intro .aether-story>p{
 max-width:680px;
 margin:0 auto 12px;
 font-size:13px;
 line-height:1.55;
}
body.nexus-authenticated #intro .aether-eyebrow{font-size:9px}
body.nexus-authenticated #intro .aether-actions,
body.nexus-authenticated #intro .aether-pledges{display:none}
body.nexus-authenticated #intro .quick{
 grid-template-columns:repeat(4,minmax(0,1fr));
 max-width:900px;
 gap:9px;
 margin-top:17px;
}
body.nexus-authenticated #intro .quick button{
 min-height:62px;
 padding:12px 31px 12px 12px;
 font-size:11px;
}
body.nexus-authenticated #intro .aether-footer-note{
 margin-top:8px;
 justify-content:center;
}
@media(max-width:1100px){
 body.nexus-authenticated #intro .quick{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 body.nexus-authenticated #intro .aether-story h1{font-size:clamp(26px,8vw,35px);margin:10px auto}
 body.nexus-authenticated #intro .aether-story>p{font-size:12px}
 body.nexus-authenticated #intro .quick{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 body.nexus-authenticated #intro .quick button{min-height:66px;padding:9px 20px 9px 8px;font-size:10px}
 body.nexus-authenticated #intro .aether-footer-note{font-size:8px;gap:5px}
}

/* Owner admin action feedback: values shown here are read back from server. */
#adminModal .nexus-admin-action-feedback{
 margin:10px 0;
 padding:12px 14px;
 border-radius:12px;
 font-size:12px;
 line-height:1.5;
 background:rgba(21,53,68,.88);
 border:1px solid rgba(121,209,217,.35);
 color:#cceef2;
}
#adminModal .nexus-admin-action-feedback[hidden]{display:none!important}
#adminModal .nexus-admin-action-feedback[data-kind="success"]{
 border-color:rgba(108,230,188,.52);
 background:rgba(20,64,56,.88);
 color:#bdffe2;
}
#adminModal .nexus-admin-action-feedback[data-kind="warning"]{
 border-color:rgba(230,186,102,.55);
 background:rgba(71,52,25,.89);
 color:#ffe5b8;
}
#adminModal .nexus-admin-action-feedback[data-kind="error"]{
 border-color:rgba(237,145,150,.53);
 background:rgba(74,30,41,.9);
 color:#ffd6dc;
}
#adminModal .admin-user button:disabled{cursor:wait;opacity:.55}
#adminModal .admin-user .admin-actions button:not(:disabled){min-width:130px}
