/* Chung cho cả hai shell; nội dung/quyền của trang con được giữ nguyên. */
:is(html.uv-app-embed,body.uvx-embed) :is(.uvx-sidebar,.uvx-topbar,.uvx-bottomnav,#uvx-backdrop,
  #uv-guide-strip,#uv-fin-subnav,#uv-proj-ctx,#ht-fab,#ht-panel,#ht-tb,.ph-head,.ph-tabs) {
  display:none!important;
}
:is(html.uv-app-embed,body.uvx-embed) .uvx-main { margin-left:0!important; min-width:0; }
:is(html.uv-app-embed,body.uvx-embed) .uvx-content { padding:10px 14px 16px!important; min-width:0; }
:is(html.uv-app-embed,body.uvx-embed) .ph-wrap { max-width:none!important; padding:8px 12px!important; }
/* Nút chat/chuông của trang cha có z-index cao: đừng che ô nhập của cửa sổ con. */
body:has(#uv-drawer.on,.h2-ov2:not([hidden]),.khvt-nen,#dtm-frame-ov.on,.pro-win)
  :is(#ht-fab,#ht-panel,#ht-tb) { visibility:hidden!important; pointer-events:none!important; }
/* Khi mở thêm chi tiết, giữ dữ liệu màn trước nhưng chỉ hiện cửa sổ trên cùng. */
.uv-xem-o[hidden] { display:none!important; }
.uv-xem-o .h2-ovw { max-height:100dvh; }
.uv-xem-o iframe { min-height:0; }
@media(max-width:768px) {
  .uv-xem-o .h2-ovw.zm { width:100%; height:100vh; height:100dvh; border-radius:0; }
  .uv-xem-o .h2-ovh { padding:8px; flex-wrap:wrap; }
  .uv-xem-o .uv-xem-t { min-width:0; overflow-wrap:anywhere; flex:1 1 45%; }
  .uv-xem-o :is(.h2-x,.h2-btn) { min-height:44px; }
  /* Các trang HTML riêng không nạp mobile_v1.css: giữ ô nhập đủ 16px trên iPhone. */
  :is(html.uv-app-embed,body.uvx-embed) :is(input,select,textarea) { font-size:16px!important; }
}
