/* VELVET ROOM CREATE POST FLOW R18 — staged mobile composer */
body.vrCreateFlowR18{
  --vr-r18-panel:rgba(11,10,15,.94);
  --vr-r18-line:rgba(255,255,255,.10);
  --vr-r18-muted:rgba(244,240,248,.62);
  --vr-r18-purple:#a64dff;
  --vr-r18-magenta:#ff4fb8;
}
body.vrCreateFlowR18 .page{
  max-width:760px!important;
  padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
}
body.vrCreateFlowR18 .postWrap{
  padding:8px 12px 24px!important;
}
body.vrCreateFlowR18 .shell{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.vrCreateFlowR18 .head{
  position:relative;
  z-index:3;
  margin:2px 0 10px!important;
  padding:10px 12px!important;
  border:1px solid rgba(196,131,255,.18)!important;
  border-radius:18px!important;
  background:rgba(9,7,13,.88)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
body.vrCreateFlowR18 .editor{
  margin:0!important;
  padding:12px 4px 2px!important;
  border:0!important;
}
body.vrCreateFlowR18 .editorBody{
  min-height:118px!important;
  padding:2px 4px 12px!important;
  font-size:18px!important;
  line-height:1.42!important;
  color:#fff!important;
}
body.vrCreateFlowR18 .editorTitle{
  margin:0 0 10px!important;
  padding:12px 14px!important;
  border:1px solid var(--vr-r18-line)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.035)!important;
  font-size:16px!important;
}
body.vrCreateFlowR18 .previewWrap{
  margin:0 0 10px!important;
  padding:0!important;
  border:0!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#050507!important;
}
body.vrCreateFlowR18[data-vr-create-stage="preview"] .previewWrap{
  min-height:260px!important;
}
body.vrCreateFlowR18[data-vr-create-stage="details"] .previewWrap{
  max-height:300px!important;
}
body.vrCreateFlowR18[data-vr-create-stage="details"] .previewWrap img,
body.vrCreateFlowR18[data-vr-create-stage="details"] .previewWrap video{
  max-height:300px!important;
  object-fit:contain!important;
}
body.vrCreateFlowR18 .tools,
body.vrCreateFlowR18 .options,
body.vrCreateFlowR18 .footerBar{
  display:none!important;
}

.vrR18Stage{
  width:100%;
}
.vrR18Stage[hidden],
.vrR18Footer[hidden],
.vrR18MorePanel[hidden]{
  display:none!important;
}
.vrR18StageIntro{
  padding:8px 2px 14px;
}
.vrR18StageIntro h2{
  margin:0!important;
  font-size:21px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
}
.vrR18StageIntro p{
  margin:5px 0 0!important;
  color:var(--vr-r18-muted)!important;
  font-size:13px!important;
  line-height:1.35!important;
}

.vrR18ChooseGrid{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--vr-r18-line);
  border-radius:20px;
  background:var(--vr-r18-panel);
}
.vrR18CreateChoice{
  appearance:none;
  width:100%;
  min-height:72px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 22px;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border:0;
  border-bottom:1px solid var(--vr-r18-line);
  background:transparent;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
.vrR18CreateChoice:last-child{border-bottom:0}
.vrR18CreateChoice>span{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(165,76,255,.12);
  border:1px solid rgba(196,131,255,.22);
  font-size:22px;
  font-weight:900;
}
.vrR18CreateChoice b{
  display:block;
  font-size:16px;
  line-height:1.15;
}
.vrR18CreateChoice small{
  display:block;
  margin-top:4px;
  color:var(--vr-r18-muted);
  font-size:12px;
  line-height:1.25;
}
.vrR18CreateChoice i{
  font-style:normal;
  font-size:28px;
  color:rgba(255,255,255,.5);
}

.vrR18PreviewTools{
  margin-top:8px;
}
.vrR18ToolStrip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.vrR18ToolStrip button{
  min-height:68px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid var(--vr-r18-line);
  border-radius:16px;
  background:rgba(13,12,18,.92);
  color:#fff;
  font-weight:800;
}
.vrR18ToolStrip button span{font-size:21px}
.vrR18ToolStrip button small{font-size:11px;color:var(--vr-r18-muted)}

.vrR18Details{
  margin-top:2px;
}
.vrR18DetailRows{
  overflow:hidden;
  border-top:1px solid var(--vr-r18-line);
  border-bottom:1px solid var(--vr-r18-line);
}
.vrR18DetailRow{
  width:100%;
  min-height:66px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 20px;
  align-items:center;
  gap:10px;
  padding:10px 4px;
  border:0;
  border-bottom:1px solid var(--vr-r18-line);
  background:transparent;
  color:#fff;
  text-align:left;
}
.vrR18DetailRow:last-child{border-bottom:0}
.vrR18RowIcon{
  font-size:24px;
  display:grid;
  place-items:center;
}
.vrR18RowMain b{
  display:block;
  font-size:16px;
  line-height:1.2;
}
.vrR18RowMain small{
  display:block;
  margin-top:3px;
  color:var(--vr-r18-muted);
  font-size:12px;
  line-height:1.2;
}
.vrR18Chevron{
  font-size:28px;
  color:rgba(255,255,255,.45);
}
.vrR18MorePanel{
  margin-top:10px;
  overflow:hidden;
  border:1px solid var(--vr-r18-line);
  border-radius:18px;
  background:var(--vr-r18-panel);
}
.vrR18Option{
  width:100%;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  border:0;
  border-bottom:1px solid var(--vr-r18-line);
  background:transparent;
  color:#fff;
  font-size:14px;
  font-weight:800;
  text-align:left;
}
.vrR18Option:last-of-type{border-bottom:0}
.vrR18Option small{
  color:var(--vr-r18-muted);
  font-size:12px;
  font-weight:700;
}
.vrR18Option.is-active{
  color:#e9cfff;
}
#vrR18NativeExtras .vrR1Card{
  margin:0!important;
  border:0!important;
  border-top:1px solid var(--vr-r18-line)!important;
  border-radius:0!important;
  background:transparent!important;
}

.vrR18Footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:2147483400;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));
  background:rgba(6,6,9,.95);
  border-top:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.vrR18FooterInner{
  width:min(736px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:10px;
}
.vrR18Footer button{
  min-height:52px;
  border-radius:18px;
  font-size:16px;
  font-weight:900;
}
.vrR18Secondary{
  border:1px solid rgba(255,255,255,.14);
  background:#111118;
  color:#fff;
}
.vrR18Primary{
  border:0;
  background:linear-gradient(135deg,#8d46ff,#c43cff 60%,#ec4bc3);
  color:#fff;
}

.vrR18Sheet{
  position:fixed;
  inset:0;
  z-index:2147483600;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.vrR18SheetBackdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(0,0,0,.68);
}
.vrR18SheetPanel{
  position:relative;
  width:min(720px,100%);
  border-radius:28px 28px 0 0;
  padding:12px 14px calc(18px + env(safe-area-inset-bottom,0px));
  background:#101015;
  border:1px solid rgba(255,255,255,.11);
}
.vrR18Grab{
  width:54px;
  height:4px;
  margin:0 auto 14px;
  border-radius:999px;
  background:rgba(255,255,255,.5);
}
.vrR18SheetPanel h2{
  margin:0 0 8px;
  text-align:center;
  font-size:21px;
}
.vrR18Choice{
  width:100%;
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 10px;
  border:0;
  border-top:1px solid var(--vr-r18-line);
  background:transparent;
  color:#fff;
  text-align:left;
}
.vrR18Choice b{display:block;font-size:16px}
.vrR18Choice small{display:block;margin-top:4px;color:var(--vr-r18-muted);font-size:12px}

@media(max-width:520px){
  body.vrCreateFlowR18 .topInner{
    padding:8px 10px!important;
  }
  body.vrCreateFlowR18 .postWrap{
    padding:6px 10px 22px!important;
  }
  body.vrCreateFlowR18 .head{
    padding:9px 10px!important;
    border-radius:16px!important;
  }
  body.vrCreateFlowR18 .editorBody{
    min-height:108px!important;
    font-size:17px!important;
  }
  .vrR18CreateChoice{
    min-height:68px;
  }
  .vrR18ToolStrip{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .vrR18Footer button{
    min-height:50px;
    border-radius:16px;
  }
}


/* R19 explicit publish surface intent */
.vrR18PublishTarget{
  margin:4px 0 14px;
  padding:12px;
  border:1px solid var(--vr-r18-line);
  border-radius:18px;
  background:rgba(10,9,14,.90);
}
.vrR18PublishTargetLabel{
  margin:0 0 10px;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.70);
}
.vrR18PublishTargetGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.vrR18PublishTargetGrid button{
  min-height:68px;
  padding:10px 8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:#0d0c12;
  color:#fff;
  text-align:center;
}
.vrR18PublishTargetGrid button b{
  display:block;
  font-size:14px;
  line-height:1.15;
}
.vrR18PublishTargetGrid button small{
  display:block;
  margin-top:4px;
  color:var(--vr-r18-muted);
  font-size:10px;
  line-height:1.2;
}
.vrR18PublishTargetGrid button.is-active{
  border-color:#d24cff;
  box-shadow:inset 0 0 0 1px rgba(210,76,255,.45);
  background:rgba(139,55,220,.16);
}
.vrR18PublishTargetGrid button:disabled{
  opacity:.42;
}
.vrR18PublishTargetHelp{
  margin-top:9px;
  color:var(--vr-r18-muted);
  font-size:11px;
  line-height:1.3;
}


/* R298: Post or Velvet Clip selection is visible before source selection. */
.vrR298KindChooser{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  margin:0 2px 15px;padding:0;
}
.vrR298KindChooser [data-vr-r298-kind]{
  min-height:60px;display:flex;justify-content:center;align-items:center;gap:9px;
  min-width:0;padding:9px 12px;
  background:rgba(18,13,24,.91);border:1px solid rgba(207,144,255,.28);
  color:#fff;border-radius:14px;font:850 14px/1.2 system-ui,sans-serif;
  cursor:pointer;touch-action:manipulation;
}
.vrR298KindChooser [data-vr-r298-kind].is-active{
  border-color:rgba(203,107,255,.8);background:rgba(115,49,166,.28);
}
.vrR298KindChooser [data-vr-r298-kind] span{font-size:23px}
.vrR298KindChooser [data-vr-r298-kind]:focus-visible{outline:2px solid #dcafff;outline-offset:2px}
body.vrCreateFlowR18[data-vr-create-kind-r298="clip"] #vrR18Text{display:none!important}

/* R303: native-return confirmation and durable-reference placeholder. */
.vrR303PickerStatus[hidden]{display:none!important}
.vrR303PickerStatus{
  margin:0 4px 12px;padding:12px 14px;border:1px solid rgba(170,124,238,.38);
  background:rgba(23,13,33,.94);color:#f9efff;border-radius:12px;
  font:750 12px/1.45 system-ui,sans-serif
}
.vrR303PickerStatus[data-vr-status="error"]{
  color:#ffd9e1;border-color:rgba(255,128,155,.65);background:rgba(64,16,29,.88)
}
.vrR303NativePreview{display:grid;place-items:center;min-height:185px;background:#150e1e}
.vrR303NativeAttach{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:27px 14px;gap:8px;width:100%;min-height:180px;
  color:#fbe9ff;text-align:center;overflow-wrap:anywhere
}
.vrR303NativeAttach>span{font-size:38px}
.vrR303NativeAttach strong{font:850 14px/1.3 system-ui}
.vrR303NativeAttach small{font:650 12px/1.3 system-ui;color:#d4b4ea}
