/* Río — la experiencia de pantalla única de n0w */

/* ── Puerta de hierro ── */
.gate{
  position:fixed;inset:0;z-index:300;
  display:flex;align-items:center;justify-content:center;
}
.gate.hidden{display:none}
.gate-backdrop{
  position:absolute;inset:0;
  background:rgba(250,250,248,.97);
  backdrop-filter:blur(10px);
}
.gate-card{
  position:relative;z-index:1;
  width:min(92%,420px);padding:40px 32px 28px;
  border:1px solid #111;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.14);
  text-align:center;
  animation:gateIn .38s ease;
}
@keyframes gateIn{from{opacity:0;transform:translateY(18px) scale(.97)}}
.gate-name{
  font:700 2.4rem var(--serif,"Fraunces",serif);
  color:#252b26;
  letter-spacing:-.05em;
}
.gate-sub{
  margin:6px 0 24px;
  color:#646460;
  font-size:.76rem;
  line-height:1.45;
}
.gate-options{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.gate-option{
  display:flex;align-items:center;gap:14px;
  width:100%;padding:16px 18px;
  border:1px solid rgba(9,9,9,.18);
  border-radius:24px;
  color:#111;
  background:#fff;
  cursor:pointer;
  text-align:left;
  transition:background .15s,box-shadow .15s;
}
.gate-option:hover{background:#f4f4f2;border-color:#111;box-shadow:0 6px 20px rgba(0,0,0,.07)}
.gate-option-icon{
  width:40px;height:40px;flex:0 0 auto;
  display:grid;place-items:center;
  border-radius:50%;
  background:#111;
  font-size:1.2rem;
  color:#fff;
}
.gate-option-title{
  display:block;
  font:650 .83rem var(--sans,"Inter",sans-serif);
  color:#111;
}
.gate-option-desc{
  display:block;
  margin-top:2px;
  color:#6d6d68;
  font-size:.63rem;
  line-height:1.3;
}
.gate-remember{
  margin-top:18px;padding:10px 16px;
  border:0;border-radius:999px;
  color:#777b73;
  background:transparent;
  cursor:pointer;
  font-size:.66rem;
  transition:color .15s,background .15s;
}
.gate-remember:hover{color:#111;background:#f1f1ee}
.gate-remember.saved{color:#111;background:#ededeb}
.gate-option[aria-pressed="true"]{background:#111;border-color:#111;color:#fff}
.gate-option[aria-pressed="true"] .gate-option-icon{background:#fff;color:#111}
.gate-option[aria-pressed="true"] .gate-option-title,
.gate-option[aria-pressed="true"] .gate-option-desc{color:#fff}

/* ── Spatial Globe UI (n0w / Rí0) ── */

body.rio-mode{
  overflow:hidden;
  background:#fff;
}
body.rio-mode #app{
  visibility:hidden;
}
body.rio-mode #app .overlay,
body.rio-mode #app .block-viewer,
body.rio-mode #app .block-library-overlay,
body.rio-mode #app .ai-panel,
body.rio-mode #app .gate,
body.rio-mode #app .onboarding-overlay,
body.rio-mode #app .signal-panel,
body.rio-mode #app .rio-composer,
body.rio-mode #app .block-viewer,
body.rio-mode #app .bv-card,
body.rio-mode #app .nda-overlay{
  visibility:visible;
}
body.rio-mode #splashScreen,
body.rio-mode #splashScreen.hidden{
  display:none!important;
}
body.rio-mode .sys-badge,
body.rio-mode #topBar,
body.rio-mode .mode-row,
body.rio-mode #hlAmbient,
body.rio-mode #hlBubble,
body.rio-mode #hlChat,
body.rio-mode #addFabWrap,
body.rio-mode #sidebarToggle,
body.rio-mode #sidebarDrawer,
body.rio-mode #sidebarOverlay{
  display:none!important;
}

/* ── viewStream: full viewport overlay ──
   Uses .rio-active class directly on viewStream (set by JS)
   so it works regardless of body.rio-mode timing.          ── */
#viewStream.rio-active,
body.rio-mode #viewStream{
  display:block!important;
  position:fixed!important;
  inset:0!important;
  z-index:10;
  overflow:hidden;
  background:#0a0b0a!important;
  width:100%;height:100%;
  max-width:none!important;
  margin:0!important;
  padding-bottom:0!important;
  animation:none!important;
}

.rio-globe-container{
  position:absolute!important;
  inset:0!important;
  z-index:1;
}

.rio-locate{
  position:absolute;left:20px;bottom:96px;z-index:15;
  display:flex;align-items:center;gap:7px;padding:9px 12px;
  border:1px solid rgba(255,255,255,.2);border-radius:999px;
  color:rgba(255,255,255,.88);background:rgba(15,18,16,.72);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  font:500 .68rem var(--sans,"Inter",sans-serif);cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.2);transition:background .2s,transform .2s;
}
.rio-locate svg{width:17px;height:17px;flex:none}
.rio-locate:hover{background:rgba(255,255,255,.16)}
.rio-locate:active{transform:scale(.97)}
.rio-locate.is-locating svg{animation:rioLocatePulse 1s ease-in-out infinite}
@keyframes rioLocatePulse{50%{opacity:.35;transform:scale(.8)}}


.rio-backdrop{
  position:absolute;inset:0;
  z-index:20;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}
.rio-backdrop.visible{opacity:1;pointer-events:auto}

.rio-top{
  position:absolute;top:0;left:0;right:0;
  z-index:15;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px;
  background:linear-gradient(180deg,rgba(0,0,0,.4) 0%,transparent 100%);
  pointer-events:none;
}
.rio-top > *{pointer-events:auto}
.rio-top-left{
  display:flex;align-items:center;gap:8px;
}
.rio-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:#6b8f6b;
  box-shadow:0 0 8px rgba(107,143,107,.5);
  animation:rioPulse 2s ease-in-out infinite;
}
@keyframes rioPulse{0%,100%{opacity:1}50%{opacity:.4}}
.rio-title{
  font:700 1.1rem var(--serif,"Fraunces",serif);
  color:#eee;
  letter-spacing:-.02em;
}
.rio-subtitle{
  font:400 .7rem var(--sans,"Inter",sans-serif);
  color:rgba(255,255,255,.5);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rio-top-right{
  display:flex;align-items:center;gap:8px;
}
.rio-chip{
  padding:6px 14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  color:rgba(255,255,255,.8);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  cursor:pointer;
  font:500 .72rem var(--sans,"Inter",sans-serif);
  transition:background .2s;
}
.rio-chip:hover{background:rgba(255,255,255,.16)}
.rio-chip:active{background:rgba(255,255,255,.1);transform:scale(.97)}

.rio-panel{
  position:absolute;top:70px;bottom:90px;left:16px;
  z-index:25;
  width:min(calc(100vw - 32px),420px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  background:rgba(22,24,22,.75);
  backdrop-filter:blur(30px);
  -webkit-backdrop-filter:blur(30px);
  box-shadow:0 20px 60px rgba(0,0,0,.4);
  display:flex;flex-direction:column;
  transform:translateY(12px);
  opacity:0;
  transition:transform .3s ease,opacity .3s ease;
  pointer-events:none;
}
.rio-panel.visible{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.rio-panel-header{
  display:flex;align-items:center;gap:6px;
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.rio-panel-back,
.rio-panel-close{
  width:32px;height:32px;
  display:grid;place-items:center;
  border:0;border-radius:50%;
  color:rgba(255,255,255,.6);
  background:rgba(255,255,255,.06);
  cursor:pointer;
  transition:background .15s;
}
.rio-panel-back:hover,
.rio-panel-close:hover{background:rgba(255,255,255,.14)}
.rio-panel-back svg,
.rio-panel-close svg{width:18px;height:18px}
.rio-panel-back.hidden{display:none}
#rioPanelTitle{
  flex:1;
  font:600 .85rem var(--sans,"Inter",sans-serif);
  color:rgba(255,255,255,.9);
}
.rio-panel-body{
  flex:1;overflow-y:auto;
  padding:12px 18px 20px;
  position:relative;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.1) transparent;
}

.rio-io-panel{
  position:absolute;top:0;right:0;bottom:0;
  z-index:26;
  width:min(calc(100vw - 32px),380px);
  border-left:1px solid rgba(255,255,255,.08);
  background:rgba(16,18,16,.85);
  backdrop-filter:blur(30px);
  -webkit-backdrop-filter:blur(30px);
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .35s cubic-bezier(.16,1,.3,1),opacity .35s ease;
  opacity:0;
  pointer-events:none;
}
.rio-io-panel.visible{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}
.rio-io-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:rgba(255,255,255,.9);
  font:600 .85rem var(--sans,"Inter",sans-serif);
}
.rio-io-header button{
  width:32px;height:32px;
  display:grid;place-items:center;
  border:0;border-radius:50%;
  color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.06);
  cursor:pointer;
}
.rio-io-header button:hover{background:rgba(255,255,255,.14)}
.rio-io-header svg{width:18px;height:18px}
.rio-io-messages{
  flex:1;overflow-y:auto;
  padding:16px 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.1) transparent;
}
.rio-io-empty{
  color:rgba(255,255,255,.35);
  font-size:.8rem;
  text-align:center;
  padding:40px 0;
}
.rio-io-form{
  display:flex;align-items:end;gap:8px;
  padding:12px 18px 20px;
  border-top:1px solid rgba(255,255,255,.06);
}
.rio-io-form textarea{
  flex:1;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  color:rgba(255,255,255,.85);
  background:rgba(255,255,255,.06);
  font:.78rem var(--sans,"Inter",sans-serif);
  resize:none;
  outline:none;
  line-height:1.4;
  min-height:40px;
  max-height:120px;
}
.rio-io-form textarea::placeholder{color:rgba(255,255,255,.3)}
.rio-io-form button{
  width:40px;height:40px;
  display:grid;place-items:center;
  border:0;border-radius:50%;
  color:#fff;
  background:rgba(107,143,107,.7);
  cursor:pointer;
  flex-shrink:0;
  transition:background .15s;
}
.rio-io-form button:hover{background:rgba(107,143,107,.9)}
.rio-io-form button svg{width:18px;height:18px}

.rio-compose-sheet{
  position:absolute;bottom:96px;left:50%;
  z-index:25;
  transform:translateX(-50%) translateY(16px);
  width:min(calc(100vw - 32px),340px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:24px;
  background:rgba(22,24,22,.8);
  backdrop-filter:blur(30px);
  -webkit-backdrop-filter:blur(30px);
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  opacity:0;
  transition:transform .3s ease,opacity .3s ease;
  pointer-events:none;
}
.rio-compose-sheet.visible{
  transform:translateX(-50%) translateY(0);
  opacity:1;
  pointer-events:auto;
}
.rio-compose-sheet-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px 10px;
  color:rgba(255,255,255,.9);
  font:600 .85rem var(--sans,"Inter",sans-serif);
}
.rio-compose-sheet-header button{
  width:30px;height:30px;
  display:grid;place-items:center;
  border:0;border-radius:50%;
  color:rgba(255,255,255,.5);
  background:rgba(255,255,255,.06);
  cursor:pointer;
}
.rio-compose-sheet-header button:hover{background:rgba(255,255,255,.14)}
.rio-compose-sheet-header svg{width:16px;height:16px}
.rio-compose-sheet-body{padding:6px 18px 20px}
.rio-compose-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
}
.rio-compose-option{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:18px 10px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  color:rgba(255,255,255,.75);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  font:500 .72rem var(--sans,"Inter",sans-serif);
  transition:background .2s,border-color .2s,transform .15s;
}
.rio-compose-option:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}
.rio-compose-option:active{transform:scale(.97)}
.rio-compose-option svg{width:28px;height:28px;color:rgba(255,255,255,.6)}
.rio-compose-option:first-child svg{color:rgba(160,200,160,.8)}

/* ── Dock simplificado ── */
.rio-dock{
  display:flex;align-items:center;gap:4px;
  padding:6px 8px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(18,20,18,.7);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  box-shadow:0 8px 32px rgba(0,0,0,.5);
  position:absolute;bottom:16px;left:50%;
  transform:translateX(-50%);
  z-index:15;
}
.rio-dock-item{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:8px 14px;
  border:0;border-radius:999px;
  color:rgba(255,255,255,.45);
  background:transparent;
  cursor:pointer;
  font:500 .54rem var(--sans,"Inter",sans-serif);
  letter-spacing:.03em;
  white-space:nowrap;
  transition:color .2s,background .2s,transform .15s;
}
.rio-dock-item:hover{color:rgba(255,255,255,.8);background:rgba(255,255,255,.06)}
.rio-dock-item:active{transform:scale(.95)}
.rio-dock-item.active{color:#fff;background:rgba(255,255,255,.1)}
.rio-dock-item svg{width:20px;height:20px!important}
.rio-dock-create{
  width:44px;height:44px;
  padding:0;
  display:grid;place-items:center;
  color:rgba(255,255,255,.9);
  background:rgba(107,143,107,.7);
  margin:0 4px;
}
.rio-dock-create:hover{background:rgba(107,143,107,.9)!important;color:#fff!important}
.rio-dock-create:active{transform:scale(.92)}
.rio-dock-create svg{width:22px;height:22px!important}

/* ── NDA ── */
.nda-overlay{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.nda-overlay.hidden{display:none}
.nda-card{
  width:min(94%,540px);max-height:88dvh;
  display:flex;flex-direction:column;
  background:#fff;
  border:1px solid #111;
  border-radius:24px;
  box-shadow:0 36px 100px rgba(0,0,0,.18);
  overflow:hidden;
  animation:ndaIn .4s ease;
}
@keyframes ndaIn{from{opacity:0;transform:translateY(20px) scale(.96)}}
.nda-scroll{
  flex:1;overflow-y:auto;padding:32px 28px 16px;
  scrollbar-width:thin;scrollbar-color:rgba(9,9,9,.18) transparent;
}
.nda-scroll::-webkit-scrollbar{width:4px}
.nda-scroll::-webkit-scrollbar-thumb{background:rgba(9,9,9,.18);border-radius:4px}
.nda-title{
  font:700 1.6rem/1.2 var(--serif,Fraunces,serif);
  color:#090909;letter-spacing:-.02em;margin-bottom:2px;
}
.nda-sub{
  font:400 .85rem/1.4 var(--sans);
  color:#777773;margin-bottom:20px;
}
.nda-body{
  font:400 .82rem/1.6 var(--sans);
  color:#50504d;
  text-align:left;
}
.nda-body p{margin:0 0 10px}
.nda-body strong{color:#090909}
.nda-actions{
  display:flex;gap:10px;padding:12px 28px 24px;
}
.nda-btn{
  flex:1;padding:12px 0;border:none;border-radius:12px;
  font:600 .88rem/1 var(--sans);cursor:pointer;
  transition:all .15s;
}
.nda-decline{
  background:#f1f1ee;color:#50504d;
}
.nda-decline:hover{background:#e8e8e5;color:#c44a4a}
.nda-accept{
  background:#111;color:#fff;
}
.nda-accept:hover{background:#2b2b2b}

@media (max-width:520px){
  .nda-scroll{padding:24px 16px 12px}
  .nda-actions{padding:10px 16px 18px;flex-direction:column}
  .rio-top{padding:12px 14px}
  .rio-panel{left:10px;width:calc(100vw - 20px);top:60px;bottom:80px}
  .rio-io-panel{width:100vw}
  .rio-dock{bottom:10px}
  .rio-dock-item{padding:6px 10px}
  .rio-dock-item span{display:none}
  .rio-dock-create{width:40px;height:40px}
  .rio-compose-sheet{bottom:80px;width:calc(100vw - 20px)}
}

/* ── Signal Viewer (Instagram-style) ── */
.rio-loading{text-align:center;padding:40px;color:rgba(255,255,255,.35);font-size:.85rem}
.rio-empty{text-align:center;padding:40px;color:rgba(255,255,255,.35);font-size:.85rem}

.sv-wrap{display:flex;flex-direction:column;height:100%;position:relative}
.sv-header{padding:12px 14px 8px;flex-shrink:0}
.sv-user{display:flex;align-items:center;gap:10px}
button.sv-user{background:none;border:none;font:inherit;text-align:left;width:100%;padding:0;cursor:pointer}
.sv-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}
.sv-avatar-placeholder{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:rgba(255,255,255,.4);font-size:.9rem;flex-shrink:0}
.sv-user-info{min-width:0}
.sv-user-name{font-weight:600;font-size:.8rem;color:rgba(255,255,255,.85)}
.sv-time{font-size:.6rem;color:rgba(255,255,255,.35);margin-top:1px}
.sv-body{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:8px 14px;gap:10px}
.sv-stats{display:flex;gap:14px;justify-content:center;padding:6px 16px 0;font-size:.68rem;color:rgba(255,255,255,.35);letter-spacing:.02em}
.sv-stats span{display:flex;align-items:center;gap:3px}
.sv-text{font-size:.82rem;line-height:1.55;color:rgba(255,255,255,.8)}
.sv-external{display:inline-block;margin-top:6px;padding:6px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.6);text-decoration:none;font-size:.72rem;transition:background .15s}
.sv-external:hover{background:rgba(255,255,255,.06);color:rgba(255,255,255,.9)}
.sv-media{width:100%;border-radius:12px;max-height:50vh;object-fit:contain;background:rgba(0,0,0,.2)}
.sv-loc{font-size:.72rem;color:rgba(255,255,255,.45);display:flex;align-items:center;gap:4px}
.sv-actions{display:flex;gap:4px;padding:8px 14px 12px;flex-shrink:0;justify-content:center}
.sv-action{display:flex;align-items:center;gap:5px;padding:8px 14px;border:0;border-radius:999px;color:rgba(255,255,255,.6);background:rgba(255,255,255,.06);cursor:pointer;font:500 .7rem var(--sans);transition:background .15s,color .15s}
.sv-action:hover{background:rgba(255,255,255,.12);color:rgba(255,255,255,.9)}
.sv-action svg{width:16px;height:16px}
.sv-counter{text-align:center;font-size:.6rem;color:rgba(255,255,255,.25);padding:0 0 8px;flex-shrink:0}
.sv-nav-left,.sv-nav-right{position:absolute;top:50%;transform:translateY(-50%);z-index:5;color:rgba(255,255,255,.3);cursor:pointer;padding:20px 10px;transition:color .15s;display:flex;align-items:center}
button.sv-nav-left,button.sv-nav-right{background:none;border:none;font:inherit}
.sv-nav-left:hover,.sv-nav-right:hover{color:rgba(255,255,255,.8)}
.sv-nav-left{left:0}
.sv-nav-right{right:0}

/* ── Profile (Rí0) ── */
.rp-wrap{padding:16px 14px 24px}
.rp-head{display:flex;flex-direction:column;align-items:center;padding:12px 0 16px}
.rp-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;margin-bottom:10px}
.rp-avatar-placeholder{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:rgba(255,255,255,.4);font-size:1.6rem;margin-bottom:10px}
.rp-name{font-weight:600;font-size:1.05rem;color:rgba(255,255,255,.9)}
.rp-intention{font-size:.72rem;color:#8c8;margin-top:2px}
.rp-email{font-size:.68rem;color:rgba(255,255,255,.35);margin-top:1px}
.rp-bio{font-size:.75rem;color:rgba(255,255,255,.5);margin-top:8px;text-align:center;line-height:1.4}
.rp-signal-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.04);margin-bottom:4px;cursor:pointer;transition:background .15s}
button.rp-signal-item{border:none;font:inherit;width:100%;text-align:left}
.rp-signal-item:hover{background:rgba(255,255,255,.08)}
.rp-signal-thumb-wrap{flex-shrink:0;width:36px;height:36px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.06)}
.rp-signal-thumb{width:100%;height:100%;object-fit:cover}
.rp-signal-text{font-size:.72rem;color:rgba(255,255,255,.7);line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.rp-stats{display:flex;justify-content:center;gap:20px;padding:14px 0;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);margin-bottom:14px}
.rp-stat{display:flex;flex-direction:column;align-items:center;gap:2px}
.rp-stat-num{font-weight:700;font-size:1rem;color:rgba(255,255,255,.8)}
.rp-stat-lbl{font-size:.6rem;color:rgba(255,255,255,.35);text-transform:uppercase;letter-spacing:.05em}
.rp-section{margin-bottom:14px}
.rp-section-title{font-size:.62rem;color:rgba(255,255,255,.35);text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.rp-tags{display:flex;flex-wrap:wrap;gap:4px}
.rp-tag{padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.6);font-size:.68rem}
.rp-tag-green{background:rgba(100,160,100,.1);color:#8c8}
.rp-btn{display:block;width:100%;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.7);cursor:pointer;font:500 .8rem var(--sans);margin-top:10px;transition:background .15s}
.rp-btn:hover{background:rgba(255,255,255,.12);color:rgba(255,255,255,.9)}
.rp-btn-out{border-color:rgba(200,70,70,.3);color:rgba(200,100,100,.7)}
.rp-btn-out:hover{background:rgba(200,70,70,.1);color:#c66}

/* ── Space Blocks viewer ── */
.sb-wrap{padding:12px 14px 24px}
.sb-back{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border:0;border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.6);cursor:pointer;font:500 .72rem var(--sans);margin-bottom:12px;transition:background .15s}
.sb-back:hover{background:rgba(255,255,255,.12);color:rgba(255,255,255,.9)}
.sb-block{padding:12px;border-radius:12px;background:rgba(255,255,255,.04);margin-bottom:8px}
.sb-block-title{font-weight:600;font-size:.82rem;color:rgba(255,255,255,.85);margin-bottom:4px}
.sb-block-text{font-size:.78rem;color:rgba(255,255,255,.7);line-height:1.5;white-space:pre-wrap}
.sb-block-media{width:100%;border-radius:10px;max-height:40vh;object-fit:contain;background:rgba(0,0,0,.2)}
.sb-block-caption{font-size:.7rem;color:rgba(255,255,255,.5);margin-top:6px}
.sb-block-link{display:block;padding:10px 14px;border-radius:10px;background:rgba(100,150,255,.1);color:#8cf;font-size:.78rem;text-decoration:none;word-break:break-all}
/* ── gl0b0 v2 MapLibre ── */
.gb-map{width:100%;height:100%;position:absolute;inset:0}
.gb-map .maplibregl-ctrl{display:none!important}
.gb-detail{padding:14px;overflow-y:auto}
.gb-detail-back{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border:0;border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.6);cursor:pointer;font:500 .72rem var(--sans);margin-bottom:12px;transition:background .15s}
.gb-detail-back:hover{background:rgba(255,255,255,.12);color:rgba(255,255,255,.9)}
.gb-detail-user-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.gb-detail-avatar{width:36px;height:36px;border:0;border-radius:50%;overflow:hidden;flex-shrink:0;background:rgba(255,255,255,.08);cursor:pointer;display:grid;place-items:center;padding:0}
.gb-detail-avatar img{width:100%;height:100%;object-fit:cover}
.gb-detail-avatar-letter{font:.75rem sans-serif;color:rgba(255,255,255,.6)}
.gb-detail-user{font-size:.85rem;font-weight:600;color:rgba(255,255,255,.85)}
.gb-detail-text{font-size:.8rem;color:rgba(255,255,255,.75);line-height:1.5;margin-bottom:10px}
.gb-detail-img{width:100%;max-height:200px;object-fit:cover;border-radius:10px;margin-bottom:8px;background:rgba(0,0,0,.2)}
.gb-detail-audio{margin-bottom:8px}
.gb-detail-stats{display:flex;gap:12px;font-size:.7rem;color:rgba(255,255,255,.45);margin-bottom:8px}
.gb-detail-stats span{display:flex;align-items:center;gap:3px}
.gb-detail-space{font-size:.7rem;color:rgba(255,255,255,.45);margin-bottom:8px}
.gb-detail-coords{font-size:.65rem;color:rgba(255,255,255,.35)}
.gb-detail-actions{display:flex;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06)}
.gb-detail-action{padding:8px 16px;border:0;border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.75);cursor:pointer;font:500 .75rem var(--sans);transition:all .15s;flex:1;text-align:center}
.gb-detail-action:hover{background:rgba(255,255,255,.14);color:#fff}

/* ── 0rigen ── */
.or-wrap{padding:14px 16px 24px}
.or-intro{font-size:.8rem;color:rgba(255,255,255,.5);margin-bottom:16px}
.or-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:rgba(255,255,255,.04);margin-bottom:8px;cursor:pointer;transition:background .15s}
button.or-item{border:none;font:inherit;width:100%;text-align:left}
.or-item:hover{background:rgba(255,255,255,.08)}
.or-item-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.06);font-size:1.2rem;flex-shrink:0}
.or-item-info{flex:1;min-width:0}
.or-item-name{font-size:.82rem;font-weight:500;color:rgba(255,255,255,.85)}
.or-item-desc{font-size:.72rem;color:rgba(255,255,255,.5);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── Audio preview ── */
.rio-composer-audio-preview audio{
  width:100%;height:40px;border-radius:8px;
  margin-top:4px;
}
.rio-composer-audio-preview audio::-webkit-media-controls-panel{background:rgba(255,255,255,.05)}

/* ── Audio player in signals ── */
.signal-audio-player{
  width:100%;margin:8px 0;border-radius:10px;
}
.signal-audio-player::-webkit-media-controls-panel{background:rgba(255,255,255,.06)}

/* ── 0pci0n ── */
.op-wrap{padding:16px 18px 32px}
.op-intro{font-size:.8rem;color:rgba(255,255,255,.5);margin-bottom:20px;line-height:1.5}
.op-section{margin-bottom:20px}
.op-section-title{font-size:.72rem;font-weight:600;color:rgba(255,255,255,.35);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.op-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.04);cursor:pointer}
.op-row span{font-size:.8rem;color:rgba(255,255,255,.75)}
.op-row input[type=checkbox]{width:18px;height:18px;accent-color:#66cc88;cursor:pointer}
.op-foot{font-size:.7rem;color:rgba(255,255,255,.3);text-align:center;margin-top:24px}

/* ── Mobile overscroll prevention ── */
.rio-mode{overscroll-behavior:none;overflow:hidden;position:fixed;width:100%;height:100%}

/* ── Rí0 Creator (composer overlay) ── */
.rio-composer{position:fixed;inset:0;z-index:500;display:flex;align-items:flex-end;justify-content:center}
.rio-composer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.rio-composer-sheet{position:relative;z-index:1;width:min(calc(100vw - 20px),400px);max-height:80vh;margin-bottom:80px;background:rgba(22,24,22,.96);border:1px solid rgba(255,255,255,.08);border-radius:24px;padding:20px;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.rio-composer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.rio-composer-head h2{font:500 .85rem var(--sans,Inter,sans-serif);color:rgba(255,255,255,.8);margin:0}
.rio-composer-head span{font-size:.7rem;color:rgba(255,255,255,.4)}
.rio-composer-preview{width:100%;max-height:160px;object-fit:contain;border-radius:8px;margin-top:4px}

/* ── Focus visible (integrated with the hover aesthetic) ── */
.gate-option:focus-visible,
.gate-remember:focus-visible,
.rio-chip:focus-visible,
.rio-locate:focus-visible,
.rio-panel-back:focus-visible,
.rio-panel-close:focus-visible,
.rio-io-header button:focus-visible,
.rio-io-form button:focus-visible,
.rio-compose-sheet-header button:focus-visible,
.rio-compose-option:focus-visible,
.rio-dock-item:focus-visible,
.rio-dock-create:focus-visible,
.nda-decline:focus-visible,
.nda-accept:focus-visible,
.sv-external:focus-visible,
.sv-action:focus-visible,
.sv-nav-left:focus-visible,
.sv-nav-right:focus-visible,
.sv-user:focus-visible,
.rp-signal-item:focus-visible,
.rp-btn:focus-visible,
.rp-btn-out:focus-visible,
.sb-back:focus-visible,
.gb-detail-back:focus-visible,
.gb-detail-action:focus-visible,
.or-item:focus-visible,
.op-row:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,255,255,.45);
  background:rgba(255,255,255,.08);
}
.op-row:focus-visible{background:rgba(255,255,255,.06)}

@media(max-width:560px){
  .rio-locate{left:12px;bottom:82px;padding:9px}
  .rio-locate span{display:none}
  .rio-top-right{gap:5px}
  .rio-chip{padding:6px 9px;font-size:.64rem}
}

/* ── Herramientas coherentes con el modo clásico ──
   El globo conserva su fondo oscuro. Las ventanas son superficies de trabajo:
   claras, legibles y con los mismos colores que el resto de n0w. */
body.rio-mode .rio-panel,
body.rio-mode .rio-io-panel,
body.rio-mode .rio-compose-sheet,
body.rio-mode .rio-composer-sheet{
  color:var(--ink);
  background:var(--surface);
  border-color:var(--line-strong);
  box-shadow:var(--shadow-lg);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
body.rio-mode .rio-panel-header,
body.rio-mode .rio-io-header{
  color:var(--ink);
  border-color:var(--line);
}
body.rio-mode #rioPanelTitle,
body.rio-mode .rio-compose-sheet-header,
body.rio-mode .rio-composer-head h2,
body.rio-mode :is(.sv-user-name,.rp-name,.sb-block-title,.gb-detail-user,.or-item-name){color:var(--ink)}
body.rio-mode :is(.rio-panel,.rio-io-panel,.rio-compose-sheet,.rio-composer-sheet)
  :is(p,span,div,label,summary){color:var(--ink-soft)}
body.rio-mode :is(.sv-time,.sv-stats,.sv-counter,.sv-loc,.rp-email,.rp-bio,.rp-stat-lbl,.rp-section-title,.sb-block-caption,.gb-detail-stats,.gb-detail-space,.gb-detail-coords,.or-item-desc,.op-intro,.op-section-title,.op-foot,.rio-io-empty,.rio-composer-head span){color:var(--muted)!important}
body.rio-mode :is(.rio-panel-back,.rio-panel-close,.rio-io-header button,.rio-compose-sheet-header button,.rio-icon-button,.sv-action,.rp-btn,.sb-back,.gb-detail-back,.gb-detail-action,.or-item,.rio-compose-option){
  color:var(--ink-soft);
  background:var(--bg-soft);
  border-color:var(--line-strong);
}
body.rio-mode :is(.rio-panel-back,.rio-panel-close,.rio-io-header button,.rio-compose-sheet-header button,.rio-icon-button,.sv-action,.rp-btn,.sb-back,.gb-detail-back,.gb-detail-action,.or-item,.rio-compose-option):hover{
  color:var(--ink);background:var(--surface-hover);border-color:var(--gold-2);
}
body.rio-mode :is(.rio-io-form textarea,.rio-composer-sheet input,.rio-composer-sheet textarea,.rio-composer-sheet select){
  color:var(--ink)!important;
  background:var(--surface)!important;
  border:1px solid var(--line-strong)!important;
  border-radius:var(--radius)!important;
}
body.rio-mode :is(.rio-io-form textarea,.rio-composer-sheet input,.rio-composer-sheet textarea)::placeholder{color:var(--muted)!important}
body.rio-mode .rio-io-form{border-color:var(--line)}
body.rio-mode .rio-io-form button,
body.rio-mode .rio-publish-button{
  color:var(--ink);background:var(--gold-2);border:0;
}
body.rio-mode .rio-compose-tabs{display:flex;gap:4px;padding:4px;margin-bottom:12px;border-radius:999px;background:var(--bg-soft)}
body.rio-mode .rio-compose-tabs button{flex:1;min-height:38px;border:0;border-radius:999px;background:transparent;color:var(--ink-soft);cursor:pointer;font:600 .72rem var(--sans)}
body.rio-mode .rio-compose-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
body.rio-mode :is(.rio-location-button,.rio-file-button){color:var(--ink-soft)!important;background:var(--bg-soft)!important;border:1px solid var(--line-strong)!important;border-radius:var(--radius)!important}
body.rio-mode :is(.rio-location-button,.rio-file-button):hover{color:var(--ink)!important;border-color:var(--gold-2)!important}
body.rio-mode .rio-compose-panel{display:grid;gap:10px}
body.rio-mode .rio-compose-panel.hidden{display:none}
body.rio-mode .rio-publish-button{width:100%;min-height:44px;margin-top:14px;border-radius:999px;font-weight:700;cursor:pointer}
body.rio-mode :is(.rp-avatar-placeholder,.rp-signal-thumb-wrap,.rp-tag,.sb-block,.gb-detail-avatar,.or-item-icon){background:var(--bg-soft);color:var(--ink-soft)}
body.rio-mode :is(.rp-signal-item,.sb-block,.or-item){background:var(--bg-soft)}
body.rio-mode :is(.rp-signal-item,.or-item):hover{background:var(--surface-hover)}
body.rio-mode :is(.rp-stats,.gb-detail-actions,.op-row){border-color:var(--line)}
body.rio-mode :is(.sv-text,.rp-signal-text,.sb-block-text,.gb-detail-text,.op-row span){color:var(--ink-soft)}
body.rio-mode .op-mode-switch{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:999px;background:var(--bg-soft);color:var(--ink);cursor:pointer;font:700 .8rem var(--sans,Inter,sans-serif)}
body.rio-mode .op-mode-switch:hover{background:var(--surface-hover);border-color:var(--gold-2)}
body.rio-mode .op-mode-switch:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
body.rio-mode .sv-external{color:var(--gold-2);border-color:var(--line-strong);background:var(--gold-soft)}
body.rio-mode .sv-media{background:var(--bg-soft)}
body.rio-mode .rp-intention{color:var(--green)}
body.rio-mode .rp-btn-out{color:var(--error);border-color:var(--error-soft);background:transparent}
body.rio-mode :is(.rio-panel-body,.rio-io-messages){scrollbar-color:var(--line-strong) transparent}


